diff options
author | 2019-01-08 21:41:11 +0100 | |
---|---|---|
committer | 2019-01-08 21:41:11 +0100 | |
commit | 6aab4ab890c0ca2f99bc615b7048533774f6ff68 (patch) | |
tree | 088d86001efa2a6d825ad51259a2df9b62b201fe /packages/forms | |
parent | wip (diff) | |
download | ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.tar.gz ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.tar.zst ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.zip |
Make packages work in electron, node and web
Diffstat (limited to 'packages/forms')
-rw-r--r-- | packages/forms/package-lock.json | 314 | ||||
-rw-r--r-- | packages/forms/package.json | 4 | ||||
-rw-r--r-- | packages/forms/src/index.ts | 6 | ||||
-rw-r--r-- | packages/forms/src/input/styles.ts | 2 | ||||
-rw-r--r-- | packages/forms/webpack.config.js | 37 |
5 files changed, 319 insertions, 44 deletions
diff --git a/packages/forms/package-lock.json b/packages/forms/package-lock.json index bf610fdfd..a3e000944 100644 --- a/packages/forms/package-lock.json +++ b/packages/forms/package-lock.json | |||
@@ -14,11 +14,263 @@ | |||
14 | "resolved": "https://registry.npmjs.org/@mdi/react/-/react-1.1.0.tgz", | 14 | "resolved": "https://registry.npmjs.org/@mdi/react/-/react-1.1.0.tgz", |
15 | "integrity": "sha512-c0+avMYEZ6i7Pg1ULLFs+p7k8bDPiie9rrgGYs8VWQhw2tUUYz7r0lIPVzD3bzMghWfyhfkArj88K5Of0WTMNw==" | 15 | "integrity": "sha512-c0+avMYEZ6i7Pg1ULLFs+p7k8bDPiie9rrgGYs8VWQhw2tUUYz7r0lIPVzD3bzMghWfyhfkArj88K5Of0WTMNw==" |
16 | }, | 16 | }, |
17 | "@meetfranz/theme": { | ||
18 | "version": "file:../theme", | ||
19 | "requires": { | ||
20 | "color": "^3.1.0" | ||
21 | }, | ||
22 | "dependencies": { | ||
23 | "color": { | ||
24 | "version": "3.1.0", | ||
25 | "bundled": true, | ||
26 | "requires": { | ||
27 | "color-convert": "^1.9.1", | ||
28 | "color-string": "^1.5.2" | ||
29 | } | ||
30 | }, | ||
31 | "color-convert": { | ||
32 | "version": "1.9.3", | ||
33 | "bundled": true, | ||
34 | "requires": { | ||
35 | "color-name": "1.1.3" | ||
36 | } | ||
37 | }, | ||
38 | "color-name": { | ||
39 | "version": "1.1.3", | ||
40 | "bundled": true | ||
41 | }, | ||
42 | "color-string": { | ||
43 | "version": "1.5.3", | ||
44 | "bundled": true, | ||
45 | "requires": { | ||
46 | "color-name": "^1.0.0", | ||
47 | "simple-swizzle": "^0.2.2" | ||
48 | } | ||
49 | }, | ||
50 | "is-arrayish": { | ||
51 | "version": "0.3.2", | ||
52 | "bundled": true | ||
53 | }, | ||
54 | "simple-swizzle": { | ||
55 | "version": "0.2.2", | ||
56 | "bundled": true, | ||
57 | "requires": { | ||
58 | "is-arrayish": "^0.3.1" | ||
59 | } | ||
60 | } | ||
61 | } | ||
62 | }, | ||
63 | "brcast": { | ||
64 | "version": "3.0.1", | ||
65 | "resolved": "https://registry.npmjs.org/brcast/-/brcast-3.0.1.tgz", | ||
66 | "integrity": "sha512-eI3yqf9YEqyGl9PCNTR46MGvDylGtaHjalcz6Q3fAPnP/PhpKkkve52vFdfGpwp4VUvK6LUr4TQN+2stCrEwTg==" | ||
67 | }, | ||
68 | "classnames": { | ||
69 | "version": "2.2.6", | ||
70 | "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", | ||
71 | "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" | ||
72 | }, | ||
73 | "css-vendor": { | ||
74 | "version": "0.3.8", | ||
75 | "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-0.3.8.tgz", | ||
76 | "integrity": "sha1-ZCHP0wNM5mT+dnOXL9ARn8KJQfo=", | ||
77 | "requires": { | ||
78 | "is-in-browser": "^1.0.2" | ||
79 | } | ||
80 | }, | ||
81 | "hoist-non-react-statics": { | ||
82 | "version": "3.2.1", | ||
83 | "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.2.1.tgz", | ||
84 | "integrity": "sha512-TFsu3TV3YLY+zFTZDrN8L2DTFanObwmBLpWvJs1qfUuEQ5bTAdFcwfx2T/bsCXfM9QHSLvjfP+nihEl0yvozxw==", | ||
85 | "requires": { | ||
86 | "react-is": "^16.3.2" | ||
87 | } | ||
88 | }, | ||
17 | "html-element-attributes": { | 89 | "html-element-attributes": { |
18 | "version": "1.3.1", | 90 | "version": "1.3.1", |
19 | "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", | 91 | "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", |
20 | "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" | 92 | "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" |
21 | }, | 93 | }, |
94 | "hyphenate-style-name": { | ||
95 | "version": "1.0.2", | ||
96 | "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz", | ||
97 | "integrity": "sha1-MRYKNpMK2vH8BMYHT360FGXU7Es=" | ||
98 | }, | ||
99 | "is-function": { | ||
100 | "version": "1.0.1", | ||
101 | "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.1.tgz", | ||
102 | "integrity": "sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU=" | ||
103 | }, | ||
104 | "is-in-browser": { | ||
105 | "version": "1.1.3", | ||
106 | "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", | ||
107 | "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" | ||
108 | }, | ||
109 | "is-plain-object": { | ||
110 | "version": "2.0.4", | ||
111 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", | ||
112 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", | ||
113 | "requires": { | ||
114 | "isobject": "^3.0.1" | ||
115 | } | ||
116 | }, | ||
117 | "isobject": { | ||
118 | "version": "3.0.1", | ||
119 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", | ||
120 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" | ||
121 | }, | ||
122 | "js-tokens": { | ||
123 | "version": "4.0.0", | ||
124 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", | ||
125 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" | ||
126 | }, | ||
127 | "jss": { | ||
128 | "version": "9.8.7", | ||
129 | "resolved": "https://registry.npmjs.org/jss/-/jss-9.8.7.tgz", | ||
130 | "integrity": "sha512-awj3XRZYxbrmmrx9LUSj5pXSUfm12m8xzi/VKeqI1ZwWBtQ0kVPTs3vYs32t4rFw83CgFDukA8wKzOE9sMQnoQ==", | ||
131 | "requires": { | ||
132 | "is-in-browser": "^1.1.3", | ||
133 | "symbol-observable": "^1.1.0", | ||
134 | "warning": "^3.0.0" | ||
135 | } | ||
136 | }, | ||
137 | "jss-camel-case": { | ||
138 | "version": "6.1.0", | ||
139 | "resolved": "https://registry.npmjs.org/jss-camel-case/-/jss-camel-case-6.1.0.tgz", | ||
140 | "integrity": "sha512-HPF2Q7wmNW1t79mCqSeU2vdd/vFFGpkazwvfHMOhPlMgXrJDzdj9viA2SaHk9ZbD5pfL63a8ylp4++irYbbzMQ==", | ||
141 | "requires": { | ||
142 | "hyphenate-style-name": "^1.0.2" | ||
143 | } | ||
144 | }, | ||
145 | "jss-compose": { | ||
146 | "version": "5.0.0", | ||
147 | "resolved": "https://registry.npmjs.org/jss-compose/-/jss-compose-5.0.0.tgz", | ||
148 | "integrity": "sha512-YofRYuiA0+VbeOw0VjgkyO380sA4+TWDrW52nSluD9n+1FWOlDzNbgpZ/Sb3Y46+DcAbOS21W5jo6SAqUEiuwA==", | ||
149 | "requires": { | ||
150 | "warning": "^3.0.0" | ||
151 | } | ||
152 | }, | ||
153 | "jss-default-unit": { | ||
154 | "version": "8.0.2", | ||
155 | "resolved": "https://registry.npmjs.org/jss-default-unit/-/jss-default-unit-8.0.2.tgz", | ||
156 | "integrity": "sha512-WxNHrF/18CdoAGw2H0FqOEvJdREXVXLazn7PQYU7V6/BWkCV0GkmWsppNiExdw8dP4TU1ma1dT9zBNJ95feLmg==" | ||
157 | }, | ||
158 | "jss-expand": { | ||
159 | "version": "5.3.0", | ||
160 | "resolved": "https://registry.npmjs.org/jss-expand/-/jss-expand-5.3.0.tgz", | ||
161 | "integrity": "sha512-NiM4TbDVE0ykXSAw6dfFmB1LIqXP/jdd0ZMnlvlGgEMkMt+weJIl8Ynq1DsuBY9WwkNyzWktdqcEW2VN0RAtQg==" | ||
162 | }, | ||
163 | "jss-extend": { | ||
164 | "version": "6.2.0", | ||
165 | "resolved": "https://registry.npmjs.org/jss-extend/-/jss-extend-6.2.0.tgz", | ||
166 | "integrity": "sha512-YszrmcB6o9HOsKPszK7NeDBNNjVyiW864jfoiHoMlgMIg2qlxKw70axZHqgczXHDcoyi/0/ikP1XaHDPRvYtEA==", | ||
167 | "requires": { | ||
168 | "warning": "^3.0.0" | ||
169 | } | ||
170 | }, | ||
171 | "jss-global": { | ||
172 | "version": "3.0.0", | ||
173 | "resolved": "https://registry.npmjs.org/jss-global/-/jss-global-3.0.0.tgz", | ||
174 | "integrity": "sha512-wxYn7vL+TImyQYGAfdplg7yaxnPQ9RaXY/cIA8hawaVnmmWxDHzBK32u1y+RAvWboa3lW83ya3nVZ/C+jyjZ5Q==" | ||
175 | }, | ||
176 | "jss-nested": { | ||
177 | "version": "6.0.1", | ||
178 | "resolved": "https://registry.npmjs.org/jss-nested/-/jss-nested-6.0.1.tgz", | ||
179 | "integrity": "sha512-rn964TralHOZxoyEgeq3hXY8hyuCElnvQoVrQwKHVmu55VRDd6IqExAx9be5HgK0yN/+hQdgAXQl/GUrBbbSTA==", | ||
180 | "requires": { | ||
181 | "warning": "^3.0.0" | ||
182 | } | ||
183 | }, | ||
184 | "jss-preset-default": { | ||
185 | "version": "4.5.0", | ||
186 | "resolved": "https://registry.npmjs.org/jss-preset-default/-/jss-preset-default-4.5.0.tgz", | ||
187 | "integrity": "sha512-qZbpRVtHT7hBPpZEBPFfafZKWmq3tA/An5RNqywDsZQGrlinIF/mGD9lmj6jGqu8GrED2SMHZ3pPKLmjCZoiaQ==", | ||
188 | "requires": { | ||
189 | "jss-camel-case": "^6.1.0", | ||
190 | "jss-compose": "^5.0.0", | ||
191 | "jss-default-unit": "^8.0.2", | ||
192 | "jss-expand": "^5.3.0", | ||
193 | "jss-extend": "^6.2.0", | ||
194 | "jss-global": "^3.0.0", | ||
195 | "jss-nested": "^6.0.1", | ||
196 | "jss-props-sort": "^6.0.0", | ||
197 | "jss-template": "^1.0.1", | ||
198 | "jss-vendor-prefixer": "^7.0.0" | ||
199 | } | ||
200 | }, | ||
201 | "jss-props-sort": { | ||
202 | "version": "6.0.0", | ||
203 | "resolved": "https://registry.npmjs.org/jss-props-sort/-/jss-props-sort-6.0.0.tgz", | ||
204 | "integrity": "sha512-E89UDcrphmI0LzmvYk25Hp4aE5ZBsXqMWlkFXS0EtPkunJkRr+WXdCNYbXbksIPnKlBenGB9OxzQY+mVc70S+g==" | ||
205 | }, | ||
206 | "jss-template": { | ||
207 | "version": "1.0.1", | ||
208 | "resolved": "https://registry.npmjs.org/jss-template/-/jss-template-1.0.1.tgz", | ||
209 | "integrity": "sha512-m5BqEWha17fmIVXm1z8xbJhY6GFJxNB9H68GVnCWPyGYfxiAgY9WTQyvDAVj+pYRgrXSOfN5V1T4+SzN1sJTeg==", | ||
210 | "requires": { | ||
211 | "warning": "^3.0.0" | ||
212 | } | ||
213 | }, | ||
214 | "jss-vendor-prefixer": { | ||
215 | "version": "7.0.0", | ||
216 | "resolved": "https://registry.npmjs.org/jss-vendor-prefixer/-/jss-vendor-prefixer-7.0.0.tgz", | ||
217 | "integrity": "sha512-Agd+FKmvsI0HLcYXkvy8GYOw3AAASBUpsmIRvVQheps+JWaN892uFOInTr0DRydwaD91vSSUCU4NssschvF7MA==", | ||
218 | "requires": { | ||
219 | "css-vendor": "^0.3.8" | ||
220 | } | ||
221 | }, | ||
222 | "lodash": { | ||
223 | "version": "4.17.11", | ||
224 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", | ||
225 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" | ||
226 | }, | ||
227 | "loose-envify": { | ||
228 | "version": "1.4.0", | ||
229 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", | ||
230 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", | ||
231 | "requires": { | ||
232 | "js-tokens": "^3.0.0 || ^4.0.0" | ||
233 | } | ||
234 | }, | ||
235 | "mobx": { | ||
236 | "version": "5.8.0", | ||
237 | "resolved": "https://registry.npmjs.org/mobx/-/mobx-5.8.0.tgz", | ||
238 | "integrity": "sha512-NsZB+9bF5j+nv9Qwk6bNeE3np26a4TbTGkMpOLf6o1zXoM9BtHPQn/00px4uZ2AXJXtQML5P4MEWdMm6icMIfQ==" | ||
239 | }, | ||
240 | "mobx-react": { | ||
241 | "version": "5.4.3", | ||
242 | "resolved": "https://registry.npmjs.org/mobx-react/-/mobx-react-5.4.3.tgz", | ||
243 | "integrity": "sha512-WC8yFlwvJ91hy8j6CrydAuFteUafcuvdITFQeHl3LRIf5ayfT/4W3M/byhEYD2BcJWejeXr8y4Rh2H26RunCRQ==", | ||
244 | "requires": { | ||
245 | "hoist-non-react-statics": "^3.0.0", | ||
246 | "react-lifecycles-compat": "^3.0.2" | ||
247 | } | ||
248 | }, | ||
249 | "object-assign": { | ||
250 | "version": "4.1.1", | ||
251 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", | ||
252 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" | ||
253 | }, | ||
254 | "prop-types": { | ||
255 | "version": "15.6.2", | ||
256 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", | ||
257 | "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", | ||
258 | "requires": { | ||
259 | "loose-envify": "^1.3.1", | ||
260 | "object-assign": "^4.1.1" | ||
261 | } | ||
262 | }, | ||
263 | "react": { | ||
264 | "version": "16.7.0", | ||
265 | "resolved": "https://registry.npmjs.org/react/-/react-16.7.0.tgz", | ||
266 | "integrity": "sha512-StCz3QY8lxTb5cl2HJxjwLFOXPIFQp+p+hxQfc8WE0QiLfCtIlKj8/+5tjjKm8uSTlAW+fCPaavGFS06V9Ar3A==", | ||
267 | "requires": { | ||
268 | "loose-envify": "^1.1.0", | ||
269 | "object-assign": "^4.1.1", | ||
270 | "prop-types": "^15.6.2", | ||
271 | "scheduler": "^0.12.0" | ||
272 | } | ||
273 | }, | ||
22 | "react-html-attributes": { | 274 | "react-html-attributes": { |
23 | "version": "1.4.3", | 275 | "version": "1.4.3", |
24 | "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.3.tgz", | 276 | "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.3.tgz", |
@@ -26,6 +278,68 @@ | |||
26 | "requires": { | 278 | "requires": { |
27 | "html-element-attributes": "^1.0.0" | 279 | "html-element-attributes": "^1.0.0" |
28 | } | 280 | } |
281 | }, | ||
282 | "react-is": { | ||
283 | "version": "16.7.0", | ||
284 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.7.0.tgz", | ||
285 | "integrity": "sha512-Z0VRQdF4NPDoI0tsXVMLkJLiwEBa+RP66g0xDHxgxysxSoCUccSten4RTF/UFvZF1dZvZ9Zu1sx+MDXwcOR34g==" | ||
286 | }, | ||
287 | "react-jss": { | ||
288 | "version": "8.6.1", | ||
289 | "resolved": "https://registry.npmjs.org/react-jss/-/react-jss-8.6.1.tgz", | ||
290 | "integrity": "sha512-SH6XrJDJkAphp602J14JTy3puB2Zxz1FkM3bKVE8wON+va99jnUTKWnzGECb3NfIn9JPR5vHykge7K3/A747xQ==", | ||
291 | "requires": { | ||
292 | "hoist-non-react-statics": "^2.5.0", | ||
293 | "jss": "^9.7.0", | ||
294 | "jss-preset-default": "^4.3.0", | ||
295 | "prop-types": "^15.6.0", | ||
296 | "theming": "^1.3.0" | ||
297 | }, | ||
298 | "dependencies": { | ||
299 | "hoist-non-react-statics": { | ||
300 | "version": "2.5.5", | ||
301 | "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", | ||
302 | "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" | ||
303 | } | ||
304 | } | ||
305 | }, | ||
306 | "react-lifecycles-compat": { | ||
307 | "version": "3.0.4", | ||
308 | "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", | ||
309 | "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" | ||
310 | }, | ||
311 | "scheduler": { | ||
312 | "version": "0.12.0", | ||
313 | "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.12.0.tgz", | ||
314 | "integrity": "sha512-t7MBR28Akcp4Jm+QoR63XgAi9YgCUmgvDHqf5otgAj4QvdoBE4ImCX0ffehefePPG+aitiYHp0g/mW6s4Tp+dw==", | ||
315 | "requires": { | ||
316 | "loose-envify": "^1.1.0", | ||
317 | "object-assign": "^4.1.1" | ||
318 | } | ||
319 | }, | ||
320 | "symbol-observable": { | ||
321 | "version": "1.2.0", | ||
322 | "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", | ||
323 | "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==" | ||
324 | }, | ||
325 | "theming": { | ||
326 | "version": "1.3.0", | ||
327 | "resolved": "https://registry.npmjs.org/theming/-/theming-1.3.0.tgz", | ||
328 | "integrity": "sha512-ya5Ef7XDGbTPBv5ENTwrwkPUexrlPeiAg/EI9kdlUAZhNlRbCdhMKRgjNX1IcmsmiPcqDQZE6BpSaH+cr31FKw==", | ||
329 | "requires": { | ||
330 | "brcast": "^3.0.1", | ||
331 | "is-function": "^1.0.1", | ||
332 | "is-plain-object": "^2.0.1", | ||
333 | "prop-types": "^15.5.8" | ||
334 | } | ||
335 | }, | ||
336 | "warning": { | ||
337 | "version": "3.0.0", | ||
338 | "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", | ||
339 | "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", | ||
340 | "requires": { | ||
341 | "loose-envify": "^1.0.0" | ||
342 | } | ||
29 | } | 343 | } |
30 | } | 344 | } |
31 | } | 345 | } |
diff --git a/packages/forms/package.json b/packages/forms/package.json index 68d500593..68800dd40 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json | |||
@@ -25,9 +25,7 @@ | |||
25 | "dependencies": { | 25 | "dependencies": { |
26 | "@mdi/js": "^3.3.92", | 26 | "@mdi/js": "^3.3.92", |
27 | "@mdi/react": "^1.1.0", | 27 | "@mdi/react": "^1.1.0", |
28 | "react-html-attributes": "^1.4.3" | 28 | "react-html-attributes": "^1.4.3", |
29 | }, | ||
30 | "peerDependencies": { | ||
31 | "@meetfranz/theme": "file:../theme", | 29 | "@meetfranz/theme": "file:../theme", |
32 | "classnames": "^2.2.6", | 30 | "classnames": "^2.2.6", |
33 | "lodash": "^4.17.11", | 31 | "lodash": "^4.17.11", |
diff --git a/packages/forms/src/index.ts b/packages/forms/src/index.ts index fe6f09222..3f24ecaf7 100644 --- a/packages/forms/src/index.ts +++ b/packages/forms/src/index.ts | |||
@@ -1,7 +1 @@ | |||
1 | export { default as Input } from './input'; | export { default as Input } from './input'; | |
2 | |||
3 | // import InputComponent from './input'; | ||
4 | |||
5 | console.log('YOLOOOOO00OO', 'InputComponent'); | ||
6 | |||
7 | // export const Input = InputComponent; | ||
diff --git a/packages/forms/src/input/styles.ts b/packages/forms/src/input/styles.ts index 46c0ef701..2cdda12ee 100644 --- a/packages/forms/src/input/styles.ts +++ b/packages/forms/src/input/styles.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import * as CSS from 'csstype'; | 1 | import CSS from 'csstype'; |
2 | import { Theme } from '../../../theme/lib'; | 2 | import { Theme } from '../../../theme/lib'; |
3 | 3 | ||
4 | const prefixStyles = (theme: Theme) => ({ | 4 | const prefixStyles = (theme: Theme) => ({ |
diff --git a/packages/forms/webpack.config.js b/packages/forms/webpack.config.js index 43deab722..8ad7ee3b6 100644 --- a/packages/forms/webpack.config.js +++ b/packages/forms/webpack.config.js | |||
@@ -1,41 +1,10 @@ | |||
1 | const path = require('path'); | 1 | const path = require('path'); |
2 | const TerserPlugin = require('terser-webpack-plugin'); | 2 | const baseConfig = require('../../webpack.config.base')(__dirname); |
3 | 3 | ||
4 | module.exports = { | 4 | module.exports = Object.assign({}, baseConfig, { |
5 | entry: path.join(__dirname, '/src/index.ts'), | ||
6 | context: __dirname, | ||
7 | output: { | 5 | output: { |
8 | filename: 'index.js', | 6 | filename: 'index.js', |
9 | path: path.join(__dirname, 'lib'), | 7 | path: path.join(__dirname, 'lib'), |
10 | libraryTarget: 'commonjs2', | 8 | libraryTarget: 'commonjs2', |
11 | }, | 9 | }, |
12 | module: { | 10 | }); |
13 | rules: [{ | ||
14 | test: /\.tsx?$/, | ||
15 | loader: 'ts-loader', | ||
16 | exclude: /node_modules/, | ||
17 | }], | ||
18 | }, | ||
19 | resolve: { | ||
20 | extensions: ['.tsx', '.ts', '.js'], | ||
21 | }, | ||
22 | externals: { | ||
23 | '@meetfranz/theme': '@meetfranz/theme', | ||
24 | lodash: { | ||
25 | commonjs: 'lodash', | ||
26 | commonjs2: 'lodash', | ||
27 | amd: 'lodash', | ||
28 | root: '_', | ||
29 | }, | ||
30 | classnames: 'classnames', | ||
31 | mobx: 'mobx', | ||
32 | mobxReact: 'mobx-react', | ||
33 | react: 'react', | ||
34 | reactJss: 'react-jss', | ||
35 | }, | ||
36 | devtool: 'inline-source-map', | ||
37 | optimization: { | ||
38 | minimizer: [new TerserPlugin()], | ||
39 | }, | ||
40 | mode: process.env.NODE_ENV === 'development' ? 'development' : 'production', | ||
41 | }; | ||