@charcoal-ui/react 3.7.0 → 3.9.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 (107) hide show
  1. package/dist/components/Button/StyledButton.d.ts +1 -0
  2. package/dist/components/Button/StyledButton.d.ts.map +1 -1
  3. package/dist/components/Button/index.d.ts +1 -0
  4. package/dist/components/Button/index.d.ts.map +1 -1
  5. package/dist/components/Button/index.story.d.ts +16 -32
  6. package/dist/components/Button/index.story.d.ts.map +1 -1
  7. package/dist/components/Checkbox/index.d.ts.map +1 -1
  8. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +7 -7
  9. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -1
  10. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +6 -9
  11. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -1
  12. package/dist/components/DropdownSelector/Popover/index.story.d.ts +3 -7
  13. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -1
  14. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  15. package/dist/components/DropdownSelector/index.story.d.ts +9 -12
  16. package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
  17. package/dist/components/Icon/index.story.d.ts +4 -26
  18. package/dist/components/Icon/index.story.d.ts.map +1 -1
  19. package/dist/components/IconButton/index.d.ts +1 -0
  20. package/dist/components/IconButton/index.d.ts.map +1 -1
  21. package/dist/components/IconButton/index.story.d.ts +6 -25
  22. package/dist/components/IconButton/index.story.d.ts.map +1 -1
  23. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +8 -0
  24. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -0
  25. package/dist/components/LoadingSpinner/index.d.ts +2 -2
  26. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  27. package/dist/components/LoadingSpinner/index.story.d.ts +4 -7
  28. package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
  29. package/dist/components/Modal/index.d.ts.map +1 -1
  30. package/dist/components/Modal/index.story.d.ts +16 -41
  31. package/dist/components/Modal/index.story.d.ts.map +1 -1
  32. package/dist/components/Modal/useCustomModalOverlay.d.ts +12 -0
  33. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -0
  34. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  35. package/dist/components/Radio/index.d.ts +0 -2
  36. package/dist/components/Radio/index.d.ts.map +1 -1
  37. package/dist/components/Radio/index.story.d.ts +12 -23
  38. package/dist/components/Radio/index.story.d.ts.map +1 -1
  39. package/dist/components/SegmentedControl/index.story.d.ts +5 -8
  40. package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
  41. package/dist/components/Switch/index.d.ts.map +1 -1
  42. package/dist/components/Switch/index.story.d.ts +7 -12
  43. package/dist/components/Switch/index.story.d.ts.map +1 -1
  44. package/dist/components/TagItem/index.d.ts.map +1 -1
  45. package/dist/components/TagItem/index.story.d.ts +14 -24
  46. package/dist/components/TagItem/index.story.d.ts.map +1 -1
  47. package/dist/components/TextArea/TextArea.story.d.ts +7 -25
  48. package/dist/components/TextArea/TextArea.story.d.ts.map +1 -1
  49. package/dist/components/TextArea/index.d.ts.map +1 -1
  50. package/dist/components/TextField/TextField.story.d.ts +14 -20
  51. package/dist/components/TextField/TextField.story.d.ts.map +1 -1
  52. package/dist/components/TextField/index.d.ts.map +1 -1
  53. package/dist/index.cjs.js +1006 -2240
  54. package/dist/index.cjs.js.map +1 -1
  55. package/dist/index.esm.js +1001 -2241
  56. package/dist/index.esm.js.map +1 -1
  57. package/dist/styled.d.ts +4 -4
  58. package/package.json +7 -6
  59. package/src/components/Button/StyledButton.tsx +19 -14
  60. package/src/components/Button/__snapshots__/index.story.storyshot +314 -118
  61. package/src/components/Button/index.story.tsx +141 -138
  62. package/src/components/Button/index.tsx +3 -0
  63. package/src/components/Checkbox/__snapshots__/index.story.storyshot +55 -42
  64. package/src/components/Checkbox/index.tsx +15 -17
  65. package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
  66. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +42 -37
  67. package/src/components/DropdownSelector/ListItem/index.story.tsx +8 -4
  68. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +38 -38
  69. package/src/components/DropdownSelector/MenuList/index.story.tsx +33 -27
  70. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +11 -5
  71. package/src/components/DropdownSelector/Popover/index.story.tsx +6 -6
  72. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +148 -47
  73. package/src/components/DropdownSelector/index.story.tsx +207 -204
  74. package/src/components/DropdownSelector/index.tsx +17 -10
  75. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  76. package/src/components/Icon/index.story.tsx +8 -12
  77. package/src/components/IconButton/__snapshots__/index.story.storyshot +135 -13
  78. package/src/components/IconButton/index.story.tsx +30 -23
  79. package/src/components/IconButton/index.tsx +35 -20
  80. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +12 -0
  81. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +28 -0
  82. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +1 -35
  83. package/src/components/LoadingSpinner/index.story.tsx +11 -54
  84. package/src/components/LoadingSpinner/index.tsx +1 -1
  85. package/src/components/Modal/__snapshots__/index.story.storyshot +224 -171
  86. package/src/components/Modal/index.story.tsx +139 -133
  87. package/src/components/Modal/index.tsx +15 -20
  88. package/src/components/Modal/useCustomModalOverlay.tsx +42 -0
  89. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +56 -4
  90. package/src/components/MultiSelect/index.tsx +3 -0
  91. package/src/components/Radio/__snapshots__/index.story.storyshot +1001 -121
  92. package/src/components/Radio/index.story.tsx +128 -63
  93. package/src/components/Radio/index.tsx +15 -17
  94. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +2 -2
  95. package/src/components/SegmentedControl/index.story.tsx +24 -29
  96. package/src/components/Switch/__snapshots__/index.story.storyshot +184 -26
  97. package/src/components/Switch/index.story.tsx +72 -48
  98. package/src/components/Switch/index.tsx +2 -7
  99. package/src/components/TagItem/__snapshots__/index.story.storyshot +72 -33
  100. package/src/components/TagItem/index.story.tsx +154 -159
  101. package/src/components/TagItem/index.tsx +2 -6
  102. package/src/components/TextArea/TextArea.story.tsx +29 -32
  103. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +127 -73
  104. package/src/components/TextArea/index.tsx +22 -14
  105. package/src/components/TextField/TextField.story.tsx +85 -64
  106. package/src/components/TextField/__snapshots__/TextField.story.storyshot +479 -167
  107. package/src/components/TextField/index.tsx +22 -21
