@charcoal-ui/react-sandbox 3.3.0 → 3.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/package.json +7 -7
- package/src/components/Carousel/__snapshots__/index.story.storyshot +360 -0
- package/src/components/CarouselButton/__snapshots__/index.story.storyshot +168 -0
- package/src/components/Filter/__snapshots__/index.story.storyshot +239 -0
- package/src/components/HintText/__snapshots__/index.story.storyshot +119 -0
- package/src/components/Layout/__snapshots__/index.story.storyshot +1297 -0
- package/src/components/MenuListItem/__snapshots__/index.story.storyshot +1389 -0
- package/src/components/Pager/__snapshots__/index.story.storyshot +1894 -0
- package/src/components/SwitchCheckbox/__snapshots__/index.story.storyshot +507 -0
- package/src/components/TextEllipsis/__snapshots__/index.story.storyshot +32 -0
- package/src/components/WithIcon/__snapshots__/index.story.storyshot +852 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Storyshots Sandbox/Filter Button 1`] = `
|
|
4
|
+
.c0 {
|
|
5
|
+
display: block;
|
|
6
|
+
outline: none;
|
|
7
|
+
border: none;
|
|
8
|
+
padding: 9px 24px;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
line-height: 22px;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
border-radius: 2000px;
|
|
13
|
+
-webkit-transition: color 0.2s;
|
|
14
|
+
transition: color 0.2s;
|
|
15
|
+
color: #858585;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
-webkit-user-select: none;
|
|
18
|
+
-moz-user-select: none;
|
|
19
|
+
-ms-user-select: none;
|
|
20
|
+
user-select: none;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
background-color: rgba(0,0,0,0.04);
|
|
23
|
+
color: #474747;
|
|
24
|
+
cursor: default;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.c0:hover {
|
|
28
|
+
color: #474747;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (max-width:743px) {
|
|
32
|
+
.c0 {
|
|
33
|
+
padding: 5px 16px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
<div
|
|
38
|
+
data-dark={false}
|
|
39
|
+
>
|
|
40
|
+
<button
|
|
41
|
+
className="c0"
|
|
42
|
+
>
|
|
43
|
+
Label
|
|
44
|
+
</button>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports[`Storyshots Sandbox/Filter Default 1`] = `
|
|
49
|
+
.c3 {
|
|
50
|
+
display: block;
|
|
51
|
+
outline: none;
|
|
52
|
+
border: none;
|
|
53
|
+
padding: 9px 24px;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
line-height: 22px;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
border-radius: 2000px;
|
|
58
|
+
-webkit-transition: color 0.2s;
|
|
59
|
+
transition: color 0.2s;
|
|
60
|
+
color: #858585;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
-webkit-user-select: none;
|
|
63
|
+
-moz-user-select: none;
|
|
64
|
+
-ms-user-select: none;
|
|
65
|
+
user-select: none;
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.c3:hover {
|
|
70
|
+
color: #474747;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.c1 {
|
|
74
|
+
display: block;
|
|
75
|
+
outline: none;
|
|
76
|
+
border: none;
|
|
77
|
+
padding: 9px 24px;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
line-height: 22px;
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
border-radius: 2000px;
|
|
82
|
+
-webkit-transition: color 0.2s;
|
|
83
|
+
transition: color 0.2s;
|
|
84
|
+
color: #858585;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
-webkit-user-select: none;
|
|
87
|
+
-moz-user-select: none;
|
|
88
|
+
-ms-user-select: none;
|
|
89
|
+
user-select: none;
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.c1:hover {
|
|
94
|
+
color: #474747;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.c2 {
|
|
98
|
+
display: block;
|
|
99
|
+
outline: none;
|
|
100
|
+
border: none;
|
|
101
|
+
padding: 9px 24px;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
line-height: 22px;
|
|
104
|
+
font-weight: bold;
|
|
105
|
+
border-radius: 2000px;
|
|
106
|
+
-webkit-transition: color 0.2s;
|
|
107
|
+
transition: color 0.2s;
|
|
108
|
+
color: #858585;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
-webkit-user-select: none;
|
|
111
|
+
-moz-user-select: none;
|
|
112
|
+
-ms-user-select: none;
|
|
113
|
+
user-select: none;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
background-color: rgba(0,0,0,0.04);
|
|
116
|
+
color: #474747;
|
|
117
|
+
cursor: default;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.c2:hover {
|
|
121
|
+
color: #474747;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.c0 {
|
|
125
|
+
display: -webkit-box;
|
|
126
|
+
display: -webkit-flex;
|
|
127
|
+
display: -ms-flexbox;
|
|
128
|
+
display: flex;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (max-width:743px) {
|
|
132
|
+
.c3 {
|
|
133
|
+
padding: 5px 16px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (max-width:743px) {
|
|
138
|
+
.c1 {
|
|
139
|
+
padding: 5px 16px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (max-width:743px) {
|
|
144
|
+
.c2 {
|
|
145
|
+
padding: 5px 16px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
<div
|
|
150
|
+
data-dark={false}
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
className="c0"
|
|
154
|
+
>
|
|
155
|
+
<a
|
|
156
|
+
href="/0"
|
|
157
|
+
onClick={[Function]}
|
|
158
|
+
>
|
|
159
|
+
<span
|
|
160
|
+
className="c1"
|
|
161
|
+
>
|
|
162
|
+
新しい順
|
|
163
|
+
</span>
|
|
164
|
+
</a>
|
|
165
|
+
<span
|
|
166
|
+
className="c2"
|
|
167
|
+
>
|
|
168
|
+
古い順
|
|
169
|
+
</span>
|
|
170
|
+
<button
|
|
171
|
+
className="c3"
|
|
172
|
+
onClick={[Function]}
|
|
173
|
+
>
|
|
174
|
+
人気順
|
|
175
|
+
</button>
|
|
176
|
+
<a
|
|
177
|
+
href="/3"
|
|
178
|
+
onClick={[Function]}
|
|
179
|
+
>
|
|
180
|
+
<span
|
|
181
|
+
className="c1"
|
|
182
|
+
>
|
|
183
|
+
これはリンク
|
|
184
|
+
</span>
|
|
185
|
+
</a>
|
|
186
|
+
<button
|
|
187
|
+
className="c3"
|
|
188
|
+
onClick={[Function]}
|
|
189
|
+
>
|
|
190
|
+
これはボタン
|
|
191
|
+
</button>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
`;
|
|
195
|
+
|
|
196
|
+
exports[`Storyshots Sandbox/Filter Link 1`] = `
|
|
197
|
+
.c0 {
|
|
198
|
+
display: block;
|
|
199
|
+
outline: none;
|
|
200
|
+
border: none;
|
|
201
|
+
padding: 9px 24px;
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
line-height: 22px;
|
|
204
|
+
font-weight: bold;
|
|
205
|
+
border-radius: 2000px;
|
|
206
|
+
-webkit-transition: color 0.2s;
|
|
207
|
+
transition: color 0.2s;
|
|
208
|
+
color: #858585;
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
-webkit-user-select: none;
|
|
211
|
+
-moz-user-select: none;
|
|
212
|
+
-ms-user-select: none;
|
|
213
|
+
user-select: none;
|
|
214
|
+
background-color: transparent;
|
|
215
|
+
background-color: rgba(0,0,0,0.04);
|
|
216
|
+
color: #474747;
|
|
217
|
+
cursor: default;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.c0:hover {
|
|
221
|
+
color: #474747;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (max-width:743px) {
|
|
225
|
+
.c0 {
|
|
226
|
+
padding: 5px 16px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
<div
|
|
231
|
+
data-dark={false}
|
|
232
|
+
>
|
|
233
|
+
<span
|
|
234
|
+
className="c0"
|
|
235
|
+
>
|
|
236
|
+
Label
|
|
237
|
+
</span>
|
|
238
|
+
</div>
|
|
239
|
+
`;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Storyshots Sandbox/HintText Default 1`] = `
|
|
4
|
+
.c2 {
|
|
5
|
+
stroke: none;
|
|
6
|
+
fill: currentColor;
|
|
7
|
+
width: 16px;
|
|
8
|
+
height: 16px;
|
|
9
|
+
line-height: 0;
|
|
10
|
+
font-size: 0;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.c3 {
|
|
15
|
+
fill: #ffffff;
|
|
16
|
+
fill-rule: evenodd;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.c0 {
|
|
20
|
+
background-color: var(--charcoal-surface3);
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
padding-top: 16px;
|
|
23
|
+
padding-bottom: 16px;
|
|
24
|
+
padding-right: 16px;
|
|
25
|
+
padding-left: 16px;
|
|
26
|
+
display: -webkit-box;
|
|
27
|
+
display: -webkit-flex;
|
|
28
|
+
display: -ms-flexbox;
|
|
29
|
+
display: flex;
|
|
30
|
+
-webkit-align-items: flex-start;
|
|
31
|
+
-webkit-box-align: flex-start;
|
|
32
|
+
-ms-flex-align: flex-start;
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.c1 {
|
|
37
|
+
display: -webkit-box;
|
|
38
|
+
display: -webkit-flex;
|
|
39
|
+
display: -ms-flexbox;
|
|
40
|
+
display: flex;
|
|
41
|
+
-webkit-align-items: center;
|
|
42
|
+
-webkit-box-align: center;
|
|
43
|
+
-ms-flex-align: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
color: #adadad;
|
|
46
|
+
height: 22px;
|
|
47
|
+
margin: -4px 4px -4px 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.c4 {
|
|
51
|
+
color: var(--charcoal-text2);
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
line-height: 22px;
|
|
54
|
+
display: flow-root;
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.c4::before {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 0;
|
|
61
|
+
height: 0;
|
|
62
|
+
content: '';
|
|
63
|
+
margin-top: -4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.c4::after {
|
|
67
|
+
display: block;
|
|
68
|
+
width: 0;
|
|
69
|
+
height: 0;
|
|
70
|
+
content: '';
|
|
71
|
+
margin-bottom: -4px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (max-width:743px) {
|
|
75
|
+
.c0 {
|
|
76
|
+
padding-top: 16px;
|
|
77
|
+
padding-bottom: 16px;
|
|
78
|
+
padding-right: 16px;
|
|
79
|
+
padding-left: 16px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
<div
|
|
84
|
+
data-dark={false}
|
|
85
|
+
>
|
|
86
|
+
<div
|
|
87
|
+
className="c0"
|
|
88
|
+
default={
|
|
89
|
+
Object {
|
|
90
|
+
"horizontal": 16,
|
|
91
|
+
"vertical": 16,
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
>
|
|
95
|
+
<div
|
|
96
|
+
className="c1"
|
|
97
|
+
>
|
|
98
|
+
<svg
|
|
99
|
+
className="c2"
|
|
100
|
+
size={16}
|
|
101
|
+
viewBox="0 0 16 16"
|
|
102
|
+
>
|
|
103
|
+
<path
|
|
104
|
+
d="M8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z"
|
|
105
|
+
/>
|
|
106
|
+
<path
|
|
107
|
+
className="c3"
|
|
108
|
+
d="M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 6.25C8.69036 6.25 9.25 5.69036 9.25 5C9.25 4.30964 8.69036 3.75 8 3.75C7.30964 3.75 6.75 4.30964 6.75 5C6.75 5.69036 7.30964 6.25 8 6.25ZM7 7.75V11.25C7 11.8023 7.44772 12.25 8 12.25C8.55228 12.25 9 11.8023 9 11.25V7.75C9 7.19772 8.55228 6.75 8 6.75C7.44772 6.75 7 7.19772 7 7.75Z"
|
|
109
|
+
/>
|
|
110
|
+
</svg>
|
|
111
|
+
</div>
|
|
112
|
+
<p
|
|
113
|
+
className="c4"
|
|
114
|
+
>
|
|
115
|
+
ヒントテキストだよおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおお
|
|
116
|
+
</p>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
`;
|