@charcoal-ui/react 3.10.1-beta.1 → 4.0.0-beta.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.
Files changed (31) hide show
  1. package/dist/_lib/useClassNames.d.ts +5 -0
  2. package/dist/_lib/useClassNames.d.ts.map +1 -0
  3. package/dist/components/Button/index.d.ts +13 -10
  4. package/dist/components/Button/index.d.ts.map +1 -1
  5. package/dist/components/Button/index.story.d.ts +9 -4
  6. package/dist/components/Button/index.story.d.ts.map +1 -1
  7. package/dist/index.cjs.js +314 -357
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.css +118 -0
  10. package/dist/index.css.map +1 -0
  11. package/dist/index.esm.js +208 -251
  12. package/dist/index.esm.js.map +1 -1
  13. package/dist/styled.d.ts +4 -4
  14. package/package.json +17 -11
  15. package/src/_lib/useClassNames.ts +14 -0
  16. package/src/components/Button/__snapshots__/index.story.storyshot +22 -1754
  17. package/src/components/Button/index.css +125 -0
  18. package/src/components/Button/index.story.tsx +1 -95
  19. package/src/components/Button/index.tsx +36 -42
  20. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +4 -111
  21. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +2 -105
  22. package/src/components/Modal/__snapshots__/index.story.storyshot +569 -1621
  23. package/dist/components/Button/StyledButton.d.ts +0 -13
  24. package/dist/components/Button/StyledButton.d.ts.map +0 -1
  25. package/dist/components/Button/lib/variantToBackground.d.ts +0 -3
  26. package/dist/components/Button/lib/variantToBackground.d.ts.map +0 -1
  27. package/dist/components/Button/lib/variantToFont.d.ts +0 -3
  28. package/dist/components/Button/lib/variantToFont.d.ts.map +0 -1
  29. package/src/components/Button/StyledButton.tsx +0 -71
  30. package/src/components/Button/lib/variantToBackground.tsx +0 -19
  31. package/src/components/Button/lib/variantToFont.tsx +0 -19
@@ -1,109 +1,12 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
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
4
  <div
102
5
  data-dark={false}
103
6
  >
104
7
  <button
105
- className="c0 c1"
106
- disabled={false}
8
+ className="charcoal-button"
9
+ data-active={true}
107
10
  >
108
11
  Button
109
12
  </button>
@@ -111,115 +14,12 @@ exports[`Storybook Tests Button Active 1`] = `
111
14
  `;
112
15
 