@@ -1,6 +1,116 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storyshots Button Danger 1`] = `
3
+ exports[`Storybook Tests Button Active 1`] = `
4
+ .c0 {
5
+ cursor: pointer;
6
+ -webkit-appearance: none;
7
+ -moz-appearance: none;
8
+ appearance: none;
9
+ background: transparent;
10
+ padding: 0;
11
+ border-style: none;
12
+ outline: none;
13
+ color: inherit;
14
+ text-rendering: inherit;
15
+ -webkit-letter-spacing: inherit;
16
+ -moz-letter-spacing: inherit;
17
+ -ms-letter-spacing: inherit;
18
+ letter-spacing: inherit;
19
+ word-spacing: inherit;
20
+ -webkit-text-decoration: none;
21
+ text-decoration: none;
22
+ font: inherit;
23
+ margin: 0;
24
+ overflow: visible;
25
+ text-transform: none;
26
+ }
27
+
28
+ .c0:disabled,
29
+ .c0[aria-disabled]:not([aria-disabled=false]) {
30
+ cursor: default;
31
+ }
32
+
33
+ .c0:focus {
34
+ outline: none;
35
+ }
36
+
37
+ .c0::-moz-focus-inner {
38
+ border-style: none;
39
+ padding: 0;
40
+ }
41
+
42
+ .c1 {
43
+ width: -webkit-min-content;
44
+ width: -moz-min-content;
45
+ width: min-content;
46
+ display: inline-grid;
47
+ -webkit-align-items: center;
48
+ -webkit-box-align: center;
49
+ -ms-flex-align: center;
50
+ align-items: center;
51
+ -webkit-box-pack: center;
52
+ -webkit-justify-content: center;
53
+ -ms-flex-pack: center;
54
+ justify-content: center;
55
+ cursor: pointer;
56
+ -webkit-user-select: none;
57
+ -moz-user-select: none;
58
+ -ms-user-select: none;
59
+ user-select: none;
60
+ white-space: nowrap;
61
+ border-radius: 999999px;
62
+ font-size: 14px;
63
+ line-height: 22px;
64
+ font-weight: bold;
65
+ padding-right: 24px;
66
+ padding-left: 24px;
67
+ color: var(--charcoal-text2);
68
+ background-color: var(--charcoal-surface3);
69
+ -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
70
+ transition: 0.2s color,0.2s background-color,0.2s box-shadow;
71
+ height: 40px;
72
+ }
73
+
74
+ .c1:not(:disabled):not([aria-disabled]),
75
+ .c1[aria-disabled='false'] {
76
+ color: var(--charcoal-text2-press);
77
+ background-color: var(--charcoal-surface3-press);
78
+ }
79
+
80
+ .c1:not(:disabled):not([aria-disabled]):focus,
81
+ .c1[aria-disabled='false']:focus {
82
+ outline: none;
83
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
84
+ }
85
+
86
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
87
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
88
+ box-shadow: none;
89
+ }
90
+
91
+ .c1:not(:disabled):not([aria-disabled]):focus-visible,
92
+ .c1[aria-disabled='false']:focus-visible {
93
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
94
+ }
95
+
96
+ .c1:disabled,
97
+ .c1[aria-disabled]:not([aria-disabled='false']) {
98
+ opacity: 0.32;
99
+ }
100
+
101
+ <div
102
+ data-dark={false}
103
+ >
104
+ <button
105
+ className="c0 c1"
106
+ disabled={false}
107
+ >
108
+ Button
109
+ </button>
110
+ </div>
111
+ `;
112
+
113
+ exports[`Storybook Tests Button Danger 1`] = `
4
114
  .c0 {
5
115
  cursor: pointer;
6
116
  -webkit-appearance: none;
@@ -71,13 +181,19 @@ exports[`Storyshots Button Danger 1`] = `
71
181
  height: 40px;
