@charcoal-ui/react 3.13.1 → 3.14.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 (30) hide show
  1. package/dist/components/Switch/index.d.ts.map +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js.map +1 -1
  4. package/package.json +8 -8
  5. package/src/README.mdx +68 -0
  6. package/src/SSR.mdx +67 -0
  7. package/src/_lib/index.ts +1 -1
  8. package/src/components/Button/__snapshots__/index.story.storyshot +9 -9
  9. package/src/components/Checkbox/__snapshots__/index.story.storyshot +6 -6
  10. package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
  11. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +1 -1
  12. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +23 -23
  13. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
  14. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +14 -14
  15. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  16. package/src/components/IconButton/__snapshots__/index.story.storyshot +3 -3
  17. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +4 -4
  18. package/src/components/Modal/index.story.tsx +5 -0
  19. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +4 -4
  20. package/src/components/MultiSelect/index.test.tsx +6 -5
  21. package/src/components/Radio/__snapshots__/index.story.storyshot +5 -5
  22. package/src/components/Radio/index.test.tsx +4 -3
  23. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +2 -2
  24. package/src/components/Switch/__snapshots__/index.story.storyshot +4 -4
  25. package/src/components/Switch/index.tsx +0 -1
  26. package/src/components/TagItem/__snapshots__/index.story.storyshot +8 -8
  27. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +11 -11
  28. package/src/components/TextField/__snapshots__/TextField.story.storyshot +13 -13
  29. package/src/components/Modal/__snapshots__/index.story.storyshot +0 -4091
  30. package/src/components/a11y.test.tsx +0 -99
