Skip to content

Commit

Permalink
Fix all the outdated shit + apply PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanOUINA committed May 1, 2021
1 parent a6700fb commit 42c73b9
Show file tree
Hide file tree
Showing 18 changed files with 24,283 additions and 8,389 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
11 changes: 10 additions & 1 deletion build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
import minify from 'rollup-plugin-babel-minify'
import postcss from 'rollup-plugin-postcss'
import dts from "rollup-plugin-dts"
import { name, version, dependencies, peerDependencies } from '../package.json'

const PATHS = {
Expand Down Expand Up @@ -124,9 +125,17 @@ const MinifiedUMDConfig = createBaseConfig(function(config) {
})
})

const TypescriptTypesConfig = {
input: path.resolve(__dirname, '..', 'types', 'shards-react.d.ts'),
output: [{ file: "dist/shards-react.d.ts", format: "es" }],
plugins: [dts()],
external: ['react']
}

module.exports = [
TypescriptTypesConfig,
CommonJSConfig,
ESModulesConfig,
UMDConfig,
MinifiedUMDConfig
MinifiedUMDConfig,
]
47 changes: 47 additions & 0 deletions components/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,51 @@ export const INPUT_TYPES = [
"file"
];

export const AUTOCOMPLETE_TYPES = [
"on",
"off",
"name",
"email",
"username",
"new-password",
"current-password",
"one-time-code",
"organization-title",
"organization",
"street-address",
"address-line1",
"address-line2",
"address-line3",
"address-level1",
"address-level2",
"address-level3",
"address-level4",
"country",
"country-name",
"postal-code",
"cc-name",
"cc-given-name",
"cc-additional-name",
"cc-family-name",
"cc-number",
"cc-exp",
"cc-exp-month",
"cc-exp-year",
"cc-csc",
"cc-type",
"transaction-currency",
"transaction-amount",
"language",
"bday",
"bday-day",
"bday-month",
"bday-year",
"sex",
"tel",
"tel-extension",
"impp",
"url",
"photo"
];

export const INPUT_GROUP_ADDON_TYPES = ["prepend", "append"];
Loading

0 comments on commit 42c73b9

Please sign in to comment.