@charcoal-ui/react 3.4.0 → 3.6.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 (77) hide show
  1. package/dist/components/Button/index.d.ts.map +1 -1
  2. package/dist/components/Checkbox/index.d.ts.map +1 -1
  3. package/dist/components/Checkbox/index.story.d.ts +1 -0
  4. package/dist/components/Checkbox/index.story.d.ts.map +1 -1
  5. package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +1 -1
  6. package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
  7. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  8. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  9. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  10. package/dist/components/IconButton/index.d.ts.map +1 -1
  11. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  12. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  13. package/dist/components/Modal/index.d.ts.map +1 -1
  14. package/dist/components/Modal/index.story.d.ts +1 -0
  15. package/dist/components/Modal/index.story.d.ts.map +1 -1
  16. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  17. package/dist/components/MultiSelect/index.story.d.ts +2 -0
  18. package/dist/components/MultiSelect/index.story.d.ts.map +1 -1
  19. package/dist/components/Radio/index.d.ts.map +1 -1
  20. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  21. package/dist/components/Switch/index.d.ts.map +1 -1
  22. package/dist/components/TagItem/index.d.ts.map +1 -1
  23. package/dist/components/TextArea/index.d.ts.map +1 -1
  24. package/dist/components/TextField/TextField.story.d.ts.map +1 -1
  25. package/dist/components/TextField/index.d.ts +4 -0
  26. package/dist/components/TextField/index.d.ts.map +1 -1
  27. package/dist/components/TextField/useFocusWithClick.d.ts +3 -0
  28. package/dist/components/TextField/useFocusWithClick.d.ts.map +1 -0
  29. package/dist/index.cjs.js +935 -494
  30. package/dist/index.cjs.js.map +1 -1
  31. package/dist/index.esm.js +863 -422
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/styled.d.ts +4 -4
  34. package/package.json +9 -9
  35. package/src/components/Button/__snapshots__/index.story.storyshot +312 -592
  36. package/src/components/Button/index.tsx +50 -14
  37. package/src/components/Checkbox/__snapshots__/index.story.storyshot +209 -40
  38. package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +410 -80
  39. package/src/components/Checkbox/index.story.tsx +24 -0
  40. package/src/components/Checkbox/index.tsx +47 -17
  41. package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -0
  42. package/src/components/Clickable/index.tsx +1 -0
  43. package/src/components/DropdownSelector/DropdownMenuItem.tsx +19 -3
  44. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +3 -10
  45. package/src/components/DropdownSelector/ListItem/index.tsx +6 -4
  46. package/src/components/DropdownSelector/MenuItemGroup/index.tsx +1 -1
  47. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +4 -13
  48. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +20 -37
  49. package/src/components/DropdownSelector/Popover/index.tsx +5 -8
  50. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +60 -191
  51. package/src/components/DropdownSelector/index.tsx +70 -20
  52. package/src/components/FieldLabel/index.tsx +77 -12
  53. package/src/components/IconButton/__snapshots__/index.story.storyshot +30 -54
  54. package/src/components/IconButton/index.tsx +51 -26
  55. package/src/components/LoadingSpinner/index.tsx +3 -6
  56. package/src/components/Modal/Dialog/index.tsx +1 -1
  57. package/src/components/Modal/ModalPlumbing.tsx +26 -5
  58. package/src/components/Modal/__snapshots__/index.story.storyshot +2454 -108
  59. package/src/components/Modal/index.story.tsx +27 -0
  60. package/src/components/Modal/index.tsx +19 -4
  61. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +528 -25
  62. package/src/components/MultiSelect/index.story.tsx +60 -0
  63. package/src/components/MultiSelect/index.tsx +82 -22
  64. package/src/components/Radio/__snapshots__/index.story.storyshot +32 -49
  65. package/src/components/Radio/index.tsx +71 -23
  66. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +18 -19
  67. package/src/components/SegmentedControl/index.tsx +35 -15
  68. package/src/components/Switch/__snapshots__/index.story.storyshot +6 -18
  69. package/src/components/Switch/index.tsx +10 -15
  70. package/src/components/TagItem/__snapshots__/index.story.storyshot +39 -158
  71. package/src/components/TagItem/index.tsx +84 -19
  72. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +126 -321
  73. package/src/components/TextArea/index.tsx +38 -43
  74. package/src/components/TextField/TextField.story.tsx +35 -19
  75. package/src/components/TextField/__snapshots__/TextField.story.storyshot +309 -563
  76. package/src/components/TextField/index.tsx +85 -84
  77. package/src/components/TextField/useFocusWithClick.tsx +22 -0
