@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.
Files changed (111) hide show
  1. package/README.md +14 -7
  2. package/dist/index.d.ts +51 -2
  3. package/dist/src/components/ActionBar/index.js +22 -37
  4. package/dist/src/components/Alert/index.js +27 -41
  5. package/dist/src/components/Avatar/index.js +48 -69
  6. package/dist/src/components/Badge/index.js +29 -49
  7. package/dist/src/components/Banner/index.js +42 -62
  8. package/dist/src/components/BarChart/Tooltip.js +35 -50
  9. package/dist/src/components/BarChart/index.js +13 -14
  10. package/dist/src/components/BarStack/index.js +100 -191
  11. package/dist/src/components/Breadcrumbs/index.js +29 -39
  12. package/dist/src/components/Bullet/index.js +42 -55
  13. package/dist/src/components/Button/index.js +73 -99
  14. package/dist/src/components/Card/index.js +39 -57
  15. package/dist/src/components/Carousel/index.js +32 -60
  16. package/dist/src/components/Checkbox/index.js +153 -341
  17. package/dist/src/components/CheckboxGroup/index.js +25 -27
  18. package/dist/src/components/CopyButton/index.js +11 -12
  19. package/dist/src/components/DateInput/index.js +141 -268
  20. package/dist/src/components/EmptyState/index.js +68 -83
  21. package/dist/src/components/Expandable/index.js +13 -20
  22. package/dist/src/components/GlobalAlert/GlobalAlertLink.js +12 -13
  23. package/dist/src/components/GlobalAlert/index.js +19 -32
  24. package/dist/src/components/LineChart/CustomLegend.js +80 -89
  25. package/dist/src/components/LineChart/Tooltip.js +32 -47
  26. package/dist/src/components/LineChart/helpers.js +15 -50
  27. package/dist/src/components/LineChart/index.js +23 -33
  28. package/dist/src/components/Link/index.js +46 -65
  29. package/dist/src/components/List/Body.js +9 -15
  30. package/dist/src/components/List/Cell.js +6 -7
  31. package/dist/src/components/List/HeaderCell.js +28 -56
  32. package/dist/src/components/List/HeaderRow.js +9 -16
  33. package/dist/src/components/List/ListContext.js +5 -6
  34. package/dist/src/components/List/Row.js +44 -90
  35. package/dist/src/components/List/SelectBar.js +9 -13
  36. package/dist/src/components/List/SkeletonRows.js +5 -6
  37. package/dist/src/components/List/index.js +15 -25
  38. package/dist/src/components/Loader/index.js +18 -25
  39. package/dist/src/components/Menu/Item.js +39 -49
  40. package/dist/src/components/Menu/index.js +31 -56
  41. package/dist/src/components/MenuV2/Item.js +39 -49
  42. package/dist/src/components/MenuV2/index.js +28 -47
  43. package/dist/src/components/Meter/index.js +25 -47
  44. package/dist/src/components/Modal/Dialog.js +33 -58
  45. package/dist/src/components/Modal/Disclosure.js +8 -9
  46. package/dist/src/components/Modal/index.js +26 -33
  47. package/dist/src/components/Notice/index.js +21 -27
  48. package/dist/src/components/NumberInput/index.js +73 -137
  49. package/dist/src/components/Pagination/getPageNumbers.js +1 -4
  50. package/dist/src/components/Pagination/index.js +17 -27
  51. package/dist/src/components/PasswordCheck/index.js +26 -32
  52. package/dist/src/components/PasswordStrengthMeter/index.js +25 -44
  53. package/dist/src/components/PieChart/Legends.js +71 -107
  54. package/dist/src/components/PieChart/Tooltip.js +33 -36
  55. package/dist/src/components/PieChart/index.js +13 -17
  56. package/dist/src/components/Popover/index.js +58 -75
  57. package/dist/src/components/Popup/helpers.js +13 -15
  58. package/dist/src/components/Popup/index.js +55 -98
  59. package/dist/src/components/ProgressBar/index.js +31 -49
  60. package/dist/src/components/Radio/index.js +58 -113
  61. package/dist/src/components/RadioGroup/index.js +26 -28
  62. package/dist/src/components/Row/index.js +25 -31
  63. package/dist/src/components/SelectInput/index.js +357 -410
  64. package/dist/src/components/SelectableCard/index.js +73 -115
  65. package/dist/src/components/Separator/index.js +52 -73
  66. package/dist/src/components/Skeleton/Block.js +23 -41
  67. package/dist/src/components/Skeleton/Blocks.js +23 -41
  68. package/dist/src/components/Skeleton/BoxWithIcon.js +21 -36
  69. package/dist/src/components/Skeleton/Donut.js +3 -6
  70. package/dist/src/components/Skeleton/IconSkeleton.js +13 -31
  71. package/dist/src/components/Skeleton/Line.js +5 -11
  72. package/dist/src/components/Skeleton/List.js +22 -31
  73. package/dist/src/components/Skeleton/Slider.js +25 -46
  74. package/dist/src/components/Skeleton/Square.js +3 -6
  75. package/dist/src/components/Skeleton/index.js +17 -33
  76. package/dist/src/components/Snippet/index.js +82 -137
  77. package/dist/src/components/Stack/index.js +11 -14
  78. package/dist/src/components/Status/index.js +48 -78
  79. package/dist/src/components/StepList/index.js +45 -63
  80. package/dist/src/components/Stepper/index.js +74 -129
  81. package/dist/src/components/SwitchButton/FocusOverlay.js +13 -23
  82. package/dist/src/components/SwitchButton/index.js +36 -62
  83. package/dist/src/components/Table/Body.js +5 -8
  84. package/dist/src/components/Table/Cell.js +14 -20
  85. package/dist/src/components/Table/Header.js +8 -14
  86. package/dist/src/components/Table/HeaderCell.js +40 -56
  87. package/dist/src/components/Table/HeaderRow.js +4 -5
  88. package/dist/src/components/Table/Row.js +10 -14
  89. package/dist/src/components/Table/SelectBar.js +9 -13
  90. package/dist/src/components/Table/SkeletonRows.js +5 -6
  91. package/dist/src/components/Table/TableContext.js +6 -7
  92. package/dist/src/components/Table/index.js +44 -50
  93. package/dist/src/components/Tabs/Tab.js +57 -118
  94. package/dist/src/components/Tabs/TabMenu.js +32 -38
  95. package/dist/src/components/Tabs/TabMenuItem.js +9 -13
  96. package/dist/src/components/Tabs/index.js +24 -43
  97. package/dist/src/components/Tag/index.js +57 -74
  98. package/dist/src/components/TagInput/index.js +63 -94
  99. package/dist/src/components/TagList/index.js +22 -35
  100. package/dist/src/components/Text/index.js +29 -31
  101. package/dist/src/components/TextArea/index.js +240 -0
  102. package/dist/src/components/TextInput/index.js +166 -260
  103. package/dist/src/components/TimeInput/index.js +10 -13
  104. package/dist/src/components/Toaster/index.js +51 -67
  105. package/dist/src/components/Toggle/index.js +62 -129
  106. package/dist/src/components/ToggleGroup/index.js +21 -23
  107. package/dist/src/components/Tooltip/index.js +28 -31
  108. package/dist/src/components/VerificationCode/index.js +55 -90
  109. package/dist/src/index.js +1 -0
  110. package/dist/src/utils/ids.js +1 -6
  111. 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:", _ref => {
