@charcoal-ui/react 3.7.0 → 3.9.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 (107) hide show
  1. package/dist/components/Button/StyledButton.d.ts +1 -0
  2. package/dist/components/Button/StyledButton.d.ts.map +1 -1
  3. package/dist/components/Button/index.d.ts +1 -0
  4. package/dist/components/Button/index.d.ts.map +1 -1
  5. package/dist/components/Button/index.story.d.ts +16 -32
  6. package/dist/components/Button/index.story.d.ts.map +1 -1
  7. package/dist/components/Checkbox/index.d.ts.map +1 -1
  8. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +7 -7
  9. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -1
  10. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +6 -9
  11. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -1
  12. package/dist/components/DropdownSelector/Popover/index.story.d.ts +3 -7
  13. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -1
  14. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  15. package/dist/components/DropdownSelector/index.story.d.ts +9 -12
  16. package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
  17. package/dist/components/Icon/index.story.d.ts +4 -26
  18. package/dist/components/Icon/index.story.d.ts.map +1 -1
  19. package/dist/components/IconButton/index.d.ts +1 -0
  20. package/dist/components/IconButton/index.d.ts.map +1 -1
  21. package/dist/components/IconButton/index.story.d.ts +6 -25
  22. package/dist/components/IconButton/index.story.d.ts.map +1 -1
  23. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +8 -0
  24. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -0
  25. package/dist/components/LoadingSpinner/index.d.ts +2 -2
  26. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  27. package/dist/components/LoadingSpinner/index.story.d.ts +4 -7
  28. package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
  29. package/dist/components/Modal/index.d.ts.map +1 -1
  30. package/dist/components/Modal/index.story.d.ts +16 -41
  31. package/dist/components/Modal/index.story.d.ts.map +1 -1
  32. package/dist/components/Modal/useCustomModalOverlay.d.ts +12 -0
  33. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -0
  34. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  35. package/dist/components/Radio/index.d.ts +0 -2
  36. package/dist/components/Radio/index.d.ts.map +1 -1
  37. package/dist/components/Radio/index.story.d.ts +12 -23
  38. package/dist/components/Radio/index.story.d.ts.map +1 -1
  39. package/dist/components/SegmentedControl/index.story.d.ts +5 -8
  40. package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
  41. package/dist/components/Switch/index.d.ts.map +1 -1
  42. package/dist/components/Switch/index.story.d.ts +7 -12
  43. package/dist/components/Switch/index.story.d.ts.map +1 -1
  44. package/dist/components/TagItem/index.d.ts.map +1 -1
  45. package/dist/components/TagItem/index.story.d.ts +14 -24
  46. package/dist/components/TagItem/index.story.d.ts.map +1 -1
  47. package/dist/components/TextArea/TextArea.story.d.ts +7 -25
  48. package/dist/components/TextArea/TextArea.story.d.ts.map +1 -1
  49. package/dist/components/TextArea/index.d.ts.map +1 -1
  50. package/dist/components/TextField/TextField.story.d.ts +14 -20
  51. package/dist/components/TextField/TextField.story.d.ts.map +1 -1
  52. package/dist/components/TextField/index.d.ts.map +1 -1
  53. package/dist/index.cjs.js +1006 -2240
  54. package/dist/index.cjs.js.map +1 -1
  55. package/dist/index.esm.js +1001 -2241
  56. package/dist/index.esm.js.map +1 -1
  57. package/dist/styled.d.ts +4 -4
  58. package/package.json +7 -6
  59. package/src/components/Button/StyledButton.tsx +19 -14
  60. package/src/components/Button/__snapshots__/index.story.storyshot +314 -118
  61. package/src/components/Button/index.story.tsx +141 -138
  62. package/src/components/Button/index.tsx +3 -0
  63. package/src/components/Checkbox/__snapshots__/index.story.storyshot +55 -42
  64. package/src/components/Checkbox/index.tsx +15 -17
  65. package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
  66. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +42 -37
  67. package/src/components/DropdownSelector/ListItem/index.story.tsx +8 -4
  68. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +38 -38
  69. package/src/components/DropdownSelector/MenuList/index.story.tsx +33 -27
  70. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +11 -5
  71. package/src/components/DropdownSelector/Popover/index.story.tsx +6 -6
  72. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +148 -47
  73. package/src/components/DropdownSelector/index.story.tsx +207 -204
  74. package/src/components/DropdownSelector/index.tsx +17 -10
  75. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  76. package/src/components/Icon/index.story.tsx +8 -12
  77. package/src/components/IconButton/__snapshots__/index.story.storyshot +135 -13
  78. package/src/components/IconButton/index.story.tsx +30 -23
  79. package/src/components/IconButton/index.tsx +35 -20
  80. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +12 -0
  81. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +28 -0
  82. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +1 -35
  83. package/src/components/LoadingSpinner/index.story.tsx +11 -54
  84. package/src/components/LoadingSpinner/index.tsx +1 -1
  85. package/src/components/Modal/__snapshots__/index.story.storyshot +224 -171
  86. package/src/components/Modal/index.story.tsx +139 -133
  87. package/src/components/Modal/index.tsx +15 -20
  88. package/src/components/Modal/useCustomModalOverlay.tsx +42 -0
  89. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +56 -4
  90. package/src/components/MultiSelect/index.tsx +3 -0
  91. package/src/components/Radio/__snapshots__/index.story.storyshot +1001 -121
  92. package/src/components/Radio/index.story.tsx +128 -63
  93. package/src/components/Radio/index.tsx +15 -17
  94. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +2 -2
  95. package/src/components/SegmentedControl/index.story.tsx +24 -29
  96. package/src/components/Switch/__snapshots__/index.story.storyshot +184 -26
  97. package/src/components/Switch/index.story.tsx +72 -48
  98. package/src/components/Switch/index.tsx +2 -7
  99. package/src/components/TagItem/__snapshots__/index.story.storyshot +72 -33
  100. package/src/components/TagItem/index.story.tsx +154 -159
  101. package/src/components/TagItem/index.tsx +2 -6
  102. package/src/components/TextArea/TextArea.story.tsx +29 -32
  103. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +127 -73
  104. package/src/components/TextArea/index.tsx +22 -14
  105. package/src/components/TextField/TextField.story.tsx +85 -64
  106. package/src/components/TextField/__snapshots__/TextField.story.storyshot +479 -167
  107. package/src/components/TextField/index.tsx +22 -21
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storyshots TextField Default 1`] = `
3
+ exports[`Storybook Tests TextField Default 1`] = `
4
4
  .c7 {
5
5
  cursor: pointer;
6
6
  -webkit-appearance: none;
@@ -157,12 +157,6 @@ exports[`Storyshots TextField Default 1`] = `
157
157
  background-color: var(--charcoal-surface3-hover);