113
16
  exports[`Storybook Tests Button Danger 1`] = `
114
- .c0 {
115
- cursor: pointer;
116
- -webkit-appearance: none;
117
- -moz-appearance: none;
118
- appearance: none;
119
- background: transparent;
120
- padding: 0;
121
- border-style: none;
122
- outline: none;
123
- color: inherit;
124
- text-rendering: inherit;
125
- -webkit-letter-spacing: inherit;
126
- -moz-letter-spacing: inherit;
127
- -ms-letter-spacing: inherit;
128
- letter-spacing: inherit;
129
- word-spacing: inherit;
130
- -webkit-text-decoration: none;
131
- text-decoration: none;
132
- font: inherit;
133
- margin: 0;
134
- overflow: visible;
135
- text-transform: none;
136
- }
137
-
138
- .c0:disabled,
139
- .c0[aria-disabled]:not([aria-disabled=false]) {
140
- cursor: default;
141
- }
142
-
143
- .c0:focus {
144
- outline: none;
145
- }
146
-
147
- .c0::-moz-focus-inner {
148
- border-style: none;
149
- padding: 0;
150
- }
151
-
152
- .c1 {
153
- width: -webkit-min-content;
154
- width: -moz-min-content;
155
- width: min-content;
156
- display: inline-grid;
157
- -webkit-align-items: center;
158
- -webkit-box-align: center;
159
- -ms-flex-align: center;
160
- align-items: center;
161
- -webkit-box-pack: center;
162
- -webkit-justify-content: center;
163
- -ms-flex-pack: center;
164
- justify-content: center;
165
- cursor: pointer;
166
- -webkit-user-select: none;
167
- -moz-user-select: none;
168
- -ms-user-select: none;
169
- user-select: none;
170
- white-space: nowrap;
171
- border-radius: 999999px;
172
- font-size: 14px;
173
- line-height: 22px;
174
- font-weight: bold;
175
- padding-right: 24px;
176
- padding-left: 24px;
177
- color: var(--charcoal-text5);
178
- background-color: var(--charcoal-assertive);
179
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
180
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
181
- height: 40px;
182
- }
183
-
184
- .c1:not(:disabled):not([aria-disabled]):focus,
185
- .c1[aria-disabled='false']:focus {
186
- outline: none;
187
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
188
- }
189
-
190
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
191
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
192
- box-shadow: none;
193
- }
194
-
195
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
196
- .c1[aria-disabled='false']:focus-visible {
197
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
198
- }
199
-
200
- .c1:not(:disabled):not([aria-disabled]):hover,
201
- .c1[aria-disabled='false']:hover {
202
- color: var(--charcoal-text5-hover);
203
- background-color: var(--charcoal-assertive-hover);
204
- }
205
-
206
- .c1:not(:disabled):not([aria-disabled]):active,
207
- .c1[aria-disabled='false']:active {
208
- 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
17
  <div
218
18
  data-dark={false}
219
19
  >
220
20
  <button
221
- className="c0 c1"
222
- disabled={false}
21
+ className="charcoal-button"
22
+ data-variant="Danger"
223
23
  >
224
24
  Button
225
25
  </button>
@@ -227,115 +27,11 @@ exports[`Storybook Tests Button Danger 1`] = `
227
27
  `;
228
28
 
229
29
  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
30
  <div
334
31
  data-dark={false}
335
32
  >
336
33
  <button
337
- className="c0 c1"
338
- disabled={false}
34
+ className="charcoal-button"
339
35
  >
340
36
  Button
341
37
  </button>
@@ -343,114 +39,11 @@ exports[`Storybook Tests Button Default 1`] = `
343
39
  `;
344
40
 
345
41
  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
42
  <div
450
43
  data-dark={false}
451
44
  >
452
45
  <button
453
- className="c0 c1"
46
+ className="charcoal-button"
454
47
  disabled={true}
455
48
  >
456
49
  Button
@@ -459,115 +52,12 @@ exports[`Storybook Tests Button Disabled 1`] = `
459
52
  `;
460
53
 
461
54
  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
55
  <div
566
56
  data-dark={false}
567
57
  >
568
58
  <button
569
- className="c0 c1"
570
- disabled={false}
59
+ className="charcoal-button"
60
+ data-full-width={true}
571
61
  >
572
62
  Button
573
63
  </button>
@@ -575,115 +65,11 @@ exports[`Storybook Tests Button Fixed 1`] = `
575
65
  `;
576
66
 
577
67
  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);
674
- }
675
-
676
- .c1:disabled,
677
- .c1[aria-disabled]:not([aria-disabled='false']) {
678
- opacity: 0.32;
679
- }
680
-
681
68
  <div
682
69
  data-dark={false}
683
70
  >
684
71
  <button
685
- className="c0 c1"
686
- disabled={false}
72
+ className="charcoal-button"
687
73
  onMouseOver={[Function]}
688
74
  >
689
75
  Mouse over to focus
@@ -691,731 +77,26 @@ exports[`Storybook Tests Button Focus 1`] = `
691
77
  </div>
