@charcoal-ui/react 3.10.1 → 3.11.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 (91) hide show
  1. package/dist/components/Checkbox/index.d.ts.map +1 -1
  2. package/dist/components/DropdownSelector/Popover/index.d.ts +1 -2
  3. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  4. package/dist/components/Modal/index.d.ts +1 -1
  5. package/dist/components/Modal/index.d.ts.map +1 -1
  6. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  7. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  8. package/dist/components/Radio/index.d.ts +4 -4
  9. package/dist/components/Radio/index.d.ts.map +1 -1
  10. package/dist/components/TextArea/index.d.ts.map +1 -1
  11. package/dist/components/TextField/index.d.ts.map +1 -1
  12. package/dist/core/CharcoalProvider.d.ts +1 -1
  13. package/dist/core/CharcoalProvider.d.ts.map +1 -1
  14. package/dist/index.cjs.js +120 -348
  15. package/dist/index.cjs.js.map +1 -1
  16. package/dist/index.esm.js +82 -310
  17. package/dist/index.esm.js.map +1 -1
  18. package/package.json +13 -17
  19. package/src/components/Checkbox/__snapshots__/index.story.storyshot +560 -154
  20. package/src/components/Checkbox/index.story.tsx +46 -74
  21. package/src/components/Checkbox/index.tsx +1 -0
  22. package/src/components/DropdownSelector/Popover/index.tsx +1 -2
  23. package/src/components/IconButton/__snapshots__/index.story.storyshot +6 -8
  24. package/src/components/IconButton/index.story.tsx +14 -37
  25. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +139 -1
  26. package/src/components/LoadingSpinner/index.story.tsx +18 -7
  27. package/src/components/Modal/index.tsx +1 -1
  28. package/src/components/Modal/useCustomModalOverlay.tsx +5 -4
  29. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +32 -44
  30. package/src/components/MultiSelect/index.story.tsx +88 -192
  31. package/src/components/MultiSelect/index.tsx +2 -1
  32. package/src/components/Radio/__snapshots__/index.story.storyshot +1 -1
  33. package/src/components/Radio/index.story.tsx +20 -21
  34. package/src/components/Radio/index.tsx +14 -13
  35. package/src/components/Switch/__snapshots__/index.story.storyshot +8 -9
  36. package/src/components/Switch/index.story.tsx +10 -18
  37. package/src/components/TagItem/__snapshots__/index.story.storyshot +791 -665
  38. package/src/components/TagItem/index.story.tsx +44 -161
  39. package/src/components/TextArea/TextArea.story.tsx +62 -24
  40. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +1858 -472
  41. package/src/components/TextArea/index.tsx +2 -0
  42. package/src/components/TextField/TextField.story.tsx +77 -67
  43. package/src/components/TextField/__snapshots__/TextField.story.storyshot +2004 -786
  44. package/src/components/TextField/index.tsx +2 -0
  45. package/src/components/a11y.test.tsx +1 -1
  46. package/src/core/CharcoalProvider.tsx +1 -1
  47. package/dist/components/Button/index.story.d.ts +0 -14
  48. package/dist/components/Button/index.story.d.ts.map +0 -1
  49. package/dist/components/Checkbox/index.story.d.ts +0 -8
  50. package/dist/components/Checkbox/index.story.d.ts.map +0 -1
  51. package/dist/components/Clickable/index.story.d.ts +0 -6
  52. package/dist/components/Clickable/index.story.d.ts.map +0 -1
  53. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
  54. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
  55. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
  56. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
  57. package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
  58. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
  59. package/dist/components/DropdownSelector/index.story.d.ts +0 -19
  60. package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
  61. package/dist/components/Icon/index.story.d.ts +0 -6
  62. package/dist/components/Icon/index.story.d.ts.map +0 -1
  63. package/dist/components/IconButton/index.story.d.ts +0 -9
  64. package/dist/components/IconButton/index.story.d.ts.map +0 -1
  65. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
  66. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
  67. package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
  68. package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
  69. package/dist/components/Modal/index.story.d.ts +0 -21
  70. package/dist/components/Modal/index.story.d.ts.map +0 -1
  71. package/dist/components/MultiSelect/index.story.d.ts +0 -82
  72. package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
  73. package/dist/components/MultiSelect/index.test.d.ts +0 -2
  74. package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
  75. package/dist/components/Radio/index.story.d.ts +0 -26
  76. package/dist/components/Radio/index.story.d.ts.map +0 -1
  77. package/dist/components/Radio/index.test.d.ts +0 -2
  78. package/dist/components/Radio/index.test.d.ts.map +0 -1
  79. package/dist/components/SegmentedControl/index.story.d.ts +0 -7
  80. package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
  81. package/dist/components/Switch/index.story.d.ts +0 -9
  82. package/dist/components/Switch/index.story.d.ts.map +0 -1
  83. package/dist/components/TagItem/index.story.d.ts +0 -16
  84. package/dist/components/TagItem/index.story.d.ts.map +0 -1
  85. package/dist/components/TextArea/TextArea.story.d.ts +0 -9
  86. package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
  87. package/dist/components/TextField/TextField.story.d.ts +0 -22
  88. package/dist/components/TextField/TextField.story.d.ts.map +0 -1
  89. package/dist/components/a11y.test.d.ts +0 -2
  90. package/dist/components/a11y.test.d.ts.map +0 -1
  91. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
@@ -1,45 +1,1637 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Storybook Tests TextField Affix 1`] = `
4
+ .c3 {
5
+ font-size: 14px;
6
+ line-height: 22px;
7
+ font-weight: bold;
8
+ display: flow-root;
9
+ color: var(--charcoal-text1);
10
+ }
11
+
12
+ .c3::before {
13
+ display: block;
14
+ width: 0;
15
+ height: 0;
16
+ content: '';
17
+ margin-top: -4px;
18
+ }
19
+
20
+ .c3::after {
21
+ display: block;
22
+ width: 0;
23
+ height: 0;
24
+ content: '';
25
+ margin-bottom: -4px;
26
+ }
27
+
28
+ .c5 {
29
+ font-size: 14px;
30
+ line-height: 22px;
31
+ display: flow-root;
32
+ color: var(--charcoal-text3);
33
+ -webkit-transition: 0.2s color,0.2s box-shadow;
34
+ transition: 0.2s color,0.2s box-shadow;
35
+ }
36
+
37
+ .c5::before {
38
+ display: block;
39
+ width: 0;
40
+ height: 0;
41
+ content: '';
42
+ margin-top: -4px;
43
+ }
44
+
45
+ .c5::after {
46
+ display: block;
47
+ width: 0;
48
+ height: 0;
49
+ content: '';
50
+ margin-bottom: -4px;
51
+ }
52
+
53
+ .c5:not(:disabled):not([aria-disabled]):hover,
54
+ .c5[aria-disabled='false']:hover {
55
+ color: var(--charcoal-text3-hover);
56
+ }
57
+
58
+ .c5:not(:disabled):not([aria-disabled]):active,
59
+ .c5[aria-disabled='false']:active {
60
+ color: var(--charcoal-text3-press);
61
+ }
62
+
63
+ .c5:not(:disabled):not([aria-disabled]):active,
64
+ .c5[aria-disabled='false']:active,
65
+ .c5:not(:disabled):not([aria-disabled]):focus,
66
+ .c5[aria-disabled='false']:focus,
67
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
68
+ .c5[aria-disabled='false']:focus-visible {
69
+ outline: none;
70
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
71
+ }
72
+
73
+ .c1 {
74
+ display: -webkit-inline-box;
75
+ display: -webkit-inline-flex;
76
+ display: -ms-inline-flexbox;
77
+ display: inline-flex;
78
+ -webkit-align-items: center;
79
+ -webkit-box-align: center;
80
+ -ms-flex-align: center;
81
+ align-items: center;
82
+ }
83
+
84
+ .c1 > .c4 {
85
+ margin-left: auto;
86
+ }
87
+
88
+ .c0 {
89
+ display: -webkit-box;
90
+ display: -webkit-flex;
91
+ display: -ms-flexbox;
92
+ display: flex;
93
+ -webkit-flex-direction: column;
94
+ -ms-flex-direction: column;
95
+ flex-direction: column;
96
+ }
97
+
98
+ .c2 {
99
+ margin-bottom: 8px;
100
+ }
101
+
102
+ .c6 {
103
+ display: grid;
104
+ grid-template-columns: auto 1fr auto;
105
+ height: 40px;
106
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
107
+ transition: 0.2s background-color,0.2s box-shadow;
108
+ color: var(--charcoal-text2);
109
+ background-color: var(--charcoal-surface3);
110
+ border-radius: 4px;
111
+ gap: 4px;
112
+ padding: 0 8px;
113
+ line-height: 22px;
114
+ font-size: 14px;
115
+ }
116
+
117
+ .c6:not(:disabled):not([aria-disabled]):hover,
118
+ .c6 [aria-disabled='false']:hover {
119
+ background-color: var(--charcoal-surface3-hover);
120
+ }
121
+
122
+ .c6:focus-within {
123
+ outline: none;
124
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
125
+ }
126
+
127
+ .c7 {
128
+ display: -webkit-box;
129
+ display: -webkit-flex;
130
+ display: -ms-flexbox;
131
+ display: flex;
132
+ -webkit-align-items: center;
133
+ -webkit-box-align: center;
134
+ -ms-flex-align: center;
135
+ align-items: center;
136
+ }
137
+
138
+ .c9 {
139
+ display: -webkit-box;
140
+ display: -webkit-flex;
141
+ display: -ms-flexbox;
142
+ display: flex;
143
+ -webkit-align-items: center;
144
+ -webkit-box-align: center;
145
+ -ms-flex-align: center;
146
+ align-items: center;
147
+ gap: 8px;
148
+ }
149
+
150
+ .c8 {
151
+ border: none;
152
+ box-sizing: border-box;
153
+ outline: none;
154
+ font-family: inherit;
155
+ -webkit-transform-origin: top left;
156
+ -ms-transform-origin: top left;
157
+ transform-origin: top left;
158
+ -webkit-transform: scale(0.875);
159
+ -ms-transform: scale(0.875);
160
+ transform: scale(0.875);
161
+ width: calc(100% / 0.875);
162
+ height: calc(100% / 0.875);
163
+ font-size: calc(14px / 0.875);
164
+ line-height: calc(22px / 0.875);
165
+ padding-left: 0;
166
+ padding-right: 0;
167
+ border-radius: calc(4px / 0.875);
168
+ -webkit-appearance: none;
169
+ -moz-appearance: none;
170
+ appearance: none;
171
+ background: transparent;
172
+ color: var(--charcoal-text2);
173
+ }
174
+
175
+ .c8::-webkit-input-placeholder {
176
+ color: var(--charcoal-text3);
177
+ }
178
+
179
+ .c8::-moz-placeholder {
180
+ color: var(--charcoal-text3);
181
+ }
182
+
183
+ .c8:-ms-input-placeholder {
184
+ color: var(--charcoal-text3);
185
+ }
186
+
187
+ .c8::placeholder {
188
+ color: var(--charcoal-text3);
189
+ }
190
+
191
+ <div
192
+ data-dark={false}
193
+ >
194
+ <div
195
+ className="c0"
196
+ >
197
+ <div
198
+ className="c1 c2"
199
+ style={
200
+ Object {
201
+ "border": 0,
202
+ "clip": "rect(0 0 0 0)",
203
+ "clipPath": "inset(50%)",
204
+ "height": "1px",
205
+ "margin": "-1px",
206
+ "overflow": "hidden",
207
+ "padding": 0,
208
+ "position": "absolute",
209
+ "whiteSpace": "nowrap",
210
+ "width": "1px",
211
+ }
212
+ }
213
+ >
214
+ <label
215
+ className="c3"
216
+ htmlFor="test-id"
217
+ id="test-id"
218
+ >
219
+ Label
220
+ </label>
221
+ <div
222
+ className="c4 c5"
223
+ >
224
+ <span />
225
+ </div>
226
+ </div>
227
+ <div
228
+ className="c6"
229
+ >
230
+ <div
231
+ className="c7"
232
+ >
233
+ /home/john/
234
+ </div>
235
+ <input
236
+ aria-labelledby="test-id"
237
+ className="c8"
238
+ disabled={false}
239
+ id="test-id"
240
+ onChange={[Function]}
241
+ readOnly={false}
242
+ required={false}
243
+ type="text"
244
+ value=""
245
+ />
246
+ <span
247
+ className="c9"
248
+ >
249
+ .png
250
+ </span>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ `;
255
+
256
+ exports[`Storybook Tests TextField AssistiveText 1`] = `
257
+ .c3 {
258
+ font-size: 14px;
259
+ line-height: 22px;
260
+ font-weight: bold;
261
+ display: flow-root;
262
+ color: var(--charcoal-text1);
263
+ }
264
+
265
+ .c3::before {
266
+ display: block;
267
+ width: 0;
268
+ height: 0;
269
+ content: '';
270
+ margin-top: -4px;
271
+ }
272
+
273
+ .c3::after {
274
+ display: block;
275
+ width: 0;
276
+ height: 0;
277
+ content: '';
278
+ margin-bottom: -4px;
279
+ }
280
+
281
+ .c5 {
282
+ font-size: 14px;
283
+ line-height: 22px;
284
+ display: flow-root;
285
+ color: var(--charcoal-text3);
286
+ -webkit-transition: 0.2s color,0.2s box-shadow;
287
+ transition: 0.2s color,0.2s box-shadow;
288
+ }
289
+
290
+ .c5::before {
291
+ display: block;
292
+ width: 0;
293
+ height: 0;
294
+ content: '';
295
+ margin-top: -4px;
296
+ }
297
+
298
+ .c5::after {
299
+ display: block;
300
+ width: 0;
301
+ height: 0;
302
+ content: '';
303
+ margin-bottom: -4px;
304
+ }
305
+
306
+ .c5:not(:disabled):not([aria-disabled]):hover,
307
+ .c5[aria-disabled='false']:hover {
308
+ color: var(--charcoal-text3-hover);
309
+ }
310
+
311
+ .c5:not(:disabled):not([aria-disabled]):active,
312
+ .c5[aria-disabled='false']:active {
313
+ color: var(--charcoal-text3-press);
314
+ }
315
+
316
+ .c5:not(:disabled):not([aria-disabled]):active,
317
+ .c5[aria-disabled='false']:active,
318
+ .c5:not(:disabled):not([aria-disabled]):focus,
319
+ .c5[aria-disabled='false']:focus,
320
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
321
+ .c5[aria-disabled='false']:focus-visible {
322
+ outline: none;
323
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
324
+ }
325
+
326
+ .c1 {
327
+ display: -webkit-inline-box;
328
+ display: -webkit-inline-flex;
329
+ display: -ms-inline-flexbox;
330
+ display: inline-flex;
331
+ -webkit-align-items: center;
332
+ -webkit-box-align: center;
333
+ -ms-flex-align: center;
334
+ align-items: center;
335
+ }
336
+
337
+ .c1 > .c4 {
338
+ margin-left: auto;
339
+ }
340
+
341
+ .c0 {
342
+ display: -webkit-box;
343
+ display: -webkit-flex;
344
+ display: -ms-flexbox;
345
+ display: flex;
346
+ -webkit-flex-direction: column;
347
+ -ms-flex-direction: column;
348
+ flex-direction: column;
349
+ }
350
+
351
+ .c2 {
352
+ margin-bottom: 8px;
353
+ }
354
+
355
+ .c6 {
356
+ display: grid;
357
+ grid-template-columns: 1fr;
358
+ height: 40px;
359
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
360
+ transition: 0.2s background-color,0.2s box-shadow;
361
+ color: var(--charcoal-text2);
362
+ background-color: var(--charcoal-surface3);
363
+ border-radius: 4px;
364
+ gap: 4px;
365
+ padding: 0 8px;
366
+ line-height: 22px;
367
+ font-size: 14px;
368
+ }
369
+
370
+ .c6:not(:disabled):not([aria-disabled]):hover,
371
+ .c6 [aria-disabled='false']:hover {
372
+ background-color: var(--charcoal-surface3-hover);
373
+ }
374
+
375
+ .c6:focus-within {
376
+ outline: none;
377
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
378
+ }
379
+
380
+ .c7 {
381
+ border: none;
382
+ box-sizing: border-box;
383
+ outline: none;
384
+ font-family: inherit;
385
+ -webkit-transform-origin: top left;
386
+ -ms-transform-origin: top left;
387
+ transform-origin: top left;
388
+ -webkit-transform: scale(0.875);
389
+ -ms-transform: scale(0.875);
390
+ transform: scale(0.875);
391
+ width: calc(100% / 0.875);
392
+ height: calc(100% / 0.875);
393
+ font-size: calc(14px / 0.875);
394
+ line-height: calc(22px / 0.875);
395
+ padding-left: 0;
396
+ padding-right: 0;
397
+ border-radius: calc(4px / 0.875);
398
+ -webkit-appearance: none;
399
+ -moz-appearance: none;
400
+ appearance: none;
401
+ background: transparent;
402
+ color: var(--charcoal-text2);
403
+ }
404
+
405
+ .c7::-webkit-input-placeholder {
406
+ color: var(--charcoal-text3);
407
+ }
408
+
409
+ .c7::-moz-placeholder {
410
+ color: var(--charcoal-text3);
411
+ }
412
+
413
+ .c7:-ms-input-placeholder {
414
+ color: var(--charcoal-text3);
415
+ }
416
+
417
+ .c7::placeholder {
418
+ color: var(--charcoal-text3);
419
+ }
420
+
421
+ .c8 {
422
+ font-size: 14px;
423
+ line-height: 22px;
424
+ margin-top: 4px;
425
+ margin-bottom: -4px;
426
+ color: var(--charcoal-text2);
427
+ }
428
+
429
+ <div
430
+ data-dark={false}
431
+ >
432
+ <div
433
+ className="c0"
434
+ >
435
+ <div
436
+ className="c1 c2"
437
+ style={
438
+ Object {
439
+ "border": 0,
440
+ "clip": "rect(0 0 0 0)",
441
+ "clipPath": "inset(50%)",
442
+ "height": "1px",
443
+ "margin": "-1px",
444
+ "overflow": "hidden",
445
+ "padding": 0,
446
+ "position": "absolute",
447
+ "whiteSpace": "nowrap",
448
+ "width": "1px",
449
+ }
450
+ }
451
+ >
452
+ <label
453
+ className="c3"
454
+ htmlFor="test-id"
455
+ id="test-id"
456
+ >
457
+ Label
458
+ </label>
459
+ <div
460
+ className="c4 c5"
461
+ >
462
+ <span />
463
+ </div>
464
+ </div>
465
+ <div
466
+ className="c6"
467
+ >
468
+ <input
469
+ aria-labelledby="test-id"
470
+ className="c7"
471
+ disabled={false}
472
+ id="test-id"
473
+ onChange={[Function]}
474
+ readOnly={false}
475
+ required={false}
476
+ type="text"
477
+ value=""
478
+ />
479
+ </div>
480
+ <p
481
+ className="c8"
482
+ >
483
+ 説明が入ります
484
+ </p>
485
+ </div>
486
+ </div>
487
+ `;
488
+
3
489
  exports[`Storybook Tests TextField Default 1`] = `
