@charcoal-ui/react 4.0.0-beta.4 → 4.0.0-beta.6

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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/_lib/useClassNames.d.ts +2 -2
  3. package/dist/_lib/useClassNames.d.ts.map +1 -1
  4. package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
  5. package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
  6. package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
  7. package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
  8. package/dist/components/Checkbox/index.d.ts +9 -7
  9. package/dist/components/Checkbox/index.d.ts.map +1 -1
  10. package/dist/components/Clickable/index.d.ts +10 -13
  11. package/dist/components/Clickable/index.d.ts.map +1 -1
  12. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  13. package/dist/components/FieldLabel/index.d.ts +1 -0
  14. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  15. package/dist/components/IconButton/index.d.ts +7 -5
  16. package/dist/components/IconButton/index.d.ts.map +1 -1
  17. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  18. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  19. package/dist/components/Modal/Dialog/index.d.ts +6 -24
  20. package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
  21. package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
  22. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  23. package/dist/components/Modal/index.d.ts +5 -1
  24. package/dist/components/Modal/index.d.ts.map +1 -1
  25. package/dist/components/Radio/index.d.ts +3 -5
  26. package/dist/components/Radio/index.d.ts.map +1 -1
  27. package/dist/components/SegmentedControl/index.d.ts +1 -0
  28. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  29. package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
  30. package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
  31. package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
  32. package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
  33. package/dist/components/Switch/index.d.ts +4 -15
  34. package/dist/components/Switch/index.d.ts.map +1 -1
  35. package/dist/components/TagItem/index.d.ts +14 -15
  36. package/dist/components/TagItem/index.d.ts.map +1 -1
  37. package/dist/components/TextArea/index.d.ts +28 -18
  38. package/dist/components/TextArea/index.d.ts.map +1 -1
  39. package/dist/components/TextField/index.d.ts +32 -19
  40. package/dist/components/TextField/index.d.ts.map +1 -1
  41. package/dist/core/SSRProvider.d.ts +3 -1
  42. package/dist/core/SSRProvider.d.ts.map +1 -1
  43. package/dist/index.cjs.js +471 -845
  44. package/dist/index.cjs.js.map +1 -1
  45. package/dist/index.css +732 -28
  46. package/dist/index.css.map +1 -1
  47. package/dist/index.d.ts +2 -3
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.esm.js +427 -800
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/styled.d.ts +4 -4
  52. package/package.json +11 -10
  53. package/src/_lib/useClassNames.ts +3 -9
  54. package/src/components/Button/__snapshots__/index.story.storyshot +9 -9
  55. package/src/components/Button/index.story.tsx +1 -1
  56. package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +77 -0
  57. package/src/components/Checkbox/CheckboxInput/index.css +111 -0
  58. package/src/components/{CheckboxInput → Checkbox/CheckboxInput}/index.story.tsx +17 -1
  59. package/src/components/Checkbox/CheckboxInput/index.tsx +47 -0
  60. package/src/components/Checkbox/CheckboxWithLabel.tsx +24 -0
  61. package/src/components/Checkbox/__snapshots__/index.story.storyshot +59 -140
  62. package/src/components/Checkbox/index.css +2 -2
  63. package/src/components/Checkbox/index.story.tsx +18 -13
  64. package/src/components/Checkbox/index.tsx +23 -15
  65. package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -80
  66. package/src/components/Clickable/index.css +41 -0
  67. package/src/components/Clickable/index.story.tsx +2 -2
  68. package/src/components/Clickable/index.tsx +25 -85
  69. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +11 -136
  70. package/src/components/DropdownSelector/ListItem/index.story.tsx +1 -1
  71. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +3 -3
  72. package/src/components/DropdownSelector/MenuList/index.story.tsx +1 -1
  73. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
  74. package/src/components/DropdownSelector/Popover/index.story.tsx +1 -1
  75. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +184 -1435
  76. package/src/components/DropdownSelector/index.story.tsx +2 -2
  77. package/src/components/DropdownSelector/index.tsx +9 -38
  78. package/src/components/FieldLabel/index.css +35 -0
  79. package/src/components/FieldLabel/index.tsx +15 -105
  80. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  81. package/src/components/Icon/index.story.tsx +1 -1
  82. package/src/components/IconButton/__snapshots__/index.story.storyshot +15 -291
  83. package/src/components/IconButton/index.css +118 -0
  84. package/src/components/IconButton/index.story.tsx +3 -3
  85. package/src/components/IconButton/index.tsx +41 -118
  86. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
  87. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +44 -132
  88. package/src/components/LoadingSpinner/index.css +42 -0
  89. package/src/components/LoadingSpinner/index.story.tsx +1 -1
  90. package/src/components/LoadingSpinner/index.tsx +26 -52
  91. package/src/components/Modal/Dialog/index.css +44 -0
  92. package/src/components/Modal/Dialog/index.tsx +13 -57
  93. package/src/components/Modal/ModalPlumbing.css +40 -0
  94. package/src/components/Modal/ModalPlumbing.tsx +22 -61
  95. package/src/components/Modal/__snapshots__/index.story.storyshot +479 -1893
  96. package/src/components/Modal/index.css +36 -0
  97. package/src/components/Modal/index.story.tsx +2 -2
  98. package/src/components/Modal/index.tsx +37 -72
  99. package/src/components/Radio/__snapshots__/index.story.storyshot +55 -780
  100. package/src/components/Radio/index.css +97 -0
  101. package/src/components/Radio/index.story.tsx +2 -11
  102. package/src/components/Radio/index.test.tsx +0 -1
  103. package/src/components/Radio/index.tsx +50 -161
  104. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +32 -262
  105. package/src/components/SegmentedControl/index.css +50 -0
  106. package/src/components/SegmentedControl/index.story.tsx +1 -1
  107. package/src/components/SegmentedControl/index.tsx +20 -89
  108. package/src/components/Switch/SwitchInput/index.css +82 -0
  109. package/src/components/Switch/SwitchInput/index.tsx +40 -0
  110. package/src/components/Switch/SwitchWithLabel.tsx +24 -0
  111. package/src/components/Switch/__snapshots__/index.story.storyshot +33 -536
  112. package/src/components/Switch/index.css +23 -0
  113. package/src/components/Switch/index.story.tsx +6 -1
  114. package/src/components/Switch/index.tsx +43 -140
  115. package/src/components/TagItem/__snapshots__/index.story.storyshot +161 -1138
  116. package/src/components/TagItem/index.css +140 -0
  117. package/src/components/TagItem/index.story.tsx +2 -2
  118. package/src/components/TagItem/index.tsx +76 -220
  119. package/src/components/TextArea/TextArea.story.tsx +1 -1
  120. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +214 -1368
  121. package/src/components/TextArea/index.tsx +68 -91
  122. package/src/components/TextField/TextField.story.tsx +1 -1
  123. package/src/components/TextField/__snapshots__/TextField.story.storyshot +287 -1627
  124. package/src/components/TextField/index.tsx +77 -105
  125. package/src/core/SSRProvider.tsx +12 -1
  126. package/src/index.ts +5 -8
  127. package/src/type.d.ts +6 -0
  128. package/dist/components/CheckboxInput/index.d.ts +0 -9
  129. package/dist/components/CheckboxInput/index.d.ts.map +0 -1
  130. package/dist/components/MultiSelect/context.d.ts +0 -14
  131. package/dist/components/MultiSelect/context.d.ts.map +0 -1
  132. package/dist/components/MultiSelect/index.d.ts +0 -36
  133. package/dist/components/MultiSelect/index.d.ts.map +0 -1
  134. package/src/components/CheckboxInput/__snapshots__/index.story.storyshot +0 -109
  135. package/src/components/CheckboxInput/index.css +0 -77
  136. package/src/components/CheckboxInput/index.tsx +0 -53
  137. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1054
  138. package/src/components/MultiSelect/context.ts +0 -23
  139. package/src/components/MultiSelect/index.story.tsx +0 -112
  140. package/src/components/MultiSelect/index.test.tsx +0 -263
  141. package/src/components/MultiSelect/index.tsx +0 -282