158
158
  }
159
159
 
160
- .c8:not(:disabled):not([aria-disabled]):active,
161
- .c8 [aria-disabled='false']:active {
162
- outline: none;
163
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
164
- }
165
-
166
160
  .c8:focus-within {
167
161
  outline: none;
168
162
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
@@ -280,8 +274,46 @@ exports[`Storyshots TextField Default 1`] = `
280
274
  </div>
281
275
  `;
282
276
 
283
- exports[`Storyshots TextField Has Affix 1`] = `
284
- .c3 {
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 {
285
317
  font-size: 14px;
286
318
  line-height: 22px;
287
319
  font-weight: bold;
@@ -289,7 +321,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
289
321
  color: var(--charcoal-text1);
290
322
  }
291
323
 
292
- .c3::before {
324
+ .c4::before {
293
325
  display: block;
294
326
  width: 0;
295
327
  height: 0;
@@ -297,7 +329,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
297
329
  margin-top: -4px;
298
330
  }
299
331
 
300
- .c3::after {
332
+ .c4::after {
301
333
  display: block;
302
334
  width: 0;
303
335
  height: 0;
@@ -305,7 +337,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
305
337
  margin-bottom: -4px;
306
338
  }
307
339
 
308
- .c5 {
340
+ .c6 {
309
341
  font-size: 14px;
310
342
  line-height: 22px;
311
343
  display: flow-root;
@@ -314,7 +346,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
314
346
  transition: 0.2s color,0.2s box-shadow;
315
347
  }
316
348
 
317
- .c5::before {
349
+ .c6::before {
318
350
  display: block;
319
351
  width: 0;
320
352
  height: 0;
@@ -322,7 +354,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
322
354
  margin-top: -4px;
323
355
  }
324
356
 
325
- .c5::after {
357
+ .c6::after {
326
358
  display: block;
327
359
  width: 0;
328
360
  height: 0;
@@ -330,27 +362,27 @@ exports[`Storyshots TextField Has Affix 1`] = `
330
362
  margin-bottom: -4px;
331
363
  }
332
364
 