692
78
  `;
693
79
 
694
- exports[`Storybook Tests Button LayoutExample 1`] = `
695
- .c0 {
696
- cursor: pointer;
697
- -webkit-appearance: none;
698
- -moz-appearance: none;
699
- appearance: none;
700
- background: transparent;
701
- padding: 0;
702
- border-style: none;
703
- outline: none;
704
- color: inherit;
705
- text-rendering: inherit;
706
- -webkit-letter-spacing: inherit;
707
- -moz-letter-spacing: inherit;
708
- -ms-letter-spacing: inherit;
709
- letter-spacing: inherit;
710
- word-spacing: inherit;
711
- -webkit-text-decoration: none;
712
- text-decoration: none;
713
- font: inherit;
714
- margin: 0;
715
- overflow: visible;
716
- text-transform: none;
717
- }
718
-
719
- .c0:disabled,
720
- .c0[aria-disabled]:not([aria-disabled=false]) {
721
- cursor: default;
722
- }
723
-
724
- .c0:focus {
725
- outline: none;
726
- }
727
-
728
- .c0::-moz-focus-inner {
729
- border-style: none;
730
- padding: 0;
731
- }
732
-
733
- .c1 {
734
- width: -webkit-min-content;
735
- width: -moz-min-content;
736
- width: min-content;
737
- display: inline-grid;
738
- -webkit-align-items: center;
739
- -webkit-box-align: center;
740
- -ms-flex-align: center;
741
- align-items: center;
742
- -webkit-box-pack: center;
743
- -webkit-justify-content: center;
744
- -ms-flex-pack: center;
745
- justify-content: center;
746
- cursor: pointer;
747
- -webkit-user-select: none;
748
- -moz-user-select: none;
749
- -ms-user-select: none;
750
- user-select: none;
751
- white-space: nowrap;
752
- border-radius: 999999px;
753
- font-size: 14px;
754
- line-height: 22px;
755
- font-weight: bold;
756
- padding-right: 24px;
757
- padding-left: 24px;
758
- color: var(--charcoal-text2);
759
- background-color: var(--charcoal-surface3);
760
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
761
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
762
- height: 40px;
763
- }
764
-
765
- .c1:not(:disabled):not([aria-disabled]):focus,
766
- .c1[aria-disabled='false']:focus {
767
- outline: none;
768
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
769
- }
770
-
771
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
772
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
773
- box-shadow: none;
774
- }
775
-
776
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
777
- .c1[aria-disabled='false']:focus-visible {
778
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
779
- }
780
-
781
- .c1:not(:disabled):not([aria-disabled]):hover,
782
- .c1[aria-disabled='false']:hover {
783
- color: var(--charcoal-text2-hover);
784
- background-color: var(--charcoal-surface3-hover);
785
- }
786
-
787
- .c1:not(:disabled):not([aria-disabled]):active,
788
- .c1[aria-disabled='false']:active {
789
- color: var(--charcoal-text2-press);
790
- background-color: var(--charcoal-surface3-press);
791
- }
792
-
793
- .c1:disabled,
794
- .c1[aria-disabled]:not([aria-disabled='false']) {
795
- opacity: 0.32;
796
- }
797
-
798
- .c2 {
799
- width: -webkit-min-content;
800
- width: -moz-min-content;
801
- width: min-content;
802
- display: inline-grid;
803
- -webkit-align-items: center;
804
- -webkit-box-align: center;
805
- -ms-flex-align: center;
806
- align-items: center;
807
- -webkit-box-pack: center;
808
- -webkit-justify-content: center;
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
- }
829
-
830
- .c2:not(:disabled):not([aria-disabled]):focus,
831
- .c2[aria-disabled='false']:focus {
832
- outline: none;
833
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
834
- }
835
-
836
- .c2:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
837
- .c2[aria-disabled='false']:focus:not(:focus-visible) {
838
- box-shadow: none;
839
- }
840
-
841
- .c2:not(:disabled):not([aria-disabled]):focus-visible,
842
- .c2[aria-disabled='false']:focus-visible {
843
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
844
- }
845
-
846
- .c2:not(:disabled):not([aria-disabled]):hover,
847
- .c2[aria-disabled='false']:hover {
848
- color: var(--charcoal-text5-hover);
849
- background-color: var(--charcoal-surface6-hover);
850
- }
851
-
852
- .c2:not(:disabled):not([aria-disabled]):active,
853
- .c2[aria-disabled='false']:active {
854
- color: var(--charcoal-text5-press);
855
- background-color: var(--charcoal-surface6-press);
856
- }
857
-
858
- .c2:disabled,
859
- .c2[aria-disabled]:not([aria-disabled='false']) {
860
- opacity: 0.32;
861
- }
862
-
863
- .c3 {
864
- width: -webkit-min-content;
865
- width: -moz-min-content;
866
- width: min-content;
867
- display: inline-grid;
868
- -webkit-align-items: center;
869
- -webkit-box-align: center;
870
- -ms-flex-align: center;
871
- align-items: center;
872
- -webkit-box-pack: center;
873
- -webkit-justify-content: center;
874
- -ms-flex-pack: center;
875
- justify-content: center;
876
- cursor: pointer;
877
- -webkit-user-select: none;
878
- -moz-user-select: none;
879
- -ms-user-select: none;
880
- user-select: none;
881
- white-space: nowrap;
882
- border-radius: 999999px;
883
- font-size: 14px;
884
- line-height: 22px;
885
- font-weight: bold;
886
- padding-right: 24px;
887
- 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
- color: var(--charcoal-text2);
1019
- background-color: var(--charcoal-surface3);
1020
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1021
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1022
- height: 40px;
1023
- }
1024
-
1025
- .c5:not(:disabled):not([aria-disabled]):focus,
1026
- .c5[aria-disabled='false']:focus {
1027
- outline: none;
1028
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1029
- }
1030
-
1031
- .c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1032
- .c5[aria-disabled='false']:focus:not(:focus-visible) {
1033
- box-shadow: none;
1034
- }
1035
-
1036
- .c5:not(:disabled):not([aria-disabled]):focus-visible,
1037
- .c5[aria-disabled='false']:focus-visible {
1038
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1039
- }
1040
-
1041
- .c5:not(:disabled):not([aria-disabled]):hover,
1042
- .c5[aria-disabled='false']:hover {
1043
- color: var(--charcoal-text2-hover);
1044
- background-color: var(--charcoal-surface3-hover);
1045
- }
1046
-
1047
- .c5:not(:disabled):not([aria-disabled]):active,
1048
- .c5[aria-disabled='false']:active {
1049
- color: var(--charcoal-text2-press);
1050
- background-color: var(--charcoal-surface3-press);
1051
- }
1052
-
1053
- .c5:disabled,
1054
- .c5[aria-disabled]:not([aria-disabled='false']) {
1055
- opacity: 0.32;
1056
- }
1057
-
1058
- <div
1059
- data-dark={false}
1060
- >
1061
- <div
1062
- css="
1063
- display: grid;
1064
- gap: 24px;
1065
- "
1066
- >
1067
- <div
1068
- css="
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>
1190
- </div>
1191
- `;
1192
-
1193
80
  exports[`Storybook Tests Button Link 1`] = `
