@dmsi/wedgekit-react 0.0.140 → 0.0.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/{chunk-4OS6APPF.js → chunk-4LXG6QNT.js} +2 -1
  2. package/dist/{chunk-KS4RDR6P.js → chunk-4NCDT5ZY.js} +21 -8
  3. package/dist/{chunk-R5TLUWDD.js → chunk-4T3DRGLF.js} +32 -30
  4. package/dist/{chunk-QZGUMB7T.js → chunk-4VTOTNKJ.js} +3 -0
  5. package/dist/{chunk-Y4HUYAI5.js → chunk-56Y5DDG3.js} +5 -2
  6. package/dist/{chunk-D2YP2BTN.js → chunk-5GOJRLQO.js} +10 -4
  7. package/dist/{chunk-J6LETUNM.js → chunk-AZ7LVLOK.js} +5 -2
  8. package/dist/{chunk-TTO4PL7Y.js → chunk-BATIOCXB.js} +7 -4
  9. package/dist/{chunk-CG2NIXZE.js → chunk-C4JGTH6G.js} +7 -3
  10. package/dist/{chunk-O4M2GISS.js → chunk-CYZL57LH.js} +5 -2
  11. package/dist/{chunk-6HIALT5L.js → chunk-E7D24OHM.js} +14 -5
  12. package/dist/{chunk-3ZUSYRI7.js → chunk-EPQLWHCL.js} +2 -2
  13. package/dist/{chunk-AY7ELVQY.js → chunk-EUXB3XKL.js} +5 -2
  14. package/dist/{chunk-6DONKNDT.js → chunk-EWGHVZL5.js} +2 -0
  15. package/dist/{chunk-VH3EJNVE.js → chunk-FFU6FB3K.js} +6 -3
  16. package/dist/{chunk-H6LXXGX6.js → chunk-FKMKHLQH.js} +6 -3
  17. package/dist/{chunk-4F6VQXKY.js → chunk-GG5JOFS6.js} +2 -1
  18. package/dist/{chunk-XCIBYDVK.js → chunk-GXSXCEAA.js} +25 -14
  19. package/dist/{chunk-VG4EPHJA.js → chunk-HVI3CL7Y.js} +6 -3
  20. package/dist/{chunk-AOELEEUS.js → chunk-I6GEUF6Y.js} +6 -3
  21. package/dist/{chunk-Z36QJ7ZF.js → chunk-J4E6Q5TM.js} +12 -9
  22. package/dist/{chunk-S5K22XTH.js → chunk-JWCT72WR.js} +5 -2
  23. package/dist/{chunk-QNQ5K7NW.js → chunk-LM5MKBPM.js} +8 -3
  24. package/dist/{chunk-EO3JJWFW.js → chunk-N6JVLYEE.js} +6 -3
  25. package/dist/{chunk-IGQVA7SC.js → chunk-NKUETCDA.js} +5 -2
  26. package/dist/{chunk-PCCJ7L3N.js → chunk-NMVSRA5Y.js} +12 -4
  27. package/dist/{chunk-X62XGQY7.js → chunk-NW2C4DL4.js} +18 -15
  28. package/dist/{chunk-OB3URVCR.js → chunk-PMBEIP24.js} +5 -1
  29. package/dist/{chunk-6UI5GABI.js → chunk-R7ELP5C5.js} +8 -5
  30. package/dist/{chunk-FWPJ73IK.js → chunk-SYEJVSE4.js} +3 -1
  31. package/dist/{chunk-WT5XXW6G.js → chunk-WFQEE2OO.js} +9 -4
  32. package/dist/{chunk-QTD7K43M.js → chunk-WSS2DFTP.js} +8 -6
  33. package/dist/{chunk-37TJJQL3.js → chunk-YR7JUKYO.js} +3 -0
  34. package/dist/{chunk-4JLU7TAC.js → chunk-ZFOANBWG.js} +3 -1
  35. package/dist/{chunk-P242H6OU.js → chunk-ZGFQN47L.js} +5 -2
  36. package/dist/components/AccessChangerTabItem.cjs +10 -4
  37. package/dist/components/AccessChangerTabItem.js +2 -2
  38. package/dist/components/Accordion.cjs +23 -11
  39. package/dist/components/Accordion.js +5 -5
  40. package/dist/components/Breadcrumbs.cjs +19 -8
  41. package/dist/components/Breadcrumbs.js +10 -5
  42. package/dist/components/Button.cjs +6 -3
  43. package/dist/components/Button.js +1 -1
  44. package/dist/components/CalendarRange.cjs +16 -5
  45. package/dist/components/CalendarRange.js +2 -2
  46. package/dist/components/Caption.cjs +18 -6
  47. package/dist/components/Caption.js +2 -2
  48. package/dist/components/Card.cjs +2 -1
  49. package/dist/components/Card.js +1 -1
  50. package/dist/components/Checkbox.cjs +18 -7
  51. package/dist/components/Checkbox.js +3 -3
  52. package/dist/components/ContentTab.cjs +22 -16
  53. package/dist/components/ContentTab.js +2 -2
  54. package/dist/components/ContentTabs.cjs +27 -18
  55. package/dist/components/ContentTabs.js +7 -4
  56. package/dist/components/DataGridCell.cjs +73 -39
  57. package/dist/components/DataGridCell.js +8 -8
  58. package/dist/components/DateInput.cjs +55 -35
  59. package/dist/components/DateInput.js +8 -4
  60. package/dist/components/DateRangeInput.cjs +55 -35
  61. package/dist/components/DateRangeInput.js +8 -4
  62. package/dist/components/Display.cjs +5 -2
  63. package/dist/components/Display.js +1 -1
  64. package/dist/components/FilterGroup.cjs +85 -44
  65. package/dist/components/FilterGroup.js +20 -10
  66. package/dist/components/FullViewportBox.cjs +3 -1
  67. package/dist/components/FullViewportBox.js +3 -1
  68. package/dist/components/Grid.cjs +3 -1
  69. package/dist/components/Grid.js +3 -1
  70. package/dist/components/Heading.cjs +5 -2
  71. package/dist/components/Heading.js +1 -1
  72. package/dist/components/HorizontalDivider.cjs +2 -2
  73. package/dist/components/HorizontalDivider.js +1 -1
  74. package/dist/components/Icon.cjs +5 -2
  75. package/dist/components/Icon.js +1 -1
  76. package/dist/components/Input.cjs +40 -32
  77. package/dist/components/Input.js +3 -3
  78. package/dist/components/InputGroup.cjs +11 -4
  79. package/dist/components/InputGroup.js +7 -3
  80. package/dist/components/Label.cjs +5 -2
  81. package/dist/components/Label.js +1 -1
  82. package/dist/components/Link.cjs +6 -3
  83. package/dist/components/Link.js +1 -1
  84. package/dist/components/List.cjs +3 -2
  85. package/dist/components/List.js +3 -2
  86. package/dist/components/LoadingScrim.cjs +4 -2
  87. package/dist/components/LoadingScrim.js +3 -2
  88. package/dist/components/MainBar.cjs +2 -0
  89. package/dist/components/MainBar.js +2 -0
  90. package/dist/components/Menu.cjs +3 -0
  91. package/dist/components/Menu.js +1 -1
  92. package/dist/components/MenuOption.cjs +19 -7
  93. package/dist/components/MenuOption.js +4 -4
  94. package/dist/components/MobileDataGrid.cjs +42 -18
  95. package/dist/components/MobileDataGrid.js +18 -11
  96. package/dist/components/Modal.cjs +38 -12
  97. package/dist/components/Modal.js +8 -8
  98. package/dist/components/ModalButtons.cjs +16 -6
  99. package/dist/components/ModalButtons.js +3 -3
  100. package/dist/components/ModalContent.cjs +3 -1
  101. package/dist/components/ModalContent.js +1 -1
  102. package/dist/components/ModalHeader.cjs +21 -9
  103. package/dist/components/ModalHeader.js +4 -4
  104. package/dist/components/ModalScrim.cjs +3 -1
  105. package/dist/components/ModalScrim.js +1 -1
  106. package/dist/components/NavigationTab.cjs +14 -5
  107. package/dist/components/NavigationTab.js +3 -3
  108. package/dist/components/NavigationTabs.cjs +17 -6
  109. package/dist/components/NavigationTabs.js +6 -4
  110. package/dist/components/NestedMenu.cjs +23 -9
  111. package/dist/components/NestedMenu.js +8 -6
  112. package/dist/components/Notification.cjs +32 -13
  113. package/dist/components/Notification.js +9 -5
  114. package/dist/components/OptionPill.cjs +21 -7
  115. package/dist/components/OptionPill.js +4 -4
  116. package/dist/components/PDFViewer.cjs +73 -29
  117. package/dist/components/PDFViewer.js +26 -20
  118. package/dist/components/Paragraph.cjs +6 -3
  119. package/dist/components/Paragraph.js +1 -1
  120. package/dist/components/Password.cjs +50 -37
  121. package/dist/components/Password.js +13 -8
  122. package/dist/components/PaymentOnAccountModal.cjs +135 -69
  123. package/dist/components/PaymentOnAccountModal.js +21 -21
  124. package/dist/components/ProjectBar.cjs +3 -1
  125. package/dist/components/ProjectBar.js +3 -1
  126. package/dist/components/Radio.cjs +12 -6
  127. package/dist/components/Radio.js +2 -2
  128. package/dist/components/Search.cjs +44 -32
  129. package/dist/components/Search.js +4 -4
  130. package/dist/components/Select.cjs +43 -32
  131. package/dist/components/Select.js +4 -4
  132. package/dist/components/SelectPaymentMethod.cjs +67 -29
  133. package/dist/components/SelectPaymentMethod.js +12 -12
  134. package/dist/components/SideMenu.cjs +3 -1
  135. package/dist/components/SideMenu.js +3 -1
  136. package/dist/components/SideMenuGroup.cjs +19 -8
  137. package/dist/components/SideMenuGroup.js +6 -4
  138. package/dist/components/SideMenuItem.cjs +15 -6
  139. package/dist/components/SideMenuItem.js +5 -2
  140. package/dist/components/Spinner.cjs +2 -1
  141. package/dist/components/Spinner.js +1 -1
  142. package/dist/components/Stack.cjs +6 -3
  143. package/dist/components/Stack.js +1 -1
  144. package/dist/components/StatusPill.cjs +12 -6
  145. package/dist/components/StatusPill.js +8 -5
  146. package/dist/components/Stepper.cjs +54 -38
  147. package/dist/components/Stepper.js +12 -7
  148. package/dist/components/Subheader.cjs +5 -2
  149. package/dist/components/Subheader.js +1 -1
  150. package/dist/components/Swatch.cjs +22 -10
  151. package/dist/components/Swatch.js +4 -4
  152. package/dist/components/Textarea.cjs +4 -1
  153. package/dist/components/Textarea.js +4 -1
  154. package/dist/components/Theme.cjs +2 -0
  155. package/dist/components/Theme.js +1 -1
  156. package/dist/components/Time.cjs +52 -36
  157. package/dist/components/Time.js +10 -5
  158. package/dist/components/Toast.cjs +29 -12
  159. package/dist/components/Toast.js +11 -6
  160. package/dist/components/Tooltip.cjs +3 -0
  161. package/dist/components/Tooltip.js +1 -1
  162. package/dist/components/TopBar.cjs +11 -4
  163. package/dist/components/TopBar.js +11 -4
  164. package/dist/components/Upload.cjs +30 -15
  165. package/dist/components/Upload.js +16 -10
  166. package/dist/components/index.cjs +221 -84
  167. package/dist/components/index.js +80 -38
  168. package/dist/index.css +24 -4
  169. package/package.json +1 -1
  170. package/src/components/Accordion.tsx +5 -2
  171. package/src/components/Breadcrumbs.tsx +9 -2
  172. package/src/components/Button.tsx +4 -1
  173. package/src/components/CalendarRange.tsx +9 -0
  174. package/src/components/Caption.tsx +11 -1
  175. package/src/components/Card.tsx +3 -2
  176. package/src/components/Checkbox.tsx +5 -0
  177. package/src/components/ContentTab.tsx +14 -12
  178. package/src/components/ContentTabs.tsx +6 -2
  179. package/src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx +4 -1
  180. package/src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx +7 -0
  181. package/src/components/DataGrid/PinnedColumns.tsx +8 -1
  182. package/src/components/DataGrid/TableBody/LoadingCell.tsx +7 -3
  183. package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -1
  184. package/src/components/DataGrid/TableBody/index.tsx +7 -1
  185. package/src/components/DataGrid/index.tsx +18 -2
  186. package/src/components/DataGrid/types.ts +1 -0
  187. package/src/components/DataGridCell.tsx +12 -0
  188. package/src/components/DateInput.tsx +4 -0
  189. package/src/components/DateRangeInput.tsx +4 -0
  190. package/src/components/Display.tsx +3 -0
  191. package/src/components/FilterGroup.tsx +10 -0
  192. package/src/components/FullViewportBox.tsx +3 -0
  193. package/src/components/Grid.tsx +3 -0
  194. package/src/components/Heading.tsx +3 -0
  195. package/src/components/HorizontalDivider.tsx +2 -2
  196. package/src/components/Icon.tsx +3 -0
  197. package/src/components/Input.tsx +32 -36
  198. package/src/components/InputGroup.tsx +6 -2
  199. package/src/components/Label.tsx +3 -0
  200. package/src/components/Link.tsx +3 -0
  201. package/src/components/List.tsx +3 -1
  202. package/src/components/LoadingScrim.tsx +2 -1
  203. package/src/components/MainBar.tsx +3 -0
  204. package/src/components/Menu.tsx +3 -0
  205. package/src/components/MenuOption.tsx +4 -0
  206. package/src/components/MobileDataGrid.tsx +12 -3
  207. package/src/components/Modal.tsx +7 -0
  208. package/src/components/ModalButtons.tsx +5 -0
  209. package/src/components/ModalContent.tsx +3 -0
  210. package/src/components/ModalHeader.tsx +5 -1
  211. package/src/components/ModalScrim.tsx +3 -0
  212. package/src/components/NavigationTab.tsx +3 -0
  213. package/src/components/NavigationTabs.tsx +7 -3
  214. package/src/components/NestedMenu.tsx +5 -2
  215. package/src/components/Notification.tsx +4 -0
  216. package/src/components/OptionPill.tsx +5 -0
  217. package/src/components/PDFViewer.tsx +16 -8
  218. package/src/components/Paragraph.tsx +3 -0
  219. package/src/components/Password.tsx +7 -2
  220. package/src/components/PaymentOnAccountModal.tsx +6 -2
  221. package/src/components/ProjectBar.tsx +3 -0
  222. package/src/components/Radio.tsx +4 -1
  223. package/src/components/Search.tsx +5 -0
  224. package/src/components/Select.tsx +4 -0
  225. package/src/components/SelectPaymentMethod.tsx +17 -3
  226. package/src/components/SideMenu.tsx +3 -0
  227. package/src/components/SideMenuGroup.tsx +4 -1
  228. package/src/components/SideMenuItem.tsx +4 -0
  229. package/src/components/Spinner.tsx +3 -1
  230. package/src/components/Stack.tsx +3 -0
  231. package/src/components/StatusPill.tsx +4 -1
  232. package/src/components/Stepper.tsx +6 -1
  233. package/src/components/Subheader.tsx +3 -0
  234. package/src/components/Textarea.tsx +4 -1
  235. package/src/components/Theme.tsx +3 -0
  236. package/src/components/Time.tsx +7 -1
  237. package/src/components/Toast.tsx +8 -3
  238. package/src/components/Tooltip.tsx +4 -0
  239. package/src/components/TopBar.tsx +7 -2
  240. package/src/components/Upload.tsx +10 -4