72
182
  }
73
183
 
74
- .c1:not(:disabled):not([aria-disabled]):active,
75
- .c1[aria-disabled='false']:active,
76
184
  .c1:not(:disabled):not([aria-disabled]):focus,
77
- .c1[aria-disabled='false']:focus,
185
+ .c1[aria-disabled='false']:focus {
186
+ outline: none;
187
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
188
+ }
189
+
190
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
191
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
192
+ box-shadow: none;
193
+ }
194
+
78
195
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
79
196
  .c1[aria-disabled='false']:focus-visible {
80
- outline: none;
81
197
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
82
198
  }
83
199
 
@@ -104,14 +220,13 @@ exports[`Storyshots Button Danger 1`] = `
104
220
  <button
105
221
  className="c0 c1"
106
222
  disabled={false}
107
- onClick={[Function]}
108
223
  >
109
224
  Button
110
225
  </button>
111
226
  </div>
112
227
  `;
113
228
 
114
- exports[`Storyshots Button Default 1`] = `
229
+ exports[`Storybook Tests Button Default 1`] = `
115
230
  .c0 {
116
231
  cursor: pointer;
117
232
  -webkit-appearance: none;
@@ -182,13 +297,19 @@ exports[`Storyshots Button Default 1`] = `
182
297
  height: 40px;
183
298
  }
184
299
 
185
- .c1:not(:disabled):not([aria-disabled]):active,
186
- .c1[aria-disabled='false']:active,
187
300
  .c1:not(:disabled):not([aria-disabled]):focus,
188
- .c1[aria-disabled='false']:focus,
301
+ .c1[aria-disabled='false']:focus {
302
+ outline: none;
303
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
304
+ }
305
+
306
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
307
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
308
+ box-shadow: none;
309
+ }
310
+
189
311
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
190
312
  .c1[aria-disabled='false']:focus-visible {
191
- outline: none;
192
313
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
193
314
  }
194
315
 
@@ -215,14 +336,13 @@ exports[`Storyshots Button Default 1`] = `
215
336
  <button
216
337
  className="c0 c1"
217
338
  disabled={false}
218
- onClick={[Function]}
219
339
  >
220
340
  Button
221
341
  </button>
222
342
  </div>
223
343
  `;
224
344
 
225
- exports[`Storyshots Button Disabled 1`] = `
345
+ exports[`Storybook Tests Button Disabled 1`] = `
226
346
  .c0 {
227
347
  cursor: pointer;
228
348
  -webkit-appearance: none;
@@ -293,13 +413,19 @@ exports[`Storyshots Button Disabled 1`] = `
293
413
  height: 40px;
294
414
  }