1194
- .c0 {
1195
- cursor: pointer;
1196
- -webkit-appearance: none;
1197
- -moz-appearance: none;
1198
- appearance: none;
1199
- background: transparent;
1200
- padding: 0;
1201
- border-style: none;
1202
- outline: none;
1203
- color: inherit;
1204
- text-rendering: inherit;
1205
- -webkit-letter-spacing: inherit;
1206
- -moz-letter-spacing: inherit;
1207
- -ms-letter-spacing: inherit;
1208
- letter-spacing: inherit;
1209
- word-spacing: inherit;
1210
- -webkit-text-decoration: none;
1211
- text-decoration: none;
1212
- font: inherit;
1213
- margin: 0;
1214
- overflow: visible;
1215
- text-transform: none;
1216
- }
1217
-
1218
- .c0:disabled,
1219
- .c0[aria-disabled]:not([aria-disabled=false]) {
1220
- cursor: default;
1221
- }
1222
-
1223
- .c0:focus {
1224
- outline: none;
1225
- }
1226
-
1227
- .c0::-moz-focus-inner {
1228
- border-style: none;
1229
- padding: 0;
1230
- }
1231
-
1232
- .c1 {
1233
- width: -webkit-min-content;
1234
- width: -moz-min-content;
1235
- width: min-content;
1236
- display: inline-grid;
1237
- -webkit-align-items: center;
1238
- -webkit-box-align: center;
1239
- -ms-flex-align: center;
1240
- align-items: center;
1241
- -webkit-box-pack: center;
1242
- -webkit-justify-content: center;
1243
- -ms-flex-pack: center;
1244
- justify-content: center;
1245
- cursor: pointer;
1246
- -webkit-user-select: none;
1247
- -moz-user-select: none;
1248
- -ms-user-select: none;
1249
- user-select: none;
1250
- white-space: nowrap;
1251
- border-radius: 999999px;
1252
- font-size: 14px;
1253
- line-height: 22px;
1254
- font-weight: bold;
1255
- padding-right: 24px;
1256
- padding-left: 24px;
1257
- color: var(--charcoal-text2);
1258
- background-color: var(--charcoal-surface3);
1259
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1260
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1261
- height: 40px;
1262
- }
1263
-
1264
- .c1:not(:disabled):not([aria-disabled]):focus,
1265
- .c1[aria-disabled='false']:focus {
1266
- outline: none;
1267
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1268
- }
1269
-
1270
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1271
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1272
- box-shadow: none;
1273
- }
1274
-
1275
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1276
- .c1[aria-disabled='false']:focus-visible {
1277
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1278
- }
1279
-
1280
- .c1:not(:disabled):not([aria-disabled]):hover,
1281
- .c1[aria-disabled='false']:hover {
1282
- color: var(--charcoal-text2-hover);
1283
- background-color: var(--charcoal-surface3-hover);
1284
- }
1285
-
1286
- .c1:not(:disabled):not([aria-disabled]):active,
1287
- .c1[aria-disabled='false']:active {
1288
- color: var(--charcoal-text2-press);
1289
- background-color: var(--charcoal-surface3-press);
1290
- }
1291
-
1292
- .c1:disabled,
1293
- .c1[aria-disabled]:not([aria-disabled='false']) {
1294
- opacity: 0.32;
1295
- }
1296
-
1297
81
  <div
1298
82
  data-dark={false}
1299
83
  >
1300
- <a
1301
- className="c0 c1"
1302
- href="#"
84
+ <button
85
+ className="charcoal-button"
86
+ to="#"
1303
87
  >
1304
88
  Button
1305
- </a>
89
+ </button>
1306
90
  </div>