@@ -1,4091 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Storybook Tests react/Modal BackgroundScroll 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]):focus,
75
- .c1[aria-disabled='false']:focus {
76
- outline: none;
77
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
78
- }
79
-
80
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
81
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
82
- box-shadow: none;
83
- }
84
-
85
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
86
- .c1[aria-disabled='false']:focus-visible {
87
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
88
- }
89
-
90
- .c1:not(:disabled):not([aria-disabled]):hover,
91
- .c1[aria-disabled='false']:hover {
92
- color: var(--charcoal-text2-hover);
93
- background-color: var(--charcoal-surface3-hover);
94
- }
95
-
96
- .c1:not(:disabled):not([aria-disabled]):active,
97
- .c1[aria-disabled='false']:active {
98
- color: var(--charcoal-text2-press);
99
- background-color: var(--charcoal-surface3-press);
100
- }
101
-
102
- .c1:disabled,
103
- .c1[aria-disabled]:not([aria-disabled='false']) {
104
- opacity: 0.32;
105
- }
106
-
107
- .c25 {
108
- width: -webkit-fill-available;
109
- width: -moz-available;
110
- width: stretch;
111
- display: inline-grid;
112
- -webkit-align-items: center;
113
- -webkit-box-align: center;
114
- -ms-flex-align: center;
115
- align-items: center;
116
- -webkit-box-pack: center;
117
- -webkit-justify-content: center;
118
- -ms-flex-pack: center;
119
- justify-content: center;
120
- cursor: pointer;
121
- -webkit-user-select: none;
122
- -moz-user-select: none;
123
- -ms-user-select: none;
124
- user-select: none;
125
- white-space: nowrap;
126
- border-radius: 999999px;
127
- font-size: 14px;
128
- line-height: 22px;
129
- font-weight: bold;
130
- padding-right: 24px;
131
- padding-left: 24px;
132
- color: var(--charcoal-text5);
133
- background-color: var(--charcoal-brand);
134
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
135
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
136
- height: 40px;
137
- }
138
-
139
- .c25:not(:disabled):not([aria-disabled]):focus,
140
- .c25[aria-disabled='false']:focus {
141
- outline: none;
142
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
143
- }
144
-
145
- .c25:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
146
- .c25[aria-disabled='false']:focus:not(:focus-visible) {
147
- box-shadow: none;
148
- }
149
-
150
- .c25:not(:disabled):not([aria-disabled]):focus-visible,
151
- .c25[aria-disabled='false']:focus-visible {
152
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
153
- }
154
-
155
- .c25:not(:disabled):not([aria-disabled]):hover,
156
- .c25[aria-disabled='false']:hover {
157
- color: var(--charcoal-text5-hover);
158
- background-color: var(--charcoal-brand-hover);
159
- }
160
-
161
- .c25:not(:disabled):not([aria-disabled]):active,
162
- .c25[aria-disabled='false']:active {
163
- color: var(--charcoal-text5-press);
164
- background-color: var(--charcoal-brand-press);
165
- }
166
-
167
- .c25:disabled,
168
- .c25[aria-disabled]:not([aria-disabled='false']) {
169
- opacity: 0.32;
170
- }
171
-
172
- .c26 {
173
- width: -webkit-fill-available;
174
- width: -moz-available;
175
- width: stretch;
176
- display: inline-grid;
177
- -webkit-align-items: center;
178
- -webkit-box-align: center;
179
- -ms-flex-align: center;
180
- align-items: center;
181
- -webkit-box-pack: center;
182
- -webkit-justify-content: center;
183
- -ms-flex-pack: center;
184
- justify-content: center;
185
- cursor: pointer;
186
- -webkit-user-select: none;
187
- -moz-user-select: none;
188
- -ms-user-select: none;
189
- user-select: none;
190
- white-space: nowrap;
191
- border-radius: 999999px;
192
- font-size: 14px;
193
- line-height: 22px;
194
- font-weight: bold;
195
- padding-right: 24px;
196
- padding-left: 24px;
197
- color: var(--charcoal-text2);
198
- background-color: var(--charcoal-surface3);
199
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
200
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
201
- height: 40px;
202
- }
203
-
204
- .c26:not(:disabled):not([aria-disabled]):focus,
205
- .c26[aria-disabled='false']:focus {
206
- outline: none;
207
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
208
- }
209
-
210
- .c26:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
211
- .c26[aria-disabled='false']:focus:not(:focus-visible) {
212
- box-shadow: none;
213
- }
214
-
215
- .c26:not(:disabled):not([aria-disabled]):focus-visible,
216
- .c26[aria-disabled='false']:focus-visible {
217
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
218
- }
219
-
220
- .c26:not(:disabled):not([aria-disabled]):hover,
221
- .c26[aria-disabled='false']:hover {
222
- color: var(--charcoal-text2-hover);
223
- background-color: var(--charcoal-surface3-hover);
224
- }
225
-
226
- .c26:not(:disabled):not([aria-disabled]):active,
227
- .c26[aria-disabled='false']:active {
228
- color: var(--charcoal-text2-press);
229
- background-color: var(--charcoal-surface3-press);
230
- }
231
-
232
- .c26:disabled,
233
- .c26[aria-disabled]:not([aria-disabled='false']) {
234
- opacity: 0.32;
235
- }
236
-
237
- .c14 {
238
- font-size: 14px;
239
- line-height: 22px;
240
- font-weight: bold;
241
- display: flow-root;
242
- color: var(--charcoal-text1);
243
- }
244
-
245
- .c14::before {
246
- display: block;
247
- width: 0;
248
- height: 0;
249
- content: '';
250
- margin-top: -4px;
251
- }
252
-
253
- .c14::after {
254
- display: block;
255
- width: 0;
256
- height: 0;
257
- content: '';
258
- margin-bottom: -4px;
259
- }
260
-
261
- .c16 {
262
- font-size: 14px;
263
- line-height: 22px;
264
- display: flow-root;
265
- color: var(--charcoal-text3);
266
- -webkit-transition: 0.2s color,0.2s box-shadow;
267
- transition: 0.2s color,0.2s box-shadow;
268
- }
269
-
270
- .c16::before {
271
- display: block;
272
- width: 0;
273
- height: 0;
274
- content: '';
275
- margin-top: -4px;
276
- }
277
-
278
- .c16::after {
279
- display: block;
280
- width: 0;
281
- height: 0;
282
- content: '';
283
- margin-bottom: -4px;
284
- }
285
-
286
- .c16:not(:disabled):not([aria-disabled]):hover,
287
- .c16[aria-disabled='false']:hover {
288
- color: var(--charcoal-text3-hover);
289
- }
290
-
291
- .c16:not(:disabled):not([aria-disabled]):active,
292
- .c16[aria-disabled='false']:active {
293
- color: var(--charcoal-text3-press);
294
- }
295
-
296
- .c16:not(:disabled):not([aria-disabled]):active,
297
- .c16[aria-disabled='false']:active,
298
- .c16:not(:disabled):not([aria-disabled]):focus,
299
- .c16[aria-disabled='false']:focus,
300
- .c16:not(:disabled):not([aria-disabled]):focus-visible,
301
- .c16[aria-disabled='false']:focus-visible {
302
- outline: none;
303
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
304
- }
305
-
306
- .c12 {
307
- display: -webkit-inline-box;
308
- display: -webkit-inline-flex;
309
- display: -ms-inline-flexbox;
310
- display: inline-flex;
311
- -webkit-align-items: center;
312
- -webkit-box-align: center;
313
- -ms-flex-align: center;
314
- align-items: center;
315
- }
316
-
317
- .c12 > .c15 {
318
- margin-left: auto;
319
- }
320
-
321
- .c19 {
322
- display: inline-block;
323
- width: 100%;
324
- }
325
-
326
- .c19:disabled,
327
- .c19[aria-disabled]:not([aria-disabled=false]) {
328
- cursor: default;
329
- opacity: 0.32;
330
- }
331
-
332
- .c20 {
333
- width: 100%;
334
- margin-bottom: 8px;
335
- }
336
-
337
- .c21 {
338
- display: -webkit-box;
339
- display: -webkit-flex;
340
- display: -ms-flexbox;
341
- display: flex;
342
- -webkit-box-pack: justify;
343
- -webkit-justify-content: space-between;
344
- -ms-flex-pack: justify;
345
- justify-content: space-between;
346
- -webkit-align-items: center;
347
- -webkit-box-align: center;
348
- -ms-flex-align: center;
349
- align-items: center;
350
- height: 40px;
351
- width: 100%;
352
- box-sizing: border-box;
353
- border: none;
354
- cursor: pointer;
355
- gap: 4px;
356
- padding-right: 8px;
357
- padding-left: 8px;
358
- background-color: var(--charcoal-surface3);
359
- border-radius: 4px;
360
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
361
- transition: 0.2s box-shadow,0.2s background-color;
362
- }
363
-
364
- .c21:disabled,
365
- .c21[aria-disabled]:not([aria-disabled=false]) {
366
- cursor: default;
367
- }
368
-
369
- .c21:not(:disabled):not([aria-disabled]):focus,
370
- .c21[aria-disabled='false']:focus {
371
- outline: none;
372
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
373
- }
374
-
375
- .c21:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
376
- .c21[aria-disabled='false']:focus:not(:focus-visible) {
377
- box-shadow: none;
378
- }
379
-
380
- .c21:not(:disabled):not([aria-disabled]):focus-visible,
381
- .c21[aria-disabled='false']:focus-visible {
382
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
383
- }
384
-
385
- .c21:not(:disabled):not([aria-disabled]):hover,
386
- .c21[aria-disabled='false']:hover {
387
- background-color: var(--charcoal-surface3-hover);
388
- }
389
-
390
- .c21:not(:disabled):not([aria-disabled]):active,
391
- .c21[aria-disabled='false']:active {
392
- background-color: var(--charcoal-surface3-press);
393
- }
394
-
395
- .c22 {
396
- text-align: left;
397
- font-size: 14px;
398
- line-height: 22px;
399
- display: flow-root;
400
- color: var(--charcoal-text2);
401
- overflow: hidden;
402
- text-overflow: ellipsis;
403
- white-space: nowrap;
404
- }
405
-
406
- .c23 {
407
- color: var(--charcoal-text2);
408
- }
409
-
410
- .c27 {
411
- -webkit-user-select: none;
412
- -moz-user-select: none;
413
- -ms-user-select: none;
414
- user-select: none;
415
- width: 32px;
416
- height: 32px;
417
- display: -webkit-box;
418
- display: -webkit-flex;
419
- display: -ms-flexbox;
420
- display: flex;
421
- -webkit-align-items: center;
422
- -webkit-box-align: center;
423
- -ms-flex-align: center;
424
- align-items: center;
425
- -webkit-box-pack: center;
426
- -webkit-justify-content: center;
427
- -ms-flex-pack: center;
428
- justify-content: center;
429
- color: var(--charcoal-text3);
430
- background-color: var(--charcoal-transparent);
431
- border-radius: 999999px;
432
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
433
- transition: 0.2s background-color,0.2s box-shadow;
434
- }
435
-
436
- .c27:not(:disabled):not([aria-disabled]):hover,
437
- .c27[aria-disabled='false']:hover {
438
- color: var(--charcoal-text3-hover);
439
- background-color: var(--charcoal-transparent-hover);
440
- }
441
-
442
- .c27:not(:disabled):not([aria-disabled]):active,
443
- .c27[aria-disabled='false']:active {
444
- color: var(--charcoal-text3-press);
445
- background-color: var(--charcoal-transparent-press);
446
- }
447
-
448
- .c27:not(:disabled):not([aria-disabled]):focus,
449
- .c27[aria-disabled='false']:focus {
450
- outline: none;
451
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
452
- }
453
-
454
- .c27:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
455
- .c27[aria-disabled='false']:focus:not(:focus-visible) {
456
- box-shadow: none;
457
- }
458
-
459
- .c27:not(:disabled):not([aria-disabled]):focus-visible,
460
- .c27[aria-disabled='false']:focus-visible {
461
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
462
- }
463
-
464
- .c27:disabled,
465
- .c27[aria-disabled]:not([aria-disabled='false']) {
466
- opacity: 0.32;
467
- }
468
-
469
- .c3 {
470
- margin: auto;
471
- position: relative;
472
- height: -webkit-fit-content;
473
- height: -moz-fit-content;
474
- height: fit-content;
475
- width: 440px;
476
- background-color: var(--charcoal-surface1);
477
- border-radius: 24px;
478
- }
479
-
480
- .c3:focus {
481
- outline: none;
482
- }
483
-
484
- .c2 {
485
- z-index: 10;
486
- overflow: auto;
487
- display: -webkit-box;
488
- display: -webkit-flex;
489
- display: -ms-flexbox;
490
- display: flex;
491
- position: fixed;
492
- top: 0;
493
- left: 0;
494
- width: -webkit-fill-available;
495
- width: -moz-available;
496
- height: 100%;
497
- -webkit-box-pack: center;
498
- -webkit-justify-content: center;
499
- -ms-flex-pack: center;
500
- justify-content: center;
501
- padding: 40px 0;
502
- box-sizing: border-box;
503
- background-color: var(--charcoal-surface4);
504
- }
505
-
506
- .c28 {
507
- position: absolute;
508
- top: 8px;
509
- right: 8px;
510
- color: var(--charcoal-text3);
511
- -webkit-transition: 0.2s color;
512
- transition: 0.2s color;
513
- }
514
-
515
- .c28:not(:disabled):not([aria-disabled]):hover,
516
- .c28[aria-disabled='false']:hover {
517
- color: var(--charcoal-text3-hover);
518
- }
519
-
520
- .c28:not(:disabled):not([aria-disabled]):active,
521
- .c28[aria-disabled='false']:active {
522
- color: var(--charcoal-text3-press);
523
- }
524
-
525
- .c5 {
526
- margin: 0;
527
- font-weight: inherit;
528
- font-size: inherit;
529
- }
530
-
531
- .c4 {
532
- height: 64px;
533
- display: grid;
534
- -webkit-align-content: center;
535
- -ms-flex-line-pack: center;
536
- align-content: center;
537
- -webkit-box-pack: center;
538
- -webkit-justify-content: center;
539
- -ms-flex-pack: center;
540
- justify-content: center;
541
- }
542
-
543
- .c6 {
544
- color: var(--charcoal-text1);
545
- font-size: 16px;
546
- line-height: 24px;
547
- font-weight: bold;
548
- display: flow-root;
549
- }
550
-
551
- .c6::before {
552
- display: block;
553
- width: 0;
554
- height: 0;
555
- content: '';
556
- margin-top: -4px;
557
- }
558
-
559
- .c6::after {
560
- display: block;
561
- width: 0;
562
- height: 0;
563
- content: '';
564
- margin-bottom: -4px;
565
- }
566
-
567
- .c9 {
568
- padding-left: 16px;
569
- padding-right: 16px;
570
- }
571
-
572
- .c7 {
573
- padding-bottom: 40px;
574
- }
575
-
576
- .c24 {
577
- display: grid;
578
- grid-auto-flow: row;
579
- grid-row-gap: 8px;
580
- padding-top: 16px;
581
- padding-left: 16px;
582
- padding-right: 16px;
583
- }
584
-
585
- .c11 {
586
- display: -webkit-box;
587
- display: -webkit-flex;
588
- display: -ms-flexbox;
589
- display: flex;
590
- -webkit-flex-direction: column;
591
- -ms-flex-direction: column;
592
- flex-direction: column;
593
- }
594
-
595
- .c13 {
596
- margin-bottom: 8px;
597
- }
598
-
599
- .c17 {
600
- display: grid;
601
- grid-template-columns: 1fr;
602
- height: 40px;
603
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
604
- transition: 0.2s background-color,0.2s box-shadow;
605
- color: var(--charcoal-text2);
606
- background-color: var(--charcoal-surface3);
607
- border-radius: 4px;
608
- gap: 4px;
609
- padding: 0 8px;
610
- line-height: 22px;
611
- font-size: 14px;
612
- }
613
-
614
- .c17:not(:disabled):not([aria-disabled]):hover,
615
- .c17 [aria-disabled='false']:hover {
616
- background-color: var(--charcoal-surface3-hover);
617
- }
618
-
619
- .c17:focus-within {
620
- outline: none;
621
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
622
- }
623
-
624
- .c18 {
625
- border: none;
626
- box-sizing: border-box;
627
- outline: none;
628
- font-family: inherit;
629
- -webkit-transform-origin: top left;
630
- -ms-transform-origin: top left;
631
- transform-origin: top left;
632
- -webkit-transform: scale(0.875);
633
- -ms-transform: scale(0.875);
634
- transform: scale(0.875);
635
- width: calc(100% / 0.875);
636
- height: calc(100% / 0.875);
637
- font-size: calc(14px / 0.875);
638
- line-height: calc(22px / 0.875);
639
- padding-left: 0;
640
- padding-right: 0;
641
- border-radius: calc(4px / 0.875);
642
- -webkit-appearance: none;
643
- -moz-appearance: none;
644
- appearance: none;
645
- background: transparent;
646
- color: var(--charcoal-text2);
647
- }
648
-
649
- .c18::-webkit-input-placeholder {
650
- color: var(--charcoal-text3);
651
- }
652
-
653
- .c18::-moz-placeholder {
654
- color: var(--charcoal-text3);
655
- }
656
-
657
- .c18:-ms-input-placeholder {
658
- color: var(--charcoal-text3);
659
- }
660
-
661
- .c18::placeholder {
662
- color: var(--charcoal-text3);
663
- }
664
-
665
- .c8 {
666
- display: grid;
667
- gap: 24px;
668
- }
669
-
670
- .c10 {
671
- color: var(--charcoal-text2);
672
- font-size: 14px;
673
- line-height: 22px;
674
- display: flow-root;
675
- }
676
-
677
- .c10::before {
678
- display: block;
679
- width: 0;
680
- height: 0;
681
- content: '';
682
- margin-top: -4px;
683
- }
684
-
685
- .c10::after {
686
- display: block;
687
- width: 0;
688
- height: 0;
689
- content: '';
690
- margin-bottom: -4px;
691
- }
692
-
693
- @media (max-width:743px) {
694
- .c3 {
695
- max-width: 440px;
696
- width: calc(100% - 48px);
697
- }
698
- }
699
-
700
- @media (max-width:743px) {
701
-
702
- }
703
-
704
- @media (max-width:743px) {
705
-
706
- }
707
-
708
- <div
709
- data-dark={false}
710
- >
711
- <div
712
- aria-hidden={null}
713
- data-overlay-container={true}
714
- >
715
- <div
716
- style={
717
- Object {
718
- "height": 1024,
719
- }
720
- }
721
- >
722
- <button
723
- className="c0 c1"
724
- disabled={false}
725
- onClick={[Function]}
726
- >
727
- Open Modal
728
- </button>
729
- </div>
730
- <div
731
- className="c2"
732
- onClick={[Function]}
733
- onPointerDown={[Function]}
734
- style={Object {}}
735
- >
736
- <div
737
- className="c3"
738
- onBlur={[Function]}
739
- onKeyDown={[Function]}
740
- role="dialog"
741
- size="M"
742
- style={Object {}}
743
- tabIndex={-1}
744
- >
745
- <div
746
- className="c4"
747
- >
748
- <h3
749
- className="c5 c6"
750
- >
751
- react/Title
752
- </h3>
753
- </div>
754
- <div
755
- className="c7"
756
- >
757
- <div
758
- className="c8"
759
- >
760
- <div
761
- className="c9 c10"
762
- >
763
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
764
- </div>
765
- <div
766
- className="c9"
767
- >
768
- <div
769
- className="c11"
770
- >
771
- <div
772
- className="c12 c13"
773
- >
774
- <label
775
- className="c14"
776
- htmlFor="test-id"
777
- id="test-id"
778
- >
779
- Name
780
- </label>
781
- <div
782
- className="c15 c16"
783
- >
784
- <span />
785
- </div>
786
- </div>
787
- <div
788
- className="c17"
789
- >
790
- <input
791
- aria-labelledby="test-id"
792
- className="c18"
793
- disabled={false}
794
- id="test-id"
795
- onChange={[Function]}
796
- placeholder="Nagisa"
797
- readOnly={false}
798
- required={false}
799
- type="text"
800
- value=""
801
- />
802
- </div>
803
- </div>
804
- </div>
805
- <div
806
- className="c9"
807
- >
808
- <div
809
- className="c11"
810
- >
811
- <div
812
- className="c12 c13"
813
- >
814
- <label
815
- className="c14"
816
- htmlFor="test-id"
817
- id="test-id"
818
- >
819
- Country
820
- </label>
821
- <div
822
- className="c15 c16"
823
- >
824
- <span />
825
- </div>
826
- </div>
827
- <div
828
- className="c17"
829
- >
830
- <input
831
- aria-labelledby="test-id"
832
- autoFocus={true}
833
- className="c18"
834
- disabled={false}
835
- id="test-id"
836
- onChange={[Function]}
837
- placeholder="Tokyo"
838
- readOnly={false}
839
- required={false}
840
- type="text"
841
- value=""
842
- />
843
- </div>
844
- </div>
845
- </div>
846
- <div
847
- className="c9"
848
- >
849
- <div
850
- className="c19"
851
- >
852
- <div
853
- className="c12 c20"
854
- >
855
- <label
856
- className="c14"
857
- >
858
- Fruits
859
- </label>
860
- <div
861
- className="c15 c16"
862
- >
863
- <span />
864
- </div>
865
- </div>
866
- <div
867
- aria-hidden="true"
868
- style={
869
- Object {
870
- "border": 0,
871
- "clip": "rect(0 0 0 0)",
872
- "clipPath": "inset(50%)",
873
- "height": "1px",
874
- "margin": "-1px",
875
- "overflow": "hidden",
876
- "padding": 0,
877
- "position": "absolute",
878
- "whiteSpace": "nowrap",
879
- "width": "1px",
880
- }
881
- }
882
- >
883
- <select
884
- onChange={[Function]}
885
- tabIndex={-1}
886
- value="10"
887
- >
888
- <option
889
- value="10"
890
- >
891
- 10
892
- </option>
893
- <option
894
- value="20"
895
- >
896
- 20
897
- </option>
898
- <option
899
- value="30"
900
- >
901
- 30
902
- </option>
903
- </select>
904
- </div>
905
- <button
906
- className="c21"
907
- onClick={[Function]}
908
- type="button"
909
- >
910
- <span
911
- className="c22"
912
- >
913
- Apple
914
- </span>
915
- <pixiv-icon
916
- class="c23"
917
- name="16/Menu"
918
- />
919
- </button>
920
- </div>
921
- </div>
922
- </div>
923
- <div
924
- className="c24"
925
- >
926
- <button
927
- className="c0 c25"
928
- disabled={false}
929
- onClick={[Function]}
930
- >
931
- Apply
932
- </button>
933
- <button
934
- className="c0 c26"
935
- disabled={false}
936
- onClick={[Function]}
937
- >
938
- Cancel
939
- </button>
940
- </div>
941
- </div>
942
- <button
943
- aria-label="Close"
944
- className="c0 c27 c28"
945
- onClick={[Function]}
946
- type="button"
947
- >
948
- <pixiv-icon
949
- aria-hidden="true"
950
- name="24/Close"
951
- />
952
- </button>
953
- </div>
954
- </div>
955
- </div>
956
- </div>
957
- `;
958
-
959
- exports[`Storybook Tests react/Modal BottomSheet 1`] = `
960
- .c0 {
961
- cursor: pointer;
962
- -webkit-appearance: none;
963
- -moz-appearance: none;
964
- appearance: none;
965
- background: transparent;
966
- padding: 0;
967
- border-style: none;
968
- outline: none;
969
- color: inherit;
970
- text-rendering: inherit;
971
- -webkit-letter-spacing: inherit;
972
- -moz-letter-spacing: inherit;
973
- -ms-letter-spacing: inherit;
974
- letter-spacing: inherit;
975
- word-spacing: inherit;
976
- -webkit-text-decoration: none;
977
- text-decoration: none;
978
- font: inherit;
979
- margin: 0;
980
- overflow: visible;
981
- text-transform: none;
982
- }
983
-
984
- .c0:disabled,
985
- .c0[aria-disabled]:not([aria-disabled=false]) {
986
- cursor: default;
987
- }
988
-
989
- .c0:focus {
990
- outline: none;
991
- }
992
-
993
- .c0::-moz-focus-inner {
994
- border-style: none;
995
- padding: 0;
996
- }
997
-
998
- .c1 {
999
- width: -webkit-min-content;
1000
- width: -moz-min-content;
1001
- width: min-content;
1002
- display: inline-grid;
1003
- -webkit-align-items: center;
1004
- -webkit-box-align: center;
1005
- -ms-flex-align: center;
1006
- align-items: center;
1007
- -webkit-box-pack: center;
1008
- -webkit-justify-content: center;
1009
- -ms-flex-pack: center;
1010
- justify-content: center;
1011
- cursor: pointer;
1012
- -webkit-user-select: none;
1013
- -moz-user-select: none;
1014
- -ms-user-select: none;
1015
- user-select: none;
1016
- white-space: nowrap;
1017
- border-radius: 999999px;
1018
- font-size: 14px;
1019
- line-height: 22px;
1020
- font-weight: bold;
1021
- padding-right: 24px;
1022
- padding-left: 24px;
1023
- color: var(--charcoal-text2);
1024
- background-color: var(--charcoal-surface3);
1025
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1026
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1027
- height: 40px;
1028
- }
1029
-
1030
- .c1:not(:disabled):not([aria-disabled]):focus,
1031
- .c1[aria-disabled='false']:focus {
1032
- outline: none;
1033
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1034
- }
1035
-
1036
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1037
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1038
- box-shadow: none;
1039
- }
1040
-
1041
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1042
- .c1[aria-disabled='false']:focus-visible {
1043
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1044
- }
1045
-
1046
- .c1:not(:disabled):not([aria-disabled]):hover,
1047
- .c1[aria-disabled='false']:hover {
1048
- color: var(--charcoal-text2-hover);
1049
- background-color: var(--charcoal-surface3-hover);
1050
- }
1051
-
1052
- .c1:not(:disabled):not([aria-disabled]):active,
1053
- .c1[aria-disabled='false']:active {
1054
- color: var(--charcoal-text2-press);
1055
- background-color: var(--charcoal-surface3-press);
1056
- }
1057
-
1058
- .c1:disabled,
1059
- .c1[aria-disabled]:not([aria-disabled='false']) {
1060
- opacity: 0.32;
1061
- }
1062
-
1063
- .c17 {
1064
- width: -webkit-fill-available;
1065
- width: -moz-available;
1066
- width: stretch;
1067
- display: inline-grid;
1068
- -webkit-align-items: center;
1069
- -webkit-box-align: center;
1070
- -ms-flex-align: center;
1071
- align-items: center;
1072
- -webkit-box-pack: center;
1073
- -webkit-justify-content: center;
1074
- -ms-flex-pack: center;
1075
- justify-content: center;
1076
- cursor: pointer;
1077
- -webkit-user-select: none;
1078
- -moz-user-select: none;
1079
- -ms-user-select: none;
1080
- user-select: none;
1081
- white-space: nowrap;
1082
- border-radius: 999999px;
1083
- font-size: 14px;
1084
- line-height: 22px;
1085
- font-weight: bold;
1086
- padding-right: 24px;
1087
- padding-left: 24px;
1088
- color: var(--charcoal-text5);
1089
- background-color: var(--charcoal-assertive);
1090
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1091
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1092
- height: 40px;
1093
- }
1094
-
1095
- .c17:not(:disabled):not([aria-disabled]):focus,
1096
- .c17[aria-disabled='false']:focus {
1097
- outline: none;
1098
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1099
- }
1100
-
1101
- .c17:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1102
- .c17[aria-disabled='false']:focus:not(:focus-visible) {
1103
- box-shadow: none;
1104
- }
1105
-
1106
- .c17:not(:disabled):not([aria-disabled]):focus-visible,
1107
- .c17[aria-disabled='false']:focus-visible {
1108
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1109
- }
1110
-
1111
- .c17:not(:disabled):not([aria-disabled]):hover,
1112
- .c17[aria-disabled='false']:hover {
1113
- color: var(--charcoal-text5-hover);
1114
- background-color: var(--charcoal-assertive-hover);
1115
- }
1116
-
1117
- .c17:not(:disabled):not([aria-disabled]):active,
1118
- .c17[aria-disabled='false']:active {
1119
- color: var(--charcoal-text5-press);
1120
- background-color: var(--charcoal-assertive-press);
1121
- }
1122
-
1123
- .c17:disabled,
1124
- .c17[aria-disabled]:not([aria-disabled='false']) {
1125
- opacity: 0.32;
1126
- }
1127
-
1128
- .c12 {
1129
- position: relative;
1130
- display: -webkit-box;
1131
- display: -webkit-flex;
1132
- display: -ms-flexbox;
1133
- display: flex;
1134
- cursor: pointer;
1135
- gap: 4px;
1136
- }
1137
-
1138
- .c12:has(input[readonly]) {
1139
- cursor: default;
1140
- }
1141
-
1142
- .c12:disabled,
1143
- .c12[aria-disabled]:not([aria-disabled='false']) {
1144
- cursor: default;
1145
- opacity: 0.32;
1146
- }
1147
-
1148
- .c13 {
1149
- position: relative;
1150
- }
1151
-
1152
- .c14[type='checkbox'] {
1153
- -webkit-appearance: none;
1154
- -moz-appearance: none;
1155
- appearance: none;
1156
- display: block;
1157
- cursor: pointer;
1158
- margin: 0;
1159
- width: 20px;
1160
- height: 20px;
1161
- border-radius: 4px;
1162
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1163
- transition: 0.2s box-shadow,0.2s background-color;
1164
- }
1165
-
1166
- .c14[type='checkbox']:disabled {
1167
- cursor: default;
1168
- }
1169
-
1170
- .c14[type='checkbox'][readonly] {
1171
- cursor: default;
1172
- opacity: 0.32;
1173
- }
1174
-
1175
- .c14[type='checkbox']:checked {
1176
- background-color: var(--charcoal-brand);
1177
- }
1178
-
1179
- .c14[type='checkbox']:checked:not(:disabled):not([aria-disabled]):hover,
1180
- .c14[type='checkbox']:checked[aria-disabled='false']:hover {
1181
- background-color: var(--charcoal-brand-hover);
1182
- }
1183
-
1184
- .c14[type='checkbox']:checked:not(:disabled):not([aria-disabled]):active,
1185
- .c14[type='checkbox']:checked[aria-disabled='false']:active {
1186
- background-color: var(--charcoal-brand-press);
1187
- }
1188
-
1189
- .c14[type='checkbox']:not(:disabled):not([aria-disabled]):focus,
1190
- .c14[type='checkbox'][aria-disabled='false']:focus {
1191
- outline: none;
1192
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1193
- }
1194
-
1195
- .c14[type='checkbox']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1196
- .c14[type='checkbox'][aria-disabled='false']:focus:not(:focus-visible) {
1197
- box-shadow: none;
1198
- }
1199
-
1200
- .c14[type='checkbox']:not(:disabled):not([aria-disabled]):focus-visible,
1201
- .c14[type='checkbox'][aria-disabled='false']:focus-visible {
1202
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1203
- }
1204
-
1205
- .c14[type='checkbox']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
1206
- .c14[type='checkbox'][aria-disabled='false'][aria-invalid='true'] {
1207
- box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
1208
- }
1209
-
1210
- .c14[type='checkbox']:not(:checked) {
1211
- border-width: 2px;
1212
- border-style: solid;
1213
- border-color: var(--charcoal-text4);
1214
- }
1215
-
1216
- .c15 {
1217
- position: absolute;
1218
- top: -2px;
1219
- left: -2px;
1220
- box-sizing: border-box;
1221
- display: -webkit-box;
1222
- display: -webkit-flex;
1223
- display: -ms-flexbox;
1224
- display: flex;
1225
- -webkit-align-items: center;
1226
- -webkit-box-align: center;
1227
- -ms-flex-align: center;
1228
- align-items: center;
1229
- -webkit-box-pack: center;
1230
- -webkit-justify-content: center;
1231
- -ms-flex-pack: center;
1232
- justify-content: center;
1233
- width: 24px;
1234
- height: 24px;
1235
- color: var(--charcoal-text5);
1236
- }
1237
-
1238
- .c16 {
1239
- color: var(--charcoal-text2);
1240
- font-size: 14px;
1241
- line-height: 20px;
1242
- }
1243
-
1244
- .c18 {
1245
- -webkit-user-select: none;
1246
- -moz-user-select: none;
1247
- -ms-user-select: none;
1248
- user-select: none;
1249
- width: 32px;
1250
- height: 32px;
1251
- display: -webkit-box;
1252
- display: -webkit-flex;
1253
- display: -ms-flexbox;
1254
- display: flex;
1255
- -webkit-align-items: center;
1256
- -webkit-box-align: center;
1257
- -ms-flex-align: center;
1258
- align-items: center;
1259
- -webkit-box-pack: center;
1260
- -webkit-justify-content: center;
1261
- -ms-flex-pack: center;
1262
- justify-content: center;
1263
- color: var(--charcoal-text3);
1264
- background-color: var(--charcoal-transparent);
1265
- border-radius: 999999px;
1266
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1267
- transition: 0.2s background-color,0.2s box-shadow;
1268
- }
1269
-
1270
- .c18:not(:disabled):not([aria-disabled]):hover,
1271
- .c18[aria-disabled='false']:hover {
1272
- color: var(--charcoal-text3-hover);
1273
- background-color: var(--charcoal-transparent-hover);
1274
- }
1275
-
1276
- .c18:not(:disabled):not([aria-disabled]):active,
1277
- .c18[aria-disabled='false']:active {
1278
- color: var(--charcoal-text3-press);
1279
- background-color: var(--charcoal-transparent-press);
1280
- }
1281
-
1282
- .c18:not(:disabled):not([aria-disabled]):focus,
1283
- .c18[aria-disabled='false']:focus {
1284
- outline: none;
1285
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1286
- }
1287
-
1288
- .c18:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1289
- .c18[aria-disabled='false']:focus:not(:focus-visible) {
1290
- box-shadow: none;
1291
- }
1292
-
1293
- .c18:not(:disabled):not([aria-disabled]):focus-visible,
1294
- .c18[aria-disabled='false']:focus-visible {
1295
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1296
- }
1297
-
1298
- .c18:disabled,
1299
- .c18[aria-disabled]:not([aria-disabled='false']) {
1300
- opacity: 0.32;
1301
- }
1302
-
1303
- .c3 {
1304
- margin: auto;
1305
- position: relative;
1306
- height: -webkit-fit-content;
1307
- height: -moz-fit-content;
1308
- height: fit-content;
1309
- width: 440px;
1310
- background-color: var(--charcoal-surface1);
1311
- border-radius: 24px;
1312
- }
1313
-
1314
- .c3:focus {
1315
- outline: none;
1316
- }
1317
-
1318
- .c2 {
1319
- z-index: 10;
1320
- overflow: auto;
1321
- display: -webkit-box;
1322
- display: -webkit-flex;
1323
- display: -ms-flexbox;
1324
- display: flex;
1325
- position: fixed;
1326
- top: 0;
1327
- left: 0;
1328
- width: -webkit-fill-available;
1329
- width: -moz-available;
1330
- height: 100%;
1331
- -webkit-box-pack: center;
1332
- -webkit-justify-content: center;
1333
- -ms-flex-pack: center;
1334
- justify-content: center;
1335
- padding: 40px 0;
1336
- box-sizing: border-box;
1337
- background-color: var(--charcoal-surface4);
1338
- }
1339
-
1340
- .c19 {
1341
- position: absolute;
1342
- top: 8px;
1343
- right: 8px;
1344
- color: var(--charcoal-text3);
1345
- -webkit-transition: 0.2s color;
1346
- transition: 0.2s color;
1347
- }
1348
-
1349
- .c19:not(:disabled):not([aria-disabled]):hover,
1350
- .c19[aria-disabled='false']:hover {
1351
- color: var(--charcoal-text3-hover);
1352
- }
1353
-
1354
- .c19:not(:disabled):not([aria-disabled]):active,
1355
- .c19[aria-disabled='false']:active {
1356
- color: var(--charcoal-text3-press);
1357
- }
1358
-
1359
- .c5 {
1360
- margin: 0;
1361
- font-weight: inherit;
1362
- font-size: inherit;
1363
- }
1364
-
1365
- .c4 {
1366
- height: 64px;
1367
- display: grid;
1368
- -webkit-align-content: center;
1369
- -ms-flex-line-pack: center;
1370
- align-content: center;
1371
- -webkit-box-pack: center;
1372
- -webkit-justify-content: center;
1373
- -ms-flex-pack: center;
1374
- justify-content: center;
1375
- }
1376
-
1377
- .c6 {
1378
- color: var(--charcoal-text1);
1379
- font-size: 16px;
1380
- line-height: 24px;
1381
- font-weight: bold;
1382
- display: flow-root;
1383
- }
1384
-
1385
- .c6::before {
1386
- display: block;
1387
- width: 0;
1388
- height: 0;
1389
- content: '';
1390
- margin-top: -4px;
1391
- }
1392
-
1393
- .c6::after {
1394
- display: block;
1395
- width: 0;
1396
- height: 0;
1397
- content: '';
1398
- margin-bottom: -4px;
1399
- }
1400
-
1401
- .c9 {
1402
- padding-left: 16px;
1403
- padding-right: 16px;
1404
- }
1405
-
1406
- .c7 {
1407
- padding-bottom: 40px;
1408
- }
1409
-
1410
- .c11 {
1411
- display: grid;
1412
- grid-auto-flow: row;
1413
- grid-row-gap: 8px;
1414
- padding-top: 16px;
1415
- padding-left: 16px;
1416
- padding-right: 16px;
1417
- }
1418
-
1419
- .c8 {
1420
- display: grid;
1421
- gap: 24px;
1422
- }
1423
-
1424
- .c10 {
1425
- color: var(--charcoal-text2);
1426
- font-size: 14px;
1427
- line-height: 22px;
1428
- display: flow-root;
1429
- }
1430
-
1431
- .c10::before {
1432
- display: block;
1433
- width: 0;
1434
- height: 0;
1435
- content: '';
1436
- margin-top: -4px;
1437
- }
1438
-
1439
- .c10::after {
1440
- display: block;
1441
- width: 0;
1442
- height: 0;
1443
- content: '';
1444
- margin-bottom: -4px;
1445
- }
1446
-
1447
- @media (max-width:743px) {
1448
- .c3 {
1449
- max-width: 440px;
1450
- width: calc(100% - 48px);
1451
- max-width: unset;
1452
- width: 100%;
1453
- border-radius: 0;
1454
- margin: auto 0 0 0;
1455
- }
1456
- }
1457
-
1458
- @media (max-width:743px) {
1459
- .c2 {
1460
- padding: 0;
1461
- }
1462
- }
1463
-
1464
- @media (max-width:743px) {
1465
- .c4 {
1466
- height: 48px;
1467
- }
1468
- }
1469
-
1470
- <div
1471
- data-dark={false}
1472
- >
1473
- <div
1474
- aria-hidden={null}
1475
- data-overlay-container={true}
1476
- >
1477
- <button
1478
- className="c0 c1"
1479
- disabled={false}
1480
- onClick={[Function]}
1481
- >
1482
- Open Modal
1483
- </button>
1484
- <div
1485
- className="c2"
1486
- onClick={[Function]}
1487
- onPointerDown={[Function]}
1488
- style={
1489
- Object {
1490
- "backgroundColor": "rgba(0, 0, 0, 0)",
1491
- "overflow": "hidden",
1492
- }
1493
- }
1494
- >
1495
- <div
1496
- className="c3"
1497
- onBlur={[Function]}
1498
- onKeyDown={[Function]}
1499
- role="dialog"
1500
- size="M"
1501
- style={
1502
- Object {
1503
- "transform": " translateY(100%)",
1504
- }
1505
- }
1506
- tabIndex={-1}
1507
- >
1508
- <div
1509
- className="c4"
1510
- >
1511
- <h3
1512
- className="c5 c6"
1513
- >
1514
- react/Title
1515
- </h3>
1516
- </div>
1517
- <div
1518
- className="c7"
1519
- >
1520
- <div
1521
- className="c8"
1522
- >
1523
- <div
1524
- className="c9 c10"
1525
- >
1526
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
1527
- </div>
1528
- </div>
1529
- <div
1530
- className="c11"
1531
- >
1532
- <label
1533
- aria-disabled={false}
1534
- className="c12"
1535
- >
1536
- <div
1537
- className="c13"
1538
- >
1539
- <input
1540
- checked={true}
1541
- className="c14"
1542
- disabled={false}
1543
- onChange={[Function]}
1544
- onClick={[Function]}
1545
- onDragStart={[Function]}
1546
- onKeyDown={[Function]}
1547
- onKeyUp={[Function]}
1548
- onMouseDown={[Function]}
1549
- onMouseEnter={[Function]}
1550
- onMouseLeave={[Function]}
1551
- onMouseUp={[Function]}
1552
- onTouchCancel={[Function]}
1553
- onTouchEnd={[Function]}
1554
- onTouchMove={[Function]}
1555
- onTouchStart={[Function]}
1556
- type="checkbox"
1557
- />
1558
- <div
1559
- aria-hidden={true}
1560
- checked={true}
1561
- className="c15"
1562
- >
1563
- <pixiv-icon
1564
- name="24/Check"
1565
- unsafe-non-guideline-scale={0.6666666666666666}
1566
- />
1567
- </div>
1568
- </div>
1569
- <div
1570
- className="c16"
1571
- >
1572
- test checkbox
1573
- </div>
1574
- </label>
1575
- <button
1576
- className="c0 c17"
1577
- disabled={false}
1578
- onClick={[Function]}
1579
- >
1580
- 削除する
1581
- </button>
1582
- </div>
1583
- </div>
1584
- <button
1585
- aria-label="Close"
1586
- className="c0 c18 c19"
1587
- onClick={[Function]}
1588
- type="button"
1589
- >
1590
- <pixiv-icon
1591
- aria-hidden="true"
1592
- name="24/Close"
1593
- />
1594
- </button>
1595
- </div>
1596
- </div>
1597
- </div>
1598
- </div>
1599
- `;
1600
-
1601
- exports[`Storybook Tests react/Modal Default 1`] = `
1602
- .c0 {
1603
- cursor: pointer;
1604
- -webkit-appearance: none;
1605
- -moz-appearance: none;
1606
- appearance: none;
1607
- background: transparent;
1608
- padding: 0;
1609
- border-style: none;
1610
- outline: none;
1611
- color: inherit;
1612
- text-rendering: inherit;
1613
- -webkit-letter-spacing: inherit;
1614
- -moz-letter-spacing: inherit;
1615
- -ms-letter-spacing: inherit;
1616
- letter-spacing: inherit;
1617
- word-spacing: inherit;
1618
- -webkit-text-decoration: none;
1619
- text-decoration: none;
1620
- font: inherit;
1621
- margin: 0;
1622
- overflow: visible;
1623
- text-transform: none;
1624
- }
1625
-
1626
- .c0:disabled,
1627
- .c0[aria-disabled]:not([aria-disabled=false]) {
1628
- cursor: default;
1629
- }
1630
-
1631
- .c0:focus {
1632
- outline: none;
1633
- }
1634
-
1635
- .c0::-moz-focus-inner {
1636
- border-style: none;
1637
- padding: 0;
1638
- }
1639
-
1640
- .c1 {
1641
- width: -webkit-min-content;
1642
- width: -moz-min-content;
1643
- width: min-content;
1644
- display: inline-grid;
1645
- -webkit-align-items: center;
1646
- -webkit-box-align: center;
1647
- -ms-flex-align: center;
1648
- align-items: center;
1649
- -webkit-box-pack: center;
1650
- -webkit-justify-content: center;
1651
- -ms-flex-pack: center;
1652
- justify-content: center;
1653
- cursor: pointer;
1654
- -webkit-user-select: none;
1655
- -moz-user-select: none;
1656
- -ms-user-select: none;
1657
- user-select: none;
1658
- white-space: nowrap;
1659
- border-radius: 999999px;
1660
- font-size: 14px;
1661
- line-height: 22px;
1662
- font-weight: bold;
1663
- padding-right: 24px;
1664
- padding-left: 24px;
1665
- color: var(--charcoal-text2);
1666
- background-color: var(--charcoal-surface3);
1667
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1668
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1669
- height: 40px;
1670
- }
1671
-
1672
- .c1:not(:disabled):not([aria-disabled]):focus,
1673
- .c1[aria-disabled='false']:focus {
1674
- outline: none;
1675
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1676
- }
1677
-
1678
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1679
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
1680
- box-shadow: none;
1681
- }
1682
-
1683
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
1684
- .c1[aria-disabled='false']:focus-visible {
1685
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1686
- }
1687
-
1688
- .c1:not(:disabled):not([aria-disabled]):hover,
1689
- .c1[aria-disabled='false']:hover {
1690
- color: var(--charcoal-text2-hover);
1691
- background-color: var(--charcoal-surface3-hover);
1692
- }
1693
-
1694
- .c1:not(:disabled):not([aria-disabled]):active,
1695
- .c1[aria-disabled='false']:active {
1696
- color: var(--charcoal-text2-press);
1697
- background-color: var(--charcoal-surface3-press);
1698
- }
1699
-
1700
- .c1:disabled,
1701
- .c1[aria-disabled]:not([aria-disabled='false']) {
1702
- opacity: 0.32;
1703
- }
1704
-
1705
- .c25 {
1706
- width: -webkit-fill-available;
1707
- width: -moz-available;
1708
- width: stretch;
1709
- display: inline-grid;
1710
- -webkit-align-items: center;
1711
- -webkit-box-align: center;
1712
- -ms-flex-align: center;
1713
- align-items: center;
1714
- -webkit-box-pack: center;
1715
- -webkit-justify-content: center;
1716
- -ms-flex-pack: center;
1717
- justify-content: center;
1718
- cursor: pointer;
1719
- -webkit-user-select: none;
1720
- -moz-user-select: none;
1721
- -ms-user-select: none;
1722
- user-select: none;
1723
- white-space: nowrap;
1724
- border-radius: 999999px;
1725
- font-size: 14px;
1726
- line-height: 22px;
1727
- font-weight: bold;
1728
- padding-right: 24px;
1729
- padding-left: 24px;
1730
- color: var(--charcoal-text5);
1731
- background-color: var(--charcoal-brand);
1732
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1733
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1734
- height: 40px;
1735
- }
1736
-
1737
- .c25:not(:disabled):not([aria-disabled]):focus,
1738
- .c25[aria-disabled='false']:focus {
1739
- outline: none;
1740
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1741
- }
1742
-
1743
- .c25:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1744
- .c25[aria-disabled='false']:focus:not(:focus-visible) {
1745
- box-shadow: none;
1746
- }
1747
-
1748
- .c25:not(:disabled):not([aria-disabled]):focus-visible,
1749
- .c25[aria-disabled='false']:focus-visible {
1750
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1751
- }
1752
-
1753
- .c25:not(:disabled):not([aria-disabled]):hover,
1754
- .c25[aria-disabled='false']:hover {
1755
- color: var(--charcoal-text5-hover);
1756
- background-color: var(--charcoal-brand-hover);
1757
- }
1758
-
1759
- .c25:not(:disabled):not([aria-disabled]):active,
1760
- .c25[aria-disabled='false']:active {
1761
- color: var(--charcoal-text5-press);
1762
- background-color: var(--charcoal-brand-press);
1763
- }
1764
-
1765
- .c25:disabled,
1766
- .c25[aria-disabled]:not([aria-disabled='false']) {
1767
- opacity: 0.32;
1768
- }
1769
-
1770
- .c26 {
1771
- width: -webkit-fill-available;
1772
- width: -moz-available;
1773
- width: stretch;
1774
- display: inline-grid;
1775
- -webkit-align-items: center;
1776
- -webkit-box-align: center;
1777
- -ms-flex-align: center;
1778
- align-items: center;
1779
- -webkit-box-pack: center;
1780
- -webkit-justify-content: center;
1781
- -ms-flex-pack: center;
1782
- justify-content: center;
1783
- cursor: pointer;
1784
- -webkit-user-select: none;
1785
- -moz-user-select: none;
1786
- -ms-user-select: none;
1787
- user-select: none;
1788
- white-space: nowrap;
1789
- border-radius: 999999px;
1790
- font-size: 14px;
1791
- line-height: 22px;
1792
- font-weight: bold;
1793
- padding-right: 24px;
1794
- padding-left: 24px;
1795
- color: var(--charcoal-text2);
1796
- background-color: var(--charcoal-surface3);
1797
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1798
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
1799
- height: 40px;
1800
- }
1801
-
1802
- .c26:not(:disabled):not([aria-disabled]):focus,
1803
- .c26[aria-disabled='false']:focus {
1804
- outline: none;
1805
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1806
- }
1807
-
1808
- .c26:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1809
- .c26[aria-disabled='false']:focus:not(:focus-visible) {
1810
- box-shadow: none;
1811
- }
1812
-
1813
- .c26:not(:disabled):not([aria-disabled]):focus-visible,
1814
- .c26[aria-disabled='false']:focus-visible {
1815
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1816
- }
1817
-
1818
- .c26:not(:disabled):not([aria-disabled]):hover,
1819
- .c26[aria-disabled='false']:hover {
1820
- color: var(--charcoal-text2-hover);
1821
- background-color: var(--charcoal-surface3-hover);
1822
- }
1823
-
1824
- .c26:not(:disabled):not([aria-disabled]):active,
1825
- .c26[aria-disabled='false']:active {
1826
- color: var(--charcoal-text2-press);
1827
- background-color: var(--charcoal-surface3-press);
1828
- }
1829
-
1830
- .c26:disabled,
1831
- .c26[aria-disabled]:not([aria-disabled='false']) {
1832
- opacity: 0.32;
1833
- }
1834
-
1835
- .c14 {
1836
- font-size: 14px;
1837
- line-height: 22px;
1838
- font-weight: bold;
1839
- display: flow-root;
1840
- color: var(--charcoal-text1);
1841
- }
1842
-
1843
- .c14::before {
1844
- display: block;
1845
- width: 0;
1846
- height: 0;
1847
- content: '';
1848
- margin-top: -4px;
1849
- }
1850
-
1851
- .c14::after {
1852
- display: block;
1853
- width: 0;
1854
- height: 0;
1855
- content: '';
1856
- margin-bottom: -4px;
1857
- }
1858
-
1859
- .c16 {
1860
- font-size: 14px;
1861
- line-height: 22px;
1862
- display: flow-root;
1863
- color: var(--charcoal-text3);
1864
- -webkit-transition: 0.2s color,0.2s box-shadow;
1865
- transition: 0.2s color,0.2s box-shadow;
1866
- }
1867
-
1868
- .c16::before {
1869
- display: block;
1870
- width: 0;
1871
- height: 0;
1872
- content: '';
1873
- margin-top: -4px;
1874
- }
1875
-
1876
- .c16::after {
1877
- display: block;
1878
- width: 0;
1879
- height: 0;
1880
- content: '';
1881
- margin-bottom: -4px;
1882
- }
1883
-
1884
- .c16:not(:disabled):not([aria-disabled]):hover,
1885
- .c16[aria-disabled='false']:hover {
1886
- color: var(--charcoal-text3-hover);
1887
- }
1888
-
1889
- .c16:not(:disabled):not([aria-disabled]):active,
1890
- .c16[aria-disabled='false']:active {
1891
- color: var(--charcoal-text3-press);
1892
- }
1893
-
1894
- .c16:not(:disabled):not([aria-disabled]):active,
1895
- .c16[aria-disabled='false']:active,
1896
- .c16:not(:disabled):not([aria-disabled]):focus,
1897
- .c16[aria-disabled='false']:focus,
1898
- .c16:not(:disabled):not([aria-disabled]):focus-visible,
1899
- .c16[aria-disabled='false']:focus-visible {
1900
- outline: none;
1901
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1902
- }
1903
-
1904
- .c12 {
1905
- display: -webkit-inline-box;
1906
- display: -webkit-inline-flex;
1907
- display: -ms-inline-flexbox;
1908
- display: inline-flex;
1909
- -webkit-align-items: center;
1910
- -webkit-box-align: center;
1911
- -ms-flex-align: center;
1912
- align-items: center;
1913
- }
1914
-
1915
- .c12 > .c15 {
1916
- margin-left: auto;
1917
- }
1918
-
1919
- .c19 {
1920
- display: inline-block;
1921
- width: 100%;
1922
- }
1923
-
1924
- .c19:disabled,
1925
- .c19[aria-disabled]:not([aria-disabled=false]) {
1926
- cursor: default;
1927
- opacity: 0.32;
1928
- }
1929
-
1930
- .c20 {
1931
- width: 100%;
1932
- margin-bottom: 8px;
1933
- }
1934
-
1935
- .c21 {
1936
- display: -webkit-box;
1937
- display: -webkit-flex;
1938
- display: -ms-flexbox;
1939
- display: flex;
1940
- -webkit-box-pack: justify;
1941
- -webkit-justify-content: space-between;
1942
- -ms-flex-pack: justify;
1943
- justify-content: space-between;
1944
- -webkit-align-items: center;
1945
- -webkit-box-align: center;
1946
- -ms-flex-align: center;
1947
- align-items: center;
1948
- height: 40px;
1949
- width: 100%;
1950
- box-sizing: border-box;
1951
- border: none;
1952
- cursor: pointer;
1953
- gap: 4px;
1954
- padding-right: 8px;
1955
- padding-left: 8px;
1956
- background-color: var(--charcoal-surface3);
1957
- border-radius: 4px;
1958
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1959
- transition: 0.2s box-shadow,0.2s background-color;
1960
- }
1961
-
1962
- .c21:disabled,
1963
- .c21[aria-disabled]:not([aria-disabled=false]) {
1964
- cursor: default;
1965
- }
1966
-
1967
- .c21:not(:disabled):not([aria-disabled]):focus,
1968
- .c21[aria-disabled='false']:focus {
1969
- outline: none;
1970
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1971
- }
1972
-
1973
- .c21:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1974
- .c21[aria-disabled='false']:focus:not(:focus-visible) {
1975
- box-shadow: none;
1976
- }
1977
-
1978
- .c21:not(:disabled):not([aria-disabled]):focus-visible,
1979
- .c21[aria-disabled='false']:focus-visible {
1980
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1981
- }
1982
-
1983
- .c21:not(:disabled):not([aria-disabled]):hover,
1984
- .c21[aria-disabled='false']:hover {
1985
- background-color: var(--charcoal-surface3-hover);
1986
- }
1987
-
1988
- .c21:not(:disabled):not([aria-disabled]):active,
1989
- .c21[aria-disabled='false']:active {
1990
- background-color: var(--charcoal-surface3-press);
1991
- }
1992
-
1993
- .c22 {
1994
- text-align: left;
1995
- font-size: 14px;
1996
- line-height: 22px;
1997
- display: flow-root;
1998
- color: var(--charcoal-text2);
1999
- overflow: hidden;
2000
- text-overflow: ellipsis;
2001
- white-space: nowrap;
2002
- }
2003
-
2004
- .c23 {
2005
- color: var(--charcoal-text2);
2006
- }
2007
-
2008
- .c27 {
2009
- -webkit-user-select: none;
2010
- -moz-user-select: none;
2011
- -ms-user-select: none;
2012
- user-select: none;
2013
- width: 32px;
2014
- height: 32px;
2015
- display: -webkit-box;
2016
- display: -webkit-flex;
2017
- display: -ms-flexbox;
2018
- display: flex;
2019
- -webkit-align-items: center;
2020
- -webkit-box-align: center;
2021
- -ms-flex-align: center;
2022
- align-items: center;
2023
- -webkit-box-pack: center;
2024
- -webkit-justify-content: center;
2025
- -ms-flex-pack: center;
2026
- justify-content: center;
2027
- color: var(--charcoal-text3);
2028
- background-color: var(--charcoal-transparent);
2029
- border-radius: 999999px;
2030
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2031
- transition: 0.2s background-color,0.2s box-shadow;
2032
- }
2033
-
2034
- .c27:not(:disabled):not([aria-disabled]):hover,
2035
- .c27[aria-disabled='false']:hover {
2036
- color: var(--charcoal-text3-hover);
2037
- background-color: var(--charcoal-transparent-hover);
2038
- }
2039
-
2040
- .c27:not(:disabled):not([aria-disabled]):active,
2041
- .c27[aria-disabled='false']:active {
2042
- color: var(--charcoal-text3-press);
2043
- background-color: var(--charcoal-transparent-press);
2044
- }
2045
-
2046
- .c27:not(:disabled):not([aria-disabled]):focus,
2047
- .c27[aria-disabled='false']:focus {
2048
- outline: none;
2049
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2050
- }
2051
-
2052
- .c27:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2053
- .c27[aria-disabled='false']:focus:not(:focus-visible) {
2054
- box-shadow: none;
2055
- }
2056
-
2057
- .c27:not(:disabled):not([aria-disabled]):focus-visible,
2058
- .c27[aria-disabled='false']:focus-visible {
2059
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2060
- }
2061
-
2062
- .c27:disabled,
2063
- .c27[aria-disabled]:not([aria-disabled='false']) {
2064
- opacity: 0.32;
2065
- }
2066
-
2067
- .c3 {
2068
- margin: auto;
2069
- position: relative;
2070
- height: -webkit-fit-content;
2071
- height: -moz-fit-content;
2072
- height: fit-content;
2073
- width: 440px;
2074
- background-color: var(--charcoal-surface1);
2075
- border-radius: 24px;
2076
- }
2077
-
2078
- .c3:focus {
2079
- outline: none;
2080
- }
2081
-
2082
- .c2 {
2083
- z-index: 10;
2084
- overflow: auto;
2085
- display: -webkit-box;
2086
- display: -webkit-flex;
2087
- display: -ms-flexbox;
2088
- display: flex;
2089
- position: fixed;
2090
- top: 0;
2091
- left: 0;
2092
- width: -webkit-fill-available;
2093
- width: -moz-available;
2094
- height: 100%;
2095
- -webkit-box-pack: center;
2096
- -webkit-justify-content: center;
2097
- -ms-flex-pack: center;
2098
- justify-content: center;
2099
- padding: 40px 0;
2100
- box-sizing: border-box;
2101
- background-color: var(--charcoal-surface4);
2102
- }
2103
-
2104
- .c28 {
2105
- position: absolute;
2106
- top: 8px;
2107
- right: 8px;
2108
- color: var(--charcoal-text3);
2109
- -webkit-transition: 0.2s color;
2110
- transition: 0.2s color;
2111
- }
2112
-
2113
- .c28:not(:disabled):not([aria-disabled]):hover,
2114
- .c28[aria-disabled='false']:hover {
2115
- color: var(--charcoal-text3-hover);
2116
- }
2117
-
2118
- .c28:not(:disabled):not([aria-disabled]):active,
2119
- .c28[aria-disabled='false']:active {
2120
- color: var(--charcoal-text3-press);
2121
- }
2122
-
2123
- .c5 {
2124
- margin: 0;
2125
- font-weight: inherit;
2126
- font-size: inherit;
2127
- }
2128
-
2129
- .c4 {
2130
- height: 64px;
2131
- display: grid;
2132
- -webkit-align-content: center;
2133
- -ms-flex-line-pack: center;
2134
- align-content: center;
2135
- -webkit-box-pack: center;
2136
- -webkit-justify-content: center;
2137
- -ms-flex-pack: center;
2138
- justify-content: center;
2139
- }
2140
-
2141
- .c6 {
2142
- color: var(--charcoal-text1);
2143
- font-size: 16px;
2144
- line-height: 24px;
2145
- font-weight: bold;
2146
- display: flow-root;
2147
- }
2148
-
2149
- .c6::before {
2150
- display: block;
2151
- width: 0;
2152
- height: 0;
2153
- content: '';
2154
- margin-top: -4px;
2155
- }
2156
-
2157
- .c6::after {
2158
- display: block;
2159
- width: 0;
2160
- height: 0;
2161
- content: '';
2162
- margin-bottom: -4px;
2163
- }
2164
-
2165
- .c9 {
2166
- padding-left: 16px;
2167
- padding-right: 16px;
2168
- }
2169
-
2170
- .c7 {
2171
- padding-bottom: 40px;
2172
- }
2173
-
2174
- .c24 {
2175
- display: grid;
2176
- grid-auto-flow: row;
2177
- grid-row-gap: 8px;
2178
- padding-top: 16px;
2179
- padding-left: 16px;
2180
- padding-right: 16px;
2181
- }
2182
-
2183
- .c11 {
2184
- display: -webkit-box;
2185
- display: -webkit-flex;
2186
- display: -ms-flexbox;
2187
- display: flex;
2188
- -webkit-flex-direction: column;
2189
- -ms-flex-direction: column;
2190
- flex-direction: column;
2191
- }
2192
-
2193
- .c13 {
2194
- margin-bottom: 8px;
2195
- }
2196
-
2197
- .c17 {
2198
- display: grid;
2199
- grid-template-columns: 1fr;
2200
- height: 40px;
2201
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2202
- transition: 0.2s background-color,0.2s box-shadow;
2203
- color: var(--charcoal-text2);
2204
- background-color: var(--charcoal-surface3);
2205
- border-radius: 4px;
2206
- gap: 4px;
2207
- padding: 0 8px;
2208
- line-height: 22px;
2209
- font-size: 14px;
2210
- }
2211
-
2212
- .c17:not(:disabled):not([aria-disabled]):hover,
2213
- .c17 [aria-disabled='false']:hover {
2214
- background-color: var(--charcoal-surface3-hover);
2215
- }
2216
-
2217
- .c17:focus-within {
2218
- outline: none;
2219
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2220
- }
2221
-
2222
- .c18 {
2223
- border: none;
2224
- box-sizing: border-box;
2225
- outline: none;
2226
- font-family: inherit;
2227
- -webkit-transform-origin: top left;
2228
- -ms-transform-origin: top left;
2229
- transform-origin: top left;
2230
- -webkit-transform: scale(0.875);
2231
- -ms-transform: scale(0.875);
2232
- transform: scale(0.875);
2233
- width: calc(100% / 0.875);
2234
- height: calc(100% / 0.875);
2235
- font-size: calc(14px / 0.875);
2236
- line-height: calc(22px / 0.875);
2237
- padding-left: 0;
2238
- padding-right: 0;
2239
- border-radius: calc(4px / 0.875);
2240
- -webkit-appearance: none;
2241
- -moz-appearance: none;
2242
- appearance: none;
2243
- background: transparent;
2244
- color: var(--charcoal-text2);
2245
- }
2246
-
2247
- .c18::-webkit-input-placeholder {
2248
- color: var(--charcoal-text3);
2249
- }
2250
-
2251
- .c18::-moz-placeholder {
2252
- color: var(--charcoal-text3);
2253
- }
2254
-
2255
- .c18:-ms-input-placeholder {
2256
- color: var(--charcoal-text3);
2257
- }
2258
-
2259
- .c18::placeholder {
2260
- color: var(--charcoal-text3);
2261
- }
2262
-
2263
- .c8 {
2264
- display: grid;
2265
- gap: 24px;
2266
- }
2267
-
2268
- .c10 {
2269
- color: var(--charcoal-text2);
2270
- font-size: 14px;
2271
- line-height: 22px;
2272
- display: flow-root;
2273
- }
2274
-
2275
- .c10::before {
2276
- display: block;
2277
- width: 0;
2278
- height: 0;
2279
- content: '';
2280
- margin-top: -4px;
2281
- }
2282
-
2283
- .c10::after {
2284
- display: block;
2285
- width: 0;
2286
- height: 0;
2287
- content: '';
2288
- margin-bottom: -4px;
2289
- }
2290
-
2291
- @media (max-width:743px) {
2292
- .c3 {
2293
- max-width: 440px;
2294
- width: calc(100% - 48px);
2295
- }
2296
- }
2297
-
2298
- @media (max-width:743px) {
2299
-
2300
- }
2301
-
2302
- @media (max-width:743px) {
2303
-
2304
- }
2305
-
2306
- <div
2307
- data-dark={false}
2308
- >
2309
- <div
2310
- aria-hidden={null}
2311
- data-overlay-container={true}
2312
- >
2313
- <button
2314
- className="c0 c1"
2315
- disabled={false}
2316
- onClick={[Function]}
2317
- >
2318
- Open Modal
2319
- </button>
2320
- <div
2321
- className="c2"
2322
- onClick={[Function]}
2323
- onPointerDown={[Function]}
2324
- style={Object {}}
2325
- >
2326
- <div
2327
- className="c3"
2328
- onBlur={[Function]}
2329
- onKeyDown={[Function]}
2330
- role="dialog"
2331
- size="M"
2332
- style={Object {}}
2333
- tabIndex={-1}
2334
- >
2335
- <div
2336
- className="c4"
2337
- >
2338
- <h3
2339
- className="c5 c6"
2340
- >
2341
- react/Title
2342
- </h3>
2343
- </div>
2344
- <div
2345
- className="c7"
2346
- >
2347
- <div
2348
- className="c8"
2349
- >
2350
- <div
2351
- className="c9 c10"
2352
- >
2353
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
2354
- </div>
2355
- <div
2356
- className="c9"
2357
- >
2358
- <div
2359
- className="c11"
2360
- >
2361
- <div
2362
- className="c12 c13"
2363
- >
2364
- <label
2365
- className="c14"
2366
- htmlFor="test-id"
2367
- id="test-id"
2368
- >
2369
- Name
2370
- </label>
2371
- <div
2372
- className="c15 c16"
2373
- >
2374
- <span />
2375
- </div>
2376
- </div>
2377
- <div
2378
- className="c17"
2379
- >
2380
- <input
2381
- aria-labelledby="test-id"
2382
- className="c18"
2383
- disabled={false}
2384
- id="test-id"
2385
- onChange={[Function]}
2386
- placeholder="Nagisa"
2387
- readOnly={false}
2388
- required={false}
2389
- type="text"
2390
- value=""
2391
- />
2392
- </div>
2393
- </div>
2394
- </div>
2395
- <div
2396
- className="c9"
2397
- >
2398
- <div
2399
- className="c11"
2400
- >
2401
- <div
2402
- className="c12 c13"
2403
- >
2404
- <label
2405
- className="c14"
2406
- htmlFor="test-id"
2407
- id="test-id"
2408
- >
2409
- Country
2410
- </label>
2411
- <div
2412
- className="c15 c16"
2413
- >
2414
- <span />
2415
- </div>
2416
- </div>
2417
- <div
2418
- className="c17"
2419
- >
2420
- <input
2421
- aria-labelledby="test-id"
2422
- autoFocus={true}
2423
- className="c18"
2424
- disabled={false}
2425
- id="test-id"
2426
- onChange={[Function]}
2427
- placeholder="Tokyo"
2428
- readOnly={false}
2429
- required={false}
2430
- type="text"
2431
- value=""
2432
- />
2433
- </div>
2434
- </div>
2435
- </div>
2436
- <div
2437
- className="c9"
2438
- >
2439
- <div
2440
- className="c19"
2441
- >
2442
- <div
2443
- className="c12 c20"
2444
- >
2445
- <label
2446
- className="c14"
2447
- >
2448
- Fruits
2449
- </label>
2450
- <div
2451
- className="c15 c16"
2452
- >
2453
- <span />
2454
- </div>
2455
- </div>
2456
- <div
2457
- aria-hidden="true"
2458
- style={
2459
- Object {
2460
- "border": 0,
2461
- "clip": "rect(0 0 0 0)",
2462
- "clipPath": "inset(50%)",
2463
- "height": "1px",
2464
- "margin": "-1px",
2465
- "overflow": "hidden",
2466
- "padding": 0,
2467
- "position": "absolute",
2468
- "whiteSpace": "nowrap",
2469
- "width": "1px",
2470
- }
2471
- }
2472
- >
2473
- <select
2474
- onChange={[Function]}
2475
- tabIndex={-1}
2476
- value="10"
2477
- >
2478
- <option
2479
- value="10"
2480
- >
2481
- 10
2482
- </option>
2483
- <option
2484
- value="20"
2485
- >
2486
- 20
2487
- </option>
2488
- <option
2489
- value="30"
2490
- >
2491
- 30
2492
- </option>
2493
- </select>
2494
- </div>
2495
- <button
2496
- className="c21"
2497
- onClick={[Function]}
2498
- type="button"
2499
- >
2500
- <span
2501
- className="c22"
2502
- >
2503
- Apple
2504
- </span>
2505
- <pixiv-icon
2506
- class="c23"
2507
- name="16/Menu"
2508
- />
2509
- </button>
2510
- </div>
2511
- </div>
2512
- </div>
2513
- <div
2514
- className="c24"
2515
- >
2516
- <button
2517
- className="c0 c25"
2518
- disabled={false}
2519
- onClick={[Function]}
2520
- >
2521
- Apply
2522
- </button>
2523
- <button
2524
- className="c0 c26"
2525
- disabled={false}
2526
- onClick={[Function]}
2527
- >
2528
- Cancel
2529
- </button>
2530
- </div>
2531
- </div>
2532
- <button
2533
- aria-label="Close"
2534
- className="c0 c27 c28"
2535
- onClick={[Function]}
2536
- type="button"
2537
- >
2538
- <pixiv-icon
2539
- aria-hidden="true"
2540
- name="24/Close"
2541
- />
2542
- </button>
2543
- </div>
2544
- </div>
2545
- </div>
2546
- </div>
2547
- `;
2548
-
2549
- exports[`Storybook Tests react/Modal FullBottomSheet 1`] = `
2550
- .c0 {
2551
- cursor: pointer;
2552
- -webkit-appearance: none;
2553
- -moz-appearance: none;
2554
- appearance: none;
2555
- background: transparent;
2556
- padding: 0;
2557
- border-style: none;
2558
- outline: none;
2559
- color: inherit;
2560
- text-rendering: inherit;
2561
- -webkit-letter-spacing: inherit;
2562
- -moz-letter-spacing: inherit;
2563
- -ms-letter-spacing: inherit;
2564
- letter-spacing: inherit;
2565
- word-spacing: inherit;
2566
- -webkit-text-decoration: none;
2567
- text-decoration: none;
2568
- font: inherit;
2569
- margin: 0;
2570
- overflow: visible;
2571
- text-transform: none;
2572
- }
2573
-
2574
- .c0:disabled,
2575
- .c0[aria-disabled]:not([aria-disabled=false]) {
2576
- cursor: default;
2577
- }
2578
-
2579
- .c0:focus {
2580
- outline: none;
2581
- }
2582
-
2583
- .c0::-moz-focus-inner {
2584
- border-style: none;
2585
- padding: 0;
2586
- }
2587
-
2588
- .c1 {
2589
- width: -webkit-min-content;
2590
- width: -moz-min-content;
2591
- width: min-content;
2592
- display: inline-grid;
2593
- -webkit-align-items: center;
2594
- -webkit-box-align: center;
2595
- -ms-flex-align: center;
2596
- align-items: center;
2597
- -webkit-box-pack: center;
2598
- -webkit-justify-content: center;
2599
- -ms-flex-pack: center;
2600
- justify-content: center;
2601
- cursor: pointer;
2602
- -webkit-user-select: none;
2603
- -moz-user-select: none;
2604
- -ms-user-select: none;
2605
- user-select: none;
2606
- white-space: nowrap;
2607
- border-radius: 999999px;
2608
- font-size: 14px;
2609
- line-height: 22px;
2610
- font-weight: bold;
2611
- padding-right: 24px;
2612
- padding-left: 24px;
2613
- color: var(--charcoal-text2);
2614
- background-color: var(--charcoal-surface3);
2615
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2616
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2617
- height: 40px;
2618
- }
2619
-
2620
- .c1:not(:disabled):not([aria-disabled]):focus,
2621
- .c1[aria-disabled='false']:focus {
2622
- outline: none;
2623
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2624
- }
2625
-
2626
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2627
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
2628
- box-shadow: none;
2629
- }
2630
-
2631
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
2632
- .c1[aria-disabled='false']:focus-visible {
2633
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2634
- }
2635
-
2636
- .c1:not(:disabled):not([aria-disabled]):hover,
2637
- .c1[aria-disabled='false']:hover {
2638
- color: var(--charcoal-text2-hover);
2639
- background-color: var(--charcoal-surface3-hover);
2640
- }
2641
-
2642
- .c1:not(:disabled):not([aria-disabled]):active,
2643
- .c1[aria-disabled='false']:active {
2644
- color: var(--charcoal-text2-press);
2645
- background-color: var(--charcoal-surface3-press);
2646
- }
2647
-
2648
- .c1:disabled,
2649
- .c1[aria-disabled]:not([aria-disabled='false']) {
2650
- opacity: 0.32;
2651
- }
2652
-
2653
- .c20 {
2654
- width: -webkit-fill-available;
2655
- width: -moz-available;
2656
- width: stretch;
2657
- display: inline-grid;
2658
- -webkit-align-items: center;
2659
- -webkit-box-align: center;
2660
- -ms-flex-align: center;
2661
- align-items: center;
2662
- -webkit-box-pack: center;
2663
- -webkit-justify-content: center;
2664
- -ms-flex-pack: center;
2665
- justify-content: center;
2666
- cursor: pointer;
2667
- -webkit-user-select: none;
2668
- -moz-user-select: none;
2669
- -ms-user-select: none;
2670
- user-select: none;
2671
- white-space: nowrap;
2672
- border-radius: 999999px;
2673
- font-size: 14px;
2674
- line-height: 22px;
2675
- font-weight: bold;
2676
- padding-right: 24px;
2677
- padding-left: 24px;
2678
- color: var(--charcoal-text5);
2679
- background-color: var(--charcoal-brand);
2680
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2681
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2682
- height: 40px;
2683
- }
2684
-
2685
- .c20:not(:disabled):not([aria-disabled]):focus,
2686
- .c20[aria-disabled='false']:focus {
2687
- outline: none;
2688
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2689
- }
2690
-
2691
- .c20:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2692
- .c20[aria-disabled='false']:focus:not(:focus-visible) {
2693
- box-shadow: none;
2694
- }
2695
-
2696
- .c20:not(:disabled):not([aria-disabled]):focus-visible,
2697
- .c20[aria-disabled='false']:focus-visible {
2698
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2699
- }
2700
-
2701
- .c20:not(:disabled):not([aria-disabled]):hover,
2702
- .c20[aria-disabled='false']:hover {
2703
- color: var(--charcoal-text5-hover);
2704
- background-color: var(--charcoal-brand-hover);
2705
- }
2706
-
2707
- .c20:not(:disabled):not([aria-disabled]):active,
2708
- .c20[aria-disabled='false']:active {
2709
- color: var(--charcoal-text5-press);
2710
- background-color: var(--charcoal-brand-press);
2711
- }
2712
-
2713
- .c20:disabled,
2714
- .c20[aria-disabled]:not([aria-disabled='false']) {
2715
- opacity: 0.32;
2716
- }
2717
-
2718
- .c21 {
2719
- width: -webkit-fill-available;
2720
- width: -moz-available;
2721
- width: stretch;
2722
- display: inline-grid;
2723
- -webkit-align-items: center;
2724
- -webkit-box-align: center;
2725
- -ms-flex-align: center;
2726
- align-items: center;
2727
- -webkit-box-pack: center;
2728
- -webkit-justify-content: center;
2729
- -ms-flex-pack: center;
2730
- justify-content: center;
2731
- cursor: pointer;
2732
- -webkit-user-select: none;
2733
- -moz-user-select: none;
2734
- -ms-user-select: none;
2735
- user-select: none;
2736
- white-space: nowrap;
2737
- border-radius: 999999px;
2738
- font-size: 14px;
2739
- line-height: 22px;
2740
- font-weight: bold;
2741
- padding-right: 24px;
2742
- padding-left: 24px;
2743
- color: var(--charcoal-text2);
2744
- background-color: var(--charcoal-surface3);
2745
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2746
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
2747
- height: 40px;
2748
- }
2749
-
2750
- .c21:not(:disabled):not([aria-disabled]):focus,
2751
- .c21[aria-disabled='false']:focus {
2752
- outline: none;
2753
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2754
- }
2755
-
2756
- .c21:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2757
- .c21[aria-disabled='false']:focus:not(:focus-visible) {
2758
- box-shadow: none;
2759
- }
2760
-
2761
- .c21:not(:disabled):not([aria-disabled]):focus-visible,
2762
- .c21[aria-disabled='false']:focus-visible {
2763
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2764
- }
2765
-
2766
- .c21:not(:disabled):not([aria-disabled]):hover,
2767
- .c21[aria-disabled='false']:hover {
2768
- color: var(--charcoal-text2-hover);
2769
- background-color: var(--charcoal-surface3-hover);
2770
- }
2771
-
2772
- .c21:not(:disabled):not([aria-disabled]):active,
2773
- .c21[aria-disabled='false']:active {
2774
- color: var(--charcoal-text2-press);
2775
- background-color: var(--charcoal-surface3-press);
2776
- }
2777
-
2778
- .c21:disabled,
2779
- .c21[aria-disabled]:not([aria-disabled='false']) {
2780
- opacity: 0.32;
2781
- }
2782
-
2783
- .c14 {
2784
- font-size: 14px;
2785
- line-height: 22px;
2786
- font-weight: bold;
2787
- display: flow-root;
2788
- color: var(--charcoal-text1);
2789
- }
2790
-
2791
- .c14::before {
2792
- display: block;
2793
- width: 0;
2794
- height: 0;
2795
- content: '';
2796
- margin-top: -4px;
2797
- }
2798
-
2799
- .c14::after {
2800
- display: block;
2801
- width: 0;
2802
- height: 0;
2803
- content: '';
2804
- margin-bottom: -4px;
2805
- }
2806
-
2807
- .c16 {
2808
- font-size: 14px;
2809
- line-height: 22px;
2810
- display: flow-root;
2811
- color: var(--charcoal-text3);
2812
- -webkit-transition: 0.2s color,0.2s box-shadow;
2813
- transition: 0.2s color,0.2s box-shadow;
2814
- }
2815
-
2816
- .c16::before {
2817
- display: block;
2818
- width: 0;
2819
- height: 0;
2820
- content: '';
2821
- margin-top: -4px;
2822
- }
2823
-
2824
- .c16::after {
2825
- display: block;
2826
- width: 0;
2827
- height: 0;
2828
- content: '';
2829
- margin-bottom: -4px;
2830
- }
2831
-
2832
- .c16:not(:disabled):not([aria-disabled]):hover,
2833
- .c16[aria-disabled='false']:hover {
2834
- color: var(--charcoal-text3-hover);
2835
- }
2836
-
2837
- .c16:not(:disabled):not([aria-disabled]):active,
2838
- .c16[aria-disabled='false']:active {
2839
- color: var(--charcoal-text3-press);
2840
- }
2841
-
2842
- .c16:not(:disabled):not([aria-disabled]):active,
2843
- .c16[aria-disabled='false']:active,
2844
- .c16:not(:disabled):not([aria-disabled]):focus,
2845
- .c16[aria-disabled='false']:focus,
2846
- .c16:not(:disabled):not([aria-disabled]):focus-visible,
2847
- .c16[aria-disabled='false']:focus-visible {
2848
- outline: none;
2849
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2850
- }
2851
-
2852
- .c12 {
2853
- display: -webkit-inline-box;
2854
- display: -webkit-inline-flex;
2855
- display: -ms-inline-flexbox;
2856
- display: inline-flex;
2857
- -webkit-align-items: center;
2858
- -webkit-box-align: center;
2859
- -ms-flex-align: center;
2860
- align-items: center;
2861
- }
2862
-
2863
- .c12 > .c15 {
2864
- margin-left: auto;
2865
- }
2866
-
2867
- .c22 {
2868
- -webkit-user-select: none;
2869
- -moz-user-select: none;
2870
- -ms-user-select: none;
2871
- user-select: none;
2872
- width: 32px;
2873
- height: 32px;
2874
- display: -webkit-box;
2875
- display: -webkit-flex;
2876
- display: -ms-flexbox;
2877
- display: flex;
2878
- -webkit-align-items: center;
2879
- -webkit-box-align: center;
2880
- -ms-flex-align: center;
2881
- align-items: center;
2882
- -webkit-box-pack: center;
2883
- -webkit-justify-content: center;
2884
- -ms-flex-pack: center;
2885
- justify-content: center;
2886
- color: var(--charcoal-text3);
2887
- background-color: var(--charcoal-transparent);
2888
- border-radius: 999999px;
2889
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2890
- transition: 0.2s background-color,0.2s box-shadow;
2891
- }
2892
-
2893
- .c22:not(:disabled):not([aria-disabled]):hover,
2894
- .c22[aria-disabled='false']:hover {
2895
- color: var(--charcoal-text3-hover);
2896
- background-color: var(--charcoal-transparent-hover);
2897
- }
2898
-
2899
- .c22:not(:disabled):not([aria-disabled]):active,
2900
- .c22[aria-disabled='false']:active {
2901
- color: var(--charcoal-text3-press);
2902
- background-color: var(--charcoal-transparent-press);
2903
- }
2904
-
2905
- .c22:not(:disabled):not([aria-disabled]):focus,
2906
- .c22[aria-disabled='false']:focus {
2907
- outline: none;
2908
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2909
- }
2910
-
2911
- .c22:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2912
- .c22[aria-disabled='false']:focus:not(:focus-visible) {
2913
- box-shadow: none;
2914
- }
2915
-
2916
- .c22:not(:disabled):not([aria-disabled]):focus-visible,
2917
- .c22[aria-disabled='false']:focus-visible {
2918
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2919
- }
2920
-
2921
- .c22:disabled,
2922
- .c22[aria-disabled]:not([aria-disabled='false']) {
2923
- opacity: 0.32;
2924
- }
2925
-
2926
- .c3 {
2927
- margin: auto;
2928
- position: relative;
2929
- height: -webkit-fit-content;
2930
- height: -moz-fit-content;
2931
- height: fit-content;
2932
- width: 440px;
2933
- background-color: var(--charcoal-surface1);
2934
- border-radius: 24px;
2935
- }
2936
-
2937
- .c3:focus {
2938
- outline: none;
2939
- }
2940
-
2941
- .c2 {
2942
- z-index: 10;
2943
- overflow: auto;
2944
- display: -webkit-box;
2945
- display: -webkit-flex;
2946
- display: -ms-flexbox;
2947
- display: flex;
2948
- position: fixed;
2949
- top: 0;
2950
- left: 0;
2951
- width: -webkit-fill-available;
2952
- width: -moz-available;
2953
- height: 100%;
2954
- -webkit-box-pack: center;
2955
- -webkit-justify-content: center;
2956
- -ms-flex-pack: center;
2957
- justify-content: center;
2958
- padding: 40px 0;
2959
- box-sizing: border-box;
2960
- background-color: var(--charcoal-surface4);
2961
- }
2962
-
2963
- .c23 {
2964
- position: absolute;
2965
- top: 8px;
2966
- right: 8px;
2967
- color: var(--charcoal-text3);
2968
- -webkit-transition: 0.2s color;
2969
- transition: 0.2s color;
2970
- }
2971
-
2972
- .c23:not(:disabled):not([aria-disabled]):hover,
2973
- .c23[aria-disabled='false']:hover {
2974
- color: var(--charcoal-text3-hover);
2975
- }
2976
-
2977
- .c23:not(:disabled):not([aria-disabled]):active,
2978
- .c23[aria-disabled='false']:active {
2979
- color: var(--charcoal-text3-press);
2980
- }
2981
-
2982
- .c5 {
2983
- margin: 0;
2984
- font-weight: inherit;
2985
- font-size: inherit;
2986
- }
2987
-
2988
- .c4 {
2989
- height: 64px;
2990
- display: grid;
2991
- -webkit-align-content: center;
2992
- -ms-flex-line-pack: center;
2993
- align-content: center;
2994
- -webkit-box-pack: center;
2995
- -webkit-justify-content: center;
2996
- -ms-flex-pack: center;
2997
- justify-content: center;
2998
- }
2999
-
3000
- .c6 {
3001
- color: var(--charcoal-text1);
3002
- font-size: 16px;
3003
- line-height: 24px;
3004
- font-weight: bold;
3005
- display: flow-root;
3006
- }
3007
-
3008
- .c6::before {
3009
- display: block;
3010
- width: 0;
3011
- height: 0;
3012
- content: '';
3013
- margin-top: -4px;
3014
- }
3015
-
3016
- .c6::after {
3017
- display: block;
3018
- width: 0;
3019
- height: 0;
3020
- content: '';
3021
- margin-bottom: -4px;
3022
- }
3023
-
3024
- .c9 {
3025
- padding-left: 16px;
3026
- padding-right: 16px;
3027
- }
3028
-
3029
- .c7 {
3030
- padding-bottom: 40px;
3031
- }
3032
-
3033
- .c19 {
3034
- display: grid;
3035
- grid-auto-flow: row;
3036
- grid-row-gap: 8px;
3037
- padding-top: 16px;
3038
- padding-left: 16px;
3039
- padding-right: 16px;
3040
- }
3041
-
3042
- .c11 {
3043
- display: -webkit-box;
3044
- display: -webkit-flex;
3045
- display: -ms-flexbox;
3046
- display: flex;
3047
- -webkit-flex-direction: column;
3048
- -ms-flex-direction: column;
3049
- flex-direction: column;
3050
- }
3051
-
3052
- .c13 {
3053
- margin-bottom: 8px;
3054
- }
3055
-
3056
- .c17 {
3057
- display: grid;
3058
- grid-template-columns: 1fr;
3059
- height: 40px;
3060
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
3061
- transition: 0.2s background-color,0.2s box-shadow;
3062
- color: var(--charcoal-text2);
3063
- background-color: var(--charcoal-surface3);
3064
- border-radius: 4px;
3065
- gap: 4px;
3066
- padding: 0 8px;
3067
- line-height: 22px;
3068
- font-size: 14px;
3069
- }
3070
-
3071
- .c17:not(:disabled):not([aria-disabled]):hover,
3072
- .c17 [aria-disabled='false']:hover {
3073
- background-color: var(--charcoal-surface3-hover);
3074
- }
3075
-
3076
- .c17:focus-within {
3077
- outline: none;
3078
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3079
- }
3080
-
3081
- .c18 {
3082
- border: none;
3083
- box-sizing: border-box;
3084
- outline: none;
3085
- font-family: inherit;
3086
- -webkit-transform-origin: top left;
3087
- -ms-transform-origin: top left;
3088
- transform-origin: top left;
3089
- -webkit-transform: scale(0.875);
3090
- -ms-transform: scale(0.875);
3091
- transform: scale(0.875);
3092
- width: calc(100% / 0.875);
3093
- height: calc(100% / 0.875);
3094
- font-size: calc(14px / 0.875);
3095
- line-height: calc(22px / 0.875);
3096
- padding-left: 0;
3097
- padding-right: 0;
3098
- border-radius: calc(4px / 0.875);
3099
- -webkit-appearance: none;
3100
- -moz-appearance: none;
3101
- appearance: none;
3102
- background: transparent;
3103
- color: var(--charcoal-text2);
3104
- }
3105
-
3106
- .c18::-webkit-input-placeholder {
3107
- color: var(--charcoal-text3);
3108
- }
3109
-
3110
- .c18::-moz-placeholder {
3111
- color: var(--charcoal-text3);
3112
- }
3113
-
3114
- .c18:-ms-input-placeholder {
3115
- color: var(--charcoal-text3);
3116
- }
3117
-
3118
- .c18::placeholder {
3119
- color: var(--charcoal-text3);
3120
- }
3121
-
3122
- .c8 {
3123
- display: grid;
3124
- gap: 24px;
3125
- }
3126
-
3127
- .c10 {
3128
- color: var(--charcoal-text2);
3129
- font-size: 14px;
3130
- line-height: 22px;
3131
- display: flow-root;
3132
- }
3133
-
3134
- .c10::before {
3135
- display: block;
3136
- width: 0;
3137
- height: 0;
3138
- content: '';
3139
- margin-top: -4px;
3140
- }
3141
-
3142
- .c10::after {
3143
- display: block;
3144
- width: 0;
3145
- height: 0;
3146
- content: '';
3147
- margin-bottom: -4px;
3148
- }
3149
-
3150
- @media (max-width:743px) {
3151
- .c3 {
3152
- max-width: 440px;
3153
- width: calc(100% - 48px);
3154
- max-width: unset;
3155
- width: 100%;
3156
- border-radius: 0;
3157
- margin: auto 0 0 0;
3158
- min-height: 100%;
3159
- }
3160
- }
3161
-
3162
- @media (max-width:743px) {
3163
- .c2 {
3164
- padding: 0;
3165
- }
3166
- }
3167
-
3168
- @media (max-width:743px) {
3169
- .c4 {
3170
- height: 48px;
3171
- }
3172
- }
3173
-
3174
- <div
3175
- data-dark={false}
3176
- >
3177
- <div
3178
- aria-hidden={null}
3179
- data-overlay-container={true}
3180
- >
3181
- <button
3182
- className="c0 c1"
3183
- disabled={false}
3184
- onClick={[Function]}
3185
- >
3186
- Open Modal
3187
- </button>
3188
- <div
3189
- className="c2"
3190
- onClick={[Function]}
3191
- onPointerDown={[Function]}
3192
- style={
3193
- Object {
3194
- "backgroundColor": "rgba(0, 0, 0, 0)",
3195
- "overflow": "hidden",
3196
- }
3197
- }
3198
- >
3199
- <div
3200
- className="c3"
3201
- onBlur={[Function]}
3202
- onKeyDown={[Function]}
3203
- role="dialog"
3204
- size="M"
3205
- style={
3206
- Object {
3207
- "transform": " translateY(100%)",
3208
- }
3209
- }
3210
- tabIndex={-1}
3211
- >
3212
- <div
3213
- className="c4"
3214
- >
3215
- <h3
3216
- className="c5 c6"
3217
- >
3218
- react/Title
3219
- </h3>
3220
- </div>
3221
- <div
3222
- className="c7"
3223
- >
3224
- <div
3225
- className="c8"
3226
- >
3227
- <div
3228
- className="c9 c10"
3229
- >
3230
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
3231
- </div>
3232
- <div
3233
- className="c9"
3234
- >
3235
- <div
3236
- className="c11"
3237
- >
3238
- <div
3239
- className="c12 c13"
3240
- >
3241
- <label
3242
- className="c14"
3243
- htmlFor="test-id"
3244
- id="test-id"
3245
- >
3246
- Name
3247
- </label>
3248
- <div
3249
- className="c15 c16"
3250
- >
3251
- <span />
3252
- </div>
3253
- </div>
3254
- <div
3255
- className="c17"
3256
- >
3257
- <input
3258
- aria-labelledby="test-id"
3259
- className="c18"
3260
- disabled={false}
3261
- id="test-id"
3262
- onChange={[Function]}
3263
- placeholder="Nagisa"
3264
- readOnly={false}
3265
- required={false}
3266
- type="text"
3267
- value=""
3268
- />
3269
- </div>
3270
- </div>
3271
- </div>
3272
- <div
3273
- className="c9"
3274
- >
3275
- <div
3276
- className="c11"
3277
- >
3278
- <div
3279
- className="c12 c13"
3280
- >
3281
- <label
3282
- className="c14"
3283
- htmlFor="test-id"
3284
- id="test-id"
3285
- >
3286
- Country
3287
- </label>
3288
- <div
3289
- className="c15 c16"
3290
- >
3291
- <span />
3292
- </div>
3293
- </div>
3294
- <div
3295
- className="c17"
3296
- >
3297
- <input
3298
- aria-labelledby="test-id"
3299
- className="c18"
3300
- disabled={false}
3301
- id="test-id"
3302
- onChange={[Function]}
3303
- placeholder="Tokyo"
3304
- readOnly={false}
3305
- required={false}
3306
- type="text"
3307
- value=""
3308
- />
3309
- </div>
3310
- </div>
3311
- </div>
3312
- </div>
3313
- <div
3314
- className="c19"
3315
- >
3316
- <button
3317
- className="c0 c20"
3318
- disabled={false}
3319
- onClick={[Function]}
3320
- >
3321
- Apply
3322
- </button>
3323
- <button
3324
- className="c0 c21"
3325
- disabled={false}
3326
- onClick={[Function]}
3327
- >
3328
- Cancel
3329
- </button>
3330
- </div>
3331
- </div>
3332
- <button
3333
- aria-label="Close"
3334
- className="c0 c22 c23"
3335
- onClick={[Function]}
3336
- type="button"
3337
- >
3338
- <pixiv-icon
3339
- aria-hidden="true"
3340
- name="24/Close"
3341
- />
3342
- </button>
3343
- </div>
3344
- </div>
3345
- </div>
3346
- </div>
3347
- `;
3348
-
3349
- exports[`Storybook Tests react/Modal InternalScroll 1`] = `
3350
- .c0 {
3351
- cursor: pointer;
3352
- -webkit-appearance: none;
3353
- -moz-appearance: none;
3354
- appearance: none;
3355
- background: transparent;
3356
- padding: 0;
3357
- border-style: none;
3358
- outline: none;
3359
- color: inherit;
3360
- text-rendering: inherit;
3361
- -webkit-letter-spacing: inherit;
3362
- -moz-letter-spacing: inherit;
3363
- -ms-letter-spacing: inherit;
3364
- letter-spacing: inherit;
3365
- word-spacing: inherit;
3366
- -webkit-text-decoration: none;
3367
- text-decoration: none;
3368
- font: inherit;
3369
- margin: 0;
3370
- overflow: visible;
3371
- text-transform: none;
3372
- }
3373
-
3374
- .c0:disabled,
3375
- .c0[aria-disabled]:not([aria-disabled=false]) {
3376
- cursor: default;
3377
- }
3378
-
3379
- .c0:focus {
3380
- outline: none;
3381
- }
3382
-
3383
- .c0::-moz-focus-inner {
3384
- border-style: none;
3385
- padding: 0;
3386
- }
3387
-
3388
- .c1 {
3389
- width: -webkit-min-content;
3390
- width: -moz-min-content;
3391
- width: min-content;
3392
- display: inline-grid;
3393
- -webkit-align-items: center;
3394
- -webkit-box-align: center;
3395
- -ms-flex-align: center;
3396
- align-items: center;
3397
- -webkit-box-pack: center;
3398
- -webkit-justify-content: center;
3399
- -ms-flex-pack: center;
3400
- justify-content: center;
3401
- cursor: pointer;
3402
- -webkit-user-select: none;
3403
- -moz-user-select: none;
3404
- -ms-user-select: none;
3405
- user-select: none;
3406
- white-space: nowrap;
3407
- border-radius: 999999px;
3408
- font-size: 14px;
3409
- line-height: 22px;
3410
- font-weight: bold;
3411
- padding-right: 24px;
3412
- padding-left: 24px;
3413
- color: var(--charcoal-text2);
3414
- background-color: var(--charcoal-surface3);
3415
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3416
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3417
- height: 40px;
3418
- }
3419
-
3420
- .c1:not(:disabled):not([aria-disabled]):focus,
3421
- .c1[aria-disabled='false']:focus {
3422
- outline: none;
3423
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3424
- }
3425
-
3426
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3427
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
3428
- box-shadow: none;
3429
- }
3430
-
3431
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
3432
- .c1[aria-disabled='false']:focus-visible {
3433
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3434
- }
3435
-
3436
- .c1:not(:disabled):not([aria-disabled]):hover,
3437
- .c1[aria-disabled='false']:hover {
3438
- color: var(--charcoal-text2-hover);
3439
- background-color: var(--charcoal-surface3-hover);
3440
- }
3441
-
3442
- .c1:not(:disabled):not([aria-disabled]):active,
3443
- .c1[aria-disabled='false']:active {
3444
- color: var(--charcoal-text2-press);
3445
- background-color: var(--charcoal-surface3-press);
3446
- }
3447
-
3448
- .c1:disabled,
3449
- .c1[aria-disabled]:not([aria-disabled='false']) {
3450
- opacity: 0.32;
3451
- }
3452
-
3453
- .c11 {
3454
- width: -webkit-fill-available;
3455
- width: -moz-available;
3456
- width: stretch;
3457
- display: inline-grid;
3458
- -webkit-align-items: center;
3459
- -webkit-box-align: center;
3460
- -ms-flex-align: center;
3461
- align-items: center;
3462
- -webkit-box-pack: center;
3463
- -webkit-justify-content: center;
3464
- -ms-flex-pack: center;
3465
- justify-content: center;
3466
- cursor: pointer;
3467
- -webkit-user-select: none;
3468
- -moz-user-select: none;
3469
- -ms-user-select: none;
3470
- user-select: none;
3471
- white-space: nowrap;
3472
- border-radius: 999999px;
3473
- font-size: 14px;
3474
- line-height: 22px;
3475
- font-weight: bold;
3476
- padding-right: 24px;
3477
- padding-left: 24px;
3478
- color: var(--charcoal-text2);
3479
- background-color: var(--charcoal-surface3);
3480
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3481
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3482
- height: 40px;
3483
- }
3484
-
3485
- .c11:not(:disabled):not([aria-disabled]):focus,
3486
- .c11[aria-disabled='false']:focus {
3487
- outline: none;
3488
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3489
- }
3490
-
3491
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3492
- .c11[aria-disabled='false']:focus:not(:focus-visible) {
3493
- box-shadow: none;
3494
- }
3495
-
3496
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
3497
- .c11[aria-disabled='false']:focus-visible {
3498
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3499
- }
3500
-
3501
- .c11:not(:disabled):not([aria-disabled]):hover,
3502
- .c11[aria-disabled='false']:hover {
3503
- color: var(--charcoal-text2-hover);
3504
- background-color: var(--charcoal-surface3-hover);
3505
- }
3506
-
3507
- .c11:not(:disabled):not([aria-disabled]):active,
3508
- .c11[aria-disabled='false']:active {
3509
- color: var(--charcoal-text2-press);
3510
- background-color: var(--charcoal-surface3-press);
3511
- }
3512
-
3513
- .c11:disabled,
3514
- .c11[aria-disabled]:not([aria-disabled='false']) {
3515
- opacity: 0.32;
3516
- }
3517
-
3518
- .c3 {
3519
- margin: auto;
3520
- position: relative;
3521
- height: -webkit-fit-content;
3522
- height: -moz-fit-content;
3523
- height: fit-content;
3524
- width: 440px;
3525
- background-color: var(--charcoal-surface1);
3526
- border-radius: 24px;
3527
- }
3528
-
3529
- .c3:focus {
3530
- outline: none;
3531
- }
3532
-
3533
- .c2 {
3534
- z-index: 10;
3535
- overflow: auto;
3536
- display: -webkit-box;
3537
- display: -webkit-flex;
3538
- display: -ms-flexbox;
3539
- display: flex;
3540
- position: fixed;
3541
- top: 0;
3542
- left: 0;
3543
- width: -webkit-fill-available;
3544
- width: -moz-available;
3545
- height: 100%;
3546
- -webkit-box-pack: center;
3547
- -webkit-justify-content: center;
3548
- -ms-flex-pack: center;
3549
- justify-content: center;
3550
- padding: 40px 0;
3551
- box-sizing: border-box;
3552
- background-color: var(--charcoal-surface4);
3553
- }
3554
-
3555
- .c5 {
3556
- margin: 0;
3557
- font-weight: inherit;
3558
- font-size: inherit;
3559
- }
3560
-
3561
- .c4 {
3562
- height: 64px;
3563
- display: grid;
3564
- -webkit-align-content: center;
3565
- -ms-flex-line-pack: center;
3566
- align-content: center;
3567
- -webkit-box-pack: center;
3568
- -webkit-justify-content: center;
3569
- -ms-flex-pack: center;
3570
- justify-content: center;
3571
- }
3572
-
3573
- .c6 {
3574
- color: var(--charcoal-text1);
3575
- font-size: 16px;
3576
- line-height: 24px;
3577
- font-weight: bold;
3578
- display: flow-root;
3579
- }
3580
-
3581
- .c6::before {
3582
- display: block;
3583
- width: 0;
3584
- height: 0;
3585
- content: '';
3586
- margin-top: -4px;
3587
- }
3588
-
3589
- .c6::after {
3590
- display: block;
3591
- width: 0;
3592
- height: 0;
3593
- content: '';
3594
- margin-bottom: -4px;
3595
- }
3596
-
3597
- .c7 {
3598
- padding-bottom: 40px;
3599
- }
3600
-
3601
- .c9 {
3602
- display: grid;
3603
- grid-auto-flow: row;
3604
- grid-row-gap: 8px;
3605
- padding-top: 16px;
3606
- padding-left: 16px;
3607
- padding-right: 16px;
3608
- }
3609
-
3610
- .c8 {
3611
- overflow: auto;
3612
- max-height: calc( 100vh - 184px - 56px );
3613
- }
3614
-
3615
- .c10 {
3616
- position: relative;
3617
- }
3618
-
3619
- .c10::before {
3620
- content: '';
3621
- pointer-events: none;
3622
- border-top: 1px solid rgba(0,0,0,0.08);
3623
- position: absolute;
3624
- left: 0;
3625
- top: 0;
3626
- width: 100%;
3627
- height: 100%;
3628
- }
3629
-
3630
- @media (max-width:743px) {
3631
- .c3 {
3632
- max-width: 440px;
3633
- width: calc(100% - 48px);
3634
- }
3635
- }
3636
-
3637
- @media (max-width:743px) {
3638
-
3639
- }
3640
-
3641
- @media (max-width:743px) {
3642
-
3643
- }
3644
-
3645
- <div
3646
- data-dark={false}
3647
- >
3648
- <div
3649
- aria-hidden={null}
3650
- data-overlay-container={true}
3651
- >
3652
- <button
3653
- className="c0 c1"
3654
- disabled={false}
3655
- onClick={[Function]}
3656
- >
3657
- Open Modal
3658
- </button>
3659
- <div
3660
- className="c2"
3661
- onClick={[Function]}
3662
- onPointerDown={[Function]}
3663
- style={Object {}}
3664
- >
3665
- <div
3666
- className="c3"
3667
- onBlur={[Function]}
3668
- onKeyDown={[Function]}
3669
- role="dialog"
3670
- size="M"
3671
- style={Object {}}
3672
- tabIndex={-1}
3673
- >
3674
- <div
3675
- className="c4"
3676
- >
3677
- <h3
3678
- className="c5 c6"
3679
- >
3680
- react/Title
3681
- </h3>
3682
- </div>
3683
- <div
3684
- className="c7"
3685
- >
3686
- <div
3687
- className="c8"
3688
- >
3689
- <div
3690
- style={
3691
- Object {
3692
- "background": "linear-gradient(#e66465, #9198e5)",
3693
- "height": 1000,
3694
- }
3695
- }
3696
- />
3697
- </div>
3698
- <div
3699
- className="c9 c10"
3700
- >
3701
- <button
3702
- className="c0 c11"
3703
- disabled={false}
3704
- onClick={[Function]}
3705
- >
3706
- Close
3707
- </button>
3708
- </div>
3709
- </div>
3710
- </div>
3711
- </div>
3712
- </div>
3713
- </div>
3714
- `;
3715
-
3716
- exports[`Storybook Tests react/Modal NotDismmissableStory 1`] = `
3717
- .c0 {
3718
- cursor: pointer;
3719
- -webkit-appearance: none;
3720
- -moz-appearance: none;
3721
- appearance: none;
3722
- background: transparent;
3723
- padding: 0;
3724
- border-style: none;
3725
- outline: none;
3726
- color: inherit;
3727
- text-rendering: inherit;
3728
- -webkit-letter-spacing: inherit;
3729
- -moz-letter-spacing: inherit;
3730
- -ms-letter-spacing: inherit;
3731
- letter-spacing: inherit;
3732
- word-spacing: inherit;
3733
- -webkit-text-decoration: none;
3734
- text-decoration: none;
3735
- font: inherit;
3736
- margin: 0;
3737
- overflow: visible;
3738
- text-transform: none;
3739
- }
3740
-
3741
- .c0:disabled,
3742
- .c0[aria-disabled]:not([aria-disabled=false]) {
3743
- cursor: default;
3744
- }
3745
-
3746
- .c0:focus {
3747
- outline: none;
3748
- }
3749
-
3750
- .c0::-moz-focus-inner {
3751
- border-style: none;
3752
- padding: 0;
3753
- }
3754
-
3755
- .c1 {
3756
- width: -webkit-min-content;
3757
- width: -moz-min-content;
3758
- width: min-content;
3759
- display: inline-grid;
3760
- -webkit-align-items: center;
3761
- -webkit-box-align: center;
3762
- -ms-flex-align: center;
3763
- align-items: center;
3764
- -webkit-box-pack: center;
3765
- -webkit-justify-content: center;
3766
- -ms-flex-pack: center;
3767
- justify-content: center;
3768
- cursor: pointer;
3769
- -webkit-user-select: none;
3770
- -moz-user-select: none;
3771
- -ms-user-select: none;
3772
- user-select: none;
3773
- white-space: nowrap;
3774
- border-radius: 999999px;
3775
- font-size: 14px;
3776
- line-height: 22px;
3777
- font-weight: bold;
3778
- padding-right: 24px;
3779
- padding-left: 24px;
3780
- color: var(--charcoal-text2);
3781
- background-color: var(--charcoal-surface3);
3782
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3783
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3784
- height: 40px;
3785
- }
3786
-
3787
- .c1:not(:disabled):not([aria-disabled]):focus,
3788
- .c1[aria-disabled='false']:focus {
3789
- outline: none;
3790
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3791
- }
3792
-
3793
- .c1:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3794
- .c1[aria-disabled='false']:focus:not(:focus-visible) {
3795
- box-shadow: none;
3796
- }
3797
-
3798
- .c1:not(:disabled):not([aria-disabled]):focus-visible,
3799
- .c1[aria-disabled='false']:focus-visible {
3800
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3801
- }
3802
-
3803
- .c1:not(:disabled):not([aria-disabled]):hover,
3804
- .c1[aria-disabled='false']:hover {
3805
- color: var(--charcoal-text2-hover);
3806
- background-color: var(--charcoal-surface3-hover);
3807
- }
3808
-
3809
- .c1:not(:disabled):not([aria-disabled]):active,
3810
- .c1[aria-disabled='false']:active {
3811
- color: var(--charcoal-text2-press);
3812
- background-color: var(--charcoal-surface3-press);
3813
- }
3814
-
3815
- .c1:disabled,
3816
- .c1[aria-disabled]:not([aria-disabled='false']) {
3817
- opacity: 0.32;
3818
- }
3819
-
3820
- .c12 {
3821
- width: -webkit-fill-available;
3822
- width: -moz-available;
3823
- width: stretch;
3824
- display: inline-grid;
3825
- -webkit-align-items: center;
3826
- -webkit-box-align: center;
3827
- -ms-flex-align: center;
3828
- align-items: center;
3829
- -webkit-box-pack: center;
3830
- -webkit-justify-content: center;
3831
- -ms-flex-pack: center;
3832
- justify-content: center;
3833
- cursor: pointer;
3834
- -webkit-user-select: none;
3835
- -moz-user-select: none;
3836
- -ms-user-select: none;
3837
- user-select: none;
3838
- white-space: nowrap;
3839
- border-radius: 999999px;
3840
- font-size: 14px;
3841
- line-height: 22px;
3842
- font-weight: bold;
3843
- padding-right: 24px;
3844
- padding-left: 24px;
3845
- color: var(--charcoal-text5);
3846
- background-color: var(--charcoal-brand);
3847
- -webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3848
- transition: 0.2s color,0.2s background-color,0.2s box-shadow;
3849
- height: 40px;
3850
- }
3851
-
3852
- .c12:not(:disabled):not([aria-disabled]):focus,
3853
- .c12[aria-disabled='false']:focus {
3854
- outline: none;
3855
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3856
- }
3857
-
3858
- .c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
3859
- .c12[aria-disabled='false']:focus:not(:focus-visible) {
3860
- box-shadow: none;
3861
- }
3862
-
3863
- .c12:not(:disabled):not([aria-disabled]):focus-visible,
3864
- .c12[aria-disabled='false']:focus-visible {
3865
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
3866
- }
3867
-
3868
- .c12:not(:disabled):not([aria-disabled]):hover,
3869
- .c12[aria-disabled='false']:hover {
3870
- color: var(--charcoal-text5-hover);
3871
- background-color: var(--charcoal-brand-hover);
3872
- }
3873
-
3874
- .c12:not(:disabled):not([aria-disabled]):active,
3875
- .c12[aria-disabled='false']:active {
3876
- color: var(--charcoal-text5-press);
3877
- background-color: var(--charcoal-brand-press);
3878
- }
3879
-
3880
- .c12:disabled,
3881
- .c12[aria-disabled]:not([aria-disabled='false']) {
3882
- opacity: 0.32;
3883
- }
3884
-
3885
- .c3 {
3886
- margin: auto;
3887
- position: relative;
3888
- height: -webkit-fit-content;
3889
- height: -moz-fit-content;
3890
- height: fit-content;
3891
- width: 440px;
3892
- background-color: var(--charcoal-surface1);
3893
- border-radius: 24px;
3894
- }
3895
-
3896
- .c3:focus {
3897
- outline: none;
3898
- }
3899
-
3900
- .c2 {
3901
- z-index: 10;
3902
- overflow: auto;
3903
- display: -webkit-box;
3904
- display: -webkit-flex;
3905
- display: -ms-flexbox;
3906
- display: flex;
3907
- position: fixed;
3908
- top: 0;
3909
- left: 0;
3910
- width: -webkit-fill-available;
3911
- width: -moz-available;
3912
- height: 100%;
3913
- -webkit-box-pack: center;
3914
- -webkit-justify-content: center;
3915
- -ms-flex-pack: center;
3916
- justify-content: center;
3917
- padding: 40px 0;
3918
- box-sizing: border-box;
3919
- background-color: var(--charcoal-surface4);
3920
- }
3921
-
3922
- .c5 {
3923
- margin: 0;
3924
- font-weight: inherit;
3925
- font-size: inherit;
3926
- }
3927
-
3928
- .c4 {
3929
- height: 64px;
3930
- display: grid;
3931
- -webkit-align-content: center;
3932
- -ms-flex-line-pack: center;
3933
- align-content: center;
3934
- -webkit-box-pack: center;
3935
- -webkit-justify-content: center;
3936
- -ms-flex-pack: center;
3937
- justify-content: center;
3938
- }
3939
-
3940
- .c6 {
3941
- color: var(--charcoal-text1);
3942
- font-size: 16px;
3943
- line-height: 24px;
3944
- font-weight: bold;
3945
- display: flow-root;
3946
- }
3947
-
3948
- .c6::before {
3949
- display: block;
3950
- width: 0;
3951
- height: 0;
3952
- content: '';
3953
- margin-top: -4px;
3954
- }
3955
-
3956
- .c6::after {
3957
- display: block;
3958
- width: 0;
3959
- height: 0;
3960
- content: '';
3961
- margin-bottom: -4px;
3962
- }
3963
-
3964
- .c9 {
3965
- padding-left: 16px;
3966
- padding-right: 16px;
3967
- }
3968
-
3969
- .c7 {
3970
- padding-bottom: 40px;
3971
- }
3972
-
3973
- .c11 {
3974
- display: grid;
3975
- grid-auto-flow: row;
3976
- grid-row-gap: 8px;
3977
- padding-top: 16px;
3978
- padding-left: 16px;
3979
- padding-right: 16px;
3980
- }
3981
-
3982
- .c8 {
3983
- display: grid;
3984
- gap: 24px;
3985
- }
3986
-
3987
- .c10 {
3988
- color: var(--charcoal-text2);
3989
- font-size: 14px;
3990
- line-height: 22px;
3991
- display: flow-root;
3992
- }
3993
-
3994
- .c10::before {
3995
- display: block;
3996
- width: 0;
3997
- height: 0;
3998
- content: '';
3999
- margin-top: -4px;
4000
- }
4001
-
4002
- .c10::after {
4003
- display: block;
4004
- width: 0;
4005
- height: 0;
4006
- content: '';
4007
- margin-bottom: -4px;
4008
- }
4009
-
4010
- @media (max-width:743px) {
4011
- .c3 {
4012
- max-width: 440px;
4013
- width: calc(100% - 48px);
4014
- }
4015
- }
4016
-
4017
- @media (max-width:743px) {
4018
-
4019
- }
4020
-
4021
- @media (max-width:743px) {
4022
-
4023
- }
4024
-
4025
- <div
4026
- data-dark={false}
4027
- >
4028
- <div
4029
- aria-hidden={null}
4030
- data-overlay-container={true}
4031
- >
4032
- <button
4033
- className="c0 c1"
4034
- disabled={false}
4035
- onClick={[Function]}
4036
- >
4037
- Open Modal
4038
- </button>
4039
- <div
4040
- className="c2"
4041
- onClick={[Function]}
4042
- onPointerDown={[Function]}
4043
- style={Object {}}
4044
- >
4045
- <div
4046
- className="c3"
4047
- onBlur={[Function]}
4048
- onKeyDown={[Function]}
4049
- role="dialog"
4050
- size="M"
4051
- style={Object {}}
4052
- tabIndex={-1}
4053
- >
4054
- <div
4055
- className="c4"
4056
- >
4057
- <h3
4058
- className="c5 c6"
4059
- >
4060
- react/Title
4061
- </h3>
4062
- </div>
4063
- <div
4064
- className="c7"
4065
- >
4066
- <div
4067
- className="c8"
4068
- >
4069
- <div
4070
- className="c9 c10"
4071
- >
4072
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
4073
- </div>
4074
- </div>
4075
- <div
4076
- className="c11"
4077
- >
4078
- <button
4079
- className="c0 c12"
4080
- disabled={false}
4081
- onClick={[Function]}
4082
- >
4083
- OK
4084
- </button>
4085
- </div>
4086
- </div>
4087
- </div>
4088
- </div>
4089
- </div>
4090
- </div>
4091
- `;