@charcoal-ui/react 4.0.0-beta.5 → 4.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_lib/createDivComponent.d.ts +4 -0
- package/dist/_lib/createDivComponent.d.ts.map +1 -0
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +4 -0
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/AssistiveText/index.d.ts +5 -0
- package/dist/components/TextField/AssistiveText/index.d.ts.map +1 -0
- package/dist/components/TextField/index.d.ts +1 -3
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/core/SSRProvider.d.ts +3 -1
- package/dist/core/SSRProvider.d.ts.map +1 -1
- package/dist/index.cjs.js +250 -268
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +156 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +139 -158
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
- package/src/_lib/createDivComponent.tsx +11 -0
- package/src/components/Button/__snapshots__/index.story.storyshot +9 -9
- package/src/components/Button/index.story.tsx +1 -1
- package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +5 -5
- package/src/components/Checkbox/CheckboxInput/index.story.tsx +1 -1
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +6 -6
- package/src/components/Checkbox/index.story.tsx +2 -2
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Clickable/index.story.tsx +1 -1
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +1 -1
- package/src/components/DropdownSelector/ListItem/index.story.tsx +1 -1
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +3 -3
- package/src/components/DropdownSelector/MenuList/index.story.tsx +1 -1
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
- package/src/components/DropdownSelector/Popover/index.story.tsx +1 -1
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +22 -579
- package/src/components/DropdownSelector/index.story.tsx +2 -2
- package/src/components/DropdownSelector/index.tsx +2 -2
- package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
- package/src/components/Icon/index.story.tsx +1 -1
- package/src/components/IconButton/__snapshots__/index.story.storyshot +3 -3
- package/src/components/IconButton/index.story.tsx +1 -1
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +4 -4
- package/src/components/LoadingSpinner/index.story.tsx +1 -1
- package/src/components/Modal/ModalPlumbing.tsx +2 -11
- package/src/components/Modal/__snapshots__/index.story.storyshot +104 -288
- package/src/components/Modal/index.story.tsx +2 -2
- package/src/components/Modal/index.tsx +17 -5
- package/src/components/Radio/__snapshots__/index.story.storyshot +5 -5
- package/src/components/Radio/index.story.tsx +1 -1
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +2 -2
- package/src/components/SegmentedControl/index.story.tsx +1 -1
- package/src/components/Switch/__snapshots__/index.story.storyshot +4 -4
- package/src/components/Switch/index.story.tsx +1 -1
- package/src/components/TagItem/__snapshots__/index.story.storyshot +8 -8
- package/src/components/TagItem/index.story.tsx +1 -1
- package/src/components/TextArea/TextArea.story.tsx +1 -1
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +152 -824
- package/src/components/TextArea/index.css +78 -0
- package/src/components/TextArea/index.tsx +26 -96
- package/src/components/TextField/AssistiveText/index.css +10 -0
- package/src/components/TextField/AssistiveText/index.tsx +6 -0
- package/src/components/TextField/TextField.story.tsx +1 -1
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +122 -1072
- package/src/components/TextField/index.css +87 -0
- package/src/components/TextField/index.tsx +24 -117
- package/src/core/SSRProvider.tsx +12 -1
- package/src/index.ts +5 -1
|
@@ -1,92 +1,20 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
3
|
+
exports[`Storybook Tests react/Modal BackgroundScroll 1`] = `
|
|
4
4
|
.c2 {
|
|
5
5
|
display: grid;
|
|
6
6
|
grid-template-columns: 1fr;
|
|
7
7
|
grid-gap: 4px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.c3 {
|
|
11
|
-
display: grid;
|
|
12
|
-
grid-template-columns: 1fr;
|
|
13
|
-
height: 40px;
|
|
14
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
15
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
16
|
-
color: var(--charcoal-text2);
|
|
17
|
-
background-color: var(--charcoal-surface3);
|
|
18
|
-
border-radius: 4px;
|
|
19
|
-
gap: 4px;
|
|
20
|
-
padding: 0 8px;
|
|
21
|
-
line-height: 22px;
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
26
|
-
.c3 [aria-disabled='false']:hover {
|
|
27
|
-
background-color: var(--charcoal-surface3-hover);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.c3:focus-within {
|
|
31
|
-
outline: none;
|
|
32
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.c4 {
|
|
36
|
-
border: none;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
outline: none;
|
|
39
|
-
font-family: inherit;
|
|
40
|
-
-webkit-transform-origin: top left;
|
|
41
|
-
-ms-transform-origin: top left;
|
|
42
|
-
transform-origin: top left;
|
|
43
|
-
-webkit-transform: scale(0.875);
|
|
44
|
-
-ms-transform: scale(0.875);
|
|
45
|
-
transform: scale(0.875);
|
|
46
|
-
width: calc(100% / 0.875);
|
|
47
|
-
height: calc(100% / 0.875);
|
|
48
|
-
font-size: calc(14px / 0.875);
|
|
49
|
-
line-height: calc(22px / 0.875);
|
|
50
|
-
padding-left: 0;
|
|
51
|
-
padding-right: 0;
|
|
52
|
-
border-radius: calc(4px / 0.875);
|
|
53
|
-
-webkit-appearance: none;
|
|
54
|
-
-moz-appearance: none;
|
|
55
|
-
appearance: none;
|
|
56
|
-
background: transparent;
|
|
57
|
-
color: var(--charcoal-text2);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.c4::-webkit-input-placeholder {
|
|
61
|
-
color: var(--charcoal-text3);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.c4::-moz-placeholder {
|
|
65
|
-
color: var(--charcoal-text3);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.c4:-ms-input-placeholder {
|
|
69
|
-
color: var(--charcoal-text3);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.c4::placeholder {
|
|
73
|
-
color: var(--charcoal-text3);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.c5 {
|
|
77
|
-
display: grid;
|
|
78
|
-
grid-template-columns: 1fr;
|
|
79
|
-
grid-gap: 4px;
|
|
80
8
|
width: 100%;
|
|
81
9
|
}
|
|
82
10
|
|
|
83
|
-
.
|
|
84
|
-
.
|
|
11
|
+
.c2:disabled,
|
|
12
|
+
.c2[aria-disabled]:not([aria-disabled=false]) {
|
|
85
13
|
cursor: default;
|
|
86
14
|
opacity: 0.32;
|
|
87
15
|
}
|
|
88
16
|
|
|
89
|
-
.
|
|
17
|
+
.c3 {
|
|
90
18
|
display: grid;
|
|
91
19
|
grid-template-columns: 1fr auto;
|
|
92
20
|
-webkit-box-pack: justify;
|
|
@@ -111,38 +39,38 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
111
39
|
transition: 0.2s box-shadow,0.2s background-color;
|
|
112
40
|
}
|
|
113
41
|
|
|
114
|
-
.
|
|
115
|
-
.
|
|
42
|
+
.c3:disabled,
|
|
43
|
+
.c3[aria-disabled]:not([aria-disabled=false]) {
|
|
116
44
|
cursor: default;
|
|
117
45
|
}
|
|
118
46
|
|
|
119
|
-
.
|
|
120
|
-
.
|
|
47
|
+
.c3:not(:disabled):not([aria-disabled]):focus,
|
|
48
|
+
.c3[aria-disabled='false']:focus {
|
|
121
49
|
outline: none;
|
|
122
50
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
123
51
|
}
|
|
124
52
|
|
|
125
|
-
.
|
|
126
|
-
.
|
|
53
|
+
.c3:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
54
|
+
.c3[aria-disabled='false']:focus:not(:focus-visible) {
|
|
127
55
|
box-shadow: none;
|
|
128
56
|
}
|
|
129
57
|
|
|
130
|
-
.
|
|
131
|
-
.
|
|
58
|
+
.c3:not(:disabled):not([aria-disabled]):focus-visible,
|
|
59
|
+
.c3[aria-disabled='false']:focus-visible {
|
|
132
60
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
133
61
|
}
|
|
134
62
|
|
|
135
|
-
.
|
|
136
|
-
.
|
|
63
|
+
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
64
|
+
.c3[aria-disabled='false']:hover {
|
|
137
65
|
background-color: var(--charcoal-surface3-hover);
|
|
138
66
|
}
|
|
139
67
|
|
|
140
|
-
.
|
|
141
|
-
.
|
|
68
|
+
.c3:not(:disabled):not([aria-disabled]):active,
|
|
69
|
+
.c3[aria-disabled='false']:active {
|
|
142
70
|
background-color: var(--charcoal-surface3-press);
|
|
143
71
|
}
|
|
144
72
|
|
|
145
|
-
.
|
|
73
|
+
.c4 {
|
|
146
74
|
text-align: left;
|
|
147
75
|
font-size: 14px;
|
|
148
76
|
line-height: 22px;
|
|
@@ -153,7 +81,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
153
81
|
white-space: nowrap;
|
|
154
82
|
}
|
|
155
83
|
|
|
156
|
-
.
|
|
84
|
+
.c5 {
|
|
157
85
|
color: var(--charcoal-text2);
|
|
158
86
|
}
|
|
159
87
|
|
|
@@ -232,7 +160,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
232
160
|
<div
|
|
233
161
|
className="charcoal-modal-header-title"
|
|
234
162
|
>
|
|
235
|
-
Title
|
|
163
|
+
react/Title
|
|
236
164
|
</div>
|
|
237
165
|
</div>
|
|
238
166
|
<div
|
|
@@ -250,7 +178,8 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
250
178
|
className="charcoal-modal-align"
|
|
251
179
|
>
|
|
252
180
|
<div
|
|
253
|
-
|
|
181
|
+
aria-disabled={false}
|
|
182
|
+
className="charcoal-text-field-root"
|
|
254
183
|
>
|
|
255
184
|
<div
|
|
256
185
|
className="charcoal-field-label-root"
|
|
@@ -269,11 +198,14 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
269
198
|
</div>
|
|
270
199
|
</div>
|
|
271
200
|
<div
|
|
272
|
-
className="
|
|
201
|
+
className="charcoal-text-field-container"
|
|
202
|
+
data-invalid={false}
|
|
273
203
|
>
|
|
274
204
|
<input
|
|
275
205
|
aria-labelledby="test-id"
|
|
276
|
-
className="
|
|
206
|
+
className="charcoal-text-field-input"
|
|
207
|
+
data-invalid={false}
|
|
208
|
+
disabled={false}
|
|
277
209
|
id="test-id"
|
|
278
210
|
onChange={[Function]}
|
|
279
211
|
placeholder="Nagisa"
|
|
@@ -286,7 +218,8 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
286
218
|
className="charcoal-modal-align"
|
|
287
219
|
>
|
|
288
220
|
<div
|
|
289
|
-
|
|
221
|
+
aria-disabled={false}
|
|
222
|
+
className="charcoal-text-field-root"
|
|
290
223
|
>
|
|
291
224
|
<div
|
|
292
225
|
className="charcoal-field-label-root"
|
|
@@ -305,12 +238,15 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
305
238
|
</div>
|
|
306
239
|
</div>
|
|
307
240
|
<div
|
|
308
|
-
className="
|
|
241
|
+
className="charcoal-text-field-container"
|
|
242
|
+
data-invalid={false}
|
|
309
243
|
>
|
|
310
244
|
<input
|
|
311
245
|
aria-labelledby="test-id"
|
|
312
246
|
autoFocus={true}
|
|
313
|
-
className="
|
|
247
|
+
className="charcoal-text-field-input"
|
|
248
|
+
data-invalid={false}
|
|
249
|
+
disabled={false}
|
|
314
250
|
id="test-id"
|
|
315
251
|
onChange={[Function]}
|
|
316
252
|
placeholder="Tokyo"
|
|
@@ -323,7 +259,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
323
259
|
className="charcoal-modal-align"
|
|
324
260
|
>
|
|
325
261
|
<div
|
|
326
|
-
className="
|
|
262
|
+
className="c2"
|
|
327
263
|
>
|
|
328
264
|
<div
|
|
329
265
|
className="charcoal-field-label-root"
|
|
@@ -379,17 +315,17 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
379
315
|
</select>
|
|
380
316
|
</div>
|
|
381
317
|
<button
|
|
382
|
-
className="
|
|
318
|
+
className="c3"
|
|
383
319
|
onClick={[Function]}
|
|
384
320
|
type="button"
|
|
385
321
|
>
|
|
386
322
|
<span
|
|
387
|
-
className="
|
|
323
|
+
className="c4"
|
|
388
324
|
>
|
|
389
325
|
Apple
|
|
390
326
|
</span>
|
|
391
327
|
<pixiv-icon
|
|
392
|
-
class="
|
|
328
|
+
class="c5"
|
|
393
329
|
name="16/Menu"
|
|
394
330
|
/>
|
|
395
331
|
</button>
|
|
@@ -417,11 +353,13 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
417
353
|
</div>
|
|
418
354
|
</div>
|
|
419
355
|
<button
|
|
356
|
+
aria-label="Close"
|
|
420
357
|
className="charcoal-icon-button charcoal-modal-close-button"
|
|
421
358
|
data-active={false}
|
|
422
359
|
data-size="S"
|
|
423
360
|
data-variant="Default"
|
|
424
361
|
onClick={[Function]}
|
|
362
|
+
type="button"
|
|
425
363
|
>
|
|
426
364
|
<pixiv-icon
|
|
427
365
|
name="24/Close"
|
|
@@ -433,7 +371,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
|
|
|
433
371
|
</div>
|
|
434
372
|
`;
|
|
435
373
|
|
|
436
|
-
exports[`Storybook Tests Modal BottomSheet 1`] = `
|
|
374
|
+
exports[`Storybook Tests react/Modal BottomSheet 1`] = `
|
|
437
375
|
.c0 {
|
|
438
376
|
display: grid;
|
|
439
377
|
gap: 24px;
|
|
@@ -507,7 +445,7 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
|
|
|
507
445
|
<div
|
|
508
446
|
className="charcoal-modal-header-title"
|
|
509
447
|
>
|
|
510
|
-
Title
|
|
448
|
+
react/Title
|
|
511
449
|
</div>
|
|
512
450
|
</div>
|
|
513
451
|
<div
|
|
@@ -536,11 +474,13 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
|
|
|
536
474
|
</div>
|
|
537
475
|
</div>
|
|
538
476
|
<button
|
|
477
|
+
aria-label="Close"
|
|
539
478
|
className="charcoal-icon-button charcoal-modal-close-button"
|
|
540
479
|
data-active={false}
|
|
541
480
|
data-size="S"
|
|
542
481
|
data-variant="Default"
|
|
543
482
|
onClick={[Function]}
|
|
483
|
+
type="button"
|
|
544
484
|
>
|
|
545
485
|
<pixiv-icon
|
|
546
486
|
name="24/Close"
|
|
@@ -552,93 +492,21 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
|
|
|
552
492
|
</div>
|
|
553
493
|
`;
|
|
554
494
|
|
|
555
|
-
exports[`Storybook Tests Modal Default 1`] = `
|
|
495
|
+
exports[`Storybook Tests react/Modal Default 1`] = `
|
|
556
496
|
.c2 {
|
|
557
497
|
display: grid;
|
|
558
498
|
grid-template-columns: 1fr;
|
|
559
499
|
grid-gap: 4px;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.c3 {
|
|
563
|
-
display: grid;
|
|
564
|
-
grid-template-columns: 1fr;
|
|
565
|
-
height: 40px;
|
|
566
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
567
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
568
|
-
color: var(--charcoal-text2);
|
|
569
|
-
background-color: var(--charcoal-surface3);
|
|
570
|
-
border-radius: 4px;
|
|
571
|
-
gap: 4px;
|
|
572
|
-
padding: 0 8px;
|
|
573
|
-
line-height: 22px;
|
|
574
|
-
font-size: 14px;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
578
|
-
.c3 [aria-disabled='false']:hover {
|
|
579
|
-
background-color: var(--charcoal-surface3-hover);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.c3:focus-within {
|
|
583
|
-
outline: none;
|
|
584
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.c4 {
|
|
588
|
-
border: none;
|
|
589
|
-
box-sizing: border-box;
|
|
590
|
-
outline: none;
|
|
591
|
-
font-family: inherit;
|
|
592
|
-
-webkit-transform-origin: top left;
|
|
593
|
-
-ms-transform-origin: top left;
|
|
594
|
-
transform-origin: top left;
|
|
595
|
-
-webkit-transform: scale(0.875);
|
|
596
|
-
-ms-transform: scale(0.875);
|
|
597
|
-
transform: scale(0.875);
|
|
598
|
-
width: calc(100% / 0.875);
|
|
599
|
-
height: calc(100% / 0.875);
|
|
600
|
-
font-size: calc(14px / 0.875);
|
|
601
|
-
line-height: calc(22px / 0.875);
|
|
602
|
-
padding-left: 0;
|
|
603
|
-
padding-right: 0;
|
|
604
|
-
border-radius: calc(4px / 0.875);
|
|
605
|
-
-webkit-appearance: none;
|
|
606
|
-
-moz-appearance: none;
|
|
607
|
-
appearance: none;
|
|
608
|
-
background: transparent;
|
|
609
|
-
color: var(--charcoal-text2);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
.c4::-webkit-input-placeholder {
|
|
613
|
-
color: var(--charcoal-text3);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.c4::-moz-placeholder {
|
|
617
|
-
color: var(--charcoal-text3);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
.c4:-ms-input-placeholder {
|
|
621
|
-
color: var(--charcoal-text3);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
.c4::placeholder {
|
|
625
|
-
color: var(--charcoal-text3);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
.c5 {
|
|
629
|
-
display: grid;
|
|
630
|
-
grid-template-columns: 1fr;
|
|
631
|
-
grid-gap: 4px;
|
|
632
500
|
width: 100%;
|
|
633
501
|
}
|
|
634
502
|
|
|
635
|
-
.
|
|
636
|
-
.
|
|
503
|
+
.c2:disabled,
|
|
504
|
+
.c2[aria-disabled]:not([aria-disabled=false]) {
|
|
637
505
|
cursor: default;
|
|
638
506
|
opacity: 0.32;
|
|
639
507
|
}
|
|
640
508
|
|
|
641
|
-
.
|
|
509
|
+
.c3 {
|
|
642
510
|
display: grid;
|
|
643
511
|
grid-template-columns: 1fr auto;
|
|
644
512
|
-webkit-box-pack: justify;
|
|
@@ -663,38 +531,38 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
663
531
|
transition: 0.2s box-shadow,0.2s background-color;
|
|
664
532
|
}
|
|
665
533
|
|
|
666
|
-
.
|
|
667
|
-
.
|
|
534
|
+
.c3:disabled,
|
|
535
|
+
.c3[aria-disabled]:not([aria-disabled=false]) {
|
|
668
536
|
cursor: default;
|
|
669
537
|
}
|
|
670
538
|
|
|
671
|
-
.
|
|
672
|
-
.
|
|
539
|
+
.c3:not(:disabled):not([aria-disabled]):focus,
|
|
540
|
+
.c3[aria-disabled='false']:focus {
|
|
673
541
|
outline: none;
|
|
674
542
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
675
543
|
}
|
|
676
544
|
|
|
677
|
-
.
|
|
678
|
-
.
|
|
545
|
+
.c3:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
546
|
+
.c3[aria-disabled='false']:focus:not(:focus-visible) {
|
|
679
547
|
box-shadow: none;
|
|
680
548
|
}
|
|
681
549
|
|
|
682
|
-
.
|
|
683
|
-
.
|
|
550
|
+
.c3:not(:disabled):not([aria-disabled]):focus-visible,
|
|
551
|
+
.c3[aria-disabled='false']:focus-visible {
|
|
684
552
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
685
553
|
}
|
|
686
554
|
|
|
687
|
-
.
|
|
688
|
-
.
|
|
555
|
+
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
556
|
+
.c3[aria-disabled='false']:hover {
|
|
689
557
|
background-color: var(--charcoal-surface3-hover);
|
|
690
558
|
}
|
|
691
559
|
|
|
692
|
-
.
|
|
693
|
-
.
|
|
560
|
+
.c3:not(:disabled):not([aria-disabled]):active,
|
|
561
|
+
.c3[aria-disabled='false']:active {
|
|
694
562
|
background-color: var(--charcoal-surface3-press);
|
|
695
563
|
}
|
|
696
564
|
|
|
697
|
-
.
|
|
565
|
+
.c4 {
|
|
698
566
|
text-align: left;
|
|
699
567
|
font-size: 14px;
|
|
700
568
|
line-height: 22px;
|
|
@@ -705,7 +573,7 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
705
573
|
white-space: nowrap;
|
|
706
574
|
}
|
|
707
575
|
|
|
708
|
-
.
|
|
576
|
+
.c5 {
|
|
709
577
|
color: var(--charcoal-text2);
|
|
710
578
|
}
|
|
711
579
|
|
|
@@ -776,7 +644,7 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
776
644
|
<div
|
|
777
645
|
className="charcoal-modal-header-title"
|
|
778
646
|
>
|
|
779
|
-
Title
|
|
647
|
+
react/Title
|
|
780
648
|
</div>
|
|
781
649
|
</div>
|
|
782
650
|
<div
|
|
@@ -794,7 +662,8 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
794
662
|
className="charcoal-modal-align"
|
|
795
663
|
>
|
|
796
664
|
<div
|
|
797
|
-
|
|
665
|
+
aria-disabled={false}
|
|
666
|
+
className="charcoal-text-field-root"
|
|
798
667
|
>
|
|
799
668
|
<div
|
|
800
669
|
className="charcoal-field-label-root"
|
|
@@ -813,11 +682,14 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
813
682
|
</div>
|
|
814
683
|
</div>
|
|
815
684
|
<div
|
|
816
|
-
className="
|
|
685
|
+
className="charcoal-text-field-container"
|
|
686
|
+
data-invalid={false}
|
|
817
687
|
>
|
|
818
688
|
<input
|
|
819
689
|
aria-labelledby="test-id"
|
|
820
|
-
className="
|
|
690
|
+
className="charcoal-text-field-input"
|
|
691
|
+
data-invalid={false}
|
|
692
|
+
disabled={false}
|
|
821
693
|
id="test-id"
|
|
822
694
|
onChange={[Function]}
|
|
823
695
|
placeholder="Nagisa"
|
|
@@ -830,7 +702,8 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
830
702
|
className="charcoal-modal-align"
|
|
831
703
|
>
|
|
832
704
|
<div
|
|
833
|
-
|
|
705
|
+
aria-disabled={false}
|
|
706
|
+
className="charcoal-text-field-root"
|
|
834
707
|
>
|
|
835
708
|
<div
|
|
836
709
|
className="charcoal-field-label-root"
|
|
@@ -849,12 +722,15 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
849
722
|
</div>
|
|
850
723
|
</div>
|
|
851
724
|
<div
|
|
852
|
-
className="
|
|
725
|
+
className="charcoal-text-field-container"
|
|
726
|
+
data-invalid={false}
|
|
853
727
|
>
|
|
854
728
|
<input
|
|
855
729
|
aria-labelledby="test-id"
|
|
856
730
|
autoFocus={true}
|
|
857
|
-
className="
|
|
731
|
+
className="charcoal-text-field-input"
|
|
732
|
+
data-invalid={false}
|
|
733
|
+
disabled={false}
|
|
858
734
|
id="test-id"
|
|
859
735
|
onChange={[Function]}
|
|
860
736
|
placeholder="Tokyo"
|
|
@@ -867,7 +743,7 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
867
743
|
className="charcoal-modal-align"
|
|
868
744
|
>
|
|
869
745
|
<div
|
|
870
|
-
className="
|
|
746
|
+
className="c2"
|
|
871
747
|
>
|
|
872
748
|
<div
|
|
873
749
|
className="charcoal-field-label-root"
|
|
@@ -923,17 +799,17 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
923
799
|
</select>
|
|
924
800
|
</div>
|
|
925
801
|
<button
|
|
926
|
-
className="
|
|
802
|
+
className="c3"
|
|
927
803
|
onClick={[Function]}
|
|
928
804
|
type="button"
|
|
929
805
|
>
|
|
930
806
|
<span
|
|
931
|
-
className="
|
|
807
|
+
className="c4"
|
|
932
808
|
>
|
|
933
809
|
Apple
|
|
934
810
|
</span>
|
|
935
811
|
<pixiv-icon
|
|
936
|
-
class="
|
|
812
|
+
class="c5"
|
|
937
813
|
name="16/Menu"
|
|
938
814
|
/>
|
|
939
815
|
</button>
|
|
@@ -961,11 +837,13 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
961
837
|
</div>
|
|
962
838
|
</div>
|
|
963
839
|
<button
|
|
840
|
+
aria-label="Close"
|
|
964
841
|
className="charcoal-icon-button charcoal-modal-close-button"
|
|
965
842
|
data-active={false}
|
|
966
843
|
data-size="S"
|
|
967
844
|
data-variant="Default"
|
|
968
845
|
onClick={[Function]}
|
|
846
|
+
type="button"
|
|
969
847
|
>
|
|
970
848
|
<pixiv-icon
|
|
971
849
|
name="24/Close"
|
|
@@ -977,79 +855,7 @@ exports[`Storybook Tests Modal Default 1`] = `
|
|
|
977
855
|
</div>
|
|
978
856
|
`;
|
|
979
857
|
|
|
980
|
-
exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
981
|
-
.c2 {
|
|
982
|
-
display: grid;
|
|
983
|
-
grid-template-columns: 1fr;
|
|
984
|
-
grid-gap: 4px;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
.c3 {
|
|
988
|
-
display: grid;
|
|
989
|
-
grid-template-columns: 1fr;
|
|
990
|
-
height: 40px;
|
|
991
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
992
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
993
|
-
color: var(--charcoal-text2);
|
|
994
|
-
background-color: var(--charcoal-surface3);
|
|
995
|
-
border-radius: 4px;
|
|
996
|
-
gap: 4px;
|
|
997
|
-
padding: 0 8px;
|
|
998
|
-
line-height: 22px;
|
|
999
|
-
font-size: 14px;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.c3:not(:disabled):not([aria-disabled]):hover,
|
|
1003
|
-
.c3 [aria-disabled='false']:hover {
|
|
1004
|
-
background-color: var(--charcoal-surface3-hover);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
.c3:focus-within {
|
|
1008
|
-
outline: none;
|
|
1009
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
.c4 {
|
|
1013
|
-
border: none;
|
|
1014
|
-
box-sizing: border-box;
|
|
1015
|
-
outline: none;
|
|
1016
|
-
font-family: inherit;
|
|
1017
|
-
-webkit-transform-origin: top left;
|
|
1018
|
-
-ms-transform-origin: top left;
|
|
1019
|
-
transform-origin: top left;
|
|
1020
|
-
-webkit-transform: scale(0.875);
|
|
1021
|
-
-ms-transform: scale(0.875);
|
|
1022
|
-
transform: scale(0.875);
|
|
1023
|
-
width: calc(100% / 0.875);
|
|
1024
|
-
height: calc(100% / 0.875);
|
|
1025
|
-
font-size: calc(14px / 0.875);
|
|
1026
|
-
line-height: calc(22px / 0.875);
|
|
1027
|
-
padding-left: 0;
|
|
1028
|
-
padding-right: 0;
|
|
1029
|
-
border-radius: calc(4px / 0.875);
|
|
1030
|
-
-webkit-appearance: none;
|
|
1031
|
-
-moz-appearance: none;
|
|
1032
|
-
appearance: none;
|
|
1033
|
-
background: transparent;
|
|
1034
|
-
color: var(--charcoal-text2);
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
.c4::-webkit-input-placeholder {
|
|
1038
|
-
color: var(--charcoal-text3);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
.c4::-moz-placeholder {
|
|
1042
|
-
color: var(--charcoal-text3);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
.c4:-ms-input-placeholder {
|
|
1046
|
-
color: var(--charcoal-text3);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
.c4::placeholder {
|
|
1050
|
-
color: var(--charcoal-text3);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
858
|
+
exports[`Storybook Tests react/Modal FullBottomSheet 1`] = `
|
|
1053
859
|
.c0 {
|
|
1054
860
|
display: grid;
|
|
1055
861
|
gap: 24px;
|
|
@@ -1123,7 +929,7 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1123
929
|
<div
|
|
1124
930
|
className="charcoal-modal-header-title"
|
|
1125
931
|
>
|
|
1126
|
-
Title
|
|
932
|
+
react/Title
|
|
1127
933
|
</div>
|
|
1128
934
|
</div>
|
|
1129
935
|
<div
|
|
@@ -1141,7 +947,8 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1141
947
|
className="charcoal-modal-align"
|
|
1142
948
|
>
|
|
1143
949
|
<div
|
|
1144
|
-
|
|
950
|
+
aria-disabled={false}
|
|
951
|
+
className="charcoal-text-field-root"
|
|
1145
952
|
>
|
|
1146
953
|
<div
|
|
1147
954
|
className="charcoal-field-label-root"
|
|
@@ -1160,11 +967,14 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1160
967
|
</div>
|
|
1161
968
|
</div>
|
|
1162
969
|
<div
|
|
1163
|
-
className="
|
|
970
|
+
className="charcoal-text-field-container"
|
|
971
|
+
data-invalid={false}
|
|
1164
972
|
>
|
|
1165
973
|
<input
|
|
1166
974
|
aria-labelledby="test-id"
|
|
1167
|
-
className="
|
|
975
|
+
className="charcoal-text-field-input"
|
|
976
|
+
data-invalid={false}
|
|
977
|
+
disabled={false}
|
|
1168
978
|
id="test-id"
|
|
1169
979
|
onChange={[Function]}
|
|
1170
980
|
placeholder="Nagisa"
|
|
@@ -1177,7 +987,8 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1177
987
|
className="charcoal-modal-align"
|
|
1178
988
|
>
|
|
1179
989
|
<div
|
|
1180
|
-
|
|
990
|
+
aria-disabled={false}
|
|
991
|
+
className="charcoal-text-field-root"
|
|
1181
992
|
>
|
|
1182
993
|
<div
|
|
1183
994
|
className="charcoal-field-label-root"
|
|
@@ -1196,11 +1007,14 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1196
1007
|
</div>
|
|
1197
1008
|
</div>
|
|
1198
1009
|
<div
|
|
1199
|
-
className="
|
|
1010
|
+
className="charcoal-text-field-container"
|
|
1011
|
+
data-invalid={false}
|
|
1200
1012
|
>
|
|
1201
1013
|
<input
|
|
1202
1014
|
aria-labelledby="test-id"
|
|
1203
|
-
className="
|
|
1015
|
+
className="charcoal-text-field-input"
|
|
1016
|
+
data-invalid={false}
|
|
1017
|
+
disabled={false}
|
|
1204
1018
|
id="test-id"
|
|
1205
1019
|
onChange={[Function]}
|
|
1206
1020
|
placeholder="Tokyo"
|
|
@@ -1231,11 +1045,13 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1231
1045
|
</div>
|
|
1232
1046
|
</div>
|
|
1233
1047
|
<button
|
|
1048
|
+
aria-label="Close"
|
|
1234
1049
|
className="charcoal-icon-button charcoal-modal-close-button"
|
|
1235
1050
|
data-active={false}
|
|
1236
1051
|
data-size="S"
|
|
1237
1052
|
data-variant="Default"
|
|
1238
1053
|
onClick={[Function]}
|
|
1054
|
+
type="button"
|
|
1239
1055
|
>
|
|
1240
1056
|
<pixiv-icon
|
|
1241
1057
|
name="24/Close"
|
|
@@ -1247,7 +1063,7 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
|
|
|
1247
1063
|
</div>
|
|
1248
1064
|
`;
|
|
1249
1065
|
|
|
1250
|
-
exports[`Storybook Tests Modal InternalScroll 1`] = `
|
|
1066
|
+
exports[`Storybook Tests react/Modal InternalScroll 1`] = `
|
|
1251
1067
|
.c0 {
|
|
1252
1068
|
overflow: auto;
|
|
1253
1069
|
max-height: calc( 100vh - 184px - 56px );
|
|
@@ -1307,7 +1123,7 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
|
|
|
1307
1123
|
<div
|
|
1308
1124
|
className="charcoal-modal-header-title"
|
|
1309
1125
|
>
|
|
1310
|
-
Title
|
|
1126
|
+
react/Title
|
|
1311
1127
|
</div>
|
|
1312
1128
|
</div>
|
|
1313
1129
|
<div
|
|
@@ -1343,7 +1159,7 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
|
|
|
1343
1159
|
</div>
|
|
1344
1160
|
`;
|
|
1345
1161
|
|
|
1346
|
-
exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
|
|
1162
|
+
exports[`Storybook Tests react/Modal NotDismmissableStory 1`] = `
|
|
1347
1163
|
.c0 {
|
|
1348
1164
|
display: grid;
|
|
1349
1165
|
gap: 24px;
|
|
@@ -1411,7 +1227,7 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
|
|
|
1411
1227
|
<div
|
|
1412
1228
|
className="charcoal-modal-header-title"
|
|
1413
1229
|
>
|
|
1414
|
-
Title
|
|
1230
|
+
react/Title
|
|
1415
1231
|
</div>
|
|
1416
1232
|
</div>
|
|
1417
1233
|
<div
|