@ultraviolet/ui 1.27.3 → 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 +57 -4
  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 +166 -345
  17. package/dist/src/components/CheckboxGroup/index.js +25 -27
  18. package/dist/src/components/CopyButton/index.js +12 -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 +19 -22
  58. package/dist/src/components/Popup/index.js +56 -99
  59. package/dist/src/components/ProgressBar/index.js +31 -49
  60. package/dist/src/components/Radio/index.js +75 -118
  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 +81 -112
  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 +12 -15
  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 -21
  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 +5 -5
@@ -3,7 +3,6 @@ import { useTheme } from '@emotion/react';
3
3
  import { Icon } from '@ultraviolet/icons';
4
4
  import { forwardRef, useState, useId, useEffect, useCallback } from 'react';
5
5
  import { Loader } from '../Loader/index.js';
6
- import { Row } from '../Row/index.js';
7
6
  import { Stack } from '../Stack/index.js';
8
7
  import { Text } from '../Text/index.js';
9
8
  import { Tooltip } from '../Tooltip/index.js';
@@ -12,32 +11,22 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
12
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)."; }
13
12
  const ErrorText = /*#__PURE__*/_styled(Text, {
14
13
  target: "eqr7bqq7"
15
- })("padding-top:", _ref => {
16
- let {
17
- theme
18
- } = _ref;
19
- return `${theme.space['0.5']}`;
20
- }, ";");
14
+ })("padding-top:", ({
15
+ theme
16
+ }) => `${theme.space['0.5']}`, ";");
21
17
  const InnerCheckbox = /*#__PURE__*/_styled("rect", {
22
18
  target: "eqr7bqq6"
23
- })("fill:", _ref2 => {
24
- let {
25
- theme
26
- } = _ref2;
27
- return theme.colors.neutral.background;
28
- }, ";stroke:", _ref3 => {
29
- let {
30
- theme
31
- } = _ref3;
32
- return theme.colors.neutral.border;
33
- }, ";");
19
+ })("fill:", ({
20
+ theme
21
+ }) => theme.colors.neutral.background, ";stroke:", ({
22
+ theme
23
+ }) => theme.colors.neutral.border, ";");
34
24
  const CheckMixedMark = /*#__PURE__*/_styled("rect", {
35
25
  target: "eqr7bqq5"
36
26
  })();