@@ -50,33 +50,22 @@ exports[`Storyshots TextArea Auto Height 1`] = `
50
50
  margin-bottom: -4px;
51
51
  }
52
52
 
53
- .c5:hover:not(:disabled):not([aria-disabled]),
54
- .c5:hover[aria-disabled=false] {
53
+ .c5:not(:disabled):not([aria-disabled]):hover,
54
+ .c5[aria-disabled='false']:hover {
55
55
  color: var(--charcoal-text3-hover);
56
56
  }
57
57
 
58
- .c5:active:not(:disabled):not([aria-disabled]),
59
- .c5:active[aria-disabled=false] {
58
+ .c5:not(:disabled):not([aria-disabled]):active,
59
+ .c5[aria-disabled='false']:active {
60
60
  color: var(--charcoal-text3-press);
61
61
  }
62
62
 
63
- .c5:not(:disabled):not([aria-disabled]):focus,
64
- .c5[aria-disabled=false]:focus,
65
63
  .c5:not(:disabled):not([aria-disabled]):active,
66
- .c5[aria-disabled=false]:active {
67
- outline: none;
68
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
69
- }
70
-
71
- .c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
72
- .c5[aria-disabled=false]:focus:not(:focus-visible),
73
- .c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
74
- .c5[aria-disabled=false]:active:not(:focus-visible) {
75
- outline: none;
76
- }
77
-
64
+ .c5[aria-disabled='false']:active,
65
+ .c5:not(:disabled):not([aria-disabled]):focus,
66
+ .c5[aria-disabled='false']:focus,
78
67
  .c5:not(:disabled):not([aria-disabled]):focus-visible,
79
- .c5[aria-disabled=false]:focus-visible {
68
+ .c5[aria-disabled='false']:focus-visible {
80
69
  outline: none;
81
70
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
82
71
  }
@@ -96,6 +85,10 @@ exports[`Storyshots TextArea Auto Height 1`] = `
96
85
  margin-left: auto;
97
86
  }
98
87
 
88
+ .c2 {
89
+ margin-bottom: 8px;
90
+ }
91
+
99
92
  .c0 {
100
93
  display: -webkit-box;
101
94
  display: -webkit-flex;
@@ -106,64 +99,34 @@ exports[`Storyshots TextArea Auto Height 1`] = `
106
99
  flex-direction: column;
107
100
  }
108
101
 
109
- .c2 {
110
- margin-bottom: 8px;
111
- }
112
-
113
- .c7 {
102
+ .c6 {
114
103
  position: relative;
115
104
  overflow: hidden;
116
- padding: 0 8px;
117
- background-color: var(--charcoal-surface3);
118
105
  color: var(--charcoal-text2);
106
+ background-color: var(--charcoal-surface3);
119
107
  border-radius: 4px;
120
108
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
121
109
  transition: 0.2s background-color,0.2s box-shadow;
122
110
  height: calc(22px * 4 + 18px);
123
111
  }
124
112
 
125
- .c7:hover:not(:disabled):not([aria-disabled]),
126
- .c7:hover[aria-disabled=false] {
113
+ .c6:not([aria-disabled]):hover,
114
+ .c6 [aria-disabled='false']:hover {
127
115
  background-color: var(--charcoal-surface3-hover);
128
116
  }
129
117
 
130
- .c7:not(:disabled):not([aria-disabled]):focus,
131
- .c7[aria-disabled=false]:focus,
132
- .c7:not(:disabled):not([aria-disabled]):active,
133
- .c7[aria-disabled=false]:active {
134
- outline: none;
135
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
136
- }
137
-
138
- .c7:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
139
- .c7[aria-disabled=false]:focus:not(:focus-visible),
140
- .c7:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
141
- .c7[aria-disabled=false]:active:not(:focus-visible) {
142
- outline: none;
143
- }
144
-
145
- .c7:not(:disabled):not([aria-disabled]):focus-visible,
146
- .c7[aria-disabled=false]:focus-visible {
118
+ .c6:focus-within {
147
119
  outline: none;
148
120
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
149
121
  }
150
122
 
151
- .c7:focus-within {
152
- -webkit-transition: 0.2s box-shadow;
153
- transition: 0.2s box-shadow;
154
- }
155
-
156
- .c7:focus-within.c6:focus-within:not(:disabled):not([aria-disabled]),
157
- .c7:focus-within.c7:focus-within[aria-disabled=false] {
158
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
159
- }
160
-
161
- .c8 {
123
+ .c7 {
162
124
  border: none;
163
125
  outline: none;
164
126
  resize: none;
165
127
  font-family: inherit;
166
128
  color: inherit;
129
+ box-sizing: border-box;
167
130
  -webkit-transform-origin: top left;
168
131
  -ms-transform-origin: top left;
169
132
  transform-origin: top left;
@@ -173,39 +136,30 @@ exports[`Storyshots TextArea Auto Height 1`] = `
173
136
  width: calc(100% / 0.875);
174
137
  font-size: calc(14px / 0.875);
175
138
  line-height: calc(22px / 0.875);
176
- padding: calc(9px / 0.875) 0;
177
- height: calc(22px / 0.875 * 4);
139
+ padding: calc(9px / 0.875) calc(8px / 0.875);
140
+ height: calc(22px / 0.875 * 4 + 20px);
178
141
  -webkit-appearance: none;
179
142
  -moz-appearance: none;
180
143
  appearance: none;
181
144
  background: none;
182
- -ms-overflow-style: none;
183
- -webkit-scrollbar-width: none;
184
- -moz-scrollbar-width: none;
185
- -ms-scrollbar-width: none;
186
- scrollbar-width: none;
187
145
  }