295
415
 
296
- .c1:not(:disabled):not([aria-disabled]):active,
297
- .c1[aria-disabled='false']:active,
298
416
  .c1:not(:disabled):not([aria-disabled]):focus,
299
- .c1[aria-disabled='false']:focus,
417
+ .c1[aria-disabled='false']:focus {
418
+ outline: none;
419
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
420
+ }
421
+
422
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
423
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
424
+ box-shadow: none;
425
+ }
426
+
300
427
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
301
428
  .c1[aria-disabled='false']:focus-visible {
302
- outline: none;
303
429
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
304
430
  }
305
431
 
@@ -326,14 +452,13 @@ exports[`Storyshots Button Disabled 1`] = `
326
452
  <button
327
453
  className="c0 c1"
328
454
  disabled={true}
329
- onClick={[Function]}
330
455
  >
331
456
  Button
332
457
  </button>
333
458
  </div>
334
459
  `;
335
460
 
336
- exports[`Storyshots Button Fixed 1`] = `
461
+ exports[`Storybook Tests Button Fixed 1`] = `
337
462
  .c0 {
338
463
  cursor: pointer;
339
464
  -webkit-appearance: none;
@@ -404,13 +529,19 @@ exports[`Storyshots Button Fixed 1`] = `
404
529
  height: 40px;
405
530
  }
406
531
 
407
- .c1:not(:disabled):not([aria-disabled]):active,
408
- .c1[aria-disabled='false']:active,
409
532
  .c1:not(:disabled):not([aria-disabled]):focus,
410
- .c1[aria-disabled='false']:focus,
533
+ .c1[aria-disabled='false']:focus {
534
+ outline: none;
535
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
536
+ }
537
+
538
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
539
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
540
+ box-shadow: none;
541
+ }
542
+
411
543
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
412
544
  .c1[aria-disabled='false']:focus-visible {
413
- outline: none;
414
545
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
415
546
  }
416
547
 
@@ -437,14 +568,13 @@ exports[`Storyshots Button Fixed 1`] = `
437
568
  <button
438
569
  className="c0 c1"
439
570
  disabled={false}
440
- onClick={[Function]}
441
571
  >
442
572
  Button
443
573
  </button>
444
574
  </div>
445
575
  `;
446
576
 
447
- exports[`Storyshots Button Focus 1`] = `
577
+ exports[`Storybook Tests Button Focus 1`] = `
448
578
  .c0 {
449
579
  cursor: pointer;
450
580
  -webkit-appearance: none;
@@ -515,13 +645,19 @@ exports[`Storyshots Button Focus 1`] = `
515
645
  height: 40px;
516
646
  }
517
647
 
518
- .c1:not(:disabled):not([aria-disabled]):active,
519
- .c1[aria-disabled='false']:active,
520
648
  .c1:not(:disabled):not([aria-disabled]):focus,
521
- .c1[aria-disabled='false']:focus,
649
+ .c1[aria-disabled='false']:focus {
650
+ outline: none;
651
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
652
+ }
653
+
654
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
655
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
656
+ box-shadow: none;
657
+ }
658
+
522
659
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
523
660
  .c1[aria-disabled='false']:focus-visible {
524
- outline: none;
525
661
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
526
662
  }
527
663
 
@@ -555,7 +691,7 @@ exports[`Storyshots Button Focus 1`] = `
555
691
  </div>
556
692
  `;
557
693
 
