eatci-file-validator 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/FileValidator/FileValidator.d.ts +8 -0
  3. package/dist/cjs/components/FileValidator/FileValidator.js +41 -0
  4. package/dist/cjs/components/FileValidator/FileValidator.js.map +1 -0
  5. package/dist/cjs/components/FileValidator/index.d.ts +2 -0
  6. package/dist/cjs/components/FileValidator/index.js +6 -0
  7. package/dist/cjs/components/FileValidator/index.js.map +1 -0
  8. package/dist/cjs/components/FileValidator/rules.d.ts +22 -0
  9. package/dist/cjs/components/FileValidator/rules.js +439 -0
  10. package/dist/cjs/components/FileValidator/rules.js.map +1 -0
  11. package/dist/cjs/components/FileValidator/theme.d.ts +2 -0
  12. package/dist/cjs/components/FileValidator/theme.js +27 -0
  13. package/dist/cjs/components/FileValidator/theme.js.map +1 -0
  14. package/dist/cjs/components/FileValidator/translations.d.ts +70 -0
  15. package/dist/cjs/components/FileValidator/translations.js +72 -0
  16. package/dist/cjs/components/FileValidator/translations.js.map +1 -0
  17. package/dist/cjs/index.d.ts +3 -2
  18. package/dist/cjs/index.js +3 -4
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/cjs/types.d.ts +33 -0
  21. package/dist/cjs/types.js +3 -0
  22. package/dist/cjs/types.js.map +1 -0
  23. package/dist/esm/components/FileValidator/FileValidator.d.ts +8 -0
  24. package/dist/esm/components/FileValidator/FileValidator.js +37 -0
  25. package/dist/esm/components/FileValidator/FileValidator.js.map +1 -0
  26. package/dist/esm/components/FileValidator/index.d.ts +2 -0
  27. package/dist/esm/components/FileValidator/index.js +3 -0
  28. package/dist/esm/components/FileValidator/index.js.map +1 -0
  29. package/dist/esm/components/FileValidator/rules.d.ts +22 -0
  30. package/dist/esm/components/FileValidator/rules.js +437 -0
  31. package/dist/esm/components/FileValidator/rules.js.map +1 -0
  32. package/dist/esm/components/FileValidator/theme.d.ts +2 -0
  33. package/dist/esm/components/FileValidator/theme.js +25 -0
  34. package/dist/esm/components/FileValidator/theme.js.map +1 -0
  35. package/dist/esm/components/FileValidator/translations.d.ts +70 -0
  36. package/dist/esm/components/FileValidator/translations.js +70 -0
  37. package/dist/esm/components/FileValidator/translations.js.map +1 -0
  38. package/dist/esm/index.d.ts +3 -2
  39. package/dist/esm/index.js +2 -2
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/types.d.ts +33 -0
  42. package/dist/esm/types.js +2 -0
  43. package/dist/esm/types.js.map +1 -0
  44. package/package.json +19 -19
