@charcoal-ui/react 4.3.0 → 4.4.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/MultiSelect/context.d.ts +14 -0
- package/dist/components/MultiSelect/context.d.ts.map +1 -0
- package/dist/components/MultiSelect/index.d.ts +38 -0
- package/dist/components/MultiSelect/index.d.ts.map +1 -0
- package/dist/index.cjs.js +318 -216
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +111 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +281 -181
- package/dist/index.esm.js.map +1 -1
- package/dist/layered.css +111 -0
- package/dist/layered.css.map +1 -1
- package/package.json +6 -7
- package/src/components/Button/__snapshots__/index.story.storyshot +89 -71
- package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +50 -53
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +108 -102
- package/src/components/Clickable/__snapshots__/index.story.storyshot +19 -17
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +45 -54
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +238 -275
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +28 -50
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +780 -1158
- package/src/components/Icon/__snapshots__/index.story.storyshot +9 -7
- package/src/components/IconButton/__snapshots__/index.story.storyshot +43 -37
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +52 -64
- package/src/components/Modal/__snapshots__/index.story.storyshot +568 -716
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +531 -0
- package/src/components/MultiSelect/context.ts +23 -0
- package/src/components/MultiSelect/index.css +139 -0
- package/src/components/MultiSelect/index.story.tsx +118 -0
- package/src/components/MultiSelect/index.test.tsx +255 -0
- package/src/components/MultiSelect/index.tsx +153 -0
- package/src/components/Radio/__snapshots__/index.story.storyshot +313 -367
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +116 -228
- package/src/components/Switch/__snapshots__/index.story.storyshot +74 -73
- package/src/components/TagItem/__snapshots__/index.story.storyshot +177 -193
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +372 -533
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +444 -583
- package/src/index.ts +6 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Storybook Tests > react/Icon > Default 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
data-dark="false"
|
|
7
|
+
>
|
|
8
|
+
<pixiv-icon
|
|
9
|
+
name="16/Add"
|
|
10
|
+
scale="1"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
11
13
|
</div>
|
|
12
14
|
`;
|
|
@@ -1,53 +1,59 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Storybook Tests > react/IconButton > Default 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<button
|
|
8
|
-
className="charcoal-icon-button"
|
|
9
|
-
data-active={false}
|
|
10
|
-
data-size="M"
|
|
11
|
-
data-variant="Default"
|
|
12
|
-
title="add"
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
data-dark="false"
|
|
13
7
|
>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
<button
|
|
9
|
+
class="charcoal-icon-button"
|
|
10
|
+
data-active="false"
|
|
11
|
+
data-size="M"
|
|
12
|
+
data-variant="Default"
|
|
13
|
+
title="add"
|
|
14
|
+
>
|
|
15
|
+
<pixiv-icon
|
|
16
|
+
name="16/Add"
|
|
17
|
+
/>
|
|
18
|
+
</button>
|
|
19
|
+
</div>
|
|
18
20
|
</div>
|
|
19
21
|
`;
|
|
20
22
|
|
|
21
23
|
exports[`Storybook Tests > react/IconButton > IsActive 1`] = `
|
|
22
|
-
<div
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<button
|
|
26
|
-
className="charcoal-icon-button"
|
|
27
|
-
data-active={true}
|
|
28
|
-
data-size="M"
|
|
29
|
-
data-variant="Default"
|
|
24
|
+
<div>
|
|
25
|
+
<div
|
|
26
|
+
data-dark="false"
|
|
30
27
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
<button
|
|
29
|
+
class="charcoal-icon-button"
|
|
30
|
+
data-active="true"
|
|
31
|
+
data-size="M"
|
|
32
|
+
data-variant="Default"
|
|
33
|
+
>
|
|
34
|
+
<pixiv-icon
|
|
35
|
+
name="16/Add"
|
|
36
|
+
/>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
35
39
|
</div>
|
|
36
40
|
`;
|
|
37
41
|
|
|
38
42
|
exports[`Storybook Tests > react/IconButton > Overlay 1`] = `
|
|
39
|
-
<div
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<button
|
|
43
|
-
className="charcoal-icon-button"
|
|
44
|
-
data-active={false}
|
|
45
|
-
data-size="M"
|
|
46
|
-
data-variant="Overlay"
|
|
43
|
+
<div>
|
|
44
|
+
<div
|
|
45
|
+
data-dark="false"
|
|
47
46
|
>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
<button
|
|
48
|
+
class="charcoal-icon-button"
|
|
49
|
+
data-active="false"
|
|
50
|
+
data-size="M"
|
|
51
|
+
data-variant="Overlay"
|
|
52
|
+
>
|
|
53
|
+
<pixiv-icon
|
|
54
|
+
name="16/Add"
|
|
55
|
+
/>
|
|
56
|
+
</button>
|
|
57
|
+
</div>
|
|
52
58
|
</div>
|
|
53
59
|
`;
|
|
@@ -1,97 +1,85 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Storybook Tests > react/LoadingSpinner > Default 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
data-dark={false}
|
|
6
|
-
>
|
|
4
|
+
<div>
|
|
7
5
|
<div
|
|
8
|
-
|
|
9
|
-
data-transparent={false}
|
|
10
|
-
role="progressbar"
|
|
11
|
-
style={
|
|
12
|
-
Object {
|
|
13
|
-
"--charcoal-loading-spinner-padding": "16px",
|
|
14
|
-
"--charcoal-loading-spinner-size": "48px",
|
|
15
|
-
}
|
|
16
|
-
}
|
|
6
|
+
data-dark="false"
|
|
17
7
|
>
|
|
18
8
|
<div
|
|
19
|
-
|
|
20
|
-
data-
|
|
21
|
-
role="
|
|
22
|
-
|
|
9
|
+
class="charcoal-loading-spinner"
|
|
10
|
+
data-transparent="false"
|
|
11
|
+
role="progressbar"
|
|
12
|
+
style="--charcoal-loading-spinner-size: 48px; --charcoal-loading-spinner-padding: 16px;"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="charcoal-loading-spinner-icon"
|
|
16
|
+
data-once="false"
|
|
17
|
+
role="presentation"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
23
20
|
</div>
|
|
24
21
|
</div>
|
|
25
22
|
`;
|
|
26
23
|
|
|
27
24
|
exports[`Storybook Tests > react/LoadingSpinner > Padding 1`] = `
|
|
28
|
-
<div
|
|
29
|
-
data-dark={false}
|
|
30
|
-
>
|
|
25
|
+
<div>
|
|
31
26
|
<div
|
|
32
|
-
|
|
33
|
-
data-transparent={false}
|
|
34
|
-
role="progressbar"
|
|
35
|
-
style={
|
|
36
|
-
Object {
|
|
37
|
-
"--charcoal-loading-spinner-padding": "24px",
|
|
38
|
-
"--charcoal-loading-spinner-size": "48px",
|
|
39
|
-
}
|
|
40
|
-
}
|
|
27
|
+
data-dark="false"
|
|
41
28
|
>
|
|
42
29
|
<div
|
|
43
|
-
|
|
44
|
-
data-
|
|
45
|
-
role="
|
|
46
|
-
|
|
30
|
+
class="charcoal-loading-spinner"
|
|
31
|
+
data-transparent="false"
|
|
32
|
+
role="progressbar"
|
|
33
|
+
style="--charcoal-loading-spinner-size: 48px; --charcoal-loading-spinner-padding: 24px;"
|
|
34
|
+
>
|
|
35
|
+
<div
|
|
36
|
+
class="charcoal-loading-spinner-icon"
|
|
37
|
+
data-once="false"
|
|
38
|
+
role="presentation"
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
47
41
|
</div>
|
|
48
42
|
</div>
|
|
49
43
|
`;
|
|
50
44
|
|
|
51
45
|
exports[`Storybook Tests > react/LoadingSpinner > Size 1`] = `
|
|
52
|
-
<div
|
|
53
|
-
data-dark={false}
|
|
54
|
-
>
|
|
46
|
+
<div>
|
|
55
47
|
<div
|
|
56
|
-
|
|
57
|
-
data-transparent={false}
|
|
58
|
-
role="progressbar"
|
|
59
|
-
style={
|
|
60
|
-
Object {
|
|
61
|
-
"--charcoal-loading-spinner-padding": "16px",
|
|
62
|
-
"--charcoal-loading-spinner-size": "128px",
|
|
63
|
-
}
|
|
64
|
-
}
|
|
48
|
+
data-dark="false"
|
|
65
49
|
>
|
|
66
50
|
<div
|
|
67
|
-
|
|
68
|
-
data-
|
|
69
|
-
role="
|
|
70
|
-
|
|
51
|
+
class="charcoal-loading-spinner"
|
|
52
|
+
data-transparent="false"
|
|
53
|
+
role="progressbar"
|
|
54
|
+
style="--charcoal-loading-spinner-size: 128px; --charcoal-loading-spinner-padding: 16px;"
|
|
55
|
+
>
|
|
56
|
+
<div
|
|
57
|
+
class="charcoal-loading-spinner-icon"
|
|
58
|
+
data-once="false"
|
|
59
|
+
role="presentation"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
71
62
|
</div>
|
|
72
63
|
</div>
|
|
73
64
|
`;
|
|
74
65
|
|
|
75
66
|
exports[`Storybook Tests > react/LoadingSpinner > Transparent 1`] = `
|
|
76
|
-
<div
|
|
77
|
-
data-dark={false}
|
|
78
|
-
>
|
|
67
|
+
<div>
|
|
79
68
|
<div
|
|
80
|
-
|
|
81
|
-
data-transparent={true}
|
|
82
|
-
role="progressbar"
|
|
83
|
-
style={
|
|
84
|
-
Object {
|
|
85
|
-
"--charcoal-loading-spinner-padding": "16px",
|
|
86
|
-
"--charcoal-loading-spinner-size": "48px",
|
|
87
|
-
}
|
|
88
|
-
}
|
|
69
|
+
data-dark="false"
|
|
89
70
|
>
|
|
90
71
|
<div
|
|
91
|
-
|
|
92
|
-
data-
|
|
93
|
-
role="
|
|
94
|
-
|
|
72
|
+
class="charcoal-loading-spinner"
|
|
73
|
+
data-transparent="true"
|
|
74
|
+
role="progressbar"
|
|
75
|
+
style="--charcoal-loading-spinner-size: 48px; --charcoal-loading-spinner-padding: 16px;"
|
|
76
|
+
>
|
|
77
|
+
<div
|
|
78
|
+
class="charcoal-loading-spinner-icon"
|
|
79
|
+
data-once="false"
|
|
80
|
+
role="presentation"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
95
83
|
</div>
|
|
96
84
|
</div>
|
|
97
85
|
`;
|