@charcoal-ui/react 4.0.0-beta.0 → 4.0.0-beta.11

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 (265) hide show
  1. package/README.md +1 -1
  2. package/dist/_lib/compat.d.ts +0 -12
  3. package/dist/_lib/compat.d.ts.map +1 -1
  4. package/dist/_lib/createDivComponent.d.ts +4 -0
  5. package/dist/_lib/createDivComponent.d.ts.map +1 -0
  6. package/dist/_lib/useClassNames.d.ts +2 -2
  7. package/dist/_lib/useClassNames.d.ts.map +1 -1
  8. package/dist/components/Button/index.d.ts +5 -1
  9. package/dist/components/Button/index.d.ts.map +1 -1
  10. package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
  11. package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
  12. package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
  13. package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
  14. package/dist/components/Checkbox/index.d.ts +12 -21
  15. package/dist/components/Checkbox/index.d.ts.map +1 -1
  16. package/dist/components/Clickable/index.d.ts +9 -15
  17. package/dist/components/Clickable/index.d.ts.map +1 -1
  18. package/dist/components/DropdownSelector/Divider/index.d.ts +3 -0
  19. package/dist/components/DropdownSelector/Divider/index.d.ts.map +1 -0
  20. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts +8 -0
  21. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -0
  22. package/dist/components/DropdownSelector/DropdownPopover.d.ts.map +1 -1
  23. package/dist/components/DropdownSelector/ListItem/index.d.ts +5 -13
  24. package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
  25. package/dist/components/DropdownSelector/MenuItem/index.d.ts +10 -3
  26. package/dist/components/DropdownSelector/MenuItem/index.d.ts.map +1 -1
  27. package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts +1 -1
  28. package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts.map +1 -1
  29. package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts +1 -3
  30. package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts.map +1 -1
  31. package/dist/components/DropdownSelector/MenuList/index.d.ts +1 -4
  32. package/dist/components/DropdownSelector/MenuList/index.d.ts.map +1 -1
  33. package/dist/components/DropdownSelector/Popover/index.d.ts +2 -2
  34. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  35. package/dist/components/DropdownSelector/index.d.ts +3 -1
  36. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  37. package/dist/components/FieldLabel/index.d.ts +1 -0
  38. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  39. package/dist/components/IconButton/index.d.ts +7 -5
  40. package/dist/components/IconButton/index.d.ts.map +1 -1
  41. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  42. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  43. package/dist/components/Modal/Dialog/index.d.ts +6 -24
  44. package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
  45. package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
  46. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  47. package/dist/components/Modal/index.d.ts +6 -2
  48. package/dist/components/Modal/index.d.ts.map +1 -1
  49. package/dist/components/Modal/useCustomModalOverlay.d.ts +1 -0
  50. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  51. package/dist/components/Radio/RadioGroup/index.d.ts +20 -0
  52. package/dist/components/Radio/RadioGroup/index.d.ts.map +1 -0
  53. package/dist/components/Radio/RadioGroupContext.d.ts +11 -0
  54. package/dist/components/Radio/RadioGroupContext.d.ts.map +1 -0
  55. package/dist/components/Radio/RadioInput/index.d.ts +10 -0
  56. package/dist/components/Radio/RadioInput/index.d.ts.map +1 -0
  57. package/dist/components/Radio/index.d.ts +1 -14
  58. package/dist/components/Radio/index.d.ts.map +1 -1
  59. package/dist/components/SegmentedControl/index.d.ts +1 -0
  60. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  61. package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
  62. package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
  63. package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
  64. package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
  65. package/dist/components/Switch/index.d.ts +4 -15
  66. package/dist/components/Switch/index.d.ts.map +1 -1
  67. package/dist/components/TagItem/index.d.ts +10 -15
  68. package/dist/components/TagItem/index.d.ts.map +1 -1
  69. package/dist/components/TextArea/index.d.ts +29 -18
  70. package/dist/components/TextArea/index.d.ts.map +1 -1
  71. package/dist/components/TextField/AssistiveText/index.d.ts +5 -0
  72. package/dist/components/TextField/AssistiveText/index.d.ts.map +1 -0
  73. package/dist/components/TextField/index.d.ts +33 -22
  74. package/dist/components/TextField/index.d.ts.map +1 -1
  75. package/dist/core/CharcoalProvider.d.ts +4 -11
  76. package/dist/core/CharcoalProvider.d.ts.map +1 -1
  77. package/dist/core/SSRProvider.d.ts +3 -1
  78. package/dist/core/SSRProvider.d.ts.map +1 -1
  79. package/dist/index.cjs.js +576 -1255
  80. package/dist/index.cjs.js.map +1 -1
  81. package/dist/index.css +1097 -3
  82. package/dist/index.css.map +1 -1
  83. package/dist/index.d.ts +4 -5
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.esm.js +555 -1231
  86. package/dist/index.esm.js.map +1 -1
  87. package/package.json +25 -23
  88. package/src/README.mdx +68 -0
  89. package/src/SSR.mdx +67 -0
  90. package/src/_lib/compat.ts +0 -11
  91. package/src/_lib/createDivComponent.tsx +11 -0
  92. package/src/_lib/useClassNames.ts +3 -9
  93. package/src/components/Button/__snapshots__/index.story.storyshot +18 -56
  94. package/src/components/Button/index.css +2 -3
  95. package/src/components/Button/index.story.tsx +14 -67
  96. package/src/components/Button/index.tsx +7 -3
  97. package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +77 -0
  98. package/src/components/Checkbox/CheckboxInput/index.css +110 -0
  99. package/src/components/Checkbox/CheckboxInput/index.story.tsx +51 -0
  100. package/src/components/Checkbox/CheckboxInput/index.tsx +47 -0
  101. package/src/components/Checkbox/CheckboxWithLabel.tsx +24 -0
  102. package/src/components/Checkbox/__snapshots__/index.story.storyshot +103 -538
  103. package/src/components/Checkbox/index.css +21 -0
  104. package/src/components/Checkbox/index.story.tsx +49 -79
  105. package/src/components/Checkbox/index.tsx +32 -162
  106. package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -80
  107. package/src/components/Clickable/index.css +41 -0
  108. package/src/components/Clickable/index.story.tsx +2 -2
  109. package/src/components/Clickable/index.tsx +19 -84
  110. package/src/components/DropdownSelector/Divider/index.css +11 -0
  111. package/src/components/DropdownSelector/Divider/index.tsx +5 -0
  112. package/src/components/DropdownSelector/DropdownMenuItem/index.css +20 -0
  113. package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +34 -0
  114. package/src/components/DropdownSelector/DropdownPopover.tsx +16 -9
  115. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +41 -224
  116. package/src/components/DropdownSelector/ListItem/index.css +24 -0
  117. package/src/components/DropdownSelector/ListItem/index.story.tsx +12 -6
  118. package/src/components/DropdownSelector/ListItem/index.tsx +14 -53
  119. package/src/components/DropdownSelector/MenuItem/index.tsx +17 -12
  120. package/src/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.tsx +2 -2
  121. package/src/components/DropdownSelector/MenuItemGroup/index.css +19 -0
  122. package/src/components/DropdownSelector/MenuItemGroup/index.tsx +6 -28
  123. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +162 -416
  124. package/src/components/DropdownSelector/MenuList/index.css +4 -0
  125. package/src/components/DropdownSelector/MenuList/index.story.tsx +1 -1
  126. package/src/components/DropdownSelector/MenuList/index.tsx +4 -12
  127. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +5 -5
  128. package/src/components/DropdownSelector/Popover/index.css +11 -0
  129. package/src/components/DropdownSelector/Popover/index.story.tsx +1 -1
  130. package/src/components/DropdownSelector/Popover/index.tsx +7 -17
  131. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +468 -2494
  132. package/src/components/DropdownSelector/index.css +84 -0
  133. package/src/components/DropdownSelector/index.story.tsx +2 -6
  134. package/src/components/DropdownSelector/index.tsx +61 -137
  135. package/src/components/FieldLabel/index.css +35 -0
  136. package/src/components/FieldLabel/index.tsx +15 -105
  137. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  138. package/src/components/Icon/index.story.tsx +1 -1
  139. package/src/components/IconButton/__snapshots__/index.story.storyshot +19 -297
  140. package/src/components/IconButton/index.css +118 -0
  141. package/src/components/IconButton/index.story.tsx +17 -40
  142. package/src/components/IconButton/index.tsx +41 -118
  143. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
  144. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +80 -30
  145. package/src/components/LoadingSpinner/index.css +42 -0
  146. package/src/components/LoadingSpinner/index.story.tsx +19 -8
  147. package/src/components/LoadingSpinner/index.tsx +26 -52
  148. package/src/components/Modal/Dialog/index.css +44 -0
  149. package/src/components/Modal/Dialog/index.tsx +14 -57
  150. package/src/components/Modal/ModalPlumbing.css +40 -0
  151. package/src/components/Modal/ModalPlumbing.tsx +13 -61
  152. package/src/components/Modal/__snapshots__/index.story.storyshot +281 -2221
  153. package/src/components/Modal/index.css +36 -0
  154. package/src/components/Modal/index.story.tsx +26 -13
  155. package/src/components/Modal/index.tsx +42 -78
  156. package/src/components/Modal/useCustomModalOverlay.tsx +19 -4
  157. package/src/components/Radio/RadioGroup/index.css +5 -0
  158. package/src/components/Radio/RadioGroup/index.tsx +80 -0
  159. package/src/components/Radio/RadioGroupContext.ts +23 -0
  160. package/src/components/Radio/RadioInput/index.css +82 -0
  161. package/src/components/Radio/RadioInput/index.tsx +41 -0
  162. package/src/components/Radio/__snapshots__/index.story.storyshot +111 -855
  163. package/src/components/Radio/index.css +18 -0
  164. package/src/components/Radio/index.story.tsx +47 -40
  165. package/src/components/Radio/index.test.tsx +18 -26
  166. package/src/components/Radio/index.tsx +16 -208
  167. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +32 -262
  168. package/src/components/SegmentedControl/index.css +50 -0
  169. package/src/components/SegmentedControl/index.story.tsx +1 -1
  170. package/src/components/SegmentedControl/index.tsx +20 -89
  171. package/src/components/Switch/SwitchInput/index.css +82 -0
  172. package/src/components/Switch/SwitchInput/index.tsx +40 -0
  173. package/src/components/Switch/SwitchWithLabel.tsx +24 -0
  174. package/src/components/Switch/__snapshots__/index.story.storyshot +35 -539
  175. package/src/components/Switch/index.css +23 -0
  176. package/src/components/Switch/index.story.tsx +16 -19
  177. package/src/components/Switch/index.tsx +43 -140
  178. package/src/components/TagItem/__snapshots__/index.story.storyshot +212 -1063
  179. package/src/components/TagItem/index.css +140 -0
  180. package/src/components/TagItem/index.story.tsx +45 -162
  181. package/src/components/TagItem/index.tsx +72 -220
  182. package/src/components/TextArea/TextArea.story.tsx +63 -25
  183. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +615 -1055
  184. package/src/components/TextArea/index.css +78 -0
  185. package/src/components/TextArea/index.tsx +83 -174
  186. package/src/components/TextField/AssistiveText/index.css +10 -0
  187. package/src/components/TextField/AssistiveText/index.tsx +6 -0
  188. package/src/components/TextField/TextField.story.tsx +85 -76
  189. package/src/components/TextField/__snapshots__/TextField.story.storyshot +632 -1710
  190. package/src/components/TextField/index.css +87 -0
  191. package/src/components/TextField/index.tsx +92 -211
  192. package/src/core/CharcoalProvider.tsx +5 -29
  193. package/src/core/SSRProvider.tsx +12 -1
  194. package/src/index.ts +7 -19
  195. package/src/type.d.ts +3 -8
  196. package/dist/components/Button/index.story.d.ts +0 -24
  197. package/dist/components/Button/index.story.d.ts.map +0 -1
  198. package/dist/components/Checkbox/index.story.d.ts +0 -8
  199. package/dist/components/Checkbox/index.story.d.ts.map +0 -1
  200. package/dist/components/Clickable/index.story.d.ts +0 -6
  201. package/dist/components/Clickable/index.story.d.ts.map +0 -1
  202. package/dist/components/DropdownSelector/Divider.d.ts +0 -7
  203. package/dist/components/DropdownSelector/Divider.d.ts.map +0 -1
  204. package/dist/components/DropdownSelector/DropdownMenuItem.d.ts +0 -7
  205. package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +0 -1
  206. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
  207. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
  208. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
  209. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
  210. package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
  211. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
  212. package/dist/components/DropdownSelector/index.story.d.ts +0 -19
  213. package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
  214. package/dist/components/Icon/index.story.d.ts +0 -6
  215. package/dist/components/Icon/index.story.d.ts.map +0 -1
  216. package/dist/components/IconButton/index.story.d.ts +0 -9
  217. package/dist/components/IconButton/index.story.d.ts.map +0 -1
  218. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
  219. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
  220. package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
  221. package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
  222. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts +0 -4
  223. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts.map +0 -1
  224. package/dist/components/Modal/index.story.d.ts +0 -21
  225. package/dist/components/Modal/index.story.d.ts.map +0 -1
  226. package/dist/components/MultiSelect/context.d.ts +0 -14
  227. package/dist/components/MultiSelect/context.d.ts.map +0 -1
  228. package/dist/components/MultiSelect/index.d.ts +0 -36
  229. package/dist/components/MultiSelect/index.d.ts.map +0 -1
  230. package/dist/components/MultiSelect/index.story.d.ts +0 -82
  231. package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
  232. package/dist/components/MultiSelect/index.test.d.ts +0 -2
  233. package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
  234. package/dist/components/Radio/index.story.d.ts +0 -26
  235. package/dist/components/Radio/index.story.d.ts.map +0 -1
  236. package/dist/components/Radio/index.test.d.ts +0 -2
  237. package/dist/components/Radio/index.test.d.ts.map +0 -1
  238. package/dist/components/SegmentedControl/index.story.d.ts +0 -7
  239. package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
  240. package/dist/components/Switch/index.story.d.ts +0 -9
  241. package/dist/components/Switch/index.story.d.ts.map +0 -1
  242. package/dist/components/TagItem/index.story.d.ts +0 -16
  243. package/dist/components/TagItem/index.story.d.ts.map +0 -1
  244. package/dist/components/TextArea/TextArea.story.d.ts +0 -9
  245. package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
  246. package/dist/components/TextField/TextField.story.d.ts +0 -22
  247. package/dist/components/TextField/TextField.story.d.ts.map +0 -1
  248. package/dist/components/a11y.test.d.ts +0 -2
  249. package/dist/components/a11y.test.d.ts.map +0 -1
  250. package/dist/core/ComponentAbstraction.d.ts +0 -24
  251. package/dist/core/ComponentAbstraction.d.ts.map +0 -1
  252. package/dist/styled.d.ts +0 -95
  253. package/dist/styled.d.ts.map +0 -1
  254. package/src/components/DropdownSelector/Divider.tsx +0 -16
  255. package/src/components/DropdownSelector/DropdownMenuItem.tsx +0 -43
  256. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
  257. package/src/components/Modal/__stories__/InternalScrollStory.tsx +0 -75
  258. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1066
  259. package/src/components/MultiSelect/context.ts +0 -23
  260. package/src/components/MultiSelect/index.story.tsx +0 -216
  261. package/src/components/MultiSelect/index.test.tsx +0 -263
  262. package/src/components/MultiSelect/index.tsx +0 -281
  263. package/src/components/a11y.test.tsx +0 -99
  264. package/src/core/ComponentAbstraction.tsx +0 -48
  265. package/src/styled.ts +0 -3
