@charcoal-ui/react 5.0.0-beta.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +432 -220
- package/dist/index.css.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/layered.css +433 -221
- package/dist/layered.css.map +1 -1
- package/package.json +14 -12
- package/dist/index.cjs.js +0 -1624
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -1550
- package/dist/index.esm.js.map +0 -1
package/dist/index.css
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/* src/components/Button/index.css */
|
|
2
1
|
.charcoal-button {
|
|
3
|
-
-webkit-appearance: none;
|
|
4
|
-
-moz-appearance: none;
|
|
5
2
|
appearance: none;
|
|
6
3
|
background: transparent;
|
|
7
4
|
box-sizing: border-box;
|
|
@@ -16,14 +13,11 @@
|
|
|
16
13
|
margin: 0;
|
|
17
14
|
overflow: visible;
|
|
18
15
|
text-transform: none;
|
|
19
|
-
width: -moz-min-content;
|
|
20
16
|
width: min-content;
|
|
21
17
|
display: inline-grid;
|
|
22
18
|
align-items: center;
|
|
23
19
|
justify-content: center;
|
|
24
20
|
cursor: pointer;
|
|
25
|
-
-webkit-user-select: none;
|
|
26
|
-
-moz-user-select: none;
|
|
27
21
|
user-select: none;
|
|
28
22
|
white-space: nowrap;
|
|
29
23
|
border-radius: 999999px;
|
|
@@ -32,106 +26,135 @@
|
|
|
32
26
|
font-weight: bold;
|
|
33
27
|
color: var(--charcoal-text2);
|
|
34
28
|
background-color: var(--charcoal-surface3);
|
|
35
|
-
transition:
|
|
36
|
-
0.2s color,
|
|
37
|
-
0.2s background-color,
|
|
38
|
-
0.2s box-shadow;
|
|
29
|
+
transition: 0.2s color, 0.2s background-color, 0.2s box-shadow;
|
|
39
30
|
height: 40px;
|
|
40
31
|
}
|
|
32
|
+
|
|
41
33
|
.charcoal-button:disabled,
|
|
42
|
-
.charcoal-button[aria-disabled]:not([aria-disabled=
|
|
34
|
+
.charcoal-button[aria-disabled]:not([aria-disabled='false']) {
|
|
43
35
|
cursor: default;
|
|
44
36
|
opacity: 0.32;
|
|
45
37
|
}
|
|
38
|
+
|
|
46
39
|
.charcoal-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
47
|
-
.charcoal-button[aria-disabled=false]:focus-visible {
|
|
40
|
+
.charcoal-button[aria-disabled='false']:focus-visible {
|
|
48
41
|
outline: none;
|
|
49
42
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
50
43
|
}
|
|
44
|
+
|
|
51
45
|
.charcoal-button:not(:disabled):not([aria-disabled]):hover,
|
|
52
|
-
.charcoal-button[aria-disabled=false]:hover {
|
|
46
|
+
.charcoal-button[aria-disabled='false']:hover {
|
|
53
47
|
color: var(--charcoal-text2-hover);
|
|
54
48
|
background-color: var(--charcoal-surface3-hover);
|
|
55
49
|
}
|
|
50
|
+
|
|
56
51
|
.charcoal-button:not(:disabled):not([aria-disabled]):active,
|
|
57
|
-
.charcoal-button[aria-disabled=false]:active,
|
|
58
|
-
.charcoal-button[data-active=true] {
|
|
52
|
+
.charcoal-button[aria-disabled='false']:active,
|
|
53
|
+
.charcoal-button[data-active='true'] {
|
|
59
54
|
color: var(--charcoal-text2-press);
|
|
60
55
|
background-color: var(--charcoal-surface3-press);
|
|
61
56
|
}
|
|
62
|
-
|
|
57
|
+
|
|
58
|
+
.charcoal-button[data-variant='Primary'] {
|
|
63
59
|
color: var(--charcoal-text5);
|
|
64
60
|
background-color: var(--charcoal-brand);
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
.charcoal-button[data-variant=Primary]:hover
|
|
62
|
+
|
|
63
|
+
.charcoal-button[data-variant='Primary']:hover:not(:disabled):not(
|
|
64
|
+
[aria-disabled]
|
|
65
|
+
),
|
|
66
|
+
.charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
|
|
68
67
|
color: var(--charcoal-text5-hover);
|
|
69
68
|
background-color: var(--charcoal-brand-hover);
|
|
70
69
|
}
|
|
71
|
-
|
|
72
|
-
.charcoal-button[data-variant=Primary]:active
|
|
73
|
-
|
|
70
|
+
|
|
71
|
+
.charcoal-button[data-variant='Primary']:active:not(:disabled):not(
|
|
72
|
+
[aria-disabled]
|
|
73
|
+
),
|
|
74
|
+
.charcoal-button[data-variant='Primary']:active[aria-disabled='false'],
|
|
75
|
+
.charcoal-button[data-variant='Primary'][data-active='true'] {
|
|
74
76
|
color: var(--charcoal-text5-press);
|
|
75
77
|
background-color: var(--charcoal-brand-press);
|
|
76
78
|
}
|
|
77
|
-
|
|
79
|
+
|
|
80
|
+
.charcoal-button[data-variant='Overlay'] {
|
|
78
81
|
color: var(--charcoal-text5);
|
|
79
82
|
background-color: var(--charcoal-surface4);
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
.charcoal-button[data-variant=Overlay]:hover
|
|
84
|
+
|
|
85
|
+
.charcoal-button[data-variant='Overlay']:hover:not(:disabled):not(
|
|
86
|
+
[aria-disabled]
|
|
87
|
+
),
|
|
88
|
+
.charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
|
|
83
89
|
color: var(--charcoal-text5-hover);
|
|
84
90
|
background-color: var(--charcoal-surface4-hover);
|
|
85
91
|
}
|
|
86
|
-
|
|
87
|
-
.charcoal-button[data-variant=Overlay]:active
|
|
88
|
-
|
|
92
|
+
|
|
93
|
+
.charcoal-button[data-variant='Overlay']:active:not(:disabled):not(
|
|
94
|
+
[aria-disabled]
|
|
95
|
+
),
|
|
96
|
+
.charcoal-button[data-variant='Overlay']:active[aria-disabled='false'],
|
|
97
|
+
.charcoal-button[data-variant='Overlay'][data-active='true'] {
|
|
89
98
|
color: var(--charcoal-text5-press);
|
|
90
99
|
background-color: var(--charcoal-surface4-press);
|
|
91
100
|
}
|
|
92
|
-
|
|
101
|
+
|
|
102
|
+
.charcoal-button[data-variant='Navigation'] {
|
|
93
103
|
color: var(--charcoal-text5);
|
|
94
104
|
background-color: var(--charcoal-surface6);
|
|
95
105
|
}
|
|
96
|
-
|
|
97
|
-
.charcoal-button[data-variant=Navigation]:hover
|
|
106
|
+
|
|
107
|
+
.charcoal-button[data-variant='Navigation']:hover:not(:disabled):not(
|
|
108
|
+
[aria-disabled]
|
|
109
|
+
),
|
|
110
|
+
.charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
|
|
98
111
|
color: var(--charcoal-text5-hover);
|
|
99
112
|
background-color: var(--charcoal-surface6-hover);
|
|
100
113
|
}
|
|
101
|
-
|
|
102
|
-
.charcoal-button[data-variant=Navigation]:active
|
|
103
|
-
|
|
114
|
+
|
|
115
|
+
.charcoal-button[data-variant='Navigation']:active:not(:disabled):not(
|
|
116
|
+
[aria-disabled]
|
|
117
|
+
),
|
|
118
|
+
.charcoal-button[data-variant='Navigation']:active[aria-disabled='false'],
|
|
119
|
+
.charcoal-button[data-variant='Navigation'][data-active='true'] {
|
|
104
120
|
color: var(--charcoal-text5-press);
|
|
105
121
|
background-color: var(--charcoal-surface6-press);
|
|
106
122
|
}
|
|
107
|
-
|
|
123
|
+
|
|
124
|
+
.charcoal-button[data-variant='Danger'] {
|
|
108
125
|
color: var(--charcoal-text5);
|
|
109
126
|
background-color: var(--charcoal-assertive);
|
|
110
127
|
}
|
|
111
|
-
.charcoal-button[data-variant=Danger]:hover:not(:disabled):not(
|
|
112
|
-
|
|
128
|
+
.charcoal-button[data-variant='Danger']:hover:not(:disabled):not(
|
|
129
|
+
[aria-disabled]
|
|
130
|
+
),
|
|
131
|
+
.charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
|
|
113
132
|
color: var(--charcoal-text5-hover);
|
|
114
133
|
background-color: var(--charcoal-assertive-hover);
|
|
115
134
|
}
|
|
116
|
-
|
|
117
|
-
.charcoal-button[data-variant=Danger]:active
|
|
118
|
-
|
|
135
|
+
|
|
136
|
+
.charcoal-button[data-variant='Danger']:active:not(:disabled):not(
|
|
137
|
+
[aria-disabled]
|
|
138
|
+
),
|
|
139
|
+
.charcoal-button[data-variant='Danger']:active[aria-disabled='false'],
|
|
140
|
+
.charcoal-button[data-variant='Danger'][data-active='true'] {
|
|
119
141
|
color: var(--charcoal-text5-press);
|
|
120
142
|
background-color: var(--charcoal-assertive-press);
|
|
121
143
|
}
|
|
122
|
-
|
|
144
|
+
|
|
145
|
+
.charcoal-button[data-size='S'] {
|
|
123
146
|
padding: 0 16px;
|
|
124
147
|
height: 32px;
|
|
125
148
|
}
|
|
126
|
-
|
|
149
|
+
|
|
150
|
+
.charcoal-button[data-full-width='true'] {
|
|
127
151
|
width: 100%;
|
|
128
152
|
}
|
|
129
153
|
|
|
130
|
-
/* src/components/Clickable/index.css */
|
|
131
154
|
.charcoal-clickable {
|
|
132
155
|
cursor: pointer;
|
|
133
|
-
|
|
134
|
-
|
|
156
|
+
|
|
157
|
+
/* Reset button appearance */
|
|
135
158
|
appearance: none;
|
|
136
159
|
background: transparent;
|
|
137
160
|
padding: 0;
|
|
@@ -142,28 +165,36 @@
|
|
|
142
165
|
letter-spacing: inherit;
|
|
143
166
|
word-spacing: inherit;
|
|
144
167
|
text-decoration: none;
|
|
168
|
+
|
|
169
|
+
/* Change the font styles in all browsers. */
|
|
145
170
|
font: inherit;
|
|
171
|
+
|
|
172
|
+
/* Remove the margin in Firefox and Safari. */
|
|
146
173
|
margin: 0;
|
|
174
|
+
|
|
175
|
+
/* Show the overflow in Edge. */
|
|
147
176
|
overflow: visible;
|
|
177
|
+
|
|
178
|
+
/* Remove the inheritance of text transform in Firefox. */
|
|
148
179
|
text-transform: none;
|
|
149
180
|
}
|
|
181
|
+
|
|
150
182
|
.charcoal-clickable:disabled,
|
|
151
|
-
.charcoal-clickable[aria-disabled]:not([aria-disabled=
|
|
183
|
+
.charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
|
|
152
184
|
cursor: default;
|
|
153
185
|
}
|
|
186
|
+
|
|
154
187
|
.charcoal-clickable:focus {
|
|
155
188
|
outline: none;
|
|
156
189
|
}
|
|
190
|
+
|
|
157
191
|
.charcoal-clickable::-moz-focus-inner {
|
|
158
192
|
border-style: none;
|
|
159
193
|
padding: 0;
|
|
160
194
|
}
|
|
161
195
|
|
|
162
|
-
/* src/components/IconButton/index.css */
|
|
163
196
|
.charcoal-icon-button {
|
|
164
197
|
cursor: pointer;
|
|
165
|
-
-webkit-appearance: none;
|
|
166
|
-
-moz-appearance: none;
|
|
167
198
|
appearance: none;
|
|
168
199
|
background: transparent;
|
|
169
200
|
padding: 0;
|
|
@@ -178,8 +209,7 @@
|
|
|
178
209
|
margin: 0;
|
|
179
210
|
overflow: visible;
|
|
180
211
|
text-transform: none;
|
|
181
|
-
|
|
182
|
-
-moz-user-select: none;
|
|
212
|
+
|
|
183
213
|
user-select: none;
|
|
184
214
|
display: flex;
|
|
185
215
|
align-items: center;
|
|
@@ -187,8 +217,9 @@
|
|
|
187
217
|
border-radius: 999999px;
|
|
188
218
|
transition: 0.2s background-color, 0.2s box-shadow;
|
|
189
219
|
}
|
|
220
|
+
|
|
190
221
|
.charcoal-icon-button:disabled,
|
|
191
|
-
.charcoal-icon-button[aria-disabled]:not([aria-disabled=
|
|
222
|
+
.charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
|
|
192
223
|
cursor: default;
|
|
193
224
|
opacity: 0.32;
|
|
194
225
|
}
|
|
@@ -199,71 +230,88 @@
|
|
|
199
230
|
border-style: none;
|
|
200
231
|
padding: 0;
|
|
201
232
|
}
|
|
202
|
-
|
|
233
|
+
|
|
234
|
+
.charcoal-icon-button[data-size='XS'] {
|
|
203
235
|
width: 20px;
|
|
204
236
|
height: 20px;
|
|
205
237
|
}
|
|
206
|
-
.charcoal-icon-button[data-size=S] {
|
|
238
|
+
.charcoal-icon-button[data-size='S'] {
|
|
207
239
|
width: 32px;
|
|
208
240
|
height: 32px;
|
|
209
241
|
}
|
|
210
|
-
.charcoal-icon-button[data-size=M] {
|
|
242
|
+
.charcoal-icon-button[data-size='M'] {
|
|
211
243
|
width: 40px;
|
|
212
244
|
height: 40px;
|
|
213
245
|
}
|
|
214
|
-
|
|
246
|
+
|
|
247
|
+
.charcoal-icon-button[data-variant='Default'] {
|
|
215
248
|
color: var(--charcoal-text3);
|
|
216
249
|
background-color: var(--charcoal-transparent);
|
|
217
250
|
}
|
|
218
|
-
.charcoal-icon-button[data-variant=Default][data-active=true]:not(
|
|
219
|
-
|
|
251
|
+
.charcoal-icon-button[data-variant='Default'][data-active='true']:not(
|
|
252
|
+
:disabled
|
|
253
|
+
):not([aria-disabled]),
|
|
254
|
+
.charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
|
|
220
255
|
color: var(--charcoal-text3-press);
|
|
221
256
|
background-color: var(--charcoal-transparent-press);
|
|
222
257
|
}
|
|
223
|
-
.charcoal-icon-button[data-variant=Default][data-active=false]:not(
|
|
224
|
-
|
|
258
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(
|
|
259
|
+
:disabled
|
|
260
|
+
):not([aria-disabled]):hover,
|
|
261
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
|
|
225
262
|
color: var(--charcoal-text3-hover);
|
|
226
263
|
background-color: var(--charcoal-transparent-hover);
|
|
227
264
|
}
|
|
228
|
-
.charcoal-icon-button[data-variant=Default][data-active=false]:not(
|
|
229
|
-
|
|
265
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(
|
|
266
|
+
:disabled
|
|
267
|
+
):not([aria-disabled]):active,
|
|
268
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
|
|
230
269
|
color: var(--charcoal-text3-press);
|
|
231
270
|
background-color: var(--charcoal-transparent-press);
|
|
232
271
|
}
|
|
233
|
-
|
|
272
|
+
|
|
273
|
+
.charcoal-icon-button[data-variant='Overlay'] {
|
|
234
274
|
color: var(--charcoal-text5);
|
|
235
275
|
background-color: var(--charcoal-surface4);
|
|
236
276
|
}
|
|
237
|
-
.charcoal-icon-button[data-variant=Overlay][data-active=true]:not(
|
|
238
|
-
|
|
277
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(
|
|
278
|
+
:disabled
|
|
279
|
+
):not([aria-disabled]),
|
|
280
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
|
|
239
281
|
color: var(--charcoal-text5-press);
|
|
240
282
|
background-color: var(--charcoal-surface4-press);
|
|
241
283
|
}
|
|
242
|
-
.charcoal-icon-button[data-variant=Overlay][data-active=false]:not(
|
|
243
|
-
|
|
284
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
|
|
285
|
+
:disabled
|
|
286
|
+
):not([aria-disabled]):hover,
|
|
287
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
|
|
244
288
|
color: var(--charcoal-text5-hover);
|
|
245
289
|
background-color: var(--charcoal-surface4-hover);
|
|
246
290
|
}
|
|
247
|
-
.charcoal-icon-button[data-variant=Overlay][data-active=false]:not(
|
|
248
|
-
|
|
291
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
|
|
292
|
+
:disabled
|
|
293
|
+
):not([aria-disabled]):active,
|
|
294
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
|
|
249
295
|
color: var(--charcoal-text5-press);
|
|
250
296
|
background-color: var(--charcoal-surface4-press);
|
|
251
297
|
}
|
|
298
|
+
|
|
252
299
|
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus,
|
|
253
|
-
.charcoal-icon-button[aria-disabled=false]:focus {
|
|
300
|
+
.charcoal-icon-button[aria-disabled='false']:focus {
|
|
254
301
|
outline: none;
|
|
255
302
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
256
303
|
}
|
|
257
304
|
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
258
|
-
.charcoal-icon-button[aria-disabled=false]:focus-visible {
|
|
305
|
+
.charcoal-icon-button[aria-disabled='false']:focus-visible {
|
|
259
306
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
260
307
|
}
|
|
261
|
-
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(
|
|
262
|
-
|
|
308
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(
|
|
309
|
+
:focus-visible
|
|
310
|
+
),
|
|
311
|
+
.charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
263
312
|
box-shadow: none;
|
|
264
313
|
}
|
|
265
314
|
|
|
266
|
-
/* src/components/Radio/index.css */
|
|
267
315
|
.charcoal-radio__label {
|
|
268
316
|
display: grid;
|
|
269
317
|
grid-template-columns: auto 1fr;
|
|
@@ -271,25 +319,26 @@
|
|
|
271
319
|
align-items: center;
|
|
272
320
|
cursor: pointer;
|
|
273
321
|
}
|
|
274
|
-
|
|
322
|
+
|
|
323
|
+
.charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
275
324
|
opacity: 0.32;
|
|
276
325
|
cursor: default;
|
|
277
326
|
}
|
|
327
|
+
|
|
278
328
|
.charcoal-radio__label_div {
|
|
279
329
|
font-size: 14px;
|
|
280
330
|
line-height: 22px;
|
|
281
331
|
color: var(--charcoal-text2);
|
|
282
332
|
}
|
|
283
333
|
|
|
284
|
-
/* src/components/Radio/RadioInput/index.css */
|
|
285
334
|
.charcoal-radio-input {
|
|
286
|
-
-webkit-appearance: none;
|
|
287
|
-
-moz-appearance: none;
|
|
288
335
|
appearance: none;
|
|
289
336
|
display: block;
|
|
290
337
|
box-sizing: border-box;
|
|
338
|
+
|
|
291
339
|
margin: 0;
|
|
292
340
|
padding: 6px;
|
|
341
|
+
|
|
293
342
|
width: 20px;
|
|
294
343
|
height: 20px;
|
|
295
344
|
cursor: pointer;
|
|
@@ -297,11 +346,13 @@
|
|
|
297
346
|
background-color: var(--charcoal-surface1);
|
|
298
347
|
transition: 0.2s background-color, 0.2s box-shadow;
|
|
299
348
|
}
|
|
349
|
+
|
|
300
350
|
.charcoal-radio-input:checked {
|
|
301
351
|
background-color: var(--charcoal-brand);
|
|
302
352
|
}
|
|
353
|
+
|
|
303
354
|
.charcoal-radio-input:checked::after {
|
|
304
|
-
content:
|
|
355
|
+
content: '';
|
|
305
356
|
display: block;
|
|
306
357
|
width: 8px;
|
|
307
358
|
height: 8px;
|
|
@@ -310,55 +361,65 @@
|
|
|
310
361
|
border-radius: 999999px;
|
|
311
362
|
transition: 0.2s background-color, 0.2s box-shadow;
|
|
312
363
|
}
|
|
364
|
+
|
|
313
365
|
.charcoal-radio-input:not(:checked) {
|
|
314
366
|
border-width: 2px;
|
|
315
367
|
border-style: solid;
|
|
316
368
|
border-color: var(--charcoal-text3);
|
|
317
369
|
}
|
|
370
|
+
|
|
318
371
|
.charcoal-radio-input:disabled {
|
|
319
372
|
cursor: default;
|
|
320
373
|
}
|
|
374
|
+
|
|
321
375
|
.charcoal-radio-input:not(:disabled):hover {
|
|
322
376
|
background-color: var(--charcoal-surface1-hover);
|
|
323
377
|
}
|
|
378
|
+
|
|
324
379
|
.charcoal-radio-input:not(:disabled):active {
|
|
325
380
|
background-color: var(--charcoal-surface1-press);
|
|
326
381
|
}
|
|
382
|
+
|
|
327
383
|
.charcoal-radio-input:not(:disabled):focus {
|
|
328
384
|
outline: none;
|
|
329
385
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
330
386
|
}
|
|
387
|
+
|
|
331
388
|
.charcoal-radio-input:not(:disabled):focus-visible {
|
|
332
389
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
333
390
|
}
|
|
391
|
+
|
|
334
392
|
.charcoal-radio-input:not(:disabled):focus:not(:focus-visible) {
|
|
335
393
|
box-shadow: none;
|
|
336
394
|
}
|
|
337
|
-
|
|
338
|
-
.charcoal-radio-input:not(:disabled)[aria-invalid=true]
|
|
395
|
+
|
|
396
|
+
.charcoal-radio-input:not(:disabled)[aria-invalid='true'],
|
|
397
|
+
.charcoal-radio-input:not(:disabled)[aria-invalid='true']:focus {
|
|
339
398
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
340
399
|
}
|
|
400
|
+
|
|
341
401
|
.charcoal-radio-input:checked:not(:disabled):hover {
|
|
342
402
|
background-color: var(--charcoal-brand-hover);
|
|
343
403
|
}
|
|
404
|
+
|
|
344
405
|
.charcoal-radio-input:checked:not(:disabled):hover::after {
|
|
345
406
|
background-color: var(--charcoal-text5-hover);
|
|
346
407
|
}
|
|
408
|
+
|
|
347
409
|
.charcoal-radio-input:checked:not(:disabled):active {
|
|
348
410
|
background-color: var(--charcoal-brand-press);
|
|
349
411
|
}
|
|
412
|
+
|
|
350
413
|
.charcoal-radio-input:checked:not(:disabled):active::after {
|
|
351
414
|
background-color: var(--charcoal-text5-press);
|
|
352
415
|
}
|
|
353
416
|
|
|
354
|
-
/* src/components/Radio/RadioGroup/index.css */
|
|
355
417
|
.charcoal-radio-group {
|
|
356
418
|
display: grid;
|
|
357
419
|
grid-template-columns: 1fr;
|
|
358
420
|
grid-gap: 8px;
|
|
359
421
|
}
|
|
360
422
|
|
|
361
|
-
/* src/components/MultiSelect/index.css */
|
|
362
423
|
.charcoal-multi-select {
|
|
363
424
|
display: grid;
|
|
364
425
|
grid-template-columns: auto 1fr;
|
|
@@ -367,11 +428,13 @@
|
|
|
367
428
|
cursor: pointer;
|
|
368
429
|
gap: 4px;
|
|
369
430
|
}
|
|
431
|
+
|
|
370
432
|
.charcoal-multi-select:disabled,
|
|
371
|
-
.charcoal-multi-select[aria-disabled]:not([aria-disabled=
|
|
433
|
+
.charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
|
|
372
434
|
opacity: 0.32;
|
|
373
435
|
cursor: default;
|
|
374
436
|
}
|
|
437
|
+
|
|
375
438
|
.charcoal-multi-select-label {
|
|
376
439
|
display: flow-root;
|
|
377
440
|
align-items: center;
|
|
@@ -379,23 +442,24 @@
|
|
|
379
442
|
line-height: 22px;
|
|
380
443
|
color: var(--charcoal-text2);
|
|
381
444
|
}
|
|
445
|
+
|
|
382
446
|
.charcoal-multi-select-label::before {
|
|
383
447
|
display: block;
|
|
384
448
|
width: 0;
|
|
385
449
|
height: 0;
|
|
386
|
-
content:
|
|
450
|
+
content: '';
|
|
387
451
|
margin-top: -4px;
|
|
388
452
|
}
|
|
453
|
+
|
|
389
454
|
.charcoal-multi-select-label::after {
|
|
390
455
|
display: block;
|
|
391
456
|
width: 0;
|
|
392
457
|
height: 0;
|
|
393
|
-
content:
|
|
458
|
+
content: '';
|
|
394
459
|
margin-bottom: -4px;
|
|
395
460
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
-moz-appearance: none;
|
|
461
|
+
|
|
462
|
+
.charcoal-multi-select-input[type='checkbox'] {
|
|
399
463
|
appearance: none;
|
|
400
464
|
display: block;
|
|
401
465
|
width: 20px;
|
|
@@ -405,44 +469,66 @@
|
|
|
405
469
|
border-radius: 999999px;
|
|
406
470
|
transition: 0.2s background-color, 0.2s box-shadow;
|
|
407
471
|
}
|
|
408
|
-
|
|
472
|
+
|
|
473
|
+
.charcoal-multi-select-input[type='checkbox']:checked {
|
|
409
474
|
background-color: var(--charcoal-brand);
|
|
410
475
|
}
|
|
411
|
-
|
|
476
|
+
|
|
477
|
+
.charcoal-multi-select-input[type='checkbox']:focus {
|
|
412
478
|
outline: none;
|
|
413
479
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
414
480
|
}
|
|
415
|
-
|
|
481
|
+
|
|
482
|
+
.charcoal-multi-select-input[type='checkbox']:focus-visible {
|
|
416
483
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
417
484
|
}
|
|
418
|
-
|
|
485
|
+
|
|
486
|
+
.charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
|
|
419
487
|
box-shadow: none;
|
|
420
488
|
}
|
|
421
|
-
|
|
422
|
-
.charcoal-multi-select-input[type=checkbox]:hover
|
|
489
|
+
|
|
490
|
+
.charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not(
|
|
491
|
+
[aria-disabled]
|
|
492
|
+
),
|
|
493
|
+
.charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
|
|
423
494
|
background-color: var(--charcoal-text3-hover);
|
|
424
495
|
}
|
|
425
|
-
|
|
426
|
-
.charcoal-multi-select-input[type=checkbox]:active
|
|
496
|
+
|
|
497
|
+
.charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not(
|
|
498
|
+
[aria-disabled]
|
|
499
|
+
),
|
|
500
|
+
.charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
|
|
427
501
|
background-color: var(--charcoal-text3-press);
|
|
428
502
|
}
|
|
429
|
-
|
|
430
|
-
.charcoal-multi-select-input[type=checkbox]:checked:hover
|
|
503
|
+
|
|
504
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not(
|
|
505
|
+
[aria-disabled]
|
|
506
|
+
),
|
|
507
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
|
|
431
508
|
background-color: var(--charcoal-brand-hover);
|
|
432
509
|
}
|
|
433
|
-
|
|
434
|
-
.charcoal-multi-select-input[type=checkbox]:checked:active
|
|
510
|
+
|
|
511
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not(
|
|
512
|
+
[aria-disabled]
|
|
513
|
+
),
|
|
514
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
|
|
435
515
|
background-color: var(--charcoal-brand-press);
|
|
436
516
|
}
|
|
437
|
-
|
|
517
|
+
|
|
518
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false']:not(
|
|
519
|
+
:disabled
|
|
520
|
+
):not([aria-disabled]) {
|
|
438
521
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
439
522
|
}
|
|
440
|
-
|
|
523
|
+
|
|
524
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
441
525
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
442
526
|
}
|
|
443
|
-
|
|
527
|
+
|
|
528
|
+
.charcoal-multi-select-input[data-overlay='true'] {
|
|
444
529
|
background-color: var(--charcoal-surface4);
|
|
445
530
|
}
|
|
531
|
+
|
|
446
532
|
.charcoal-multi-select-overlay {
|
|
447
533
|
position: absolute;
|
|
448
534
|
top: -2px;
|
|
@@ -457,19 +543,23 @@
|
|
|
457
543
|
color: var(--charcoal-text5);
|
|
458
544
|
transition: 0.2s box-shadow;
|
|
459
545
|
}
|
|
460
|
-
|
|
546
|
+
|
|
547
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(
|
|
548
|
+
:disabled
|
|
549
|
+
):not([aria-disabled]) {
|
|
461
550
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
462
551
|
}
|
|
463
|
-
|
|
552
|
+
|
|
553
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
464
554
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
465
555
|
}
|
|
466
|
-
|
|
556
|
+
|
|
557
|
+
.charcoal-multi-select-overlay[data-overlay='true'] {
|
|
467
558
|
border-color: var(--charcoal-text5);
|
|
468
559
|
border-width: 2px;
|
|
469
560
|
border-style: solid;
|
|
470
561
|
}
|
|
471
562
|
|
|
472
|
-
/* src/components/Switch/index.css */
|
|
473
563
|
.charcoal-switch__label {
|
|
474
564
|
display: inline-grid;
|
|
475
565
|
grid-template-columns: auto 1fr;
|
|
@@ -478,45 +568,49 @@
|
|
|
478
568
|
outline: 0;
|
|
479
569
|
gap: 4px;
|
|
480
570
|
}
|
|
481
|
-
|
|
571
|
+
|
|
572
|
+
.charcoal-switch__label[aria-disabled='true'] {
|
|
482
573
|
opacity: 0.32;
|
|
483
574
|
cursor: default;
|
|
484
575
|
}
|
|
485
|
-
|
|
576
|
+
|
|
577
|
+
.charcoal-switch__label[aria-disabled='true'] > input {
|
|
486
578
|
opacity: 1;
|
|
487
579
|
}
|
|
580
|
+
|
|
488
581
|
.charcoal-switch__label_div {
|
|
489
582
|
font-size: 14px;
|
|
490
583
|
line-height: 22px;
|
|
491
584
|
color: var(--charcoal-text2);
|
|
492
585
|
}
|
|
493
586
|
|
|
494
|
-
/* src/components/Switch/SwitchInput/index.css */
|
|
495
587
|
.charcoal-switch-input {
|
|
496
588
|
cursor: pointer;
|
|
497
|
-
-webkit-appearance: none;
|
|
498
|
-
-moz-appearance: none;
|
|
499
589
|
appearance: none;
|
|
500
590
|
display: inline-flex;
|
|
501
591
|
position: relative;
|
|
502
592
|
box-sizing: border-box;
|
|
503
593
|
width: 28px;
|
|
504
594
|
border: 2px solid transparent;
|
|
595
|
+
|
|
505
596
|
transition-property: background-color, box-shadow;
|
|
506
597
|
transition-duration: 0.2s;
|
|
598
|
+
|
|
507
599
|
outline: none;
|
|
508
600
|
border-radius: 16px;
|
|
509
601
|
height: 16px;
|
|
510
602
|
margin: 0;
|
|
511
603
|
background-color: var(--charcoal-text4);
|
|
512
604
|
}
|
|
605
|
+
|
|
513
606
|
.charcoal-switch-input:disabled,
|
|
514
607
|
.charcoal-switch-input[readonly] {
|
|
515
608
|
opacity: 0.32;
|
|
516
609
|
cursor: default;
|
|
517
610
|
}
|
|
611
|
+
|
|
518
612
|
.charcoal-switch-input::after {
|
|
519
|
-
content:
|
|
613
|
+
content: '';
|
|
520
614
|
position: absolute;
|
|
521
615
|
display: block;
|
|
522
616
|
top: 0;
|
|
@@ -528,19 +622,24 @@
|
|
|
528
622
|
border-radius: 1024px;
|
|
529
623
|
background-color: var(--charcoal-text5);
|
|
530
624
|
}
|
|
625
|
+
|
|
531
626
|
.charcoal-switch-input:checked::after {
|
|
532
627
|
transform: translateX(12px);
|
|
533
628
|
transition: transform 0.2s;
|
|
534
629
|
}
|
|
630
|
+
|
|
535
631
|
.charcoal-switch-input:checked {
|
|
536
632
|
background-color: var(--charcoal-brand);
|
|
537
633
|
}
|
|
634
|
+
|
|
538
635
|
.charcoal-switch-input:not(:disabled):hover {
|
|
539
636
|
background-color: var(--charcoal-text4-hover);
|
|
540
637
|
}
|
|
638
|
+
|
|
541
639
|
.charcoal-switch-input:not(:disabled):active {
|
|
542
640
|
background-color: var(--charcoal-text4-press);
|
|
543
641
|
}
|
|
642
|
+
|
|
544
643
|
.charcoal-switch-input:not(:disabled):focus {
|
|
545
644
|
outline: none;
|
|
546
645
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
@@ -551,28 +650,33 @@
|
|
|
551
650
|
.charcoal-switch-input:not(:disabled):focus:not(:focus-visible) {
|
|
552
651
|
box-shadow: none;
|
|
553
652
|
}
|
|
653
|
+
|
|
554
654
|
.charcoal-switch-input:not(:disabled)::after:hover {
|
|
555
655
|
background-color: var(--charcoal-text5-hover);
|
|
556
656
|
}
|
|
657
|
+
|
|
557
658
|
.charcoal-switch-input:not(:disabled)::after:active {
|
|
558
659
|
background-color: var(--charcoal-text5-press);
|
|
559
660
|
}
|
|
661
|
+
|
|
560
662
|
.charcoal-switch-input:not(:disabled):checked:hover {
|
|
561
663
|
background-color: var(--charcoal-brand-hover);
|
|
562
664
|
}
|
|
665
|
+
|
|
563
666
|
.charcoal-switch-input:not(:disabled):checked:active {
|
|
564
667
|
background-color: var(--charcoal-brand-press);
|
|
565
668
|
}
|
|
566
669
|
|
|
567
|
-
/* src/components/TextField/index.css */
|
|
568
670
|
.charcoal-text-field-root {
|
|
569
671
|
display: grid;
|
|
570
672
|
grid-template-columns: 1fr;
|
|
571
673
|
grid-gap: 4px;
|
|
572
674
|
}
|
|
573
|
-
|
|
675
|
+
|
|
676
|
+
.charcoal-text-field-root[aria-disabled='true'] {
|
|
574
677
|
opacity: 0.32;
|
|
575
678
|
}
|
|
679
|
+
|
|
576
680
|
.charcoal-text-field-container {
|
|
577
681
|
display: flex;
|
|
578
682
|
height: 40px;
|
|
@@ -584,35 +688,46 @@
|
|
|
584
688
|
line-height: 22px;
|
|
585
689
|
font-size: 14px;
|
|
586
690
|
}
|
|
587
|
-
|
|
691
|
+
|
|
692
|
+
.charcoal-text-field-container[data-invalid='true'] {
|
|
588
693
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
589
694
|
}
|
|
590
|
-
|
|
695
|
+
|
|
696
|
+
.charcoal-text-field-container:not([aria-disabled='true']):hover {
|
|
591
697
|
background-color: var(--charcoal-surface3-hover);
|
|
592
698
|
}
|
|
593
|
-
|
|
699
|
+
|
|
700
|
+
.charcoal-text-field-container:not([aria-disabled='true']):focus-within {
|
|
594
701
|
outline: none;
|
|
595
702
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
596
703
|
}
|
|
597
|
-
|
|
704
|
+
|
|
705
|
+
.charcoal-text-field-container:not(
|
|
706
|
+
[aria-disabled='true']
|
|
707
|
+
)[data-invalid='true']:focus-within {
|
|
598
708
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
599
709
|
}
|
|
710
|
+
|
|
600
711
|
.charcoal-text-field-prefix {
|
|
601
712
|
display: flex;
|
|
602
713
|
align-items: center;
|
|
603
714
|
margin-right: 4px;
|
|
604
715
|
}
|
|
716
|
+
|
|
605
717
|
.charcoal-text-field-suffix {
|
|
606
718
|
display: flex;
|
|
607
719
|
align-items: center;
|
|
608
720
|
gap: 8px;
|
|
609
721
|
margin-left: 4px;
|
|
610
722
|
}
|
|
723
|
+
|
|
611
724
|
.charcoal-text-field-input {
|
|
612
725
|
border: none;
|
|
613
726
|
box-sizing: border-box;
|
|
614
727
|
outline: none;
|
|
615
728
|
font-family: inherit;
|
|
729
|
+
|
|
730
|
+
/* Prevent zooming for iOS Safari */
|
|
616
731
|
transform-origin: top left;
|
|
617
732
|
transform: scale(0.875);
|
|
618
733
|
width: calc(100% / 0.875);
|
|
@@ -622,25 +737,24 @@
|
|
|
622
737
|
padding-left: 0;
|
|
623
738
|
padding-right: 0;
|
|
624
739
|
border-radius: calc(4px / 0.875);
|
|
625
|
-
|
|
626
|
-
-
|
|
740
|
+
|
|
741
|
+
/* Display box-shadow for iOS Safari */
|
|
627
742
|
appearance: none;
|
|
628
743
|
background: transparent;
|
|
744
|
+
|
|
629
745
|
color: var(--charcoal-text2);
|
|
630
746
|
}
|
|
631
|
-
|
|
632
|
-
color: var(--charcoal-text3);
|
|
633
|
-
}
|
|
747
|
+
|
|
634
748
|
.charcoal-text-field-input::placeholder {
|
|
635
749
|
color: var(--charcoal-text3);
|
|
636
750
|
}
|
|
751
|
+
|
|
637
752
|
.charcoal-text-field-line-counter {
|
|
638
753
|
line-height: 22px;
|
|
639
754
|
font-size: 14px;
|
|
640
755
|
color: var(--charcoal-text3);
|
|
641
756
|
}
|
|
642
757
|
|
|
643
|
-
/* src/components/FieldLabel/index.css */
|
|
644
758
|
.charcoal-field-label {
|
|
645
759
|
font-size: 14px;
|
|
646
760
|
line-height: 22px;
|
|
@@ -648,12 +762,14 @@
|
|
|
648
762
|
display: flow-root;
|
|
649
763
|
color: var(--charcoal-text1);
|
|
650
764
|
}
|
|
765
|
+
|
|
651
766
|
.charcoal-field-label-required-text {
|
|
652
767
|
font-size: 14px;
|
|
653
768
|
line-height: 22px;
|
|
654
769
|
display: flow-root;
|
|
655
770
|
color: var(--charcoal-text2);
|
|
656
771
|
}
|
|
772
|
+
|
|
657
773
|
.charcoal-field-label-sub-label {
|
|
658
774
|
font-size: 14px;
|
|
659
775
|
line-height: 22px;
|
|
@@ -661,59 +777,69 @@
|
|
|
661
777
|
color: var(--charcoal-text3);
|
|
662
778
|
transition: 0.2s color, 0.2s box-shadow;
|
|
663
779
|
}
|
|
780
|
+
|
|
664
781
|
.charcoal-field-label-root {
|
|
665
782
|
display: inline-flex;
|
|
666
783
|
align-items: center;
|
|
667
784
|
}
|
|
785
|
+
|
|
668
786
|
.charcoal-field-label-root > .charcoal-field-label-required-text {
|
|
669
787
|
margin-left: 4px;
|
|
670
788
|
}
|
|
789
|
+
|
|
671
790
|
.charcoal-field-label-root > .charcoal-field-label-sub-label {
|
|
672
791
|
margin-left: auto;
|
|
673
792
|
}
|
|
674
793
|
|
|
675
|
-
/* src/components/TextField/AssistiveText/index.css */
|
|
676
794
|
.charcoal-text-field-assistive-text {
|
|
677
795
|
font-size: 14px;
|
|
678
796
|
line-height: 22px;
|
|
679
797
|
margin: 0;
|
|
680
798
|
color: var(--charcoal-text2);
|
|
681
799
|
}
|
|
682
|
-
|
|
800
|
+
|
|
801
|
+
.charcoal-text-field-assistive-text[data-invalid='true'] {
|
|
683
802
|
color: var(--charcoal-assertive);
|
|
684
803
|
}
|
|
685
804
|
|
|
686
|
-
/* src/components/TextArea/index.css */
|
|
687
805
|
.charcoal-text-area-root {
|
|
688
806
|
display: grid;
|
|
689
807
|
grid-template-columns: 1fr;
|
|
690
808
|
grid-gap: 4px;
|
|
691
809
|
}
|
|
692
|
-
|
|
810
|
+
|
|
811
|
+
.charcoal-text-area-root[aria-disabled='true'] {
|
|
693
812
|
opacity: 0.32;
|
|
694
813
|
}
|
|
814
|
+
|
|
695
815
|
.charcoal-text-area-container {
|
|
696
816
|
position: relative;
|
|
697
817
|
overflow: hidden;
|
|
818
|
+
|
|
698
819
|
color: var(--charcoal-text2);
|
|
699
820
|
background-color: var(--charcoal-surface3);
|
|
700
821
|
border-radius: 4px;
|
|
701
822
|
transition: 0.2s background-color, 0.2s box-shadow;
|
|
702
823
|
height: calc(22px * var(--charcoal-text-area-rows) + 18px);
|
|
703
824
|
}
|
|
704
|
-
|
|
825
|
+
|
|
826
|
+
.charcoal-text-area-container[aria-invalid='true'] {
|
|
705
827
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
706
828
|
}
|
|
829
|
+
|
|
707
830
|
.charcoal-text-area-container:focus-within {
|
|
708
831
|
outline: none;
|
|
709
832
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
710
833
|
}
|
|
711
|
-
|
|
834
|
+
|
|
835
|
+
.charcoal-text-area-container:not([aria-disabled='true']):hover {
|
|
712
836
|
background-color: var(--charcoal-surface3-hover);
|
|
713
837
|
}
|
|
714
|
-
|
|
838
|
+
|
|
839
|
+
.charcoal-text-area-container[aria-invalid='true']:focus-within {
|
|
715
840
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
716
841
|
}
|
|
842
|
+
|
|
717
843
|
.charcoal-text-area-textarea {
|
|
718
844
|
border: none;
|
|
719
845
|
outline: none;
|
|
@@ -721,6 +847,8 @@
|
|
|
721
847
|
font-family: inherit;
|
|
722
848
|
color: inherit;
|
|
723
849
|
box-sizing: border-box;
|
|
850
|
+
|
|
851
|
+
/* Prevent zooming for iOS Safari */
|
|
724
852
|
transform-origin: top left;
|
|
725
853
|
transform: scale(0.875);
|
|
726
854
|
width: calc(100% / 0.875);
|
|
@@ -728,70 +856,76 @@
|
|
|
728
856
|
line-height: calc(22px / 0.875);
|
|
729
857
|
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
730
858
|
height: calc(22px / 0.875 * var(--charcoal-text-area-rows) + 20px);
|
|
731
|
-
|
|
732
|
-
-
|
|
859
|
+
|
|
860
|
+
/* Display box-shadow for iOS Safari */
|
|
733
861
|
appearance: none;
|
|
862
|
+
|
|
734
863
|
background: none;
|
|
735
864
|
}
|
|
736
|
-
.charcoal-text-area-textarea[data-no-bottom-padding=true] {
|
|
865
|
+
.charcoal-text-area-textarea[data-no-bottom-padding='true'] {
|
|
737
866
|
padding: calc(9px / 0.875) calc(8px / 0.875) 0;
|
|
738
867
|
height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
|
|
739
868
|
}
|
|
740
|
-
|
|
741
|
-
color: var(--charcoal-text3);
|
|
742
|
-
}
|
|
869
|
+
|
|
743
870
|
.charcoal-text-area-textarea::placeholder {
|
|
744
871
|
color: var(--charcoal-text3);
|
|
745
872
|
}
|
|
873
|
+
|
|
746
874
|
.charcoal-text-area-counter {
|
|
747
875
|
position: absolute;
|
|
748
876
|
bottom: 9px;
|
|
749
877
|
right: 8px;
|
|
878
|
+
|
|
750
879
|
line-height: 22px;
|
|
751
880
|
font-size: 14px;
|
|
752
881
|
color: var(--charcoal-text3);
|
|
753
882
|
}
|
|
754
883
|
|
|
755
|
-
/* src/components/Modal/Dialog/index.css */
|
|
756
884
|
.charcoal-modal-dialog {
|
|
757
885
|
margin: auto;
|
|
758
886
|
position: relative;
|
|
759
|
-
height: -moz-fit-content;
|
|
760
887
|
height: fit-content;
|
|
761
888
|
width: 440px;
|
|
889
|
+
|
|
762
890
|
background-color: var(--charcoal-surface1);
|
|
763
891
|
border-radius: 24px;
|
|
764
892
|
}
|
|
765
|
-
|
|
893
|
+
|
|
894
|
+
.charcoal-modal-dialog[data-size='S'] {
|
|
766
895
|
width: 336px;
|
|
767
896
|
}
|
|
768
|
-
|
|
897
|
+
|
|
898
|
+
.charcoal-modal-dialog[data-size='M'] {
|
|
769
899
|
width: 440px;
|
|
770
900
|
}
|
|
771
|
-
|
|
901
|
+
|
|
902
|
+
.charcoal-modal-dialog[data-size='L'] {
|
|
772
903
|
width: 648px;
|
|
773
904
|
}
|
|
905
|
+
|
|
774
906
|
@media (max-width: 743px) {
|
|
775
907
|
.charcoal-modal-dialog {
|
|
776
908
|
max-width: 440px;
|
|
777
909
|
width: calc(100% - 48px);
|
|
778
910
|
}
|
|
779
|
-
|
|
780
|
-
.charcoal-modal-dialog[data-bottom-sheet=
|
|
911
|
+
|
|
912
|
+
.charcoal-modal-dialog[data-bottom-sheet='true'],
|
|
913
|
+
.charcoal-modal-dialog[data-bottom-sheet='full'] {
|
|
781
914
|
max-width: unset;
|
|
782
915
|
width: 100%;
|
|
783
916
|
border-radius: 0;
|
|
784
917
|
margin: auto 0 0 0;
|
|
785
918
|
}
|
|
786
|
-
|
|
919
|
+
|
|
920
|
+
.charcoal-modal-dialog[data-bottom-sheet='full'] {
|
|
787
921
|
min-height: 100%;
|
|
788
922
|
}
|
|
789
923
|
}
|
|
924
|
+
|
|
790
925
|
.charcoal-modal-dialog:focus {
|
|
791
926
|
outline: none;
|
|
792
927
|
}
|
|
793
928
|
|
|
794
|
-
/* src/components/Modal/index.css */
|
|
795
929
|
.charcoal-modal-background {
|
|
796
930
|
overflow: auto;
|
|
797
931
|
display: flex;
|
|
@@ -803,40 +937,46 @@
|
|
|
803
937
|
justify-content: center;
|
|
804
938
|
padding: 40px 0;
|
|
805
939
|
box-sizing: border-box;
|
|
940
|
+
|
|
806
941
|
background-color: var(--charcoal-surface4);
|
|
807
942
|
}
|
|
943
|
+
|
|
808
944
|
@media (max-width: 743px) {
|
|
809
|
-
.charcoal-modal-background[data-bottom-sheet=true],
|
|
810
|
-
.charcoal-modal-background[data-bottom-sheet=full] {
|
|
945
|
+
.charcoal-modal-background[data-bottom-sheet='true'],
|
|
946
|
+
.charcoal-modal-background[data-bottom-sheet='full'] {
|
|
811
947
|
padding: 0;
|
|
812
948
|
}
|
|
813
949
|
}
|
|
950
|
+
|
|
814
951
|
.charcoal-modal-close-button {
|
|
815
952
|
position: absolute;
|
|
816
953
|
top: 8px;
|
|
817
954
|
right: 8px;
|
|
955
|
+
|
|
818
956
|
color: var(--charcoal-text3);
|
|
819
957
|
transition: 0.2s color;
|
|
820
958
|
}
|
|
959
|
+
|
|
821
960
|
.charcoal-modal-title {
|
|
822
961
|
margin: 0;
|
|
823
962
|
font-weight: inherit;
|
|
824
963
|
font-size: inherit;
|
|
825
964
|
}
|
|
826
965
|
|
|
827
|
-
/* src/components/Modal/ModalPlumbing.css */
|
|
828
966
|
.charcoal-modal-header-root {
|
|
829
967
|
height: 64px;
|
|
830
968
|
display: grid;
|
|
831
969
|
align-content: center;
|
|
832
970
|
justify-content: center;
|
|
833
971
|
}
|
|
972
|
+
|
|
834
973
|
@media (max-width: 743px) {
|
|
835
|
-
.charcoal-modal-header-root[data-bottom-sheet=true],
|
|
836
|
-
.charcoal-modal-header-root[data-bottom-sheet=full] {
|
|
974
|
+
.charcoal-modal-header-root[data-bottom-sheet='true'],
|
|
975
|
+
.charcoal-modal-header-root[data-bottom-sheet='full'] {
|
|
837
976
|
height: 48px;
|
|
838
977
|
}
|
|
839
978
|
}
|
|
979
|
+
|
|
840
980
|
.charcoal-modal-header-title {
|
|
841
981
|
color: var(--charcoal-text1);
|
|
842
982
|
font-size: 16px;
|
|
@@ -844,23 +984,26 @@
|
|
|
844
984
|
font-weight: bold;
|
|
845
985
|
display: flow-root;
|
|
846
986
|
}
|
|
987
|
+
|
|
847
988
|
.charcoal-modal-align {
|
|
848
989
|
padding-left: 16px;
|
|
849
990
|
padding-right: 16px;
|
|
850
991
|
}
|
|
992
|
+
|
|
851
993
|
.charcoal-modal-body {
|
|
852
994
|
padding-bottom: 40px;
|
|
853
995
|
}
|
|
996
|
+
|
|
854
997
|
.charcoal-modal-buttons {
|
|
855
998
|
display: grid;
|
|
856
999
|
grid-auto-flow: row;
|
|
857
1000
|
grid-row-gap: 8px;
|
|
1001
|
+
|
|
858
1002
|
padding-top: 16px;
|
|
859
1003
|
padding-left: 16px;
|
|
860
1004
|
padding-right: 16px;
|
|
861
1005
|
}
|
|
862
1006
|
|
|
863
|
-
/* src/components/LoadingSpinner/index.css */
|
|
864
1007
|
.charcoal-loading-spinner {
|
|
865
1008
|
box-sizing: content-box;
|
|
866
1009
|
margin: auto;
|
|
@@ -873,9 +1016,10 @@
|
|
|
873
1016
|
color: var(--charcoal-text4);
|
|
874
1017
|
background-color: var(--charcoal-background1);
|
|
875
1018
|
}
|
|
876
|
-
.charcoal-loading-spinner[data-transparent=true] {
|
|
1019
|
+
.charcoal-loading-spinner[data-transparent='true'] {
|
|
877
1020
|
background-color: var(--charcoal-transparent);
|
|
878
1021
|
}
|
|
1022
|
+
|
|
879
1023
|
@keyframes charcoal-loading-spinner-icon-scale-out {
|
|
880
1024
|
from {
|
|
881
1025
|
transform: scale(0);
|
|
@@ -886,6 +1030,7 @@
|
|
|
886
1030
|
opacity: 0;
|
|
887
1031
|
}
|
|
888
1032
|
}
|
|
1033
|
+
|
|
889
1034
|
.charcoal-loading-spinner-icon {
|
|
890
1035
|
width: 1em;
|
|
891
1036
|
height: 1em;
|
|
@@ -894,65 +1039,80 @@
|
|
|
894
1039
|
animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
|
|
895
1040
|
animation-iteration-count: infinite;
|
|
896
1041
|
}
|
|
1042
|
+
|
|
897
1043
|
.charcoal-loading-spinner-icon[data-reset-animation] {
|
|
898
1044
|
animation: none;
|
|
899
1045
|
}
|
|
900
|
-
.charcoal-loading-spinner-icon[data-once=true] {
|
|
1046
|
+
.charcoal-loading-spinner-icon[data-once='true'] {
|
|
901
1047
|
animation-iteration-count: 1;
|
|
902
1048
|
}
|
|
903
1049
|
|
|
904
|
-
/* src/components/DropdownSelector/index.css */
|
|
905
1050
|
.charcoal-dropdown-selector-root {
|
|
906
1051
|
display: grid;
|
|
907
1052
|
grid-template-columns: 1fr;
|
|
908
1053
|
grid-gap: 4px;
|
|
909
1054
|
width: 100%;
|
|
910
1055
|
}
|
|
911
|
-
|
|
1056
|
+
|
|
1057
|
+
.charcoal-dropdown-selector-root[aria-disabled='true'] {
|
|
912
1058
|
cursor: default;
|
|
913
1059
|
opacity: 0.32;
|
|
914
1060
|
}
|
|
1061
|
+
|
|
915
1062
|
.charcoal-dropdown-selector-button {
|
|
916
1063
|
display: grid;
|
|
917
1064
|
grid-template-columns: 1fr auto;
|
|
918
1065
|
justify-content: space-between;
|
|
919
1066
|
align-items: center;
|
|
1067
|
+
|
|
920
1068
|
height: 40px;
|
|
921
1069
|
width: 100%;
|
|
922
1070
|
box-sizing: border-box;
|
|
923
1071
|
border: none;
|
|
924
1072
|
cursor: pointer;
|
|
925
1073
|
gap: 4px;
|
|
1074
|
+
|
|
926
1075
|
padding-right: 8px;
|
|
927
1076
|
padding-left: 8px;
|
|
928
1077
|
background-color: var(--charcoal-surface3);
|
|
929
1078
|
border-radius: 4px;
|
|
1079
|
+
|
|
930
1080
|
transition: 0.2s box-shadow, 0.2s background-color;
|
|
931
1081
|
}
|
|
1082
|
+
|
|
932
1083
|
.charcoal-dropdown-selector-button:disabled {
|
|
933
1084
|
cursor: default;
|
|
934
1085
|
}
|
|
1086
|
+
|
|
935
1087
|
.charcoal-dropdown-selector-button:not(:disabled):focus {
|
|
936
1088
|
outline: none;
|
|
937
1089
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
938
1090
|
}
|
|
1091
|
+
|
|
939
1092
|
.charcoal-dropdown-selector-button:not(:disabled):focus-visible {
|
|
940
1093
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
941
1094
|
}
|
|
942
|
-
|
|
1095
|
+
|
|
1096
|
+
.charcoal-dropdown-selector-button:not(:disabled)[data-active='true'],
|
|
943
1097
|
.charcoal-dropdown-selector-button:not(:disabled):active {
|
|
944
1098
|
background-color: var(--charcoal-surface3-press);
|
|
945
1099
|
}
|
|
1100
|
+
|
|
946
1101
|
.charcoal-dropdown-selector-button:not(:disabled):hover {
|
|
947
1102
|
background-color: var(--charcoal-surface3-hover);
|
|
948
1103
|
}
|
|
1104
|
+
|
|
949
1105
|
.charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
|
|
950
1106
|
box-shadow: none;
|
|
951
1107
|
}
|
|
952
|
-
|
|
953
|
-
.charcoal-dropdown-selector-button
|
|
1108
|
+
|
|
1109
|
+
.charcoal-dropdown-selector-button[aria-invalid='true'],
|
|
1110
|
+
.charcoal-dropdown-selector-button:not(
|
|
1111
|
+
:disabled
|
|
1112
|
+
)[aria-invalid='true']:focus:not(:focus-visible) {
|
|
954
1113
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
955
1114
|
}
|
|
1115
|
+
|
|
956
1116
|
.charcoal-ui-dropdown-selector-text {
|
|
957
1117
|
text-align: left;
|
|
958
1118
|
font-size: 14px;
|
|
@@ -963,14 +1123,15 @@
|
|
|
963
1123
|
text-overflow: ellipsis;
|
|
964
1124
|
white-space: nowrap;
|
|
965
1125
|
}
|
|
966
|
-
|
|
1126
|
+
|
|
1127
|
+
.charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
|
|
967
1128
|
color: var(--charcoal-text3);
|
|
968
1129
|
}
|
|
1130
|
+
|
|
969
1131
|
.charcoal-ui-dropdown-selector-icon {
|
|
970
1132
|
color: var(--charcoal-text2);
|
|
971
1133
|
}
|
|
972
1134
|
|
|
973
|
-
/* src/components/DropdownSelector/Popover/index.css */
|
|
974
1135
|
.charcoal-popover {
|
|
975
1136
|
margin: 4px 0;
|
|
976
1137
|
list-style: none;
|
|
@@ -983,32 +1144,32 @@
|
|
|
983
1144
|
padding-bottom: 8px;
|
|
984
1145
|
}
|
|
985
1146
|
|
|
986
|
-
/* src/components/DropdownSelector/MenuList/index.css */
|
|
987
1147
|
.charcoal-menu-list {
|
|
988
1148
|
padding: 0;
|
|
989
1149
|
margin: 0;
|
|
990
1150
|
}
|
|
991
1151
|
|
|
992
|
-
/* src/components/DropdownSelector/DropdownMenuItem/index.css */
|
|
993
1152
|
.charcoal-dropdown-selector-menu-item {
|
|
994
1153
|
font-size: 14px;
|
|
995
1154
|
line-height: 22px;
|
|
996
1155
|
color: var(--charcoal-text2);
|
|
997
1156
|
padding: 9px 0;
|
|
1157
|
+
|
|
998
1158
|
display: flex;
|
|
999
1159
|
align-items: center;
|
|
1000
1160
|
width: 100%;
|
|
1001
1161
|
margin-left: 20px;
|
|
1002
1162
|
}
|
|
1003
|
-
|
|
1163
|
+
|
|
1164
|
+
.charcoal-dropdown-selector-menu-item[data-selected='true'] {
|
|
1004
1165
|
margin-left: 0px;
|
|
1005
1166
|
}
|
|
1167
|
+
|
|
1006
1168
|
.charcoal-dropdown-selector-menu-item-icon {
|
|
1007
1169
|
color: var(--charcoal-text2);
|
|
1008
1170
|
padding-right: 4px;
|
|
1009
1171
|
}
|
|
1010
1172
|
|
|
1011
|
-
/* src/components/DropdownSelector/ListItem/index.css */
|
|
1012
1173
|
.charcoal-list-item {
|
|
1013
1174
|
list-style: none;
|
|
1014
1175
|
display: flex;
|
|
@@ -1016,24 +1177,28 @@
|
|
|
1016
1177
|
min-height: 40px;
|
|
1017
1178
|
cursor: pointer;
|
|
1018
1179
|
outline: none;
|
|
1180
|
+
|
|
1019
1181
|
padding-right: 16px;
|
|
1020
1182
|
padding-left: 16px;
|
|
1183
|
+
|
|
1021
1184
|
transition: background-color 0.2s;
|
|
1022
1185
|
}
|
|
1023
|
-
|
|
1024
|
-
.charcoal-list-item:not([aria-disabled=
|
|
1025
|
-
.charcoal-list-item:not([aria-disabled=
|
|
1186
|
+
|
|
1187
|
+
.charcoal-list-item:not([aria-disabled='true']):hover,
|
|
1188
|
+
.charcoal-list-item:not([aria-disabled='true']):focus,
|
|
1189
|
+
.charcoal-list-item:not([aria-disabled='true']):focus-within {
|
|
1026
1190
|
background-color: var(--charcoal-surface3);
|
|
1027
1191
|
}
|
|
1028
|
-
|
|
1192
|
+
|
|
1193
|
+
.charcoal-list-item[aria-disabled='true'] {
|
|
1029
1194
|
opacity: 0.32;
|
|
1030
1195
|
cursor: default;
|
|
1031
1196
|
}
|
|
1032
1197
|
|
|
1033
|
-
/* src/components/DropdownSelector/MenuItemGroup/index.css */
|
|
1034
1198
|
.charcoal-menu-item-group {
|
|
1035
1199
|
display: block;
|
|
1036
1200
|
}
|
|
1201
|
+
|
|
1037
1202
|
.charcoal-menu-item-group > span {
|
|
1038
1203
|
display: block;
|
|
1039
1204
|
color: var(--charcoal-text3);
|
|
@@ -1041,6 +1206,7 @@
|
|
|
1041
1206
|
font-weight: bold;
|
|
1042
1207
|
padding: 12px 0 8px 16px;
|
|
1043
1208
|
}
|
|
1209
|
+
|
|
1044
1210
|
.charcoal-menu-item-group > ul {
|
|
1045
1211
|
padding-left: 0;
|
|
1046
1212
|
margin: 0;
|
|
@@ -1049,42 +1215,50 @@
|
|
|
1049
1215
|
overflow: hidden;
|
|
1050
1216
|
}
|
|
1051
1217
|
|
|
1052
|
-
/* src/components/SegmentedControl/index.css */
|
|
1053
1218
|
.charcoal-segmented-control {
|
|
1054
1219
|
display: inline-flex;
|
|
1055
1220
|
align-items: center;
|
|
1221
|
+
|
|
1056
1222
|
background-color: var(--charcoal-surface3);
|
|
1057
1223
|
border-radius: 16px;
|
|
1058
1224
|
}
|
|
1225
|
+
|
|
1059
1226
|
.charcoal-segmented-control-radio__label {
|
|
1060
1227
|
position: relative;
|
|
1061
1228
|
display: flex;
|
|
1062
1229
|
align-items: center;
|
|
1063
1230
|
cursor: pointer;
|
|
1064
1231
|
height: 32px;
|
|
1232
|
+
|
|
1065
1233
|
padding-right: 16px;
|
|
1066
1234
|
padding-left: 16px;
|
|
1067
1235
|
border-radius: 16px;
|
|
1068
1236
|
color: var(--charcoal-text2);
|
|
1237
|
+
|
|
1069
1238
|
font-size: 14px;
|
|
1070
1239
|
line-height: 22px;
|
|
1071
1240
|
}
|
|
1072
|
-
|
|
1241
|
+
|
|
1242
|
+
.charcoal-segmented-control-radio__label[aria-disabled]:not(
|
|
1243
|
+
[aria-disabled='false']
|
|
1244
|
+
) {
|
|
1073
1245
|
cursor: default;
|
|
1074
1246
|
opacity: 0.32;
|
|
1075
1247
|
}
|
|
1076
|
-
|
|
1248
|
+
|
|
1249
|
+
.charcoal-segmented-control-radio__label[data-checked='true'] {
|
|
1077
1250
|
background-color: var(--charcoal-brand);
|
|
1078
1251
|
color: var(--charcoal-text5);
|
|
1079
1252
|
}
|
|
1253
|
+
|
|
1080
1254
|
.charcoal-segmented-control-radio__input {
|
|
1081
1255
|
position: absolute;
|
|
1256
|
+
|
|
1082
1257
|
height: 0px;
|
|
1083
1258
|
width: 0px;
|
|
1084
1259
|
padding: 0;
|
|
1085
1260
|
margin: 0;
|
|
1086
|
-
|
|
1087
|
-
-moz-appearance: none;
|
|
1261
|
+
|
|
1088
1262
|
appearance: none;
|
|
1089
1263
|
box-sizing: border-box;
|
|
1090
1264
|
overflow: hidden;
|
|
@@ -1092,30 +1266,29 @@
|
|
|
1092
1266
|
opacity: 0;
|
|
1093
1267
|
}
|
|
1094
1268
|
|
|
1095
|
-
/* src/components/Checkbox/index.css */
|
|
1096
1269
|
.charcoal-checkbox__label {
|
|
1097
1270
|
position: relative;
|
|
1098
1271
|
cursor: pointer;
|
|
1099
1272
|
display: flex;
|
|
1100
1273
|
gap: 4px;
|
|
1101
1274
|
}
|
|
1102
|
-
|
|
1275
|
+
|
|
1276
|
+
.charcoal-checkbox__label[aria-disabled='true'] {
|
|
1103
1277
|
cursor: default;
|
|
1104
1278
|
opacity: 0.32;
|
|
1105
1279
|
}
|
|
1106
|
-
|
|
1280
|
+
|
|
1281
|
+
.charcoal-checkbox__label[aria-disabled='true'] > input {
|
|
1107
1282
|
opacity: 1;
|
|
1108
1283
|
}
|
|
1284
|
+
|
|
1109
1285
|
.charcoal-checkbox__label_div {
|
|
1110
1286
|
color: var(--charcoal-text2);
|
|
1111
1287
|
font-size: 14px;
|
|
1112
1288
|
line-height: 20px;
|
|
1113
1289
|
}
|
|
1114
1290
|
|
|
1115
|
-
/* src/components/Checkbox/CheckboxInput/index.css */
|
|
1116
1291
|
.charcoal-checkbox-input {
|
|
1117
|
-
-webkit-appearance: none;
|
|
1118
|
-
-moz-appearance: none;
|
|
1119
1292
|
appearance: none;
|
|
1120
1293
|
display: flex;
|
|
1121
1294
|
cursor: pointer;
|
|
@@ -1127,28 +1300,35 @@
|
|
|
1127
1300
|
position: relative;
|
|
1128
1301
|
box-sizing: border-box;
|
|
1129
1302
|
}
|
|
1303
|
+
|
|
1130
1304
|
.charcoal-checkbox-input:disabled,
|
|
1131
1305
|
.charcoal-checkbox-input[readonly] {
|
|
1132
1306
|
opacity: 0.32;
|
|
1133
1307
|
cursor: default;
|
|
1134
1308
|
}
|
|
1309
|
+
|
|
1135
1310
|
.charcoal-checkbox-input:checked {
|
|
1136
1311
|
background-color: var(--charcoal-brand);
|
|
1137
1312
|
}
|
|
1313
|
+
|
|
1138
1314
|
.charcoal-checkbox-input:checked::after {
|
|
1139
|
-
content:
|
|
1315
|
+
content: '';
|
|
1140
1316
|
background-color: white;
|
|
1141
1317
|
display: flex;
|
|
1142
1318
|
margin: auto;
|
|
1143
1319
|
width: 16px;
|
|
1144
1320
|
height: 16px;
|
|
1145
|
-
clip-path: path(
|
|
1321
|
+
clip-path: path(
|
|
1322
|
+
'M10.6 5a1.3 1.3 0 0 1 1.8 1.9l-5.7 5.6-3-2.9a1.3 1.3 0 1 1 2-1.9l1 1z'
|
|
1323
|
+
);
|
|
1146
1324
|
}
|
|
1325
|
+
|
|
1147
1326
|
.charcoal-checkbox-input:not(:checked) {
|
|
1148
1327
|
border-width: 2px;
|
|
1149
1328
|
border-style: solid;
|
|
1150
1329
|
border-color: var(--charcoal-text4);
|
|
1151
1330
|
}
|
|
1331
|
+
|
|
1152
1332
|
.charcoal-checkbox-input:not(:disabled):focus {
|
|
1153
1333
|
outline: none;
|
|
1154
1334
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
@@ -1159,45 +1339,56 @@
|
|
|
1159
1339
|
.charcoal-checkbox-input:not(:disabled):focus:not(:focus-visible) {
|
|
1160
1340
|
box-shadow: none;
|
|
1161
1341
|
}
|
|
1342
|
+
|
|
1162
1343
|
.charcoal-checkbox-input:checked:not(:disabled):hover {
|
|
1163
1344
|
background-color: var(--charcoal-brand-hover);
|
|
1164
1345
|
}
|
|
1165
1346
|
.charcoal-checkbox-input:checked:not(:disabled):active {
|
|
1166
1347
|
background-color: var(--charcoal-brand-press);
|
|
1167
1348
|
}
|
|
1168
|
-
|
|
1169
|
-
.charcoal-checkbox-input[aria-invalid=true]
|
|
1349
|
+
|
|
1350
|
+
.charcoal-checkbox-input[aria-invalid='true'],
|
|
1351
|
+
.charcoal-checkbox-input[aria-invalid='true']:not(:disabled):focus {
|
|
1170
1352
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
1171
1353
|
}
|
|
1172
|
-
|
|
1354
|
+
|
|
1355
|
+
.charcoal-checkbox-input[data-rounded='true'] {
|
|
1173
1356
|
border-radius: 10px;
|
|
1174
1357
|
background-color: var(--charcoal-surface3);
|
|
1175
1358
|
border: 2px solid transparent;
|
|
1176
1359
|
}
|
|
1177
|
-
|
|
1360
|
+
|
|
1361
|
+
.charcoal-checkbox-input[data-rounded='true']:checked {
|
|
1178
1362
|
background-color: var(--charcoal-brand);
|
|
1179
1363
|
}
|
|
1180
|
-
|
|
1364
|
+
|
|
1365
|
+
.charcoal-checkbox-input[data-rounded='true']:not(:disabled):hover {
|
|
1181
1366
|
background-color: var(--charcoal-surface3-hover);
|
|
1182
1367
|
}
|
|
1183
|
-
.charcoal-checkbox-input[data-rounded=true]:not(:disabled):active {
|
|
1368
|
+
.charcoal-checkbox-input[data-rounded='true']:not(:disabled):active {
|
|
1184
1369
|
background-color: var(--charcoal-surface3-press);
|
|
1185
1370
|
}
|
|
1186
|
-
|
|
1371
|
+
|
|
1372
|
+
.charcoal-checkbox-input[data-rounded='true']:not(:disabled):focus-visible {
|
|
1187
1373
|
box-shadow: 0 0 0 6px rgba(0, 150, 250, 0.32);
|
|
1188
1374
|
}
|
|
1189
|
-
|
|
1375
|
+
|
|
1376
|
+
.charcoal-checkbox-input[data-rounded='true']:checked:not(:disabled):hover {
|
|
1190
1377
|
background-color: var(--charcoal-brand-hover);
|
|
1191
1378
|
}
|
|
1192
|
-
.charcoal-checkbox-input[data-rounded=true]:checked:not(:disabled):active {
|
|
1379
|
+
.charcoal-checkbox-input[data-rounded='true']:checked:not(:disabled):active {
|
|
1193
1380
|
background-color: var(--charcoal-brand-press);
|
|
1194
1381
|
}
|
|
1195
|
-
|
|
1196
|
-
.charcoal-checkbox-input[data-rounded=true][aria-invalid=true]
|
|
1382
|
+
|
|
1383
|
+
.charcoal-checkbox-input[data-rounded='true'][aria-invalid='true'],
|
|
1384
|
+
.charcoal-checkbox-input[data-rounded='true'][aria-invalid='true']:not(
|
|
1385
|
+
:disabled
|
|
1386
|
+
):focus {
|
|
1197
1387
|
box-shadow: 0 0 0 6px rgba(255, 43, 0, 0.32);
|
|
1198
1388
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1389
|
+
|
|
1390
|
+
.charcoal-checkbox-input[data-rounded='true']::before {
|
|
1391
|
+
content: '';
|
|
1201
1392
|
width: 24px;
|
|
1202
1393
|
height: 24px;
|
|
1203
1394
|
position: absolute;
|
|
@@ -1208,26 +1399,28 @@
|
|
|
1208
1399
|
box-sizing: border-box;
|
|
1209
1400
|
}
|
|
1210
1401
|
|
|
1211
|
-
/* src/components/TagItem/index.css */
|
|
1212
1402
|
.charcoal-tag-item {
|
|
1213
1403
|
--charcoal-tag-item-color: var(--charcoal-text5);
|
|
1214
1404
|
--charcoal-tag-item-size: 40px;
|
|
1215
1405
|
--charcoal-tag-item-padding-left: 24px;
|
|
1216
1406
|
--charcoal-tag-item-padding-right: 24px;
|
|
1407
|
+
|
|
1217
1408
|
isolation: isolate;
|
|
1218
1409
|
position: relative;
|
|
1219
|
-
|
|
1220
|
-
-moz-appearance: none;
|
|
1410
|
+
|
|
1221
1411
|
appearance: none;
|
|
1222
1412
|
outline: none;
|
|
1223
1413
|
border-style: none;
|
|
1414
|
+
|
|
1224
1415
|
display: inline-flex;
|
|
1225
1416
|
gap: 8px;
|
|
1226
1417
|
align-items: center;
|
|
1227
1418
|
justify-content: center;
|
|
1419
|
+
|
|
1228
1420
|
text-decoration: none;
|
|
1229
1421
|
cursor: pointer;
|
|
1230
1422
|
overflow: hidden;
|
|
1423
|
+
|
|
1231
1424
|
color: var(--charcoal-tag-item-color);
|
|
1232
1425
|
height: var(--charcoal-tag-item-size);
|
|
1233
1426
|
padding-top: 4px;
|
|
@@ -1236,52 +1429,60 @@
|
|
|
1236
1429
|
padding-right: var(--charcoal-tag-item-padding-right);
|
|
1237
1430
|
box-sizing: border-box;
|
|
1238
1431
|
border-radius: 4px;
|
|
1432
|
+
|
|
1239
1433
|
transition: 0.2s box-shadow;
|
|
1240
1434
|
}
|
|
1241
|
-
|
|
1435
|
+
|
|
1436
|
+
.charcoal-tag-item[data-size='M'] {
|
|
1242
1437
|
--charcoal-tag-item-size: 40px;
|
|
1243
1438
|
--charcoal-tag-item-padding-left: 24px;
|
|
1244
1439
|
--charcoal-tag-item-padding-right: 24px;
|
|
1245
1440
|
}
|
|
1246
|
-
.charcoal-tag-item[data-size=S] {
|
|
1441
|
+
.charcoal-tag-item[data-size='S'] {
|
|
1247
1442
|
--charcoal-tag-item-size: 32px;
|
|
1248
1443
|
--charcoal-tag-item-padding-left: 16px;
|
|
1249
1444
|
--charcoal-tag-item-padding-right: 16px;
|
|
1250
1445
|
}
|
|
1251
|
-
.charcoal-tag-item[data-state=inactive] {
|
|
1446
|
+
.charcoal-tag-item[data-state='inactive'] {
|
|
1252
1447
|
--charcoal-tag-item-color: var(--charcoal-text2);
|
|
1253
1448
|
}
|
|
1254
|
-
.charcoal-tag-item[data-state=active] {
|
|
1449
|
+
.charcoal-tag-item[data-state='active'] {
|
|
1255
1450
|
--charcoal-tag-item-padding-left: 16px;
|
|
1256
1451
|
--charcoal-tag-item-padding-right: 8px;
|
|
1257
1452
|
}
|
|
1453
|
+
|
|
1258
1454
|
.charcoal-tag-item:disabled,
|
|
1259
|
-
.charcoal-tag-item[aria-disabled]:not([aria-disabled=
|
|
1455
|
+
.charcoal-tag-item[aria-disabled]:not([aria-disabled='false']) {
|
|
1260
1456
|
opacity: 0.32;
|
|
1261
1457
|
cursor: default;
|
|
1262
1458
|
}
|
|
1263
1459
|
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1264
|
-
.charcoal-tag-item[aria-disabled=false]:focus-visible {
|
|
1460
|
+
.charcoal-tag-item[aria-disabled='false']:focus-visible {
|
|
1265
1461
|
outline: none;
|
|
1266
1462
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1267
1463
|
}
|
|
1268
1464
|
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus,
|
|
1269
|
-
.charcoal-tag-item[aria-disabled=false]:focus {
|
|
1465
|
+
.charcoal-tag-item[aria-disabled='false']:focus {
|
|
1270
1466
|
outline: none;
|
|
1271
1467
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1272
1468
|
}
|
|
1273
|
-
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(
|
|
1274
|
-
|
|
1469
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(
|
|
1470
|
+
:focus-visible
|
|
1471
|
+
),
|
|
1472
|
+
.charcoal-tag-item[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1275
1473
|
box-shadow: none;
|
|
1276
1474
|
}
|
|
1475
|
+
|
|
1277
1476
|
.charcoal-tag-item__bg {
|
|
1278
1477
|
background-color: var(--charcoal-tag-item-bg);
|
|
1279
1478
|
}
|
|
1280
|
-
|
|
1479
|
+
|
|
1480
|
+
.charcoal-tag-item__bg[data-bg-variant='image'] {
|
|
1281
1481
|
background-color: var(--charcoal-surface4);
|
|
1282
1482
|
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1483
|
+
|
|
1484
|
+
.charcoal-tag-item__bg[data-bg-variant='image']::before {
|
|
1485
|
+
content: '';
|
|
1285
1486
|
position: absolute;
|
|
1286
1487
|
z-index: 1;
|
|
1287
1488
|
top: 0;
|
|
@@ -1293,9 +1494,11 @@
|
|
|
1293
1494
|
background-image: var(--charcoal-tag-item-bg);
|
|
1294
1495
|
mix-blend-mode: overlay;
|
|
1295
1496
|
}
|
|
1296
|
-
|
|
1497
|
+
|
|
1498
|
+
.charcoal-tag-item__bg[data-state='inactive'] {
|
|
1297
1499
|
background-color: var(--charcoal-surface3);
|
|
1298
1500
|
}
|
|
1501
|
+
|
|
1299
1502
|
.charcoal-tag-item__label {
|
|
1300
1503
|
height: 100%;
|
|
1301
1504
|
display: flex;
|
|
@@ -1303,9 +1506,10 @@
|
|
|
1303
1506
|
align-items: center;
|
|
1304
1507
|
justify-content: center;
|
|
1305
1508
|
}
|
|
1306
|
-
.charcoal-tag-item__label[data-has-translate=true] {
|
|
1509
|
+
.charcoal-tag-item__label[data-has-translate='true'] {
|
|
1307
1510
|
justify-content: space-between;
|
|
1308
1511
|
}
|
|
1512
|
+
|
|
1309
1513
|
.charcoal-tag-item__label__translated {
|
|
1310
1514
|
--charcoal-tag-item-text-font-size: 12px;
|
|
1311
1515
|
--charcoal-tag-item-text-line-height: 20px;
|
|
@@ -1314,26 +1518,28 @@
|
|
|
1314
1518
|
.charcoal-tag-item__label__translated::before {
|
|
1315
1519
|
display: none;
|
|
1316
1520
|
}
|
|
1521
|
+
|
|
1317
1522
|
.charcoal-tag-item__label__text {
|
|
1318
1523
|
--charcoal-tag-item-text-font-size: 14px;
|
|
1319
1524
|
--charcoal-tag-item-text-line-height: 22px;
|
|
1525
|
+
|
|
1320
1526
|
max-width: 152px;
|
|
1321
1527
|
overflow: hidden;
|
|
1322
1528
|
font-weight: bold;
|
|
1529
|
+
|
|
1323
1530
|
color: inherit;
|
|
1324
1531
|
white-space: nowrap;
|
|
1325
1532
|
text-overflow: ellipsis;
|
|
1326
1533
|
}
|
|
1327
|
-
.charcoal-tag-item__label__text[data-has-translate=true] {
|
|
1534
|
+
.charcoal-tag-item__label__text[data-has-translate='true'] {
|
|
1328
1535
|
--charcoal-tag-item-text-font-size: 10px;
|
|
1329
1536
|
--charcoal-tag-item-text-line-height: 14px;
|
|
1330
1537
|
font-weight: normal;
|
|
1331
1538
|
}
|
|
1332
|
-
.charcoal-tag-item__labe__text[data-has-translate=true]::after {
|
|
1539
|
+
.charcoal-tag-item__labe__text[data-has-translate='true']::after {
|
|
1333
1540
|
display: none;
|
|
1334
1541
|
}
|
|
1335
1542
|
|
|
1336
|
-
/* src/components/HintText/index.css */
|
|
1337
1543
|
.charcoal-hint-text {
|
|
1338
1544
|
background-color: var(--charcoal-surface3);
|
|
1339
1545
|
border-radius: 8px;
|
|
@@ -1341,14 +1547,17 @@
|
|
|
1341
1547
|
display: flex;
|
|
1342
1548
|
align-items: flex-start;
|
|
1343
1549
|
}
|
|
1344
|
-
|
|
1550
|
+
|
|
1551
|
+
.charcoal-hint-text[data-context='page'] {
|
|
1345
1552
|
justify-content: center;
|
|
1346
1553
|
}
|
|
1554
|
+
|
|
1347
1555
|
@media (min-width: 744px) {
|
|
1348
|
-
.charcoal-hint-text[data-context=page] {
|
|
1556
|
+
.charcoal-hint-text[data-context='page'] {
|
|
1349
1557
|
padding: 20px 40px;
|
|
1350
1558
|
}
|
|
1351
1559
|
}
|
|
1560
|
+
|
|
1352
1561
|
.charcoal-hint-text-icon {
|
|
1353
1562
|
display: flex;
|
|
1354
1563
|
align-items: center;
|
|
@@ -1356,6 +1565,7 @@
|
|
|
1356
1565
|
height: 22px;
|
|
1357
1566
|
margin: 0 4px 0 0;
|
|
1358
1567
|
}
|
|
1568
|
+
|
|
1359
1569
|
.charcoal-hint-text-message {
|
|
1360
1570
|
color: var(--charcoal-text2);
|
|
1361
1571
|
font-size: 14px;
|
|
@@ -1365,4 +1575,6 @@
|
|
|
1365
1575
|
min-width: 0;
|
|
1366
1576
|
overflow-wrap: break-word;
|
|
1367
1577
|
}
|
|
1368
|
-
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
/*# sourceMappingURL=index.css.map*/
|