188
146
 
189
- .c8::-webkit-input-placeholder {
147
+ .c7::-webkit-input-placeholder {
190
148
  color: var(--charcoal-text3);
191
149
  }
192
150
 
193
- .c8::-moz-placeholder {
151
+ .c7::-moz-placeholder {
194
152
  color: var(--charcoal-text3);
195
153
  }
196
154
 
197
- .c8:-ms-input-placeholder {
155
+ .c7:-ms-input-placeholder {
198
156
  color: var(--charcoal-text3);
199
157
  }
200
158
 
201
- .c8::placeholder {
159
+ .c7::placeholder {
202
160
  color: var(--charcoal-text3);
203
161
  }
204
162
 
205
- .c8::-webkit-scrollbar {
206
- display: none;
207
- }
208
-
209
163
  <div
210
164
  data-dark={false}
211
165
  >
@@ -245,12 +199,12 @@ exports[`Storyshots TextArea Auto Height 1`] = `
245
199
  </div>
246
200
  </div>
247
201
  <div
248
- className="c6 c7"
202
+ className="c6"
249
203
  rows={4}
250
204
  >
251
205
  <textarea
252
206
  aria-labelledby="test-id"
253
- className="c8"
207
+ className="c7"
254
208
  disabled={false}
255
209
  id="test-id"
256
210
  onChange={[Function]}
@@ -280,6 +234,8 @@ exports[`Storyshots TextArea Default 1`] = `
280
234
  -ms-letter-spacing: inherit;
281
235
  letter-spacing: inherit;
282
236
  word-spacing: inherit;
237
+ -webkit-text-decoration: none;
238
+ text-decoration: none;
283
239
  font: inherit;
284
240
  margin: 0;
285
241
  overflow: visible;
@@ -349,33 +305,22 @@ exports[`Storyshots TextArea Default 1`] = `
349
305
  margin-bottom: -4px;
350
306
  }
351
307
 
352
- .c6:hover:not(:disabled):not([aria-disabled]),
353
- .c6:hover[aria-disabled=false] {
308
+ .c6:not(:disabled):not([aria-disabled]):hover,
309
+ .c6[aria-disabled='false']:hover {
354
310
  color: var(--charcoal-text3-hover);
355
311
  }
356
312
 
357
- .c6:active:not(:disabled):not([aria-disabled]),
358
- .c6:active[aria-disabled=false] {
313
+ .c6:not(:disabled):not([aria-disabled]):active,
314
+ .c6[aria-disabled='false']:active {
359
315
  color: var(--charcoal-text3-press);
360
316
  }
361
317
 
362
- .c6:not(:disabled):not([aria-disabled]):focus,
363
- .c6[aria-disabled=false]:focus,
364
318
  .c6:not(:disabled):not([aria-disabled]):active,
365
- .c6[aria-disabled=false]:active {
366
- outline: none;
367
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
368
- }
369
-
370
- .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
371
- .c6[aria-disabled=false]:focus:not(:focus-visible),
372
- .c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
373
- .c6[aria-disabled=false]:active:not(:focus-visible) {
374
- outline: none;
375
- }
376
-
319
+ .c6[aria-disabled='false']:active,
320
+ .c6:not(:disabled):not([aria-disabled]):focus,
321
+ .c6[aria-disabled='false']:focus,
377
322
  .c6:not(:disabled):not([aria-disabled]):focus-visible,
378
- .c6[aria-disabled=false]:focus-visible {
323
+ .c6[aria-disabled='false']:focus-visible {
379
324
  outline: none;
380
325
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
381
326
  }
@@ -395,6 +340,10 @@ exports[`Storyshots TextArea Default 1`] = `
395
340
  margin-left: auto;
396
341
  }
397
342
 
343
+ .c3 {
344
+ margin-bottom: 8px;
345
+ }
346
+
398
347
  .c1 {
399
348
  display: -webkit-box;
400
349
  display: -webkit-flex;
@@ -405,64 +354,34 @@ exports[`Storyshots TextArea Default 1`] = `
405
354
  flex-direction: column;
406
355
  }
407
356
 
408
- .c3 {
409
- margin-bottom: 8px;
410
- }
411
-
412
- .c9 {
357
+ .c8 {
413
358
  position: relative;
414
359
  overflow: hidden;
415
- padding: 0 8px;
416
- background-color: var(--charcoal-surface3);
417
360
  color: var(--charcoal-text2);
361
+ background-color: var(--charcoal-surface3);
418
362
  border-radius: 4px;
419
363
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
420
364
  transition: 0.2s background-color,0.2s box-shadow;
421
365
  height: calc(22px * 4 + 18px);
422
366
  }
423
367
 
424
- .c9:hover:not(:disabled):not([aria-disabled]),
425
- .c9:hover[aria-disabled=false] {
368
+ .c8:not([aria-disabled]):hover,
369
+ .c8 [aria-disabled='false']:hover {
426
370
  background-color: var(--charcoal-surface3-hover);
427
371
  }
428
372
 
429
- .c9:not(:disabled):not([aria-disabled]):focus,
430
- .c9[aria-disabled=false]:focus,
431
- .c9:not(:disabled):not([aria-disabled]):active,
432
- .c9[aria-disabled=false]:active {
433
- outline: none;
434
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
435
- }
436
-
437
- .c9:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
438
- .c9[aria-disabled=false]:focus:not(:focus-visible),
439
- .c9:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
440
- .c9[aria-disabled=false]:active:not(:focus-visible) {
441
- outline: none;
442
- }
443
-
444
- .c9:not(:disabled):not([aria-disabled]):focus-visible,
445
- .c9[aria-disabled=false]:focus-visible {
373
+ .c8:focus-within {
446
374
  outline: none;
447
375
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
448
376
  }
449
377
 
450
- .c9:focus-within {
451
- -webkit-transition: 0.2s box-shadow;
452
- transition: 0.2s box-shadow;
453
- }
454
-
455
- .c9:focus-within.c8:focus-within:not(:disabled):not([aria-disabled]),
456
- .c9:focus-within.c9:focus-within[aria-disabled=false] {
457
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
458
- }
459
-
460
- .c10 {
378
+ .c9 {
461
379
  border: none;
462
380
  outline: none;
463
381
  resize: none;
464
382
  font-family: inherit;
465
383
  color: inherit;
384
+ box-sizing: border-box;
466
385
  -webkit-transform-origin: top left;
467
386
  -ms-transform-origin: top left;
468
387
  transform-origin: top left;
@@ -472,39 +391,30 @@ exports[`Storyshots TextArea Default 1`] = `
472
391
  width: calc(100% / 0.875);
473
392
  font-size: calc(14px / 0.875);
474
393
  line-height: calc(22px / 0.875);
475
- padding: calc(9px / 0.875) 0;
476
- height: calc(22px / 0.875 * 4);
394
+ padding: calc(9px / 0.875) calc(8px / 0.875);
395
+ height: calc(22px / 0.875 * 4 + 20px);
477
396
  -webkit-appearance: none;
478
397
  -moz-appearance: none;
479
398
  appearance: none;
480
399
  background: none;
481
- -ms-overflow-style: none;
482
- -webkit-scrollbar-width: none;
483
- -moz-scrollbar-width: none;
484
- -ms-scrollbar-width: none;
485
- scrollbar-width: none;
486
400
  }
487
401
 
488
- .c10::-webkit-input-placeholder {
402
+ .c9::-webkit-input-placeholder {
489
403
  color: var(--charcoal-text3);
490
404
  }
491
405
 
492
- .c10::-moz-placeholder {
406
+ .c9::-moz-placeholder {
493
407
  color: var(--charcoal-text3);
494
408
  }
495
409
 
496
- .c10:-ms-input-placeholder {
410
+ .c9:-ms-input-placeholder {
497
411
  color: var(--charcoal-text3);
498
412
  }
499
413
 
500
- .c10::placeholder {
414
+ .c9::placeholder {
501
415
  color: var(--charcoal-text3);
502
416
  }
503
417
 
504
- .c10::-webkit-scrollbar {
505
- display: none;
506
- }
507
-
508
418
  .c0 {
509
419
  display: grid;
510
420
  gap: 24px;
@@ -559,12 +469,12 @@ exports[`Storyshots TextArea Default 1`] = `
559
469
  </div>
560
470
  </div>
561
471
  <div
562
- className="c8 c9"
472
+ className="c8"
563
473
  rows={4}
564
474
  >
565
475
  <textarea
566
476
  aria-labelledby="test-id"
567
- className="c10"
477
+ className="c9"
568
478
  disabled={false}
569
479
  id="test-id"
570
480
  onChange={[Function]}
@@ -595,6 +505,8 @@ exports[`Storyshots TextArea Has Count 1`] = `
595
505
  -ms-letter-spacing: inherit;
596
506
  letter-spacing: inherit;
597
507
  word-spacing: inherit;
508
+ -webkit-text-decoration: none;
509
+ text-decoration: none;
598
510
  font: inherit;
599
511
  margin: 0;
600
512
  overflow: visible;
@@ -664,33 +576,22 @@ exports[`Storyshots TextArea Has Count 1`] = `
664
576
  margin-bottom: -4px;
665
577
  }
666
578
 
667
- .c6:hover:not(:disabled):not([aria-disabled]),
668
- .c6:hover[aria-disabled=false] {
579
+ .c6:not(:disabled):not([aria-disabled]):hover,
580
+ .c6[aria-disabled='false']:hover {
669
581
  color: var(--charcoal-text3-hover);
670
582
  }
671
583
 
672
- .c6:active:not(:disabled):not([aria-disabled]),
673
- .c6:active[aria-disabled=false] {
584
+ .c6:not(:disabled):not([aria-disabled]):active,
585
+ .c6[aria-disabled='false']:active {
674
586
  color: var(--charcoal-text3-press);
675
587
  }
676
588
 
677
- .c6:not(:disabled):not([aria-disabled]):focus,
678
- .c6[aria-disabled=false]:focus,
679
589
  .c6:not(:disabled):not([aria-disabled]):active,
680
- .c6[aria-disabled=false]:active {
681
- outline: none;
682
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
683
- }
684
-
685
- .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
686
- .c6[aria-disabled=false]:focus:not(:focus-visible),
687
- .c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
688
- .c6[aria-disabled=false]:active:not(:focus-visible) {
689
- outline: none;
690
- }
691
-
590
+ .c6[aria-disabled='false']:active,
591
+ .c6:not(:disabled):not([aria-disabled]):focus,
592
+ .c6[aria-disabled='false']:focus,
692
593
  .c6:not(:disabled):not([aria-disabled]):focus-visible,
693
- .c6[aria-disabled=false]:focus-visible {
594
+ .c6[aria-disabled='false']:focus-visible {
694
595
  outline: none;
695
596
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
696
597
  }
@@ -710,6 +611,10 @@ exports[`Storyshots TextArea Has Count 1`] = `
710
611
  margin-left: auto;
711
612
  }
712
613
 
614
+ .c3 {
615
+ margin-bottom: 8px;
616
+ }
617
+
713
618
  .c1 {
714
619
  display: -webkit-box;
715
620
  display: -webkit-flex;
@@ -720,64 +625,34 @@ exports[`Storyshots TextArea Has Count 1`] = `
720
625
  flex-direction: column;
721
626
  }
722
627
 
723
- .c3 {
724
- margin-bottom: 8px;
725
- }
726
-
727
- .c9 {
628
+ .c8 {
728
629
  position: relative;
729
630
  overflow: hidden;
730
- padding: 0 8px;
731
- background-color: var(--charcoal-surface3);
732
631
  color: var(--charcoal-text2);
632
+ background-color: var(--charcoal-surface3);
733
633
  border-radius: 4px;
734
634
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
735
635
  transition: 0.2s background-color,0.2s box-shadow;
736
636
  height: calc(22px * 5 + 18px);
737
637
  }
738
638
 
739
- .c9:hover:not(:disabled):not([aria-disabled]),
740
- .c9:hover[aria-disabled=false] {
639
+ .c8:not([aria-disabled]):hover,
640
+ .c8 [aria-disabled='false']:hover {
741
641
  background-color: var(--charcoal-surface3-hover);
742
642
  }
743
643
 
744
- .c9:not(:disabled):not([aria-disabled]):focus,
745
- .c9[aria-disabled=false]:focus,
746
- .c9:not(:disabled):not([aria-disabled]):active,
747
- .c9[aria-disabled=false]:active {
748
- outline: none;
749
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
750
- }
751
-
752
- .c9:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
753
- .c9[aria-disabled=false]:focus:not(:focus-visible),
754
- .c9:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
755
- .c9[aria-disabled=false]:active:not(:focus-visible) {
756
- outline: none;
757
- }
758
-
759
- .c9:not(:disabled):not([aria-disabled]):focus-visible,
760
- .c9[aria-disabled=false]:focus-visible {
644
+ .c8:focus-within {
761
645
  outline: none;
762
646
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
763
647
  }
764
648
 
765
- .c9:focus-within {
766
- -webkit-transition: 0.2s box-shadow;
767
- transition: 0.2s box-shadow;
768
- }
769
-
770
- .c9:focus-within.c8:focus-within:not(:disabled):not([aria-disabled]),
771
- .c9:focus-within.c9:focus-within[aria-disabled=false] {
772
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
773
- }
774
-
775
- .c10 {
649
+ .c9 {
776
650
  border: none;
777
651
  outline: none;
778
652
  resize: none;
779
653
  font-family: inherit;
780
654
  color: inherit;
655
+ box-sizing: border-box;
781
656
  -webkit-transform-origin: top left;
782
657
  -ms-transform-origin: top left;
783
658
  transform-origin: top left;
@@ -787,45 +662,36 @@ exports[`Storyshots TextArea Has Count 1`] = `
787
662
  width: calc(100% / 0.875);
788
663
  font-size: calc(14px / 0.875);
789
664
  line-height: calc(22px / 0.875);
790
- padding: calc(9px / 0.875) 0 0;
791
- height: calc(22px / 0.875 * 4);
665
+ padding: calc(9px / 0.875) calc(8px / 0.875) 0;
666
+ height: calc(22px / 0.875 * 4 + 9px);
792
667
  -webkit-appearance: none;
793
668
  -moz-appearance: none;
794
669
  appearance: none;
795
670
  background: none;
796
- -ms-overflow-style: none;
797
- -webkit-scrollbar-width: none;
798
- -moz-scrollbar-width: none;
799
- -ms-scrollbar-width: none;
800
- scrollbar-width: none;
801
671
  }
802
672
 
803
- .c10::-webkit-input-placeholder {
673
+ .c9::-webkit-input-placeholder {
804
674
  color: var(--charcoal-text3);
805
675
  }
806
676
 
807
- .c10::-moz-placeholder {
677
+ .c9::-moz-placeholder {
808
678
  color: var(--charcoal-text3);
809
679
  }
810
680
 
811
- .c10:-ms-input-placeholder {
681
+ .c9:-ms-input-placeholder {
812
682
  color: var(--charcoal-text3);
813
683
  }
814
684
 
815
- .c10::placeholder {
685
+ .c9::placeholder {
816
686
  color: var(--charcoal-text3);
817
687
  }
818
688
 
819
- .c10::-webkit-scrollbar {
820
- display: none;
821
- }
822
-
823
- .c11 {
689
+ .c10 {
824
690
  position: absolute;
825
691
  bottom: 9px;
826
692
  right: 8px;
827
- font-size: 14px;
828
693
  line-height: 22px;
694
+ font-size: 14px;
829
695
  color: var(--charcoal-text3);
830
696
  }
831
697
 
@@ -883,12 +749,12 @@ exports[`Storyshots TextArea Has Count 1`] = `
883
749
  </div>
884
750
  </div>
885
751
  <div
886
- className="c8 c9"
752
+ className="c8"
887
753
  rows={5}
888
754
  >
889
755
  <textarea
890
756
  aria-labelledby="test-id"
891
- className="c10"
757
+ className="c9"
892
758
  disabled={false}
893
759
  id="test-id"
894
760
  maxLength={100}
@@ -898,7 +764,7 @@ exports[`Storyshots TextArea Has Count 1`] = `
898
764
  rows={4}
899
765
  />
900
766
  <span
901
- className="c11"
767
+ className="c10"
902
768
  >
903
769
  0/100
904
770
  </span>
@@ -925,6 +791,8 @@ exports[`Storyshots TextArea Has Label 1`] = `
925
791
  -ms-letter-spacing: inherit;
926
792
  letter-spacing: inherit;
927
793
  word-spacing: inherit;
794
+ -webkit-text-decoration: none;
795
+ text-decoration: none;
928
796
  font: inherit;
929
797
  margin: 0;
930
798
  overflow: visible;
@@ -1017,33 +885,22 @@ exports[`Storyshots TextArea Has Label 1`] = `
1017
885
  margin-bottom: -4px;
1018
886
  }
1019
887
 
1020
- .c8:hover:not(:disabled):not([aria-disabled]),
1021
- .c8:hover[aria-disabled=false] {
888
+ .c8:not(:disabled):not([aria-disabled]):hover,
889
+ .c8[aria-disabled='false']:hover {
1022
890
  color: var(--charcoal-text3-hover);
1023
891
  }
1024
892
 
1025
- .c8:active:not(:disabled):not([aria-disabled]),
1026
- .c8:active[aria-disabled=false] {
893
+ .c8:not(:disabled):not([aria-disabled]):active,
894
+ .c8[aria-disabled='false']:active {
1027
895
  color: var(--charcoal-text3-press);
1028
896
  }
1029
897
 
1030
- .c8:not(:disabled):not([aria-disabled]):focus,
1031
- .c8[aria-disabled=false]:focus,
1032
898
  .c8:not(:disabled):not([aria-disabled]):active,
1033
- .c8[aria-disabled=false]:active {
1034
- outline: none;
1035
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1036
- }
1037
-
1038
- .c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1039
- .c8[aria-disabled=false]:focus:not(:focus-visible),
1040
- .c8:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1041
- .c8[aria-disabled=false]:active:not(:focus-visible) {
1042
- outline: none;
1043
- }
1044
-
899
+ .c8[aria-disabled='false']:active,
900
+ .c8:not(:disabled):not([aria-disabled]):focus,
901
+ .c8[aria-disabled='false']:focus,
1045
902
  .c8:not(:disabled):not([aria-disabled]):focus-visible,
1046
- .c8[aria-disabled=false]:focus-visible {
903
+ .c8[aria-disabled='false']:focus-visible {
1047
904
  outline: none;
1048
905
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1049
906
  }
@@ -1067,6 +924,18 @@ exports[`Storyshots TextArea Has Label 1`] = `
1067
924
  margin-left: auto;
1068
925
  }
1069
926
 
927
+ .c3 {
928
+ margin-bottom: 8px;
929
+ }
930
+
931
+ .c12 {
932
+ font-size: 14px;
933
+ line-height: 22px;
934
+ margin-top: 4px;
935
+ margin-bottom: -4px;
936
+ color: var(--charcoal-text2);
937
+ }
938
+
1070
939
  .c1 {
1071
940
  display: -webkit-box;
1072
941
  display: -webkit-flex;
@@ -1077,64 +946,34 @@ exports[`Storyshots TextArea Has Label 1`] = `
1077
946
  flex-direction: column;
1078
947
  }
1079
948
 
1080
- .c3 {
1081
- margin-bottom: 8px;
1082
- }
1083
-
1084
- .c11 {
949
+ .c10 {
1085
950
  position: relative;
1086
951
  overflow: hidden;
1087
- padding: 0 8px;
1088
- background-color: var(--charcoal-surface3);
1089
952
  color: var(--charcoal-text2);
953
+ background-color: var(--charcoal-surface3);
1090
954
  border-radius: 4px;
1091
955
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
1092
956
  transition: 0.2s background-color,0.2s box-shadow;
1093
957
  height: calc(22px * 4 + 18px);
1094
958
  }
1095
959
 
1096
- .c11:hover:not(:disabled):not([aria-disabled]),
1097
- .c11:hover[aria-disabled=false] {
960
+ .c10:not([aria-disabled]):hover,
961
+ .c10 [aria-disabled='false']:hover {
1098
962
  background-color: var(--charcoal-surface3-hover);
1099
963
  }
1100
964
 
1101
- .c11:not(:disabled):not([aria-disabled]):focus,
1102
- .c11[aria-disabled=false]:focus,
1103
- .c11:not(:disabled):not([aria-disabled]):active,
1104
- .c11[aria-disabled=false]:active {
1105
- outline: none;
1106
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1107
- }
1108
-
1109
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1110
- .c11[aria-disabled=false]:focus:not(:focus-visible),
1111
- .c11:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1112
- .c11[aria-disabled=false]:active:not(:focus-visible) {
1113
- outline: none;
1114
- }
1115
-
1116
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
1117
- .c11[aria-disabled=false]:focus-visible {
965
+ .c10:focus-within {
1118
966
  outline: none;
1119
967
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1120
968
  }
1121
969
 
1122
- .c11:focus-within {
1123
- -webkit-transition: 0.2s box-shadow;
1124
- transition: 0.2s box-shadow;
1125
- }
1126
-
1127
- .c11:focus-within.c10:focus-within:not(:disabled):not([aria-disabled]),
1128
- .c11:focus-within.c11:focus-within[aria-disabled=false] {
1129
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1130
- }
1131
-
1132
- .c12 {
970
+ .c11 {
1133
971
  border: none;
1134
972
  outline: none;
1135
973
  resize: none;
1136
974
  font-family: inherit;
1137
975
  color: inherit;
976
+ box-sizing: border-box;
1138
977
  -webkit-transform-origin: top left;
1139
978
  -ms-transform-origin: top left;
1140
979
  transform-origin: top left;
@@ -1144,64 +983,30 @@ exports[`Storyshots TextArea Has Label 1`] = `
1144
983
  width: calc(100% / 0.875);
1145
984
  font-size: calc(14px / 0.875);
1146
985
  line-height: calc(22px / 0.875);
1147
- padding: calc(9px / 0.875) 0;
1148
- height: calc(22px / 0.875 * 4);
986
+ padding: calc(9px / 0.875) calc(8px / 0.875);
987
+ height: calc(22px / 0.875 * 4 + 20px);
1149
988
  -webkit-appearance: none;
1150
989
  -moz-appearance: none;
1151
990
  appearance: none;
1152
991
  background: none;
1153
- -ms-overflow-style: none;
1154
- -webkit-scrollbar-width: none;
1155
- -moz-scrollbar-width: none;
1156
- -ms-scrollbar-width: none;
1157
- scrollbar-width: none;
1158
992
  }
1159
993
 
1160
- .c12::-webkit-input-placeholder {
994
+ .c11::-webkit-input-placeholder {
1161
995
  color: var(--charcoal-text3);
1162
996
  }
1163
997
 
1164
- .c12::-moz-placeholder {
998
+ .c11::-moz-placeholder {
1165
999
  color: var(--charcoal-text3);
1166
1000
  }
1167
1001
 
1168
- .c12:-ms-input-placeholder {
1002
+ .c11:-ms-input-placeholder {
1169
1003
  color: var(--charcoal-text3);
1170
1004
  }
1171
1005
 
1172
- .c12::placeholder {
1006
+ .c11::placeholder {
1173
1007
  color: var(--charcoal-text3);
1174
1008
  }
1175
1009
 
1176
- .c12::-webkit-scrollbar {
1177
- display: none;
1178
- }
1179
-
1180
- .c13 {
1181
- font-size: 14px;
1182
- line-height: 22px;
1183
- display: flow-root;
1184
- margin-top: 8px;
1185
- margin-bottom: 0px;
1186
- color: var(--charcoal-text1);
1187
- }
1188
-
1189
- .c13::before {
1190
- display: block;
1191
- width: 0;
1192
- height: 0;
1193
- content: '';
1194
- margin-top: -4px;
1195
- }
1196
-
1197
- .c13::after {
1198
- display: block;
1199
- width: 0;
1200
- height: 0;
1201
- content: '';
1202
- margin-bottom: -4px;
1203
- }
1204
-
1205
1010
  .c0 {
1206
1011
  display: grid;
1207
1012
  gap: 24px;
@@ -1245,13 +1050,13 @@ exports[`Storyshots TextArea Has Label 1`] = `
1245
1050
  </div>
1246
1051
  </div>
1247
1052
  <div
1248
- className="c10 c11"
1053
+ className="c10"
1249
1054
  rows={4}
1250
1055
  >
1251
1056
  <textarea
1252
1057
  aria-labelledby="test-id"
1253
1058
  aria-required={true}
1254
- className="c12"
1059
+ className="c11"
1255
1060
  disabled={false}
1256
1061
  id="test-id"
1257
1062
  onChange={[Function]}
@@ -1261,7 +1066,7 @@ exports[`Storyshots TextArea Has Label 1`] = `
1261
1066
  />
1262
1067
  </div>
1263
1068
  <p
1264
- className="c13"
1069
+ className="c12"
1265
1070
  >
1266
1071
  Assistive text
1267
1072
  </p>