@@ -1,131 +1,52 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storybook Tests DropdownSelector AssistiveText 1`] = `
4
- .c0 {
5
- display: inline-block;
6
- width: 100%;
7
- }
8
-
9
- .c0:disabled,
10
- .c0[aria-disabled]:not([aria-disabled=false]) {
11
- cursor: default;
12
- opacity: 0.32;
13
- }
14
-
15
- .c1 {
16
- display: -webkit-box;
17
- display: -webkit-flex;
18
- display: -ms-flexbox;
19
- display: flex;
20
- -webkit-box-pack: justify;
21
- -webkit-justify-content: space-between;
22
- -ms-flex-pack: justify;
23
- justify-content: space-between;
24
- -webkit-align-items: center;
25
- -webkit-box-align: center;
26
- -ms-flex-align: center;
27
- align-items: center;
28
- height: 40px;
29
- width: 100%;
30
- box-sizing: border-box;
31
- border: none;
32
- cursor: pointer;
33
- gap: 4px;
34
- padding-right: 8px;
35
- padding-left: 8px;
36
- background-color: var(--charcoal-surface3);
37
- border-radius: 4px;
38
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
39
- transition: 0.2s box-shadow,0.2s background-color;
40
- }
41
-
42
- .c1:disabled,
43
- .c1[aria-disabled]:not([aria-disabled=false]) {
44
- cursor: default;
45
- }
46
-
47
- .c1:not(:disabled):not([aria-disabled]):focus,
48
- .c1[aria-disabled='false']:focus {
49
- outline: none;
50
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
51
- }
52
-
53
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
54
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
55
- box-shadow: none;
56
- }
57
-
58
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
59
- .c1[aria-disabled='false']:focus-visible {
60
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
61
- }
62
-
63
- .c1:not(:disabled):not([aria-disabled]):hover,
64
- .c1[aria-disabled='false']:hover {
65
- background-color: var(--charcoal-surface3-hover);
66
- }
67
-
68
- .c1:not(:disabled):not([aria-disabled]):active,
69
- .c1[aria-disabled='false']:active {
70
- background-color: var(--charcoal-surface3-press);
71
- }
72
-
73
- .c2 {
74
- text-align: left;
75
- font-size: 14px;
76
- line-height: 22px;
77
- display: flow-root;
78
- color: var(--charcoal-text2);
79
- overflow: hidden;
80
- text-overflow: ellipsis;
81
- white-space: nowrap;
82
- }
83
-
84
- .c3 {
85
- color: var(--charcoal-text2);
86
- }
87
-
88
- .c4 {
89
- margin-top: 8px;
90
- font-size: 14px;
91
- color: var(--charcoal-text2);
92
- line-height: 22px;
93
- display: flow-root;
94
- }
95
-
96
- .c4::before {
97
- display: block;
98
- width: 0;
99
- height: 0;
100
- content: '';
101
- margin-top: -4px;
102
- }
103
-
104
- .c4::after {
105
- display: block;
106
- width: 0;
107
- height: 0;
108
- content: '';
109
- margin-bottom: -4px;
110
- }
111
-
3
+ exports[`Storybook Tests react/DropdownSelector AssistiveText 1`] = `
112
4
  <div
113
5
  data-dark={false}
114
6
  >
115
7
  <div
116
8
  style={
117
- Object {
9
+ {
118
10
  "width": 288,
119
11
  }
120
12
  }
121
13
  >
122
14
  <div
123
- className="c0"
15
+ className="charcoal-dropdown-selector-root"
124
16
  >
17
+ <div
18
+ className="charcoal-field-label-root"
19
+ style={
20
+ {
21
+ "border": 0,
22
+ "clip": "rect(0 0 0 0)",
23
+ "clipPath": "inset(50%)",
24
+ "height": "1px",
25
+ "margin": "-1px",
26
+ "overflow": "hidden",
27
+ "padding": 0,
28
+ "position": "absolute",
29
+ "whiteSpace": "nowrap",
30
+ "width": "1px",
31
+ }
32
+ }
33
+ >
34
+ <label
35
+ className="charcoal-field-label"
36
+ id="test-id"
37
+ >
38
+ Label
39
+ </label>
40
+ <div
41
+ className="charcoal-field-label-sub-label"
42
+ >
43
+ <span />
44
+ </div>
45
+ </div>
125
46
  <div
126
47
  aria-hidden="true"
127
48
  style={
128
- Object {
49
+ {
129
50
  "border": 0,
130
51
  "clip": "rect(0 0 0 0)",
131
52
  "clipPath": "inset(50%)",
@@ -140,6 +61,7 @@ exports[`Storybook Tests DropdownSelector AssistiveText 1`] = `
140
61
  }
141
62
  >
142
63
  <select
64
+ onChange={[Function]}
143
65
  tabIndex={-1}
144
66
  value="1"
145
67
  >
@@ -161,22 +83,28 @@ exports[`Storybook Tests DropdownSelector AssistiveText 1`] = `
161
83
  </select>
162
84
  </div>
163
85
  <button
164
- className="c1"
86
+ aria-describedby="test-id"
87
+ aria-labelledby="test-id"
88
+ className="charcoal-dropdown-selector-button"
89
+ data-active={false}
165
90
  onClick={[Function]}
166
91
  type="button"
167
92
  >
168
93
  <span
169
- className="c2"
94
+ className="charcoal-ui-dropdown-selector-text"
95
+ data-placeholder={false}
170
96
  >
171
97
  Option 1
172
98
  </span>
173
99
  <pixiv-icon
174
- class="c3"
100
+ class="charcoal-ui-dropdown-selector-icon"
175
101
  name="16/Menu"
176
102
  />
177
103
  </button>
178
104
  <div
179
- className="c4"
105
+ className="charcoal-text-field-assistive-text"
106
+ data-invalid={false}
107
+ id="test-id"
180
108
  >
181
109
  assistiveText
182
110
  </div>
@@ -185,108 +113,53 @@ exports[`Storybook Tests DropdownSelector AssistiveText 1`] = `
185
113
  </div>
186
114
  `;
187
115
 
188
- exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
189
- .c0 {
190
- display: inline-block;
191
- width: 100%;
192
- }
193
-
194
- .c0:disabled,
195
- .c0[aria-disabled]:not([aria-disabled=false]) {
196
- cursor: default;
197
- opacity: 0.32;
198
- }
199
-
200
- .c1 {
201
- display: -webkit-box;
202
- display: -webkit-flex;
203
- display: -ms-flexbox;
204
- display: flex;
205
- -webkit-box-pack: justify;
206
- -webkit-justify-content: space-between;
207
- -ms-flex-pack: justify;
208
- justify-content: space-between;
209
- -webkit-align-items: center;
210
- -webkit-box-align: center;
211
- -ms-flex-align: center;
212
- align-items: center;
213
- height: 40px;
214
- width: 100%;
215
- box-sizing: border-box;
216
- border: none;
217
- cursor: pointer;
218
- gap: 4px;
219
- padding-right: 8px;
220
- padding-left: 8px;
221
- background-color: var(--charcoal-surface3);
222
- border-radius: 4px;
223
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
224
- transition: 0.2s box-shadow,0.2s background-color;
225
- }
226
-
227
- .c1:disabled,
228
- .c1[aria-disabled]:not([aria-disabled=false]) {
229
- cursor: default;
230
- }
231
-
232
- .c1:not(:disabled):not([aria-disabled]):focus,
233
- .c1[aria-disabled='false']:focus {
234
- outline: none;
235
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
236
- }
237
-
238
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
239
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
240
- box-shadow: none;
241
- }
242
-
243
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
244
- .c1[aria-disabled='false']:focus-visible {
245
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
246
- }
247
-
248
- .c1:not(:disabled):not([aria-disabled]):hover,
249
- .c1[aria-disabled='false']:hover {
250
- background-color: var(--charcoal-surface3-hover);
251
- }
252
-
253
- .c1:not(:disabled):not([aria-disabled]):active,
254
- .c1[aria-disabled='false']:active {
255
- background-color: var(--charcoal-surface3-press);
256
- }
257
-
258
- .c2 {
259
- text-align: left;
260
- font-size: 14px;
261
- line-height: 22px;
262
- display: flow-root;
263
- color: var(--charcoal-text2);
264
- overflow: hidden;
265
- text-overflow: ellipsis;
266
- white-space: nowrap;
267
- }
268
-
269
- .c3 {
270
- color: var(--charcoal-text2);
271
- }
272
-
116
+ exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
273
117
  <div
274
118
  data-dark={false}
275
119
  >
276
120
  <div
277
121
  style={
278
- Object {
122
+ {
279
123
  "width": 288,
280
124
  }
281
125
  }
282
126
  >
283
127
  <div
284
- className="c0"
128
+ className="charcoal-dropdown-selector-root"
285
129
  >
130
+ <div
131
+ className="charcoal-field-label-root"
132
+ style={
133
+ {
134
+ "border": 0,
135
+ "clip": "rect(0 0 0 0)",
136
+ "clipPath": "inset(50%)",
137
+ "height": "1px",
138
+ "margin": "-1px",
139
+ "overflow": "hidden",
140
+ "padding": 0,
141
+ "position": "absolute",
142
+ "whiteSpace": "nowrap",
143
+ "width": "1px",
144
+ }
145
+ }
146
+ >
147
+ <label
148
+ className="charcoal-field-label"
149
+ id="test-id"
150
+ >
151
+ label
152
+ </label>
153
+ <div
154
+ className="charcoal-field-label-sub-label"
155
+ >
156
+ <span />
157
+ </div>
158
+ </div>
286
159
  <div
287
160
  aria-hidden="true"
288
161
  style={
289
- Object {
162
+ {
290
163
  "border": 0,
291
164
  "clip": "rect(0 0 0 0)",
292
165
  "clipPath": "inset(50%)",
@@ -301,6 +174,7 @@ exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
301
174
  }
302
175
  >
303
176
  <select
177
+ onChange={[Function]}
304
178
  tabIndex={-1}
305
179
  value="bold"
306
180
  >
@@ -322,16 +196,19 @@ exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
322
196
  </select>
323
197
  </div>
324
198
  <button
325
- className="c1"
199
+ aria-labelledby="test-id"
200
+ className="charcoal-dropdown-selector-button"
201
+ data-active={false}
326
202
  onClick={[Function]}
327
203
  type="button"
328
204
  >
329
205
  <span
330
- className="c2"
206
+ className="charcoal-ui-dropdown-selector-text"
207
+ data-placeholder={false}
331
208
  >
332
209
  <div
333
210
  style={
334
- Object {
211
+ {
335
212
  "fontWeight": "bold",
336
213
  }
337
214
  }
@@ -340,7 +217,7 @@ exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
340
217
  </div>
341
218
  </span>
342
219
  <pixiv-icon
343
- class="c3"
220
+ class="charcoal-ui-dropdown-selector-icon"
344
221
  name="16/Menu"
345
222
  />
346
223
  </button>
@@ -349,108 +226,51 @@ exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
349
226
  </div>
350
227
  `;
351
228
 
352
- exports[`Storybook Tests DropdownSelector Default 1`] = `
353
- .c0 {
354
- display: inline-block;
355
- width: 100%;
356
- }
357
-
358
- .c0:disabled,
359
- .c0[aria-disabled]:not([aria-disabled=false]) {
360
- cursor: default;
361
- opacity: 0.32;
362
- }
363
-
364
- .c1 {
365
- display: -webkit-box;
366
- display: -webkit-flex;
367
- display: -ms-flexbox;
368
- display: flex;
369
- -webkit-box-pack: justify;
370
- -webkit-justify-content: space-between;
371
- -ms-flex-pack: justify;
372
- justify-content: space-between;
373
- -webkit-align-items: center;
374
- -webkit-box-align: center;
375
- -ms-flex-align: center;
376
- align-items: center;
377
- height: 40px;
378
- width: 100%;
379
- box-sizing: border-box;
380
- border: none;
381
- cursor: pointer;
382
- gap: 4px;
383
- padding-right: 8px;
384
- padding-left: 8px;
385
- background-color: var(--charcoal-surface3);
386
- border-radius: 4px;
387
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
388
- transition: 0.2s box-shadow,0.2s background-color;
389
- }
390
-
391
- .c1:disabled,
392
- .c1[aria-disabled]:not([aria-disabled=false]) {
393
- cursor: default;
394
- }
395
-
396
- .c1:not(:disabled):not([aria-disabled]):focus,
397
- .c1[aria-disabled='false']:focus {
398
- outline: none;
399
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
400
- }
401
-
402
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
403
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
404
- box-shadow: none;
405
- }
406
-
407
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
408
- .c1[aria-disabled='false']:focus-visible {
409
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
410
- }
411
-
412
- .c1:not(:disabled):not([aria-disabled]):hover,
413
- .c1[aria-disabled='false']:hover {
414
- background-color: var(--charcoal-surface3-hover);
415
- }
416
-
417
- .c1:not(:disabled):not([aria-disabled]):active,
418
- .c1[aria-disabled='false']:active {
419
- background-color: var(--charcoal-surface3-press);
420
- }
421
-
422
- .c2 {
423
- text-align: left;
424
- font-size: 14px;
425
- line-height: 22px;
426
- display: flow-root;
427
- color: var(--charcoal-text3);
428
- overflow: hidden;
429
- text-overflow: ellipsis;
430
- white-space: nowrap;
431
- }
432
-
433
- .c3 {
434
- color: var(--charcoal-text2);
435
- }
436
-
229
+ exports[`Storybook Tests react/DropdownSelector Default 1`] = `
437
230
  <div
438
231
  data-dark={false}
439
232
  >
440
233
  <div
