@charcoal-ui/react 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/_lib/useForwardedRef.d.ts +3 -0
  2. package/dist/_lib/useForwardedRef.d.ts.map +1 -0
  3. package/dist/components/Clickable/index.d.ts.map +1 -1
  4. package/dist/components/DropdownSelector/DropdownPopover.d.ts.map +1 -1
  5. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  6. package/dist/components/DropdownSelector/Popover/usePreventScroll.d.ts +2 -0
  7. package/dist/components/DropdownSelector/Popover/usePreventScroll.d.ts.map +1 -0
  8. package/dist/components/DropdownSelector/index.story.d.ts +1 -0
  9. package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
  10. package/dist/components/Icon/index.story.d.ts +1 -1
  11. package/dist/components/Modal/Dialog/index.d.ts +26 -0
  12. package/dist/components/Modal/Dialog/index.d.ts.map +1 -0
  13. package/dist/components/Modal/ModalBackgroundContext.d.ts +6 -0
  14. package/dist/components/Modal/ModalBackgroundContext.d.ts.map +1 -0
  15. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  16. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts +4 -0
  17. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts.map +1 -0
  18. package/dist/components/Modal/index.d.ts +12 -2
  19. package/dist/components/Modal/index.d.ts.map +1 -1
  20. package/dist/components/Modal/index.story.d.ts +3 -2
  21. package/dist/components/Modal/index.story.d.ts.map +1 -1
  22. package/dist/components/TextArea/index.d.ts.map +1 -1
  23. package/dist/components/TextField/index.d.ts +4 -0
  24. package/dist/components/TextField/index.d.ts.map +1 -1
  25. package/dist/components/TextField/useFocusWithClick.d.ts +3 -0
  26. package/dist/components/TextField/useFocusWithClick.d.ts.map +1 -0
  27. package/dist/index.cjs.js +532 -426
  28. package/dist/index.cjs.js.map +1 -1
  29. package/dist/index.esm.js +482 -377
  30. package/dist/index.esm.js.map +1 -1
  31. package/package.json +6 -6
  32. package/src/_lib/useForwardedRef.tsx +16 -0
  33. package/src/components/Button/__snapshots__/index.story.storyshot +1971 -0
  34. package/src/components/Checkbox/__snapshots__/index.story.storyshot +390 -0
  35. package/src/components/Clickable/__snapshots__/index.story.storyshot +100 -0
  36. package/src/components/Clickable/index.tsx +17 -35
  37. package/src/components/DropdownSelector/DropdownPopover.tsx +0 -1
  38. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +245 -0
  39. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +555 -0
  40. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +174 -0
  41. package/src/components/DropdownSelector/Popover/index.tsx +17 -2
  42. package/src/components/DropdownSelector/Popover/usePreventScroll.tsx +18 -0
  43. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +1241 -0
  44. package/src/components/DropdownSelector/index.story.tsx +69 -13
  45. package/src/components/Icon/__snapshots__/index.story.storyshot +12 -0
  46. package/src/components/{Button/__snapshots__/index.test.tsx.snap → IconButton/__snapshots__/index.story.storyshot} +94 -91
  47. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +81 -0
  48. package/src/components/Modal/Dialog/index.tsx +82 -0
  49. package/src/components/Modal/ModalBackgroundContext.tsx +8 -0
  50. package/src/components/Modal/ModalPlumbing.tsx +16 -4
  51. package/src/components/Modal/__snapshots__/index.story.storyshot +533 -0
  52. package/src/components/Modal/__stories__/InternalScrollStory.tsx +75 -0
  53. package/src/components/Modal/index.story.tsx +57 -38
  54. package/src/components/Modal/index.tsx +63 -94
  55. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +511 -0
  56. package/src/components/Radio/__snapshots__/index.story.storyshot +319 -0
  57. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +483 -0
  58. package/src/components/Switch/__snapshots__/index.story.storyshot +454 -0
  59. package/src/components/TagItem/__snapshots__/index.story.storyshot +1181 -0
  60. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +1114 -0
  61. package/src/components/TextArea/index.tsx +38 -43
  62. package/src/components/TextField/TextField.story.tsx +2 -3
  63. package/src/components/TextField/__snapshots__/TextField.story.storyshot +1603 -0
  64. package/src/components/TextField/index.tsx +86 -84
  65. package/src/components/TextField/useFocusWithClick.tsx +22 -0
  66. package/dist/components/Button/index.test.d.ts +0 -4
  67. package/dist/components/Button/index.test.d.ts.map +0 -1
  68. package/src/components/Button/index.test.tsx +0 -24
