@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
@@ -35,9 +35,9 @@ __export(HorizontalDivider_exports, {
35
35
  module.exports = __toCommonJS(HorizontalDivider_exports);
36
36
  var import_clsx = __toESM(require("clsx"), 1);
37
37
  var import_jsx_runtime = require("react/jsx-runtime");
38
- function HorizontalDivider({ id, hideOnMobile }) {
38
+ function HorizontalDivider({ id, testid, hideOnMobile }) {
39
39
  const hideOnMobileStyle = (0, import_clsx.default)(hideOnMobile && "hidden desktop:block");
40
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("hr", { id, className: (0, import_clsx.default)("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("hr", { id, "data-testid": testid, className: (0, import_clsx.default)("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
41
41
  }
42
42
  // Annotate the CommonJS export names for ESM import in node:
43
43
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HorizontalDivider
3
- } from "../chunk-3ZUSYRI7.js";
3
+ } from "../chunk-EPQLWHCL.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  HorizontalDivider
@@ -68,17 +68,20 @@ function Icon(_a) {
68
68
  var _b = _a, {
69
69
  name,
70
70
  size = 24,
71
- variant = "outline"
71
+ variant = "outline",
72
+ testid
72
73
  } = _b, props = __objRest(_b, [
73
74
  "name",
74
75
  "size",
75
- "variant"
76
+ "variant",
77
+ "testid"
76
78
  ]);
77
79
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
78
80
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
79
81
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
82
  "span",
81
83
  __spreadProps(__spreadValues({}, props), {
84
+ "data-testid": testid,
82
85
  className: (0, import_clsx.default)(
83
86
  "icon",
84
87
  `icon-${size}`,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "../chunk-IGQVA7SC.js";
3
+ } from "../chunk-NKUETCDA.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Icon
@@ -207,20 +207,23 @@ var Label = (_a) => {
207
207
  className,
208
208
  color,
209
209
  align,
210
- id
210
+ id,
211
+ testid
211
212
  } = _b, props = __objRest(_b, [
212
213
  "as",
213
214
  "padded",
214
215
  "className",
215
216
  "color",
216
217
  "align",
217
- "id"
218
+ "id",
219
+ "testid"
218
220
  ]);
219
221
  const Element = as;
220
222
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
221
223
  Element,
222
224
  __spreadProps(__spreadValues({
223
225
  id,
226
+ "data-testid": testid,
224
227
  className: (0, import_clsx2.default)(
225
228
  typography.label,
226
229
  align === "left" && "text-left",
@@ -245,17 +248,20 @@ function Icon(_a) {
245
248
  var _b = _a, {
246
249
  name,
247
250
  size = 24,
248
- variant = "outline"
251
+ variant = "outline",
252
+ testid
249
253
  } = _b, props = __objRest(_b, [
250
254
  "name",
251
255
  "size",
252
- "variant"
256
+ "variant",
257
+ "testid"
253
258
  ]);
254
259
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
255
260
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
256
261
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
257
262
  "span",
258
263
  __spreadProps(__spreadValues({}, props), {
264
+ "data-testid": testid,
259
265
  className: (0, import_clsx3.default)(
260
266
  "icon",
261
267
  `icon-${size}`,
@@ -308,6 +314,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
308
314
  var InputBase = (_a) => {
309
315
  var _b = _a, {
310
316
  id,
317
+ testid,
311
318
  before,
312
319
  after,
313
320
  type,
@@ -326,6 +333,7 @@ var InputBase = (_a) => {
326
333
  fullWidth = true
327
334
  } = _b, props = __objRest(_b, [
328
335
  "id",
336
+ "testid",
329
337
  "before",
330
338
  "after",
331
339
  "type",
@@ -390,6 +398,7 @@ var InputBase = (_a) => {
390
398
  "label",
391
399
  {
392
400
  id,
401
+ "data-testid": testid,
393
402
  htmlFor: inputId,
394
403
  ref: inputContainerRef,
395
404
  className: (0, import_clsx4.default)(
@@ -442,6 +451,7 @@ var InputBase = (_a) => {
442
451
  required
443
452
  }, props), attributes), {
444
453
  id: inputId,
454
+ "data-testid": testid ? `${testid}-input` : void 0,
445
455
  className: (0, import_clsx4.default)(
446
456
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
447
457
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -459,7 +469,7 @@ var InputBase = (_a) => {
459
469
  ]
460
470
  }
461
471
  ),
462
- caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
472
+ caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
463
473
  ]
464
474
  }
465
475
  );
@@ -474,7 +484,8 @@ var Input = (_a) => {
474
484
  onChange,
475
485
  onBlur,
476
486
  onClear,
477
- id
487
+ id,
488
+ testid
478
489
  } = _b, props = __objRest(_b, [
479
490
  "variant",
480
491
  "decimals",
@@ -484,30 +495,30 @@ var Input = (_a) => {
484
495
  "onChange",
485
496
  "onBlur",
486
497
  "onClear",
487
- "id"
498
+ "id",
499
+ "testid"
488
500
  ]);
489
501
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
490
502
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
491
503
  (0, import_react.useEffect)(() => {
492
504
  var _a2;
493
505
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
494
- if (variant === "currency") {
495
- if (propValue === void 0 || propValue === "" || typeof propValue === "number" && isNaN(propValue)) {
496
- setInternalValue("");
497
- setDisplayValue("");
498
- } else {
499
- const numValue = typeof propValue === "string" ? parseFloat(propValue) : propValue;
500
- if (!isNaN(numValue)) {
501
- const formatted = numValue.toFixed(decimals != null ? decimals : 2);
502
- setInternalValue(formatted);
503
- setDisplayValue(formatCurrencyDisplay(formatted));
504
- }
505
- }
506
- } else {
507
- setInternalValue(stringValue);
508
- setDisplayValue(stringValue);
506
+ setInternalValue(stringValue);
507
+ setDisplayValue(stringValue);
508
+ }, [propValue]);
509
+ (0, import_react.useEffect)(() => {
510
+ var _a2;
511
+ if (variant !== "currency") {
512
+ return;
513
+ }
514
+ const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
515
+ if (!stringValue) {
516
+ return;
509
517
  }
510
- }, [propValue, decimals, variant]);
518
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
519
+ setInternalValue(formatted);
520
+ setDisplayValue(formatCurrencyDisplay(formatted));
521
+ }, []);
511
522
  const getInputProps = () => {
512
523
  var _a2;
513
524
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -560,6 +571,7 @@ var Input = (_a) => {
560
571
  Icon,
561
572
  {
562
573
  id: id ? `${id}-clear-button` : void 0,
574
+ testid: testid ? `${testid}-clear-button` : void 0,
563
575
  name: "close",
564
576
  onClick: handleSearchReset,
565
577
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -591,14 +603,6 @@ var Input = (_a) => {
591
603
  };
592
604
  const handleChange = (e) => {
593
605
  const rawValue = e.target.value;
594
- if (variant === "search") {
595
- setInternalValue(rawValue);
596
- setDisplayValue(rawValue);
597
- if (typeof onChange === "function") {
598
- onChange(e);
599
- }
600
- return;
601
- }
602
606
  if (variant === "currency") {
603
607
  const raw = rawValue.replace(/,/g, "");
604
608
  if (raw === "") {
@@ -635,6 +639,9 @@ var Input = (_a) => {
635
639
  }
636
640
  };
637
641
  const handleBlur = (e) => {
642
+ if (!internalValue) {
643
+ return;
644
+ }
638
645
  if (variant === "currency") {
639
646
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
640
647
  setInternalValue(formatted);
@@ -659,7 +666,8 @@ var Input = (_a) => {
659
666
  before: getBeforeElement(),
660
667
  after: getAfterElement(),
661
668
  onChange: handleChange,
662
- onBlur: handleBlur
669
+ onBlur: handleBlur,
670
+ testid
663
671
  })
664
672
  );
665
673
  };
@@ -6,10 +6,10 @@ import {
6
6
  InputBase,
7
7
  Percentage,
8
8
  UOM
9
- } from "../chunk-R5TLUWDD.js";
9
+ } from "../chunk-4T3DRGLF.js";
10
10
  import "../chunk-5UH6QUFB.js";
11
- import "../chunk-S5K22XTH.js";
12
- import "../chunk-IGQVA7SC.js";
11
+ import "../chunk-JWCT72WR.js";
12
+ import "../chunk-NKUETCDA.js";
13
13
  import "../chunk-RDLEIAQU.js";
14
14
  import "../chunk-ORMEWXMH.js";
15
15
  export {
@@ -202,20 +202,23 @@ var Label = (_a) => {
202
202
  className,
203
203
  color,
204
204
  align,
205
- id
205
+ id,
206
+ testid
206
207
  } = _b, props = __objRest(_b, [
207
208
  "as",
208
209
  "padded",
209
210
  "className",
210
211
  "color",
211
212
  "align",
212
- "id"
213
+ "id",
214
+ "testid"
213
215
  ]);
214
216
  const Element = as;
215
217
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
218
  Element,
217
219
  __spreadProps(__spreadValues({
218
220
  id,
221
+ "data-testid": testid,
219
222
  className: (0, import_clsx2.default)(
220
223
  typography.label,
221
224
  align === "left" && "text-left",
@@ -240,6 +243,7 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
240
243
  var InputGroup = (_a) => {
241
244
  var _b = _a, {
242
245
  id,
246
+ testid,
243
247
  label,
244
248
  orientation = "horizontal",
245
249
  error = false,
@@ -247,6 +251,7 @@ var InputGroup = (_a) => {
247
251
  caption
248
252
  } = _b, props = __objRest(_b, [
249
253
  "id",
254
+ "testid",
250
255
  "label",
251
256
  "orientation",
252
257
  "error",
@@ -255,11 +260,13 @@ var InputGroup = (_a) => {
255
260
  ]);
256
261
  const internalId = (0, import_react.useId)();
257
262
  const labelId = id ? `${id}-label` : void 0;
258
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", __spreadProps(__spreadValues({ id }, props), { className: (0, import_clsx3.default)("flex flex-col", componentGap), children: [
263
+ const labelTestId = testid ? `${testid}-label` : void 0;
264
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", __spreadProps(__spreadValues({ id, "data-testid": testid }, props), { className: (0, import_clsx3.default)("flex flex-col", componentGap), children: [
259
265
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
260
266
  Label,
261
267
  {
262
268
  id: labelId,
269
+ testid: labelTestId,
263
270
  as: "label",
264
271
  className: (0, import_clsx3.default)({ "!text-text-primary-error": error }),
265
272
  htmlFor: internalId,
@@ -276,7 +283,7 @@ var InputGroup = (_a) => {
276
283
  children
277
284
  }
278
285
  ),
279
- caption && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
286
+ caption && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
280
287
  ] }));
281
288
  };
282
289
  InputGroup.displayName = "InputGroup";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Label
4
- } from "../chunk-S5K22XTH.js";
4
+ } from "../chunk-JWCT72WR.js";
5
5
  import {
6
6
  componentGap,
7
7
  layoutGap
@@ -19,6 +19,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
19
19
  var InputGroup = (_a) => {
20
20
  var _b = _a, {
21
21
  id,
22
+ testid,
22
23
  label,
23
24
  orientation = "horizontal",
24
25
  error = false,
@@ -26,6 +27,7 @@ var InputGroup = (_a) => {
26
27
  caption
27
28
  } = _b, props = __objRest(_b, [
28
29
  "id",
30
+ "testid",
29
31
  "label",
30
32
  "orientation",
31
33
  "error",
@@ -34,11 +36,13 @@ var InputGroup = (_a) => {
34
36
  ]);
35
37
  const internalId = useId();
36
38
  const labelId = id ? `${id}-label` : void 0;
37
- return /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({ id }, props), { className: clsx("flex flex-col", componentGap), children: [
39
+ const labelTestId = testid ? `${testid}-label` : void 0;
40
+ return /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({ id, "data-testid": testid }, props), { className: clsx("flex flex-col", componentGap), children: [
38
41
  /* @__PURE__ */ jsx(
39
42
  Label,
40
43
  {
41
44
  id: labelId,
45
+ testid: labelTestId,
42
46
  as: "label",
43
47
  className: clsx({ "!text-text-primary-error": error }),
44
48
  htmlFor: internalId,
@@ -55,7 +59,7 @@ var InputGroup = (_a) => {
55
59
  children
56
60
  }
57
61
  ),
58
- caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, children: caption })
62
+ caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
59
63
  ] }));
60
64
  };
61
65
  InputGroup.displayName = "InputGroup";
@@ -199,20 +199,23 @@ var Label = (_a) => {
199
199
  className,
200
200
  color,
201
201
  align,
202
- id
202
+ id,
203
+ testid
203
204
  } = _b, props = __objRest(_b, [
204
205
  "as",
205
206
  "padded",
206
207
  "className",
207
208
  "color",
208
209
  "align",
209
- "id"
210
+ "id",
211
+ "testid"
210
212
  ]);
211
213
  const Element = as;
212
214
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
213
215
  Element,
214
216
  __spreadProps(__spreadValues({
215
217
  id,
218
+ "data-testid": testid,
216
219
  className: (0, import_clsx2.default)(
217
220
  typography.label,
218
221
  align === "left" && "text-left",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Label
3
- } from "../chunk-S5K22XTH.js";
3
+ } from "../chunk-JWCT72WR.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -202,7 +202,8 @@ var Link = (_a) => {
202
202
  color,
203
203
  paddedY,
204
204
  align,
205
- underline = false
205
+ underline = false,
206
+ testid
206
207
  } = _b, props = __objRest(_b, [
207
208
  "as",
208
209
  "className",
@@ -212,7 +213,8 @@ var Link = (_a) => {
212
213
  "color",
213
214
  "paddedY",
214
215
  "align",
215
- "underline"
216
+ "underline",
217
+ "testid"
216
218
  ]);
217
219
  const Component = as;
218
220
  const primaryStateStyles = variant === "primary" && !disabled && (0, import_clsx2.default)(
@@ -260,7 +262,8 @@ var Link = (_a) => {
260
262
  color: color ? `var(--color-${color})` : void 0
261
263
  }),
262
264
  "aria-disabled": disabled,
263
- tabIndex: disabled ? -1 : void 0
265
+ tabIndex: disabled ? -1 : void 0,
266
+ "data-testid": testid
264
267
  })
265
268
  );
266
269
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Link
3
- } from "../chunk-AOELEEUS.js";
3
+ } from "../chunk-I6GEUF6Y.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -27,10 +27,11 @@ var import_jsx_runtime = require("react/jsx-runtime");
27
27
  function List({
28
28
  children,
29
29
  ordered,
30
- id
30
+ id,
31
+ testid
31
32
  }) {
32
33
  const Element = ordered ? "ol" : "ul";
33
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, { id, className: "list-disc list-inside", children });
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, { id, "data-testid": testid, className: "list-disc list-inside", children });
34
35
  }
35
36
  // Annotate the CommonJS export names for ESM import in node:
36
37
  0 && (module.exports = {
@@ -5,10 +5,11 @@ import { jsx } from "react/jsx-runtime";
5
5
  function List({
6
6
  children,
7
7
  ordered,
8
- id
8
+ id,
9
+ testid
9
10
  }) {
10
11
  const Element = ordered ? "ol" : "ul";
11
- return /* @__PURE__ */ jsx(Element, { id, className: "list-disc list-inside", children });
12
+ return /* @__PURE__ */ jsx(Element, { id, "data-testid": testid, className: "list-disc list-inside", children });
12
13
  }
13
14
  export {
14
15
  List
@@ -37,11 +37,12 @@ var import_clsx = __toESM(require("clsx"), 1);
37
37
 
38
38
  // src/components/Spinner.tsx
39
39
  var import_jsx_runtime = require("react/jsx-runtime");
40
- var Spinner = ({ size = "small" }) => {
40
+ var Spinner = ({ size = "small", testid }) => {
41
41
  const dimension = size === "large" ? 48 : 24;
42
42
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
43
43
  "svg",
44
44
  {
45
+ "data-testid": testid,
45
46
  width: dimension,
46
47
  height: dimension,
47
48
  viewBox: "0 0 24 24",
@@ -146,7 +147,7 @@ Spinner.displayName = "Spinner";
146
147
 
147
148
  // src/components/LoadingScrim.tsx
148
149
  var import_jsx_runtime2 = require("react/jsx-runtime");
149
- function LoadingScrim({ className }) {
150
+ function LoadingScrim({ className, testid }) {
150
151
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
151
152
  "div",
152
153
  {
@@ -157,6 +158,7 @@ function LoadingScrim({ className }) {
157
158
  "aria-modal": "true",
158
159
  role: "dialog",
159
160
  tabIndex: -1,
161
+ "data-testid": testid,
160
162
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, { size: "large" }) })
161
163
  }
162
164
  );
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Spinner
3
- } from "../chunk-4F6VQXKY.js";
3
+ } from "../chunk-GG5JOFS6.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
 
6
6
  // src/components/LoadingScrim.tsx
7
7
  import clsx from "clsx";
8
8
  import { jsx } from "react/jsx-runtime";
9
- function LoadingScrim({ className }) {
9
+ function LoadingScrim({ className, testid }) {
10
10
  return /* @__PURE__ */ jsx(
11
11
  "div",
12
12
  {
@@ -17,6 +17,7 @@ function LoadingScrim({ className }) {
17
17
  "aria-modal": "true",
18
18
  role: "dialog",
19
19
  tabIndex: -1,
20
+ "data-testid": testid,
20
21
  children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, { size: "large" }) })
21
22
  }
22
23
  );
@@ -165,6 +165,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
165
165
  var import_jsx_runtime = require("react/jsx-runtime");
166
166
  var MainBar = ({
167
167
  id,
168
+ testid,
168
169
  leftContent: left,
169
170
  rightContent: right,
170
171
  mobileLeftContent: mobileLeft,
@@ -179,6 +180,7 @@ var MainBar = ({
179
180
  "div",
180
181
  {
181
182
  id,
183
+ "data-testid": testid,
182
184
  className: (0, import_clsx2.default)(
183
185
  "min-h-mobile-container-padding",
184
186
  "bg-background-brand-normal items-center justify-between",
@@ -12,6 +12,7 @@ import clsx from "clsx";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  var MainBar = ({
14
14
  id,
15
+ testid,
15
16
  leftContent: left,
16
17
  rightContent: right,
17
18
  mobileLeftContent: mobileLeft,
@@ -26,6 +27,7 @@ var MainBar = ({
26
27
  "div",
27
28
  {
28
29
  id,
30
+ "data-testid": testid,
29
31
  className: clsx(
30
32
  "min-h-mobile-container-padding",
31
33
  "bg-background-brand-normal items-center justify-between",
@@ -206,6 +206,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
206
206
  var Menu = (_a) => {
207
207
  var _b = _a, {
208
208
  id,
209
+ testid,
209
210
  children,
210
211
  className,
211
212
  ref,
@@ -223,6 +224,7 @@ var Menu = (_a) => {
223
224
  menuName
224
225
  } = _b, props = __objRest(_b, [
225
226
  "id",
227
+ "testid",
226
228
  "children",
227
229
  "className",
228
230
  "ref",
@@ -303,6 +305,7 @@ var Menu = (_a) => {
303
305
  "div",
304
306
  __spreadProps(__spreadValues({
305
307
  id,
308
+ "data-testid": testid,
306
309
  ref: setRefs,
307
310
  className: (0, import_clsx.default)(
308
311
  "shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Menu
4
- } from "../chunk-37TJJQL3.js";
4
+ } from "../chunk-YR7JUKYO.js";
5
5
  import "../chunk-5GUW4DUY.js";
6
6
  import "../chunk-WNQ53SVY.js";
7
7
  import "../chunk-4T7F5BZZ.js";