37
- const CheckboxIconContainer = _ref4 => {
38
- let {
39
- children
40
- } = _ref4;
27
+ const CheckboxIconContainer = ({
28
+ children
29
+ }) => {
41
30
  const theme = useTheme();
42
31
  return jsxs("g", {
43
32
  children: [jsx(InnerCheckbox, {
@@ -52,312 +41,142 @@ const CheckboxIconContainer = _ref4 => {
52
41
  };
53
42
  const StyledIcon = /*#__PURE__*/_styled('svg', {
54
43
  target: "eqr7bqq4"
55
- })("border-radius:", _ref5 => {
56
- let {
57
- theme
58
- } = _ref5;
59
- return theme.radii.default;
60
- }, ";height:", _ref6 => {
61
- let {
62
- size
63
- } = _ref6;
64
- return size;
65
- }, "px;width:", _ref7 => {
66
- let {
67
- size
68
- } = _ref7;
69
- return size;
70
- }, "px;min-width:", _ref8 => {
71
- let {
72
- size
73
- } = _ref8;
74
- return size;
75
- }, "px;min-height:", _ref9 => {
76
- let {
77
- size
78
- } = _ref9;
79
- return size;
80
- }, "px;& path{fill:", _ref10 => {
81
- let {
82
- theme
83
- } = _ref10;
84
- return theme.colors.neutral.background;
85
- }, ";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);}");
86
57
  const StyledLabel = /*#__PURE__*/_styled('label', {
87
58
  target: "eqr7bqq3"
88
- })();
59
+ })(process.env.NODE_ENV === "production" ? {
60
+ name: "1d3w5wq",
61
+ styles: "width:100%"
62
+ } : {
63
+ name: "1d3w5wq",
64
+ styles: "width:100%",
65
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
66
+ });
89
67
  const CheckboxInput = /*#__PURE__*/_styled('input', {
90
68
  shouldForwardProp: prop => !['size'].includes(prop),
91
69
  target: "eqr7bqq2"
92
- })("position:absolute;white-space:nowrap;height:", _ref11 => {
93
- let {
94
- size
95
- } = _ref11;
96
- return size;
97
- }, "px;width:", _ref12 => {
98
- let {
99
- size
100
- } = _ref12;
101
- return size;
102
- }, "px;opacity:0;border-width:0;&:not(:disabled){cursor:pointer;}&:disabled{cursor:not-allowed;}&:not(:disabled){&:checked+", StyledIcon, ",&[aria-checked='mixed']+", StyledIcon, "{fill:", _ref13 => {
103
- let {
104
- theme
105
- } = _ref13;
106
- return theme.colors.primary.backgroundStrong;
107
- }, ";", InnerCheckbox, "{stroke:", _ref14 => {
108
- let {
109
- theme
110
- } = _ref14;
111
- return theme.colors.primary.borderStrong;
112
- }, ";}}&[aria-invalid='true']+", StyledIcon, ",&[aria-invalid='mixed']+", StyledIcon, "{fill:", _ref15 => {
113
- let {
114
- theme
115
- } = _ref15;
116
- return theme.colors.danger.background;
117
- }, ";", InnerCheckbox, "{stroke:", _ref16 => {
118
- let {
119
- theme
120
- } = _ref16;
121
- return theme.colors.danger.border;
122
- }, ";}}}&:focus+", StyledIcon, "{background-color:", _ref17 => {
123
- let {
124
- theme
125
- } = _ref17;
126
- return theme.colors.primary.background;
127
- }, ";fill:", _ref18 => {
128
- let {
129
- theme
130
- } = _ref18;
131
- return theme.colors.danger.background;
132
- }, ";outline:1px solid ", _ref19 => {
133
- let {
134
- theme
135
- } = _ref19;
136
- return theme.shadows.focusPrimary;
137
- }, ";", InnerCheckbox, "{stroke:", _ref20 => {
138
- let {
139
- theme
140
- } = _ref20;
141
- return theme.colors.primary.borderHover;
142
- }, ";fill:", _ref21 => {
143
- let {
144
- theme
145
- } = _ref21;
146
- return theme.colors.primary.backgroundHover;
147
- }, ";}}&[aria-invalid='true']:focus+", StyledIcon, "{background-color:", _ref22 => {
148
- let {
149
- theme
150
- } = _ref22;
151
- return theme.colors.danger.background;
152
- }, ";fill:", _ref23 => {
153
- let {
154
- theme
155
- } = _ref23;
156
- return theme.colors.danger.background;
157
- }, ";outline:1px solid ", _ref24 => {
158
- let {
159
- theme
160
- } = _ref24;
161
- return theme.shadows.focusDanger;
162
- }, ";", InnerCheckbox, "{stroke:", _ref25 => {
163
- let {
164
- theme
165
- } = _ref25;
166
- return theme.colors.danger.borderHover;
167
- }, ";fill:", _ref26 => {
168
- let {
169
- theme
170
- } = _ref26;
171
- return theme.colors.danger.backgroundHover;
172
- }, ";}}");
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, ";}}");
173
103
  const CheckboxContainer = /*#__PURE__*/_styled("div", {
174
104
  target: "eqr7bqq1"
175
- })("position:relative;display:inline-flex;align-items:start;gap:", _ref27 => {
176
- let {
177
- theme
178
- } = _ref27;
179
- return theme.space['1'];
180
- }, ";", StyledLabel, "{cursor:pointer;}&[aria-disabled='true']{cursor:not-allowed;color:", _ref28 => {
181
- let {
182
- theme
183
- } = _ref28;
184
- return theme.colors.neutral.textDisabled;
185
- }, ";", StyledLabel, "{cursor:not-allowed;}", StyledIcon, "{fill:", _ref29 => {
186
- let {
187
- theme
188
- } = _ref29;
189
- return theme.colors.neutral.borderDisabled;
190
- }, ";", InnerCheckbox, "{stroke:", _ref30 => {
191
- let {
192
- theme
193
- } = _ref30;
194
- return theme.colors.neutral.borderStrongDisabled;
195
- }, ";fill:", _ref31 => {
196
- let {
197
- theme
198
- } = _ref31;
199
- return theme.colors.neutral.backgroundDisabled;
200
- }, ";}}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, "{fill:", _ref32 => {
201
- let {
202
- theme
203
- } = _ref32;
204
- return theme.colors.danger.backgroundStrongDisabled;
205
- }, ";", InnerCheckbox, "{stroke:", _ref33 => {
206
- let {
207
- theme
208
- } = _ref33;
209
- return theme.colors.danger.borderStrongDisabled;
210
- }, ";fill:", _ref34 => {
211
- let {
212
- theme
213
- } = _ref34;
214
- return theme.colors.danger.backgroundStrongDisabled;
215
- }, ";}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", _ref35 => {
216
- let {
217
- theme
218
- } = _ref35;
219
- return theme.colors.danger.background;
220
- }, ";", InnerCheckbox, "{stroke:", _ref36 => {
221
- let {
222
- theme
223
- } = _ref36;
224
- return theme.colors.danger.borderDisabled;
225
- }, ";fill:", _ref37 => {
226
- let {
227
- theme
228
- } = _ref37;
229
- return theme.colors.danger.background;
230
- }, ";}}", CheckboxInput, ":checked+", StyledIcon, "{fill:", _ref38 => {
231
- let {
232
- theme
233
- } = _ref38;
234
- return theme.colors.primary.backgroundStrongDisabled;
235
- }, ";", InnerCheckbox, "{stroke:", _ref39 => {
236
- let {
237
- theme
238
- } = _ref39;
239
- return theme.colors.primary.borderDisabled;
240
- }, ";fill:", _ref40 => {
241
- let {
242
- theme
243
- } = _ref40;
244
- return theme.colors.primary.borderDisabled;
245
- }, ";}}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{fill:", _ref41 => {
246
- let {
247
- theme
248
- } = _ref41;
249
- return theme.colors.primary.backgroundStrongDisabled;
250
- }, ";", InnerCheckbox, "{stroke:", _ref42 => {
251
- let {
252
- theme
253
- } = _ref42;
254
- return theme.colors.primary.borderStrongDisabled;
255
- }, ";fill:", _ref43 => {
256
- let {
257
- theme
258
- } = _ref43;
259
- return theme.colors.primary.backgroundStrongDisabled;
260
- }, ";}}}", 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 => {
261
- let {
262
- theme
263
- } = _ref44;
264
- return theme.colors.primary.backgroundStrong;
265
- }, ";stroke:", _ref45 => {
266
- let {
267
- theme
268
- } = _ref45;
269
- return theme.colors.primary.borderStrong;
270
- }, ";}", CheckboxInput, "[aria-invalid=\"true\"]:checked+", StyledIcon, " ", InnerCheckbox, "{fill:", _ref46 => {
271
- let {
272
- theme
273
- } = _ref46;
274
- return theme.colors.danger.backgroundStrong;
275
- }, ";stroke:", _ref47 => {
276
- let {
277
- theme
278
- } = _ref47;
279
- return theme.colors.danger.borderStrong;
280
- }, ";}", CheckboxInput, "[aria-checked=\"mixed\"]+", StyledIcon, "{", CheckMixedMark, "{fill:", _ref48 => {
281
- let {
282
- theme
283
- } = _ref48;
284
- return theme.colors.neutral.iconStronger;
285
- }, ";}", InnerCheckbox, "{fill:", _ref49 => {
286
- let {
287
- theme
288
- } = _ref49;
289
- return theme.colors.primary.backgroundStrong;
290
- }, ";stroke:", _ref50 => {
291
- let {
292
- theme
293
- } = _ref50;
294
- return theme.colors.primary.borderStrong;
295
- }, ";}}&:hover[aria-disabled='false']{", CheckboxInput, "[aria-invalid='false']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref51 => {
296
- let {
297
- theme
298
- } = _ref51;
299
- return theme.colors.primary.borderHover;
300
- }, ";fill:", _ref52 => {
301
- let {
302
- theme
303
- } = _ref52;
304
- return theme.colors.primary.backgroundHover;
305
- }, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref53 => {
306
- let {
307
- theme
308
- } = _ref53;
309
- return theme.colors.primary.borderStrongHover;
310
- }, ";fill:", _ref54 => {
311
- let {
312
- theme
313
- } = _ref54;
314
- return theme.colors.primary.backgroundStrongHover;
315
- }, ";}&[aria-checked='mixed']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref55 => {
316
- let {
317
- theme
318
- } = _ref55;
319
- return theme.colors.primary.borderStrongHover;
320
- }, ";fill:", _ref56 => {
321
- let {
322
- theme
323
- } = _ref56;
324
- return theme.colors.primary.backgroundStrongHover;
325
- }, ";}}", CheckboxInput, "[aria-invalid='true']{&[aria-checked='false']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref57 => {
326
- let {
327
- theme
328
- } = _ref57;
329
- return theme.colors.danger.borderHover;
330
- }, ";fill:", _ref58 => {
331
- let {
332
- theme
333
- } = _ref58;
334
- return theme.colors.danger.backgroundHover;
335
- }, ";}&[aria-checked='true']+", StyledIcon, " ", InnerCheckbox, "{stroke:", _ref59 => {
336
- let {
337
- theme
338
- } = _ref59;
339
- return theme.colors.danger.borderStrongHover;
340
- }, ";fill:", _ref60 => {
341
- let {
342
- theme
343
- } = _ref60;
344
- return theme.colors.danger.backgroundStrongHover;
345
- }, ";}}}", CheckboxInput, "[aria-invalid=\"true\"]+", StyledIcon, "{fill:", _ref61 => {
346
- let {
347
- theme
348
- } = _ref61;
349
- return theme.colors.danger.backgroundStrong;
350
- }, ";", InnerCheckbox, "{stroke:", _ref62 => {
351
- let {
352
- theme
353
- } = _ref62;
354
- return theme.colors.danger.backgroundStrong;
355
- }, ";fill:", _ref63 => {
356
- let {
357
- theme
358
- } = _ref63;
359
- return theme.colors.danger.background;
360
- }, ";}}");
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, ";}}");
361
180
  const StyledActivityContainer = /*#__PURE__*/_styled("div", {
362
181
  target: "eqr7bqq0"
363
182
  })(process.env.NODE_ENV === "production" ? {
@@ -371,28 +190,27 @@ const StyledActivityContainer = /*#__PURE__*/_styled("div", {
371
190
  /**
372
191
  * Checkbox is an input component used to select or deselect an option.
373
192
  */
374
- const Checkbox = /*#__PURE__*/forwardRef((_ref64, ref) => {
375
- let {
376
- checked = false,
377
- onChange,
378
- onFocus,
379
- onBlur,
380
- error,
381
- name,
382
- helper,
383
- value,
384
- size = 24,
385
- children,
386
- progress = false,
387
- disabled = false,
388
- autoFocus = false,
389
- className,
390
- 'data-visibility': dataVisibility,
391
- 'aria-label': ariaLabel,
392
- required,
393
- 'data-testid': dataTestId,
394
- tooltip
395
- } = _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) => {
396
214
  const [state, setState] = useState(checked);
397
215
  const id = useId();
398
216
  const computedName = name ?? id;
@@ -459,9 +277,12 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref64, ref) => {
459
277
  })
460
278
  }) : null, jsxs(Stack, {
461
279
  gap: 0.25,
462
- children: [jsxs(Row, {
463
- templateColumns: "11fr 1fr",
280
+ flex: 1,
281
+ children: [jsxs(Stack, {
282
+ gap: 0.5,
283
+ direction: "row",
464
284
  alignItems: "center",
285
+ flex: 1,
465
286
  children: [children ? jsx(StyledLabel, {
466
287
  htmlFor: computedName,
467
288
  children: children
@@ -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,17 +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
- className,
18
- 'data-testid': dataTestId
19
- } = _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
+ }) => {
20
20
  const [isCopied, setCopied] = useClipboard(value, {
21
21
  successDuration: COPY_DURATION
22
22
  });
@@ -25,7 +25,7 @@ const CopyButton = _ref => {
25
25
  onClick: setCopied,
26
26
  size: size,
27
27
  sentiment: sentiment,
28
- variant: noBorder ? 'ghost' : 'outlined',
28
+ variant: noBorder || !bordered ? 'ghost' : 'outlined',
29
29
  className: className,
30
30
  "data-testid": dataTestId,
31
31
  "aria-label": "Copy",