@charcoal-ui/react 3.6.0 → 3.8.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 +1 -0
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/components/Button/StyledButton.d.ts +13 -0
- package/dist/components/Button/StyledButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.story.d.ts +16 -32
- package/dist/components/Button/index.story.d.ts.map +1 -1
- package/dist/components/Button/lib/variantToBackground.d.ts +3 -0
- package/dist/components/Button/lib/variantToBackground.d.ts.map +1 -0
- package/dist/components/Button/lib/variantToFont.d.ts +3 -0
- package/dist/components/Button/lib/variantToFont.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +6 -16
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/Clickable/index.story.d.ts +4 -6
- package/dist/components/Clickable/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts +7 -7
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts +6 -9
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.story.d.ts +3 -7
- package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.story.d.ts +9 -11
- package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
- package/dist/components/Icon/index.story.d.ts +4 -26
- package/dist/components/Icon/index.story.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.story.d.ts +6 -25
- package/dist/components/IconButton/index.story.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +8 -0
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -0
- package/dist/components/LoadingSpinner/index.d.ts +2 -2
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.story.d.ts +4 -7
- package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +16 -41
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.story.d.ts +12 -23
- package/dist/components/Radio/index.story.d.ts.map +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.story.d.ts +5 -8
- package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.story.d.ts +7 -12
- package/dist/components/Switch/index.story.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.story.d.ts +14 -24
- package/dist/components/TagItem/index.story.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.story.d.ts +7 -25
- package/dist/components/TextArea/TextArea.story.d.ts.map +1 -1
- package/dist/components/TextField/TextField.story.d.ts +13 -20
- package/dist/components/TextField/TextField.story.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +418 -206
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +387 -175
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +17 -20
- package/src/_lib/compat.ts +8 -0
- package/src/components/Button/StyledButton.tsx +71 -0
- package/src/components/Button/__snapshots__/index.story.storyshot +314 -118
- package/src/components/Button/index.story.tsx +141 -138
- package/src/components/Button/index.tsx +15 -104
- package/src/components/Button/lib/variantToBackground.tsx +19 -0
- package/src/components/Button/lib/variantToFont.tsx +19 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +12 -27
- package/src/components/Checkbox/index.story.tsx +82 -88
- package/src/components/Checkbox/index.tsx +2 -12
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Clickable/index.story.tsx +12 -9
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +1 -14
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +42 -37
- package/src/components/DropdownSelector/ListItem/index.story.tsx +8 -4
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +38 -38
- package/src/components/DropdownSelector/MenuList/index.story.tsx +33 -27
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +11 -5
- package/src/components/DropdownSelector/Popover/index.story.tsx +6 -6
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +313 -151
- package/src/components/DropdownSelector/index.story.tsx +207 -171
- package/src/components/DropdownSelector/index.tsx +22 -22
- package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
- package/src/components/Icon/index.story.tsx +8 -12
- package/src/components/IconButton/__snapshots__/index.story.storyshot +130 -13
- package/src/components/IconButton/index.story.tsx +30 -23
- package/src/components/IconButton/index.tsx +32 -20
- package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +12 -0
- package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +28 -0
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +1 -35
- package/src/components/LoadingSpinner/index.story.tsx +11 -54
- package/src/components/LoadingSpinner/index.tsx +1 -1
- package/src/components/Modal/__snapshots__/index.story.storyshot +231 -194
- package/src/components/Modal/index.story.tsx +139 -133
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +56 -4
- package/src/components/MultiSelect/index.tsx +3 -0
- package/src/components/Radio/__snapshots__/index.story.storyshot +981 -121
- package/src/components/Radio/index.story.tsx +128 -63
- package/src/components/Radio/index.tsx +10 -16
- package/src/components/SegmentedControl/RadioGroupContext.tsx +1 -1
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +11 -11
- package/src/components/SegmentedControl/index.story.tsx +24 -29
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Switch/__snapshots__/index.story.storyshot +184 -26
- package/src/components/Switch/index.story.tsx +72 -48
- package/src/components/Switch/index.tsx +2 -7
- package/src/components/TagItem/__snapshots__/index.story.storyshot +72 -33
- package/src/components/TagItem/index.story.tsx +154 -159
- package/src/components/TagItem/index.tsx +2 -6
- package/src/components/TextArea/TextArea.story.tsx +29 -32
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +139 -83
- package/src/components/TextField/TextField.story.tsx +67 -66
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +198 -162
- package/src/components/TextField/index.tsx +0 -7
- package/dist/components/Checkbox/performance.test.d.ts +0 -4
- package/dist/components/Checkbox/performance.test.d.ts.map +0 -1
- package/dist/components/Checkbox/snapshot.test.d.ts +0 -2
- package/dist/components/Checkbox/snapshot.test.d.ts.map +0 -1
- package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +0 -1093
- package/src/components/Checkbox/performance.test.tsx +0 -30
- package/src/components/Checkbox/snapshot.test.tsx +0 -66
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Storybook Tests DropdownSelector Basic 1`] = `
|
|
4
4
|
.c0 {
|
|
5
5
|
display: inline-block;
|
|
6
6
|
width: 100%;
|
|
@@ -30,12 +30,13 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
border: none;
|
|
32
32
|
cursor: pointer;
|
|
33
|
+
gap: 4px;
|
|
33
34
|
padding-right: 8px;
|
|
34
35
|
padding-left: 8px;
|
|
35
36
|
background-color: var(--charcoal-surface3);
|
|
36
37
|
border-radius: 4px;
|
|
37
|
-
-webkit-transition: 0.2s box-shadow;
|
|
38
|
-
transition: 0.2s box-shadow;
|
|
38
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
39
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
.c1:disabled,
|
|
@@ -44,37 +45,40 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
47
|
-
.c1[aria-disabled='false']:focus
|
|
48
|
-
|
|
49
|
-
|
|
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
|
+
|
|
50
58
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
51
59
|
.c1[aria-disabled='false']:focus-visible {
|
|
52
|
-
outline: none;
|
|
53
60
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
54
61
|
}
|
|
55
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
|
+
|
|
56
73
|
.c2 {
|
|
57
74
|
text-align: left;
|
|
58
75
|
font-size: 14px;
|
|
59
76
|
line-height: 22px;
|
|
60
77
|
display: flow-root;
|
|
61
78
|
color: var(--charcoal-text2);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
display: block;
|
|
66
|
-
width: 0;
|
|
67
|
-
height: 0;
|
|
68
|
-
content: '';
|
|
69
|
-
margin-top: -4px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.c2::after {
|
|
73
|
-
display: block;
|
|
74
|
-
width: 0;
|
|
75
|
-
height: 0;
|
|
76
|
-
content: '';
|
|
77
|
-
margin-bottom: -4px;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
.c3 {
|
|
@@ -114,7 +118,7 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
114
118
|
</div>
|
|
115
119
|
`;
|
|
116
120
|
|
|
117
|
-
exports[`
|
|
121
|
+
exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
|
|
118
122
|
.c0 {
|
|
119
123
|
display: inline-block;
|
|
120
124
|
width: 100%;
|
|
@@ -144,12 +148,13 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
144
148
|
box-sizing: border-box;
|
|
145
149
|
border: none;
|
|
146
150
|
cursor: pointer;
|
|
151
|
+
gap: 4px;
|
|
147
152
|
padding-right: 8px;
|
|
148
153
|
padding-left: 8px;
|
|
149
154
|
background-color: var(--charcoal-surface3);
|
|
150
155
|
border-radius: 4px;
|
|
151
|
-
-webkit-transition: 0.2s box-shadow;
|
|
152
|
-
transition: 0.2s box-shadow;
|
|
156
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
157
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
.c1:disabled,
|
|
@@ -158,37 +163,40 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
158
163
|
}
|
|
159
164
|
|
|
160
165
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
161
|
-
.c1[aria-disabled='false']:focus
|
|
162
|
-
|
|
163
|
-
|
|
166
|
+
.c1[aria-disabled='false']:focus {
|
|
167
|
+
outline: none;
|
|
168
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
172
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
173
|
+
box-shadow: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
164
176
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
165
177
|
.c1[aria-disabled='false']:focus-visible {
|
|
166
|
-
outline: none;
|
|
167
178
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
168
179
|
}
|
|
169
180
|
|
|
181
|
+
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
182
|
+
.c1[aria-disabled='false']:hover {
|
|
183
|
+
background-color: var(--charcoal-surface3-hover);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
187
|
+
.c1[aria-disabled='false']:active {
|
|
188
|
+
background-color: var(--charcoal-surface3-press);
|
|
189
|
+
}
|
|
190
|
+
|
|
170
191
|
.c2 {
|
|
171
192
|
text-align: left;
|
|
172
193
|
font-size: 14px;
|
|
173
194
|
line-height: 22px;
|
|
174
195
|
display: flow-root;
|
|
175
196
|
color: var(--charcoal-text2);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
display: block;
|
|
180
|
-
width: 0;
|
|
181
|
-
height: 0;
|
|
182
|
-
content: '';
|
|
183
|
-
margin-top: -4px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.c2::after {
|
|
187
|
-
display: block;
|
|
188
|
-
width: 0;
|
|
189
|
-
height: 0;
|
|
190
|
-
content: '';
|
|
191
|
-
margin-bottom: -4px;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
text-overflow: ellipsis;
|
|
199
|
+
white-space: nowrap;
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
.c3 {
|
|
@@ -237,7 +245,7 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
237
245
|
</div>
|
|
238
246
|
`;
|
|
239
247
|
|
|
240
|
-
exports[`
|
|
248
|
+
exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
|
|
241
249
|
.c0 {
|
|
242
250
|
display: inline-block;
|
|
243
251
|
width: 100%;
|
|
@@ -267,12 +275,13 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
267
275
|
box-sizing: border-box;
|
|
268
276
|
border: none;
|
|
269
277
|
cursor: pointer;
|
|
278
|
+
gap: 4px;
|
|
270
279
|
padding-right: 8px;
|
|
271
280
|
padding-left: 8px;
|
|
272
281
|
background-color: var(--charcoal-surface3);
|
|
273
282
|
border-radius: 4px;
|
|
274
|
-
-webkit-transition: 0.2s box-shadow;
|
|
275
|
-
transition: 0.2s box-shadow;
|
|
283
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
284
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
276
285
|
}
|
|
277
286
|
|
|
278
287
|
.c1:disabled,
|
|
@@ -281,37 +290,40 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
281
290
|
}
|
|
282
291
|
|
|
283
292
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
284
|
-
.c1[aria-disabled='false']:focus
|
|
285
|
-
|
|
286
|
-
|
|
293
|
+
.c1[aria-disabled='false']:focus {
|
|
294
|
+
outline: none;
|
|
295
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
299
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
300
|
+
box-shadow: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
287
303
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
288
304
|
.c1[aria-disabled='false']:focus-visible {
|
|
289
|
-
outline: none;
|
|
290
305
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
291
306
|
}
|
|
292
307
|
|
|
308
|
+
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
309
|
+
.c1[aria-disabled='false']:hover {
|
|
310
|
+
background-color: var(--charcoal-surface3-hover);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
314
|
+
.c1[aria-disabled='false']:active {
|
|
315
|
+
background-color: var(--charcoal-surface3-press);
|
|
316
|
+
}
|
|
317
|
+
|
|
293
318
|
.c2 {
|
|
294
319
|
text-align: left;
|
|
295
320
|
font-size: 14px;
|
|
296
321
|
line-height: 22px;
|
|
297
322
|
display: flow-root;
|
|
298
323
|
color: var(--charcoal-text2);
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
display: block;
|
|
303
|
-
width: 0;
|
|
304
|
-
height: 0;
|
|
305
|
-
content: '';
|
|
306
|
-
margin-top: -4px;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.c2::after {
|
|
310
|
-
display: block;
|
|
311
|
-
width: 0;
|
|
312
|
-
height: 0;
|
|
313
|
-
content: '';
|
|
314
|
-
margin-bottom: -4px;
|
|
324
|
+
overflow: hidden;
|
|
325
|
+
text-overflow: ellipsis;
|
|
326
|
+
white-space: nowrap;
|
|
315
327
|
}
|
|
316
328
|
|
|
317
329
|
.c3 {
|
|
@@ -349,7 +361,7 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
349
361
|
</div>
|
|
350
362
|
`;
|
|
351
363
|
|
|
352
|
-
exports[`
|
|
364
|
+
exports[`Storybook Tests DropdownSelector InModal 1`] = `
|
|
353
365
|
.c11 {
|
|
354
366
|
cursor: pointer;
|
|
355
367
|
-webkit-appearance: none;
|
|
@@ -417,12 +429,13 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
417
429
|
box-sizing: border-box;
|
|
418
430
|
border: none;
|
|
419
431
|
cursor: pointer;
|
|
432
|
+
gap: 4px;
|
|
420
433
|
padding-right: 8px;
|
|
421
434
|
padding-left: 8px;
|
|
422
435
|
background-color: var(--charcoal-surface3);
|
|
423
436
|
border-radius: 4px;
|
|
424
|
-
-webkit-transition: 0.2s box-shadow;
|
|
425
|
-
transition: 0.2s box-shadow;
|
|
437
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
438
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
426
439
|
}
|
|
427
440
|
|
|
428
441
|
.c8:disabled,
|
|
@@ -431,37 +444,40 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
431
444
|
}
|
|
432
445
|
|
|
433
446
|
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
434
|
-
.c8[aria-disabled='false']:focus
|
|
435
|
-
|
|
436
|
-
|
|
447
|
+
.c8[aria-disabled='false']:focus {
|
|
448
|
+
outline: none;
|
|
449
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
453
|
+
.c8[aria-disabled='false']:focus:not(:focus-visible) {
|
|
454
|
+
box-shadow: none;
|
|
455
|
+
}
|
|
456
|
+
|
|
437
457
|
.c8:not(:disabled):not([aria-disabled]):focus-visible,
|
|
438
458
|
.c8[aria-disabled='false']:focus-visible {
|
|
439
|
-
outline: none;
|
|
440
459
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
441
460
|
}
|
|
442
461
|
|
|
462
|
+
.c8:not(:disabled):not([aria-disabled]):hover,
|
|
463
|
+
.c8[aria-disabled='false']:hover {
|
|
464
|
+
background-color: var(--charcoal-surface3-hover);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.c8:not(:disabled):not([aria-disabled]):active,
|
|
468
|
+
.c8[aria-disabled='false']:active {
|
|
469
|
+
background-color: var(--charcoal-surface3-press);
|
|
470
|
+
}
|
|
471
|
+
|
|
443
472
|
.c9 {
|
|
444
473
|
text-align: left;
|
|
445
474
|
font-size: 14px;
|
|
446
475
|
line-height: 22px;
|
|
447
476
|
display: flow-root;
|
|
448
477
|
color: var(--charcoal-text2);
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
display: block;
|
|
453
|
-
width: 0;
|
|
454
|
-
height: 0;
|
|
455
|
-
content: '';
|
|
456
|
-
margin-top: -4px;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.c9::after {
|
|
460
|
-
display: block;
|
|
461
|
-
width: 0;
|
|
462
|
-
height: 0;
|
|
463
|
-
content: '';
|
|
464
|
-
margin-bottom: -4px;
|
|
478
|
+
overflow: hidden;
|
|
479
|
+
text-overflow: ellipsis;
|
|
480
|
+
white-space: nowrap;
|
|
465
481
|
}
|
|
466
482
|
|
|
467
483
|
.c10 {
|
|
@@ -496,21 +512,27 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
496
512
|
|
|
497
513
|
.c12:not(:disabled):not([aria-disabled]):hover,
|
|
498
514
|
.c12[aria-disabled='false']:hover {
|
|
499
|
-
background-color: var(
|
|
515
|
+
background-color: var(--charcoal-transparent-hover);
|
|
500
516
|
}
|
|
501
517
|
|
|
502
518
|
.c12:not(:disabled):not([aria-disabled]):active,
|
|
503
519
|
.c12[aria-disabled='false']:active {
|
|
504
|
-
background-color: var(
|
|
520
|
+
background-color: var(--charcoal-transparent-press);
|
|
505
521
|
}
|
|
506
522
|
|
|
507
523
|
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
508
|
-
.c12[aria-disabled='false']:focus
|
|
509
|
-
|
|
510
|
-
|
|
524
|
+
.c12[aria-disabled='false']:focus {
|
|
525
|
+
outline: none;
|
|
526
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
530
|
+
.c12[aria-disabled='false']:focus:not(:focus-visible) {
|
|
531
|
+
box-shadow: none;
|
|
532
|
+
}
|
|
533
|
+
|
|
511
534
|
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
512
535
|
.c12[aria-disabled='false']:focus-visible {
|
|
513
|
-
outline: none;
|
|
514
536
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
515
537
|
}
|
|
516
538
|
|
|
@@ -680,16 +702,24 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
680
702
|
<div
|
|
681
703
|
className="c0"
|
|
682
704
|
onPointerDown={[Function]}
|
|
683
|
-
style={
|
|
705
|
+
style={
|
|
706
|
+
Object {
|
|
707
|
+
"backgroundColor": "rgba(0, 0, 0, 0)",
|
|
708
|
+
"overflow": "hidden",
|
|
709
|
+
}
|
|
710
|
+
}
|
|
684
711
|
>
|
|
685
712
|
<div
|
|
686
713
|
className="c1"
|
|
687
714
|
onBlur={[Function]}
|
|
688
|
-
onFocus={null}
|
|
689
715
|
onKeyDown={[Function]}
|
|
690
716
|
role="dialog"
|
|
691
717
|
size="M"
|
|
692
|
-
style={
|
|
718
|
+
style={
|
|
719
|
+
Object {
|
|
720
|
+
"transform": " translateY(100%)",
|
|
721
|
+
}
|
|
722
|
+
}
|
|
693
723
|
tabIndex={-1}
|
|
694
724
|
>
|
|
695
725
|
<div
|
|
@@ -780,7 +810,125 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
780
810
|
</div>
|
|
781
811
|
`;
|
|
782
812
|
|
|
783
|
-
exports[`
|
|
813
|
+
exports[`Storybook Tests DropdownSelector LongNames 1`] = `
|
|
814
|
+
.c0 {
|
|
815
|
+
display: inline-block;
|
|
816
|
+
width: 100%;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.c0:disabled,
|
|
820
|
+
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
821
|
+
cursor: default;
|
|
822
|
+
opacity: 0.32;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.c1 {
|
|
826
|
+
display: -webkit-box;
|
|
827
|
+
display: -webkit-flex;
|
|
828
|
+
display: -ms-flexbox;
|
|
829
|
+
display: flex;
|
|
830
|
+
-webkit-box-pack: justify;
|
|
831
|
+
-webkit-justify-content: space-between;
|
|
832
|
+
-ms-flex-pack: justify;
|
|
833
|
+
justify-content: space-between;
|
|
834
|
+
-webkit-align-items: center;
|
|
835
|
+
-webkit-box-align: center;
|
|
836
|
+
-ms-flex-align: center;
|
|
837
|
+
align-items: center;
|
|
838
|
+
height: 40px;
|
|
839
|
+
width: 100%;
|
|
840
|
+
box-sizing: border-box;
|
|
841
|
+
border: none;
|
|
842
|
+
cursor: pointer;
|
|
843
|
+
gap: 4px;
|
|
844
|
+
padding-right: 8px;
|
|
845
|
+
padding-left: 8px;
|
|
846
|
+
background-color: var(--charcoal-surface3);
|
|
847
|
+
border-radius: 4px;
|
|
848
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
849
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.c1:disabled,
|
|
853
|
+
.c1[aria-disabled]:not([aria-disabled=false]) {
|
|
854
|
+
cursor: default;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
858
|
+
.c1[aria-disabled='false']:focus {
|
|
859
|
+
outline: none;
|
|
860
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
864
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
865
|
+
box-shadow: none;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
869
|
+
.c1[aria-disabled='false']:focus-visible {
|
|
870
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
874
|
+
.c1[aria-disabled='false']:hover {
|
|
875
|
+
background-color: var(--charcoal-surface3-hover);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
879
|
+
.c1[aria-disabled='false']:active {
|
|
880
|
+
background-color: var(--charcoal-surface3-press);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.c2 {
|
|
884
|
+
text-align: left;
|
|
885
|
+
font-size: 14px;
|
|
886
|
+
line-height: 22px;
|
|
887
|
+
display: flow-root;
|
|
888
|
+
color: var(--charcoal-text2);
|
|
889
|
+
overflow: hidden;
|
|
890
|
+
text-overflow: ellipsis;
|
|
891
|
+
white-space: nowrap;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.c3 {
|
|
895
|
+
color: var(--charcoal-text2);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
<div
|
|
899
|
+
data-dark={false}
|
|
900
|
+
>
|
|
901
|
+
<div
|
|
902
|
+
style={
|
|
903
|
+
Object {
|
|
904
|
+
"width": 288,
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
>
|
|
908
|
+
<div
|
|
909
|
+
className="c0"
|
|
910
|
+
>
|
|
911
|
+
<button
|
|
912
|
+
className="c1"
|
|
913
|
+
onClick={[Function]}
|
|
914
|
+
type="button"
|
|
915
|
+
>
|
|
916
|
+
<span
|
|
917
|
+
className="c2"
|
|
918
|
+
>
|
|
919
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
|
|
920
|
+
</span>
|
|
921
|
+
<pixiv-icon
|
|
922
|
+
class="c3"
|
|
923
|
+
name="16/Menu"
|
|
924
|
+
/>
|
|
925
|
+
</button>
|
|
926
|
+
</div>
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
`;
|
|
930
|
+
|
|
931
|
+
exports[`Storybook Tests DropdownSelector Playground 1`] = `
|
|
784
932
|
.c0 {
|
|
785
933
|
cursor: pointer;
|
|
786
934
|
-webkit-appearance: none;
|
|
@@ -851,13 +999,19 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
851
999
|
height: 40px;
|
|
852
1000
|
}
|
|
853
1001
|
|
|
854
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
855
|
-
.c1[aria-disabled='false']:active,
|
|
856
1002
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
857
|
-
.c1[aria-disabled='false']:focus
|
|
1003
|
+
.c1[aria-disabled='false']:focus {
|
|
1004
|
+
outline: none;
|
|
1005
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1009
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1010
|
+
box-shadow: none;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
858
1013
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
859
1014
|
.c1[aria-disabled='false']:focus-visible {
|
|
860
|
-
outline: none;
|
|
861
1015
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
862
1016
|
}
|
|
863
1017
|
|
|
@@ -907,12 +1061,13 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
907
1061
|
box-sizing: border-box;
|
|
908
1062
|
border: none;
|
|
909
1063
|
cursor: pointer;
|
|
1064
|
+
gap: 4px;
|
|
910
1065
|
padding-right: 8px;
|
|
911
1066
|
padding-left: 8px;
|
|
912
1067
|
background-color: var(--charcoal-surface3);
|
|
913
1068
|
border-radius: 4px;
|
|
914
|
-
-webkit-transition: 0.2s box-shadow;
|
|
915
|
-
transition: 0.2s box-shadow;
|
|
1069
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1070
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
916
1071
|
}
|
|
917
1072
|
|
|
918
1073
|
.c3:disabled,
|
|
@@ -921,37 +1076,40 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
921
1076
|
}
|
|
922
1077
|
|
|
923
1078
|
.c3:not(:disabled):not([aria-disabled]):focus,
|
|
924
|
-
.c3[aria-disabled='false']:focus
|
|
925
|
-
|
|
926
|
-
|
|
1079
|
+
.c3[aria-disabled='false']:focus {
|
|
1080
|
+
outline: none;
|
|
1081
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.c3:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1085
|
+
.c3[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1086
|
+
box-shadow: none;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
927
1089
|
.c3:not(:disabled):not([aria-disabled]):focus-visible,
|
|
928
1090
|
.c3[aria-disabled='false']:focus-visible {
|
|
929
|
-
outline: none;
|
|
930
1091
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
931
1092
|
}
|
|
932
1093
|
|
|
1094
|
+
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
1095
|
+
.c3[aria-disabled='false']:hover {
|
|
1096
|
+
background-color: var(--charcoal-surface3-hover);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.c3:not(:disabled):not([aria-disabled]):active,
|
|
1100
|
+
.c3[aria-disabled='false']:active {
|
|
1101
|
+
background-color: var(--charcoal-surface3-press);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
933
1104
|
.c4 {
|
|
934
1105
|
text-align: left;
|
|
935
1106
|
font-size: 14px;
|
|
936
1107
|
line-height: 22px;
|
|
937
1108
|
display: flow-root;
|
|
938
1109
|
color: var(--charcoal-text2);
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
display: block;
|
|
943
|
-
width: 0;
|
|
944
|
-
height: 0;
|
|
945
|
-
content: '';
|
|
946
|
-
margin-top: -4px;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
.c4::after {
|
|
950
|
-
display: block;
|
|
951
|
-
width: 0;
|
|
952
|
-
height: 0;
|
|
953
|
-
content: '';
|
|
954
|
-
margin-bottom: -4px;
|
|
1110
|
+
overflow: hidden;
|
|
1111
|
+
text-overflow: ellipsis;
|
|
1112
|
+
white-space: nowrap;
|
|
955
1113
|
}
|
|
956
1114
|
|
|
957
1115
|
.c5 {
|
|
@@ -995,7 +1153,7 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
995
1153
|
</div>
|
|
996
1154
|
`;
|
|
997
1155
|
|
|
998
|
-
exports[`
|
|
1156
|
+
exports[`Storybook Tests DropdownSelector SectionList 1`] = `
|
|
999
1157
|
.c0 {
|
|
1000
1158
|
display: inline-block;
|
|
1001
1159
|
width: 100%;
|
|
@@ -1025,12 +1183,13 @@ exports[`Storyshots DropdownSelector Section List 1`] = `
|
|
|
1025
1183
|
box-sizing: border-box;
|
|
1026
1184
|
border: none;
|
|
1027
1185
|
cursor: pointer;
|
|
1186
|
+
gap: 4px;
|
|
1028
1187
|
padding-right: 8px;
|
|
1029
1188
|
padding-left: 8px;
|
|
1030
1189
|
background-color: var(--charcoal-surface3);
|
|
1031
1190
|
border-radius: 4px;
|
|
1032
|
-
-webkit-transition: 0.2s box-shadow;
|
|
1033
|
-
transition: 0.2s box-shadow;
|
|
1191
|
+
-webkit-transition: 0.2s box-shadow,0.2s background-color;
|
|
1192
|
+
transition: 0.2s box-shadow,0.2s background-color;
|
|
1034
1193
|
}
|
|
1035
1194
|
|
|
1036
1195
|
.c1:disabled,
|
|
@@ -1039,37 +1198,40 @@ exports[`Storyshots DropdownSelector Section List 1`] = `
|
|
|
1039
1198
|
}
|
|
1040
1199
|
|
|
1041
1200
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1042
|
-
.c1[aria-disabled='false']:focus
|
|
1043
|
-
|
|
1044
|
-
|
|
1201
|
+
.c1[aria-disabled='false']:focus {
|
|
1202
|
+
outline: none;
|
|
1203
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1207
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1208
|
+
box-shadow: none;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1045
1211
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1046
1212
|
.c1[aria-disabled='false']:focus-visible {
|
|
1047
|
-
outline: none;
|
|
1048
1213
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1049
1214
|
}
|
|
1050
1215
|
|
|
1216
|
+
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1217
|
+
.c1[aria-disabled='false']:hover {
|
|
1218
|
+
background-color: var(--charcoal-surface3-hover);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1222
|
+
.c1[aria-disabled='false']:active {
|
|
1223
|
+
background-color: var(--charcoal-surface3-press);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1051
1226
|
.c2 {
|
|
1052
1227
|
text-align: left;
|
|
1053
1228
|
font-size: 14px;
|
|
1054
1229
|
line-height: 22px;
|
|
1055
1230
|
display: flow-root;
|
|
1056
1231
|
color: var(--charcoal-text2);
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
display: block;
|
|
1061
|
-
width: 0;
|
|
1062
|
-
height: 0;
|
|
1063
|
-
content: '';
|
|
1064
|
-
margin-top: -4px;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
.c2::after {
|
|
1068
|
-
display: block;
|
|
1069
|
-
width: 0;
|
|
1070
|
-
height: 0;
|
|
1071
|
-
content: '';
|
|
1072
|
-
margin-bottom: -4px;
|
|
1232
|
+
overflow: hidden;
|
|
1233
|
+
text-overflow: ellipsis;
|
|
1234
|
+
white-space: nowrap;
|
|
1073
1235
|
}
|
|
1074
1236
|
|
|
1075
1237
|
.c3 {
|