558
- exports[`Storyshots Button Layout Example 1`] = `
694
+ exports[`Storybook Tests Button LayoutExample 1`] = `
559
695
  .c0 {
560
696
  cursor: pointer;
561
697
  -webkit-appearance: none;
@@ -626,13 +762,19 @@ exports[`Storyshots Button Layout Example 1`] = `
626
762
  height: 40px;
627
763
  }
628
764
 
629
- .c1:not(:disabled):not([aria-disabled]):active,
630
- .c1[aria-disabled='false']:active,
631
765
  .c1:not(:disabled):not([aria-disabled]):focus,
632
- .c1[aria-disabled='false']:focus,
766
+ .c1[aria-disabled='false']:focus {
767
+ outline: none;
768
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
769
+ }
770
+
771
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
772
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
773
+ box-shadow: none;
774
+ }
775
+
633
776
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
634
777
  .c1[aria-disabled='false']:focus-visible {
635
- outline: none;
636
778
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
637
779
  }
638
780
 
@@ -685,13 +827,19 @@ exports[`Storyshots Button Layout Example 1`] = `
685
827
  height: 40px;
686
828
  }
687
829
 
688
- .c2:not(:disabled):not([aria-disabled]):active,
689
- .c2[aria-disabled='false']:active,
690
830
  .c2:not(:disabled):not([aria-disabled]):focus,
691
- .c2[aria-disabled='false']:focus,
831
+ .c2[aria-disabled='false']:focus {
832
+ outline: none;
833
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
834
+ }
835
+
836
+ .c2:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
837
+ .c2[aria-disabled='false']:focus:not(:focus-visible) {
838
+ box-shadow: none;
839
+ }
840
+
692
841
  .c2:not(:disabled):not([aria-disabled]):focus-visible,
693
842
  .c2[aria-disabled='false']:focus-visible {
694
- outline: none;
695
843
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
696
844
  }
697
845
 
@@ -744,13 +892,19 @@ exports[`Storyshots Button Layout Example 1`] = `
744
892
  height: 40px;
745
893
  }
746
894
 
747
- .c3:not(:disabled):not([aria-disabled]):active,
748
- .c3[aria-disabled='false']:active,
749
895
  .c3:not(:disabled):not([aria-disabled]):focus,
750
- .c3[aria-disabled='false']:focus,
896
+ .c3[aria-disabled='false']:focus {
897
+ outline: none;
898
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
899
+ }
900
+
901
+ .c3:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
902
+ .c3[aria-disabled='false']:focus:not(:focus-visible) {
903
+ box-shadow: none;
904
+ }
905
+
751
906
  .c3:not(:disabled):not([aria-disabled]):focus-visible,
752
907
  .c3[aria-disabled='false']:focus-visible {
753
- outline: none;
754
908
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
755
909
  }
756
910
 
@@ -803,13 +957,19 @@ exports[`Storyshots Button Layout Example 1`] = `
803
957
  height: 40px;
804
958
  }
805
959
 
806
- .c4:not(:disabled):not([aria-disabled]):active,
807
- .c4[aria-disabled='false']:active,
808
960
  .c4:not(:disabled):not([aria-disabled]):focus,
809
- .c4[aria-disabled='false']:focus,
961
+ .c4[aria-disabled='false']:focus {
962
+ outline: none;
963
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
964
+ }
965
+
966
+ .c4:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
967
+ .c4[aria-disabled='false']:focus:not(:focus-visible) {
968
+ box-shadow: none;
969
+ }
970
+
810
971
  .c4:not(:disabled):not([aria-disabled]):focus-visible,
811
972
  .c4[aria-disabled='false']:focus-visible {
812
- outline: none;
813
973
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
814
974
  }
815
975
 
@@ -862,13 +1022,19 @@ exports[`Storyshots Button Layout Example 1`] = `
862
1022
  height: 40px;
863
1023
  }
864
1024
 
865
- .c5:not(:disabled):not([aria-disabled]):active,
866
- .c5[aria-disabled='false']:active,
867
1025
  .c5:not(:disabled):not([aria-disabled]):focus,
868
- .c5[aria-disabled='false']:focus,
1026
+ .c5[aria-disabled='false']:focus {
1027
+ outline: none;
1028
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1029
+ }
1030
+
1031
+ .c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1032
+ .c5[aria-disabled='false']:focus:not(:focus-visible) {
1033
+ box-shadow: none;
1034
+ }
1035
+
869
1036
  .c5:not(:disabled):not([aria-disabled]):focus-visible,
870
1037
  .c5[aria-disabled='false']:focus-visible {
871
- outline: none;
872
1038
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
873
1039
  }
874
1040
 
@@ -894,16 +1060,16 @@ exports[`Storyshots Button Layout Example 1`] = `
894
1060
  >
