@charcoal-ui/react 3.9.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts.map +1 -1
  2. package/dist/components/DropdownSelector/MenuList/MenuListContext.d.ts +2 -1
  3. package/dist/components/DropdownSelector/MenuList/MenuListContext.d.ts.map +1 -1
  4. package/dist/components/DropdownSelector/MenuList/index.d.ts.map +1 -1
  5. package/dist/components/DropdownSelector/MenuList/internals/getValuesRecursive.d.ts +2 -1
  6. package/dist/components/DropdownSelector/MenuList/internals/getValuesRecursive.d.ts.map +1 -1
  7. package/dist/components/DropdownSelector/index.d.ts +4 -0
  8. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  9. package/dist/components/DropdownSelector/index.story.d.ts +12 -5
  10. package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
  11. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -1
  12. package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
  13. package/dist/components/Modal/index.story.d.ts +1 -0
  14. package/dist/components/Modal/index.story.d.ts.map +1 -1
  15. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  16. package/dist/index.cjs.js +49 -25
  17. package/dist/index.cjs.js.map +1 -1
  18. package/dist/index.esm.js +60 -36
  19. package/dist/index.esm.js.map +1 -1
  20. package/package.json +9 -7
  21. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +5 -3
  22. package/src/components/DropdownSelector/ListItem/index.tsx +5 -1
  23. package/src/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.tsx +29 -18
  24. package/src/components/DropdownSelector/MenuList/MenuListContext.ts +3 -2
  25. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +15 -9
  26. package/src/components/DropdownSelector/MenuList/index.tsx +6 -4
  27. package/src/components/DropdownSelector/MenuList/internals/getValuesRecursive.tsx +11 -8
  28. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +2666 -396
  29. package/src/components/DropdownSelector/index.story.tsx +264 -103
  30. package/src/components/DropdownSelector/index.tsx +35 -7
  31. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +1 -0
  32. package/src/components/LoadingSpinner/index.story.tsx +1 -0
  33. package/src/components/Modal/__snapshots__/index.story.storyshot +990 -0
  34. package/src/components/Modal/index.story.tsx +23 -0
  35. package/src/components/Modal/useCustomModalOverlay.tsx +5 -0
@@ -1,5 +1,957 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Storybook Tests 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
+ 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
+ tabIndex={-1}
885
+ value="10"
886
+ >
887
+ <option
888
+ value="10"
889
+ >
890
+ 10
891
+ </option>
892
+ <option
893
+ value="20"
894
+ >
895
+ 20
896
+ </option>
897
+ <option
898
+ value="30"
899
+ >
900
+ 30
901
+ </option>
902
+ </select>
903
+ </div>
904
+ <button
905
+ className="c21"
906
+ onClick={[Function]}
907
+ type="button"
908
+ >
909
+ <span
910
+ className="c22"
911
+ >
912
+ Apple
913
+ </span>
914
+ <pixiv-icon
915
+ class="c23"
916
+ name="16/Menu"
917
+ />
918
+ </button>
919
+ </div>
920
+ </div>
921
+ </div>
922
+ <div
923
+ className="c24"
924
+ >
925
+ <button
926
+ className="c0 c25"
927
+ disabled={false}
928
+ onClick={[Function]}
929
+ >
930
+ Apply
931
+ </button>
932
+ <button
933
+ className="c0 c26"
934
+ disabled={false}
935
+ onClick={[Function]}
936
+ >
937
+ Cancel
938
+ </button>
939
+ </div>
940
+ </div>
941
+ <button
942
+ className="c0 c27 c28"
943
+ onClick={[Function]}
944
+ >
945
+ <pixiv-icon
946
+ name="24/Close"
947
+ />
948
+ </button>
949
+ </div>
950
+ </div>
951
+ </div>
952
+ </div>
953
+ `;
954
+
3
955
  exports[`Storybook Tests Modal BottomSheet 1`] = `
4
956
  .c0 {
5
957
  cursor: pointer;
@@ -1335,6 +2287,44 @@ exports[`Storybook Tests Modal Default 1`] = `
1335
2287
  <span />
1336
2288
  </div>
1337
2289
  </div>
2290
+ <div
2291
+ aria-hidden="true"
2292
+ style={
2293
+ Object {
2294
+ "border": 0,
2295
+ "clip": "rect(0 0 0 0)",
2296
+ "clipPath": "inset(50%)",
2297
+ "height": "1px",
2298
+ "margin": "-1px",
2299
+ "overflow": "hidden",
2300
+ "padding": 0,
2301
+ "position": "absolute",
2302
+ "whiteSpace": "nowrap",
2303
+ "width": "1px",
2304
+ }
2305
+ }
2306
+ >
2307
+ <select
2308
+ tabIndex={-1}
2309
+ value="10"
2310
+ >
2311
+ <option
2312
+ value="10"
2313
+ >
2314
+ 10
2315
+ </option>
2316
+ <option
2317
+ value="20"
2318
+ >
2319
+ 20
2320
+ </option>
2321
+ <option
2322
+ value="30"
2323
+ >
2324
+ 30
2325
+ </option>
2326
+ </select>
2327
+ </div>
1338
2328
  <button
1339
2329
  className="c21"
1340
2330
  onClick={[Function]}