@dmsi/wedgekit-react 0.0.140 → 0.0.142

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 (240) hide show
  1. package/dist/{chunk-4OS6APPF.js → chunk-4LXG6QNT.js} +2 -1
  2. package/dist/{chunk-KS4RDR6P.js → chunk-4NCDT5ZY.js} +21 -8
  3. package/dist/{chunk-R5TLUWDD.js → chunk-4T3DRGLF.js} +32 -30
  4. package/dist/{chunk-QZGUMB7T.js → chunk-4VTOTNKJ.js} +3 -0
  5. package/dist/{chunk-Y4HUYAI5.js → chunk-56Y5DDG3.js} +5 -2
  6. package/dist/{chunk-D2YP2BTN.js → chunk-5GOJRLQO.js} +10 -4
  7. package/dist/{chunk-J6LETUNM.js → chunk-AZ7LVLOK.js} +5 -2
  8. package/dist/{chunk-TTO4PL7Y.js → chunk-BATIOCXB.js} +7 -4
  9. package/dist/{chunk-CG2NIXZE.js → chunk-C4JGTH6G.js} +7 -3
  10. package/dist/{chunk-O4M2GISS.js → chunk-CYZL57LH.js} +5 -2
  11. package/dist/{chunk-6HIALT5L.js → chunk-E7D24OHM.js} +14 -5
  12. package/dist/{chunk-3ZUSYRI7.js → chunk-EPQLWHCL.js} +2 -2
  13. package/dist/{chunk-AY7ELVQY.js → chunk-EUXB3XKL.js} +5 -2
  14. package/dist/{chunk-6DONKNDT.js → chunk-EWGHVZL5.js} +2 -0
  15. package/dist/{chunk-VH3EJNVE.js → chunk-FFU6FB3K.js} +6 -3
  16. package/dist/{chunk-H6LXXGX6.js → chunk-FKMKHLQH.js} +6 -3
  17. package/dist/{chunk-4F6VQXKY.js → chunk-GG5JOFS6.js} +2 -1
  18. package/dist/{chunk-XCIBYDVK.js → chunk-GXSXCEAA.js} +25 -14
  19. package/dist/{chunk-VG4EPHJA.js → chunk-HVI3CL7Y.js} +6 -3
  20. package/dist/{chunk-AOELEEUS.js → chunk-I6GEUF6Y.js} +6 -3
  21. package/dist/{chunk-Z36QJ7ZF.js → chunk-J4E6Q5TM.js} +12 -9
  22. package/dist/{chunk-S5K22XTH.js → chunk-JWCT72WR.js} +5 -2
  23. package/dist/{chunk-QNQ5K7NW.js → chunk-LM5MKBPM.js} +8 -3
  24. package/dist/{chunk-EO3JJWFW.js → chunk-N6JVLYEE.js} +6 -3
  25. package/dist/{chunk-IGQVA7SC.js → chunk-NKUETCDA.js} +5 -2
  26. package/dist/{chunk-PCCJ7L3N.js → chunk-NMVSRA5Y.js} +12 -4
  27. package/dist/{chunk-X62XGQY7.js → chunk-NW2C4DL4.js} +18 -15
  28. package/dist/{chunk-OB3URVCR.js → chunk-PMBEIP24.js} +5 -1
  29. package/dist/{chunk-6UI5GABI.js → chunk-R7ELP5C5.js} +8 -5
  30. package/dist/{chunk-FWPJ73IK.js → chunk-SYEJVSE4.js} +3 -1
  31. package/dist/{chunk-WT5XXW6G.js → chunk-WFQEE2OO.js} +9 -4
  32. package/dist/{chunk-QTD7K43M.js → chunk-WSS2DFTP.js} +8 -6
  33. package/dist/{chunk-37TJJQL3.js → chunk-YR7JUKYO.js} +3 -0
  34. package/dist/{chunk-4JLU7TAC.js → chunk-ZFOANBWG.js} +3 -1
  35. package/dist/{chunk-P242H6OU.js → chunk-ZGFQN47L.js} +5 -2
  36. package/dist/components/AccessChangerTabItem.cjs +10 -4
  37. package/dist/components/AccessChangerTabItem.js +2 -2
  38. package/dist/components/Accordion.cjs +23 -11
  39. package/dist/components/Accordion.js +5 -5
  40. package/dist/components/Breadcrumbs.cjs +19 -8
  41. package/dist/components/Breadcrumbs.js +10 -5
  42. package/dist/components/Button.cjs +6 -3
  43. package/dist/components/Button.js +1 -1
  44. package/dist/components/CalendarRange.cjs +16 -5
  45. package/dist/components/CalendarRange.js +2 -2
  46. package/dist/components/Caption.cjs +18 -6
  47. package/dist/components/Caption.js +2 -2
  48. package/dist/components/Card.cjs +2 -1
  49. package/dist/components/Card.js +1 -1
  50. package/dist/components/Checkbox.cjs +18 -7
  51. package/dist/components/Checkbox.js +3 -3
  52. package/dist/components/ContentTab.cjs +22 -16
  53. package/dist/components/ContentTab.js +2 -2
  54. package/dist/components/ContentTabs.cjs +27 -18
  55. package/dist/components/ContentTabs.js +7 -4
  56. package/dist/components/DataGridCell.cjs +73 -39
  57. package/dist/components/DataGridCell.js +8 -8
  58. package/dist/components/DateInput.cjs +55 -35
  59. package/dist/components/DateInput.js +8 -4
  60. package/dist/components/DateRangeInput.cjs +55 -35
  61. package/dist/components/DateRangeInput.js +8 -4
  62. package/dist/components/Display.cjs +5 -2
  63. package/dist/components/Display.js +1 -1
  64. package/dist/components/FilterGroup.cjs +85 -44
  65. package/dist/components/FilterGroup.js +20 -10
  66. package/dist/components/FullViewportBox.cjs +3 -1
  67. package/dist/components/FullViewportBox.js +3 -1
  68. package/dist/components/Grid.cjs +3 -1
  69. package/dist/components/Grid.js +3 -1
  70. package/dist/components/Heading.cjs +5 -2
  71. package/dist/components/Heading.js +1 -1
  72. package/dist/components/HorizontalDivider.cjs +2 -2
  73. package/dist/components/HorizontalDivider.js +1 -1
  74. package/dist/components/Icon.cjs +5 -2
  75. package/dist/components/Icon.js +1 -1
  76. package/dist/components/Input.cjs +40 -32
  77. package/dist/components/Input.js +3 -3
  78. package/dist/components/InputGroup.cjs +11 -4
  79. package/dist/components/InputGroup.js +7 -3
  80. package/dist/components/Label.cjs +5 -2
  81. package/dist/components/Label.js +1 -1
  82. package/dist/components/Link.cjs +6 -3
  83. package/dist/components/Link.js +1 -1
  84. package/dist/components/List.cjs +3 -2
  85. package/dist/components/List.js +3 -2
  86. package/dist/components/LoadingScrim.cjs +4 -2
  87. package/dist/components/LoadingScrim.js +3 -2
  88. package/dist/components/MainBar.cjs +2 -0
  89. package/dist/components/MainBar.js +2 -0
  90. package/dist/components/Menu.cjs +3 -0
  91. package/dist/components/Menu.js +1 -1
  92. package/dist/components/MenuOption.cjs +19 -7
  93. package/dist/components/MenuOption.js +4 -4
  94. package/dist/components/MobileDataGrid.cjs +42 -18
  95. package/dist/components/MobileDataGrid.js +18 -11
  96. package/dist/components/Modal.cjs +38 -12
  97. package/dist/components/Modal.js +8 -8
  98. package/dist/components/ModalButtons.cjs +16 -6
  99. package/dist/components/ModalButtons.js +3 -3
  100. package/dist/components/ModalContent.cjs +3 -1
  101. package/dist/components/ModalContent.js +1 -1
  102. package/dist/components/ModalHeader.cjs +21 -9
  103. package/dist/components/ModalHeader.js +4 -4
  104. package/dist/components/ModalScrim.cjs +3 -1
  105. package/dist/components/ModalScrim.js +1 -1
  106. package/dist/components/NavigationTab.cjs +14 -5
  107. package/dist/components/NavigationTab.js +3 -3
  108. package/dist/components/NavigationTabs.cjs +17 -6
  109. package/dist/components/NavigationTabs.js +6 -4
  110. package/dist/components/NestedMenu.cjs +23 -9
  111. package/dist/components/NestedMenu.js +8 -6
  112. package/dist/components/Notification.cjs +32 -13
  113. package/dist/components/Notification.js +9 -5
  114. package/dist/components/OptionPill.cjs +21 -7
  115. package/dist/components/OptionPill.js +4 -4
  116. package/dist/components/PDFViewer.cjs +73 -29
  117. package/dist/components/PDFViewer.js +26 -20
  118. package/dist/components/Paragraph.cjs +6 -3
  119. package/dist/components/Paragraph.js +1 -1
  120. package/dist/components/Password.cjs +50 -37
  121. package/dist/components/Password.js +13 -8
  122. package/dist/components/PaymentOnAccountModal.cjs +135 -69
  123. package/dist/components/PaymentOnAccountModal.js +21 -21
  124. package/dist/components/ProjectBar.cjs +3 -1
  125. package/dist/components/ProjectBar.js +3 -1
  126. package/dist/components/Radio.cjs +12 -6
  127. package/dist/components/Radio.js +2 -2
  128. package/dist/components/Search.cjs +44 -32
  129. package/dist/components/Search.js +4 -4
  130. package/dist/components/Select.cjs +43 -32
  131. package/dist/components/Select.js +4 -4
  132. package/dist/components/SelectPaymentMethod.cjs +67 -29
  133. package/dist/components/SelectPaymentMethod.js +12 -12
  134. package/dist/components/SideMenu.cjs +3 -1
  135. package/dist/components/SideMenu.js +3 -1
  136. package/dist/components/SideMenuGroup.cjs +19 -8
  137. package/dist/components/SideMenuGroup.js +6 -4
  138. package/dist/components/SideMenuItem.cjs +15 -6
  139. package/dist/components/SideMenuItem.js +5 -2
  140. package/dist/components/Spinner.cjs +2 -1
  141. package/dist/components/Spinner.js +1 -1
  142. package/dist/components/Stack.cjs +6 -3
  143. package/dist/components/Stack.js +1 -1
  144. package/dist/components/StatusPill.cjs +12 -6
  145. package/dist/components/StatusPill.js +8 -5
  146. package/dist/components/Stepper.cjs +54 -38
  147. package/dist/components/Stepper.js +12 -7
  148. package/dist/components/Subheader.cjs +5 -2
  149. package/dist/components/Subheader.js +1 -1
  150. package/dist/components/Swatch.cjs +22 -10
  151. package/dist/components/Swatch.js +4 -4
  152. package/dist/components/Textarea.cjs +4 -1
  153. package/dist/components/Textarea.js +4 -1
  154. package/dist/components/Theme.cjs +2 -0
  155. package/dist/components/Theme.js +1 -1
  156. package/dist/components/Time.cjs +52 -36
  157. package/dist/components/Time.js +10 -5
  158. package/dist/components/Toast.cjs +29 -12
  159. package/dist/components/Toast.js +11 -6
  160. package/dist/components/Tooltip.cjs +3 -0
  161. package/dist/components/Tooltip.js +1 -1
  162. package/dist/components/TopBar.cjs +11 -4
  163. package/dist/components/TopBar.js +11 -4
  164. package/dist/components/Upload.cjs +30 -15
  165. package/dist/components/Upload.js +16 -10
  166. package/dist/components/index.cjs +221 -84
  167. package/dist/components/index.js +80 -38
  168. package/dist/index.css +24 -4
  169. package/package.json +1 -1
  170. package/src/components/Accordion.tsx +5 -2
  171. package/src/components/Breadcrumbs.tsx +9 -2
  172. package/src/components/Button.tsx +4 -1
  173. package/src/components/CalendarRange.tsx +9 -0
  174. package/src/components/Caption.tsx +11 -1
  175. package/src/components/Card.tsx +3 -2
  176. package/src/components/Checkbox.tsx +5 -0
  177. package/src/components/ContentTab.tsx +14 -12
  178. package/src/components/ContentTabs.tsx +6 -2
  179. package/src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx +4 -1
  180. package/src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx +7 -0
  181. package/src/components/DataGrid/PinnedColumns.tsx +8 -1
  182. package/src/components/DataGrid/TableBody/LoadingCell.tsx +7 -3
  183. package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -1
  184. package/src/components/DataGrid/TableBody/index.tsx +7 -1
  185. package/src/components/DataGrid/index.tsx +18 -2
  186. package/src/components/DataGrid/types.ts +1 -0
  187. package/src/components/DataGridCell.tsx +12 -0
  188. package/src/components/DateInput.tsx +4 -0
  189. package/src/components/DateRangeInput.tsx +4 -0
  190. package/src/components/Display.tsx +3 -0
  191. package/src/components/FilterGroup.tsx +10 -0
  192. package/src/components/FullViewportBox.tsx +3 -0
  193. package/src/components/Grid.tsx +3 -0
  194. package/src/components/Heading.tsx +3 -0
  195. package/src/components/HorizontalDivider.tsx +2 -2
  196. package/src/components/Icon.tsx +3 -0
  197. package/src/components/Input.tsx +32 -36
  198. package/src/components/InputGroup.tsx +6 -2
  199. package/src/components/Label.tsx +3 -0
  200. package/src/components/Link.tsx +3 -0
  201. package/src/components/List.tsx +3 -1
  202. package/src/components/LoadingScrim.tsx +2 -1
  203. package/src/components/MainBar.tsx +3 -0
  204. package/src/components/Menu.tsx +3 -0
  205. package/src/components/MenuOption.tsx +4 -0
  206. package/src/components/MobileDataGrid.tsx +12 -3
  207. package/src/components/Modal.tsx +7 -0
  208. package/src/components/ModalButtons.tsx +5 -0
  209. package/src/components/ModalContent.tsx +3 -0
  210. package/src/components/ModalHeader.tsx +5 -1
  211. package/src/components/ModalScrim.tsx +3 -0
  212. package/src/components/NavigationTab.tsx +3 -0
  213. package/src/components/NavigationTabs.tsx +7 -3
  214. package/src/components/NestedMenu.tsx +5 -2
  215. package/src/components/Notification.tsx +4 -0
  216. package/src/components/OptionPill.tsx +5 -0
  217. package/src/components/PDFViewer.tsx +16 -8
  218. package/src/components/Paragraph.tsx +3 -0
  219. package/src/components/Password.tsx +7 -2
  220. package/src/components/PaymentOnAccountModal.tsx +6 -2
  221. package/src/components/ProjectBar.tsx +3 -0
  222. package/src/components/Radio.tsx +4 -1
  223. package/src/components/Search.tsx +5 -0
  224. package/src/components/Select.tsx +4 -0
  225. package/src/components/SelectPaymentMethod.tsx +17 -3
  226. package/src/components/SideMenu.tsx +3 -0
  227. package/src/components/SideMenuGroup.tsx +4 -1
  228. package/src/components/SideMenuItem.tsx +4 -0
  229. package/src/components/Spinner.tsx +3 -1
  230. package/src/components/Stack.tsx +3 -0
  231. package/src/components/StatusPill.tsx +4 -1
  232. package/src/components/Stepper.tsx +6 -1
  233. package/src/components/Subheader.tsx +3 -0
  234. package/src/components/Textarea.tsx +4 -1
  235. package/src/components/Theme.tsx +3 -0
  236. package/src/components/Time.tsx +7 -1
  237. package/src/components/Toast.tsx +8 -3
  238. package/src/components/Tooltip.tsx +4 -0
  239. package/src/components/TopBar.tsx +7 -2
  240. package/src/components/Upload.tsx +10 -4
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-EO3JJWFW.js";
3
+ } from "../chunk-N6JVLYEE.js";
4
4
  import {
5
5
  Paragraph
6
- } from "../chunk-VG4EPHJA.js";
6
+ } from "../chunk-HVI3CL7Y.js";
7
7
  import {
8
8
  baseTransition,
9
9
  componentPaddingMinus2pxBorder
@@ -15,6 +15,7 @@ import clsx from "clsx";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  var SideMenuItem = ({
17
17
  id,
18
+ testid,
18
19
  label,
19
20
  leftIcon,
20
21
  rightIcon,
@@ -39,6 +40,7 @@ var SideMenuItem = ({
39
40
  "a",
40
41
  {
41
42
  id,
43
+ "data-testid": testid,
42
44
  href,
43
45
  className: clsx(
44
46
  "group flex w-full rounded border-2 cursor-pointer",
@@ -71,6 +73,7 @@ var SideMenuItem = ({
71
73
  Paragraph,
72
74
  {
73
75
  id: id ? `${id}-label` : void 0,
76
+ testid: testid ? `${testid}-label` : void 0,
74
77
  as: "span",
75
78
  padded: true,
76
79
  className: "mr-auto !leading-6",
@@ -24,11 +24,12 @@ __export(Spinner_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(Spinner_exports);
26
26
  var import_jsx_runtime = require("react/jsx-runtime");
27
- var Spinner = ({ size = "small" }) => {
27
+ var Spinner = ({ size = "small", testid }) => {
28
28
  const dimension = size === "large" ? 48 : 24;
29
29
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
30
30
  "svg",
31
31
  {
32
+ "data-testid": testid,
32
33
  width: dimension,
33
34
  height: dimension,
34
35
  viewBox: "0 0 24 24",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Spinner
3
- } from "../chunk-4F6VQXKY.js";
3
+ } from "../chunk-GG5JOFS6.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Spinner
@@ -251,7 +251,8 @@ var Stack = (_a) => {
251
251
  id,
252
252
  noGap,
253
253
  marginTop,
254
- marginBottom
254
+ marginBottom,
255
+ testid
255
256
  } = _b, props = __objRest(_b, [
256
257
  "children",
257
258
  "items",
@@ -287,14 +288,16 @@ var Stack = (_a) => {
287
288
  "id",
288
289
  "noGap",
289
290
  "marginTop",
290
- "marginBottom"
291
+ "marginBottom",
292
+ "testid"
291
293
  ]);
292
294
  const flexClassNames = getFlexClassNames({ items, justify, grow });
293
295
  const gapClassNames = useGapClassNames(sizing);
294
296
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
295
297
  "div",
296
298
  __spreadProps(__spreadValues({
297
- id
299
+ id,
300
+ "data-testid": testid
298
301
  }, props), {
299
302
  style: {
300
303
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-EO3JJWFW.js";
3
+ } from "../chunk-N6JVLYEE.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -201,20 +201,23 @@ var Label = (_a) => {
201
201
  className,
202
202
  color,
203
203
  align,
204
- id
204
+ id,
205
+ testid
205
206
  } = _b, props = __objRest(_b, [
206
207
  "as",
207
208
  "padded",
208
209
  "className",
209
210
  "color",
210
211
  "align",
211
- "id"
212
+ "id",
213
+ "testid"
212
214
  ]);
213
215
  const Element = as;
214
216
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
215
217
  Element,
216
218
  __spreadProps(__spreadValues({
217
219
  id,
220
+ "data-testid": testid,
218
221
  className: (0, import_clsx2.default)(
219
222
  typography.label,
220
223
  align === "left" && "text-left",
@@ -240,12 +243,14 @@ var StatusPill = (_a) => {
240
243
  children,
241
244
  state = "in-progress",
242
245
  intent = "neutral",
243
- id
246
+ id,
247
+ testid
244
248
  } = _b, props = __objRest(_b, [
245
249
  "children",
246
250
  "state",
247
251
  "intent",
248
- "id"
252
+ "id",
253
+ "testid"
249
254
  ]);
250
255
  const textColor = (0, import_clsx3.default)(
251
256
  state === "completed" && ["neutral", "critical"].includes(intent) ? "text-text-on-action-primary-normal" : "text-neutral-500"
@@ -263,7 +268,8 @@ var StatusPill = (_a) => {
263
268
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
264
269
  "div",
265
270
  __spreadProps(__spreadValues({
266
- id
271
+ id,
272
+ "data-testid": testid
267
273
  }, props), {
268
274
  className: (0, import_clsx3.default)(
269
275
  "rounded flex items-center",
@@ -272,7 +278,7 @@ var StatusPill = (_a) => {
272
278
  paddingXUsingLayoutGroupGap,
273
279
  componentPaddingYUsingComponentGap
274
280
  ),
275
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { id: id ? `${id}-label` : void 0, children })
281
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { id: id ? `${id}-label` : void 0, testid: testid ? `${testid}-label` : void 0, children })
276
282
  })
277
283
  );
278
284
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Label
3
- } from "../chunk-S5K22XTH.js";
3
+ } from "../chunk-JWCT72WR.js";
4
4
  import {
5
5
  componentPaddingYUsingComponentGap,
6
6
  paddingXUsingLayoutGroupGap
@@ -19,12 +19,14 @@ var StatusPill = (_a) => {
19
19
  children,
20
20
  state = "in-progress",
21
21
  intent = "neutral",
22
- id
22
+ id,
23
+ testid
23
24
  } = _b, props = __objRest(_b, [
24
25
  "children",
25
26
  "state",
26
27
  "intent",
27
- "id"
28
+ "id",
29
+ "testid"
28
30
  ]);
29
31
  const textColor = clsx(
30
32
  state === "completed" && ["neutral", "critical"].includes(intent) ? "text-text-on-action-primary-normal" : "text-neutral-500"
@@ -42,7 +44,8 @@ var StatusPill = (_a) => {
42
44
  return /* @__PURE__ */ jsx(
43
45
  "div",
44
46
  __spreadProps(__spreadValues({
45
- id
47
+ id,
48
+ "data-testid": testid
46
49
  }, props), {
47
50
  className: clsx(
48
51
  "rounded flex items-center",
@@ -51,7 +54,7 @@ var StatusPill = (_a) => {
51
54
  paddingXUsingLayoutGroupGap,
52
55
  componentPaddingYUsingComponentGap
53
56
  ),
54
- children: /* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, children })
57
+ children: /* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, testid: testid ? `${testid}-label` : void 0, children })
55
58
  })
56
59
  );
57
60
  };
@@ -209,7 +209,8 @@ var Button = (_a) => {
209
209
  iconOnly = false,
210
210
  colorClassName,
211
211
  href,
212
- id
212
+ id,
213
+ testid
213
214
  } = _b, props = __objRest(_b, [
214
215
  "variant",
215
216
  "as",
@@ -223,7 +224,8 @@ var Button = (_a) => {
223
224
  "iconOnly",
224
225
  "colorClassName",
225
226
  "href",
226
- "id"
227
+ "id",
228
+ "testid"
227
229
  ]);
228
230
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
229
231
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -311,6 +313,7 @@ var Button = (_a) => {
311
313
  Element,
312
314
  __spreadProps(__spreadValues({
313
315
  id,
316
+ "data-testid": testid,
314
317
  type: Element === "button" ? "button" : void 0,
315
318
  className: buttonClasses
316
319
  }, props), {
@@ -320,7 +323,7 @@ var Button = (_a) => {
320
323
  "data-theme": variant === "navigation" ? "brand" : void 0,
321
324
  children: [
322
325
  leftIcon && leftIcon,
323
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
326
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
324
327
  rightIcon && rightIcon
325
328
  ]
326
329
  })
@@ -342,20 +345,23 @@ var Label = (_a) => {
342
345
  className,
343
346
  color,
344
347
  align,
345
- id
348
+ id,
349
+ testid
346
350
  } = _b, props = __objRest(_b, [
347
351
  "as",
348
352
  "padded",
349
353
  "className",
350
354
  "color",
351
355
  "align",
352
- "id"
356
+ "id",
357
+ "testid"
353
358
  ]);
354
359
  const Element = as;
355
360
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
356
361
  Element,
357
362
  __spreadProps(__spreadValues({
358
363
  id,
364
+ "data-testid": testid,
359
365
  className: (0, import_clsx3.default)(
360
366
  typography.label,
361
367
  align === "left" && "text-left",
@@ -380,17 +386,20 @@ function Icon(_a) {
380
386
  var _b = _a, {
381
387
  name,
382
388
  size = 24,
383
- variant = "outline"
389
+ variant = "outline",
390
+ testid
384
391
  } = _b, props = __objRest(_b, [
385
392
  "name",
386
393
  "size",
387
- "variant"
394
+ "variant",
395
+ "testid"
388
396
  ]);
389
397
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
390
398
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
391
399
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
392
400
  "span",
393
401
  __spreadProps(__spreadValues({}, props), {
402
+ "data-testid": testid,
394
403
  className: (0, import_clsx4.default)(
395
404
  "icon",
396
405
  `icon-${size}`,
@@ -443,6 +452,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
443
452
  var InputBase = (_a) => {
444
453
  var _b = _a, {
445
454
  id,
455
+ testid,
446
456
  before,
447
457
  after,
448
458
  type,
@@ -461,6 +471,7 @@ var InputBase = (_a) => {
461
471
  fullWidth = true
462
472
  } = _b, props = __objRest(_b, [
463
473
  "id",
474
+ "testid",
464
475
  "before",
465
476
  "after",
466
477
  "type",
@@ -525,6 +536,7 @@ var InputBase = (_a) => {
525
536
  "label",
526
537
  {
527
538
  id,
539
+ "data-testid": testid,
528
540
  htmlFor: inputId,
529
541
  ref: inputContainerRef,
530
542
  className: (0, import_clsx5.default)(
@@ -577,6 +589,7 @@ var InputBase = (_a) => {
577
589
  required
578
590
  }, props), attributes), {
579
591
  id: inputId,
592
+ "data-testid": testid ? `${testid}-input` : void 0,
580
593
  className: (0, import_clsx5.default)(
581
594
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
582
595
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -594,7 +607,7 @@ var InputBase = (_a) => {
594
607
  ]
595
608
  }
596
609
  ),
597
- caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
610
+ caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
598
611
  ]
599
612
  }
600
613
  );
@@ -609,7 +622,8 @@ var Input = (_a) => {
609
622
  onChange,
610
623
  onBlur,
611
624
  onClear,
612
- id
625
+ id,
626
+ testid
613
627
  } = _b, props = __objRest(_b, [
614
628
  "variant",
615
629
  "decimals",
@@ -619,30 +633,30 @@ var Input = (_a) => {
619
633
  "onChange",
620
634
  "onBlur",
621
635
  "onClear",
622
- "id"
636
+ "id",
637
+ "testid"
623
638
  ]);
624
639
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
625
640
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
626
641
  (0, import_react.useEffect)(() => {
627
642
  var _a2;
628
643
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
629
- if (variant === "currency") {
630
- if (propValue === void 0 || propValue === "" || typeof propValue === "number" && isNaN(propValue)) {
631
- setInternalValue("");
632
- setDisplayValue("");
633
- } else {
634
- const numValue = typeof propValue === "string" ? parseFloat(propValue) : propValue;
635
- if (!isNaN(numValue)) {
636
- const formatted = numValue.toFixed(decimals != null ? decimals : 2);
637
- setInternalValue(formatted);
638
- setDisplayValue(formatCurrencyDisplay(formatted));
639
- }
640
- }
641
- } else {
642
- setInternalValue(stringValue);
643
- setDisplayValue(stringValue);
644
+ setInternalValue(stringValue);
645
+ setDisplayValue(stringValue);
646
+ }, [propValue]);
647
+ (0, import_react.useEffect)(() => {
648
+ var _a2;
649
+ if (variant !== "currency") {
650
+ return;
644
651
  }
645
- }, [propValue, decimals, variant]);
652
+ const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
653
+ if (!stringValue) {
654
+ return;
655
+ }
656
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
657
+ setInternalValue(formatted);
658
+ setDisplayValue(formatCurrencyDisplay(formatted));
659
+ }, []);
646
660
  const getInputProps = () => {
647
661
  var _a2;
648
662
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -695,6 +709,7 @@ var Input = (_a) => {
695
709
  Icon,
696
710
  {
697
711
  id: id ? `${id}-clear-button` : void 0,
712
+ testid: testid ? `${testid}-clear-button` : void 0,
698
713
  name: "close",
699
714
  onClick: handleSearchReset,
700
715
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -726,14 +741,6 @@ var Input = (_a) => {
726
741
  };
727
742
  const handleChange = (e) => {
728
743
  const rawValue = e.target.value;
729
- if (variant === "search") {
730
- setInternalValue(rawValue);
731
- setDisplayValue(rawValue);
732
- if (typeof onChange === "function") {
733
- onChange(e);
734
- }
735
- return;
736
- }
737
744
  if (variant === "currency") {
738
745
  const raw = rawValue.replace(/,/g, "");
739
746
  if (raw === "") {
@@ -770,6 +777,9 @@ var Input = (_a) => {
770
777
  }
771
778
  };
772
779
  const handleBlur = (e) => {
780
+ if (!internalValue) {
781
+ return;
782
+ }
773
783
  if (variant === "currency") {
774
784
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
775
785
  setInternalValue(formatted);
@@ -794,7 +804,8 @@ var Input = (_a) => {
794
804
  before: getBeforeElement(),
795
805
  after: getAfterElement(),
796
806
  onChange: handleChange,
797
- onBlur: handleBlur
807
+ onBlur: handleBlur,
808
+ testid
798
809
  })
799
810
  );
800
811
  };
@@ -833,7 +844,8 @@ var Stepper = (_a) => {
833
844
  setValue,
834
845
  onDecrease,
835
846
  onIncrease,
836
- id
847
+ id,
848
+ testid
837
849
  } = _b, props = __objRest(_b, [
838
850
  "error",
839
851
  "disabled",
@@ -841,7 +853,8 @@ var Stepper = (_a) => {
841
853
  "setValue",
842
854
  "onDecrease",
843
855
  "onIncrease",
844
- "id"
856
+ "id",
857
+ "testid"
845
858
  ]);
846
859
  function handleIncrease() {
847
860
  setValue((prevVal) => prevVal + 1);
@@ -851,11 +864,12 @@ var Stepper = (_a) => {
851
864
  setValue((prevVal) => prevVal - 1);
852
865
  onDecrease == null ? void 0 : onDecrease();
853
866
  }
854
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { id, className: (0, import_clsx6.default)("flex items-center", componentGap), children: [
867
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { id, "data-testid": testid, className: (0, import_clsx6.default)("flex items-center", componentGap), children: [
855
868
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
856
869
  Button,
857
870
  {
858
871
  id: id ? `${id}-decrease-button` : void 0,
872
+ testid: testid ? `${testid}-decrease-button` : void 0,
859
873
  iconOnly: true,
860
874
  variant: "tertiary",
861
875
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -877,6 +891,7 @@ var Stepper = (_a) => {
877
891
  InputBase,
878
892
  __spreadProps(__spreadValues({}, props), {
879
893
  id: id ? `${id}-input` : void 0,
894
+ testid: testid ? `${testid}-input` : void 0,
880
895
  type: "number",
881
896
  align: "center",
882
897
  value,
@@ -890,6 +905,7 @@ var Stepper = (_a) => {
890
905
  Button,
891
906
  {
892
907
  id: id ? `${id}-increase-button` : void 0,
908
+ testid: testid ? `${testid}-increase-button` : void 0,
893
909
  iconOnly: true,
894
910
  variant: "tertiary",
895
911
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  InputBase
4
- } from "../chunk-R5TLUWDD.js";
4
+ } from "../chunk-4T3DRGLF.js";
5
5
  import "../chunk-5UH6QUFB.js";
6
- import "../chunk-S5K22XTH.js";
6
+ import "../chunk-JWCT72WR.js";
7
7
  import {
8
8
  Button
9
- } from "../chunk-H6LXXGX6.js";
9
+ } from "../chunk-FKMKHLQH.js";
10
10
  import {
11
11
  Icon
12
- } from "../chunk-IGQVA7SC.js";
12
+ } from "../chunk-NKUETCDA.js";
13
13
  import {
14
14
  componentGap
15
15
  } from "../chunk-RDLEIAQU.js";
@@ -30,7 +30,8 @@ var Stepper = (_a) => {
30
30
  setValue,
31
31
  onDecrease,
32
32
  onIncrease,
33
- id
33
+ id,
34
+ testid
34
35
  } = _b, props = __objRest(_b, [
35
36
  "error",
36
37
  "disabled",
@@ -38,7 +39,8 @@ var Stepper = (_a) => {
38
39
  "setValue",
39
40
  "onDecrease",
40
41
  "onIncrease",
41
- "id"
42
+ "id",
43
+ "testid"
42
44
  ]);
43
45
  function handleIncrease() {
44
46
  setValue((prevVal) => prevVal + 1);
@@ -48,11 +50,12 @@ var Stepper = (_a) => {
48
50
  setValue((prevVal) => prevVal - 1);
49
51
  onDecrease == null ? void 0 : onDecrease();
50
52
  }
51
- return /* @__PURE__ */ jsxs("div", { id, className: clsx("flex items-center", componentGap), children: [
53
+ return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, className: clsx("flex items-center", componentGap), children: [
52
54
  /* @__PURE__ */ jsx(
53
55
  Button,
54
56
  {
55
57
  id: id ? `${id}-decrease-button` : void 0,
58
+ testid: testid ? `${testid}-decrease-button` : void 0,
56
59
  iconOnly: true,
57
60
  variant: "tertiary",
58
61
  leftIcon: /* @__PURE__ */ jsx(
@@ -74,6 +77,7 @@ var Stepper = (_a) => {
74
77
  InputBase,
75
78
  __spreadProps(__spreadValues({}, props), {
76
79
  id: id ? `${id}-input` : void 0,
80
+ testid: testid ? `${testid}-input` : void 0,
77
81
  type: "number",
78
82
  align: "center",
79
83
  value,
@@ -87,6 +91,7 @@ var Stepper = (_a) => {
87
91
  Button,
88
92
  {
89
93
  id: id ? `${id}-increase-button` : void 0,
94
+ testid: testid ? `${testid}-increase-button` : void 0,
90
95
  iconOnly: true,
91
96
  variant: "tertiary",
92
97
  leftIcon: /* @__PURE__ */ jsx(
@@ -200,7 +200,8 @@ var Subheader = (_a) => {
200
200
  align,
201
201
  color,
202
202
  tall,
203
- id
203
+ id,
204
+ testid
204
205
  } = _b, props = __objRest(_b, [
205
206
  "className",
206
207
  "children",
@@ -208,13 +209,15 @@ var Subheader = (_a) => {
208
209
  "align",
209
210
  "color",
210
211
  "tall",
211
- "id"
212
+ "id",
213
+ "testid"
212
214
  ]);
213
215
  const Element = as;
214
216
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
215
217
  Element,
216
218
  __spreadProps(__spreadValues({
217
219
  id,
220
+ "data-testid": testid,
218
221
  className: (0, import_clsx2.default)(
219
222
  typography.subheader,
220
223
  className,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Subheader
3
- } from "../chunk-O4M2GISS.js";
3
+ } from "../chunk-CYZL57LH.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -203,7 +203,8 @@ var Display = (_a) => {
203
203
  color,
204
204
  align,
205
205
  variant = "display1",
206
- id
206
+ id,
207
+ testid
207
208
  } = _b, props = __objRest(_b, [
208
209
  "className",
209
210
  "children",
@@ -211,7 +212,8 @@ var Display = (_a) => {
211
212
  "color",
212
213
  "align",
213
214
  "variant",
214
- "id"
215
+ "id",
216
+ "testid"
215
217
  ]);
216
218
  const defaultElement = variant === "display1" ? "h1" : "h2";
217
219
  const Element = as != null ? as : defaultElement;
@@ -219,6 +221,7 @@ var Display = (_a) => {
219
221
  Element,
220
222
  __spreadProps(__spreadValues({
221
223
  id,
224
+ "data-testid": testid,
222
225
  className: (0, import_clsx2.default)(
223
226
  typography[variant],
224
227
  className,
@@ -302,7 +305,8 @@ var Stack = (_a) => {
302
305
  id,
303
306
  noGap,
304
307
  marginTop,
305
- marginBottom
308
+ marginBottom,
309
+ testid
306
310
  } = _b, props = __objRest(_b, [
307
311
  "children",
308
312
  "items",
@@ -338,14 +342,16 @@ var Stack = (_a) => {
338
342
  "id",
339
343
  "noGap",
340
344
  "marginTop",
341
- "marginBottom"
345
+ "marginBottom",
346
+ "testid"
342
347
  ]);
343
348
  const flexClassNames = getFlexClassNames({ items, justify, grow });
344
349
  const gapClassNames = useGapClassNames(sizing);
345
350
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
346
351
  "div",
347
352
  __spreadProps(__spreadValues({
348
- id
353
+ id,
354
+ "data-testid": testid
349
355
  }, props), {
350
356
  style: {
351
357
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -423,7 +429,8 @@ var Paragraph = (_a) => {
423
429
  addOverflow,
424
430
  children,
425
431
  as = "p",
426
- id
432
+ id,
433
+ testid
427
434
  } = _b, props = __objRest(_b, [
428
435
  "className",
429
436
  "color",
@@ -433,13 +440,15 @@ var Paragraph = (_a) => {
433
440
  "addOverflow",
434
441
  "children",
435
442
  "as",
436
- "id"
443
+ "id",
444
+ "testid"
437
445
  ]);
438
446
  const Element = as;
439
447
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
440
448
  Element,
441
449
  __spreadProps(__spreadValues({
442
- id
450
+ id,
451
+ "data-testid": testid
443
452
  }, props), {
444
453
  className: (0, import_clsx4.default)(
445
454
  typography.paragraph,
@@ -471,7 +480,8 @@ var Heading = (_a) => {
471
480
  color,
472
481
  align,
473
482
  variant = "heading1",
474
- id
483
+ id,
484
+ testid
475
485
  } = _b, props = __objRest(_b, [
476
486
  "className",
477
487
  "children",
@@ -479,7 +489,8 @@ var Heading = (_a) => {
479
489
  "color",
480
490
  "align",
481
491
  "variant",
482
- "id"
492
+ "id",
493
+ "testid"
483
494
  ]);
484
495
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
485
496
  const Element = as != null ? as : defaultElement;
@@ -487,6 +498,7 @@ var Heading = (_a) => {
487
498
  Element,
488
499
  __spreadProps(__spreadValues({
489
500
  id,
501
+ "data-testid": testid,
490
502
  className: (0, import_clsx5.default)(
491
503
  typography[variant],
492
504
  className,