1307
91
  `;
1308
92
 
1309
93
  exports[`Storybook Tests Button Navigation 1`] = `
1310
- .c0 {
1311
- cursor: pointer;
1312
- -webkit-appearance: none;
1313
- -moz-appearance: none;
1314
- appearance: none;
1315
- background: transparent;
1316
- padding: 0;
1317
- border-style: none;
1318
- outline: none;
1319
- color: inherit;
1320
- text-rendering: inherit;
1321
- -webkit-letter-spacing: inherit;
1322
- -moz-letter-spacing: inherit;
1323
- -ms-letter-spacing: inherit;
1324
- letter-spacing: inherit;
1325
- word-spacing: inherit;
1326
- -webkit-text-decoration: none;
1327
- text-decoration: none;
1328
- font: inherit;
1329
- margin: 0;
1330
- overflow: visible;
1331
- text-transform: none;
1332
- }
1333
-
1334
- .c0:disabled,
1335
- .c0[aria-disabled]:not([aria-disabled=false]) {
1336
- cursor: default;
1337
- }
1338
-
1339
- .c0:focus {
1340
- outline: none;
1341
- }
1342
-
1343
- .c0::-moz-focus-inner {
1344
- border-style: none;
1345
- padding: 0;
1346
- }
1347
-
1348
- .c1 {
1349
- width: -webkit-min-content;
1350
- width: -moz-min-content;
1351
- width: min-content;
1352
- display: inline-grid;
1353
- -webkit-align-items: center;
1354
- -webkit-box-align: center;
1355
- -ms-flex-align: center;
1356
- align-items: center;
1357
- -webkit-box-pack: center;
1358
- -webkit-justify-content: center;
1359
- -ms-flex-pack: center;
1360
- justify-content: center;
1361
- cursor: pointer;
1362
- -webkit-user-select: none;
1363
- -moz-user-select: none;
1364
- -ms-user-select: none;
1365
- user-select: none;
1366
- white-space: nowrap;
1367
- border-radius: 999999px;
1368
- font-size: 14px;
1369
- line-height: 22px;
1370
- font-weight: bold;
1371
- padding-right: 24px;
1372
- padding-left: 24px;
1373
- color: var(--charcoal-text5);
1374
- background-color: var(--charcoal-surface6);
1375
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1376
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1377
- height: 40px;
1378
- }
1379
-
1380
- .c1:not(:disabled):not([aria-disabled]):focus,
1381
- .c1[aria-disabled='false']:focus {
1382
- outline: none;
1383
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1384
- }
1385
-
1386
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1387
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1388
- box-shadow: none;
1389
- }
1390
-
1391
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1392
- .c1[aria-disabled='false']:focus-visible {
1393
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1394
- }
1395
-
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
- .c1:disabled,
1409
- .c1[aria-disabled]:not([aria-disabled='false']) {
1410
- opacity: 0.32;
1411
- }
1412
-
1413
94
  <div
1414
95
  data-dark={false}
1415
96
  >
1416
97
  <button
1417
- className="c0 c1"
1418
- disabled={false}
98
+ className="charcoal-button"
99
+ data-variant="Navigation"
1419
100
  >
1420
101
  Button
1421
102
  </button>
@@ -1423,115 +104,11 @@ exports[`Storybook Tests Button Navigation 1`] = `
1423
104
  `;
1424
105
 