@@ -198,10 +198,11 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
198
198
  var import_clsx2 = __toESM(require("clsx"), 1);
199
199
  var import_jsx_runtime = require("react/jsx-runtime");
200
200
  function Card(props) {
201
- const _a = props, { children, selected } = _a, rest = __objRest(_a, ["children", "selected"]);
201
+ const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
202
202
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
203
203
  "div",
204
204
  __spreadProps(__spreadValues({}, rest), {
205
+ "data-testid": testid,
205
206
  className: (0, import_clsx2.default)(
206
207
  "rounded-sm p-desktop-layout-padding",
207
208
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
@@ -219,17 +220,20 @@ function Icon(_a) {
219
220
  var _b = _a, {
220
221
  name,
221
222
  size = 24,
222
- variant = "outline"
223
+ variant = "outline",
224
+ testid
223
225
  } = _b, props = __objRest(_b, [
224
226
  "name",
225
227
  "size",
226
- "variant"
228
+ "variant",
229
+ "testid"
227
230
  ]);
228
231
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
229
232
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
230
233
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
231
234
  "span",
232
235
  __spreadProps(__spreadValues({}, props), {
236
+ "data-testid": testid,
233
237
  className: (0, import_clsx3.default)(
234
238
  "icon",
235
239
  `icon-${size}`,
@@ -306,7 +310,8 @@ var Stack = (_a) => {
306
310
  id,
307
311
  noGap,
308
312
  marginTop,
309
- marginBottom
313
+ marginBottom,
314
+ testid
310
315
  } = _b, props = __objRest(_b, [
311
316
  "children",
312
317
  "items",
@@ -342,14 +347,16 @@ var Stack = (_a) => {
342
347
  "id",
343
348
  "noGap",
344
349
  "marginTop",
345
- "marginBottom"
350
+ "marginBottom",
351
+ "testid"
346
352
  ]);
347
353
  const flexClassNames = getFlexClassNames({ items, justify, grow });
348
354
  const gapClassNames = useGapClassNames(sizing);
349
355
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
350
356
  "div",
351
357
  __spreadProps(__spreadValues({
352
- id
358
+ id,
359
+ "data-testid": testid
353
360
  }, props), {
354
361
  style: {
355
362
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -424,7 +431,8 @@ var Paragraph = (_a) => {
424
431
  addOverflow,
425
432
  children,
426
433
  as = "p",
427
- id
434
+ id,
435
+ testid
428
436
  } = _b, props = __objRest(_b, [
429
437
  "className",
430
438
  "color",
@@ -434,13 +442,15 @@ var Paragraph = (_a) => {
434
442
  "addOverflow",
435
443
  "children",
436
444
  "as",
437
- "id"
445
+ "id",
446
+ "testid"
438
447
  ]);
439
448
  const Element = as;
440
449
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
441
450
  Element,
442
451
  __spreadProps(__spreadValues({
443
- id
452
+ id,
453
+ "data-testid": testid
444
454
  }, props), {
445
455
  className: (0, import_clsx5.default)(
446
456
  typography.paragraph,
@@ -464,7 +474,7 @@ Paragraph.displayName = "Paragraph";
464
474
  // src/components/Accordion.tsx
465
475
  var import_jsx_runtime5 = require("react/jsx-runtime");
466
476
  function Accordion(props) {
467
- const { isOpen, onClick, className, disabled } = props;
477
+ const { isOpen, onClick, className, disabled, testid } = props;
468
478
  const {
469
479
  title,
470
480
  before,
@@ -495,11 +505,12 @@ function Accordion(props) {
495
505
  ),
496
506
  selected: isOpen,
497
507
  onClick: handleClick,
508
+ testid,
498
509
  children: [
499
510
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Stack, { sizing: "component", horizontal: true, justify: "between", items: "center", children: [
500
511
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Stack, { sizing: "layout-group", horizontal: true, items: "center", children: [
501
512
  before,
502
- typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { className: "text-text-primary-normal", children: title }) : title
513
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { testid: testid ? `${testid}-title` : void 0, className: "text-text-primary-normal", children: title }) : title
503
514
  ] }),
504
515
  after
505
516
  ] }),
@@ -510,6 +521,7 @@ function Accordion(props) {
510
521
  style: {
511
522
  gridTemplateRows: isOpen ? "1fr" : "0fr"
512
523
  },
524
+ "data-testid": testid ? `${testid}-content-container` : void 0,
513
525
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
514
526
  "div",
515
527
  {
@@ -546,7 +558,8 @@ var Button = (_a) => {
546
558
  iconOnly = false,
547
559
  colorClassName,
548
560
  href,
549
- id
561
+ id,
562
+ testid
550
563
  } = _b, props = __objRest(_b, [
551
564
  "variant",
552
565
  "as",
@@ -560,7 +573,8 @@ var Button = (_a) => {
560
573
  "iconOnly",
561
574
  "colorClassName",
562
575
  "href",
563
- "id"
576
+ "id",
577
+ "testid"
564
578
  ]);
565
579
  const primaryVariantStyles = variant === "primary" && (0, import_clsx7.default)(
566
580
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -648,6 +662,7 @@ var Button = (_a) => {
648
662
  Element,
649
663
  __spreadProps(__spreadValues({
650
664
  id,
665
+ "data-testid": testid,
651
666
  type: Element === "button" ? "button" : void 0,
652
667
  className: buttonClasses
653
668
  }, props), {
@@ -657,7 +672,7 @@ var Button = (_a) => {
657
672
  "data-theme": variant === "navigation" ? "brand" : void 0,
658
673
  children: [
659
674
  leftIcon && leftIcon,
660
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
675
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
661
676
  rightIcon && rightIcon
662
677
  ]
663
678
  })
@@ -676,7 +691,8 @@ var Radio = (_a) => {
676
691
  disabled,
677
692
  checked,
678
693
  readOnly,
679
- id
694
+ id,
695
+ testid
680
696
  } = _b, props = __objRest(_b, [
681
697
  "className",
682
698
  "label",
@@ -684,7 +700,8 @@ var Radio = (_a) => {
684
700
  "disabled",
685
701
  "checked",
686
702
  "readOnly",
687
- "id"
703
+ "id",
704
+ "testid"
688
705
  ]);
689
706
  const radioId = id;
690
707
  const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
@@ -716,6 +733,7 @@ var Radio = (_a) => {
716
733
  "input",
717
734
  __spreadValues({
718
735
  id: radioId,
736
+ "data-testid": testid,
719
737
  type: "radio",
720
738
  className: "sr-only peer",
721
739
  disabled,
@@ -749,7 +767,7 @@ var Radio = (_a) => {
749
767
  }
750
768
  )
751
769
  ] }),
752
- label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { id: `${radioId}-label`, padded: true, color: paragraphColor, children: label })
770
+ label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
753
771
  ]
754
772
  }
755
773
  );
@@ -798,7 +816,8 @@ var Checkbox = (_a) => {
798
816
  onChange,
799
817
  indeterminate,
800
818
  paragraphClassName,
801
- id
819
+ id,
820
+ testid
802
821
  } = _b, props = __objRest(_b, [
803
822
  "label",
804
823
  "error",
@@ -808,7 +827,8 @@ var Checkbox = (_a) => {
808
827
  "onChange",
809
828
  "indeterminate",
810
829
  "paragraphClassName",
811
- "id"
830
+ "id",
831
+ "testid"
812
832
  ]);
813
833
  const selected = indeterminate || checked;
814
834
  const normalClassName = (0, import_clsx9.default)(
@@ -837,6 +857,7 @@ var Checkbox = (_a) => {
837
857
  "label",
838
858
  {
839
859
  id,
860
+ "data-testid": testid,
840
861
  htmlFor: id ? `${id}-input` : void 0,
841
862
  className: (0, import_clsx9.default)(
842
863
  "flex items-center",
@@ -850,6 +871,7 @@ var Checkbox = (_a) => {
850
871
  "input",
851
872
  __spreadValues({
852
873
  id: id ? `${id}-input` : void 0,
874
+ "data-testid": testid ? `${testid}-input` : void 0,
853
875
  type: "checkbox",
854
876
  className: "sr-only peer",
855
877
  disabled,
@@ -881,6 +903,7 @@ var Checkbox = (_a) => {
881
903
  Paragraph,
882
904
  {
883
905
  id: id ? `${id}-label` : void 0,
906
+ testid: testid ? `${testid}-label` : void 0,
884
907
  as: "span",
885
908
  padded: true,
886
909
  className: (0, import_clsx9.default)(
@@ -915,7 +938,8 @@ var Subheader = (_a) => {
915
938
  align,
916
939
  color,
917
940
  tall,
918
- id
941
+ id,
942
+ testid
919
943
  } = _b, props = __objRest(_b, [
920
944
  "className",
921
945
  "children",
@@ -923,13 +947,15 @@ var Subheader = (_a) => {
923
947
  "align",
924
948
  "color",
925
949
  "tall",
926
- "id"
950
+ "id",
951
+ "testid"
927
952
  ]);
928
953
  const Element = as;
929
954
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
930
955
  Element,
931
956
  __spreadProps(__spreadValues({
932
957
  id,
958
+ "data-testid": testid,
933
959
  className: (0, import_clsx10.default)(
934
960
  typography.subheader,
935
961
  className,
@@ -963,18 +989,19 @@ function formatCurrencyDisplay(value) {
963
989
  // src/components/HorizontalDivider.tsx
964
990
  var import_clsx11 = __toESM(require("clsx"), 1);
965
991
  var import_jsx_runtime10 = require("react/jsx-runtime");
966
- function HorizontalDivider({ id, hideOnMobile }) {
992
+ function HorizontalDivider({ id, testid, hideOnMobile }) {
967
993
  const hideOnMobileStyle = (0, import_clsx11.default)(hideOnMobile && "hidden desktop:block");
968
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("hr", { id, className: (0, import_clsx11.default)("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
994
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("hr", { id, "data-testid": testid, className: (0, import_clsx11.default)("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
969
995
  }
970
996
 
971
997
  // src/components/Spinner.tsx
972
998
  var import_jsx_runtime11 = require("react/jsx-runtime");
973
- var Spinner = ({ size = "small" }) => {
999
+ var Spinner = ({ size = "small", testid }) => {
974
1000
  const dimension = size === "large" ? 48 : 24;
975
1001
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
976
1002
  "svg",
977
1003
  {
1004
+ "data-testid": testid,
978
1005
  width: dimension,
979
1006
  height: dimension,
980
1007
  viewBox: "0 0 24 24",
@@ -1094,7 +1121,8 @@ function SelectPaymentMethod(props) {
1094
1121
  isPayLoading,
1095
1122
  withCredits = false,
1096
1123
  isLoadingCCiframe,
1097
- cardPaymentUrl
1124
+ cardPaymentUrl,
1125
+ testid
1098
1126
  } = props;
1099
1127
  const payAllWithCredits = withCredits && amountToPay <= 0;
1100
1128
  (0, import_react.useEffect)(() => {
@@ -1111,6 +1139,7 @@ function SelectPaymentMethod(props) {
1111
1139
  !!(allCredits == null ? void 0 : allCredits.length) && withCredits && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1112
1140
  CreditsSelector,
1113
1141
  {
1142
+ testid: testid ? `${testid}-credit-selector` : void 0,
1114
1143
  selectedCredits: selectedCredits || [],
1115
1144
  allCredits: allCredits || [],
1116
1145
  setSelectedCredits: props.setSelectedCredits || (() => {
@@ -1120,6 +1149,7 @@ function SelectPaymentMethod(props) {
1120
1149
  (allowedMethods == null ? void 0 : allowedMethods.includes("ACHPayment")) && !!(customerBanks == null ? void 0 : customerBanks.length) && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1121
1150
  ACHSelector,
1122
1151
  {
1152
+ testid: testid ? `${testid}-ach-selector` : void 0,
1123
1153
  selectedMethod,
1124
1154
  handleToggle,
1125
1155
  selectedBankGuid: selectedACHBankGuid || null,
@@ -1134,10 +1164,12 @@ function SelectPaymentMethod(props) {
1134
1164
  (allowedMethods == null ? void 0 : allowedMethods.includes("CCPayment")) && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1135
1165
  Accordion,
1136
1166
  {
1167
+ testid: testid ? `${testid}-cc-payment` : void 0,
1137
1168
  isOpen: !payAllWithCredits && selectedMethod === "CCPayment",
1138
1169
  title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1139
1170
  Radio,
1140
1171
  {
1172
+ testid: testid ? `${testid}-cc-payment-radio` : void 0,
1141
1173
  label: "Pay by Credit/Debit Card",
1142
1174
  checked: !payAllWithCredits && selectedMethod === "CCPayment",
1143
1175
  onChange: (e) => e.stopPropagation(),
@@ -1177,10 +1209,11 @@ function SelectPaymentMethod(props) {
1177
1209
  block: true,
1178
1210
  onClick: onPay,
1179
1211
  disabled: isPayLoading || amountToPay <= 0,
1212
+ testid: testid ? `${testid}-submit-payment-button` : void 0,
1180
1213
  children: isPayLoading ? "Processing..." : "Submit Payment"
1181
1214
  }
1182
1215
  ),
1183
- payAllWithCredits && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { block: true, onClick: onPay, disabled: isPayLoading, children: isPayLoading ? "Processing..." : "Submit Payment" })
1216
+ payAllWithCredits && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { testid: testid ? `${testid}-submit-payment-button` : void 0, block: true, onClick: onPay, disabled: isPayLoading, children: isPayLoading ? "Processing..." : "Submit Payment" })
1184
1217
  ] });
1185
1218
  }
1186
1219
  function ACHSelector(props) {
@@ -1190,7 +1223,8 @@ function ACHSelector(props) {
1190
1223
  selectedBankGuid,
1191
1224
  setSelectedBankGuid,
1192
1225
  customerBanks,
1193
- disabled
1226
+ disabled,
1227
+ testid
1194
1228
  } = props;
1195
1229
  function handleBankSelect(e, bankGuid) {
1196
1230
  if (disabled) return;
@@ -1201,6 +1235,7 @@ function ACHSelector(props) {
1201
1235
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: customerBanks.map((bank) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1202
1236
  Card,
1203
1237
  {
1238
+ testid: testid ? `${testid}-bank-${bank.CustBankGUID}` : void 0,
1204
1239
  onClick: (e) => handleBankSelect(e, bank.CustBankGUID),
1205
1240
  selected: !disabled && selectedMethod === "ACHPayment" && selectedBankGuid === bank.CustBankGUID,
1206
1241
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -1217,7 +1252,7 @@ function ACHSelector(props) {
1217
1252
  )) });
1218
1253
  }
1219
1254
  function CreditsSelector(props) {
1220
- const { selectedCredits, allCredits, setSelectedCredits } = props;
1255
+ const { selectedCredits, allCredits, setSelectedCredits, testid } = props;
1221
1256
  const [isOpen, setIsOpen] = (0, import_react.useState)(true);
1222
1257
  const handleCreditSelect = (credit) => {
1223
1258
  if (setSelectedCredits) {
@@ -1232,6 +1267,7 @@ function CreditsSelector(props) {
1232
1267
  isOpen,
1233
1268
  title: "Available Credits",
1234
1269
  onClick: () => setIsOpen((prev) => !prev),
1270
+ testid,
1235
1271
  children: [
1236
1272
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(HorizontalDivider, {}),
1237
1273
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Stack, { sizing: "layout-group", width: "full", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -1256,9 +1292,11 @@ function CreditsSelector(props) {
1256
1292
  onClick: () => handleCreditSelect(credits),
1257
1293
  paddingY: true,
1258
1294
  flexGrow: 1,
1295
+ testid: testid ? `${testid}-credit-${credits.InvoiceNumber}` : void 0,
1259
1296
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1260
1297
  Checkbox,
1261
1298
  {
1299
+ testid: testid ? `${testid}-credit-${credits.InvoiceNumber}-checkbox` : void 0,
1262
1300
  label: credits.InvoiceNumber,
1263
1301
  checked: selectedCredits == null ? void 0 : selectedCredits.includes(credits),
1264
1302
  onChange: () => handleCreditSelect(credits)
@@ -1266,7 +1304,7 @@ function CreditsSelector(props) {
1266
1304
  )
1267
1305
  }
1268
1306
  ),
1269
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Subheader, { className: " pr-desktop-component-padding", children: [
1307
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Subheader, { testid: testid ? `${testid}-credit-${credits.InvoiceNumber}-InvoiceBalanceDue` : void 0, className: " pr-desktop-component-padding", children: [
1270
1308
  "$",
1271
1309
  formatCurrencyDisplay(
1272
1310
  `${Math.abs(credits.InvoiceBalanceDue)}`
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
3
  SelectPaymentMethod
4
- } from "../chunk-XCIBYDVK.js";
5
- import "../chunk-TTO4PL7Y.js";
6
- import "../chunk-4F6VQXKY.js";
7
- import "../chunk-3ZUSYRI7.js";
8
- import "../chunk-WT5XXW6G.js";
4
+ } from "../chunk-GXSXCEAA.js";
5
+ import "../chunk-BATIOCXB.js";
6
+ import "../chunk-GG5JOFS6.js";
7
+ import "../chunk-EPQLWHCL.js";
8
+ import "../chunk-WFQEE2OO.js";
9
9
  import "../chunk-5UH6QUFB.js";
10
- import "../chunk-O4M2GISS.js";
11
- import "../chunk-QTD7K43M.js";
12
- import "../chunk-EO3JJWFW.js";
13
- import "../chunk-4OS6APPF.js";
14
- import "../chunk-VG4EPHJA.js";
15
- import "../chunk-H6LXXGX6.js";
16
- import "../chunk-IGQVA7SC.js";
10
+ import "../chunk-CYZL57LH.js";
11
+ import "../chunk-WSS2DFTP.js";
12
+ import "../chunk-N6JVLYEE.js";
13
+ import "../chunk-4LXG6QNT.js";
14
+ import "../chunk-HVI3CL7Y.js";
15
+ import "../chunk-FKMKHLQH.js";
16
+ import "../chunk-NKUETCDA.js";
17
17
  import "../chunk-RDLEIAQU.js";
18
18
  import "../chunk-ORMEWXMH.js";
19
19
  export {
@@ -38,12 +38,14 @@ var import_jsx_runtime = require("react/jsx-runtime");
38
38
  var SideMenu = ({
39
39
  children,
40
40
  cardStyle = false,
41
- id
41
+ id,
42
+ testid
42
43
  }) => {
43
44
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
45
  "div",
45
46
  {
46
47
  id,
48
+ "data-testid": testid,
47
49
  className: (0, import_clsx.default)(
48
50
  "flex flex-col",
49
51
  cardStyle && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding rounded shadow-4 bg-background-primary-normal"
@@ -6,12 +6,14 @@ import { jsx } from "react/jsx-runtime";
6
6
  var SideMenu = ({
7
7
  children,
8
8
  cardStyle = false,
9
- id
9
+ id,
10
+ testid
10
11
  }) => {
11
12
  return /* @__PURE__ */ jsx(
12
13
  "div",
13
14
  {
14
15
  id,
16
+ "data-testid": testid,
15
17
  className: clsx(
16
18
  "flex flex-col",
17
19
  cardStyle && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding rounded shadow-4 bg-background-primary-normal"
@@ -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",
@@ -297,7 +300,8 @@ var Stack = (_a) => {
297
300
  id,
298
301
  noGap,
299
302
  marginTop,
300
- marginBottom
303
+ marginBottom,
304
+ testid
301
305
  } = _b, props = __objRest(_b, [
302
306
  "children",
303
307
  "items",
@@ -333,14 +337,16 @@ var Stack = (_a) => {
333
337
  "id",
334
338
  "noGap",
335
339
  "marginTop",
336
- "marginBottom"
340
+ "marginBottom",
341
+ "testid"
337
342
  ]);
338
343
  const flexClassNames = getFlexClassNames({ items, justify, grow });
339
344
  const gapClassNames = useGapClassNames(sizing);
340
345
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
341
346
  "div",
342
347
  __spreadProps(__spreadValues({
343
- id
348
+ id,
349
+ "data-testid": testid
344
350
  }, props), {
345
351
  style: {
346
352
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -409,17 +415,20 @@ function Icon(_a) {
409
415
  var _b = _a, {
410
416
  name,
411
417
  size = 24,
412
- variant = "outline"
418
+ variant = "outline",
419
+ testid
413
420
  } = _b, props = __objRest(_b, [
414
421
  "name",
415
422
  "size",
416
- "variant"
423
+ "variant",
424
+ "testid"
417
425
  ]);
418
426
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
419
427
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
420
428
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
421
429
  "span",
422
430
  __spreadProps(__spreadValues({}, props), {
431
+ "data-testid": testid,
423
432
  className: (0, import_clsx4.default)(
424
433
  "icon",
425
434
  `icon-${size}`,
@@ -438,6 +447,7 @@ function Icon(_a) {
438
447
  var import_jsx_runtime4 = require("react/jsx-runtime");
439
448
  var SideMenuGroup = ({
440
449
  id,
450
+ testid,
441
451
  label,
442
452
  groupIndentLevel = 1,
443
453
  collapsed = false,
@@ -460,6 +470,7 @@ var SideMenuGroup = ({
460
470
  "div",
461
471
  __spreadProps(__spreadValues({
462
472
  id,
473
+ "data-testid": testid,
463
474
  className: (0, import_clsx5.default)(
464
475
  "group/sm-group flex rounded cursor-pointer",
465
476
  "bg-transparent",
@@ -496,7 +507,7 @@ var SideMenuGroup = ({
496
507
  size: 24
497
508
  }
498
509
  ),
499
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { id: id ? `${id}-label` : void 0, padded: true, children: label })
510
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { id: id ? `${id}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, children: label })
500
511
  ]
501
512
  }
502
513
  )
@@ -1,13 +1,13 @@
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
  Stack
7
- } from "../chunk-EO3JJWFW.js";
7
+ } from "../chunk-N6JVLYEE.js";
8
8
  import {
9
9
  Icon
10
- } from "../chunk-IGQVA7SC.js";
10
+ } from "../chunk-NKUETCDA.js";
11
11
  import {
12
12
  baseTransition
13
13
  } from "../chunk-RDLEIAQU.js";
@@ -22,6 +22,7 @@ import { useEffect, useState } from "react";
22
22
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
23
  var SideMenuGroup = ({
24
24
  id,
25
+ testid,
25
26
  label,
26
27
  groupIndentLevel = 1,
27
28
  collapsed = false,
@@ -44,6 +45,7 @@ var SideMenuGroup = ({
44
45
  "div",
45
46
  __spreadProps(__spreadValues({
46
47
  id,
48
+ "data-testid": testid,
47
49
  className: clsx(
48
50
  "group/sm-group flex rounded cursor-pointer",
49
51
  "bg-transparent",
@@ -80,7 +82,7 @@ var SideMenuGroup = ({
80
82
  size: 24
81
83
  }
82
84
  ),
83
- /* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, padded: true, children: label })
85
+ /* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, children: label })
84
86
  ]
85
87
  }
86
88
  )
@@ -252,7 +252,8 @@ var Stack = (_a) => {
252
252
  id,
253
253
  noGap,
254
254
  marginTop,
255
- marginBottom
255
+ marginBottom,
256
+ testid
256
257
  } = _b, props = __objRest(_b, [
257
258
  "children",
258
259
  "items",
@@ -288,14 +289,16 @@ var Stack = (_a) => {
288
289
  "id",
289
290
  "noGap",
290
291
  "marginTop",
291
- "marginBottom"
292
+ "marginBottom",
293
+ "testid"
292
294
  ]);
293
295
  const flexClassNames = getFlexClassNames({ items, justify, grow });
294
296
  const gapClassNames = useGapClassNames(sizing);
295
297
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
296
298
  "div",
297
299
  __spreadProps(__spreadValues({
298
- id
300
+ id,
301
+ "data-testid": testid
299
302
  }, props), {
300
303
  style: {
301
304
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -370,7 +373,8 @@ var Paragraph = (_a) => {
370
373
  addOverflow,
371
374
  children,
372
375
  as = "p",
373
- id
376
+ id,
377
+ testid
374
378
  } = _b, props = __objRest(_b, [
375
379
  "className",
376
380
  "color",
@@ -380,13 +384,15 @@ var Paragraph = (_a) => {
380
384
  "addOverflow",
381
385
  "children",
382
386
  "as",
383
- "id"
387
+ "id",
388
+ "testid"
384
389
  ]);
385
390
  const Element = as;
386
391
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
387
392
  Element,
388
393
  __spreadProps(__spreadValues({
389
- id
394
+ id,
395
+ "data-testid": testid
390
396
  }, props), {
391
397
  className: (0, import_clsx3.default)(
392
398
  typography.paragraph,
@@ -411,6 +417,7 @@ Paragraph.displayName = "Paragraph";
411
417
  var import_jsx_runtime3 = require("react/jsx-runtime");
412
418
  var SideMenuItem = ({
413
419
  id,
420
+ testid,
414
421
  label,
415
422
  leftIcon,
416
423
  rightIcon,
@@ -435,6 +442,7 @@ var SideMenuItem = ({
435
442
  "a",
436
443
  {
437
444
  id,
445
+ "data-testid": testid,
438
446
  href,
439
447
  className: (0, import_clsx4.default)(
440
448
  "group flex w-full rounded border-2 cursor-pointer",
@@ -467,6 +475,7 @@ var SideMenuItem = ({
467
475
  Paragraph,
468
476
  {
469
477
  id: id ? `${id}-label` : void 0,
478
+ testid: testid ? `${testid}-label` : void 0,
470
479
  as: "span",
471
480
  padded: true,
472
481
  className: "mr-auto !leading-6",