@charcoal-ui/react 3.4.0 → 3.5.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/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts +4 -0
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/components/TextField/useFocusWithClick.d.ts +3 -0
- package/dist/components/TextField/useFocusWithClick.d.ts.map +1 -0
- package/dist/index.cjs.js +201 -184
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +156 -139
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +88 -245
- package/src/components/TextArea/index.tsx +38 -43
- package/src/components/TextField/TextField.story.tsx +2 -3
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +258 -455
- package/src/components/TextField/index.tsx +86 -84
- package/src/components/TextField/useFocusWithClick.tsx +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charcoal-ui/react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"typescript": "^4.9.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@charcoal-ui/icons": "^3.
|
|
55
|
-
"@charcoal-ui/styled": "^3.
|
|
56
|
-
"@charcoal-ui/theme": "^3.
|
|
57
|
-
"@charcoal-ui/utils": "^3.
|
|
54
|
+
"@charcoal-ui/icons": "^3.5.0",
|
|
55
|
+
"@charcoal-ui/styled": "^3.5.0",
|
|
56
|
+
"@charcoal-ui/theme": "^3.5.0",
|
|
57
|
+
"@charcoal-ui/utils": "^3.5.0",
|
|
58
58
|
"@react-aria/button": "^3.7.0",
|
|
59
59
|
"@react-aria/checkbox": "^3.8.0",
|
|
60
60
|
"@react-aria/dialog": "^3.5.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"url": "https://github.com/pixiv/charcoal.git",
|
|
91
91
|
"directory": "packages/react"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "73956af8afa8f49bb016dd17d3539a7512ad0c42"
|
|
94
94
|
}
|
|
@@ -96,6 +96,10 @@ exports[`Storyshots TextArea Auto Height 1`] = `
|
|
|
96
96
|
margin-left: auto;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
.c2 {
|
|
100
|
+
margin-bottom: 8px;
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
.c0 {
|
|
100
104
|
display: -webkit-box;
|
|
101
105
|
display: -webkit-flex;
|
|
@@ -106,64 +110,34 @@ exports[`Storyshots TextArea Auto Height 1`] = `
|
|
|
106
110
|
flex-direction: column;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
.
|
|
110
|
-
margin-bottom: 8px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.c7 {
|
|
113
|
+
.c6 {
|
|
114
114
|
position: relative;
|
|
115
115
|
overflow: hidden;
|
|
116
|
-
padding: 0 8px;
|
|
117
|
-
background-color: var(--charcoal-surface3);
|
|
118
116
|
color: var(--charcoal-text2);
|
|
117
|
+
background-color: var(--charcoal-surface3);
|
|
119
118
|
border-radius: 4px;
|
|
120
119
|
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
121
120
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
122
121
|
height: calc(22px * 4 + 18px);
|
|
123
122
|
}
|
|
124
123
|
|
|
125
|
-
.
|
|
126
|
-
.
|
|
124
|
+
.c6:not([aria-disabled]):hover,
|
|
125
|
+
.c6 [aria-disabled='false']:hover {
|
|
127
126
|
background-color: var(--charcoal-surface3-hover);
|
|
128
127
|
}
|
|
129
128
|
|
|
130
|
-
.
|
|
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 {
|
|
129
|
+
.c6:focus-within {
|
|
147
130
|
outline: none;
|
|
148
131
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
149
132
|
}
|
|
150
133
|
|
|
151
|
-
.c7
|
|
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 {
|
|
134
|
+
.c7 {
|
|
162
135
|
border: none;
|
|
163
136
|
outline: none;
|
|
164
137
|
resize: none;
|
|
165
138
|
font-family: inherit;
|
|
166
139
|
color: inherit;
|
|
140
|
+
box-sizing: border-box;
|
|
167
141
|
-webkit-transform-origin: top left;
|
|
168
142
|
-ms-transform-origin: top left;
|
|
169
143
|
transform-origin: top left;
|
|
@@ -173,39 +147,30 @@ exports[`Storyshots TextArea Auto Height 1`] = `
|
|
|
173
147
|
width: calc(100% / 0.875);
|
|
174
148
|
font-size: calc(14px / 0.875);
|
|
175
149
|
line-height: calc(22px / 0.875);
|
|
176
|
-
padding: calc(9px / 0.875) 0;
|
|
177
|
-
height: calc(22px / 0.875 * 4);
|
|
150
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
151
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
178
152
|
-webkit-appearance: none;
|
|
179
153
|
-moz-appearance: none;
|
|
180
154
|
appearance: none;
|
|
181
155
|
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
156
|
}
|
|
188
157
|
|
|
189
|
-
.
|
|
158
|
+
.c7::-webkit-input-placeholder {
|
|
190
159
|
color: var(--charcoal-text3);
|
|
191
160
|
}
|
|
192
161
|
|
|
193
|
-
.
|
|
162
|
+
.c7::-moz-placeholder {
|
|
194
163
|
color: var(--charcoal-text3);
|
|
195
164
|
}
|
|
196
165
|
|
|
197
|
-
.
|
|
166
|
+
.c7:-ms-input-placeholder {
|
|
198
167
|
color: var(--charcoal-text3);
|
|
199
168
|
}
|
|
200
169
|
|
|
201
|
-
.
|
|
170
|
+
.c7::placeholder {
|
|
202
171
|
color: var(--charcoal-text3);
|
|
203
172
|
}
|
|
204
173
|
|
|
205
|
-
.c8::-webkit-scrollbar {
|
|
206
|
-
display: none;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
174
|
<div
|
|
210
175
|
data-dark={false}
|
|
211
176
|
>
|
|
@@ -245,12 +210,12 @@ exports[`Storyshots TextArea Auto Height 1`] = `
|
|
|
245
210
|
</div>
|
|
246
211
|
</div>
|
|
247
212
|
<div
|
|
248
|
-
className="c6
|
|
213
|
+
className="c6"
|
|
249
214
|
rows={4}
|
|
250
215
|
>
|
|
251
216
|
<textarea
|
|
252
217
|
aria-labelledby="test-id"
|
|
253
|
-
className="
|
|
218
|
+
className="c7"
|
|
254
219
|
disabled={false}
|
|
255
220
|
id="test-id"
|
|
256
221
|
onChange={[Function]}
|
|
@@ -395,6 +360,10 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
395
360
|
margin-left: auto;
|
|
396
361
|
}
|
|
397
362
|
|
|
363
|
+
.c3 {
|
|
364
|
+
margin-bottom: 8px;
|
|
365
|
+
}
|
|
366
|
+
|
|
398
367
|
.c1 {
|
|
399
368
|
display: -webkit-box;
|
|
400
369
|
display: -webkit-flex;
|
|
@@ -405,64 +374,34 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
405
374
|
flex-direction: column;
|
|
406
375
|
}
|
|
407
376
|
|
|
408
|
-
.
|
|
409
|
-
margin-bottom: 8px;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.c9 {
|
|
377
|
+
.c8 {
|
|
413
378
|
position: relative;
|
|
414
379
|
overflow: hidden;
|
|
415
|
-
padding: 0 8px;
|
|
416
|
-
background-color: var(--charcoal-surface3);
|
|
417
380
|
color: var(--charcoal-text2);
|
|
381
|
+
background-color: var(--charcoal-surface3);
|
|
418
382
|
border-radius: 4px;
|
|
419
383
|
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
420
384
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
421
385
|
height: calc(22px * 4 + 18px);
|
|
422
386
|
}
|
|
423
387
|
|
|
424
|
-
.
|
|
425
|
-
.
|
|
388
|
+
.c8:not([aria-disabled]):hover,
|
|
389
|
+
.c8 [aria-disabled='false']:hover {
|
|
426
390
|
background-color: var(--charcoal-surface3-hover);
|
|
427
391
|
}
|
|
428
392
|
|
|
429
|
-
.
|
|
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 {
|
|
393
|
+
.c8:focus-within {
|
|
446
394
|
outline: none;
|
|
447
395
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
448
396
|
}
|
|
449
397
|
|
|
450
|
-
.c9
|
|
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 {
|
|
398
|
+
.c9 {
|
|
461
399
|
border: none;
|
|
462
400
|
outline: none;
|
|
463
401
|
resize: none;
|
|
464
402
|
font-family: inherit;
|
|
465
403
|
color: inherit;
|
|
404
|
+
box-sizing: border-box;
|
|
466
405
|
-webkit-transform-origin: top left;
|
|
467
406
|
-ms-transform-origin: top left;
|
|
468
407
|
transform-origin: top left;
|
|
@@ -472,39 +411,30 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
472
411
|
width: calc(100% / 0.875);
|
|
473
412
|
font-size: calc(14px / 0.875);
|
|
474
413
|
line-height: calc(22px / 0.875);
|
|
475
|
-
padding: calc(9px / 0.875) 0;
|
|
476
|
-
height: calc(22px / 0.875 * 4);
|
|
414
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
415
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
477
416
|
-webkit-appearance: none;
|
|
478
417
|
-moz-appearance: none;
|
|
479
418
|
appearance: none;
|
|
480
419
|
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
420
|
}
|
|
487
421
|
|
|
488
|
-
.
|
|
422
|
+
.c9::-webkit-input-placeholder {
|
|
489
423
|
color: var(--charcoal-text3);
|
|
490
424
|
}
|
|
491
425
|
|
|
492
|
-
.
|
|
426
|
+
.c9::-moz-placeholder {
|
|
493
427
|
color: var(--charcoal-text3);
|
|
494
428
|
}
|
|
495
429
|
|
|
496
|
-
.
|
|
430
|
+
.c9:-ms-input-placeholder {
|
|
497
431
|
color: var(--charcoal-text3);
|
|
498
432
|
}
|
|
499
433
|
|
|
500
|
-
.
|
|
434
|
+
.c9::placeholder {
|
|
501
435
|
color: var(--charcoal-text3);
|
|
502
436
|
}
|
|
503
437
|
|
|
504
|
-
.c10::-webkit-scrollbar {
|
|
505
|
-
display: none;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
438
|
.c0 {
|
|
509
439
|
display: grid;
|
|
510
440
|
gap: 24px;
|
|
@@ -559,12 +489,12 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
559
489
|
</div>
|
|
560
490
|
</div>
|
|
561
491
|
<div
|
|
562
|
-
className="c8
|
|
492
|
+
className="c8"
|
|
563
493
|
rows={4}
|
|
564
494
|
>
|
|
565
495
|
<textarea
|
|
566
496
|
aria-labelledby="test-id"
|
|
567
|
-
className="
|
|
497
|
+
className="c9"
|
|
568
498
|
disabled={false}
|
|
569
499
|
id="test-id"
|
|
570
500
|
onChange={[Function]}
|
|
@@ -710,6 +640,10 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
710
640
|
margin-left: auto;
|
|
711
641
|
}
|
|
712
642
|
|
|
643
|
+
.c3 {
|
|
644
|
+
margin-bottom: 8px;
|
|
645
|
+
}
|
|
646
|
+
|
|
713
647
|
.c1 {
|
|
714
648
|
display: -webkit-box;
|
|
715
649
|
display: -webkit-flex;
|
|
@@ -720,64 +654,34 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
720
654
|
flex-direction: column;
|
|
721
655
|
}
|
|
722
656
|
|
|
723
|
-
.
|
|
724
|
-
margin-bottom: 8px;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
.c9 {
|
|
657
|
+
.c8 {
|
|
728
658
|
position: relative;
|
|
729
659
|
overflow: hidden;
|
|
730
|
-
padding: 0 8px;
|
|
731
|
-
background-color: var(--charcoal-surface3);
|
|
732
660
|
color: var(--charcoal-text2);
|
|
661
|
+
background-color: var(--charcoal-surface3);
|
|
733
662
|
border-radius: 4px;
|
|
734
663
|
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
735
664
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
736
665
|
height: calc(22px * 5 + 18px);
|
|
737
666
|
}
|
|
738
667
|
|
|
739
|
-
.
|
|
740
|
-
.
|
|
668
|
+
.c8:not([aria-disabled]):hover,
|
|
669
|
+
.c8 [aria-disabled='false']:hover {
|
|
741
670
|
background-color: var(--charcoal-surface3-hover);
|
|
742
671
|
}
|
|
743
672
|
|
|
744
|
-
.
|
|
745
|
-
.c9[aria-disabled=false]:focus,
|
|
746
|
-
.c9:not(:disabled):not([aria-disabled]):active,
|
|
747
|
-
.c9[aria-disabled=false]:active {
|
|
673
|
+
.c8:focus-within {
|
|
748
674
|
outline: none;
|
|
749
675
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
750
676
|
}
|
|
751
677
|
|
|
752
|
-
.c9
|
|
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 {
|
|
761
|
-
outline: none;
|
|
762
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
763
|
-
}
|
|
764
|
-
|
|
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 {
|
|
678
|
+
.c9 {
|
|
776
679
|
border: none;
|
|
777
680
|
outline: none;
|
|
778
681
|
resize: none;
|
|
779
682
|
font-family: inherit;
|
|
780
683
|
color: inherit;
|
|
684
|
+
box-sizing: border-box;
|
|
781
685
|
-webkit-transform-origin: top left;
|
|
782
686
|
-ms-transform-origin: top left;
|
|
783
687
|
transform-origin: top left;
|
|
@@ -787,45 +691,36 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
787
691
|
width: calc(100% / 0.875);
|
|
788
692
|
font-size: calc(14px / 0.875);
|
|
789
693
|
line-height: calc(22px / 0.875);
|
|
790
|
-
padding: calc(9px / 0.875) 0 0;
|
|
791
|
-
height: calc(22px / 0.875 * 4);
|
|
694
|
+
padding: calc(9px / 0.875) calc(8px / 0.875) 0;
|
|
695
|
+
height: calc(22px / 0.875 * 4 + 9px);
|
|
792
696
|
-webkit-appearance: none;
|
|
793
697
|
-moz-appearance: none;
|
|
794
698
|
appearance: none;
|
|
795
699
|
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
700
|
}
|
|
802
701
|
|
|
803
|
-
.
|
|
702
|
+
.c9::-webkit-input-placeholder {
|
|
804
703
|
color: var(--charcoal-text3);
|
|
805
704
|
}
|
|
806
705
|
|
|
807
|
-
.
|
|
706
|
+
.c9::-moz-placeholder {
|
|
808
707
|
color: var(--charcoal-text3);
|
|
809
708
|
}
|
|
810
709
|
|
|
811
|
-
.
|
|
710
|
+
.c9:-ms-input-placeholder {
|
|
812
711
|
color: var(--charcoal-text3);
|
|
813
712
|
}
|
|
814
713
|
|
|
815
|
-
.
|
|
714
|
+
.c9::placeholder {
|
|
816
715
|
color: var(--charcoal-text3);
|
|
817
716
|
}
|
|
818
717
|
|
|
819
|
-
.c10
|
|
820
|
-
display: none;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.c11 {
|
|
718
|
+
.c10 {
|
|
824
719
|
position: absolute;
|
|
825
720
|
bottom: 9px;
|
|
826
721
|
right: 8px;
|
|
827
|
-
font-size: 14px;
|
|
828
722
|
line-height: 22px;
|
|
723
|
+
font-size: 14px;
|
|
829
724
|
color: var(--charcoal-text3);
|
|
830
725
|
}
|
|
831
726
|
|
|
@@ -883,12 +778,12 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
883
778
|
</div>
|
|
884
779
|
</div>
|
|
885
780
|
<div
|
|
886
|
-
className="c8
|
|
781
|
+
className="c8"
|
|
887
782
|
rows={5}
|
|
888
783
|
>
|
|
889
784
|
<textarea
|
|
890
785
|
aria-labelledby="test-id"
|
|
891
|
-
className="
|
|
786
|
+
className="c9"
|
|
892
787
|
disabled={false}
|
|
893
788
|
id="test-id"
|
|
894
789
|
maxLength={100}
|
|
@@ -898,7 +793,7 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
898
793
|
rows={4}
|
|
899
794
|
/>
|
|
900
795
|
<span
|
|
901
|
-
className="
|
|
796
|
+
className="c10"
|
|
902
797
|
>
|
|
903
798
|
0/100
|
|
904
799
|
</span>
|
|
@@ -1067,6 +962,18 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
1067
962
|
margin-left: auto;
|
|
1068
963
|
}
|
|
1069
964
|
|
|
965
|
+
.c3 {
|
|
966
|
+
margin-bottom: 8px;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.c12 {
|
|
970
|
+
font-size: 14px;
|
|
971
|
+
line-height: 22px;
|
|
972
|
+
margin-top: 4px;
|
|
973
|
+
margin-bottom: -4px;
|
|
974
|
+
color: var(--charcoal-text2);
|
|
975
|
+
}
|
|
976
|
+
|
|
1070
977
|
.c1 {
|
|
1071
978
|
display: -webkit-box;
|
|
1072
979
|
display: -webkit-flex;
|
|
@@ -1077,64 +984,34 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
1077
984
|
flex-direction: column;
|
|
1078
985
|
}
|
|
1079
986
|
|
|
1080
|
-
.
|
|
1081
|
-
margin-bottom: 8px;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
.c11 {
|
|
987
|
+
.c10 {
|
|
1085
988
|
position: relative;
|
|
1086
989
|
overflow: hidden;
|
|
1087
|
-
padding: 0 8px;
|
|
1088
|
-
background-color: var(--charcoal-surface3);
|
|
1089
990
|
color: var(--charcoal-text2);
|
|
991
|
+
background-color: var(--charcoal-surface3);
|
|
1090
992
|
border-radius: 4px;
|
|
1091
993
|
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
1092
994
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
1093
995
|
height: calc(22px * 4 + 18px);
|
|
1094
996
|
}
|
|
1095
997
|
|
|
1096
|
-
.
|
|
1097
|
-
.
|
|
998
|
+
.c10:not([aria-disabled]):hover,
|
|
999
|
+
.c10 [aria-disabled='false']:hover {
|
|
1098
1000
|
background-color: var(--charcoal-surface3-hover);
|
|
1099
1001
|
}
|
|
1100
1002
|
|
|
1101
|
-
.
|
|
1102
|
-
.c11[aria-disabled=false]:focus,
|
|
1103
|
-
.c11:not(:disabled):not([aria-disabled]):active,
|
|
1104
|
-
.c11[aria-disabled=false]:active {
|
|
1003
|
+
.c10:focus-within {
|
|
1105
1004
|
outline: none;
|
|
1106
1005
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1107
1006
|
}
|
|
1108
1007
|
|
|
1109
|
-
.c11
|
|
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 {
|
|
1118
|
-
outline: none;
|
|
1119
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1120
|
-
}
|
|
1121
|
-
|
|
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 {
|
|
1008
|
+
.c11 {
|
|
1133
1009
|
border: none;
|
|
1134
1010
|
outline: none;
|
|
1135
1011
|
resize: none;
|
|
1136
1012
|
font-family: inherit;
|
|
1137
1013
|
color: inherit;
|
|
1014
|
+
box-sizing: border-box;
|
|
1138
1015
|
-webkit-transform-origin: top left;
|
|
1139
1016
|
-ms-transform-origin: top left;
|
|
1140
1017
|
transform-origin: top left;
|
|
@@ -1144,64 +1021,30 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
1144
1021
|
width: calc(100% / 0.875);
|
|
1145
1022
|
font-size: calc(14px / 0.875);
|
|
1146
1023
|
line-height: calc(22px / 0.875);
|
|
1147
|
-
padding: calc(9px / 0.875) 0;
|
|
1148
|
-
height: calc(22px / 0.875 * 4);
|
|
1024
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
1025
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
1149
1026
|
-webkit-appearance: none;
|
|
1150
1027
|
-moz-appearance: none;
|
|
1151
1028
|
appearance: none;
|
|
1152
1029
|
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
1030
|
}
|
|
1159
1031
|
|
|
1160
|
-
.
|
|
1032
|
+
.c11::-webkit-input-placeholder {
|
|
1161
1033
|
color: var(--charcoal-text3);
|
|
1162
1034
|
}
|
|
1163
1035
|
|
|
1164
|
-
.
|
|
1036
|
+
.c11::-moz-placeholder {
|
|
1165
1037
|
color: var(--charcoal-text3);
|
|
1166
1038
|
}
|
|
1167
1039
|
|
|
1168
|
-
.
|
|
1040
|
+
.c11:-ms-input-placeholder {
|
|
1169
1041
|
color: var(--charcoal-text3);
|
|
1170
1042
|
}
|
|
1171
1043
|
|
|
1172
|
-
.
|
|
1044
|
+
.c11::placeholder {
|
|
1173
1045
|
color: var(--charcoal-text3);
|
|
1174
1046
|
}
|
|
1175
1047
|
|
|
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
1048
|
.c0 {
|
|
1206
1049
|
display: grid;
|
|
1207
1050
|
gap: 24px;
|
|
@@ -1245,13 +1088,13 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
1245
1088
|
</div>
|
|
1246
1089
|
</div>
|
|
1247
1090
|
<div
|
|
1248
|
-
className="c10
|
|
1091
|
+
className="c10"
|
|
1249
1092
|
rows={4}
|
|
1250
1093
|
>
|
|
1251
1094
|
<textarea
|
|
1252
1095
|
aria-labelledby="test-id"
|
|
1253
1096
|
aria-required={true}
|
|
1254
|
-
className="
|
|
1097
|
+
className="c11"
|
|
1255
1098
|
disabled={false}
|
|
1256
1099
|
id="test-id"
|
|
1257
1100
|
onChange={[Function]}
|
|
@@ -1261,7 +1104,7 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
1261
1104
|
/>
|
|
1262
1105
|
</div>
|
|
1263
1106
|
<p
|
|
1264
|
-
className="
|
|
1107
|
+
className="c12"
|
|
1265
1108
|
>
|
|
1266
1109
|
Assistive text
|
|
1267
1110
|
</p>
|