1425
106
  exports[`Storybook Tests Button Nihongo 1`] = `
1426
- .c0 {
1427
- cursor: pointer;
1428
- -webkit-appearance: none;
1429
- -moz-appearance: none;
1430
- appearance: none;
1431
- background: transparent;
1432
- padding: 0;
1433
- border-style: none;
1434
- outline: none;
1435
- color: inherit;
1436
- text-rendering: inherit;
1437
- -webkit-letter-spacing: inherit;
1438
- -moz-letter-spacing: inherit;
1439
- -ms-letter-spacing: inherit;
1440
- letter-spacing: inherit;
1441
- word-spacing: inherit;
1442
- -webkit-text-decoration: none;
1443
- text-decoration: none;
1444
- font: inherit;
1445
- margin: 0;
1446
- overflow: visible;
1447
- text-transform: none;
1448
- }
1449
-
1450
- .c0:disabled,
1451
- .c0[aria-disabled]:not([aria-disabled=false]) {
1452
- cursor: default;
1453
- }
1454
-
1455
- .c0:focus {
1456
- outline: none;
1457
- }
1458
-
1459
- .c0::-moz-focus-inner {
1460
- border-style: none;
1461
- padding: 0;
1462
- }
1463
-
1464
- .c1 {
1465
- width: -webkit-min-content;
1466
- width: -moz-min-content;
1467
- width: min-content;
1468
- display: inline-grid;
1469
- -webkit-align-items: center;
1470
- -webkit-box-align: center;
1471
- -ms-flex-align: center;
1472
- align-items: center;
1473
- -webkit-box-pack: center;
1474
- -webkit-justify-content: center;
1475
- -ms-flex-pack: center;
1476
- justify-content: center;
1477
- cursor: pointer;
1478
- -webkit-user-select: none;
1479
- -moz-user-select: none;
1480
- -ms-user-select: none;
1481
- user-select: none;
1482
- white-space: nowrap;
1483
- border-radius: 999999px;
1484
- font-size: 14px;
1485
- line-height: 22px;
1486
- font-weight: bold;
1487
- padding-right: 24px;
1488
- padding-left: 24px;
1489
- color: var(--charcoal-text2);
1490
- background-color: var(--charcoal-surface3);
1491
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1492
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1493
- height: 40px;
1494
- }
1495
-
1496
- .c1:not(:disabled):not([aria-disabled]):focus,
1497
- .c1[aria-disabled='false']:focus {
1498
- outline: none;
1499
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1500
- }
1501
-
1502
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1503
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1504
- box-shadow: none;
1505
- }
1506
-
1507
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1508
- .c1[aria-disabled='false']:focus-visible {
1509
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1510
- }
1511
-
1512
- .c1:not(:disabled):not([aria-disabled]):hover,
1513
- .c1[aria-disabled='false']:hover {
1514
- color: var(--charcoal-text2-hover);
1515
- background-color: var(--charcoal-surface3-hover);
1516
- }
1517
-
1518
- .c1:not(:disabled):not([aria-disabled]):active,
1519
- .c1[aria-disabled='false']:active {
1520
- color: var(--charcoal-text2-press);
1521
- background-color: var(--charcoal-surface3-press);
1522
- }
1523
-
1524
- .c1:disabled,
1525
- .c1[aria-disabled]:not([aria-disabled='false']) {
1526
- opacity: 0.32;
1527
- }
1528
-
1529
107
  <div
1530
108
  data-dark={false}
1531
109
  >
1532
110
  <button
1533
- className="c0 c1"
1534
- disabled={false}
111
+ className="charcoal-button"
1535
112
  >
1536
113
  日本語だよ
1537
114
  </button>
@@ -1539,115 +116,12 @@ exports[`Storybook Tests Button Nihongo 1`] = `
1539
116
  `;
1540
117
 
1541
118
  exports[`Storybook Tests Button Overlay 1`] = `
1542
- .c0 {
1543
- cursor: pointer;
1544
- -webkit-appearance: none;
1545
- -moz-appearance: none;
1546
- appearance: none;
1547
- background: transparent;
1548
- padding: 0;
1549
- border-style: none;
1550
- outline: none;
1551
- color: inherit;
1552
- text-rendering: inherit;
1553
- -webkit-letter-spacing: inherit;
1554
- -moz-letter-spacing: inherit;
1555
- -ms-letter-spacing: inherit;
1556
- letter-spacing: inherit;
1557
- word-spacing: inherit;
1558
- -webkit-text-decoration: none;
1559
- text-decoration: none;
1560
- font: inherit;
1561
- margin: 0;
1562
- overflow: visible;
1563
- text-transform: none;
1564
- }
1565
-
1566
- .c0:disabled,
1567
- .c0[aria-disabled]:not([aria-disabled=false]) {
1568
- cursor: default;
1569
- }
1570
-
1571
- .c0:focus {
1572
- outline: none;
1573
- }
1574
-
1575
- .c0::-moz-focus-inner {
1576
- border-style: none;
1577
- padding: 0;
1578
- }
1579
-
1580
- .c1 {
1581
- width: -webkit-min-content;
1582
- width: -moz-min-content;
1583
- width: min-content;
1584
- display: inline-grid;
1585
- -webkit-align-items: center;
1586
- -webkit-box-align: center;
1587
- -ms-flex-align: center;
1588
- align-items: center;
1589
- -webkit-box-pack: center;
1590
- -webkit-justify-content: center;
1591
- -ms-flex-pack: center;
1592
- justify-content: center;
1593
- cursor: pointer;
1594
- -webkit-user-select: none;
1595
- -moz-user-select: none;
1596
- -ms-user-select: none;
1597
- user-select: none;
1598
- white-space: nowrap;
1599
- border-radius: 999999px;
1600
- font-size: 14px;
1601
- line-height: 22px;
1602
- font-weight: bold;
1603
- padding-right: 24px;
1604
- padding-left: 24px;
1605
- color: var(--charcoal-text5);
1606
- background-color: var(--charcoal-surface4);
1607
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1608
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1609
- height: 40px;
1610
- }
1611
-
1612
- .c1:not(:disabled):not([aria-disabled]):focus,
1613
- .c1[aria-disabled='false']:focus {
1614
- outline: none;
1615
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1616
- }
1617
-
1618
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1619
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1620
- box-shadow: none;
1621
- }
1622
-
1623
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1624
- .c1[aria-disabled='false']:focus-visible {
1625
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1626
- }
1627
-
1628
- .c1:not(:disabled):not([aria-disabled]):hover,
1629
- .c1[aria-disabled='false']:hover {
1630
- color: var(--charcoal-text5-hover);
1631
- background-color: var(--charcoal-surface4-hover);
1632
- }
1633
-
1634
- .c1:not(:disabled):not([aria-disabled]):active,
1635
- .c1[aria-disabled='false']:active {
1636
- color: var(--charcoal-text5-press);
1637
- background-color: var(--charcoal-surface4-press);
1638
- }
1639
-
1640
- .c1:disabled,
1641
- .c1[aria-disabled]:not([aria-disabled='false']) {
1642
- opacity: 0.32;
1643
- }
1644
-
1645
119
  <div
