@charcoal-ui/react 4.0.0-beta.3 → 4.0.0-beta.5

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 (176) hide show
  1. package/dist/_lib/useClassNames.d.ts +2 -2
  2. package/dist/_lib/useClassNames.d.ts.map +1 -1
  3. package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
  4. package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
  5. package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
  6. package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
  7. package/dist/components/Checkbox/index.d.ts +12 -21
  8. package/dist/components/Checkbox/index.d.ts.map +1 -1
  9. package/dist/components/Clickable/index.d.ts +10 -13
  10. package/dist/components/Clickable/index.d.ts.map +1 -1
  11. package/dist/components/DropdownSelector/Popover/index.d.ts +1 -2
  12. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  13. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  14. package/dist/components/FieldLabel/index.d.ts +1 -0
  15. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  16. package/dist/components/IconButton/index.d.ts +7 -5
  17. package/dist/components/IconButton/index.d.ts.map +1 -1
  18. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  19. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  20. package/dist/components/Modal/Dialog/index.d.ts +6 -24
  21. package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
  22. package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
  23. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  24. package/dist/components/Modal/index.d.ts +2 -2
  25. package/dist/components/Modal/index.d.ts.map +1 -1
  26. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  27. package/dist/components/Radio/index.d.ts +6 -8
  28. package/dist/components/Radio/index.d.ts.map +1 -1
  29. package/dist/components/SegmentedControl/index.d.ts +1 -0
  30. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  31. package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
  32. package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
  33. package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
  34. package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
  35. package/dist/components/Switch/index.d.ts +4 -15
  36. package/dist/components/Switch/index.d.ts.map +1 -1
  37. package/dist/components/TagItem/index.d.ts +14 -15
  38. package/dist/components/TagItem/index.d.ts.map +1 -1
  39. package/dist/components/TextArea/index.d.ts +28 -18
  40. package/dist/components/TextArea/index.d.ts.map +1 -1
  41. package/dist/components/TextField/index.d.ts +32 -19
  42. package/dist/components/TextField/index.d.ts.map +1 -1
  43. package/dist/core/CharcoalProvider.d.ts +1 -1
  44. package/dist/core/CharcoalProvider.d.ts.map +1 -1
  45. package/dist/index.cjs.js +456 -1079
  46. package/dist/index.cjs.js.map +1 -1
  47. package/dist/index.css +790 -0
  48. package/dist/index.css.map +1 -1
  49. package/dist/index.d.ts +1 -2
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.esm.js +454 -1075
  52. package/dist/index.esm.js.map +1 -1
  53. package/dist/styled.d.ts +4 -4
  54. package/package.json +17 -19
  55. package/src/_lib/useClassNames.ts +3 -9
  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/Checkbox/CheckboxInput/index.story.tsx +51 -0
  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 +103 -538
  62. package/src/components/Checkbox/index.css +21 -0
  63. package/src/components/Checkbox/index.story.tsx +48 -78
  64. package/src/components/Checkbox/index.tsx +32 -162
  65. package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -78
  66. package/src/components/Clickable/index.css +41 -0
  67. package/src/components/Clickable/index.story.tsx +1 -1
  68. package/src/components/Clickable/index.tsx +25 -85
  69. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +10 -135
  70. package/src/components/DropdownSelector/Popover/index.tsx +1 -2
  71. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +308 -1014
  72. package/src/components/DropdownSelector/index.tsx +9 -38
  73. package/src/components/FieldLabel/index.css +35 -0
  74. package/src/components/FieldLabel/index.tsx +15 -105
  75. package/src/components/IconButton/__snapshots__/index.story.storyshot +18 -296
  76. package/src/components/IconButton/index.css +118 -0
  77. package/src/components/IconButton/index.story.tsx +16 -39
  78. package/src/components/IconButton/index.tsx +41 -118
  79. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
  80. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +79 -29
  81. package/src/components/LoadingSpinner/index.css +42 -0
  82. package/src/components/LoadingSpinner/index.story.tsx +18 -7
  83. package/src/components/LoadingSpinner/index.tsx +26 -52
  84. package/src/components/Modal/Dialog/index.css +44 -0
  85. package/src/components/Modal/Dialog/index.tsx +13 -57
  86. package/src/components/Modal/ModalPlumbing.css +40 -0
  87. package/src/components/Modal/ModalPlumbing.tsx +22 -61
  88. package/src/components/Modal/__snapshots__/index.story.storyshot +459 -1881
  89. package/src/components/Modal/index.css +36 -0
  90. package/src/components/Modal/index.tsx +27 -74
  91. package/src/components/Modal/useCustomModalOverlay.tsx +5 -4
  92. package/src/components/Radio/__snapshots__/index.story.storyshot +51 -776
  93. package/src/components/Radio/index.css +97 -0
  94. package/src/components/Radio/index.story.tsx +20 -30
  95. package/src/components/Radio/index.test.tsx +0 -1
  96. package/src/components/Radio/index.tsx +60 -170
  97. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +30 -260
  98. package/src/components/SegmentedControl/index.css +50 -0
  99. package/src/components/SegmentedControl/index.tsx +20 -89
  100. package/src/components/Switch/SwitchInput/index.css +82 -0
  101. package/src/components/Switch/SwitchInput/index.tsx +40 -0
  102. package/src/components/Switch/SwitchWithLabel.tsx +24 -0
  103. package/src/components/Switch/__snapshots__/index.story.storyshot +34 -538
  104. package/src/components/Switch/index.css +23 -0
  105. package/src/components/Switch/index.story.tsx +15 -18
  106. package/src/components/Switch/index.tsx +43 -140
  107. package/src/components/TagItem/__snapshots__/index.story.storyshot +212 -1063
  108. package/src/components/TagItem/index.css +140 -0
  109. package/src/components/TagItem/index.story.tsx +44 -161
  110. package/src/components/TagItem/index.tsx +76 -220
  111. package/src/components/TextArea/TextArea.story.tsx +62 -24
  112. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +1024 -792
  113. package/src/components/TextArea/index.tsx +68 -89
  114. package/src/components/TextField/TextField.story.tsx +77 -67
  115. package/src/components/TextField/__snapshots__/TextField.story.storyshot +1152 -1274
  116. package/src/components/TextField/index.tsx +77 -103
  117. package/src/components/a11y.test.tsx +1 -1
  118. package/src/core/CharcoalProvider.tsx +1 -1
  119. package/src/index.ts +0 -7
  120. package/src/type.d.ts +6 -0
  121. package/dist/components/Button/index.story.d.ts +0 -22
  122. package/dist/components/Button/index.story.d.ts.map +0 -1
  123. package/dist/components/Button/index.test.d.ts +0 -2
  124. package/dist/components/Button/index.test.d.ts.map +0 -1
  125. package/dist/components/Checkbox/index.story.d.ts +0 -8
  126. package/dist/components/Checkbox/index.story.d.ts.map +0 -1
  127. package/dist/components/Clickable/index.story.d.ts +0 -6
  128. package/dist/components/Clickable/index.story.d.ts.map +0 -1
  129. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
  130. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
  131. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
  132. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
  133. package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
  134. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
  135. package/dist/components/DropdownSelector/index.story.d.ts +0 -19
  136. package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
  137. package/dist/components/Icon/index.story.d.ts +0 -6
  138. package/dist/components/Icon/index.story.d.ts.map +0 -1
  139. package/dist/components/IconButton/index.story.d.ts +0 -9
  140. package/dist/components/IconButton/index.story.d.ts.map +0 -1
  141. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
  142. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
  143. package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
  144. package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
  145. package/dist/components/Modal/index.story.d.ts +0 -21
  146. package/dist/components/Modal/index.story.d.ts.map +0 -1
  147. package/dist/components/MultiSelect/context.d.ts +0 -14
  148. package/dist/components/MultiSelect/context.d.ts.map +0 -1
  149. package/dist/components/MultiSelect/index.d.ts +0 -36
  150. package/dist/components/MultiSelect/index.d.ts.map +0 -1
  151. package/dist/components/MultiSelect/index.story.d.ts +0 -82
  152. package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
  153. package/dist/components/MultiSelect/index.test.d.ts +0 -2
  154. package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
  155. package/dist/components/Radio/index.story.d.ts +0 -26
  156. package/dist/components/Radio/index.story.d.ts.map +0 -1
  157. package/dist/components/Radio/index.test.d.ts +0 -2
  158. package/dist/components/Radio/index.test.d.ts.map +0 -1
  159. package/dist/components/SegmentedControl/index.story.d.ts +0 -7
  160. package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
  161. package/dist/components/Switch/index.story.d.ts +0 -9
  162. package/dist/components/Switch/index.story.d.ts.map +0 -1
  163. package/dist/components/TagItem/index.story.d.ts +0 -16
  164. package/dist/components/TagItem/index.story.d.ts.map +0 -1
  165. package/dist/components/TextArea/TextArea.story.d.ts +0 -9
  166. package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
  167. package/dist/components/TextField/TextField.story.d.ts +0 -22
  168. package/dist/components/TextField/TextField.story.d.ts.map +0 -1
  169. package/dist/components/a11y.test.d.ts +0 -2
  170. package/dist/components/a11y.test.d.ts.map +0 -1
  171. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
  172. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1066
  173. package/src/components/MultiSelect/context.ts +0 -23
  174. package/src/components/MultiSelect/index.story.tsx +0 -216
  175. package/src/components/MultiSelect/index.test.tsx +0 -263
  176. package/src/components/MultiSelect/index.tsx +0 -281