333
- .c5:not(:disabled):not([aria-disabled]):hover,
334
- .c5[aria-disabled='false']:hover {
365
+ .c6:not(:disabled):not([aria-disabled]):hover,
366
+ .c6[aria-disabled='false']:hover {
335
367
  color: var(--charcoal-text3-hover);
336
368
  }
337
369
 
338
- .c5:not(:disabled):not([aria-disabled]):active,
339
- .c5[aria-disabled='false']:active {
370
+ .c6:not(:disabled):not([aria-disabled]):active,
371
+ .c6[aria-disabled='false']:active {
340
372
  color: var(--charcoal-text3-press);
341
373
  }
342
374
 
343
- .c5:not(:disabled):not([aria-disabled]):active,
344
- .c5[aria-disabled='false']:active,
345
- .c5:not(:disabled):not([aria-disabled]):focus,
346
- .c5[aria-disabled='false']:focus,
347
- .c5:not(:disabled):not([aria-disabled]):focus-visible,
348
- .c5[aria-disabled='false']:focus-visible {
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 {
349
381
  outline: none;
350
382
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
351
383
  }
352
384
 
353
- .c1 {
385
+ .c2 {
354
386
  display: -webkit-inline-box;
355
387
  display: -webkit-inline-flex;
356
388
  display: -ms-inline-flexbox;
@@ -361,11 +393,11 @@ exports[`Storyshots TextField Has Affix 1`] = `
361
393
  align-items: center;
362
394
  }
363
395
 
364
- .c1 > .c4 {
396
+ .c2 > .c5 {
365
397
  margin-left: auto;
366
398
  }
367
399
 
368
- .c0 {
400
+ .c1 {
369
401
  display: -webkit-box;
370
402
  display: -webkit-flex;
371
403
  display: -ms-flexbox;
@@ -375,11 +407,11 @@ exports[`Storyshots TextField Has Affix 1`] = `
375
407
  flex-direction: column;
376
408
  }
377
409
 
378
- .c2 {
410
+ .c3 {
379
411
  margin-bottom: 8px;
380
412
  }
381
413
 
382
- .c6 {
414
+ .c8 {
383
415
  display: grid;
384
416
  grid-template-columns: auto 1fr auto;
385
417
  height: 40px;
@@ -394,23 +426,17 @@ exports[`Storyshots TextField Has Affix 1`] = `
394
426
  font-size: 14px;
395
427
  }
396
428
 
397
- .c6:not(:disabled):not([aria-disabled]):hover,
398
- .c6 [aria-disabled='false']:hover {
429
+ .c8:not(:disabled):not([aria-disabled]):hover,
430
+ .c8 [aria-disabled='false']:hover {
399
431
  background-color: var(--charcoal-surface3-hover);
400
432
  }
401
433
 
402
- .c6:not(:disabled):not([aria-disabled]):active,
403
- .c6 [aria-disabled='false']:active {
404
- outline: none;
405
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
406
- }
407
-
408
- .c6:focus-within {
434
+ .c8:focus-within {
409
435
  outline: none;
410
436
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
411
437
  }
412
438
 
413
- .c7 {
439
+ .c9 {
414
440
  display: -webkit-box;
415
441
  display: -webkit-flex;
416
442
  display: -ms-flexbox;
@@ -421,7 +447,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
421
447
  align-items: center;
422
448
  }
423
449
 
424
- .c9 {
450
+ .c11 {
425
451
  display: -webkit-box;
426
452
  display: -webkit-flex;
427
453
  display: -ms-flexbox;
@@ -433,7 +459,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
433
459
  gap: 8px;
434
460
  }
435
461
 
436
- .c8 {
462
+ .c10 {
437
463
  border: none;
438
464
  box-sizing: border-box;
439
465
  outline: none;
@@ -458,28 +484,33 @@ exports[`Storyshots TextField Has Affix 1`] = `
458
484
  color: var(--charcoal-text2);
459
485
  }
460
486
 
461
- .c8::-webkit-input-placeholder {
487
+ .c10::-webkit-input-placeholder {
462
488
  color: var(--charcoal-text3);
463
489
  }
464
490
 
465
- .c8::-moz-placeholder {
491
+ .c10::-moz-placeholder {
466
492
  color: var(--charcoal-text3);
467
493
  }
468
494
 
469
- .c8:-ms-input-placeholder {
495
+ .c10:-ms-input-placeholder {
470
496
  color: var(--charcoal-text3);
471
497
  }
472
498
 
473
- .c8::placeholder {
499
+ .c10::placeholder {
474
500
  color: var(--charcoal-text3);
475
501
  }
476
502
 
477
- .c10 {
503
+ .c12 {
478
504
  line-height: 22px;
479
505
  font-size: 14px;
480
506
  color: var(--charcoal-text3);
481
507
  }
482
508
 
509
+ .c0 {
510
+ display: grid;
511
+ gap: 24px;
512
+ }
513
+
483
514
  <div
484
515
  data-dark={false}
485
516
  >
@@ -487,72 +518,82 @@ exports[`Storyshots TextField Has Affix 1`] = `
487
518
  className="c0"
488
519
  >
489
520
  <div
490
- className="c1 c2"
491
- style={
492
- Object {
493
- "border": 0,
494
- "clip": "rect(0 0 0 0)",
495
- "clipPath": "inset(50%)",
496
- "height": "1px",
497
- "margin": "-1px",
498
- "overflow": "hidden",
499
- "padding": 0,
500
- "position": "absolute",
501
- "whiteSpace": "nowrap",
502
- "width": "1px",
503
- }
504
- }
521
+ className="c1"
505
522
  >
506
- <label
507
- className="c3"
508
- htmlFor="test-id"
509
- id="test-id"
510
- >
511
- Label
512
- </label>
513
523
  <div
514
- className="c4 c5"
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
+ }
515
539
  >
516
- <span />
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>
517
558
  </div>
518
- </div>
519
- <div
520
- className="c6"
521
- >
522
559
  <div
523
- className="c7"
524
- >
525
- /home/john/
526
- </div>
527
- <input
528
- aria-labelledby="test-id"
529
560
  className="c8"
530
- disabled={false}
531
- id="test-id"
532
- maxLength={200}
533
- onChange={[Function]}
534
- placeholder="path/to/your/file"
535
- readOnly={false}
536
- required={false}
537
- type="text"
538
- value=""
539
- />
540
- <span
541
- className="c9"
542
561
  >
543
- .png
544
- <span
562
+ <div
563
+ className="c9"
564
+ >
565
+ /home/john/
566
+ </div>
567
+ <input
568
+ aria-labelledby="test-id"
545
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"
546
582
  >
547
- 0/200
583
+ .png
584
+ <span
585
+ className="c12"
586
+ >
587
+ 0/200
588
+ </span>
548
589
  </span>
549
- </span>
590
+ </div>
550
591
  </div>
551
592
  </div>
552
593
  </div>
553
594
  `;
554
595
 
555
- exports[`Storyshots TextField Has Count 1`] = `
596
+ exports[`Storybook Tests TextField HasCount 1`] = `
556
597
  .c7 {
557
598
  cursor: pointer;
558
599
  -webkit-appearance: none;
@@ -709,12 +750,6 @@ exports[`Storyshots TextField Has Count 1`] = `
709
750
  background-color: var(--charcoal-surface3-hover);
710
751
  }
711
752
 
712
- .c8:not(:disabled):not([aria-disabled]):active,
713
- .c8 [aria-disabled='false']:active {
714
- outline: none;
715
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
716
- }
717
-
718
753
  .c8:focus-within {
719
754
  outline: none;
720
755
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
@@ -860,7 +895,7 @@ exports[`Storyshots TextField Has Count 1`] = `
860
895
  </div>
861
896
  `;
862
897
 
863
- exports[`Storyshots TextField Has Label 1`] = `
898
+ exports[`Storybook Tests TextField HasLabel 1`] = `
864
899
  .c9 {
865
900
  cursor: pointer;
866
901
  -webkit-appearance: none;
@@ -1044,12 +1079,6 @@ exports[`Storyshots TextField Has Label 1`] = `
1044
1079
  background-color: var(--charcoal-surface3-hover);
1045
1080
  }
1046
1081
 
1047
- .c10:not(:disabled):not([aria-disabled]):active,
1048
- .c10 [aria-disabled='false']:active {
1049
- outline: none;
1050
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1051
- }
1052
-
1053
1082
  .c10:focus-within {
1054
1083
  outline: none;
1055
1084
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
@@ -1172,8 +1201,8 @@ exports[`Storyshots TextField Has Label 1`] = `
1172
1201
  </div>
1173
1202
  `;
1174
1203
 
1175
- exports[`Storyshots TextField Prefix Icon 1`] = `
1176
- .c11 {
1204
+ exports[`Storybook Tests TextField Number 1`] = `
1205
+ .c7 {
1177
1206
  cursor: pointer;
1178
1207
  -webkit-appearance: none;
1179
1208
  -moz-appearance: none;
@@ -1197,21 +1226,21 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1197
1226
  text-transform: none;
1198
1227
  }
1199
1228
 
1200
- .c11:disabled,
1201
- .c11[aria-disabled]:not([aria-disabled=false]) {
1229
+ .c7:disabled,
1230
+ .c7[aria-disabled]:not([aria-disabled=false]) {
1202
1231
  cursor: default;
1203
1232
  }
1204
1233
 
1205
- .c11:focus {
1234
+ .c7:focus {
1206
1235
  outline: none;
1207
1236
  }
1208
1237
 
1209
- .c11::-moz-focus-inner {
1238
+ .c7::-moz-focus-inner {
1210
1239
  border-style: none;
1211
1240
  padding: 0;
1212
1241
  }
1213
1242
 
1214
- .c3 {
1243
+ .c4 {
1215
1244
  font-size: 14px;
1216
1245
  line-height: 22px;
1217
1246
  font-weight: bold;
@@ -1219,7 +1248,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1219
1248
  color: var(--charcoal-text1);
1220
1249
  }
1221
1250
 
1222
- .c3::before {
1251
+ .c4::before {
1223
1252
  display: block;
1224
1253
  width: 0;
1225
1254
  height: 0;
@@ -1227,7 +1256,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1227
1256
  margin-top: -4px;
1228
1257
  }
1229
1258
 
1230
- .c3::after {
1259
+ .c4::after {
1231
1260
  display: block;
1232
1261
  width: 0;
1233
1262
  height: 0;
@@ -1235,7 +1264,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1235
1264
  margin-bottom: -4px;
1236
1265
  }
1237
1266
 
1238
- .c5 {
1267
+ .c6 {
1239
1268
  font-size: 14px;
1240
1269
  line-height: 22px;
1241
1270
  display: flow-root;
@@ -1244,7 +1273,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1244
1273
  transition: 0.2s color,0.2s box-shadow;
1245
1274
  }
1246
1275
 
1247
- .c5::before {
1276
+ .c6::before {
1248
1277
  display: block;
1249
1278
  width: 0;
1250
1279
  height: 0;
@@ -1252,7 +1281,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1252
1281
  margin-top: -4px;
1253
1282
  }
1254
1283
 
1255
- .c5::after {
1284
+ .c6::after {
1256
1285
  display: block;
1257
1286
  width: 0;
1258
1287
  height: 0;
@@ -1260,27 +1289,27 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1260
1289
  margin-bottom: -4px;
1261
1290
  }
1262
1291
 
1263
- .c5:not(:disabled):not([aria-disabled]):hover,
1264
- .c5[aria-disabled='false']:hover {
1292
+ .c6:not(:disabled):not([aria-disabled]):hover,
1293
+ .c6[aria-disabled='false']:hover {
1265
1294
  color: var(--charcoal-text3-hover);
1266
1295
  }
1267
1296
 
1268
- .c5:not(:disabled):not([aria-disabled]):active,
1269
- .c5[aria-disabled='false']:active {
1297
+ .c6:not(:disabled):not([aria-disabled]):active,
1298
+ .c6[aria-disabled='false']:active {
1270
1299
  color: var(--charcoal-text3-press);
1271
1300
  }
1272
1301
 
1273
- .c5:not(:disabled):not([aria-disabled]):active,
1274
- .c5[aria-disabled='false']:active,
1275
- .c5:not(:disabled):not([aria-disabled]):focus,
1276
- .c5[aria-disabled='false']:focus,
1277
- .c5:not(:disabled):not([aria-disabled]):focus-visible,
1278
- .c5[aria-disabled='false']:focus-visible {
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 {
1279
1308
  outline: none;
1280
1309
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1281
1310
  }
1282
1311
 
1283
- .c1 {
1312
+ .c2 {
1284
1313
  display: -webkit-inline-box;
1285
1314
  display: -webkit-inline-flex;
1286
1315
  display: -ms-inline-flexbox;
@@ -1291,12 +1320,287 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1291
1320
  align-items: center;
1292
1321
  }
1293
1322
 
1294
- .c1 > .c4 {
1323
+ .c2 > .c5 {
1295
1324
  margin-left: auto;
1296
1325
  }
1297
1326
 
1298
- .c12 {
1299
- -webkit-user-select: none;
1327
+ .c1 {
1328
+ display: -webkit-box;
1329
+ display: -webkit-flex;
1330
+ display: -ms-flexbox;
1331
+ display: flex;
1332
+ -webkit-flex-direction: column;
1333
+ -ms-flex-direction: column;
1334
+ flex-direction: column;
1335
+ }
1336
+
1337
+ .c3 {
1338
+ margin-bottom: 8px;
1339
+ }
1340
+
1341
+ .c8 {
1342
+ display: grid;
1343
+ grid-template-columns: 1fr;
1344
+ height: 40px;
1345
+ -webkit-transition: 0.2s background-color,0.2s box-shadow;
1346
+ transition: 0.2s background-color,0.2s box-shadow;
1347
+ color: var(--charcoal-text2);
1348
+ background-color: var(--charcoal-surface3);
1349
+ border-radius: 4px;
1350
+ gap: 4px;
1351
+ padding: 0 8px;
1352
+ line-height: 22px;
1353
+ font-size: 14px;
1354
+ }
1355
+
1356
+ .c8:not(:disabled):not([aria-disabled]):hover,
1357
+ .c8 [aria-disabled='false']:hover {
1358
+ background-color: var(--charcoal-surface3-hover);
1359
+ }
1360
+
1361
+ .c8:focus-within {
1362
+ outline: none;
1363
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1364
+ }
1365
+
1366
+ .c9 {
1367
+ border: none;
1368
+ box-sizing: border-box;
1369
+ outline: none;
1370
+ font-family: inherit;
1371
+ -webkit-transform-origin: top left;
1372
+ -ms-transform-origin: top left;
1373
+ transform-origin: top left;
1374
+ -webkit-transform: scale(0.875);
1375
+ -ms-transform: scale(0.875);
1376
+ transform: scale(0.875);
1377
+ width: calc(100% / 0.875);
1378
+ height: calc(100% / 0.875);
1379
+ font-size: calc(14px / 0.875);
1380
+ line-height: calc(22px / 0.875);
1381
+ padding-left: 0;
1382
+ padding-right: 0;
1383
+ border-radius: calc(4px / 0.875);
1384
+ -webkit-appearance: none;
1385
+ -moz-appearance: none;
1386
+ appearance: none;
1387
+ background: transparent;
1388
+ color: var(--charcoal-text2);
1389
+ }
1390
+
1391
+ .c9::-webkit-input-placeholder {
1392
+ color: var(--charcoal-text3);
1393
+ }
1394
+
1395
+ .c9::-moz-placeholder {
1396
+ color: var(--charcoal-text3);
1397
+ }
1398
+
1399
+ .c9:-ms-input-placeholder {
1400
+ color: var(--charcoal-text3);
1401
+ }
1402
+
1403
+ .c9::placeholder {
1404
+ color: var(--charcoal-text3);
1405
+ }
1406
+
1407
+ .c0 {
1408
+ display: grid;
1409
+ gap: 24px;
1410
+ }
1411
+
1412
+ <div
1413
+ data-dark={false}
1414
+ >
1415
+ <div
1416
+ className="c0"
1417
+ >
1418
+ <div
1419
+ className="c1"
1420
+ >
1421
+ <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
+ }
1437
+ >
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>
1456
+ </div>
1457
+ <div
1458
+ className="c8"
1459
+ >
1460
+ <input
1461
+ aria-labelledby="test-id"
1462
+ 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>
1474
+ </div>
1475
+ </div>
1476
+ </div>
1477
+ `;
1478
+
1479
+ exports[`Storybook Tests TextField PrefixIcon 1`] = `
1480
+ .c6 {
1481
+ cursor: pointer;
1482
+ -webkit-appearance: none;
1483
+ -moz-appearance: none;
1484
+ appearance: none;
1485
+ background: transparent;
1486
+ padding: 0;
1487
+ border-style: none;
1488
+ outline: none;
1489
+ color: inherit;
1490
+ text-rendering: inherit;
1491
+ -webkit-letter-spacing: inherit;
1492
+ -moz-letter-spacing: inherit;
1493
+ -ms-letter-spacing: inherit;
1494
+ letter-spacing: inherit;
1495
+ word-spacing: inherit;
1496
+ -webkit-text-decoration: none;
1497
+ text-decoration: none;
1498
+ font: inherit;
1499
+ margin: 0;
1500
+ overflow: visible;
1501
+ text-transform: none;
1502
+ }
1503
+
1504
+ .c6:disabled,
1505
+ .c6[aria-disabled]:not([aria-disabled=false]) {
1506
+ cursor: default;
1507
+ }
1508
+
1509
+ .c6:focus {
1510
+ outline: none;
1511
+ }
1512
+
1513
+ .c6::-moz-focus-inner {
1514
+ border-style: none;
1515
+ padding: 0;
1516
+ }
1517
+
1518
+ .c3 {
1519
+ font-size: 14px;
1520
+ line-height: 22px;
1521
+ font-weight: bold;
1522
+ display: flow-root;
1523
+ color: var(--charcoal-text1);
1524
+ }
1525
+
1526
+ .c3::before {
1527
+ display: block;
1528
+ width: 0;
1529
+ height: 0;
1530
+ content: '';
1531
+ margin-top: -4px;
1532
+ }
1533
+
1534
+ .c3::after {
1535
+ display: block;
1536
+ width: 0;
1537
+ height: 0;
1538
+ content: '';
1539
+ margin-bottom: -4px;
1540
+ }
1541
+
1542
+ .c5 {
1543
+ font-size: 14px;
1544
+ line-height: 22px;
1545
+ display: flow-root;
1546
+ color: var(--charcoal-text3);
1547
+ -webkit-transition: 0.2s color,0.2s box-shadow;
1548
+ transition: 0.2s color,0.2s box-shadow;
1549
+ }
1550
+
1551
+ .c5::before {
1552
+ display: block;
1553
+ width: 0;
1554
+ height: 0;
1555
+ content: '';
1556
+ margin-top: -4px;
1557
+ }
1558
+
1559
+ .c5::after {
1560
+ display: block;
1561
+ width: 0;
1562
+ height: 0;
1563
+ content: '';
1564
+ margin-bottom: -4px;
1565
+ }
1566
+
1567
+ .c5:not(:disabled):not([aria-disabled]):hover,
1568
+ .c5[aria-disabled='false']:hover {
1569
+ color: var(--charcoal-text3-hover);
1570
+ }
1571
+
1572
+ .c5:not(:disabled):not([aria-disabled]):active,
1573
+ .c5[aria-disabled='false']:active {
1574
+ color: var(--charcoal-text3-press);
1575
+ }
1576
+
1577
+ .c5:not(:disabled):not([aria-disabled]):active,
1578
+ .c5[aria-disabled='false']:active,
1579
+ .c5:not(:disabled):not([aria-disabled]):focus,
1580
+ .c5[aria-disabled='false']:focus,
1581
+ .c5:not(:disabled):not([aria-disabled]):focus-visible,
1582
+ .c5[aria-disabled='false']:focus-visible {
1583
+ outline: none;
1584
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1585
+ }
1586
+
1587
+ .c1 {
1588
+ display: -webkit-inline-box;
1589
+ display: -webkit-inline-flex;
1590
+ display: -ms-inline-flexbox;
1591
+ display: inline-flex;
1592
+ -webkit-align-items: center;
1593
+ -webkit-box-align: center;
1594
+ -ms-flex-align: center;
1595
+ align-items: center;
1596
+ }
1597
+
1598
+ .c1 > .c4 {
1599
+ margin-left: auto;
1600
+ }
1601
+
1602
+ .c12 {
1603
+ -webkit-user-select: none;
1300
1604
  -moz-user-select: none;
1301
1605
  -ms-user-select: none;
1302
1606
  user-select: none;
@@ -1323,21 +1627,29 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1323
1627
 
1324
1628
  .c12:not(:disabled):not([aria-disabled]):hover,
1325
1629
  .c12[aria-disabled='false']:hover {
1326
- background-color: var( --charcoal-surface4-hover );
1630
+ color: var(--charcoal-text5-hover);
1631
+ background-color: var(--charcoal-surface4-hover);
1327
1632
  }
1328
1633
 
1329
1634
  .c12:not(:disabled):not([aria-disabled]):active,
1330
1635
  .c12[aria-disabled='false']:active {
1331
- background-color: var( --charcoal-surface4-press );
1636
+ color: var(--charcoal-text5-press);
1637
+ background-color: var(--charcoal-surface4-press);
1332
1638
  }
1333
1639
 
1334
1640
  .c12:not(:disabled):not([aria-disabled]):focus,
1335
- .c12[aria-disabled='false']:focus,
1336
- .c12:not(:disabled):not([aria-disabled]):active,
1337
- .c12[aria-disabled='false']:active,
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
+
1338
1651
  .c12:not(:disabled):not([aria-disabled]):focus-visible,
1339
1652
  .c12[aria-disabled='false']:focus-visible {
1340
- outline: none;
1341
1653
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1342
1654
  }
1343
1655
 
@@ -1360,7 +1672,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1360
1672
  margin-bottom: 8px;
1361
1673
  }
1362
1674
 
1363
- .c6 {
1675
+ .c7 {
1364
1676
  display: grid;
1365
1677
  grid-template-columns: auto 1fr auto;
1366
1678
  height: 40px;
@@ -1375,23 +1687,17 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1375
1687
  font-size: 14px;
1376
1688
  }
1377
1689
 
1378
- .c6:not(:disabled):not([aria-disabled]):hover,
1379
- .c6 [aria-disabled='false']:hover {
1690
+ .c7:not(:disabled):not([aria-disabled]):hover,
1691
+ .c7 [aria-disabled='false']:hover {
1380
1692
  background-color: var(--charcoal-surface3-hover);
1381
1693
  }
1382
1694
 
1383
- .c6:not(:disabled):not([aria-disabled]):active,
1384
- .c6 [aria-disabled='false']:active {
1385
- outline: none;
1386
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1387
- }
1388
-
1389
- .c6:focus-within {
1695
+ .c7:focus-within {
1390
1696
  outline: none;
1391
1697
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1392
1698
  }
1393
1699
 
1394
- .c7 {
1700
+ .c8 {
1395
1701
  display: -webkit-box;
1396
1702
  display: -webkit-flex;
1397
1703
  display: -ms-flexbox;
@@ -1402,7 +1708,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1402
1708
  align-items: center;
1403
1709
  }
1404
1710
 
1405
- .c10 {
1711
+ .c11 {
1406
1712
  display: -webkit-box;
1407
1713
  display: -webkit-flex;
1408
1714
  display: -ms-flexbox;
@@ -1414,7 +1720,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1414
1720
  gap: 8px;
1415
1721
  }
1416
1722
 
1417
- .c9 {
1723
+ .c10 {
1418
1724
  border: none;
1419
1725
  box-sizing: border-box;
1420
1726
  outline: none;
@@ -1439,23 +1745,23 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1439
1745
  color: var(--charcoal-text2);
1440
1746
  }
1441
1747
 
1442
- .c9::-webkit-input-placeholder {
1748
+ .c10::-webkit-input-placeholder {
1443
1749
  color: var(--charcoal-text3);
1444
1750
  }
1445
1751
 
1446
- .c9::-moz-placeholder {
1752
+ .c10::-moz-placeholder {
1447
1753
  color: var(--charcoal-text3);
1448
1754
  }
1449
1755
 
1450
- .c9:-ms-input-placeholder {
1756
+ .c10:-ms-input-placeholder {
1451
1757
  color: var(--charcoal-text3);
1452
1758
  }
1453
1759
 
1454
- .c9::placeholder {
1760
+ .c10::placeholder {
1455
1761
  color: var(--charcoal-text3);
1456
1762
  }
1457
1763
 
1458
- .c8 {
1764
+ .c9 {
1459
1765
  display: -webkit-box;
1460
1766
  display: -webkit-flex;
1461
1767
  display: -ms-flexbox;
@@ -1500,17 +1806,23 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1500
1806
  <div
1501
1807
  className="c4 c5"
1502
1808
  >
1503
- <span />
1809
+ <span>
1810
+ <button
1811
+ className="c6"
1812
+ >
1813
+ Text Link
1814
+ </button>
1815
+ </span>
1504
1816
  </div>
1505
1817
  </div>
1506
1818
  <div
1507
- className="c6"
1819
+ className="c7"
1508
1820
  >
1509
1821
  <div
1510
- className="c7"
1822
+ className="c8"
1511
1823
  >
1512
1824
  <div
1513
- className="c8"
1825
+ className="c9"
1514
1826
  >
1515
1827
  <pixiv-icon
1516
1828
  name="16/Search"
@@ -1519,7 +1831,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1519
1831
  </div>
1520
1832
  <input
1521
1833
  aria-labelledby="test-id"
1522
- className="c9"
1834
+ className="c10"
1523
1835
  disabled={false}
1524
1836
  id="test-id"
1525
1837
  onChange={[Function]}
@@ -1530,10 +1842,10 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
1530
1842
  value=""
1531
1843
  />
1532
1844
  <span
1533
- className="c10"
1845
+ className="c11"
1534
1846
  >
1535
1847
  <button
1536
- className="c11 c12"
1848
+ className="c6 c12"
1537
1849
  onClick={[Function]}
1538
1850
  >
1539
1851
  <pixiv-icon