@@ -1,149 +1,94 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storybook Tests Modal BackgroundScroll 1`] = `
4
- .c23 {
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
- .c23:disabled,
29
- .c23[aria-disabled]:not([aria-disabled=false]) {
30
- cursor: default;
31
- }
32
-
33
- .c23:focus {
34
- outline: none;
35
- }
36
-
37
- .c23::-moz-focus-inner {
38
- border-style: none;
39
- padding: 0;
3
+ exports[`Storybook Tests react/Modal BackgroundScroll 1`] = `
4
+ .c2 {
5
+ display: grid;
6
+ grid-template-columns: 1fr;
7
+ grid-gap: 4px;
40
8
  }
41
9
 
42
- .c12 {
43
- font-size: 14px;
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;
44
21
  line-height: 22px;
45
- font-weight: bold;
46
- display: flow-root;
47
- color: var(--charcoal-text1);
48
- }
49
-
50
- .c12::before {
51
- display: block;
52
- width: 0;
53
- height: 0;
54
- content: '';
55
- margin-top: -4px;
56
- }
57
-
58
- .c12::after {
59
- display: block;
60
- width: 0;
61
- height: 0;
62
- content: '';
63
- margin-bottom: -4px;
64
- }
65
-
66
- .c14 {
67
22
  font-size: 14px;
68
- line-height: 22px;
69
- display: flow-root;
70
- color: var(--charcoal-text3);
71
- -webkit-transition: 0.2s color,0.2s box-shadow;
72
- transition: 0.2s color,0.2s box-shadow;
73
23
  }
74
24
 
75
- .c14::before {
76
- display: block;
77
- width: 0;
78
- height: 0;
79
- content: '';
80
- margin-top: -4px;
25
+ .c3:not(:disabled):not([aria-disabled]):hover,
26
+ .c3 [aria-disabled='false']:hover {
27
+ background-color: var(--charcoal-surface3-hover);
81
28
  }
82
29
 
83
- .c14::after {
84
- display: block;
85
- width: 0;
86
- height: 0;
87
- content: '';
88
- margin-bottom: -4px;
30
+ .c3:focus-within {
31
+ outline: none;
32
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
89
33
  }
90
34
 
91
- .c14:not(:disabled):not([aria-disabled]):hover,
92
- .c14[aria-disabled='false']:hover {
93
- color: var(--charcoal-text3-hover);
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);
94
58
  }
95
59
 
96
- .c14:not(:disabled):not([aria-disabled]):active,
97
- .c14[aria-disabled='false']:active {
98
- color: var(--charcoal-text3-press);
60
+ .c4::-webkit-input-placeholder {
61
+ color: var(--charcoal-text3);
99
62
  }
100
63
 
101
- .c14:not(:disabled):not([aria-disabled]):active,
102
- .c14[aria-disabled='false']:active,
103
- .c14:not(:disabled):not([aria-disabled]):focus,
104
- .c14[aria-disabled='false']:focus,
105
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
106
- .c14[aria-disabled='false']:focus-visible {
107
- outline: none;
108
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
64
+ .c4::-moz-placeholder {
65
+ color: var(--charcoal-text3);
109
66
  }
110
67
 
111
- .c10 {
112
- display: -webkit-inline-box;
113
- display: -webkit-inline-flex;
114
- display: -ms-inline-flexbox;
115
- display: inline-flex;
116
- -webkit-align-items: center;
117
- -webkit-box-align: center;
118
- -ms-flex-align: center;
119
- align-items: center;
68
+ .c4:-ms-input-placeholder {
69
+ color: var(--charcoal-text3);
120
70
  }
121
71
 
122
- .c10 > .c13 {
123
- margin-left: auto;
72
+ .c4::placeholder {
73
+ color: var(--charcoal-text3);
124
74
  }
125
75
 
126
- .c17 {
127
- display: inline-block;
76
+ .c5 {
77
+ display: grid;
78
+ grid-template-columns: 1fr;
79
+ grid-gap: 4px;
128
80
  width: 100%;
129
81
  }
130
82
 
131
- .c17:disabled,
132
- .c17[aria-disabled]:not([aria-disabled=false]) {
83
+ .c5:disabled,
84
+ .c5[aria-disabled]:not([aria-disabled=false]) {
133
85
  cursor: default;
134
86
  opacity: 0.32;
135
87
  }
136
88
 
137
- .c18 {
138
- width: 100%;
139
- margin-bottom: 8px;
140
- }
141
-
142
- .c19 {
143
- display: -webkit-box;
144
- display: -webkit-flex;
145
- display: -ms-flexbox;
146
- display: flex;
89
+ .c6 {
90
+ display: grid;
91
+ grid-template-columns: 1fr auto;
147
92
  -webkit-box-pack: justify;
148
93
  -webkit-justify-content: space-between;
149
94
  -ms-flex-pack: justify;
@@ -166,38 +111,38 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
166
111
  transition: 0.2s box-shadow,0.2s background-color;
167
112
  }
168
113
 
169
- .c19:disabled,
170
- .c19[aria-disabled]:not([aria-disabled=false]) {
114
+ .c6:disabled,
115
+ .c6[aria-disabled]:not([aria-disabled=false]) {
171
116
  cursor: default;
172
117
  }
173
118
 
174
- .c19:not(:disabled):not([aria-disabled]):focus,
175
- .c19[aria-disabled='false']:focus {
119
+ .c6:not(:disabled):not([aria-disabled]):focus,
120
+ .c6[aria-disabled='false']:focus {
176
121
  outline: none;
177
122
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
178
123
  }
179
124
 
180
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
181
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
125
+ .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
126
+ .c6[aria-disabled='false']:focus:not(:focus-visible) {
182
127
  box-shadow: none;
183
128
  }
184
129
 
185
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
186
- .c19[aria-disabled='false']:focus-visible {
130
+ .c6:not(:disabled):not([aria-disabled]):focus-visible,
131
+ .c6[aria-disabled='false']:focus-visible {
187
132
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
188
133
  }
189
134
 
190
- .c19:not(:disabled):not([aria-disabled]):hover,
191
- .c19[aria-disabled='false']:hover {
135
+ .c6:not(:disabled):not([aria-disabled]):hover,
136
+ .c6[aria-disabled='false']:hover {
192
137
  background-color: var(--charcoal-surface3-hover);
193
138
  }
194
139
 
195
- .c19:not(:disabled):not([aria-disabled]):active,
196
- .c19[aria-disabled='false']:active {
140
+ .c6:not(:disabled):not([aria-disabled]):active,
141
+ .c6[aria-disabled='false']:active {
197
142
  background-color: var(--charcoal-surface3-press);
198
143
  }
199
144
 
200
- .c20 {
145
+ .c7 {
201
146
  text-align: left;
202
147
  font-size: 14px;
203
148
  line-height: 22px;
@@ -208,278 +153,23 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
208
153
  white-space: nowrap;
209
154
  }
210
155
 
211
- .c21 {
156
+ .c8 {
212
157
  color: var(--charcoal-text2);
213
158
  }
214
159
 
215
- .c24 {
216
- -webkit-user-select: none;
217
- -moz-user-select: none;
218
- -ms-user-select: none;
219
- user-select: none;
220
- width: 32px;
221
- height: 32px;
222
- display: -webkit-box;
223
- display: -webkit-flex;
224
- display: -ms-flexbox;
225
- display: flex;
226
- -webkit-align-items: center;
227
- -webkit-box-align: center;
228
- -ms-flex-align: center;
229
- align-items: center;
230
- -webkit-box-pack: center;
231
- -webkit-justify-content: center;
232
- -ms-flex-pack: center;
233
- justify-content: center;
234
- color: var(--charcoal-text3);
235
- background-color: var(--charcoal-transparent);
236
- border-radius: 999999px;
237
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
238
- transition: 0.2s background-color,0.2s box-shadow;
239
- }
240
-
241
- .c24:not(:disabled):not([aria-disabled]):hover,
242
- .c24[aria-disabled='false']:hover {
243
- color: var(--charcoal-text3-hover);
244
- background-color: var(--charcoal-transparent-hover);
245
- }
246
-
247
- .c24:not(:disabled):not([aria-disabled]):active,
248
- .c24[aria-disabled='false']:active {
249
- color: var(--charcoal-text3-press);
250
- background-color: var(--charcoal-transparent-press);
251
- }
252
-
253
- .c24:not(:disabled):not([aria-disabled]):focus,
254
- .c24[aria-disabled='false']:focus {
255
- outline: none;
256
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
257
- }
258
-
259
- .c24:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
260
- .c24[aria-disabled='false']:focus:not(:focus-visible) {
261
- box-shadow: none;
262
- }
263
-
264
- .c24:not(:disabled):not([aria-disabled]):focus-visible,
265
- .c24[aria-disabled='false']:focus-visible {
266
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
267
- }
268
-
269
- .c24:disabled,
270
- .c24[aria-disabled]:not([aria-disabled='false']) {
271
- opacity: 0.32;
272
- }
273
-
274
- .c1 {
275
- margin: auto;
276
- position: relative;
277
- height: -webkit-fit-content;
278
- height: -moz-fit-content;
279
- height: fit-content;
280
- width: 440px;
281
- background-color: var(--charcoal-surface1);
282
- border-radius: 24px;
283
- }
284
-
285
- .c1:focus {
286
- outline: none;
287
- }
288
-
289
160
  .c0 {
290
- z-index: 10;
291
- overflow: auto;
292
- display: -webkit-box;
293
- display: -webkit-flex;
294
- display: -ms-flexbox;
295
- display: flex;
296
- position: fixed;
297
- top: 0;
298
- left: 0;
299
- width: -webkit-fill-available;
300
- width: -moz-available;
301
- height: 100%;
302
- -webkit-box-pack: center;
303
- -webkit-justify-content: center;
304
- -ms-flex-pack: center;
305
- justify-content: center;
306
- padding: 40px 0;
307
- box-sizing: border-box;
308
- background-color: var(--charcoal-surface4);
309
- }
310
-
311
- .c25 {
312
- position: absolute;
313
- top: 8px;
314
- right: 8px;
315
- color: var(--charcoal-text3);
316
- -webkit-transition: 0.2s color;
317
- transition: 0.2s color;
318
- }
319
-
320
- .c25:not(:disabled):not([aria-disabled]):hover,
321
- .c25[aria-disabled='false']:hover {
322
- color: var(--charcoal-text3-hover);
323
- }
324
-
325
- .c25:not(:disabled):not([aria-disabled]):active,
326
- .c25[aria-disabled='false']:active {
327
- color: var(--charcoal-text3-press);
328
- }
329
-
330
- .c3 {
331
- margin: 0;
332
- font-weight: inherit;
333
- font-size: inherit;
334
- }
335
-
336
- .c2 {
337
- height: 64px;
338
- display: grid;
339
- -webkit-align-content: center;
340
- -ms-flex-line-pack: center;
341
- align-content: center;
342
- -webkit-box-pack: center;
343
- -webkit-justify-content: center;
344
- -ms-flex-pack: center;
345
- justify-content: center;
346
- }
347
-
348
- .c4 {
349
- color: var(--charcoal-text1);
350
- font-size: 16px;
351
- line-height: 24px;
352
- font-weight: bold;
353
- display: flow-root;
354
- }
355
-
356
- .c4::before {
357
- display: block;
358
- width: 0;
359
- height: 0;
360
- content: '';
361
- margin-top: -4px;
362
- }
363
-
364
- .c4::after {
365
- display: block;
366
- width: 0;
367
- height: 0;
368
- content: '';
369
- margin-bottom: -4px;
370
- }
371
-
372
- .c7 {
373
- padding-left: 16px;
374
- padding-right: 16px;
375
- }
376
-
377
- .c5 {
378
- padding-bottom: 40px;
379
- }
380
-
381
- .c22 {
382
- display: grid;
383
- grid-auto-flow: row;
384
- grid-row-gap: 8px;
385
- padding-top: 16px;
386
- padding-left: 16px;
387
- padding-right: 16px;
388
- }
389
-
390
- .c9 {
391
- display: -webkit-box;
392
- display: -webkit-flex;
393
- display: -ms-flexbox;
394
- display: flex;
395
- -webkit-flex-direction: column;
396
- -ms-flex-direction: column;
397
- flex-direction: column;
398
- }
399
-
400
- .c11 {
401
- margin-bottom: 8px;
402
- }
403
-
404
- .c15 {
405
- display: grid;
406
- grid-template-columns: 1fr;
407
- height: 40px;
408
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
409
- transition: 0.2s background-color,0.2s box-shadow;
410
- color: var(--charcoal-text2);
411
- background-color: var(--charcoal-surface3);
412
- border-radius: 4px;
413
- gap: 4px;
414
- padding: 0 8px;
415
- line-height: 22px;
416
- font-size: 14px;
417
- }
418
-
419
- .c15:not(:disabled):not([aria-disabled]):hover,
420
- .c15 [aria-disabled='false']:hover {
421
- background-color: var(--charcoal-surface3-hover);
422
- }
423
-
424
- .c15:focus-within {
425
- outline: none;
426
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
427
- }
428
-
429
- .c16 {
430
- border: none;
431
- box-sizing: border-box;
432
- outline: none;
433
- font-family: inherit;
434
- -webkit-transform-origin: top left;
435
- -ms-transform-origin: top left;
436
- transform-origin: top left;
437
- -webkit-transform: scale(0.875);
438
- -ms-transform: scale(0.875);
439
- transform: scale(0.875);
440
- width: calc(100% / 0.875);
441
- height: calc(100% / 0.875);
442
- font-size: calc(14px / 0.875);
443
- line-height: calc(22px / 0.875);
444
- padding-left: 0;
445
- padding-right: 0;
446
- border-radius: calc(4px / 0.875);
447
- -webkit-appearance: none;
448
- -moz-appearance: none;
449
- appearance: none;
450
- background: transparent;
451
- color: var(--charcoal-text2);
452
- }
453
-
454
- .c16::-webkit-input-placeholder {
455
- color: var(--charcoal-text3);
456
- }
457
-
458
- .c16::-moz-placeholder {
459
- color: var(--charcoal-text3);
460
- }
461
-
462
- .c16:-ms-input-placeholder {
463
- color: var(--charcoal-text3);
464
- }
465
-
466
- .c16::placeholder {
467
- color: var(--charcoal-text3);
468
- }
469
-
470
- .c6 {
471
161
  display: grid;
472
162
  gap: 24px;
473
163
  }
474
164
 
475
- .c8 {
165
+ .c1 {
476
166
  color: var(--charcoal-text2);
477
167
  font-size: 14px;
478
168
  line-height: 22px;
479
169
  display: flow-root;
480
170
  }
481
171
 
482
- .c8::before {
172
+ .c1::before {
483
173
  display: block;
484
174
  width: 0;
485
175
  height: 0;
@@ -487,7 +177,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
487
177
  margin-top: -4px;
488
178
  }
489
179
 
490
- .c8::after {
180
+ .c1::after {
491
181
  display: block;
492
182
  width: 0;
493
183
  height: 0;
@@ -495,21 +185,6 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
495
185
  margin-bottom: -4px;
496
186
  }
497
187
 
498
- @media (max-width:743px) {
499
- .c1 {
500
- max-width: 440px;
501
- width: calc(100% - 48px);
502
- }
503
- }
504
-
505
- @media (max-width:743px) {
506
-
507
- }
508
-
509
- @media (max-width:743px) {
510
-
511
- }
512
-
513
188
  <div
514
189
  data-dark={false}
515
190
  >
@@ -532,137 +207,134 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
532
207
  </button>
533
208
  </div>
534
209
  <div
535
- className="c0"
210
+ className="charcoal-modal-background"
211
+ data-bottom-sheet={false}
536
212
  onClick={[Function]}
537
213
  onPointerDown={[Function]}
538
- style={Object {}}
214
+ style={
215
+ Object {
216
+ "zIndex": 10,
217
+ }
218
+ }
539
219
  >
540
220
  <div
541
- className="c1"
542
- onBlur={[Function]}
221
+ className="charcoal-modal-dialog"
222
+ data-bottom-sheet={false}
543
223
  onKeyDown={[Function]}
544
224
  role="dialog"
545
- size="M"
546
225
  style={Object {}}
547
226
  tabIndex={-1}
548
227
  >
549
228
  <div
550
- className="c2"
229
+ className="charcoal-modal-header-root"
230
+ data-bottom-sheet={false}
551
231
  >
552
- <h3
553
- className="c3 c4"
232
+ <div
233
+ className="charcoal-modal-header-title"
554
234
  >
555
- Title
556
- </h3>
235
+ react/Title
236
+ </div>
557
237
  </div>
558
238
  <div
559
- className="c5"
239
+ className="charcoal-modal-body"
560
240
  >
561
241
  <div
562
- className="c6"
242
+ className="c0"
563
243
  >
564
244
  <div
565
- className="c7 c8"
245
+ className="charcoal-modal-align c1"
566
246
  >
567
247
  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.
568
248
  </div>
569
249
  <div
570
- className="c7"
250
+ className="charcoal-modal-align"
571
251
  >
572
252
  <div
573
- className="c9"
253
+ className="c2"
574
254
  >
575
255
  <div
576
- className="c10 c11"
256
+ className="charcoal-field-label-root"
577
257
  >
578
258
  <label
579
- className="c12"
259
+ className="charcoal-field-label"
580
260
  htmlFor="test-id"
581
261
  id="test-id"
582
262
  >
583
263
  Name
584
264
  </label>
585
265
  <div
586
- className="c13 c14"
266
+ className="charcoal-field-label-sub-label"
587
267
  >
588
268
  <span />
589
269
  </div>
590
270
  </div>
591
271
  <div
592
- className="c15"
272
+ className="c3"
593
273
  >
594
274
  <input
595
275
  aria-labelledby="test-id"
596
- className="c16"
597
- disabled={false}
276
+ className="c4"
598
277
  id="test-id"
599
278
  onChange={[Function]}
600
279
  placeholder="Nagisa"
601
- readOnly={false}
602
- required={false}
603
280
  type="text"
604
- value=""
605
281
  />
606
282
  </div>
607
283
  </div>
608
284
  </div>
609
285
  <div
610
- className="c7"
286
+ className="charcoal-modal-align"
611
287
  >
612
288
  <div
613
- className="c9"
289
+ className="c2"
614
290
  >
615
291
  <div
616
- className="c10 c11"
292
+ className="charcoal-field-label-root"
617
293
  >
618
294
  <label
619
- className="c12"
295
+ className="charcoal-field-label"
620
296
  htmlFor="test-id"
621
297
  id="test-id"
622
298
  >
623
299
  Country
624
300
  </label>
625
301
  <div
626
- className="c13 c14"
302
+ className="charcoal-field-label-sub-label"
627
303
  >
628
304
  <span />
629
305
  </div>
630
306
  </div>
631
307
  <div
632
- className="c15"
308
+ className="c3"
633
309
  >
634
310
  <input
635
311
  aria-labelledby="test-id"
636
312
  autoFocus={true}
637
- className="c16"
638
- disabled={false}
313
+ className="c4"
639
314
  id="test-id"
640
315
  onChange={[Function]}
641
316
  placeholder="Tokyo"
642
- readOnly={false}
643
- required={false}
644
317
  type="text"
645
- value=""
646
318
  />
647
319
  </div>
648
320
  </div>
649
321
  </div>
650
322
  <div
651
- className="c7"
323
+ className="charcoal-modal-align"
652
324
  >
653
325
  <div
654
- className="c17"
326
+ className="c5"
655
327
  >
656
328
  <div
657
- className="c10 c18"
329
+ className="charcoal-field-label-root"
658
330
  >
659
331
  <label
660
- className="c12"
332
+ className="charcoal-field-label"
661
333
  >
662
334
  Fruits
663
335
  </label>
664
336
  <div
665
- className="c13 c14"
337
+ className="charcoal-field-label-sub-label"
666
338
  >
667
339
  <span />
668
340
  </div>
@@ -707,17 +379,17 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
707
379
  </select>
708
380
  </div>
709
381
  <button
710
- className="c19"
382
+ className="c6"
711
383
  onClick={[Function]}
712
384
  type="button"
713
385
  >
714
386
  <span
715
- className="c20"
387
+ className="c7"
716
388
  >
717
389
  Apple
718
390
  </span>
719
391
  <pixiv-icon
720
- class="c21"
392
+ class="c8"
721
393
  name="16/Menu"
722
394
  />
723
395
  </button>
@@ -725,7 +397,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
725
397
  </div>
726
398
  </div>
727
399
  <div
728
- className="c22"
400
+ className="charcoal-modal-buttons"
729
401
  >
730
402
  <button
731
403
  className="charcoal-button"
@@ -745,8 +417,13 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
745
417
  </div>
746
418
  </div>
747
419
  <button
748
- className="c23 c24 c25"
420
+ aria-label="Close"
421
+ className="charcoal-icon-button charcoal-modal-close-button"
422
+ data-active={false}
423
+ data-size="S"
424
+ data-variant="Default"
749
425
  onClick={[Function]}
426
+ type="button"
750
427
  >
751
428
  <pixiv-icon
752
429
  name="24/Close"
@@ -758,233 +435,20 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
758
435
  </div>
759
436
  `;
760
437
 
761
- exports[`Storybook Tests Modal BottomSheet 1`] = `
762
- .c10 {
763
- cursor: pointer;
764
- -webkit-appearance: none;
765
- -moz-appearance: none;
766
- appearance: none;
767
- background: transparent;
768
- padding: 0;
769
- border-style: none;
770
- outline: none;
771
- color: inherit;
772
- text-rendering: inherit;
773
- -webkit-letter-spacing: inherit;
774
- -moz-letter-spacing: inherit;
775
- -ms-letter-spacing: inherit;
776
- letter-spacing: inherit;
777
- word-spacing: inherit;
778
- -webkit-text-decoration: none;
779
- text-decoration: none;
780
- font: inherit;
781
- margin: 0;
782
- overflow: visible;
783
- text-transform: none;
784
- }
785
-
786
- .c10:disabled,
787
- .c10[aria-disabled]:not([aria-disabled=false]) {
788
- cursor: default;
789
- }
790
-
791
- .c10:focus {
792
- outline: none;
793
- }
794
-
795
- .c10::-moz-focus-inner {
796
- border-style: none;
797
- padding: 0;
798
- }
799
-
800
- .c11 {
801
- -webkit-user-select: none;
802
- -moz-user-select: none;
803
- -ms-user-select: none;
804
- user-select: none;
805
- width: 32px;
806
- height: 32px;
807
- display: -webkit-box;
808
- display: -webkit-flex;
809
- display: -ms-flexbox;
810
- display: flex;
811
- -webkit-align-items: center;
812
- -webkit-box-align: center;
813
- -ms-flex-align: center;
814
- align-items: center;
815
- -webkit-box-pack: center;
816
- -webkit-justify-content: center;
817
- -ms-flex-pack: center;
818
- justify-content: center;
819
- color: var(--charcoal-text3);
820
- background-color: var(--charcoal-transparent);
821
- border-radius: 999999px;
822
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
823
- transition: 0.2s background-color,0.2s box-shadow;
824
- }
825
-
826
- .c11:not(:disabled):not([aria-disabled]):hover,
827
- .c11[aria-disabled='false']:hover {
828
- color: var(--charcoal-text3-hover);
829
- background-color: var(--charcoal-transparent-hover);
830
- }
831
-
832
- .c11:not(:disabled):not([aria-disabled]):active,
833
- .c11[aria-disabled='false']:active {
834
- color: var(--charcoal-text3-press);
835
- background-color: var(--charcoal-transparent-press);
836
- }
837
-
838
- .c11:not(:disabled):not([aria-disabled]):focus,
839
- .c11[aria-disabled='false']:focus {
840
- outline: none;
841
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
842
- }
843
-
844
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
845
- .c11[aria-disabled='false']:focus:not(:focus-visible) {
846
- box-shadow: none;
847
- }
848
-
849
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
850
- .c11[aria-disabled='false']:focus-visible {
851
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
852
- }
853
-
854
- .c11:disabled,
855
- .c11[aria-disabled]:not([aria-disabled='false']) {
856
- opacity: 0.32;
857
- }
858
-
859
- .c1 {
860
- margin: auto;
861
- position: relative;
862
- height: -webkit-fit-content;
863
- height: -moz-fit-content;
864
- height: fit-content;
865
- width: 440px;
866
- background-color: var(--charcoal-surface1);
867
- border-radius: 24px;
868
- }
869
-
870
- .c1:focus {
871
- outline: none;
872
- }
873
-
438
+ exports[`Storybook Tests react/Modal BottomSheet 1`] = `
874
439
  .c0 {
875
- z-index: 10;
876
- overflow: auto;
877
- display: -webkit-box;
878
- display: -webkit-flex;
879
- display: -ms-flexbox;
880
- display: flex;
881
- position: fixed;
882
- top: 0;
883
- left: 0;
884
- width: -webkit-fill-available;
885
- width: -moz-available;
886
- height: 100%;
887
- -webkit-box-pack: center;
888
- -webkit-justify-content: center;
889
- -ms-flex-pack: center;
890
- justify-content: center;
891
- padding: 40px 0;
892
- box-sizing: border-box;
893
- background-color: var(--charcoal-surface4);
894
- }
895
-
896
- .c12 {
897
- position: absolute;
898
- top: 8px;
899
- right: 8px;
900
- color: var(--charcoal-text3);
901
- -webkit-transition: 0.2s color;
902
- transition: 0.2s color;
903
- }
904
-
905
- .c12:not(:disabled):not([aria-disabled]):hover,
906
- .c12[aria-disabled='false']:hover {
907
- color: var(--charcoal-text3-hover);
908
- }
909
-
910
- .c12:not(:disabled):not([aria-disabled]):active,
911
- .c12[aria-disabled='false']:active {
912
- color: var(--charcoal-text3-press);
913
- }
914
-
915
- .c3 {
916
- margin: 0;
917
- font-weight: inherit;
918
- font-size: inherit;
919
- }
920
-
921
- .c2 {
922
- height: 64px;
923
- display: grid;
924
- -webkit-align-content: center;
925
- -ms-flex-line-pack: center;
926
- align-content: center;
927
- -webkit-box-pack: center;
928
- -webkit-justify-content: center;
929
- -ms-flex-pack: center;
930
- justify-content: center;
931
- }
932
-
933
- .c4 {
934
- color: var(--charcoal-text1);
935
- font-size: 16px;
936
- line-height: 24px;
937
- font-weight: bold;
938
- display: flow-root;
939
- }
940
-
941
- .c4::before {
942
- display: block;
943
- width: 0;
944
- height: 0;
945
- content: '';
946
- margin-top: -4px;
947
- }
948
-
949
- .c4::after {
950
- display: block;
951
- width: 0;
952
- height: 0;
953
- content: '';
954
- margin-bottom: -4px;
955
- }
956
-
957
- .c7 {
958
- padding-left: 16px;
959
- padding-right: 16px;
960
- }
961
-
962
- .c5 {
963
- padding-bottom: 40px;
964
- }
965
-
966
- .c9 {
967
- display: grid;
968
- grid-auto-flow: row;
969
- grid-row-gap: 8px;
970
- padding-top: 16px;
971
- padding-left: 16px;
972
- padding-right: 16px;
973
- }
974
-
975
- .c6 {
976
440
  display: grid;
977
441
  gap: 24px;
978
442
  }
979
443
 
980
- .c8 {
444
+ .c1 {
981
445
  color: var(--charcoal-text2);
982
446
  font-size: 14px;
983
447
  line-height: 22px;
984
448
  display: flow-root;
985
449
  }
986
450
 
987
- .c8::before {
451
+ .c1::before {
988
452
  display: block;
989
453
  width: 0;
990
454
  height: 0;
@@ -992,7 +456,7 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
992
456
  margin-top: -4px;
993
457
  }
994
458
 
995
- .c8::after {
459
+ .c1::after {
996
460
  display: block;
997
461
  width: 0;
998
462
  height: 0;
@@ -1000,29 +464,6 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1000
464
  margin-bottom: -4px;
1001
465
  }
1002
466
 
1003
- @media (max-width:743px) {
1004
- .c1 {
1005
- max-width: 440px;
1006
- width: calc(100% - 48px);
1007
- max-width: unset;
1008
- width: 100%;
1009
- border-radius: 0;
1010
- margin: auto 0 0 0;
1011
- }
1012
- }
1013
-
1014
- @media (max-width:743px) {
1015
- .c0 {
1016
- padding: 0;
1017
- }
1018
- }
1019
-
1020
- @media (max-width:743px) {
1021
- .c2 {
1022
- height: 48px;
1023
- }
1024
- }
1025
-
1026
467
  <div
1027
468
  data-dark={false}
1028
469
  >
@@ -1037,22 +478,23 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1037
478
  Open Modal
1038
479
  </button>
1039
480
  <div
1040
- className="c0"
481
+ className="charcoal-modal-background"
482
+ data-bottom-sheet={true}
1041
483
  onClick={[Function]}
1042
484
  onPointerDown={[Function]}
1043
485
  style={
1044
486
  Object {
1045
487
  "backgroundColor": "rgba(0, 0, 0, 0)",
1046
488
  "overflow": "hidden",
489
+ "zIndex": 10,
1047
490
  }
1048
491
  }
1049
492
  >
1050
493
  <div
1051
- className="c1"
1052
- onBlur={[Function]}
494
+ className="charcoal-modal-dialog"
495
+ data-bottom-sheet={true}
1053
496
  onKeyDown={[Function]}
1054
497
  role="dialog"
1055
- size="M"
1056
498
  style={
1057
499
  Object {
1058
500
  "transform": " translateY(100%)",
@@ -1061,28 +503,29 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1061
503
  tabIndex={-1}
1062
504
  >
1063
505
  <div
1064
- className="c2"
506
+ className="charcoal-modal-header-root"
507
+ data-bottom-sheet={true}
1065
508
  >
1066
- <h3
1067
- className="c3 c4"
509
+ <div
510
+ className="charcoal-modal-header-title"
1068
511
  >
1069
- Title
1070
- </h3>
512
+ react/Title
513
+ </div>
1071
514
  </div>
1072
515
  <div
1073
- className="c5"
516
+ className="charcoal-modal-body"
1074
517
  >
1075
518
  <div
1076
- className="c6"
519
+ className="c0"
1077
520
  >
1078
521
  <div
1079
- className="c7 c8"
522
+ className="charcoal-modal-align c1"
1080
523
  >
1081
524
  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.
1082
525
  </div>
1083
526
  </div>
1084
527
  <div
1085
- className="c9"
528
+ className="charcoal-modal-buttons"
1086
529
  >
1087
530
  <button
1088
531
  className="charcoal-button"
@@ -1095,8 +538,13 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1095
538
  </div>
1096
539
  </div>
1097
540
  <button
1098
- className="c10 c11 c12"
541
+ aria-label="Close"
542
+ className="charcoal-icon-button charcoal-modal-close-button"
543
+ data-active={false}
544
+ data-size="S"
545
+ data-variant="Default"
1099
546
  onClick={[Function]}
547
+ type="button"
1100
548
  >
1101
549
  <pixiv-icon
1102
550
  name="24/Close"
@@ -1108,408 +556,14 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1108
556
  </div>
1109
557
  `;
1110
558
 
1111
- exports[`Storybook Tests Modal Default 1`] = `
1112
- .c23 {
1113
- cursor: pointer;
1114
- -webkit-appearance: none;
1115
- -moz-appearance: none;
1116
- appearance: none;
1117
- background: transparent;
1118
- padding: 0;
1119
- border-style: none;
1120
- outline: none;
1121
- color: inherit;
1122
- text-rendering: inherit;
1123
- -webkit-letter-spacing: inherit;
1124
- -moz-letter-spacing: inherit;
1125
- -ms-letter-spacing: inherit;
1126
- letter-spacing: inherit;
1127
- word-spacing: inherit;
1128
- -webkit-text-decoration: none;
1129
- text-decoration: none;
1130
- font: inherit;
1131
- margin: 0;
1132
- overflow: visible;
1133
- text-transform: none;
1134
- }
1135
-
1136
- .c23:disabled,
1137
- .c23[aria-disabled]:not([aria-disabled=false]) {
1138
- cursor: default;
1139
- }
1140
-
1141
- .c23:focus {
1142
- outline: none;
1143
- }
1144
-
1145
- .c23::-moz-focus-inner {
1146
- border-style: none;
1147
- padding: 0;
1148
- }
1149
-
1150
- .c12 {
1151
- font-size: 14px;
1152
- line-height: 22px;
1153
- font-weight: bold;
1154
- display: flow-root;
1155
- color: var(--charcoal-text1);
1156
- }
1157
-
1158
- .c12::before {
1159
- display: block;
1160
- width: 0;
1161
- height: 0;
1162
- content: '';
1163
- margin-top: -4px;
1164
- }
1165
-
1166
- .c12::after {
1167
- display: block;
1168
- width: 0;
1169
- height: 0;
1170
- content: '';
1171
- margin-bottom: -4px;
1172
- }
1173
-
1174
- .c14 {
1175
- font-size: 14px;
1176
- line-height: 22px;
1177
- display: flow-root;
1178
- color: var(--charcoal-text3);
1179
- -webkit-transition: 0.2s color,0.2s box-shadow;
1180
- transition: 0.2s color,0.2s box-shadow;
1181
- }
1182
-
1183
- .c14::before {
1184
- display: block;
1185
- width: 0;
1186
- height: 0;
1187
- content: '';
1188
- margin-top: -4px;
1189
- }
1190
-
1191
- .c14::after {
1192
- display: block;
1193
- width: 0;
1194
- height: 0;
1195
- content: '';
1196
- margin-bottom: -4px;
1197
- }
1198
-
1199
- .c14:not(:disabled):not([aria-disabled]):hover,
1200
- .c14[aria-disabled='false']:hover {
1201
- color: var(--charcoal-text3-hover);
1202
- }
1203
-
1204
- .c14:not(:disabled):not([aria-disabled]):active,
1205
- .c14[aria-disabled='false']:active {
1206
- color: var(--charcoal-text3-press);
1207
- }
1208
-
1209
- .c14:not(:disabled):not([aria-disabled]):active,
1210
- .c14[aria-disabled='false']:active,
1211
- .c14:not(:disabled):not([aria-disabled]):focus,
1212
- .c14[aria-disabled='false']:focus,
1213
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
1214
- .c14[aria-disabled='false']:focus-visible {
1215
- outline: none;
1216
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1217
- }
1218
-
1219
- .c10 {
1220
- display: -webkit-inline-box;
1221
- display: -webkit-inline-flex;
1222
- display: -ms-inline-flexbox;
1223
- display: inline-flex;
1224
- -webkit-align-items: center;
1225
- -webkit-box-align: center;
1226
- -ms-flex-align: center;
1227
- align-items: center;
1228
- }
1229
-
1230
- .c10 > .c13 {
1231
- margin-left: auto;
1232
- }
1233
-
1234
- .c17 {
1235
- display: inline-block;
1236
- width: 100%;
1237
- }
1238
-
1239
- .c17:disabled,
1240
- .c17[aria-disabled]:not([aria-disabled=false]) {
1241
- cursor: default;
1242
- opacity: 0.32;
1243
- }
1244
-
1245
- .c18 {
1246
- width: 100%;
1247
- margin-bottom: 8px;
1248
- }
1249
-
1250
- .c19 {
1251
- display: -webkit-box;
1252
- display: -webkit-flex;
1253
- display: -ms-flexbox;
1254
- display: flex;
1255
- -webkit-box-pack: justify;
1256
- -webkit-justify-content: space-between;
1257
- -ms-flex-pack: justify;
1258
- justify-content: space-between;
1259
- -webkit-align-items: center;
1260
- -webkit-box-align: center;
1261
- -ms-flex-align: center;
1262
- align-items: center;
1263
- height: 40px;
1264
- width: 100%;
1265
- box-sizing: border-box;
1266
- border: none;
1267
- cursor: pointer;
1268
- gap: 4px;
1269
- padding-right: 8px;
1270
- padding-left: 8px;
1271
- background-color: var(--charcoal-surface3);
1272
- border-radius: 4px;
1273
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1274
- transition: 0.2s box-shadow,0.2s background-color;
1275
- }
1276
-
1277
- .c19:disabled,
1278
- .c19[aria-disabled]:not([aria-disabled=false]) {
1279
- cursor: default;
1280
- }
1281
-
1282
- .c19:not(:disabled):not([aria-disabled]):focus,
1283
- .c19[aria-disabled='false']:focus {
1284
- outline: none;
1285
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1286
- }
1287
-
1288
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1289
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
1290
- box-shadow: none;
1291
- }
1292
-
1293
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
1294
- .c19[aria-disabled='false']:focus-visible {
1295
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1296
- }
1297
-
1298
- .c19:not(:disabled):not([aria-disabled]):hover,
1299
- .c19[aria-disabled='false']:hover {
1300
- background-color: var(--charcoal-surface3-hover);
1301
- }
1302
-
1303
- .c19:not(:disabled):not([aria-disabled]):active,
1304
- .c19[aria-disabled='false']:active {
1305
- background-color: var(--charcoal-surface3-press);
1306
- }
1307
-
1308
- .c20 {
1309
- text-align: left;
1310
- font-size: 14px;
1311
- line-height: 22px;
1312
- display: flow-root;
1313
- color: var(--charcoal-text2);
1314
- overflow: hidden;
1315
- text-overflow: ellipsis;
1316
- white-space: nowrap;
1317
- }
1318
-
1319
- .c21 {
1320
- color: var(--charcoal-text2);
1321
- }
1322
-
1323
- .c24 {
1324
- -webkit-user-select: none;
1325
- -moz-user-select: none;
1326
- -ms-user-select: none;
1327
- user-select: none;
1328
- width: 32px;
1329
- height: 32px;
1330
- display: -webkit-box;
1331
- display: -webkit-flex;
1332
- display: -ms-flexbox;
1333
- display: flex;
1334
- -webkit-align-items: center;
1335
- -webkit-box-align: center;
1336
- -ms-flex-align: center;
1337
- align-items: center;
1338
- -webkit-box-pack: center;
1339
- -webkit-justify-content: center;
1340
- -ms-flex-pack: center;
1341
- justify-content: center;
1342
- color: var(--charcoal-text3);
1343
- background-color: var(--charcoal-transparent);
1344
- border-radius: 999999px;
1345
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1346
- transition: 0.2s background-color,0.2s box-shadow;
1347
- }
1348
-
1349
- .c24:not(:disabled):not([aria-disabled]):hover,
1350
- .c24[aria-disabled='false']:hover {
1351
- color: var(--charcoal-text3-hover);
1352
- background-color: var(--charcoal-transparent-hover);
1353
- }
1354
-
1355
- .c24:not(:disabled):not([aria-disabled]):active,
1356
- .c24[aria-disabled='false']:active {
1357
- color: var(--charcoal-text3-press);
1358
- background-color: var(--charcoal-transparent-press);
1359
- }
1360
-
1361
- .c24:not(:disabled):not([aria-disabled]):focus,
1362
- .c24[aria-disabled='false']:focus {
1363
- outline: none;
1364
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1365
- }
1366
-
1367
- .c24:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1368
- .c24[aria-disabled='false']:focus:not(:focus-visible) {
1369
- box-shadow: none;
1370
- }
1371
-
1372
- .c24:not(:disabled):not([aria-disabled]):focus-visible,
1373
- .c24[aria-disabled='false']:focus-visible {
1374
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1375
- }
1376
-
1377
- .c24:disabled,
1378
- .c24[aria-disabled]:not([aria-disabled='false']) {
1379
- opacity: 0.32;
1380
- }
1381
-
1382
- .c1 {
1383
- margin: auto;
1384
- position: relative;
1385
- height: -webkit-fit-content;
1386
- height: -moz-fit-content;
1387
- height: fit-content;
1388
- width: 440px;
1389
- background-color: var(--charcoal-surface1);
1390
- border-radius: 24px;
1391
- }
1392
-
1393
- .c1:focus {
1394
- outline: none;
1395
- }
1396
-
1397
- .c0 {
1398
- z-index: 10;
1399
- overflow: auto;
1400
- display: -webkit-box;
1401
- display: -webkit-flex;
1402
- display: -ms-flexbox;
1403
- display: flex;
1404
- position: fixed;
1405
- top: 0;
1406
- left: 0;
1407
- width: -webkit-fill-available;
1408
- width: -moz-available;
1409
- height: 100%;
1410
- -webkit-box-pack: center;
1411
- -webkit-justify-content: center;
1412
- -ms-flex-pack: center;
1413
- justify-content: center;
1414
- padding: 40px 0;
1415
- box-sizing: border-box;
1416
- background-color: var(--charcoal-surface4);
1417
- }
1418
-
1419
- .c25 {
1420
- position: absolute;
1421
- top: 8px;
1422
- right: 8px;
1423
- color: var(--charcoal-text3);
1424
- -webkit-transition: 0.2s color;
1425
- transition: 0.2s color;
1426
- }
1427
-
1428
- .c25:not(:disabled):not([aria-disabled]):hover,
1429
- .c25[aria-disabled='false']:hover {
1430
- color: var(--charcoal-text3-hover);
1431
- }
1432
-
1433
- .c25:not(:disabled):not([aria-disabled]):active,
1434
- .c25[aria-disabled='false']:active {
1435
- color: var(--charcoal-text3-press);
1436
- }
1437
-
1438
- .c3 {
1439
- margin: 0;
1440
- font-weight: inherit;
1441
- font-size: inherit;
1442
- }
1443
-
559
+ exports[`Storybook Tests react/Modal Default 1`] = `
1444
560
  .c2 {
1445
- height: 64px;
1446
561
  display: grid;
1447
- -webkit-align-content: center;
1448
- -ms-flex-line-pack: center;
1449
- align-content: center;
1450
- -webkit-box-pack: center;
1451
- -webkit-justify-content: center;
1452
- -ms-flex-pack: center;
1453
- justify-content: center;
1454
- }
1455
-
1456
- .c4 {
1457
- color: var(--charcoal-text1);
1458
- font-size: 16px;
1459
- line-height: 24px;
1460
- font-weight: bold;
1461
- display: flow-root;
1462
- }
1463
-
1464
- .c4::before {
1465
- display: block;
1466
- width: 0;
1467
- height: 0;
1468
- content: '';
1469
- margin-top: -4px;
1470
- }
1471
-
1472
- .c4::after {
1473
- display: block;
1474
- width: 0;
1475
- height: 0;
1476
- content: '';
1477
- margin-bottom: -4px;
1478
- }
1479
-
1480
- .c7 {
1481
- padding-left: 16px;
1482
- padding-right: 16px;
1483
- }
1484
-
1485
- .c5 {
1486
- padding-bottom: 40px;
1487
- }
1488
-
1489
- .c22 {
1490
- display: grid;
1491
- grid-auto-flow: row;
1492
- grid-row-gap: 8px;
1493
- padding-top: 16px;
1494
- padding-left: 16px;
1495
- padding-right: 16px;
1496
- }
1497
-
1498
- .c9 {
1499
- display: -webkit-box;
1500
- display: -webkit-flex;
1501
- display: -ms-flexbox;
1502
- display: flex;
1503
- -webkit-flex-direction: column;
1504
- -ms-flex-direction: column;
1505
- flex-direction: column;
1506
- }
1507
-
1508
- .c11 {
1509
- margin-bottom: 8px;
562
+ grid-template-columns: 1fr;
563
+ grid-gap: 4px;
1510
564
  }
1511
565
 
1512
- .c15 {
566
+ .c3 {
1513
567
  display: grid;
1514
568
  grid-template-columns: 1fr;
1515
569
  height: 40px;
@@ -1524,17 +578,17 @@ exports[`Storybook Tests Modal Default 1`] = `
1524
578
  font-size: 14px;
1525
579
  }
1526
580
 
1527
- .c15:not(:disabled):not([aria-disabled]):hover,
1528
- .c15 [aria-disabled='false']:hover {
581
+ .c3:not(:disabled):not([aria-disabled]):hover,
582
+ .c3 [aria-disabled='false']:hover {
1529
583
  background-color: var(--charcoal-surface3-hover);
1530
584
  }
1531
585
 
1532
- .c15:focus-within {
586
+ .c3:focus-within {
1533
587
  outline: none;
1534
588
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1535
589
  }
1536
590
 
1537
- .c16 {
591
+ .c4 {
1538
592
  border: none;
1539
593
  box-sizing: border-box;
1540
594
  outline: none;
@@ -1559,35 +613,119 @@ exports[`Storybook Tests Modal Default 1`] = `
1559
613
  color: var(--charcoal-text2);
1560
614
  }
1561
615
 
1562
- .c16::-webkit-input-placeholder {
1563
- color: var(--charcoal-text3);
616
+ .c4::-webkit-input-placeholder {
617
+ color: var(--charcoal-text3);
618
+ }
619
+
620
+ .c4::-moz-placeholder {
621
+ color: var(--charcoal-text3);
622
+ }
623
+
624
+ .c4:-ms-input-placeholder {
625
+ color: var(--charcoal-text3);
626
+ }
627
+
628
+ .c4::placeholder {
629
+ color: var(--charcoal-text3);
630
+ }
631
+
632
+ .c5 {
633
+ display: grid;
634
+ grid-template-columns: 1fr;
635
+ grid-gap: 4px;
636
+ width: 100%;
637
+ }
638
+
639
+ .c5:disabled,
640
+ .c5[aria-disabled]:not([aria-disabled=false]) {
641
+ cursor: default;
642
+ opacity: 0.32;
643
+ }
644
+
645
+ .c6 {
646
+ display: grid;
647
+ grid-template-columns: 1fr auto;
648
+ -webkit-box-pack: justify;
649
+ -webkit-justify-content: space-between;
650
+ -ms-flex-pack: justify;
651
+ justify-content: space-between;
652
+ -webkit-align-items: center;
653
+ -webkit-box-align: center;
654
+ -ms-flex-align: center;
655
+ align-items: center;
656
+ height: 40px;
657
+ width: 100%;
658
+ box-sizing: border-box;
659
+ border: none;
660
+ cursor: pointer;
661
+ gap: 4px;
662
+ padding-right: 8px;
663
+ padding-left: 8px;
664
+ background-color: var(--charcoal-surface3);
665
+ border-radius: 4px;
666
+ -webkit-transition: 0.2s box-shadow,0.2s background-color;
667
+ transition: 0.2s box-shadow,0.2s background-color;
668
+ }
669
+
670
+ .c6:disabled,
671
+ .c6[aria-disabled]:not([aria-disabled=false]) {
672
+ cursor: default;
1564
673
  }
1565
674
 
1566
- .c16::-moz-placeholder {
1567
- color: var(--charcoal-text3);
675
+ .c6:not(:disabled):not([aria-disabled]):focus,
676
+ .c6[aria-disabled='false']:focus {
677
+ outline: none;
678
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1568
679
  }
1569
680
 
1570
- .c16:-ms-input-placeholder {
1571
- color: var(--charcoal-text3);
681
+ .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
682
+ .c6[aria-disabled='false']:focus:not(:focus-visible) {
683
+ box-shadow: none;
1572
684
  }
1573
685
 
1574
- .c16::placeholder {
1575
- color: var(--charcoal-text3);
686
+ .c6:not(:disabled):not([aria-disabled]):focus-visible,
687
+ .c6[aria-disabled='false']:focus-visible {
688
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1576
689
  }
1577
690
 
1578
- .c6 {
691
+ .c6:not(:disabled):not([aria-disabled]):hover,
692
+ .c6[aria-disabled='false']:hover {
693
+ background-color: var(--charcoal-surface3-hover);
694
+ }
695
+
696
+ .c6:not(:disabled):not([aria-disabled]):active,
697
+ .c6[aria-disabled='false']:active {
698
+ background-color: var(--charcoal-surface3-press);
699
+ }
700
+
701
+ .c7 {
702
+ text-align: left;
703
+ font-size: 14px;
704
+ line-height: 22px;
705
+ display: flow-root;
706
+ color: var(--charcoal-text2);
707
+ overflow: hidden;
708
+ text-overflow: ellipsis;
709
+ white-space: nowrap;
710
+ }
711
+
712
+ .c8 {
713
+ color: var(--charcoal-text2);
714
+ }
715
+
716
+ .c0 {
1579
717
  display: grid;
1580
718
  gap: 24px;
1581
719
  }
1582
720
 
1583
- .c8 {
721
+ .c1 {
1584
722
  color: var(--charcoal-text2);
1585
723
  font-size: 14px;
1586
724
  line-height: 22px;
1587
725
  display: flow-root;
1588
726
  }
1589
727
 
1590
- .c8::before {
728
+ .c1::before {
1591
729
  display: block;
1592
730
  width: 0;
1593
731
  height: 0;
@@ -1595,7 +733,7 @@ exports[`Storybook Tests Modal Default 1`] = `
1595
733
  margin-top: -4px;
1596
734
  }
1597
735
 
1598
- .c8::after {
736
+ .c1::after {
1599
737
  display: block;
1600
738
  width: 0;
1601
739
  height: 0;
@@ -1603,21 +741,6 @@ exports[`Storybook Tests Modal Default 1`] = `
1603
741
  margin-bottom: -4px;
1604
742
  }
1605
743
 
1606
- @media (max-width:743px) {
1607
- .c1 {
1608
- max-width: 440px;
1609
- width: calc(100% - 48px);
1610
- }
1611
- }
1612
-
1613
- @media (max-width:743px) {
1614
-
1615
- }
1616
-
1617
- @media (max-width:743px) {
1618
-
1619
- }
1620
-
1621
744
  <div
1622
745
  data-dark={false}
1623
746
  >
@@ -1632,137 +755,134 @@ exports[`Storybook Tests Modal Default 1`] = `
1632
755
  Open Modal
1633
756
  </button>
1634
757
  <div
1635
- className="c0"
758
+ className="charcoal-modal-background"
759
+ data-bottom-sheet={false}
1636
760
  onClick={[Function]}
1637
761
  onPointerDown={[Function]}
1638
- style={Object {}}
762
+ style={
763
+ Object {
764
+ "zIndex": 10,
765
+ }
766
+ }
1639
767
  >
1640
768
  <div
1641
- className="c1"
1642
- onBlur={[Function]}
769
+ className="charcoal-modal-dialog"
770
+ data-bottom-sheet={false}
1643
771
  onKeyDown={[Function]}
1644
772
  role="dialog"
1645
- size="M"
1646
773
  style={Object {}}
1647
774
  tabIndex={-1}
1648
775
  >
1649
776
  <div
1650
- className="c2"
777
+ className="charcoal-modal-header-root"
778
+ data-bottom-sheet={false}
1651
779
  >
1652
- <h3
1653
- className="c3 c4"
780
+ <div
781
+ className="charcoal-modal-header-title"
1654
782
  >
1655
- Title
1656
- </h3>
783
+ react/Title
784
+ </div>
1657
785
  </div>
1658
786
  <div
1659
- className="c5"
787
+ className="charcoal-modal-body"
1660
788
  >
1661
789
  <div
1662
- className="c6"
790
+ className="c0"
1663
791
  >
1664
792
  <div
1665
- className="c7 c8"
793
+ className="charcoal-modal-align c1"
1666
794
  >
1667
795
  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.
1668
796
  </div>
1669
797
  <div
1670
- className="c7"
798
+ className="charcoal-modal-align"
1671
799
  >
1672
800
  <div
1673
- className="c9"
801
+ className="c2"
1674
802
  >
1675
803
  <div
1676
- className="c10 c11"
804
+ className="charcoal-field-label-root"
1677
805
  >
1678
806
  <label
1679
- className="c12"
807
+ className="charcoal-field-label"
1680
808
  htmlFor="test-id"
1681
809
  id="test-id"
1682
810
  >
1683
811
  Name
1684
812
  </label>
1685
813
  <div
1686
- className="c13 c14"
814
+ className="charcoal-field-label-sub-label"
1687
815
  >
1688
816
  <span />
1689
817
  </div>
1690
818
  </div>
1691
819
  <div
1692
- className="c15"
820
+ className="c3"
1693
821
  >
1694
822
  <input
1695
823
  aria-labelledby="test-id"
1696
- className="c16"
1697
- disabled={false}
824
+ className="c4"
1698
825
  id="test-id"
1699
826
  onChange={[Function]}
1700
827
  placeholder="Nagisa"
1701
- readOnly={false}
1702
- required={false}
1703
828
  type="text"
1704
- value=""
1705
829
  />
1706
830
  </div>
1707
831
  </div>
1708
832
  </div>
1709
833
  <div
1710
- className="c7"
834
+ className="charcoal-modal-align"
1711
835
  >
1712
836
  <div
1713
- className="c9"
837
+ className="c2"
1714
838
  >
1715
839
  <div
1716
- className="c10 c11"
840
+ className="charcoal-field-label-root"
1717
841
  >
1718
842
  <label
1719
- className="c12"
843
+ className="charcoal-field-label"
1720
844
  htmlFor="test-id"
1721
845
  id="test-id"
1722
846
  >
1723
847
  Country
1724
848
  </label>
1725
849
  <div
1726
- className="c13 c14"
850
+ className="charcoal-field-label-sub-label"
1727
851
  >
1728
852
  <span />
1729
853
  </div>
1730
854
  </div>
1731
855
  <div
1732
- className="c15"
856
+ className="c3"
1733
857
  >
1734
858
  <input
1735
859
  aria-labelledby="test-id"
1736
860
  autoFocus={true}
1737
- className="c16"
1738
- disabled={false}
861
+ className="c4"
1739
862
  id="test-id"
1740
863
  onChange={[Function]}
1741
864
  placeholder="Tokyo"
1742
- readOnly={false}
1743
- required={false}
1744
865
  type="text"
1745
- value=""
1746
866
  />
1747
867
  </div>
1748
868
  </div>
1749
869
  </div>
1750
870
  <div
1751
- className="c7"
871
+ className="charcoal-modal-align"
1752
872
  >
1753
873
  <div
1754
- className="c17"
874
+ className="c5"
1755
875
  >
1756
876
  <div
1757
- className="c10 c18"
877
+ className="charcoal-field-label-root"
1758
878
  >
1759
879
  <label
1760
- className="c12"
880
+ className="charcoal-field-label"
1761
881
  >
1762
882
  Fruits
1763
883
  </label>
1764
884
  <div
1765
- className="c13 c14"
885
+ className="charcoal-field-label-sub-label"
1766
886
  >
1767
887
  <span />
1768
888
  </div>
@@ -1770,407 +890,107 @@ exports[`Storybook Tests Modal Default 1`] = `
1770
890
  <div
1771
891
  aria-hidden="true"
1772
892
  style={
1773
- Object {
1774
- "border": 0,
1775
- "clip": "rect(0 0 0 0)",
1776
- "clipPath": "inset(50%)",
1777
- "height": "1px",
1778
- "margin": "-1px",
1779
- "overflow": "hidden",
1780
- "padding": 0,
1781
- "position": "absolute",
1782
- "whiteSpace": "nowrap",
1783
- "width": "1px",
1784
- }
1785
- }
1786
- >
1787
- <select
1788
- onChange={[Function]}
1789
- tabIndex={-1}
1790
- value="10"
1791
- >
1792
- <option
1793
- value="10"
1794
- >
1795
- 10
1796
- </option>
1797
- <option
1798
- value="20"
1799
- >
1800
- 20
1801
- </option>
1802
- <option
1803
- value="30"
1804
- >
1805
- 30
1806
- </option>
1807
- </select>
1808
- </div>
1809
- <button
1810
- className="c19"
1811
- onClick={[Function]}
1812
- type="button"
1813
- >
1814
- <span
1815
- className="c20"
1816
- >
1817
- Apple
1818
- </span>
1819
- <pixiv-icon
1820
- class="c21"
1821
- name="16/Menu"
1822
- />
1823
- </button>
1824
- </div>
1825
- </div>
1826
- </div>
1827
- <div
1828
- className="c22"
1829
- >
1830
- <button
1831
- className="charcoal-button"
1832
- data-full-width={true}
1833
- data-variant="Primary"
1834
- onClick={[Function]}
1835
- >
1836
- Apply
1837
- </button>
1838
- <button
1839
- className="charcoal-button"
1840
- data-full-width={true}
1841
- onClick={[Function]}
1842
- >
1843
- Cancel
1844
- </button>
1845
- </div>
1846
- </div>
1847
- <button
1848
- className="c23 c24 c25"
1849
- onClick={[Function]}
1850
- >
1851
- <pixiv-icon
1852
- name="24/Close"
1853
- />
1854
- </button>
1855
- </div>
1856
- </div>
1857
- </div>
1858
- </div>
1859
- `;
1860
-
1861
- exports[`Storybook Tests Modal FullBottomSheet 1`] = `
1862
- .c18 {
1863
- cursor: pointer;
1864
- -webkit-appearance: none;
1865
- -moz-appearance: none;
1866
- appearance: none;
1867
- background: transparent;
1868
- padding: 0;
1869
- border-style: none;
1870
- outline: none;
1871
- color: inherit;
1872
- text-rendering: inherit;
1873
- -webkit-letter-spacing: inherit;
1874
- -moz-letter-spacing: inherit;
1875
- -ms-letter-spacing: inherit;
1876
- letter-spacing: inherit;
1877
- word-spacing: inherit;
1878
- -webkit-text-decoration: none;
1879
- text-decoration: none;
1880
- font: inherit;
1881
- margin: 0;
1882
- overflow: visible;
1883
- text-transform: none;
1884
- }
1885
-
1886
- .c18:disabled,
1887
- .c18[aria-disabled]:not([aria-disabled=false]) {
1888
- cursor: default;
1889
- }
1890
-
1891
- .c18:focus {
1892
- outline: none;
1893
- }
1894
-
1895
- .c18::-moz-focus-inner {
1896
- border-style: none;
1897
- padding: 0;
1898
- }
1899
-
1900
- .c12 {
1901
- font-size: 14px;
1902
- line-height: 22px;
1903
- font-weight: bold;
1904
- display: flow-root;
1905
- color: var(--charcoal-text1);
1906
- }
1907
-
1908
- .c12::before {
1909
- display: block;
1910
- width: 0;
1911
- height: 0;
1912
- content: '';
1913
- margin-top: -4px;
1914
- }
1915
-
1916
- .c12::after {
1917
- display: block;
1918
- width: 0;
1919
- height: 0;
1920
- content: '';
1921
- margin-bottom: -4px;
1922
- }
1923
-
1924
- .c14 {
1925
- font-size: 14px;
1926
- line-height: 22px;
1927
- display: flow-root;
1928
- color: var(--charcoal-text3);
1929
- -webkit-transition: 0.2s color,0.2s box-shadow;
1930
- transition: 0.2s color,0.2s box-shadow;
1931
- }
1932
-
1933
- .c14::before {
1934
- display: block;
1935
- width: 0;
1936
- height: 0;
1937
- content: '';
1938
- margin-top: -4px;
1939
- }
1940
-
1941
- .c14::after {
1942
- display: block;
1943
- width: 0;
1944
- height: 0;
1945
- content: '';
1946
- margin-bottom: -4px;
1947
- }
1948
-
1949
- .c14:not(:disabled):not([aria-disabled]):hover,
1950
- .c14[aria-disabled='false']:hover {
1951
- color: var(--charcoal-text3-hover);
1952
- }
1953
-
1954
- .c14:not(:disabled):not([aria-disabled]):active,
1955
- .c14[aria-disabled='false']:active {
1956
- color: var(--charcoal-text3-press);
1957
- }
1958
-
1959
- .c14:not(:disabled):not([aria-disabled]):active,
1960
- .c14[aria-disabled='false']:active,
1961
- .c14:not(:disabled):not([aria-disabled]):focus,
1962
- .c14[aria-disabled='false']:focus,
1963
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
1964
- .c14[aria-disabled='false']:focus-visible {
1965
- outline: none;
1966
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1967
- }
1968
-
1969
- .c10 {
1970
- display: -webkit-inline-box;
1971
- display: -webkit-inline-flex;
1972
- display: -ms-inline-flexbox;
1973
- display: inline-flex;
1974
- -webkit-align-items: center;
1975
- -webkit-box-align: center;
1976
- -ms-flex-align: center;
1977
- align-items: center;
1978
- }
1979
-
1980
- .c10 > .c13 {
1981
- margin-left: auto;
1982
- }
1983
-
1984
- .c19 {
1985
- -webkit-user-select: none;
1986
- -moz-user-select: none;
1987
- -ms-user-select: none;
1988
- user-select: none;
1989
- width: 32px;
1990
- height: 32px;
1991
- display: -webkit-box;
1992
- display: -webkit-flex;
1993
- display: -ms-flexbox;
1994
- display: flex;
1995
- -webkit-align-items: center;
1996
- -webkit-box-align: center;
1997
- -ms-flex-align: center;
1998
- align-items: center;
1999
- -webkit-box-pack: center;
2000
- -webkit-justify-content: center;
2001
- -ms-flex-pack: center;
2002
- justify-content: center;
2003
- color: var(--charcoal-text3);
2004
- background-color: var(--charcoal-transparent);
2005
- border-radius: 999999px;
2006
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2007
- transition: 0.2s background-color,0.2s box-shadow;
2008
- }
2009
-
2010
- .c19:not(:disabled):not([aria-disabled]):hover,
2011
- .c19[aria-disabled='false']:hover {
2012
- color: var(--charcoal-text3-hover);
2013
- background-color: var(--charcoal-transparent-hover);
2014
- }
2015
-
2016
- .c19:not(:disabled):not([aria-disabled]):active,
2017
- .c19[aria-disabled='false']:active {
2018
- color: var(--charcoal-text3-press);
2019
- background-color: var(--charcoal-transparent-press);
2020
- }
2021
-
2022
- .c19:not(:disabled):not([aria-disabled]):focus,
2023
- .c19[aria-disabled='false']:focus {
2024
- outline: none;
2025
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2026
- }
2027
-
2028
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2029
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
2030
- box-shadow: none;
2031
- }
2032
-
2033
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
2034
- .c19[aria-disabled='false']:focus-visible {
2035
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2036
- }
2037
-
2038
- .c19:disabled,
2039
- .c19[aria-disabled]:not([aria-disabled='false']) {
2040
- opacity: 0.32;
2041
- }
2042
-
2043
- .c1 {
2044
- margin: auto;
2045
- position: relative;
2046
- height: -webkit-fit-content;
2047
- height: -moz-fit-content;
2048
- height: fit-content;
2049
- width: 440px;
2050
- background-color: var(--charcoal-surface1);
2051
- border-radius: 24px;
2052
- }
2053
-
2054
- .c1:focus {
2055
- outline: none;
2056
- }
2057
-
2058
- .c0 {
2059
- z-index: 10;
2060
- overflow: auto;
2061
- display: -webkit-box;
2062
- display: -webkit-flex;
2063
- display: -ms-flexbox;
2064
- display: flex;
2065
- position: fixed;
2066
- top: 0;
2067
- left: 0;
2068
- width: -webkit-fill-available;
2069
- width: -moz-available;
2070
- height: 100%;
2071
- -webkit-box-pack: center;
2072
- -webkit-justify-content: center;
2073
- -ms-flex-pack: center;
2074
- justify-content: center;
2075
- padding: 40px 0;
2076
- box-sizing: border-box;
2077
- background-color: var(--charcoal-surface4);
2078
- }
2079
-
2080
- .c20 {
2081
- position: absolute;
2082
- top: 8px;
2083
- right: 8px;
2084
- color: var(--charcoal-text3);
2085
- -webkit-transition: 0.2s color;
2086
- transition: 0.2s color;
2087
- }
2088
-
2089
- .c20:not(:disabled):not([aria-disabled]):hover,
2090
- .c20[aria-disabled='false']:hover {
2091
- color: var(--charcoal-text3-hover);
2092
- }
2093
-
2094
- .c20:not(:disabled):not([aria-disabled]):active,
2095
- .c20[aria-disabled='false']:active {
2096
- color: var(--charcoal-text3-press);
2097
- }
2098
-
2099
- .c3 {
2100
- margin: 0;
2101
- font-weight: inherit;
2102
- font-size: inherit;
2103
- }
893
+ Object {
894
+ "border": 0,
895
+ "clip": "rect(0 0 0 0)",
896
+ "clipPath": "inset(50%)",
897
+ "height": "1px",
898
+ "margin": "-1px",
899
+ "overflow": "hidden",
900
+ "padding": 0,
901
+ "position": "absolute",
902
+ "whiteSpace": "nowrap",
903
+ "width": "1px",
904
+ }
905
+ }
906
+ >
907
+ <select
908
+ onChange={[Function]}
909
+ tabIndex={-1}
910
+ value="10"
911
+ >
912
+ <option
913
+ value="10"
914
+ >
915
+ 10
916
+ </option>
917
+ <option
918
+ value="20"
919
+ >
920
+ 20
921
+ </option>
922
+ <option
923
+ value="30"
924
+ >
925
+ 30
926
+ </option>
927
+ </select>
928
+ </div>
929
+ <button
930
+ className="c6"
931
+ onClick={[Function]}
932
+ type="button"
933
+ >
934
+ <span
935
+ className="c7"
936
+ >
937
+ Apple
938
+ </span>
939
+ <pixiv-icon
940
+ class="c8"
941
+ name="16/Menu"
942
+ />
943
+ </button>
944
+ </div>
945
+ </div>
946
+ </div>
947
+ <div
948
+ className="charcoal-modal-buttons"
949
+ >
950
+ <button
951
+ className="charcoal-button"
952
+ data-full-width={true}
953
+ data-variant="Primary"
954
+ onClick={[Function]}
955
+ >
956
+ Apply
957
+ </button>
958
+ <button
959
+ className="charcoal-button"
960
+ data-full-width={true}
961
+ onClick={[Function]}
962
+ >
963
+ Cancel
964
+ </button>
965
+ </div>
966
+ </div>
967
+ <button
968
+ aria-label="Close"
969
+ className="charcoal-icon-button charcoal-modal-close-button"
970
+ data-active={false}
971
+ data-size="S"
972
+ data-variant="Default"
973
+ onClick={[Function]}
974
+ type="button"
975
+ >
976
+ <pixiv-icon
977
+ name="24/Close"
978
+ />
979
+ </button>
980
+ </div>
981
+ </div>
982
+ </div>
983
+ </div>
984
+ `;
2104
985
 
986
+ exports[`Storybook Tests react/Modal FullBottomSheet 1`] = `
2105
987
  .c2 {
2106
- height: 64px;
2107
- display: grid;
2108
- -webkit-align-content: center;
2109
- -ms-flex-line-pack: center;
2110
- align-content: center;
2111
- -webkit-box-pack: center;
2112
- -webkit-justify-content: center;
2113
- -ms-flex-pack: center;
2114
- justify-content: center;
2115
- }
2116
-
2117
- .c4 {
2118
- color: var(--charcoal-text1);
2119
- font-size: 16px;
2120
- line-height: 24px;
2121
- font-weight: bold;
2122
- display: flow-root;
2123
- }
2124
-
2125
- .c4::before {
2126
- display: block;
2127
- width: 0;
2128
- height: 0;
2129
- content: '';
2130
- margin-top: -4px;
2131
- }
2132
-
2133
- .c4::after {
2134
- display: block;
2135
- width: 0;
2136
- height: 0;
2137
- content: '';
2138
- margin-bottom: -4px;
2139
- }
2140
-
2141
- .c7 {
2142
- padding-left: 16px;
2143
- padding-right: 16px;
2144
- }
2145
-
2146
- .c5 {
2147
- padding-bottom: 40px;
2148
- }
2149
-
2150
- .c17 {
2151
988
  display: grid;
2152
- grid-auto-flow: row;
2153
- grid-row-gap: 8px;
2154
- padding-top: 16px;
2155
- padding-left: 16px;
2156
- padding-right: 16px;
2157
- }
2158
-
2159
- .c9 {
2160
- display: -webkit-box;
2161
- display: -webkit-flex;
2162
- display: -ms-flexbox;
2163
- display: flex;
2164
- -webkit-flex-direction: column;
2165
- -ms-flex-direction: column;
2166
- flex-direction: column;
2167
- }
2168
-
2169
- .c11 {
2170
- margin-bottom: 8px;
989
+ grid-template-columns: 1fr;
990
+ grid-gap: 4px;
2171
991
  }
2172
992
 
2173
- .c15 {
993
+ .c3 {
2174
994
  display: grid;
2175
995
  grid-template-columns: 1fr;
2176
996
  height: 40px;
@@ -2185,17 +1005,17 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2185
1005
  font-size: 14px;
2186
1006
  }
2187
1007
 
2188
- .c15:not(:disabled):not([aria-disabled]):hover,
2189
- .c15 [aria-disabled='false']:hover {
1008
+ .c3:not(:disabled):not([aria-disabled]):hover,
1009
+ .c3 [aria-disabled='false']:hover {
2190
1010
  background-color: var(--charcoal-surface3-hover);
2191
1011
  }
2192
1012
 
2193
- .c15:focus-within {
1013
+ .c3:focus-within {
2194
1014
  outline: none;
2195
1015
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2196
1016
  }
2197
1017
 
2198
- .c16 {
1018
+ .c4 {
2199
1019
  border: none;
2200
1020
  box-sizing: border-box;
2201
1021
  outline: none;
@@ -2220,35 +1040,35 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2220
1040
  color: var(--charcoal-text2);
2221
1041
  }
2222
1042
 
2223
- .c16::-webkit-input-placeholder {
1043
+ .c4::-webkit-input-placeholder {
2224
1044
  color: var(--charcoal-text3);
2225
1045
  }
2226
1046
 
2227
- .c16::-moz-placeholder {
1047
+ .c4::-moz-placeholder {
2228
1048
  color: var(--charcoal-text3);
2229
1049
  }
2230
1050
 
2231
- .c16:-ms-input-placeholder {
1051
+ .c4:-ms-input-placeholder {
2232
1052
  color: var(--charcoal-text3);
2233
1053
  }
2234
1054
 
2235
- .c16::placeholder {
1055
+ .c4::placeholder {
2236
1056
  color: var(--charcoal-text3);
2237
1057
  }
2238
1058
 
2239
- .c6 {
1059
+ .c0 {
2240
1060
  display: grid;
2241
1061
  gap: 24px;
2242
1062
  }
2243
1063
 
2244
- .c8 {
1064
+ .c1 {
2245
1065
  color: var(--charcoal-text2);
2246
1066
  font-size: 14px;
2247
1067
  line-height: 22px;
2248
1068
  display: flow-root;
2249
1069
  }
2250
1070
 
2251
- .c8::before {
1071
+ .c1::before {
2252
1072
  display: block;
2253
1073
  width: 0;
2254
1074
  height: 0;
@@ -2256,7 +1076,7 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2256
1076
  margin-top: -4px;
2257
1077
  }
2258
1078
 
2259
- .c8::after {
1079
+ .c1::after {
2260
1080
  display: block;
2261
1081
  width: 0;
2262
1082
  height: 0;
@@ -2264,30 +1084,6 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2264
1084
  margin-bottom: -4px;
2265
1085
  }
2266
1086
 
2267
- @media (max-width:743px) {
2268
- .c1 {
2269
- max-width: 440px;
2270
- width: calc(100% - 48px);
2271
- max-width: unset;
2272
- width: 100%;
2273
- border-radius: 0;
2274
- margin: auto 0 0 0;
2275
- min-height: 100%;
2276
- }
2277
- }
2278
-
2279
- @media (max-width:743px) {
2280
- .c0 {
2281
- padding: 0;
2282
- }
2283
- }
2284
-
2285
- @media (max-width:743px) {
2286
- .c2 {
2287
- height: 48px;
2288
- }
2289
- }
2290
-
2291
1087
  <div
2292
1088
  data-dark={false}
2293
1089
  >
@@ -2302,22 +1098,23 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2302
1098
  Open Modal
2303
1099
  </button>
2304
1100
  <div
2305
- className="c0"
1101
+ className="charcoal-modal-background"
1102
+ data-bottom-sheet="full"
2306
1103
  onClick={[Function]}
2307
1104
  onPointerDown={[Function]}
2308
1105
  style={
2309
1106
  Object {
2310
1107
  "backgroundColor": "rgba(0, 0, 0, 0)",
2311
1108
  "overflow": "hidden",
1109
+ "zIndex": 10,
2312
1110
  }
2313
1111
  }
2314
1112
  >
2315
1113
  <div
2316
- className="c1"
2317
- onBlur={[Function]}
1114
+ className="charcoal-modal-dialog"
1115
+ data-bottom-sheet="full"
2318
1116
  onKeyDown={[Function]}
2319
1117
  role="dialog"
2320
- size="M"
2321
1118
  style={
2322
1119
  Object {
2323
1120
  "transform": " translateY(100%)",
@@ -2326,108 +1123,101 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2326
1123
  tabIndex={-1}
2327
1124
  >
2328
1125
  <div
2329
- className="c2"
1126
+ className="charcoal-modal-header-root"
1127
+ data-bottom-sheet="full"
2330
1128
  >
2331
- <h3
2332
- className="c3 c4"
1129
+ <div
1130
+ className="charcoal-modal-header-title"
2333
1131
  >
2334
- Title
2335
- </h3>
1132
+ react/Title
1133
+ </div>
2336
1134
  </div>
2337
1135
  <div
2338
- className="c5"
1136
+ className="charcoal-modal-body"
2339
1137
  >
2340
1138
  <div
2341
- className="c6"
1139
+ className="c0"
2342
1140
  >
2343
1141
  <div
2344
- className="c7 c8"
1142
+ className="charcoal-modal-align c1"
2345
1143
  >
2346
1144
  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.
2347
1145
  </div>
2348
1146
  <div
2349
- className="c7"
1147
+ className="charcoal-modal-align"
2350
1148
  >
2351
1149
  <div
2352
- className="c9"
1150
+ className="c2"
2353
1151
  >
2354
1152
  <div
2355
- className="c10 c11"
1153
+ className="charcoal-field-label-root"
2356
1154
  >
2357
1155
  <label
2358
- className="c12"
1156
+ className="charcoal-field-label"
2359
1157
  htmlFor="test-id"
2360
1158
  id="test-id"
2361
1159
  >
2362
1160
  Name
2363
1161
  </label>
2364
1162
  <div
2365
- className="c13 c14"
1163
+ className="charcoal-field-label-sub-label"
2366
1164
  >
2367
1165
  <span />
2368
1166
  </div>
2369
1167
  </div>
2370
1168
  <div
2371
- className="c15"
1169
+ className="c3"
2372
1170
  >
2373
1171
  <input
2374
1172
  aria-labelledby="test-id"
2375
- className="c16"
2376
- disabled={false}
1173
+ className="c4"
2377
1174
  id="test-id"
2378
1175
  onChange={[Function]}
2379
1176
  placeholder="Nagisa"
2380
- readOnly={false}
2381
- required={false}
2382
1177
  type="text"
2383
- value=""
2384
1178
  />
2385
1179
  </div>
2386
1180
  </div>
2387
1181
  </div>
2388
1182
  <div
2389
- className="c7"
1183
+ className="charcoal-modal-align"
2390
1184
  >
2391
1185
  <div
2392
- className="c9"
1186
+ className="c2"
2393
1187
  >
2394
1188
  <div
2395
- className="c10 c11"
1189
+ className="charcoal-field-label-root"
2396
1190
  >
2397
1191
  <label
2398
- className="c12"
1192
+ className="charcoal-field-label"
2399
1193
  htmlFor="test-id"
2400
1194
  id="test-id"
2401
1195
  >
2402
1196
  Country
2403
1197
  </label>
2404
1198
  <div
2405
- className="c13 c14"
1199
+ className="charcoal-field-label-sub-label"
2406
1200
  >
2407
1201
  <span />
2408
1202
  </div>
2409
1203
  </div>
2410
1204
  <div
2411
- className="c15"
1205
+ className="c3"
2412
1206
  >
2413
1207
  <input
2414
1208
  aria-labelledby="test-id"
2415
- className="c16"
2416
- disabled={false}
1209
+ className="c4"
2417
1210
  id="test-id"
2418
1211
  onChange={[Function]}
2419
1212
  placeholder="Tokyo"
2420
- readOnly={false}
2421
- required={false}
2422
1213
  type="text"
2423
- value=""
2424
1214
  />
2425
1215
  </div>
2426
1216
  </div>
2427
1217
  </div>
2428
1218
  </div>
2429
1219
  <div
2430
- className="c17"
1220
+ className="charcoal-modal-buttons"
2431
1221
  >
2432
1222
  <button
2433
1223
  className="charcoal-button"
@@ -2447,8 +1237,13 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2447
1237
  </div>
2448
1238
  </div>
2449
1239
  <button
2450
- className="c18 c19 c20"
1240
+ aria-label="Close"
1241
+ className="charcoal-icon-button charcoal-modal-close-button"
1242
+ data-active={false}
1243
+ data-size="S"
1244
+ data-variant="Default"
2451
1245
  onClick={[Function]}
1246
+ type="button"
2452
1247
  >
2453
1248
  <pixiv-icon
2454
1249
  name="24/Close"
@@ -2460,109 +1255,17 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2460
1255
  </div>
2461
1256
  `;
2462
1257
 
2463
- exports[`Storybook Tests Modal InternalScroll 1`] = `
2464
- .c1 {
2465
- margin: auto;
2466
- position: relative;
2467
- height: -webkit-fit-content;
2468
- height: -moz-fit-content;
2469
- height: fit-content;
2470
- width: 440px;
2471
- background-color: var(--charcoal-surface1);
2472
- border-radius: 24px;
2473
- }
2474
-
2475
- .c1:focus {
2476
- outline: none;
2477
- }
2478
-
1258
+ exports[`Storybook Tests react/Modal InternalScroll 1`] = `
2479
1259
  .c0 {
2480
- z-index: 10;
2481
- overflow: auto;
2482
- display: -webkit-box;
2483
- display: -webkit-flex;
2484
- display: -ms-flexbox;
2485
- display: flex;
2486
- position: fixed;
2487
- top: 0;
2488
- left: 0;
2489
- width: -webkit-fill-available;
2490
- width: -moz-available;
2491
- height: 100%;
2492
- -webkit-box-pack: center;
2493
- -webkit-justify-content: center;
2494
- -ms-flex-pack: center;
2495
- justify-content: center;
2496
- padding: 40px 0;
2497
- box-sizing: border-box;
2498
- background-color: var(--charcoal-surface4);
2499
- }
2500
-
2501
- .c3 {
2502
- margin: 0;
2503
- font-weight: inherit;
2504
- font-size: inherit;
2505
- }
2506
-
2507
- .c2 {
2508
- height: 64px;
2509
- display: grid;
2510
- -webkit-align-content: center;
2511
- -ms-flex-line-pack: center;
2512
- align-content: center;
2513
- -webkit-box-pack: center;
2514
- -webkit-justify-content: center;
2515
- -ms-flex-pack: center;
2516
- justify-content: center;
2517
- }
2518
-
2519
- .c4 {
2520
- color: var(--charcoal-text1);
2521
- font-size: 16px;
2522
- line-height: 24px;
2523
- font-weight: bold;
2524
- display: flow-root;
2525
- }
2526
-
2527
- .c4::before {
2528
- display: block;
2529
- width: 0;
2530
- height: 0;
2531
- content: '';
2532
- margin-top: -4px;
2533
- }
2534
-
2535
- .c4::after {
2536
- display: block;
2537
- width: 0;
2538
- height: 0;
2539
- content: '';
2540
- margin-bottom: -4px;
2541
- }
2542
-
2543
- .c5 {
2544
- padding-bottom: 40px;
2545
- }
2546
-
2547
- .c7 {
2548
- display: grid;
2549
- grid-auto-flow: row;
2550
- grid-row-gap: 8px;
2551
- padding-top: 16px;
2552
- padding-left: 16px;
2553
- padding-right: 16px;
2554
- }
2555
-
2556
- .c6 {
2557
1260
  overflow: auto;
2558
1261
  max-height: calc( 100vh - 184px - 56px );
2559
1262
  }
2560
1263
 
2561
- .c8 {
1264
+ .c1 {
2562
1265
  position: relative;
2563
1266
  }
2564
1267
 
2565
- .c8::before {
1268
+ .c1::before {
2566
1269
  content: '';
2567
1270
  pointer-events: none;
2568
1271
  border-top: 1px solid rgba(0,0,0,0.08);
@@ -2573,21 +1276,6 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2573
1276
  height: 100%;
2574
1277
  }
2575
1278
 
2576
- @media (max-width:743px) {
2577
- .c1 {
2578
- max-width: 440px;
2579
- width: calc(100% - 48px);
2580
- }
2581
- }
2582
-
2583
- @media (max-width:743px) {
2584
-
2585
- }
2586
-
2587
- @media (max-width:743px) {
2588
-
2589
- }
2590
-
2591
1279
  <div
2592
1280
  data-dark={false}
2593
1281
  >
@@ -2602,34 +1290,39 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2602
1290
  Open Modal
2603
1291
  </button>
2604
1292
  <div
2605
- className="c0"
1293
+ className="charcoal-modal-background"
1294
+ data-bottom-sheet={false}
2606
1295
  onClick={[Function]}
2607
1296
  onPointerDown={[Function]}
2608
- style={Object {}}
1297
+ style={
1298
+ Object {
1299
+ "zIndex": 10,
1300
+ }
1301
+ }
2609
1302
  >
2610
1303
  <div
2611
- className="c1"
2612
- onBlur={[Function]}
1304
+ className="charcoal-modal-dialog"
1305
+ data-bottom-sheet={false}
2613
1306
  onKeyDown={[Function]}
2614
1307
  role="dialog"
2615
- size="M"
2616
1308
  style={Object {}}
2617
1309
  tabIndex={-1}
2618
1310
  >
2619
1311
  <div
2620
- className="c2"
1312
+ className="charcoal-modal-header-root"
1313
+ data-bottom-sheet={false}
2621
1314
  >
2622
- <h3
2623
- className="c3 c4"
1315
+ <div
1316
+ className="charcoal-modal-header-title"
2624
1317
  >
2625
- Title
2626
- </h3>
1318
+ react/Title
1319
+ </div>
2627
1320
  </div>
2628
1321
  <div
2629
- className="c5"
1322
+ className="charcoal-modal-body"
2630
1323
  >
2631
1324
  <div
2632
- className="c6"
1325
+ className="c0"
2633
1326
  >
2634
1327
  <div
2635
1328
  style={
@@ -2641,7 +1334,7 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2641
1334
  />
2642
1335
  </div>
2643
1336
  <div
2644
- className="c7 c8"
1337
+ className="charcoal-modal-buttons c1"
2645
1338
  >
2646
1339
  <button
2647
1340
  className="charcoal-button"
@@ -2658,117 +1351,20 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2658
1351
  </div>
2659
1352
  `;
2660
1353
 
2661
- exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2662
- .c1 {
2663
- margin: auto;
2664
- position: relative;
2665
- height: -webkit-fit-content;
2666
- height: -moz-fit-content;
2667
- height: fit-content;
2668
- width: 440px;
2669
- background-color: var(--charcoal-surface1);
2670
- border-radius: 24px;
2671
- }
2672
-
2673
- .c1:focus {
2674
- outline: none;
2675
- }
2676
-
1354
+ exports[`Storybook Tests react/Modal NotDismmissableStory 1`] = `
2677
1355
  .c0 {
2678
- z-index: 10;
2679
- overflow: auto;
2680
- display: -webkit-box;
2681
- display: -webkit-flex;
2682
- display: -ms-flexbox;
2683
- display: flex;
2684
- position: fixed;
2685
- top: 0;
2686
- left: 0;
2687
- width: -webkit-fill-available;
2688
- width: -moz-available;
2689
- height: 100%;
2690
- -webkit-box-pack: center;
2691
- -webkit-justify-content: center;
2692
- -ms-flex-pack: center;
2693
- justify-content: center;
2694
- padding: 40px 0;
2695
- box-sizing: border-box;
2696
- background-color: var(--charcoal-surface4);
2697
- }
2698
-
2699
- .c3 {
2700
- margin: 0;
2701
- font-weight: inherit;
2702
- font-size: inherit;
2703
- }
2704
-
2705
- .c2 {
2706
- height: 64px;
2707
- display: grid;
2708
- -webkit-align-content: center;
2709
- -ms-flex-line-pack: center;
2710
- align-content: center;
2711
- -webkit-box-pack: center;
2712
- -webkit-justify-content: center;
2713
- -ms-flex-pack: center;
2714
- justify-content: center;
2715
- }
2716
-
2717
- .c4 {
2718
- color: var(--charcoal-text1);
2719
- font-size: 16px;
2720
- line-height: 24px;
2721
- font-weight: bold;
2722
- display: flow-root;
2723
- }
2724
-
2725
- .c4::before {
2726
- display: block;
2727
- width: 0;
2728
- height: 0;
2729
- content: '';
2730
- margin-top: -4px;
2731
- }
2732
-
2733
- .c4::after {
2734
- display: block;
2735
- width: 0;
2736
- height: 0;
2737
- content: '';
2738
- margin-bottom: -4px;
2739
- }
2740
-
2741
- .c7 {
2742
- padding-left: 16px;
2743
- padding-right: 16px;
2744
- }
2745
-
2746
- .c5 {
2747
- padding-bottom: 40px;
2748
- }
2749
-
2750
- .c9 {
2751
- display: grid;
2752
- grid-auto-flow: row;
2753
- grid-row-gap: 8px;
2754
- padding-top: 16px;
2755
- padding-left: 16px;
2756
- padding-right: 16px;
2757
- }
2758
-
2759
- .c6 {
2760
1356
  display: grid;
2761
1357
  gap: 24px;
2762
1358
  }
2763
1359
 
2764
- .c8 {
1360
+ .c1 {
2765
1361
  color: var(--charcoal-text2);
2766
1362
  font-size: 14px;
2767
1363
  line-height: 22px;
2768
1364
  display: flow-root;
2769
1365
  }
2770
1366
 
2771
- .c8::before {
1367
+ .c1::before {
2772
1368
  display: block;
2773
1369
  width: 0;
2774
1370
  height: 0;
@@ -2776,7 +1372,7 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2776
1372
  margin-top: -4px;
2777
1373
  }
2778
1374
 
2779
- .c8::after {
1375
+ .c1::after {
2780
1376
  display: block;
2781
1377
  width: 0;
2782
1378
  height: 0;
@@ -2784,21 +1380,6 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2784
1380
  margin-bottom: -4px;
2785
1381
  }
2786
1382
 
2787
- @media (max-width:743px) {
2788
- .c1 {
2789
- max-width: 440px;
2790
- width: calc(100% - 48px);
2791
- }
2792
- }
2793
-
2794
- @media (max-width:743px) {
2795
-
2796
- }
2797
-
2798
- @media (max-width:743px) {
2799
-
2800
- }
2801
-
2802
1383
  <div
2803
1384
  data-dark={false}
2804
1385
  >
@@ -2813,43 +1394,48 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2813
1394
  Open Modal
2814
1395
  </button>
2815
1396
  <div
2816
- className="c0"
1397
+ className="charcoal-modal-background"
1398
+ data-bottom-sheet={false}
2817
1399
  onClick={[Function]}
2818
1400
  onPointerDown={[Function]}
2819
- style={Object {}}
1401
+ style={
1402
+ Object {
1403
+ "zIndex": 10,
1404
+ }
1405
+ }
2820
1406
  >
2821
1407
  <div
2822
- className="c1"
2823
- onBlur={[Function]}
1408
+ className="charcoal-modal-dialog"
1409
+ data-bottom-sheet={false}
2824
1410
  onKeyDown={[Function]}
2825
1411
  role="dialog"
2826
- size="M"
2827
1412
  style={Object {}}
2828
1413
  tabIndex={-1}
2829
1414
  >
2830
1415
  <div
2831
- className="c2"
1416
+ className="charcoal-modal-header-root"
1417
+ data-bottom-sheet={false}
2832
1418
  >
2833
- <h3
2834
- className="c3 c4"
1419
+ <div
1420
+ className="charcoal-modal-header-title"
2835
1421
  >
2836
- Title
2837
- </h3>
1422
+ react/Title
1423
+ </div>
2838
1424
  </div>
2839
1425
  <div
2840
- className="c5"
1426
+ className="charcoal-modal-body"
2841
1427
  >
2842
1428
  <div
2843
- className="c6"
1429
+ className="c0"
2844
1430
  >
2845
1431
  <div
2846
- className="c7 c8"
1432
+ className="charcoal-modal-align c1"
2847
1433
  >
2848
1434
  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.
2849
1435
  </div>
2850
1436
  </div>
2851
1437
  <div
2852
- className="c9"
1438
+ className="charcoal-modal-buttons"
2853
1439
  >
2854
1440
  <button
2855
1441
  className="charcoal-button"