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