895
1061
  <div
896
1062
  css="
897
- display: grid;
898
- gap: 24px;
899
- "
1063
+ display: grid;
1064
+ gap: 24px;
1065
+ "
900
1066
  >
901
1067
  <div
902
1068
  css="
903
- display: grid;
904
- grid: auto / auto-flow min-content;
905
- gap: 8px;
906
- "
1069
+ display: grid;
1070
+ grid: auto / auto-flow min-content;
1071
+ gap: 8px;
1072
+ "
907
1073
  >
908
1074
  <button
909
1075
  className="c0 c1"
@@ -926,10 +1092,10 @@ exports[`Storyshots Button Layout Example 1`] = `
926
1092
  </div>
927
1093
  <div
928
1094
  css="
929
- display: grid;
930
- grid: auto-flow auto / 392px;
931
- gap: 8px;
932
- "
1095
+ display: grid;
1096
+ grid: auto-flow auto / 392px;
1097
+ gap: 8px;
1098
+ "
933
1099
  >
934
1100
  <button
935
1101
  className="c0 c4"
@@ -946,12 +1112,12 @@ exports[`Storyshots Button Layout Example 1`] = `
946
1112
  </div>
947
1113
  <div
948
1114
  css="
949
- display: flex;
1115
+ display: flex;
950
1116
 
951
- & > * + * {
952
- margin-left: 8px;
953
- }
954
- "
1117
+ & > * + * {
1118
+ margin-left: 8px;
1119
+ }
1120
+ "
955
1121
  >
956
1122
  <button
957
1123
  className="c0 c1"
@@ -974,14 +1140,14 @@ exports[`Storyshots Button Layout Example 1`] = `
974
1140
  </div>
975
1141
  <div
976
1142
  css="
977
- display: flex;
978
- flex-direction: column;
979
- width: 392px;
980
-
981
- & > * + * {
982
- margin-top: 8px;
983
- }
984
- "
1143
+ display: flex;
1144
+ flex-direction: column;
1145
+ width: 392px;
1146
+
1147
+ & > * + * {
1148
+ margin-top: 8px;
1149
+ }
1150
+ "
985
1151
  >
986
1152
  <button
987
1153
  className="c0 c4"
@@ -998,14 +1164,14 @@ exports[`Storyshots Button Layout Example 1`] = `
998
1164
  </div>
999
1165
  <div
1000
1166
  css="
1001
- display: flex;
1002
- flex-direction: column;
1003
- width: 392px;
1004
-
1005
- & > * + * {
1006
- margin-top: 8px;
1007
- }
1008
- "
1167
+ display: flex;
1168
+ flex-direction: column;
1169
+ width: 392px;
1170
+
1171
+ & > * + * {
1172
+ margin-top: 8px;
1173
+ }
1174
+ "
1009
1175
  >
1010
1176
  <button
1011
1177
  className="c0 c4"
@@ -1024,7 +1190,7 @@ exports[`Storyshots Button Layout Example 1`] = `
1024
1190
  </div>
1025
1191
  `;
1026
1192
 