@@ -1,149 +1,94 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
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;
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
235
  Title
556
- </h3>
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,7 +417,10 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
745
417
  </div>
746
418
  </div>
747
419
  <button
748
- className="c23 c24 c25"
420
+ className="charcoal-icon-button charcoal-modal-close-button"
421
+ data-active={false}
422
+ data-size="S"
423
+ data-variant="Default"
749
424
  onClick={[Function]}
750
425
  >
751
426
  <pixiv-icon
@@ -759,232 +434,19 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
759
434
  `;
760
435
 
761
436
  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
-
874
437
  .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
438
  display: grid;
977
439
  gap: 24px;
978
440
  }
979
441
 
980
- .c8 {
442
+ .c1 {
981
443
  color: var(--charcoal-text2);
982
444
  font-size: 14px;
983
445
  line-height: 22px;
984
446
  display: flow-root;
985
447
  }
986
448
 
987
- .c8::before {
449
+ .c1::before {
988
450
  display: block;
989
451
  width: 0;
990
452
  height: 0;
@@ -992,7 +454,7 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
992
454
  margin-top: -4px;
993
455
  }
994
456
 
995
- .c8::after {
457
+ .c1::after {
996
458
  display: block;
997
459
  width: 0;
998
460
  height: 0;
@@ -1000,29 +462,6 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1000
462
  margin-bottom: -4px;
1001
463
  }
1002
464
 
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
465
  <div
1027
466
  data-dark={false}
1028
467
  >
@@ -1037,22 +476,23 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1037
476
  Open Modal
1038
477
  </button>
1039
478
  <div
1040
- className="c0"
479
+ className="charcoal-modal-background"
480
+ data-bottom-sheet={true}
1041
481
  onClick={[Function]}
1042
482
  onPointerDown={[Function]}
1043
483
  style={
1044
484
  Object {
1045
485
  "backgroundColor": "rgba(0, 0, 0, 0)",
1046
486
  "overflow": "hidden",
487
+ "zIndex": 10,
1047
488
  }
1048
489
  }
1049
490
  >
1050
491
  <div
1051
- className="c1"
1052
- onBlur={[Function]}
492
+ className="charcoal-modal-dialog"
493
+ data-bottom-sheet={true}
1053
494
  onKeyDown={[Function]}
1054
495
  role="dialog"
1055
- size="M"
1056
496
  style={
1057
497
  Object {
1058
498
  "transform": " translateY(100%)",
@@ -1061,28 +501,29 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1061
501
  tabIndex={-1}
1062
502
  >
1063
503
  <div
1064
- className="c2"
504
+ className="charcoal-modal-header-root"
505
+ data-bottom-sheet={true}
1065
506
  >
1066
- <h3
1067
- className="c3 c4"
507
+ <div
508
+ className="charcoal-modal-header-title"
1068
509
  >
1069
510
  Title
1070
- </h3>
511
+ </div>
1071
512
  </div>
1072
513
  <div
1073
- className="c5"
514
+ className="charcoal-modal-body"
1074
515
  >
1075
516
  <div
1076
- className="c6"
517
+ className="c0"
1077
518
  >
1078
519
  <div
1079
- className="c7 c8"
520
+ className="charcoal-modal-align c1"
1080
521
  >
1081
522
  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
523
  </div>
1083
524
  </div>
1084
525
  <div
1085
- className="c9"
526
+ className="charcoal-modal-buttons"
1086
527
  >
1087
528
  <button
1088
529
  className="charcoal-button"
@@ -1095,7 +536,10 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1095
536
  </div>
1096
537
  </div>
1097
538
  <button
1098
- className="c10 c11 c12"
539
+ className="charcoal-icon-button charcoal-modal-close-button"
540
+ data-active={false}
541
+ data-size="S"
542
+ data-variant="Default"
1099
543
  onClick={[Function]}
1100
544
  >
1101
545
  <pixiv-icon
@@ -1109,407 +553,13 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1109
553
  `;
