@charcoal-ui/react 4.0.0-beta.7 → 4.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_lib/compat.d.ts +0 -12
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/_lib/createDivComponent.d.ts +2 -2
- package/dist/_lib/createDivComponent.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +2 -6
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Clickable/index.d.ts +4 -7
- package/dist/components/Clickable/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Divider/index.d.ts +3 -0
- package/dist/components/DropdownSelector/Divider/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts +8 -0
- package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/DropdownPopover.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.d.ts +5 -13
- package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuItem/index.d.ts +10 -3
- package/dist/components/DropdownSelector/MenuItem/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts +1 -1
- package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts +1 -3
- package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuList/index.d.ts +1 -4
- package/dist/components/DropdownSelector/MenuList/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.d.ts +1 -0
- package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts +3 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -2
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Modal/Dialog/index.d.ts +1 -1
- package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
- package/dist/components/Modal/ModalPlumbing.d.ts +6 -6
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/useCustomModalOverlay.d.ts +1 -0
- package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup/index.d.ts +20 -0
- package/dist/components/Radio/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/Radio/RadioGroupContext.d.ts +11 -0
- package/dist/components/Radio/RadioGroupContext.d.ts.map +1 -0
- package/dist/components/Radio/RadioInput/index.d.ts +10 -0
- package/dist/components/Radio/RadioInput/index.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +1 -12
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts +2 -6
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/AssistiveText/index.d.ts +2 -2
- package/dist/components/TextField/AssistiveText/index.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts +3 -3
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/core/CharcoalProvider.d.ts +4 -11
- package/dist/core/CharcoalProvider.d.ts.map +1 -1
- package/dist/index.cjs.js +356 -399
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +176 -27
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +322 -363
- package/dist/index.esm.js.map +1 -1
- package/dist/layered.css +1214 -0
- package/dist/layered.css.map +1 -0
- package/package.json +17 -13
- package/src/README.mdx +68 -0
- package/src/SSR.mdx +67 -0
- package/src/_lib/compat.ts +0 -11
- package/src/_lib/index.ts +1 -1
- package/src/components/Button/__snapshots__/index.story.storyshot +9 -9
- package/src/components/Button/index.tsx +4 -10
- package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +5 -5
- package/src/components/Checkbox/CheckboxInput/index.css +4 -5
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +6 -6
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Clickable/index.story.tsx +1 -1
- package/src/components/Clickable/index.tsx +7 -12
- package/src/components/DropdownSelector/Divider/index.css +11 -0
- package/src/components/DropdownSelector/Divider/index.tsx +5 -0
- package/src/components/DropdownSelector/DropdownMenuItem/index.css +20 -0
- package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +34 -0
- package/src/components/DropdownSelector/DropdownPopover.tsx +16 -9
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +41 -99
- package/src/components/DropdownSelector/ListItem/index.css +24 -0
- package/src/components/DropdownSelector/ListItem/index.story.tsx +11 -5
- package/src/components/DropdownSelector/ListItem/index.tsx +14 -53
- package/src/components/DropdownSelector/MenuItem/index.tsx +17 -12
- package/src/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.tsx +2 -2
- package/src/components/DropdownSelector/MenuItemGroup/index.css +19 -0
- package/src/components/DropdownSelector/MenuItemGroup/index.tsx +6 -28
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +162 -416
- package/src/components/DropdownSelector/MenuList/index.css +4 -0
- package/src/components/DropdownSelector/MenuList/index.tsx +4 -12
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
- package/src/components/DropdownSelector/Popover/index.css +11 -0
- package/src/components/DropdownSelector/Popover/index.tsx +6 -15
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +403 -1181
- package/src/components/DropdownSelector/index.css +84 -0
- package/src/components/DropdownSelector/index.story.tsx +0 -4
- package/src/components/DropdownSelector/index.tsx +40 -102
- package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
- package/src/components/IconButton/__snapshots__/index.story.storyshot +3 -3
- package/src/components/IconButton/index.tsx +3 -6
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +4 -4
- package/src/components/Modal/Dialog/index.tsx +2 -1
- package/src/components/Modal/__snapshots__/index.story.storyshot +118 -437
- package/src/components/Modal/index.story.tsx +26 -11
- package/src/components/Modal/index.tsx +5 -6
- package/src/components/Modal/useCustomModalOverlay.tsx +20 -0
- package/src/components/Radio/RadioGroup/index.css +5 -0
- package/src/components/Radio/RadioGroup/index.tsx +80 -0
- package/src/components/Radio/RadioGroupContext.ts +23 -0
- package/src/components/Radio/RadioInput/index.css +82 -0
- package/src/components/Radio/RadioInput/index.tsx +41 -0
- package/src/components/Radio/__snapshots__/index.story.storyshot +76 -95
- package/src/components/Radio/index.css +2 -81
- package/src/components/Radio/index.story.tsx +30 -13
- package/src/components/Radio/index.test.tsx +22 -28
- package/src/components/Radio/index.tsx +7 -89
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Switch/__snapshots__/index.story.storyshot +4 -4
- package/src/components/TagItem/__snapshots__/index.story.storyshot +8 -8
- package/src/components/TagItem/index.tsx +4 -8
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +11 -11
- package/src/components/TextField/TextField.story.tsx +8 -9
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +20 -26
- package/src/components/TextField/index.tsx +2 -2
- package/src/core/CharcoalProvider.tsx +5 -29
- package/src/index.ts +2 -11
- package/src/type.d.ts +2 -13
- package/dist/components/DropdownSelector/Divider.d.ts +0 -7
- package/dist/components/DropdownSelector/Divider.d.ts.map +0 -1
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts +0 -7
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +0 -1
- package/dist/components/Modal/__stories__/InternalScrollStory.d.ts +0 -4
- package/dist/components/Modal/__stories__/InternalScrollStory.d.ts.map +0 -1
- package/dist/core/ComponentAbstraction.d.ts +0 -24
- package/dist/core/ComponentAbstraction.d.ts.map +0 -1
- package/dist/styled.d.ts +0 -95
- package/dist/styled.d.ts.map +0 -1
- package/src/components/Button/__snapshots__/index.test.tsx.snap +0 -11
- package/src/components/Button/index.test.tsx +0 -32
- package/src/components/DropdownSelector/Divider.tsx +0 -16
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +0 -43
- package/src/components/Modal/__stories__/InternalScrollStory.tsx +0 -75
- package/src/components/a11y.test.tsx +0 -99
- package/src/core/ComponentAbstraction.tsx +0 -48
- package/src/styled.ts +0 -3
|
@@ -1,90 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Storybook Tests react/DropdownSelector AssistiveText 1`] = `
|
|
4
|
-
.c0 {
|
|
5
|
-
display: grid;
|
|
6
|
-
grid-template-columns: 1fr;
|
|
7
|
-
grid-gap: 4px;
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.c0:disabled,
|
|
12
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
13
|
-
cursor: default;
|
|
14
|
-
opacity: 0.32;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.c1 {
|
|
18
|
-
display: grid;
|
|
19
|
-
grid-template-columns: 1fr auto;
|
|
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
|
-
|
|
3
|
+
exports[`Storybook Tests > react/DropdownSelector > AssistiveText 1`] = `
|
|
88
4
|
<div
|
|
89
5
|
data-dark={false}
|
|
90
6
|
>
|
|
@@ -96,8 +12,37 @@ exports[`Storybook Tests react/DropdownSelector AssistiveText 1`] = `
|
|
|
96
12
|
}
|
|
97
13
|
>
|
|
98
14
|
<div
|
|
99
|
-
className="
|
|
15
|
+
className="charcoal-dropdown-selector-root"
|
|
100
16
|
>
|
|
17
|
+
<div
|
|
18
|
+
className="charcoal-field-label-root"
|
|
19
|
+
style={
|
|
20
|
+
Object {
|
|
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>
|
|
101
46
|
<div
|
|
102
47
|
aria-hidden="true"
|
|
103
48
|
style={
|
|
@@ -138,23 +83,28 @@ exports[`Storybook Tests react/DropdownSelector AssistiveText 1`] = `
|
|
|
138
83
|
</select>
|
|
139
84
|
</div>
|
|
140
85
|
<button
|
|
141
|
-
|
|
86
|
+
aria-describedby="test-id"
|
|
87
|
+
aria-labelledby="test-id"
|
|
88
|
+
className="charcoal-dropdown-selector-button"
|
|
89
|
+
data-active={false}
|
|
142
90
|
onClick={[Function]}
|
|
143
91
|
type="button"
|
|
144
92
|
>
|
|
145
93
|
<span
|
|
146
|
-
className="
|
|
94
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
95
|
+
data-placeholder={false}
|
|
147
96
|
>
|
|
148
97
|
Option 1
|
|
149
98
|
</span>
|
|
150
99
|
<pixiv-icon
|
|
151
|
-
class="
|
|
100
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
152
101
|
name="16/Menu"
|
|
153
102
|
/>
|
|
154
103
|
</button>
|
|
155
104
|
<div
|
|
156
105
|
className="charcoal-text-field-assistive-text"
|
|
157
106
|
data-invalid={false}
|
|
107
|
+
id="test-id"
|
|
158
108
|
>
|
|
159
109
|
assistiveText
|
|
160
110
|
</div>
|
|
@@ -163,91 +113,7 @@ exports[`Storybook Tests react/DropdownSelector AssistiveText 1`] = `
|
|
|
163
113
|
</div>
|
|
164
114
|
`;
|
|
165
115
|
|
|
166
|
-
exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
|
|
167
|
-
.c0 {
|
|
168
|
-
display: grid;
|
|
169
|
-
grid-template-columns: 1fr;
|
|
170
|
-
grid-gap: 4px;
|
|
171
|
-
width: 100%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.c0:disabled,
|
|
175
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
176
|
-
cursor: default;
|
|
177
|
-
opacity: 0.32;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.c1 {
|
|
181
|
-
display: grid;
|
|
182
|
-
grid-template-columns: 1fr auto;
|
|
183
|
-
-webkit-box-pack: justify;
|
|
184
|
-
-webkit-justify-content: space-between;
|
|
185
|
-
-ms-flex-pack: justify;
|
|
186
|
-
justify-content: space-between;
|
|
187
|
-
-webkit-align-items: center;
|
|
188
|
-
-webkit-box-align: center;
|
|
189
|
-
-ms-flex-align: center;
|
|
190
|
-
align-items: center;
|
|
191
|
-
height: 40px;
|
|
192
|
-
width: 100%;
|
|
193
|
-
box-sizing: border-box;
|
|
194
|
-
border: none;
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
gap: 4px;
|
|
197
|
-
padding-right: 8px;
|
|
198
|
-
padding-left: 8px;
|
|
199
|
-
background-color: var(--charcoal-surface3);
|
|
200
|
-
border-radius: 4px;
|
|
201
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
202
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.c1:disabled,
|
|
206
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
207
|
-
cursor: default;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
211
|
-
.c1[aria-disabled='false']:focus {
|
|
212
|
-
outline: none;
|
|
213
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
217
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
218
|
-
box-shadow: none;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
222
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
223
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
227
|
-
.c1[aria-disabled='false']:hover {
|
|
228
|
-
background-color: var(--charcoal-surface3-hover);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
232
|
-
.c1[aria-disabled='false']:active {
|
|
233
|
-
background-color: var(--charcoal-surface3-press);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.c2 {
|
|
237
|
-
text-align: left;
|
|
238
|
-
font-size: 14px;
|
|
239
|
-
line-height: 22px;
|
|
240
|
-
display: flow-root;
|
|
241
|
-
color: var(--charcoal-text2);
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
text-overflow: ellipsis;
|
|
244
|
-
white-space: nowrap;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.c3 {
|
|
248
|
-
color: var(--charcoal-text2);
|
|
249
|
-
}
|
|
250
|
-
|
|
116
|
+
exports[`Storybook Tests > react/DropdownSelector > CustomChildren 1`] = `
|
|
251
117
|
<div
|
|
252
118
|
data-dark={false}
|
|
253
119
|
>
|
|
@@ -259,8 +125,37 @@ exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
|
|
|
259
125
|
}
|
|
260
126
|
>
|
|
261
127
|
<div
|
|
262
|
-
className="
|
|
128
|
+
className="charcoal-dropdown-selector-root"
|
|
263
129
|
>
|
|
130
|
+
<div
|
|
131
|
+
className="charcoal-field-label-root"
|
|
132
|
+
style={
|
|
133
|
+
Object {
|
|
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>
|
|
264
159
|
<div
|
|
265
160
|
aria-hidden="true"
|
|
266
161
|
style={
|
|
@@ -301,12 +196,15 @@ exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
|
|
|
301
196
|
</select>
|
|
302
197
|
</div>
|
|
303
198
|
<button
|
|
304
|
-
|
|
199
|
+
aria-labelledby="test-id"
|
|
200
|
+
className="charcoal-dropdown-selector-button"
|
|
201
|
+
data-active={false}
|
|
305
202
|
onClick={[Function]}
|
|
306
203
|
type="button"
|
|
307
204
|
>
|
|
308
205
|
<span
|
|
309
|
-
className="
|
|
206
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
207
|
+
data-placeholder={false}
|
|
310
208
|
>
|
|
311
209
|
<div
|
|
312
210
|
style={
|
|
@@ -319,7 +217,7 @@ exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
|
|
|
319
217
|
</div>
|
|
320
218
|
</span>
|
|
321
219
|
<pixiv-icon
|
|
322
|
-
class="
|
|
220
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
323
221
|
name="16/Menu"
|
|
324
222
|
/>
|
|
325
223
|
</button>
|
|
@@ -328,91 +226,7 @@ exports[`Storybook Tests react/DropdownSelector CustomChildren 1`] = `
|
|
|
328
226
|
</div>
|
|
329
227
|
`;
|
|
330
228
|
|
|
331
|
-
exports[`Storybook Tests react/DropdownSelector Default 1`] = `
|
|
332
|
-
.c0 {
|
|
333
|
-
display: grid;
|
|
334
|
-
grid-template-columns: 1fr;
|
|
335
|
-
grid-gap: 4px;
|
|
336
|
-
width: 100%;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.c0:disabled,
|
|
340
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
341
|
-
cursor: default;
|
|
342
|
-
opacity: 0.32;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.c1 {
|
|
346
|
-
display: grid;
|
|
347
|
-
grid-template-columns: 1fr auto;
|
|
348
|
-
-webkit-box-pack: justify;
|
|
349
|
-
-webkit-justify-content: space-between;
|
|
350
|
-
-ms-flex-pack: justify;
|
|
351
|
-
justify-content: space-between;
|
|
352
|
-
-webkit-align-items: center;
|
|
353
|
-
-webkit-box-align: center;
|
|
354
|
-
-ms-flex-align: center;
|
|
355
|
-
align-items: center;
|
|
356
|
-
height: 40px;
|
|
357
|
-
width: 100%;
|
|
358
|
-
box-sizing: border-box;
|
|
359
|
-
border: none;
|
|
360
|
-
cursor: pointer;
|
|
361
|
-
gap: 4px;
|
|
362
|
-
padding-right: 8px;
|
|
363
|
-
padding-left: 8px;
|
|
364
|
-
background-color: var(--charcoal-surface3);
|
|
365
|
-
border-radius: 4px;
|
|
366
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
367
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.c1:disabled,
|
|
371
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
372
|
-
cursor: default;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
376
|
-
.c1[aria-disabled='false']:focus {
|
|
377
|
-
outline: none;
|
|
378
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
382
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
383
|
-
box-shadow: none;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
387
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
388
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
392
|
-
.c1[aria-disabled='false']:hover {
|
|
393
|
-
background-color: var(--charcoal-surface3-hover);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
397
|
-
.c1[aria-disabled='false']:active {
|
|
398
|
-
background-color: var(--charcoal-surface3-press);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.c2 {
|
|
402
|
-
text-align: left;
|
|
403
|
-
font-size: 14px;
|
|
404
|
-
line-height: 22px;
|
|
405
|
-
display: flow-root;
|
|
406
|
-
color: var(--charcoal-text3);
|
|
407
|
-
overflow: hidden;
|
|
408
|
-
text-overflow: ellipsis;
|
|
409
|
-
white-space: nowrap;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.c3 {
|
|
413
|
-
color: var(--charcoal-text2);
|
|
414
|
-
}
|
|
415
|
-
|
|
229
|
+
exports[`Storybook Tests > react/DropdownSelector > Default 1`] = `
|
|
416
230
|
<div
|
|
417
231
|
data-dark={false}
|
|
418
232
|
>
|
|
@@ -424,8 +238,35 @@ exports[`Storybook Tests react/DropdownSelector Default 1`] = `
|
|
|
424
238
|
}
|
|
425
239
|
>
|
|
426
240
|
<div
|
|
427
|
-
className="
|
|
241
|
+
className="charcoal-dropdown-selector-root"
|
|
428
242
|
>
|
|
243
|
+
<div
|
|
244
|
+
className="charcoal-field-label-root"
|
|
245
|
+
style={
|
|
246
|
+
Object {
|
|
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>
|
|
429
270
|
<div
|
|
430
271
|
aria-hidden="true"
|
|
431
272
|
style={
|
|
@@ -466,17 +307,18 @@ exports[`Storybook Tests react/DropdownSelector Default 1`] = `
|
|
|
466
307
|
</select>
|
|
467
308
|
</div>
|
|
468
309
|
<button
|
|
469
|
-
|
|
310
|
+
aria-labelledby="test-id"
|
|
311
|
+
className="charcoal-dropdown-selector-button"
|
|
312
|
+
data-active={false}
|
|
470
313
|
onClick={[Function]}
|
|
471
314
|
type="button"
|
|
472
315
|
>
|
|
473
316
|
<span
|
|
474
|
-
className="
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
</span>
|
|
317
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
318
|
+
data-placeholder={false}
|
|
319
|
+
/>
|
|
478
320
|
<pixiv-icon
|
|
479
|
-
class="
|
|
321
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
480
322
|
name="16/Menu"
|
|
481
323
|
/>
|
|
482
324
|
</button>
|
|
@@ -485,91 +327,7 @@ exports[`Storybook Tests react/DropdownSelector Default 1`] = `
|
|
|
485
327
|
</div>
|
|
486
328
|
`;
|
|
487
329
|
|
|
488
|
-
exports[`Storybook Tests react/DropdownSelector Disabled 1`] = `
|
|
489
|
-
.c0 {
|
|
490
|
-
display: grid;
|
|
491
|
-
grid-template-columns: 1fr;
|
|
492
|
-
grid-gap: 4px;
|
|
493
|
-
width: 100%;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
.c0:disabled,
|
|
497
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
498
|
-
cursor: default;
|
|
499
|
-
opacity: 0.32;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.c1 {
|
|
503
|
-
display: grid;
|
|
504
|
-
grid-template-columns: 1fr auto;
|
|
505
|
-
-webkit-box-pack: justify;
|
|
506
|
-
-webkit-justify-content: space-between;
|
|
507
|
-
-ms-flex-pack: justify;
|
|
508
|
-
justify-content: space-between;
|
|
509
|
-
-webkit-align-items: center;
|
|
510
|
-
-webkit-box-align: center;
|
|
511
|
-
-ms-flex-align: center;
|
|
512
|
-
align-items: center;
|
|
513
|
-
height: 40px;
|
|
514
|
-
width: 100%;
|
|
515
|
-
box-sizing: border-box;
|
|
516
|
-
border: none;
|
|
517
|
-
cursor: pointer;
|
|
518
|
-
gap: 4px;
|
|
519
|
-
padding-right: 8px;
|
|
520
|
-
padding-left: 8px;
|
|
521
|
-
background-color: var(--charcoal-surface3);
|
|
522
|
-
border-radius: 4px;
|
|
523
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
524
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.c1:disabled,
|
|
528
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
529
|
-
cursor: default;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
533
|
-
.c1[aria-disabled='false']:focus {
|
|
534
|
-
outline: none;
|
|
535
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
539
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
540
|
-
box-shadow: none;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
544
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
545
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
549
|
-
.c1[aria-disabled='false']:hover {
|
|
550
|
-
background-color: var(--charcoal-surface3-hover);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
554
|
-
.c1[aria-disabled='false']:active {
|
|
555
|
-
background-color: var(--charcoal-surface3-press);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.c2 {
|
|
559
|
-
text-align: left;
|
|
560
|
-
font-size: 14px;
|
|
561
|
-
line-height: 22px;
|
|
562
|
-
display: flow-root;
|
|
563
|
-
color: var(--charcoal-text2);
|
|
564
|
-
overflow: hidden;
|
|
565
|
-
text-overflow: ellipsis;
|
|
566
|
-
white-space: nowrap;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.c3 {
|
|
570
|
-
color: var(--charcoal-text2);
|
|
571
|
-
}
|
|
572
|
-
|
|
330
|
+
exports[`Storybook Tests > react/DropdownSelector > Disabled 1`] = `
|
|
573
331
|
<div
|
|
574
332
|
data-dark={false}
|
|
575
333
|
>
|
|
@@ -582,8 +340,37 @@ exports[`Storybook Tests react/DropdownSelector Disabled 1`] = `
|
|
|
582
340
|
>
|
|
583
341
|
<div
|
|
584
342
|
aria-disabled={true}
|
|
585
|
-
className="
|
|
343
|
+
className="charcoal-dropdown-selector-root"
|
|
586
344
|
>
|
|
345
|
+
<div
|
|
346
|
+
className="charcoal-field-label-root"
|
|
347
|
+
style={
|
|
348
|
+
Object {
|
|
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>
|
|
587
374
|
<div
|
|
588
375
|
aria-hidden="true"
|
|
589
376
|
style={
|
|
@@ -624,18 +411,21 @@ exports[`Storybook Tests react/DropdownSelector Disabled 1`] = `
|
|
|
624
411
|
</select>
|
|
625
412
|
</div>
|
|
626
413
|
<button
|
|
627
|
-
|
|
414
|
+
aria-labelledby="test-id"
|
|
415
|
+
className="charcoal-dropdown-selector-button"
|
|
416
|
+
data-active={false}
|
|
628
417
|
disabled={true}
|
|
629
418
|
onClick={[Function]}
|
|
630
419
|
type="button"
|
|
631
420
|
>
|
|
632
421
|
<span
|
|
633
|
-
className="
|
|
422
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
423
|
+
data-placeholder={false}
|
|
634
424
|
>
|
|
635
425
|
Option 1
|
|
636
426
|
</span>
|
|
637
427
|
<pixiv-icon
|
|
638
|
-
class="
|
|
428
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
639
429
|
name="16/Menu"
|
|
640
430
|
/>
|
|
641
431
|
</button>
|
|
@@ -644,91 +434,7 @@ exports[`Storybook Tests react/DropdownSelector Disabled 1`] = `
|
|
|
644
434
|
</div>
|
|
645
435
|
`;
|
|
646
436
|
|
|
647
|
-
exports[`Storybook Tests react/DropdownSelector DisabledItem 1`] = `
|
|
648
|
-
.c0 {
|
|
649
|
-
display: grid;
|
|
650
|
-
grid-template-columns: 1fr;
|
|
651
|
-
grid-gap: 4px;
|
|
652
|
-
width: 100%;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
.c0:disabled,
|
|
656
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
657
|
-
cursor: default;
|
|
658
|
-
opacity: 0.32;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.c1 {
|
|
662
|
-
display: grid;
|
|
663
|
-
grid-template-columns: 1fr auto;
|
|
664
|
-
-webkit-box-pack: justify;
|
|
665
|
-
-webkit-justify-content: space-between;
|
|
666
|
-
-ms-flex-pack: justify;
|
|
667
|
-
justify-content: space-between;
|
|
668
|
-
-webkit-align-items: center;
|
|
669
|
-
-webkit-box-align: center;
|
|
670
|
-
-ms-flex-align: center;
|
|
671
|
-
align-items: center;
|
|
672
|
-
height: 40px;
|
|
673
|
-
width: 100%;
|
|
674
|
-
box-sizing: border-box;
|
|
675
|
-
border: none;
|
|
676
|
-
cursor: pointer;
|
|
677
|
-
gap: 4px;
|
|
678
|
-
padding-right: 8px;
|
|
679
|
-
padding-left: 8px;
|
|
680
|
-
background-color: var(--charcoal-surface3);
|
|
681
|
-
border-radius: 4px;
|
|
682
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
683
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
.c1:disabled,
|
|
687
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
688
|
-
cursor: default;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
692
|
-
.c1[aria-disabled='false']:focus {
|
|
693
|
-
outline: none;
|
|
694
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
698
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
699
|
-
box-shadow: none;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
703
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
704
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
708
|
-
.c1[aria-disabled='false']:hover {
|
|
709
|
-
background-color: var(--charcoal-surface3-hover);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
713
|
-
.c1[aria-disabled='false']:active {
|
|
714
|
-
background-color: var(--charcoal-surface3-press);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
.c2 {
|
|
718
|
-
text-align: left;
|
|
719
|
-
font-size: 14px;
|
|
720
|
-
line-height: 22px;
|
|
721
|
-
display: flow-root;
|
|
722
|
-
color: var(--charcoal-text2);
|
|
723
|
-
overflow: hidden;
|
|
724
|
-
text-overflow: ellipsis;
|
|
725
|
-
white-space: nowrap;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
.c3 {
|
|
729
|
-
color: var(--charcoal-text2);
|
|
730
|
-
}
|
|
731
|
-
|
|
437
|
+
exports[`Storybook Tests > react/DropdownSelector > DisabledItem 1`] = `
|
|
732
438
|
<div
|
|
733
439
|
data-dark={false}
|
|
734
440
|
>
|
|
@@ -740,8 +446,37 @@ exports[`Storybook Tests react/DropdownSelector DisabledItem 1`] = `
|
|
|
740
446
|
}
|
|
741
447
|
>
|
|
742
448
|
<div
|
|
743
|
-
className="
|
|
449
|
+
className="charcoal-dropdown-selector-root"
|
|
744
450
|
>
|
|
451
|
+
<div
|
|
452
|
+
className="charcoal-field-label-root"
|
|
453
|
+
style={
|
|
454
|
+
Object {
|
|
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>
|
|
745
480
|
<div
|
|
746
481
|
aria-hidden="true"
|
|
747
482
|
style={
|
|
@@ -793,17 +528,20 @@ exports[`Storybook Tests react/DropdownSelector DisabledItem 1`] = `
|
|
|
793
528
|
</select>
|
|
794
529
|
</div>
|
|
795
530
|
<button
|
|
796
|
-
|
|
531
|
+
aria-labelledby="test-id"
|
|
532
|
+
className="charcoal-dropdown-selector-button"
|
|
533
|
+
data-active={false}
|
|
797
534
|
onClick={[Function]}
|
|
798
535
|
type="button"
|
|
799
536
|
>
|
|
800
537
|
<span
|
|
801
|
-
className="
|
|
538
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
539
|
+
data-placeholder={false}
|
|
802
540
|
>
|
|
803
541
|
Option 2 (disabled)
|
|
804
542
|
</span>
|
|
805
543
|
<pixiv-icon
|
|
806
|
-
class="
|
|
544
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
807
545
|
name="16/Menu"
|
|
808
546
|
/>
|
|
809
547
|
</button>
|
|
@@ -812,91 +550,7 @@ exports[`Storybook Tests react/DropdownSelector DisabledItem 1`] = `
|
|
|
812
550
|
</div>
|
|
813
551
|
`;
|
|
814
552
|
|
|
815
|
-
exports[`Storybook Tests react/DropdownSelector InFormTag 1`] = `
|
|
816
|
-
.c0 {
|
|
817
|
-
display: grid;
|
|
818
|
-
grid-template-columns: 1fr;
|
|
819
|
-
grid-gap: 4px;
|
|
820
|
-
width: 100%;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.c0:disabled,
|
|
824
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
825
|
-
cursor: default;
|
|
826
|
-
opacity: 0.32;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
.c1 {
|
|
830
|
-
display: grid;
|
|
831
|
-
grid-template-columns: 1fr auto;
|
|
832
|
-
-webkit-box-pack: justify;
|
|
833
|
-
-webkit-justify-content: space-between;
|
|
834
|
-
-ms-flex-pack: justify;
|
|
835
|
-
justify-content: space-between;
|
|
836
|
-
-webkit-align-items: center;
|
|
837
|
-
-webkit-box-align: center;
|
|
838
|
-
-ms-flex-align: center;
|
|
839
|
-
align-items: center;
|
|
840
|
-
height: 40px;
|
|
841
|
-
width: 100%;
|
|
842
|
-
box-sizing: border-box;
|
|
843
|
-
border: none;
|
|
844
|
-
cursor: pointer;
|
|
845
|
-
gap: 4px;
|
|
846
|
-
padding-right: 8px;
|
|
847
|
-
padding-left: 8px;
|
|
848
|
-
background-color: var(--charcoal-surface3);
|
|
849
|
-
border-radius: 4px;
|
|
850
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
851
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
.c1:disabled,
|
|
855
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
856
|
-
cursor: default;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
860
|
-
.c1[aria-disabled='false']:focus {
|
|
861
|
-
outline: none;
|
|
862
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
866
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
867
|
-
box-shadow: none;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
871
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
872
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
876
|
-
.c1[aria-disabled='false']:hover {
|
|
877
|
-
background-color: var(--charcoal-surface3-hover);
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
881
|
-
.c1[aria-disabled='false']:active {
|
|
882
|
-
background-color: var(--charcoal-surface3-press);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
.c2 {
|
|
886
|
-
text-align: left;
|
|
887
|
-
font-size: 14px;
|
|
888
|
-
line-height: 22px;
|
|
889
|
-
display: flow-root;
|
|
890
|
-
color: var(--charcoal-text2);
|
|
891
|
-
overflow: hidden;
|
|
892
|
-
text-overflow: ellipsis;
|
|
893
|
-
white-space: nowrap;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
.c3 {
|
|
897
|
-
color: var(--charcoal-text2);
|
|
898
|
-
}
|
|
899
|
-
|
|
553
|
+
exports[`Storybook Tests > react/DropdownSelector > InFormTag 1`] = `
|
|
900
554
|
<div
|
|
901
555
|
data-dark={false}
|
|
902
556
|
>
|
|
@@ -910,8 +564,37 @@ exports[`Storybook Tests react/DropdownSelector InFormTag 1`] = `
|
|
|
910
564
|
}
|
|
911
565
|
>
|
|
912
566
|
<div
|
|
913
|
-
className="
|
|
567
|
+
className="charcoal-dropdown-selector-root"
|
|
914
568
|
>
|
|
569
|
+
<div
|
|
570
|
+
className="charcoal-field-label-root"
|
|
571
|
+
style={
|
|
572
|
+
Object {
|
|
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>
|
|
915
598
|
<div
|
|
916
599
|
aria-hidden="true"
|
|
917
600
|
style={
|
|
@@ -953,17 +636,20 @@ exports[`Storybook Tests react/DropdownSelector InFormTag 1`] = `
|
|
|
953
636
|
</select>
|
|
954
637
|
</div>
|
|
955
638
|
<button
|
|
956
|
-
|
|
639
|
+
aria-labelledby="test-id"
|
|
640
|
+
className="charcoal-dropdown-selector-button"
|
|
641
|
+
data-active={false}
|
|
957
642
|
onClick={[Function]}
|
|
958
643
|
type="button"
|
|
959
644
|
>
|
|
960
645
|
<span
|
|
961
|
-
className="
|
|
646
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
647
|
+
data-placeholder={false}
|
|
962
648
|
>
|
|
963
649
|
Option 1
|
|
964
650
|
</span>
|
|
965
651
|
<pixiv-icon
|
|
966
|
-
class="
|
|
652
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
967
653
|
name="16/Menu"
|
|
968
654
|
/>
|
|
969
655
|
</button>
|
|
@@ -984,7 +670,7 @@ exports[`Storybook Tests react/DropdownSelector InFormTag 1`] = `
|
|
|
984
670
|
</div>
|
|
985
671
|
`;
|
|
986
672
|
|
|
987
|
-
exports[`Storybook Tests react/DropdownSelector InModal 1`] = `
|
|
673
|
+
exports[`Storybook Tests > react/DropdownSelector > InModal 1`] = `
|
|
988
674
|
<div
|
|
989
675
|
data-dark={false}
|
|
990
676
|
>
|
|
@@ -1004,96 +690,7 @@ exports[`Storybook Tests react/DropdownSelector InModal 1`] = `
|
|
|
1004
690
|
</div>
|
|
1005
691
|
`;
|
|
1006
692
|
|
|
1007
|
-
exports[`Storybook Tests react/DropdownSelector Invalid 1`] = `
|
|
1008
|
-
.c0 {
|
|
1009
|
-
display: grid;
|
|
1010
|
-
grid-template-columns: 1fr;
|
|
1011
|
-
grid-gap: 4px;
|
|
1012
|
-
width: 100%;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
.c0:disabled,
|
|
1016
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1017
|
-
cursor: default;
|
|
1018
|
-
opacity: 0.32;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
.c1 {
|
|
1022
|
-
display: grid;
|
|
1023
|
-
grid-template-columns: 1fr auto;
|
|
1024
|
-
-webkit-box-pack: justify;
|
|
1025
|
-
-webkit-justify-content: space-between;
|
|
1026
|
-
-ms-flex-pack: justify;
|
|
1027
|
-
justify-content: space-between;
|
|
1028
|
-
-webkit-align-items: center;
|
|
1029
|
-
-webkit-box-align: center;
|
|
1030
|
-
-ms-flex-align: center;
|
|
1031
|
-
align-items: center;
|
|
1032
|
-
height: 40px;
|
|
1033
|
-
width: 100%;
|
|
1034
|
-
box-sizing: border-box;
|
|
1035
|
-
border: none;
|
|
1036
|
-
cursor: pointer;
|
|
1037
|
-
gap: 4px;
|
|
1038
|
-
padding-right: 8px;
|
|
1039
|
-
padding-left: 8px;
|
|
1040
|
-
background-color: var(--charcoal-surface3);
|
|
1041
|
-
border-radius: 4px;
|
|
1042
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1043
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
.c1:disabled,
|
|
1047
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1048
|
-
cursor: default;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1052
|
-
.c1[aria-disabled='false']:focus {
|
|
1053
|
-
outline: none;
|
|
1054
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1058
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1059
|
-
box-shadow: none;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1063
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1064
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1068
|
-
.c1[aria-disabled='false']:hover {
|
|
1069
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1073
|
-
.c1[aria-disabled='false']:active {
|
|
1074
|
-
background-color: var(--charcoal-surface3-press);
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
.c1:not(:disabled):not([aria-disabled]),
|
|
1078
|
-
.c1[aria-disabled='false'] {
|
|
1079
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.c2 {
|
|
1083
|
-
text-align: left;
|
|
1084
|
-
font-size: 14px;
|
|
1085
|
-
line-height: 22px;
|
|
1086
|
-
display: flow-root;
|
|
1087
|
-
color: var(--charcoal-text2);
|
|
1088
|
-
overflow: hidden;
|
|
1089
|
-
text-overflow: ellipsis;
|
|
1090
|
-
white-space: nowrap;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
.c3 {
|
|
1094
|
-
color: var(--charcoal-text2);
|
|
1095
|
-
}
|
|
1096
|
-
|
|
693
|
+
exports[`Storybook Tests > react/DropdownSelector > Invalid 1`] = `
|
|
1097
694
|
<div
|
|
1098
695
|
data-dark={false}
|
|
1099
696
|
>
|
|
@@ -1105,8 +702,37 @@ exports[`Storybook Tests react/DropdownSelector Invalid 1`] = `
|
|
|
1105
702
|
}
|
|
1106
703
|
>
|
|
1107
704
|
<div
|
|
1108
|
-
className="
|
|
705
|
+
className="charcoal-dropdown-selector-root"
|
|
1109
706
|
>
|
|
707
|
+
<div
|
|
708
|
+
className="charcoal-field-label-root"
|
|
709
|
+
style={
|
|
710
|
+
Object {
|
|
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>
|
|
1110
736
|
<div
|
|
1111
737
|
aria-hidden="true"
|
|
1112
738
|
style={
|
|
@@ -1147,17 +773,21 @@ exports[`Storybook Tests react/DropdownSelector Invalid 1`] = `
|
|
|
1147
773
|
</select>
|
|
1148
774
|
</div>
|
|
1149
775
|
<button
|
|
1150
|
-
|
|
776
|
+
aria-invalid={true}
|
|
777
|
+
aria-labelledby="test-id"
|
|
778
|
+
className="charcoal-dropdown-selector-button"
|
|
779
|
+
data-active={false}
|
|
1151
780
|
onClick={[Function]}
|
|
1152
781
|
type="button"
|
|
1153
782
|
>
|
|
1154
783
|
<span
|
|
1155
|
-
className="
|
|
784
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
785
|
+
data-placeholder={false}
|
|
1156
786
|
>
|
|
1157
787
|
Option 1
|
|
1158
788
|
</span>
|
|
1159
789
|
<pixiv-icon
|
|
1160
|
-
class="
|
|
790
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
1161
791
|
name="16/Menu"
|
|
1162
792
|
/>
|
|
1163
793
|
</button>
|
|
@@ -1166,96 +796,7 @@ exports[`Storybook Tests react/DropdownSelector Invalid 1`] = `
|
|
|
1166
796
|
</div>
|
|
1167
797
|
`;
|
|
1168
798
|
|
|
1169
|
-
exports[`Storybook Tests react/DropdownSelector InvalidAssistiveText 1`] = `
|
|
1170
|
-
.c0 {
|
|
1171
|
-
display: grid;
|
|
1172
|
-
grid-template-columns: 1fr;
|
|
1173
|
-
grid-gap: 4px;
|
|
1174
|
-
width: 100%;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
.c0:disabled,
|
|
1178
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1179
|
-
cursor: default;
|
|
1180
|
-
opacity: 0.32;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
.c1 {
|
|
1184
|
-
display: grid;
|
|
1185
|
-
grid-template-columns: 1fr auto;
|
|
1186
|
-
-webkit-box-pack: justify;
|
|
1187
|
-
-webkit-justify-content: space-between;
|
|
1188
|
-
-ms-flex-pack: justify;
|
|
1189
|
-
justify-content: space-between;
|
|
1190
|
-
-webkit-align-items: center;
|
|
1191
|
-
-webkit-box-align: center;
|
|
1192
|
-
-ms-flex-align: center;
|
|
1193
|
-
align-items: center;
|
|
1194
|
-
height: 40px;
|
|
1195
|
-
width: 100%;
|
|
1196
|
-
box-sizing: border-box;
|
|
1197
|
-
border: none;
|
|
1198
|
-
cursor: pointer;
|
|
1199
|
-
gap: 4px;
|
|
1200
|
-
padding-right: 8px;
|
|
1201
|
-
padding-left: 8px;
|
|
1202
|
-
background-color: var(--charcoal-surface3);
|
|
1203
|
-
border-radius: 4px;
|
|
1204
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1205
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
.c1:disabled,
|
|
1209
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1210
|
-
cursor: default;
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1214
|
-
.c1[aria-disabled='false']:focus {
|
|
1215
|
-
outline: none;
|
|
1216
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1220
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1221
|
-
box-shadow: none;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1225
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1226
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1230
|
-
.c1[aria-disabled='false']:hover {
|
|
1231
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1235
|
-
.c1[aria-disabled='false']:active {
|
|
1236
|
-
background-color: var(--charcoal-surface3-press);
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
.c1:not(:disabled):not([aria-disabled]),
|
|
1240
|
-
.c1[aria-disabled='false'] {
|
|
1241
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
.c2 {
|
|
1245
|
-
text-align: left;
|
|
1246
|
-
font-size: 14px;
|
|
1247
|
-
line-height: 22px;
|
|
1248
|
-
display: flow-root;
|
|
1249
|
-
color: var(--charcoal-text2);
|
|
1250
|
-
overflow: hidden;
|
|
1251
|
-
text-overflow: ellipsis;
|
|
1252
|
-
white-space: nowrap;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
.c3 {
|
|
1256
|
-
color: var(--charcoal-text2);
|
|
1257
|
-
}
|
|
1258
|
-
|
|
799
|
+
exports[`Storybook Tests > react/DropdownSelector > InvalidAssistiveText 1`] = `
|
|
1259
800
|
<div
|
|
1260
801
|
data-dark={false}
|
|
1261
802
|
>
|
|
@@ -1267,8 +808,37 @@ exports[`Storybook Tests react/DropdownSelector InvalidAssistiveText 1`] = `
|
|
|
1267
808
|
}
|
|
1268
809
|
>
|
|
1269
810
|
<div
|
|
1270
|
-
className="
|
|
811
|
+
className="charcoal-dropdown-selector-root"
|
|
1271
812
|
>
|
|
813
|
+
<div
|
|
814
|
+
className="charcoal-field-label-root"
|
|
815
|
+
style={
|
|
816
|
+
Object {
|
|
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>
|
|
1272
842
|
<div
|
|
1273
843
|
aria-hidden="true"
|
|
1274
844
|
style={
|
|
@@ -1309,23 +879,29 @@ exports[`Storybook Tests react/DropdownSelector InvalidAssistiveText 1`] = `
|
|
|
1309
879
|
</select>
|
|
1310
880
|
</div>
|
|
1311
881
|
<button
|
|
1312
|
-
|
|
882
|
+
aria-describedby="test-id"
|
|
883
|
+
aria-invalid={true}
|
|
884
|
+
aria-labelledby="test-id"
|
|
885
|
+
className="charcoal-dropdown-selector-button"
|
|
886
|
+
data-active={false}
|
|
1313
887
|
onClick={[Function]}
|
|
1314
888
|
type="button"
|
|
1315
889
|
>
|
|
1316
890
|
<span
|
|
1317
|
-
className="
|
|
891
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
892
|
+
data-placeholder={false}
|
|
1318
893
|
>
|
|
1319
894
|
Option 1
|
|
1320
895
|
</span>
|
|
1321
896
|
<pixiv-icon
|
|
1322
|
-
class="
|
|
897
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
1323
898
|
name="16/Menu"
|
|
1324
899
|
/>
|
|
1325
900
|
</button>
|
|
1326
901
|
<div
|
|
1327
902
|
className="charcoal-text-field-assistive-text"
|
|
1328
903
|
data-invalid={true}
|
|
904
|
+
id="test-id"
|
|
1329
905
|
>
|
|
1330
906
|
assistiveText
|
|
1331
907
|
</div>
|
|
@@ -1334,91 +910,7 @@ exports[`Storybook Tests react/DropdownSelector InvalidAssistiveText 1`] = `
|
|
|
1334
910
|
</div>
|
|
1335
911
|
`;
|
|
1336
912
|
|
|
1337
|
-
exports[`Storybook Tests react/DropdownSelector Label 1`] = `
|
|
1338
|
-
.c0 {
|
|
1339
|
-
display: grid;
|
|
1340
|
-
grid-template-columns: 1fr;
|
|
1341
|
-
grid-gap: 4px;
|
|
1342
|
-
width: 100%;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
.c0:disabled,
|
|
1346
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1347
|
-
cursor: default;
|
|
1348
|
-
opacity: 0.32;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
.c1 {
|
|
1352
|
-
display: grid;
|
|
1353
|
-
grid-template-columns: 1fr auto;
|
|
1354
|
-
-webkit-box-pack: justify;
|
|
1355
|
-
-webkit-justify-content: space-between;
|
|
1356
|
-
-ms-flex-pack: justify;
|
|
1357
|
-
justify-content: space-between;
|
|
1358
|
-
-webkit-align-items: center;
|
|
1359
|
-
-webkit-box-align: center;
|
|
1360
|
-
-ms-flex-align: center;
|
|
1361
|
-
align-items: center;
|
|
1362
|
-
height: 40px;
|
|
1363
|
-
width: 100%;
|
|
1364
|
-
box-sizing: border-box;
|
|
1365
|
-
border: none;
|
|
1366
|
-
cursor: pointer;
|
|
1367
|
-
gap: 4px;
|
|
1368
|
-
padding-right: 8px;
|
|
1369
|
-
padding-left: 8px;
|
|
1370
|
-
background-color: var(--charcoal-surface3);
|
|
1371
|
-
border-radius: 4px;
|
|
1372
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1373
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
.c1:disabled,
|
|
1377
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1378
|
-
cursor: default;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1382
|
-
.c1[aria-disabled='false']:focus {
|
|
1383
|
-
outline: none;
|
|
1384
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1388
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1389
|
-
box-shadow: none;
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1393
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1394
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1398
|
-
.c1[aria-disabled='false']:hover {
|
|
1399
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1403
|
-
.c1[aria-disabled='false']:active {
|
|
1404
|
-
background-color: var(--charcoal-surface3-press);
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
.c2 {
|
|
1408
|
-
text-align: left;
|
|
1409
|
-
font-size: 14px;
|
|
1410
|
-
line-height: 22px;
|
|
1411
|
-
display: flow-root;
|
|
1412
|
-
color: var(--charcoal-text2);
|
|
1413
|
-
overflow: hidden;
|
|
1414
|
-
text-overflow: ellipsis;
|
|
1415
|
-
white-space: nowrap;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
.c3 {
|
|
1419
|
-
color: var(--charcoal-text2);
|
|
1420
|
-
}
|
|
1421
|
-
|
|
913
|
+
exports[`Storybook Tests > react/DropdownSelector > Label 1`] = `
|
|
1422
914
|
<div
|
|
1423
915
|
data-dark={false}
|
|
1424
916
|
>
|
|
@@ -1430,13 +922,14 @@ exports[`Storybook Tests react/DropdownSelector Label 1`] = `
|
|
|
1430
922
|
}
|
|
1431
923
|
>
|
|
1432
924
|
<div
|
|
1433
|
-
className="
|
|
925
|
+
className="charcoal-dropdown-selector-root"
|
|
1434
926
|
>
|
|
1435
927
|
<div
|
|
1436
928
|
className="charcoal-field-label-root"
|
|
1437
929
|
>
|
|
1438
930
|
<label
|
|
1439
931
|
className="charcoal-field-label"
|
|
932
|
+
id="test-id"
|
|
1440
933
|
>
|
|
1441
934
|
Label
|
|
1442
935
|
</label>
|
|
@@ -1486,17 +979,20 @@ exports[`Storybook Tests react/DropdownSelector Label 1`] = `
|
|
|
1486
979
|
</select>
|
|
1487
980
|
</div>
|
|
1488
981
|
<button
|
|
1489
|
-
|
|
982
|
+
aria-labelledby="test-id"
|
|
983
|
+
className="charcoal-dropdown-selector-button"
|
|
984
|
+
data-active={false}
|
|
1490
985
|
onClick={[Function]}
|
|
1491
986
|
type="button"
|
|
1492
987
|
>
|
|
1493
988
|
<span
|
|
1494
|
-
className="
|
|
989
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
990
|
+
data-placeholder={false}
|
|
1495
991
|
>
|
|
1496
992
|
Option 1
|
|
1497
993
|
</span>
|
|
1498
994
|
<pixiv-icon
|
|
1499
|
-
class="
|
|
995
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
1500
996
|
name="16/Menu"
|
|
1501
997
|
/>
|
|
1502
998
|
</button>
|
|
@@ -1505,91 +1001,7 @@ exports[`Storybook Tests react/DropdownSelector Label 1`] = `
|
|
|
1505
1001
|
</div>
|
|
1506
1002
|
`;
|
|
1507
1003
|
|
|
1508
|
-
exports[`Storybook Tests react/DropdownSelector LongNames 1`] = `
|
|
1509
|
-
.c0 {
|
|
1510
|
-
display: grid;
|
|
1511
|
-
grid-template-columns: 1fr;
|
|
1512
|
-
grid-gap: 4px;
|
|
1513
|
-
width: 100%;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
.c0:disabled,
|
|
1517
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1518
|
-
cursor: default;
|
|
1519
|
-
opacity: 0.32;
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
.c1 {
|
|
1523
|
-
display: grid;
|
|
1524
|
-
grid-template-columns: 1fr auto;
|
|
1525
|
-
-webkit-box-pack: justify;
|
|
1526
|
-
-webkit-justify-content: space-between;
|
|
1527
|
-
-ms-flex-pack: justify;
|
|
1528
|
-
justify-content: space-between;
|
|
1529
|
-
-webkit-align-items: center;
|
|
1530
|
-
-webkit-box-align: center;
|
|
1531
|
-
-ms-flex-align: center;
|
|
1532
|
-
align-items: center;
|
|
1533
|
-
height: 40px;
|
|
1534
|
-
width: 100%;
|
|
1535
|
-
box-sizing: border-box;
|
|
1536
|
-
border: none;
|
|
1537
|
-
cursor: pointer;
|
|
1538
|
-
gap: 4px;
|
|
1539
|
-
padding-right: 8px;
|
|
1540
|
-
padding-left: 8px;
|
|
1541
|
-
background-color: var(--charcoal-surface3);
|
|
1542
|
-
border-radius: 4px;
|
|
1543
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1544
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
.c1:disabled,
|
|
1548
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1549
|
-
cursor: default;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1553
|
-
.c1[aria-disabled='false']:focus {
|
|
1554
|
-
outline: none;
|
|
1555
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1559
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1560
|
-
box-shadow: none;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1564
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1565
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1569
|
-
.c1[aria-disabled='false']:hover {
|
|
1570
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1574
|
-
.c1[aria-disabled='false']:active {
|
|
1575
|
-
background-color: var(--charcoal-surface3-press);
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.c2 {
|
|
1579
|
-
text-align: left;
|
|
1580
|
-
font-size: 14px;
|
|
1581
|
-
line-height: 22px;
|
|
1582
|
-
display: flow-root;
|
|
1583
|
-
color: var(--charcoal-text2);
|
|
1584
|
-
overflow: hidden;
|
|
1585
|
-
text-overflow: ellipsis;
|
|
1586
|
-
white-space: nowrap;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
.c3 {
|
|
1590
|
-
color: var(--charcoal-text2);
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1004
|
+
exports[`Storybook Tests > react/DropdownSelector > LongNames 1`] = `
|
|
1593
1005
|
<div
|
|
1594
1006
|
data-dark={false}
|
|
1595
1007
|
>
|
|
@@ -1601,8 +1013,37 @@ exports[`Storybook Tests react/DropdownSelector LongNames 1`] = `
|
|
|
1601
1013
|
}
|
|
1602
1014
|
>
|
|
1603
1015
|
<div
|
|
1604
|
-
className="
|
|
1016
|
+
className="charcoal-dropdown-selector-root"
|
|
1605
1017
|
>
|
|
1018
|
+
<div
|
|
1019
|
+
className="charcoal-field-label-root"
|
|
1020
|
+
style={
|
|
1021
|
+
Object {
|
|
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>
|
|
1606
1047
|
<div
|
|
1607
1048
|
aria-hidden="true"
|
|
1608
1049
|
style={
|
|
@@ -1643,17 +1084,20 @@ exports[`Storybook Tests react/DropdownSelector LongNames 1`] = `
|
|
|
1643
1084
|
</select>
|
|
1644
1085
|
</div>
|
|
1645
1086
|
<button
|
|
1646
|
-
|
|
1087
|
+
aria-labelledby="test-id"
|
|
1088
|
+
className="charcoal-dropdown-selector-button"
|
|
1089
|
+
data-active={false}
|
|
1647
1090
|
onClick={[Function]}
|
|
1648
1091
|
type="button"
|
|
1649
1092
|
>
|
|
1650
1093
|
<span
|
|
1651
|
-
className="
|
|
1094
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
1095
|
+
data-placeholder={false}
|
|
1652
1096
|
>
|
|
1653
1097
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
|
|
1654
1098
|
</span>
|
|
1655
1099
|
<pixiv-icon
|
|
1656
|
-
class="
|
|
1100
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
1657
1101
|
name="16/Menu"
|
|
1658
1102
|
/>
|
|
1659
1103
|
</button>
|
|
@@ -1662,96 +1106,7 @@ exports[`Storybook Tests react/DropdownSelector LongNames 1`] = `
|
|
|
1662
1106
|
</div>
|
|
1663
1107
|
`;
|
|
1664
1108
|
|
|
1665
|
-
exports[`Storybook Tests react/DropdownSelector RequiredText 1`] = `
|
|
1666
|
-
.c0 {
|
|
1667
|
-
display: grid;
|
|
1668
|
-
grid-template-columns: 1fr;
|
|
1669
|
-
grid-gap: 4px;
|
|
1670
|
-
width: 100%;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
.c0:disabled,
|
|
1674
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1675
|
-
cursor: default;
|
|
1676
|
-
opacity: 0.32;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
.c1 {
|
|
1680
|
-
display: grid;
|
|
1681
|
-
grid-template-columns: 1fr auto;
|
|
1682
|
-
-webkit-box-pack: justify;
|
|
1683
|
-
-webkit-justify-content: space-between;
|
|
1684
|
-
-ms-flex-pack: justify;
|
|
1685
|
-
justify-content: space-between;
|
|
1686
|
-
-webkit-align-items: center;
|
|
1687
|
-
-webkit-box-align: center;
|
|
1688
|
-
-ms-flex-align: center;
|
|
1689
|
-
align-items: center;
|
|
1690
|
-
height: 40px;
|
|
1691
|
-
width: 100%;
|
|
1692
|
-
box-sizing: border-box;
|
|
1693
|
-
border: none;
|
|
1694
|
-
cursor: pointer;
|
|
1695
|
-
gap: 4px;
|
|
1696
|
-
padding-right: 8px;
|
|
1697
|
-
padding-left: 8px;
|
|
1698
|
-
background-color: var(--charcoal-surface3);
|
|
1699
|
-
border-radius: 4px;
|
|
1700
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1701
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
.c1:disabled,
|
|
1705
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1706
|
-
cursor: default;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1710
|
-
.c1[aria-disabled='false']:focus {
|
|
1711
|
-
outline: none;
|
|
1712
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1716
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1717
|
-
box-shadow: none;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1721
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1722
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1726
|
-
.c1[aria-disabled='false']:hover {
|
|
1727
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1731
|
-
.c1[aria-disabled='false']:active {
|
|
1732
|
-
background-color: var(--charcoal-surface3-press);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
.c1:not(:disabled):not([aria-disabled]),
|
|
1736
|
-
.c1[aria-disabled='false'] {
|
|
1737
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
.c2 {
|
|
1741
|
-
text-align: left;
|
|
1742
|
-
font-size: 14px;
|
|
1743
|
-
line-height: 22px;
|
|
1744
|
-
display: flow-root;
|
|
1745
|
-
color: var(--charcoal-text2);
|
|
1746
|
-
overflow: hidden;
|
|
1747
|
-
text-overflow: ellipsis;
|
|
1748
|
-
white-space: nowrap;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
.c3 {
|
|
1752
|
-
color: var(--charcoal-text2);
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1109
|
+
exports[`Storybook Tests > react/DropdownSelector > RequiredText 1`] = `
|
|
1755
1110
|
<div
|
|
1756
1111
|
data-dark={false}
|
|
1757
1112
|
>
|
|
@@ -1763,13 +1118,14 @@ exports[`Storybook Tests react/DropdownSelector RequiredText 1`] = `
|
|
|
1763
1118
|
}
|
|
1764
1119
|
>
|
|
1765
1120
|
<div
|
|
1766
|
-
className="
|
|
1121
|
+
className="charcoal-dropdown-selector-root"
|
|
1767
1122
|
>
|
|
1768
1123
|
<div
|
|
1769
1124
|
className="charcoal-field-label-root"
|
|
1770
1125
|
>
|
|
1771
1126
|
<label
|
|
1772
1127
|
className="charcoal-field-label"
|
|
1128
|
+
id="test-id"
|
|
1773
1129
|
>
|
|
1774
1130
|
Label
|
|
1775
1131
|
</label>
|
|
@@ -1824,17 +1180,20 @@ exports[`Storybook Tests react/DropdownSelector RequiredText 1`] = `
|
|
|
1824
1180
|
</select>
|
|
1825
1181
|
</div>
|
|
1826
1182
|
<button
|
|
1827
|
-
|
|
1183
|
+
aria-labelledby="test-id"
|
|
1184
|
+
className="charcoal-dropdown-selector-button"
|
|
1185
|
+
data-active={false}
|
|
1828
1186
|
onClick={[Function]}
|
|
1829
1187
|
type="button"
|
|
1830
1188
|
>
|
|
1831
1189
|
<span
|
|
1832
|
-
className="
|
|
1190
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
1191
|
+
data-placeholder={false}
|
|
1833
1192
|
>
|
|
1834
1193
|
Option 1
|
|
1835
1194
|
</span>
|
|
1836
1195
|
<pixiv-icon
|
|
1837
|
-
class="
|
|
1196
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
1838
1197
|
name="16/Menu"
|
|
1839
1198
|
/>
|
|
1840
1199
|
</button>
|
|
@@ -1843,91 +1202,7 @@ exports[`Storybook Tests react/DropdownSelector RequiredText 1`] = `
|
|
|
1843
1202
|
</div>
|
|
1844
1203
|
`;
|
|
1845
1204
|
|
|
1846
|
-
exports[`Storybook Tests react/DropdownSelector Section 1`] = `
|
|
1847
|
-
.c0 {
|
|
1848
|
-
display: grid;
|
|
1849
|
-
grid-template-columns: 1fr;
|
|
1850
|
-
grid-gap: 4px;
|
|
1851
|
-
width: 100%;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
.c0:disabled,
|
|
1855
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
1856
|
-
cursor: default;
|
|
1857
|
-
opacity: 0.32;
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
.c1 {
|
|
1861
|
-
display: grid;
|
|
1862
|
-
grid-template-columns: 1fr auto;
|
|
1863
|
-
-webkit-box-pack: justify;
|
|
1864
|
-
-webkit-justify-content: space-between;
|
|
1865
|
-
-ms-flex-pack: justify;
|
|
1866
|
-
justify-content: space-between;
|
|
1867
|
-
-webkit-align-items: center;
|
|
1868
|
-
-webkit-box-align: center;
|
|
1869
|
-
-ms-flex-align: center;
|
|
1870
|
-
align-items: center;
|
|
1871
|
-
height: 40px;
|
|
1872
|
-
width: 100%;
|
|
1873
|
-
box-sizing: border-box;
|
|
1874
|
-
border: none;
|
|
1875
|
-
cursor: pointer;
|
|
1876
|
-
gap: 4px;
|
|
1877
|
-
padding-right: 8px;
|
|
1878
|
-
padding-left: 8px;
|
|
1879
|
-
background-color: var(--charcoal-surface3);
|
|
1880
|
-
border-radius: 4px;
|
|
1881
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1882
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
.c1:disabled,
|
|
1886
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
1887
|
-
cursor: default;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1891
|
-
.c1[aria-disabled='false']:focus {
|
|
1892
|
-
outline: none;
|
|
1893
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1897
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1898
|
-
box-shadow: none;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1902
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
1903
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1907
|
-
.c1[aria-disabled='false']:hover {
|
|
1908
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1912
|
-
.c1[aria-disabled='false']:active {
|
|
1913
|
-
background-color: var(--charcoal-surface3-press);
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
.c2 {
|
|
1917
|
-
text-align: left;
|
|
1918
|
-
font-size: 14px;
|
|
1919
|
-
line-height: 22px;
|
|
1920
|
-
display: flow-root;
|
|
1921
|
-
color: var(--charcoal-text2);
|
|
1922
|
-
overflow: hidden;
|
|
1923
|
-
text-overflow: ellipsis;
|
|
1924
|
-
white-space: nowrap;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
.c3 {
|
|
1928
|
-
color: var(--charcoal-text2);
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1205
|
+
exports[`Storybook Tests > react/DropdownSelector > Section 1`] = `
|
|
1931
1206
|
<div
|
|
1932
1207
|
data-dark={false}
|
|
1933
1208
|
>
|
|
@@ -1939,8 +1214,37 @@ exports[`Storybook Tests react/DropdownSelector Section 1`] = `
|
|
|
1939
1214
|
}
|
|
1940
1215
|
>
|
|
1941
1216
|
<div
|
|
1942
|
-
className="
|
|
1217
|
+
className="charcoal-dropdown-selector-root"
|
|
1943
1218
|
>
|
|
1219
|
+
<div
|
|
1220
|
+
className="charcoal-field-label-root"
|
|
1221
|
+
style={
|
|
1222
|
+
Object {
|
|
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>
|
|
1944
1248
|
<div
|
|
1945
1249
|
aria-hidden="true"
|
|
1946
1250
|
style={
|
|
@@ -1996,17 +1300,20 @@ exports[`Storybook Tests react/DropdownSelector Section 1`] = `
|
|
|
1996
1300
|
</select>
|
|
1997
1301
|
</div>
|
|
1998
1302
|
<button
|
|
1999
|
-
|
|
1303
|
+
aria-labelledby="test-id"
|
|
1304
|
+
className="charcoal-dropdown-selector-button"
|
|
1305
|
+
data-active={false}
|
|
2000
1306
|
onClick={[Function]}
|
|
2001
1307
|
type="button"
|
|
2002
1308
|
>
|
|
2003
1309
|
<span
|
|
2004
|
-
className="
|
|
1310
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
1311
|
+
data-placeholder={false}
|
|
2005
1312
|
>
|
|
2006
1313
|
Banana
|
|
2007
1314
|
</span>
|
|
2008
1315
|
<pixiv-icon
|
|
2009
|
-
class="
|
|
1316
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
2010
1317
|
name="16/Menu"
|
|
2011
1318
|
/>
|
|
2012
1319
|
</button>
|
|
@@ -2015,96 +1322,7 @@ exports[`Storybook Tests react/DropdownSelector Section 1`] = `
|
|
|
2015
1322
|
</div>
|
|
2016
1323
|
`;
|
|
2017
1324
|
|
|
2018
|
-
exports[`Storybook Tests react/DropdownSelector SubLabel 1`] = `
|
|
2019
|
-
.c0 {
|
|
2020
|
-
display: grid;
|
|
2021
|
-
grid-template-columns: 1fr;
|
|
2022
|
-
grid-gap: 4px;
|
|
2023
|
-
width: 100%;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
.c0:disabled,
|
|
2027
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
2028
|
-
cursor: default;
|
|
2029
|
-
opacity: 0.32;
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
.c1 {
|
|
2033
|
-
display: grid;
|
|
2034
|
-
grid-template-columns: 1fr auto;
|
|
2035
|
-
-webkit-box-pack: justify;
|
|
2036
|
-
-webkit-justify-content: space-between;
|
|
2037
|
-
-ms-flex-pack: justify;
|
|
2038
|
-
justify-content: space-between;
|
|
2039
|
-
-webkit-align-items: center;
|
|
2040
|
-
-webkit-box-align: center;
|
|
2041
|
-
-ms-flex-align: center;
|
|
2042
|
-
align-items: center;
|
|
2043
|
-
height: 40px;
|
|
2044
|
-
width: 100%;
|
|
2045
|
-
box-sizing: border-box;
|
|
2046
|
-
border: none;
|
|
2047
|
-
cursor: pointer;
|
|
2048
|
-
gap: 4px;
|
|
2049
|
-
padding-right: 8px;
|
|
2050
|
-
padding-left: 8px;
|
|
2051
|
-
background-color: var(--charcoal-surface3);
|
|
2052
|
-
border-radius: 4px;
|
|
2053
|
-
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
2054
|
-
transition: 0.2s box-shadow,0.2s background-color;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
.c1:disabled,
|
|
2058
|
-
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
2059
|
-
cursor: default;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
2063
|
-
.c1[aria-disabled='false']:focus {
|
|
2064
|
-
outline: none;
|
|
2065
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
2069
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
2070
|
-
box-shadow: none;
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
2074
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
2075
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
2079
|
-
.c1[aria-disabled='false']:hover {
|
|
2080
|
-
background-color: var(--charcoal-surface3-hover);
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
2084
|
-
.c1[aria-disabled='false']:active {
|
|
2085
|
-
background-color: var(--charcoal-surface3-press);
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
.c1:not(:disabled):not([aria-disabled]),
|
|
2089
|
-
.c1[aria-disabled='false'] {
|
|
2090
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
.c2 {
|
|
2094
|
-
text-align: left;
|
|
2095
|
-
font-size: 14px;
|
|
2096
|
-
line-height: 22px;
|
|
2097
|
-
display: flow-root;
|
|
2098
|
-
color: var(--charcoal-text2);
|
|
2099
|
-
overflow: hidden;
|
|
2100
|
-
text-overflow: ellipsis;
|
|
2101
|
-
white-space: nowrap;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
.c3 {
|
|
2105
|
-
color: var(--charcoal-text2);
|
|
2106
|
-
}
|
|
2107
|
-
|
|
1325
|
+
exports[`Storybook Tests > react/DropdownSelector > SubLabel 1`] = `
|
|
2108
1326
|
<div
|
|
2109
1327
|
data-dark={false}
|
|
2110
1328
|
>
|
|
@@ -2116,13 +1334,14 @@ exports[`Storybook Tests react/DropdownSelector SubLabel 1`] = `
|
|
|
2116
1334
|
}
|
|
2117
1335
|
>
|
|
2118
1336
|
<div
|
|
2119
|
-
className="
|
|
1337
|
+
className="charcoal-dropdown-selector-root"
|
|
2120
1338
|
>
|
|
2121
1339
|
<div
|
|
2122
1340
|
className="charcoal-field-label-root"
|
|
2123
1341
|
>
|
|
2124
1342
|
<label
|
|
2125
1343
|
className="charcoal-field-label"
|
|
1344
|
+
id="test-id"
|
|
2126
1345
|
>
|
|
2127
1346
|
Label
|
|
2128
1347
|
</label>
|
|
@@ -2174,17 +1393,20 @@ exports[`Storybook Tests react/DropdownSelector SubLabel 1`] = `
|
|
|
2174
1393
|
</select>
|
|
2175
1394
|
</div>
|
|
2176
1395
|
<button
|
|
2177
|
-
|
|
1396
|
+
aria-labelledby="test-id"
|
|
1397
|
+
className="charcoal-dropdown-selector-button"
|
|
1398
|
+
data-active={false}
|
|
2178
1399
|
onClick={[Function]}
|
|
2179
1400
|
type="button"
|
|
2180
1401
|
>
|
|
2181
1402
|
<span
|
|
2182
|
-
className="
|
|
1403
|
+
className="charcoal-ui-dropdown-selector-text"
|
|
1404
|
+
data-placeholder={false}
|
|
2183
1405
|
>
|
|
2184
1406
|
Option 1
|
|
2185
1407
|
</span>
|
|
2186
1408
|
<pixiv-icon
|
|
2187
|
-
class="
|
|
1409
|
+
class="charcoal-ui-dropdown-selector-icon"
|
|
2188
1410
|
name="16/Menu"
|
|
2189
1411
|
/>
|
|
2190
1412
|
</button>
|