1027
- exports[`Storyshots Button Link 1`] = `
1193
+ exports[`Storybook Tests Button Link 1`] = `
1028
1194
  .c0 {
1029
1195
  cursor: pointer;
1030
1196
  -webkit-appearance: none;
@@ -1095,13 +1261,19 @@ exports[`Storyshots Button Link 1`] = `
1095
1261
  height: 40px;
1096
1262
  }
1097
1263
 
1098
- .c1:not(:disabled):not([aria-disabled]):active,
1099
- .c1[aria-disabled='false']:active,
1100
1264
  .c1:not(:disabled):not([aria-disabled]):focus,
1101
- .c1[aria-disabled='false']:focus,
1265
+ .c1[aria-disabled='false']:focus {
1266
+ outline: none;
1267
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1268
+ }
1269
+
1270
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1271
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1272
+ box-shadow: none;
1273
+ }
1274
+
1102
1275
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1103
1276
  .c1[aria-disabled='false']:focus-visible {
1104
- outline: none;
1105
1277
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1106
1278
  }
1107
1279
 
@@ -1128,14 +1300,13 @@ exports[`Storyshots Button Link 1`] = `
1128
1300
  <a
1129
1301
  className="c0 c1"
1130
1302
  href="#"
1131
- onClick={[Function]}
1132
1303
  >
1133
1304
  Button
1134
1305
  </a>
1135
1306
  </div>
1136
1307
  `;
1137
1308
 
1138
- exports[`Storyshots Button Navigation 1`] = `
1309
+ exports[`Storybook Tests Button Navigation 1`] = `
1139
1310
  .c0 {
1140
1311
  cursor: pointer;
1141
1312
  -webkit-appearance: none;
@@ -1206,13 +1377,19 @@ exports[`Storyshots Button Navigation 1`] = `
1206
1377
  height: 40px;
1207
1378
  }
1208
1379
 
1209
- .c1:not(:disabled):not([aria-disabled]):active,
1210
- .c1[aria-disabled='false']:active,
1211
1380
  .c1:not(:disabled):not([aria-disabled]):focus,
1212
- .c1[aria-disabled='false']:focus,
1381
+ .c1[aria-disabled='false']:focus {
1382
+ outline: none;
1383
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1384
+ }
1385
+
1386
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1387
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1388
+ box-shadow: none;
1389
+ }
1390
+
1213
1391
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1214
1392
  .c1[aria-disabled='false']:focus-visible {
1215
- outline: none;
1216
1393
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1217
1394
  }
1218
1395
 
@@ -1239,14 +1416,13 @@ exports[`Storyshots Button Navigation 1`] = `
1239
1416
  <button
1240
1417
  className="c0 c1"
1241
1418
  disabled={false}
1242
- onClick={[Function]}
1243
1419
  >
1244
1420
  Button
1245
1421
  </button>
1246
1422
  </div>
1247
1423
  `;
1248
1424
 
1249
- exports[`Storyshots Button Nihongo 1`] = `
1425
+ exports[`Storybook Tests Button Nihongo 1`] = `
1250
1426
  .c0 {
1251
1427
  cursor: pointer;
1252
1428
  -webkit-appearance: none;
@@ -1317,13 +1493,19 @@ exports[`Storyshots Button Nihongo 1`] = `
1317
1493
  height: 40px;
1318
1494
  }
1319
1495
 
1320
- .c1:not(:disabled):not([aria-disabled]):active,
1321
- .c1[aria-disabled='false']:active,
1322
1496
  .c1:not(:disabled):not([aria-disabled]):focus,
1323
- .c1[aria-disabled='false']:focus,
1497
+ .c1[aria-disabled='false']:focus {
1498
+ outline: none;
1499
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1500
+ }
1501
+
1502
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1503
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1504
+ box-shadow: none;
1505
+ }
1506
+
1324
1507
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1325
1508
  .c1[aria-disabled='false']:focus-visible {
1326
- outline: none;
1327
1509
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1328
1510
  }
1329
1511
 
@@ -1350,14 +1532,13 @@ exports[`Storyshots Button Nihongo 1`] = `
1350
1532
  <button
1351
1533
  className="c0 c1"
1352
1534
  disabled={false}
1353
- onClick={[Function]}
1354
1535
  >
1355
1536
  日本語だよ
1356
1537
  </button>
1357
1538
  </div>
1358
1539
  `;
1359
1540
 
1360
- exports[`Storyshots Button Overlay 1`] = `
1541
+ exports[`Storybook Tests Button Overlay 1`] = `
1361
1542
  .c0 {
1362
1543
  cursor: pointer;
1363
1544
  -webkit-appearance: none;
@@ -1428,13 +1609,19 @@ exports[`Storyshots Button Overlay 1`] = `
1428
1609
  height: 40px;
1429
1610
  }