15
- let {
16
- theme
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:", _ref2 => {
23
- let {
24
- theme
25
- } = _ref2;
26
- return theme.colors.neutral.background;
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 = _ref4 => {
37
- let {
38
- children
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:", _ref5 => {
55
- let {
56
- theme
57
- } = _ref5;
58
- return theme.radii.default;
59
- }, ";height:", _ref6 => {
60
- let {
61
- size
62
- } = _ref6;
63
- return size;
64
- }, "px;width:", _ref7 => {
65
- let {
66
- size
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:", _ref11 => {
99
- let {
100
- size
101
- } = _ref11;
102
- return size;
103
- }, "px;width:", _ref12 => {
104
- let {
105
- size
106
- } = _ref12;
107
- return size;
108
- }, "px;opacity:0;border-width:0;&:not(:disabled){cursor:pointer;}&:disabled{cursor:not-allowed;}&:not(:disabled){&:checked+", StyledIcon, ",&[aria-checked='mixed']+", StyledIcon, "{fill:", _ref13 => {
109
- let {
110
- theme
111
- } = _ref13;
112
- return theme.colors.primary.backgroundStrong;
113
- }, ";", InnerCheckbox, "{stroke:", _ref14 => {
114
- let {
115
- theme
116
- } = _ref14;
117
- return theme.colors.primary.borderStrong;
118
- }, ";}}&[aria-invalid='true']+", StyledIcon, ",&[aria-invalid='mixed']+", StyledIcon, "{fill:", _ref15 => {
119
- let {
120
- theme
121
- } = _ref15;
122
- return theme.colors.danger.background;
123
- }, ";", InnerCheckbox, "{stroke:", _ref16 => {
124
- let {
125
- theme
126
- } = _ref16;
127
- return theme.colors.danger.border;
128
- }, ";}}}&:focus+", StyledIcon, "{background-color:", _ref17 => {
129
- let {
130
- theme
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:", _ref27 => {
182
- let {
183
- theme
184
- } = _ref27;
185
- return theme.space['1'];
186
- }, ";width:100%;", StyledLabel, "{cursor:pointer;}&[aria-disabled='true']{cursor:not-allowed;color:", _ref28 => {
187
- let {
188
- theme
189
- } = _ref28;
190
- return theme.colors.neutral.textDisabled;
191
- }, ";", StyledLabel, "{cursor:not-allowed;}", StyledIcon, "{fill:", _ref29 => {
192
- let {
193
- theme
194
- } = _ref29;
195
- return theme.colors.neutral.borderDisabled;
196
- }, ";", InnerCheckbox, "{stroke:", _ref30 => {
197
- let {
198
- theme
199
- } = _ref30;
200
- return theme.colors.neutral.borderStrongDisabled;
201
- }, ";fill:", _ref31 => {
202
- let {
203
- theme
204
- } = _ref31;
205
- return theme.colors.neutral.backgroundDisabled;
206
- }, ";}}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, "{fill:", _ref32 => {
207
- let {
208
- theme
209
- } = _ref32;
210
- return theme.colors.danger.backgroundStrongDisabled;
211
- }, ";", InnerCheckbox, "{stroke:", _ref33 => {
212
- let {
213
- theme
214
- } = _ref33;
215
- return theme.colors.danger.borderStrongDisabled;
216
- }, ";fill:", _ref34 => {
217
- let {
218
- theme
219
- } = _ref34;
220
- return theme.colors.danger.backgroundStrongDisabled;
221
- }, ";}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", _ref35 => {
222
- let {
223
- theme
224
- } = _ref35;
225
- return theme.colors.danger.background;
226
- }, ";", InnerCheckbox, "{stroke:", _ref36 => {
227
- let {
228
- theme
229
- } = _ref36;
230
- return theme.colors.danger.borderDisabled;
231
- }, ";fill:", _ref37 => {
232
- let {
233
- theme
234
- } = _ref37;
235
- return theme.colors.danger.background;
236
- }, ";}}", CheckboxInput, ":checked+", StyledIcon, "{fill:", _ref38 => {
237
- let {
238
- theme
239
- } = _ref38;
240
- return theme.colors.primary.backgroundStrongDisabled;
241
- }, ";", InnerCheckbox, "{stroke:", _ref39 => {
242
- let {
243
- theme
244
- } = _ref39;
245
- return theme.colors.primary.borderDisabled;
246
- }, ";fill:", _ref40 => {
247
- let {
248
- theme
249
- } = _ref40;
250
- return theme.colors.primary.borderDisabled;
251
- }, ";}}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{fill:", _ref41 => {
252
- let {
253
- theme
254
- } = _ref41;
255
- return theme.colors.primary.backgroundStrongDisabled;
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((_ref64, ref) => {
381
- let {
382
- checked = false,
383
- onChange,
384
- onFocus,
385
- onBlur,
386
- error,
387
- name,
388
- helper,
389
- value,
390
- size = 24,
391
- children,
392
- progress = false,
393
- disabled = false,
394
- autoFocus = false,
395
- className,
396
- 'data-visibility': dataVisibility,
397
- 'aria-label': ariaLabel,
398
- required,
399
- 'data-testid': dataTestId,
400
- tooltip
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 = _ref => {
12
- let {
13
- onFocus,
14
- onBlur,
15
- disabled,
16
- error,
17
- name,
18
- value,
19
- children,
20
- helper,
21
- className,
22
- autoFocus,
23
- 'data-testid': dataTestId
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 = _ref2 => {
76
- let {
77
- legend,
78
- value,
79
- className,
80
- helper,
81
- error,
82
- direction = 'column',
83
- children,
84
- onChange,
85
- name,
86
- required = false
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 = _ref => {
10
- let {
11
- size = 'small',
12
- value,
13
- copyText = 'Copy',
14
- copiedText = 'Copied!',
15
- sentiment = 'primary',
16
- noBorder,
17
- bordered,
18
- className,
19
- 'data-testid': dataTestId
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
  });