@charcoal-ui/react 3.10.1-beta.0 → 3.10.1
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/index.story.d.ts +4 -9
- package/dist/components/Button/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +7 -7
- package/src/components/Button/__snapshots__/index.story.storyshot +91 -939
- package/src/components/Button/index.story.tsx +14 -161
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +15 -0
- package/src/components/DropdownSelector/index.tsx +19 -4
- package/src/components/Modal/__snapshots__/index.story.storyshot +2 -0
|
@@ -1,115 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Storybook Tests Button Active 1`] = `
|
|
4
|
-
.c0 {
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
-webkit-appearance: none;
|
|
7
|
-
-moz-appearance: none;
|
|
8
|
-
appearance: none;
|
|
9
|
-
background: transparent;
|
|
10
|
-
padding: 0;
|
|
11
|
-
border-style: none;
|
|
12
|
-
outline: none;
|
|
13
|
-
color: inherit;
|
|
14
|
-
text-rendering: inherit;
|
|
15
|
-
-webkit-letter-spacing: inherit;
|
|
16
|
-
-moz-letter-spacing: inherit;
|
|
17
|
-
-ms-letter-spacing: inherit;
|
|
18
|
-
letter-spacing: inherit;
|
|
19
|
-
word-spacing: inherit;
|
|
20
|
-
-webkit-text-decoration: none;
|
|
21
|
-
text-decoration: none;
|
|
22
|
-
font: inherit;
|
|
23
|
-
margin: 0;
|
|
24
|
-
overflow: visible;
|
|
25
|
-
text-transform: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.c0:disabled,
|
|
29
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
30
|
-
cursor: default;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.c0:focus {
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.c0::-moz-focus-inner {
|
|
38
|
-
border-style: none;
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.c1 {
|
|
43
|
-
width: -webkit-min-content;
|
|
44
|
-
width: -moz-min-content;
|
|
45
|
-
width: min-content;
|
|
46
|
-
display: inline-grid;
|
|
47
|
-
-webkit-align-items: center;
|
|
48
|
-
-webkit-box-align: center;
|
|
49
|
-
-ms-flex-align: center;
|
|
50
|
-
align-items: center;
|
|
51
|
-
-webkit-box-pack: center;
|
|
52
|
-
-webkit-justify-content: center;
|
|
53
|
-
-ms-flex-pack: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
-webkit-user-select: none;
|
|
57
|
-
-moz-user-select: none;
|
|
58
|
-
-ms-user-select: none;
|
|
59
|
-
user-select: none;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
border-radius: 999999px;
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
line-height: 22px;
|
|
64
|
-
font-weight: bold;
|
|
65
|
-
padding-right: 24px;
|
|
66
|
-
padding-left: 24px;
|
|
67
|
-
color: var(--charcoal-text2);
|
|
68
|
-
background-color: var(--charcoal-surface3);
|
|
69
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
70
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
71
|
-
height: 40px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.c1:not(:disabled):not([aria-disabled]),
|
|
75
|
-
.c1[aria-disabled='false'] {
|
|
76
|
-
color: var(--charcoal-text2-press);
|
|
77
|
-
background-color: var(--charcoal-surface3-press);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
81
|
-
.c1[aria-disabled='false']:focus {
|
|
82
|
-
outline: none;
|
|
83
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
87
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
88
|
-
box-shadow: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
92
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
93
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.c1:disabled,
|
|
97
|
-
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
98
|
-
opacity: 0.32;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
<div
|
|
102
|
-
data-dark={false}
|
|
103
|
-
>
|
|
104
|
-
<button
|
|
105
|
-
className="c0 c1"
|
|
106
|
-
disabled={false}
|
|
107
|
-
>
|
|
108
|
-
Button
|
|
109
|
-
</button>
|
|
110
|
-
</div>
|
|
111
|
-
`;
|
|
112
|
-
|
|
113
3
|
exports[`Storybook Tests Button Danger 1`] = `
|
|
114
4
|
.c0 {
|
|
115
5
|
cursor: pointer;
|
|
@@ -206,471 +96,7 @@ exports[`Storybook Tests Button Danger 1`] = `
|
|
|
206
96
|
.c1:not(:disabled):not([aria-disabled]):active,
|
|
207
97
|
.c1[aria-disabled='false']:active {
|
|
208
98
|
color: var(--charcoal-text5-press);
|
|
209
|
-
background-color: var(--charcoal-assertive-press);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.c1:disabled,
|
|
213
|
-
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
214
|
-
opacity: 0.32;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
<div
|
|
218
|
-
data-dark={false}
|
|
219
|
-
>
|
|
220
|
-
<button
|
|
221
|
-
className="c0 c1"
|
|
222
|
-
disabled={false}
|
|
223
|
-
>
|
|
224
|
-
Button
|
|
225
|
-
</button>
|
|
226
|
-
</div>
|
|
227
|
-
`;
|
|
228
|
-
|
|
229
|
-
exports[`Storybook Tests Button Default 1`] = `
|
|
230
|
-
.c0 {
|
|
231
|
-
cursor: pointer;
|
|
232
|
-
-webkit-appearance: none;
|
|
233
|
-
-moz-appearance: none;
|
|
234
|
-
appearance: none;
|
|
235
|
-
background: transparent;
|
|
236
|
-
padding: 0;
|
|
237
|
-
border-style: none;
|
|
238
|
-
outline: none;
|
|
239
|
-
color: inherit;
|
|
240
|
-
text-rendering: inherit;
|
|
241
|
-
-webkit-letter-spacing: inherit;
|
|
242
|
-
-moz-letter-spacing: inherit;
|
|
243
|
-
-ms-letter-spacing: inherit;
|
|
244
|
-
letter-spacing: inherit;
|
|
245
|
-
word-spacing: inherit;
|
|
246
|
-
-webkit-text-decoration: none;
|
|
247
|
-
text-decoration: none;
|
|
248
|
-
font: inherit;
|
|
249
|
-
margin: 0;
|
|
250
|
-
overflow: visible;
|
|
251
|
-
text-transform: none;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.c0:disabled,
|
|
255
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
256
|
-
cursor: default;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.c0:focus {
|
|
260
|
-
outline: none;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.c0::-moz-focus-inner {
|
|
264
|
-
border-style: none;
|
|
265
|
-
padding: 0;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.c1 {
|
|
269
|
-
width: -webkit-min-content;
|
|
270
|
-
width: -moz-min-content;
|
|
271
|
-
width: min-content;
|
|
272
|
-
display: inline-grid;
|
|
273
|
-
-webkit-align-items: center;
|
|
274
|
-
-webkit-box-align: center;
|
|
275
|
-
-ms-flex-align: center;
|
|
276
|
-
align-items: center;
|
|
277
|
-
-webkit-box-pack: center;
|
|
278
|
-
-webkit-justify-content: center;
|
|
279
|
-
-ms-flex-pack: center;
|
|
280
|
-
justify-content: center;
|
|
281
|
-
cursor: pointer;
|
|
282
|
-
-webkit-user-select: none;
|
|
283
|
-
-moz-user-select: none;
|
|
284
|
-
-ms-user-select: none;
|
|
285
|
-
user-select: none;
|
|
286
|
-
white-space: nowrap;
|
|
287
|
-
border-radius: 999999px;
|
|
288
|
-
font-size: 14px;
|
|
289
|
-
line-height: 22px;
|
|
290
|
-
font-weight: bold;
|
|
291
|
-
padding-right: 24px;
|
|
292
|
-
padding-left: 24px;
|
|
293
|
-
color: var(--charcoal-text2);
|
|
294
|
-
background-color: var(--charcoal-surface3);
|
|
295
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
296
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
297
|
-
height: 40px;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
301
|
-
.c1[aria-disabled='false']:focus {
|
|
302
|
-
outline: none;
|
|
303
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
307
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
308
|
-
box-shadow: none;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
312
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
313
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
317
|
-
.c1[aria-disabled='false']:hover {
|
|
318
|
-
color: var(--charcoal-text2-hover);
|
|
319
|
-
background-color: var(--charcoal-surface3-hover);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
323
|
-
.c1[aria-disabled='false']:active {
|
|
324
|
-
color: var(--charcoal-text2-press);
|
|
325
|
-
background-color: var(--charcoal-surface3-press);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.c1:disabled,
|
|
329
|
-
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
330
|
-
opacity: 0.32;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
<div
|
|
334
|
-
data-dark={false}
|
|
335
|
-
>
|
|
336
|
-
<button
|
|
337
|
-
className="c0 c1"
|
|
338
|
-
disabled={false}
|
|
339
|
-
>
|
|
340
|
-
Button
|
|
341
|
-
</button>
|
|
342
|
-
</div>
|
|
343
|
-
`;
|
|
344
|
-
|
|
345
|
-
exports[`Storybook Tests Button Disabled 1`] = `
|
|
346
|
-
.c0 {
|
|
347
|
-
cursor: pointer;
|
|
348
|
-
-webkit-appearance: none;
|
|
349
|
-
-moz-appearance: none;
|
|
350
|
-
appearance: none;
|
|
351
|
-
background: transparent;
|
|
352
|
-
padding: 0;
|
|
353
|
-
border-style: none;
|
|
354
|
-
outline: none;
|
|
355
|
-
color: inherit;
|
|
356
|
-
text-rendering: inherit;
|
|
357
|
-
-webkit-letter-spacing: inherit;
|
|
358
|
-
-moz-letter-spacing: inherit;
|
|
359
|
-
-ms-letter-spacing: inherit;
|
|
360
|
-
letter-spacing: inherit;
|
|
361
|
-
word-spacing: inherit;
|
|
362
|
-
-webkit-text-decoration: none;
|
|
363
|
-
text-decoration: none;
|
|
364
|
-
font: inherit;
|
|
365
|
-
margin: 0;
|
|
366
|
-
overflow: visible;
|
|
367
|
-
text-transform: none;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.c0:disabled,
|
|
371
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
372
|
-
cursor: default;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.c0:focus {
|
|
376
|
-
outline: none;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.c0::-moz-focus-inner {
|
|
380
|
-
border-style: none;
|
|
381
|
-
padding: 0;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.c1 {
|
|
385
|
-
width: -webkit-min-content;
|
|
386
|
-
width: -moz-min-content;
|
|
387
|
-
width: min-content;
|
|
388
|
-
display: inline-grid;
|
|
389
|
-
-webkit-align-items: center;
|
|
390
|
-
-webkit-box-align: center;
|
|
391
|
-
-ms-flex-align: center;
|
|
392
|
-
align-items: center;
|
|
393
|
-
-webkit-box-pack: center;
|
|
394
|
-
-webkit-justify-content: center;
|
|
395
|
-
-ms-flex-pack: center;
|
|
396
|
-
justify-content: center;
|
|
397
|
-
cursor: pointer;
|
|
398
|
-
-webkit-user-select: none;
|
|
399
|
-
-moz-user-select: none;
|
|
400
|
-
-ms-user-select: none;
|
|
401
|
-
user-select: none;
|
|
402
|
-
white-space: nowrap;
|
|
403
|
-
border-radius: 999999px;
|
|
404
|
-
font-size: 14px;
|
|
405
|
-
line-height: 22px;
|
|
406
|
-
font-weight: bold;
|
|
407
|
-
padding-right: 24px;
|
|
408
|
-
padding-left: 24px;
|
|
409
|
-
color: var(--charcoal-text2);
|
|
410
|
-
background-color: var(--charcoal-surface3);
|
|
411
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
412
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
413
|
-
height: 40px;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
417
|
-
.c1[aria-disabled='false']:focus {
|
|
418
|
-
outline: none;
|
|
419
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
423
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
424
|
-
box-shadow: none;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
428
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
429
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
433
|
-
.c1[aria-disabled='false']:hover {
|
|
434
|
-
color: var(--charcoal-text2-hover);
|
|
435
|
-
background-color: var(--charcoal-surface3-hover);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
439
|
-
.c1[aria-disabled='false']:active {
|
|
440
|
-
color: var(--charcoal-text2-press);
|
|
441
|
-
background-color: var(--charcoal-surface3-press);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.c1:disabled,
|
|
445
|
-
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
446
|
-
opacity: 0.32;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
<div
|
|
450
|
-
data-dark={false}
|
|
451
|
-
>
|
|
452
|
-
<button
|
|
453
|
-
className="c0 c1"
|
|
454
|
-
disabled={true}
|
|
455
|
-
>
|
|
456
|
-
Button
|
|
457
|
-
</button>
|
|
458
|
-
</div>
|
|
459
|
-
`;
|
|
460
|
-
|
|
461
|
-
exports[`Storybook Tests Button Fixed 1`] = `
|
|
462
|
-
.c0 {
|
|
463
|
-
cursor: pointer;
|
|
464
|
-
-webkit-appearance: none;
|
|
465
|
-
-moz-appearance: none;
|
|
466
|
-
appearance: none;
|
|
467
|
-
background: transparent;
|
|
468
|
-
padding: 0;
|
|
469
|
-
border-style: none;
|
|
470
|
-
outline: none;
|
|
471
|
-
color: inherit;
|
|
472
|
-
text-rendering: inherit;
|
|
473
|
-
-webkit-letter-spacing: inherit;
|
|
474
|
-
-moz-letter-spacing: inherit;
|
|
475
|
-
-ms-letter-spacing: inherit;
|
|
476
|
-
letter-spacing: inherit;
|
|
477
|
-
word-spacing: inherit;
|
|
478
|
-
-webkit-text-decoration: none;
|
|
479
|
-
text-decoration: none;
|
|
480
|
-
font: inherit;
|
|
481
|
-
margin: 0;
|
|
482
|
-
overflow: visible;
|
|
483
|
-
text-transform: none;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.c0:disabled,
|
|
487
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
488
|
-
cursor: default;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.c0:focus {
|
|
492
|
-
outline: none;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.c0::-moz-focus-inner {
|
|
496
|
-
border-style: none;
|
|
497
|
-
padding: 0;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.c1 {
|
|
501
|
-
width: -webkit-fill-available;
|
|
502
|
-
width: -moz-available;
|
|
503
|
-
width: stretch;
|
|
504
|
-
display: inline-grid;
|
|
505
|
-
-webkit-align-items: center;
|
|
506
|
-
-webkit-box-align: center;
|
|
507
|
-
-ms-flex-align: center;
|
|
508
|
-
align-items: center;
|
|
509
|
-
-webkit-box-pack: center;
|
|
510
|
-
-webkit-justify-content: center;
|
|
511
|
-
-ms-flex-pack: center;
|
|
512
|
-
justify-content: center;
|
|
513
|
-
cursor: pointer;
|
|
514
|
-
-webkit-user-select: none;
|
|
515
|
-
-moz-user-select: none;
|
|
516
|
-
-ms-user-select: none;
|
|
517
|
-
user-select: none;
|
|
518
|
-
white-space: nowrap;
|
|
519
|
-
border-radius: 999999px;
|
|
520
|
-
font-size: 14px;
|
|
521
|
-
line-height: 22px;
|
|
522
|
-
font-weight: bold;
|
|
523
|
-
padding-right: 24px;
|
|
524
|
-
padding-left: 24px;
|
|
525
|
-
color: var(--charcoal-text2);
|
|
526
|
-
background-color: var(--charcoal-surface3);
|
|
527
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
528
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
529
|
-
height: 40px;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
533
|
-
.c1[aria-disabled='false']:focus {
|
|
534
|
-
outline: none;
|
|
535
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
539
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
540
|
-
box-shadow: none;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
544
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
545
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
549
|
-
.c1[aria-disabled='false']:hover {
|
|
550
|
-
color: var(--charcoal-text2-hover);
|
|
551
|
-
background-color: var(--charcoal-surface3-hover);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
555
|
-
.c1[aria-disabled='false']:active {
|
|
556
|
-
color: var(--charcoal-text2-press);
|
|
557
|
-
background-color: var(--charcoal-surface3-press);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
.c1:disabled,
|
|
561
|
-
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
562
|
-
opacity: 0.32;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
<div
|
|
566
|
-
data-dark={false}
|
|
567
|
-
>
|
|
568
|
-
<button
|
|
569
|
-
className="c0 c1"
|
|
570
|
-
disabled={false}
|
|
571
|
-
>
|
|
572
|
-
Button
|
|
573
|
-
</button>
|
|
574
|
-
</div>
|
|
575
|
-
`;
|
|
576
|
-
|
|
577
|
-
exports[`Storybook Tests Button Focus 1`] = `
|
|
578
|
-
.c0 {
|
|
579
|
-
cursor: pointer;
|
|
580
|
-
-webkit-appearance: none;
|
|
581
|
-
-moz-appearance: none;
|
|
582
|
-
appearance: none;
|
|
583
|
-
background: transparent;
|
|
584
|
-
padding: 0;
|
|
585
|
-
border-style: none;
|
|
586
|
-
outline: none;
|
|
587
|
-
color: inherit;
|
|
588
|
-
text-rendering: inherit;
|
|
589
|
-
-webkit-letter-spacing: inherit;
|
|
590
|
-
-moz-letter-spacing: inherit;
|
|
591
|
-
-ms-letter-spacing: inherit;
|
|
592
|
-
letter-spacing: inherit;
|
|
593
|
-
word-spacing: inherit;
|
|
594
|
-
-webkit-text-decoration: none;
|
|
595
|
-
text-decoration: none;
|
|
596
|
-
font: inherit;
|
|
597
|
-
margin: 0;
|
|
598
|
-
overflow: visible;
|
|
599
|
-
text-transform: none;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.c0:disabled,
|
|
603
|
-
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
604
|
-
cursor: default;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
.c0:focus {
|
|
608
|
-
outline: none;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.c0::-moz-focus-inner {
|
|
612
|
-
border-style: none;
|
|
613
|
-
padding: 0;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.c1 {
|
|
617
|
-
width: -webkit-min-content;
|
|
618
|
-
width: -moz-min-content;
|
|
619
|
-
width: min-content;
|
|
620
|
-
display: inline-grid;
|
|
621
|
-
-webkit-align-items: center;
|
|
622
|
-
-webkit-box-align: center;
|
|
623
|
-
-ms-flex-align: center;
|
|
624
|
-
align-items: center;
|
|
625
|
-
-webkit-box-pack: center;
|
|
626
|
-
-webkit-justify-content: center;
|
|
627
|
-
-ms-flex-pack: center;
|
|
628
|
-
justify-content: center;
|
|
629
|
-
cursor: pointer;
|
|
630
|
-
-webkit-user-select: none;
|
|
631
|
-
-moz-user-select: none;
|
|
632
|
-
-ms-user-select: none;
|
|
633
|
-
user-select: none;
|
|
634
|
-
white-space: nowrap;
|
|
635
|
-
border-radius: 999999px;
|
|
636
|
-
font-size: 14px;
|
|
637
|
-
line-height: 22px;
|
|
638
|
-
font-weight: bold;
|
|
639
|
-
padding-right: 24px;
|
|
640
|
-
padding-left: 24px;
|
|
641
|
-
color: var(--charcoal-text2);
|
|
642
|
-
background-color: var(--charcoal-surface3);
|
|
643
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
644
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
645
|
-
height: 40px;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
649
|
-
.c1[aria-disabled='false']:focus {
|
|
650
|
-
outline: none;
|
|
651
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
655
|
-
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
656
|
-
box-shadow: none;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
660
|
-
.c1[aria-disabled='false']:focus-visible {
|
|
661
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
665
|
-
.c1[aria-disabled='false']:hover {
|
|
666
|
-
color: var(--charcoal-text2-hover);
|
|
667
|
-
background-color: var(--charcoal-surface3-hover);
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
671
|
-
.c1[aria-disabled='false']:active {
|
|
672
|
-
color: var(--charcoal-text2-press);
|
|
673
|
-
background-color: var(--charcoal-surface3-press);
|
|
99
|
+
background-color: var(--charcoal-assertive-press);
|
|
674
100
|
}
|
|
675
101
|
|
|
676
102
|
.c1:disabled,
|
|
@@ -684,14 +110,13 @@ exports[`Storybook Tests Button Focus 1`] = `
|
|
|
684
110
|
<button
|
|
685
111
|
className="c0 c1"
|
|
686
112
|
disabled={false}
|
|
687
|
-
onMouseOver={[Function]}
|
|
688
113
|
>
|
|
689
|
-
|
|
114
|
+
Danger
|
|
690
115
|
</button>
|
|
691
116
|
</div>
|
|
692
117
|
`;
|
|
693
118
|
|
|
694
|
-
exports[`Storybook Tests Button
|
|
119
|
+
exports[`Storybook Tests Button Default 1`] = `
|
|
695
120
|
.c0 {
|
|
696
121
|
cursor: pointer;
|
|
697
122
|
-webkit-appearance: none;
|
|
@@ -795,72 +220,58 @@ exports[`Storybook Tests Button LayoutExample 1`] = `
|
|
|
795
220
|
opacity: 0.32;
|
|
796
221
|
}
|
|
797
222
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
-ms-flex-pack: center;
|
|
810
|
-
justify-content: center;
|
|
811
|
-
cursor: pointer;
|
|
812
|
-
-webkit-user-select: none;
|
|
813
|
-
-moz-user-select: none;
|
|
814
|
-
-ms-user-select: none;
|
|
815
|
-
user-select: none;
|
|
816
|
-
white-space: nowrap;
|
|
817
|
-
border-radius: 999999px;
|
|
818
|
-
font-size: 14px;
|
|
819
|
-
line-height: 22px;
|
|
820
|
-
font-weight: bold;
|
|
821
|
-
padding-right: 24px;
|
|
822
|
-
padding-left: 24px;
|
|
823
|
-
color: var(--charcoal-text5);
|
|
824
|
-
background-color: var(--charcoal-surface6);
|
|
825
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
826
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
827
|
-
height: 40px;
|
|
828
|
-
}
|
|
223
|
+
<div
|
|
224
|
+
data-dark={false}
|
|
225
|
+
>
|
|
226
|
+
<button
|
|
227
|
+
className="c0 c1"
|
|
228
|
+
disabled={false}
|
|
229
|
+
>
|
|
230
|
+
Button
|
|
231
|
+
</button>
|
|
232
|
+
</div>
|
|
233
|
+
`;
|
|
829
234
|
|
|
830
|
-
|
|
831
|
-
.
|
|
235
|
+
exports[`Storybook Tests Button Disabled 1`] = `
|
|
236
|
+
.c0 {
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
-webkit-appearance: none;
|
|
239
|
+
-moz-appearance: none;
|
|
240
|
+
appearance: none;
|
|
241
|
+
background: transparent;
|
|
242
|
+
padding: 0;
|
|
243
|
+
border-style: none;
|
|
832
244
|
outline: none;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
245
|
+
color: inherit;
|
|
246
|
+
text-rendering: inherit;
|
|
247
|
+
-webkit-letter-spacing: inherit;
|
|
248
|
+
-moz-letter-spacing: inherit;
|
|
249
|
+
-ms-letter-spacing: inherit;
|
|
250
|
+
letter-spacing: inherit;
|
|
251
|
+
word-spacing: inherit;
|
|
252
|
+
-webkit-text-decoration: none;
|
|
253
|
+
text-decoration: none;
|
|
254
|
+
font: inherit;
|
|
255
|
+
margin: 0;
|
|
256
|
+
overflow: visible;
|
|
257
|
+
text-transform: none;
|
|
844
258
|
}
|
|
845
259
|
|
|
846
|
-
.
|
|
847
|
-
.
|
|
848
|
-
|
|
849
|
-
background-color: var(--charcoal-surface6-hover);
|
|
260
|
+
.c0:disabled,
|
|
261
|
+
.c0[aria-disabled]:not([aria-disabled=false]) {
|
|
262
|
+
cursor: default;
|
|
850
263
|
}
|
|
851
264
|
|
|
852
|
-
.
|
|
853
|
-
|
|
854
|
-
color: var(--charcoal-text5-press);
|
|
855
|
-
background-color: var(--charcoal-surface6-press);
|
|
265
|
+
.c0:focus {
|
|
266
|
+
outline: none;
|
|
856
267
|
}
|
|
857
268
|
|
|
858
|
-
.
|
|
859
|
-
|
|
860
|
-
|
|
269
|
+
.c0::-moz-focus-inner {
|
|
270
|
+
border-style: none;
|
|
271
|
+
padding: 0;
|
|
861
272
|
}
|
|
862
273
|
|
|
863
|
-
.
|
|
274
|
+
.c1 {
|
|
864
275
|
width: -webkit-min-content;
|
|
865
276
|
width: -moz-min-content;
|
|
866
277
|
width: min-content;
|
|
@@ -885,136 +296,6 @@ exports[`Storybook Tests Button LayoutExample 1`] = `
|
|
|
885
296
|
font-weight: bold;
|
|
886
297
|
padding-right: 24px;
|
|
887
298
|
padding-left: 24px;
|
|
888
|
-
color: var(--charcoal-text5);
|
|
889
|
-
background-color: var(--charcoal-assertive);
|
|
890
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
891
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
892
|
-
height: 40px;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.c3:not(:disabled):not([aria-disabled]):focus,
|
|
896
|
-
.c3[aria-disabled='false']:focus {
|
|
897
|
-
outline: none;
|
|
898
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.c3:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
902
|
-
.c3[aria-disabled='false']:focus:not(:focus-visible) {
|
|
903
|
-
box-shadow: none;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.c3:not(:disabled):not([aria-disabled]):focus-visible,
|
|
907
|
-
.c3[aria-disabled='false']:focus-visible {
|
|
908
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
912
|
-
.c3[aria-disabled='false']:hover {
|
|
913
|
-
color: var(--charcoal-text5-hover);
|
|
914
|
-
background-color: var(--charcoal-assertive-hover);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
.c3:not(:disabled):not([aria-disabled]):active,
|
|
918
|
-
.c3[aria-disabled='false']:active {
|
|
919
|
-
color: var(--charcoal-text5-press);
|
|
920
|
-
background-color: var(--charcoal-assertive-press);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.c3:disabled,
|
|
924
|
-
.c3[aria-disabled]:not([aria-disabled='false']) {
|
|
925
|
-
opacity: 0.32;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
.c4 {
|
|
929
|
-
width: -webkit-fill-available;
|
|
930
|
-
width: -moz-available;
|
|
931
|
-
width: stretch;
|
|
932
|
-
display: inline-grid;
|
|
933
|
-
-webkit-align-items: center;
|
|
934
|
-
-webkit-box-align: center;
|
|
935
|
-
-ms-flex-align: center;
|
|
936
|
-
align-items: center;
|
|
937
|
-
-webkit-box-pack: center;
|
|
938
|
-
-webkit-justify-content: center;
|
|
939
|
-
-ms-flex-pack: center;
|
|
940
|
-
justify-content: center;
|
|
941
|
-
cursor: pointer;
|
|
942
|
-
-webkit-user-select: none;
|
|
943
|
-
-moz-user-select: none;
|
|
944
|
-
-ms-user-select: none;
|
|
945
|
-
user-select: none;
|
|
946
|
-
white-space: nowrap;
|
|
947
|
-
border-radius: 999999px;
|
|
948
|
-
font-size: 14px;
|
|
949
|
-
line-height: 22px;
|
|
950
|
-
font-weight: bold;
|
|
951
|
-
padding-right: 24px;
|
|
952
|
-
padding-left: 24px;
|
|
953
|
-
color: var(--charcoal-text5);
|
|
954
|
-
background-color: var(--charcoal-brand);
|
|
955
|
-
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
956
|
-
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
957
|
-
height: 40px;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
.c4:not(:disabled):not([aria-disabled]):focus,
|
|
961
|
-
.c4[aria-disabled='false']:focus {
|
|
962
|
-
outline: none;
|
|
963
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
.c4:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
967
|
-
.c4[aria-disabled='false']:focus:not(:focus-visible) {
|
|
968
|
-
box-shadow: none;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
.c4:not(:disabled):not([aria-disabled]):focus-visible,
|
|
972
|
-
.c4[aria-disabled='false']:focus-visible {
|
|
973
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.c4:not(:disabled):not([aria-disabled]):hover,
|
|
977
|
-
.c4[aria-disabled='false']:hover {
|
|
978
|
-
color: var(--charcoal-text5-hover);
|
|
979
|
-
background-color: var(--charcoal-brand-hover);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
.c4:not(:disabled):not([aria-disabled]):active,
|
|
983
|
-
.c4[aria-disabled='false']:active {
|
|
984
|
-
color: var(--charcoal-text5-press);
|
|
985
|
-
background-color: var(--charcoal-brand-press);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
.c4:disabled,
|
|
989
|
-
.c4[aria-disabled]:not([aria-disabled='false']) {
|
|
990
|
-
opacity: 0.32;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.c5 {
|
|
994
|
-
width: -webkit-fill-available;
|
|
995
|
-
width: -moz-available;
|
|
996
|
-
width: stretch;
|
|
997
|
-
display: inline-grid;
|
|
998
|
-
-webkit-align-items: center;
|
|
999
|
-
-webkit-box-align: center;
|
|
1000
|
-
-ms-flex-align: center;
|
|
1001
|
-
align-items: center;
|
|
1002
|
-
-webkit-box-pack: center;
|
|
1003
|
-
-webkit-justify-content: center;
|
|
1004
|
-
-ms-flex-pack: center;
|
|
1005
|
-
justify-content: center;
|
|
1006
|
-
cursor: pointer;
|
|
1007
|
-
-webkit-user-select: none;
|
|
1008
|
-
-moz-user-select: none;
|
|
1009
|
-
-ms-user-select: none;
|
|
1010
|
-
user-select: none;
|
|
1011
|
-
white-space: nowrap;
|
|
1012
|
-
border-radius: 999999px;
|
|
1013
|
-
font-size: 14px;
|
|
1014
|
-
line-height: 22px;
|
|
1015
|
-
font-weight: bold;
|
|
1016
|
-
padding-right: 24px;
|
|
1017
|
-
padding-left: 24px;
|
|
1018
299
|
color: var(--charcoal-text2);
|
|
1019
300
|
background-color: var(--charcoal-surface3);
|
|
1020
301
|
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
@@ -1022,175 +303,52 @@ exports[`Storybook Tests Button LayoutExample 1`] = `
|
|
|
1022
303
|
height: 40px;
|
|
1023
304
|
}
|
|
1024
305
|
|
|
1025
|
-
.
|
|
1026
|
-
.
|
|
306
|
+
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
307
|
+
.c1[aria-disabled='false']:focus {
|
|
1027
308
|
outline: none;
|
|
1028
309
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1029
310
|
}
|
|
1030
311
|
|
|
1031
|
-
.
|
|
1032
|
-
.
|
|
312
|
+
.c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
313
|
+
.c1[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1033
314
|
box-shadow: none;
|
|
1034
315
|
}
|
|
1035
316
|
|
|
1036
|
-
.
|
|
1037
|
-
.
|
|
317
|
+
.c1:not(:disabled):not([aria-disabled]):focus-visible,
|
|
318
|
+
.c1[aria-disabled='false']:focus-visible {
|
|
1038
319
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1039
320
|
}
|
|
1040
321
|
|
|
1041
|
-
.
|
|
1042
|
-
.
|
|
322
|
+
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
323
|
+
.c1[aria-disabled='false']:hover {
|
|
1043
324
|
color: var(--charcoal-text2-hover);
|
|
1044
325
|
background-color: var(--charcoal-surface3-hover);
|
|
1045
326
|
}
|
|
1046
327
|
|
|
1047
|
-
.
|
|
1048
|
-
.
|
|
328
|
+
.c1:not(:disabled):not([aria-disabled]):active,
|
|
329
|
+
.c1[aria-disabled='false']:active {
|
|
1049
330
|
color: var(--charcoal-text2-press);
|
|
1050
331
|
background-color: var(--charcoal-surface3-press);
|
|
1051
332
|
}
|
|
1052
333
|
|
|
1053
|
-
.
|
|
1054
|
-
.
|
|
334
|
+
.c1:disabled,
|
|
335
|
+
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
1055
336
|
opacity: 0.32;
|
|
1056
337
|
}
|
|
1057
338
|
|
|
1058
339
|
<div
|
|
1059
340
|
data-dark={false}
|
|
1060
341
|
>
|
|
1061
|
-
<
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
gap: 24px;
|
|
1065
|
-
"
|
|
342
|
+
<button
|
|
343
|
+
className="c0 c1"
|
|
344
|
+
disabled={true}
|
|
1066
345
|
>
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
display: grid;
|
|
1070
|
-
grid: auto / auto-flow min-content;
|
|
1071
|
-
gap: 8px;
|
|
1072
|
-
"
|
|
1073
|
-
>
|
|
1074
|
-
<button
|
|
1075
|
-
className="c0 c1"
|
|
1076
|
-
disabled={false}
|
|
1077
|
-
>
|
|
1078
|
-
Grid
|
|
1079
|
-
</button>
|
|
1080
|
-
<button
|
|
1081
|
-
className="c0 c2"
|
|
1082
|
-
disabled={false}
|
|
1083
|
-
>
|
|
1084
|
-
Layout
|
|
1085
|
-
</button>
|
|
1086
|
-
<button
|
|
1087
|
-
className="c0 c3"
|
|
1088
|
-
disabled={false}
|
|
1089
|
-
>
|
|
1090
|
-
Sample
|
|
1091
|
-
</button>
|
|
1092
|
-
</div>
|
|
1093
|
-
<div
|
|
1094
|
-
css="
|
|
1095
|
-
display: grid;
|
|
1096
|
-
grid: auto-flow auto / 392px;
|
|
1097
|
-
gap: 8px;
|
|
1098
|
-
"
|
|
1099
|
-
>
|
|
1100
|
-
<button
|
|
1101
|
-
className="c0 c4"
|
|
1102
|
-
disabled={false}
|
|
1103
|
-
>
|
|
1104
|
-
Submit
|
|
1105
|
-
</button>
|
|
1106
|
-
<button
|
|
1107
|
-
className="c0 c5"
|
|
1108
|
-
disabled={false}
|
|
1109
|
-
>
|
|
1110
|
-
Cancel
|
|
1111
|
-
</button>
|
|
1112
|
-
</div>
|
|
1113
|
-
<div
|
|
1114
|
-
css="
|
|
1115
|
-
display: flex;
|
|
1116
|
-
|
|
1117
|
-
& > * + * {
|
|
1118
|
-
margin-left: 8px;
|
|
1119
|
-
}
|
|
1120
|
-
"
|
|
1121
|
-
>
|
|
1122
|
-
<button
|
|
1123
|
-
className="c0 c1"
|
|
1124
|
-
disabled={false}
|
|
1125
|
-
>
|
|
1126
|
-
Flex
|
|
1127
|
-
</button>
|
|
1128
|
-
<button
|
|
1129
|
-
className="c0 c2"
|
|
1130
|
-
disabled={false}
|
|
1131
|
-
>
|
|
1132
|
-
Layout
|
|
1133
|
-
</button>
|
|
1134
|
-
<button
|
|
1135
|
-
className="c0 c3"
|
|
1136
|
-
disabled={false}
|
|
1137
|
-
>
|
|
1138
|
-
Sample
|
|
1139
|
-
</button>
|
|
1140
|
-
</div>
|
|
1141
|
-
<div
|
|
1142
|
-
css="
|
|
1143
|
-
display: flex;
|
|
1144
|
-
flex-direction: column;
|
|
1145
|
-
width: 392px;
|
|
1146
|
-
|
|
1147
|
-
& > * + * {
|
|
1148
|
-
margin-top: 8px;
|
|
1149
|
-
}
|
|
1150
|
-
"
|
|
1151
|
-
>
|
|
1152
|
-
<button
|
|
1153
|
-
className="c0 c4"
|
|
1154
|
-
disabled={false}
|
|
1155
|
-
>
|
|
1156
|
-
Submit
|
|
1157
|
-
</button>
|
|
1158
|
-
<button
|
|
1159
|
-
className="c0 c5"
|
|
1160
|
-
disabled={false}
|
|
1161
|
-
>
|
|
1162
|
-
Cancel
|
|
1163
|
-
</button>
|
|
1164
|
-
</div>
|
|
1165
|
-
<div
|
|
1166
|
-
css="
|
|
1167
|
-
display: flex;
|
|
1168
|
-
flex-direction: column;
|
|
1169
|
-
width: 392px;
|
|
1170
|
-
|
|
1171
|
-
& > * + * {
|
|
1172
|
-
margin-top: 8px;
|
|
1173
|
-
}
|
|
1174
|
-
"
|
|
1175
|
-
>
|
|
1176
|
-
<button
|
|
1177
|
-
className="c0 c4"
|
|
1178
|
-
disabled={false}
|
|
1179
|
-
>
|
|
1180
|
-
すべて見る
|
|
1181
|
-
</button>
|
|
1182
|
-
<button
|
|
1183
|
-
className="c0 c1"
|
|
1184
|
-
disabled={false}
|
|
1185
|
-
>
|
|
1186
|
-
作品を投稿
|
|
1187
|
-
</button>
|
|
1188
|
-
</div>
|
|
1189
|
-
</div>
|
|
346
|
+
Disabled
|
|
347
|
+
</button>
|
|
1190
348
|
</div>
|
|
1191
349
|
`;
|
|
1192
350
|
|
|
1193
|
-
exports[`Storybook Tests Button
|
|
351
|
+
exports[`Storybook Tests Button FullWidth 1`] = `
|
|
1194
352
|
.c0 {
|
|
1195
353
|
cursor: pointer;
|
|
1196
354
|
-webkit-appearance: none;
|
|
@@ -1230,9 +388,9 @@ exports[`Storybook Tests Button Link 1`] = `
|
|
|
1230
388
|
}
|
|
1231
389
|
|
|
1232
390
|
.c1 {
|
|
1233
|
-
width: -webkit-
|
|
1234
|
-
width: -moz-
|
|
1235
|
-
width:
|
|
391
|
+
width: -webkit-fill-available;
|
|
392
|
+
width: -moz-available;
|
|
393
|
+
width: stretch;
|
|
1236
394
|
display: inline-grid;
|
|
1237
395
|
-webkit-align-items: center;
|
|
1238
396
|
-webkit-box-align: center;
|
|
@@ -1297,16 +455,16 @@ exports[`Storybook Tests Button Link 1`] = `
|
|
|
1297
455
|
<div
|
|
1298
456
|
data-dark={false}
|
|
1299
457
|
>
|
|
1300
|
-
<
|
|
458
|
+
<button
|
|
1301
459
|
className="c0 c1"
|
|
1302
|
-
|
|
460
|
+
disabled={false}
|
|
1303
461
|
>
|
|
1304
|
-
|
|
1305
|
-
</
|
|
462
|
+
Full width
|
|
463
|
+
</button>
|
|
1306
464
|
</div>
|
|
1307
465
|
`;
|
|
1308
466
|
|
|
1309
|
-
exports[`Storybook Tests Button
|
|
467
|
+
exports[`Storybook Tests Button IsActive 1`] = `
|
|
1310
468
|
.c0 {
|
|
1311
469
|
cursor: pointer;
|
|
1312
470
|
-webkit-appearance: none;
|
|
@@ -1370,13 +528,19 @@ exports[`Storybook Tests Button Navigation 1`] = `
|
|
|
1370
528
|
font-weight: bold;
|
|
1371
529
|
padding-right: 24px;
|
|
1372
530
|
padding-left: 24px;
|
|
1373
|
-
color: var(--charcoal-
|
|
1374
|
-
background-color: var(--charcoal-
|
|
531
|
+
color: var(--charcoal-text2);
|
|
532
|
+
background-color: var(--charcoal-surface3);
|
|
1375
533
|
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
1376
534
|
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
1377
535
|
height: 40px;
|
|
1378
536
|
}
|
|
1379
537
|
|
|
538
|
+
.c1:not(:disabled):not([aria-disabled]),
|
|
539
|
+
.c1[aria-disabled='false'] {
|
|
540
|
+
color: var(--charcoal-text2-press);
|
|
541
|
+
background-color: var(--charcoal-surface3-press);
|
|
542
|
+
}
|
|
543
|
+
|
|
1380
544
|
.c1:not(:disabled):not([aria-disabled]):focus,
|
|
1381
545
|
.c1[aria-disabled='false']:focus {
|
|
1382
546
|
outline: none;
|
|
@@ -1393,18 +557,6 @@ exports[`Storybook Tests Button Navigation 1`] = `
|
|
|
1393
557
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1394
558
|
}
|
|
1395
559
|
|
|
1396
|
-
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1397
|
-
.c1[aria-disabled='false']:hover {
|
|
1398
|
-
color: var(--charcoal-text5-hover);
|
|
1399
|
-
background-color: var(--charcoal-surface6-hover);
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1403
|
-
.c1[aria-disabled='false']:active {
|
|
1404
|
-
color: var(--charcoal-text5-press);
|
|
1405
|
-
background-color: var(--charcoal-surface6-press);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
560
|
.c1:disabled,
|
|
1409
561
|
.c1[aria-disabled]:not([aria-disabled='false']) {
|
|
1410
562
|
opacity: 0.32;
|
|
@@ -1417,12 +569,12 @@ exports[`Storybook Tests Button Navigation 1`] = `
|
|
|
1417
569
|
className="c0 c1"
|
|
1418
570
|
disabled={false}
|
|
1419
571
|
>
|
|
1420
|
-
|
|
572
|
+
Active
|
|
1421
573
|
</button>
|
|
1422
574
|
</div>
|
|
1423
575
|
`;
|
|
1424
576
|
|
|
1425
|
-
exports[`Storybook Tests Button
|
|
577
|
+
exports[`Storybook Tests Button Navigation 1`] = `
|
|
1426
578
|
.c0 {
|
|
1427
579
|
cursor: pointer;
|
|
1428
580
|
-webkit-appearance: none;
|
|
@@ -1486,8 +638,8 @@ exports[`Storybook Tests Button Nihongo 1`] = `
|
|
|
1486
638
|
font-weight: bold;
|
|
1487
639
|
padding-right: 24px;
|
|
1488
640
|
padding-left: 24px;
|
|
1489
|
-
color: var(--charcoal-
|
|
1490
|
-
background-color: var(--charcoal-
|
|
641
|
+
color: var(--charcoal-text5);
|
|
642
|
+
background-color: var(--charcoal-surface6);
|
|
1491
643
|
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
1492
644
|
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
1493
645
|
height: 40px;
|
|
@@ -1511,14 +663,14 @@ exports[`Storybook Tests Button Nihongo 1`] = `
|
|
|
1511
663
|
|
|
1512
664
|
.c1:not(:disabled):not([aria-disabled]):hover,
|
|
1513
665
|
.c1[aria-disabled='false']:hover {
|
|
1514
|
-
color: var(--charcoal-
|
|
1515
|
-
background-color: var(--charcoal-
|
|
666
|
+
color: var(--charcoal-text5-hover);
|
|
667
|
+
background-color: var(--charcoal-surface6-hover);
|
|
1516
668
|
}
|
|
1517
669
|
|
|
1518
670
|
.c1:not(:disabled):not([aria-disabled]):active,
|
|
1519
671
|
.c1[aria-disabled='false']:active {
|
|
1520
|
-
color: var(--charcoal-
|
|
1521
|
-
background-color: var(--charcoal-
|
|
672
|
+
color: var(--charcoal-text5-press);
|
|
673
|
+
background-color: var(--charcoal-surface6-press);
|
|
1522
674
|
}
|
|
1523
675
|
|
|
1524
676
|
.c1:disabled,
|
|
@@ -1533,7 +685,7 @@ exports[`Storybook Tests Button Nihongo 1`] = `
|
|
|
1533
685
|
className="c0 c1"
|
|
1534
686
|
disabled={false}
|
|
1535
687
|
>
|
|
1536
|
-
|
|
688
|
+
Navigation
|
|
1537
689
|
</button>
|
|
1538
690
|
</div>
|
|
1539
691
|
`;
|
|
@@ -1649,7 +801,7 @@ exports[`Storybook Tests Button Overlay 1`] = `
|
|
|
1649
801
|
className="c0 c1"
|
|
1650
802
|
disabled={false}
|
|
1651
803
|
>
|
|
1652
|
-
|
|
804
|
+
Overlay
|
|
1653
805
|
</button>
|
|
1654
806
|
</div>
|
|
1655
807
|
`;
|
|
@@ -1765,7 +917,7 @@ exports[`Storybook Tests Button Primary 1`] = `
|
|
|
1765
917
|
className="c0 c1"
|
|
1766
918
|
disabled={false}
|
|
1767
919
|
>
|
|
1768
|
-
|
|
920
|
+
Primary
|
|
1769
921
|
</button>
|
|
1770
922
|
</div>
|
|
1771
923
|
`;
|
|
@@ -1881,7 +1033,7 @@ exports[`Storybook Tests Button Small 1`] = `
|
|
|
1881
1033
|
className="c0 c1"
|
|
1882
1034
|
disabled={false}
|
|
1883
1035
|
>
|
|
1884
|
-
|
|
1036
|
+
Small
|
|
1885
1037
|
</button>
|
|
1886
1038
|
</div>
|
|
1887
1039
|
`;
|