1646
120
  data-dark={false}
1647
121
  >
1648
122
  <button
1649
- className="c0 c1"
1650
- disabled={false}
123
+ className="charcoal-button"
124
+ data-variant="Overlay"
1651
125
  >
1652
126
  Button
1653
127
  </button>
@@ -1655,115 +129,12 @@ exports[`Storybook Tests Button Overlay 1`] = `
1655
129
  `;
1656
130
 
1657
131
  exports[`Storybook Tests Button Primary 1`] = `
1658
- .c0 {
1659
- cursor: pointer;
1660
- -webkit-appearance: none;
1661
- -moz-appearance: none;
1662
- appearance: none;
1663
- background: transparent;
1664
- padding: 0;
1665
- border-style: none;
1666
- outline: none;
1667
- color: inherit;
1668
- text-rendering: inherit;
1669
- -webkit-letter-spacing: inherit;
1670
- -moz-letter-spacing: inherit;
1671
- -ms-letter-spacing: inherit;
1672
- letter-spacing: inherit;
1673
- word-spacing: inherit;
1674
- -webkit-text-decoration: none;
1675
- text-decoration: none;
1676
- font: inherit;
1677
- margin: 0;
1678
- overflow: visible;
1679
- text-transform: none;
1680
- }
1681
-
1682
- .c0:disabled,
1683
- .c0[aria-disabled]:not([aria-disabled=false]) {
1684
- cursor: default;
1685
- }
1686
-
1687
- .c0:focus {
1688
- outline: none;
1689
- }
1690
-
1691
- .c0::-moz-focus-inner {
1692
- border-style: none;
1693
- padding: 0;
1694
- }
1695
-
1696
- .c1 {
1697
- width: -webkit-min-content;
1698
- width: -moz-min-content;
1699
- width: min-content;
1700
- display: inline-grid;
1701
- -webkit-align-items: center;
1702
- -webkit-box-align: center;
1703
- -ms-flex-align: center;
1704
- align-items: center;
1705
- -webkit-box-pack: center;
1706
- -webkit-justify-content: center;
1707
- -ms-flex-pack: center;
1708
- justify-content: center;
1709
- cursor: pointer;
1710
- -webkit-user-select: none;
1711
- -moz-user-select: none;
1712
- -ms-user-select: none;
1713
- user-select: none;
1714
- white-space: nowrap;
1715
- border-radius: 999999px;
1716
- font-size: 14px;
1717
- line-height: 22px;
1718
- font-weight: bold;
1719
- padding-right: 24px;
1720
- padding-left: 24px;
1721
- color: var(--charcoal-text5);
1722
- background-color: var(--charcoal-brand);
1723
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1724
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1725
- height: 40px;
1726
- }
1727
-
1728
- .c1:not(:disabled):not([aria-disabled]):focus,
1729
- .c1[aria-disabled='false']:focus {
1730
- outline: none;
1731
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1732
- }
1733
-
1734
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1735
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1736
- box-shadow: none;
1737
- }
1738
-
1739
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1740
- .c1[aria-disabled='false']:focus-visible {
1741
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1742
- }
1743
-
1744
- .c1:not(:disabled):not([aria-disabled]):hover,
1745
- .c1[aria-disabled='false']:hover {
1746
- color: var(--charcoal-text5-hover);
1747
- background-color: var(--charcoal-brand-hover);
1748
- }
1749
-
1750
- .c1:not(:disabled):not([aria-disabled]):active,
1751
- .c1[aria-disabled='false']:active {
1752
- color: var(--charcoal-text5-press);
1753
- background-color: var(--charcoal-brand-press);
1754
- }
1755
-
1756
- .c1:disabled,
1757
- .c1[aria-disabled]:not([aria-disabled='false']) {
1758
- opacity: 0.32;
1759
- }
1760
-
1761
132
  <div
1762
133
  data-dark={false}
1763
134
  >
1764
135
  <button
1765
- className="c0 c1"
1766
- disabled={false}
136
+ className="charcoal-button"
137
+ data-variant="Primary"
1767
138
  >
1768
139
  Button
1769
140
  </button>
@@ -1771,115 +142,12 @@ exports[`Storybook Tests Button Primary 1`] = `
1771
142
  `;
1772
143
 
1773
144
  exports[`Storybook Tests Button Small 1`] = `
