@charcoal-ui/react 3.7.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/components/Button/StyledButton.d.ts +1 -0
- package/dist/components/Button/StyledButton.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -0
- 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/Checkbox/index.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 -12
- 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/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 +80 -86
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +80 -86
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +6 -6
- package/src/components/Button/StyledButton.tsx +19 -14
- 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 +3 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +12 -27
- package/src/components/Checkbox/index.tsx +2 -12
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- 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 +145 -47
- package/src/components/DropdownSelector/index.story.tsx +207 -204
- package/src/components/DropdownSelector/index.tsx +17 -10
- 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 +212 -171
- 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/__snapshots__/index.story.storyshot +2 -2
- package/src/components/SegmentedControl/index.story.tsx +24 -29
- 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 +127 -73
- package/src/components/TextField/TextField.story.tsx +67 -66
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +182 -147
- package/src/components/TextField/index.tsx +0 -7
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Storybook Tests DropdownSelector/MenuList Basic 1`] = `
|
|
4
|
+
.c0 {
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
.c1 {
|
|
5
10
|
list-style: none;
|
|
6
11
|
}
|
|
@@ -33,11 +38,6 @@ exports[`Storyshots DropdownSelector/MenuList Basic 1`] = `
|
|
|
33
38
|
background-color: var(--charcoal-surface3);
|
|
34
39
|
}
|
|
35
40
|
|
|
36
|
-
.c0 {
|
|
37
|
-
padding: 0;
|
|
38
|
-
margin: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
41
|
<div
|
|
42
42
|
data-dark={false}
|
|
43
43
|
>
|
|
@@ -208,7 +208,12 @@ exports[`Storyshots DropdownSelector/MenuList Basic 1`] = `
|
|
|
208
208
|
</div>
|
|
209
209
|
`;
|
|
210
210
|
|
|
211
|
-
exports[`
|
|
211
|
+
exports[`Storybook Tests DropdownSelector/MenuList Disabled 1`] = `
|
|
212
|
+
.c0 {
|
|
213
|
+
padding: 0;
|
|
214
|
+
margin: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
212
217
|
.c1 {
|
|
213
218
|
list-style: none;
|
|
214
219
|
}
|
|
@@ -241,11 +246,6 @@ exports[`Storyshots DropdownSelector/MenuList Disabled 1`] = `
|
|
|
241
246
|
background-color: var(--charcoal-surface3);
|
|
242
247
|
}
|
|
243
248
|
|
|
244
|
-
.c0 {
|
|
245
|
-
padding: 0;
|
|
246
|
-
margin: 0;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
249
|
<div
|
|
250
250
|
data-dark={false}
|
|
251
251
|
>
|
|
@@ -287,7 +287,32 @@ exports[`Storyshots DropdownSelector/MenuList Disabled 1`] = `
|
|
|
287
287
|
</div>
|
|
288
288
|
`;
|
|
289
289
|
|
|
290
|
-
exports[`
|
|
290
|
+
exports[`Storybook Tests DropdownSelector/MenuList Group 1`] = `
|
|
291
|
+
.c0 {
|
|
292
|
+
padding: 0;
|
|
293
|
+
margin: 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.c2 {
|
|
297
|
+
display: block;
|
|
298
|
+
color: var(--charcoal-text3);
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
font-weight: bold;
|
|
301
|
+
padding: 12px 0 8px 16px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.c3 {
|
|
305
|
+
padding-left: 0;
|
|
306
|
+
margin: 0;
|
|
307
|
+
box-sizing: border-box;
|
|
308
|
+
list-style: none;
|
|
309
|
+
overflow: hidden;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.c1 {
|
|
313
|
+
display: block;
|
|
314
|
+
}
|
|
315
|
+
|
|
291
316
|
.c4 {
|
|
292
317
|
list-style: none;
|
|
293
318
|
}
|
|
@@ -320,31 +345,6 @@ exports[`Storyshots DropdownSelector/MenuList Group 1`] = `
|
|
|
320
345
|
background-color: var(--charcoal-surface3);
|
|
321
346
|
}
|
|
322
347
|
|
|
323
|
-
.c0 {
|
|
324
|
-
padding: 0;
|
|
325
|
-
margin: 0;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.c2 {
|
|
329
|
-
display: block;
|
|
330
|
-
color: var(--charcoal-text3);
|
|
331
|
-
font-size: 12px;
|
|
332
|
-
font-weight: bold;
|
|
333
|
-
padding: 12px 0 8px 16px;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.c3 {
|
|
337
|
-
padding-left: 0;
|
|
338
|
-
margin: 0;
|
|
339
|
-
box-sizing: border-box;
|
|
340
|
-
list-style: none;
|
|
341
|
-
overflow: hidden;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.c1 {
|
|
345
|
-
display: block;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
348
|
<div
|
|
349
349
|
data-dark={false}
|
|
350
350
|
>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions'
|
|
2
|
-
import
|
|
3
|
-
import MenuList, { MenuListProps } from '.'
|
|
2
|
+
import MenuList from '.'
|
|
4
3
|
import MenuItem from '../MenuItem'
|
|
5
4
|
import MenuItemGroup from '../MenuItemGroup'
|
|
5
|
+
import { Meta, StoryObj } from '@storybook/react'
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'DropdownSelector/MenuList',
|
|
9
9
|
component: MenuList,
|
|
10
|
-
}
|
|
10
|
+
} as Meta<typeof MenuList>
|
|
11
11
|
|
|
12
12
|
function makeList(n: number, offset = 0) {
|
|
13
13
|
return [...(Array(n) as undefined[])].map((_, i) => {
|
|
@@ -20,32 +20,38 @@ function makeList(n: number, offset = 0) {
|
|
|
20
20
|
})
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export const Basic:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
export const Basic: StoryObj<typeof MenuList> = {
|
|
24
|
+
render: () => {
|
|
25
|
+
return (
|
|
26
|
+
<>
|
|
27
|
+
<MenuList onChange={action('onChange')}>{makeList(10)}</MenuList>
|
|
28
|
+
</>
|
|
29
|
+
)
|
|
30
|
+
},
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
export const Disabled:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
export const Disabled: StoryObj<typeof MenuList> = {
|
|
34
|
+
render: () => {
|
|
35
|
+
return (
|
|
36
|
+
<>
|
|
37
|
+
<MenuList onChange={action('onChange')}>
|
|
38
|
+
<MenuItem value="1">MenuItem</MenuItem>
|
|
39
|
+
<MenuItem value="2" disabled>
|
|
40
|
+
Disabled MenuItem
|
|
41
|
+
</MenuItem>
|
|
42
|
+
</MenuList>
|
|
43
|
+
</>
|
|
44
|
+
)
|
|
45
|
+
},
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
export const Group:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
export const Group: StoryObj<typeof MenuList> = {
|
|
49
|
+
render: () => {
|
|
50
|
+
return (
|
|
51
|
+
<MenuList onChange={action('onChange')} value="1">
|
|
52
|
+
<MenuItemGroup text="Section1">{makeList(5)}</MenuItemGroup>
|
|
53
|
+
<MenuItemGroup text="Section2">{makeList(5, 5)}</MenuItemGroup>
|
|
54
|
+
</MenuList>
|
|
55
|
+
)
|
|
56
|
+
},
|
|
51
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Storybook Tests DropdownSelector/Popover Basic 1`] = `
|
|
4
4
|
.c0 {
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
-webkit-appearance: none;
|
|
@@ -71,13 +71,19 @@ exports[`Storyshots DropdownSelector/Popover Basic 1`] = `
|
|
|
71
71
|
height: 40px;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
75
|
-
.c1[aria-disabled='false']:active,
|
|
76
74
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
77
|
-
.c1[aria-disabled='false']:focus
|
|
75
|
+
.c1[aria-disabled='false']:focus {
|
|
76
|
+
outline: none;
|
|
77
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
81
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
82
|
+
box-shadow: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
79
86
|
.c1[aria-disabled='false']:focus-visible {
|
|
80
|
-
outline: none;
|
|
81
87
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
82
88
|
}
|
|
83
89
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useRef, CSSProperties, useState } from 'react'
|
|
2
|
-
import
|
|
3
|
-
import Popover, { PopoverProps } from '.'
|
|
2
|
+
import Popover from '.'
|
|
4
3
|
import Button from '../../Button'
|
|
4
|
+
import { Meta, StoryObj } from '@storybook/react'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'DropdownSelector/Popover',
|
|
8
8
|
component: Popover,
|
|
9
|
-
}
|
|
9
|
+
} as Meta<typeof Popover>
|
|
10
10
|
|
|
11
11
|
function Base(props: { style?: CSSProperties }) {
|
|
12
12
|
const [isOpen, setIsOpen] = useState(false)
|
|
@@ -33,8 +33,8 @@ function Base(props: { style?: CSSProperties }) {
|
|
|
33
33
|
)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export const Basic:
|
|
37
|
-
|
|
36
|
+
export const Basic: StoryObj = {
|
|
37
|
+
render: () => (
|
|
38
38
|
<>
|
|
39
39
|
<Base
|
|
40
40
|
style={{
|
|
@@ -61,5 +61,5 @@ export const Basic: Story<PopoverProps> = () => {
|
|
|
61
61
|
}}
|
|
62
62
|
/>
|
|
63
63
|
</>
|
|
64
|
-
)
|
|
64
|
+
),
|
|
65
65
|
}
|
|
@@ -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%;
|
|
@@ -45,12 +45,18 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
48
|
-
.c1[aria-disabled='false']:focus
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
|
|
51
58
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
52
59
|
.c1[aria-disabled='false']:focus-visible {
|
|
53
|
-
outline: none;
|
|
54
60
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -59,6 +65,11 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
59
65
|
background-color: var(--charcoal-surface3-hover);
|
|
60
66
|
}
|
|
61
67
|
|
|
68
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
69
|
+
.c1[aria-disabled='false']:active {
|
|
70
|
+
background-color: var(--charcoal-surface3-press);
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
.c2 {
|
|
63
74
|
text-align: left;
|
|
64
75
|
font-size: 14px;
|
|
@@ -107,7 +118,7 @@ exports[`Storyshots DropdownSelector Basic 1`] = `
|
|
|
107
118
|
</div>
|
|
108
119
|
`;
|
|
109
120
|
|
|
110
|
-
exports[`
|
|
121
|
+
exports[`Storybook Tests DropdownSelector CustomChildren 1`] = `
|
|
111
122
|
.c0 {
|
|
112
123
|
display: inline-block;
|
|
113
124
|
width: 100%;
|
|
@@ -152,12 +163,18 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
152
163
|
}
|
|
153
164
|
|
|
154
165
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
155
|
-
.c1[aria-disabled='false']:focus
|
|
156
|
-
|
|
157
|
-
|
|
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
|
+
|
|
158
176
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
159
177
|
.c1[aria-disabled='false']:focus-visible {
|
|
160
|
-
outline: none;
|
|
161
178
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
162
179
|
}
|
|
163
180
|
|
|
@@ -166,6 +183,11 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
166
183
|
background-color: var(--charcoal-surface3-hover);
|
|
167
184
|
}
|
|
168
185
|
|
|
186
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
187
|
+
.c1[aria-disabled='false']:active {
|
|
188
|
+
background-color: var(--charcoal-surface3-press);
|
|
189
|
+
}
|
|
190
|
+
|
|
169
191
|
.c2 {
|
|
170
192
|
text-align: left;
|
|
171
193
|
font-size: 14px;
|
|
@@ -223,7 +245,7 @@ exports[`Storyshots DropdownSelector Custom Children 1`] = `
|
|
|
223
245
|
</div>
|
|
224
246
|
`;
|
|
225
247
|
|
|
226
|
-
exports[`
|
|
248
|
+
exports[`Storybook Tests DropdownSelector InFormTag 1`] = `
|
|
227
249
|
.c0 {
|
|
228
250
|
display: inline-block;
|
|
229
251
|
width: 100%;
|
|
@@ -268,12 +290,18 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
268
290
|
}
|
|
269
291
|
|
|
270
292
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
271
|
-
.c1[aria-disabled='false']:focus
|
|
272
|
-
|
|
273
|
-
|
|
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
|
+
|
|
274
303
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
275
304
|
.c1[aria-disabled='false']:focus-visible {
|
|
276
|
-
outline: none;
|
|
277
305
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
278
306
|
}
|
|
279
307
|
|
|
@@ -282,6 +310,11 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
282
310
|
background-color: var(--charcoal-surface3-hover);
|
|
283
311
|
}
|
|
284
312
|
|
|
313
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
314
|
+
.c1[aria-disabled='false']:active {
|
|
315
|
+
background-color: var(--charcoal-surface3-press);
|
|
316
|
+
}
|
|
317
|
+
|
|
285
318
|
.c2 {
|
|
286
319
|
text-align: left;
|
|
287
320
|
font-size: 14px;
|
|
@@ -328,7 +361,7 @@ exports[`Storyshots DropdownSelector In Form Tag 1`] = `
|
|
|
328
361
|
</div>
|
|
329
362
|
`;
|
|
330
363
|
|
|
331
|
-
exports[`
|
|
364
|
+
exports[`Storybook Tests DropdownSelector InModal 1`] = `
|
|
332
365
|
.c11 {
|
|
333
366
|
cursor: pointer;
|
|
334
367
|
-webkit-appearance: none;
|
|
@@ -411,12 +444,18 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
411
444
|
}
|
|
412
445
|
|
|
413
446
|
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
414
|
-
.c8[aria-disabled='false']:focus
|
|
415
|
-
|
|
416
|
-
|
|
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
|
+
|
|
417
457
|
.c8:not(:disabled):not([aria-disabled]):focus-visible,
|
|
418
458
|
.c8[aria-disabled='false']:focus-visible {
|
|
419
|
-
outline: none;
|
|
420
459
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
421
460
|
}
|
|
422
461
|
|
|
@@ -425,6 +464,11 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
425
464
|
background-color: var(--charcoal-surface3-hover);
|
|
426
465
|
}
|
|
427
466
|
|
|
467
|
+
.c8:not(:disabled):not([aria-disabled]):active,
|
|
468
|
+
.c8[aria-disabled='false']:active {
|
|
469
|
+
background-color: var(--charcoal-surface3-press);
|
|
470
|
+
}
|
|
471
|
+
|
|
428
472
|
.c9 {
|
|
429
473
|
text-align: left;
|
|
430
474
|
font-size: 14px;
|
|
@@ -468,21 +512,27 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
468
512
|
|
|
469
513
|
.c12:not(:disabled):not([aria-disabled]):hover,
|
|
470
514
|
.c12[aria-disabled='false']:hover {
|
|
471
|
-
background-color: var(
|
|
515
|
+
background-color: var(--charcoal-transparent-hover);
|
|
472
516
|
}
|
|
473
517
|
|
|
474
518
|
.c12:not(:disabled):not([aria-disabled]):active,
|
|
475
519
|
.c12[aria-disabled='false']:active {
|
|
476
|
-
background-color: var(
|
|
520
|
+
background-color: var(--charcoal-transparent-press);
|
|
477
521
|
}
|
|
478
522
|
|
|
479
523
|
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
480
|
-
.c12[aria-disabled='false']:focus
|
|
481
|
-
|
|
482
|
-
|
|
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
|
+
|
|
483
534
|
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
484
535
|
.c12[aria-disabled='false']:focus-visible {
|
|
485
|
-
outline: none;
|
|
486
536
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
487
537
|
}
|
|
488
538
|
|
|
@@ -652,7 +702,12 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
652
702
|
<div
|
|
653
703
|
className="c0"
|
|
654
704
|
onPointerDown={[Function]}
|
|
655
|
-
style={
|
|
705
|
+
style={
|
|
706
|
+
Object {
|
|
707
|
+
"backgroundColor": "rgba(0, 0, 0, 0)",
|
|
708
|
+
"overflow": "hidden",
|
|
709
|
+
}
|
|
710
|
+
}
|
|
656
711
|
>
|
|
657
712
|
<div
|
|
658
713
|
className="c1"
|
|
@@ -660,7 +715,11 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
660
715
|
onKeyDown={[Function]}
|
|
661
716
|
role="dialog"
|
|
662
717
|
size="M"
|
|
663
|
-
style={
|
|
718
|
+
style={
|
|
719
|
+
Object {
|
|
720
|
+
"transform": " translateY(100%)",
|
|
721
|
+
}
|
|
722
|
+
}
|
|
664
723
|
tabIndex={-1}
|
|
665
724
|
>
|
|
666
725
|
<div
|
|
@@ -751,7 +810,7 @@ exports[`Storyshots DropdownSelector In Modal 1`] = `
|
|
|
751
810
|
</div>
|
|
752
811
|
`;
|
|
753
812
|
|
|
754
|
-
exports[`
|
|
813
|
+
exports[`Storybook Tests DropdownSelector LongNames 1`] = `
|
|
755
814
|
.c0 {
|
|
756
815
|
display: inline-block;
|
|
757
816
|
width: 100%;
|
|
@@ -796,12 +855,18 @@ exports[`Storyshots DropdownSelector Long Names 1`] = `
|
|
|
796
855
|
}
|
|
797
856
|
|
|
798
857
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
799
|
-
.c1[aria-disabled='false']:focus
|
|
800
|
-
|
|
801
|
-
|
|
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
|
+
|
|
802
868
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
803
869
|
.c1[aria-disabled='false']:focus-visible {
|
|
804
|
-
outline: none;
|
|
805
870
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
806
871
|
}
|
|
807
872
|
|
|
@@ -810,6 +875,11 @@ exports[`Storyshots DropdownSelector Long Names 1`] = `
|
|
|
810
875
|
background-color: var(--charcoal-surface3-hover);
|
|
811
876
|
}
|
|
812
877
|
|
|
878
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
879
|
+
.c1[aria-disabled='false']:active {
|
|
880
|
+
background-color: var(--charcoal-surface3-press);
|
|
881
|
+
}
|
|
882
|
+
|
|
813
883
|
.c2 {
|
|
814
884
|
text-align: left;
|
|
815
885
|
font-size: 14px;
|
|
@@ -858,7 +928,7 @@ exports[`Storyshots DropdownSelector Long Names 1`] = `
|
|
|
858
928
|
</div>
|
|
859
929
|
`;
|
|
860
930
|
|
|
861
|
-
exports[`
|
|
931
|
+
exports[`Storybook Tests DropdownSelector Playground 1`] = `
|
|
862
932
|
.c0 {
|
|
863
933
|
cursor: pointer;
|
|
864
934
|
-webkit-appearance: none;
|
|
@@ -929,13 +999,19 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
929
999
|
height: 40px;
|
|
930
1000
|
}
|
|
931
1001
|
|
|
932
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
933
|
-
.c1[aria-disabled='false']:active,
|
|
934
1002
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
935
|
-
.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
|
+
|
|
936
1013
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
937
1014
|
.c1[aria-disabled='false']:focus-visible {
|
|
938
|
-
outline: none;
|
|
939
1015
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
940
1016
|
}
|
|
941
1017
|
|
|
@@ -1000,12 +1076,18 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
1000
1076
|
}
|
|
1001
1077
|
|
|
1002
1078
|
.c3:not(:disabled):not([aria-disabled]):focus,
|
|
1003
|
-
.c3[aria-disabled='false']:focus
|
|
1004
|
-
|
|
1005
|
-
|
|
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
|
+
|
|
1006
1089
|
.c3:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1007
1090
|
.c3[aria-disabled='false']:focus-visible {
|
|
1008
|
-
outline: none;
|
|
1009
1091
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1010
1092
|
}
|
|
1011
1093
|
|
|
@@ -1014,6 +1096,11 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
1014
1096
|
background-color: var(--charcoal-surface3-hover);
|
|
1015
1097
|
}
|
|
1016
1098
|
|
|
1099
|
+
.c3:not(:disabled):not([aria-disabled]):active,
|
|
1100
|
+
.c3[aria-disabled='false']:active {
|
|
1101
|
+
background-color: var(--charcoal-surface3-press);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1017
1104
|
.c4 {
|
|
1018
1105
|
text-align: left;
|
|
1019
1106
|
font-size: 14px;
|
|
@@ -1066,7 +1153,7 @@ exports[`Storyshots DropdownSelector Playground 1`] = `
|
|
|
1066
1153
|
</div>
|
|
1067
1154
|
`;
|
|
1068
1155
|
|
|
1069
|
-
exports[`
|
|
1156
|
+
exports[`Storybook Tests DropdownSelector SectionList 1`] = `
|
|
1070
1157
|
.c0 {
|
|
1071
1158
|
display: inline-block;
|
|
1072
1159
|
width: 100%;
|
|
@@ -1111,12 +1198,18 @@ exports[`Storyshots DropdownSelector Section List 1`] = `
|
|
|
1111
1198
|
}
|
|
1112
1199
|
|
|
1113
1200
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1114
|
-
.c1[aria-disabled='false']:focus
|
|
1115
|
-
|
|
1116
|
-
|
|
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
|
+
|
|
1117
1211
|
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1118
1212
|
.c1[aria-disabled='false']:focus-visible {
|
|
1119
|
-
outline: none;
|
|
1120
1213
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1121
1214
|
}
|
|
1122
1215
|
|
|
@@ -1125,6 +1218,11 @@ exports[`Storyshots DropdownSelector Section List 1`] = `
|
|
|
1125
1218
|
background-color: var(--charcoal-surface3-hover);
|
|
1126
1219
|
}
|
|
1127
1220
|
|
|
1221
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1222
|
+
.c1[aria-disabled='false']:active {
|
|
1223
|
+
background-color: var(--charcoal-surface3-press);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1128
1226
|
.c2 {
|
|
1129
1227
|
text-align: left;
|
|
1130
1228
|
font-size: 14px;
|