@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.
@@ -147,46 +147,37 @@ exports[`Storyshots TextField Default 1`] = `
147
147
  }
148
148
 
149
149
  .c8 {
150
- height: 40px;
151
150
  display: grid;
152
- position: relative;
151
+ grid-template-columns: 1fr;
152
+ height: 40px;
153
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
154
+ transition: 0.2s background-color,0.2s box-shadow;
155
+ color: var(--charcoal-text2);
156
+ background-color: var(--charcoal-surface3);
157
+ border-radius: 4px;
158
+ gap: 4px;
159
+ padding: 0 8px;
160
+ line-height: 22px;
161
+ font-size: 14px;
153
162
  }
154
163
 
155
- .c9 {
156
- position: absolute;
157
- top: 50%;
158
- left: 8px;
159
- -webkit-transform: translateY(-50%);
160
- -ms-transform: translateY(-50%);
161
- transform: translateY(-50%);
162
- z-index: 1;
164
+ .c8:not(:disabled):not([aria-disabled]):hover,
165
+ .c8 [aria-disabled='false']:hover {
166
+ background-color: var(--charcoal-surface3-hover);
163
167
  }
164
168
 
165
- .c12 {
166
- position: absolute;
167
- top: 50%;
168
- right: 8px;
169
- -webkit-transform: translateY(-50%);
170
- -ms-transform: translateY(-50%);
171
- transform: translateY(-50%);
172
- display: -webkit-box;
173
- display: -webkit-flex;
174
- display: -ms-flexbox;
175
- display: flex;
176
- gap: 8px;
169
+ .c8:not(:disabled):not([aria-disabled]):active,
170
+ .c8 [aria-disabled='false']:active {
171
+ outline: none;
172
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
177
173
  }
178
174
 
179
- .c10 {
180
- -webkit-user-select: none;
181
- -moz-user-select: none;
182
- -ms-user-select: none;
183
- user-select: none;
184
- font-size: 14px;
185
- line-height: 22px;
186
- color: var(--charcoal-text2);
175
+ .c8:focus-within {
176
+ outline: none;
177
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
187
178
  }
188
179
 
189
- .c11 {
180
+ .c9 {
190
181
  border: none;
191
182
  box-sizing: border-box;
192
183
  outline: none;
@@ -201,57 +192,29 @@ exports[`Storyshots TextField Default 1`] = `
201
192
  height: calc(100% / 0.875);
202
193
  font-size: calc(14px / 0.875);
203
194
  line-height: calc(22px / 0.875);
204
- padding-left: calc((8px + 0px) / 0.875);
205
- padding-right: calc((8px + 0px) / 0.875);
195
+ padding-left: 0;
196
+ padding-right: 0;
206
197
  border-radius: calc(4px / 0.875);
207
198
  -webkit-appearance: none;
208
199
  -moz-appearance: none;
209
200
  appearance: none;
210
- background-color: var(--charcoal-surface3);
201
+ background: transparent;
211
202
  color: var(--charcoal-text2);
212
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
213
- transition: 0.2s background-color,0.2s box-shadow;
214
- }
215
-
216
- .c11:hover:not(:disabled):not([aria-disabled]),
217
- .c11:hover[aria-disabled=false] {
218
- background-color: var(--charcoal-surface3-hover);
219
- }
220
-
221
- .c11:not(:disabled):not([aria-disabled]):focus,
222
- .c11[aria-disabled=false]:focus,
223
- .c11:not(:disabled):not([aria-disabled]):active,
224
- .c11[aria-disabled=false]:active {
225
- outline: none;
226
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
227
203
  }
228
204
 