1774
- .c0 {
1775
- cursor: pointer;
1776
- -webkit-appearance: none;
1777
- -moz-appearance: none;
1778
- appearance: none;
1779
- background: transparent;
1780
- padding: 0;
1781
- border-style: none;
1782
- outline: none;
1783
- color: inherit;
1784
- text-rendering: inherit;
1785
- -webkit-letter-spacing: inherit;
1786
- -moz-letter-spacing: inherit;
1787
- -ms-letter-spacing: inherit;
1788
- letter-spacing: inherit;
1789
- word-spacing: inherit;
1790
- -webkit-text-decoration: none;
1791
- text-decoration: none;
1792
- font: inherit;
1793
- margin: 0;
1794
- overflow: visible;
1795
- text-transform: none;
1796
- }
1797
-
1798
- .c0:disabled,
1799
- .c0[aria-disabled]:not([aria-disabled=false]) {
1800
- cursor: default;
1801
- }
1802
-
1803
- .c0:focus {
1804
- outline: none;
1805
- }
1806
-
1807
- .c0::-moz-focus-inner {
1808
- border-style: none;
1809
- padding: 0;
1810
- }
1811
-
1812
- .c1 {
1813
- width: -webkit-min-content;
1814
- width: -moz-min-content;
1815
- width: min-content;
1816
- display: inline-grid;
1817
- -webkit-align-items: center;
1818
- -webkit-box-align: center;
1819
- -ms-flex-align: center;
1820
- align-items: center;
1821
- -webkit-box-pack: center;
1822
- -webkit-justify-content: center;
1823
- -ms-flex-pack: center;
1824
- justify-content: center;
1825
- cursor: pointer;
1826
- -webkit-user-select: none;
1827
- -moz-user-select: none;
1828
- -ms-user-select: none;
1829
- user-select: none;
1830
- white-space: nowrap;
1831
- border-radius: 999999px;
1832
- font-size: 14px;
1833
- line-height: 22px;
1834
- font-weight: bold;
1835
- padding-right: 16px;
1836
- padding-left: 16px;
1837
- color: var(--charcoal-text2);
1838
- background-color: var(--charcoal-surface3);
1839
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1840
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1841
- height: 32px;
1842
- }
1843
-
1844
- .c1:not(:disabled):not([aria-disabled]):focus,
1845
- .c1[aria-disabled='false']:focus {
1846
- outline: none;
1847
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1848
- }
1849
-
1850
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1851
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1852
- box-shadow: none;
1853
- }
1854
-
1855
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1856
- .c1[aria-disabled='false']:focus-visible {
1857
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1858
- }
1859
-
1860
- .c1:not(:disabled):not([aria-disabled]):hover,
1861
- .c1[aria-disabled='false']:hover {
1862
- color: var(--charcoal-text2-hover);
1863
- background-color: var(--charcoal-surface3-hover);
1864
- }
1865
-
1866
- .c1:not(:disabled):not([aria-disabled]):active,
1867
- .c1[aria-disabled='false']:active {
1868
- color: var(--charcoal-text2-press);
1869
- background-color: var(--charcoal-surface3-press);
1870
- }
1871
-
1872
- .c1:disabled,
1873
- .c1[aria-disabled]:not([aria-disabled='false']) {
1874
- opacity: 0.32;
1875
- }
1876
-
1877
145
  <div
1878
146
  data-dark={false}
1879
147
  >
1880
148
  <button
1881
- className="c0 c1"
1882
- disabled={false}
149
+ className="charcoal-button"
150
+ data-size="S"
1883
151
  >
1884
152
  Button
1885
153
  </button>