@charcoal-ui/react 4.0.0-beta.4 → 4.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_lib/useClassNames.d.ts +2 -2
- package/dist/_lib/useClassNames.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
- package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
- package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +9 -7
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Clickable/index.d.ts +10 -13
- package/dist/components/Clickable/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/FieldLabel/index.d.ts +1 -0
- package/dist/components/FieldLabel/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +7 -5
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.d.ts +1 -0
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/Modal/Dialog/index.d.ts +6 -24
- package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
- package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +3 -5
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +1 -0
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
- package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
- package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
- package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +4 -15
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts +14 -15
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +28 -18
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts +32 -19
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +390 -776
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +732 -28
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +415 -799
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +11 -10
- package/src/_lib/useClassNames.ts +3 -9
- package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +77 -0
- package/src/components/Checkbox/CheckboxInput/index.css +111 -0
- package/src/components/{CheckboxInput → Checkbox/CheckboxInput}/index.story.tsx +16 -0
- package/src/components/Checkbox/CheckboxInput/index.tsx +47 -0
- package/src/components/Checkbox/CheckboxWithLabel.tsx +24 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +53 -134
- package/src/components/Checkbox/index.css +2 -2
- package/src/components/Checkbox/index.story.tsx +16 -11
- package/src/components/Checkbox/index.tsx +23 -15
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -78
- package/src/components/Clickable/index.css +41 -0
- package/src/components/Clickable/index.story.tsx +1 -1
- package/src/components/Clickable/index.tsx +25 -85
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +10 -135
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +308 -1014
- package/src/components/DropdownSelector/index.tsx +9 -38
- package/src/components/FieldLabel/index.css +35 -0
- package/src/components/FieldLabel/index.tsx +15 -105
- package/src/components/IconButton/__snapshots__/index.story.storyshot +12 -288
- package/src/components/IconButton/index.css +118 -0
- package/src/components/IconButton/index.story.tsx +2 -2
- package/src/components/IconButton/index.tsx +41 -118
- package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +40 -128
- package/src/components/LoadingSpinner/index.css +42 -0
- package/src/components/LoadingSpinner/index.tsx +26 -52
- package/src/components/Modal/Dialog/index.css +44 -0
- package/src/components/Modal/Dialog/index.tsx +13 -57
- package/src/components/Modal/ModalPlumbing.css +40 -0
- package/src/components/Modal/ModalPlumbing.tsx +22 -61
- package/src/components/Modal/__snapshots__/index.story.storyshot +459 -1881
- package/src/components/Modal/index.css +36 -0
- package/src/components/Modal/index.tsx +26 -73
- package/src/components/Radio/__snapshots__/index.story.storyshot +50 -775
- package/src/components/Radio/index.css +97 -0
- package/src/components/Radio/index.story.tsx +1 -10
- package/src/components/Radio/index.test.tsx +0 -1
- package/src/components/Radio/index.tsx +50 -161
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +30 -260
- package/src/components/SegmentedControl/index.css +50 -0
- package/src/components/SegmentedControl/index.tsx +20 -89
- package/src/components/Switch/SwitchInput/index.css +82 -0
- package/src/components/Switch/SwitchInput/index.tsx +40 -0
- package/src/components/Switch/SwitchWithLabel.tsx +24 -0
- package/src/components/Switch/__snapshots__/index.story.storyshot +29 -532
- package/src/components/Switch/index.css +23 -0
- package/src/components/Switch/index.story.tsx +5 -0
- package/src/components/Switch/index.tsx +43 -140
- package/src/components/TagItem/__snapshots__/index.story.storyshot +153 -1130
- package/src/components/TagItem/index.css +140 -0
- package/src/components/TagItem/index.story.tsx +1 -1
- package/src/components/TagItem/index.tsx +76 -220
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +203 -1357
- package/src/components/TextArea/index.tsx +68 -91
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +274 -1614
- package/src/components/TextField/index.tsx +77 -105
- package/src/index.ts +0 -7
- package/src/type.d.ts +6 -0
- package/dist/components/CheckboxInput/index.d.ts +0 -9
- package/dist/components/CheckboxInput/index.d.ts.map +0 -1
- package/dist/components/MultiSelect/context.d.ts +0 -14
- package/dist/components/MultiSelect/context.d.ts.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -36
- package/dist/components/MultiSelect/index.d.ts.map +0 -1
- package/src/components/CheckboxInput/__snapshots__/index.story.storyshot +0 -109
- package/src/components/CheckboxInput/index.css +0 -77
- package/src/components/CheckboxInput/index.tsx +0 -53
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1054
- package/src/components/MultiSelect/context.ts +0 -23
- package/src/components/MultiSelect/index.story.tsx +0 -112
- package/src/components/MultiSelect/index.test.tsx +0 -263
- package/src/components/MultiSelect/index.tsx +0 -282
|
@@ -1,150 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Storybook Tests Radio Default 1`] = `
|
|
4
|
-
.c2 {
|
|
5
|
-
display: grid;
|
|
6
|
-
grid-template-columns: auto 1fr;
|
|
7
|
-
grid-gap: 4px;
|
|
8
|
-
-webkit-align-items: center;
|
|
9
|
-
-webkit-box-align: center;
|
|
10
|
-
-ms-flex-align: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.c2[aria-disabled]:not([aria-disabled='false']) {
|
|
16
|
-
opacity: 0.32;
|
|
17
|
-
cursor: default;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.c3[type='radio'] {
|
|
21
|
-
-webkit-appearance: none;
|
|
22
|
-
-moz-appearance: none;
|
|
23
|
-
appearance: none;
|
|
24
|
-
display: block;
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 6px;
|
|
28
|
-
width: 20px;
|
|
29
|
-
height: 20px;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
border-radius: 999999px;
|
|
32
|
-
background-color: var(--charcoal-surface1);
|
|
33
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
34
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.c3[type='radio']:disabled {
|
|
38
|
-
cursor: default;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):hover,
|
|
42
|
-
.c3[type='radio'][aria-disabled='false']:hover {
|
|
43
|
-
background-color: var(--charcoal-surface1-hover);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):active,
|
|
47
|
-
.c3[type='radio'][aria-disabled='false']:active {
|
|
48
|
-
background-color: var(--charcoal-surface1-press);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus,
|
|
52
|
-
.c3[type='radio'][aria-disabled='false']:focus {
|
|
53
|
-
outline: none;
|
|
54
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
58
|
-
.c3[type='radio'][aria-disabled='false']:focus:not(:focus-visible) {
|
|
59
|
-
box-shadow: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus-visible,
|
|
63
|
-
.c3[type='radio'][aria-disabled='false']:focus-visible {
|
|
64
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
|
|
68
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true'] {
|
|
69
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true']:focus,
|
|
73
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true']:focus {
|
|
74
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.c3[type='radio']:not(:checked) {
|
|
78
|
-
border-width: 2px;
|
|
79
|
-
border-style: solid;
|
|
80
|
-
border-color: var(--charcoal-text3);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.c3[type='radio']:checked {
|
|
84
|
-
background-color: var(--charcoal-brand);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.c3[type='radio']:checked::after {
|
|
88
|
-
content: '';
|
|
89
|
-
display: block;
|
|
90
|
-
width: 8px;
|
|
91
|
-
height: 8px;
|
|
92
|
-
pointer-events: none;
|
|
93
|
-
background-color: var(--charcoal-text5);
|
|
94
|
-
border-radius: 999999px;
|
|
95
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
96
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover,
|
|
100
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover {
|
|
101
|
-
background-color: var(--charcoal-brand-hover);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover::after,
|
|
105
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover::after {
|
|
106
|
-
background-color: var(--charcoal-text5-hover);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active,
|
|
110
|
-
.c3[type='radio']:checked[aria-disabled='false']:active {
|
|
111
|
-
background-color: var(--charcoal-brand-press);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active::after,
|
|
115
|
-
.c3[type='radio']:checked[aria-disabled='false']:active::after {
|
|
116
|
-
background-color: var(--charcoal-text5-press);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.c4 {
|
|
120
|
-
font-size: 14px;
|
|
121
|
-
line-height: 22px;
|
|
122
|
-
display: flow-root;
|
|
123
|
-
color: var(--charcoal-text2);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.c4::before {
|
|
127
|
-
display: block;
|
|
128
|
-
width: 0;
|
|
129
|
-
height: 0;
|
|
130
|
-
content: '';
|
|
131
|
-
margin-top: -4px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.c4::after {
|
|
135
|
-
display: block;
|
|
136
|
-
width: 0;
|
|
137
|
-
height: 0;
|
|
138
|
-
content: '';
|
|
139
|
-
margin-bottom: -4px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.c1 {
|
|
143
|
-
display: grid;
|
|
144
|
-
grid-template-columns: 1fr;
|
|
145
|
-
grid-gap: 8px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
4
|
.c0 {
|
|
149
5
|
display: -webkit-box;
|
|
150
6
|
display: -webkit-flex;
|
|
@@ -163,19 +19,18 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
163
19
|
className="c0"
|
|
164
20
|
>
|
|
165
21
|
<div
|
|
166
|
-
aria-label="label"
|
|
167
22
|
aria-orientation="vertical"
|
|
168
|
-
className="
|
|
23
|
+
className="charcoal-radio-group"
|
|
169
24
|
role="radiogroup"
|
|
170
25
|
>
|
|
171
26
|
<label
|
|
172
27
|
aria-disabled={false}
|
|
173
|
-
className="
|
|
28
|
+
className="charcoal-radio__label"
|
|
174
29
|
>
|
|
175
30
|
<input
|
|
176
31
|
aria-invalid={false}
|
|
177
32
|
checked={true}
|
|
178
|
-
className="
|
|
33
|
+
className="charcoal-radio__input"
|
|
179
34
|
disabled={false}
|
|
180
35
|
name="name"
|
|
181
36
|
onChange={[Function]}
|
|
@@ -183,7 +38,7 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
183
38
|
value="1"
|
|
184
39
|
/>
|
|
185
40
|
<div
|
|
186
|
-
className="
|
|
41
|
+
className="charcoal-radio__label_div"
|
|
187
42
|
>
|
|
188
43
|
Value
|
|
189
44
|
1
|
|
@@ -191,12 +46,12 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
191
46
|
</label>
|
|
192
47
|
<label
|
|
193
48
|
aria-disabled={false}
|
|
194
|
-
className="
|
|
49
|
+
className="charcoal-radio__label"
|
|
195
50
|
>
|
|
196
51
|
<input
|
|
197
52
|
aria-invalid={false}
|
|
198
53
|
checked={false}
|
|
199
|
-
className="
|
|
54
|
+
className="charcoal-radio__input"
|
|
200
55
|
disabled={false}
|
|
201
56
|
name="name"
|
|
202
57
|
onChange={[Function]}
|
|
@@ -204,7 +59,7 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
204
59
|
value="2"
|
|
205
60
|
/>
|
|
206
61
|
<div
|
|
207
|
-
className="
|
|
62
|
+
className="charcoal-radio__label_div"
|
|
208
63
|
>
|
|
209
64
|
Value
|
|
210
65
|
2
|
|
@@ -212,12 +67,12 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
212
67
|
</label>
|
|
213
68
|
<label
|
|
214
69
|
aria-disabled={false}
|
|
215
|
-
className="
|
|
70
|
+
className="charcoal-radio__label"
|
|
216
71
|
>
|
|
217
72
|
<input
|
|
218
73
|
aria-invalid={false}
|
|
219
74
|
checked={false}
|
|
220
|
-
className="
|
|
75
|
+
className="charcoal-radio__input"
|
|
221
76
|
disabled={false}
|
|
222
77
|
name="name"
|
|
223
78
|
onChange={[Function]}
|
|
@@ -225,7 +80,7 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
225
80
|
value="3"
|
|
226
81
|
/>
|
|
227
82
|
<div
|
|
228
|
-
className="
|
|
83
|
+
className="charcoal-radio__label_div"
|
|
229
84
|
>
|
|
230
85
|
Value
|
|
231
86
|
3
|
|
@@ -237,150 +92,6 @@ exports[`Storybook Tests Radio Default 1`] = `
|
|
|
237
92
|
`;
|
|
238
93
|
|
|
239
94
|
exports[`Storybook Tests Radio Disabled 1`] = `
|
|
240
|
-
.c2 {
|
|
241
|
-
display: grid;
|
|
242
|
-
grid-template-columns: auto 1fr;
|
|
243
|
-
grid-gap: 4px;
|
|
244
|
-
-webkit-align-items: center;
|
|
245
|
-
-webkit-box-align: center;
|
|
246
|
-
-ms-flex-align: center;
|
|
247
|
-
align-items: center;
|
|
248
|
-
cursor: pointer;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.c2[aria-disabled]:not([aria-disabled='false']) {
|
|
252
|
-
opacity: 0.32;
|
|
253
|
-
cursor: default;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.c3[type='radio'] {
|
|
257
|
-
-webkit-appearance: none;
|
|
258
|
-
-moz-appearance: none;
|
|
259
|
-
appearance: none;
|
|
260
|
-
display: block;
|
|
261
|
-
box-sizing: border-box;
|
|
262
|
-
margin: 0;
|
|
263
|
-
padding: 6px;
|
|
264
|
-
width: 20px;
|
|
265
|
-
height: 20px;
|
|
266
|
-
cursor: pointer;
|
|
267
|
-
border-radius: 999999px;
|
|
268
|
-
background-color: var(--charcoal-surface1);
|
|
269
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
270
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.c3[type='radio']:disabled {
|
|
274
|
-
cursor: default;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):hover,
|
|
278
|
-
.c3[type='radio'][aria-disabled='false']:hover {
|
|
279
|
-
background-color: var(--charcoal-surface1-hover);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):active,
|
|
283
|
-
.c3[type='radio'][aria-disabled='false']:active {
|
|
284
|
-
background-color: var(--charcoal-surface1-press);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus,
|
|
288
|
-
.c3[type='radio'][aria-disabled='false']:focus {
|
|
289
|
-
outline: none;
|
|
290
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
294
|
-
.c3[type='radio'][aria-disabled='false']:focus:not(:focus-visible) {
|
|
295
|
-
box-shadow: none;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus-visible,
|
|
299
|
-
.c3[type='radio'][aria-disabled='false']:focus-visible {
|
|
300
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
|
|
304
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true'] {
|
|
305
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true']:focus,
|
|
309
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true']:focus {
|
|
310
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.c3[type='radio']:not(:checked) {
|
|
314
|
-
border-width: 2px;
|
|
315
|
-
border-style: solid;
|
|
316
|
-
border-color: var(--charcoal-text3);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.c3[type='radio']:checked {
|
|
320
|
-
background-color: var(--charcoal-brand);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.c3[type='radio']:checked::after {
|
|
324
|
-
content: '';
|
|
325
|
-
display: block;
|
|
326
|
-
width: 8px;
|
|
327
|
-
height: 8px;
|
|
328
|
-
pointer-events: none;
|
|
329
|
-
background-color: var(--charcoal-text5);
|
|
330
|
-
border-radius: 999999px;
|
|
331
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
332
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover,
|
|
336
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover {
|
|
337
|
-
background-color: var(--charcoal-brand-hover);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover::after,
|
|
341
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover::after {
|
|
342
|
-
background-color: var(--charcoal-text5-hover);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active,
|
|
346
|
-
.c3[type='radio']:checked[aria-disabled='false']:active {
|
|
347
|
-
background-color: var(--charcoal-brand-press);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active::after,
|
|
351
|
-
.c3[type='radio']:checked[aria-disabled='false']:active::after {
|
|
352
|
-
background-color: var(--charcoal-text5-press);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.c4 {
|
|
356
|
-
font-size: 14px;
|
|
357
|
-
line-height: 22px;
|
|
358
|
-
display: flow-root;
|
|
359
|
-
color: var(--charcoal-text2);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.c4::before {
|
|
363
|
-
display: block;
|
|
364
|
-
width: 0;
|
|
365
|
-
height: 0;
|
|
366
|
-
content: '';
|
|
367
|
-
margin-top: -4px;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.c4::after {
|
|
371
|
-
display: block;
|
|
372
|
-
width: 0;
|
|
373
|
-
height: 0;
|
|
374
|
-
content: '';
|
|
375
|
-
margin-bottom: -4px;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.c1 {
|
|
379
|
-
display: grid;
|
|
380
|
-
grid-template-columns: 1fr;
|
|
381
|
-
grid-gap: 8px;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
95
|
.c0 {
|
|
385
96
|
display: -webkit-box;
|
|
386
97
|
display: -webkit-flex;
|
|
@@ -399,19 +110,18 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
399
110
|
className="c0"
|
|
400
111
|
>
|
|
401
112
|
<div
|
|
402
|
-
aria-label="label"
|
|
403
113
|
aria-orientation="vertical"
|
|
404
|
-
className="
|
|
114
|
+
className="charcoal-radio-group"
|
|
405
115
|
role="radiogroup"
|
|
406
116
|
>
|
|
407
117
|
<label
|
|
408
118
|
aria-disabled={true}
|
|
409
|
-
className="
|
|
119
|
+
className="charcoal-radio__label"
|
|
410
120
|
>
|
|
411
121
|
<input
|
|
412
122
|
aria-invalid={false}
|
|
413
123
|
checked={true}
|
|
414
|
-
className="
|
|
124
|
+
className="charcoal-radio__input"
|
|
415
125
|
disabled={true}
|
|
416
126
|
name="name"
|
|
417
127
|
onChange={[Function]}
|
|
@@ -419,7 +129,7 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
419
129
|
value="1"
|
|
420
130
|
/>
|
|
421
131
|
<div
|
|
422
|
-
className="
|
|
132
|
+
className="charcoal-radio__label_div"
|
|
423
133
|
>
|
|
424
134
|
Value
|
|
425
135
|
1
|
|
@@ -427,12 +137,12 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
427
137
|
</label>
|
|
428
138
|
<label
|
|
429
139
|
aria-disabled={true}
|
|
430
|
-
className="
|
|
140
|
+
className="charcoal-radio__label"
|
|
431
141
|
>
|
|
432
142
|
<input
|
|
433
143
|
aria-invalid={false}
|
|
434
144
|
checked={false}
|
|
435
|
-
className="
|
|
145
|
+
className="charcoal-radio__input"
|
|
436
146
|
disabled={true}
|
|
437
147
|
name="name"
|
|
438
148
|
onChange={[Function]}
|
|
@@ -440,7 +150,7 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
440
150
|
value="2"
|
|
441
151
|
/>
|
|
442
152
|
<div
|
|
443
|
-
className="
|
|
153
|
+
className="charcoal-radio__label_div"
|
|
444
154
|
>
|
|
445
155
|
Value
|
|
446
156
|
2
|
|
@@ -448,12 +158,12 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
448
158
|
</label>
|
|
449
159
|
<label
|
|
450
160
|
aria-disabled={true}
|
|
451
|
-
className="
|
|
161
|
+
className="charcoal-radio__label"
|
|
452
162
|
>
|
|
453
163
|
<input
|
|
454
164
|
aria-invalid={false}
|
|
455
165
|
checked={false}
|
|
456
|
-
className="
|
|
166
|
+
className="charcoal-radio__input"
|
|
457
167
|
disabled={true}
|
|
458
168
|
name="name"
|
|
459
169
|
onChange={[Function]}
|
|
@@ -461,7 +171,7 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
461
171
|
value="3"
|
|
462
172
|
/>
|
|
463
173
|
<div
|
|
464
|
-
className="
|
|
174
|
+
className="charcoal-radio__label_div"
|
|
465
175
|
>
|
|
466
176
|
Value
|
|
467
177
|
3
|
|
@@ -473,150 +183,6 @@ exports[`Storybook Tests Radio Disabled 1`] = `
|
|
|
473
183
|
`;
|
|
474
184
|
|
|
475
185
|
exports[`Storybook Tests Radio Invalid 1`] = `
|
|
476
|
-
.c2 {
|
|
477
|
-
display: grid;
|
|
478
|
-
grid-template-columns: auto 1fr;
|
|
479
|
-
grid-gap: 4px;
|
|
480
|
-
-webkit-align-items: center;
|
|
481
|
-
-webkit-box-align: center;
|
|
482
|
-
-ms-flex-align: center;
|
|
483
|
-
align-items: center;
|
|
484
|
-
cursor: pointer;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.c2[aria-disabled]:not([aria-disabled='false']) {
|
|
488
|
-
opacity: 0.32;
|
|
489
|
-
cursor: default;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.c3[type='radio'] {
|
|
493
|
-
-webkit-appearance: none;
|
|
494
|
-
-moz-appearance: none;
|
|
495
|
-
appearance: none;
|
|
496
|
-
display: block;
|
|
497
|
-
box-sizing: border-box;
|
|
498
|
-
margin: 0;
|
|
499
|
-
padding: 6px;
|
|
500
|
-
width: 20px;
|
|
501
|
-
height: 20px;
|
|
502
|
-
cursor: pointer;
|
|
503
|
-
border-radius: 999999px;
|
|
504
|
-
background-color: var(--charcoal-surface1);
|
|
505
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
506
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.c3[type='radio']:disabled {
|
|
510
|
-
cursor: default;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):hover,
|
|
514
|
-
.c3[type='radio'][aria-disabled='false']:hover {
|
|
515
|
-
background-color: var(--charcoal-surface1-hover);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):active,
|
|
519
|
-
.c3[type='radio'][aria-disabled='false']:active {
|
|
520
|
-
background-color: var(--charcoal-surface1-press);
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus,
|
|
524
|
-
.c3[type='radio'][aria-disabled='false']:focus {
|
|
525
|
-
outline: none;
|
|
526
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
530
|
-
.c3[type='radio'][aria-disabled='false']:focus:not(:focus-visible) {
|
|
531
|
-
box-shadow: none;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus-visible,
|
|
535
|
-
.c3[type='radio'][aria-disabled='false']:focus-visible {
|
|
536
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
|
|
540
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true'] {
|
|
541
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true']:focus,
|
|
545
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true']:focus {
|
|
546
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.c3[type='radio']:not(:checked) {
|
|
550
|
-
border-width: 2px;
|
|
551
|
-
border-style: solid;
|
|
552
|
-
border-color: var(--charcoal-text3);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
.c3[type='radio']:checked {
|
|
556
|
-
background-color: var(--charcoal-brand);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.c3[type='radio']:checked::after {
|
|
560
|
-
content: '';
|
|
561
|
-
display: block;
|
|
562
|
-
width: 8px;
|
|
563
|
-
height: 8px;
|
|
564
|
-
pointer-events: none;
|
|
565
|
-
background-color: var(--charcoal-text5);
|
|
566
|
-
border-radius: 999999px;
|
|
567
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
568
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover,
|
|
572
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover {
|
|
573
|
-
background-color: var(--charcoal-brand-hover);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover::after,
|
|
577
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover::after {
|
|
578
|
-
background-color: var(--charcoal-text5-hover);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active,
|
|
582
|
-
.c3[type='radio']:checked[aria-disabled='false']:active {
|
|
583
|
-
background-color: var(--charcoal-brand-press);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active::after,
|
|
587
|
-
.c3[type='radio']:checked[aria-disabled='false']:active::after {
|
|
588
|
-
background-color: var(--charcoal-text5-press);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.c4 {
|
|
592
|
-
font-size: 14px;
|
|
593
|
-
line-height: 22px;
|
|
594
|
-
display: flow-root;
|
|
595
|
-
color: var(--charcoal-text2);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.c4::before {
|
|
599
|
-
display: block;
|
|
600
|
-
width: 0;
|
|
601
|
-
height: 0;
|
|
602
|
-
content: '';
|
|
603
|
-
margin-top: -4px;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.c4::after {
|
|
607
|
-
display: block;
|
|
608
|
-
width: 0;
|
|
609
|
-
height: 0;
|
|
610
|
-
content: '';
|
|
611
|
-
margin-bottom: -4px;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
.c1 {
|
|
615
|
-
display: grid;
|
|
616
|
-
grid-template-columns: 1fr;
|
|
617
|
-
grid-gap: 8px;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
186
|
.c0 {
|
|
621
187
|
display: -webkit-box;
|
|
622
188
|
display: -webkit-flex;
|
|
@@ -636,19 +202,18 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
636
202
|
>
|
|
637
203
|
<div
|
|
638
204
|
aria-invalid={true}
|
|
639
|
-
aria-label="label"
|
|
640
205
|
aria-orientation="vertical"
|
|
641
|
-
className="
|
|
206
|
+
className="charcoal-radio-group"
|
|
642
207
|
role="radiogroup"
|
|
643
208
|
>
|
|
644
209
|
<label
|
|
645
210
|
aria-disabled={false}
|
|
646
|
-
className="
|
|
211
|
+
className="charcoal-radio__label"
|
|
647
212
|
>
|
|
648
213
|
<input
|
|
649
214
|
aria-invalid={true}
|
|
650
215
|
checked={true}
|
|
651
|
-
className="
|
|
216
|
+
className="charcoal-radio__input"
|
|
652
217
|
disabled={false}
|
|
653
218
|
name="name"
|
|
654
219
|
onChange={[Function]}
|
|
@@ -656,7 +221,7 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
656
221
|
value="1"
|
|
657
222
|
/>
|
|
658
223
|
<div
|
|
659
|
-
className="
|
|
224
|
+
className="charcoal-radio__label_div"
|
|
660
225
|
>
|
|
661
226
|
Value
|
|
662
227
|
1
|
|
@@ -664,12 +229,12 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
664
229
|
</label>
|
|
665
230
|
<label
|
|
666
231
|
aria-disabled={false}
|
|
667
|
-
className="
|
|
232
|
+
className="charcoal-radio__label"
|
|
668
233
|
>
|
|
669
234
|
<input
|
|
670
235
|
aria-invalid={true}
|
|
671
236
|
checked={false}
|
|
672
|
-
className="
|
|
237
|
+
className="charcoal-radio__input"
|
|
673
238
|
disabled={false}
|
|
674
239
|
name="name"
|
|
675
240
|
onChange={[Function]}
|
|
@@ -677,7 +242,7 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
677
242
|
value="2"
|
|
678
243
|
/>
|
|
679
244
|
<div
|
|
680
|
-
className="
|
|
245
|
+
className="charcoal-radio__label_div"
|
|
681
246
|
>
|
|
682
247
|
Value
|
|
683
248
|
2
|
|
@@ -685,12 +250,12 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
685
250
|
</label>
|
|
686
251
|
<label
|
|
687
252
|
aria-disabled={false}
|
|
688
|
-
className="
|
|
253
|
+
className="charcoal-radio__label"
|
|
689
254
|
>
|
|
690
255
|
<input
|
|
691
256
|
aria-invalid={true}
|
|
692
257
|
checked={false}
|
|
693
|
-
className="
|
|
258
|
+
className="charcoal-radio__input"
|
|
694
259
|
disabled={false}
|
|
695
260
|
name="name"
|
|
696
261
|
onChange={[Function]}
|
|
@@ -698,7 +263,7 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
698
263
|
value="3"
|
|
699
264
|
/>
|
|
700
265
|
<div
|
|
701
|
-
className="
|
|
266
|
+
className="charcoal-radio__label_div"
|
|
702
267
|
>
|
|
703
268
|
Value
|
|
704
269
|
3
|
|
@@ -710,150 +275,6 @@ exports[`Storybook Tests Radio Invalid 1`] = `
|
|
|
710
275
|
`;
|
|
711
276
|
|
|
712
277
|
exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
713
|
-
.c2 {
|
|
714
|
-
display: grid;
|
|
715
|
-
grid-template-columns: auto 1fr;
|
|
716
|
-
grid-gap: 4px;
|
|
717
|
-
-webkit-align-items: center;
|
|
718
|
-
-webkit-box-align: center;
|
|
719
|
-
-ms-flex-align: center;
|
|
720
|
-
align-items: center;
|
|
721
|
-
cursor: pointer;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.c2[aria-disabled]:not([aria-disabled='false']) {
|
|
725
|
-
opacity: 0.32;
|
|
726
|
-
cursor: default;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.c3[type='radio'] {
|
|
730
|
-
-webkit-appearance: none;
|
|
731
|
-
-moz-appearance: none;
|
|
732
|
-
appearance: none;
|
|
733
|
-
display: block;
|
|
734
|
-
box-sizing: border-box;
|
|
735
|
-
margin: 0;
|
|
736
|
-
padding: 6px;
|
|
737
|
-
width: 20px;
|
|
738
|
-
height: 20px;
|
|
739
|
-
cursor: pointer;
|
|
740
|
-
border-radius: 999999px;
|
|
741
|
-
background-color: var(--charcoal-surface1);
|
|
742
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
743
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.c3[type='radio']:disabled {
|
|
747
|
-
cursor: default;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):hover,
|
|
751
|
-
.c3[type='radio'][aria-disabled='false']:hover {
|
|
752
|
-
background-color: var(--charcoal-surface1-hover);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):active,
|
|
756
|
-
.c3[type='radio'][aria-disabled='false']:active {
|
|
757
|
-
background-color: var(--charcoal-surface1-press);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus,
|
|
761
|
-
.c3[type='radio'][aria-disabled='false']:focus {
|
|
762
|
-
outline: none;
|
|
763
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
767
|
-
.c3[type='radio'][aria-disabled='false']:focus:not(:focus-visible) {
|
|
768
|
-
box-shadow: none;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus-visible,
|
|
772
|
-
.c3[type='radio'][aria-disabled='false']:focus-visible {
|
|
773
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
|
|
777
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true'] {
|
|
778
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true']:focus,
|
|
782
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true']:focus {
|
|
783
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.c3[type='radio']:not(:checked) {
|
|
787
|
-
border-width: 2px;
|
|
788
|
-
border-style: solid;
|
|
789
|
-
border-color: var(--charcoal-text3);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.c3[type='radio']:checked {
|
|
793
|
-
background-color: var(--charcoal-brand);
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.c3[type='radio']:checked::after {
|
|
797
|
-
content: '';
|
|
798
|
-
display: block;
|
|
799
|
-
width: 8px;
|
|
800
|
-
height: 8px;
|
|
801
|
-
pointer-events: none;
|
|
802
|
-
background-color: var(--charcoal-text5);
|
|
803
|
-
border-radius: 999999px;
|
|
804
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
805
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover,
|
|
809
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover {
|
|
810
|
-
background-color: var(--charcoal-brand-hover);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover::after,
|
|
814
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover::after {
|
|
815
|
-
background-color: var(--charcoal-text5-hover);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active,
|
|
819
|
-
.c3[type='radio']:checked[aria-disabled='false']:active {
|
|
820
|
-
background-color: var(--charcoal-brand-press);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active::after,
|
|
824
|
-
.c3[type='radio']:checked[aria-disabled='false']:active::after {
|
|
825
|
-
background-color: var(--charcoal-text5-press);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
.c4 {
|
|
829
|
-
font-size: 14px;
|
|
830
|
-
line-height: 22px;
|
|
831
|
-
display: flow-root;
|
|
832
|
-
color: var(--charcoal-text2);
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
.c4::before {
|
|
836
|
-
display: block;
|
|
837
|
-
width: 0;
|
|
838
|
-
height: 0;
|
|
839
|
-
content: '';
|
|
840
|
-
margin-top: -4px;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.c4::after {
|
|
844
|
-
display: block;
|
|
845
|
-
width: 0;
|
|
846
|
-
height: 0;
|
|
847
|
-
content: '';
|
|
848
|
-
margin-bottom: -4px;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.c1 {
|
|
852
|
-
display: grid;
|
|
853
|
-
grid-template-columns: 1fr;
|
|
854
|
-
grid-gap: 8px;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
278
|
.c0 {
|
|
858
279
|
display: -webkit-box;
|
|
859
280
|
display: -webkit-flex;
|
|
@@ -872,19 +293,18 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
872
293
|
className="c0"
|
|
873
294
|
>
|
|
874
295
|
<div
|
|
875
|
-
aria-label="label"
|
|
876
296
|
aria-orientation="vertical"
|
|
877
|
-
className="
|
|
297
|
+
className="charcoal-radio-group"
|
|
878
298
|
role="radiogroup"
|
|
879
299
|
>
|
|
880
300
|
<label
|
|
881
301
|
aria-disabled={false}
|
|
882
|
-
className="
|
|
302
|
+
className="charcoal-radio__label"
|
|
883
303
|
>
|
|
884
304
|
<input
|
|
885
305
|
aria-invalid={false}
|
|
886
306
|
checked={true}
|
|
887
|
-
className="
|
|
307
|
+
className="charcoal-radio__input"
|
|
888
308
|
disabled={false}
|
|
889
309
|
name="name"
|
|
890
310
|
onChange={[Function]}
|
|
@@ -892,7 +312,7 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
892
312
|
value="1"
|
|
893
313
|
/>
|
|
894
314
|
<div
|
|
895
|
-
className="
|
|
315
|
+
className="charcoal-radio__label_div"
|
|
896
316
|
>
|
|
897
317
|
Value
|
|
898
318
|
1
|
|
@@ -900,12 +320,12 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
900
320
|
</label>
|
|
901
321
|
<label
|
|
902
322
|
aria-disabled={true}
|
|
903
|
-
className="
|
|
323
|
+
className="charcoal-radio__label"
|
|
904
324
|
>
|
|
905
325
|
<input
|
|
906
326
|
aria-invalid={false}
|
|
907
327
|
checked={false}
|
|
908
|
-
className="
|
|
328
|
+
className="charcoal-radio__input"
|
|
909
329
|
disabled={true}
|
|
910
330
|
name="name"
|
|
911
331
|
onChange={[Function]}
|
|
@@ -913,7 +333,7 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
913
333
|
value="2"
|
|
914
334
|
/>
|
|
915
335
|
<div
|
|
916
|
-
className="
|
|
336
|
+
className="charcoal-radio__label_div"
|
|
917
337
|
>
|
|
918
338
|
Value
|
|
919
339
|
2
|
|
@@ -921,12 +341,12 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
921
341
|
</label>
|
|
922
342
|
<label
|
|
923
343
|
aria-disabled={false}
|
|
924
|
-
className="
|
|
344
|
+
className="charcoal-radio__label"
|
|
925
345
|
>
|
|
926
346
|
<input
|
|
927
347
|
aria-invalid={false}
|
|
928
348
|
checked={false}
|
|
929
|
-
className="
|
|
349
|
+
className="charcoal-radio__input"
|
|
930
350
|
disabled={false}
|
|
931
351
|
name="name"
|
|
932
352
|
onChange={[Function]}
|
|
@@ -934,7 +354,7 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
934
354
|
value="3"
|
|
935
355
|
/>
|
|
936
356
|
<div
|
|
937
|
-
className="
|
|
357
|
+
className="charcoal-radio__label_div"
|
|
938
358
|
>
|
|
939
359
|
Value
|
|
940
360
|
3
|
|
@@ -946,150 +366,6 @@ exports[`Storybook Tests Radio PartialDisabled 1`] = `
|
|
|
946
366
|
`;
|
|
947
367
|
|
|
948
368
|
exports[`Storybook Tests Radio Readonly 1`] = `
|
|
949
|
-
.c2 {
|
|
950
|
-
display: grid;
|
|
951
|
-
grid-template-columns: auto 1fr;
|
|
952
|
-
grid-gap: 4px;
|
|
953
|
-
-webkit-align-items: center;
|
|
954
|
-
-webkit-box-align: center;
|
|
955
|
-
-ms-flex-align: center;
|
|
956
|
-
align-items: center;
|
|
957
|
-
cursor: pointer;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
.c2[aria-disabled]:not([aria-disabled='false']) {
|
|
961
|
-
opacity: 0.32;
|
|
962
|
-
cursor: default;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
.c3[type='radio'] {
|
|
966
|
-
-webkit-appearance: none;
|
|
967
|
-
-moz-appearance: none;
|
|
968
|
-
appearance: none;
|
|
969
|
-
display: block;
|
|
970
|
-
box-sizing: border-box;
|
|
971
|
-
margin: 0;
|
|
972
|
-
padding: 6px;
|
|
973
|
-
width: 20px;
|
|
974
|
-
height: 20px;
|
|
975
|
-
cursor: pointer;
|
|
976
|
-
border-radius: 999999px;
|
|
977
|
-
background-color: var(--charcoal-surface1);
|
|
978
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
979
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
.c3[type='radio']:disabled {
|
|
983
|
-
cursor: default;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):hover,
|
|
987
|
-
.c3[type='radio'][aria-disabled='false']:hover {
|
|
988
|
-
background-color: var(--charcoal-surface1-hover);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):active,
|
|
992
|
-
.c3[type='radio'][aria-disabled='false']:active {
|
|
993
|
-
background-color: var(--charcoal-surface1-press);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus,
|
|
997
|
-
.c3[type='radio'][aria-disabled='false']:focus {
|
|
998
|
-
outline: none;
|
|
999
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1003
|
-
.c3[type='radio'][aria-disabled='false']:focus:not(:focus-visible) {
|
|
1004
|
-
box-shadow: none;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1008
|
-
.c3[type='radio'][aria-disabled='false']:focus-visible {
|
|
1009
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
|
|
1013
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true'] {
|
|
1014
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
.c3[type='radio']:not(:disabled):not([aria-disabled])[aria-invalid='true']:focus,
|
|
1018
|
-
.c3[type='radio'][aria-disabled='false'][aria-invalid='true']:focus {
|
|
1019
|
-
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
.c3[type='radio']:not(:checked) {
|
|
1023
|
-
border-width: 2px;
|
|
1024
|
-
border-style: solid;
|
|
1025
|
-
border-color: var(--charcoal-text3);
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
.c3[type='radio']:checked {
|
|
1029
|
-
background-color: var(--charcoal-brand);
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
.c3[type='radio']:checked::after {
|
|
1033
|
-
content: '';
|
|
1034
|
-
display: block;
|
|
1035
|
-
width: 8px;
|
|
1036
|
-
height: 8px;
|
|
1037
|
-
pointer-events: none;
|
|
1038
|
-
background-color: var(--charcoal-text5);
|
|
1039
|
-
border-radius: 999999px;
|
|
1040
|
-
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
1041
|
-
transition: 0.2s background-color,0.2s box-shadow;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover,
|
|
1045
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover {
|
|
1046
|
-
background-color: var(--charcoal-brand-hover);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):hover::after,
|
|
1050
|
-
.c3[type='radio']:checked[aria-disabled='false']:hover::after {
|
|
1051
|
-
background-color: var(--charcoal-text5-hover);
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active,
|
|
1055
|
-
.c3[type='radio']:checked[aria-disabled='false']:active {
|
|
1056
|
-
background-color: var(--charcoal-brand-press);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
.c3[type='radio']:checked:not(:disabled):not([aria-disabled]):active::after,
|
|
1060
|
-
.c3[type='radio']:checked[aria-disabled='false']:active::after {
|
|
1061
|
-
background-color: var(--charcoal-text5-press);
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
.c4 {
|
|
1065
|
-
font-size: 14px;
|
|
1066
|
-
line-height: 22px;
|
|
1067
|
-
display: flow-root;
|
|
1068
|
-
color: var(--charcoal-text2);
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
.c4::before {
|
|
1072
|
-
display: block;
|
|
1073
|
-
width: 0;
|
|
1074
|
-
height: 0;
|
|
1075
|
-
content: '';
|
|
1076
|
-
margin-top: -4px;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
.c4::after {
|
|
1080
|
-
display: block;
|
|
1081
|
-
width: 0;
|
|
1082
|
-
height: 0;
|
|
1083
|
-
content: '';
|
|
1084
|
-
margin-bottom: -4px;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
.c1 {
|
|
1088
|
-
display: grid;
|
|
1089
|
-
grid-template-columns: 1fr;
|
|
1090
|
-
grid-gap: 8px;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
369
|
.c0 {
|
|
1094
370
|
display: -webkit-box;
|
|
1095
371
|
display: -webkit-flex;
|
|
@@ -1108,19 +384,18 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1108
384
|
className="c0"
|
|
1109
385
|
>
|
|
1110
386
|
<div
|
|
1111
|
-
aria-label="label"
|
|
1112
387
|
aria-orientation="vertical"
|
|
1113
|
-
className="
|
|
388
|
+
className="charcoal-radio-group"
|
|
1114
389
|
role="radiogroup"
|
|
1115
390
|
>
|
|
1116
391
|
<label
|
|
1117
392
|
aria-disabled={false}
|
|
1118
|
-
className="
|
|
393
|
+
className="charcoal-radio__label"
|
|
1119
394
|
>
|
|
1120
395
|
<input
|
|
1121
396
|
aria-invalid={false}
|
|
1122
397
|
checked={true}
|
|
1123
|
-
className="
|
|
398
|
+
className="charcoal-radio__input"
|
|
1124
399
|
disabled={false}
|
|
1125
400
|
name="name"
|
|
1126
401
|
onChange={[Function]}
|
|
@@ -1128,7 +403,7 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1128
403
|
value="1"
|
|
1129
404
|
/>
|
|
1130
405
|
<div
|
|
1131
|
-
className="
|
|
406
|
+
className="charcoal-radio__label_div"
|
|
1132
407
|
>
|
|
1133
408
|
Value
|
|
1134
409
|
1
|
|
@@ -1136,12 +411,12 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1136
411
|
</label>
|
|
1137
412
|
<label
|
|
1138
413
|
aria-disabled={true}
|
|
1139
|
-
className="
|
|
414
|
+
className="charcoal-radio__label"
|
|
1140
415
|
>
|
|
1141
416
|
<input
|
|
1142
417
|
aria-invalid={false}
|
|
1143
418
|
checked={false}
|
|
1144
|
-
className="
|
|
419
|
+
className="charcoal-radio__input"
|
|
1145
420
|
disabled={true}
|
|
1146
421
|
name="name"
|
|
1147
422
|
onChange={[Function]}
|
|
@@ -1149,7 +424,7 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1149
424
|
value="2"
|
|
1150
425
|
/>
|
|
1151
426
|
<div
|
|
1152
|
-
className="
|
|
427
|
+
className="charcoal-radio__label_div"
|
|
1153
428
|
>
|
|
1154
429
|
Value
|
|
1155
430
|
2
|
|
@@ -1157,12 +432,12 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1157
432
|
</label>
|
|
1158
433
|
<label
|
|
1159
434
|
aria-disabled={true}
|
|
1160
|
-
className="
|
|
435
|
+
className="charcoal-radio__label"
|
|
1161
436
|
>
|
|
1162
437
|
<input
|
|
1163
438
|
aria-invalid={false}
|
|
1164
439
|
checked={false}
|
|
1165
|
-
className="
|
|
440
|
+
className="charcoal-radio__input"
|
|
1166
441
|
disabled={true}
|
|
1167
442
|
name="name"
|
|
1168
443
|
onChange={[Function]}
|
|
@@ -1170,7 +445,7 @@ exports[`Storybook Tests Radio Readonly 1`] = `
|
|
|
1170
445
|
value="3"
|
|
1171
446
|
/>
|
|
1172
447
|
<div
|
|
1173
|
-
className="
|
|
448
|
+
className="charcoal-radio__label_div"
|
|
1174
449
|
>
|
|
1175
450
|
Value
|
|
1176
451
|
3
|