1430
1611
 
1431
- .c1:not(:disabled):not([aria-disabled]):active,
1432
- .c1[aria-disabled='false']:active,
1433
1612
  .c1:not(:disabled):not([aria-disabled]):focus,
1434
- .c1[aria-disabled='false']:focus,
1613
+ .c1[aria-disabled='false']:focus {
1614
+ outline: none;
1615
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1616
+ }
1617
+
1618
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1619
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1620
+ box-shadow: none;
1621
+ }
1622
+
1435
1623
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1436
1624
  .c1[aria-disabled='false']:focus-visible {
1437
- outline: none;
1438
1625
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1439
1626
  }
1440
1627
 
@@ -1461,14 +1648,13 @@ exports[`Storyshots Button Overlay 1`] = `
1461
1648
  <button
1462
1649
  className="c0 c1"
1463
1650
  disabled={false}
1464
- onClick={[Function]}
1465
1651
  >
1466
1652
  Button
1467
1653
  </button>
1468
1654
  </div>
1469
1655
  `;
1470
1656
 
1471
- exports[`Storyshots Button Primary 1`] = `
1657
+ exports[`Storybook Tests Button Primary 1`] = `
1472
1658
  .c0 {
1473
1659
  cursor: pointer;
1474
1660
  -webkit-appearance: none;
@@ -1539,13 +1725,19 @@ exports[`Storyshots Button Primary 1`] = `
1539
1725
  height: 40px;
1540
1726
  }
1541
1727
 
1542
- .c1:not(:disabled):not([aria-disabled]):active,
1543
- .c1[aria-disabled='false']:active,
1544
1728
  .c1:not(:disabled):not([aria-disabled]):focus,
1545
- .c1[aria-disabled='false']:focus,
1729
+ .c1[aria-disabled='false']:focus {
1730
+ outline: none;
1731
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1732
+ }
1733
+
1734
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1735
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1736
+ box-shadow: none;
1737
+ }
1738
+
1546
1739
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1547
1740
  .c1[aria-disabled='false']:focus-visible {
1548
- outline: none;
1549
1741
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1550
1742
  }
1551
1743
 
@@ -1572,14 +1764,13 @@ exports[`Storyshots Button Primary 1`] = `
1572
1764
  <button
1573
1765
  className="c0 c1"
1574
1766
  disabled={false}
1575
- onClick={[Function]}
1576
1767
  >
1577
1768
  Button
1578
1769
  </button>
1579
1770
  </div>
1580
1771
  `;
1581
1772
 
1582
- exports[`Storyshots Button Small 1`] = `
1773
+ exports[`Storybook Tests Button Small 1`] = `
1583
1774
  .c0 {
1584
1775
  cursor: pointer;
1585
1776
  -webkit-appearance: none;
@@ -1650,13 +1841,19 @@ exports[`Storyshots Button Small 1`] = `
1650
1841
  height: 32px;
1651
1842
  }
1652
1843
 
1653
- .c1:not(:disabled):not([aria-disabled]):active,
1654
- .c1[aria-disabled='false']:active,
1655
1844
  .c1:not(:disabled):not([aria-disabled]):focus,
1656
- .c1[aria-disabled='false']:focus,
1845
+ .c1[aria-disabled='false']:focus {
1846
+ outline: none;
1847
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1848
+ }
1849
+
1850
+ .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1851
+ .c1[aria-disabled='false']:focus:not(:focus-visible) {
1852
+ box-shadow: none;
1853
+ }
1854
+
1657
1855
  .c1:not(:disabled):not([aria-disabled]):focus-visible,
1658
1856
  .c1[aria-disabled='false']:focus-visible {
1659
- outline: none;
1660
1857
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1661
1858
  }
1662
1859
 
@@ -1683,7 +1880,6 @@ exports[`Storyshots Button Small 1`] = `
1683
1880
  <button
1684
1881
  className="c0 c1"
1685
1882
  disabled={false}
1686
- onClick={[Function]}
1687
1883
  >
1688
1884
  Button
1689
1885
  </button>