@@ -0,0 +1,1603 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Storyshots TextField Default 1`] = `
4
+ .c7 {
5
+ cursor: pointer;
6
+ -webkit-appearance: none;
7
+ -moz-appearance: none;
8
+ appearance: none;
9
+ background: transparent;
10
+ padding: 0;
11
+ border-style: none;
12
+ outline: none;
13
+ color: inherit;
14
+ text-rendering: inherit;
15
+ -webkit-letter-spacing: inherit;
16
+ -moz-letter-spacing: inherit;
17
+ -ms-letter-spacing: inherit;
18
+ letter-spacing: inherit;
19
+ word-spacing: inherit;
20
+ font: inherit;
21
+ margin: 0;
22
+ overflow: visible;
23
+ text-transform: none;
24
+ }
25
+
26
+ .c7:disabled,
27
+ .c7[aria-disabled]:not([aria-disabled=false]) {
28
+ cursor: default;
29
+ }
30
+
31
+ .c7:focus {
32
+ outline: none;
33
+ }
34
+
35
+ .c7::-moz-focus-inner {
36
+ border-style: none;
37
+ padding: 0;
38
+ }
39
+
40
+ .c4 {
41
+ font-size: 14px;
42
+ line-height: 22px;
43
+ font-weight: bold;
44
+ display: flow-root;
45
+ color: var(--charcoal-text1);
46
+ }
47
+
48
+ .c4::before {
49
+ display: block;
50
+ width: 0;
51
+ height: 0;
52
+ content: '';
53
+ margin-top: -4px;
54
+ }
55
+
56
+ .c4::after {
57
+ display: block;
58
+ width: 0;
59
+ height: 0;
60
+ content: '';
61
+ margin-bottom: -4px;
62
+ }
63
+
64
+ .c6 {
65
+ font-size: 14px;
66
+ line-height: 22px;
67
+ display: flow-root;
68
+ color: var(--charcoal-text3);
69
+ -webkit-transition: 0.2s color,0.2s box-shadow;
70
+ transition: 0.2s color,0.2s box-shadow;
71
+ }
72
+
73
+ .c6::before {
74
+ display: block;
75
+ width: 0;
76
+ height: 0;
77
+ content: '';
78
+ margin-top: -4px;
79
+ }
80
+
81
+ .c6::after {
82
+ display: block;
83
+ width: 0;
84
+ height: 0;
85
+ content: '';
86
+ margin-bottom: -4px;
87
+ }
88
+
89
+ .c6:hover:not(:disabled):not([aria-disabled]),
90
+ .c6:hover[aria-disabled=false] {
91
+ color: var(--charcoal-text3-hover);
92
+ }
93
+
94
+ .c6:active:not(:disabled):not([aria-disabled]),
95
+ .c6:active[aria-disabled=false] {
96
+ color: var(--charcoal-text3-press);
97
+ }
98
+
99
+ .c6:not(:disabled):not([aria-disabled]):focus,
100
+ .c6[aria-disabled=false]:focus,
101
+ .c6:not(:disabled):not([aria-disabled]):active,
102
+ .c6[aria-disabled=false]:active {
103
+ outline: none;
104
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
105
+ }
106
+
107
+ .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
108
+ .c6[aria-disabled=false]:focus:not(:focus-visible),
109
+ .c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
110
+ .c6[aria-disabled=false]:active:not(:focus-visible) {
111
+ outline: none;
112
+ }
113
+
114
+ .c6:not(:disabled):not([aria-disabled]):focus-visible,
115
+ .c6[aria-disabled=false]:focus-visible {
116
+ outline: none;
117
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
118
+ }
119
+
120
+ .c2 {
121
+ display: -webkit-inline-box;
122
+ display: -webkit-inline-flex;
123
+ display: -ms-inline-flexbox;
124
+ display: inline-flex;
125
+ -webkit-align-items: center;
126
+ -webkit-box-align: center;
127
+ -ms-flex-align: center;
128
+ align-items: center;
129
+ }
130
+
131
+ .c2 > .c5 {
132
+ margin-left: auto;
133
+ }
134
+
135
+ .c1 {
136
+ display: -webkit-box;
137
+ display: -webkit-flex;
138
+ display: -ms-flexbox;
139
+ display: flex;
140
+ -webkit-flex-direction: column;
141
+ -ms-flex-direction: column;
142
+ flex-direction: column;
143
+ }
144
+
145
+ .c3 {
146
+ margin-bottom: 8px;
147
+ }
148
+
149
+ .c8 {
150
+ display: grid;
151
+ grid-template-columns: 1fr;
152
+ height: 40px;
153
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
154
+ transition: 0.2s background-color,0.2s box-shadow;
155
+ color: var(--charcoal-text2);
156
+ background-color: var(--charcoal-surface3);
157
+ border-radius: 4px;
158
+ gap: 4px;
159
+ padding: 0 8px;
160
+ line-height: 22px;
161
+ font-size: 14px;
162
+ }
163
+
164
+ .c8:not(:disabled):not([aria-disabled]):hover,
165
+ .c8 [aria-disabled='false']:hover {
166
+ background-color: var(--charcoal-surface3-hover);
167
+ }
168
+
169
+ .c8:not(:disabled):not([aria-disabled]):active,
170
+ .c8 [aria-disabled='false']:active {
171
+ outline: none;
172
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
173
+ }
174
+
175
+ .c8:focus-within {
176
+ outline: none;
177
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
178
+ }
179
+
180
+ .c9 {
181
+ border: none;
182
+ box-sizing: border-box;
183
+ outline: none;
184
+ font-family: inherit;
185
+ -webkit-transform-origin: top left;
186
+ -ms-transform-origin: top left;
187
+ transform-origin: top left;
188
+ -webkit-transform: scale(0.875);
189
+ -ms-transform: scale(0.875);
190
+ transform: scale(0.875);
191
+ width: calc(100% / 0.875);
192
+ height: calc(100% / 0.875);
193
+ font-size: calc(14px / 0.875);
194
+ line-height: calc(22px / 0.875);
195
+ padding-left: 0;
196
+ padding-right: 0;
197
+ border-radius: calc(4px / 0.875);
198
+ -webkit-appearance: none;
199
+ -moz-appearance: none;
200
+ appearance: none;
201
+ background: transparent;
202
+ color: var(--charcoal-text2);
203
+ }
204
+
205
+ .c9::-webkit-input-placeholder {
206
+ color: var(--charcoal-text3);
207
+ }
208
+
209
+ .c9::-moz-placeholder {
210
+ color: var(--charcoal-text3);
211
+ }
212
+
213
+ .c9:-ms-input-placeholder {
214
+ color: var(--charcoal-text3);
215
+ }
216
+
217
+ .c9::placeholder {
218
+ color: var(--charcoal-text3);
219
+ }
220
+
221
+ .c0 {
222
+ display: grid;
223
+ gap: 24px;
224
+ }
225
+
226
+ <div
227
+ data-dark={false}
228
+ >
229
+ <div
230
+ className="c0"
231
+ >
232
+ <div
233
+ className="c1"
234
+ >
235
+ <div
236
+ className="c2 c3"
237
+ style={
238
+ Object {
239
+ "border": 0,
240
+ "clip": "rect(0 0 0 0)",
241
+ "clipPath": "inset(50%)",
242
+ "height": 1,
243
+ "margin": "0 -1px -1px 0",
244
+ "overflow": "hidden",
245
+ "padding": 0,
246
+ "position": "absolute",
247
+ "whiteSpace": "nowrap",
248
+ "width": 1,
249
+ }
250
+ }
251
+ >
252
+ <label
253
+ className="c4"
254
+ htmlFor="test-id"
255
+ id="test-id"
256
+ onBlur={null}
257
+ onFocus={null}
258
+ >
259
+ Label
260
+ </label>
261
+ <div
262
+ className="c5 c6"
263
+ >
264
+ <span>
265
+ <button
266
+ className="c7"
267
+ onClick={[Function]}
268
+ >
269
+ Text Link
270
+ </button>
271
+ </span>
272
+ </div>
273
+ </div>
274
+ <div
275
+ className="c8"
276
+ >
277
+ <input
278
+ aria-labelledby="test-id"
279
+ className="c9"
280
+ disabled={false}
281
+ id="test-id"
282
+ onChange={[Function]}
283
+ placeholder="TextField"
284
+ readOnly={false}
285
+ type="text"
286
+ />
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ `;
292
+
293
+ exports[`Storyshots TextField Has Affix 1`] = `
294
+ .c3 {
295
+ font-size: 14px;
296
+ line-height: 22px;
297
+ font-weight: bold;
298
+ display: flow-root;
299
+ color: var(--charcoal-text1);
300
+ }
301
+
302
+ .c3::before {
303
+ display: block;
304
+ width: 0;
305
+ height: 0;
306
+ content: '';
307
+ margin-top: -4px;
308
+ }
309
+
310
+ .c3::after {
311
+ display: block;
312
+ width: 0;
313
+ height: 0;
314
+ content: '';
315
+ margin-bottom: -4px;
316
+ }
317
+
318
+ .c5 {
319
+ font-size: 14px;
320
+ line-height: 22px;
321
+ display: flow-root;
322
+ color: var(--charcoal-text3);
323
+ -webkit-transition: 0.2s color,0.2s box-shadow;
324
+ transition: 0.2s color,0.2s box-shadow;
325
+ }
326
+
327
+ .c5::before {
328
+ display: block;
329
+ width: 0;
330
+ height: 0;
331
+ content: '';
332
+ margin-top: -4px;
333
+ }
334
+
335
+ .c5::after {
336
+ display: block;
337
+ width: 0;
338
+ height: 0;
339
+ content: '';
340
+ margin-bottom: -4px;
341
+ }
342
+
343
+ .c5:hover:not(:disabled):not([aria-disabled]),
344
+ .c5:hover[aria-disabled=false] {
345
+ color: var(--charcoal-text3-hover);
346
+ }
347
+
348
+ .c5:active:not(:disabled):not([aria-disabled]),
349
+ .c5:active[aria-disabled=false] {
350
+ color: var(--charcoal-text3-press);
351
+ }
352
+
353
+ .c5:not(:disabled):not([aria-disabled]):focus,
354
+ .c5[aria-disabled=false]:focus,
355
+ .c5:not(:disabled):not([aria-disabled]):active,
356
+ .c5[aria-disabled=false]:active {
357
+ outline: none;
358
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
359
+ }
360
+
361
+ .c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
362
+ .c5[aria-disabled=false]:focus:not(:focus-visible),
363
+ .c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
364
+ .c5[aria-disabled=false]:active:not(:focus-visible) {
365
+ outline: none;
366
+ }
367
+
368
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
369
+ .c5[aria-disabled=false]:focus-visible {
370
+ outline: none;
371
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
372
+ }
373
+
374
+ .c1 {
375
+ display: -webkit-inline-box;
376
+ display: -webkit-inline-flex;
377
+ display: -ms-inline-flexbox;
378
+ display: inline-flex;
379
+ -webkit-align-items: center;
380
+ -webkit-box-align: center;
381
+ -ms-flex-align: center;
382
+ align-items: center;
383
+ }
384
+
385
+ .c1 > .c4 {
386
+ margin-left: auto;
387
+ }
388
+
389
+ .c0 {
390
+ display: -webkit-box;
391
+ display: -webkit-flex;
392
+ display: -ms-flexbox;
393
+ display: flex;
394
+ -webkit-flex-direction: column;
395
+ -ms-flex-direction: column;
396
+ flex-direction: column;
397
+ }
398
+
399
+ .c2 {
400
+ margin-bottom: 8px;
401
+ }
402
+
403
+ .c6 {
404
+ display: grid;
405
+ grid-template-columns: auto 1fr auto;
406
+ height: 40px;
407
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
408
+ transition: 0.2s background-color,0.2s box-shadow;
409
+ color: var(--charcoal-text2);
410
+ background-color: var(--charcoal-surface3);
411
+ border-radius: 4px;
412
+ gap: 4px;
413
+ padding: 0 8px;
414
+ line-height: 22px;
415
+ font-size: 14px;
416
+ }
417
+
418
+ .c6:not(:disabled):not([aria-disabled]):hover,
419
+ .c6 [aria-disabled='false']:hover {
420
+ background-color: var(--charcoal-surface3-hover);
421
+ }
422
+
423
+ .c6:not(:disabled):not([aria-disabled]):active,
424
+ .c6 [aria-disabled='false']:active {
425
+ outline: none;
426
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
427
+ }
428
+
429
+ .c6:focus-within {
430
+ outline: none;
431
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
432
+ }
433
+
434
+ .c7 {
435
+ display: -webkit-box;
436
+ display: -webkit-flex;
437
+ display: -ms-flexbox;
438
+ display: flex;
439
+ padding-left: 8px;
440
+ -webkit-align-items: center;
441
+ -webkit-box-align: center;
442
+ -ms-flex-align: center;
443
+ align-items: center;
444
+ }
445
+
446
+ .c9 {
447
+ display: -webkit-box;
448
+ display: -webkit-flex;
449
+ display: -ms-flexbox;
450
+ display: flex;
451
+ -webkit-align-items: center;
452
+ -webkit-box-align: center;
453
+ -ms-flex-align: center;
454
+ align-items: center;
455
+ gap: 8px;
456
+ }
457
+
458
+ .c8 {
459
+ border: none;
460
+ box-sizing: border-box;
461
+ outline: none;
462
+ font-family: inherit;
463
+ -webkit-transform-origin: top left;
464
+ -ms-transform-origin: top left;
465
+ transform-origin: top left;
466
+ -webkit-transform: scale(0.875);
467
+ -ms-transform: scale(0.875);
468
+ transform: scale(0.875);
469
+ width: calc(100% / 0.875);
470
+ height: calc(100% / 0.875);
471
+ font-size: calc(14px / 0.875);
472
+ line-height: calc(22px / 0.875);
473
+ padding-left: 0;
474
+ padding-right: 0;
475
+ border-radius: calc(4px / 0.875);
476
+ -webkit-appearance: none;
477
+ -moz-appearance: none;
478
+ appearance: none;
479
+ background: transparent;
480
+ color: var(--charcoal-text2);
481
+ }
482
+
483
+ .c8::-webkit-input-placeholder {
484
+ color: var(--charcoal-text3);
485
+ }
486
+
487
+ .c8::-moz-placeholder {
488
+ color: var(--charcoal-text3);
489
+ }
490
+
491
+ .c8:-ms-input-placeholder {
492
+ color: var(--charcoal-text3);
493
+ }
494
+
495
+ .c8::placeholder {
496
+ color: var(--charcoal-text3);
497
+ }
498
+
499
+ .c10 {
500
+ line-height: 22px;
501
+ font-size: 14px;
502
+ color: var(--charcoal-text3);
503
+ }
504
+
505
+ <div
506
+ data-dark={false}
507
+ >
508
+ <div
509
+ className="c0"
510
+ >
511
+ <div
512
+ className="c1 c2"
513
+ style={
514
+ Object {
515
+ "border": 0,
516
+ "clip": "rect(0 0 0 0)",
517
+ "clipPath": "inset(50%)",
518
+ "height": 1,
519
+ "margin": "0 -1px -1px 0",
520
+ "overflow": "hidden",
521
+ "padding": 0,
522
+ "position": "absolute",
523
+ "whiteSpace": "nowrap",
524
+ "width": 1,
525
+ }
526
+ }
527
+ >
528
+ <label
529
+ className="c3"
530
+ htmlFor="test-id"
531
+ id="test-id"
532
+ onBlur={null}
533
+ onFocus={null}
534
+ >
535
+ Label
536
+ </label>
537
+ <div
538
+ className="c4 c5"
539
+ >
540
+ <span />
541
+ </div>
542
+ </div>
543
+ <div
544
+ className="c6"
545
+ >
546
+ <div
547
+ className="c7"
548
+ >
549
+ /home/john/
550
+ </div>
551
+ <input
552
+ aria-labelledby="test-id"
553
+ className="c8"
554
+ disabled={false}
555
+ id="test-id"
556
+ maxLength={200}
557
+ onChange={[Function]}
558
+ placeholder="path/to/your/file"
559
+ readOnly={false}
560
+ type="text"
561
+ />
562
+ <span
563
+ className="c9"
564
+ >
565
+ .png
566
+ <span
567
+ className="c10"
568
+ >
569
+ 0/200
570
+ </span>
571
+ </span>
572
+ </div>
573
+ </div>
574
+ </div>
575
+ `;
576
+
577
+ exports[`Storyshots TextField Has Count 1`] = `
578
+ .c7 {
579
+ cursor: pointer;
580
+ -webkit-appearance: none;
581
+ -moz-appearance: none;
582
+ appearance: none;
583
+ background: transparent;
584
+ padding: 0;
585
+ border-style: none;
586
+ outline: none;
587
+ color: inherit;
588
+ text-rendering: inherit;
589
+ -webkit-letter-spacing: inherit;
590
+ -moz-letter-spacing: inherit;
591
+ -ms-letter-spacing: inherit;
592
+ letter-spacing: inherit;
593
+ word-spacing: inherit;
594
+ font: inherit;
595
+ margin: 0;
596
+ overflow: visible;
597
+ text-transform: none;
598
+ }
599
+
600
+ .c7:disabled,
601
+ .c7[aria-disabled]:not([aria-disabled=false]) {
602
+ cursor: default;
603
+ }
604
+
605
+ .c7:focus {
606
+ outline: none;
607
+ }
608
+
609
+ .c7::-moz-focus-inner {
610
+ border-style: none;
611
+ padding: 0;
612
+ }
613
+
614
+ .c4 {
615
+ font-size: 14px;
616
+ line-height: 22px;
617
+ font-weight: bold;
618
+ display: flow-root;
619
+ color: var(--charcoal-text1);
620
+ }
621
+
622
+ .c4::before {
623
+ display: block;
624
+ width: 0;
625
+ height: 0;
626
+ content: '';
627
+ margin-top: -4px;
628
+ }
629
+
630
+ .c4::after {
631
+ display: block;
632
+ width: 0;
633
+ height: 0;
634
+ content: '';
635
+ margin-bottom: -4px;
636
+ }
637
+
638
+ .c6 {
639
+ font-size: 14px;
640
+ line-height: 22px;
641
+ display: flow-root;
642
+ color: var(--charcoal-text3);
643
+ -webkit-transition: 0.2s color,0.2s box-shadow;
644
+ transition: 0.2s color,0.2s box-shadow;
645
+ }
646
+
647
+ .c6::before {
648
+ display: block;
649
+ width: 0;
650
+ height: 0;
651
+ content: '';
652
+ margin-top: -4px;
653
+ }
654
+
655
+ .c6::after {
656
+ display: block;
657
+ width: 0;
658
+ height: 0;
659
+ content: '';
660
+ margin-bottom: -4px;
661
+ }
662
+
663
+ .c6:hover:not(:disabled):not([aria-disabled]),
664
+ .c6:hover[aria-disabled=false] {
665
+ color: var(--charcoal-text3-hover);
666
+ }
667
+
668
+ .c6:active:not(:disabled):not([aria-disabled]),
669
+ .c6:active[aria-disabled=false] {
670
+ color: var(--charcoal-text3-press);
671
+ }
672
+
673
+ .c6:not(:disabled):not([aria-disabled]):focus,
674
+ .c6[aria-disabled=false]:focus,
675
+ .c6:not(:disabled):not([aria-disabled]):active,
676
+ .c6[aria-disabled=false]:active {
677
+ outline: none;
678
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
679
+ }
680
+
681
+ .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
682
+ .c6[aria-disabled=false]:focus:not(:focus-visible),
683
+ .c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
684
+ .c6[aria-disabled=false]:active:not(:focus-visible) {
685
+ outline: none;
686
+ }
687
+
688
+ .c6:not(:disabled):not([aria-disabled]):focus-visible,
689
+ .c6[aria-disabled=false]:focus-visible {
690
+ outline: none;
691
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
692
+ }
693
+
694
+ .c2 {
695
+ display: -webkit-inline-box;
696
+ display: -webkit-inline-flex;
697
+ display: -ms-inline-flexbox;
698
+ display: inline-flex;
699
+ -webkit-align-items: center;
700
+ -webkit-box-align: center;
701
+ -ms-flex-align: center;
702
+ align-items: center;
703
+ }
704
+
705
+ .c2 > .c5 {
706
+ margin-left: auto;
707
+ }
708
+
709
+ .c1 {
710
+ display: -webkit-box;
711
+ display: -webkit-flex;
712
+ display: -ms-flexbox;
713
+ display: flex;
714
+ -webkit-flex-direction: column;
715
+ -ms-flex-direction: column;
716
+ flex-direction: column;
717
+ }
718
+
719
+ .c3 {
720
+ margin-bottom: 8px;
721
+ }
722
+
723
+ .c8 {
724
+ display: grid;
725
+ grid-template-columns: 1fr auto;
726
+ height: 40px;
727
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
728
+ transition: 0.2s background-color,0.2s box-shadow;
729
+ color: var(--charcoal-text2);
730
+ background-color: var(--charcoal-surface3);
731
+ border-radius: 4px;
732
+ gap: 4px;
733
+ padding: 0 8px;
734
+ line-height: 22px;
735
+ font-size: 14px;
736
+ }
737
+
738
+ .c8:not(:disabled):not([aria-disabled]):hover,
739
+ .c8 [aria-disabled='false']:hover {
740
+ background-color: var(--charcoal-surface3-hover);
741
+ }
742
+
743
+ .c8:not(:disabled):not([aria-disabled]):active,
744
+ .c8 [aria-disabled='false']:active {
745
+ outline: none;
746
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
747
+ }
748
+
749
+ .c8:focus-within {
750
+ outline: none;
751
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
752
+ }
753
+
754
+ .c10 {
755
+ display: -webkit-box;
756
+ display: -webkit-flex;
757
+ display: -ms-flexbox;
758
+ display: flex;
759
+ -webkit-align-items: center;
760
+ -webkit-box-align: center;
761
+ -ms-flex-align: center;
762
+ align-items: center;
763
+ gap: 8px;
764
+ }
765
+
766
+ .c9 {
767
+ border: none;
768
+ box-sizing: border-box;
769
+ outline: none;
770
+ font-family: inherit;
771
+ -webkit-transform-origin: top left;
772
+ -ms-transform-origin: top left;
773
+ transform-origin: top left;
774
+ -webkit-transform: scale(0.875);
775
+ -ms-transform: scale(0.875);
776
+ transform: scale(0.875);
777
+ width: calc(100% / 0.875);
778
+ height: calc(100% / 0.875);
779
+ font-size: calc(14px / 0.875);
780
+ line-height: calc(22px / 0.875);
781
+ padding-left: 0;
782
+ padding-right: 0;
783
+ border-radius: calc(4px / 0.875);
784
+ -webkit-appearance: none;
785
+ -moz-appearance: none;
786
+ appearance: none;
787
+ background: transparent;
788
+ color: var(--charcoal-text2);
789
+ }
790
+
791
+ .c9::-webkit-input-placeholder {
792
+ color: var(--charcoal-text3);
793
+ }
794
+
795
+ .c9::-moz-placeholder {
796
+ color: var(--charcoal-text3);
797
+ }
798
+
799
+ .c9:-ms-input-placeholder {
800
+ color: var(--charcoal-text3);
801
+ }
802
+
803
+ .c9::placeholder {
804
+ color: var(--charcoal-text3);
805
+ }
806
+
807
+ .c11 {
808
+ line-height: 22px;
809
+ font-size: 14px;
810
+ color: var(--charcoal-text3);
811
+ }
812
+
813
+ .c0 {
814
+ display: grid;
815
+ gap: 24px;
816
+ }
817
+
818
+ <div
819
+ data-dark={false}
820
+ >
821
+ <div
822
+ className="c0"
823
+ >
824
+ <div
825
+ className="c1"
826
+ >
827
+ <div
828
+ className="c2 c3"
829
+ style={
830
+ Object {
831
+ "border": 0,
832
+ "clip": "rect(0 0 0 0)",
833
+ "clipPath": "inset(50%)",
834
+ "height": 1,
835
+ "margin": "0 -1px -1px 0",
836
+ "overflow": "hidden",
837
+ "padding": 0,
838
+ "position": "absolute",
839
+ "whiteSpace": "nowrap",
840
+ "width": 1,
841
+ }
842
+ }
843
+ >
844
+ <label
845
+ className="c4"
846
+ htmlFor="test-id"
847
+ id="test-id"
848
+ onBlur={null}
849
+ onFocus={null}
850
+ >
851
+ Label
852
+ </label>
853
+ <div
854
+ className="c5 c6"
855
+ >
856
+ <span>
857
+ <button
858
+ className="c7"
859
+ onClick={[Function]}
860
+ >
861
+ Text Link
862
+ </button>
863
+ </span>
864
+ </div>
865
+ </div>
866
+ <div
867
+ className="c8"
868
+ >
869
+ <input
870
+ aria-labelledby="test-id"
871
+ className="c9"
872
+ disabled={false}
873
+ id="test-id"
874
+ maxLength={100}
875
+ onChange={[Function]}
876
+ placeholder="TextField"
877
+ readOnly={false}
878
+ type="text"
879
+ />
880
+ <span
881
+ className="c10"
882
+ >
883
+ <span
884
+ className="c11"
885
+ >
886
+ 0/100
887
+ </span>
888
+ </span>
889
+ </div>
890
+ </div>
891
+ </div>
892
+ </div>
893
+ `;
894
+
895
+ exports[`Storyshots TextField Has Label 1`] = `
896
+ .c9 {
897
+ cursor: pointer;
898
+ -webkit-appearance: none;
899
+ -moz-appearance: none;
900
+ appearance: none;
901
+ background: transparent;
902
+ padding: 0;
903
+ border-style: none;
904
+ outline: none;
905
+ color: inherit;
906
+ text-rendering: inherit;
907
+ -webkit-letter-spacing: inherit;
908
+ -moz-letter-spacing: inherit;
909
+ -ms-letter-spacing: inherit;
910
+ letter-spacing: inherit;
911
+ word-spacing: inherit;
912
+ font: inherit;
913
+ margin: 0;
914
+ overflow: visible;
915
+ text-transform: none;
916
+ }
917
+
918
+ .c9:disabled,
919
+ .c9[aria-disabled]:not([aria-disabled=false]) {
920
+ cursor: default;
921
+ }
922
+
923
+ .c9:focus {
924
+ outline: none;
925
+ }
926
+
927
+ .c9::-moz-focus-inner {
928
+ border-style: none;
929
+ padding: 0;
930
+ }
931
+
932
+ .c4 {
933
+ font-size: 14px;
934
+ line-height: 22px;
935
+ font-weight: bold;
936
+ display: flow-root;
937
+ color: var(--charcoal-text1);
938
+ }
939
+
940
+ .c4::before {
941
+ display: block;
942
+ width: 0;
943
+ height: 0;
944
+ content: '';
945
+ margin-top: -4px;
946
+ }
947
+
948
+ .c4::after {
949
+ display: block;
950
+ width: 0;
951
+ height: 0;
952
+ content: '';
953
+ margin-bottom: -4px;
954
+ }
955
+
956
+ .c6 {
957
+ font-size: 14px;
958
+ line-height: 22px;
959
+ display: flow-root;
960
+ color: var(--charcoal-text2);
961
+ }
962
+
963
+ .c6::before {
964
+ display: block;
965
+ width: 0;
966
+ height: 0;
967
+ content: '';
968
+ margin-top: -4px;
969
+ }
970
+
971
+ .c6::after {
972
+ display: block;
973
+ width: 0;
974
+ height: 0;
975
+ content: '';
976
+ margin-bottom: -4px;
977
+ }
978
+
979
+ .c8 {
980
+ font-size: 14px;
981
+ line-height: 22px;
982
+ display: flow-root;
983
+ color: var(--charcoal-text3);
984
+ -webkit-transition: 0.2s color,0.2s box-shadow;
985
+ transition: 0.2s color,0.2s box-shadow;
986
+ }
987
+
988
+ .c8::before {
989
+ display: block;
990
+ width: 0;
991
+ height: 0;
992
+ content: '';
993
+ margin-top: -4px;
994
+ }
995
+
996
+ .c8::after {
997
+ display: block;
998
+ width: 0;
999
+ height: 0;
1000
+ content: '';
1001
+ margin-bottom: -4px;
1002
+ }
1003
+
1004
+ .c8:hover:not(:disabled):not([aria-disabled]),
1005
+ .c8:hover[aria-disabled=false] {
1006
+ color: var(--charcoal-text3-hover);
1007
+ }
1008
+
1009
+ .c8:active:not(:disabled):not([aria-disabled]),
1010
+ .c8:active[aria-disabled=false] {
1011
+ color: var(--charcoal-text3-press);
1012
+ }
1013
+
1014
+ .c8:not(:disabled):not([aria-disabled]):focus,
1015
+ .c8[aria-disabled=false]:focus,
1016
+ .c8:not(:disabled):not([aria-disabled]):active,
1017
+ .c8[aria-disabled=false]:active {
1018
+ outline: none;
1019
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1020
+ }
1021
+
1022
+ .c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1023
+ .c8[aria-disabled=false]:focus:not(:focus-visible),
1024
+ .c8:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1025
+ .c8[aria-disabled=false]:active:not(:focus-visible) {
1026
+ outline: none;
1027
+ }
1028
+
1029
+ .c8:not(:disabled):not([aria-disabled]):focus-visible,
1030
+ .c8[aria-disabled=false]:focus-visible {
1031
+ outline: none;
1032
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1033
+ }
1034
+
1035
+ .c2 {
1036
+ display: -webkit-inline-box;
1037
+ display: -webkit-inline-flex;
1038
+ display: -ms-inline-flexbox;
1039
+ display: inline-flex;
1040
+ -webkit-align-items: center;
1041
+ -webkit-box-align: center;
1042
+ -ms-flex-align: center;
1043
+ align-items: center;
1044
+ }
1045
+
1046
+ .c2 > .c5 {
1047
+ margin-left: 4px;
1048
+ }
1049
+
1050
+ .c2 > .c7 {
1051
+ margin-left: auto;
1052
+ }
1053
+
1054
+ .c1 {
1055
+ display: -webkit-box;
1056
+ display: -webkit-flex;
1057
+ display: -ms-flexbox;
1058
+ display: flex;
1059
+ -webkit-flex-direction: column;
1060
+ -ms-flex-direction: column;
1061
+ flex-direction: column;
1062
+ }
1063
+
1064
+ .c3 {
1065
+ margin-bottom: 8px;
1066
+ }
1067
+
1068
+ .c10 {
1069
+ display: grid;
1070
+ grid-template-columns: 1fr;
1071
+ height: 40px;
1072
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1073
+ transition: 0.2s background-color,0.2s box-shadow;
1074
+ color: var(--charcoal-text2);
1075
+ background-color: var(--charcoal-surface3);
1076
+ border-radius: 4px;
1077
+ gap: 4px;
1078
+ padding: 0 8px;
1079
+ line-height: 22px;
1080
+ font-size: 14px;
1081
+ }
1082
+
1083
+ .c10:not(:disabled):not([aria-disabled]):hover,
1084
+ .c10 [aria-disabled='false']:hover {
1085
+ background-color: var(--charcoal-surface3-hover);
1086
+ }
1087
+
1088
+ .c10:not(:disabled):not([aria-disabled]):active,
1089
+ .c10 [aria-disabled='false']:active {
1090
+ outline: none;
1091
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1092
+ }
1093
+
1094
+ .c10:focus-within {
1095
+ outline: none;
1096
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1097
+ }
1098
+
1099
+ .c11 {
1100
+ border: none;
1101
+ box-sizing: border-box;
1102
+ outline: none;
1103
+ font-family: inherit;
1104
+ -webkit-transform-origin: top left;
1105
+ -ms-transform-origin: top left;
1106
+ transform-origin: top left;
1107
+ -webkit-transform: scale(0.875);
1108
+ -ms-transform: scale(0.875);
1109
+ transform: scale(0.875);
1110
+ width: calc(100% / 0.875);
1111
+ height: calc(100% / 0.875);
1112
+ font-size: calc(14px / 0.875);
1113
+ line-height: calc(22px / 0.875);
1114
+ padding-left: 0;
1115
+ padding-right: 0;
1116
+ border-radius: calc(4px / 0.875);
1117
+ -webkit-appearance: none;
1118
+ -moz-appearance: none;
1119
+ appearance: none;
1120
+ background: transparent;
1121
+ color: var(--charcoal-text2);
1122
+ }
1123
+
1124
+ .c11::-webkit-input-placeholder {
1125
+ color: var(--charcoal-text3);
1126
+ }
1127
+
1128
+ .c11::-moz-placeholder {
1129
+ color: var(--charcoal-text3);
1130
+ }
1131
+
1132
+ .c11:-ms-input-placeholder {
1133
+ color: var(--charcoal-text3);
1134
+ }
1135
+
1136
+ .c11::placeholder {
1137
+ color: var(--charcoal-text3);
1138
+ }
1139
+
1140
+ .c12 {
1141
+ font-size: 14px;
1142
+ line-height: 22px;
1143
+ margin-top: 4px;
1144
+ margin-bottom: -4px;
1145
+ color: var(--charcoal-text2);
1146
+ }
1147
+
1148
+ .c0 {
1149
+ display: grid;
1150
+ gap: 24px;
1151
+ }
1152
+
1153
+ <div
1154
+ data-dark={false}
1155
+ >
1156
+ <div
1157
+ className="c0"
1158
+ >
1159
+ <div
1160
+ className="c1"
1161
+ >
1162
+ <div
1163
+ className="c2 c3"
1164
+ >
1165
+ <label
1166
+ className="c4"
1167
+ htmlFor="test-id"
1168
+ id="test-id"
1169
+ >
1170
+ Label
1171
+ </label>
1172
+ <span
1173
+ className="c5 c6"
1174
+ >
1175
+ *必須
1176
+ </span>
1177
+ <div
1178
+ className="c7 c8"
1179
+ >
1180
+ <span>
1181
+ <button
1182
+ className="c9"
1183
+ onClick={[Function]}
1184
+ >
1185
+ Text Link
1186
+ </button>
1187
+ </span>
1188
+ </div>
1189
+ </div>
1190
+ <div
1191
+ className="c10"
1192
+ >
1193
+ <input
1194
+ aria-labelledby="test-id"
1195
+ aria-required={true}
1196
+ className="c11"
1197
+ disabled={false}
1198
+ id="test-id"
1199
+ onChange={[Function]}
1200
+ placeholder="TextField"
1201
+ readOnly={false}
1202
+ type="text"
1203
+ />
1204
+ </div>
1205
+ <p
1206
+ className="c12"
1207
+ >
1208
+ Assistive text
1209
+ </p>
1210
+ </div>
1211
+ </div>
1212
+ </div>
1213
+ `;
1214
+
1215
+ exports[`Storyshots TextField Prefix Icon 1`] = `
1216
+ .c11 {
1217
+ cursor: pointer;
1218
+ -webkit-appearance: none;
1219
+ -moz-appearance: none;
1220
+ appearance: none;
1221
+ background: transparent;
1222
+ padding: 0;
1223
+ border-style: none;
1224
+ outline: none;
1225
+ color: inherit;
1226
+ text-rendering: inherit;
1227
+ -webkit-letter-spacing: inherit;
1228
+ -moz-letter-spacing: inherit;
1229
+ -ms-letter-spacing: inherit;
1230
+ letter-spacing: inherit;
1231
+ word-spacing: inherit;
1232
+ font: inherit;
1233
+ margin: 0;
1234
+ overflow: visible;
1235
+ text-transform: none;
1236
+ }
1237
+
1238
+ .c11:disabled,
1239
+ .c11[aria-disabled]:not([aria-disabled=false]) {
1240
+ cursor: default;
1241
+ }
1242
+
1243
+ .c11:focus {
1244
+ outline: none;
1245
+ }
1246
+
1247
+ .c11::-moz-focus-inner {
1248
+ border-style: none;
1249
+ padding: 0;
1250
+ }
1251
+
1252
+ .c3 {
1253
+ font-size: 14px;
1254
+ line-height: 22px;
1255
+ font-weight: bold;
1256
+ display: flow-root;
1257
+ color: var(--charcoal-text1);
1258
+ }
1259
+
1260
+ .c3::before {
1261
+ display: block;
1262
+ width: 0;
1263
+ height: 0;
1264
+ content: '';
1265
+ margin-top: -4px;
1266
+ }
1267
+
1268
+ .c3::after {
1269
+ display: block;
1270
+ width: 0;
1271
+ height: 0;
1272
+ content: '';
1273
+ margin-bottom: -4px;
1274
+ }
1275
+
1276
+ .c5 {
1277
+ font-size: 14px;
1278
+ line-height: 22px;
1279
+ display: flow-root;
1280
+ color: var(--charcoal-text3);
1281
+ -webkit-transition: 0.2s color,0.2s box-shadow;
1282
+ transition: 0.2s color,0.2s box-shadow;
1283
+ }
1284
+
1285
+ .c5::before {
1286
+ display: block;
1287
+ width: 0;
1288
+ height: 0;
1289
+ content: '';
1290
+ margin-top: -4px;
1291
+ }
1292
+
1293
+ .c5::after {
1294
+ display: block;
1295
+ width: 0;
1296
+ height: 0;
1297
+ content: '';
1298
+ margin-bottom: -4px;
1299
+ }
1300
+
1301
+ .c5:hover:not(:disabled):not([aria-disabled]),
1302
+ .c5:hover[aria-disabled=false] {
1303
+ color: var(--charcoal-text3-hover);
1304
+ }
1305
+
1306
+ .c5:active:not(:disabled):not([aria-disabled]),
1307
+ .c5:active[aria-disabled=false] {
1308
+ color: var(--charcoal-text3-press);
1309
+ }
1310
+
1311
+ .c5:not(:disabled):not([aria-disabled]):focus,
1312
+ .c5[aria-disabled=false]:focus,
1313
+ .c5:not(:disabled):not([aria-disabled]):active,
1314
+ .c5[aria-disabled=false]:active {
1315
+ outline: none;
1316
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1317
+ }
1318
+
1319
+ .c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1320
+ .c5[aria-disabled=false]:focus:not(:focus-visible),
1321
+ .c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1322
+ .c5[aria-disabled=false]:active:not(:focus-visible) {
1323
+ outline: none;
1324
+ }
1325
+
1326
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1327
+ .c5[aria-disabled=false]:focus-visible {
1328
+ outline: none;
1329
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1330
+ }
1331
+
1332
+ .c1 {
1333
+ display: -webkit-inline-box;
1334
+ display: -webkit-inline-flex;
1335
+ display: -ms-inline-flexbox;
1336
+ display: inline-flex;
1337
+ -webkit-align-items: center;
1338
+ -webkit-box-align: center;
1339
+ -ms-flex-align: center;
1340
+ align-items: center;
1341
+ }
1342
+
1343
+ .c1 > .c4 {
1344
+ margin-left: auto;
1345
+ }
1346
+
1347
+ .c12 {
1348
+ -webkit-user-select: none;
1349
+ -moz-user-select: none;
1350
+ -ms-user-select: none;
1351
+ user-select: none;
1352
+ width: 20px;
1353
+ height: 20px;
1354
+ display: -webkit-box;
1355
+ display: -webkit-flex;
1356
+ display: -ms-flexbox;
1357
+ display: flex;
1358
+ -webkit-align-items: center;
1359
+ -webkit-box-align: center;
1360
+ -ms-flex-align: center;
1361
+ align-items: center;
1362
+ -webkit-box-pack: center;
1363
+ -webkit-justify-content: center;
1364
+ -ms-flex-pack: center;
1365
+ justify-content: center;
1366
+ color: var(--charcoal-text5);
1367
+ background-color: var(--charcoal-surface4);
1368
+ border-radius: 999999px;
1369
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1370
+ transition: 0.2s background-color,0.2s box-shadow;
1371
+ }
1372
+
1373
+ .c12:hover:not(:disabled):not([aria-disabled]),
1374
+ .c12:hover[aria-disabled=false] {
1375
+ background-color: var(--charcoal-surface4-hover);
1376
+ }
1377
+
1378
+ .c12:active:not(:disabled):not([aria-disabled]),
1379
+ .c12:active[aria-disabled=false] {
1380
+ background-color: var(--charcoal-surface4-press);
1381
+ }
1382
+
1383
+ .c12:disabled,
1384
+ .c12[aria-disabled]:not([aria-disabled=false]) {
1385
+ opacity: 0.32;
1386
+ }
1387
+
1388
+ .c12:not(:disabled):not([aria-disabled]):focus,
1389
+ .c12[aria-disabled=false]:focus,
1390
+ .c12:not(:disabled):not([aria-disabled]):active,
1391
+ .c12[aria-disabled=false]:active {
1392
+ outline: none;
1393
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1394
+ }
1395
+
1396
+ .c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1397
+ .c12[aria-disabled=false]:focus:not(:focus-visible),
1398
+ .c12:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
1399
+ .c12[aria-disabled=false]:active:not(:focus-visible) {
1400
+ outline: none;
1401
+ }
1402
+
1403
+ .c12:not(:disabled):not([aria-disabled]):focus-visible,
1404
+ .c12[aria-disabled=false]:focus-visible {
1405
+ outline: none;
1406
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1407
+ }
1408
+
1409
+ .c0 {
1410
+ display: -webkit-box;
1411
+ display: -webkit-flex;
1412
+ display: -ms-flexbox;
1413
+ display: flex;
1414
+ -webkit-flex-direction: column;
1415
+ -ms-flex-direction: column;
1416
+ flex-direction: column;
1417
+ }
1418
+
1419
+ .c2 {
1420
+ margin-bottom: 8px;
1421
+ }
1422
+
1423
+ .c6 {
1424
+ display: grid;
1425
+ grid-template-columns: auto 1fr auto;
1426
+ height: 40px;
1427
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1428
+ transition: 0.2s background-color,0.2s box-shadow;
1429
+ color: var(--charcoal-text2);
1430
+ background-color: var(--charcoal-surface3);
1431
+ border-radius: 4px;
1432
+ gap: 4px;
1433
+ padding: 0 8px;
1434
+ line-height: 22px;
1435
+ font-size: 14px;
1436
+ }
1437
+
1438
+ .c6:not(:disabled):not([aria-disabled]):hover,
1439
+ .c6 [aria-disabled='false']:hover {
1440
+ background-color: var(--charcoal-surface3-hover);
1441
+ }
1442
+
1443
+ .c6:not(:disabled):not([aria-disabled]):active,
1444
+ .c6 [aria-disabled='false']:active {
1445
+ outline: none;
1446
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1447
+ }
1448
+
1449
+ .c6:focus-within {
1450
+ outline: none;
1451
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1452
+ }
1453
+
1454
+ .c7 {
1455
+ display: -webkit-box;
1456
+ display: -webkit-flex;
1457
+ display: -ms-flexbox;
1458
+ display: flex;
1459
+ padding-left: 8px;
1460
+ -webkit-align-items: center;
1461
+ -webkit-box-align: center;
1462
+ -ms-flex-align: center;
1463
+ align-items: center;
1464
+ }
1465
+
1466
+ .c10 {
1467
+ display: -webkit-box;
1468
+ display: -webkit-flex;
1469
+ display: -ms-flexbox;
1470
+ display: flex;
1471
+ -webkit-align-items: center;
1472
+ -webkit-box-align: center;
1473
+ -ms-flex-align: center;
1474
+ align-items: center;
1475
+ gap: 8px;
1476
+ }
1477
+
1478
+ .c9 {
1479
+ border: none;
1480
+ box-sizing: border-box;
1481
+ outline: none;
1482
+ font-family: inherit;
1483
+ -webkit-transform-origin: top left;
1484
+ -ms-transform-origin: top left;
1485
+ transform-origin: top left;
1486
+ -webkit-transform: scale(0.875);
1487
+ -ms-transform: scale(0.875);
1488
+ transform: scale(0.875);
1489
+ width: calc(100% / 0.875);
1490
+ height: calc(100% / 0.875);
1491
+ font-size: calc(14px / 0.875);
1492
+ line-height: calc(22px / 0.875);
1493
+ padding-left: 0;
1494
+ padding-right: 0;
1495
+ border-radius: calc(4px / 0.875);
1496
+ -webkit-appearance: none;
1497
+ -moz-appearance: none;
1498
+ appearance: none;
1499
+ background: transparent;
1500
+ color: var(--charcoal-text2);
1501
+ }
1502
+
1503
+ .c9::-webkit-input-placeholder {
1504
+ color: var(--charcoal-text3);
1505
+ }
1506
+
1507
+ .c9::-moz-placeholder {
1508
+ color: var(--charcoal-text3);
1509
+ }
1510
+
1511
+ .c9:-ms-input-placeholder {
1512
+ color: var(--charcoal-text3);
1513
+ }
1514
+
1515
+ .c9::placeholder {
1516
+ color: var(--charcoal-text3);
1517
+ }
1518
+
1519
+ .c8 {
1520
+ height: 16px;
1521
+ color: #858585;
1522
+ }
1523
+
1524
+ <div
1525
+ data-dark={false}
1526
+ >
1527
+ <div
1528
+ className="c0"
1529
+ >
1530
+ <div
1531
+ className="c1 c2"
1532
+ style={
1533
+ Object {
1534
+ "border": 0,
1535
+ "clip": "rect(0 0 0 0)",
1536
+ "clipPath": "inset(50%)",
1537
+ "height": 1,
1538
+ "margin": "0 -1px -1px 0",
1539
+ "overflow": "hidden",
1540
+ "padding": 0,
1541
+ "position": "absolute",
1542
+ "whiteSpace": "nowrap",
1543
+ "width": 1,
1544
+ }
1545
+ }
1546
+ >
1547
+ <label
1548
+ className="c3"
1549
+ htmlFor="test-id"
1550
+ id="test-id"
1551
+ onBlur={null}
1552
+ onFocus={null}
1553
+ >
1554
+ Label
1555
+ </label>
1556
+ <div
1557
+ className="c4 c5"
1558
+ >
1559
+ <span />
1560
+ </div>
1561
+ </div>
1562
+ <div
1563
+ className="c6"
1564
+ >
1565
+ <div
1566
+ className="c7"
1567
+ >
1568
+ <div
1569
+ className="c8"
1570
+ >
1571
+ <pixiv-icon
1572
+ name="16/Search"
1573
+ />
1574
+ </div>
1575
+ </div>
1576
+ <input
1577
+ aria-labelledby="test-id"
1578
+ className="c9"
1579
+ disabled={false}
1580
+ id="test-id"
1581
+ onChange={[Function]}
1582
+ placeholder="作品を検索"
1583
+ readOnly={false}
1584
+ type="text"
1585
+ />
1586
+ <span
1587
+ className="c10"
1588
+ >
1589
+ <button
1590
+ className="c11 c12"
1591
+ height={20}
1592
+ size="XS"
1593
+ width={20}
1594
+ >
1595
+ <pixiv-icon
1596
+ name="16/Remove"
1597
+ />
1598
+ </button>
1599
+ </span>
1600
+ </div>
1601
+ </div>
1602
+ </div>
1603
+ `;