Skip to content

Commit 42c73b9

Browse files
committed
Fix all the outdated shit + apply PRs
DesignRevision#31 DesignRevision#32 DesignRevision#34
1 parent a6700fb commit 42c73b9

18 files changed

+24283
-8389
lines changed

.github/workflows/nodejs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [8.x, 10.x, 12.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: npm install, build, and test
21+
run: |
22+
npm ci
23+
npm run build --if-present
24+
npm test
25+
env:
26+
CI: true

build/rollup.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import commonjs from 'rollup-plugin-commonjs'
66
import babel from 'rollup-plugin-babel'
77
import minify from 'rollup-plugin-babel-minify'
88
import postcss from 'rollup-plugin-postcss'
9+
import dts from "rollup-plugin-dts"
910
import { name, version, dependencies, peerDependencies } from '../package.json'
1011

1112
const PATHS = {
@@ -124,9 +125,17 @@ const MinifiedUMDConfig = createBaseConfig(function(config) {
124125
})
125126
})
126127

128+
const TypescriptTypesConfig = {
129+
input: path.resolve(__dirname, '..', 'types', 'shards-react.d.ts'),
130+
output: [{ file: "dist/shards-react.d.ts", format: "es" }],
131+
plugins: [dts()],
132+
external: ['react']
133+
}
134+
127135
module.exports = [
136+
TypescriptTypesConfig,
128137
CommonJSConfig,
129138
ESModulesConfig,
130139
UMDConfig,
131-
MinifiedUMDConfig
140+
MinifiedUMDConfig,
132141
]

components/constants.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,51 @@ export const INPUT_TYPES = [
100100
"file"
101101
];
102102

103+
export const AUTOCOMPLETE_TYPES = [
104+
"on",
105+
"off",
106+
"name",
107+
"email",
108+
"username",
109+
"new-password",
110+
"current-password",
111+
"one-time-code",
112+
"organization-title",
113+
"organization",
114+
"street-address",
115+
"address-line1",
116+
"address-line2",
117+
"address-line3",
118+
"address-level1",
119+
"address-level2",
120+
"address-level3",
121+
"address-level4",
122+
"country",
123+
"country-name",
124+
"postal-code",
125+
"cc-name",
126+
"cc-given-name",
127+
"cc-additional-name",
128+
"cc-family-name",
129+
"cc-number",
130+
"cc-exp",
131+
"cc-exp-month",
132+
"cc-exp-year",
133+
"cc-csc",
134+
"cc-type",
135+
"transaction-currency",
136+
"transaction-amount",
137+
"language",
138+
"bday",
139+
"bday-day",
140+
"bday-month",
141+
"bday-year",
142+
"sex",
143+
"tel",
144+
"tel-extension",
145+
"impp",
146+
"url",
147+
"photo"
148+
];
149+
103150
export const INPUT_GROUP_ADDON_TYPES = ["prepend", "append"];

0 commit comments

Comments
 (0)