1110
554
 
1111
555
  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
-
1444
556
  .c2 {
1445
- height: 64px;
1446
557
  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;
558
+ grid-template-columns: 1fr;
559
+ grid-gap: 4px;
1510
560
  }
1511
561
 
1512
- .c15 {
562
+ .c3 {
1513
563
  display: grid;
1514
564
  grid-template-columns: 1fr;
1515
565
  height: 40px;
@@ -1524,17 +574,17 @@ exports[`Storybook Tests Modal Default 1`] = `
1524
574
  font-size: 14px;
1525
575
  }
1526
576
 
1527
- .c15:not(:disabled):not([aria-disabled]):hover,
1528
- .c15 [aria-disabled='false']:hover {
577
+ .c3:not(:disabled):not([aria-disabled]):hover,
578
+ .c3 [aria-disabled='false']:hover {
1529
579
  background-color: var(--charcoal-surface3-hover);
1530
580
  }
1531
581
 
1532
- .c15:focus-within {
582
+ .c3:focus-within {
1533
583
  outline: none;
1534
584
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1535
585
  }
1536
586
 
1537
- .c16 {
587
+ .c4 {
1538
588
  border: none;
1539
589
  box-sizing: border-box;
1540
590
  outline: none;
@@ -1559,35 +609,119 @@ exports[`Storybook Tests Modal Default 1`] = `
1559
609
  color: var(--charcoal-text2);
1560
610
  }
1561
611
 
1562
- .c16::-webkit-input-placeholder {
1563
- color: var(--charcoal-text3);
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
+ width: 100%;
633
+ }
634
+
635
+ .c5:disabled,
636
+ .c5[aria-disabled]:not([aria-disabled=false]) {
637
+ cursor: default;
638
+ opacity: 0.32;
639
+ }
640
+
641
+ .c6 {
642
+ display: grid;
643
+ grid-template-columns: 1fr auto;
644
+ -webkit-box-pack: justify;
645
+ -webkit-justify-content: space-between;
646
+ -ms-flex-pack: justify;
647
+ justify-content: space-between;
648
+ -webkit-align-items: center;
649
+ -webkit-box-align: center;
650
+ -ms-flex-align: center;
651
+ align-items: center;
652
+ height: 40px;
653
+ width: 100%;
654
+ box-sizing: border-box;
655
+ border: none;
656
+ cursor: pointer;
657
+ gap: 4px;
658
+ padding-right: 8px;
659
+ padding-left: 8px;
660
+ background-color: var(--charcoal-surface3);
661
+ border-radius: 4px;
662
+ -webkit-transition: 0.2s box-shadow,0.2s background-color;
663
+ transition: 0.2s box-shadow,0.2s background-color;
664
+ }
665
+
666
+ .c6:disabled,
667
+ .c6[aria-disabled]:not([aria-disabled=false]) {
668
+ cursor: default;
1564
669
  }
1565
670
 
1566
- .c16::-moz-placeholder {
1567
- color: var(--charcoal-text3);
671
+ .c6:not(:disabled):not([aria-disabled]):focus,
672
+ .c6[aria-disabled='false']:focus {
673
+ outline: none;
674
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1568
675
  }
1569
676
 
1570
- .c16:-ms-input-placeholder {
1571
- color: var(--charcoal-text3);
677
+ .c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
678
+ .c6[aria-disabled='false']:focus:not(:focus-visible) {
679
+ box-shadow: none;
1572
680
  }
1573
681
 
1574
- .c16::placeholder {
1575
- color: var(--charcoal-text3);
682
+ .c6:not(:disabled):not([aria-disabled]):focus-visible,
683
+ .c6[aria-disabled='false']:focus-visible {
684
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1576
685
  }
1577
686
 
1578
- .c6 {
687
+ .c6:not(:disabled):not([aria-disabled]):hover,
688
+ .c6[aria-disabled='false']:hover {
689
+ background-color: var(--charcoal-surface3-hover);
690
+ }
691
+
692
+ .c6:not(:disabled):not([aria-disabled]):active,
693
+ .c6[aria-disabled='false']:active {
694
+ background-color: var(--charcoal-surface3-press);
695
+ }
696
+
697
+ .c7 {
698
+ text-align: left;
699
+ font-size: 14px;
700
+ line-height: 22px;
701
+ display: flow-root;
702
+ color: var(--charcoal-text2);
703
+ overflow: hidden;
704
+ text-overflow: ellipsis;
705
+ white-space: nowrap;
706
+ }
707
+
708
+ .c8 {
709
+ color: var(--charcoal-text2);
710
+ }
711
+
712
+ .c0 {
1579
713
  display: grid;
1580
714
  gap: 24px;
1581
715
  }
1582
716
 
1583
- .c8 {
717
+ .c1 {
1584
718
  color: var(--charcoal-text2);
1585
719
  font-size: 14px;
1586
720
  line-height: 22px;
1587
721
  display: flow-root;
1588
722
  }
1589
723
 
1590
- .c8::before {
724
+ .c1::before {
1591
725
  display: block;
1592
726
  width: 0;
1593
727
  height: 0;
@@ -1595,7 +729,7 @@ exports[`Storybook Tests Modal Default 1`] = `
1595
729
  margin-top: -4px;
1596
730
  }
1597
731
 
1598
- .c8::after {
732
+ .c1::after {
1599
733
  display: block;
1600
734
  width: 0;
1601
735
  height: 0;
@@ -1603,21 +737,6 @@ exports[`Storybook Tests Modal Default 1`] = `
1603
737
  margin-bottom: -4px;
1604
738
  }
1605
739
 
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
740
  <div
1622
741
  data-dark={false}
1623
742
  >
@@ -1632,137 +751,134 @@ exports[`Storybook Tests Modal Default 1`] = `
1632
751
  Open Modal
1633
752
  </button>
1634
753
  <div
1635
- className="c0"
754
+ className="charcoal-modal-background"
755
+ data-bottom-sheet={false}
1636
756
  onClick={[Function]}
1637
757
  onPointerDown={[Function]}
1638
- style={Object {}}
758
+ style={
759
+ Object {
760
+ "zIndex": 10,
761
+ }
762
+ }
1639
763
  >
1640
764
  <div
1641
- className="c1"
1642
- onBlur={[Function]}
765
+ className="charcoal-modal-dialog"
766
+ data-bottom-sheet={false}
1643
767
  onKeyDown={[Function]}
1644
768
  role="dialog"
1645
- size="M"
1646
769
  style={Object {}}
1647
770
  tabIndex={-1}
1648
771
  >
1649
772
  <div
1650
- className="c2"
773
+ className="charcoal-modal-header-root"
774
+ data-bottom-sheet={false}
1651
775
  >
1652
- <h3
1653
- className="c3 c4"
776
+ <div
777
+ className="charcoal-modal-header-title"
1654
778
  >
1655
779
  Title
1656
- </h3>
780
+ </div>
1657
781
  </div>
1658
782
  <div
1659
- className="c5"
783
+ className="charcoal-modal-body"
1660
784
  >
1661
785
  <div
1662
- className="c6"
786
+ className="c0"
1663
787
  >
1664
788
  <div
1665
- className="c7 c8"
789
+ className="charcoal-modal-align c1"
1666
790
  >
1667
791
  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
792
  </div>
1669
793
  <div
1670
- className="c7"
794
+ className="charcoal-modal-align"
1671
795
  >
1672
796
  <div
1673
- className="c9"
797
+ className="c2"
1674
798
  >
1675
799
  <div
1676
- className="c10 c11"
800
+ className="charcoal-field-label-root"
1677
801
  >
1678
802
  <label
1679
- className="c12"
803
+ className="charcoal-field-label"
1680
804
  htmlFor="test-id"
1681
805
  id="test-id"
1682
806
  >
1683
807
  Name
1684
808
  </label>
1685
809
  <div
1686
- className="c13 c14"
810
+ className="charcoal-field-label-sub-label"
1687
811
  >
1688
812
  <span />
1689
813
  </div>
1690
814
  </div>
1691
815
  <div
1692
- className="c15"
816
+ className="c3"
1693
817
  >
1694
818
  <input
1695
819
  aria-labelledby="test-id"
1696
- className="c16"
1697
- disabled={false}
820
+ className="c4"
1698
821
  id="test-id"
1699
822
  onChange={[Function]}
1700
823
  placeholder="Nagisa"
1701
- readOnly={false}
1702
- required={false}
1703
824
  type="text"
1704
- value=""
1705
825
  />
1706
826
  </div>
1707
827
  </div>
1708
828
  </div>
1709
829
  <div
1710
- className="c7"
830
+ className="charcoal-modal-align"
1711
831
  >
1712
832
  <div
1713
- className="c9"
833
+ className="c2"
1714
834
  >
1715
835
  <div
1716
- className="c10 c11"
836
+ className="charcoal-field-label-root"
1717
837
  >
1718
838
  <label
1719
- className="c12"
839
+ className="charcoal-field-label"
1720
840
  htmlFor="test-id"
1721
841
  id="test-id"
1722
842
  >
1723
843
  Country
1724
844
  </label>
1725
845
  <div
1726
- className="c13 c14"
846
+ className="charcoal-field-label-sub-label"
1727
847
  >
1728
848
  <span />
1729
849
  </div>
1730
850
  </div>
1731
851
  <div
1732
- className="c15"
852
+ className="c3"
1733
853
  >
1734
854
  <input
1735
855
  aria-labelledby="test-id"
1736
856
  autoFocus={true}
1737
- className="c16"
1738
- disabled={false}
857
+ className="c4"
1739
858
  id="test-id"
1740
859
  onChange={[Function]}
1741
860
  placeholder="Tokyo"
1742
- readOnly={false}
1743
- required={false}
1744
861
  type="text"
1745
- value=""
1746
862
  />
1747
863
  </div>
1748
864
  </div>
1749
865
  </div>
1750
866
  <div
1751
- className="c7"
867
+ className="charcoal-modal-align"
1752
868
  >
1753
869
  <div
1754
- className="c17"
870
+ className="c5"
1755
871
  >
1756
872
  <div
1757
- className="c10 c18"
873
+ className="charcoal-field-label-root"
1758
874
  >
1759
875
  <label
1760
- className="c12"
876
+ className="charcoal-field-label"
1761
877
  >
1762
878
  Fruits
1763
879
  </label>
1764
880
  <div
1765
- className="c13 c14"
881
+ className="charcoal-field-label-sub-label"
1766
882
  >
1767
883
  <span />
1768
884
  </div>
@@ -1771,406 +887,104 @@ exports[`Storybook Tests Modal Default 1`] = `
1771
887
  aria-hidden="true"
1772
888
  style={
1773
889
  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
- }
890
+ "border": 0,
891
+ "clip": "rect(0 0 0 0)",
892
+ "clipPath": "inset(50%)",
893
+ "height": "1px",
894
+ "margin": "-1px",
895
+ "overflow": "hidden",
896
+ "padding": 0,
897
+ "position": "absolute",
898
+ "whiteSpace": "nowrap",
899
+ "width": "1px",
900
+ }
901
+ }
902
+ >
903
+ <select
904
+ onChange={[Function]}
905
+ tabIndex={-1}
906
+ value="10"
907
+ >
908
+ <option
909
+ value="10"
910
+ >
911
+ 10
912
+ </option>
913
+ <option
914
+ value="20"
915
+ >
916
+ 20
917
+ </option>
918
+ <option
919
+ value="30"
920
+ >
921
+ 30
922
+ </option>
923
+ </select>
924
+ </div>
925
+ <button
926
+ className="c6"
927
+ onClick={[Function]}
928
+ type="button"
929
+ >
930
+ <span
931
+ className="c7"
932
+ >
933
+ Apple
934
+ </span>
935
+ <pixiv-icon
936
+ class="c8"
937
+ name="16/Menu"
938
+ />
939
+ </button>
940
+ </div>
941
+ </div>
942
+ </div>
943
+ <div
944
+ className="charcoal-modal-buttons"
945
+ >
946
+ <button
947
+ className="charcoal-button"
948
+ data-full-width={true}
949
+ data-variant="Primary"
950
+ onClick={[Function]}
951
+ >
952
+ Apply
953
+ </button>
954
+ <button
955
+ className="charcoal-button"
956
+ data-full-width={true}
957
+ onClick={[Function]}
958
+ >
959
+ Cancel
960
+ </button>
961
+ </div>
962
+ </div>
963
+ <button
964
+ className="charcoal-icon-button charcoal-modal-close-button"
965
+ data-active={false}
966
+ data-size="S"
967
+ data-variant="Default"
968
+ onClick={[Function]}
969
+ >
970
+ <pixiv-icon
971
+ name="24/Close"
972
+ />
973
+ </button>
974
+ </div>
975
+ </div>
976
+ </div>
977
+ </div>
978
+ `;
2104
979
 
980
+ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2105
981
  .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
982
  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;
983
+ grid-template-columns: 1fr;
984
+ grid-gap: 4px;
2171
985
  }
2172
986
 
2173
- .c15 {
987
+ .c3 {
2174
988
  display: grid;
2175
989
  grid-template-columns: 1fr;
2176
990
  height: 40px;
@@ -2185,17 +999,17 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2185
999
  font-size: 14px;
2186
1000
  }
2187
1001
 
2188
- .c15:not(:disabled):not([aria-disabled]):hover,
2189
- .c15 [aria-disabled='false']:hover {
1002
+ .c3:not(:disabled):not([aria-disabled]):hover,
1003
+ .c3 [aria-disabled='false']:hover {
2190
1004
  background-color: var(--charcoal-surface3-hover);
2191
1005
  }
2192
1006
 
2193
- .c15:focus-within {
1007
+ .c3:focus-within {
2194
1008
  outline: none;
2195
1009
  box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2196
1010
  }
2197
1011
 
2198
- .c16 {
1012
+ .c4 {
2199
1013
  border: none;
2200
1014
  box-sizing: border-box;
2201
1015
  outline: none;
@@ -2220,35 +1034,35 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2220
1034
  color: var(--charcoal-text2);
2221
1035
  }
2222
1036
 
2223
- .c16::-webkit-input-placeholder {
1037
+ .c4::-webkit-input-placeholder {
2224
1038
  color: var(--charcoal-text3);
2225
1039
  }
2226
1040
 
2227
- .c16::-moz-placeholder {
1041
+ .c4::-moz-placeholder {
2228
1042
  color: var(--charcoal-text3);
2229
1043
  }
2230
1044
 
2231
- .c16:-ms-input-placeholder {
1045
+ .c4:-ms-input-placeholder {
2232
1046
  color: var(--charcoal-text3);
2233
1047
  }
2234
1048
 
2235
- .c16::placeholder {
1049
+ .c4::placeholder {
2236
1050
  color: var(--charcoal-text3);
2237
1051
  }
2238
1052
 
2239
- .c6 {
1053
+ .c0 {
2240
1054
  display: grid;
2241
1055
  gap: 24px;
2242
1056
  }
2243
1057
 
2244
- .c8 {
1058
+ .c1 {
2245
1059
  color: var(--charcoal-text2);
2246
1060
  font-size: 14px;
2247
1061
  line-height: 22px;
2248
1062
  display: flow-root;
2249
1063
  }
2250
1064
 
2251
- .c8::before {
1065
+ .c1::before {
2252
1066
  display: block;
2253
1067
  width: 0;
2254
1068
  height: 0;
@@ -2256,7 +1070,7 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2256
1070
  margin-top: -4px;
2257
1071
  }
2258
1072
 
2259
- .c8::after {
1073
+ .c1::after {
2260
1074
  display: block;
2261
1075
  width: 0;
2262
1076
  height: 0;
@@ -2264,30 +1078,6 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2264
1078
  margin-bottom: -4px;
2265
1079
  }
2266
1080
 
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
1081
  <div
2292
1082
  data-dark={false}
2293
1083
  >
@@ -2302,22 +1092,23 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2302
1092
  Open Modal
2303
1093
  </button>
2304
1094
  <div
2305
- className="c0"
1095
+ className="charcoal-modal-background"
1096
+ data-bottom-sheet="full"
2306
1097
  onClick={[Function]}
2307
1098
  onPointerDown={[Function]}
2308
1099
  style={
2309
1100
  Object {
2310
1101
  "backgroundColor": "rgba(0, 0, 0, 0)",
2311
1102
  "overflow": "hidden",
1103
+ "zIndex": 10,
2312
1104
  }
2313
1105
  }
2314
1106
  >
2315
1107
  <div
2316
- className="c1"
2317
- onBlur={[Function]}
1108
+ className="charcoal-modal-dialog"
1109
+ data-bottom-sheet="full"
2318
1110
  onKeyDown={[Function]}
2319
1111
  role="dialog"
2320
- size="M"
2321
1112
  style={
2322
1113
  Object {
2323
1114
  "transform": " translateY(100%)",
@@ -2326,108 +1117,101 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2326
1117
  tabIndex={-1}
2327
1118
  >
2328
1119
  <div
2329
- className="c2"
1120
+ className="charcoal-modal-header-root"
1121
+ data-bottom-sheet="full"
2330
1122
  >
2331
- <h3
2332
- className="c3 c4"
1123
+ <div
1124
+ className="charcoal-modal-header-title"
2333
1125
  >
2334
1126
  Title
2335
- </h3>
1127
+ </div>
2336
1128
  </div>
2337
1129
  <div
2338
- className="c5"
1130
+ className="charcoal-modal-body"
2339
1131
  >
2340
1132
  <div
2341
- className="c6"
1133
+ className="c0"
2342
1134
  >
2343
1135
  <div
2344
- className="c7 c8"
1136
+ className="charcoal-modal-align c1"
2345
1137
  >
2346
1138
  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
1139
  </div>
2348
1140
  <div
2349
- className="c7"
1141
+ className="charcoal-modal-align"
2350
1142
  >
2351
1143
  <div
2352
- className="c9"
1144
+ className="c2"
2353
1145
  >
2354
1146
  <div
2355
- className="c10 c11"
1147
+ className="charcoal-field-label-root"
2356
1148
  >
2357
1149
  <label
2358
- className="c12"
1150
+ className="charcoal-field-label"
2359
1151
  htmlFor="test-id"
2360
1152
  id="test-id"
2361
1153
  >
2362
1154
  Name
2363
1155
  </label>
2364
1156
  <div
2365
- className="c13 c14"
1157
+ className="charcoal-field-label-sub-label"
2366
1158
  >
2367
1159
  <span />
2368
1160
  </div>
2369
1161
  </div>
2370
1162
  <div
2371
- className="c15"
1163
+ className="c3"
2372
1164
  >
2373
1165
  <input
2374
1166
  aria-labelledby="test-id"
2375
- className="c16"
2376
- disabled={false}
1167
+ className="c4"
2377
1168
  id="test-id"
2378
1169
  onChange={[Function]}
2379
1170
  placeholder="Nagisa"
2380
- readOnly={false}
2381
- required={false}
2382
1171
  type="text"
2383
- value=""
2384
1172
  />
2385
1173
  </div>
2386
1174
  </div>
2387
1175
  </div>
2388
1176
  <div
2389
- className="c7"
1177
+ className="charcoal-modal-align"
2390
1178
  >
2391
1179
  <div
2392
- className="c9"
1180
+ className="c2"
2393
1181
  >
2394
1182
  <div
2395
- className="c10 c11"
1183
+ className="charcoal-field-label-root"
2396
1184
  >
2397
1185
  <label
2398
- className="c12"
1186
+ className="charcoal-field-label"
2399
1187
  htmlFor="test-id"
2400
1188
  id="test-id"
2401
1189
  >
2402
1190
  Country
2403
1191
  </label>
2404
1192
  <div
2405
- className="c13 c14"
1193
+ className="charcoal-field-label-sub-label"
2406
1194
  >
2407
1195
  <span />
2408
1196
  </div>
2409
1197
  </div>
2410
1198
  <div
2411
- className="c15"
1199
+ className="c3"
2412
1200
  >
2413
1201
  <input
2414
1202
  aria-labelledby="test-id"
2415
- className="c16"
2416
- disabled={false}
1203
+ className="c4"
2417
1204
  id="test-id"
2418
1205
  onChange={[Function]}
2419
1206
  placeholder="Tokyo"
2420
- readOnly={false}
2421
- required={false}
2422
1207
  type="text"
2423
- value=""
2424
1208
  />
2425
1209
  </div>
2426
1210
  </div>
2427
1211
  </div>
2428
1212
  </div>
2429
1213
  <div
2430
- className="c17"
1214
+ className="charcoal-modal-buttons"
2431
1215
  >
2432
1216
  <button
2433
1217
  className="charcoal-button"
@@ -2447,7 +1231,10 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2447
1231
  </div>
2448
1232
  </div>
2449
1233
  <button
2450
- className="c18 c19 c20"
1234
+ className="charcoal-icon-button charcoal-modal-close-button"
1235
+ data-active={false}
1236
+ data-size="S"
1237
+ data-variant="Default"
2451
1238
  onClick={[Function]}
2452
1239
  >
2453
1240
  <pixiv-icon
@@ -2461,108 +1248,16 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2461
1248
  `;
2462
1249
 
2463
1250
  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
-
2479
1251
  .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
1252
  overflow: auto;
2558
1253
  max-height: calc( 100vh - 184px - 56px );
2559
1254
  }
2560
1255
 
2561
- .c8 {
1256
+ .c1 {
2562
1257
  position: relative;
2563
1258
  }
2564
1259
 
2565
- .c8::before {
1260
+ .c1::before {
2566
1261
  content: '';
2567
1262
  pointer-events: none;
2568
1263
  border-top: 1px solid rgba(0,0,0,0.08);
@@ -2573,21 +1268,6 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2573
1268
  height: 100%;
2574
1269
  }
2575
1270
 
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
1271
  <div
2592
1272
  data-dark={false}
2593
1273
  >
@@ -2602,34 +1282,39 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2602
1282
  Open Modal
2603
1283
  </button>
2604
1284
  <div
2605
- className="c0"
1285
+ className="charcoal-modal-background"
1286
+ data-bottom-sheet={false}
2606
1287
  onClick={[Function]}
2607
1288
  onPointerDown={[Function]}
2608
- style={Object {}}
1289
+ style={
1290
+ Object {
1291
+ "zIndex": 10,
1292
+ }
1293
+ }
2609
1294
  >
2610
1295
  <div
2611
- className="c1"
2612
- onBlur={[Function]}
1296
+ className="charcoal-modal-dialog"
1297
+ data-bottom-sheet={false}
2613
1298
  onKeyDown={[Function]}
2614
1299
  role="dialog"
2615
- size="M"
2616
1300
  style={Object {}}
2617
1301
  tabIndex={-1}
2618
1302
  >
2619
1303
  <div
2620
- className="c2"
1304
+ className="charcoal-modal-header-root"
1305
+ data-bottom-sheet={false}
2621
1306
  >
2622
- <h3
2623
- className="c3 c4"
1307
+ <div
1308
+ className="charcoal-modal-header-title"
2624
1309
  >
2625
1310
  Title
2626
- </h3>
1311
+ </div>
2627
1312
  </div>
2628
1313
  <div
2629
- className="c5"
1314
+ className="charcoal-modal-body"
2630
1315
  >
2631
1316
  <div
2632
- className="c6"
1317
+ className="c0"
2633
1318
  >
2634
1319
  <div
2635
1320
  style={
@@ -2641,7 +1326,7 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2641
1326
  />
2642
1327
  </div>
2643
1328
  <div
2644
- className="c7 c8"
1329
+ className="charcoal-modal-buttons c1"
2645
1330
  >
2646
1331
  <button
2647
1332
  className="charcoal-button"
@@ -2659,116 +1344,19 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2659
1344
  `;
2660
1345
 
2661
1346
  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
-
2677
1347
  .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
1348
  display: grid;
2761
1349
  gap: 24px;
2762
1350
  }
2763
1351
 
2764
- .c8 {
1352
+ .c1 {
2765
1353
  color: var(--charcoal-text2);
2766
1354
  font-size: 14px;
2767
1355
  line-height: 22px;
2768
1356
  display: flow-root;
2769
1357
  }
2770
1358
 
2771
- .c8::before {
1359
+ .c1::before {
2772
1360
  display: block;
2773
1361
  width: 0;
2774
1362
  height: 0;
@@ -2776,7 +1364,7 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2776
1364
  margin-top: -4px;
2777
1365
  }
2778
1366
 
2779
- .c8::after {
1367
+ .c1::after {
2780
1368
  display: block;
2781
1369
  width: 0;
2782
1370
  height: 0;
@@ -2784,21 +1372,6 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2784
1372
  margin-bottom: -4px;
2785
1373
  }
2786
1374
 
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
1375
  <div
2803
1376
  data-dark={false}
2804
1377
  >
@@ -2813,43 +1386,48 @@ exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2813
1386
  Open Modal
2814
1387
  </button>
2815
1388
  <div
2816
- className="c0"
1389
+ className="charcoal-modal-background"
1390
+ data-bottom-sheet={false}
2817
1391
  onClick={[Function]}
2818
1392
  onPointerDown={[Function]}
2819
- style={Object {}}
1393
+ style={
1394
+ Object {
1395
+ "zIndex": 10,
1396
+ }
1397
+ }
2820
1398
  >
2821
1399
  <div
2822
- className="c1"
2823
- onBlur={[Function]}
1400
+ className="charcoal-modal-dialog"
1401
+ data-bottom-sheet={false}
2824
1402
  onKeyDown={[Function]}
2825
1403
  role="dialog"
2826
- size="M"
2827
1404
  style={Object {}}
2828
1405
  tabIndex={-1}
2829
1406
  >
2830
1407
  <div
2831
- className="c2"
1408
+ className="charcoal-modal-header-root"
1409
+ data-bottom-sheet={false}
2832
1410
  >
2833
- <h3
2834
- className="c3 c4"
1411
+ <div
1412
+ className="charcoal-modal-header-title"
2835
1413
  >
2836
1414
  Title
2837
- </h3>
1415
+ </div>
2838
1416
  </div>
2839
1417
  <div
2840
- className="c5"
1418
+ className="charcoal-modal-body"
2841
1419
  >
2842
1420
  <div
2843
- className="c6"
1421
+ className="c0"
2844
1422
  >
2845
1423
  <div
2846
- className="c7 c8"
1424
+ className="charcoal-modal-align c1"
2847
1425
  >
2848
1426
  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
1427
  </div>
2850
1428
  </div>
2851
1429
  <div
2852
- className="c9"
1430
+ className="charcoal-modal-buttons"
2853
1431
  >
2854
1432
  <button
2855
1433
  className="charcoal-button"