441
234
  style={
442
- Object {
235
+ {
443
236
  "width": 288,
444
237
  }
445
238
  }
446
239
  >
447
240
  <div
448
- className="c0"
241
+ className="charcoal-dropdown-selector-root"
449
242
  >
243
+ <div
244
+ className="charcoal-field-label-root"
245
+ style={
246
+ {
247
+ "border": 0,
248
+ "clip": "rect(0 0 0 0)",
249
+ "clipPath": "inset(50%)",
250
+ "height": "1px",
251
+ "margin": "-1px",
252
+ "overflow": "hidden",
253
+ "padding": 0,
254
+ "position": "absolute",
255
+ "whiteSpace": "nowrap",
256
+ "width": "1px",
257
+ }
258
+ }
259
+ >
260
+ <label
261
+ className="charcoal-field-label"
262
+ id="test-id"
263
+ />
264
+ <div
265
+ className="charcoal-field-label-sub-label"
266
+ >
267
+ <span />
268
+ </div>
269
+ </div>
450
270
  <div
451
271
  aria-hidden="true"
452
272
  style={
453
- Object {
273
+ {
454
274
  "border": 0,
455
275
  "clip": "rect(0 0 0 0)",
456
276
  "clipPath": "inset(50%)",
@@ -465,6 +285,7 @@ exports[`Storybook Tests DropdownSelector Default 1`] = `
465
285
  }
466
286
  >
467
287
  <select
288
+ onChange={[Function]}
468
289
  tabIndex={-1}
469
290
  value=""
470
291
  >
@@ -486,17 +307,18 @@ exports[`Storybook Tests DropdownSelector Default 1`] = `
486
307
  </select>
487
308
  </div>
488
309
  <button
489
- className="c1"
310
+ aria-labelledby="test-id"
311
+ className="charcoal-dropdown-selector-button"
312
+ data-active={false}
490
313
  onClick={[Function]}
491
314
  type="button"
492
315
  >
493
316
  <span
494
- className="c2"
495
- >
496
- Placeholder
497
- </span>
317
+ className="charcoal-ui-dropdown-selector-text"
318
+ data-placeholder={false}
319
+ />
498
320
  <pixiv-icon
499
- class="c3"
321
+ class="charcoal-ui-dropdown-selector-icon"
500
322
  name="16/Menu"
501
323
  />
502
324
  </button>
@@ -505,109 +327,54 @@ exports[`Storybook Tests DropdownSelector Default 1`] = `
505
327
  </div>
506
328
  `;
507
329
 
508
- exports[`Storybook Tests DropdownSelector Disabled 1`] = `
509
- .c0 {
510
- display: inline-block;
511
- width: 100%;
512
- }
513
-
514
- .c0:disabled,
515
- .c0[aria-disabled]:not([aria-disabled=false]) {
516
- cursor: default;
517
- opacity: 0.32;
518
- }
519
-
520
- .c1 {
521
- display: -webkit-box;
522
- display: -webkit-flex;
523
- display: -ms-flexbox;
524
- display: flex;
525
- -webkit-box-pack: justify;
526
- -webkit-justify-content: space-between;
527
- -ms-flex-pack: justify;
528
- justify-content: space-between;
529
- -webkit-align-items: center;
530
- -webkit-box-align: center;
531
- -ms-flex-align: center;
532
- align-items: center;
533
- height: 40px;
534
- width: 100%;
535
- box-sizing: border-box;
536
- border: none;
537
- cursor: pointer;
538
- gap: 4px;
539
- padding-right: 8px;
540
- padding-left: 8px;
541
- background-color: var(--charcoal-surface3);
542
- border-radius: 4px;
543
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
544
- transition: 0.2s box-shadow,0.2s background-color;
545
- }
546
-
547
- .c1:disabled,
548
- .c1[aria-disabled]:not([aria-disabled=false]) {
549
- cursor: default;
550
- }
551
-
552
- .c1:not(:disabled):not([aria-disabled]):focus,
553
- .c1[aria-disabled='false']:focus {
554
- outline: none;
555
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
556
- }
557
-
558
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
559
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
560
- box-shadow: none;
561
- }
562
-
563
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
564
- .c1[aria-disabled='false']:focus-visible {
565
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
566
- }
567
-
568
- .c1:not(:disabled):not([aria-disabled]):hover,
569
- .c1[aria-disabled='false']:hover {
570
- background-color: var(--charcoal-surface3-hover);
571
- }
572
-
573
- .c1:not(:disabled):not([aria-disabled]):active,
574
- .c1[aria-disabled='false']:active {
575
- background-color: var(--charcoal-surface3-press);
576
- }
577
-
578
- .c2 {
579
- text-align: left;
580
- font-size: 14px;
581
- line-height: 22px;
582
- display: flow-root;
583
- color: var(--charcoal-text2);
584
- overflow: hidden;
585
- text-overflow: ellipsis;
586
- white-space: nowrap;
587
- }
588
-
589
- .c3 {
590
- color: var(--charcoal-text2);
591
- }
592
-
330
+ exports[`Storybook Tests react/DropdownSelector Disabled 1`] = `
593
331
  <div
594
332
  data-dark={false}
595
333
  >
596
334
  <div
597
335
  style={
598
- Object {
336
+ {
599
337
  "width": 288,
600
338
  }
601
339
  }
602
340
  >
603
341
  <div
604
342
  aria-disabled={true}
605
- className="c0"
343
+ className="charcoal-dropdown-selector-root"
606
344
  >
345
+ <div
346
+ className="charcoal-field-label-root"
347
+ style={
348
+ {
349
+ "border": 0,
350
+ "clip": "rect(0 0 0 0)",
351
+ "clipPath": "inset(50%)",
352
+ "height": "1px",
353
+ "margin": "-1px",
354
+ "overflow": "hidden",
355
+ "padding": 0,
356
+ "position": "absolute",
357
+ "whiteSpace": "nowrap",
358
+ "width": "1px",
359
+ }
360
+ }
361
+ >
362
+ <label
363
+ className="charcoal-field-label"
364
+ id="test-id"
365
+ >
366
+ Label
367
+ </label>
368
+ <div
369
+ className="charcoal-field-label-sub-label"
370
+ >
371
+ <span />
372
+ </div>
373
+ </div>
607
374
  <div
608
375
  aria-hidden="true"
609
376
  style={
610
- Object {
377
+ {
611
378
  "border": 0,
612
379
  "clip": "rect(0 0 0 0)",
613
380
  "clipPath": "inset(50%)",
@@ -622,6 +389,7 @@ exports[`Storybook Tests DropdownSelector Disabled 1`] = `
622
389
  }
623
390
  >
624
391
  <select
392
+ onChange={[Function]}
625
393
  tabIndex={-1}
626
394
  value="1"
627
395
  >
@@ -643,18 +411,21 @@ exports[`Storybook Tests DropdownSelector Disabled 1`] = `
643
411
  </select>
644
412
  </div>
645
413
  <button
646
- className="c1"
414
+ aria-labelledby="test-id"
415
+ className="charcoal-dropdown-selector-button"
416
+ data-active={false}
647
417
  disabled={true}
648
418
  onClick={[Function]}
649
419
  type="button"
650
420
  >
651
421
  <span
652
- className="c2"
422
+ className="charcoal-ui-dropdown-selector-text"
423
+ data-placeholder={false}
653
424
  >
654
425
  Option 1
655
426
  </span>
656
427
  <pixiv-icon
657
- class="c3"
428
+ class="charcoal-ui-dropdown-selector-icon"
658
429
  name="16/Menu"
659
430
  />
660
431
  </button>
@@ -663,108 +434,53 @@ exports[`Storybook Tests DropdownSelector Disabled 1`] = `
663
434
  </div>
664
435
  `;
665
436
 
666
- exports[`Storybook Tests DropdownSelector DisabledItem 1`] = `
667
- .c0 {
668
- display: inline-block;
669
- width: 100%;
670
- }
671
-
672
- .c0:disabled,
673
- .c0[aria-disabled]:not([aria-disabled=false]) {
674
- cursor: default;
675
- opacity: 0.32;
676
- }
677
-
678
- .c1 {
679
- display: -webkit-box;
680
- display: -webkit-flex;
681
- display: -ms-flexbox;
682
- display: flex;
683
- -webkit-box-pack: justify;
684
- -webkit-justify-content: space-between;
685
- -ms-flex-pack: justify;
686
- justify-content: space-between;
687
- -webkit-align-items: center;
688
- -webkit-box-align: center;
689
- -ms-flex-align: center;
690
- align-items: center;
691
- height: 40px;
692
- width: 100%;
693
- box-sizing: border-box;
694
- border: none;
695
- cursor: pointer;
696
- gap: 4px;
697
- padding-right: 8px;
698
- padding-left: 8px;
699
- background-color: var(--charcoal-surface3);
700
- border-radius: 4px;
701
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
702
- transition: 0.2s box-shadow,0.2s background-color;
703
- }
704
-
705
- .c1:disabled,
706
- .c1[aria-disabled]:not([aria-disabled=false]) {
707
- cursor: default;
708
- }
709
-
710
- .c1:not(:disabled):not([aria-disabled]):focus,
711
- .c1[aria-disabled='false']:focus {
712
- outline: none;
713
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
714
- }
715
-
716
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
717
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
718
- box-shadow: none;
719
- }
720
-
721
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
722
- .c1[aria-disabled='false']:focus-visible {
723
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
724
- }
725
-
726
- .c1:not(:disabled):not([aria-disabled]):hover,
727
- .c1[aria-disabled='false']:hover {
728
- background-color: var(--charcoal-surface3-hover);
729
- }
730
-
731
- .c1:not(:disabled):not([aria-disabled]):active,
732
- .c1[aria-disabled='false']:active {
733
- background-color: var(--charcoal-surface3-press);
734
- }
735
-
736
- .c2 {
737
- text-align: left;
738
- font-size: 14px;
739
- line-height: 22px;
740
- display: flow-root;
741
- color: var(--charcoal-text2);
742
- overflow: hidden;
743
- text-overflow: ellipsis;
744
- white-space: nowrap;
745
- }
746
-
747
- .c3 {
748
- color: var(--charcoal-text2);
749
- }
750
-
437
+ exports[`Storybook Tests react/DropdownSelector DisabledItem 1`] = `
751
438
  <div
752
439
  data-dark={false}
753
440
  >
754
441
  <div
755
442
  style={
756
- Object {
443
+ {
757
444
  "width": 288,
758
445
  }
759
446
  }
760
447
  >
761
448
  <div
762
- className="c0"
449
+ className="charcoal-dropdown-selector-root"
763
450
  >
451
+ <div
452
+ className="charcoal-field-label-root"
453
+ style={
454
+ {
455
+ "border": 0,
456
+ "clip": "rect(0 0 0 0)",
457
+ "clipPath": "inset(50%)",
458
+ "height": "1px",
459
+ "margin": "-1px",
460
+ "overflow": "hidden",
461
+ "padding": 0,
462
+ "position": "absolute",
463
+ "whiteSpace": "nowrap",
464
+ "width": "1px",
465
+ }
466
+ }
467
+ >
468
+ <label
469
+ className="charcoal-field-label"
470
+ id="test-id"
471
+ >
472
+ Label
473
+ </label>
474
+ <div
475
+ className="charcoal-field-label-sub-label"
476
+ >
477
+ <span />
478
+ </div>
479
+ </div>
764
480
  <div
765
481
  aria-hidden="true"
766
482
  style={
767
- Object {
483
+ {
768
484
  "border": 0,
769
485
  "clip": "rect(0 0 0 0)",
770
486
  "clipPath": "inset(50%)",
@@ -779,6 +495,7 @@ exports[`Storybook Tests DropdownSelector DisabledItem 1`] = `
779
495
  }
780
496
  >
781
497
  <select
498
+ onChange={[Function]}
782
499
  tabIndex={-1}
783
500
  value="2"
784
501
  >
@@ -811,17 +528,20 @@ exports[`Storybook Tests DropdownSelector DisabledItem 1`] = `
811
528
  </select>
812
529
  </div>
813
530
  <button
814
- className="c1"
531
+ aria-labelledby="test-id"
532
+ className="charcoal-dropdown-selector-button"
533
+ data-active={false}
815
534
  onClick={[Function]}
816
535
  type="button"
817
536
  >
818
537
  <span
819
- className="c2"
538
+ className="charcoal-ui-dropdown-selector-text"
539
+ data-placeholder={false}
820
540
  >
821
541
  Option 2 (disabled)
822
542
  </span>
823
543
  <pixiv-icon
824
- class="c3"
544
+ class="charcoal-ui-dropdown-selector-icon"
825
545
  name="16/Menu"
826
546
  />
827
547
  </button>
@@ -830,110 +550,55 @@ exports[`Storybook Tests DropdownSelector DisabledItem 1`] = `
830
550
  </div>
831
551
  `;
832
552
 
833
- exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
834
- .c0 {
835
- display: inline-block;
836
- width: 100%;
837
- }
838
-
839
- .c0:disabled,
840
- .c0[aria-disabled]:not([aria-disabled=false]) {
841
- cursor: default;
842
- opacity: 0.32;
843
- }
844
-
845
- .c1 {
846
- display: -webkit-box;
847
- display: -webkit-flex;
848
- display: -ms-flexbox;
849
- display: flex;
850
- -webkit-box-pack: justify;
851
- -webkit-justify-content: space-between;
852
- -ms-flex-pack: justify;
853
- justify-content: space-between;
854
- -webkit-align-items: center;
855
- -webkit-box-align: center;
856
- -ms-flex-align: center;
857
- align-items: center;
858
- height: 40px;
859
- width: 100%;
860
- box-sizing: border-box;
861
- border: none;
862
- cursor: pointer;
863
- gap: 4px;
864
- padding-right: 8px;
865
- padding-left: 8px;
866
- background-color: var(--charcoal-surface3);
867
- border-radius: 4px;
868
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
869
- transition: 0.2s box-shadow,0.2s background-color;
870
- }
871
-
872
- .c1:disabled,
873
- .c1[aria-disabled]:not([aria-disabled=false]) {
874
- cursor: default;
875
- }
876
-
877
- .c1:not(:disabled):not([aria-disabled]):focus,
878
- .c1[aria-disabled='false']:focus {
879
- outline: none;
880
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
881
- }
882
-
883
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
884
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
885
- box-shadow: none;
886
- }
887
-
888
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
889
- .c1[aria-disabled='false']:focus-visible {
890
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
891
- }
892
-
893
- .c1:not(:disabled):not([aria-disabled]):hover,
894
- .c1[aria-disabled='false']:hover {
895
- background-color: var(--charcoal-surface3-hover);
896
- }
897
-
898
- .c1:not(:disabled):not([aria-disabled]):active,
899
- .c1[aria-disabled='false']:active {
900
- background-color: var(--charcoal-surface3-press);
901
- }
902
-
903
- .c2 {
904
- text-align: left;
905
- font-size: 14px;
906
- line-height: 22px;
907
- display: flow-root;
908
- color: var(--charcoal-text2);
909
- overflow: hidden;
910
- text-overflow: ellipsis;
911
- white-space: nowrap;
912
- }
913
-
914
- .c3 {
915
- color: var(--charcoal-text2);
916
- }
917
-
553
+ exports[`Storybook Tests react/DropdownSelector InFormTag 1`] = `
918
554
  <div
919
555
  data-dark={false}
920
556
  >
921
557
  <form
922
558
  onSubmit={[Function]}
923
559
  style={
924
- Object {
560
+ {
925
561
  "display": "flex",
926
562
  "width": 288,
927
563
  }
928
564
  }
929
565
  >
930
566
  <div
931
- className="c0"
567
+ className="charcoal-dropdown-selector-root"
932
568
  >
569
+ <div
570
+ className="charcoal-field-label-root"
571
+ style={
572
+ {
573
+ "border": 0,
574
+ "clip": "rect(0 0 0 0)",
575
+ "clipPath": "inset(50%)",
576
+ "height": "1px",
577
+ "margin": "-1px",
578
+ "overflow": "hidden",
579
+ "padding": 0,
580
+ "position": "absolute",
581
+ "whiteSpace": "nowrap",
582
+ "width": "1px",
583
+ }
584
+ }
585
+ >
586
+ <label
587
+ className="charcoal-field-label"
588
+ id="test-id"
589
+ >
590
+ label
591
+ </label>
592
+ <div
593
+ className="charcoal-field-label-sub-label"
594
+ >
595
+ <span />
596
+ </div>
597
+ </div>
933
598
  <div
934
599
  aria-hidden="true"
935
600
  style={
936
- Object {
601
+ {
937
602
  "border": 0,
938
603
  "clip": "rect(0 0 0 0)",
939
604
  "clipPath": "inset(50%)",
@@ -949,6 +614,7 @@ exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
949
614
  >
950
615
  <select
951
616
  name="exampleOption"
617
+ onChange={[Function]}
952
618
  tabIndex={-1}
953
619
  value="1"
954
620
  >
@@ -970,17 +636,20 @@ exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
970
636
  </select>
971
637
  </div>
972
638
  <button
973
- className="c1"
639
+ aria-labelledby="test-id"
640
+ className="charcoal-dropdown-selector-button"
641
+ data-active={false}
974
642
  onClick={[Function]}
975
643
  type="button"
976
644
  >
977
645
  <span
978
- className="c2"
646
+ className="charcoal-ui-dropdown-selector-text"
647
+ data-placeholder={false}
979
648
  >
980
649
  Option 1
981
650
  </span>
982
651
  <pixiv-icon
983
- class="c3"
652
+ class="charcoal-ui-dropdown-selector-icon"
984
653
  name="16/Menu"
985
654
  />
986
655
  </button>
@@ -989,631 +658,25 @@ exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
989
658
  className="charcoal-button"
990
659
  data-variant="Primary"
991
660
  style={
992
- Object {
661
+ {
993
662
  "marginLeft": 16,
994
663
  }
995
664
  }
996
- type="submit"
997
- >
998
- submit
999
- </button>
1000
- </form>
1001
- </div>
1002
- `;
1003
-
1004
- exports[`Storybook Tests DropdownSelector InModal 1`] = `
1005
- .c26 {
1006
- cursor: pointer;
1007
- -webkit-appearance: none;
1008
- -moz-appearance: none;
1009
- appearance: none;
1010
- background: transparent;
1011
- padding: 0;
1012
- border-style: none;
1013
- outline: none;
1014
- color: inherit;
1015
- text-rendering: inherit;
1016
- -webkit-letter-spacing: inherit;
1017
- -moz-letter-spacing: inherit;
1018
- -ms-letter-spacing: inherit;
1019
- letter-spacing: inherit;
1020
- word-spacing: inherit;
1021
- -webkit-text-decoration: none;
1022
- text-decoration: none;
1023
- font: inherit;
1024
- margin: 0;
1025
- overflow: visible;
1026
- text-transform: none;
1027
- }
1028
-
1029
- .c26:disabled,
1030
- .c26[aria-disabled]:not([aria-disabled=false]) {
1031
- cursor: default;
1032
- }
1033
-
1034
- .c26:focus {
1035
- outline: none;
1036
- }
1037
-
1038
- .c26::-moz-focus-inner {
1039
- border-style: none;
1040
- padding: 0;
1041
- }
1042
-
1043
- .c9 {
1044
- font-size: 14px;
1045
- line-height: 22px;
1046
- font-weight: bold;
1047
- display: flow-root;
1048
- color: var(--charcoal-text1);
1049
- }
1050
-
1051
- .c9::before {
1052
- display: block;
1053
- width: 0;
1054
- height: 0;
1055
- content: '';
1056
- margin-top: -4px;
1057
- }
1058
-
1059
- .c9::after {
1060
- display: block;
1061
- width: 0;
1062
- height: 0;
1063
- content: '';
1064
- margin-bottom: -4px;
1065
- }
1066
-
1067
- .c11 {
1068
- font-size: 14px;
1069
- line-height: 22px;
1070
- display: flow-root;
1071
- color: var(--charcoal-text2);
1072
- }
1073
-
1074
- .c11::before {
1075
- display: block;
1076
- width: 0;
1077
- height: 0;
1078
- content: '';
1079
- margin-top: -4px;
1080
- }
1081
-
1082
- .c11::after {
1083
- display: block;
1084
- width: 0;
1085
- height: 0;
1086
- content: '';
1087
- margin-bottom: -4px;
1088
- }
1089
-
1090
- .c13 {
1091
- font-size: 14px;
1092
- line-height: 22px;
1093
- display: flow-root;
1094
- color: var(--charcoal-text3);
1095
- -webkit-transition: 0.2s color,0.2s box-shadow;
1096
- transition: 0.2s color,0.2s box-shadow;
1097
- }
1098
-
1099
- .c13::before {
1100
- display: block;
1101
- width: 0;
1102
- height: 0;
1103
- content: '';
1104
- margin-top: -4px;
1105
- }
1106
-
1107
- .c13::after {
1108
- display: block;
1109
- width: 0;
1110
- height: 0;
1111
- content: '';
1112
- margin-bottom: -4px;
1113
- }
1114
-
1115
- .c13:not(:disabled):not([aria-disabled]):hover,
1116
- .c13[aria-disabled='false']:hover {
1117
- color: var(--charcoal-text3-hover);
1118
- }
1119
-
1120
- .c13:not(:disabled):not([aria-disabled]):active,
1121
- .c13[aria-disabled='false']:active {
1122
- color: var(--charcoal-text3-press);
1123
- }
1124
-
1125
- .c13:not(:disabled):not([aria-disabled]):active,
1126
- .c13[aria-disabled='false']:active,
1127
- .c13:not(:disabled):not([aria-disabled]):focus,
1128
- .c13[aria-disabled='false']:focus,
1129
- .c13:not(:disabled):not([aria-disabled]):focus-visible,
1130
- .c13[aria-disabled='false']:focus-visible {
1131
- outline: none;
1132
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1133
- }
1134
-
1135
- .c7 {
1136
- display: -webkit-inline-box;
1137
- display: -webkit-inline-flex;
1138
- display: -ms-inline-flexbox;
1139
- display: inline-flex;
1140
- -webkit-align-items: center;
1141
- -webkit-box-align: center;
1142
- -ms-flex-align: center;
1143
- align-items: center;
1144
- }
1145
-
1146
- .c7 > .c10 {
1147
- margin-left: 4px;
1148
- }
1149
-
1150
- .c7 > .c12 {
1151
- margin-left: auto;
1152
- }
1153
-
1154
- .c6 {
1155
- display: inline-block;
1156
- width: 100%;
1157
- }
1158
-
1159
- .c6:disabled,
1160
- .c6[aria-disabled]:not([aria-disabled=false]) {
1161
- cursor: default;
1162
- opacity: 0.32;
1163
- }
1164
-
1165
- .c8 {
1166
- width: 100%;
1167
- margin-bottom: 8px;
1168
- }
1169
-
1170
- .c14 {
1171
- display: -webkit-box;
1172
- display: -webkit-flex;
1173
- display: -ms-flexbox;
1174
- display: flex;
1175
- -webkit-box-pack: justify;
1176
- -webkit-justify-content: space-between;
1177
- -ms-flex-pack: justify;
1178
- justify-content: space-between;
1179
- -webkit-align-items: center;
1180
- -webkit-box-align: center;
1181
- -ms-flex-align: center;
1182
- align-items: center;
1183
- height: 40px;
1184
- width: 100%;
1185
- box-sizing: border-box;
1186
- border: none;
1187
- cursor: pointer;
1188
- gap: 4px;
1189
- padding-right: 8px;
1190
- padding-left: 8px;
1191
- background-color: var(--charcoal-surface3);
1192
- border-radius: 4px;
1193
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1194
- transition: 0.2s box-shadow,0.2s background-color;
1195
- }
1196
-
1197
- .c14:disabled,
1198
- .c14[aria-disabled]:not([aria-disabled=false]) {
1199
- cursor: default;
1200
- }
1201
-
1202
- .c14:not(:disabled):not([aria-disabled]):focus,
1203
- .c14[aria-disabled='false']:focus {
1204
- outline: none;
1205
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1206
- }
1207
-
1208
- .c14:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1209
- .c14[aria-disabled='false']:focus:not(:focus-visible) {
1210
- box-shadow: none;
1211
- }
1212
-
1213
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
1214
- .c14[aria-disabled='false']:focus-visible {
1215
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1216
- }
1217
-
1218
- .c14:not(:disabled):not([aria-disabled]):hover,
1219
- .c14[aria-disabled='false']:hover {
1220
- background-color: var(--charcoal-surface3-hover);
1221
- }
1222
-
1223
- .c14:not(:disabled):not([aria-disabled]):active,
1224
- .c14[aria-disabled='false']:active {
1225
- background-color: var(--charcoal-surface3-press);
1226
- }
1227
-
1228
- .c15 {
1229
- text-align: left;
1230
- font-size: 14px;
1231
- line-height: 22px;
1232
- display: flow-root;
1233
- color: var(--charcoal-text2);
1234
- overflow: hidden;
1235
- text-overflow: ellipsis;
1236
- white-space: nowrap;
1237
- }
1238
-
1239
- .c16 {
1240
- color: var(--charcoal-text2);
1241
- }
1242
-
1243
- .c17 {
1244
- margin-top: 8px;
1245
- font-size: 14px;
1246
- color: var(--charcoal-text2);
1247
- line-height: 22px;
1248
- display: flow-root;
1249
- }
1250
-
1251
- .c17::before {
1252
- display: block;
1253
- width: 0;
1254
- height: 0;
1255
- content: '';
1256
- margin-top: -4px;
1257
- }
1258
-
1259
- .c17::after {
1260
- display: block;
1261
- width: 0;
1262
- height: 0;
1263
- content: '';
1264
- margin-bottom: -4px;
1265
- }
1266
-
1267
- .c27 {
1268
- -webkit-user-select: none;
1269
- -moz-user-select: none;
1270
- -ms-user-select: none;
1271
- user-select: none;
1272
- width: 32px;
1273
- height: 32px;
1274
- display: -webkit-box;
1275
- display: -webkit-flex;
1276
- display: -ms-flexbox;
1277
- display: flex;
1278
- -webkit-align-items: center;
1279
- -webkit-box-align: center;
1280
- -ms-flex-align: center;
1281
- align-items: center;
1282
- -webkit-box-pack: center;
1283
- -webkit-justify-content: center;
1284
- -ms-flex-pack: center;
1285
- justify-content: center;
1286
- color: var(--charcoal-text3);
1287
- background-color: var(--charcoal-transparent);
1288
- border-radius: 999999px;
1289
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1290
- transition: 0.2s background-color,0.2s box-shadow;
1291
- }
1292
-
1293
- .c27:not(:disabled):not([aria-disabled]):hover,
1294
- .c27[aria-disabled='false']:hover {
1295
- color: var(--charcoal-text3-hover);
1296
- background-color: var(--charcoal-transparent-hover);
1297
- }
1298
-
1299
- .c27:not(:disabled):not([aria-disabled]):active,
1300
- .c27[aria-disabled='false']:active {
1301
- color: var(--charcoal-text3-press);
1302
- background-color: var(--charcoal-transparent-press);
1303
- }
1304
-
1305
- .c27:not(:disabled):not([aria-disabled]):focus,
1306
- .c27[aria-disabled='false']:focus {
1307
- outline: none;
1308
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1309
- }
1310
-
1311
- .c27:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1312
- .c27[aria-disabled='false']:focus:not(:focus-visible) {
1313
- box-shadow: none;
1314
- }
1315
-
1316
- .c27:not(:disabled):not([aria-disabled]):focus-visible,
1317
- .c27[aria-disabled='false']:focus-visible {
1318
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1319
- }
1320
-
1321
- .c27:disabled,
1322
- .c27[aria-disabled]:not([aria-disabled='false']) {
1323
- opacity: 0.32;
1324
- }
1325
-
1326
- .c1 {
1327
- margin: auto;
1328
- position: relative;
1329
- height: -webkit-fit-content;
1330
- height: -moz-fit-content;
1331
- height: fit-content;
1332
- width: 440px;
1333
- background-color: var(--charcoal-surface1);
1334
- border-radius: 24px;
1335
- }
1336
-
1337
- .c1:focus {
1338
- outline: none;
1339
- }
1340
-
1341
- .c0 {
1342
- z-index: 10;
1343
- overflow: auto;
1344
- display: -webkit-box;
1345
- display: -webkit-flex;
1346
- display: -ms-flexbox;
1347
- display: flex;
1348
- position: fixed;
1349
- top: 0;
1350
- left: 0;
1351
- width: -webkit-fill-available;
1352
- width: -moz-available;
1353
- height: 100%;
1354
- -webkit-box-pack: center;
1355
- -webkit-justify-content: center;
1356
- -ms-flex-pack: center;
1357
- justify-content: center;
1358
- padding: 40px 0;
1359
- box-sizing: border-box;
1360
- background-color: var(--charcoal-surface4);
1361
- }
1362
-
1363
- .c28 {
1364
- position: absolute;
1365
- top: 8px;
1366
- right: 8px;
1367
- color: var(--charcoal-text3);
1368
- -webkit-transition: 0.2s color;
1369
- transition: 0.2s color;
1370
- }
1371
-
1372
- .c28:not(:disabled):not([aria-disabled]):hover,
1373
- .c28[aria-disabled='false']:hover {
1374
- color: var(--charcoal-text3-hover);
1375
- }
1376
-
1377
- .c28:not(:disabled):not([aria-disabled]):active,
1378
- .c28[aria-disabled='false']:active {
1379
- color: var(--charcoal-text3-press);
1380
- }
1381
-
1382
- .c3 {
1383
- margin: 0;
1384
- font-weight: inherit;
1385
- font-size: inherit;
1386
- }
1387
-
1388
- .c2 {
1389
- height: 64px;
1390
- display: grid;
1391
- -webkit-align-content: center;
1392
- -ms-flex-line-pack: center;
1393
- align-content: center;
1394
- -webkit-box-pack: center;
1395
- -webkit-justify-content: center;
1396
- -ms-flex-pack: center;
1397
- justify-content: center;
1398
- }
1399
-
1400
- .c4 {
1401
- color: var(--charcoal-text1);
1402
- font-size: 16px;
1403
- line-height: 24px;
1404
- font-weight: bold;
1405
- display: flow-root;
1406
- }
1407
-
1408
- .c4::before {
1409
- display: block;
1410
- width: 0;
1411
- height: 0;
1412
- content: '';
1413
- margin-top: -4px;
1414
- }
1415
-
1416
- .c4::after {
1417
- display: block;
1418
- width: 0;
1419
- height: 0;
1420
- content: '';
1421
- margin-bottom: -4px;
1422
- }
1423
-
1424
- .c5 {
1425
- padding-bottom: 40px;
1426
- }
1427
-
1428
- .c18 {
1429
- display: -webkit-box;
1430
- display: -webkit-flex;
1431
- display: -ms-flexbox;
1432
- display: flex;
1433
- -webkit-flex-direction: column;
1434
- -ms-flex-direction: column;
1435
- flex-direction: column;
1436
- }
1437
-
1438
- .c19 {
1439
- margin-bottom: 8px;
1440
- }
1441
-
1442
- .c20 {
1443
- display: grid;
1444
- grid-template-columns: 1fr;
1445
- height: 40px;
1446
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1447
- transition: 0.2s background-color,0.2s box-shadow;
1448
- color: var(--charcoal-text2);
1449
- background-color: var(--charcoal-surface3);
1450
- border-radius: 4px;
1451
- gap: 4px;
1452
- padding: 0 8px;
1453
- line-height: 22px;
1454
- font-size: 14px;
1455
- }
1456
-
1457
- .c20:not(:disabled):not([aria-disabled]):hover,
1458
- .c20 [aria-disabled='false']:hover {
1459
- background-color: var(--charcoal-surface3-hover);
1460
- }
1461
-
1462
- .c20:focus-within {
1463
- outline: none;
1464
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1465
- }
1466
-
1467
- .c21 {
1468
- border: none;
1469
- box-sizing: border-box;
1470
- outline: none;
1471
- font-family: inherit;
1472
- -webkit-transform-origin: top left;
1473
- -ms-transform-origin: top left;
1474
- transform-origin: top left;
1475
- -webkit-transform: scale(0.875);
1476
- -ms-transform: scale(0.875);
1477
- transform: scale(0.875);
1478
- width: calc(100% / 0.875);
1479
- height: calc(100% / 0.875);
1480
- font-size: calc(14px / 0.875);
1481
- line-height: calc(22px / 0.875);
1482
- padding-left: 0;
1483
- padding-right: 0;
1484
- border-radius: calc(4px / 0.875);
1485
- -webkit-appearance: none;
1486
- -moz-appearance: none;
1487
- appearance: none;
1488
- background: transparent;
1489
- color: var(--charcoal-text2);
1490
- }
1491
-
1492
- .c21::-webkit-input-placeholder {
1493
- color: var(--charcoal-text3);
1494
- }
1495
-
1496
- .c21::-moz-placeholder {
1497
- color: var(--charcoal-text3);
1498
- }
1499
-
1500
- .c21:-ms-input-placeholder {
1501
- color: var(--charcoal-text3);
1502
- }
1503
-
1504
- .c21::placeholder {
1505
- color: var(--charcoal-text3);
1506
- }
1507
-
1508
- .c22 {
1509
- font-size: 14px;
1510
- line-height: 22px;
1511
- margin-top: 4px;
1512
- margin-bottom: -4px;
1513
- color: var(--charcoal-text2);
1514
- }
1515
-
1516
- .c23 {
1517
- display: -webkit-box;
1518
- display: -webkit-flex;
1519
- display: -ms-flexbox;
1520
- display: flex;
1521
- -webkit-flex-direction: column;
1522
- -ms-flex-direction: column;
1523
- flex-direction: column;
1524
- }
1525
-
1526
- .c24 {
1527
- position: relative;
1528
- overflow: hidden;
1529
- color: var(--charcoal-text2);
1530
- background-color: var(--charcoal-surface3);
1531
- border-radius: 4px;
1532
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1533
- transition: 0.2s background-color,0.2s box-shadow;
1534
- height: calc(22px * 4 + 18px);
1535
- }
1536
-
1537
- .c24:not([aria-disabled]):hover,
1538
- .c24 [aria-disabled='false']:hover {
1539
- background-color: var(--charcoal-surface3-hover);
1540
- }
1541
-
1542
- .c24:focus-within {
1543
- outline: none;
1544
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1545
- }
1546
-
1547
- .c25 {
1548
- border: none;
1549
- outline: none;
1550
- resize: none;
1551
- font-family: inherit;
1552
- color: inherit;
1553
- box-sizing: border-box;
1554
- -webkit-transform-origin: top left;
1555
- -ms-transform-origin: top left;
1556
- transform-origin: top left;
1557
- -webkit-transform: scale(0.875);
1558
- -ms-transform: scale(0.875);
1559
- transform: scale(0.875);
1560
- width: calc(100% / 0.875);
1561
- font-size: calc(14px / 0.875);
1562
- line-height: calc(22px / 0.875);
1563
- padding: calc(9px / 0.875) calc(8px / 0.875);
1564
- height: calc(22px / 0.875 * 4 + 20px);
1565
- -webkit-appearance: none;
1566
- -moz-appearance: none;
1567
- appearance: none;
1568
- background: none;
1569
- }
1570
-
1571
- .c25::-webkit-input-placeholder {
1572
- color: var(--charcoal-text3);
1573
- }
1574
-
1575
- .c25::-moz-placeholder {
1576
- color: var(--charcoal-text3);
1577
- }
1578
-
1579
- .c25:-ms-input-placeholder {
1580
- color: var(--charcoal-text3);
1581
- }
1582
-
1583
- .c25::placeholder {
1584
- color: var(--charcoal-text3);
1585
- }
1586
-
1587
- @media (max-width:743px) {
1588
- .c1 {
1589
- max-width: 440px;
1590
- width: calc(100% - 48px);
1591
- max-width: unset;
1592
- width: 100%;
1593
- border-radius: 0;
1594
- margin: auto 0 0 0;
1595
- min-height: 100%;
1596
- }
1597
- }
1598
-
1599
- @media (max-width:743px) {
1600
- .c0 {
1601
- padding: 0;
1602
- }
1603
- }
1604
-
1605
- @media (max-width:743px) {
1606
- .c2 {
1607
- height: 48px;
1608
- }
1609
- }
665
+ type="submit"
666
+ >
667
+ submit
668
+ </button>
669
+ </form>
670
+ </div>
671
+ `;
1610
672
 
673
+ exports[`Storybook Tests react/DropdownSelector InModal 1`] = `
1611
674
  <div
1612
675
  data-dark={false}
1613
676
  >
1614
677
  <div
1615
678
  style={
1616
- Object {
679
+ {
1617
680
  "height": "10px",
1618
681
  }
1619
682
  }
@@ -1623,431 +686,57 @@ exports[`Storybook Tests DropdownSelector InModal 1`] = `
1623
686
  >
1624
687
  open
1625
688
  </button>
1626
- <div
1627
- className="c0"
1628
- onClick={[Function]}
1629
- onPointerDown={[Function]}
1630
- style={
1631
- Object {
1632
- "backgroundColor": "rgba(0, 0, 0, 0)",
1633
- "overflow": "hidden",
1634
- }
1635
- }
1636
- >
1637
- <div
1638
- className="c1"
1639
- onBlur={[Function]}
1640
- onKeyDown={[Function]}
1641
- role="dialog"
1642
- size="M"
1643
- style={
1644
- Object {
1645
- "transform": " translateY(100%)",
1646
- }
1647
- }
1648
- tabIndex={-1}
1649
- >
1650
- <div
1651
- className="c2"
1652
- >
1653
- <h3
1654
- className="c3 c4"
1655
- >
1656
- modal
1657
- </h3>
1658
- </div>
1659
- <div
1660
- className="c5"
1661
- >
1662
- <div
1663
- style={
1664
- Object {
1665
- "display": "grid",
1666
- "gap": 40,
1667
- "padding": 16,
1668
- }
1669
- }
1670
- >
1671
- <div
1672
- className="c6"
1673
- >
1674
- <div
1675
- className="c7 c8"
1676
- >
1677
- <label
1678
- className="c9"
1679
- >
1680
- DropdownSelector1
1681
- </label>
1682
- <span
1683
- className="c10 c11"
1684
- >
1685
- required
1686
- </span>
1687
- <div
1688
- className="c12 c13"
1689
- >
1690
- <span />
1691
- </div>
1692
- </div>
1693
- <div
1694
- aria-hidden="true"
1695
- style={
1696
- Object {
1697
- "border": 0,
1698
- "clip": "rect(0 0 0 0)",
1699
- "clipPath": "inset(50%)",
1700
- "height": "1px",
1701
- "margin": "-1px",
1702
- "overflow": "hidden",
1703
- "padding": 0,
1704
- "position": "absolute",
1705
- "whiteSpace": "nowrap",
1706
- "width": "1px",
1707
- }
1708
- }
1709
- >
1710
- <select
1711
- tabIndex={-1}
1712
- value="1"
1713
- >
1714
- <option
1715
- value="1"
1716
- >
1717
- 1
1718
- </option>
1719
- <option
1720
- value="2"
1721
- >
1722
- 2
1723
- </option>
1724
- <option
1725
- value="3"
1726
- >
1727
- 3
1728
- </option>
1729
- </select>
1730
- </div>
1731
- <button
1732
- className="c14"
1733
- onClick={[Function]}
1734
- type="button"
1735
- >
1736
- <span
1737
- className="c15"
1738
- >
1739
- Option 1
1740
- </span>
1741
- <pixiv-icon
1742
- class="c16"
1743
- name="16/Menu"
1744
- />
1745
- </button>
1746
- <div
1747
- className="c17"
1748
- >
1749
- assistiveText
1750
- </div>
1751
- </div>
1752
- <div
1753
- className="c18"
1754
- >
1755
- <div
1756
- className="c7 c19"
1757
- >
1758
- <label
1759
- className="c9"
1760
- htmlFor="test-id"
1761
- id="test-id"
1762
- >
1763
- TextField
1764
- </label>
1765
- <span
1766
- className="c10 c11"
1767
- >
1768
- required
1769
- </span>
1770
- <div
1771
- className="c12 c13"
1772
- >
1773
- <span />
1774
- </div>
1775
- </div>
1776
- <div
1777
- className="c20"
1778
- >
1779
- <input
1780
- aria-labelledby="test-id"
1781
- aria-required={true}
1782
- className="c21"
1783
- disabled={false}
1784
- id="test-id"
1785
- onChange={[Function]}
1786
- placeholder="placeholder"
1787
- readOnly={false}
1788
- required={false}
1789
- type="text"
1790
- value=""
1791
- />
1792
- </div>
1793
- <p
1794
- className="c22"
1795
- >
1796
- assistiveText
1797
- </p>
1798
- </div>
1799
- <div
1800
- className="c23"
1801
- >
1802
- <div
1803
- className="c7 c19"
1804
- >
1805
- <label
1806
- className="c9"
1807
- htmlFor="test-id"
1808
- id="test-id"
1809
- >
1810
- TextArea
1811
- </label>
1812
- <span
1813
- className="c10 c11"
1814
- >
1815
- required
1816
- </span>
1817
- <div
1818
- className="c12 c13"
1819
- >
1820
- <span />
1821
- </div>
1822
- </div>
1823
- <div
1824
- className="c24"
1825
- rows={4}
1826
- >
1827
- <textarea
1828
- aria-labelledby="test-id"
1829
- aria-required={true}
1830
- className="c25"
1831
- disabled={false}
1832
- id="test-id"
1833
- onChange={[Function]}
1834
- placeholder="placeholder"
1835
- readOnly={false}
1836
- required={false}
1837
- rows={4}
1838
- value=""
1839
- />
1840
- </div>
1841
- <p
1842
- className="c22"
1843
- >
1844
- assistiveText
1845
- </p>
1846
- </div>
1847
- <div
1848
- className="c6"
1849
- >
1850
- <div
1851
- className="c7 c8"
1852
- >
1853
- <label
1854
- className="c9"
1855
- >
1856
- DropdownSelector2
1857
- </label>
1858
- <span
1859
- className="c10 c11"
1860
- >
1861
- required
1862
- </span>
1863
- <div
1864
- className="c12 c13"
1865
- >
1866
- <span />
1867
- </div>
1868
- </div>
1869
- <div
1870
- aria-hidden="true"
1871
- style={
1872
- Object {
1873
- "border": 0,
1874
- "clip": "rect(0 0 0 0)",
1875
- "clipPath": "inset(50%)",
1876
- "height": "1px",
1877
- "margin": "-1px",
1878
- "overflow": "hidden",
1879
- "padding": 0,
1880
- "position": "absolute",
1881
- "whiteSpace": "nowrap",
1882
- "width": "1px",
1883
- }
1884
- }
1885
- >
1886
- <select
1887
- tabIndex={-1}
1888
- value="2"
1889
- >
1890
- <option
1891
- value="1"
1892
- >
1893
- 1
1894
- </option>
1895
- <option
1896
- value="2"
1897
- >
1898
- 2
1899
- </option>
1900
- <option
1901
- value="3"
1902
- >
1903
- 3
1904
- </option>
1905
- </select>
1906
- </div>
1907
- <button
1908
- className="c14"
1909
- onClick={[Function]}
1910
- type="button"
1911
- >
1912
- <span
1913
- className="c15"
1914
- >
1915
- Option 2
1916
- </span>
1917
- <pixiv-icon
1918
- class="c16"
1919
- name="16/Menu"
1920
- />
1921
- </button>
1922
- <div
1923
- className="c17"
1924
- >
1925
- assistiveText
1926
- </div>
1927
- </div>
1928
- </div>
1929
- </div>
1930
- <button
1931
- className="c26 c27 c28"
1932
- onClick={[Function]}
1933
- >
1934
- <pixiv-icon
1935
- name="24/Close"
1936
- />
1937
- </button>
1938
- </div>
1939
- </div>
1940
689
  </div>
1941
690
  </div>
1942
691
  `;
1943
692
 
1944
- exports[`Storybook Tests DropdownSelector Invalid 1`] = `
1945
- .c0 {
1946
- display: inline-block;
1947
- width: 100%;
1948
- }
1949
-
1950
- .c0:disabled,
1951
- .c0[aria-disabled]:not([aria-disabled=false]) {
1952
- cursor: default;
1953
- opacity: 0.32;
1954
- }
1955
-
1956
- .c1 {
1957
- display: -webkit-box;
1958
- display: -webkit-flex;
1959
- display: -ms-flexbox;
1960
- display: flex;
1961
- -webkit-box-pack: justify;
1962
- -webkit-justify-content: space-between;
1963
- -ms-flex-pack: justify;
1964
- justify-content: space-between;
1965
- -webkit-align-items: center;
1966
- -webkit-box-align: center;
1967
- -ms-flex-align: center;
1968
- align-items: center;
1969
- height: 40px;
1970
- width: 100%;
1971
- box-sizing: border-box;
1972
- border: none;
1973
- cursor: pointer;
1974
- gap: 4px;
1975
- padding-right: 8px;
1976
- padding-left: 8px;
1977
- background-color: var(--charcoal-surface3);
1978
- border-radius: 4px;
1979
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1980
- transition: 0.2s box-shadow,0.2s background-color;
1981
- }
1982
-
1983
- .c1:disabled,
1984
- .c1[aria-disabled]:not([aria-disabled=false]) {
1985
- cursor: default;
1986
- }
1987
-
1988
- .c1:not(:disabled):not([aria-disabled]):focus,
1989
- .c1[aria-disabled='false']:focus {
1990
- outline: none;
1991
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1992
- }
1993
-
1994
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1995
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1996
- box-shadow: none;
1997
- }
1998
-
1999
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
2000
- .c1[aria-disabled='false']:focus-visible {
2001
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2002
- }
2003
-
2004
- .c1:not(:disabled):not([aria-disabled]):hover,
2005
- .c1[aria-disabled='false']:hover {
2006
- background-color: var(--charcoal-surface3-hover);
2007
- }
2008
-
2009
- .c1:not(:disabled):not([aria-disabled]):active,
2010
- .c1[aria-disabled='false']:active {
2011
- background-color: var(--charcoal-surface3-press);
2012
- }
2013
-
2014
- .c1:not(:disabled):not([aria-disabled]),
2015
- .c1[aria-disabled='false'] {
2016
- box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
2017
- }
2018
-
2019
- .c2 {
2020
- text-align: left;
2021
- font-size: 14px;
2022
- line-height: 22px;
2023
- display: flow-root;
2024
- color: var(--charcoal-text2);
2025
- overflow: hidden;
2026
- text-overflow: ellipsis;
2027
- white-space: nowrap;
2028
- }
2029
-
2030
- .c3 {
2031
- color: var(--charcoal-text2);
2032
- }
2033
-
693
+ exports[`Storybook Tests react/DropdownSelector Invalid 1`] = `
2034
694
  <div
2035
695
  data-dark={false}
2036
696
  >
2037
697
  <div
2038
698
  style={
2039
- Object {
699
+ {
2040
700
  "width": 288,
2041
701
  }
2042
702
  }
2043
703
  >
2044
704
  <div
2045
- className="c0"
705
+ className="charcoal-dropdown-selector-root"
2046
706
  >
707
+ <div
708
+ className="charcoal-field-label-root"
709
+ style={
710
+ {
711
+ "border": 0,
712
+ "clip": "rect(0 0 0 0)",
713
+ "clipPath": "inset(50%)",
714
+ "height": "1px",
715
+ "margin": "-1px",
716
+ "overflow": "hidden",
717
+ "padding": 0,
718
+ "position": "absolute",
719
+ "whiteSpace": "nowrap",
720
+ "width": "1px",
721
+ }
722
+ }
723
+ >
724
+ <label
725
+ className="charcoal-field-label"
726
+ id="test-id"
727
+ >
728
+ Label
729
+ </label>
730
+ <div
731
+ className="charcoal-field-label-sub-label"
732
+ >
733
+ <span />
734
+ </div>
735
+ </div>
2047
736
  <div
2048
737
  aria-hidden="true"
2049
738
  style={
2050
- Object {
739
+ {
2051
740
  "border": 0,
2052
741
  "clip": "rect(0 0 0 0)",
2053
742
  "clipPath": "inset(50%)",
@@ -2062,6 +751,7 @@ exports[`Storybook Tests DropdownSelector Invalid 1`] = `
2062
751
  }
2063
752
  >
2064
753
  <select
754
+ onChange={[Function]}
2065
755
  tabIndex={-1}
2066
756
  value="1"
2067
757
  >
@@ -2083,17 +773,21 @@ exports[`Storybook Tests DropdownSelector Invalid 1`] = `
2083
773
  </select>
2084
774
  </div>
2085
775
  <button
2086
- className="c1"
776
+ aria-invalid={true}
777
+ aria-labelledby="test-id"
778
+ className="charcoal-dropdown-selector-button"
779
+ data-active={false}
2087
780
  onClick={[Function]}
2088
781
  type="button"
2089
782
  >
2090
783
  <span
2091
- className="c2"
784
+ className="charcoal-ui-dropdown-selector-text"
785
+ data-placeholder={false}
2092
786
  >
2093
787
  Option 1
2094
788
  </span>
2095
789
  <pixiv-icon
2096
- class="c3"
790
+ class="charcoal-ui-dropdown-selector-icon"
2097
791
  name="16/Menu"
2098
792
  />
2099
793
  </button>
@@ -2102,138 +796,53 @@ exports[`Storybook Tests DropdownSelector Invalid 1`] = `
2102
796
  </div>
2103
797
  `;
2104
798
 
2105
- exports[`Storybook Tests DropdownSelector InvalidAssistiveText 1`] = `
2106
- .c0 {
2107
- display: inline-block;
2108
- width: 100%;
2109
- }
2110
-
2111
- .c0:disabled,
2112
- .c0[aria-disabled]:not([aria-disabled=false]) {
2113
- cursor: default;
2114
- opacity: 0.32;
2115
- }
2116
-
2117
- .c1 {
2118
- display: -webkit-box;
2119
- display: -webkit-flex;
2120
- display: -ms-flexbox;
2121
- display: flex;
2122
- -webkit-box-pack: justify;
2123
- -webkit-justify-content: space-between;
2124
- -ms-flex-pack: justify;
2125
- justify-content: space-between;
2126
- -webkit-align-items: center;
2127
- -webkit-box-align: center;
2128
- -ms-flex-align: center;
2129
- align-items: center;
2130
- height: 40px;
2131
- width: 100%;
2132
- box-sizing: border-box;
2133
- border: none;
2134
- cursor: pointer;
2135
- gap: 4px;
2136
- padding-right: 8px;
2137
- padding-left: 8px;
2138
- background-color: var(--charcoal-surface3);
2139
- border-radius: 4px;
2140
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
2141
- transition: 0.2s box-shadow,0.2s background-color;
2142
- }
2143
-
2144
- .c1:disabled,
2145
- .c1[aria-disabled]:not([aria-disabled=false]) {
2146
- cursor: default;
2147
- }
2148
-
2149
- .c1:not(:disabled):not([aria-disabled]):focus,
2150
- .c1[aria-disabled='false']:focus {
2151
- outline: none;
2152
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2153
- }
2154
-
2155
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2156
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
2157
- box-shadow: none;
2158
- }
2159
-
2160
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
2161
- .c1[aria-disabled='false']:focus-visible {
2162
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2163
- }
2164
-
2165
- .c1:not(:disabled):not([aria-disabled]):hover,
2166
- .c1[aria-disabled='false']:hover {
2167
- background-color: var(--charcoal-surface3-hover);
2168
- }
2169
-
2170
- .c1:not(:disabled):not([aria-disabled]):active,
2171
- .c1[aria-disabled='false']:active {
2172
- background-color: var(--charcoal-surface3-press);
2173
- }
2174
-
2175
- .c1:not(:disabled):not([aria-disabled]),
2176
- .c1[aria-disabled='false'] {
2177
- box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
2178
- }
2179
-
2180
- .c2 {
2181
- text-align: left;
2182
- font-size: 14px;
2183
- line-height: 22px;
2184
- display: flow-root;
2185
- color: var(--charcoal-text2);
2186
- overflow: hidden;
2187
- text-overflow: ellipsis;
2188
- white-space: nowrap;
2189
- }
2190
-
2191
- .c3 {
2192
- color: var(--charcoal-text2);
2193
- }
2194
-
2195
- .c4 {
2196
- margin-top: 8px;
2197
- font-size: 14px;
2198
- color: var(--charcoal-text2);
2199
- line-height: 22px;
2200
- display: flow-root;
2201
- color: var(--charcoal-assertive);
2202
- }
2203
-
2204
- .c4::before {
2205
- display: block;
2206
- width: 0;
2207
- height: 0;
2208
- content: '';
2209
- margin-top: -4px;
2210
- }
2211
-
2212
- .c4::after {
2213
- display: block;
2214
- width: 0;
2215
- height: 0;
2216
- content: '';
2217
- margin-bottom: -4px;
2218
- }
2219
-
799
+ exports[`Storybook Tests react/DropdownSelector InvalidAssistiveText 1`] = `
2220
800
  <div
2221
801
  data-dark={false}
2222
802
  >
2223
803
  <div
2224
804
  style={
2225
- Object {
805
+ {
2226
806
  "width": 288,
2227
807
  }
2228
808
  }
2229
809
  >
2230
810
  <div
2231
- className="c0"
811
+ className="charcoal-dropdown-selector-root"
2232
812
  >
813
+ <div
814
+ className="charcoal-field-label-root"
815
+ style={
816
+ {
817
+ "border": 0,
818
+ "clip": "rect(0 0 0 0)",
819
+ "clipPath": "inset(50%)",
820
+ "height": "1px",
821
+ "margin": "-1px",
822
+ "overflow": "hidden",
823
+ "padding": 0,
824
+ "position": "absolute",
825
+ "whiteSpace": "nowrap",
826
+ "width": "1px",
827
+ }
828
+ }
829
+ >
830
+ <label
831
+ className="charcoal-field-label"
832
+ id="test-id"
833
+ >
834
+ Label
835
+ </label>
836
+ <div
837
+ className="charcoal-field-label-sub-label"
838
+ >
839
+ <span />
840
+ </div>
841
+ </div>
2233
842
  <div
2234
843
  aria-hidden="true"
2235
844
  style={
2236
- Object {
845
+ {
2237
846
  "border": 0,
2238
847
  "clip": "rect(0 0 0 0)",
2239
848
  "clipPath": "inset(50%)",
@@ -2248,6 +857,7 @@ exports[`Storybook Tests DropdownSelector InvalidAssistiveText 1`] = `
2248
857
  }
2249
858
  >
2250
859
  <select
860
+ onChange={[Function]}
2251
861
  tabIndex={-1}
2252
862
  value="1"
2253
863
  >
@@ -2269,22 +879,29 @@ exports[`Storybook Tests DropdownSelector InvalidAssistiveText 1`] = `
2269
879
  </select>
2270
880
  </div>
2271
881
  <button
2272
- className="c1"
882
+ aria-describedby="test-id"
883
+ aria-invalid={true}
884
+ aria-labelledby="test-id"
885
+ className="charcoal-dropdown-selector-button"
886
+ data-active={false}
2273
887
  onClick={[Function]}
2274
888
  type="button"
2275
889
  >
2276
890
  <span
2277
- className="c2"
891
+ className="charcoal-ui-dropdown-selector-text"
892
+ data-placeholder={false}
2278
893
  >
2279
894
  Option 1
2280
895
  </span>
2281
896
  <pixiv-icon
2282
- class="c3"
897
+ class="charcoal-ui-dropdown-selector-icon"
2283
898
  name="16/Menu"
2284
899
  />
2285
900
  </button>
2286
901
  <div
2287
- className="c4"
902
+ className="charcoal-text-field-assistive-text"
903
+ data-invalid={true}
904
+ id="test-id"
2288
905
  >
2289
906
  assistiveText
2290
907
  </div>
@@ -2293,203 +910,31 @@ exports[`Storybook Tests DropdownSelector InvalidAssistiveText 1`] = `
2293
910
  </div>
2294
911
  `;
2295
912
 
2296
- exports[`Storybook Tests DropdownSelector Label 1`] = `
2297
- .c3 {
2298
- font-size: 14px;
2299
- line-height: 22px;
2300
- font-weight: bold;
2301
- display: flow-root;
2302
- color: var(--charcoal-text1);
2303
- }
2304
-
2305
- .c3::before {
2306
- display: block;
2307
- width: 0;
2308
- height: 0;
2309
- content: '';
2310
- margin-top: -4px;
2311
- }
2312
-
2313
- .c3::after {
2314
- display: block;
2315
- width: 0;
2316
- height: 0;
2317
- content: '';
2318
- margin-bottom: -4px;
2319
- }
2320
-
2321
- .c5 {
2322
- font-size: 14px;
2323
- line-height: 22px;
2324
- display: flow-root;
2325
- color: var(--charcoal-text3);
2326
- -webkit-transition: 0.2s color,0.2s box-shadow;
2327
- transition: 0.2s color,0.2s box-shadow;
2328
- }
2329
-
2330
- .c5::before {
2331
- display: block;
2332
- width: 0;
2333
- height: 0;
2334
- content: '';
2335
- margin-top: -4px;
2336
- }
2337
-
2338
- .c5::after {
2339
- display: block;
2340
- width: 0;
2341
- height: 0;
2342
- content: '';
2343
- margin-bottom: -4px;
2344
- }
2345
-
2346
- .c5:not(:disabled):not([aria-disabled]):hover,
2347
- .c5[aria-disabled='false']:hover {
2348
- color: var(--charcoal-text3-hover);
2349
- }
2350
-
2351
- .c5:not(:disabled):not([aria-disabled]):active,
2352
- .c5[aria-disabled='false']:active {
2353
- color: var(--charcoal-text3-press);
2354
- }
2355
-
2356
- .c5:not(:disabled):not([aria-disabled]):active,
2357
- .c5[aria-disabled='false']:active,
2358
- .c5:not(:disabled):not([aria-disabled]):focus,
2359
- .c5[aria-disabled='false']:focus,
2360
- .c5:not(:disabled):not([aria-disabled]):focus-visible,
2361
- .c5[aria-disabled='false']:focus-visible {
2362
- outline: none;
2363
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2364
- }
2365
-
2366
- .c1 {
2367
- display: -webkit-inline-box;
2368
- display: -webkit-inline-flex;
2369
- display: -ms-inline-flexbox;
2370
- display: inline-flex;
2371
- -webkit-align-items: center;
2372
- -webkit-box-align: center;
2373
- -ms-flex-align: center;
2374
- align-items: center;
2375
- }
2376
-
2377
- .c1 > .c4 {
2378
- margin-left: auto;
2379
- }
2380
-
2381
- .c0 {
2382
- display: inline-block;
2383
- width: 100%;
2384
- }
2385
-
2386
- .c0:disabled,
2387
- .c0[aria-disabled]:not([aria-disabled=false]) {
2388
- cursor: default;
2389
- opacity: 0.32;
2390
- }
2391
-
2392
- .c2 {
2393
- width: 100%;
2394
- margin-bottom: 8px;
2395
- }
2396
-
2397
- .c6 {
2398
- display: -webkit-box;
2399
- display: -webkit-flex;
2400
- display: -ms-flexbox;
2401
- display: flex;
2402
- -webkit-box-pack: justify;
2403
- -webkit-justify-content: space-between;
2404
- -ms-flex-pack: justify;
2405
- justify-content: space-between;
2406
- -webkit-align-items: center;
2407
- -webkit-box-align: center;
2408
- -ms-flex-align: center;
2409
- align-items: center;
2410
- height: 40px;
2411
- width: 100%;
2412
- box-sizing: border-box;
2413
- border: none;
2414
- cursor: pointer;
2415
- gap: 4px;
2416
- padding-right: 8px;
2417
- padding-left: 8px;
2418
- background-color: var(--charcoal-surface3);
2419
- border-radius: 4px;
2420
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
2421
- transition: 0.2s box-shadow,0.2s background-color;
2422
- }
2423
-
2424
- .c6:disabled,
2425
- .c6[aria-disabled]:not([aria-disabled=false]) {
2426
- cursor: default;
2427
- }
2428
-
2429
- .c6:not(:disabled):not([aria-disabled]):focus,
2430
- .c6[aria-disabled='false']:focus {
2431
- outline: none;
2432
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2433
- }
2434
-
2435
- .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2436
- .c6[aria-disabled='false']:focus:not(:focus-visible) {
2437
- box-shadow: none;
2438
- }
2439
-
2440
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
2441
- .c6[aria-disabled='false']:focus-visible {
2442
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2443
- }
2444
-
2445
- .c6:not(:disabled):not([aria-disabled]):hover,
2446
- .c6[aria-disabled='false']:hover {
2447
- background-color: var(--charcoal-surface3-hover);
2448
- }
2449
-
2450
- .c6:not(:disabled):not([aria-disabled]):active,
2451
- .c6[aria-disabled='false']:active {
2452
- background-color: var(--charcoal-surface3-press);
2453
- }
2454
-
2455
- .c7 {
2456
- text-align: left;
2457
- font-size: 14px;
2458
- line-height: 22px;
2459
- display: flow-root;
2460
- color: var(--charcoal-text2);
2461
- overflow: hidden;
2462
- text-overflow: ellipsis;
2463
- white-space: nowrap;
2464
- }
2465
-
2466
- .c8 {
2467
- color: var(--charcoal-text2);
2468
- }
2469
-
913
+ exports[`Storybook Tests react/DropdownSelector Label 1`] = `
2470
914
  <div
2471
915
  data-dark={false}
2472
916
  >
2473
917
  <div
2474
918
  style={
2475
- Object {
919
+ {
2476
920
  "width": 288,
2477
921
  }
2478
922
  }
2479
923
  >
2480
924
  <div
2481
- className="c0"
925
+ className="charcoal-dropdown-selector-root"
2482
926
  >
2483
927
  <div
2484
- className="c1 c2"
928
+ className="charcoal-field-label-root"
2485
929
  >
2486
930
  <label
2487
- className="c3"
931
+ className="charcoal-field-label"
932
+ id="test-id"
2488
933
  >
2489
934
  Label
2490
935
  </label>
2491
936
  <div
2492
- className="c4 c5"
937
+ className="charcoal-field-label-sub-label"
2493
938
  >
2494
939
  <span />
2495
940
  </div>
@@ -2497,7 +942,7 @@ exports[`Storybook Tests DropdownSelector Label 1`] = `
2497
942
  <div
2498
943
  aria-hidden="true"
2499
944
  style={
2500
- Object {
945
+ {
2501
946
  "border": 0,
2502
947
  "clip": "rect(0 0 0 0)",
2503
948
  "clipPath": "inset(50%)",
@@ -2512,6 +957,7 @@ exports[`Storybook Tests DropdownSelector Label 1`] = `
2512
957
  }
2513
958
  >
2514
959
  <select
960
+ onChange={[Function]}
2515
961
  tabIndex={-1}
2516
962
  value="1"
2517
963
  >
@@ -2533,17 +979,20 @@ exports[`Storybook Tests DropdownSelector Label 1`] = `
2533
979
  </select>
2534
980
  </div>
2535
981
  <button
2536
- className="c6"
982
+ aria-labelledby="test-id"
983
+ className="charcoal-dropdown-selector-button"
984
+ data-active={false}
2537
985
  onClick={[Function]}
2538
986
  type="button"
2539
987
  >
2540
988
  <span
2541
- className="c7"
989
+ className="charcoal-ui-dropdown-selector-text"
990
+ data-placeholder={false}
2542
991
  >
2543
992
  Option 1
2544
993
  </span>
2545
994
  <pixiv-icon
2546
- class="c8"
995
+ class="charcoal-ui-dropdown-selector-icon"
2547
996
  name="16/Menu"
2548
997
  />
2549
998
  </button>
@@ -2552,108 +1001,53 @@ exports[`Storybook Tests DropdownSelector Label 1`] = `
2552
1001
  </div>
2553
1002
  `;
2554
1003
 
2555
- exports[`Storybook Tests DropdownSelector LongNames 1`] = `
2556
- .c0 {
2557
- display: inline-block;
2558
- width: 100%;
2559
- }
2560
-
2561
- .c0:disabled,
2562
- .c0[aria-disabled]:not([aria-disabled=false]) {
2563
- cursor: default;
2564
- opacity: 0.32;
2565
- }
2566
-
2567
- .c1 {
2568
- display: -webkit-box;
2569
- display: -webkit-flex;
2570
- display: -ms-flexbox;
2571
- display: flex;
2572
- -webkit-box-pack: justify;
2573
- -webkit-justify-content: space-between;
2574
- -ms-flex-pack: justify;
2575
- justify-content: space-between;
2576
- -webkit-align-items: center;
2577
- -webkit-box-align: center;
2578
- -ms-flex-align: center;
2579
- align-items: center;
2580
- height: 40px;
2581
- width: 100%;
2582
- box-sizing: border-box;
2583
- border: none;
2584
- cursor: pointer;
2585
- gap: 4px;
2586
- padding-right: 8px;
2587
- padding-left: 8px;
2588
- background-color: var(--charcoal-surface3);
2589
- border-radius: 4px;
2590
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
2591
- transition: 0.2s box-shadow,0.2s background-color;
2592
- }
2593
-
2594
- .c1:disabled,
2595
- .c1[aria-disabled]:not([aria-disabled=false]) {
2596
- cursor: default;
2597
- }
2598
-
2599
- .c1:not(:disabled):not([aria-disabled]):focus,
2600
- .c1[aria-disabled='false']:focus {
2601
- outline: none;
2602
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2603
- }
2604
-
2605
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2606
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
2607
- box-shadow: none;
2608
- }
2609
-
2610
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
2611
- .c1[aria-disabled='false']:focus-visible {
2612
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2613
- }
2614
-
2615
- .c1:not(:disabled):not([aria-disabled]):hover,
2616
- .c1[aria-disabled='false']:hover {
2617
- background-color: var(--charcoal-surface3-hover);
2618
- }
2619
-
2620
- .c1:not(:disabled):not([aria-disabled]):active,
2621
- .c1[aria-disabled='false']:active {
2622
- background-color: var(--charcoal-surface3-press);
2623
- }
2624
-
2625
- .c2 {
2626
- text-align: left;
2627
- font-size: 14px;
2628
- line-height: 22px;
2629
- display: flow-root;
2630
- color: var(--charcoal-text2);
2631
- overflow: hidden;
2632
- text-overflow: ellipsis;
2633
- white-space: nowrap;
2634
- }
2635
-
2636
- .c3 {
2637
- color: var(--charcoal-text2);
2638
- }
2639
-
1004
+ exports[`Storybook Tests react/DropdownSelector LongNames 1`] = `
2640
1005
  <div
2641
1006
  data-dark={false}
2642
1007
  >
2643
1008
  <div
2644
1009
  style={
2645
- Object {
1010
+ {
2646
1011
  "width": 288,
2647
1012
  }
2648
1013
  }
2649
1014
  >
2650
1015
  <div
2651
- className="c0"
1016
+ className="charcoal-dropdown-selector-root"
2652
1017
  >
1018
+ <div
1019
+ className="charcoal-field-label-root"
1020
+ style={
1021
+ {
1022
+ "border": 0,
1023
+ "clip": "rect(0 0 0 0)",
1024
+ "clipPath": "inset(50%)",
1025
+ "height": "1px",
1026
+ "margin": "-1px",
1027
+ "overflow": "hidden",
1028
+ "padding": 0,
1029
+ "position": "absolute",
1030
+ "whiteSpace": "nowrap",
1031
+ "width": "1px",
1032
+ }
1033
+ }
1034
+ >
1035
+ <label
1036
+ className="charcoal-field-label"
1037
+ id="test-id"
1038
+ >
1039
+ label
1040
+ </label>
1041
+ <div
1042
+ className="charcoal-field-label-sub-label"
1043
+ >
1044
+ <span />
1045
+ </div>
1046
+ </div>
2653
1047
  <div
2654
1048
  aria-hidden="true"
2655
1049
  style={
2656
- Object {
1050
+ {
2657
1051
  "border": 0,
2658
1052
  "clip": "rect(0 0 0 0)",
2659
1053
  "clipPath": "inset(50%)",
@@ -2668,6 +1062,7 @@ exports[`Storybook Tests DropdownSelector LongNames 1`] = `
2668
1062
  }
2669
1063
  >
2670
1064
  <select
1065
+ onChange={[Function]}
2671
1066
  tabIndex={-1}
2672
1067
  value="1"
2673
1068
  >
@@ -2689,17 +1084,20 @@ exports[`Storybook Tests DropdownSelector LongNames 1`] = `
2689
1084
  </select>
2690
1085
  </div>
2691
1086
  <button
2692
- className="c1"
1087
+ aria-labelledby="test-id"
1088
+ className="charcoal-dropdown-selector-button"
1089
+ data-active={false}
2693
1090
  onClick={[Function]}
2694
1091
  type="button"
2695
1092
  >
2696
1093
  <span
2697
- className="c2"
1094
+ className="charcoal-ui-dropdown-selector-text"
1095
+ data-placeholder={false}
2698
1096
  >
2699
1097
  Lorem ipsum dolor sit amet, consectetur adipisicing elit,
2700
1098
  </span>
2701
1099
  <pixiv-icon
2702
- class="c3"
1100
+ class="charcoal-ui-dropdown-selector-icon"
2703
1101
  name="16/Menu"
2704
1102
  />
2705
1103
  </button>
@@ -2708,240 +1106,36 @@ exports[`Storybook Tests DropdownSelector LongNames 1`] = `
2708
1106
  </div>
2709
1107
  `;
2710
1108
 
2711
- exports[`Storybook Tests DropdownSelector RequiredText 1`] = `
2712
- .c3 {
2713
- font-size: 14px;
2714
- line-height: 22px;
2715
- font-weight: bold;
2716
- display: flow-root;
2717
- color: var(--charcoal-text1);
2718
- }
2719
-
2720
- .c3::before {
2721
- display: block;
2722
- width: 0;
2723
- height: 0;
2724
- content: '';
2725
- margin-top: -4px;
2726
- }
2727
-
2728
- .c3::after {
2729
- display: block;
2730
- width: 0;
2731
- height: 0;
2732
- content: '';
2733
- margin-bottom: -4px;
2734
- }
2735
-
2736
- .c5 {
2737
- font-size: 14px;
2738
- line-height: 22px;
2739
- display: flow-root;
2740
- color: var(--charcoal-text2);
2741
- }
2742
-
2743
- .c5::before {
2744
- display: block;
2745
- width: 0;
2746
- height: 0;
2747
- content: '';
2748
- margin-top: -4px;
2749
- }
2750
-
2751
- .c5::after {
2752
- display: block;
2753
- width: 0;
2754
- height: 0;
2755
- content: '';
2756
- margin-bottom: -4px;
2757
- }
2758
-
2759
- .c7 {
2760
- font-size: 14px;
2761
- line-height: 22px;
2762
- display: flow-root;
2763
- color: var(--charcoal-text3);
2764
- -webkit-transition: 0.2s color,0.2s box-shadow;
2765
- transition: 0.2s color,0.2s box-shadow;
2766
- }
2767
-
2768
- .c7::before {
2769
- display: block;
2770
- width: 0;
2771
- height: 0;
2772
- content: '';
2773
- margin-top: -4px;
2774
- }
2775
-
2776
- .c7::after {
2777
- display: block;
2778
- width: 0;
2779
- height: 0;
2780
- content: '';
2781
- margin-bottom: -4px;
2782
- }
2783
-
2784
- .c7:not(:disabled):not([aria-disabled]):hover,
2785
- .c7[aria-disabled='false']:hover {
2786
- color: var(--charcoal-text3-hover);
2787
- }
2788
-
2789
- .c7:not(:disabled):not([aria-disabled]):active,
2790
- .c7[aria-disabled='false']:active {
2791
- color: var(--charcoal-text3-press);
2792
- }
2793
-
2794
- .c7:not(:disabled):not([aria-disabled]):active,
2795
- .c7[aria-disabled='false']:active,
2796
- .c7:not(:disabled):not([aria-disabled]):focus,
2797
- .c7[aria-disabled='false']:focus,
2798
- .c7:not(:disabled):not([aria-disabled]):focus-visible,
2799
- .c7[aria-disabled='false']:focus-visible {
2800
- outline: none;
2801
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2802
- }
2803
-
2804
- .c1 {
2805
- display: -webkit-inline-box;
2806
- display: -webkit-inline-flex;
2807
- display: -ms-inline-flexbox;
2808
- display: inline-flex;
2809
- -webkit-align-items: center;
2810
- -webkit-box-align: center;
2811
- -ms-flex-align: center;
2812
- align-items: center;
2813
- }
2814
-
2815
- .c1 > .c4 {
2816
- margin-left: 4px;
2817
- }
2818
-
2819
- .c1 > .c6 {
2820
- margin-left: auto;
2821
- }
2822
-
2823
- .c0 {
2824
- display: inline-block;
2825
- width: 100%;
2826
- }
2827
-
2828
- .c0:disabled,
2829
- .c0[aria-disabled]:not([aria-disabled=false]) {
2830
- cursor: default;
2831
- opacity: 0.32;
2832
- }
2833
-
2834
- .c2 {
2835
- width: 100%;
2836
- margin-bottom: 8px;
2837
- }
2838
-
2839
- .c8 {
2840
- display: -webkit-box;
2841
- display: -webkit-flex;
2842
- display: -ms-flexbox;
2843
- display: flex;
2844
- -webkit-box-pack: justify;
2845
- -webkit-justify-content: space-between;
2846
- -ms-flex-pack: justify;
2847
- justify-content: space-between;
2848
- -webkit-align-items: center;
2849
- -webkit-box-align: center;
2850
- -ms-flex-align: center;
2851
- align-items: center;
2852
- height: 40px;
2853
- width: 100%;
2854
- box-sizing: border-box;
2855
- border: none;
2856
- cursor: pointer;
2857
- gap: 4px;
2858
- padding-right: 8px;
2859
- padding-left: 8px;
2860
- background-color: var(--charcoal-surface3);
2861
- border-radius: 4px;
2862
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
2863
- transition: 0.2s box-shadow,0.2s background-color;
2864
- }
2865
-
2866
- .c8:disabled,
2867
- .c8[aria-disabled]:not([aria-disabled=false]) {
2868
- cursor: default;
2869
- }
2870
-
2871
- .c8:not(:disabled):not([aria-disabled]):focus,
2872
- .c8[aria-disabled='false']:focus {
2873
- outline: none;
2874
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2875
- }
2876
-
2877
- .c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2878
- .c8[aria-disabled='false']:focus:not(:focus-visible) {
2879
- box-shadow: none;
2880
- }
2881
-
2882
- .c8:not(:disabled):not([aria-disabled]):focus-visible,
2883
- .c8[aria-disabled='false']:focus-visible {
2884
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2885
- }
2886
-
2887
- .c8:not(:disabled):not([aria-disabled]):hover,
2888
- .c8[aria-disabled='false']:hover {
2889
- background-color: var(--charcoal-surface3-hover);
2890
- }
2891
-
2892
- .c8:not(:disabled):not([aria-disabled]):active,
2893
- .c8[aria-disabled='false']:active {
2894
- background-color: var(--charcoal-surface3-press);
2895
- }
2896
-
2897
- .c8:not(:disabled):not([aria-disabled]),
2898
- .c8[aria-disabled='false'] {
2899
- box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
2900
- }
2901
-
2902
- .c9 {
2903
- text-align: left;
2904
- font-size: 14px;
2905
- line-height: 22px;
2906
- display: flow-root;
2907
- color: var(--charcoal-text2);
2908
- overflow: hidden;
2909
- text-overflow: ellipsis;
2910
- white-space: nowrap;
2911
- }
2912
-
2913
- .c10 {
2914
- color: var(--charcoal-text2);
2915
- }
2916
-
1109
+ exports[`Storybook Tests react/DropdownSelector RequiredText 1`] = `
2917
1110
  <div
2918
1111
  data-dark={false}
2919
1112
  >
2920
1113
  <div
2921
1114
  style={
2922
- Object {
1115
+ {
2923
1116
  "width": 288,
2924
1117
  }
2925
1118
  }
2926
1119
  >
2927
1120
  <div
2928
- className="c0"
1121
+ className="charcoal-dropdown-selector-root"
2929
1122
  >
2930
1123
  <div
2931
- className="c1 c2"
1124
+ className="charcoal-field-label-root"
2932
1125
  >
2933
1126
  <label
2934
- className="c3"
1127
+ className="charcoal-field-label"
1128
+ id="test-id"
2935
1129
  >
2936
1130
  Label
2937
1131
  </label>
2938
- <span
2939
- className="c4 c5"
1132
+ <div
1133
+ className="charcoal-field-label-required-text"
2940
1134
  >
2941
1135
  required
2942
- </span>
1136
+ </div>
2943
1137
  <div
2944
- className="c6 c7"
1138
+ className="charcoal-field-label-sub-label"
2945
1139
  >
2946
1140
  <span />
2947
1141
  </div>
@@ -2949,7 +1143,7 @@ exports[`Storybook Tests DropdownSelector RequiredText 1`] = `
2949
1143
  <div
2950
1144
  aria-hidden="true"
2951
1145
  style={
2952
- Object {
1146
+ {
2953
1147
  "border": 0,
2954
1148
  "clip": "rect(0 0 0 0)",
2955
1149
  "clipPath": "inset(50%)",
@@ -2964,6 +1158,7 @@ exports[`Storybook Tests DropdownSelector RequiredText 1`] = `
2964
1158
  }
2965
1159
  >
2966
1160
  <select
1161
+ onChange={[Function]}
2967
1162
  tabIndex={-1}
2968
1163
  value="1"
2969
1164
  >
@@ -2985,17 +1180,20 @@ exports[`Storybook Tests DropdownSelector RequiredText 1`] = `
2985
1180
  </select>
2986
1181
  </div>
2987
1182
  <button
2988
- className="c8"
1183
+ aria-labelledby="test-id"
1184
+ className="charcoal-dropdown-selector-button"
1185
+ data-active={false}
2989
1186
  onClick={[Function]}
2990
1187
  type="button"
2991
1188
  >
2992
1189
  <span
2993
- className="c9"
1190
+ className="charcoal-ui-dropdown-selector-text"
1191
+ data-placeholder={false}
2994
1192
  >
2995
1193
  Option 1
2996
1194
  </span>
2997
1195
  <pixiv-icon
2998
- class="c10"
1196
+ class="charcoal-ui-dropdown-selector-icon"
2999
1197
  name="16/Menu"
3000
1198
  />
3001
1199
  </button>
@@ -3004,108 +1202,53 @@ exports[`Storybook Tests DropdownSelector RequiredText 1`] = `
3004
1202
  </div>
3005
1203
  `;
3006
1204
 
3007
- exports[`Storybook Tests DropdownSelector Section 1`] = `
3008
- .c0 {
3009
- display: inline-block;
3010
- width: 100%;
3011
- }
3012
-
3013
- .c0:disabled,
3014
- .c0[aria-disabled]:not([aria-disabled=false]) {
3015
- cursor: default;
3016
- opacity: 0.32;
3017
- }
3018
-
3019
- .c1 {
3020
- display: -webkit-box;
3021
- display: -webkit-flex;
3022
- display: -ms-flexbox;
3023
- display: flex;
3024
- -webkit-box-pack: justify;
3025
- -webkit-justify-content: space-between;
3026
- -ms-flex-pack: justify;
3027
- justify-content: space-between;
3028
- -webkit-align-items: center;
3029
- -webkit-box-align: center;
3030
- -ms-flex-align: center;
3031
- align-items: center;
3032
- height: 40px;
3033
- width: 100%;
3034
- box-sizing: border-box;
3035
- border: none;
3036
- cursor: pointer;
3037
- gap: 4px;
3038
- padding-right: 8px;
3039
- padding-left: 8px;
3040
- background-color: var(--charcoal-surface3);
3041
- border-radius: 4px;
3042
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
3043
- transition: 0.2s box-shadow,0.2s background-color;
3044
- }
3045
-
3046
- .c1:disabled,
3047
- .c1[aria-disabled]:not([aria-disabled=false]) {
3048
- cursor: default;
3049
- }
3050
-
3051
- .c1:not(:disabled):not([aria-disabled]):focus,
3052
- .c1[aria-disabled='false']:focus {
3053
- outline: none;
3054
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3055
- }
3056
-
3057
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3058
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
3059
- box-shadow: none;
3060
- }
3061
-
3062
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
3063
- .c1[aria-disabled='false']:focus-visible {
3064
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3065
- }
3066
-
3067
- .c1:not(:disabled):not([aria-disabled]):hover,
3068
- .c1[aria-disabled='false']:hover {
3069
- background-color: var(--charcoal-surface3-hover);
3070
- }
3071
-
3072
- .c1:not(:disabled):not([aria-disabled]):active,
3073
- .c1[aria-disabled='false']:active {
3074
- background-color: var(--charcoal-surface3-press);
3075
- }
3076
-
3077
- .c2 {
3078
- text-align: left;
3079
- font-size: 14px;
3080
- line-height: 22px;
3081
- display: flow-root;
3082
- color: var(--charcoal-text2);
3083
- overflow: hidden;
3084
- text-overflow: ellipsis;
3085
- white-space: nowrap;
3086
- }
3087
-
3088
- .c3 {
3089
- color: var(--charcoal-text2);
3090
- }
3091
-
1205
+ exports[`Storybook Tests react/DropdownSelector Section 1`] = `
3092
1206
  <div
3093
1207
  data-dark={false}
3094
1208
  >
3095
1209
  <div
3096
1210
  style={
3097
- Object {
1211
+ {
3098
1212
  "width": 288,
3099
1213
  }
3100
1214
  }
3101
1215
  >
3102
1216
  <div
3103
- className="c0"
1217
+ className="charcoal-dropdown-selector-root"
3104
1218
  >
1219
+ <div
1220
+ className="charcoal-field-label-root"
1221
+ style={
1222
+ {
1223
+ "border": 0,
1224
+ "clip": "rect(0 0 0 0)",
1225
+ "clipPath": "inset(50%)",
1226
+ "height": "1px",
1227
+ "margin": "-1px",
1228
+ "overflow": "hidden",
1229
+ "padding": 0,
1230
+ "position": "absolute",
1231
+ "whiteSpace": "nowrap",
1232
+ "width": "1px",
1233
+ }
1234
+ }
1235
+ >
1236
+ <label
1237
+ className="charcoal-field-label"
1238
+ id="test-id"
1239
+ >
1240
+ label
1241
+ </label>
1242
+ <div
1243
+ className="charcoal-field-label-sub-label"
1244
+ >
1245
+ <span />
1246
+ </div>
1247
+ </div>
3105
1248
  <div
3106
1249
  aria-hidden="true"
3107
1250
  style={
3108
- Object {
1251
+ {
3109
1252
  "border": 0,
3110
1253
  "clip": "rect(0 0 0 0)",
3111
1254
  "clipPath": "inset(50%)",
@@ -3120,6 +1263,7 @@ exports[`Storybook Tests DropdownSelector Section 1`] = `
3120
1263
  }
3121
1264
  >
3122
1265
  <select
1266
+ onChange={[Function]}
3123
1267
  tabIndex={-1}
3124
1268
  value="banana"
3125
1269
  >
@@ -3156,17 +1300,20 @@ exports[`Storybook Tests DropdownSelector Section 1`] = `
3156
1300
  </select>
3157
1301
  </div>
3158
1302
  <button
3159
- className="c1"
1303
+ aria-labelledby="test-id"
1304
+ className="charcoal-dropdown-selector-button"
1305
+ data-active={false}
3160
1306
  onClick={[Function]}
3161
1307
  type="button"
3162
1308
  >
3163
1309
  <span
3164
- className="c2"
1310
+ className="charcoal-ui-dropdown-selector-text"
1311
+ data-placeholder={false}
3165
1312
  >
3166
1313
  Banana
3167
1314
  </span>
3168
1315
  <pixiv-icon
3169
- class="c3"
1316
+ class="charcoal-ui-dropdown-selector-icon"
3170
1317
  name="16/Menu"
3171
1318
  />
3172
1319
  </button>
@@ -3175,208 +1322,31 @@ exports[`Storybook Tests DropdownSelector Section 1`] = `
3175
1322
  </div>
3176
1323
  `;
3177
1324
 
3178
- exports[`Storybook Tests DropdownSelector SubLabel 1`] = `
3179
- .c3 {
3180
- font-size: 14px;
3181
- line-height: 22px;
3182
- font-weight: bold;
3183
- display: flow-root;
3184
- color: var(--charcoal-text1);
3185
- }
3186
-
3187
- .c3::before {
3188
- display: block;
3189
- width: 0;
3190
- height: 0;
3191
- content: '';
3192
- margin-top: -4px;
3193
- }
3194
-
3195
- .c3::after {
3196
- display: block;
3197
- width: 0;
3198
- height: 0;
3199
- content: '';
3200
- margin-bottom: -4px;
3201
- }
3202
-
3203
- .c5 {
3204
- font-size: 14px;
3205
- line-height: 22px;
3206
- display: flow-root;
3207
- color: var(--charcoal-text3);
3208
- -webkit-transition: 0.2s color,0.2s box-shadow;
3209
- transition: 0.2s color,0.2s box-shadow;
3210
- }
3211
-
3212
- .c5::before {
3213
- display: block;
3214
- width: 0;
3215
- height: 0;
3216
- content: '';
3217
- margin-top: -4px;
3218
- }
3219
-
3220
- .c5::after {
3221
- display: block;
3222
- width: 0;
3223
- height: 0;
3224
- content: '';
3225
- margin-bottom: -4px;
3226
- }
3227
-
3228
- .c5:not(:disabled):not([aria-disabled]):hover,
3229
- .c5[aria-disabled='false']:hover {
3230
- color: var(--charcoal-text3-hover);
3231
- }
3232
-
3233
- .c5:not(:disabled):not([aria-disabled]):active,
3234
- .c5[aria-disabled='false']:active {
3235
- color: var(--charcoal-text3-press);
3236
- }
3237
-
3238
- .c5:not(:disabled):not([aria-disabled]):active,
3239
- .c5[aria-disabled='false']:active,
3240
- .c5:not(:disabled):not([aria-disabled]):focus,
3241
- .c5[aria-disabled='false']:focus,
3242
- .c5:not(:disabled):not([aria-disabled]):focus-visible,
3243
- .c5[aria-disabled='false']:focus-visible {
3244
- outline: none;
3245
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3246
- }
3247
-
3248
- .c1 {
3249
- display: -webkit-inline-box;
3250
- display: -webkit-inline-flex;
3251
- display: -ms-inline-flexbox;
3252
- display: inline-flex;
3253
- -webkit-align-items: center;
3254
- -webkit-box-align: center;
3255
- -ms-flex-align: center;
3256
- align-items: center;
3257
- }
3258
-
3259
- .c1 > .c4 {
3260
- margin-left: auto;
3261
- }
3262
-
3263
- .c0 {
3264
- display: inline-block;
3265
- width: 100%;
3266
- }
3267
-
3268
- .c0:disabled,
3269
- .c0[aria-disabled]:not([aria-disabled=false]) {
3270
- cursor: default;
3271
- opacity: 0.32;
3272
- }
3273
-
3274
- .c2 {
3275
- width: 100%;
3276
- margin-bottom: 8px;
3277
- }
3278
-
3279
- .c6 {
3280
- display: -webkit-box;
3281
- display: -webkit-flex;
3282
- display: -ms-flexbox;
3283
- display: flex;
3284
- -webkit-box-pack: justify;
3285
- -webkit-justify-content: space-between;
3286
- -ms-flex-pack: justify;
3287
- justify-content: space-between;
3288
- -webkit-align-items: center;
3289
- -webkit-box-align: center;
3290
- -ms-flex-align: center;
3291
- align-items: center;
3292
- height: 40px;
3293
- width: 100%;
3294
- box-sizing: border-box;
3295
- border: none;
3296
- cursor: pointer;
3297
- gap: 4px;
3298
- padding-right: 8px;
3299
- padding-left: 8px;
3300
- background-color: var(--charcoal-surface3);
3301
- border-radius: 4px;
3302
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
3303
- transition: 0.2s box-shadow,0.2s background-color;
3304
- }
3305
-
3306
- .c6:disabled,
3307
- .c6[aria-disabled]:not([aria-disabled=false]) {
3308
- cursor: default;
3309
- }
3310
-
3311
- .c6:not(:disabled):not([aria-disabled]):focus,
3312
- .c6[aria-disabled='false']:focus {
3313
- outline: none;
3314
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3315
- }
3316
-
3317
- .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3318
- .c6[aria-disabled='false']:focus:not(:focus-visible) {
3319
- box-shadow: none;
3320
- }
3321
-
3322
- .c6:not(:disabled):not([aria-disabled]):focus-visible,
3323
- .c6[aria-disabled='false']:focus-visible {
3324
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3325
- }
3326
-
3327
- .c6:not(:disabled):not([aria-disabled]):hover,
3328
- .c6[aria-disabled='false']:hover {
3329
- background-color: var(--charcoal-surface3-hover);
3330
- }
3331
-
3332
- .c6:not(:disabled):not([aria-disabled]):active,
3333
- .c6[aria-disabled='false']:active {
3334
- background-color: var(--charcoal-surface3-press);
3335
- }
3336
-
3337
- .c6:not(:disabled):not([aria-disabled]),
3338
- .c6[aria-disabled='false'] {
3339
- box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
3340
- }
3341
-
3342
- .c7 {
3343
- text-align: left;
3344
- font-size: 14px;
3345
- line-height: 22px;
3346
- display: flow-root;
3347
- color: var(--charcoal-text2);
3348
- overflow: hidden;
3349
- text-overflow: ellipsis;
3350
- white-space: nowrap;
3351
- }
3352
-
3353
- .c8 {
3354
- color: var(--charcoal-text2);
3355
- }
3356
-
1325
+ exports[`Storybook Tests react/DropdownSelector SubLabel 1`] = `
3357
1326
  <div
3358
1327
  data-dark={false}
3359
1328
  >
3360
1329
  <div
3361
1330
  style={
3362
- Object {
1331
+ {
3363
1332
  "width": 288,
3364
1333
  }
3365
1334
  }
3366
1335
  >
3367
1336
  <div
3368
- className="c0"
1337
+ className="charcoal-dropdown-selector-root"
3369
1338
  >
3370
1339
  <div
3371
- className="c1 c2"
1340
+ className="charcoal-field-label-root"
3372
1341
  >
3373
1342
  <label
3374
- className="c3"
1343
+ className="charcoal-field-label"
1344
+ id="test-id"
3375
1345
  >
3376
1346
  Label
3377
1347
  </label>
3378
1348
  <div
3379
- className="c4 c5"
1349
+ className="charcoal-field-label-sub-label"
3380
1350
  >
3381
1351
  <span>
3382
1352
  SubLabel
@@ -3386,7 +1356,7 @@ exports[`Storybook Tests DropdownSelector SubLabel 1`] = `
3386
1356
  <div
3387
1357
  aria-hidden="true"
3388
1358
  style={
3389
- Object {
1359
+ {
3390
1360
  "border": 0,
3391
1361
  "clip": "rect(0 0 0 0)",
3392
1362
  "clipPath": "inset(50%)",
@@ -3401,6 +1371,7 @@ exports[`Storybook Tests DropdownSelector SubLabel 1`] = `
3401
1371
  }
3402
1372
  >
3403
1373
  <select
1374
+ onChange={[Function]}
3404
1375
  tabIndex={-1}
3405
1376
  value="1"
3406
1377
  >
@@ -3422,17 +1393,20 @@ exports[`Storybook Tests DropdownSelector SubLabel 1`] = `
3422
1393
  </select>
3423
1394
  </div>
3424
1395
  <button
3425
- className="c6"
1396
+ aria-labelledby="test-id"
1397
+ className="charcoal-dropdown-selector-button"
1398
+ data-active={false}
3426
1399
  onClick={[Function]}
3427
1400
  type="button"
3428
1401
  >
3429
1402
  <span
3430
- className="c7"
1403
+ className="charcoal-ui-dropdown-selector-text"
1404
+ data-placeholder={false}
3431
1405
  >
3432
1406
  Option 1
3433
1407
  </span>
3434
1408
  <pixiv-icon
3435
- class="c8"
1409
+ class="charcoal-ui-dropdown-selector-icon"
3436
1410
  name="16/Menu"
3437
1411
  />
3438
1412
  </button>