@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
@@ -2,7 +2,7 @@ import {
2
2
  Display,
3
3
  Display1,
4
4
  Display2
5
- } from "../chunk-AY7ELVQY.js";
5
+ } from "../chunk-EUXB3XKL.js";
6
6
  import "../chunk-RDLEIAQU.js";
7
7
  import "../chunk-ORMEWXMH.js";
8
8
  export {
@@ -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",
@@ -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}`,
@@ -283,7 +289,8 @@ var Paragraph = (_a) => {
283
289
  addOverflow,
284
290
  children,
285
291
  as = "p",
286
- id
292
+ id,
293
+ testid
287
294
  } = _b, props = __objRest(_b, [
288
295
  "className",
289
296
  "color",
@@ -293,13 +300,15 @@ var Paragraph = (_a) => {
293
300
  "addOverflow",
294
301
  "children",
295
302
  "as",
296
- "id"
303
+ "id",
304
+ "testid"
297
305
  ]);
298
306
  const Element = as;
299
307
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
300
308
  Element,
301
309
  __spreadProps(__spreadValues({
302
- id
310
+ id,
311
+ "data-testid": testid
303
312
  }, props), {
304
313
  className: (0, import_clsx4.default)(
305
314
  typography.paragraph,
@@ -332,7 +341,8 @@ var Checkbox = (_a) => {
332
341
  onChange,
333
342
  indeterminate,
334
343
  paragraphClassName,
335
- id
344
+ id,
345
+ testid
336
346
  } = _b, props = __objRest(_b, [
337
347
  "label",
338
348
  "error",
@@ -342,7 +352,8 @@ var Checkbox = (_a) => {
342
352
  "onChange",
343
353
  "indeterminate",
344
354
  "paragraphClassName",
345
- "id"
355
+ "id",
356
+ "testid"
346
357
  ]);
347
358
  const selected = indeterminate || checked;
348
359
  const normalClassName = (0, import_clsx5.default)(
@@ -371,6 +382,7 @@ var Checkbox = (_a) => {
371
382
  "label",
372
383
  {
373
384
  id,
385
+ "data-testid": testid,
374
386
  htmlFor: id ? `${id}-input` : void 0,
375
387
  className: (0, import_clsx5.default)(
376
388
  "flex items-center",
@@ -384,6 +396,7 @@ var Checkbox = (_a) => {
384
396
  "input",
385
397
  __spreadValues({
386
398
  id: id ? `${id}-input` : void 0,
399
+ "data-testid": testid ? `${testid}-input` : void 0,
387
400
  type: "checkbox",
388
401
  className: "sr-only peer",
389
402
  disabled,
@@ -415,6 +428,7 @@ var Checkbox = (_a) => {
415
428
  Paragraph,
416
429
  {
417
430
  id: id ? `${id}-label` : void 0,
431
+ testid: testid ? `${testid}-label` : void 0,
418
432
  as: "span",
419
433
  padded: true,
420
434
  className: (0, import_clsx5.default)(
@@ -458,7 +472,8 @@ var Button = (_a) => {
458
472
  iconOnly = false,
459
473
  colorClassName,
460
474
  href,
461
- id
475
+ id,
476
+ testid
462
477
  } = _b, props = __objRest(_b, [
463
478
  "variant",
464
479
  "as",
@@ -472,7 +487,8 @@ var Button = (_a) => {
472
487
  "iconOnly",
473
488
  "colorClassName",
474
489
  "href",
475
- "id"
490
+ "id",
491
+ "testid"
476
492
  ]);
477
493
  const primaryVariantStyles = variant === "primary" && (0, import_clsx6.default)(
478
494
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -560,6 +576,7 @@ var Button = (_a) => {
560
576
  Element,
561
577
  __spreadProps(__spreadValues({
562
578
  id,
579
+ "data-testid": testid,
563
580
  type: Element === "button" ? "button" : void 0,
564
581
  className: buttonClasses
565
582
  }, props), {
@@ -569,7 +586,7 @@ var Button = (_a) => {
569
586
  "data-theme": variant === "navigation" ? "brand" : void 0,
570
587
  children: [
571
588
  leftIcon && leftIcon,
572
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
589
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
573
590
  rightIcon && rightIcon
574
591
  ]
575
592
  })
@@ -582,6 +599,7 @@ var import_jsx_runtime6 = require("react/jsx-runtime");
582
599
  var OptionPill = (_a) => {
583
600
  var _b = _a, {
584
601
  id,
602
+ testid,
585
603
  selected = false,
586
604
  onClick,
587
605
  onRemove,
@@ -591,6 +609,7 @@ var OptionPill = (_a) => {
591
609
  className
592
610
  } = _b, props = __objRest(_b, [
593
611
  "id",
612
+ "testid",
594
613
  "selected",
595
614
  "onClick",
596
615
  "onRemove",
@@ -622,6 +641,7 @@ var OptionPill = (_a) => {
622
641
  "div",
623
642
  __spreadProps(__spreadValues(__spreadValues({
624
643
  id,
644
+ "data-testid": testid,
625
645
  onClick: handleOnClick
626
646
  }, props), additionalAttributes), {
627
647
  className: (0, import_clsx7.default)(
@@ -639,6 +659,7 @@ var OptionPill = (_a) => {
639
659
  Label,
640
660
  {
641
661
  id: id ? `${id}-label` : void 0,
662
+ testid: testid ? `${testid}-label` : void 0,
642
663
  padded: true,
643
664
  className: componentPaddingYUsingComponentGap,
644
665
  children
@@ -648,6 +669,7 @@ var OptionPill = (_a) => {
648
669
  Button,
649
670
  {
650
671
  id: id ? `${id}-remove-button` : void 0,
672
+ testid: testid ? `${testid}-remove-button` : void 0,
651
673
  onClick: handleOnRemove,
652
674
  disabled,
653
675
  className: (0, import_clsx7.default)(
@@ -693,7 +715,8 @@ var Link = (_a) => {
693
715
  color,
694
716
  paddedY,
695
717
  align,
696
- underline = false
718
+ underline = false,
719
+ testid
697
720
  } = _b, props = __objRest(_b, [
698
721
  "as",
699
722
  "className",
@@ -703,7 +726,8 @@ var Link = (_a) => {
703
726
  "color",
704
727
  "paddedY",
705
728
  "align",
706
- "underline"
729
+ "underline",
730
+ "testid"
707
731
  ]);
708
732
  const Component = as;
709
733
  const primaryStateStyles = variant === "primary" && !disabled && (0, import_clsx8.default)(
@@ -751,7 +775,8 @@ var Link = (_a) => {
751
775
  color: color ? `var(--color-${color})` : void 0
752
776
  }),
753
777
  "aria-disabled": disabled,
754
- tabIndex: disabled ? -1 : void 0
778
+ tabIndex: disabled ? -1 : void 0,
779
+ "data-testid": testid
755
780
  })
756
781
  );
757
782
  };
@@ -802,6 +827,7 @@ var import_jsx_runtime8 = require("react/jsx-runtime");
802
827
  var InputBase = (_a) => {
803
828
  var _b = _a, {
804
829
  id,
830
+ testid,
805
831
  before,
806
832
  after,
807
833
  type,
@@ -820,6 +846,7 @@ var InputBase = (_a) => {
820
846
  fullWidth = true
821
847
  } = _b, props = __objRest(_b, [
822
848
  "id",
849
+ "testid",
823
850
  "before",
824
851
  "after",
825
852
  "type",
@@ -884,6 +911,7 @@ var InputBase = (_a) => {
884
911
  "label",
885
912
  {
886
913
  id,
914
+ "data-testid": testid,
887
915
  htmlFor: inputId,
888
916
  ref: inputContainerRef,
889
917
  className: (0, import_clsx9.default)(
@@ -936,6 +964,7 @@ var InputBase = (_a) => {
936
964
  required
937
965
  }, props), attributes), {
938
966
  id: inputId,
967
+ "data-testid": testid ? `${testid}-input` : void 0,
939
968
  className: (0, import_clsx9.default)(
940
969
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
941
970
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -953,7 +982,7 @@ var InputBase = (_a) => {
953
982
  ]
954
983
  }
955
984
  ),
956
- caption && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
985
+ caption && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
957
986
  ]
958
987
  }
959
988
  );
@@ -968,7 +997,8 @@ var Input = (_a) => {
968
997
  onChange,
969
998
  onBlur,
970
999
  onClear,
971
- id
1000
+ id,
1001
+ testid
972
1002
  } = _b, props = __objRest(_b, [
973
1003
  "variant",
974
1004
  "decimals",
@@ -978,30 +1008,30 @@ var Input = (_a) => {
978
1008
  "onChange",
979
1009
  "onBlur",
980
1010
  "onClear",
981
- "id"
1011
+ "id",
1012
+ "testid"
982
1013
  ]);
983
1014
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
984
1015
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
985
1016
  (0, import_react.useEffect)(() => {
986
1017
  var _a2;
987
1018
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
988
- if (variant === "currency") {
989
- if (propValue === void 0 || propValue === "" || typeof propValue === "number" && isNaN(propValue)) {
990
- setInternalValue("");
991
- setDisplayValue("");
992
- } else {
993
- const numValue = typeof propValue === "string" ? parseFloat(propValue) : propValue;
994
- if (!isNaN(numValue)) {
995
- const formatted = numValue.toFixed(decimals != null ? decimals : 2);
996
- setInternalValue(formatted);
997
- setDisplayValue(formatCurrencyDisplay(formatted));
998
- }
999
- }
1000
- } else {
1001
- setInternalValue(stringValue);
1002
- setDisplayValue(stringValue);
1019
+ setInternalValue(stringValue);
1020
+ setDisplayValue(stringValue);
1021
+ }, [propValue]);
1022
+ (0, import_react.useEffect)(() => {
1023
+ var _a2;
1024
+ if (variant !== "currency") {
1025
+ return;
1026
+ }
1027
+ const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1028
+ if (!stringValue) {
1029
+ return;
1003
1030
  }
1004
- }, [propValue, decimals, variant]);
1031
+ const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1032
+ setInternalValue(formatted);
1033
+ setDisplayValue(formatCurrencyDisplay(formatted));
1034
+ }, []);
1005
1035
  const getInputProps = () => {
1006
1036
  var _a2;
1007
1037
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -1054,6 +1084,7 @@ var Input = (_a) => {
1054
1084
  Icon,
1055
1085
  {
1056
1086
  id: id ? `${id}-clear-button` : void 0,
1087
+ testid: testid ? `${testid}-clear-button` : void 0,
1057
1088
  name: "close",
1058
1089
  onClick: handleSearchReset,
1059
1090
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -1085,14 +1116,6 @@ var Input = (_a) => {
1085
1116
  };
1086
1117
  const handleChange = (e) => {
1087
1118
  const rawValue = e.target.value;
1088
- if (variant === "search") {
1089
- setInternalValue(rawValue);
1090
- setDisplayValue(rawValue);
1091
- if (typeof onChange === "function") {
1092
- onChange(e);
1093
- }
1094
- return;
1095
- }
1096
1119
  if (variant === "currency") {
1097
1120
  const raw = rawValue.replace(/,/g, "");
1098
1121
  if (raw === "") {
@@ -1129,6 +1152,9 @@ var Input = (_a) => {
1129
1152
  }
1130
1153
  };
1131
1154
  const handleBlur = (e) => {
1155
+ if (!internalValue) {
1156
+ return;
1157
+ }
1132
1158
  if (variant === "currency") {
1133
1159
  const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
1134
1160
  setInternalValue(formatted);
@@ -1153,7 +1179,8 @@ var Input = (_a) => {
1153
1179
  before: getBeforeElement(),
1154
1180
  after: getAfterElement(),
1155
1181
  onChange: handleChange,
1156
- onBlur: handleBlur
1182
+ onBlur: handleBlur,
1183
+ testid
1157
1184
  })
1158
1185
  );
1159
1186
  };
@@ -1186,6 +1213,7 @@ var import_jsx_runtime9 = require("react/jsx-runtime");
1186
1213
  var Search = (_a) => {
1187
1214
  var _b = _a, {
1188
1215
  id,
1216
+ testid,
1189
1217
  label,
1190
1218
  error,
1191
1219
  children,
@@ -1196,6 +1224,7 @@ var Search = (_a) => {
1196
1224
  removeRoundness
1197
1225
  } = _b, props = __objRest(_b, [
1198
1226
  "id",
1227
+ "testid",
1199
1228
  "label",
1200
1229
  "error",
1201
1230
  "children",
@@ -1225,6 +1254,7 @@ var Search = (_a) => {
1225
1254
  Input,
1226
1255
  __spreadValues({
1227
1256
  id,
1257
+ testid,
1228
1258
  variant: "search",
1229
1259
  inputContainerRef,
1230
1260
  ref: inputRef,
@@ -1280,6 +1310,7 @@ var Search = (_a) => {
1280
1310
  ),
1281
1311
  renderMenu ? renderMenu({
1282
1312
  id: id ? `${id}-menu` : void 0,
1313
+ testid: testid ? `${testid}-menu` : void 0,
1283
1314
  positionTo: inputContainerRef,
1284
1315
  show,
1285
1316
  setShow,
@@ -1296,6 +1327,7 @@ var import_jsx_runtime10 = require("react/jsx-runtime");
1296
1327
  var FilterGroup = (_a) => {
1297
1328
  var _b = _a, {
1298
1329
  id,
1330
+ testid,
1299
1331
  label,
1300
1332
  type = "link",
1301
1333
  open = false,
@@ -1308,6 +1340,7 @@ var FilterGroup = (_a) => {
1308
1340
  onSearchChange
1309
1341
  } = _b, props = __objRest(_b, [
1310
1342
  "id",
1343
+ "testid",
1311
1344
  "label",
1312
1345
  "type",
1313
1346
  "open",
@@ -1333,7 +1366,8 @@ var FilterGroup = (_a) => {
1333
1366
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1334
1367
  "div",
1335
1368
  __spreadProps(__spreadValues({
1336
- id
1369
+ id,
1370
+ "data-testid": testid
1337
1371
  }, props), {
1338
1372
  className: (0, import_clsx10.default)(
1339
1373
  "border-b border-border-primary-normal",
@@ -1367,6 +1401,7 @@ var FilterGroup = (_a) => {
1367
1401
  Link,
1368
1402
  {
1369
1403
  id: id ? `${id}-clear-all` : void 0,
1404
+ testid: testid ? `${testid}-clear-all` : void 0,
1370
1405
  className: (0, import_clsx10.default)("block", componentPaddingY),
1371
1406
  onClick: handleClearAll,
1372
1407
  children: "Clear All"
@@ -1399,6 +1434,7 @@ var FilterGroup = (_a) => {
1399
1434
  Search,
1400
1435
  {
1401
1436
  id: id ? `${id}-search` : void 0,
1437
+ testid: testid ? `${testid}-search` : void 0,
1402
1438
  style: { marginBottom: "2px" },
1403
1439
  onChange: onSearchChange,
1404
1440
  value: searchValue
@@ -1409,6 +1445,7 @@ var FilterGroup = (_a) => {
1409
1445
  Link,
1410
1446
  {
1411
1447
  id: id ? `${id}-show-more` : void 0,
1448
+ testid: testid ? `${testid}-show-more` : void 0,
1412
1449
  className: (0, import_clsx10.default)("block", "!items-start", componentPaddingY),
1413
1450
  onClick: handleOnShowMore,
1414
1451
  children: "Show More"
@@ -1440,11 +1477,13 @@ var FilterGroup = (_a) => {
1440
1477
  var FilterGroupItem = (_a) => {
1441
1478
  var _b = _a, {
1442
1479
  id,
1480
+ testid,
1443
1481
  type = "link",
1444
1482
  children,
1445
1483
  onClick
1446
1484
  } = _b, props = __objRest(_b, [
1447
1485
  "id",
1486
+ "testid",
1448
1487
  "type",
1449
1488
  "children",
1450
1489
  "onClick"
@@ -1453,6 +1492,7 @@ var FilterGroupItem = (_a) => {
1453
1492
  "div",
1454
1493
  __spreadProps(__spreadValues({
1455
1494
  id,
1495
+ "data-testid": testid,
1456
1496
  onClick: handleClick
1457
1497
  }, props), {
1458
1498
  className: (0, import_clsx10.default)(
@@ -1463,6 +1503,7 @@ var FilterGroupItem = (_a) => {
1463
1503
  FilterGroupItemChildComponent,
1464
1504
  __spreadProps(__spreadValues({}, props), {
1465
1505
  id: id ? `${id}-child` : void 0,
1506
+ "data-testid": testid ? `${testid}-child` : void 0,
1466
1507
  type,
1467
1508
  count: props.count,
1468
1509
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import {
3
3
  OptionPill
4
- } from "../chunk-QNQ5K7NW.js";
4
+ } from "../chunk-LM5MKBPM.js";
5
5
  import {
6
6
  Checkbox
7
- } from "../chunk-WT5XXW6G.js";
7
+ } from "../chunk-WFQEE2OO.js";
8
8
  import {
9
9
  Search
10
- } from "../chunk-OB3URVCR.js";
11
- import "../chunk-R5TLUWDD.js";
10
+ } from "../chunk-PMBEIP24.js";
11
+ import "../chunk-4T3DRGLF.js";
12
12
  import "../chunk-5UH6QUFB.js";
13
13
  import {
14
14
  Label
15
- } from "../chunk-S5K22XTH.js";
16
- import "../chunk-VG4EPHJA.js";
15
+ } from "../chunk-JWCT72WR.js";
16
+ import "../chunk-HVI3CL7Y.js";
17
17
  import {
18
18
  Link
19
- } from "../chunk-AOELEEUS.js";
20
- import "../chunk-H6LXXGX6.js";
19
+ } from "../chunk-I6GEUF6Y.js";
20
+ import "../chunk-FKMKHLQH.js";
21
21
  import {
22
22
  Icon
23
- } from "../chunk-IGQVA7SC.js";
23
+ } from "../chunk-NKUETCDA.js";
24
24
  import {
25
25
  baseTransition,
26
26
  componentGap,
@@ -42,6 +42,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
42
42
  var FilterGroup = (_a) => {
43
43
  var _b = _a, {
44
44
  id,
45
+ testid,
45
46
  label,
46
47
  type = "link",
47
48
  open = false,
@@ -54,6 +55,7 @@ var FilterGroup = (_a) => {
54
55
  onSearchChange
55
56
  } = _b, props = __objRest(_b, [
56
57
  "id",
58
+ "testid",
57
59
  "label",
58
60
  "type",
59
61
  "open",
@@ -79,7 +81,8 @@ var FilterGroup = (_a) => {
79
81
  return /* @__PURE__ */ jsxs(
80
82
  "div",
81
83
  __spreadProps(__spreadValues({
82
- id
84
+ id,
85
+ "data-testid": testid
83
86
  }, props), {
84
87
  className: clsx(
85
88
  "border-b border-border-primary-normal",
@@ -113,6 +116,7 @@ var FilterGroup = (_a) => {
113
116
  Link,
114
117
  {
115
118
  id: id ? `${id}-clear-all` : void 0,
119
+ testid: testid ? `${testid}-clear-all` : void 0,
116
120
  className: clsx("block", componentPaddingY),
117
121
  onClick: handleClearAll,
118
122
  children: "Clear All"
@@ -145,6 +149,7 @@ var FilterGroup = (_a) => {
145
149
  Search,
146
150
  {
147
151
  id: id ? `${id}-search` : void 0,
152
+ testid: testid ? `${testid}-search` : void 0,
148
153
  style: { marginBottom: "2px" },
149
154
  onChange: onSearchChange,
150
155
  value: searchValue
@@ -155,6 +160,7 @@ var FilterGroup = (_a) => {
155
160
  Link,
156
161
  {
157
162
  id: id ? `${id}-show-more` : void 0,
163
+ testid: testid ? `${testid}-show-more` : void 0,
158
164
  className: clsx("block", "!items-start", componentPaddingY),
159
165
  onClick: handleOnShowMore,
160
166
  children: "Show More"
@@ -186,11 +192,13 @@ var FilterGroup = (_a) => {
186
192
  var FilterGroupItem = (_a) => {
187
193
  var _b = _a, {
188
194
  id,
195
+ testid,
189
196
  type = "link",
190
197
  children,
191
198
  onClick
192
199
  } = _b, props = __objRest(_b, [
193
200
  "id",
201
+ "testid",
194
202
  "type",
195
203
  "children",
196
204
  "onClick"
@@ -199,6 +207,7 @@ var FilterGroupItem = (_a) => {
199
207
  "div",
200
208
  __spreadProps(__spreadValues({
201
209
  id,
210
+ "data-testid": testid,
202
211
  onClick: handleClick
203
212
  }, props), {
204
213
  className: clsx(
@@ -209,6 +218,7 @@ var FilterGroupItem = (_a) => {
209
218
  FilterGroupItemChildComponent,
210
219
  __spreadProps(__spreadValues({}, props), {
211
220
  id: id ? `${id}-child` : void 0,
221
+ "data-testid": testid ? `${testid}-child` : void 0,
212
222
  type,
213
223
  count: props.count,
214
224
  children: /* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between w-full", children: [
@@ -26,12 +26,14 @@ module.exports = __toCommonJS(FullViewportBox_exports);
26
26
  var import_jsx_runtime = require("react/jsx-runtime");
27
27
  function FullViewportLayout({
28
28
  children,
29
- id
29
+ id,
30
+ testid
30
31
  }) {
31
32
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
32
33
  "div",
33
34
  {
34
35
  id,
36
+ "data-testid": testid,
35
37
  className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal",
36
38
  children
37
39
  }
@@ -4,12 +4,14 @@ import "../chunk-ORMEWXMH.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  function FullViewportLayout({
6
6
  children,
7
- id
7
+ id,
8
+ testid
8
9
  }) {
9
10
  return /* @__PURE__ */ jsx(
10
11
  "div",
11
12
  {
12
13
  id,
14
+ "data-testid": testid,
13
15
  className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal",
14
16
  children
15
17
  }
@@ -98,13 +98,15 @@ var Grid = ({
98
98
  padding,
99
99
  hasSideMenu = false,
100
100
  columns,
101
- id
101
+ id,
102
+ testid
102
103
  }) => {
103
104
  const childCount = import_react.Children.count(children);
104
105
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
106
  "div",
106
107
  {
107
108
  id,
109
+ "data-testid": testid,
108
110
  className: (0, import_clsx.default)(
109
111
  padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
110
112
  padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
@@ -66,13 +66,15 @@ var Grid = ({
66
66
  padding,
67
67
  hasSideMenu = false,
68
68
  columns,
69
- id
69
+ id,
70
+ testid
70
71
  }) => {
71
72
  const childCount = Children.count(children);
72
73
  return /* @__PURE__ */ jsx(
73
74
  "div",
74
75
  {
75
76
  id,
77
+ "data-testid": testid,
76
78
  className: clsx(
77
79
  padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
78
80
  padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
@@ -203,7 +203,8 @@ var Heading = (_a) => {
203
203
  color,
204
204
  align,
205
205
  variant = "heading1",
206
- id
206
+ id,
207
+ testid
207
208
  } = _b, props = __objRest(_b, [
208
209
  "className",
209
210
  "children",
@@ -211,7 +212,8 @@ var Heading = (_a) => {
211
212
  "color",
212
213
  "align",
213
214
  "variant",
214
- "id"
215
+ "id",
216
+ "testid"
215
217
  ]);
216
218
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
217
219
  const Element = as != null ? as : defaultElement;
@@ -219,6 +221,7 @@ var Heading = (_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,
@@ -3,7 +3,7 @@ import {
3
3
  Heading1,
4
4
  Heading2,
5
5
  Heading3
6
- } from "../chunk-J6LETUNM.js";
6
+ } from "../chunk-AZ7LVLOK.js";
7
7
  import "../chunk-RDLEIAQU.js";
8
8
  import "../chunk-ORMEWXMH.js";
9
9
  export {