package/README.md CHANGED
@@ -24,7 +24,7 @@ Add `FileValidator` to your component:
24
24
  ```js
25
25
  import React from 'react'
26
26
  import ReactDOM from 'react-dom/client'
27
- import { FileValidator } from 'eatci-file-validator'
27
+ import FileValidator from 'eatci-file-validator'
28
28
 
29
29
  const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
30
30
  root.render(
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ onOpen: (...args: any[]) => unknown;
3
+ onSubmit: (...args: any[]) => unknown;
4
+ onClose: (...args: any[]) => unknown;
5
+ show: boolean;
6
+ };
7
+ export default function FileValidator({ show, onOpen, onClose, onSubmit }: Props): JSX.Element;
8
+ export {};
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var react_1 = tslib_1.__importStar(require("react"));
5
+ var react_2 = require("@chakra-ui/react");
6
+ var react_spreadsheet_import_1 = require("react-spreadsheet-import");
7
+ var rules_1 = tslib_1.__importDefault(require("./rules"));
8
+ var translations_1 = tslib_1.__importDefault(require("./translations"));
9
+ var theme_1 = tslib_1.__importDefault(require("./theme"));
10
+ function FileValidator(_a) {
11
+ var show = _a.show, onOpen = _a.onOpen, onClose = _a.onClose, onSubmit = _a.onSubmit;
12
+ (0, react_1.useEffect)(function () {
13
+ if (show) {
14
+ onOpen();
15
+ }
16
+ }, [show, onOpen]);
17
+ var handleOnSubmit = function (data) {
18
+ onSubmit(data);
19
+ };
20
+ return (react_1.default.createElement(react_1.default.Fragment, null,
21
+ react_1.default.createElement(react_2.ChakraProvider, { theme: theme_1.default },
22
+ react_1.default.createElement(react_spreadsheet_import_1.ReactSpreadsheetImport, { isOpen: show, onClose: onClose, onSubmit: handleOnSubmit, fields: rules_1.default.fields, dateFormat: 'dd/mm/yyyy', allowInvalidSubmit: false, customTheme: {
23
+ colors: {
24
+ textColor: '#2D3748',
25
+ subtitleColor: '#718096',
26
+ rsi: {
27
+ 100: '#ff7800',
28
+ 200: '#ff7800',
29
+ 300: '#ff7800',
30
+ 400: '#ff7800',
31
+ 500: '#ff7800',
32
+ 600: '#ff7800',
33
+ 700: '#e75b2a',
34
+ 800: '#e75b2a',
35
+ 900: '#e75b2a',
36
+ },
37
+ },
38
+ }, translations: translations_1.default }))));
39
+ }
40
+ exports.default = FileValidator;
41
+ //# sourceMappingURL=FileValidator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileValidator.js","sourceRoot":"","sources":["../../../../src/components/FileValidator/FileValidator.tsx"],"names":[],"mappings":";;;AAAA,qDAAwC;AACxC,0CAAiD;AACjD,qEAAiE;AACjE,0DAA2B;AAC3B,wEAAyC;AACzC,0DAA2B;AAS3B,SAAwB,aAAa,CAAC,EAA0C;QAAxC,IAAI,UAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA;IACrE,IAAA,iBAAS,EAAC;QACR,IAAI,IAAI,EAAE;YACR,MAAM,EAAE,CAAA;SACT;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IAElB,IAAM,cAAc,GAAG,UAAC,IAAS;QAC/B,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC,CAAA;IAED,OAAO,CACL;QACE,8BAAC,sBAAc,IAAC,KAAK,EAAE,eAAK;YAC1B,8BAAC,iDAAsB,IACrB,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,eAAK,CAAC,MAAM,EACpB,UAAU,EAAC,YAAY,EACvB,kBAAkB,EAAE,KAAK,EACzB,WAAW,EAAE;oBACX,MAAM,EAAE;wBACN,SAAS,EAAE,SAAS;wBACpB,aAAa,EAAE,SAAS;wBACxB,GAAG,EAAE;4BACH,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;4BACd,GAAG,EAAE,SAAS;yBACf;qBACF;iBACF,EACD,YAAY,EAAE,sBAAY,GAC1B,CACa,CAChB,CACJ,CAAA;AACH,CAAC;AA3CD,gCA2CC"}
@@ -0,0 +1,2 @@
1
+ import FileValidator from './FileValidator';
2
+ export default FileValidator;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var FileValidator_1 = tslib_1.__importDefault(require("./FileValidator"));
5
+ exports.default = FileValidator_1.default;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FileValidator/index.ts"],"names":[],"mappings":";;;AAAA,0EAA2C;AAE3C,kBAAe,uBAAa,CAAA"}
@@ -0,0 +1,22 @@
1
+ declare const _default: {
2
+ fields: {
3
+ label: string;
4
+ key: string;
5
+ fieldType: {
6
+ type: string;
7
+ };
8
+ example: string;
9
+ validations: ({
10
+ rule: string;
11
+ errorMessage: string;
12
+ level: string;
13
+ value?: undefined;
14
+ } | {
15
+ rule: string;
16
+ value: string;
17
+ errorMessage: string;
18
+ level: string;
19
+ })[];
20
+ }[];
21
+ };
22
+ export default _default;
@@ -0,0 +1,439 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ fields: [
5
+ {
6
+ label: "Date d'effet",
7
+ key: 'DATE_D_EFFET_DU_CONTRAT',
8
+ fieldType: {
9
+ type: 'input',
10
+ },
11
+ example: '01/01/2023',
12
+ validations: [
13
+ {
14
+ rule: 'required',
15
+ errorMessage: "La date d'effet est requise",
16
+ level: 'error',
17
+ },
18
+ {
19
+ rule: 'regex',
20
+ value: '^\\d{2}/\\d{2}/\\d{4}$',
21
+ errorMessage: "Le format de la date d'effet est incorrect",
22
+ level: 'error',
23
+ },
24
+ ],
25
+ },
26
+ {
27
+ label: "Date d'expiration",
28
+ key: 'DATE_D_ECHEANCE_DU_CONTRAT',
29
+ fieldType: {
30
+ type: 'input',
31
+ },
32
+ example: '01/01/2023',
33
+ validations: [
34
+ {
35
+ rule: 'required',
36
+ errorMessage: "La date d'expiration est requise",
37
+ level: 'error',
38
+ },
39
+ {
40
+ rule: 'regex',
41
+ value: '^\\d{2}/\\d{2}/\\d{4}$',
42
+ errorMessage: "Le format de la date d'échéance est incorrect",
43
+ level: 'error',
44
+ },
45
+ ],
46
+ },
47
+ {
48
+ label: 'Genre du vehicule',
49
+ key: 'GENRE_DU_VEHICULE',
50
+ fieldType: {
51
+ type: 'input',
52
+ },
53
+ example: 'GV01',
54
+ validations: [
55
+ {
56
+ rule: 'required',
57
+ errorMessage: 'Le genre du véhicule est requis',
58
+ level: 'error',
59
+ },
60
+ {
61
+ rule: 'regex',
62
+ value: '^GV\\d{2}$',
63
+ errorMessage: 'Le format du genre du véhicule est incorrect',
64
+ level: 'error',
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ label: "Numéro d'immatriculation",
70
+ key: 'IMMATRICULATION_DU_VEHICULE',
71
+ fieldType: {
72
+ type: 'input',
73
+ },
74
+ example: '0114AS01',
75
+ validations: [
76
+ {
77
+ rule: 'required',
78
+ errorMessage: "L'immatriculation est requis",
79
+ level: 'error',
80
+ },
81
+ ],
82
+ },
83
+ {
84
+ label: 'Type de véhicule',
85
+ key: 'TYPE_DU_VEHICULE',
86
+ fieldType: {
87
+ type: 'input',
88
+ },
89
+ example: 'TV01',
90
+ validations: [
91
+ {
92
+ rule: 'required',
93
+ errorMessage: 'Le type du véhicule est requis',
94
+ level: 'error',
95
+ },
96
+ {
97
+ rule: 'regex',
98
+ value: '^TV\\d{2}$',
99
+ errorMessage: 'Le format du type du véhicule est incorrect',
100
+ level: 'error',
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ label: 'Modèle du véhicule',
106
+ key: 'MODELE_DU_VEHICULE',
107
+ fieldType: {
108
+ type: 'input',
109
+ },
110
+ example: 'X5',
111
+ validations: [
112
+ {
113
+ rule: 'required',
114
+ errorMessage: 'Le modèle du véhicule est requis',
115
+ level: 'error',
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ label: 'Catégorie du véhicule',
121
+ key: 'CATEGORIE_DU_VEHICULE',
122
+ fieldType: {
123
+ type: 'input',
124
+ },
125
+ example: '01',
126
+ validations: [
127
+ {
128
+ rule: 'required',
129
+ errorMessage: 'La catégorie est requise',
130
+ level: 'error',
131
+ },
132
+ {
133
+ rule: 'regex',
134
+ value: '^\\d{2}$',
135
+ errorMessage: 'Le format de la catégorie du véhicule est incorrect',
136
+ level: 'error',
137
+ },
138
+ ],
139
+ },
140
+ {
141
+ label: 'Usage du véhicule',
142
+ key: 'USAGE_DU_VEHICULE',
143
+ fieldType: {
144
+ type: 'input',
145
+ },
146
+ example: 'UV01',
147
+ validations: [
148
+ {
149
+ rule: 'required',
150
+ errorMessage: "L'usage est requis",
151
+ level: 'error',
152
+ },
153
+ {
154
+ rule: 'regex',
155
+ value: '^UV\\d{2}$',
156
+ errorMessage: 'Le format de la catégorie du véhicule est incorrect',
157
+ level: 'error',
158
+ },
159
+ ],
160
+ },
161
+ {
162
+ label: "Source d'énergie",
163
+ key: 'ENERGIE_DU_VEHICULE',
164
+ fieldType: {
165
+ type: 'input',
166
+ },
167
+ example: 'SEES',
168
+ validations: [
169
+ {
170
+ rule: 'required',
171
+ errorMessage: "La source d'energie est requise",
172
+ level: 'error',
173
+ },
174
+ {
175
+ rule: 'regex',
176
+ value: '^(SEES|SEDI|SEHY|SEEL)$',
177
+ errorMessage: "Le format de la source d'énergie est incorrect",
178
+ level: 'error',
179
+ },
180
+ ],
181
+ },
182
+ {
183
+ label: 'Nombre de place',
184
+ key: 'NOMBRE_DE_PLACE_DU_VEHICULE',
185
+ fieldType: {
186
+ type: 'input',
187
+ },
188
+ example: '5',
189
+ validations: [
190
+ {
191
+ rule: 'required',
192
+ errorMessage: 'Le nombre de place est requis',
193
+ level: 'error',
194
+ },
195
+ {
196
+ rule: 'regex',
197
+ value: '^\\d+$',
198
+ errorMessage: 'Le nombre de place doit être un nombre',
199
+ level: 'error',
200
+ },
201
+ ],
202
+ },
203
+ {
204
+ label: 'Marque du véhicule',
205
+ key: 'MARQUE_DU_VEHICULE',
206
+ fieldType: {
207
+ type: 'input',
208
+ },
209
+ example: 'TOYOTA',
210
+ validations: [
211
+ {
212
+ rule: 'required',
213
+ errorMessage: 'La marque est requise',
214
+ level: 'error',
215
+ },
216
+ ],
217
+ },
218
+ {
219
+ label: 'Numéro de chassis',
220
+ key: 'NUMERO_DE_CHASSIS_DU_VEHICULE',
221
+ fieldType: {
222
+ type: 'input',
223
+ },
224
+ example: '01A1',
225
+ validations: [
226
+ {
227
+ rule: 'required',
228
+ errorMessage: 'Le numéro de chassis est requis',
229
+ level: 'error',
230
+ },
231
+ ],
232
+ },
233
+ {
234
+ label: 'Nom du souscripteur',
235
+ key: 'NOM_DU_SOUSCRIPTEUR',
236
+ fieldType: {
237
+ type: 'input',
238
+ },
239
+ example: 'DION DETY',
240
+ validations: [
241
+ {
242
+ rule: 'required',
243
+ errorMessage: 'Le nom du souscripteur est requis',
244
+ level: 'error',
245
+ },
246
+ ],
247
+ },
248
+ {
249
+ label: 'Type de souscripteur',
250
+ key: 'TYPE_DE_SOUSCRIPTEUR',
251
+ fieldType: {
252
+ type: 'input',
253
+ },
254
+ example: 'TAPP',
255
+ validations: [
256
+ {
257
+ rule: 'required',
258
+ errorMessage: 'Le type du souscripteur est requis',
259
+ level: 'error',
260
+ },
261
+ {
262
+ rule: 'regex',
263
+ value: '^(TSPP|TSPM)$',
264
+ errorMessage: 'Le type de souscripteur est incorrect',
265
+ level: 'error',
266
+ },
267
+ ],
268
+ },
269
+ {
270
+ label: 'E-mail souscripteur',
271
+ key: 'ADRESSE_EMAIL_DU_SOUSCRIPTEUR',
272
+ fieldType: {
273
+ type: 'input',
274
+ },
275
+ example: 'support@asacitechnologies.com',
276
+ validations: [
277
+ {
278
+ rule: 'required',
279
+ errorMessage: "L'email du souscripteur est requis.",
280
+ level: 'error',
281
+ },
282
+ {
283
+ rule: 'regex',
284
+ value: '/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/',
285
+ errorMessage: "L'email du souscripteur est incorrect.",
286
+ level: 'error',
287
+ },
288
+ ],
289
+ },
290
+ {
291
+ label: 'Contact du souscripteur',
292
+ key: 'NUMERO_DE_TELEPHONE_DU_SOUSCRIPTEUR',
293
+ fieldType: {
294
+ type: 'input',
295
+ },
296
+ example: '0700000000',
297
+ validations: [
298
+ {
299
+ rule: 'required',
300
+ errorMessage: 'Le contact du souscripteur est requis',
301
+ level: 'error',
302
+ },
303
+ ],
304
+ },
305
+ {
306
+ label: 'Boite postale souscripteur',
307
+ key: 'BOITE_POSTALE_DU_SOUSCRIPTEUR',
308
+ fieldType: {
309
+ type: 'input',
310
+ },
311
+ example: '21 BP 5137 ABJ 21',
312
+ validations: [
313
+ {
314
+ rule: 'required',
315
+ errorMessage: 'La boite postale du souscripteur est requise',
316
+ level: 'error',
317
+ },
318
+ ],
319
+ },
320
+ {
321
+ label: "Nom de l'assuré",
322
+ key: 'NOM_DE_L_ASSURE',
323
+ fieldType: {
324
+ type: 'input',
325
+ },
326
+ example: 'SALOMON DION',
327
+ validations: [
328
+ {
329
+ rule: 'required',
330
+ errorMessage: "Le nom de l'assuré est requis",
331
+ level: 'error',
332
+ },
333
+ ],
334
+ },
335
+ {
336
+ label: "E-mail de l'assuré",
337
+ key: 'ADRESSE_EMAIL_DE_L_ASSURE',
338
+ fieldType: {
339
+ type: 'input',
340
+ },
341
+ example: 'mon@assure.com',
342
+ validations: [
343
+ {
344
+ rule: 'required',
345
+ errorMessage: "L'email de l'assuré est requis",
346
+ level: 'error',
347
+ },
348
+ ],
349
+ },
350
+ {
351
+ label: "Boite postale de l'assuré",
352
+ key: 'BOITE_POSTALE_DE_L_ASSURE',
353
+ fieldType: {
354
+ type: 'input',
355
+ },
356
+ example: '01 BP ABJ 01',
357
+ validations: [
358
+ {
359
+ rule: 'required',
360
+ errorMessage: "La boite postale de l'assuré est requise",
361
+ level: 'error',
362
+ },
363
+ ],
364
+ },
365
+ {
366
+ label: "Contact de l'assuré",
367
+ key: 'TELEPHONE_MOBILE_DE_L_ASSURE',
368
+ fieldType: {
369
+ type: 'input',
370
+ },
371
+ example: '0708000000',
372
+ validations: [
373
+ {
374
+ rule: 'required',
375
+ errorMessage: "Le contact de l'assuré est requis",
376
+ level: 'error',
377
+ },
378
+ ],
379
+ },
380
+ {
381
+ label: 'Numéro de police',
382
+ key: 'NUMERO_DE_POLICE',
383
+ fieldType: {
384
+ type: 'input',
385
+ },
386
+ example: '01/2023',
387
+ validations: [
388
+ {
389
+ rule: 'required',
390
+ errorMessage: 'Le numéro de police est requis',
391
+ level: 'error',
392
+ },
393
+ ],
394
+ },
395
+ {
396
+ label: 'Montant de la RC',
397
+ key: 'PRIME_RC',
398
+ fieldType: {
399
+ type: 'input',
400
+ },
401
+ example: '100',
402
+ validations: [
403
+ {
404
+ rule: 'required',
405
+ errorMessage: 'La RC est requise',
406
+ level: 'error',
407
+ },
408
+ {
409
+ rule: 'regex',
410
+ value: '^\\d+$',
411
+ errorMessage: 'La RC doit être un nombre',
412
+ level: 'error',
413
+ },
414
+ ],
415
+ },
416
+ {
417
+ label: "Type d'attestation",
418
+ key: 'TYPE_D_ATTESTATION_A_EDITER',
419
+ fieldType: {
420
+ type: 'input',
421
+ },
422
+ example: 'cimajaune',
423
+ validations: [
424
+ {
425
+ rule: 'required',
426
+ errorMessage: "Le type d'attestation est requis",
427
+ level: 'error',
428
+ },
429
+ {
430
+ rule: 'regex',
431
+ value: '^(cimajaune|cimaverte)$',
432
+ errorMessage: "Le type d'attestation est incorrect",
433
+ level: 'error',
434
+ },
435
+ ],
436
+ },
437
+ ],
438
+ };
439
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/components/FileValidator/rules.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN;YACE,KAAK,EAAE,cAAc;YACrB,GAAG,EAAE,yBAAyB;YAC9B,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE,6BAA6B;oBAC3C,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,wBAAwB;oBAC/B,YAAY,EAAE,4CAA4C;oBAC1D,KAAK,EAAE,OAAO;iBACf;aACF;SACF;QACD;YACE,KAAK,EAAE,mBAAmB;YAC1B,GAAG,EAAE,4BAA4B;YACjC,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE,kCAAkC;oBAChD,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,wBAAwB;oBAC/B,YAAY,EAAE,+CAA+C;oBAC7D,KAAK,EAAE,OAAO;iBACf;aACF;SACF;QACD;YACE,KA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EAAE,oBAAoB;YAC3B,GAAG,EAAE,6BAA6B;YAClC,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE,kCAAkC;oBAChD,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,yBAAyB;oBAChC,YAAY,EAAE,qCAAqC;oBACnD,KAAK,EAAE,OAAO;iBACf;aACF;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,2 @@
1
+ declare const theme: import("@chakra-ui/utils").Dict;
2
+ export default theme;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_1 = require("@chakra-ui/react");
4
+ var theme = (0, react_1.extendTheme)({
5
+ fonts: {
6
+ heading: "'Nunito', sans-serif",
7
+ body: "'Nunito', sans-serif",
8
+ },
9
+ colors: {
10
+ brand: {
11
+ 100: '#ff7800',
12
+ 200: '#ff7800',
13
+ 300: '#f7fafc',
14
+ 400: '#f7fafc',
15
+ 500: '#f7fafc',
16
+ 600: '#ff7800',
17
+ 700: '#e75b2a',
18
+ 800: '#e75b2a',
19
+ 900: '#e75b2a',
20
+ },
21
+ },
22
+ config: {
23
+ initialColorMode: 'light',
24
+ },
25
+ });
26
+ exports.default = theme;
27
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/components/FileValidator/theme.tsx"],"names":[],"mappings":";;AAAA,0CAA8C;AAE9C,IAAM,KAAK,GAAG,IAAA,mBAAW,EAAC;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,sBAAsB;KAC7B;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;SACf;KACF;IACD,MAAM,EAAE;QACN,gBAAgB,EAAE,OAAO;KAC1B;CACF,CAAC,CAAA;AAEF,kBAAe,KAAK,CAAA"}
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ uploadStep: {
3
+ title: string;
4
+ manifestTitle: string;
5
+ manifestDescription: string;
6
+ maxRecordsExceeded: (maxRecords: string) => string;
7
+ dropzone: {
8
+ title: string;
9
+ errorToastDescription: string;
10
+ activeDropzoneTitle: string;
11
+ buttonTitle: string;
12
+ loadingTitle: string;
13
+ };
14
+ selectSheet: {
15
+ title: string;
16
+ nextButtonTitle: string;
17
+ };
18
+ };
19
+ selectHeaderStep: {
20
+ title: string;
21
+ nextButtonTitle: string;
22
+ };
23
+ matchColumnsStep: {
24
+ title: string;
25
+ nextButtonTitle: string;
26
+ userTableTitle: string;
27
+ templateTitle: string;
28
+ selectPlaceholder: string;
29
+ ignoredColumnText: string;
30
+ subSelectPlaceholder: string;
31
+ matchDropdownTitle: string;
32
+ unmatched: string;
33
+ duplicateColumnWarningTitle: string;
34
+ duplicateColumnWarningDescription: string;
35
+ };
36
+ validationStep: {
37
+ title: string;
38
+ nextButtonTitle: string;
39
+ noRowsMessage: string;
40
+ noRowsMessageWhenFiltered: string;
41
+ discardButtonTitle: string;
42
+ filterSwitchTitle: string;
43
+ };
44
+ alerts: {
45
+ confirmClose: {
46
+ headerTitle: string;
47
+ bodyText: string;
48
+ cancelButtonTitle: string;
49
+ exitButtonTitle: string;
50
+ };
51
+ submitIncomplete: {
52
+ headerTitle: string;
53
+ bodyText: string;
54
+ bodyTextSubmitForbidden: string;
55
+ cancelButtonTitle: string;
56
+ finishButtonTitle: string;
57
+ };
58
+ unmatchedRequiredFields: {
59
+ headerTitle: string;
60
+ bodyText: string;
61
+ listTitle: string;
62
+ cancelButtonTitle: string;
63
+ continueButtonTitle: string;
64
+ };
65
+ toast: {
66
+ error: string;
67
+ };
68
+ };
69
+ };
70
+ export default _default;