@charcoal-ui/react 5.11.0-beta.0 → 5.11.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/components/TextArea/index.d.ts +15 -0
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/core/themeHelper.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +300 -283
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/layered.css +300 -282
- package/dist/layered.css.map +1 -1
- package/package.json +5 -5
- package/src/components/FocusRing/__snapshots__/index.css.snap +6 -0
- package/src/components/FocusRing/index.css +10 -0
- package/src/components/FocusRing/index.story.tsx +33 -0
- package/src/components/TextArea/TextArea.story.tsx +88 -3
- package/src/components/TextArea/index.tsx +87 -37
- package/src/components/TextField/__snapshots__/index.css.snap +6 -0
- package/src/components/TextField/index.css +6 -0
- package/src/components/TextField/index.tsx +17 -15
- package/src/core/themeHelper.test.tsx +20 -0
- package/src/core/themeHelper.ts +26 -19
- package/src/index.ts +6 -1
- package/dist/index.css.map +0 -1
package/dist/index.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
.charcoal-button {
|
|
2
|
-
appearance: none;
|
|
2
|
+
-webkit-appearance: none;
|
|
3
|
+
-moz-appearance: none;
|
|
4
|
+
appearance: none;
|
|
3
5
|
background: transparent;
|
|
4
6
|
box-sizing: border-box;
|
|
5
7
|
padding: 0 24px;
|
|
@@ -13,12 +15,15 @@
|
|
|
13
15
|
margin: 0;
|
|
14
16
|
overflow: visible;
|
|
15
17
|
text-transform: none;
|
|
18
|
+
width: -moz-min-content;
|
|
16
19
|
width: min-content;
|
|
17
20
|
display: inline-grid;
|
|
18
21
|
align-items: center;
|
|
19
22
|
justify-content: center;
|
|
20
23
|
cursor: pointer;
|
|
21
|
-
user-select: none;
|
|
24
|
+
-webkit-user-select: none;
|
|
25
|
+
-moz-user-select: none;
|
|
26
|
+
user-select: none;
|
|
22
27
|
white-space: nowrap;
|
|
23
28
|
border-radius: 999999px;
|
|
24
29
|
font-size: 14px;
|
|
@@ -31,119 +36,120 @@
|
|
|
31
36
|
0.2s background-color,
|
|
32
37
|
0.2s box-shadow;
|
|
33
38
|
height: 40px;
|
|
39
|
+
}
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
.charcoal-button:disabled,
|
|
42
|
+
.charcoal-button[aria-disabled]:not([aria-disabled='false']) {
|
|
37
43
|
cursor: default;
|
|
38
44
|
opacity: 0.32;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
48
|
+
.charcoal-button[aria-disabled='false']:focus-visible {
|
|
43
49
|
outline: none;
|
|
44
50
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
45
51
|
}
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):hover,
|
|
54
|
+
.charcoal-button[aria-disabled='false']:hover {
|
|
49
55
|
color: var(--charcoal-text2-hover);
|
|
50
56
|
background-color: var(--charcoal-surface3-hover);
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):active,
|
|
60
|
+
.charcoal-button[aria-disabled='false']:active,
|
|
61
|
+
.charcoal-button[data-active='true'] {
|
|
56
62
|
color: var(--charcoal-text2-press);
|
|
57
63
|
background-color: var(--charcoal-surface3-press);
|
|
58
64
|
}
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
.charcoal-button[data-variant='Primary'] {
|
|
61
67
|
color: var(--charcoal-text5);
|
|
62
68
|
background-color: var(--charcoal-brand);
|
|
69
|
+
}
|
|
63
70
|
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
.charcoal-button[data-variant='Primary']:hover:not(:disabled):not([aria-disabled]),
|
|
72
|
+
.charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
|
|
66
73
|
color: var(--charcoal-text5-hover);
|
|
67
74
|
background-color: var(--charcoal-brand-hover);
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
.charcoal-button[data-variant='Primary']:active:not(:disabled):not([aria-disabled]),
|
|
78
|
+
.charcoal-button[data-variant='Primary']:active[aria-disabled='false'],
|
|
79
|
+
.charcoal-button[data-variant='Primary'][data-active='true'] {
|
|
73
80
|
color: var(--charcoal-text5-press);
|
|
74
81
|
background-color: var(--charcoal-brand-press);
|
|
75
82
|
}
|
|
76
|
-
}
|
|
77
83
|
|
|
78
|
-
|
|
84
|
+
.charcoal-button[data-variant='Overlay'] {
|
|
79
85
|
color: var(--charcoal-text5);
|
|
80
86
|
background-color: var(--charcoal-surface4);
|
|
87
|
+
}
|
|
81
88
|
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
.charcoal-button[data-variant='Overlay']:hover:not(:disabled):not([aria-disabled]),
|
|
90
|
+
.charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
|
|
84
91
|
color: var(--charcoal-text5-hover);
|
|
85
92
|
background-color: var(--charcoal-surface4-hover);
|
|
86
93
|
}
|
|
87
94
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
.charcoal-button[data-variant='Overlay']:active:not(:disabled):not([aria-disabled]),
|
|
96
|
+
.charcoal-button[data-variant='Overlay']:active[aria-disabled='false'],
|
|
97
|
+
.charcoal-button[data-variant='Overlay'][data-active='true'] {
|
|
91
98
|
color: var(--charcoal-text5-press);
|
|
92
99
|
background-color: var(--charcoal-surface4-press);
|
|
93
100
|
}
|
|
94
|
-
}
|
|
95
101
|
|
|
96
|
-
|
|
102
|
+
.charcoal-button[data-variant='Navigation'] {
|
|
97
103
|
color: var(--charcoal-text5);
|
|
98
104
|
background-color: var(--charcoal-surface6);
|
|
105
|
+
}
|
|
99
106
|
|
|
100
|
-
|
|
101
|
-
|
|
107
|
+
.charcoal-button[data-variant='Navigation']:hover:not(:disabled):not([aria-disabled]),
|
|
108
|
+
.charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
|
|
102
109
|
color: var(--charcoal-text5-hover);
|
|
103
110
|
background-color: var(--charcoal-surface6-hover);
|
|
104
111
|
}
|
|
105
112
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
.charcoal-button[data-variant='Navigation']:active:not(:disabled):not([aria-disabled]),
|
|
114
|
+
.charcoal-button[data-variant='Navigation']:active[aria-disabled='false'],
|
|
115
|
+
.charcoal-button[data-variant='Navigation'][data-active='true'] {
|
|
109
116
|
color: var(--charcoal-text5-press);
|
|
110
117
|
background-color: var(--charcoal-surface6-press);
|
|
111
118
|
}
|
|
112
|
-
}
|
|
113
119
|
|
|
114
|
-
|
|
120
|
+
.charcoal-button[data-variant='Danger'] {
|
|
115
121
|
color: var(--charcoal-text5);
|
|
116
122
|
background-color: var(--charcoal-assertive);
|
|
123
|
+
}
|
|
117
124
|
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
.charcoal-button[data-variant='Danger']:hover:not(:disabled):not([aria-disabled]),
|
|
126
|
+
.charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
|
|
120
127
|
color: var(--charcoal-text5-hover);
|
|
121
128
|
background-color: var(--charcoal-assertive-hover);
|
|
122
129
|
}
|
|
123
130
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
.charcoal-button[data-variant='Danger']:active:not(:disabled):not([aria-disabled]),
|
|
132
|
+
.charcoal-button[data-variant='Danger']:active[aria-disabled='false'],
|
|
133
|
+
.charcoal-button[data-variant='Danger'][data-active='true'] {
|
|
127
134
|
color: var(--charcoal-text5-press);
|
|
128
135
|
background-color: var(--charcoal-assertive-press);
|
|
129
136
|
}
|
|
130
|
-
}
|
|
131
137
|
|
|
132
|
-
|
|
138
|
+
.charcoal-button[data-size='S'] {
|
|
133
139
|
padding: 0 16px;
|
|
134
140
|
height: 32px;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
|
-
|
|
143
|
+
.charcoal-button[data-full-width='true'] {
|
|
138
144
|
width: 100%;
|
|
139
145
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
146
|
.charcoal-clickable {
|
|
143
147
|
cursor: pointer;
|
|
144
148
|
|
|
145
149
|
/* Reset button appearance */
|
|
146
|
-
appearance: none;
|
|
150
|
+
-webkit-appearance: none;
|
|
151
|
+
-moz-appearance: none;
|
|
152
|
+
appearance: none;
|
|
147
153
|
background: transparent;
|
|
148
154
|
padding: 0;
|
|
149
155
|
border-style: none;
|
|
@@ -165,25 +171,26 @@
|
|
|
165
171
|
|
|
166
172
|
/* Remove the inheritance of text transform in Firefox. */
|
|
167
173
|
text-transform: none;
|
|
174
|
+
}
|
|
168
175
|
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
.charcoal-clickable:disabled,
|
|
177
|
+
.charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
|
|
171
178
|
cursor: default;
|
|
172
179
|
}
|
|
173
180
|
|
|
174
|
-
|
|
181
|
+
.charcoal-clickable:focus {
|
|
175
182
|
outline: none;
|
|
176
183
|
}
|
|
177
184
|
|
|
178
|
-
|
|
185
|
+
.charcoal-clickable::-moz-focus-inner {
|
|
179
186
|
border-style: none;
|
|
180
187
|
padding: 0;
|
|
181
188
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
189
|
.charcoal-icon-button {
|
|
185
190
|
cursor: pointer;
|
|
186
|
-
appearance: none;
|
|
191
|
+
-webkit-appearance: none;
|
|
192
|
+
-moz-appearance: none;
|
|
193
|
+
appearance: none;
|
|
187
194
|
background: transparent;
|
|
188
195
|
padding: 0;
|
|
189
196
|
border-style: none;
|
|
@@ -198,7 +205,11 @@
|
|
|
198
205
|
overflow: visible;
|
|
199
206
|
text-transform: none;
|
|
200
207
|
|
|
201
|
-
user-select: none;
|
|
208
|
+
-webkit-user-select: none;
|
|
209
|
+
|
|
210
|
+
-moz-user-select: none;
|
|
211
|
+
|
|
212
|
+
user-select: none;
|
|
202
213
|
display: flex;
|
|
203
214
|
align-items: center;
|
|
204
215
|
justify-content: center;
|
|
@@ -206,121 +217,121 @@
|
|
|
206
217
|
transition:
|
|
207
218
|
0.2s background-color,
|
|
208
219
|
0.2s box-shadow;
|
|
220
|
+
}
|
|
209
221
|
|
|
210
|
-
|
|
211
|
-
|
|
222
|
+
.charcoal-icon-button:disabled,
|
|
223
|
+
.charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
|
|
212
224
|
cursor: default;
|
|
213
225
|
opacity: 0.32;
|
|
214
226
|
}
|
|
215
227
|
|
|
216
|
-
|
|
228
|
+
.charcoal-icon-button:focus {
|
|
217
229
|
outline: none;
|
|
218
230
|
}
|
|
219
231
|
|
|
220
|
-
|
|
232
|
+
.charcoal-icon-button::-moz-focus-inner {
|
|
221
233
|
border-style: none;
|
|
222
234
|
padding: 0;
|
|
223
235
|
}
|
|
224
236
|
|
|
225
|
-
|
|
237
|
+
.charcoal-icon-button[data-size='XS'] {
|
|
226
238
|
width: 20px;
|
|
227
239
|
height: 20px;
|
|
228
240
|
}
|
|
229
241
|
|
|
230
|
-
|
|
242
|
+
.charcoal-icon-button[data-size='S'] {
|
|
231
243
|
width: 32px;
|
|
232
244
|
height: 32px;
|
|
233
245
|
}
|
|
234
246
|
|
|
235
|
-
|
|
247
|
+
.charcoal-icon-button[data-size='M'] {
|
|
236
248
|
width: 40px;
|
|
237
249
|
height: 40px;
|
|
238
250
|
}
|
|
239
251
|
|
|
240
|
-
|
|
252
|
+
.charcoal-icon-button[data-variant='Default'] {
|
|
241
253
|
color: var(--charcoal-text3);
|
|
242
254
|
background-color: var(--charcoal-transparent);
|
|
255
|
+
}
|
|
243
256
|
|
|
244
|
-
|
|
245
|
-
|
|
257
|
+
.charcoal-icon-button[data-variant='Default'][data-active='true']:not(:disabled):not([aria-disabled]),
|
|
258
|
+
.charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
|
|
246
259
|
color: var(--charcoal-text3-press);
|
|
247
260
|
background-color: var(--charcoal-transparent-press);
|
|
248
261
|
}
|
|
249
262
|
|
|
250
|
-
|
|
251
|
-
|
|
263
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):hover,
|
|
264
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
|
|
252
265
|
color: var(--charcoal-text3-hover);
|
|
253
266
|
background-color: var(--charcoal-transparent-hover);
|
|
254
267
|
}
|
|
255
268
|
|
|
256
|
-
|
|
257
|
-
|
|
269
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):active,
|
|
270
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
|
|
258
271
|
color: var(--charcoal-text3-press);
|
|
259
272
|
background-color: var(--charcoal-transparent-press);
|
|
260
273
|
}
|
|
261
|
-
}
|
|
262
274
|
|
|
263
|
-
|
|
275
|
+
.charcoal-icon-button[data-variant='Overlay'] {
|
|
264
276
|
color: var(--charcoal-text5);
|
|
265
277
|
background-color: var(--charcoal-surface4);
|
|
278
|
+
}
|
|
266
279
|
|
|
267
|
-
|
|
268
|
-
|
|
280
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(:disabled):not([aria-disabled]),
|
|
281
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
|
|
269
282
|
color: var(--charcoal-text5-press);
|
|
270
283
|
background-color: var(--charcoal-surface4-press);
|
|
271
284
|
}
|
|
272
285
|
|
|
273
|
-
|
|
274
|
-
|
|
286
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):hover,
|
|
287
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
|
|
275
288
|
color: var(--charcoal-text5-hover);
|
|
276
289
|
background-color: var(--charcoal-surface4-hover);
|
|
277
290
|
}
|
|
278
291
|
|
|
279
|
-
|
|
280
|
-
|
|
292
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):active,
|
|
293
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
|
|
281
294
|
color: var(--charcoal-text5-press);
|
|
282
295
|
background-color: var(--charcoal-surface4-press);
|
|
283
296
|
}
|
|
284
|
-
}
|
|
285
297
|
|
|
286
|
-
|
|
287
|
-
|
|
298
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus,
|
|
299
|
+
.charcoal-icon-button[aria-disabled='false']:focus {
|
|
288
300
|
outline: none;
|
|
289
301
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
290
302
|
}
|
|
291
303
|
|
|
292
|
-
|
|
293
|
-
|
|
304
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
305
|
+
.charcoal-icon-button[aria-disabled='false']:focus-visible {
|
|
294
306
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
295
307
|
}
|
|
296
308
|
|
|
297
|
-
|
|
298
|
-
|
|
309
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
310
|
+
.charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
299
311
|
box-shadow: none;
|
|
300
312
|
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
313
|
.charcoal-radio__label {
|
|
304
314
|
display: grid;
|
|
305
315
|
grid-template-columns: auto 1fr;
|
|
306
316
|
grid-gap: 4px;
|
|
307
317
|
align-items: center;
|
|
308
318
|
cursor: pointer;
|
|
319
|
+
}
|
|
309
320
|
|
|
310
|
-
|
|
321
|
+
.charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
311
322
|
opacity: 0.32;
|
|
312
323
|
cursor: default;
|
|
313
324
|
}
|
|
314
|
-
}
|
|
315
325
|
|
|
316
326
|
.charcoal-radio__label_div {
|
|
317
327
|
font-size: 14px;
|
|
318
328
|
line-height: 22px;
|
|
319
329
|
color: var(--charcoal-text2);
|
|
320
330
|
}
|
|
321
|
-
|
|
322
331
|
.charcoal-radio-input {
|
|
323
|
-
appearance: none;
|
|
332
|
+
-webkit-appearance: none;
|
|
333
|
+
-moz-appearance: none;
|
|
334
|
+
appearance: none;
|
|
324
335
|
display: block;
|
|
325
336
|
box-sizing: border-box;
|
|
326
337
|
|
|
@@ -405,13 +416,11 @@
|
|
|
405
416
|
.charcoal-radio-input:checked:not(:disabled):active::after {
|
|
406
417
|
background-color: var(--charcoal-text5-press);
|
|
407
418
|
}
|
|
408
|
-
|
|
409
419
|
.charcoal-radio-group {
|
|
410
420
|
display: grid;
|
|
411
421
|
grid-template-columns: 1fr;
|
|
412
422
|
grid-gap: 8px;
|
|
413
423
|
}
|
|
414
|
-
|
|
415
424
|
.charcoal-multi-select {
|
|
416
425
|
display: grid;
|
|
417
426
|
grid-template-columns: auto 1fr;
|
|
@@ -419,13 +428,13 @@
|
|
|
419
428
|
position: relative;
|
|
420
429
|
cursor: pointer;
|
|
421
430
|
gap: 4px;
|
|
431
|
+
}
|
|
422
432
|
|
|
423
|
-
|
|
424
|
-
|
|
433
|
+
.charcoal-multi-select:disabled,
|
|
434
|
+
.charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
|
|
425
435
|
opacity: 0.32;
|
|
426
436
|
cursor: default;
|
|
427
437
|
}
|
|
428
|
-
}
|
|
429
438
|
|
|
430
439
|
.charcoal-multi-select-label {
|
|
431
440
|
display: flow-root;
|
|
@@ -433,8 +442,9 @@
|
|
|
433
442
|
font-size: 14px;
|
|
434
443
|
line-height: 22px;
|
|
435
444
|
color: var(--charcoal-text2);
|
|
445
|
+
}
|
|
436
446
|
|
|
437
|
-
|
|
447
|
+
.charcoal-multi-select-label::before {
|
|
438
448
|
display: block;
|
|
439
449
|
width: 0;
|
|
440
450
|
height: 0;
|
|
@@ -442,17 +452,18 @@
|
|
|
442
452
|
margin-top: -4px;
|
|
443
453
|
}
|
|
444
454
|
|
|
445
|
-
|
|
455
|
+
.charcoal-multi-select-label::after {
|
|
446
456
|
display: block;
|
|
447
457
|
width: 0;
|
|
448
458
|
height: 0;
|
|
449
459
|
content: '';
|
|
450
460
|
margin-bottom: -4px;
|
|
451
461
|
}
|
|
452
|
-
}
|
|
453
462
|
|
|
454
463
|
.charcoal-multi-select-input[type='checkbox'] {
|
|
455
|
-
appearance: none;
|
|
464
|
+
-webkit-appearance: none;
|
|
465
|
+
-moz-appearance: none;
|
|
466
|
+
appearance: none;
|
|
456
467
|
display: block;
|
|
457
468
|
width: 20px;
|
|
458
469
|
height: 20px;
|
|
@@ -462,58 +473,58 @@
|
|
|
462
473
|
transition:
|
|
463
474
|
0.2s background-color,
|
|
464
475
|
0.2s box-shadow;
|
|
476
|
+
}
|
|
465
477
|
|
|
466
|
-
|
|
478
|
+
.charcoal-multi-select-input[type='checkbox']:checked {
|
|
467
479
|
background-color: var(--charcoal-brand);
|
|
468
480
|
}
|
|
469
481
|
|
|
470
|
-
|
|
482
|
+
.charcoal-multi-select-input[type='checkbox']:focus {
|
|
471
483
|
outline: none;
|
|
472
484
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
473
485
|
}
|
|
474
486
|
|
|
475
|
-
|
|
487
|
+
.charcoal-multi-select-input[type='checkbox']:focus-visible {
|
|
476
488
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
477
489
|
}
|
|
478
490
|
|
|
479
|
-
|
|
491
|
+
.charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
|
|
480
492
|
box-shadow: none;
|
|
481
493
|
}
|
|
482
494
|
|
|
483
|
-
|
|
484
|
-
|
|
495
|
+
.charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not([aria-disabled]),
|
|
496
|
+
.charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
|
|
485
497
|
background-color: var(--charcoal-text3-hover);
|
|
486
498
|
}
|
|
487
499
|
|
|
488
|
-
|
|
489
|
-
|
|
500
|
+
.charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not([aria-disabled]),
|
|
501
|
+
.charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
|
|
490
502
|
background-color: var(--charcoal-text3-press);
|
|
491
503
|
}
|
|
492
504
|
|
|
493
|
-
|
|
494
|
-
|
|
505
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not([aria-disabled]),
|
|
506
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
|
|
495
507
|
background-color: var(--charcoal-brand-hover);
|
|
496
508
|
}
|
|
497
509
|
|
|
498
|
-
|
|
499
|
-
|
|
510
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not([aria-disabled]),
|
|
511
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
|
|
500
512
|
background-color: var(--charcoal-brand-press);
|
|
501
513
|
}
|
|
502
514
|
|
|
503
|
-
|
|
515
|
+
.charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false']:not(:disabled):not(
|
|
504
516
|
[aria-disabled]
|
|
505
517
|
) {
|
|
506
518
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
507
519
|
}
|
|
508
520
|
|
|
509
|
-
|
|
521
|
+
.charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
510
522
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
511
523
|
}
|
|
512
524
|
|
|
513
|
-
|
|
525
|
+
.charcoal-multi-select-input[type='checkbox'][data-overlay='true'] {
|
|
514
526
|
background-color: var(--charcoal-surface4);
|
|
515
527
|
}
|
|
516
|
-
}
|
|
517
528
|
|
|
518
529
|
.charcoal-multi-select-overlay {
|
|
519
530
|
position: absolute;
|
|
@@ -528,24 +539,23 @@
|
|
|
528
539
|
border-radius: 999999px;
|
|
529
540
|
color: var(--charcoal-text5);
|
|
530
541
|
transition: 0.2s box-shadow;
|
|
542
|
+
}
|
|
531
543
|
|
|
532
|
-
|
|
544
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(:disabled):not(
|
|
533
545
|
[aria-disabled]
|
|
534
546
|
) {
|
|
535
547
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
536
548
|
}
|
|
537
549
|
|
|
538
|
-
|
|
550
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
539
551
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
540
552
|
}
|
|
541
553
|
|
|
542
|
-
|
|
554
|
+
.charcoal-multi-select-overlay[data-overlay='true'] {
|
|
543
555
|
border-color: var(--charcoal-text5);
|
|
544
556
|
border-width: 2px;
|
|
545
557
|
border-style: solid;
|
|
546
558
|
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
559
|
.charcoal-switch__label {
|
|
550
560
|
display: inline-grid;
|
|
551
561
|
grid-template-columns: auto 1fr;
|
|
@@ -553,26 +563,27 @@
|
|
|
553
563
|
cursor: pointer;
|
|
554
564
|
outline: 0;
|
|
555
565
|
gap: 4px;
|
|
566
|
+
}
|
|
556
567
|
|
|
557
|
-
|
|
568
|
+
.charcoal-switch__label[aria-disabled='true'] {
|
|
558
569
|
opacity: 0.32;
|
|
559
570
|
cursor: default;
|
|
571
|
+
}
|
|
560
572
|
|
|
561
|
-
|
|
573
|
+
.charcoal-switch__label[aria-disabled='true'] > input {
|
|
562
574
|
opacity: 1;
|
|
563
575
|
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
576
|
|
|
567
577
|
.charcoal-switch__label_div {
|
|
568
578
|
font-size: 14px;
|
|
569
579
|
line-height: 22px;
|
|
570
580
|
color: var(--charcoal-text2);
|
|
571
581
|
}
|
|
572
|
-
|
|
573
582
|
.charcoal-switch-input {
|
|
574
583
|
cursor: pointer;
|
|
575
|
-
appearance: none;
|
|
584
|
+
-webkit-appearance: none;
|
|
585
|
+
-moz-appearance: none;
|
|
586
|
+
appearance: none;
|
|
576
587
|
display: inline-flex;
|
|
577
588
|
position: relative;
|
|
578
589
|
box-sizing: border-box;
|
|
@@ -652,16 +663,15 @@
|
|
|
652
663
|
.charcoal-switch-input:not(:disabled):checked:active {
|
|
653
664
|
background-color: var(--charcoal-brand-press);
|
|
654
665
|
}
|
|
655
|
-
|
|
656
666
|
.charcoal-text-field-root {
|
|
657
667
|
display: grid;
|
|
658
668
|
grid-template-columns: 1fr;
|
|
659
669
|
grid-gap: 4px;
|
|
670
|
+
}
|
|
660
671
|
|
|
661
|
-
|
|
672
|
+
.charcoal-text-field-root[aria-disabled='true'] {
|
|
662
673
|
opacity: 0.32;
|
|
663
674
|
}
|
|
664
|
-
}
|
|
665
675
|
|
|
666
676
|
.charcoal-text-field-container {
|
|
667
677
|
display: flex;
|
|
@@ -675,24 +685,24 @@
|
|
|
675
685
|
padding: 0 8px;
|
|
676
686
|
line-height: 22px;
|
|
677
687
|
font-size: 14px;
|
|
688
|
+
}
|
|
678
689
|
|
|
679
|
-
|
|
690
|
+
.charcoal-text-field-container[data-invalid='true'] {
|
|
680
691
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
681
692
|
}
|
|
682
693
|
|
|
683
|
-
|
|
694
|
+
.charcoal-text-field-container:not([aria-disabled='true']):hover {
|
|
684
695
|
background-color: var(--charcoal-surface3-hover);
|
|
685
696
|
}
|
|
686
697
|
|
|
687
|
-
|
|
698
|
+
.charcoal-text-field-container:not([aria-disabled='true']):focus-within {
|
|
688
699
|
outline: none;
|
|
689
700
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
690
701
|
}
|
|
691
702
|
|
|
692
|
-
|
|
703
|
+
.charcoal-text-field-container:not([aria-disabled='true'])[data-invalid='true']:focus-within {
|
|
693
704
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
694
705
|
}
|
|
695
|
-
}
|
|
696
706
|
|
|
697
707
|
.charcoal-text-field-prefix {
|
|
698
708
|
display: flex;
|
|
@@ -707,6 +717,12 @@
|
|
|
707
717
|
margin-left: 4px;
|
|
708
718
|
}
|
|
709
719
|
|
|
720
|
+
.charcoal-text-field-input-root {
|
|
721
|
+
flex: 1;
|
|
722
|
+
min-width: 0;
|
|
723
|
+
overflow: hidden;
|
|
724
|
+
}
|
|
725
|
+
|
|
710
726
|
.charcoal-text-field-input {
|
|
711
727
|
border: none;
|
|
712
728
|
box-sizing: border-box;
|
|
@@ -725,22 +741,27 @@
|
|
|
725
741
|
border-radius: calc(4px / 0.875);
|
|
726
742
|
|
|
727
743
|
/* Display box-shadow for iOS Safari */
|
|
728
|
-
appearance: none;
|
|
744
|
+
-webkit-appearance: none;
|
|
745
|
+
-moz-appearance: none;
|
|
746
|
+
appearance: none;
|
|
729
747
|
background: transparent;
|
|
730
748
|
|
|
731
749
|
color: var(--charcoal-text2);
|
|
750
|
+
}
|
|
732
751
|
|
|
733
|
-
|
|
752
|
+
.charcoal-text-field-input::-moz-placeholder {
|
|
753
|
+
color: var(--charcoal-text3);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.charcoal-text-field-input::placeholder {
|
|
734
757
|
color: var(--charcoal-text3);
|
|
735
758
|
}
|
|
736
|
-
}
|
|
737
759
|
|
|
738
760
|
.charcoal-text-field-line-counter {
|
|
739
761
|
line-height: 22px;
|
|
740
762
|
font-size: 14px;
|
|
741
763
|
color: var(--charcoal-text3);
|
|
742
764
|
}
|
|
743
|
-
|
|
744
765
|
.charcoal-field-label {
|
|
745
766
|
font-size: 14px;
|
|
746
767
|
line-height: 22px;
|
|
@@ -769,16 +790,15 @@
|
|
|
769
790
|
.charcoal-field-label-root {
|
|
770
791
|
display: inline-flex;
|
|
771
792
|
align-items: center;
|
|
793
|
+
}
|
|
772
794
|
|
|
773
|
-
|
|
795
|
+
.charcoal-field-label-root > .charcoal-field-label-required-text {
|
|
774
796
|
margin-left: 4px;
|
|
775
797
|
}
|
|
776
798
|
|
|
777
|
-
|
|
799
|
+
.charcoal-field-label-root > .charcoal-field-label-sub-label {
|
|
778
800
|
margin-left: auto;
|
|
779
801
|
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
802
|
.charcoal-text-field-assistive-text {
|
|
783
803
|
font-size: 14px;
|
|
784
804
|
line-height: 22px;
|
|
@@ -789,16 +809,15 @@
|
|
|
789
809
|
.charcoal-text-field-assistive-text[data-invalid='true'] {
|
|
790
810
|
color: var(--charcoal-assertive);
|
|
791
811
|
}
|
|
792
|
-
|
|
793
812
|
.charcoal-text-area-root {
|
|
794
813
|
display: grid;
|
|
795
814
|
grid-template-columns: 1fr;
|
|
796
815
|
grid-gap: 4px;
|
|
816
|
+
}
|
|
797
817
|
|
|
798
|
-
|
|
818
|
+
.charcoal-text-area-root[aria-disabled='true'] {
|
|
799
819
|
opacity: 0.32;
|
|
800
820
|
}
|
|
801
|
-
}
|
|
802
821
|
|
|
803
822
|
.charcoal-text-area-container {
|
|
804
823
|
position: relative;
|
|
@@ -811,24 +830,24 @@
|
|
|
811
830
|
0.2s background-color,
|
|
812
831
|
0.2s box-shadow;
|
|
813
832
|
height: calc(22px * var(--charcoal-text-area-rows) + 18px);
|
|
833
|
+
}
|
|
814
834
|
|
|
815
|
-
|
|
835
|
+
.charcoal-text-area-container[aria-invalid='true'] {
|
|
816
836
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
817
837
|
}
|
|
818
838
|
|
|
819
|
-
|
|
839
|
+
.charcoal-text-area-container:focus-within {
|
|
820
840
|
outline: none;
|
|
821
841
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
822
842
|
}
|
|
823
843
|
|
|
824
|
-
|
|
844
|
+
.charcoal-text-area-container:not([aria-disabled='true']):hover {
|
|
825
845
|
background-color: var(--charcoal-surface3-hover);
|
|
826
846
|
}
|
|
827
847
|
|
|
828
|
-
|
|
848
|
+
.charcoal-text-area-container[aria-invalid='true']:focus-within {
|
|
829
849
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
830
850
|
}
|
|
831
|
-
}
|
|
832
851
|
|
|
833
852
|
.charcoal-text-area-textarea {
|
|
834
853
|
border: none;
|
|
@@ -848,19 +867,25 @@
|
|
|
848
867
|
height: calc(22px / 0.875 * var(--charcoal-text-area-rows) + 20px);
|
|
849
868
|
|
|
850
869
|
/* Display box-shadow for iOS Safari */
|
|
851
|
-
appearance: none;
|
|
870
|
+
-webkit-appearance: none;
|
|
871
|
+
-moz-appearance: none;
|
|
872
|
+
appearance: none;
|
|
852
873
|
|
|
853
874
|
background: none;
|
|
875
|
+
}
|
|
854
876
|
|
|
855
|
-
|
|
877
|
+
.charcoal-text-area-textarea[data-no-bottom-padding='true'] {
|
|
856
878
|
padding: calc(9px / 0.875) calc(8px / 0.875) 0;
|
|
857
879
|
height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
|
|
858
880
|
}
|
|
859
881
|
|
|
860
|
-
|
|
882
|
+
.charcoal-text-area-textarea::-moz-placeholder {
|
|
883
|
+
color: var(--charcoal-text3);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.charcoal-text-area-textarea::placeholder {
|
|
861
887
|
color: var(--charcoal-text3);
|
|
862
888
|
}
|
|
863
|
-
}
|
|
864
889
|
|
|
865
890
|
.charcoal-text-area-counter {
|
|
866
891
|
position: absolute;
|
|
@@ -871,10 +896,10 @@
|
|
|
871
896
|
font-size: 14px;
|
|
872
897
|
color: var(--charcoal-text3);
|
|
873
898
|
}
|
|
874
|
-
|
|
875
899
|
.charcoal-modal-dialog {
|
|
876
900
|
margin: auto;
|
|
877
901
|
position: relative;
|
|
902
|
+
height: -moz-fit-content;
|
|
878
903
|
height: fit-content;
|
|
879
904
|
width: 440px;
|
|
880
905
|
|
|
@@ -916,7 +941,6 @@
|
|
|
916
941
|
.charcoal-modal-dialog:focus {
|
|
917
942
|
outline: none;
|
|
918
943
|
}
|
|
919
|
-
|
|
920
944
|
.charcoal-modal-background {
|
|
921
945
|
overflow: auto;
|
|
922
946
|
display: flex;
|
|
@@ -930,14 +954,14 @@
|
|
|
930
954
|
box-sizing: border-box;
|
|
931
955
|
|
|
932
956
|
background-color: var(--charcoal-surface4);
|
|
957
|
+
}
|
|
933
958
|
|
|
934
959
|
@media (max-width: 743px) {
|
|
935
|
-
|
|
936
|
-
|
|
960
|
+
.charcoal-modal-background[data-bottom-sheet='true'],
|
|
961
|
+
.charcoal-modal-background[data-bottom-sheet='full'] {
|
|
937
962
|
padding: 0;
|
|
938
963
|
}
|
|
939
964
|
}
|
|
940
|
-
}
|
|
941
965
|
|
|
942
966
|
.charcoal-modal-close-button {
|
|
943
967
|
position: absolute;
|
|
@@ -953,7 +977,6 @@
|
|
|
953
977
|
font-weight: inherit;
|
|
954
978
|
font-size: inherit;
|
|
955
979
|
}
|
|
956
|
-
|
|
957
980
|
.charcoal-modal-header-root {
|
|
958
981
|
height: 64px;
|
|
959
982
|
display: grid;
|
|
@@ -994,7 +1017,6 @@
|
|
|
994
1017
|
padding-left: 16px;
|
|
995
1018
|
padding-right: 16px;
|
|
996
1019
|
}
|
|
997
|
-
|
|
998
1020
|
.charcoal-loading-spinner {
|
|
999
1021
|
box-sizing: content-box;
|
|
1000
1022
|
margin: auto;
|
|
@@ -1006,11 +1028,11 @@
|
|
|
1006
1028
|
opacity: 0.84;
|
|
1007
1029
|
color: var(--charcoal-text4);
|
|
1008
1030
|
background-color: var(--charcoal-background1);
|
|
1031
|
+
}
|
|
1009
1032
|
|
|
1010
|
-
|
|
1033
|
+
.charcoal-loading-spinner[data-transparent='true'] {
|
|
1011
1034
|
background-color: var(--charcoal-transparent);
|
|
1012
1035
|
}
|
|
1013
|
-
}
|
|
1014
1036
|
|
|
1015
1037
|
@keyframes charcoal-loading-spinner-icon-scale-out {
|
|
1016
1038
|
from {
|
|
@@ -1030,27 +1052,26 @@
|
|
|
1030
1052
|
background-color: currentColor;
|
|
1031
1053
|
animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
|
|
1032
1054
|
animation-iteration-count: infinite;
|
|
1055
|
+
}
|
|
1033
1056
|
|
|
1034
|
-
|
|
1057
|
+
.charcoal-loading-spinner-icon[data-reset-animation] {
|
|
1035
1058
|
animation: none;
|
|
1036
1059
|
}
|
|
1037
1060
|
|
|
1038
|
-
|
|
1061
|
+
.charcoal-loading-spinner-icon[data-once='true'] {
|
|
1039
1062
|
animation-iteration-count: 1;
|
|
1040
1063
|
}
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
1064
|
.charcoal-dropdown-selector-root {
|
|
1044
1065
|
display: grid;
|
|
1045
1066
|
grid-template-columns: 1fr;
|
|
1046
1067
|
grid-gap: 4px;
|
|
1047
1068
|
width: 100%;
|
|
1069
|
+
}
|
|
1048
1070
|
|
|
1049
|
-
|
|
1071
|
+
.charcoal-dropdown-selector-root[aria-disabled='true'] {
|
|
1050
1072
|
cursor: default;
|
|
1051
1073
|
opacity: 0.32;
|
|
1052
1074
|
}
|
|
1053
|
-
}
|
|
1054
1075
|
|
|
1055
1076
|
.charcoal-dropdown-selector-button {
|
|
1056
1077
|
display: grid;
|
|
@@ -1073,40 +1094,38 @@
|
|
|
1073
1094
|
transition:
|
|
1074
1095
|
0.2s box-shadow,
|
|
1075
1096
|
0.2s background-color;
|
|
1097
|
+
}
|
|
1076
1098
|
|
|
1077
|
-
|
|
1099
|
+
.charcoal-dropdown-selector-button:disabled {
|
|
1078
1100
|
cursor: default;
|
|
1079
1101
|
}
|
|
1080
1102
|
|
|
1081
|
-
|
|
1082
|
-
&:focus {
|
|
1103
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus {
|
|
1083
1104
|
outline: none;
|
|
1084
1105
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1085
1106
|
}
|
|
1086
1107
|
|
|
1087
|
-
|
|
1108
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus-visible {
|
|
1088
1109
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1089
1110
|
}
|
|
1090
1111
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1112
|
+
.charcoal-dropdown-selector-button:not(:disabled)[data-active='true'],
|
|
1113
|
+
.charcoal-dropdown-selector-button:not(:disabled):active {
|
|
1093
1114
|
background-color: var(--charcoal-surface3-press);
|
|
1094
1115
|
}
|
|
1095
1116
|
|
|
1096
|
-
|
|
1117
|
+
.charcoal-dropdown-selector-button:not(:disabled):hover {
|
|
1097
1118
|
background-color: var(--charcoal-surface3-hover);
|
|
1098
1119
|
}
|
|
1099
1120
|
|
|
1100
|
-
|
|
1121
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
|
|
1101
1122
|
box-shadow: none;
|
|
1102
1123
|
}
|
|
1103
|
-
}
|
|
1104
1124
|
|
|
1105
|
-
|
|
1106
|
-
|
|
1125
|
+
.charcoal-dropdown-selector-button[aria-invalid='true'],
|
|
1126
|
+
.charcoal-dropdown-selector-button:not(:disabled)[aria-invalid='true']:focus:not(:focus-visible) {
|
|
1107
1127
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
1108
1128
|
}
|
|
1109
|
-
}
|
|
1110
1129
|
|
|
1111
1130
|
.charcoal-ui-dropdown-selector-text {
|
|
1112
1131
|
text-align: left;
|
|
@@ -1117,16 +1136,15 @@
|
|
|
1117
1136
|
overflow: hidden;
|
|
1118
1137
|
text-overflow: ellipsis;
|
|
1119
1138
|
white-space: nowrap;
|
|
1139
|
+
}
|
|
1120
1140
|
|
|
1121
|
-
|
|
1141
|
+
.charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
|
|
1122
1142
|
color: var(--charcoal-text3);
|
|
1123
1143
|
}
|
|
1124
|
-
}
|
|
1125
1144
|
|
|
1126
1145
|
.charcoal-ui-dropdown-selector-icon {
|
|
1127
1146
|
color: var(--charcoal-text2);
|
|
1128
1147
|
}
|
|
1129
|
-
|
|
1130
1148
|
.charcoal-popover {
|
|
1131
1149
|
margin: 4px 0;
|
|
1132
1150
|
list-style: none;
|
|
@@ -1138,12 +1156,10 @@
|
|
|
1138
1156
|
padding-top: 8px;
|
|
1139
1157
|
padding-bottom: 8px;
|
|
1140
1158
|
}
|
|
1141
|
-
|
|
1142
1159
|
.charcoal-menu-list {
|
|
1143
1160
|
padding: 0;
|
|
1144
1161
|
margin: 0;
|
|
1145
1162
|
}
|
|
1146
|
-
|
|
1147
1163
|
.charcoal-list-item {
|
|
1148
1164
|
list-style: none;
|
|
1149
1165
|
display: flex;
|
|
@@ -1168,7 +1184,6 @@
|
|
|
1168
1184
|
opacity: 0.32;
|
|
1169
1185
|
cursor: default;
|
|
1170
1186
|
}
|
|
1171
|
-
|
|
1172
1187
|
.charcoal-dropdown-selector-menu-item {
|
|
1173
1188
|
font-size: 14px;
|
|
1174
1189
|
line-height: 22px;
|
|
@@ -1209,7 +1224,6 @@
|
|
|
1209
1224
|
.charcoal-dropdown-selector-menu-fullwidth {
|
|
1210
1225
|
width: 100%;
|
|
1211
1226
|
}
|
|
1212
|
-
|
|
1213
1227
|
.charcoal-menu-item-group {
|
|
1214
1228
|
display: block;
|
|
1215
1229
|
}
|
|
@@ -1229,26 +1243,25 @@
|
|
|
1229
1243
|
list-style: none;
|
|
1230
1244
|
overflow: hidden;
|
|
1231
1245
|
}
|
|
1232
|
-
|
|
1233
1246
|
.charcoal-segmented-control {
|
|
1234
1247
|
display: inline-flex;
|
|
1235
1248
|
align-items: center;
|
|
1236
1249
|
|
|
1237
1250
|
background-color: var(--charcoal-surface3);
|
|
1238
1251
|
border-radius: 16px;
|
|
1252
|
+
}
|
|
1239
1253
|
|
|
1240
|
-
|
|
1241
|
-
|
|
1254
|
+
.charcoal-segmented-control[data-uniform-segment-width='true'],
|
|
1255
|
+
.charcoal-segmented-control[data-full-width='true'] {
|
|
1242
1256
|
display: inline-grid;
|
|
1243
1257
|
grid-auto-columns: minmax(80px, 1fr);
|
|
1244
1258
|
grid-auto-rows: 32px;
|
|
1245
1259
|
grid-auto-flow: column;
|
|
1246
1260
|
}
|
|
1247
1261
|
|
|
1248
|
-
|
|
1262
|
+
.charcoal-segmented-control[data-full-width='true'] {
|
|
1249
1263
|
width: 100%;
|
|
1250
1264
|
}
|
|
1251
|
-
}
|
|
1252
1265
|
|
|
1253
1266
|
.charcoal-segmented-control-radio__label {
|
|
1254
1267
|
position: relative;
|
|
@@ -1265,23 +1278,23 @@
|
|
|
1265
1278
|
|
|
1266
1279
|
font-size: 14px;
|
|
1267
1280
|
line-height: 22px;
|
|
1281
|
+
}
|
|
1268
1282
|
|
|
1269
|
-
|
|
1283
|
+
.charcoal-segmented-control-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
1270
1284
|
cursor: default;
|
|
1271
1285
|
opacity: 0.32;
|
|
1272
1286
|
}
|
|
1273
1287
|
|
|
1274
|
-
|
|
1288
|
+
.charcoal-segmented-control-radio__label[data-checked='true'] {
|
|
1275
1289
|
background-color: var(--charcoal-brand);
|
|
1276
1290
|
color: var(--charcoal-text5);
|
|
1277
1291
|
}
|
|
1278
1292
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1293
|
+
.charcoal-segmented-control-radio__label[data-uniform-segment-width='true'],
|
|
1294
|
+
.charcoal-segmented-control-radio__label[data-full-width='true'] {
|
|
1281
1295
|
justify-content: center;
|
|
1282
1296
|
white-space: nowrap;
|
|
1283
1297
|
}
|
|
1284
|
-
}
|
|
1285
1298
|
|
|
1286
1299
|
.charcoal-segmented-control-radio__input {
|
|
1287
1300
|
position: absolute;
|
|
@@ -1291,28 +1304,31 @@
|
|
|
1291
1304
|
padding: 0;
|
|
1292
1305
|
margin: 0;
|
|
1293
1306
|
|
|
1294
|
-
appearance: none;
|
|
1307
|
+
-webkit-appearance: none;
|
|
1308
|
+
|
|
1309
|
+
-moz-appearance: none;
|
|
1310
|
+
|
|
1311
|
+
appearance: none;
|
|
1295
1312
|
box-sizing: border-box;
|
|
1296
1313
|
overflow: hidden;
|
|
1297
1314
|
white-space: nowrap;
|
|
1298
1315
|
opacity: 0;
|
|
1299
1316
|
}
|
|
1300
|
-
|
|
1301
1317
|
.charcoal-checkbox__label {
|
|
1302
1318
|
position: relative;
|
|
1303
1319
|
cursor: pointer;
|
|
1304
1320
|
display: flex;
|
|
1305
1321
|
gap: 4px;
|
|
1322
|
+
}
|
|
1306
1323
|
|
|
1307
|
-
|
|
1324
|
+
.charcoal-checkbox__label[aria-disabled='true'] {
|
|
1308
1325
|
cursor: default;
|
|
1309
1326
|
opacity: 0.32;
|
|
1327
|
+
}
|
|
1310
1328
|
|
|
1311
|
-
|
|
1329
|
+
.charcoal-checkbox__label[aria-disabled='true'] > input {
|
|
1312
1330
|
opacity: 1;
|
|
1313
1331
|
}
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
1332
|
|
|
1317
1333
|
.charcoal-checkbox__label_div {
|
|
1318
1334
|
flex: 1;
|
|
@@ -1320,9 +1336,10 @@
|
|
|
1320
1336
|
font-size: 14px;
|
|
1321
1337
|
line-height: 20px;
|
|
1322
1338
|
}
|
|
1323
|
-
|
|
1324
1339
|
.charcoal-checkbox-input {
|
|
1325
|
-
appearance: none;
|
|
1340
|
+
-webkit-appearance: none;
|
|
1341
|
+
-moz-appearance: none;
|
|
1342
|
+
appearance: none;
|
|
1326
1343
|
display: flex;
|
|
1327
1344
|
cursor: pointer;
|
|
1328
1345
|
margin: 0;
|
|
@@ -1433,7 +1450,6 @@
|
|
|
1433
1450
|
border: 2px solid #fff;
|
|
1434
1451
|
box-sizing: border-box;
|
|
1435
1452
|
}
|
|
1436
|
-
|
|
1437
1453
|
.charcoal-tag-item {
|
|
1438
1454
|
--charcoal-tag-item-color: var(--charcoal-text5);
|
|
1439
1455
|
--charcoal-tag-item-size: 40px;
|
|
@@ -1443,7 +1459,11 @@
|
|
|
1443
1459
|
isolation: isolate;
|
|
1444
1460
|
position: relative;
|
|
1445
1461
|
|
|
1446
|
-
appearance: none;
|
|
1462
|
+
-webkit-appearance: none;
|
|
1463
|
+
|
|
1464
|
+
-moz-appearance: none;
|
|
1465
|
+
|
|
1466
|
+
appearance: none;
|
|
1447
1467
|
outline: none;
|
|
1448
1468
|
border-style: none;
|
|
1449
1469
|
|
|
@@ -1466,59 +1486,61 @@
|
|
|
1466
1486
|
border-radius: 4px;
|
|
1467
1487
|
|
|
1468
1488
|
transition: 0.2s box-shadow;
|
|
1489
|
+
}
|
|
1469
1490
|
|
|
1470
|
-
|
|
1491
|
+
.charcoal-tag-item[data-size='M'] {
|
|
1471
1492
|
--charcoal-tag-item-size: 40px;
|
|
1472
1493
|
--charcoal-tag-item-padding-left: 24px;
|
|
1473
1494
|
--charcoal-tag-item-padding-right: 24px;
|
|
1474
1495
|
}
|
|
1475
1496
|
|
|
1476
|
-
|
|
1497
|
+
.charcoal-tag-item[data-size='S'] {
|
|
1477
1498
|
--charcoal-tag-item-size: 32px;
|
|
1478
1499
|
--charcoal-tag-item-padding-left: 16px;
|
|
1479
1500
|
--charcoal-tag-item-padding-right: 16px;
|
|
1480
1501
|
}
|
|
1481
1502
|
|
|
1482
|
-
|
|
1503
|
+
.charcoal-tag-item[data-state='inactive'] {
|
|
1483
1504
|
--charcoal-tag-item-color: var(--charcoal-text2);
|
|
1484
1505
|
}
|
|
1485
1506
|
|
|
1486
|
-
|
|
1507
|
+
.charcoal-tag-item[data-state='active'] {
|
|
1487
1508
|
--charcoal-tag-item-padding-left: 16px;
|
|
1488
1509
|
--charcoal-tag-item-padding-right: 8px;
|
|
1489
1510
|
}
|
|
1490
1511
|
|
|
1491
|
-
|
|
1492
|
-
|
|
1512
|
+
.charcoal-tag-item:disabled,
|
|
1513
|
+
.charcoal-tag-item[aria-disabled]:not([aria-disabled='false']) {
|
|
1493
1514
|
opacity: 0.32;
|
|
1494
1515
|
cursor: default;
|
|
1495
1516
|
}
|
|
1496
1517
|
|
|
1497
|
-
|
|
1498
|
-
|
|
1518
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1519
|
+
.charcoal-tag-item[aria-disabled='false']:focus-visible {
|
|
1499
1520
|
outline: none;
|
|
1500
1521
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1501
1522
|
}
|
|
1502
1523
|
|
|
1503
|
-
|
|
1504
|
-
|
|
1524
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus,
|
|
1525
|
+
.charcoal-tag-item[aria-disabled='false']:focus {
|
|
1505
1526
|
outline: none;
|
|
1506
1527
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1507
1528
|
}
|
|
1508
1529
|
|
|
1509
|
-
|
|
1510
|
-
|
|
1530
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1531
|
+
.charcoal-tag-item[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1511
1532
|
box-shadow: none;
|
|
1512
1533
|
}
|
|
1513
|
-
}
|
|
1514
1534
|
|
|
1515
1535
|
.charcoal-tag-item__bg {
|
|
1516
1536
|
background-color: var(--charcoal-tag-item-bg);
|
|
1537
|
+
}
|
|
1517
1538
|
|
|
1518
|
-
|
|
1539
|
+
.charcoal-tag-item__bg[data-bg-variant='image'] {
|
|
1519
1540
|
background-color: var(--charcoal-surface4);
|
|
1541
|
+
}
|
|
1520
1542
|
|
|
1521
|
-
|
|
1543
|
+
.charcoal-tag-item__bg[data-bg-variant='image']::before {
|
|
1522
1544
|
content: '';
|
|
1523
1545
|
position: absolute;
|
|
1524
1546
|
z-index: 1;
|
|
@@ -1531,12 +1553,10 @@
|
|
|
1531
1553
|
background-image: var(--charcoal-tag-item-bg);
|
|
1532
1554
|
mix-blend-mode: overlay;
|
|
1533
1555
|
}
|
|
1534
|
-
}
|
|
1535
1556
|
|
|
1536
|
-
|
|
1557
|
+
.charcoal-tag-item__bg[data-state='inactive'] {
|
|
1537
1558
|
background-color: var(--charcoal-surface3);
|
|
1538
1559
|
}
|
|
1539
|
-
}
|
|
1540
1560
|
|
|
1541
1561
|
.charcoal-tag-item__label {
|
|
1542
1562
|
height: 100%;
|
|
@@ -1544,21 +1564,21 @@
|
|
|
1544
1564
|
flex-direction: column;
|
|
1545
1565
|
align-items: center;
|
|
1546
1566
|
justify-content: center;
|
|
1567
|
+
}
|
|
1547
1568
|
|
|
1548
|
-
|
|
1569
|
+
.charcoal-tag-item__label[data-has-translate='true'] {
|
|
1549
1570
|
justify-content: space-between;
|
|
1550
1571
|
}
|
|
1551
|
-
}
|
|
1552
1572
|
|
|
1553
1573
|
.charcoal-tag-item__label__translated {
|
|
1554
1574
|
--charcoal-tag-item-text-font-size: 12px;
|
|
1555
1575
|
--charcoal-tag-item-text-line-height: 20px;
|
|
1556
1576
|
font-weight: bold;
|
|
1577
|
+
}
|
|
1557
1578
|
|
|
1558
|
-
|
|
1579
|
+
.charcoal-tag-item__label__translated::before {
|
|
1559
1580
|
display: none;
|
|
1560
1581
|
}
|
|
1561
|
-
}
|
|
1562
1582
|
|
|
1563
1583
|
.charcoal-tag-item__label__text {
|
|
1564
1584
|
--charcoal-tag-item-text-font-size: 14px;
|
|
@@ -1571,34 +1591,36 @@
|
|
|
1571
1591
|
color: inherit;
|
|
1572
1592
|
white-space: nowrap;
|
|
1573
1593
|
text-overflow: ellipsis;
|
|
1594
|
+
}
|
|
1574
1595
|
|
|
1575
|
-
|
|
1596
|
+
.charcoal-tag-item__label__text[data-has-translate='true'] {
|
|
1576
1597
|
--charcoal-tag-item-text-font-size: 10px;
|
|
1577
1598
|
--charcoal-tag-item-text-line-height: 14px;
|
|
1578
1599
|
font-weight: normal;
|
|
1579
1600
|
}
|
|
1580
|
-
}
|
|
1581
1601
|
|
|
1582
1602
|
/* Kept flat: different class name from .charcoal-tag-item__label__text (note: "labe" typo in original) */
|
|
1583
1603
|
.charcoal-tag-item__labe__text[data-has-translate='true']::after {
|
|
1584
1604
|
display: none;
|
|
1585
1605
|
}
|
|
1586
|
-
|
|
1587
1606
|
.charcoal-hint-text {
|
|
1588
1607
|
background-color: var(--charcoal-surface3);
|
|
1589
1608
|
border-radius: 8px;
|
|
1590
1609
|
padding: 12px 16px;
|
|
1591
1610
|
display: flex;
|
|
1592
1611
|
align-items: flex-start;
|
|
1612
|
+
}
|
|
1593
1613
|
|
|
1594
|
-
|
|
1614
|
+
.charcoal-hint-text[data-context='page'] {
|
|
1595
1615
|
justify-content: center;
|
|
1616
|
+
}
|
|
1596
1617
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1618
|
+
@media (min-width: 744px) {
|
|
1619
|
+
|
|
1620
|
+
.charcoal-hint-text[data-context='page'] {
|
|
1621
|
+
padding: 20px 40px
|
|
1600
1622
|
}
|
|
1601
|
-
}
|
|
1623
|
+
}
|
|
1602
1624
|
|
|
1603
1625
|
.charcoal-hint-text-icon {
|
|
1604
1626
|
display: flex;
|
|
@@ -1617,55 +1639,57 @@
|
|
|
1617
1639
|
min-width: 0;
|
|
1618
1640
|
overflow-wrap: break-word;
|
|
1619
1641
|
}
|
|
1620
|
-
|
|
1621
1642
|
.charcoal-text-ellipsis {
|
|
1622
1643
|
overflow: hidden;
|
|
1623
1644
|
overflow-wrap: break-word;
|
|
1624
1645
|
display: -webkit-box;
|
|
1625
1646
|
-webkit-box-orient: vertical;
|
|
1626
1647
|
-webkit-line-clamp: var(--charcoal-text-ellipsis-line-limit);
|
|
1648
|
+
}
|
|
1627
1649
|
|
|
1628
|
-
|
|
1650
|
+
.charcoal-text-ellipsis[data-has-line-height='true'] {
|
|
1629
1651
|
line-height: var(--charcoal-text-ellipsis-line-height);
|
|
1630
1652
|
}
|
|
1631
1653
|
|
|
1632
|
-
|
|
1654
|
+
.charcoal-text-ellipsis[data-has-line-height='false'] {
|
|
1633
1655
|
line-height: inherit;
|
|
1634
1656
|
}
|
|
1635
1657
|
|
|
1636
|
-
|
|
1658
|
+
.charcoal-text-ellipsis[data-line-limit='1'][data-use-nowrap='true'] {
|
|
1637
1659
|
text-overflow: ellipsis;
|
|
1638
1660
|
white-space: nowrap;
|
|
1639
1661
|
}
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
1662
|
.charcoal-pagination {
|
|
1643
1663
|
display: flex;
|
|
1644
1664
|
justify-content: center;
|
|
1645
1665
|
align-items: center;
|
|
1666
|
+
}
|
|
1646
1667
|
|
|
1647
|
-
|
|
1668
|
+
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
1648
1669
|
min-width: 32px;
|
|
1649
1670
|
min-height: 32px;
|
|
1650
1671
|
}
|
|
1651
1672
|
|
|
1652
|
-
|
|
1673
|
+
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
1653
1674
|
min-width: 40px;
|
|
1654
1675
|
min-height: 40px;
|
|
1655
1676
|
}
|
|
1656
|
-
}
|
|
1657
1677
|
|
|
1658
1678
|
/* stylelint-disable no-descending-specificity */
|
|
1659
1679
|
.charcoal-pagination-button {
|
|
1660
1680
|
cursor: pointer;
|
|
1661
|
-
appearance: none;
|
|
1681
|
+
-webkit-appearance: none;
|
|
1682
|
+
-moz-appearance: none;
|
|
1683
|
+
appearance: none;
|
|
1662
1684
|
padding: 0;
|
|
1663
1685
|
border-style: none;
|
|
1664
1686
|
outline: none;
|
|
1665
1687
|
text-decoration: none;
|
|
1666
1688
|
font: inherit;
|
|
1667
1689
|
margin: 0;
|
|
1668
|
-
user-select: none;
|
|
1690
|
+
-webkit-user-select: none;
|
|
1691
|
+
-moz-user-select: none;
|
|
1692
|
+
user-select: none;
|
|
1669
1693
|
|
|
1670
1694
|
display: flex;
|
|
1671
1695
|
align-items: center;
|
|
@@ -1687,61 +1711,51 @@
|
|
|
1687
1711
|
transition:
|
|
1688
1712
|
0.2s background-color,
|
|
1689
1713
|
0.2s box-shadow;
|
|
1690
|
-
|
|
1691
|
-
|
|
1714
|
+
}
|
|
1715
|
+
.charcoal-pagination-button:focus {
|
|
1692
1716
|
outline: none;
|
|
1693
1717
|
}
|
|
1694
|
-
|
|
1695
|
-
&::-moz-focus-inner {
|
|
1718
|
+
.charcoal-pagination-button::-moz-focus-inner {
|
|
1696
1719
|
border-style: none;
|
|
1697
1720
|
padding: 0;
|
|
1698
1721
|
}
|
|
1699
|
-
|
|
1700
|
-
&[hidden] {
|
|
1722
|
+
.charcoal-pagination-button[hidden] {
|
|
1701
1723
|
visibility: hidden;
|
|
1702
1724
|
display: block;
|
|
1703
1725
|
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
&[aria-disabled='false']:hover {
|
|
1726
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover,
|
|
1727
|
+
.charcoal-pagination-button[aria-disabled='false']:hover {
|
|
1707
1728
|
color: var(--charcoal-text3);
|
|
1708
1729
|
background-color: var(--charcoal-surface3);
|
|
1709
1730
|
}
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
&[aria-disabled='false']:active {
|
|
1731
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):active,
|
|
1732
|
+
.charcoal-pagination-button[aria-disabled='false']:active {
|
|
1713
1733
|
color: var(--charcoal-text3);
|
|
1714
1734
|
background-color: var(--charcoal-surface10);
|
|
1715
1735
|
}
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
&[aria-disabled='false']:focus {
|
|
1736
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus,
|
|
1737
|
+
.charcoal-pagination-button[aria-disabled='false']:focus {
|
|
1719
1738
|
outline: none;
|
|
1720
1739
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1721
1740
|
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
&[aria-disabled='false']:focus-visible {
|
|
1741
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1742
|
+
.charcoal-pagination-button[aria-disabled='false']:focus-visible {
|
|
1725
1743
|
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1726
1744
|
}
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
&[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1745
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1746
|
+
.charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1730
1747
|
box-shadow: none;
|
|
1731
1748
|
}
|
|
1732
|
-
|
|
1733
|
-
&[aria-current] {
|
|
1749
|
+
.charcoal-pagination-button[aria-current] {
|
|
1734
1750
|
cursor: default;
|
|
1735
1751
|
background-color: var(--charcoal-surface6);
|
|
1736
1752
|
color: var(--charcoal-text5);
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1753
|
+
}
|
|
1754
|
+
.charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):hover,
|
|
1755
|
+
.charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):active {
|
|
1740
1756
|
background-color: var(--charcoal-surface6);
|
|
1741
1757
|
color: var(--charcoal-text5);
|
|
1742
1758
|
}
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
1759
|
/* stylelint-enable no-descending-specificity */
|
|
1746
1760
|
|
|
1747
1761
|
/* Kept flat: different root class from .charcoal-pagination-button */
|
|
@@ -1750,19 +1764,22 @@
|
|
|
1750
1764
|
display: block;
|
|
1751
1765
|
}
|
|
1752
1766
|
|
|
1753
|
-
.charcoal-pagination-spacer
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
&:active {
|
|
1767
|
+
.charcoal-pagination-spacer,
|
|
1768
|
+
.charcoal-pagination-spacer:hover,
|
|
1769
|
+
.charcoal-pagination-spacer:active {
|
|
1757
1770
|
cursor: default;
|
|
1758
1771
|
color: var(--charcoal-text3);
|
|
1759
1772
|
background: none;
|
|
1760
1773
|
}
|
|
1761
1774
|
|
|
1762
|
-
|
|
1775
|
+
.charcoal-pagination-spacer.charcoal-icon-button:disabled {
|
|
1763
1776
|
opacity: 1;
|
|
1764
1777
|
}
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1778
|
+
.charcoal-focus-ring:is(
|
|
1779
|
+
:not(:disabled):not([aria-disabled]),
|
|
1780
|
+
[aria-disabled='false']
|
|
1781
|
+
):focus-visible {
|
|
1782
|
+
outline: none;
|
|
1783
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
1784
|
+
transition: 0.2s box-shadow;
|
|
1785
|
+
}
|