@dmsi/wedgekit-react 0.0.139 → 0.0.141

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,16 +1,16 @@
1
1
  import {
2
2
  Heading2,
3
3
  Heading3
4
- } from "../chunk-J6LETUNM.js";
4
+ } from "../chunk-AZ7LVLOK.js";
5
5
  import {
6
6
  Display1
7
- } from "../chunk-AY7ELVQY.js";
7
+ } from "../chunk-EUXB3XKL.js";
8
8
  import {
9
9
  Stack
10
- } from "../chunk-EO3JJWFW.js";
10
+ } from "../chunk-N6JVLYEE.js";
11
11
  import {
12
12
  Paragraph
13
- } from "../chunk-VG4EPHJA.js";
13
+ } from "../chunk-HVI3CL7Y.js";
14
14
  import {
15
15
  typography
16
16
  } from "../chunk-RDLEIAQU.js";
@@ -215,11 +215,13 @@ var textareaReadOnlyClass = (0, import_clsx2.default)(
215
215
  var Textarea = (_a) => {
216
216
  var _b = _a, {
217
217
  id,
218
+ testid,
218
219
  label,
219
220
  error,
220
221
  caption
221
222
  } = _b, props = __objRest(_b, [
222
223
  "id",
224
+ "testid",
223
225
  "label",
224
226
  "error",
225
227
  "caption"
@@ -254,6 +256,7 @@ var Textarea = (_a) => {
254
256
  "textarea",
255
257
  __spreadProps(__spreadValues(__spreadValues({}, props), attributes), {
256
258
  id,
259
+ "data-testid": testid,
257
260
  className: (0, import_clsx2.default)(
258
261
  "disabled:text-text-primary-disabled",
259
262
  typography.paragraph,
@@ -265,7 +268,7 @@ var Textarea = (_a) => {
265
268
  )
266
269
  })
267
270
  ),
268
- caption && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
271
+ caption && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
269
272
  ]
270
273
  }
271
274
  );
@@ -36,11 +36,13 @@ var textareaReadOnlyClass = clsx(
36
36
  var Textarea = (_a) => {
37
37
  var _b = _a, {
38
38
  id,
39
+ testid,
39
40
  label,
40
41
  error,
41
42
  caption
42
43
  } = _b, props = __objRest(_b, [
43
44
  "id",
45
+ "testid",
44
46
  "label",
45
47
  "error",
46
48
  "caption"
@@ -75,6 +77,7 @@ var Textarea = (_a) => {
75
77
  "textarea",
76
78
  __spreadProps(__spreadValues(__spreadValues({}, props), attributes), {
77
79
  id,
80
+ "data-testid": testid,
78
81
  className: clsx(
79
82
  "disabled:text-text-primary-disabled",
80
83
  typography.paragraph,
@@ -86,7 +89,7 @@ var Textarea = (_a) => {
86
89
  )
87
90
  })
88
91
  ),
89
- caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, children: caption })
92
+ caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
90
93
  ]
91
94
  }
92
95
  );
@@ -28,12 +28,14 @@ function Theme({
28
28
  theme,
29
29
  children,
30
30
  id,
31
+ testid,
31
32
  ref
32
33
  }) {
33
34
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
34
35
  "div",
35
36
  {
36
37
  id,
38
+ "data-testid": testid,
37
39
  className: "contents",
38
40
  "data-theme": theme,
39
41
  ref: (e) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Theme
3
- } from "../chunk-6DONKNDT.js";
3
+ } from "../chunk-EWGHVZL5.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Theme
@@ -204,20 +204,23 @@ var Label = (_a) => {
204
204
  className,
205
205
  color,
206
206
  align,
207
- id
207
+ id,
208
+ testid
208
209
  } = _b, props = __objRest(_b, [
209
210
  "as",
210
211
  "padded",
211
212
  "className",
212
213
  "color",
213
214
  "align",
214
- "id"
215
+ "id",
216
+ "testid"
215
217
  ]);
216
218
  const Element = as;
217
219
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
218
220
  Element,
219
221
  __spreadProps(__spreadValues({
220
222
  id,
223
+ "data-testid": testid,
221
224
  className: (0, import_clsx2.default)(
222
225
  typography.label,
223
226
  align === "left" && "text-left",
@@ -242,17 +245,20 @@ function Icon(_a) {
242
245
  var _b = _a, {
243
246
  name,
244
247
  size = 24,
245
- variant = "outline"
248
+ variant = "outline",
249
+ testid
246
250
  } = _b, props = __objRest(_b, [
247
251
  "name",
248
252
  "size",
249
- "variant"
253
+ "variant",
254
+ "testid"
250
255
  ]);
251
256
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
252
257
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
253
258
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
254
259
  "span",
255
260
  __spreadProps(__spreadValues({}, props), {
261
+ "data-testid": testid,
256
262
  className: (0, import_clsx3.default)(
257
263
  "icon",
258
264
  `icon-${size}`,
@@ -305,6 +311,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
305
311
  var InputBase = (_a) => {
306
312
  var _b = _a, {
307
313
  id,
314
+ testid,
308
315
  before,
309
316
  after,
310
317
  type,
@@ -323,6 +330,7 @@ var InputBase = (_a) => {
323
330
  fullWidth = true
324
331
  } = _b, props = __objRest(_b, [
325
332
  "id",
333
+ "testid",
326
334
  "before",
327
335
  "after",
328
336
  "type",
@@ -387,6 +395,7 @@ var InputBase = (_a) => {
387
395
  "label",
388
396
  {
389
397
  id,
398
+ "data-testid": testid,
390
399
  htmlFor: inputId,
391
400
  ref: inputContainerRef,
392
401
  className: (0, import_clsx4.default)(
@@ -439,6 +448,7 @@ var InputBase = (_a) => {
439
448
  required
440
449
  }, props), attributes), {
441
450
  id: inputId,
451
+ "data-testid": testid ? `${testid}-input` : void 0,
442
452
  className: (0, import_clsx4.default)(
443
453
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
444
454
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -456,7 +466,7 @@ var InputBase = (_a) => {
456
466
  ]
457
467
  }
458
468
  ),
459
- caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
469
+ caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
460
470
  ]
461
471
  }
462
472
  );
@@ -471,7 +481,8 @@ var Input = (_a) => {
471
481
  onChange,
472
482
  onBlur,
473
483
  onClear,
474
- id
484
+ id,
485
+ testid
475
486
  } = _b, props = __objRest(_b, [
476
487
  "variant",
477
488
  "decimals",
@@ -481,30 +492,30 @@ var Input = (_a) => {
481
492
  "onChange",
482
493
  "onBlur",
483
494
  "onClear",
484
- "id"
495
+ "id",
496
+ "testid"
485
497
  ]);
486
498
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
487
499
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
488
500
  (0, import_react.useEffect)(() => {
489
501
  var _a2;
490
502
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
491
- if (variant === "currency") {
492
- if (propValue === void 0 || propValue === "" || typeof propValue === "number" && isNaN(propValue)) {
493
- setInternalValue("");
494
- setDisplayValue("");
495
- } else {
496
- const numValue = typeof propValue === "string" ? parseFloat(propValue) : propValue;
497
- if (!isNaN(numValue)) {
498
- const formatted = numValue.toFixed(decimals != null ? decimals : 2);
499
- setInternalValue(formatted);
500
- setDisplayValue(formatCurrencyDisplay(formatted));
501
- }
502
- }
503
- } else {
504
- setInternalValue(stringValue);
505
- setDisplayValue(stringValue);
503
+ setInternalValue(stringValue);
504
+ setDisplayValue(stringValue);
505
+ }, [propValue]);
506
+ (0, import_react.useEffect)(() => {
507
+ var _a2;
508
+ if (variant !== "currency") {
509
+ return;
506
510
  }
507
- }, [propValue, decimals, variant]);
511
+ const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
512
+ if (!stringValue) {
513
+ return;
514
+ }
515
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
516
+ setInternalValue(formatted);
517
+ setDisplayValue(formatCurrencyDisplay(formatted));
518
+ }, []);
508
519
  const getInputProps = () => {
509
520
  var _a2;
510
521
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -557,6 +568,7 @@ var Input = (_a) => {
557
568
  Icon,
558
569
  {
559
570
  id: id ? `${id}-clear-button` : void 0,
571
+ testid: testid ? `${testid}-clear-button` : void 0,
560
572
  name: "close",
561
573
  onClick: handleSearchReset,
562
574
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -588,14 +600,6 @@ var Input = (_a) => {
588
600
  };
589
601
  const handleChange = (e) => {
590
602
  const rawValue = e.target.value;
591
- if (variant === "search") {
592
- setInternalValue(rawValue);
593
- setDisplayValue(rawValue);
594
- if (typeof onChange === "function") {
595
- onChange(e);
596
- }
597
- return;
598
- }
599
603
  if (variant === "currency") {
600
604
  const raw = rawValue.replace(/,/g, "");
601
605
  if (raw === "") {
@@ -632,6 +636,9 @@ var Input = (_a) => {
632
636
  }
633
637
  };
634
638
  const handleBlur = (e) => {
639
+ if (!internalValue) {
640
+ return;
641
+ }
635
642
  if (variant === "currency") {
636
643
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
637
644
  setInternalValue(formatted);
@@ -656,7 +663,8 @@ var Input = (_a) => {
656
663
  before: getBeforeElement(),
657
664
  after: getAfterElement(),
658
665
  onChange: handleChange,
659
- onBlur: handleBlur
666
+ onBlur: handleBlur,
667
+ testid
660
668
  })
661
669
  );
662
670
  };
@@ -773,7 +781,8 @@ var Stack = (_a) => {
773
781
  id,
774
782
  noGap,
775
783
  marginTop,
776
- marginBottom
784
+ marginBottom,
785
+ testid
777
786
  } = _b, props = __objRest(_b, [
778
787
  "children",
779
788
  "items",
@@ -809,14 +818,16 @@ var Stack = (_a) => {
809
818
  "id",
810
819
  "noGap",
811
820
  "marginTop",
812
- "marginBottom"
821
+ "marginBottom",
822
+ "testid"
813
823
  ]);
814
824
  const flexClassNames = getFlexClassNames({ items, justify, grow });
815
825
  const gapClassNames = useGapClassNames(sizing);
816
826
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
817
827
  "div",
818
828
  __spreadProps(__spreadValues({
819
- id
829
+ id,
830
+ "data-testid": testid
820
831
  }, props), {
821
832
  style: {
822
833
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -882,7 +893,7 @@ var Stack = (_a) => {
882
893
  var import_jsx_runtime5 = require("react/jsx-runtime");
883
894
  var timePickerScrollableStyle = "overflow-auto max-h-full py-4 no-scrollbar";
884
895
  var Time = (_a) => {
885
- var _b = _a, { onChange, format = "12h", id } = _b, props = __objRest(_b, ["onChange", "format", "id"]);
896
+ var _b = _a, { onChange, format = "12h", id, testid } = _b, props = __objRest(_b, ["onChange", "format", "id", "testid"]);
886
897
  const [showTimePicker, setShowTimePicker] = (0, import_react2.useState)(false);
887
898
  const [hasInteracted, setHasInteracted] = (0, import_react2.useState)(false);
888
899
  const inputRef = (0, import_react2.useRef)(null);
@@ -1091,6 +1102,7 @@ var Time = (_a) => {
1091
1102
  TimeCell,
1092
1103
  {
1093
1104
  id: id ? `${id}-${type}-${val}` : void 0,
1105
+ testid: testid ? `${testid}-${type}-${val}` : void 0,
1094
1106
  selected: isSelected,
1095
1107
  ref: isSelected ? (el) => {
1096
1108
  selectedRefs[type].current = el;
@@ -1107,6 +1119,7 @@ var Time = (_a) => {
1107
1119
  InputBase,
1108
1120
  __spreadProps(__spreadValues({}, props), {
1109
1121
  id,
1122
+ testid,
1110
1123
  ref: inputRef,
1111
1124
  inputContainerRef,
1112
1125
  value: inputValue,
@@ -1162,6 +1175,7 @@ var Time = (_a) => {
1162
1175
  function TimeCell(_a) {
1163
1176
  var _b = _a, {
1164
1177
  id,
1178
+ testid,
1165
1179
  selected = false,
1166
1180
  start = false,
1167
1181
  intermediate = false,
@@ -1176,6 +1190,7 @@ function TimeCell(_a) {
1176
1190
  ref
1177
1191
  } = _b, props = __objRest(_b, [
1178
1192
  "id",
1193
+ "testid",
1179
1194
  "selected",
1180
1195
  "start",
1181
1196
  "intermediate",
@@ -1195,6 +1210,7 @@ function TimeCell(_a) {
1195
1210
  "button",
1196
1211
  __spreadProps(__spreadValues({
1197
1212
  id,
1213
+ "data-testid": testid,
1198
1214
  onPointerOver: onHover,
1199
1215
  onClick,
1200
1216
  onKeyDown,
@@ -3,15 +3,15 @@ import {
3
3
  } from "../chunk-4T7F5BZZ.js";
4
4
  import {
5
5
  InputBase
6
- } from "../chunk-R5TLUWDD.js";
6
+ } from "../chunk-4T3DRGLF.js";
7
7
  import "../chunk-5UH6QUFB.js";
8
- import "../chunk-S5K22XTH.js";
8
+ import "../chunk-JWCT72WR.js";
9
9
  import {
10
10
  Stack
11
- } from "../chunk-EO3JJWFW.js";
11
+ } from "../chunk-N6JVLYEE.js";
12
12
  import {
13
13
  Icon
14
- } from "../chunk-IGQVA7SC.js";
14
+ } from "../chunk-NKUETCDA.js";
15
15
  import {
16
16
  typography
17
17
  } from "../chunk-RDLEIAQU.js";
@@ -28,7 +28,7 @@ import clsx from "clsx";
28
28
  import { jsx, jsxs } from "react/jsx-runtime";
29
29
  var timePickerScrollableStyle = "overflow-auto max-h-full py-4 no-scrollbar";
30
30
  var Time = (_a) => {
31
- var _b = _a, { onChange, format = "12h", id } = _b, props = __objRest(_b, ["onChange", "format", "id"]);
31
+ var _b = _a, { onChange, format = "12h", id, testid } = _b, props = __objRest(_b, ["onChange", "format", "id", "testid"]);
32
32
  const [showTimePicker, setShowTimePicker] = useState(false);
33
33
  const [hasInteracted, setHasInteracted] = useState(false);
34
34
  const inputRef = useRef(null);
@@ -237,6 +237,7 @@ var Time = (_a) => {
237
237
  TimeCell,
238
238
  {
239
239
  id: id ? `${id}-${type}-${val}` : void 0,
240
+ testid: testid ? `${testid}-${type}-${val}` : void 0,
240
241
  selected: isSelected,
241
242
  ref: isSelected ? (el) => {
242
243
  selectedRefs[type].current = el;
@@ -253,6 +254,7 @@ var Time = (_a) => {
253
254
  InputBase,
254
255
  __spreadProps(__spreadValues({}, props), {
255
256
  id,
257
+ testid,
256
258
  ref: inputRef,
257
259
  inputContainerRef,
258
260
  value: inputValue,
@@ -308,6 +310,7 @@ var Time = (_a) => {
308
310
  function TimeCell(_a) {
309
311
  var _b = _a, {
310
312
  id,
313
+ testid,
311
314
  selected = false,
312
315
  start = false,
313
316
  intermediate = false,
@@ -322,6 +325,7 @@ function TimeCell(_a) {
322
325
  ref
323
326
  } = _b, props = __objRest(_b, [
324
327
  "id",
328
+ "testid",
325
329
  "selected",
326
330
  "start",
327
331
  "intermediate",
@@ -341,6 +345,7 @@ function TimeCell(_a) {
341
345
  "button",
342
346
  __spreadProps(__spreadValues({
343
347
  id,
348
+ "data-testid": testid,
344
349
  onPointerOver: onHover,
345
350
  onClick,
346
351
  onKeyDown,
@@ -206,7 +206,8 @@ var Heading = (_a) => {
206
206
  color,
207
207
  align,
208
208
  variant = "heading1",
209
- id
209
+ id,
210
+ testid
210
211
  } = _b, props = __objRest(_b, [
211
212
  "className",
212
213
  "children",
@@ -214,7 +215,8 @@ var Heading = (_a) => {
214
215
  "color",
215
216
  "align",
216
217
  "variant",
217
- "id"
218
+ "id",
219
+ "testid"
218
220
  ]);
219
221
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
220
222
  const Element = as != null ? as : defaultElement;
@@ -222,6 +224,7 @@ var Heading = (_a) => {
222
224
  Element,
223
225
  __spreadProps(__spreadValues({
224
226
  id,
227
+ "data-testid": testid,
225
228
  className: (0, import_clsx2.default)(
226
229
  typography[variant],
227
230
  className,
@@ -258,7 +261,8 @@ var Paragraph = (_a) => {
258
261
  addOverflow,
259
262
  children,
260
263
  as = "p",
261
- id
264
+ id,
265
+ testid
262
266
  } = _b, props = __objRest(_b, [
263
267
  "className",
264
268
  "color",
@@ -268,13 +272,15 @@ var Paragraph = (_a) => {
268
272
  "addOverflow",
269
273
  "children",
270
274
  "as",
271
- "id"
275
+ "id",
276
+ "testid"
272
277
  ]);
273
278
  const Element = as;
274
279
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
275
280
  Element,
276
281
  __spreadProps(__spreadValues({
277
- id
282
+ id,
283
+ "data-testid": testid
278
284
  }, props), {
279
285
  className: (0, import_clsx3.default)(
280
286
  typography.paragraph,
@@ -302,17 +308,20 @@ function Icon(_a) {
302
308
  var _b = _a, {
303
309
  name,
304
310
  size = 24,
305
- variant = "outline"
311
+ variant = "outline",
312
+ testid
306
313
  } = _b, props = __objRest(_b, [
307
314
  "name",
308
315
  "size",
309
- "variant"
316
+ "variant",
317
+ "testid"
310
318
  ]);
311
319
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
312
320
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
313
321
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
314
322
  "span",
315
323
  __spreadProps(__spreadValues({}, props), {
324
+ "data-testid": testid,
316
325
  className: (0, import_clsx4.default)(
317
326
  "icon",
318
327
  `icon-${size}`,
@@ -344,7 +353,8 @@ var Button = (_a) => {
344
353
  iconOnly = false,
345
354
  colorClassName,
346
355
  href,
347
- id
356
+ id,
357
+ testid
348
358
  } = _b, props = __objRest(_b, [
349
359
  "variant",
350
360
  "as",
@@ -358,7 +368,8 @@ var Button = (_a) => {
358
368
  "iconOnly",
359
369
  "colorClassName",
360
370
  "href",
361
- "id"
371
+ "id",
372
+ "testid"
362
373
  ]);
363
374
  const primaryVariantStyles = variant === "primary" && (0, import_clsx5.default)(
364
375
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -446,6 +457,7 @@ var Button = (_a) => {
446
457
  Element,
447
458
  __spreadProps(__spreadValues({
448
459
  id,
460
+ "data-testid": testid,
449
461
  type: Element === "button" ? "button" : void 0,
450
462
  className: buttonClasses
451
463
  }, props), {
@@ -455,7 +467,7 @@ var Button = (_a) => {
455
467
  "data-theme": variant === "navigation" ? "brand" : void 0,
456
468
  children: [
457
469
  leftIcon && leftIcon,
458
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
470
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
459
471
  rightIcon && rightIcon
460
472
  ]
461
473
  })
@@ -532,6 +544,7 @@ function getToastRoot() {
532
544
  var Toast = (_a) => {
533
545
  var _b = _a, {
534
546
  id,
547
+ testid,
535
548
  variant = "success",
536
549
  title,
537
550
  message,
@@ -542,6 +555,7 @@ var Toast = (_a) => {
542
555
  showViewButton = false
543
556
  } = _b, props = __objRest(_b, [
544
557
  "id",
558
+ "testid",
545
559
  "variant",
546
560
  "title",
547
561
  "message",
@@ -612,6 +626,7 @@ var Toast = (_a) => {
612
626
  "div",
613
627
  __spreadProps(__spreadValues({
614
628
  id,
629
+ "data-testid": testid,
615
630
  ref: toastElementRef,
616
631
  onMouseEnter: handleMouseEnter,
617
632
  onMouseLeave: handleMouseLeave,
@@ -627,13 +642,14 @@ var Toast = (_a) => {
627
642
  iconElement,
628
643
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", layoutGroupGap), children: [
629
644
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx6.default)("flex flex-col w-68", componentGap), children: [
630
- title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading3, { id: id ? `${id}-title` : void 0, children: title }),
631
- message && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { id: id ? `${id}-message` : void 0, children: message })
645
+ title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading3, { testid: testid ? `${testid}-title` : void 0, id: id ? `${id}-title` : void 0, children: title }),
646
+ message && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { testid: testid ? `${testid}-message` : void 0, id: id ? `${id}-message` : void 0, children: message })
632
647
  ] }),
633
648
  showViewButton && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
634
649
  Button,
635
650
  {
636
651
  id: id ? `${id}-view-button` : void 0,
652
+ testid: testid ? `${testid}-view-button` : void 0,
637
653
  variant: "tertiary",
638
654
  href: viewButtonLink,
639
655
  children: "View"
@@ -659,6 +675,7 @@ function createToast(config) {
659
675
  Toast,
660
676
  {
661
677
  id: config.id,
678
+ testid: config.testid,
662
679
  show: true,
663
680
  onClose: handleClose,
664
681
  variant: config.variant,
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  Heading3
4
- } from "../chunk-J6LETUNM.js";
4
+ } from "../chunk-AZ7LVLOK.js";
5
5
  import {
6
6
  Paragraph
7
- } from "../chunk-VG4EPHJA.js";
7
+ } from "../chunk-HVI3CL7Y.js";
8
8
  import {
9
9
  Button
10
- } from "../chunk-H6LXXGX6.js";
10
+ } from "../chunk-FKMKHLQH.js";
11
11
  import {
12
12
  Icon
13
- } from "../chunk-IGQVA7SC.js";
13
+ } from "../chunk-NKUETCDA.js";
14
14
  import {
15
15
  componentGap,
16
16
  componentPadding,
@@ -93,6 +93,7 @@ function getToastRoot() {
93
93
  var Toast = (_a) => {
94
94
  var _b = _a, {
95
95
  id,
96
+ testid,
96
97
  variant = "success",
97
98
  title,
98
99
  message,
@@ -103,6 +104,7 @@ var Toast = (_a) => {
103
104
  showViewButton = false
104
105
  } = _b, props = __objRest(_b, [
105
106
  "id",
107
+ "testid",
106
108
  "variant",
107
109
  "title",
108
110
  "message",
@@ -173,6 +175,7 @@ var Toast = (_a) => {
173
175
  "div",
174
176
  __spreadProps(__spreadValues({
175
177
  id,
178
+ "data-testid": testid,
176
179
  ref: toastElementRef,
177
180
  onMouseEnter: handleMouseEnter,
178
181
  onMouseLeave: handleMouseLeave,
@@ -188,13 +191,14 @@ var Toast = (_a) => {
188
191
  iconElement,
189
192
  /* @__PURE__ */ jsxs("div", { className: clsx("flex items-center", layoutGroupGap), children: [
190
193
  /* @__PURE__ */ jsxs("div", { className: clsx("flex flex-col w-68", componentGap), children: [
191
- title && /* @__PURE__ */ jsx(Heading3, { id: id ? `${id}-title` : void 0, children: title }),
192
- message && /* @__PURE__ */ jsx(Paragraph, { id: id ? `${id}-message` : void 0, children: message })
194
+ title && /* @__PURE__ */ jsx(Heading3, { testid: testid ? `${testid}-title` : void 0, id: id ? `${id}-title` : void 0, children: title }),
195
+ message && /* @__PURE__ */ jsx(Paragraph, { testid: testid ? `${testid}-message` : void 0, id: id ? `${id}-message` : void 0, children: message })
193
196
  ] }),
194
197
  showViewButton && /* @__PURE__ */ jsx(
195
198
  Button,
196
199
  {
197
200
  id: id ? `${id}-view-button` : void 0,
201
+ testid: testid ? `${testid}-view-button` : void 0,
198
202
  variant: "tertiary",
199
203
  href: viewButtonLink,
200
204
  children: "View"
@@ -220,6 +224,7 @@ function createToast(config) {
220
224
  Toast,
221
225
  {
222
226
  id: config.id,
227
+ testid: config.testid,
223
228
  show: true,
224
229
  onClose: handleClose,
225
230
  variant: config.variant,
@@ -168,6 +168,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
168
168
  var import_jsx_runtime = require("react/jsx-runtime");
169
169
  var Tooltip = ({
170
170
  id,
171
+ testid,
171
172
  message,
172
173
  position = "top",
173
174
  children,
@@ -234,6 +235,7 @@ var Tooltip = ({
234
235
  "div",
235
236
  {
236
237
  id,
238
+ "data-testid": testid,
237
239
  ref,
238
240
  className: "relative inline-grid grid-cols-[auto_1fr] items-center",
239
241
  onMouseEnter: handleMouseEnter,
@@ -245,6 +247,7 @@ var Tooltip = ({
245
247
  "div",
246
248
  {
247
249
  id: id ? `${id}-message` : void 0,
250
+ "data-testid": testid ? `${testid}-message` : void 0,
248
251
  ref: tooltipRef,
249
252
  style: {
250
253
  position: "fixed",