229
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
230
- .c11[aria-disabled=false]:focus:not(:focus-visible),
231
- .c11:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
232
- .c11[aria-disabled=false]:active:not(:focus-visible) {
233
- outline: none;
234
- }
235
-
236
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
237
- .c11[aria-disabled=false]:focus-visible {
238
- outline: none;
239
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
240
- }
241
-
242
- .c11::-webkit-input-placeholder {
205
+ .c9::-webkit-input-placeholder {
243
206
  color: var(--charcoal-text3);
244
207
  }
245
208
 
246
- .c11::-moz-placeholder {
209
+ .c9::-moz-placeholder {
247
210
  color: var(--charcoal-text3);
248
211
  }
249
212
 
250
- .c11:-ms-input-placeholder {
213
+ .c9:-ms-input-placeholder {
251
214
  color: var(--charcoal-text3);
252
215
  }
253
216
 
254
- .c11::placeholder {
217
+ .c9::placeholder {
255
218
  color: var(--charcoal-text3);
256
219
  }
257
220
 
@@ -311,16 +274,9 @@ exports[`Storyshots TextField Default 1`] = `
311
274
  <div
312
275
  className="c8"
313
276
  >
314
- <span
315
- className="c9"
316
- >
317
- <span
318
- className="c10"
319
- />
320
- </span>
321
277
  <input
322
278
  aria-labelledby="test-id"
323
- className="c11"
279
+ className="c9"
324
280
  disabled={false}
325
281
  id="test-id"
326
282
  onChange={[Function]}
@@ -328,13 +284,6 @@ exports[`Storyshots TextField Default 1`] = `
328
284
  readOnly={false}
329
285
  type="text"
330
286
  />
331
- <span
332
- className="c12"
333
- >
334
- <span
335
- className="c10"
336
- />
337
- </span>
338
287
  </div>
339
288
  </div>
340
289
  </div>
@@ -452,46 +401,61 @@ exports[`Storyshots TextField Has Affix 1`] = `
452
401
  }
453
402
 
454
403
  .c6 {
455
- height: 40px;
456
404
  display: grid;
457
- position: relative;
405
+ grid-template-columns: auto 1fr auto;
406
+ height: 40px;
407
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
408
+ transition: 0.2s background-color,0.2s box-shadow;
409
+ color: var(--charcoal-text2);
410
+ background-color: var(--charcoal-surface3);
411
+ border-radius: 4px;
412
+ gap: 4px;
413
+ padding: 0 8px;
414
+ line-height: 22px;
415
+ font-size: 14px;
416
+ }
417
+
418
+ .c6:not(:disabled):not([aria-disabled]):hover,
419
+ .c6 [aria-disabled='false']:hover {
420
+ background-color: var(--charcoal-surface3-hover);
421
+ }
422
+
423
+ .c6:not(:disabled):not([aria-disabled]):active,
424
+ .c6 [aria-disabled='false']:active {
425
+ outline: none;
426
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
427
+ }
428
+
429
+ .c6:focus-within {
430
+ outline: none;
431
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
458
432
  }
459
433
 
460
434
  .c7 {
461
- position: absolute;
462
- top: 50%;
463
- left: 8px;
464
- -webkit-transform: translateY(-50%);
465
- -ms-transform: translateY(-50%);
466
- transform: translateY(-50%);
467
- z-index: 1;
435
+ display: -webkit-box;
436
+ display: -webkit-flex;
437
+ display: -ms-flexbox;
438
+ display: flex;
439
+ padding-left: 8px;
440
+ -webkit-align-items: center;
441
+ -webkit-box-align: center;
442
+ -ms-flex-align: center;
443
+ align-items: center;
468
444
  }
469
445
 
470
- .c10 {
471
- position: absolute;
472
- top: 50%;
473
- right: 8px;
474
- -webkit-transform: translateY(-50%);
475
- -ms-transform: translateY(-50%);
476
- transform: translateY(-50%);
446
+ .c9 {
477
447
  display: -webkit-box;
478
448
  display: -webkit-flex;
479
449
  display: -ms-flexbox;
480
450
  display: flex;
451
+ -webkit-align-items: center;
452
+ -webkit-box-align: center;
453
+ -ms-flex-align: center;
454
+ align-items: center;
481
455
  gap: 8px;
482
456
  }
483
457
 
484
458
  .c8 {
485
- -webkit-user-select: none;
486
- -moz-user-select: none;
487
- -ms-user-select: none;
488
- user-select: none;
489
- font-size: 14px;
490
- line-height: 22px;
491
- color: var(--charcoal-text2);
492
- }
493
-
494
- .c9 {
495
459
  border: none;
496
460
  box-sizing: border-box;
497
461
  outline: none;
@@ -506,63 +470,35 @@ exports[`Storyshots TextField Has Affix 1`] = `
506
470
  height: calc(100% / 0.875);
507
471
  font-size: calc(14px / 0.875);
508
472
  line-height: calc(22px / 0.875);
509
- padding-left: calc((8px + 0px) / 0.875);
510
- padding-right: calc((8px + 0px) / 0.875);
473
+ padding-left: 0;
474
+ padding-right: 0;
511
475
  border-radius: calc(4px / 0.875);
512
476
  -webkit-appearance: none;
513
477
  -moz-appearance: none;
514
478
  appearance: none;
515
- background-color: var(--charcoal-surface3);
479
+ background: transparent;
516
480
  color: var(--charcoal-text2);
517
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
518
- transition: 0.2s background-color,0.2s box-shadow;
519
- }
520
-
521
- .c9:hover:not(:disabled):not([aria-disabled]),
522
- .c9:hover[aria-disabled=false] {
523
- background-color: var(--charcoal-surface3-hover);
524
- }
525
-
526
- .c9:not(:disabled):not([aria-disabled]):focus,
527
- .c9[aria-disabled=false]:focus,
528
- .c9:not(:disabled):not([aria-disabled]):active,
529
- .c9[aria-disabled=false]:active {
530
- outline: none;
531
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
532
- }
533
-
534
- .c9:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
535
- .c9[aria-disabled=false]:focus:not(:focus-visible),
536
- .c9:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
537
- .c9[aria-disabled=false]:active:not(:focus-visible) {
538
- outline: none;
539
- }
540
-
541
- .c9:not(:disabled):not([aria-disabled]):focus-visible,
542
- .c9[aria-disabled=false]:focus-visible {
543
- outline: none;
544
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
545
481
  }
546
482
 
547
- .c9::-webkit-input-placeholder {
483
+ .c8::-webkit-input-placeholder {
548
484
  color: var(--charcoal-text3);
549
485
  }
550
486
 
551
- .c9::-moz-placeholder {
487
+ .c8::-moz-placeholder {
552
488
  color: var(--charcoal-text3);
553
489
  }
554
490
 
555
- .c9:-ms-input-placeholder {
491
+ .c8:-ms-input-placeholder {
556
492
  color: var(--charcoal-text3);
557
493
  }
558
494
 
559
- .c9::placeholder {
495
+ .c8::placeholder {
560
496
  color: var(--charcoal-text3);
561
497
  }
562
498
 
563
- .c11 {
564
- font-size: 14px;
499
+ .c10 {
565
500
  line-height: 22px;
501
+ font-size: 14px;
566
502
  color: var(--charcoal-text3);
567
503
  }
568
504
 
@@ -607,18 +543,14 @@ exports[`Storyshots TextField Has Affix 1`] = `
607
543
  <div
608
544
  className="c6"
609
545
  >
610
- <span
546
+ <div
611
547
  className="c7"
612
548
  >
613
- <span
614
- className="c8"
615
- >
616
- /home/john/
617
- </span>
618
- </span>
549
+ /home/john/
550
+ </div>
619
551
  <input
620
552
  aria-labelledby="test-id"
621
- className="c9"
553
+ className="c8"
622
554
  disabled={false}
623
555
  id="test-id"
624
556
  maxLength={200}
@@ -628,15 +560,11 @@ exports[`Storyshots TextField Has Affix 1`] = `
628
560
  type="text"
629
561
  />
630
562
  <span
631
- className="c10"
563
+ className="c9"
632
564
  >
565
+ .png
633
566
  <span
634
- className="c8"
635
- >
636
- .png
637
- </span>
638
- <span
639
- className="c11"
567
+ className="c10"
640
568
  >
641
569
  0/200
642
570
  </span>
@@ -793,46 +721,49 @@ exports[`Storyshots TextField Has Count 1`] = `
793
721
  }
794
722
 
795
723
  .c8 {
796
- height: 40px;
797
724
  display: grid;
798
- position: relative;
725
+ grid-template-columns: 1fr auto;
726
+ height: 40px;
727
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
728
+ transition: 0.2s background-color,0.2s box-shadow;
729
+ color: var(--charcoal-text2);
730
+ background-color: var(--charcoal-surface3);
731
+ border-radius: 4px;
732
+ gap: 4px;
733
+ padding: 0 8px;
734
+ line-height: 22px;
735
+ font-size: 14px;
799
736
  }
800
737
 
801
- .c9 {
802
- position: absolute;
803
- top: 50%;
804
- left: 8px;
805
- -webkit-transform: translateY(-50%);
806
- -ms-transform: translateY(-50%);
807
- transform: translateY(-50%);
808
- z-index: 1;
738
+ .c8:not(:disabled):not([aria-disabled]):hover,
739
+ .c8 [aria-disabled='false']:hover {
740
+ background-color: var(--charcoal-surface3-hover);
809
741
  }
810
742
 
811
- .c12 {
812
- position: absolute;
813
- top: 50%;
814
- right: 8px;
815
- -webkit-transform: translateY(-50%);
816
- -ms-transform: translateY(-50%);
817
- transform: translateY(-50%);
743
+ .c8:not(:disabled):not([aria-disabled]):active,
744
+ .c8 [aria-disabled='false']:active {
745
+ outline: none;
746
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
747
+ }
748
+
749
+ .c8:focus-within {
750
+ outline: none;
751
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
752
+ }
753
+
754
+ .c10 {
818
755
  display: -webkit-box;
819
756
  display: -webkit-flex;
820
757
  display: -ms-flexbox;
821
758
  display: flex;
759
+ -webkit-align-items: center;
760
+ -webkit-box-align: center;
761
+ -ms-flex-align: center;
762
+ align-items: center;
822
763
  gap: 8px;
823
764
  }
824
765
 
825
- .c10 {
826
- -webkit-user-select: none;
827
- -moz-user-select: none;
828
- -ms-user-select: none;
829
- user-select: none;
830
- font-size: 14px;
831
- line-height: 22px;
832
- color: var(--charcoal-text2);
833
- }
834
-
835
- .c11 {
766
+ .c9 {
836
767
  border: none;
837
768
  box-sizing: border-box;
838
769
  outline: none;
@@ -847,63 +778,35 @@ exports[`Storyshots TextField Has Count 1`] = `
847
778
  height: calc(100% / 0.875);
848
779
  font-size: calc(14px / 0.875);
849
780
  line-height: calc(22px / 0.875);
850
- padding-left: calc((8px + 0px) / 0.875);
851
- padding-right: calc((8px + 0px) / 0.875);
781
+ padding-left: 0;
782
+ padding-right: 0;
852
783
  border-radius: calc(4px / 0.875);
853
784
  -webkit-appearance: none;
854
785
  -moz-appearance: none;
855
786
  appearance: none;
856
- background-color: var(--charcoal-surface3);
787
+ background: transparent;
857
788
  color: var(--charcoal-text2);
858
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
859
- transition: 0.2s background-color,0.2s box-shadow;
860
- }
861
-
862
- .c11:hover:not(:disabled):not([aria-disabled]),
863
- .c11:hover[aria-disabled=false] {
864
- background-color: var(--charcoal-surface3-hover);
865
- }
866
-
867
- .c11:not(:disabled):not([aria-disabled]):focus,
868
- .c11[aria-disabled=false]:focus,
869
- .c11:not(:disabled):not([aria-disabled]):active,
870
- .c11[aria-disabled=false]:active {
871
- outline: none;
872
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
873
789
  }
874
790
 
875
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
876
- .c11[aria-disabled=false]:focus:not(:focus-visible),
877
- .c11:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
878
- .c11[aria-disabled=false]:active:not(:focus-visible) {
879
- outline: none;
880
- }
881
-
882
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
883
- .c11[aria-disabled=false]:focus-visible {
884
- outline: none;
885
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
886
- }
887
-
888
- .c11::-webkit-input-placeholder {
791
+ .c9::-webkit-input-placeholder {
889
792
  color: var(--charcoal-text3);
890
793
  }
891
794
 
892
- .c11::-moz-placeholder {
795
+ .c9::-moz-placeholder {
893
796
  color: var(--charcoal-text3);
894
797
  }
895
798
 
896
- .c11:-ms-input-placeholder {
799
+ .c9:-ms-input-placeholder {
897
800
  color: var(--charcoal-text3);
898
801
  }
899
802
 
900
- .c11::placeholder {
803
+ .c9::placeholder {
901
804
  color: var(--charcoal-text3);
902
805
  }
903
806
 
904
- .c13 {
905
- font-size: 14px;
807
+ .c11 {
906
808
  line-height: 22px;
809
+ font-size: 14px;
907
810
  color: var(--charcoal-text3);
908
811
  }
909
812
 
@@ -963,16 +866,9 @@ exports[`Storyshots TextField Has Count 1`] = `
963
866
  <div
964
867
  className="c8"
965
868
  >
966
- <span
967
- className="c9"
968
- >
969
- <span
970
- className="c10"
971
- />
972
- </span>
973
869
  <input
974
870
  aria-labelledby="test-id"
975
- className="c11"
871
+ className="c9"
976
872
  disabled={false}
977
873
  id="test-id"
978
874
  maxLength={100}
@@ -982,13 +878,10 @@ exports[`Storyshots TextField Has Count 1`] = `
982
878
  type="text"
983
879
  />
984
880
  <span
985
- className="c12"
881
+ className="c10"
986
882
  >
987
883
  <span
988
- className="c10"
989
- />
990
- <span
991
- className="c13"
884
+ className="c11"
992
885
  >
993
886
  0/100
994
887
  </span>
@@ -1173,46 +1066,37 @@ exports[`Storyshots TextField Has Label 1`] = `
1173
1066
  }
1174
1067
 
1175
1068
  .c10 {
1176
- height: 40px;
1177
1069
  display: grid;
1178
- position: relative;
1070
+ grid-template-columns: 1fr;
1071
+ height: 40px;
1072
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1073
+ transition: 0.2s background-color,0.2s box-shadow;
1074
+ color: var(--charcoal-text2);
1075
+ background-color: var(--charcoal-surface3);
1076
+ border-radius: 4px;
1077
+ gap: 4px;
1078
+ padding: 0 8px;
1079
+ line-height: 22px;
1080
+ font-size: 14px;
1179
1081
  }
1180
1082
 
1181
- .c11 {
1182
- position: absolute;
1183
- top: 50%;
1184
- left: 8px;
1185
- -webkit-transform: translateY(-50%);
1186
- -ms-transform: translateY(-50%);
1187
- transform: translateY(-50%);
1188
- z-index: 1;
1189
- }
1190
-
1191
- .c14 {
1192
- position: absolute;
1193
- top: 50%;
1194
- right: 8px;
1195
- -webkit-transform: translateY(-50%);
1196
- -ms-transform: translateY(-50%);
1197
- transform: translateY(-50%);
1198
- display: -webkit-box;
1199
- display: -webkit-flex;
1200
- display: -ms-flexbox;
1201
- display: flex;
1202
- gap: 8px;
1083
+ .c10:not(:disabled):not([aria-disabled]):hover,
1084
+ .c10 [aria-disabled='false']:hover {
1085
+ background-color: var(--charcoal-surface3-hover);
1203
1086
  }
1204
1087
 
1205
- .c12 {
1206
- -webkit-user-select: none;
1207
- -moz-user-select: none;
1208
- -ms-user-select: none;
1209
- user-select: none;
1210
- font-size: 14px;
1211
- line-height: 22px;
1212
- color: var(--charcoal-text2);
1088
+ .c10:not(:disabled):not([aria-disabled]):active,
1089
+ .c10 [aria-disabled='false']:active {
1090
+ outline: none;
1091
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1213
1092
  }
1214
1093
 
1215
- .c13 {
1094
+ .c10:focus-within {
1095
+ outline: none;
1096
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1097
+ }
1098
+
1099
+ .c11 {
1216
1100
  border: none;
1217
1101
  box-sizing: border-box;
1218
1102
  outline: none;
@@ -1227,83 +1111,38 @@ exports[`Storyshots TextField Has Label 1`] = `
1227
1111
  height: calc(100% / 0.875);
1228
1112
  font-size: calc(14px / 0.875);
1229
1113
  line-height: calc(22px / 0.875);
1230
- padding-left: calc((8px + 0px) / 0.875);
1231
- padding-right: calc((8px + 0px) / 0.875);
1114
+ padding-left: 0;
1115
+ padding-right: 0;
1232
1116
  border-radius: calc(4px / 0.875);
1233
1117
  -webkit-appearance: none;
1234
1118
  -moz-appearance: none;
1235
1119
  appearance: none;
1236
- background-color: var(--charcoal-surface3);
1120
+ background: transparent;
1237
1121
  color: var(--charcoal-text2);
1238
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1239
- transition: 0.2s background-color,0.2s box-shadow;
1240
- }
1241
-
1242
- .c13:hover:not(:disabled):not([aria-disabled]),
1243
- .c13:hover[aria-disabled=false] {
1244
- background-color: var(--charcoal-surface3-hover);
1245
1122
  }
1246
1123
 
1247
- .c13:not(:disabled):not([aria-disabled]):focus,
1248
- .c13[aria-disabled=false]:focus,
1249
- .c13:not(:disabled):not([aria-disabled]):active,
1250
- .c13[aria-disabled=false]:active {
1251
- outline: none;
1252
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1253
- }
1254
-
1255
- .c13:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1256
- .c13[aria-disabled=false]:focus:not(:focus-visible),
1257
- .c13:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1258
- .c13[aria-disabled=false]:active:not(:focus-visible) {
1259
- outline: none;
1260
- }
1261
-
1262
- .c13:not(:disabled):not([aria-disabled]):focus-visible,
1263
- .c13[aria-disabled=false]:focus-visible {
1264
- outline: none;
1265
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1266
- }
1267
-
1268
- .c13::-webkit-input-placeholder {
1124
+ .c11::-webkit-input-placeholder {
1269
1125
  color: var(--charcoal-text3);
1270
1126
  }
1271
1127
 
1272
- .c13::-moz-placeholder {
1128
+ .c11::-moz-placeholder {
1273
1129
  color: var(--charcoal-text3);
1274
1130
  }
1275
1131
 
1276
- .c13:-ms-input-placeholder {
1132
+ .c11:-ms-input-placeholder {
1277
1133
  color: var(--charcoal-text3);
1278
1134
  }
1279
1135
 
1280
- .c13::placeholder {
1136
+ .c11::placeholder {
1281
1137
  color: var(--charcoal-text3);
1282
1138
  }
1283
1139
 
1284
- .c15 {
1140
+ .c12 {
1285
1141
  font-size: 14px;
1286
1142
  line-height: 22px;
1287
- display: flow-root;
1288
- margin-top: 8px;
1289
- margin-bottom: 0px;
1290
- color: var(--charcoal-text1);
1291
- }
1292
-
1293
- .c15::before {
1294
- display: block;
1295
- width: 0;
1296
- height: 0;
1297
- content: '';
1298
- margin-top: -4px;
1299
- }
1300
-
1301
- .c15::after {
1302
- display: block;
1303
- width: 0;
1304
- height: 0;
1305
- content: '';
1143
+ margin-top: 4px;
1306
1144
  margin-bottom: -4px;
1145
+ color: var(--charcoal-text2);
1307
1146
  }
1308
1147
 
1309
1148
  .c0 {
@@ -1351,17 +1190,10 @@ exports[`Storyshots TextField Has Label 1`] = `
1351
1190
  <div
1352
1191
  className="c10"
1353
1192
  >
1354
- <span
1355
- className="c11"
1356
- >
1357
- <span
1358
- className="c12"
1359
- />
1360
- </span>
1361
1193
  <input
1362
1194
  aria-labelledby="test-id"
1363
1195
  aria-required={true}
1364
- className="c13"
1196
+ className="c11"
1365
1197
  disabled={false}
1366
1198
  id="test-id"
1367
1199
  onChange={[Function]}
@@ -1369,16 +1201,9 @@ exports[`Storyshots TextField Has Label 1`] = `
1369
1201
  readOnly={false}
1370
1202
  type="text"
1371
1203
  />
1372
- <span
1373
- className="c14"
1374
- >
1375
- <span
1376
- className="c12"
1377
- />
1378
- </span>
1379
1204
  </div>
1380
1205
  <p
1381
- className="c15"
1206
+ className="c12"
1382
1207
  >
1383
1208
  Assistive text
1384
1209
  </p>
@@ -1388,7 +1213,7 @@ exports[`Storyshots TextField Has Label 1`] = `
1388
1213
  `;
1389
1214
 
1390
1215
  exports[`Storyshots TextField Prefix Icon 1`] = `
1391
- .c12 {
1216
+ .c11 {
1392
1217
  cursor: pointer;
1393
1218
  -webkit-appearance: none;
1394
1219
  -moz-appearance: none;
@@ -1410,16 +1235,16 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1410
1235
  text-transform: none;
1411
1236
  }
1412
1237
 
1413
- .c12:disabled,
1414
- .c12[aria-disabled]:not([aria-disabled=false]) {
1238
+ .c11:disabled,
1239
+ .c11[aria-disabled]:not([aria-disabled=false]) {
1415
1240
  cursor: default;
1416
1241
  }
1417
1242
 
1418
- .c12:focus {
1243
+ .c11:focus {
1419
1244
  outline: none;
1420
1245
  }
1421
1246
 
1422
- .c12::-moz-focus-inner {
1247
+ .c11::-moz-focus-inner {
1423
1248
  border-style: none;
1424
1249
  padding: 0;
1425
1250
  }
@@ -1519,7 +1344,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1519
1344
  margin-left: auto;
1520
1345
  }
1521
1346
 
1522
- .c13 {
1347
+ .c12 {
1523
1348
  -webkit-user-select: none;
1524
1349
  -moz-user-select: none;
1525
1350
  -ms-user-select: none;
@@ -1545,38 +1370,38 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1545
1370
  transition: 0.2s background-color,0.2s box-shadow;
1546
1371
  }
1547
1372
 
1548
- .c13:hover:not(:disabled):not([aria-disabled]),
1549
- .c13:hover[aria-disabled=false] {
1373
+ .c12:hover:not(:disabled):not([aria-disabled]),
1374
+ .c12:hover[aria-disabled=false] {
1550
1375
  background-color: var(--charcoal-surface4-hover);
1551
1376
  }
1552
1377
 
1553
- .c13:active:not(:disabled):not([aria-disabled]),
1554
- .c13:active[aria-disabled=false] {
1378
+ .c12:active:not(:disabled):not([aria-disabled]),
1379
+ .c12:active[aria-disabled=false] {
1555
1380
  background-color: var(--charcoal-surface4-press);
1556
1381
  }
1557
1382
 
1558
- .c13:disabled,
1559
- .c13[aria-disabled]:not([aria-disabled=false]) {
1383
+ .c12:disabled,
1384
+ .c12[aria-disabled]:not([aria-disabled=false]) {
1560
1385
  opacity: 0.32;
1561
1386
  }
1562
1387
 
1563
- .c13:not(:disabled):not([aria-disabled]):focus,
1564
- .c13[aria-disabled=false]:focus,
1565
- .c13:not(:disabled):not([aria-disabled]):active,
1566
- .c13[aria-disabled=false]:active {
1388
+ .c12:not(:disabled):not([aria-disabled]):focus,
1389
+ .c12[aria-disabled=false]:focus,
1390
+ .c12:not(:disabled):not([aria-disabled]):active,
1391
+ .c12[aria-disabled=false]:active {
1567
1392
  outline: none;
1568
1393
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1569
1394
  }
1570
1395
 
1571
- .c13:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1572
- .c13[aria-disabled=false]:focus:not(:focus-visible),
1573
- .c13:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1574
- .c13[aria-disabled=false]:active:not(:focus-visible) {
1396
+ .c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1397
+ .c12[aria-disabled=false]:focus:not(:focus-visible),
1398
+ .c12:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1399
+ .c12[aria-disabled=false]:active:not(:focus-visible) {
1575
1400
  outline: none;
1576
1401
  }
1577
1402
 
1578
- .c13:not(:disabled):not([aria-disabled]):focus-visible,
1579
- .c13[aria-disabled=false]:focus-visible {
1403
+ .c12:not(:disabled):not([aria-disabled]):focus-visible,
1404
+ .c12[aria-disabled=false]:focus-visible {
1580
1405
  outline: none;
1581
1406
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1582
1407
  }
@@ -1596,46 +1421,61 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1596
1421
  }
1597
1422
 
1598
1423
  .c6 {
1599
- height: 40px;
1600
1424
  display: grid;
1601
- position: relative;
1425
+ grid-template-columns: auto 1fr auto;
1426
+ height: 40px;
1427
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1428
+ transition: 0.2s background-color,0.2s box-shadow;
1429
+ color: var(--charcoal-text2);
1430
+ background-color: var(--charcoal-surface3);
1431
+ border-radius: 4px;
1432
+ gap: 4px;
1433
+ padding: 0 8px;
1434
+ line-height: 22px;
1435
+ font-size: 14px;
1602
1436
  }
1603
1437
 
1604
- .c7 {
1605
- position: absolute;
1606
- top: 50%;
1607
- left: 8px;
1608
- -webkit-transform: translateY(-50%);
1609
- -ms-transform: translateY(-50%);
1610
- transform: translateY(-50%);
1611
- z-index: 1;
1438
+ .c6:not(:disabled):not([aria-disabled]):hover,
1439
+ .c6 [aria-disabled='false']:hover {
1440
+ background-color: var(--charcoal-surface3-hover);
1612
1441
  }
1613
1442
 
1614
- .c11 {
1615
- position: absolute;
1616
- top: 50%;
1617
- right: 8px;
1618
- -webkit-transform: translateY(-50%);
1619
- -ms-transform: translateY(-50%);
1620
- transform: translateY(-50%);
1443
+ .c6:not(:disabled):not([aria-disabled]):active,
1444
+ .c6 [aria-disabled='false']:active {
1445
+ outline: none;
1446
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1447
+ }
1448
+
1449
+ .c6:focus-within {
1450
+ outline: none;
1451
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1452
+ }
1453
+
1454
+ .c7 {
1621
1455
  display: -webkit-box;
1622
1456
  display: -webkit-flex;
1623
1457
  display: -ms-flexbox;
1624
1458
  display: flex;
1625
- gap: 8px;
1459
+ padding-left: 8px;
1460
+ -webkit-align-items: center;
1461
+ -webkit-box-align: center;
1462
+ -ms-flex-align: center;
1463
+ align-items: center;
1626
1464
  }
1627
1465
 
1628
- .c8 {
1629
- -webkit-user-select: none;
1630
- -moz-user-select: none;
1631
- -ms-user-select: none;
1632
- user-select: none;
1633
- font-size: 14px;
1634
- line-height: 22px;
1635
- color: var(--charcoal-text2);
1466
+ .c10 {
1467
+ display: -webkit-box;
1468
+ display: -webkit-flex;
1469
+ display: -ms-flexbox;
1470
+ display: flex;
1471
+ -webkit-align-items: center;
1472
+ -webkit-box-align: center;
1473
+ -ms-flex-align: center;
1474
+ align-items: center;
1475
+ gap: 8px;
1636
1476
  }
1637
1477
 
1638
- .c10 {
1478
+ .c9 {
1639
1479
  border: none;
1640
1480
  box-sizing: border-box;
1641
1481
  outline: none;
@@ -1650,64 +1490,35 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1650
1490
  height: calc(100% / 0.875);
1651
1491
  font-size: calc(14px / 0.875);
1652
1492
  line-height: calc(22px / 0.875);
1653
- padding-left: calc((8px + 0px) / 0.875);
1654
- padding-right: calc((8px + 0px) / 0.875);
1493
+ padding-left: 0;
1494
+ padding-right: 0;
1655
1495
  border-radius: calc(4px / 0.875);
1656
1496
  -webkit-appearance: none;
1657
1497
  -moz-appearance: none;
1658
1498
  appearance: none;
1659
- background-color: var(--charcoal-surface3);
1499
+ background: transparent;
1660
1500
  color: var(--charcoal-text2);
1661
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1662
- transition: 0.2s background-color,0.2s box-shadow;
1663
- }
1664
-
1665
- .c10:hover:not(:disabled):not([aria-disabled]),
1666
- .c10:hover[aria-disabled=false] {
1667
- background-color: var(--charcoal-surface3-hover);
1668
- }
1669
-
1670
- .c10:not(:disabled):not([aria-disabled]):focus,
1671
- .c10[aria-disabled=false]:focus,
1672
- .c10:not(:disabled):not([aria-disabled]):active,
1673
- .c10[aria-disabled=false]:active {
1674
- outline: none;
1675
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1676
1501
  }
1677
1502
 
1678
- .c10:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1679
- .c10[aria-disabled=false]:focus:not(:focus-visible),
1680
- .c10:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1681
- .c10[aria-disabled=false]:active:not(:focus-visible) {
1682
- outline: none;
1683
- }
1684
-
1685
- .c10:not(:disabled):not([aria-disabled]):focus-visible,
1686
- .c10[aria-disabled=false]:focus-visible {
1687
- outline: none;
1688
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1689
- }
1690
-
1691
- .c10::-webkit-input-placeholder {
1503
+ .c9::-webkit-input-placeholder {
1692
1504
  color: var(--charcoal-text3);
1693
1505
  }
1694
1506
 
1695
- .c10::-moz-placeholder {
1507
+ .c9::-moz-placeholder {
1696
1508
  color: var(--charcoal-text3);
1697
1509
  }
1698
1510
 
1699
- .c10:-ms-input-placeholder {
1511
+ .c9:-ms-input-placeholder {
1700
1512
  color: var(--charcoal-text3);
1701
1513
  }
1702
1514
 
1703
- .c10::placeholder {
1515
+ .c9::placeholder {
1704
1516
  color: var(--charcoal-text3);
1705
1517
  }
1706
1518
 
1707
- .c9 {
1519
+ .c8 {
1520
+ height: 16px;
1708
1521
  color: #858585;
1709
- margin-top: 2px;
1710
- margin-right: 4px;
1711
1522
  }
1712
1523
 
1713
1524
  <div
@@ -1751,48 +1562,40 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1751
1562
  <div
1752
1563
  className="c6"
1753
1564
  >
1754
- <span
1565
+ <div
1755
1566
  className="c7"
1756
1567
  >
1757
- <span
1568
+ <div
1758
1569
  className="c8"
1759
1570
  >
1760
- <div
1761
- className="c9"
1762
- >
1763
- <pixiv-icon
1764
- name="16/Search"
1765
- />
1766
- </div>
1767
- </span>
1768
- </span>
1571
+ <pixiv-icon
1572
+ name="16/Search"
1573
+ />
1574
+ </div>
1575
+ </div>
1769
1576
  <input
1770
1577
  aria-labelledby="test-id"
1771
- className="c10"
1578
+ className="c9"
1772
1579
  disabled={false}
1773
1580
  id="test-id"
1774
1581
  onChange={[Function]}
1775
- placeholder="Icon prefix"
1582
+ placeholder="作品を検索"
1776
1583
  readOnly={false}
1777
1584
  type="text"
1778
1585
  />
1779
1586
  <span
1780
- className="c11"
1587
+ className="c10"
1781
1588
  >
1782
- <span
1783
- className="c8"
1589
+ <button
1590
+ className="c11 c12"
1591
+ height={20}
1592
+ size="XS"
1593
+ width={20}
1784
1594
  >
1785
- <button
1786
- className="c12 c13"
1787
- height={20}
1788
- size="XS"
1789
- width={20}
1790
- >
1791
- <pixiv-icon
1792
- name="16/Remove"
1793
- />
1794
- </button>
1795
- </span>
1595
+ <pixiv-icon
1596
+ name="16/Remove"
1597
+ />
1598
+ </button>
1796
1599
  </span>
1797
1600
  </div>
1798
1601
  </div>