490
+ .c6 {
491
+ cursor: pointer;
492
+ -webkit-appearance: none;
493
+ -moz-appearance: none;
494
+ appearance: none;
495
+ background: transparent;
496
+ padding: 0;
497
+ border-style: none;
498
+ outline: none;
499
+ color: inherit;
500
+ text-rendering: inherit;
501
+ -webkit-letter-spacing: inherit;
502
+ -moz-letter-spacing: inherit;
503
+ -ms-letter-spacing: inherit;
504
+ letter-spacing: inherit;
505
+ word-spacing: inherit;
506
+ -webkit-text-decoration: none;
507
+ text-decoration: none;
508
+ font: inherit;
509
+ margin: 0;
510
+ overflow: visible;
511
+ text-transform: none;
512
+ }
513
+
514
+ .c6:disabled,
515
+ .c6[aria-disabled]:not([aria-disabled=false]) {
516
+ cursor: default;
517
+ }
518
+
519
+ .c6:focus {
520
+ outline: none;
521
+ }
522
+
523
+ .c6::-moz-focus-inner {
524
+ border-style: none;
525
+ padding: 0;
526
+ }
527
+
528
+ .c3 {
529
+ font-size: 14px;
530
+ line-height: 22px;
531
+ font-weight: bold;
532
+ display: flow-root;
533
+ color: var(--charcoal-text1);
534
+ }
535
+
536
+ .c3::before {
537
+ display: block;
538
+ width: 0;
539
+ height: 0;
540
+ content: '';
541
+ margin-top: -4px;
542
+ }
543
+
544
+ .c3::after {
545
+ display: block;
546
+ width: 0;
547
+ height: 0;
548
+ content: '';
549
+ margin-bottom: -4px;
550
+ }
551
+
552
+ .c5 {
553
+ font-size: 14px;
554
+ line-height: 22px;
555
+ display: flow-root;
556
+ color: var(--charcoal-text3);
557
+ -webkit-transition: 0.2s color,0.2s box-shadow;
558
+ transition: 0.2s color,0.2s box-shadow;
559
+ }
560
+
561
+ .c5::before {
562
+ display: block;
563
+ width: 0;
564
+ height: 0;
565
+ content: '';
566
+ margin-top: -4px;
567
+ }
568
+
569
+ .c5::after {
570
+ display: block;
571
+ width: 0;
572
+ height: 0;
573
+ content: '';
574
+ margin-bottom: -4px;
575
+ }
576
+
577
+ .c5:not(:disabled):not([aria-disabled]):hover,
578
+ .c5[aria-disabled='false']:hover {
579
+ color: var(--charcoal-text3-hover);
580
+ }
581
+
582
+ .c5:not(:disabled):not([aria-disabled]):active,
583
+ .c5[aria-disabled='false']:active {
584
+ color: var(--charcoal-text3-press);
585
+ }
586
+
587
+ .c5:not(:disabled):not([aria-disabled]):active,
588
+ .c5[aria-disabled='false']:active,
589
+ .c5:not(:disabled):not([aria-disabled]):focus,
590
+ .c5[aria-disabled='false']:focus,
591
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
592
+ .c5[aria-disabled='false']:focus-visible {
593
+ outline: none;
594
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
595
+ }
596
+
597
+ .c1 {
598
+ display: -webkit-inline-box;
599
+ display: -webkit-inline-flex;
600
+ display: -ms-inline-flexbox;
601
+ display: inline-flex;
602
+ -webkit-align-items: center;
603
+ -webkit-box-align: center;
604
+ -ms-flex-align: center;
605
+ align-items: center;
606
+ }
607
+
608
+ .c1 > .c4 {
609
+ margin-left: auto;
610
+ }
611
+
612
+ .c0 {
613
+ display: -webkit-box;
614
+ display: -webkit-flex;
615
+ display: -ms-flexbox;
616
+ display: flex;
617
+ -webkit-flex-direction: column;
618
+ -ms-flex-direction: column;
619
+ flex-direction: column;
620
+ }
621
+
622
+ .c2 {
623
+ margin-bottom: 8px;
624
+ }
625
+
626
+ .c7 {
627
+ display: grid;
628
+ grid-template-columns: 1fr;
629
+ height: 40px;
630
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
631
+ transition: 0.2s background-color,0.2s box-shadow;
632
+ color: var(--charcoal-text2);
633
+ background-color: var(--charcoal-surface3);
634
+ border-radius: 4px;
635
+ gap: 4px;
636
+ padding: 0 8px;
637
+ line-height: 22px;
638
+ font-size: 14px;
639
+ }
640
+
641
+ .c7:not(:disabled):not([aria-disabled]):hover,
642
+ .c7 [aria-disabled='false']:hover {
643
+ background-color: var(--charcoal-surface3-hover);
644
+ }
645
+
646
+ .c7:focus-within {
647
+ outline: none;
648
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
649
+ }
650
+
651
+ .c8 {
652
+ border: none;
653
+ box-sizing: border-box;
654
+ outline: none;
655
+ font-family: inherit;
656
+ -webkit-transform-origin: top left;
657
+ -ms-transform-origin: top left;
658
+ transform-origin: top left;
659
+ -webkit-transform: scale(0.875);
660
+ -ms-transform: scale(0.875);
661
+ transform: scale(0.875);
662
+ width: calc(100% / 0.875);
663
+ height: calc(100% / 0.875);
664
+ font-size: calc(14px / 0.875);
665
+ line-height: calc(22px / 0.875);
666
+ padding-left: 0;
667
+ padding-right: 0;
668
+ border-radius: calc(4px / 0.875);
669
+ -webkit-appearance: none;
670
+ -moz-appearance: none;
671
+ appearance: none;
672
+ background: transparent;
673
+ color: var(--charcoal-text2);
674
+ }
675
+
676
+ .c8::-webkit-input-placeholder {
677
+ color: var(--charcoal-text3);
678
+ }
679
+
680
+ .c8::-moz-placeholder {
681
+ color: var(--charcoal-text3);
682
+ }
683
+
684
+ .c8:-ms-input-placeholder {
685
+ color: var(--charcoal-text3);
686
+ }
687
+
688
+ .c8::placeholder {
689
+ color: var(--charcoal-text3);
690
+ }
691
+
692
+ <div
693
+ data-dark={false}
694
+ >
695
+ <div
696
+ className="c0"
697
+ >
698
+ <div
699
+ className="c1 c2"
700
+ style={
701
+ Object {
702
+ "border": 0,
703
+ "clip": "rect(0 0 0 0)",
704
+ "clipPath": "inset(50%)",
705
+ "height": "1px",
706
+ "margin": "-1px",
707
+ "overflow": "hidden",
708
+ "padding": 0,
709
+ "position": "absolute",
710
+ "whiteSpace": "nowrap",
711
+ "width": "1px",
712
+ }
713
+ }
714
+ >
715
+ <label
716
+ className="c3"
717
+ htmlFor="test-id"
718
+ id="test-id"
719
+ >
720
+ Label
721
+ </label>
722
+ <div
723
+ className="c4 c5"
724
+ >
725
+ <span>
726
+ <button
727
+ className="c6"
728
+ >
729
+ Text Link
730
+ </button>
731
+ </span>
732
+ </div>
733
+ </div>
734
+ <div
735
+ className="c7"
736
+ >
737
+ <input
738
+ aria-labelledby="test-id"
739
+ className="c8"
740
+ disabled={false}
741
+ id="test-id"
742
+ onChange={[Function]}
743
+ placeholder="TextField"
744
+ readOnly={false}
745
+ required={false}
746
+ type="text"
747
+ value=""
748
+ />
749
+ </div>
750
+ </div>
751
+ </div>
752
+ `;
753
+
754
+ exports[`Storybook Tests TextField Disabled 1`] = `
755
+ .c3 {
756
+ font-size: 14px;
757
+ line-height: 22px;
758
+ font-weight: bold;
759
+ display: flow-root;
760
+ color: var(--charcoal-text1);
761
+ }
762
+
763
+ .c3::before {
764
+ display: block;
765
+ width: 0;
766
+ height: 0;
767
+ content: '';
768
+ margin-top: -4px;
769
+ }
770
+
771
+ .c3::after {
772
+ display: block;
773
+ width: 0;
774
+ height: 0;
775
+ content: '';
776
+ margin-bottom: -4px;
777
+ }
778
+
779
+ .c5 {
780
+ font-size: 14px;
781
+ line-height: 22px;
782
+ display: flow-root;
783
+ color: var(--charcoal-text3);
784
+ -webkit-transition: 0.2s color,0.2s box-shadow;
785
+ transition: 0.2s color,0.2s box-shadow;
786
+ }
787
+
788
+ .c5::before {
789
+ display: block;
790
+ width: 0;
791
+ height: 0;
792
+ content: '';
793
+ margin-top: -4px;
794
+ }
795
+
796
+ .c5::after {
797
+ display: block;
798
+ width: 0;
799
+ height: 0;
800
+ content: '';
801
+ margin-bottom: -4px;
802
+ }
803
+
804
+ .c5:not(:disabled):not([aria-disabled]):hover,
805
+ .c5[aria-disabled='false']:hover {
806
+ color: var(--charcoal-text3-hover);
807
+ }
808
+
809
+ .c5:not(:disabled):not([aria-disabled]):active,
810
+ .c5[aria-disabled='false']:active {
811
+ color: var(--charcoal-text3-press);
812
+ }
813
+
814
+ .c5:not(:disabled):not([aria-disabled]):active,
815
+ .c5[aria-disabled='false']:active,
816
+ .c5:not(:disabled):not([aria-disabled]):focus,
817
+ .c5[aria-disabled='false']:focus,
818
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
819
+ .c5[aria-disabled='false']:focus-visible {
820
+ outline: none;
821
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
822
+ }
823
+
824
+ .c1 {
825
+ display: -webkit-inline-box;
826
+ display: -webkit-inline-flex;
827
+ display: -ms-inline-flexbox;
828
+ display: inline-flex;
829
+ -webkit-align-items: center;
830
+ -webkit-box-align: center;
831
+ -ms-flex-align: center;
832
+ align-items: center;
833
+ }
834
+
835
+ .c1 > .c4 {
836
+ margin-left: auto;
837
+ }
838
+
839
+ .c0 {
840
+ display: -webkit-box;
841
+ display: -webkit-flex;
842
+ display: -ms-flexbox;
843
+ display: flex;
844
+ -webkit-flex-direction: column;
845
+ -ms-flex-direction: column;
846
+ flex-direction: column;
847
+ opacity: 0.32;
848
+ }
849
+
850
+ .c2 {
851
+ margin-bottom: 8px;
852
+ }
853
+
854
+ .c6 {
855
+ display: grid;
856
+ grid-template-columns: 1fr;
857
+ height: 40px;
858
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
859
+ transition: 0.2s background-color,0.2s box-shadow;
860
+ color: var(--charcoal-text2);
861
+ background-color: var(--charcoal-surface3);
862
+ border-radius: 4px;
863
+ gap: 4px;
864
+ padding: 0 8px;
865
+ line-height: 22px;
866
+ font-size: 14px;
867
+ }
868
+
869
+ .c6:not(:disabled):not([aria-disabled]):hover,
870
+ .c6 [aria-disabled='false']:hover {
871
+ background-color: var(--charcoal-surface3-hover);
872
+ }
873
+
874
+ .c6:focus-within {
875
+ outline: none;
876
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
877
+ }
878
+
879
+ .c7 {
880
+ border: none;
881
+ box-sizing: border-box;
882
+ outline: none;
883
+ font-family: inherit;
884
+ -webkit-transform-origin: top left;
885
+ -ms-transform-origin: top left;
886
+ transform-origin: top left;
887
+ -webkit-transform: scale(0.875);
888
+ -ms-transform: scale(0.875);
889
+ transform: scale(0.875);
890
+ width: calc(100% / 0.875);
891
+ height: calc(100% / 0.875);
892
+ font-size: calc(14px / 0.875);
893
+ line-height: calc(22px / 0.875);
894
+ padding-left: 0;
895
+ padding-right: 0;
896
+ border-radius: calc(4px / 0.875);
897
+ -webkit-appearance: none;
898
+ -moz-appearance: none;
899
+ appearance: none;
900
+ background: transparent;
901
+ color: var(--charcoal-text2);
902
+ }
903
+
904
+ .c7::-webkit-input-placeholder {
905
+ color: var(--charcoal-text3);
906
+ }
907
+
908
+ .c7::-moz-placeholder {
909
+ color: var(--charcoal-text3);
910
+ }
911
+
912
+ .c7:-ms-input-placeholder {
913
+ color: var(--charcoal-text3);
914
+ }
915
+
916
+ .c7::placeholder {
917
+ color: var(--charcoal-text3);
918
+ }
919
+
920
+ <div
921
+ data-dark={false}
922
+ >
923
+ <div
924
+ className="c0"
925
+ >
926
+ <div
927
+ className="c1 c2"
928
+ style={
929
+ Object {
930
+ "border": 0,
931
+ "clip": "rect(0 0 0 0)",
932
+ "clipPath": "inset(50%)",
933
+ "height": "1px",
934
+ "margin": "-1px",
935
+ "overflow": "hidden",
936
+ "padding": 0,
937
+ "position": "absolute",
938
+ "whiteSpace": "nowrap",
939
+ "width": "1px",
940
+ }
941
+ }
942
+ >
943
+ <label
944
+ className="c3"
945
+ htmlFor="test-id"
946
+ id="test-id"
947
+ >
948
+ Label
949
+ </label>
950
+ <div
951
+ className="c4 c5"
952
+ >
953
+ <span />
954
+ </div>
955
+ </div>
956
+ <div
957
+ aria-disabled={true}
958
+ className="c6"
959
+ >
960
+ <input
961
+ aria-labelledby="test-id"
962
+ className="c7"
963
+ disabled={true}
964
+ id="test-id"
965
+ onChange={[Function]}
966
+ readOnly={false}
967
+ required={false}
968
+ type="text"
969
+ value=""
970
+ />
971
+ </div>
972
+ </div>
973
+ </div>
974
+ `;
975
+
976
+ exports[`Storybook Tests TextField Invalid 1`] = `
977
+ .c3 {
978
+ font-size: 14px;
979
+ line-height: 22px;
980
+ font-weight: bold;
981
+ display: flow-root;
982
+ color: var(--charcoal-text1);
983
+ }
984
+
985
+ .c3::before {
986
+ display: block;
987
+ width: 0;
988
+ height: 0;
989
+ content: '';
990
+ margin-top: -4px;
991
+ }
992
+
993
+ .c3::after {
994
+ display: block;
995
+ width: 0;
996
+ height: 0;
997
+ content: '';
998
+ margin-bottom: -4px;
999
+ }
1000
+
1001
+ .c5 {
1002
+ font-size: 14px;
1003
+ line-height: 22px;
1004
+ display: flow-root;
1005
+ color: var(--charcoal-text3);
1006
+ -webkit-transition: 0.2s color,0.2s box-shadow;
1007
+ transition: 0.2s color,0.2s box-shadow;
1008
+ }
1009
+
1010
+ .c5::before {
1011
+ display: block;
1012
+ width: 0;
1013
+ height: 0;
1014
+ content: '';
1015
+ margin-top: -4px;
1016
+ }
1017
+
1018
+ .c5::after {
1019
+ display: block;
1020
+ width: 0;
1021
+ height: 0;
1022
+ content: '';
1023
+ margin-bottom: -4px;
1024
+ }
1025
+
1026
+ .c5:not(:disabled):not([aria-disabled]):hover,
1027
+ .c5[aria-disabled='false']:hover {
1028
+ color: var(--charcoal-text3-hover);
1029
+ }
1030
+
1031
+ .c5:not(:disabled):not([aria-disabled]):active,
1032
+ .c5[aria-disabled='false']:active {
1033
+ color: var(--charcoal-text3-press);
1034
+ }
1035
+
1036
+ .c5:not(:disabled):not([aria-disabled]):active,
1037
+ .c5[aria-disabled='false']:active,
1038
+ .c5:not(:disabled):not([aria-disabled]):focus,
1039
+ .c5[aria-disabled='false']:focus,
1040
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1041
+ .c5[aria-disabled='false']:focus-visible {
1042
+ outline: none;
1043
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1044
+ }
1045
+
1046
+ .c1 {
1047
+ display: -webkit-inline-box;
1048
+ display: -webkit-inline-flex;
1049
+ display: -ms-inline-flexbox;
1050
+ display: inline-flex;
1051
+ -webkit-align-items: center;
1052
+ -webkit-box-align: center;
1053
+ -ms-flex-align: center;
1054
+ align-items: center;
1055
+ }
1056
+
1057
+ .c1 > .c4 {
1058
+ margin-left: auto;
1059
+ }
1060
+
1061
+ .c0 {
1062
+ display: -webkit-box;
1063
+ display: -webkit-flex;
1064
+ display: -ms-flexbox;
1065
+ display: flex;
1066
+ -webkit-flex-direction: column;
1067
+ -ms-flex-direction: column;
1068
+ flex-direction: column;
1069
+ }
1070
+
1071
+ .c2 {
1072
+ margin-bottom: 8px;
1073
+ }
1074
+
1075
+ .c6 {
1076
+ display: grid;
1077
+ grid-template-columns: 1fr;
1078
+ height: 40px;
1079
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1080
+ transition: 0.2s background-color,0.2s box-shadow;
1081
+ color: var(--charcoal-text2);
1082
+ background-color: var(--charcoal-surface3);
1083
+ border-radius: 4px;
1084
+ gap: 4px;
1085
+ padding: 0 8px;
1086
+ line-height: 22px;
1087
+ font-size: 14px;
1088
+ box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
1089
+ }
1090
+
1091
+ .c6:not(:disabled):not([aria-disabled]):hover,
1092
+ .c6 [aria-disabled='false']:hover {
1093
+ background-color: var(--charcoal-surface3-hover);
1094
+ }
1095
+
1096
+ .c6:focus-within {
1097
+ outline: none;
1098
+ box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
1099
+ }
1100
+
1101
+ .c7 {
1102
+ border: none;
1103
+ box-sizing: border-box;
1104
+ outline: none;
1105
+ font-family: inherit;
1106
+ -webkit-transform-origin: top left;
1107
+ -ms-transform-origin: top left;
1108
+ transform-origin: top left;
1109
+ -webkit-transform: scale(0.875);
1110
+ -ms-transform: scale(0.875);
1111
+ transform: scale(0.875);
1112
+ width: calc(100% / 0.875);
1113
+ height: calc(100% / 0.875);
1114
+ font-size: calc(14px / 0.875);
1115
+ line-height: calc(22px / 0.875);
1116
+ padding-left: 0;
1117
+ padding-right: 0;
1118
+ border-radius: calc(4px / 0.875);
1119
+ -webkit-appearance: none;
1120
+ -moz-appearance: none;
1121
+ appearance: none;
1122
+ background: transparent;
1123
+ color: var(--charcoal-text2);
1124
+ }
1125
+
1126
+ .c7::-webkit-input-placeholder {
1127
+ color: var(--charcoal-text3);
1128
+ }
1129
+
1130
+ .c7::-moz-placeholder {
1131
+ color: var(--charcoal-text3);
1132
+ }
1133
+
1134
+ .c7:-ms-input-placeholder {
1135
+ color: var(--charcoal-text3);
1136
+ }
1137
+
1138
+ .c7::placeholder {
1139
+ color: var(--charcoal-text3);
1140
+ }
1141
+
1142
+ .c8 {
1143
+ font-size: 14px;
1144
+ line-height: 22px;
1145
+ margin-top: 4px;
1146
+ margin-bottom: -4px;
1147
+ color: var(--charcoal-assertive);
1148
+ }
1149
+
1150
+ <div
1151
+ data-dark={false}
1152
+ >
1153
+ <div
1154
+ className="c0"
1155
+ >
1156
+ <div
1157
+ className="c1 c2"
1158
+ style={
1159
+ Object {
1160
+ "border": 0,
1161
+ "clip": "rect(0 0 0 0)",
1162
+ "clipPath": "inset(50%)",
1163
+ "height": "1px",
1164
+ "margin": "-1px",
1165
+ "overflow": "hidden",
1166
+ "padding": 0,
1167
+ "position": "absolute",
1168
+ "whiteSpace": "nowrap",
1169
+ "width": "1px",
1170
+ }
1171
+ }
1172
+ >
1173
+ <label
1174
+ className="c3"
1175
+ htmlFor="test-id"
1176
+ id="test-id"
1177
+ >
1178
+ Label
1179
+ </label>
1180
+ <div
1181
+ className="c4 c5"
1182
+ >
1183
+ <span />
1184
+ </div>
1185
+ </div>
1186
+ <div
1187
+ className="c6"
1188
+ >
1189
+ <input
1190
+ aria-invalid={true}
1191
+ aria-labelledby="test-id"
1192
+ className="c7"
1193
+ disabled={false}
1194
+ id="test-id"
1195
+ onChange={[Function]}
1196
+ readOnly={false}
1197
+ required={false}
1198
+ type="text"
1199
+ value=""
1200
+ />
1201
+ </div>
1202
+ <p
1203
+ className="c8"
1204
+ >
1205
+ エラーメッセージ
1206
+ </p>
1207
+ </div>
1208
+ </div>
1209
+ `;
1210
+
1211
+ exports[`Storybook Tests TextField Label 1`] = `
1212
+ .c3 {
1213
+ font-size: 14px;
1214
+ line-height: 22px;
1215
+ font-weight: bold;
1216
+ display: flow-root;
1217
+ color: var(--charcoal-text1);
1218
+ }
1219
+
1220
+ .c3::before {
1221
+ display: block;
1222
+ width: 0;
1223
+ height: 0;
1224
+ content: '';
1225
+ margin-top: -4px;
1226
+ }
1227
+
1228
+ .c3::after {
1229
+ display: block;
1230
+ width: 0;
1231
+ height: 0;
1232
+ content: '';
1233
+ margin-bottom: -4px;
1234
+ }
1235
+
1236
+ .c5 {
1237
+ font-size: 14px;
1238
+ line-height: 22px;
1239
+ display: flow-root;
1240
+ color: var(--charcoal-text3);
1241
+ -webkit-transition: 0.2s color,0.2s box-shadow;
1242
+ transition: 0.2s color,0.2s box-shadow;
1243
+ }
1244
+
1245
+ .c5::before {
1246
+ display: block;
1247
+ width: 0;
1248
+ height: 0;
1249
+ content: '';
1250
+ margin-top: -4px;
1251
+ }
1252
+
1253
+ .c5::after {
1254
+ display: block;
1255
+ width: 0;
1256
+ height: 0;
1257
+ content: '';
1258
+ margin-bottom: -4px;
1259
+ }
1260
+
1261
+ .c5:not(:disabled):not([aria-disabled]):hover,
1262
+ .c5[aria-disabled='false']:hover {
1263
+ color: var(--charcoal-text3-hover);
1264
+ }
1265
+
1266
+ .c5:not(:disabled):not([aria-disabled]):active,
1267
+ .c5[aria-disabled='false']:active {
1268
+ color: var(--charcoal-text3-press);
1269
+ }
1270
+
1271
+ .c5:not(:disabled):not([aria-disabled]):active,
1272
+ .c5[aria-disabled='false']:active,
1273
+ .c5:not(:disabled):not([aria-disabled]):focus,
1274
+ .c5[aria-disabled='false']:focus,
1275
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1276
+ .c5[aria-disabled='false']:focus-visible {
1277
+ outline: none;
1278
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1279
+ }
1280
+
1281
+ .c1 {
1282
+ display: -webkit-inline-box;
1283
+ display: -webkit-inline-flex;
1284
+ display: -ms-inline-flexbox;
1285
+ display: inline-flex;
1286
+ -webkit-align-items: center;
1287
+ -webkit-box-align: center;
1288
+ -ms-flex-align: center;
1289
+ align-items: center;
1290
+ }
1291
+
1292
+ .c1 > .c4 {
1293
+ margin-left: auto;
1294
+ }
1295
+
1296
+ .c0 {
1297
+ display: -webkit-box;
1298
+ display: -webkit-flex;
1299
+ display: -ms-flexbox;
1300
+ display: flex;
1301
+ -webkit-flex-direction: column;
1302
+ -ms-flex-direction: column;
1303
+ flex-direction: column;
1304
+ }
1305
+
1306
+ .c2 {
1307
+ margin-bottom: 8px;
1308
+ }
1309
+
1310
+ .c6 {
1311
+ display: grid;
1312
+ grid-template-columns: 1fr;
1313
+ height: 40px;
1314
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1315
+ transition: 0.2s background-color,0.2s box-shadow;
1316
+ color: var(--charcoal-text2);
1317
+ background-color: var(--charcoal-surface3);
1318
+ border-radius: 4px;
1319
+ gap: 4px;
1320
+ padding: 0 8px;
1321
+ line-height: 22px;
1322
+ font-size: 14px;
1323
+ }
1324
+
1325
+ .c6:not(:disabled):not([aria-disabled]):hover,
1326
+ .c6 [aria-disabled='false']:hover {
1327
+ background-color: var(--charcoal-surface3-hover);
1328
+ }
1329
+
1330
+ .c6:focus-within {
1331
+ outline: none;
1332
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1333
+ }
1334
+
4
1335
  .c7 {
5
- cursor: pointer;
1336
+ border: none;
1337
+ box-sizing: border-box;
1338
+ outline: none;
1339
+ font-family: inherit;
1340
+ -webkit-transform-origin: top left;
1341
+ -ms-transform-origin: top left;
1342
+ transform-origin: top left;
1343
+ -webkit-transform: scale(0.875);
1344
+ -ms-transform: scale(0.875);
1345
+ transform: scale(0.875);
1346
+ width: calc(100% / 0.875);
1347
+ height: calc(100% / 0.875);
1348
+ font-size: calc(14px / 0.875);
1349
+ line-height: calc(22px / 0.875);
1350
+ padding-left: 0;
1351
+ padding-right: 0;
1352
+ border-radius: calc(4px / 0.875);
6
1353
  -webkit-appearance: none;
7
1354
  -moz-appearance: none;
8
1355
  appearance: none;
9
1356
  background: transparent;
10
- padding: 0;
11
- border-style: none;
1357
+ color: var(--charcoal-text2);
1358
+ }
1359
+
1360
+ .c7::-webkit-input-placeholder {
1361
+ color: var(--charcoal-text3);
1362
+ }
1363
+
1364
+ .c7::-moz-placeholder {
1365
+ color: var(--charcoal-text3);
1366
+ }
1367
+
1368
+ .c7:-ms-input-placeholder {
1369
+ color: var(--charcoal-text3);
1370
+ }
1371
+
1372
+ .c7::placeholder {
1373
+ color: var(--charcoal-text3);
1374
+ }
1375
+
1376
+ <div
1377
+ data-dark={false}
1378
+ >
1379
+ <div
1380
+ className="c0"
1381
+ >
1382
+ <div
1383
+ className="c1 c2"
1384
+ >
1385
+ <label
1386
+ className="c3"
1387
+ htmlFor="test-id"
1388
+ id="test-id"
1389
+ >
1390
+ Label
1391
+ </label>
1392
+ <div
1393
+ className="c4 c5"
1394
+ >
1395
+ <span />
1396
+ </div>
1397
+ </div>
1398
+ <div
1399
+ className="c6"
1400
+ >
1401
+ <input
1402
+ aria-labelledby="test-id"
1403
+ className="c7"
1404
+ disabled={false}
1405
+ id="test-id"
1406
+ onChange={[Function]}
1407
+ readOnly={false}
1408
+ required={false}
1409
+ type="text"
1410
+ value=""
1411
+ />
1412
+ </div>
1413
+ </div>
1414
+ </div>
1415
+ `;
1416
+
1417
+ exports[`Storybook Tests TextField Number 1`] = `
1418
+ .c3 {
1419
+ font-size: 14px;
1420
+ line-height: 22px;
1421
+ font-weight: bold;
1422
+ display: flow-root;
1423
+ color: var(--charcoal-text1);
1424
+ }
1425
+
1426
+ .c3::before {
1427
+ display: block;
1428
+ width: 0;
1429
+ height: 0;
1430
+ content: '';
1431
+ margin-top: -4px;
1432
+ }
1433
+
1434
+ .c3::after {
1435
+ display: block;
1436
+ width: 0;
1437
+ height: 0;
1438
+ content: '';
1439
+ margin-bottom: -4px;
1440
+ }
1441
+
1442
+ .c5 {
1443
+ font-size: 14px;
1444
+ line-height: 22px;
1445
+ display: flow-root;
1446
+ color: var(--charcoal-text3);
1447
+ -webkit-transition: 0.2s color,0.2s box-shadow;
1448
+ transition: 0.2s color,0.2s box-shadow;
1449
+ }
1450
+
1451
+ .c5::before {
1452
+ display: block;
1453
+ width: 0;
1454
+ height: 0;
1455
+ content: '';
1456
+ margin-top: -4px;
1457
+ }
1458
+
1459
+ .c5::after {
1460
+ display: block;
1461
+ width: 0;
1462
+ height: 0;
1463
+ content: '';
1464
+ margin-bottom: -4px;
1465
+ }
1466
+
1467
+ .c5:not(:disabled):not([aria-disabled]):hover,
1468
+ .c5[aria-disabled='false']:hover {
1469
+ color: var(--charcoal-text3-hover);
1470
+ }
1471
+
1472
+ .c5:not(:disabled):not([aria-disabled]):active,
1473
+ .c5[aria-disabled='false']:active {
1474
+ color: var(--charcoal-text3-press);
1475
+ }
1476
+
1477
+ .c5:not(:disabled):not([aria-disabled]):active,
1478
+ .c5[aria-disabled='false']:active,
1479
+ .c5:not(:disabled):not([aria-disabled]):focus,
1480
+ .c5[aria-disabled='false']:focus,
1481
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1482
+ .c5[aria-disabled='false']:focus-visible {
12
1483
  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;
1484
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1485
+ }
1486
+
1487
+ .c1 {
1488
+ display: -webkit-inline-box;
1489
+ display: -webkit-inline-flex;
1490
+ display: -ms-inline-flexbox;
1491
+ display: inline-flex;
1492
+ -webkit-align-items: center;
1493
+ -webkit-box-align: center;
1494
+ -ms-flex-align: center;
1495
+ align-items: center;
1496
+ }
1497
+
1498
+ .c1 > .c4 {
1499
+ margin-left: auto;
1500
+ }
1501
+
1502
+ .c0 {
1503
+ display: -webkit-box;
1504
+ display: -webkit-flex;
1505
+ display: -ms-flexbox;
1506
+ display: flex;
1507
+ -webkit-flex-direction: column;
1508
+ -ms-flex-direction: column;
1509
+ flex-direction: column;
1510
+ }
1511
+
1512
+ .c2 {
1513
+ margin-bottom: 8px;
1514
+ }
1515
+
1516
+ .c6 {
1517
+ display: grid;
1518
+ grid-template-columns: 1fr;
1519
+ height: 40px;
1520
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1521
+ transition: 0.2s background-color,0.2s box-shadow;
1522
+ color: var(--charcoal-text2);
1523
+ background-color: var(--charcoal-surface3);
1524
+ border-radius: 4px;
1525
+ gap: 4px;
1526
+ padding: 0 8px;
1527
+ line-height: 22px;
1528
+ font-size: 14px;
1529
+ }
1530
+
1531
+ .c6:not(:disabled):not([aria-disabled]):hover,
1532
+ .c6 [aria-disabled='false']:hover {
1533
+ background-color: var(--charcoal-surface3-hover);
1534
+ }
1535
+
1536
+ .c6:focus-within {
1537
+ outline: none;
1538
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1539
+ }
1540
+
1541
+ .c7 {
1542
+ border: none;
1543
+ box-sizing: border-box;
1544
+ outline: none;
1545
+ font-family: inherit;
1546
+ -webkit-transform-origin: top left;
1547
+ -ms-transform-origin: top left;
1548
+ transform-origin: top left;
1549
+ -webkit-transform: scale(0.875);
1550
+ -ms-transform: scale(0.875);
1551
+ transform: scale(0.875);
1552
+ width: calc(100% / 0.875);
1553
+ height: calc(100% / 0.875);
1554
+ font-size: calc(14px / 0.875);
1555
+ line-height: calc(22px / 0.875);
1556
+ padding-left: 0;
1557
+ padding-right: 0;
1558
+ border-radius: calc(4px / 0.875);
1559
+ -webkit-appearance: none;
1560
+ -moz-appearance: none;
1561
+ appearance: none;
1562
+ background: transparent;
1563
+ color: var(--charcoal-text2);
26
1564
  }
