@innovaccer/design-system 2.7.0-1 → 2.7.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.
- package/CHANGELOG.md +15 -1
- package/core/accessibility/utils/useAccessibilityProps.ts +30 -6
- package/core/components/atoms/_chip/__tests__/__snapshots__/_chip.test.tsx.snap +8 -0
- package/core/components/atoms/avatarGroup/AvatarGroup.tsx +1 -0
- package/core/components/atoms/avatarGroup/__stories__/index.story.tsx +1 -1
- package/core/components/atoms/button/__tests__/__snapshots__/Button.test.tsx.snap +9 -0
- package/core/components/atoms/checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +6 -0
- package/core/components/atoms/chipGroup/__tests__/__snapshots__/chipGroup.test.tsx.snap +4 -0
- package/core/components/atoms/dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +29 -0
- package/core/components/atoms/input/__tests__/__snapshots__/Input.test.tsx.snap +5 -0
- package/core/components/atoms/message/__tests__/__snapshots__/Message.test.tsx.snap +4 -0
- package/core/components/atoms/metaList/__tests__/__snapshots__/MetaList.test.tsx.snap +296 -0
- package/core/components/atoms/metricInput/__tests__/__snapshots__/MetricInput.test.tsx.snap +2 -0
- package/core/components/atoms/multiSlider/Handle.tsx +1 -0
- package/core/components/atoms/toast/__tests__/__snapshots__/Toast.test.tsx.snap +12 -0
- package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +13 -0
- package/core/components/molecules/dropzone/Dropzone.tsx +16 -9
- package/core/components/molecules/dropzone/__stories__/index.story.tsx +15 -1
- package/core/components/molecules/dropzone/__tests__/__snapshots__/Dropzone.test.tsx.snap +68 -70
- package/core/components/molecules/editableDropdown/__tests__/__snapshots__/EditableDropdown.test.tsx.snap +1 -0
- package/core/components/molecules/fileList/__tests__/__snapshots__/FileList.test.tsx.snap +5 -0
- package/core/components/molecules/fileUploader/__tests__/__snapshots__/FileUploader.test.tsx.snap +6 -0
- package/core/components/molecules/fileUploader/__tests__/__snapshots__/FileUploaderList.test.tsx.snap +5 -0
- package/core/components/molecules/fullscreenModal/__tests__/__snapshots__/Fullscreen.test.tsx.snap +6 -0
- package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +30 -0
- package/core/components/molecules/overlayHeader/__tests__/__snapshots__/OverlayHeader.test.tsx.snap +1 -0
- package/core/components/molecules/pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +8 -0
- package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +2 -0
- package/core/components/molecules/stepper/__tests__/__snapshots__/Stepper.test.tsx.snap +4 -0
- package/core/components/molecules/tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +2 -0
- package/core/components/organisms/calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +98 -0
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +34 -0
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +606 -0
- package/core/components/organisms/horizontalNav/__tests__/__snapshots__/HorizontalNav.test.tsx.snap +1 -0
- package/core/components/organisms/inlineMessage/__tests__/__snapshots__/InlineMessage.test.tsx.snap +4 -0
- package/core/components/organisms/navigation/__tests__/__snapshots__/Navigation.test.tsx.snap +2 -0
- package/core/components/organisms/table/__tests__/__snapshots__/Table.test.tsx.snap +1800 -0
- package/core/components/organisms/verticalNav/__tests__/__snapshots__/VerticalNav.test.tsx.snap +14 -0
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +19 -0
- package/dist/core/accessibility/utils/useAccessibilityProps.d.ts +4 -3
- package/dist/index.esm.js +40 -18
- package/dist/index.js +39 -17
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ exports[`MetricInput component
|
|
|
13
13
|
<i
|
|
14
14
|
class="material-icons material-icons-round Icon Icon--subtle MetricInput-icon MetricInput-icon--regular"
|
|
15
15
|
data-test="DesignSystem-MetricInput--icon"
|
|
16
|
+
role="button"
|
|
16
17
|
style="font-size: 16px; width: 16px;"
|
|
17
18
|
>
|
|
18
19
|
events_round
|
|
@@ -63,6 +64,7 @@ exports[`MetricInput component
|
|
|
63
64
|
<i
|
|
64
65
|
class="material-icons material-icons-round Icon Icon--subtle MetricInput-icon MetricInput-icon--regular"
|
|
65
66
|
data-test="DesignSystem-MetricInput--icon"
|
|
67
|
+
role="button"
|
|
66
68
|
style="font-size: 16px; width: 16px;"
|
|
67
69
|
>
|
|
68
70
|
events_round
|
|
@@ -116,6 +116,7 @@ export class Handle extends React.Component<InternalHandleProps, HandleState> {
|
|
|
116
116
|
const { stepSize, value } = this.props;
|
|
117
117
|
const { keyCode } = event;
|
|
118
118
|
|
|
119
|
+
// TODO(a11y): add ARROW_DOWN & ARROW_UP too
|
|
119
120
|
if (keyCode === Keys.ARROW_LEFT) {
|
|
120
121
|
this.changeValue(value - stepSize);
|
|
121
122
|
event.preventDefault();
|
|
@@ -10,6 +10,7 @@ exports[`Toast component
|
|
|
10
10
|
>
|
|
11
11
|
<i
|
|
12
12
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--alert"
|
|
13
|
+
role="button"
|
|
13
14
|
style="font-size: 16px; width: 16px;"
|
|
14
15
|
>
|
|
15
16
|
error_round
|
|
@@ -51,6 +52,7 @@ exports[`Toast component
|
|
|
51
52
|
>
|
|
52
53
|
<i
|
|
53
54
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--info"
|
|
55
|
+
role="button"
|
|
54
56
|
style="font-size: 16px; width: 16px;"
|
|
55
57
|
>
|
|
56
58
|
info_round
|
|
@@ -92,6 +94,7 @@ exports[`Toast component
|
|
|
92
94
|
>
|
|
93
95
|
<i
|
|
94
96
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--success"
|
|
97
|
+
role="button"
|
|
95
98
|
style="font-size: 16px; width: 16px;"
|
|
96
99
|
>
|
|
97
100
|
check_circle_round
|
|
@@ -133,6 +136,7 @@ exports[`Toast component
|
|
|
133
136
|
>
|
|
134
137
|
<i
|
|
135
138
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--warning"
|
|
139
|
+
role="button"
|
|
136
140
|
style="font-size: 16px; width: 16px;"
|
|
137
141
|
>
|
|
138
142
|
error_round
|
|
@@ -174,6 +178,7 @@ exports[`Toast component
|
|
|
174
178
|
>
|
|
175
179
|
<i
|
|
176
180
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--alert"
|
|
181
|
+
role="button"
|
|
177
182
|
style="font-size: 16px; width: 16px;"
|
|
178
183
|
>
|
|
179
184
|
error_round
|
|
@@ -221,6 +226,7 @@ exports[`Toast component
|
|
|
221
226
|
>
|
|
222
227
|
<i
|
|
223
228
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--alert"
|
|
229
|
+
role="button"
|
|
224
230
|
style="font-size: 16px; width: 16px;"
|
|
225
231
|
>
|
|
226
232
|
error_round
|
|
@@ -282,6 +288,7 @@ exports[`Toast component
|
|
|
282
288
|
>
|
|
283
289
|
<i
|
|
284
290
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--info"
|
|
291
|
+
role="button"
|
|
285
292
|
style="font-size: 16px; width: 16px;"
|
|
286
293
|
>
|
|
287
294
|
info_round
|
|
@@ -329,6 +336,7 @@ exports[`Toast component
|
|
|
329
336
|
>
|
|
330
337
|
<i
|
|
331
338
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--info"
|
|
339
|
+
role="button"
|
|
332
340
|
style="font-size: 16px; width: 16px;"
|
|
333
341
|
>
|
|
334
342
|
info_round
|
|
@@ -390,6 +398,7 @@ exports[`Toast component
|
|
|
390
398
|
>
|
|
391
399
|
<i
|
|
392
400
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--success"
|
|
401
|
+
role="button"
|
|
393
402
|
style="font-size: 16px; width: 16px;"
|
|
394
403
|
>
|
|
395
404
|
check_circle_round
|
|
@@ -437,6 +446,7 @@ exports[`Toast component
|
|
|
437
446
|
>
|
|
438
447
|
<i
|
|
439
448
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--success"
|
|
449
|
+
role="button"
|
|
440
450
|
style="font-size: 16px; width: 16px;"
|
|
441
451
|
>
|
|
442
452
|
check_circle_round
|
|
@@ -498,6 +508,7 @@ exports[`Toast component
|
|
|
498
508
|
>
|
|
499
509
|
<i
|
|
500
510
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--warning"
|
|
511
|
+
role="button"
|
|
501
512
|
style="font-size: 16px; width: 16px;"
|
|
502
513
|
>
|
|
503
514
|
error_round
|
|
@@ -545,6 +556,7 @@ exports[`Toast component
|
|
|
545
556
|
>
|
|
546
557
|
<i
|
|
547
558
|
class="material-icons material-icons-round Icon Toast-icon Toast-icon--left Toast-icon--warning"
|
|
559
|
+
role="button"
|
|
548
560
|
style="font-size: 16px; width: 16px;"
|
|
549
561
|
>
|
|
550
562
|
error_round
|
|
@@ -56,6 +56,7 @@ exports[`Dialog component
|
|
|
56
56
|
<i
|
|
57
57
|
class="material-icons material-icons-round Icon Icon--default"
|
|
58
58
|
data-test="DesignSystem-Button--Icon"
|
|
59
|
+
role="button"
|
|
59
60
|
style="font-size: 16px; width: 16px;"
|
|
60
61
|
>
|
|
61
62
|
close_round
|
|
@@ -178,6 +179,7 @@ exports[`Dialog component
|
|
|
178
179
|
<i
|
|
179
180
|
class="material-icons material-icons-round Icon Icon--default"
|
|
180
181
|
data-test="DesignSystem-Button--Icon"
|
|
182
|
+
role="button"
|
|
181
183
|
style="font-size: 16px; width: 16px;"
|
|
182
184
|
>
|
|
183
185
|
close_round
|
|
@@ -298,6 +300,7 @@ exports[`Dialog component
|
|
|
298
300
|
<i
|
|
299
301
|
class="material-icons material-icons-round Icon Icon--default"
|
|
300
302
|
data-test="DesignSystem-Button--Icon"
|
|
303
|
+
role="button"
|
|
301
304
|
style="font-size: 16px; width: 16px;"
|
|
302
305
|
>
|
|
303
306
|
close_round
|
|
@@ -419,6 +422,7 @@ exports[`Dialog component
|
|
|
419
422
|
<i
|
|
420
423
|
class="material-icons material-icons-round Icon Icon--default"
|
|
421
424
|
data-test="DesignSystem-Button--Icon"
|
|
425
|
+
role="button"
|
|
422
426
|
style="font-size: 16px; width: 16px;"
|
|
423
427
|
>
|
|
424
428
|
close_round
|
|
@@ -540,6 +544,7 @@ exports[`Dialog component
|
|
|
540
544
|
<i
|
|
541
545
|
class="material-icons material-icons-round Icon Icon--default"
|
|
542
546
|
data-test="DesignSystem-Button--Icon"
|
|
547
|
+
role="button"
|
|
543
548
|
style="font-size: 16px; width: 16px;"
|
|
544
549
|
>
|
|
545
550
|
close_round
|
|
@@ -661,6 +666,7 @@ exports[`Dialog component
|
|
|
661
666
|
<i
|
|
662
667
|
class="material-icons material-icons-round Icon Icon--default"
|
|
663
668
|
data-test="DesignSystem-Button--Icon"
|
|
669
|
+
role="button"
|
|
664
670
|
style="font-size: 16px; width: 16px;"
|
|
665
671
|
>
|
|
666
672
|
close_round
|
|
@@ -782,6 +788,7 @@ exports[`Dialog component
|
|
|
782
788
|
<i
|
|
783
789
|
class="material-icons material-icons-round Icon Icon--default"
|
|
784
790
|
data-test="DesignSystem-Button--Icon"
|
|
791
|
+
role="button"
|
|
785
792
|
style="font-size: 16px; width: 16px;"
|
|
786
793
|
>
|
|
787
794
|
close_round
|
|
@@ -903,6 +910,7 @@ exports[`Dialog component
|
|
|
903
910
|
<i
|
|
904
911
|
class="material-icons material-icons-round Icon Icon--default"
|
|
905
912
|
data-test="DesignSystem-Button--Icon"
|
|
913
|
+
role="button"
|
|
906
914
|
style="font-size: 16px; width: 16px;"
|
|
907
915
|
>
|
|
908
916
|
close_round
|
|
@@ -1024,6 +1032,7 @@ exports[`Dialog component
|
|
|
1024
1032
|
<i
|
|
1025
1033
|
class="material-icons material-icons-round Icon Icon--default"
|
|
1026
1034
|
data-test="DesignSystem-Button--Icon"
|
|
1035
|
+
role="button"
|
|
1027
1036
|
style="font-size: 16px; width: 16px;"
|
|
1028
1037
|
>
|
|
1029
1038
|
close_round
|
|
@@ -1145,6 +1154,7 @@ exports[`Dialog component
|
|
|
1145
1154
|
<i
|
|
1146
1155
|
class="material-icons material-icons-round Icon Icon--default"
|
|
1147
1156
|
data-test="DesignSystem-Button--Icon"
|
|
1157
|
+
role="button"
|
|
1148
1158
|
style="font-size: 16px; width: 16px;"
|
|
1149
1159
|
>
|
|
1150
1160
|
close_round
|
|
@@ -1266,6 +1276,7 @@ exports[`Dialog component
|
|
|
1266
1276
|
<i
|
|
1267
1277
|
class="material-icons material-icons-round Icon Icon--default"
|
|
1268
1278
|
data-test="DesignSystem-Button--Icon"
|
|
1279
|
+
role="button"
|
|
1269
1280
|
style="font-size: 16px; width: 16px;"
|
|
1270
1281
|
>
|
|
1271
1282
|
close_round
|
|
@@ -1387,6 +1398,7 @@ exports[`Dialog component
|
|
|
1387
1398
|
<i
|
|
1388
1399
|
class="material-icons material-icons-round Icon Icon--default"
|
|
1389
1400
|
data-test="DesignSystem-Button--Icon"
|
|
1401
|
+
role="button"
|
|
1390
1402
|
style="font-size: 16px; width: 16px;"
|
|
1391
1403
|
>
|
|
1392
1404
|
close_round
|
|
@@ -1508,6 +1520,7 @@ exports[`Dialog component
|
|
|
1508
1520
|
<i
|
|
1509
1521
|
class="material-icons material-icons-round Icon Icon--default"
|
|
1510
1522
|
data-test="DesignSystem-Button--Icon"
|
|
1523
|
+
role="button"
|
|
1511
1524
|
style="font-size: 16px; width: 16px;"
|
|
1512
1525
|
>
|
|
1513
1526
|
close_round
|
|
@@ -6,6 +6,7 @@ import DropzoneActive from './DropzoneActive';
|
|
|
6
6
|
import DropzoneError from './DropzoneError';
|
|
7
7
|
import { BaseProps, extractBaseProps } from '@/utils/types';
|
|
8
8
|
import { fileErrorMessages } from './FileErrors';
|
|
9
|
+
import { useAccessibilityProps } from '@/accessibility/utils';
|
|
9
10
|
|
|
10
11
|
export type DropZoneType = 'standard' | 'compressed' | 'tight';
|
|
11
12
|
|
|
@@ -59,9 +60,13 @@ export const Dropzone = (props: DropzoneProps) => {
|
|
|
59
60
|
|
|
60
61
|
const renderDropzone = () => {
|
|
61
62
|
if (isDragReject) return <DropzoneError type={type} error={fileErrorMessages[fileError]} />;
|
|
62
|
-
|
|
63
63
|
if (isDragActive) return <DropzoneActive type={type} />;
|
|
64
64
|
|
|
65
|
+
const buttonAccessibilityProps = useAccessibilityProps({
|
|
66
|
+
onClick: open,
|
|
67
|
+
'aria-label': 'Drag your files here or click to select files',
|
|
68
|
+
});
|
|
69
|
+
|
|
65
70
|
return (
|
|
66
71
|
<React.Fragment>
|
|
67
72
|
{type !== 'tight' && <Icon name="backup" size={64} className={IconClass} />}
|
|
@@ -70,16 +75,18 @@ export const Dropzone = (props: DropzoneProps) => {
|
|
|
70
75
|
<Text size="large" weight="strong" className="mr-2" appearance={disabled ? 'disabled' : 'default'}>
|
|
71
76
|
Drag your files here or
|
|
72
77
|
</Text>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
<Text
|
|
79
|
+
tabIndex={disabled ? -1 : 0}
|
|
80
|
+
className="ml-2 cursor-pointer"
|
|
81
|
+
size="large"
|
|
82
|
+
weight="strong"
|
|
83
|
+
appearance={disabled ? 'disabled' : 'link'}
|
|
84
|
+
{...buttonAccessibilityProps}
|
|
85
|
+
>
|
|
86
|
+
browse files
|
|
87
|
+
</Text>
|
|
80
88
|
<input {...getInputProps()} />
|
|
81
89
|
</span>
|
|
82
|
-
{/* eslint-enable */}
|
|
83
90
|
{formatLabel && <Text appearance={disabled ? 'disabled' : 'subtle'}>{formatLabel}</Text>}
|
|
84
91
|
{sizeLabel && <Text appearance={disabled ? 'disabled' : 'subtle'}>{sizeLabel}</Text>}
|
|
85
92
|
{sampleFileLink && <div className="mt-5">{sampleFileLink}</div>}
|
|
@@ -41,9 +41,17 @@ export const all = () => {
|
|
|
41
41
|
return (
|
|
42
42
|
<React.Fragment>
|
|
43
43
|
{fileItem.networkError && (
|
|
44
|
-
<Button
|
|
44
|
+
<Button
|
|
45
|
+
aria-label={`Remove ${fileItem.file.name}`}
|
|
46
|
+
appearance="transparent"
|
|
47
|
+
icon="refresh"
|
|
48
|
+
size="regular"
|
|
49
|
+
onClick={() => onDelete(fileItem.id)}
|
|
50
|
+
className={'cursor-pointer'}
|
|
51
|
+
/>
|
|
45
52
|
)}
|
|
46
53
|
<Button
|
|
54
|
+
aria-label={`Remove ${fileItem.file.name}`}
|
|
47
55
|
appearance="transparent"
|
|
48
56
|
icon="close"
|
|
49
57
|
size="regular"
|
|
@@ -121,13 +129,16 @@ const customCode = `() => {
|
|
|
121
129
|
<React.Fragment>
|
|
122
130
|
{fileItem.networkError && (
|
|
123
131
|
<Button
|
|
132
|
+
aria-label={\`Remove \${fileItem.file.name}\`}
|
|
124
133
|
appearance="transparent"
|
|
125
134
|
icon="refresh"
|
|
126
135
|
size="regular"
|
|
136
|
+
onClick={() => onDelete(fileItem.id)}
|
|
127
137
|
className={'cursor-pointer'}
|
|
128
138
|
/>
|
|
129
139
|
)}
|
|
130
140
|
<Button
|
|
141
|
+
aria-label={\`Remove \${fileItem.file.name}\`}
|
|
131
142
|
appearance="transparent"
|
|
132
143
|
icon="close"
|
|
133
144
|
size="regular"
|
|
@@ -172,6 +183,9 @@ export default {
|
|
|
172
183
|
docs: {
|
|
173
184
|
docPage: {
|
|
174
185
|
customCode,
|
|
186
|
+
a11yProps: `
|
|
187
|
+
If you are using File list like shown above, don't forget to add \`\`aria-label\`\` to the button.
|
|
188
|
+
`,
|
|
175
189
|
},
|
|
176
190
|
},
|
|
177
191
|
},
|
|
@@ -10,6 +10,7 @@ exports[`Dropzone component snapshot
|
|
|
10
10
|
>
|
|
11
11
|
<i
|
|
12
12
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--compressed"
|
|
13
|
+
role="button"
|
|
13
14
|
style="font-size: 64px; width: 64px;"
|
|
14
15
|
>
|
|
15
16
|
backup_round
|
|
@@ -26,14 +27,13 @@ exports[`Dropzone component snapshot
|
|
|
26
27
|
Drag your files here or
|
|
27
28
|
</span>
|
|
28
29
|
<span
|
|
29
|
-
|
|
30
|
+
aria-label="Drag your files here or click to select files"
|
|
31
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
32
|
+
data-test="DesignSystem-Text"
|
|
33
|
+
role="button"
|
|
34
|
+
tabindex="0"
|
|
30
35
|
>
|
|
31
|
-
|
|
32
|
-
class="Text Text--link Text--strong Text--large"
|
|
33
|
-
data-test="DesignSystem-Text"
|
|
34
|
-
>
|
|
35
|
-
browse files
|
|
36
|
-
</span>
|
|
36
|
+
browse files
|
|
37
37
|
</span>
|
|
38
38
|
<input
|
|
39
39
|
autocomplete="off"
|
|
@@ -70,6 +70,7 @@ exports[`Dropzone component snapshot
|
|
|
70
70
|
>
|
|
71
71
|
<i
|
|
72
72
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard"
|
|
73
|
+
role="button"
|
|
73
74
|
style="font-size: 64px; width: 64px;"
|
|
74
75
|
>
|
|
75
76
|
backup_round
|
|
@@ -86,14 +87,13 @@ exports[`Dropzone component snapshot
|
|
|
86
87
|
Drag your files here or
|
|
87
88
|
</span>
|
|
88
89
|
<span
|
|
89
|
-
|
|
90
|
+
aria-label="Drag your files here or click to select files"
|
|
91
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
92
|
+
data-test="DesignSystem-Text"
|
|
93
|
+
role="button"
|
|
94
|
+
tabindex="0"
|
|
90
95
|
>
|
|
91
|
-
|
|
92
|
-
class="Text Text--link Text--strong Text--large"
|
|
93
|
-
data-test="DesignSystem-Text"
|
|
94
|
-
>
|
|
95
|
-
browse files
|
|
96
|
-
</span>
|
|
96
|
+
browse files
|
|
97
97
|
</span>
|
|
98
98
|
<input
|
|
99
99
|
autocomplete="off"
|
|
@@ -140,14 +140,13 @@ exports[`Dropzone component snapshot
|
|
|
140
140
|
Drag your files here or
|
|
141
141
|
</span>
|
|
142
142
|
<span
|
|
143
|
-
|
|
143
|
+
aria-label="Drag your files here or click to select files"
|
|
144
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
145
|
+
data-test="DesignSystem-Text"
|
|
146
|
+
role="button"
|
|
147
|
+
tabindex="0"
|
|
144
148
|
>
|
|
145
|
-
|
|
146
|
-
class="Text Text--link Text--strong Text--large"
|
|
147
|
-
data-test="DesignSystem-Text"
|
|
148
|
-
>
|
|
149
|
-
browse files
|
|
150
|
-
</span>
|
|
149
|
+
browse files
|
|
151
150
|
</span>
|
|
152
151
|
<input
|
|
153
152
|
autocomplete="off"
|
|
@@ -184,6 +183,7 @@ exports[`Dropzone component snapshot
|
|
|
184
183
|
>
|
|
185
184
|
<i
|
|
186
185
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--compressed Dropzone-icon--disabled"
|
|
186
|
+
role="button"
|
|
187
187
|
style="font-size: 64px; width: 64px;"
|
|
188
188
|
>
|
|
189
189
|
backup_round
|
|
@@ -200,14 +200,13 @@ exports[`Dropzone component snapshot
|
|
|
200
200
|
Drag your files here or
|
|
201
201
|
</span>
|
|
202
202
|
<span
|
|
203
|
-
|
|
203
|
+
aria-label="Drag your files here or click to select files"
|
|
204
|
+
class="Text Text--disabled Text--strong Text--large ml-2 cursor-pointer"
|
|
205
|
+
data-test="DesignSystem-Text"
|
|
206
|
+
role="button"
|
|
207
|
+
tabindex="-1"
|
|
204
208
|
>
|
|
205
|
-
|
|
206
|
-
class="Text Text--disabled Text--strong Text--large"
|
|
207
|
-
data-test="DesignSystem-Text"
|
|
208
|
-
>
|
|
209
|
-
browse files
|
|
210
|
-
</span>
|
|
209
|
+
browse files
|
|
211
210
|
</span>
|
|
212
211
|
<input
|
|
213
212
|
autocomplete="off"
|
|
@@ -244,6 +243,7 @@ exports[`Dropzone component snapshot
|
|
|
244
243
|
>
|
|
245
244
|
<i
|
|
246
245
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard Dropzone-icon--disabled"
|
|
246
|
+
role="button"
|
|
247
247
|
style="font-size: 64px; width: 64px;"
|
|
248
248
|
>
|
|
249
249
|
backup_round
|
|
@@ -260,14 +260,13 @@ exports[`Dropzone component snapshot
|
|
|
260
260
|
Drag your files here or
|
|
261
261
|
</span>
|
|
262
262
|
<span
|
|
263
|
-
|
|
263
|
+
aria-label="Drag your files here or click to select files"
|
|
264
|
+
class="Text Text--disabled Text--strong Text--large ml-2 cursor-pointer"
|
|
265
|
+
data-test="DesignSystem-Text"
|
|
266
|
+
role="button"
|
|
267
|
+
tabindex="-1"
|
|
264
268
|
>
|
|
265
|
-
|
|
266
|
-
class="Text Text--disabled Text--strong Text--large"
|
|
267
|
-
data-test="DesignSystem-Text"
|
|
268
|
-
>
|
|
269
|
-
browse files
|
|
270
|
-
</span>
|
|
269
|
+
browse files
|
|
271
270
|
</span>
|
|
272
271
|
<input
|
|
273
272
|
autocomplete="off"
|
|
@@ -314,14 +313,13 @@ exports[`Dropzone component snapshot
|
|
|
314
313
|
Drag your files here or
|
|
315
314
|
</span>
|
|
316
315
|
<span
|
|
317
|
-
|
|
316
|
+
aria-label="Drag your files here or click to select files"
|
|
317
|
+
class="Text Text--disabled Text--strong Text--large ml-2 cursor-pointer"
|
|
318
|
+
data-test="DesignSystem-Text"
|
|
319
|
+
role="button"
|
|
320
|
+
tabindex="-1"
|
|
318
321
|
>
|
|
319
|
-
|
|
320
|
-
class="Text Text--disabled Text--strong Text--large"
|
|
321
|
-
data-test="DesignSystem-Text"
|
|
322
|
-
>
|
|
323
|
-
browse files
|
|
324
|
-
</span>
|
|
322
|
+
browse files
|
|
325
323
|
</span>
|
|
326
324
|
<input
|
|
327
325
|
autocomplete="off"
|
|
@@ -358,6 +356,7 @@ exports[`Dropzone component snapshot
|
|
|
358
356
|
>
|
|
359
357
|
<i
|
|
360
358
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard"
|
|
359
|
+
role="button"
|
|
361
360
|
style="font-size: 64px; width: 64px;"
|
|
362
361
|
>
|
|
363
362
|
backup_round
|
|
@@ -374,14 +373,13 @@ exports[`Dropzone component snapshot
|
|
|
374
373
|
Drag your files here or
|
|
375
374
|
</span>
|
|
376
375
|
<span
|
|
377
|
-
|
|
376
|
+
aria-label="Drag your files here or click to select files"
|
|
377
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
378
|
+
data-test="DesignSystem-Text"
|
|
379
|
+
role="button"
|
|
380
|
+
tabindex="0"
|
|
378
381
|
>
|
|
379
|
-
|
|
380
|
-
class="Text Text--link Text--strong Text--large"
|
|
381
|
-
data-test="DesignSystem-Text"
|
|
382
|
-
>
|
|
383
|
-
browse files
|
|
384
|
-
</span>
|
|
382
|
+
browse files
|
|
385
383
|
</span>
|
|
386
384
|
<input
|
|
387
385
|
autocomplete="off"
|
|
@@ -405,6 +403,7 @@ exports[`Dropzone component snapshot
|
|
|
405
403
|
>
|
|
406
404
|
<i
|
|
407
405
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard"
|
|
406
|
+
role="button"
|
|
408
407
|
style="font-size: 64px; width: 64px;"
|
|
409
408
|
>
|
|
410
409
|
backup_round
|
|
@@ -421,14 +420,13 @@ exports[`Dropzone component snapshot
|
|
|
421
420
|
Drag your files here or
|
|
422
421
|
</span>
|
|
423
422
|
<span
|
|
424
|
-
|
|
423
|
+
aria-label="Drag your files here or click to select files"
|
|
424
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
425
|
+
data-test="DesignSystem-Text"
|
|
426
|
+
role="button"
|
|
427
|
+
tabindex="0"
|
|
425
428
|
>
|
|
426
|
-
|
|
427
|
-
class="Text Text--link Text--strong Text--large"
|
|
428
|
-
data-test="DesignSystem-Text"
|
|
429
|
-
>
|
|
430
|
-
browse files
|
|
431
|
-
</span>
|
|
429
|
+
browse files
|
|
432
430
|
</span>
|
|
433
431
|
<input
|
|
434
432
|
autocomplete="off"
|
|
@@ -453,6 +451,7 @@ exports[`Dropzone component snapshot
|
|
|
453
451
|
>
|
|
454
452
|
<i
|
|
455
453
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard"
|
|
454
|
+
role="button"
|
|
456
455
|
style="font-size: 64px; width: 64px;"
|
|
457
456
|
>
|
|
458
457
|
backup_round
|
|
@@ -469,14 +468,13 @@ exports[`Dropzone component snapshot
|
|
|
469
468
|
Drag your files here or
|
|
470
469
|
</span>
|
|
471
470
|
<span
|
|
472
|
-
|
|
471
|
+
aria-label="Drag your files here or click to select files"
|
|
472
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
473
|
+
data-test="DesignSystem-Text"
|
|
474
|
+
role="button"
|
|
475
|
+
tabindex="0"
|
|
473
476
|
>
|
|
474
|
-
|
|
475
|
-
class="Text Text--link Text--strong Text--large"
|
|
476
|
-
data-test="DesignSystem-Text"
|
|
477
|
-
>
|
|
478
|
-
browse files
|
|
479
|
-
</span>
|
|
477
|
+
browse files
|
|
480
478
|
</span>
|
|
481
479
|
<input
|
|
482
480
|
autocomplete="off"
|
|
@@ -500,6 +498,7 @@ exports[`Dropzone component snapshot
|
|
|
500
498
|
>
|
|
501
499
|
<i
|
|
502
500
|
class="material-icons material-icons-round Icon Dropzone-icon Dropzone-icon--standard"
|
|
501
|
+
role="button"
|
|
503
502
|
style="font-size: 64px; width: 64px;"
|
|
504
503
|
>
|
|
505
504
|
backup_round
|
|
@@ -516,14 +515,13 @@ exports[`Dropzone component snapshot
|
|
|
516
515
|
Drag your files here or
|
|
517
516
|
</span>
|
|
518
517
|
<span
|
|
519
|
-
|
|
518
|
+
aria-label="Drag your files here or click to select files"
|
|
519
|
+
class="Text Text--link Text--strong Text--large ml-2 cursor-pointer"
|
|
520
|
+
data-test="DesignSystem-Text"
|
|
521
|
+
role="button"
|
|
522
|
+
tabindex="0"
|
|
520
523
|
>
|
|
521
|
-
|
|
522
|
-
class="Text Text--link Text--strong Text--large"
|
|
523
|
-
data-test="DesignSystem-Text"
|
|
524
|
-
>
|
|
525
|
-
browse files
|
|
526
|
-
</span>
|
|
524
|
+
browse files
|
|
527
525
|
</span>
|
|
528
526
|
<input
|
|
529
527
|
autocomplete="off"
|
|
@@ -75,6 +75,7 @@ exports[`FileList component
|
|
|
75
75
|
<i
|
|
76
76
|
class="material-icons material-icons-round Icon FileIcon FileIcon--animate FileIcon--video"
|
|
77
77
|
data-test="DesignSystem-FileListItem--Icon"
|
|
78
|
+
role="button"
|
|
78
79
|
style="font-size: 16px; width: 16px;"
|
|
79
80
|
>
|
|
80
81
|
movie_round
|
|
@@ -111,6 +112,7 @@ exports[`FileList component
|
|
|
111
112
|
<i
|
|
112
113
|
class="material-icons material-icons-round Icon FileIcon FileIcon--image"
|
|
113
114
|
data-test="DesignSystem-FileListItem--Icon"
|
|
115
|
+
role="button"
|
|
114
116
|
style="font-size: 16px; width: 16px;"
|
|
115
117
|
>
|
|
116
118
|
image_round
|
|
@@ -142,6 +144,7 @@ exports[`FileList component
|
|
|
142
144
|
>
|
|
143
145
|
<i
|
|
144
146
|
class="material-icons material-icons-round Icon Icon--alert"
|
|
147
|
+
role="button"
|
|
145
148
|
style="font-size: 14px; width: 14px;"
|
|
146
149
|
>
|
|
147
150
|
error_round
|
|
@@ -168,6 +171,7 @@ exports[`FileList component
|
|
|
168
171
|
<i
|
|
169
172
|
class="material-icons material-icons-round Icon FileIcon FileIcon--animate FileIcon--application"
|
|
170
173
|
data-test="DesignSystem-FileListItem--Icon"
|
|
174
|
+
role="button"
|
|
171
175
|
style="font-size: 16px; width: 16px;"
|
|
172
176
|
>
|
|
173
177
|
insert_drive_file_round
|
|
@@ -204,6 +208,7 @@ exports[`FileList component
|
|
|
204
208
|
<i
|
|
205
209
|
class="material-icons material-icons-round Icon FileIcon FileIcon--animate FileIcon--others"
|
|
206
210
|
data-test="DesignSystem-FileListItem--Icon"
|
|
211
|
+
role="button"
|
|
207
212
|
style="font-size: 16px; width: 16px;"
|
|
208
213
|
>
|
|
209
214
|
text_snippet_round
|
package/core/components/molecules/fileUploader/__tests__/__snapshots__/FileUploader.test.tsx.snap
CHANGED
|
@@ -41,6 +41,7 @@ exports[`FileUploader component
|
|
|
41
41
|
<i
|
|
42
42
|
class="material-icons material-icons-round Icon Icon--default"
|
|
43
43
|
data-test="DesignSystem-Button--Icon"
|
|
44
|
+
role="button"
|
|
44
45
|
style="font-size: 16px; width: 16px;"
|
|
45
46
|
>
|
|
46
47
|
backup_round
|
|
@@ -94,6 +95,7 @@ exports[`FileUploader component prop:accept snapshot
|
|
|
94
95
|
<i
|
|
95
96
|
class="material-icons material-icons-round Icon Icon--default"
|
|
96
97
|
data-test="DesignSystem-Button--Icon"
|
|
98
|
+
role="button"
|
|
97
99
|
style="font-size: 16px; width: 16px;"
|
|
98
100
|
>
|
|
99
101
|
backup_round
|
|
@@ -148,6 +150,7 @@ exports[`FileUploader component prop:disabled snapshot
|
|
|
148
150
|
<i
|
|
149
151
|
class="material-icons material-icons-round Icon Icon--default"
|
|
150
152
|
data-test="DesignSystem-Button--Icon"
|
|
153
|
+
role="button"
|
|
151
154
|
style="font-size: 16px; width: 16px;"
|
|
152
155
|
>
|
|
153
156
|
backup_round
|
|
@@ -202,6 +205,7 @@ exports[`FileUploader component prop:disabled snapshot
|
|
|
202
205
|
<i
|
|
203
206
|
class="material-icons material-icons-round Icon Icon--disabled"
|
|
204
207
|
data-test="DesignSystem-Button--Icon"
|
|
208
|
+
role="button"
|
|
205
209
|
style="font-size: 16px; width: 16px;"
|
|
206
210
|
>
|
|
207
211
|
backup_round
|
|
@@ -256,6 +260,7 @@ exports[`FileUploader component prop:multiple snapshot
|
|
|
256
260
|
<i
|
|
257
261
|
class="material-icons material-icons-round Icon Icon--default"
|
|
258
262
|
data-test="DesignSystem-Button--Icon"
|
|
263
|
+
role="button"
|
|
259
264
|
style="font-size: 16px; width: 16px;"
|
|
260
265
|
>
|
|
261
266
|
backup_round
|
|
@@ -309,6 +314,7 @@ exports[`FileUploader component prop:multiple snapshot
|
|
|
309
314
|
<i
|
|
310
315
|
class="material-icons material-icons-round Icon Icon--default"
|
|
311
316
|
data-test="DesignSystem-Button--Icon"
|
|
317
|
+
role="button"
|
|
312
318
|
style="font-size: 16px; width: 16px;"
|
|
313
319
|
>
|
|
314
320
|
backup_round
|