@ultraviolet/ui 1.28.0 → 1.29.0
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/README.md +14 -7
- package/dist/index.d.ts +51 -2
- package/dist/src/components/ActionBar/index.js +22 -37
- package/dist/src/components/Alert/index.js +27 -41
- package/dist/src/components/Avatar/index.js +48 -69
- package/dist/src/components/Badge/index.js +29 -49
- package/dist/src/components/Banner/index.js +42 -62
- package/dist/src/components/BarChart/Tooltip.js +35 -50
- package/dist/src/components/BarChart/index.js +13 -14
- package/dist/src/components/BarStack/index.js +100 -191
- package/dist/src/components/Breadcrumbs/index.js +29 -39
- package/dist/src/components/Bullet/index.js +42 -55
- package/dist/src/components/Button/index.js +73 -99
- package/dist/src/components/Card/index.js +39 -57
- package/dist/src/components/Carousel/index.js +32 -60
- package/dist/src/components/Checkbox/index.js +153 -341
- package/dist/src/components/CheckboxGroup/index.js +25 -27
- package/dist/src/components/CopyButton/index.js +11 -12
- package/dist/src/components/DateInput/index.js +141 -268
- package/dist/src/components/EmptyState/index.js +68 -83
- package/dist/src/components/Expandable/index.js +13 -20
- package/dist/src/components/GlobalAlert/GlobalAlertLink.js +12 -13
- package/dist/src/components/GlobalAlert/index.js +19 -32
- package/dist/src/components/LineChart/CustomLegend.js +80 -89
- package/dist/src/components/LineChart/Tooltip.js +32 -47
- package/dist/src/components/LineChart/helpers.js +15 -50
- package/dist/src/components/LineChart/index.js +23 -33
- package/dist/src/components/Link/index.js +46 -65
- package/dist/src/components/List/Body.js +9 -15
- package/dist/src/components/List/Cell.js +6 -7
- package/dist/src/components/List/HeaderCell.js +28 -56
- package/dist/src/components/List/HeaderRow.js +9 -16
- package/dist/src/components/List/ListContext.js +5 -6
- package/dist/src/components/List/Row.js +44 -90
- package/dist/src/components/List/SelectBar.js +9 -13
- package/dist/src/components/List/SkeletonRows.js +5 -6
- package/dist/src/components/List/index.js +15 -25
- package/dist/src/components/Loader/index.js +18 -25
- package/dist/src/components/Menu/Item.js +39 -49
- package/dist/src/components/Menu/index.js +31 -56
- package/dist/src/components/MenuV2/Item.js +39 -49
- package/dist/src/components/MenuV2/index.js +28 -47
- package/dist/src/components/Meter/index.js +25 -47
- package/dist/src/components/Modal/Dialog.js +33 -58
- package/dist/src/components/Modal/Disclosure.js +8 -9
- package/dist/src/components/Modal/index.js +26 -33
- package/dist/src/components/Notice/index.js +21 -27
- package/dist/src/components/NumberInput/index.js +73 -137
- package/dist/src/components/Pagination/getPageNumbers.js +1 -4
- package/dist/src/components/Pagination/index.js +17 -27
- package/dist/src/components/PasswordCheck/index.js +26 -32
- package/dist/src/components/PasswordStrengthMeter/index.js +25 -44
- package/dist/src/components/PieChart/Legends.js +71 -107
- package/dist/src/components/PieChart/Tooltip.js +33 -36
- package/dist/src/components/PieChart/index.js +13 -17
- package/dist/src/components/Popover/index.js +58 -75
- package/dist/src/components/Popup/helpers.js +13 -15
- package/dist/src/components/Popup/index.js +55 -98
- package/dist/src/components/ProgressBar/index.js +31 -49
- package/dist/src/components/Radio/index.js +58 -113
- package/dist/src/components/RadioGroup/index.js +26 -28
- package/dist/src/components/Row/index.js +25 -31
- package/dist/src/components/SelectInput/index.js +357 -410
- package/dist/src/components/SelectableCard/index.js +73 -115
- package/dist/src/components/Separator/index.js +52 -73
- package/dist/src/components/Skeleton/Block.js +23 -41
- package/dist/src/components/Skeleton/Blocks.js +23 -41
- package/dist/src/components/Skeleton/BoxWithIcon.js +21 -36
- package/dist/src/components/Skeleton/Donut.js +3 -6
- package/dist/src/components/Skeleton/IconSkeleton.js +13 -31
- package/dist/src/components/Skeleton/Line.js +5 -11
- package/dist/src/components/Skeleton/List.js +22 -31
- package/dist/src/components/Skeleton/Slider.js +25 -46
- package/dist/src/components/Skeleton/Square.js +3 -6
- package/dist/src/components/Skeleton/index.js +17 -33
- package/dist/src/components/Snippet/index.js +82 -137
- package/dist/src/components/Stack/index.js +11 -14
- package/dist/src/components/Status/index.js +48 -78
- package/dist/src/components/StepList/index.js +45 -63
- package/dist/src/components/Stepper/index.js +74 -129
- package/dist/src/components/SwitchButton/FocusOverlay.js +13 -23
- package/dist/src/components/SwitchButton/index.js +36 -62
- package/dist/src/components/Table/Body.js +5 -8
- package/dist/src/components/Table/Cell.js +14 -20
- package/dist/src/components/Table/Header.js +8 -14
- package/dist/src/components/Table/HeaderCell.js +40 -56
- package/dist/src/components/Table/HeaderRow.js +4 -5
- package/dist/src/components/Table/Row.js +10 -14
- package/dist/src/components/Table/SelectBar.js +9 -13
- package/dist/src/components/Table/SkeletonRows.js +5 -6
- package/dist/src/components/Table/TableContext.js +6 -7
- package/dist/src/components/Table/index.js +44 -50
- package/dist/src/components/Tabs/Tab.js +57 -118
- package/dist/src/components/Tabs/TabMenu.js +32 -38
- package/dist/src/components/Tabs/TabMenuItem.js +9 -13
- package/dist/src/components/Tabs/index.js +24 -43
- package/dist/src/components/Tag/index.js +57 -74
- package/dist/src/components/TagInput/index.js +63 -94
- package/dist/src/components/TagList/index.js +22 -35
- package/dist/src/components/Text/index.js +29 -31
- package/dist/src/components/TextArea/index.js +240 -0
- package/dist/src/components/TextInput/index.js +166 -260
- package/dist/src/components/TimeInput/index.js +10 -13
- package/dist/src/components/Toaster/index.js +51 -67
- package/dist/src/components/Toggle/index.js +62 -129
- package/dist/src/components/ToggleGroup/index.js +21 -23
- package/dist/src/components/Tooltip/index.js +28 -31
- package/dist/src/components/VerificationCode/index.js +55 -90
- package/dist/src/index.js +1 -0
- package/dist/src/utils/ids.js +1 -6
- package/package.json +3 -3
|
@@ -11,32 +11,22 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
11
11
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
12
|
const ErrorText = /*#__PURE__*/_styled(Text, {
|
|
13
13
|
target: "eqr7bqq7"
|
|
14
|
-
})("padding-top:",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
18
|
-
return `${theme.space['0.5']}`;
|
|
19
|
-
}, ";");
|
|
14
|
+
})("padding-top:", ({
|
|
15
|
+
theme
|
|
16
|
+
}) => `${theme.space['0.5']}`, ";");
|
|
20
17
|
const InnerCheckbox = /*#__PURE__*/_styled("rect", {
|
|
21
18
|
target: "eqr7bqq6"
|
|
22
|
-
})("fill:",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, ";stroke:", _ref3 => {
|
|
28
|
-
let {
|
|
29
|
-
theme
|
|
30
|
-
} = _ref3;
|
|
31
|
-
return theme.colors.neutral.border;
|
|
32
|
-
}, ";");
|
|
19
|
+
})("fill:", ({
|
|
20
|
+
theme
|
|
21
|
+
}) => theme.colors.neutral.background, ";stroke:", ({
|
|
22
|
+
theme
|
|
23
|
+
}) => theme.colors.neutral.border, ";");
|
|
33
24
|
const CheckMixedMark = /*#__PURE__*/_styled("rect", {
|
|
34
25
|
target: "eqr7bqq5"
|
|
35
26
|
})();
|
|
36
|
-
const CheckboxIconContainer =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} = _ref4;
|
|
27
|
+
const CheckboxIconContainer = ({
|
|
28
|
+
children
|
|
29
|
+
}) => {
|
|
40
30
|
const theme = useTheme();
|
|
41
31
|
return jsxs("g", {
|
|
42
32
|
children: [jsx(InnerCheckbox, {
|
|
@@ -51,37 +41,19 @@ const CheckboxIconContainer = _ref4 => {
|
|
|
51
41
|
};
|
|
52
42
|
const StyledIcon = /*#__PURE__*/_styled('svg', {
|
|
53
43
|
target: "eqr7bqq4"
|
|
54
|
-
})("border-radius:",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}, "px
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} = _ref7;
|
|
68
|
-
return size;
|
|
69
|
-
}, "px;min-width:", _ref8 => {
|
|
70
|
-
let {
|
|
71
|
-
size
|
|
72
|
-
} = _ref8;
|
|
73
|
-
return size;
|
|
74
|
-
}, "px;min-height:", _ref9 => {
|
|
75
|
-
let {
|
|
76
|
-
size
|
|
77
|
-
} = _ref9;
|
|
78
|
-
return size;
|
|
79
|
-
}, "px;& path{fill:", _ref10 => {
|
|
80
|
-
let {
|
|
81
|
-
theme
|
|
82
|
-
} = _ref10;
|
|
83
|
-
return theme.colors.neutral.background;
|
|
84
|
-
}, ";transform:translate(2px, 2px);transform:scale(0);}");
|
|
44
|
+
})("border-radius:", ({
|
|
45
|
+
theme
|
|
46
|
+
}) => theme.radii.default, ";height:", ({
|
|
47
|
+
size
|
|
48
|
+
}) => size, "px;width:", ({
|
|
49
|
+
size
|
|
50
|
+
}) => size, "px;min-width:", ({
|
|
51
|
+
size
|
|
52
|
+
}) => size, "px;min-height:", ({
|
|
53
|
+
size
|
|
54
|
+
}) => size, "px;& path{fill:", ({
|
|
55
|
+
theme
|
|
56
|
+
}) => theme.colors.neutral.background, ";transform:translate(2px, 2px);transform:scale(0);}");
|
|
85
57
|
const StyledLabel = /*#__PURE__*/_styled('label', {
|
|
86
58
|
target: "eqr7bqq3"
|
|
87
59
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -95,275 +67,116 @@ const StyledLabel = /*#__PURE__*/_styled('label', {
|
|
|
95
67
|
const CheckboxInput = /*#__PURE__*/_styled('input', {
|
|
96
68
|
shouldForwardProp: prop => !['size'].includes(prop),
|
|
97
69
|
target: "eqr7bqq2"
|
|
98
|
-
})("position:absolute;white-space:nowrap;height:",
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
} = _ref17;
|
|
132
|
-
return theme.colors.primary.background;
|
|
133
|
-
}, ";fill:", _ref18 => {
|
|
134
|
-
let {
|
|
135
|
-
theme
|
|
136
|
-
} = _ref18;
|
|
137
|
-
return theme.colors.danger.background;
|
|
138
|
-
}, ";outline:1px solid ", _ref19 => {
|
|
139
|
-
let {
|
|
140
|
-
theme
|
|
141
|
-
} = _ref19;
|
|
142
|
-
return theme.shadows.focusPrimary;
|
|
143
|
-
}, ";", InnerCheckbox, "{stroke:", _ref20 => {
|
|
144
|
-
let {
|
|
145
|
-
theme
|
|
146
|
-
} = _ref20;
|
|
147
|
-
return theme.colors.primary.borderHover;
|
|
148
|
-
}, ";fill:", _ref21 => {
|
|
149
|
-
let {
|
|
150
|
-
theme
|
|
151
|
-
} = _ref21;
|
|
152
|
-
return theme.colors.primary.backgroundHover;
|
|
153
|
-
}, ";}}&[aria-invalid='true']:focus+", StyledIcon, "{background-color:", _ref22 => {
|
|
154
|
-
let {
|
|
155
|
-
theme
|
|
156
|
-
} = _ref22;
|
|
157
|
-
return theme.colors.danger.background;
|
|
158
|
-
}, ";fill:", _ref23 => {
|
|
159
|
-
let {
|
|
160
|
-
theme
|
|
161
|
-
} = _ref23;
|
|
162
|
-
return theme.colors.danger.background;
|
|
163
|
-
}, ";outline:1px solid ", _ref24 => {
|
|
164
|
-
let {
|
|
165
|
-
theme
|
|
166
|
-
} = _ref24;
|
|
167
|
-
return theme.shadows.focusDanger;
|
|
168
|
-
}, ";", InnerCheckbox, "{stroke:", _ref25 => {
|
|
169
|
-
let {
|
|
170
|
-
theme
|
|
171
|
-
} = _ref25;
|
|
172
|
-
return theme.colors.danger.borderHover;
|
|
173
|
-
}, ";fill:", _ref26 => {
|
|
174
|
-
let {
|
|
175
|
-
theme
|
|
176
|
-
} = _ref26;
|
|
177
|
-
return theme.colors.danger.backgroundHover;
|
|
178
|
-
}, ";}}");
|
|
70
|
+
})("position:absolute;white-space:nowrap;height:", ({
|
|
71
|
+
size
|
|
72
|
+
}) => size, "px;width:", ({
|
|
73
|
+
size
|
|
74
|
+
}) => size, "px;opacity:0;border-width:0;&:not(:disabled){cursor:pointer;}&:disabled{cursor:not-allowed;}&:not(:disabled){&:checked+", StyledIcon, ",&[aria-checked='mixed']+", StyledIcon, "{fill:", ({
|
|
75
|
+
theme
|
|
76
|
+
}) => theme.colors.primary.backgroundStrong, ";", InnerCheckbox, "{stroke:", ({
|
|
77
|
+
theme
|
|
78
|
+
}) => theme.colors.primary.borderStrong, ";}}&[aria-invalid='true']+", StyledIcon, ",&[aria-invalid='mixed']+", StyledIcon, "{fill:", ({
|
|
79
|
+
theme
|
|
80
|
+
}) => theme.colors.danger.background, ";", InnerCheckbox, "{stroke:", ({
|
|
81
|
+
theme
|
|
82
|
+
}) => theme.colors.danger.border, ";}}}&:focus+", StyledIcon, "{background-color:", ({
|
|
83
|
+
theme
|
|
84
|
+
}) => theme.colors.primary.background, ";fill:", ({
|
|
85
|
+
theme
|
|
86
|
+
}) => theme.colors.danger.background, ";outline:1px solid ", ({
|
|
87
|
+
theme
|
|
88
|
+
}) => theme.shadows.focusPrimary, ";", InnerCheckbox, "{stroke:", ({
|
|
89
|
+
theme
|
|
90
|
+
}) => theme.colors.primary.borderHover, ";fill:", ({
|
|
91
|
+
theme
|
|
92
|
+
}) => theme.colors.primary.backgroundHover, ";}}&[aria-invalid='true']:focus+", StyledIcon, "{background-color:", ({
|
|
93
|
+
theme
|
|
94
|
+
}) => theme.colors.danger.background, ";fill:", ({
|
|
95
|
+
theme
|
|
96
|
+
}) => theme.colors.danger.background, ";outline:1px solid ", ({
|
|
97
|
+
theme
|
|
98
|
+
}) => theme.shadows.focusDanger, ";", InnerCheckbox, "{stroke:", ({
|
|
99
|
+
theme
|
|
100
|
+
}) => theme.colors.danger.borderHover, ";fill:", ({
|
|
101
|
+
theme
|
|
102
|
+
}) => theme.colors.danger.backgroundHover, ";}}");
|
|
179
103
|
const CheckboxContainer = /*#__PURE__*/_styled("div", {
|
|
180
104
|
target: "eqr7bqq1"
|
|
181
|
-
})("position:relative;display:inline-flex;align-items:start;gap:",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}, ";",
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}, ";fill:",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}, ";", InnerCheckbox, "{stroke:",
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}, ";fill:",
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}, ";", InnerCheckbox, "{stroke:",
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}, ";", InnerCheckbox, "{stroke:", _ref42 => {
|
|
257
|
-
let {
|
|
258
|
-
theme
|
|
259
|
-
} = _ref42;
|
|
260
|
-
return theme.colors.primary.borderStrongDisabled;
|
|
261
|
-
}, ";fill:", _ref43 => {
|
|
262
|
-
let {
|
|
263
|
-
theme
|
|
264
|
-
} = _ref43;
|
|
265
|
-
return theme.colors.primary.backgroundStrongDisabled;
|
|
266
|
-
}, ";}}}", CheckboxInput, ":checked+", StyledIcon, " path{transform-origin:center;transition:200ms transform ease-in-out;transform:scale(1);transform:translate(2px, 2px);}", CheckboxInput, ":checked+", StyledIcon, " ", InnerCheckbox, "{fill:", _ref44 => {
|
|
267
|
-
let {
|
|
268
|
-
theme
|
|
269
|
-
} = _ref44;
|
|
270
|
-
return theme.colors.primary.backgroundStrong;
|
|
271
|
-
}, ";stroke:", _ref45 => {
|
|
272
|
-
let {
|
|
273
|
-
theme
|
|
274
|
-
} = _ref45;
|
|
275
|
-
return theme.colors.primary.borderStrong;
|
|
276
|
-
}, ";}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, " ", InnerCheckbox, "{fill:", _ref46 => {
|
|
277
|
-
let {
|
|
278
|
-
theme
|
|
279
|
-
} = _ref46;
|
|
280
|
-
return theme.colors.danger.backgroundStrong;
|
|
281
|
-
}, ";stroke:", _ref47 => {
|
|
282
|
-
let {
|
|
283
|
-
theme
|
|
284
|
-
} = _ref47;
|
|
285
|
-
return theme.colors.danger.borderStrong;
|
|
286
|
-
}, ";}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{", CheckMixedMark, "{fill:", _ref48 => {
|
|
287
|
-
let {
|
|
288
|
-
theme
|
|
289
|
-
} = _ref48;
|
|
290
|
-
return theme.colors.neutral.iconStronger;
|
|
291
|
-
}, ";}", InnerCheckbox, "{fill:", _ref49 => {
|
|
292
|
-
let {
|
|
293
|
-
theme
|
|
294
|
-
} = _ref49;
|
|
295
|
-
return theme.colors.primary.backgroundStrong;
|
|
296
|
-
}, ";stroke:", _ref50 => {
|
|
297
|
-
let {
|
|
298
|
-
theme
|
|
299
|
-
} = _ref50;
|
|
300
|
-
return theme.colors.primary.borderStrong;
|
|
301
|
-
}, ";}}&:hover[aria-disabled='false']{", CheckboxInput, "[aria-invalid='false']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref51 => {
|
|
302
|
-
let {
|
|
303
|
-
theme
|
|
304
|
-
} = _ref51;
|
|
305
|
-
return theme.colors.primary.borderHover;
|
|
306
|
-
}, ";fill:", _ref52 => {
|
|
307
|
-
let {
|
|
308
|
-
theme
|
|
309
|
-
} = _ref52;
|
|
310
|
-
return theme.colors.primary.backgroundHover;
|
|
311
|
-
}, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref53 => {
|
|
312
|
-
let {
|
|
313
|
-
theme
|
|
314
|
-
} = _ref53;
|
|
315
|
-
return theme.colors.primary.borderStrongHover;
|
|
316
|
-
}, ";fill:", _ref54 => {
|
|
317
|
-
let {
|
|
318
|
-
theme
|
|
319
|
-
} = _ref54;
|
|
320
|
-
return theme.colors.primary.backgroundStrongHover;
|
|
321
|
-
}, ";}&[aria-checked='mixed']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref55 => {
|
|
322
|
-
let {
|
|
323
|
-
theme
|
|
324
|
-
} = _ref55;
|
|
325
|
-
return theme.colors.primary.borderStrongHover;
|
|
326
|
-
}, ";fill:", _ref56 => {
|
|
327
|
-
let {
|
|
328
|
-
theme
|
|
329
|
-
} = _ref56;
|
|
330
|
-
return theme.colors.primary.backgroundStrongHover;
|
|
331
|
-
}, ";}}", CheckboxInput, "[aria-invalid='true']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref57 => {
|
|
332
|
-
let {
|
|
333
|
-
theme
|
|
334
|
-
} = _ref57;
|
|
335
|
-
return theme.colors.danger.borderHover;
|
|
336
|
-
}, ";fill:", _ref58 => {
|
|
337
|
-
let {
|
|
338
|
-
theme
|
|
339
|
-
} = _ref58;
|
|
340
|
-
return theme.colors.danger.backgroundHover;
|
|
341
|
-
}, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref59 => {
|
|
342
|
-
let {
|
|
343
|
-
theme
|
|
344
|
-
} = _ref59;
|
|
345
|
-
return theme.colors.danger.borderStrongHover;
|
|
346
|
-
}, ";fill:", _ref60 => {
|
|
347
|
-
let {
|
|
348
|
-
theme
|
|
349
|
-
} = _ref60;
|
|
350
|
-
return theme.colors.danger.backgroundStrongHover;
|
|
351
|
-
}, ";}}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", _ref61 => {
|
|
352
|
-
let {
|
|
353
|
-
theme
|
|
354
|
-
} = _ref61;
|
|
355
|
-
return theme.colors.danger.backgroundStrong;
|
|
356
|
-
}, ";", InnerCheckbox, "{stroke:", _ref62 => {
|
|
357
|
-
let {
|
|
358
|
-
theme
|
|
359
|
-
} = _ref62;
|
|
360
|
-
return theme.colors.danger.backgroundStrong;
|
|
361
|
-
}, ";fill:", _ref63 => {
|
|
362
|
-
let {
|
|
363
|
-
theme
|
|
364
|
-
} = _ref63;
|
|
365
|
-
return theme.colors.danger.background;
|
|
366
|
-
}, ";}}");
|
|
105
|
+
})("position:relative;display:inline-flex;align-items:start;gap:", ({
|
|
106
|
+
theme
|
|
107
|
+
}) => theme.space['1'], ";width:100%;", StyledLabel, "{cursor:pointer;}&[aria-disabled='true']{cursor:not-allowed;color:", ({
|
|
108
|
+
theme
|
|
109
|
+
}) => theme.colors.neutral.textDisabled, ";", StyledLabel, "{cursor:not-allowed;}", StyledIcon, "{fill:", ({
|
|
110
|
+
theme
|
|
111
|
+
}) => theme.colors.neutral.borderDisabled, ";", InnerCheckbox, "{stroke:", ({
|
|
112
|
+
theme
|
|
113
|
+
}) => theme.colors.neutral.borderStrongDisabled, ";fill:", ({
|
|
114
|
+
theme
|
|
115
|
+
}) => theme.colors.neutral.backgroundDisabled, ";}}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, "{fill:", ({
|
|
116
|
+
theme
|
|
117
|
+
}) => theme.colors.danger.backgroundStrongDisabled, ";", InnerCheckbox, "{stroke:", ({
|
|
118
|
+
theme
|
|
119
|
+
}) => theme.colors.danger.borderStrongDisabled, ";fill:", ({
|
|
120
|
+
theme
|
|
121
|
+
}) => theme.colors.danger.backgroundStrongDisabled, ";}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", ({
|
|
122
|
+
theme
|
|
123
|
+
}) => theme.colors.danger.background, ";", InnerCheckbox, "{stroke:", ({
|
|
124
|
+
theme
|
|
125
|
+
}) => theme.colors.danger.borderDisabled, ";fill:", ({
|
|
126
|
+
theme
|
|
127
|
+
}) => theme.colors.danger.background, ";}}", CheckboxInput, ":checked+", StyledIcon, "{fill:", ({
|
|
128
|
+
theme
|
|
129
|
+
}) => theme.colors.primary.backgroundStrongDisabled, ";", InnerCheckbox, "{stroke:", ({
|
|
130
|
+
theme
|
|
131
|
+
}) => theme.colors.primary.borderDisabled, ";fill:", ({
|
|
132
|
+
theme
|
|
133
|
+
}) => theme.colors.primary.borderDisabled, ";}}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{fill:", ({
|
|
134
|
+
theme
|
|
135
|
+
}) => theme.colors.primary.backgroundStrongDisabled, ";", InnerCheckbox, "{stroke:", ({
|
|
136
|
+
theme
|
|
137
|
+
}) => theme.colors.primary.borderStrongDisabled, ";fill:", ({
|
|
138
|
+
theme
|
|
139
|
+
}) => theme.colors.primary.backgroundStrongDisabled, ";}}}", CheckboxInput, ":checked+", StyledIcon, " path{transform-origin:center;transition:200ms transform ease-in-out;transform:scale(1);transform:translate(2px, 2px);}", CheckboxInput, ":checked+", StyledIcon, " ", InnerCheckbox, "{fill:", ({
|
|
140
|
+
theme
|
|
141
|
+
}) => theme.colors.primary.backgroundStrong, ";stroke:", ({
|
|
142
|
+
theme
|
|
143
|
+
}) => theme.colors.primary.borderStrong, ";}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, " ", InnerCheckbox, "{fill:", ({
|
|
144
|
+
theme
|
|
145
|
+
}) => theme.colors.danger.backgroundStrong, ";stroke:", ({
|
|
146
|
+
theme
|
|
147
|
+
}) => theme.colors.danger.borderStrong, ";}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{", CheckMixedMark, "{fill:", ({
|
|
148
|
+
theme
|
|
149
|
+
}) => theme.colors.neutral.iconStronger, ";}", InnerCheckbox, "{fill:", ({
|
|
150
|
+
theme
|
|
151
|
+
}) => theme.colors.primary.backgroundStrong, ";stroke:", ({
|
|
152
|
+
theme
|
|
153
|
+
}) => theme.colors.primary.borderStrong, ";}}&:hover[aria-disabled='false']{", CheckboxInput, "[aria-invalid='false']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", ({
|
|
154
|
+
theme
|
|
155
|
+
}) => theme.colors.primary.borderHover, ";fill:", ({
|
|
156
|
+
theme
|
|
157
|
+
}) => theme.colors.primary.backgroundHover, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", ({
|
|
158
|
+
theme
|
|
159
|
+
}) => theme.colors.primary.borderStrongHover, ";fill:", ({
|
|
160
|
+
theme
|
|
161
|
+
}) => theme.colors.primary.backgroundStrongHover, ";}&[aria-checked='mixed']+", StyledIcon, " ", InnerCheckbox, "{stroke:", ({
|
|
162
|
+
theme
|
|
163
|
+
}) => theme.colors.primary.borderStrongHover, ";fill:", ({
|
|
164
|
+
theme
|
|
165
|
+
}) => theme.colors.primary.backgroundStrongHover, ";}}", CheckboxInput, "[aria-invalid='true']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", ({
|
|
166
|
+
theme
|
|
167
|
+
}) => theme.colors.danger.borderHover, ";fill:", ({
|
|
168
|
+
theme
|
|
169
|
+
}) => theme.colors.danger.backgroundHover, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", ({
|
|
170
|
+
theme
|
|
171
|
+
}) => theme.colors.danger.borderStrongHover, ";fill:", ({
|
|
172
|
+
theme
|
|
173
|
+
}) => theme.colors.danger.backgroundStrongHover, ";}}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", ({
|
|
174
|
+
theme
|
|
175
|
+
}) => theme.colors.danger.backgroundStrong, ";", InnerCheckbox, "{stroke:", ({
|
|
176
|
+
theme
|
|
177
|
+
}) => theme.colors.danger.backgroundStrong, ";fill:", ({
|
|
178
|
+
theme
|
|
179
|
+
}) => theme.colors.danger.background, ";}}");
|
|
367
180
|
const StyledActivityContainer = /*#__PURE__*/_styled("div", {
|
|
368
181
|
target: "eqr7bqq0"
|
|
369
182
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -377,28 +190,27 @@ const StyledActivityContainer = /*#__PURE__*/_styled("div", {
|
|
|
377
190
|
/**
|
|
378
191
|
* Checkbox is an input component used to select or deselect an option.
|
|
379
192
|
*/
|
|
380
|
-
const Checkbox = /*#__PURE__*/forwardRef((
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
} = _ref64;
|
|
193
|
+
const Checkbox = /*#__PURE__*/forwardRef(({
|
|
194
|
+
checked = false,
|
|
195
|
+
onChange,
|
|
196
|
+
onFocus,
|
|
197
|
+
onBlur,
|
|
198
|
+
error,
|
|
199
|
+
name,
|
|
200
|
+
helper,
|
|
201
|
+
value,
|
|
202
|
+
size = 24,
|
|
203
|
+
children,
|
|
204
|
+
progress = false,
|
|
205
|
+
disabled = false,
|
|
206
|
+
autoFocus = false,
|
|
207
|
+
className,
|
|
208
|
+
'data-visibility': dataVisibility,
|
|
209
|
+
'aria-label': ariaLabel,
|
|
210
|
+
required,
|
|
211
|
+
'data-testid': dataTestId,
|
|
212
|
+
tooltip
|
|
213
|
+
}, ref) => {
|
|
402
214
|
const [state, setState] = useState(checked);
|
|
403
215
|
const id = useId();
|
|
404
216
|
const computedName = name ?? id;
|
|
@@ -8,20 +8,19 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
8
8
|
|
|
9
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10
10
|
const CheckboxGroupContext = /*#__PURE__*/createContext(undefined);
|
|
11
|
-
const CheckboxGroupCheckbox =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
11
|
+
const CheckboxGroupCheckbox = ({
|
|
12
|
+
onFocus,
|
|
13
|
+
onBlur,
|
|
14
|
+
disabled,
|
|
15
|
+
error,
|
|
16
|
+
name,
|
|
17
|
+
value,
|
|
18
|
+
children,
|
|
19
|
+
helper,
|
|
20
|
+
className,
|
|
21
|
+
autoFocus,
|
|
22
|
+
'data-testid': dataTestId
|
|
23
|
+
}) => {
|
|
25
24
|
const context = useContext(CheckboxGroupContext);
|
|
26
25
|
if (!context) {
|
|
27
26
|
throw new Error('CheckboxGroup.Checkbox can only be used inside a CheckboxGroup');
|
|
@@ -72,19 +71,18 @@ const StyledRequiredIcon = /*#__PURE__*/_styled(Icon, {
|
|
|
72
71
|
/**
|
|
73
72
|
* CheckboxGroup is a component that groups a set of checkboxes together with a legend and helper/error text.
|
|
74
73
|
*/
|
|
75
|
-
const CheckboxGroup =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
} = _ref2;
|
|
74
|
+
const CheckboxGroup = ({
|
|
75
|
+
legend,
|
|
76
|
+
value,
|
|
77
|
+
className,
|
|
78
|
+
helper,
|
|
79
|
+
error,
|
|
80
|
+
direction = 'column',
|
|
81
|
+
children,
|
|
82
|
+
onChange,
|
|
83
|
+
name,
|
|
84
|
+
required = false
|
|
85
|
+
}) => {
|
|
88
86
|
const contextValue = useMemo(() => ({
|
|
89
87
|
groupName: name,
|
|
90
88
|
groupValues: value ?? [],
|
|
@@ -6,18 +6,17 @@ const COPY_DURATION = 2500;
|
|
|
6
6
|
/**
|
|
7
7
|
* CopyButton is a button that copies a given value to the clipboard.
|
|
8
8
|
*/
|
|
9
|
-
const CopyButton =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ref;
|
|
9
|
+
const CopyButton = ({
|
|
10
|
+
size = 'small',
|
|
11
|
+
value,
|
|
12
|
+
copyText = 'Copy',
|
|
13
|
+
copiedText = 'Copied!',
|
|
14
|
+
sentiment = 'primary',
|
|
15
|
+
noBorder,
|
|
16
|
+
bordered,
|
|
17
|
+
className,
|
|
18
|
+
'data-testid': dataTestId
|
|
19
|
+
}) => {
|
|
21
20
|
const [isCopied, setCopied] = useClipboard(value, {
|
|
22
21
|
successDuration: COPY_DURATION
|
|
23
22
|
});
|