27
1565
 
28
- .c7:disabled,
29
- .c7[aria-disabled]:not([aria-disabled=false]) {
30
- cursor: default;
1566
+ .c7::-webkit-input-placeholder {
1567
+ color: var(--charcoal-text3);
31
1568
  }
32
1569
 
33
- .c7:focus {
34
- outline: none;
1570
+ .c7::-moz-placeholder {
1571
+ color: var(--charcoal-text3);
35
1572
  }
36
1573
 
37
- .c7::-moz-focus-inner {
38
- border-style: none;
39
- padding: 0;
1574
+ .c7:-ms-input-placeholder {
1575
+ color: var(--charcoal-text3);
40
1576
  }
41
1577
 
42
- .c4 {
1578
+ .c7::placeholder {
1579
+ color: var(--charcoal-text3);
1580
+ }
1581
+
1582
+ <div
1583
+ data-dark={false}
1584
+ >
1585
+ <div
1586
+ className="c0"
1587
+ >
1588
+ <div
1589
+ className="c1 c2"
1590
+ style={
1591
+ Object {
1592
+ "border": 0,
1593
+ "clip": "rect(0 0 0 0)",
1594
+ "clipPath": "inset(50%)",
1595
+ "height": "1px",
1596
+ "margin": "-1px",
1597
+ "overflow": "hidden",
1598
+ "padding": 0,
1599
+ "position": "absolute",
1600
+ "whiteSpace": "nowrap",
1601
+ "width": "1px",
1602
+ }
1603
+ }
1604
+ >
1605
+ <label
1606
+ className="c3"
1607
+ />
1608
+ <div
1609
+ className="c4 c5"
1610
+ >
1611
+ <span />
1612
+ </div>
1613
+ </div>
1614
+ <div
1615
+ className="c6"
1616
+ >
1617
+ <input
1618
+ className="c7"
1619
+ disabled={false}
1620
+ id="test-id"
1621
+ onChange={[Function]}
1622
+ onWheel={[Function]}
1623
+ readOnly={false}
1624
+ required={false}
1625
+ type="number"
1626
+ value="0"
1627
+ />
1628
+ </div>
1629
+ </div>
1630
+ </div>
1631
+ `;
1632
+
1633
+ exports[`Storybook Tests TextField Placeholder 1`] = `
1634
+ .c3 {
43
1635
  font-size: 14px;
44
1636
  line-height: 22px;
45
1637
  font-weight: bold;
@@ -47,7 +1639,7 @@ exports[`Storybook Tests TextField Default 1`] = `
47
1639
  color: var(--charcoal-text1);
48
1640
  }
49
1641
 
50
- .c4::before {
1642
+ .c3::before {
51
1643
  display: block;
52
1644
  width: 0;
53
1645
  height: 0;
@@ -55,7 +1647,7 @@ exports[`Storybook Tests TextField Default 1`] = `
55
1647
  margin-top: -4px;
56
1648
  }
57
1649
 
58
- .c4::after {
1650
+ .c3::after {
59
1651
  display: block;
60
1652
  width: 0;
61
1653
  height: 0;
@@ -63,7 +1655,7 @@ exports[`Storybook Tests TextField Default 1`] = `
63
1655
  margin-bottom: -4px;
64
1656
  }
65
1657
 
66
- .c6 {
1658
+ .c5 {
67
1659
  font-size: 14px;
68
1660
  line-height: 22px;
69
1661
  display: flow-root;
@@ -72,7 +1664,7 @@ exports[`Storybook Tests TextField Default 1`] = `
72
1664
  transition: 0.2s color,0.2s box-shadow;
73
1665
  }
74
1666
 
75
- .c6::before {
1667
+ .c5::before {
76
1668
  display: block;
77
1669
  width: 0;
78
1670
  height: 0;
@@ -80,7 +1672,7 @@ exports[`Storybook Tests TextField Default 1`] = `
80
1672
  margin-top: -4px;
81
1673
  }
82
1674
 
83
- .c6::after {
1675
+ .c5::after {
84
1676
  display: block;
85
1677
  width: 0;
86
1678
  height: 0;
@@ -88,27 +1680,27 @@ exports[`Storybook Tests TextField Default 1`] = `
88
1680
  margin-bottom: -4px;
89
1681
  }
90
1682
 
91
- .c6:not(:disabled):not([aria-disabled]):hover,
92
- .c6[aria-disabled='false']:hover {
1683
+ .c5:not(:disabled):not([aria-disabled]):hover,
1684
+ .c5[aria-disabled='false']:hover {
93
1685
  color: var(--charcoal-text3-hover);
94
1686
  }
95
1687
 
96
- .c6:not(:disabled):not([aria-disabled]):active,
97
- .c6[aria-disabled='false']:active {
1688
+ .c5:not(:disabled):not([aria-disabled]):active,
1689
+ .c5[aria-disabled='false']:active {
98
1690
  color: var(--charcoal-text3-press);
99
1691
  }
100
1692
 
101
- .c6:not(:disabled):not([aria-disabled]):active,
102
- .c6[aria-disabled='false']:active,
103
- .c6:not(:disabled):not([aria-disabled]):focus,
104
- .c6[aria-disabled='false']:focus,
105
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
106
- .c6[aria-disabled='false']:focus-visible {
1693
+ .c5:not(:disabled):not([aria-disabled]):active,
1694
+ .c5[aria-disabled='false']:active,
1695
+ .c5:not(:disabled):not([aria-disabled]):focus,
1696
+ .c5[aria-disabled='false']:focus,
1697
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1698
+ .c5[aria-disabled='false']:focus-visible {
107
1699
  outline: none;
108
1700
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
109
1701
  }
110
1702
 
111
- .c2 {
1703
+ .c1 {
112
1704
  display: -webkit-inline-box;
113
1705
  display: -webkit-inline-flex;
114
1706
  display: -ms-inline-flexbox;
@@ -119,11 +1711,11 @@ exports[`Storybook Tests TextField Default 1`] = `
119
1711
  align-items: center;
120
1712
  }
121
1713
 
122
- .c2 > .c5 {
1714
+ .c1 > .c4 {
123
1715
  margin-left: auto;
124
1716
  }
125
1717
 
126
- .c1 {
1718
+ .c0 {
127
1719
  display: -webkit-box;
128
1720
  display: -webkit-flex;
129
1721
  display: -ms-flexbox;
@@ -133,11 +1725,11 @@ exports[`Storybook Tests TextField Default 1`] = `
133
1725
  flex-direction: column;
134
1726
  }
135
1727
 
136
- .c3 {
1728
+ .c2 {
137
1729
  margin-bottom: 8px;
138
1730
  }
139
1731
 
140
- .c8 {
1732
+ .c6 {
141
1733
  display: grid;
142
1734
  grid-template-columns: 1fr;
143
1735
  height: 40px;
@@ -152,17 +1744,17 @@ exports[`Storybook Tests TextField Default 1`] = `
152
1744
  font-size: 14px;
153
1745
  }
154
1746
 
155
- .c8:not(:disabled):not([aria-disabled]):hover,
156
- .c8 [aria-disabled='false']:hover {
1747
+ .c6:not(:disabled):not([aria-disabled]):hover,
1748
+ .c6 [aria-disabled='false']:hover {
157
1749
  background-color: var(--charcoal-surface3-hover);
158
1750
  }
159
1751
 
160
- .c8:focus-within {
1752
+ .c6:focus-within {
161
1753
  outline: none;
162
1754
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
163
1755
  }
164
1756
 
165
- .c9 {
1757
+ .c7 {
166
1758
  border: none;
167
1759
  box-sizing: border-box;
168
1760
  outline: none;
@@ -187,27 +1779,22 @@ exports[`Storybook Tests TextField Default 1`] = `
187
1779
  color: var(--charcoal-text2);
188
1780
  }
189
1781
 
190
- .c9::-webkit-input-placeholder {
1782
+ .c7::-webkit-input-placeholder {
191
1783
  color: var(--charcoal-text3);
192
1784
  }
193
1785
 
194
- .c9::-moz-placeholder {
1786
+ .c7::-moz-placeholder {
195
1787
  color: var(--charcoal-text3);
196
1788
  }
197
1789
 
198
- .c9:-ms-input-placeholder {
1790
+ .c7:-ms-input-placeholder {
199
1791
  color: var(--charcoal-text3);
200
1792
  }
201
1793
 
202
- .c9::placeholder {
1794
+ .c7::placeholder {
203
1795
  color: var(--charcoal-text3);
204
1796
  }
205
1797
 
206
- .c0 {
207
- display: grid;
208
- gap: 24px;
209
- }
210
-
211
1798
  <div
212
1799
  data-dark={false}
213
1800
  >
@@ -215,105 +1802,57 @@ exports[`Storybook Tests TextField Default 1`] = `
215
1802
  className="c0"
216
1803
  >
217
1804
  <div
218
- className="c1"
219
- >
220
- <div
221
- className="c2 c3"
222
- style={
223
- Object {
224
- "border": 0,
225
- "clip": "rect(0 0 0 0)",
226
- "clipPath": "inset(50%)",
227
- "height": "1px",
228
- "margin": "-1px",
229
- "overflow": "hidden",
230
- "padding": 0,
231
- "position": "absolute",
232
- "whiteSpace": "nowrap",
233
- "width": "1px",
234
- }
1805
+ className="c1 c2"
1806
+ style={
1807
+ Object {
1808
+ "border": 0,
1809
+ "clip": "rect(0 0 0 0)",
1810
+ "clipPath": "inset(50%)",
1811
+ "height": "1px",
1812
+ "margin": "-1px",
1813
+ "overflow": "hidden",
1814
+ "padding": 0,
1815
+ "position": "absolute",
1816
+ "whiteSpace": "nowrap",
1817
+ "width": "1px",
235
1818
  }
1819
+ }
1820
+ >
1821
+ <label
1822
+ className="c3"
1823
+ htmlFor="test-id"
1824
+ id="test-id"
236
1825
  >
237
- <label
238
- className="c4"
239
- htmlFor="test-id"
240
- id="test-id"
241
- >
242
- Label
243
- </label>
244
- <div
245
- className="c5 c6"
246
- >
247
- <span>
248
- <button
249
- className="c7"
250
- >
251
- Text Link
252
- </button>
253
- </span>
254
- </div>
255
- </div>
1826
+ Label
1827
+ </label>
256
1828
  <div
257
- className="c8"
1829
+ className="c4 c5"
258
1830
  >
259
- <input
260
- aria-labelledby="test-id"
261
- className="c9"
262
- disabled={false}
263
- id="test-id"
264
- onChange={[Function]}
265
- placeholder="TextField"
266
- readOnly={false}
267
- required={false}
268
- type="text"
269
- value=""
270
- />
1831
+ <span />
271
1832
  </div>
272
1833
  </div>
1834
+ <div
1835
+ className="c6"
1836
+ >
1837
+ <input
1838
+ aria-labelledby="test-id"
1839
+ className="c7"
1840
+ disabled={false}
1841
+ id="test-id"
1842
+ onChange={[Function]}
1843
+ placeholder="Placeholder"
1844
+ readOnly={false}
1845
+ required={false}
1846
+ type="text"
1847
+ value=""
1848
+ />
1849
+ </div>
273
1850
  </div>
274
1851
  </div>
275
1852
  `;
276
1853
 
277
- exports[`Storybook Tests TextField HasAffix 1`] = `
278
- .c7 {
279
- cursor: pointer;
280
- -webkit-appearance: none;
281
- -moz-appearance: none;
282
- appearance: none;
283
- background: transparent;
284
- padding: 0;
285
- border-style: none;
286
- outline: none;
287
- color: inherit;
288
- text-rendering: inherit;
289
- -webkit-letter-spacing: inherit;
290
- -moz-letter-spacing: inherit;
291
- -ms-letter-spacing: inherit;
292
- letter-spacing: inherit;
293
- word-spacing: inherit;
294
- -webkit-text-decoration: none;
295
- text-decoration: none;
296
- font: inherit;
297
- margin: 0;
298
- overflow: visible;
299
- text-transform: none;
300
- }
301
-
302
- .c7:disabled,
303
- .c7[aria-disabled]:not([aria-disabled=false]) {
304
- cursor: default;
305
- }
306
-
307
- .c7:focus {
308
- outline: none;
309
- }
310
-
311
- .c7::-moz-focus-inner {
312
- border-style: none;
313
- padding: 0;
314
- }
315
-
316
- .c4 {
1854
+ exports[`Storybook Tests TextField Prefix 1`] = `
1855
+ .c3 {
317
1856
  font-size: 14px;
318
1857
  line-height: 22px;
319
1858
  font-weight: bold;
@@ -321,7 +1860,7 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
321
1860
  color: var(--charcoal-text1);
322
1861
  }
323
1862
 
324
- .c4::before {
1863
+ .c3::before {
325
1864
  display: block;
326
1865
  width: 0;
327
1866
  height: 0;
@@ -329,7 +1868,7 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
329
1868
  margin-top: -4px;
330
1869
  }
331
1870
 
332
- .c4::after {
1871
+ .c3::after {
333
1872
  display: block;
334
1873
  width: 0;
335
1874
  height: 0;
@@ -337,7 +1876,7 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
337
1876
  margin-bottom: -4px;
338
1877
  }
339
1878
 
340
- .c6 {
1879
+ .c5 {
341
1880
  font-size: 14px;
342
1881
  line-height: 22px;
343
1882
  display: flow-root;
@@ -346,7 +1885,7 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
346
1885
  transition: 0.2s color,0.2s box-shadow;
347
1886
  }
348
1887
 
349
- .c6::before {
1888
+ .c5::before {
350
1889
  display: block;
351
1890
  width: 0;
352
1891
  height: 0;
@@ -354,7 +1893,7 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
354
1893
  margin-top: -4px;
355
1894
  }
356
1895
 
357
- .c6::after {
1896
+ .c5::after {
358
1897
  display: block;
359
1898
  width: 0;
360
1899
  height: 0;
@@ -362,27 +1901,27 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
362
1901
  margin-bottom: -4px;
363
1902
  }
364
1903
 
365
- .c6:not(:disabled):not([aria-disabled]):hover,
366
- .c6[aria-disabled='false']:hover {
1904
+ .c5:not(:disabled):not([aria-disabled]):hover,
1905
+ .c5[aria-disabled='false']:hover {
367
1906
  color: var(--charcoal-text3-hover);
368
1907
  }
369
1908
 
370
- .c6:not(:disabled):not([aria-disabled]):active,
371
- .c6[aria-disabled='false']:active {
1909
+ .c5:not(:disabled):not([aria-disabled]):active,
1910
+ .c5[aria-disabled='false']:active {
372
1911
  color: var(--charcoal-text3-press);
373
1912
  }
374
1913
 
375
- .c6:not(:disabled):not([aria-disabled]):active,
376
- .c6[aria-disabled='false']:active,
377
- .c6:not(:disabled):not([aria-disabled]):focus,
378
- .c6[aria-disabled='false']:focus,
379
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
380
- .c6[aria-disabled='false']:focus-visible {
1914
+ .c5:not(:disabled):not([aria-disabled]):active,
1915
+ .c5[aria-disabled='false']:active,
1916
+ .c5:not(:disabled):not([aria-disabled]):focus,
1917
+ .c5[aria-disabled='false']:focus,
1918
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1919
+ .c5[aria-disabled='false']:focus-visible {
381
1920
  outline: none;
382
1921
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
383
1922
  }
384
1923
 
385
- .c2 {
1924
+ .c1 {
386
1925
  display: -webkit-inline-box;
387
1926
  display: -webkit-inline-flex;
388
1927
  display: -ms-inline-flexbox;
@@ -393,11 +1932,11 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
393
1932
  align-items: center;
394
1933
  }
395
1934
 
396
- .c2 > .c5 {
1935
+ .c1 > .c4 {
397
1936
  margin-left: auto;
398
1937
  }
399
1938
 
400
- .c1 {
1939
+ .c0 {
401
1940
  display: -webkit-box;
402
1941
  display: -webkit-flex;
403
1942
  display: -ms-flexbox;
@@ -407,13 +1946,13 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
407
1946
  flex-direction: column;
408
1947
  }
409
1948
 
410
- .c3 {
1949
+ .c2 {
411
1950
  margin-bottom: 8px;
412
1951
  }
413
1952
 
414
- .c8 {
1953
+ .c6 {
415
1954
  display: grid;
416
- grid-template-columns: auto 1fr auto;
1955
+ grid-template-columns: auto 1fr;
417
1956
  height: 40px;
418
1957
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
419
1958
  transition: 0.2s background-color,0.2s box-shadow;
@@ -426,28 +1965,17 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
426
1965
  font-size: 14px;
427
1966
  }
428
1967
 
429
- .c8:not(:disabled):not([aria-disabled]):hover,
430
- .c8 [aria-disabled='false']:hover {
1968
+ .c6:not(:disabled):not([aria-disabled]):hover,
1969
+ .c6 [aria-disabled='false']:hover {
431
1970
  background-color: var(--charcoal-surface3-hover);
432
1971
  }
433
1972
 
434
- .c8:focus-within {
1973
+ .c6:focus-within {
435
1974
  outline: none;
436
1975
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
437
1976
  }
438
1977
 
439
- .c9 {
440
- display: -webkit-box;
441
- display: -webkit-flex;
442
- display: -ms-flexbox;
443
- display: flex;
444
- -webkit-align-items: center;
445
- -webkit-box-align: center;
446
- -ms-flex-align: center;
447
- align-items: center;
448
- }
449
-
450
- .c11 {
1978
+ .c7 {
451
1979
  display: -webkit-box;
452
1980
  display: -webkit-flex;
453
1981
  display: -ms-flexbox;
@@ -456,10 +1984,9 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
456
1984
  -webkit-box-align: center;
457
1985
  -ms-flex-align: center;
458
1986
  align-items: center;
459
- gap: 8px;
460
1987
  }
461
1988
 
462
- .c10 {
1989
+ .c9 {
463
1990
  border: none;
464
1991
  box-sizing: border-box;
465
1992
  outline: none;
@@ -484,31 +2011,32 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
484
2011
  color: var(--charcoal-text2);
485
2012
  }
486
2013
 
487
- .c10::-webkit-input-placeholder {
488
- color: var(--charcoal-text3);
489
- }
490
-
491
- .c10::-moz-placeholder {
2014
+ .c9::-webkit-input-placeholder {
492
2015
  color: var(--charcoal-text3);
493
2016
  }
494
2017
 
495
- .c10:-ms-input-placeholder {
2018
+ .c9::-moz-placeholder {
496
2019
  color: var(--charcoal-text3);
497
2020
  }
498
2021
 
499
- .c10::placeholder {
2022
+ .c9:-ms-input-placeholder {
500
2023
  color: var(--charcoal-text3);
501
2024
  }
502
2025
 
503
- .c12 {
504
- line-height: 22px;
505
- font-size: 14px;
2026
+ .c9::placeholder {
506
2027
  color: var(--charcoal-text3);
507
2028
  }
508
2029
 
509
- .c0 {
510
- display: grid;
511
- gap: 24px;
2030
+ .c8 {
2031
+ display: -webkit-box;
2032
+ display: -webkit-flex;
2033
+ display: -ms-flexbox;
2034
+ display: flex;
2035
+ -webkit-align-items: center;
2036
+ -webkit-box-align: center;
2037
+ -ms-flex-align: center;
2038
+ align-items: center;
2039
+ color: #858585;
512
2040
  }
513
2041
 
514
2042
  <div
@@ -518,121 +2046,67 @@ exports[`Storybook Tests TextField HasAffix 1`] = `
518
2046
  className="c0"
519
2047
  >
520
2048
  <div
521
- className="c1"
2049
+ className="c1 c2"
2050
+ style={
2051
+ Object {
2052
+ "border": 0,
2053
+ "clip": "rect(0 0 0 0)",
2054
+ "clipPath": "inset(50%)",
2055
+ "height": "1px",
2056
+ "margin": "-1px",
2057
+ "overflow": "hidden",
2058
+ "padding": 0,
2059
+ "position": "absolute",
2060
+ "whiteSpace": "nowrap",
2061
+ "width": "1px",
2062
+ }
2063
+ }
522
2064
  >
2065
+ <label
2066
+ className="c3"
2067
+ htmlFor="test-id"
2068
+ id="test-id"
2069
+ >
2070
+ Label
2071
+ </label>
523
2072
  <div
524
- className="c2 c3"
525
- style={
526
- Object {
527
- "border": 0,
528
- "clip": "rect(0 0 0 0)",
529
- "clipPath": "inset(50%)",
530
- "height": "1px",
531
- "margin": "-1px",
532
- "overflow": "hidden",
533
- "padding": 0,
534
- "position": "absolute",
535
- "whiteSpace": "nowrap",
536
- "width": "1px",
537
- }
538
- }
2073
+ className="c4 c5"
539
2074
  >
540
- <label
541
- className="c4"
542
- htmlFor="test-id"
543
- id="test-id"
544
- >
545
- Label
546
- </label>
547
- <div
548
- className="c5 c6"
549
- >
550
- <span>
551
- <button
552
- className="c7"
553
- >
554
- Text Link
555
- </button>
556
- </span>
557
- </div>
2075
+ <span />
558
2076
  </div>
2077
+ </div>
2078
+ <div
2079
+ className="c6"
2080
+ >
559
2081
  <div
560
- className="c8"
2082
+ className="c7"
561
2083
  >
562
2084
  <div
563
- className="c9"
2085
+ className="c8"
564
2086
  >
565
- /home/john/
2087
+ <pixiv-icon
2088
+ name="16/Search"
2089
+ />
566
2090
  </div>
567
- <input
568
- aria-labelledby="test-id"
569
- className="c10"
570
- disabled={false}
571
- id="test-id"
572
- maxLength={200}
573
- onChange={[Function]}
574
- placeholder="TextField"
575
- readOnly={false}
576
- required={false}
577
- type="text"
578
- value=""
579
- />
580
- <span
581
- className="c11"
582
- >
583
- .png
584
- <span
585
- className="c12"
586
- >
587
- 0/200
588
- </span>
589
- </span>
590
2091
  </div>
2092
+ <input
2093
+ aria-labelledby="test-id"
2094
+ className="c9"
2095
+ disabled={false}
2096
+ id="test-id"
2097
+ onChange={[Function]}
2098
+ readOnly={false}
2099
+ required={false}
2100
+ type="text"
2101
+ value=""
2102
+ />
591
2103
  </div>
592
2104
  </div>
593
2105
  </div>
594
2106
  `;
595
2107
 
596
- exports[`Storybook Tests TextField HasCount 1`] = `
597
- .c7 {
598
- cursor: pointer;
599
- -webkit-appearance: none;
600
- -moz-appearance: none;
601
- appearance: none;
602
- background: transparent;
603
- padding: 0;
604
- border-style: none;
605
- outline: none;
606
- color: inherit;
607
- text-rendering: inherit;
608
- -webkit-letter-spacing: inherit;
609
- -moz-letter-spacing: inherit;
610
- -ms-letter-spacing: inherit;
611
- letter-spacing: inherit;
612
- word-spacing: inherit;
613
- -webkit-text-decoration: none;
614
- text-decoration: none;
615
- font: inherit;
616
- margin: 0;
617
- overflow: visible;
618
- text-transform: none;
619
- }
620
-
621
- .c7:disabled,
622
- .c7[aria-disabled]:not([aria-disabled=false]) {
623
- cursor: default;
624
- }
625
-
626
- .c7:focus {
627
- outline: none;
628
- }
629
-
630
- .c7::-moz-focus-inner {
631
- border-style: none;
632
- padding: 0;
633
- }
634
-
635
- .c4 {
2108
+ exports[`Storybook Tests TextField ReadOnly 1`] = `
2109
+ .c3 {
636
2110
  font-size: 14px;
637
2111
  line-height: 22px;
638
2112
  font-weight: bold;
@@ -640,7 +2114,7 @@ exports[`Storybook Tests TextField HasCount 1`] = `
640
2114
  color: var(--charcoal-text1);
641
2115
  }
642
2116
 
643
- .c4::before {
2117
+ .c3::before {
644
2118
  display: block;
645
2119
  width: 0;
646
2120
  height: 0;
@@ -648,7 +2122,7 @@ exports[`Storybook Tests TextField HasCount 1`] = `
648
2122
  margin-top: -4px;
649
2123
  }
650
2124
 
651
- .c4::after {
2125
+ .c3::after {
652
2126
  display: block;
653
2127
  width: 0;
654
2128
  height: 0;
@@ -656,7 +2130,7 @@ exports[`Storybook Tests TextField HasCount 1`] = `
656
2130
  margin-bottom: -4px;
657
2131
  }
658
2132
 
659
- .c6 {
2133
+ .c5 {
660
2134
  font-size: 14px;
661
2135
  line-height: 22px;
662
2136
  display: flow-root;
@@ -665,7 +2139,7 @@ exports[`Storybook Tests TextField HasCount 1`] = `
665
2139
  transition: 0.2s color,0.2s box-shadow;
666
2140
  }
667
2141
 
668
- .c6::before {
2142
+ .c5::before {
669
2143
  display: block;
670
2144
  width: 0;
671
2145
  height: 0;
@@ -673,7 +2147,7 @@ exports[`Storybook Tests TextField HasCount 1`] = `
673
2147
  margin-top: -4px;
674
2148
  }
675
2149
 
676
- .c6::after {
2150
+ .c5::after {
677
2151
  display: block;
678
2152
  width: 0;
679
2153
  height: 0;
@@ -681,27 +2155,27 @@ exports[`Storybook Tests TextField HasCount 1`] = `
681
2155
  margin-bottom: -4px;
682
2156
  }
683
2157
 
684
- .c6:not(:disabled):not([aria-disabled]):hover,
685
- .c6[aria-disabled='false']:hover {
2158
+ .c5:not(:disabled):not([aria-disabled]):hover,
2159
+ .c5[aria-disabled='false']:hover {
686
2160
  color: var(--charcoal-text3-hover);
687
2161
  }
688
2162
 
689
- .c6:not(:disabled):not([aria-disabled]):active,
690
- .c6[aria-disabled='false']:active {
2163
+ .c5:not(:disabled):not([aria-disabled]):active,
2164
+ .c5[aria-disabled='false']:active {
691
2165
  color: var(--charcoal-text3-press);
692
2166
  }
693
2167
 
694
- .c6:not(:disabled):not([aria-disabled]):active,
695
- .c6[aria-disabled='false']:active,
696
- .c6:not(:disabled):not([aria-disabled]):focus,
697
- .c6[aria-disabled='false']:focus,
698
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
699
- .c6[aria-disabled='false']:focus-visible {
2168
+ .c5:not(:disabled):not([aria-disabled]):active,
2169
+ .c5[aria-disabled='false']:active,
2170
+ .c5:not(:disabled):not([aria-disabled]):focus,
2171
+ .c5[aria-disabled='false']:focus,
2172
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
2173
+ .c5[aria-disabled='false']:focus-visible {
700
2174
  outline: none;
701
2175
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
702
2176
  }
703
2177
 
704
- .c2 {
2178
+ .c1 {
705
2179
  display: -webkit-inline-box;
706
2180
  display: -webkit-inline-flex;
707
2181
  display: -ms-inline-flexbox;
@@ -712,11 +2186,11 @@ exports[`Storybook Tests TextField HasCount 1`] = `
712
2186
  align-items: center;
713
2187
  }
714
2188
 
715
- .c2 > .c5 {
2189
+ .c1 > .c4 {
716
2190
  margin-left: auto;
717
2191
  }
718
2192
 
719
- .c1 {
2193
+ .c0 {
720
2194
  display: -webkit-box;
721
2195
  display: -webkit-flex;
722
2196
  display: -ms-flexbox;
@@ -726,13 +2200,13 @@ exports[`Storybook Tests TextField HasCount 1`] = `
726
2200
  flex-direction: column;
727
2201
  }
728
2202
 
729
- .c3 {
2203
+ .c2 {
730
2204
  margin-bottom: 8px;
731
2205
  }
732
2206
 
733
- .c8 {
2207
+ .c6 {
734
2208
  display: grid;
735
- grid-template-columns: 1fr auto;
2209
+ grid-template-columns: 1fr;
736
2210
  height: 40px;
737
2211
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
738
2212
  transition: 0.2s background-color,0.2s box-shadow;
@@ -745,29 +2219,17 @@ exports[`Storybook Tests TextField HasCount 1`] = `
745
2219
  font-size: 14px;
746
2220
  }
747
2221
 
748
- .c8:not(:disabled):not([aria-disabled]):hover,
749
- .c8 [aria-disabled='false']:hover {
2222
+ .c6:not(:disabled):not([aria-disabled]):hover,
2223
+ .c6 [aria-disabled='false']:hover {
750
2224
  background-color: var(--charcoal-surface3-hover);
751
2225
  }
752
2226
 
753
- .c8:focus-within {
2227
+ .c6:focus-within {
754
2228
  outline: none;
755
2229
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
756
2230
  }
757
2231
 
758
- .c10 {
759
- display: -webkit-box;
760
- display: -webkit-flex;
761
- display: -ms-flexbox;
762
- display: flex;
763
- -webkit-align-items: center;
764
- -webkit-box-align: center;
765
- -ms-flex-align: center;
766
- align-items: center;
767
- gap: 8px;
768
- }
769
-
770
- .c9 {
2232
+ .c7 {
771
2233
  border: none;
772
2234
  box-sizing: border-box;
773
2235
  outline: none;
@@ -792,33 +2254,22 @@ exports[`Storybook Tests TextField HasCount 1`] = `
792
2254
  color: var(--charcoal-text2);
793
2255
  }
794
2256
 
795
- .c9::-webkit-input-placeholder {
796
- color: var(--charcoal-text3);
797
- }
798
-
799
- .c9::-moz-placeholder {
2257
+ .c7::-webkit-input-placeholder {
800
2258
  color: var(--charcoal-text3);
801
2259
  }
802
2260
 
803
- .c9:-ms-input-placeholder {
2261
+ .c7::-moz-placeholder {
804
2262
  color: var(--charcoal-text3);
805
2263
  }
806
2264
 
807
- .c9::placeholder {
2265
+ .c7:-ms-input-placeholder {
808
2266
  color: var(--charcoal-text3);
809
2267
  }
810
2268
 
811
- .c11 {
812
- line-height: 22px;
813
- font-size: 14px;
2269
+ .c7::placeholder {
814
2270
  color: var(--charcoal-text3);
815
2271
  }
816
2272
 
817
- .c0 {
818
- display: grid;
819
- gap: 24px;
820
- }
821
-
822
2273
  <div
823
2274
  data-dark={false}
824
2275
  >
@@ -826,115 +2277,56 @@ exports[`Storybook Tests TextField HasCount 1`] = `
826
2277
  className="c0"
827
2278
  >
828
2279
  <div
829
- className="c1"
830
- >
831
- <div
832
- className="c2 c3"
833
- style={
834
- Object {
835
- "border": 0,
836
- "clip": "rect(0 0 0 0)",
837
- "clipPath": "inset(50%)",
838
- "height": "1px",
839
- "margin": "-1px",
840
- "overflow": "hidden",
841
- "padding": 0,
842
- "position": "absolute",
843
- "whiteSpace": "nowrap",
844
- "width": "1px",
845
- }
2280
+ className="c1 c2"
2281
+ style={
2282
+ Object {
2283
+ "border": 0,
2284
+ "clip": "rect(0 0 0 0)",
2285
+ "clipPath": "inset(50%)",
2286
+ "height": "1px",
2287
+ "margin": "-1px",
2288
+ "overflow": "hidden",
2289
+ "padding": 0,
2290
+ "position": "absolute",
2291
+ "whiteSpace": "nowrap",
2292
+ "width": "1px",
846
2293
  }
2294
+ }
2295
+ >
2296
+ <label
2297
+ className="c3"
2298
+ htmlFor="test-id"
2299
+ id="test-id"
847
2300
  >
848
- <label
849
- className="c4"
850
- htmlFor="test-id"
851
- id="test-id"
852
- >
853
- Label
854
- </label>
855
- <div
856
- className="c5 c6"
857
- >
858
- <span>
859
- <button
860
- className="c7"
861
- >
862
- Text Link
863
- </button>
864
- </span>
865
- </div>
866
- </div>
2301
+ Label
2302
+ </label>
867
2303
  <div
868
- className="c8"
2304
+ className="c4 c5"
869
2305
  >
870
- <input
871
- aria-labelledby="test-id"
872
- className="c9"
873
- disabled={false}
874
- id="test-id"
875
- maxLength={100}
876
- onChange={[Function]}
877
- placeholder="TextField"
878
- readOnly={false}
879
- required={false}
880
- type="text"
881
- value=""
882
- />
883
- <span
884
- className="c10"
885
- >
886
- <span
887
- className="c11"
888
- >
889
- 0/100
890
- </span>
891
- </span>
2306
+ <span />
892
2307
  </div>
893
2308
  </div>
2309
+ <div
2310
+ className="c6"
2311
+ >
2312
+ <input
2313
+ aria-labelledby="test-id"
2314
+ className="c7"
2315
+ disabled={false}
2316
+ id="test-id"
2317
+ onChange={[Function]}
2318
+ readOnly={true}
2319
+ required={false}
2320
+ type="text"
2321
+ value="読み取り専用"
2322
+ />
2323
+ </div>
894
2324
  </div>
895
2325
  </div>
896
2326
  `;
897
2327
 
898
- exports[`Storybook Tests TextField HasLabel 1`] = `
899
- .c9 {
900
- cursor: pointer;
901
- -webkit-appearance: none;
902
- -moz-appearance: none;
903
- appearance: none;
904
- background: transparent;
905
- padding: 0;
906
- border-style: none;
907
- outline: none;
908
- color: inherit;
909
- text-rendering: inherit;
910
- -webkit-letter-spacing: inherit;
911
- -moz-letter-spacing: inherit;
912
- -ms-letter-spacing: inherit;
913
- letter-spacing: inherit;
914
- word-spacing: inherit;
915
- -webkit-text-decoration: none;
916
- text-decoration: none;
917
- font: inherit;
918
- margin: 0;
919
- overflow: visible;
920
- text-transform: none;
921
- }
922
-
923
- .c9:disabled,
924
- .c9[aria-disabled]:not([aria-disabled=false]) {
925
- cursor: default;
926
- }
927
-
928
- .c9:focus {
929
- outline: none;
930
- }
931
-
932
- .c9::-moz-focus-inner {
933
- border-style: none;
934
- padding: 0;
935
- }
936
-
937
- .c4 {
2328
+ exports[`Storybook Tests TextField RequiredText 1`] = `
2329
+ .c3 {
938
2330
  font-size: 14px;
939
2331
  line-height: 22px;
940
2332
  font-weight: bold;
@@ -942,7 +2334,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
942
2334
  color: var(--charcoal-text1);
943
2335
  }
944
2336
 
945
- .c4::before {
2337
+ .c3::before {
946
2338
  display: block;
947
2339
  width: 0;
948
2340
  height: 0;
@@ -950,7 +2342,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
950
2342
  margin-top: -4px;
951
2343
  }
952
2344
 
953
- .c4::after {
2345
+ .c3::after {
954
2346
  display: block;
955
2347
  width: 0;
956
2348
  height: 0;
@@ -958,14 +2350,14 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
958
2350
  margin-bottom: -4px;
959
2351
  }
960
2352
 
961
- .c6 {
2353
+ .c5 {
962
2354
  font-size: 14px;
963
2355
  line-height: 22px;
964
2356
  display: flow-root;
965
2357
  color: var(--charcoal-text2);
966
2358
  }
967
2359
 
968
- .c6::before {
2360
+ .c5::before {
969
2361
  display: block;
970
2362
  width: 0;
971
2363
  height: 0;
@@ -973,7 +2365,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
973
2365
  margin-top: -4px;
974
2366
  }
975
2367
 
976
- .c6::after {
2368
+ .c5::after {
977
2369
  display: block;
978
2370
  width: 0;
979
2371
  height: 0;
@@ -981,7 +2373,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
981
2373
  margin-bottom: -4px;
982
2374
  }
983
2375
 
984
- .c8 {
2376
+ .c7 {
985
2377
  font-size: 14px;
986
2378
  line-height: 22px;
987
2379
  display: flow-root;
@@ -990,7 +2382,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
990
2382
  transition: 0.2s color,0.2s box-shadow;
991
2383
  }
992
2384
 
993
- .c8::before {
2385
+ .c7::before {
994
2386
  display: block;
995
2387
  width: 0;
996
2388
  height: 0;
@@ -998,7 +2390,7 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
998
2390
  margin-top: -4px;
999
2391
  }
1000
2392
 
1001
- .c8::after {
2393
+ .c7::after {
1002
2394
  display: block;
1003
2395
  width: 0;
1004
2396
  height: 0;
@@ -1006,27 +2398,27 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1006
2398
  margin-bottom: -4px;
1007
2399
  }
1008
2400
 
1009
- .c8:not(:disabled):not([aria-disabled]):hover,
1010
- .c8[aria-disabled='false']:hover {
2401
+ .c7:not(:disabled):not([aria-disabled]):hover,
2402
+ .c7[aria-disabled='false']:hover {
1011
2403
  color: var(--charcoal-text3-hover);
1012
2404
  }
1013
2405
 
1014
- .c8:not(:disabled):not([aria-disabled]):active,
1015
- .c8[aria-disabled='false']:active {
2406
+ .c7:not(:disabled):not([aria-disabled]):active,
2407
+ .c7[aria-disabled='false']:active {
1016
2408
  color: var(--charcoal-text3-press);
1017
2409
  }
1018
2410
 
1019
- .c8:not(:disabled):not([aria-disabled]):active,
1020
- .c8[aria-disabled='false']:active,
1021
- .c8:not(:disabled):not([aria-disabled]):focus,
1022
- .c8[aria-disabled='false']:focus,
1023
- .c8:not(:disabled):not([aria-disabled]):focus-visible,
1024
- .c8[aria-disabled='false']:focus-visible {
2411
+ .c7:not(:disabled):not([aria-disabled]):active,
2412
+ .c7[aria-disabled='false']:active,
2413
+ .c7:not(:disabled):not([aria-disabled]):focus,
2414
+ .c7[aria-disabled='false']:focus,
2415
+ .c7:not(:disabled):not([aria-disabled]):focus-visible,
2416
+ .c7[aria-disabled='false']:focus-visible {
1025
2417
  outline: none;
1026
2418
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1027
2419
  }
1028
2420
 
1029
- .c2 {
2421
+ .c1 {
1030
2422
  display: -webkit-inline-box;
1031
2423
  display: -webkit-inline-flex;
1032
2424
  display: -ms-inline-flexbox;
@@ -1037,15 +2429,15 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1037
2429
  align-items: center;
1038
2430
  }
1039
2431
 
1040
- .c2 > .c5 {
2432
+ .c1 > .c4 {
1041
2433
  margin-left: 4px;
1042
2434
  }
1043
2435
 
1044
- .c2 > .c7 {
2436
+ .c1 > .c6 {
1045
2437
  margin-left: auto;
1046
2438
  }
1047
2439
 
1048
- .c1 {
2440
+ .c0 {
1049
2441
  display: -webkit-box;
1050
2442
  display: -webkit-flex;
1051
2443
  display: -ms-flexbox;
@@ -1055,11 +2447,11 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1055
2447
  flex-direction: column;
1056
2448
  }
1057
2449
 
1058
- .c3 {
2450
+ .c2 {
1059
2451
  margin-bottom: 8px;
1060
2452
  }
1061
2453
 
1062
- .c10 {
2454
+ .c8 {
1063
2455
  display: grid;
1064
2456
  grid-template-columns: 1fr;
1065
2457
  height: 40px;
@@ -1074,17 +2466,17 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1074
2466
  font-size: 14px;
1075
2467
  }
1076
2468
 
1077
- .c10:not(:disabled):not([aria-disabled]):hover,
1078
- .c10 [aria-disabled='false']:hover {
2469
+ .c8:not(:disabled):not([aria-disabled]):hover,
2470
+ .c8 [aria-disabled='false']:hover {
1079
2471
  background-color: var(--charcoal-surface3-hover);
1080
2472
  }
1081
2473
 
1082
- .c10:focus-within {
2474
+ .c8:focus-within {
1083
2475
  outline: none;
1084
2476
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1085
2477
  }
1086
2478
 
1087
- .c11 {
2479
+ .c9 {
1088
2480
  border: none;
1089
2481
  box-sizing: border-box;
1090
2482
  outline: none;
@@ -1109,33 +2501,20 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1109
2501
  color: var(--charcoal-text2);
1110
2502
  }
1111
2503
 
1112
- .c11::-webkit-input-placeholder {
1113
- color: var(--charcoal-text3);
1114
- }
1115
-
1116
- .c11::-moz-placeholder {
2504
+ .c9::-webkit-input-placeholder {
1117
2505
  color: var(--charcoal-text3);
1118
2506
  }
1119
2507
 
1120
- .c11:-ms-input-placeholder {
2508
+ .c9::-moz-placeholder {
1121
2509
  color: var(--charcoal-text3);
1122
2510
  }
1123
2511
 
1124
- .c11::placeholder {
2512
+ .c9:-ms-input-placeholder {
1125
2513
  color: var(--charcoal-text3);
1126
2514
  }
1127
2515
 
1128
- .c12 {
1129
- font-size: 14px;
1130
- line-height: 22px;
1131
- margin-top: 4px;
1132
- margin-bottom: -4px;
1133
- color: var(--charcoal-text2);
1134
- }
1135
-
1136
- .c0 {
1137
- display: grid;
1138
- gap: 24px;
2516
+ .c9::placeholder {
2517
+ color: var(--charcoal-text3);
1139
2518
  }
1140
2519
 
1141
2520
  <div
@@ -1145,102 +2524,48 @@ exports[`Storybook Tests TextField HasLabel 1`] = `
1145
2524
  className="c0"
1146
2525
  >
1147
2526
  <div
1148
- className="c1"
2527
+ className="c1 c2"
1149
2528
  >
1150
- <div
1151
- className="c2 c3"
2529
+ <label
2530
+ className="c3"
2531
+ htmlFor="test-id"
2532
+ id="test-id"
1152
2533
  >
1153
- <label
1154
- className="c4"
1155
- htmlFor="test-id"
1156
- id="test-id"
1157
- >
1158
- Label
1159
- </label>
1160
- <span
1161
- className="c5 c6"
1162
- >
1163
- *必須
1164
- </span>
1165
- <div
1166
- className="c7 c8"
1167
- >
1168
- <span>
1169
- <button
1170
- className="c9"
1171
- >
1172
- Text Link
1173
- </button>
1174
- </span>
1175
- </div>
1176
- </div>
2534
+ Label
2535
+ </label>
2536
+ <span
2537
+ className="c4 c5"
2538
+ >
2539
+ *必須
2540
+ </span>
1177
2541
  <div
1178
- className="c10"
2542
+ className="c6 c7"
1179
2543
  >
1180
- <input
1181
- aria-labelledby="test-id"
1182
- aria-required={true}
1183
- className="c11"
1184
- disabled={false}
1185
- id="test-id"
1186
- onChange={[Function]}
1187
- placeholder="TextField"
1188
- readOnly={false}
1189
- required={false}
1190
- type="text"
1191
- value=""
1192
- />
2544
+ <span />
1193
2545
  </div>
1194
- <p
1195
- className="c12"
1196
- >
1197
- Assistive text
1198
- </p>
2546
+ </div>
2547
+ <div
2548
+ className="c8"
2549
+ >
2550
+ <input
2551
+ aria-labelledby="test-id"
2552
+ aria-required={true}
2553
+ className="c9"
2554
+ disabled={false}
2555
+ id="test-id"
2556
+ onChange={[Function]}
2557
+ readOnly={false}
2558
+ required={false}
2559
+ type="text"
2560
+ value=""
2561
+ />
1199
2562
  </div>
1200
2563
  </div>
1201
2564
  </div>
1202
2565
  `;
1203
2566
 
1204
- exports[`Storybook Tests TextField Number 1`] = `
1205
- .c7 {
1206
- cursor: pointer;
1207
- -webkit-appearance: none;
1208
- -moz-appearance: none;
1209
- appearance: none;
1210
- background: transparent;
1211
- padding: 0;
1212
- border-style: none;
1213
- outline: none;
1214
- color: inherit;
1215
- text-rendering: inherit;
1216
- -webkit-letter-spacing: inherit;
1217
- -moz-letter-spacing: inherit;
1218
- -ms-letter-spacing: inherit;
1219
- letter-spacing: inherit;
1220
- word-spacing: inherit;
1221
- -webkit-text-decoration: none;
1222
- text-decoration: none;
1223
- font: inherit;
1224
- margin: 0;
1225
- overflow: visible;
1226
- text-transform: none;
1227
- }
1228
-
1229
- .c7:disabled,
1230
- .c7[aria-disabled]:not([aria-disabled=false]) {
1231
- cursor: default;
1232
- }
1233
-
1234
- .c7:focus {
1235
- outline: none;
1236
- }
1237
-
1238
- .c7::-moz-focus-inner {
1239
- border-style: none;
1240
- padding: 0;
1241
- }
1242
-
1243
- .c4 {
2567
+ exports[`Storybook Tests TextField ShowCount 1`] = `
2568
+ .c3 {
1244
2569
  font-size: 14px;
1245
2570
  line-height: 22px;
1246
2571
  font-weight: bold;
@@ -1248,7 +2573,7 @@ exports[`Storybook Tests TextField Number 1`] = `
1248
2573
  color: var(--charcoal-text1);
1249
2574
  }
1250
2575
 
1251
- .c4::before {
2576
+ .c3::before {
1252
2577
  display: block;
1253
2578
  width: 0;
1254
2579
  height: 0;
@@ -1256,7 +2581,7 @@ exports[`Storybook Tests TextField Number 1`] = `
1256
2581
  margin-top: -4px;
1257
2582
  }
1258
2583
 
1259
- .c4::after {
2584
+ .c3::after {
1260
2585
  display: block;
1261
2586
  width: 0;
1262
2587
  height: 0;
@@ -1264,7 +2589,7 @@ exports[`Storybook Tests TextField Number 1`] = `
1264
2589
  margin-bottom: -4px;
1265
2590
  }
1266
2591
 
1267
- .c6 {
2592
+ .c5 {
1268
2593
  font-size: 14px;
1269
2594
  line-height: 22px;
1270
2595
  display: flow-root;
@@ -1273,7 +2598,7 @@ exports[`Storybook Tests TextField Number 1`] = `
1273
2598
  transition: 0.2s color,0.2s box-shadow;
1274
2599
  }
1275
2600
 
1276
- .c6::before {
2601
+ .c5::before {
1277
2602
  display: block;
1278
2603
  width: 0;
1279
2604
  height: 0;
@@ -1281,7 +2606,7 @@ exports[`Storybook Tests TextField Number 1`] = `
1281
2606
  margin-top: -4px;
1282
2607
  }
1283
2608
 
1284
- .c6::after {
2609
+ .c5::after {
1285
2610
  display: block;
1286
2611
  width: 0;
1287
2612
  height: 0;
@@ -1289,27 +2614,27 @@ exports[`Storybook Tests TextField Number 1`] = `
1289
2614
  margin-bottom: -4px;
1290
2615
  }
1291
2616
 
1292
- .c6:not(:disabled):not([aria-disabled]):hover,
1293
- .c6[aria-disabled='false']:hover {
2617
+ .c5:not(:disabled):not([aria-disabled]):hover,
2618
+ .c5[aria-disabled='false']:hover {
1294
2619
  color: var(--charcoal-text3-hover);
1295
2620
  }
1296
2621
 
1297
- .c6:not(:disabled):not([aria-disabled]):active,
1298
- .c6[aria-disabled='false']:active {
2622
+ .c5:not(:disabled):not([aria-disabled]):active,
2623
+ .c5[aria-disabled='false']:active {
1299
2624
  color: var(--charcoal-text3-press);
1300
2625
  }
1301
2626
 
1302
- .c6:not(:disabled):not([aria-disabled]):active,
1303
- .c6[aria-disabled='false']:active,
1304
- .c6:not(:disabled):not([aria-disabled]):focus,
1305
- .c6[aria-disabled='false']:focus,
1306
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
1307
- .c6[aria-disabled='false']:focus-visible {
2627
+ .c5:not(:disabled):not([aria-disabled]):active,
2628
+ .c5[aria-disabled='false']:active,
2629
+ .c5:not(:disabled):not([aria-disabled]):focus,
2630
+ .c5[aria-disabled='false']:focus,
2631
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
2632
+ .c5[aria-disabled='false']:focus-visible {
1308
2633
  outline: none;
1309
2634
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1310
2635
  }
1311
2636
 
1312
- .c2 {
2637
+ .c1 {
1313
2638
  display: -webkit-inline-box;
1314
2639
  display: -webkit-inline-flex;
1315
2640
  display: -ms-inline-flexbox;
@@ -1320,11 +2645,11 @@ exports[`Storybook Tests TextField Number 1`] = `
1320
2645
  align-items: center;
1321
2646
  }
1322
2647
 
1323
- .c2 > .c5 {
2648
+ .c1 > .c4 {
1324
2649
  margin-left: auto;
1325
2650
  }
1326
2651
 
1327
- .c1 {
2652
+ .c0 {
1328
2653
  display: -webkit-box;
1329
2654
  display: -webkit-flex;
1330
2655
  display: -ms-flexbox;
@@ -1334,13 +2659,13 @@ exports[`Storybook Tests TextField Number 1`] = `
1334
2659
  flex-direction: column;
1335
2660
  }
1336
2661
 
1337
- .c3 {
2662
+ .c2 {
1338
2663
  margin-bottom: 8px;
1339
2664
  }
1340
2665
 
1341
- .c8 {
2666
+ .c6 {
1342
2667
  display: grid;
1343
- grid-template-columns: 1fr;
2668
+ grid-template-columns: 1fr auto;
1344
2669
  height: 40px;
1345
2670
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
1346
2671
  transition: 0.2s background-color,0.2s box-shadow;
@@ -1353,17 +2678,29 @@ exports[`Storybook Tests TextField Number 1`] = `
1353
2678
  font-size: 14px;
1354
2679
  }
1355
2680
 
1356
- .c8:not(:disabled):not([aria-disabled]):hover,
1357
- .c8 [aria-disabled='false']:hover {
2681
+ .c6:not(:disabled):not([aria-disabled]):hover,
2682
+ .c6 [aria-disabled='false']:hover {
1358
2683
  background-color: var(--charcoal-surface3-hover);
1359
2684
  }
1360
2685
 
1361
- .c8:focus-within {
2686
+ .c6:focus-within {
1362
2687
  outline: none;
1363
2688
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1364
2689
  }
1365
2690
 
1366
- .c9 {
2691
+ .c8 {
2692
+ display: -webkit-box;
2693
+ display: -webkit-flex;
2694
+ display: -ms-flexbox;
2695
+ display: flex;
2696
+ -webkit-align-items: center;
2697
+ -webkit-box-align: center;
2698
+ -ms-flex-align: center;
2699
+ align-items: center;
2700
+ gap: 8px;
2701
+ }
2702
+
2703
+ .c7 {
1367
2704
  border: none;
1368
2705
  box-sizing: border-box;
1369
2706
  outline: none;
@@ -1388,25 +2725,26 @@ exports[`Storybook Tests TextField Number 1`] = `
1388
2725
  color: var(--charcoal-text2);
1389
2726
  }
1390
2727
 
1391
- .c9::-webkit-input-placeholder {
2728
+ .c7::-webkit-input-placeholder {
1392
2729
  color: var(--charcoal-text3);
1393
2730
  }
1394
2731
 
1395
- .c9::-moz-placeholder {
2732
+ .c7::-moz-placeholder {
1396
2733
  color: var(--charcoal-text3);
1397
2734
  }
1398
2735
 
1399
- .c9:-ms-input-placeholder {
2736
+ .c7:-ms-input-placeholder {
1400
2737
  color: var(--charcoal-text3);
1401
2738
  }
1402
2739
 
1403
- .c9::placeholder {
2740
+ .c7::placeholder {
1404
2741
  color: var(--charcoal-text3);
1405
2742
  }
1406
2743
 
1407
- .c0 {
1408
- display: grid;
1409
- gap: 24px;
2744
+ .c9 {
2745
+ line-height: 22px;
2746
+ font-size: 14px;
2747
+ color: var(--charcoal-text3);
1410
2748
  }
1411
2749
 
1412
2750
  <div
@@ -1416,67 +2754,65 @@ exports[`Storybook Tests TextField Number 1`] = `
1416
2754
  className="c0"
1417
2755
  >
1418
2756
  <div
1419
- className="c1"
2757
+ className="c1 c2"
2758
+ style={
2759
+ Object {
2760
+ "border": 0,
2761
+ "clip": "rect(0 0 0 0)",
2762
+ "clipPath": "inset(50%)",
2763
+ "height": "1px",
2764
+ "margin": "-1px",
2765
+ "overflow": "hidden",
2766
+ "padding": 0,
2767
+ "position": "absolute",
2768
+ "whiteSpace": "nowrap",
2769
+ "width": "1px",
2770
+ }
2771
+ }
1420
2772
  >
2773
+ <label
2774
+ className="c3"
2775
+ htmlFor="test-id"
2776
+ id="test-id"
2777
+ >
2778
+ Label
2779
+ </label>
1421
2780
  <div
1422
- className="c2 c3"
1423
- style={
1424
- Object {
1425
- "border": 0,
1426
- "clip": "rect(0 0 0 0)",
1427
- "clipPath": "inset(50%)",
1428
- "height": "1px",
1429
- "margin": "-1px",
1430
- "overflow": "hidden",
1431
- "padding": 0,
1432
- "position": "absolute",
1433
- "whiteSpace": "nowrap",
1434
- "width": "1px",
1435
- }
1436
- }
2781
+ className="c4 c5"
1437
2782
  >
1438
- <label
1439
- className="c4"
1440
- htmlFor="test-id"
1441
- id="test-id"
1442
- >
1443
- Label
1444
- </label>
1445
- <div
1446
- className="c5 c6"
1447
- >
1448
- <span>
1449
- <button
1450
- className="c7"
1451
- >
1452
- Text Link
1453
- </button>
1454
- </span>
1455
- </div>
2783
+ <span />
1456
2784
  </div>
1457
- <div
2785
+ </div>
2786
+ <div
2787
+ className="c6"
2788
+ >
2789
+ <input
2790
+ aria-labelledby="test-id"
2791
+ className="c7"
2792
+ disabled={false}
2793
+ id="test-id"
2794
+ maxLength={100}
2795
+ onChange={[Function]}
2796
+ readOnly={false}
2797
+ required={false}
2798
+ type="text"
2799
+ value=""
2800
+ />
2801
+ <span
1458
2802
  className="c8"
1459
2803
  >
1460
- <input
1461
- aria-labelledby="test-id"
2804
+ <span
1462
2805
  className="c9"
1463
- disabled={false}
1464
- id="test-id"
1465
- onChange={[Function]}
1466
- onWheel={[Function]}
1467
- placeholder="TextField"
1468
- readOnly={false}
1469
- required={false}
1470
- type="number"
1471
- value="0"
1472
- />
1473
- </div>
2806
+ >
2807
+ 0/100
2808
+ </span>
2809
+ </span>
1474
2810
  </div>
1475
2811
  </div>
1476
2812
  </div>
1477
2813
  `;
1478
2814
 
1479
- exports[`Storybook Tests TextField PrefixIcon 1`] = `
2815
+ exports[`Storybook Tests TextField SubLabel 1`] = `
1480
2816
  .c6 {
1481
2817
  cursor: pointer;
1482
2818
  -webkit-appearance: none;
@@ -1599,65 +2935,6 @@ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1599
2935
  margin-left: auto;
1600
2936
  }
1601
2937
 
1602
- .c12 {
1603
- -webkit-user-select: none;
1604
- -moz-user-select: none;
1605
- -ms-user-select: none;
1606
- user-select: none;
1607
- width: 20px;
1608
- height: 20px;
1609
- display: -webkit-box;
1610
- display: -webkit-flex;
1611
- display: -ms-flexbox;
1612
- display: flex;
1613
- -webkit-align-items: center;
1614
- -webkit-box-align: center;
1615
- -ms-flex-align: center;
1616
- align-items: center;
1617
- -webkit-box-pack: center;
1618
- -webkit-justify-content: center;
1619
- -ms-flex-pack: center;
1620
- justify-content: center;
1621
- color: var(--charcoal-text5);
1622
- background-color: var(--charcoal-surface4);
1623
- border-radius: 999999px;
1624
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1625
- transition: 0.2s background-color,0.2s box-shadow;
1626
- }
1627
-
1628
- .c12:not(:disabled):not([aria-disabled]):hover,
1629
- .c12[aria-disabled='false']:hover {
1630
- color: var(--charcoal-text5-hover);
1631
- background-color: var(--charcoal-surface4-hover);
1632
- }
1633
-
1634
- .c12:not(:disabled):not([aria-disabled]):active,
1635
- .c12[aria-disabled='false']:active {
1636
- color: var(--charcoal-text5-press);
1637
- background-color: var(--charcoal-surface4-press);
1638
- }
1639
-
1640
- .c12:not(:disabled):not([aria-disabled]):focus,
1641
- .c12[aria-disabled='false']:focus {
1642
- outline: none;
1643
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1644
- }
1645
-
1646
- .c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1647
- .c12[aria-disabled='false']:focus:not(:focus-visible) {
1648
- box-shadow: none;
1649
- }
1650
-
1651
- .c12:not(:disabled):not([aria-disabled]):focus-visible,
1652
- .c12[aria-disabled='false']:focus-visible {
1653
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1654
- }
1655
-
1656
- .c12:disabled,
1657
- .c12[aria-disabled]:not([aria-disabled='false']) {
1658
- opacity: 0.32;
1659
- }
1660
-
1661
2938
  .c0 {
1662
2939
  display: -webkit-box;
1663
2940
  display: -webkit-flex;
@@ -1674,7 +2951,7 @@ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1674
2951
 
1675
2952
  .c7 {
1676
2953
  display: grid;
1677
- grid-template-columns: auto 1fr auto;
2954
+ grid-template-columns: 1fr;
1678
2955
  height: 40px;
1679
2956
  -webkit-transition: 0.2s background-color,0.2s box-shadow;
1680
2957
  transition: 0.2s background-color,0.2s box-shadow;
@@ -1698,29 +2975,6 @@ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1698
2975
  }
1699
2976
 
1700
2977
  .c8 {
1701
- display: -webkit-box;
1702
- display: -webkit-flex;
1703
- display: -ms-flexbox;
1704
- display: flex;
1705
- -webkit-align-items: center;
1706
- -webkit-box-align: center;
1707
- -ms-flex-align: center;
1708
- align-items: center;
1709
- }
1710
-
1711
- .c11 {
1712
- display: -webkit-box;
1713
- display: -webkit-flex;
1714
- display: -ms-flexbox;
1715
- display: flex;
1716
- -webkit-align-items: center;
1717
- -webkit-box-align: center;
1718
- -ms-flex-align: center;
1719
- align-items: center;
1720
- gap: 8px;
1721
- }
1722
-
1723
- .c10 {
1724
2978
  border: none;
1725
2979
  box-sizing: border-box;
1726
2980
  outline: none;
@@ -1745,34 +2999,22 @@ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1745
2999
  color: var(--charcoal-text2);
1746
3000
  }
1747
3001
 
1748
- .c10::-webkit-input-placeholder {
3002
+ .c8::-webkit-input-placeholder {
1749
3003
  color: var(--charcoal-text3);
1750
3004
  }
1751
3005
 
1752
- .c10::-moz-placeholder {
3006
+ .c8::-moz-placeholder {
1753
3007
  color: var(--charcoal-text3);
1754
3008
  }
1755
3009
 
1756
- .c10:-ms-input-placeholder {
3010
+ .c8:-ms-input-placeholder {
1757
3011
  color: var(--charcoal-text3);
1758
3012
  }
1759
3013
 
1760
- .c10::placeholder {
3014
+ .c8::placeholder {
1761
3015
  color: var(--charcoal-text3);
1762
3016
  }
1763
3017
 
1764
- .c9 {
1765
- display: -webkit-box;
1766
- display: -webkit-flex;
1767
- display: -ms-flexbox;
1768
- display: flex;
1769
- -webkit-align-items: center;
1770
- -webkit-box-align: center;
1771
- -ms-flex-align: center;
1772
- align-items: center;
1773
- color: #858585;
1774
- }
1775
-
1776
3018
  <div
1777
3019
  data-dark={false}
1778
3020
  >
@@ -1818,41 +3060,17 @@ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1818
3060
  <div
1819
3061
  className="c7"
1820
3062
  >
1821
- <div
1822
- className="c8"
1823
- >
1824
- <div
1825
- className="c9"
1826
- >
1827
- <pixiv-icon
1828
- name="16/Search"
1829
- />
1830
- </div>
1831
- </div>
1832
3063
  <input
1833
3064
  aria-labelledby="test-id"
1834
- className="c10"
3065
+ className="c8"
1835
3066
  disabled={false}
1836
3067
  id="test-id"
1837
3068
  onChange={[Function]}
1838
- placeholder="作品を検索"
1839
3069
  readOnly={false}
1840
3070
  required={false}
1841
3071
  type="text"
1842
3072
  value=""
1843
3073
  />
1844
- <span
1845
- className="c11"
1846
- >
1847
- <button
1848
- className="c6 c12"
1849
- onClick={[Function]}
1850
- >
1851
- <pixiv-icon
1852
- name="16/Remove"
1853
- />
1854
- </button>
1855
- </span>
1856
3074
  </div>
1857
3075
  </div>
1858
3076
  </div>