@charcoal-ui/styled 3.9.0 → 3.10.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/index.cjs.js +177 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +174 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.story.d.ts +0 -8
- package/dist/index.story.d.ts.map +1 -1
- package/dist/index.test.d.ts +5 -0
- package/dist/index.test.d.ts.map +1 -1
- package/dist/storyHelper.d.ts +2 -1
- package/dist/storyHelper.d.ts.map +1 -1
- package/dist/styles/assertiveRingCss.d.ts +2 -0
- package/dist/styles/assertiveRingCss.d.ts.map +1 -0
- package/dist/styles/disabledCss.d.ts +2 -0
- package/dist/styles/disabledCss.d.ts.map +1 -0
- package/dist/utils/CharcoalStyledTheme.d.ts +35 -0
- package/dist/utils/CharcoalStyledTheme.d.ts.map +1 -0
- package/dist/utils/addThemeUtils.d.ts +8 -0
- package/dist/utils/addThemeUtils.d.ts.map +1 -0
- package/dist/utils/gap.d.ts +7 -0
- package/dist/utils/gap.d.ts.map +1 -0
- package/dist/utils/helpers/SpacingType.d.ts +3 -0
- package/dist/utils/helpers/SpacingType.d.ts.map +1 -0
- package/dist/utils/helpers/pxIfNum.d.ts +2 -0
- package/dist/utils/helpers/pxIfNum.d.ts.map +1 -0
- package/dist/utils/margin.d.ts +11 -0
- package/dist/utils/margin.d.ts.map +1 -0
- package/dist/utils/padding.d.ts +11 -0
- package/dist/utils/padding.d.ts.map +1 -0
- package/dist/utils/typographyCss.d.ts +2 -0
- package/dist/utils/typographyCss.d.ts.map +1 -0
- package/package.json +8 -6
- package/src/__snapshots__/index.story.storyshot +88 -691
- package/src/__snapshots__/index.test.tsx.snap +177 -664
- package/src/index.story.tsx +81 -272
- package/src/index.test.tsx +55 -5
- package/src/index.ts +12 -1
- package/src/storyHelper.ts +8 -5
- package/src/styles/assertiveRingCss.ts +5 -0
- package/src/styles/disabledCss.ts +9 -0
- package/src/themeUtils.mdx +44 -0
- package/src/utils/CharcoalStyledTheme.ts +47 -0
- package/src/utils/addThemeUtils.ts +52 -0
- package/src/utils/gap.ts +28 -0
- package/src/utils/helpers/SpacingType.ts +3 -0
- package/src/utils/helpers/pxIfNum.ts +5 -0
- package/src/utils/margin.ts +58 -0
- package/src/utils/padding.ts +58 -0
- package/src/utils/typographyCss.ts +39 -0
|
@@ -1,293 +1,36 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Storybook Tests styled Example 1`] = `
|
|
4
|
-
.c1 {
|
|
5
|
-
background-color: var(--charcoal-surface3);
|
|
6
|
-
color: var(--charcoal-text4);
|
|
7
|
-
font-size: 32px;
|
|
8
|
-
line-height: 40px;
|
|
9
|
-
font-family: monospace;
|
|
10
|
-
display: flow-root;
|
|
11
|
-
margin-top: 24px;
|
|
12
|
-
margin-bottom: 24px;
|
|
13
|
-
padding-top: 64px;
|
|
14
|
-
padding-left: 64px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.c1::before {
|
|
18
|
-
display: block;
|
|
19
|
-
width: 0;
|
|
20
|
-
height: 0;
|
|
21
|
-
content: '';
|
|
22
|
-
margin-top: -4px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.c1::after {
|
|
26
|
-
display: block;
|
|
27
|
-
width: 0;
|
|
28
|
-
height: 0;
|
|
29
|
-
content: '';
|
|
30
|
-
margin-bottom: -4px;
|
|
31
|
-
}
|
|
32
|
-
|
|
3
|
+
exports[`Storybook Tests styled/example Example 1`] = `
|
|
33
4
|
.c0 {
|
|
34
|
-
|
|
35
|
-
color:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.c2 {
|
|
48
|
-
background-color: var(--charcoal-surface2);
|
|
49
|
-
padding-top: 40px;
|
|
50
|
-
padding-bottom: 40px;
|
|
51
|
-
padding-right: 40px;
|
|
52
|
-
padding-left: 40px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.c3 {
|
|
56
|
-
background-color: var(--charcoal-surface4);
|
|
57
|
-
color: var(--charcoal-text5);
|
|
58
|
-
font-size: 20px;
|
|
59
|
-
line-height: 28px;
|
|
60
|
-
font-weight: bold;
|
|
61
|
-
display: flow-root;
|
|
62
|
-
height: 40px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.c3::before {
|
|
66
|
-
display: block;
|
|
67
|
-
width: 0;
|
|
68
|
-
height: 0;
|
|
69
|
-
content: '';
|
|
70
|
-
margin-top: -4px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.c3::after {
|
|
74
|
-
display: block;
|
|
75
|
-
width: 0;
|
|
76
|
-
height: 0;
|
|
77
|
-
content: '';
|
|
78
|
-
margin-bottom: -4px;
|
|
5
|
+
gap: 40px;
|
|
6
|
+
color: #1f1f1f;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
display: -webkit-flex;
|
|
9
|
+
display: -ms-flexbox;
|
|
10
|
+
display: flex;
|
|
11
|
+
-webkit-flex-direction: column;
|
|
12
|
+
-ms-flex-direction: column;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas, 'Liberation Mono','Courier New',monospace;
|
|
79
16
|
}
|
|
80
17
|
|
|
81
18
|
.c4 {
|
|
82
|
-
|
|
83
|
-
color: var(--charcoal-text1);
|
|
84
|
-
font-size: 16px;
|
|
85
|
-
line-height: 24px;
|
|
86
|
-
display: flow-root;
|
|
87
|
-
width: 392px;
|
|
88
|
-
margin-top: 24px;
|
|
89
|
-
margin-bottom: 24px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.c4::before {
|
|
93
|
-
display: block;
|
|
94
|
-
width: 0;
|
|
95
|
-
height: 0;
|
|
96
|
-
content: '';
|
|
97
|
-
margin-top: -4px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.c4::after {
|
|
101
|
-
display: block;
|
|
102
|
-
width: 0;
|
|
103
|
-
height: 0;
|
|
104
|
-
content: '';
|
|
105
|
-
margin-bottom: -4px;
|
|
19
|
+
margin: 0;
|
|
106
20
|
}
|
|
107
21
|
|
|
108
22
|
.c5 {
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.c6 {
|
|
113
|
-
background-color: var(--charcoal-surface4);
|
|
114
|
-
color: var(--charcoal-text5);
|
|
115
|
-
font-size: 20px;
|
|
116
|
-
line-height: 28px;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
margin-top: 64px;
|
|
119
|
-
margin-bottom: 24px;
|
|
120
|
-
padding-top: 60px;
|
|
121
|
-
padding-bottom: 60px;
|
|
122
|
-
padding-right: 64px;
|
|
123
|
-
padding-left: 64px;
|
|
124
|
-
-webkit-transition: 0.2s color,0.2s background-color;
|
|
125
|
-
transition: 0.2s color,0.2s background-color;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.c6:hover:not(:disabled):not([aria-disabled]),
|
|
129
|
-
.c6:hover[aria-disabled=false] {
|
|
130
|
-
background-color: var(--charcoal-surface4-hover);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.c6:active:not(:disabled):not([aria-disabled]),
|
|
134
|
-
.c6:active[aria-disabled=false] {
|
|
135
|
-
background-color: var(--charcoal-surface4-press);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.c6:hover:not(:disabled):not([aria-disabled]),
|
|
139
|
-
.c6:hover[aria-disabled=false] {
|
|
140
|
-
color: var(--charcoal-text5-hover);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.c6:active:not(:disabled):not([aria-disabled]),
|
|
144
|
-
.c6:active[aria-disabled=false] {
|
|
145
|
-
color: var(--charcoal-text5-press);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.c8 {
|
|
149
|
-
background-color: var(--charcoal-surface3);
|
|
150
|
-
font-size: 16px;
|
|
151
|
-
line-height: 24px;
|
|
152
|
-
font-weight: bold;
|
|
153
|
-
display: flow-root;
|
|
154
|
-
margin-top: 24px;
|
|
155
|
-
margin-bottom: 24px;
|
|
156
|
-
padding-top: 24px;
|
|
157
|
-
padding-bottom: 24px;
|
|
158
|
-
padding-right: 24px;
|
|
159
|
-
padding-left: 24px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.c8::before {
|
|
163
|
-
display: block;
|
|
164
|
-
width: 0;
|
|
165
|
-
height: 0;
|
|
166
|
-
content: '';
|
|
167
|
-
margin-top: -4px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.c8::after {
|
|
171
|
-
display: block;
|
|
172
|
-
width: 0;
|
|
173
|
-
height: 0;
|
|
174
|
-
content: '';
|
|
175
|
-
margin-bottom: -4px;
|
|
23
|
+
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas, 'Liberation Mono','Courier New',monospace;
|
|
176
24
|
}
|
|
177
25
|
|
|
178
|
-
.
|
|
179
|
-
background-color: var(--charcoal-surface3);
|
|
180
|
-
font-size: 16px;
|
|
181
|
-
line-height: 24px;
|
|
182
|
-
font-weight: bold;
|
|
183
|
-
padding-top: 20px;
|
|
184
|
-
padding-bottom: 20px;
|
|
185
|
-
padding-right: 24px;
|
|
186
|
-
padding-left: 24px;
|
|
187
|
-
margin-top: 24px;
|
|
188
|
-
margin-bottom: 24px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.c9 {
|
|
192
|
-
background-color: var(--charcoal-surface3);
|
|
193
|
-
font-size: 16px;
|
|
194
|
-
line-height: 24px;
|
|
195
|
-
font-weight: bold;
|
|
196
|
-
padding-top: 24px;
|
|
197
|
-
padding-bottom: 24px;
|
|
198
|
-
padding-right: 24px;
|
|
199
|
-
padding-left: 24px;
|
|
200
|
-
margin-top: 24px;
|
|
201
|
-
margin-bottom: 24px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.c10 {
|
|
205
|
-
background-color: var(--charcoal-surface3);
|
|
206
|
-
color: var(--charcoal-text2);
|
|
207
|
-
font-size: 20px;
|
|
208
|
-
line-height: 28px;
|
|
209
|
-
font-weight: bold;
|
|
210
|
-
display: flow-root;
|
|
211
|
-
width: 288px;
|
|
212
|
-
height: 64px;
|
|
213
|
-
margin-top: 24px;
|
|
214
|
-
margin-bottom: 24px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.c10::before {
|
|
218
|
-
display: block;
|
|
219
|
-
width: 0;
|
|
220
|
-
height: 0;
|
|
221
|
-
content: '';
|
|
222
|
-
margin-top: -4px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.c10::after {
|
|
226
|
-
display: block;
|
|
227
|
-
width: 0;
|
|
228
|
-
height: 0;
|
|
229
|
-
content: '';
|
|
230
|
-
margin-bottom: -4px;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.c11 {
|
|
234
|
-
display: grid;
|
|
235
|
-
grid-auto-flow: column;
|
|
236
|
-
-webkit-box-pack: start;
|
|
237
|
-
-webkit-justify-content: start;
|
|
238
|
-
-ms-flex-pack: start;
|
|
239
|
-
justify-content: start;
|
|
240
|
-
gap: 16px;
|
|
241
|
-
margin-top: 24px;
|
|
242
|
-
margin-bottom: 24px;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.c12 {
|
|
246
|
-
font: inherit;
|
|
247
|
-
-webkit-appearance: none;
|
|
248
|
-
-moz-appearance: none;
|
|
249
|
-
appearance: none;
|
|
250
|
-
border-style: none;
|
|
251
|
-
cursor: pointer;
|
|
252
|
-
background-color: var(--charcoal-brand);
|
|
253
|
-
color: var(--charcoal-text5);
|
|
26
|
+
.c2 {
|
|
254
27
|
font-size: 14px;
|
|
255
28
|
line-height: 22px;
|
|
256
|
-
font-weight: bold;
|
|
257
29
|
display: flow-root;
|
|
258
|
-
|
|
259
|
-
padding-right: 24px;
|
|
260
|
-
padding-left: 24px;
|
|
261
|
-
border-radius: 999999px;
|
|
262
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
263
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.c12:focus {
|
|
267
|
-
outline: none;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.c12:hover:not(:disabled):not([aria-disabled]),
|
|
271
|
-
.c12:hover[aria-disabled=false] {
|
|
272
|
-
background-color: var(--charcoal-brand-hover);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.c12:active:not(:disabled):not([aria-disabled]),
|
|
276
|
-
.c12:active[aria-disabled=false] {
|
|
277
|
-
background-color: var(--charcoal-brand-press);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.c12:hover:not(:disabled):not([aria-disabled]),
|
|
281
|
-
.c12:hover[aria-disabled=false] {
|
|
282
|
-
color: var(--charcoal-text5-hover);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.c12:active:not(:disabled):not([aria-disabled]),
|
|
286
|
-
.c12:active[aria-disabled=false] {
|
|
287
|
-
color: var(--charcoal-text5-press);
|
|
30
|
+
font-weight: bold;
|
|
288
31
|
}
|
|
289
32
|
|
|
290
|
-
.
|
|
33
|
+
.c2::before {
|
|
291
34
|
display: block;
|
|
292
35
|
width: 0;
|
|
293
36
|
height: 0;
|
|
@@ -295,7 +38,7 @@ exports[`Storybook Tests styled Example 1`] = `
|
|
|
295
38
|
margin-top: -4px;
|
|
296
39
|
}
|
|
297
40
|
|
|
298
|
-
.
|
|
41
|
+
.c2::after {
|
|
299
42
|
display: block;
|
|
300
43
|
width: 0;
|
|
301
44
|
height: 0;
|
|
@@ -303,474 +46,128 @@ exports[`Storybook Tests styled Example 1`] = `
|
|
|
303
46
|
margin-bottom: -4px;
|
|
304
47
|
}
|
|
305
48
|
|
|
306
|
-
.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
.c12[aria-disabled=false]:focus,
|
|
313
|
-
.c12:not(:disabled):not([aria-disabled]):active,
|
|
314
|
-
.c12[aria-disabled=false]:active {
|
|
315
|
-
outline: none;
|
|
316
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
320
|
-
.c12[aria-disabled=false]:focus:not(:focus-visible),
|
|
321
|
-
.c12:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
322
|
-
.c12[aria-disabled=false]:active:not(:focus-visible) {
|
|
323
|
-
outline: none;
|
|
49
|
+
.c3 {
|
|
50
|
+
color: #1f1f1f;
|
|
51
|
+
background-color: #f5f5f5;
|
|
52
|
+
border: 1px solid rgba(0,0,0,0.08);
|
|
53
|
+
margin: 16px auto;
|
|
54
|
+
padding: 4px 8px 16px 24px;
|
|
324
55
|
}
|
|
325
56
|
|
|
326
|
-
.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
57
|
+
.c1 {
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
display: -webkit-box;
|
|
60
|
+
display: -webkit-flex;
|
|
61
|
+
display: -ms-flexbox;
|
|
62
|
+
display: flex;
|
|
63
|
+
background-color: #ffffff;
|
|
64
|
+
border: 1px solid rgba(0,0,0,0.08);
|
|
65
|
+
overflow-x: auto;
|
|
66
|
+
overflow-y: hidden;
|
|
330
67
|
}
|
|
331
68
|
|
|
332
|
-
.
|
|
333
|
-
|
|
334
|
-
|
|
69
|
+
.c6 {
|
|
70
|
+
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
71
|
+
margin: 8px;
|
|
72
|
+
-webkit-transition: 0.2s box-shadow;
|
|
73
|
+
transition: 0.2s box-shadow;
|
|
335
74
|
}
|
|
336
75
|
|
|
337
|
-
.
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
76
|
+
.c7 {
|
|
77
|
+
padding: 0px 16px;
|
|
78
|
+
margin: 16px;
|
|
79
|
+
-webkit-transition: 0.2s box-shadow;
|
|
80
|
+
transition: 0.2s box-shadow;
|
|
81
|
+
cursor: pointer;
|
|
343
82
|
height: 40px;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
padding-left: 8px;
|
|
349
|
-
border-radius: 4px;
|
|
350
|
-
background-color: var(--charcoal-surface3);
|
|
351
|
-
color: var(--charcoal-text2);
|
|
352
|
-
font-size: 14px;
|
|
353
|
-
line-height: 22px;
|
|
354
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
355
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
83
|
+
background-color: #0096fa;
|
|
84
|
+
color: #ffffff;
|
|
85
|
+
border: none;
|
|
86
|
+
border-radius: 9999px;
|
|
356
87
|
}
|
|
357
88
|
|
|
358
|
-
.
|
|
359
|
-
outline: none;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.c13:hover:not(:disabled):not([aria-disabled]),
|
|
363
|
-
.c13:hover[aria-disabled=false] {
|
|
364
|
-
background-color: var(--charcoal-surface3-hover);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.c13:disabled,
|
|
368
|
-
.c13[aria-disabled]:not([aria-disabled=false]) {
|
|
369
|
-
opacity: 0.32;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.c13:not(:disabled):not([aria-disabled]):focus,
|
|
373
|
-
.c13[aria-disabled=false]:focus,
|
|
374
|
-
.c13:not(:disabled):not([aria-disabled]):active,
|
|
375
|
-
.c13[aria-disabled=false]:active {
|
|
89
|
+
.c7:focus {
|
|
376
90
|
outline: none;
|
|
377
91
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
378
92
|
}
|
|
379
93
|
|
|
380
|
-
.
|
|
381
|
-
|
|
382
|
-
.c13:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
383
|
-
.c13[aria-disabled=false]:active:not(:focus-visible) {
|
|
384
|
-
outline: none;
|
|
94
|
+
.c7:focus:not(:focus-visible) {
|
|
95
|
+
box-shadow: none;
|
|
385
96
|
}
|
|
386
97
|
|
|
387
|
-
.
|
|
388
|
-
.c13[aria-disabled=false]:focus-visible {
|
|
389
|
-
outline: none;
|
|
98
|
+
.c7:focus-visible {
|
|
390
99
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
391
100
|
}
|
|
392
101
|
|
|
393
|
-
.
|
|
394
|
-
|
|
395
|
-
-webkit-appearance: none;
|
|
396
|
-
-moz-appearance: none;
|
|
397
|
-
appearance: none;
|
|
398
|
-
border-style: none;
|
|
399
|
-
height: 40px;
|
|
400
|
-
width: 184px;
|
|
401
|
-
padding-top: 0px;
|
|
402
|
-
padding-bottom: 0px;
|
|
403
|
-
padding-right: 8px;
|
|
404
|
-
padding-left: 8px;
|
|
405
|
-
border-radius: 4px;
|
|
406
|
-
background-color: var(--charcoal-surface3);
|
|
407
|
-
color: var(--charcoal-text2);
|
|
408
|
-
font-size: 14px;
|
|
409
|
-
line-height: 22px;
|
|
410
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
411
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.c14:focus {
|
|
415
|
-
outline: none;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.c14:hover:not(:disabled):not([aria-disabled]),
|
|
419
|
-
.c14:hover[aria-disabled=false] {
|
|
420
|
-
background-color: var(--charcoal-surface3-hover);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.c14:disabled,
|
|
424
|
-
.c14[aria-disabled]:not([aria-disabled=false]) {
|
|
102
|
+
.c7:disabled,
|
|
103
|
+
.c7 [aria-disabled]:not([aria-disabled='false']) {
|
|
425
104
|
opacity: 0.32;
|
|
105
|
+
cursor: default;
|
|
426
106
|
}
|
|
427
107
|
|
|
428
|
-
.
|
|
429
|
-
|
|
430
|
-
.c14:not(:disabled):not([aria-disabled]):active,
|
|
431
|
-
.c14[aria-disabled=false]:active {
|
|
432
|
-
outline: none;
|
|
433
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.c14:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
437
|
-
.c14[aria-disabled=false]:focus:not(:focus-visible),
|
|
438
|
-
.c14:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
439
|
-
.c14[aria-disabled=false]:active:not(:focus-visible) {
|
|
440
|
-
outline: none;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.c14:not(:disabled):not([aria-disabled]):focus-visible,
|
|
444
|
-
.c14[aria-disabled=false]:focus-visible {
|
|
445
|
-
outline: none;
|
|
446
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.c14.c14:not(:disabled):not([aria-disabled]),
|
|
450
|
-
.c14.c14[aria-disabled=false] {
|
|
451
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.c15 {
|
|
455
|
-
background-color: var(--charcoal-background1);
|
|
456
|
-
color: var(--charcoal-text2);
|
|
457
|
-
font-size: 14px;
|
|
458
|
-
line-height: 22px;
|
|
459
|
-
width: 392px;
|
|
460
|
-
margin-top: 40px;
|
|
461
|
-
margin-bottom: 40px;
|
|
462
|
-
padding-top: 20px;
|
|
463
|
-
padding-bottom: 20px;
|
|
464
|
-
padding-right: 24px;
|
|
465
|
-
padding-left: 24px;
|
|
466
|
-
border: solid 1px var(--charcoal-border-default);
|
|
467
|
-
border-radius: 8px;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.c16 {
|
|
471
|
-
position: relative;
|
|
472
|
-
z-index: 0;
|
|
473
|
-
overflow: hidden;
|
|
474
|
-
color: var(--charcoal-text5);
|
|
475
|
-
width: 184px;
|
|
476
|
-
padding-top: 36px;
|
|
477
|
-
padding-bottom: 36px;
|
|
478
|
-
padding-right: 40px;
|
|
479
|
-
padding-left: 40px;
|
|
480
|
-
margin-top: 24px;
|
|
481
|
-
margin-bottom: 24px;
|
|
482
|
-
font-size: 20px;
|
|
483
|
-
line-height: 28px;
|
|
484
|
-
font-weight: bold;
|
|
485
|
-
border-radius: 8px;
|
|
486
|
-
-webkit-transition: 0.2s color;
|
|
487
|
-
transition: 0.2s color;
|
|
488
|
-
text-align: center;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.c16::before {
|
|
492
|
-
z-index: -1;
|
|
493
|
-
content: '';
|
|
494
|
-
display: block;
|
|
495
|
-
position: absolute;
|
|
496
|
-
width: 100%;
|
|
497
|
-
height: 100%;
|
|
498
|
-
top: 0;
|
|
499
|
-
left: 0;
|
|
500
|
-
-webkit-transition: 0.2s background-color;
|
|
501
|
-
transition: 0.2s background-color;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.c16::after {
|
|
505
|
-
z-index: -2;
|
|
506
|
-
content: '';
|
|
507
|
-
display: block;
|
|
508
|
-
position: absolute;
|
|
509
|
-
width: 100%;
|
|
510
|
-
height: 100%;
|
|
511
|
-
top: 0;
|
|
512
|
-
left: 0;
|
|
513
|
-
background-color: #d1ff1a;
|
|
514
|
-
background-image: linear-gradient(to right,#d1ff1a 0%,#1ad1ff 100%);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
.c16:hover:not(:disabled):not([aria-disabled])::before,
|
|
518
|
-
.c16:hover[aria-disabled=false]::before {
|
|
519
|
-
background-color: rgba(0,0,0,0.04);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.c16:active:not(:disabled):not([aria-disabled])::before,
|
|
523
|
-
.c16:active[aria-disabled=false]::before {
|
|
524
|
-
background-color: rgba(0,0,0,0.16);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.c16:hover:not(:disabled):not([aria-disabled]),
|
|
528
|
-
.c16:hover[aria-disabled=false] {
|
|
529
|
-
color: var(--charcoal-text5-hover);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.c16:active:not(:disabled):not([aria-disabled]),
|
|
533
|
-
.c16:active[aria-disabled=false] {
|
|
534
|
-
color: var(--charcoal-text5-press);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.c17 {
|
|
538
|
-
background-color: #d1ff1a;
|
|
539
|
-
background-image: linear-gradient(to right,#d1ff1a 0%,#1ad1ff 100%);
|
|
540
|
-
color: var(--charcoal-text5);
|
|
541
|
-
width: 184px;
|
|
542
|
-
margin-top: 24px;
|
|
543
|
-
margin-bottom: 24px;
|
|
544
|
-
font-size: 20px;
|
|
545
|
-
line-height: 28px;
|
|
546
|
-
font-weight: bold;
|
|
547
|
-
display: flow-root;
|
|
548
|
-
border-radius: 8px;
|
|
549
|
-
-webkit-transition: 0.2s color;
|
|
550
|
-
transition: 0.2s color;
|
|
551
|
-
padding-top: 40px;
|
|
552
|
-
padding-bottom: 40px;
|
|
553
|
-
padding-right: 40px;
|
|
554
|
-
padding-left: 40px;
|
|
555
|
-
text-align: center;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.c17:hover:not(:disabled):not([aria-disabled]),
|
|
559
|
-
.c17:hover[aria-disabled=false] {
|
|
560
|
-
background-color: #c9f519;
|
|
561
|
-
background-image: linear-gradient(to right,#c9f519 0%,#19c9f5 100%);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
.c17:active:not(:disabled):not([aria-disabled]),
|
|
565
|
-
.c17:active[aria-disabled=false] {
|
|
566
|
-
background-color: #b0d616;
|
|
567
|
-
background-image: linear-gradient(to right,#b0d616 0%,#16b0d6 100%);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.c17:hover:not(:disabled):not([aria-disabled]),
|
|
571
|
-
.c17:hover[aria-disabled=false] {
|
|
572
|
-
color: var(--charcoal-text5-hover);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.c17:active:not(:disabled):not([aria-disabled]),
|
|
576
|
-
.c17:active[aria-disabled=false] {
|
|
577
|
-
color: var(--charcoal-text5-press);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.c17::before {
|
|
581
|
-
display: block;
|
|
582
|
-
width: 0;
|
|
583
|
-
height: 0;
|
|
584
|
-
content: '';
|
|
585
|
-
margin-top: -4px;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.c17::after {
|
|
589
|
-
display: block;
|
|
590
|
-
width: 0;
|
|
591
|
-
height: 0;
|
|
592
|
-
content: '';
|
|
593
|
-
margin-bottom: -4px;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.c18 {
|
|
597
|
-
width: 288px;
|
|
598
|
-
margin-top: 24px;
|
|
599
|
-
margin-bottom: 24px;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.c19 {
|
|
603
|
-
display: inline-block;
|
|
604
|
-
width: 100%;
|
|
605
|
-
background-color: var(--charcoal-surface4);
|
|
606
|
-
color: var(--charcoal-text5);
|
|
607
|
-
padding-top: 16px;
|
|
608
|
-
padding-bottom: 16px;
|
|
609
|
-
padding-right: 16px;
|
|
610
|
-
padding-left: 16px;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.c20 {
|
|
614
|
-
--charcoal-text1: #ffff00;
|
|
615
|
-
--charcoal-text1-hover: #f5f500;
|
|
616
|
-
--charcoal-text1-press: #d6d600;
|
|
617
|
-
background-color: var(--charcoal-surface4);
|
|
618
|
-
color: var(--charcoal-text1);
|
|
108
|
+
.c7:not(:disabled):active {
|
|
109
|
+
background-color: var(--charcoal-brand-press);
|
|
619
110
|
}
|
|
620
111
|
|
|
621
112
|
<div
|
|
622
113
|
data-dark={false}
|
|
623
114
|
>
|
|
624
115
|
<div
|
|
625
|
-
className=""
|
|
116
|
+
className="c0"
|
|
626
117
|
>
|
|
627
|
-
<div
|
|
628
|
-
className="c0"
|
|
629
|
-
>
|
|
630
|
-
Sample
|
|
631
|
-
</div>
|
|
632
118
|
<div
|
|
633
119
|
className="c1"
|
|
634
120
|
>
|
|
635
|
-
|
|
121
|
+
<div
|
|
122
|
+
className="c2"
|
|
123
|
+
>
|
|
124
|
+
\${({ theme }) => theme.utils.typography(14, true)}
|
|
125
|
+
</div>
|
|
636
126
|
</div>
|
|
637
127
|
<div
|
|
638
|
-
className="
|
|
128
|
+
className="c1"
|
|
639
129
|
>
|
|
640
130
|
<div
|
|
641
131
|
className="c3"
|
|
642
132
|
>
|
|
643
|
-
|
|
133
|
+
<pre
|
|
134
|
+
className="c4"
|
|
135
|
+
>
|
|
136
|
+
<code
|
|
137
|
+
className="c5"
|
|
138
|
+
>
|
|
139
|
+
\${({ theme }) => [
|
|
140
|
+
theme.utils.margin(16, 'auto'),
|
|
141
|
+
theme.utils.padding(4, 8, 16, 24),
|
|
142
|
+
]}
|
|
143
|
+
</code>
|
|
144
|
+
</pre>
|
|
644
145
|
</div>
|
|
645
146
|
</div>
|
|
646
147
|
<div
|
|
647
|
-
className="
|
|
648
|
-
>
|
|
649
|
-
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem dolores, recusandae quidem mollitia eum non vel architecto possimus repudiandae quis molestias neque facilis rem dolorum voluptatem impedit nemo praesentium voluptas.
|
|
650
|
-
</div>
|
|
651
|
-
<div
|
|
652
|
-
className="c4 c5"
|
|
653
|
-
>
|
|
654
|
-
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem dolores, recusandae quidem mollitia eum non vel architecto possimus repudiandae quis molestias neque facilis rem dolorum voluptatem impedit nemo praesentium voluptas.
|
|
655
|
-
</div>
|
|
656
|
-
<div
|
|
657
|
-
className="c6"
|
|
658
|
-
>
|
|
659
|
-
With effects
|
|
660
|
-
</div>
|
|
661
|
-
<div
|
|
662
|
-
className="c7"
|
|
663
|
-
>
|
|
664
|
-
Without half-leading
|
|
665
|
-
</div>
|
|
666
|
-
<div
|
|
667
|
-
className="c8"
|
|
668
|
-
>
|
|
669
|
-
Without half-leading (No optimization)
|
|
670
|
-
</div>
|
|
671
|
-
<div
|
|
672
|
-
className="c9"
|
|
673
|
-
>
|
|
674
|
-
With half-leading
|
|
675
|
-
</div>
|
|
676
|
-
<div
|
|
677
|
-
className="c10"
|
|
148
|
+
className="c1"
|
|
678
149
|
>
|
|
679
|
-
|
|
150
|
+
<div
|
|
151
|
+
className="c6"
|
|
152
|
+
>
|
|
153
|
+
theme.utils.assertiveRingCss
|
|
154
|
+
</div>
|
|
680
155
|
</div>
|
|
681
156
|
<div
|
|
682
|
-
className="
|
|
157
|
+
className="c1"
|
|
683
158
|
>
|
|
684
159
|
<button
|
|
685
|
-
className="
|
|
160
|
+
className="c7"
|
|
686
161
|
>
|
|
687
|
-
|
|
162
|
+
theme.utils.focusVisibleFocusRingCss
|
|
688
163
|
</button>
|
|
689
164
|
<button
|
|
690
|
-
className="
|
|
165
|
+
className="c7"
|
|
691
166
|
disabled={true}
|
|
692
167
|
>
|
|
693
|
-
|
|
168
|
+
theme.utils.disabledCss
|
|
694
169
|
</button>
|
|
695
170
|
</div>
|
|
696
|
-
<div
|
|
697
|
-
className="c11"
|
|
698
|
-
>
|
|
699
|
-
<input
|
|
700
|
-
className="c13"
|
|
701
|
-
type="text"
|
|
702
|
-
value="text field"
|
|
703
|
-
/>
|
|
704
|
-
<input
|
|
705
|
-
className="c13"
|
|
706
|
-
disabled={true}
|
|
707
|
-
type="text"
|
|
708
|
-
value="disabled"
|
|
709
|
-
/>
|
|
710
|
-
<input
|
|
711
|
-
className="c14"
|
|
712
|
-
type="text"
|
|
713
|
-
value="invalid"
|
|
714
|
-
/>
|
|
715
|
-
</div>
|
|
716
|
-
<div
|
|
717
|
-
className="c15"
|
|
718
|
-
>
|
|
719
|
-
Border
|
|
720
|
-
</div>
|
|
721
|
-
<div
|
|
722
|
-
className="c16"
|
|
723
|
-
>
|
|
724
|
-
Gradient
|
|
725
|
-
</div>
|
|
726
|
-
<div
|
|
727
|
-
className="c17"
|
|
728
|
-
>
|
|
729
|
-
Gradient (Warning)
|
|
730
|
-
</div>
|
|
731
|
-
<div
|
|
732
|
-
css="
|
|
733
|
-
display: flex;
|
|
734
|
-
"
|
|
735
|
-
>
|
|
736
|
-
<div
|
|
737
|
-
css={[Function]}
|
|
738
|
-
>
|
|
739
|
-
Tailwind like
|
|
740
|
-
</div>
|
|
741
|
-
</div>
|
|
742
|
-
<div
|
|
743
|
-
className="c18"
|
|
744
|
-
>
|
|
745
|
-
<div
|
|
746
|
-
className="c19"
|
|
747
|
-
>
|
|
748
|
-
Full width
|
|
749
|
-
</div>
|
|
750
|
-
</div>
|
|
751
|
-
<div
|
|
752
|
-
className="c20"
|
|
753
|
-
>
|
|
754
|
-
This is actually text1 !
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
`;
|
|
759
|
-
|
|
760
|
-
exports[`Storybook Tests styled TailwindLike 1`] = `
|
|
761
|
-
<div
|
|
762
|
-
data-dark={false}
|
|
763
|
-
>
|
|
764
|
-
<div
|
|
765
|
-
css="
|
|
766
|
-
display: flex;
|
|
767
|
-
"
|
|
768
|
-
>
|
|
769
|
-
<div
|
|
770
|
-
css={[Function]}
|
|
771
|
-
>
|
|
772
|
-
Tailwind like
|
|
773
|
-
</div>
|
|
774
171
|
</div>
|
|
775
172
|
</div>
|
|
776
173
|
`;
|