@charcoal-ui/react 3.5.0 → 3.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/dist/_lib/compat.d.ts +1 -0
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/components/Button/StyledButton.d.ts +12 -0
- package/dist/components/Button/StyledButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/lib/variantToBackground.d.ts +3 -0
- package/dist/components/Button/lib/variantToBackground.d.ts.map +1 -0
- package/dist/components/Button/lib/variantToFont.d.ts +3 -0
- package/dist/components/Button/lib/variantToFont.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +6 -15
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/Clickable/index.story.d.ts +4 -6
- package/dist/components/Clickable/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.story.d.ts +1 -0
- package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
- package/dist/components/FieldLabel/index.d.ts.map +1 -1
- package/dist/components/Icon/index.story.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +1 -0
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.story.d.ts +2 -0
- package/dist/components/MultiSelect/index.story.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TextField/TextField.story.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +1026 -384
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +991 -349
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +18 -21
- package/src/_lib/compat.ts +8 -0
- package/src/components/Button/StyledButton.tsx +66 -0
- package/src/components/Button/__snapshots__/index.story.storyshot +312 -592
- package/src/components/Button/index.tsx +14 -70
- package/src/components/Button/lib/variantToBackground.tsx +19 -0
- package/src/components/Button/lib/variantToFont.tsx +19 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +209 -40
- package/src/components/Checkbox/index.story.tsx +82 -64
- package/src/components/Checkbox/index.tsx +47 -17
- package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -0
- package/src/components/Clickable/index.story.tsx +12 -9
- package/src/components/Clickable/index.tsx +1 -0
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +6 -3
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +3 -10
- package/src/components/DropdownSelector/ListItem/index.tsx +6 -4
- package/src/components/DropdownSelector/MenuItemGroup/index.tsx +1 -1
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +4 -13
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +20 -37
- package/src/components/DropdownSelector/Popover/index.tsx +5 -8
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +227 -294
- package/src/components/DropdownSelector/index.story.tsx +33 -0
- package/src/components/DropdownSelector/index.tsx +63 -20
- package/src/components/FieldLabel/index.tsx +77 -12
- package/src/components/IconButton/__snapshots__/index.story.storyshot +30 -54
- package/src/components/IconButton/index.tsx +51 -26
- package/src/components/LoadingSpinner/index.tsx +3 -6
- package/src/components/Modal/Dialog/index.tsx +1 -1
- package/src/components/Modal/ModalPlumbing.tsx +26 -5
- package/src/components/Modal/__snapshots__/index.story.storyshot +2450 -108
- package/src/components/Modal/index.story.tsx +27 -0
- package/src/components/Modal/index.tsx +19 -4
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +528 -25
- package/src/components/MultiSelect/index.story.tsx +60 -0
- package/src/components/MultiSelect/index.tsx +82 -22
- package/src/components/Radio/__snapshots__/index.story.storyshot +32 -49
- package/src/components/Radio/index.tsx +71 -23
- package/src/components/SegmentedControl/RadioGroupContext.tsx +1 -1
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +9 -10
- package/src/components/SegmentedControl/index.tsx +36 -16
- package/src/components/Switch/__snapshots__/index.story.storyshot +6 -18
- package/src/components/Switch/index.tsx +10 -15
- package/src/components/TagItem/__snapshots__/index.story.storyshot +39 -158
- package/src/components/TagItem/index.tsx +84 -19
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +55 -91
- package/src/components/TextField/TextField.story.tsx +35 -18
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +92 -148
- package/src/components/TextField/index.tsx +0 -1
- package/dist/components/Checkbox/performance.test.d.ts +0 -4
- package/dist/components/Checkbox/performance.test.d.ts.map +0 -1
- package/dist/components/Checkbox/snapshot.test.d.ts +0 -2
- package/dist/components/Checkbox/snapshot.test.d.ts.map +0 -1
- package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +0 -763
- package/src/components/Checkbox/performance.test.tsx +0 -30
- package/src/components/Checkbox/snapshot.test.tsx +0 -66
|
@@ -17,6 +17,8 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
17
17
|
-ms-letter-spacing: inherit;
|
|
18
18
|
letter-spacing: inherit;
|
|
19
19
|
word-spacing: inherit;
|
|
20
|
+
-webkit-text-decoration: none;
|
|
21
|
+
text-decoration: none;
|
|
20
22
|
font: inherit;
|
|
21
23
|
margin: 0;
|
|
22
24
|
overflow: visible;
|
|
@@ -86,33 +88,22 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
86
88
|
margin-bottom: -4px;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
.c6:
|
|
90
|
-
.c6
|
|
91
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
92
|
+
.c6[aria-disabled='false']:hover {
|
|
91
93
|
color: var(--charcoal-text3-hover);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
.c6:
|
|
95
|
-
.c6
|
|
96
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
97
|
+
.c6[aria-disabled='false']:active {
|
|
96
98
|
color: var(--charcoal-text3-press);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
100
|
-
.c6[aria-disabled=false]:focus,
|
|
101
101
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
102
|
-
.c6[aria-disabled=false]:active
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
108
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
109
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
110
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
111
|
-
outline: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
102
|
+
.c6[aria-disabled='false']:active,
|
|
103
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
104
|
+
.c6[aria-disabled='false']:focus,
|
|
114
105
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
115
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
106
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
116
107
|
outline: none;
|
|
117
108
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
118
109
|
}
|
|
@@ -239,13 +230,13 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
239
230
|
"border": 0,
|
|
240
231
|
"clip": "rect(0 0 0 0)",
|
|
241
232
|
"clipPath": "inset(50%)",
|
|
242
|
-
"height":
|
|
243
|
-
"margin": "
|
|
233
|
+
"height": "1px",
|
|
234
|
+
"margin": "-1px",
|
|
244
235
|
"overflow": "hidden",
|
|
245
236
|
"padding": 0,
|
|
246
237
|
"position": "absolute",
|
|
247
238
|
"whiteSpace": "nowrap",
|
|
248
|
-
"width":
|
|
239
|
+
"width": "1px",
|
|
249
240
|
}
|
|
250
241
|
}
|
|
251
242
|
>
|
|
@@ -253,8 +244,6 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
253
244
|
className="c4"
|
|
254
245
|
htmlFor="test-id"
|
|
255
246
|
id="test-id"
|
|
256
|
-
onBlur={null}
|
|
257
|
-
onFocus={null}
|
|
258
247
|
>
|
|
259
248
|
Label
|
|
260
249
|
</label>
|
|
@@ -264,7 +253,6 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
264
253
|
<span>
|
|
265
254
|
<button
|
|
266
255
|
className="c7"
|
|
267
|
-
onClick={[Function]}
|
|
268
256
|
>
|
|
269
257
|
Text Link
|
|
270
258
|
</button>
|
|
@@ -282,7 +270,9 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
282
270
|
onChange={[Function]}
|
|
283
271
|
placeholder="TextField"
|
|
284
272
|
readOnly={false}
|
|
273
|
+
required={false}
|
|
285
274
|
type="text"
|
|
275
|
+
value=""
|
|
286
276
|
/>
|
|
287
277
|
</div>
|
|
288
278
|
</div>
|
|
@@ -340,33 +330,22 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
340
330
|
margin-bottom: -4px;
|
|
341
331
|
}
|
|
342
332
|
|
|
343
|
-
.c5:
|
|
344
|
-
.c5
|
|
333
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
334
|
+
.c5[aria-disabled='false']:hover {
|
|
345
335
|
color: var(--charcoal-text3-hover);
|
|
346
336
|
}
|
|
347
337
|
|
|
348
|
-
.c5:
|
|
349
|
-
.c5
|
|
338
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
339
|
+
.c5[aria-disabled='false']:active {
|
|
350
340
|
color: var(--charcoal-text3-press);
|
|
351
341
|
}
|
|
352
342
|
|
|
353
|
-
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
354
|
-
.c5[aria-disabled=false]:focus,
|
|
355
343
|
.c5:not(:disabled):not([aria-disabled]):active,
|
|
356
|
-
.c5[aria-disabled=false]:active
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
362
|
-
.c5[aria-disabled=false]:focus:not(:focus-visible),
|
|
363
|
-
.c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
364
|
-
.c5[aria-disabled=false]:active:not(:focus-visible) {
|
|
365
|
-
outline: none;
|
|
366
|
-
}
|
|
367
|
-
|
|
344
|
+
.c5[aria-disabled='false']:active,
|
|
345
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
346
|
+
.c5[aria-disabled='false']:focus,
|
|
368
347
|
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
369
|
-
.c5[aria-disabled=false]:focus-visible {
|
|
348
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
370
349
|
outline: none;
|
|
371
350
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
372
351
|
}
|
|
@@ -436,7 +415,6 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
436
415
|
display: -webkit-flex;
|
|
437
416
|
display: -ms-flexbox;
|
|
438
417
|
display: flex;
|
|
439
|
-
padding-left: 8px;
|
|
440
418
|
-webkit-align-items: center;
|
|
441
419
|
-webkit-box-align: center;
|
|
442
420
|
-ms-flex-align: center;
|
|
@@ -515,13 +493,13 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
515
493
|
"border": 0,
|
|
516
494
|
"clip": "rect(0 0 0 0)",
|
|
517
495
|
"clipPath": "inset(50%)",
|
|
518
|
-
"height":
|
|
519
|
-
"margin": "
|
|
496
|
+
"height": "1px",
|
|
497
|
+
"margin": "-1px",
|
|
520
498
|
"overflow": "hidden",
|
|
521
499
|
"padding": 0,
|
|
522
500
|
"position": "absolute",
|
|
523
501
|
"whiteSpace": "nowrap",
|
|
524
|
-
"width":
|
|
502
|
+
"width": "1px",
|
|
525
503
|
}
|
|
526
504
|
}
|
|
527
505
|
>
|
|
@@ -529,8 +507,6 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
529
507
|
className="c3"
|
|
530
508
|
htmlFor="test-id"
|
|
531
509
|
id="test-id"
|
|
532
|
-
onBlur={null}
|
|
533
|
-
onFocus={null}
|
|
534
510
|
>
|
|
535
511
|
Label
|
|
536
512
|
</label>
|
|
@@ -557,7 +533,9 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
557
533
|
onChange={[Function]}
|
|
558
534
|
placeholder="path/to/your/file"
|
|
559
535
|
readOnly={false}
|
|
536
|
+
required={false}
|
|
560
537
|
type="text"
|
|
538
|
+
value=""
|
|
561
539
|
/>
|
|
562
540
|
<span
|
|
563
541
|
className="c9"
|
|
@@ -591,6 +569,8 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
591
569
|
-ms-letter-spacing: inherit;
|
|
592
570
|
letter-spacing: inherit;
|
|
593
571
|
word-spacing: inherit;
|
|
572
|
+
-webkit-text-decoration: none;
|
|
573
|
+
text-decoration: none;
|
|
594
574
|
font: inherit;
|
|
595
575
|
margin: 0;
|
|
596
576
|
overflow: visible;
|
|
@@ -660,33 +640,22 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
660
640
|
margin-bottom: -4px;
|
|
661
641
|
}
|
|
662
642
|
|
|
663
|
-
.c6:
|
|
664
|
-
.c6
|
|
643
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
644
|
+
.c6[aria-disabled='false']:hover {
|
|
665
645
|
color: var(--charcoal-text3-hover);
|
|
666
646
|
}
|
|
667
647
|
|
|
668
|
-
.c6:
|
|
669
|
-
.c6
|
|
648
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
649
|
+
.c6[aria-disabled='false']:active {
|
|
670
650
|
color: var(--charcoal-text3-press);
|
|
671
651
|
}
|
|
672
652
|
|
|
673
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
674
|
-
.c6[aria-disabled=false]:focus,
|
|
675
653
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
676
|
-
.c6[aria-disabled=false]:active
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
682
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
683
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
684
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
685
|
-
outline: none;
|
|
686
|
-
}
|
|
687
|
-
|
|
654
|
+
.c6[aria-disabled='false']:active,
|
|
655
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
656
|
+
.c6[aria-disabled='false']:focus,
|
|
688
657
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
689
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
658
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
690
659
|
outline: none;
|
|
691
660
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
692
661
|
}
|
|
@@ -831,13 +800,13 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
831
800
|
"border": 0,
|
|
832
801
|
"clip": "rect(0 0 0 0)",
|
|
833
802
|
"clipPath": "inset(50%)",
|
|
834
|
-
"height":
|
|
835
|
-
"margin": "
|
|
803
|
+
"height": "1px",
|
|
804
|
+
"margin": "-1px",
|
|
836
805
|
"overflow": "hidden",
|
|
837
806
|
"padding": 0,
|
|
838
807
|
"position": "absolute",
|
|
839
808
|
"whiteSpace": "nowrap",
|
|
840
|
-
"width":
|
|
809
|
+
"width": "1px",
|
|
841
810
|
}
|
|
842
811
|
}
|
|
843
812
|
>
|
|
@@ -845,8 +814,6 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
845
814
|
className="c4"
|
|
846
815
|
htmlFor="test-id"
|
|
847
816
|
id="test-id"
|
|
848
|
-
onBlur={null}
|
|
849
|
-
onFocus={null}
|
|
850
817
|
>
|
|
851
818
|
Label
|
|
852
819
|
</label>
|
|
@@ -856,7 +823,6 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
856
823
|
<span>
|
|
857
824
|
<button
|
|
858
825
|
className="c7"
|
|
859
|
-
onClick={[Function]}
|
|
860
826
|
>
|
|
861
827
|
Text Link
|
|
862
828
|
</button>
|
|
@@ -875,7 +841,9 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
875
841
|
onChange={[Function]}
|
|
876
842
|
placeholder="TextField"
|
|
877
843
|
readOnly={false}
|
|
844
|
+
required={false}
|
|
878
845
|
type="text"
|
|
846
|
+
value=""
|
|
879
847
|
/>
|
|
880
848
|
<span
|
|
881
849
|
className="c10"
|
|
@@ -909,6 +877,8 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
909
877
|
-ms-letter-spacing: inherit;
|
|
910
878
|
letter-spacing: inherit;
|
|
911
879
|
word-spacing: inherit;
|
|
880
|
+
-webkit-text-decoration: none;
|
|
881
|
+
text-decoration: none;
|
|
912
882
|
font: inherit;
|
|
913
883
|
margin: 0;
|
|
914
884
|
overflow: visible;
|
|
@@ -1001,33 +971,22 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1001
971
|
margin-bottom: -4px;
|
|
1002
972
|
}
|
|
1003
973
|
|
|
1004
|
-
.c8:
|
|
1005
|
-
.c8
|
|
974
|
+
.c8:not(:disabled):not([aria-disabled]):hover,
|
|
975
|
+
.c8[aria-disabled='false']:hover {
|
|
1006
976
|
color: var(--charcoal-text3-hover);
|
|
1007
977
|
}
|
|
1008
978
|
|
|
1009
|
-
.c8:
|
|
1010
|
-
.c8
|
|
979
|
+
.c8:not(:disabled):not([aria-disabled]):active,
|
|
980
|
+
.c8[aria-disabled='false']:active {
|
|
1011
981
|
color: var(--charcoal-text3-press);
|
|
1012
982
|
}
|
|
1013
983
|
|
|
1014
|
-
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
1015
|
-
.c8[aria-disabled=false]:focus,
|
|
1016
984
|
.c8:not(:disabled):not([aria-disabled]):active,
|
|
1017
|
-
.c8[aria-disabled=false]:active
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
.c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1023
|
-
.c8[aria-disabled=false]:focus:not(:focus-visible),
|
|
1024
|
-
.c8:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
1025
|
-
.c8[aria-disabled=false]:active:not(:focus-visible) {
|
|
1026
|
-
outline: none;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
985
|
+
.c8[aria-disabled='false']:active,
|
|
986
|
+
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
987
|
+
.c8[aria-disabled='false']:focus,
|
|
1029
988
|
.c8:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1030
|
-
.c8[aria-disabled=false]:focus-visible {
|
|
989
|
+
.c8[aria-disabled='false']:focus-visible {
|
|
1031
990
|
outline: none;
|
|
1032
991
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1033
992
|
}
|
|
@@ -1180,7 +1139,6 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1180
1139
|
<span>
|
|
1181
1140
|
<button
|
|
1182
1141
|
className="c9"
|
|
1183
|
-
onClick={[Function]}
|
|
1184
1142
|
>
|
|
1185
1143
|
Text Link
|
|
1186
1144
|
</button>
|
|
@@ -1199,7 +1157,9 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1199
1157
|
onChange={[Function]}
|
|
1200
1158
|
placeholder="TextField"
|
|
1201
1159
|
readOnly={false}
|
|
1160
|
+
required={false}
|
|
1202
1161
|
type="text"
|
|
1162
|
+
value=""
|
|
1203
1163
|
/>
|
|
1204
1164
|
</div>
|
|
1205
1165
|
<p
|
|
@@ -1229,6 +1189,8 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1229
1189
|
-ms-letter-spacing: inherit;
|
|
1230
1190
|
letter-spacing: inherit;
|
|
1231
1191
|
word-spacing: inherit;
|
|
1192
|
+
-webkit-text-decoration: none;
|
|
1193
|
+
text-decoration: none;
|
|
1232
1194
|
font: inherit;
|
|
1233
1195
|
margin: 0;
|
|
1234
1196
|
overflow: visible;
|
|
@@ -1298,33 +1260,22 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1298
1260
|
margin-bottom: -4px;
|
|
1299
1261
|
}
|
|
1300
1262
|
|
|
1301
|
-
.c5:
|
|
1302
|
-
.c5
|
|
1263
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
1264
|
+
.c5[aria-disabled='false']:hover {
|
|
1303
1265
|
color: var(--charcoal-text3-hover);
|
|
1304
1266
|
}
|
|
1305
1267
|
|
|
1306
|
-
.c5:
|
|
1307
|
-
.c5
|
|
1268
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1269
|
+
.c5[aria-disabled='false']:active {
|
|
1308
1270
|
color: var(--charcoal-text3-press);
|
|
1309
1271
|
}
|
|
1310
1272
|
|
|
1311
|
-
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1312
|
-
.c5[aria-disabled=false]:focus,
|
|
1313
1273
|
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1314
|
-
.c5[aria-disabled=false]:active
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
.c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1320
|
-
.c5[aria-disabled=false]:focus:not(:focus-visible),
|
|
1321
|
-
.c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
1322
|
-
.c5[aria-disabled=false]:active:not(:focus-visible) {
|
|
1323
|
-
outline: none;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1274
|
+
.c5[aria-disabled='false']:active,
|
|
1275
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1276
|
+
.c5[aria-disabled='false']:focus,
|
|
1326
1277
|
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1327
|
-
.c5[aria-disabled=false]:focus-visible {
|
|
1278
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
1328
1279
|
outline: none;
|
|
1329
1280
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1330
1281
|
}
|
|
@@ -1370,40 +1321,29 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1370
1321
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
1371
1322
|
}
|
|
1372
1323
|
|
|
1373
|
-
.c12:
|
|
1374
|
-
.c12
|
|
1375
|
-
background-color: var(--charcoal-surface4-hover);
|
|
1324
|
+
.c12:not(:disabled):not([aria-disabled]):hover,
|
|
1325
|
+
.c12[aria-disabled='false']:hover {
|
|
1326
|
+
background-color: var( --charcoal-surface4-hover );
|
|
1376
1327
|
}
|
|
1377
1328
|
|
|
1378
|
-
.c12:
|
|
1379
|
-
.c12
|
|
1380
|
-
background-color: var(--charcoal-surface4-press);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
.c12:disabled,
|
|
1384
|
-
.c12[aria-disabled]:not([aria-disabled=false]) {
|
|
1385
|
-
opacity: 0.32;
|
|
1329
|
+
.c12:not(:disabled):not([aria-disabled]):active,
|
|
1330
|
+
.c12[aria-disabled='false']:active {
|
|
1331
|
+
background-color: var( --charcoal-surface4-press );
|
|
1386
1332
|
}
|
|
1387
1333
|
|
|
1388
1334
|
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
1389
|
-
.c12[aria-disabled=false]:focus,
|
|
1335
|
+
.c12[aria-disabled='false']:focus,
|
|
1390
1336
|
.c12:not(:disabled):not([aria-disabled]):active,
|
|
1391
|
-
.c12[aria-disabled=false]:active
|
|
1337
|
+
.c12[aria-disabled='false']:active,
|
|
1338
|
+
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1339
|
+
.c12[aria-disabled='false']:focus-visible {
|
|
1392
1340
|
outline: none;
|
|
1393
1341
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1394
1342
|
}
|
|
1395
1343
|
|
|
1396
|
-
.c12:
|
|
1397
|
-
.c12[aria-disabled
|
|
1398
|
-
.
|
|
1399
|
-
.c12[aria-disabled=false]:active:not(:focus-visible) {
|
|
1400
|
-
outline: none;
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1404
|
-
.c12[aria-disabled=false]:focus-visible {
|
|
1405
|
-
outline: none;
|
|
1406
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1344
|
+
.c12:disabled,
|
|
1345
|
+
.c12[aria-disabled]:not([aria-disabled='false']) {
|
|
1346
|
+
opacity: 0.32;
|
|
1407
1347
|
}
|
|
1408
1348
|
|
|
1409
1349
|
.c0 {
|
|
@@ -1456,7 +1396,6 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1456
1396
|
display: -webkit-flex;
|
|
1457
1397
|
display: -ms-flexbox;
|
|
1458
1398
|
display: flex;
|
|
1459
|
-
padding-left: 8px;
|
|
1460
1399
|
-webkit-align-items: center;
|
|
1461
1400
|
-webkit-box-align: center;
|
|
1462
1401
|
-ms-flex-align: center;
|
|
@@ -1517,7 +1456,14 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1517
1456
|
}
|
|
1518
1457
|
|
|
1519
1458
|
.c8 {
|
|
1520
|
-
|
|
1459
|
+
display: -webkit-box;
|
|
1460
|
+
display: -webkit-flex;
|
|
1461
|
+
display: -ms-flexbox;
|
|
1462
|
+
display: flex;
|
|
1463
|
+
-webkit-align-items: center;
|
|
1464
|
+
-webkit-box-align: center;
|
|
1465
|
+
-ms-flex-align: center;
|
|
1466
|
+
align-items: center;
|
|
1521
1467
|
color: #858585;
|
|
1522
1468
|
}
|
|
1523
1469
|
|
|
@@ -1534,13 +1480,13 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1534
1480
|
"border": 0,
|
|
1535
1481
|
"clip": "rect(0 0 0 0)",
|
|
1536
1482
|
"clipPath": "inset(50%)",
|
|
1537
|
-
"height":
|
|
1538
|
-
"margin": "
|
|
1483
|
+
"height": "1px",
|
|
1484
|
+
"margin": "-1px",
|
|
1539
1485
|
"overflow": "hidden",
|
|
1540
1486
|
"padding": 0,
|
|
1541
1487
|
"position": "absolute",
|
|
1542
1488
|
"whiteSpace": "nowrap",
|
|
1543
|
-
"width":
|
|
1489
|
+
"width": "1px",
|
|
1544
1490
|
}
|
|
1545
1491
|
}
|
|
1546
1492
|
>
|
|
@@ -1548,8 +1494,6 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1548
1494
|
className="c3"
|
|
1549
1495
|
htmlFor="test-id"
|
|
1550
1496
|
id="test-id"
|
|
1551
|
-
onBlur={null}
|
|
1552
|
-
onFocus={null}
|
|
1553
1497
|
>
|
|
1554
1498
|
Label
|
|
1555
1499
|
</label>
|
|
@@ -1581,16 +1525,16 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1581
1525
|
onChange={[Function]}
|
|
1582
1526
|
placeholder="作品を検索"
|
|
1583
1527
|
readOnly={false}
|
|
1528
|
+
required={false}
|
|
1584
1529
|
type="text"
|
|
1530
|
+
value=""
|
|
1585
1531
|
/>
|
|
1586
1532
|
<span
|
|
1587
1533
|
className="c10"
|
|
1588
1534
|
>
|
|
1589
1535
|
<button
|
|
1590
1536
|
className="c11 c12"
|
|
1591
|
-
|
|
1592
|
-
size="XS"
|
|
1593
|
-
width={20}
|
|
1537
|
+
onClick={[Function]}
|
|
1594
1538
|
>
|
|
1595
1539
|
<pixiv-icon
|
|
1596
1540
|
name="16/Remove"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performance.test.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/performance.test.tsx"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAG/B,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAI1C,wBAAgB,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,4EAI3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.test.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/snapshot.test.tsx"],"names":[],"mappings":"AAOA,OAAO,wBAAwB,CAAA"}
|