@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
@@ -209,7 +209,8 @@ var Button = (_a) => {
209
209
  iconOnly = false,
210
210
  colorClassName,
211
211
  href,
212
- id
212
+ id,
213
+ testid
213
214
  } = _b, props = __objRest(_b, [
214
215
  "variant",
215
216
  "as",
@@ -223,7 +224,8 @@ var Button = (_a) => {
223
224
  "iconOnly",
224
225
  "colorClassName",
225
226
  "href",
226
- "id"
227
+ "id",
228
+ "testid"
227
229
  ]);
228
230
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
229
231
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -311,6 +313,7 @@ var Button = (_a) => {
311
313
  Element,
312
314
  __spreadProps(__spreadValues({
313
315
  id,
316
+ "data-testid": testid,
314
317
  type: Element === "button" ? "button" : void 0,
315
318
  className: buttonClasses
316
319
  }, props), {
@@ -320,7 +323,7 @@ var Button = (_a) => {
320
323
  "data-theme": variant === "navigation" ? "brand" : void 0,
321
324
  children: [
322
325
  leftIcon && leftIcon,
323
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
326
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
324
327
  rightIcon && rightIcon
325
328
  ]
326
329
  })
@@ -335,17 +338,20 @@ function Icon(_a) {
335
338
  var _b = _a, {
336
339
  name,
337
340
  size = 24,
338
- variant = "outline"
341
+ variant = "outline",
342
+ testid
339
343
  } = _b, props = __objRest(_b, [
340
344
  "name",
341
345
  "size",
342
- "variant"
346
+ "variant",
347
+ "testid"
343
348
  ]);
344
349
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
345
350
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
346
351
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
347
352
  "span",
348
353
  __spreadProps(__spreadValues({}, props), {
354
+ "data-testid": testid,
349
355
  className: (0, import_clsx3.default)(
350
356
  "icon",
351
357
  `icon-${size}`,
@@ -366,12 +372,14 @@ var ModalButtons = ({
366
372
  onClose,
367
373
  onContinue,
368
374
  customActions,
369
- id
375
+ id,
376
+ testid
370
377
  }) => {
371
378
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
372
379
  "div",
373
380
  {
374
381
  id,
382
+ "data-testid": testid,
375
383
  className: (0, import_clsx4.default)(
376
384
  "border-t border-neutral-300 flex justify-end",
377
385
  layoutPaddding,
@@ -382,6 +390,7 @@ var ModalButtons = ({
382
390
  Button,
383
391
  {
384
392
  id: id ? `${id}-close-button` : void 0,
393
+ testid: testid ? `${testid}-close-button` : void 0,
385
394
  variant: "secondary",
386
395
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "close", size: 24 }),
387
396
  onClick: onClose,
@@ -393,6 +402,7 @@ var ModalButtons = ({
393
402
  Button,
394
403
  {
395
404
  id: id ? `${id}-continue-button` : void 0,
405
+ testid: testid ? `${testid}-continue-button` : void 0,
396
406
  variant: "primary",
397
407
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "check", size: 24 }),
398
408
  className: "max-sm:w-full",
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ModalButtons
3
- } from "../chunk-CG2NIXZE.js";
4
- import "../chunk-H6LXXGX6.js";
5
- import "../chunk-IGQVA7SC.js";
3
+ } from "../chunk-C4JGTH6G.js";
4
+ import "../chunk-FKMKHLQH.js";
5
+ import "../chunk-NKUETCDA.js";
6
6
  import "../chunk-RDLEIAQU.js";
7
7
  import "../chunk-ORMEWXMH.js";
8
8
  export {
@@ -166,12 +166,14 @@ var import_jsx_runtime = require("react/jsx-runtime");
166
166
  function ModalContent({
167
167
  fixedHeightScrolling,
168
168
  children,
169
- id
169
+ id,
170
+ testid
170
171
  }) {
171
172
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
172
173
  "div",
173
174
  {
174
175
  id,
176
+ "data-testid": testid,
175
177
  className: (0, import_clsx2.default)(
176
178
  "flex-grow desktop:flex-grow-0",
177
179
  layoutPaddding,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModalContent
3
- } from "../chunk-FWPJ73IK.js";
3
+ } from "../chunk-SYEJVSE4.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -202,7 +202,8 @@ var Heading = (_a) => {
202
202
  color,
203
203
  align,
204
204
  variant = "heading1",
205
- id
205
+ id,
206
+ testid
206
207
  } = _b, props = __objRest(_b, [
207
208
  "className",
208
209
  "children",
@@ -210,7 +211,8 @@ var Heading = (_a) => {
210
211
  "color",
211
212
  "align",
212
213
  "variant",
213
- "id"
214
+ "id",
215
+ "testid"
214
216
  ]);
215
217
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
216
218
  const Element = as != null ? as : defaultElement;
@@ -218,6 +220,7 @@ var Heading = (_a) => {
218
220
  Element,
219
221
  __spreadProps(__spreadValues({
220
222
  id,
223
+ "data-testid": testid,
221
224
  className: (0, import_clsx2.default)(
222
225
  typography[variant],
223
226
  className,
@@ -258,7 +261,8 @@ var Button = (_a) => {
258
261
  iconOnly = false,
259
262
  colorClassName,
260
263
  href,
261
- id
264
+ id,
265
+ testid
262
266
  } = _b, props = __objRest(_b, [
263
267
  "variant",
264
268
  "as",
@@ -272,7 +276,8 @@ var Button = (_a) => {
272
276
  "iconOnly",
273
277
  "colorClassName",
274
278
  "href",
275
- "id"
279
+ "id",
280
+ "testid"
276
281
  ]);
277
282
  const primaryVariantStyles = variant === "primary" && (0, import_clsx3.default)(
278
283
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -360,6 +365,7 @@ var Button = (_a) => {
360
365
  Element,
361
366
  __spreadProps(__spreadValues({
362
367
  id,
368
+ "data-testid": testid,
363
369
  type: Element === "button" ? "button" : void 0,
364
370
  className: buttonClasses
365
371
  }, props), {
@@ -369,7 +375,7 @@ var Button = (_a) => {
369
375
  "data-theme": variant === "navigation" ? "brand" : void 0,
370
376
  children: [
371
377
  leftIcon && leftIcon,
372
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
378
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
373
379
  rightIcon && rightIcon
374
380
  ]
375
381
  })
@@ -384,17 +390,20 @@ function Icon(_a) {
384
390
  var _b = _a, {
385
391
  name,
386
392
  size = 24,
387
- variant = "outline"
393
+ variant = "outline",
394
+ testid
388
395
  } = _b, props = __objRest(_b, [
389
396
  "name",
390
397
  "size",
391
- "variant"
398
+ "variant",
399
+ "testid"
392
400
  ]);
393
401
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
394
402
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
395
403
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
396
404
  "span",
397
405
  __spreadProps(__spreadValues({}, props), {
406
+ "data-testid": testid,
398
407
  className: (0, import_clsx4.default)(
399
408
  "icon",
400
409
  `icon-${size}`,
@@ -417,12 +426,14 @@ var ModalHeader = ({
417
426
  hideCloseIcon,
418
427
  headerIcon,
419
428
  onClose,
420
- id
429
+ id,
430
+ testid
421
431
  }) => {
422
432
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
423
433
  "div",
424
434
  {
425
435
  id,
436
+ "data-testid": testid,
426
437
  className: (0, import_clsx5.default)(
427
438
  "flex justify-between items-center",
428
439
  layoutPaddding,
@@ -431,12 +442,13 @@ var ModalHeader = ({
431
442
  children: [
432
443
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", layoutGroupGap), children: [
433
444
  headerIcon,
434
- title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, as: "p", children: title })
445
+ title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, testid: testid ? `${testid}-title` : void 0, as: "p", children: title })
435
446
  ] }),
436
447
  !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
437
448
  Button,
438
449
  {
439
450
  id: id ? `${id}-close-button` : void 0,
451
+ testid: testid ? `${testid}-close-button` : void 0,
440
452
  iconOnly: true,
441
453
  variant: "tertiary",
442
454
  onClick: onClose,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ModalHeader
3
- } from "../chunk-6UI5GABI.js";
4
- import "../chunk-J6LETUNM.js";
5
- import "../chunk-H6LXXGX6.js";
6
- import "../chunk-IGQVA7SC.js";
3
+ } from "../chunk-R7ELP5C5.js";
4
+ import "../chunk-AZ7LVLOK.js";
5
+ import "../chunk-FKMKHLQH.js";
6
+ import "../chunk-NKUETCDA.js";
7
7
  import "../chunk-RDLEIAQU.js";
8
8
  import "../chunk-ORMEWXMH.js";
9
9
  export {
@@ -41,12 +41,14 @@ var ModalScrim = ({
41
41
  children,
42
42
  onClick,
43
43
  ref,
44
- id
44
+ id,
45
+ testid
45
46
  }) => {
46
47
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
48
  "div",
48
49
  {
49
50
  id,
51
+ "data-testid": testid,
50
52
  className: (0, import_clsx.default)(
51
53
  "overflow-y-auto h-screen transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center desktop:p-4 group bg-neutral-600/50 fixed opacity-0",
52
54
  !show && " pointer-events-none",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModalScrim
3
- } from "../chunk-4JLU7TAC.js";
3
+ } from "../chunk-ZFOANBWG.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  ModalScrim
@@ -209,7 +209,8 @@ var Button = (_a) => {
209
209
  iconOnly = false,
210
210
  colorClassName,
211
211
  href,
212
- id
212
+ id,
213
+ testid
213
214
  } = _b, props = __objRest(_b, [
214
215
  "variant",
215
216
  "as",
@@ -223,7 +224,8 @@ var Button = (_a) => {
223
224
  "iconOnly",
224
225
  "colorClassName",
225
226
  "href",
226
- "id"
227
+ "id",
228
+ "testid"
227
229
  ]);
228
230
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
229
231
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -311,6 +313,7 @@ var Button = (_a) => {
311
313
  Element,
312
314
  __spreadProps(__spreadValues({
313
315
  id,
316
+ "data-testid": testid,
314
317
  type: Element === "button" ? "button" : void 0,
315
318
  className: buttonClasses
316
319
  }, props), {
@@ -320,7 +323,7 @@ var Button = (_a) => {
320
323
  "data-theme": variant === "navigation" ? "brand" : void 0,
321
324
  children: [
322
325
  leftIcon && leftIcon,
323
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
326
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
324
327
  rightIcon && rightIcon
325
328
  ]
326
329
  })
@@ -335,17 +338,20 @@ function Icon(_a) {
335
338
  var _b = _a, {
336
339
  name,
337
340
  size = 24,
338
- variant = "outline"
341
+ variant = "outline",
342
+ testid
339
343
  } = _b, props = __objRest(_b, [
340
344
  "name",
341
345
  "size",
342
- "variant"
346
+ "variant",
347
+ "testid"
343
348
  ]);
344
349
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
345
350
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
346
351
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
347
352
  "span",
348
353
  __spreadProps(__spreadValues({}, props), {
354
+ "data-testid": testid,
349
355
  className: (0, import_clsx3.default)(
350
356
  "icon",
351
357
  `icon-${size}`,
@@ -365,6 +371,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
365
371
  var NavigationTab = (_a) => {
366
372
  var _b = _a, {
367
373
  id,
374
+ testid,
368
375
  label,
369
376
  onClick,
370
377
  selected = false,
@@ -373,6 +380,7 @@ var NavigationTab = (_a) => {
373
380
  href
374
381
  } = _b, props = __objRest(_b, [
375
382
  "id",
383
+ "testid",
376
384
  "label",
377
385
  "onClick",
378
386
  "selected",
@@ -416,6 +424,7 @@ var NavigationTab = (_a) => {
416
424
  Button,
417
425
  __spreadProps(__spreadValues({
418
426
  id,
427
+ testid,
419
428
  variant: "tertiary-critical",
420
429
  colorClassName: textClassName,
421
430
  className: (0, import_clsx4.default)(
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  NavigationTab
3
- } from "../chunk-P242H6OU.js";
4
- import "../chunk-H6LXXGX6.js";
5
- import "../chunk-IGQVA7SC.js";
3
+ } from "../chunk-ZGFQN47L.js";
4
+ import "../chunk-FKMKHLQH.js";
5
+ import "../chunk-NKUETCDA.js";
6
6
  import "../chunk-RDLEIAQU.js";
7
7
  import "../chunk-ORMEWXMH.js";
8
8
  export {
@@ -214,7 +214,8 @@ var Button = (_a) => {
214
214
  iconOnly = false,
215
215
  colorClassName,
216
216
  href,
217
- id
217
+ id,
218
+ testid
218
219
  } = _b, props = __objRest(_b, [
219
220
  "variant",
220
221
  "as",
@@ -228,7 +229,8 @@ var Button = (_a) => {
228
229
  "iconOnly",
229
230
  "colorClassName",
230
231
  "href",
231
- "id"
232
+ "id",
233
+ "testid"
232
234
  ]);
233
235
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
234
236
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -316,6 +318,7 @@ var Button = (_a) => {
316
318
  Element,
317
319
  __spreadProps(__spreadValues({
318
320
  id,
321
+ "data-testid": testid,
319
322
  type: Element === "button" ? "button" : void 0,
320
323
  className: buttonClasses
321
324
  }, props), {
@@ -325,7 +328,7 @@ var Button = (_a) => {
325
328
  "data-theme": variant === "navigation" ? "brand" : void 0,
326
329
  children: [
327
330
  leftIcon && leftIcon,
328
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
331
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
329
332
  rightIcon && rightIcon
330
333
  ]
331
334
  })
@@ -340,17 +343,20 @@ function Icon(_a) {
340
343
  var _b = _a, {
341
344
  name,
342
345
  size = 24,
343
- variant = "outline"
346
+ variant = "outline",
347
+ testid
344
348
  } = _b, props = __objRest(_b, [
345
349
  "name",
346
350
  "size",
347
- "variant"
351
+ "variant",
352
+ "testid"
348
353
  ]);
349
354
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
350
355
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
351
356
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
352
357
  "span",
353
358
  __spreadProps(__spreadValues({}, props), {
359
+ "data-testid": testid,
354
360
  className: (0, import_clsx3.default)(
355
361
  "icon",
356
362
  `icon-${size}`,
@@ -370,6 +376,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
370
376
  var NavigationTab = (_a) => {
371
377
  var _b = _a, {
372
378
  id,
379
+ testid,
373
380
  label,
374
381
  onClick,
375
382
  selected = false,
@@ -378,6 +385,7 @@ var NavigationTab = (_a) => {
378
385
  href
379
386
  } = _b, props = __objRest(_b, [
380
387
  "id",
388
+ "testid",
381
389
  "label",
382
390
  "onClick",
383
391
  "selected",
@@ -421,6 +429,7 @@ var NavigationTab = (_a) => {
421
429
  Button,
422
430
  __spreadProps(__spreadValues({
423
431
  id,
432
+ testid,
424
433
  variant: "tertiary-critical",
425
434
  colorClassName: textClassName,
426
435
  className: (0, import_clsx4.default)(
@@ -449,6 +458,7 @@ NavigationTab.displayName = "NavigationTab";
449
458
  var import_jsx_runtime4 = require("react/jsx-runtime");
450
459
  var NavigationTabs = ({
451
460
  id,
461
+ testid,
452
462
  tabs,
453
463
  onTabChange,
454
464
  colorPrimitives = "dmsi"
@@ -461,7 +471,7 @@ var NavigationTabs = ({
461
471
  };
462
472
  const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
463
473
  const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
464
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, children: [
474
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, "data-testid": testid, children: [
465
475
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
466
476
  "div",
467
477
  {
@@ -473,6 +483,7 @@ var NavigationTabs = ({
473
483
  NavigationTab,
474
484
  {
475
485
  id: id ? `${id}-tab-${tab.id}` : void 0,
486
+ testid: testid ? `${testid}-tab-${tab.id}` : void 0,
476
487
  label: tab.label,
477
488
  selected: selectedTab === tab.id,
478
489
  onClick: () => handleTabClick(tab.id),
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  NavigationTab
4
- } from "../chunk-P242H6OU.js";
5
- import "../chunk-H6LXXGX6.js";
6
- import "../chunk-IGQVA7SC.js";
4
+ } from "../chunk-ZGFQN47L.js";
5
+ import "../chunk-FKMKHLQH.js";
6
+ import "../chunk-NKUETCDA.js";
7
7
  import {
8
8
  componentGap
9
9
  } from "../chunk-RDLEIAQU.js";
@@ -15,6 +15,7 @@ import { useState } from "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  var NavigationTabs = ({
17
17
  id,
18
+ testid,
18
19
  tabs,
19
20
  onTabChange,
20
21
  colorPrimitives = "dmsi"
@@ -27,7 +28,7 @@ var NavigationTabs = ({
27
28
  };
28
29
  const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
29
30
  const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
30
- return /* @__PURE__ */ jsxs("div", { id, children: [
31
+ return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, children: [
31
32
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
32
33
  "div",
33
34
  {
@@ -39,6 +40,7 @@ var NavigationTabs = ({
39
40
  NavigationTab,
40
41
  {
41
42
  id: id ? `${id}-tab-${tab.id}` : void 0,
43
+ testid: testid ? `${testid}-tab-${tab.id}` : void 0,
42
44
  label: tab.label,
43
45
  selected: selectedTab === tab.id,
44
46
  onClick: () => handleTabClick(tab.id),
@@ -72,17 +72,20 @@ function Icon(_a) {
72
72
  var _b = _a, {
73
73
  name,
74
74
  size = 24,
75
- variant = "outline"
75
+ variant = "outline",
76
+ testid
76
77
  } = _b, props = __objRest(_b, [
77
78
  "name",
78
79
  "size",
79
- "variant"
80
+ "variant",
81
+ "testid"
80
82
  ]);
81
83
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
82
84
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
83
85
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
86
  "span",
85
87
  __spreadProps(__spreadValues({}, props), {
88
+ "data-testid": testid,
86
89
  className: (0, import_clsx.default)(
87
90
  "icon",
88
91
  `icon-${size}`,
@@ -237,20 +240,23 @@ var Label = (_a) => {
237
240
  className,
238
241
  color,
239
242
  align,
240
- id
243
+ id,
244
+ testid
241
245
  } = _b, props = __objRest(_b, [
242
246
  "as",
243
247
  "padded",
244
248
  "className",
245
249
  "color",
246
250
  "align",
247
- "id"
251
+ "id",
252
+ "testid"
248
253
  ]);
249
254
  const Element = as;
250
255
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
251
256
  Element,
252
257
  __spreadProps(__spreadValues({
253
258
  id,
259
+ "data-testid": testid,
254
260
  className: (0, import_clsx3.default)(
255
261
  typography.label,
256
262
  align === "left" && "text-left",
@@ -281,7 +287,8 @@ var Paragraph = (_a) => {
281
287
  addOverflow,
282
288
  children,
283
289
  as = "p",
284
- id
290
+ id,
291
+ testid
285
292
  } = _b, props = __objRest(_b, [
286
293
  "className",
287
294
  "color",
@@ -291,13 +298,15 @@ var Paragraph = (_a) => {
291
298
  "addOverflow",
292
299
  "children",
293
300
  "as",
294
- "id"
301
+ "id",
302
+ "testid"
295
303
  ]);
296
304
  const Element = as;
297
305
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
298
306
  Element,
299
307
  __spreadProps(__spreadValues({
300
- id
308
+ id,
309
+ "data-testid": testid
301
310
  }, props), {
302
311
  className: (0, import_clsx4.default)(
303
312
  typography.paragraph,
@@ -369,6 +378,7 @@ var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
369
378
  var import_jsx_runtime4 = require("react/jsx-runtime");
370
379
  var MenuOption = ({
371
380
  id,
381
+ testid,
372
382
  children,
373
383
  disabled = false,
374
384
  variant = "normal",
@@ -442,6 +452,7 @@ var MenuOption = ({
442
452
  "div",
443
453
  __spreadProps(__spreadValues({
444
454
  id,
455
+ "data-testid": testid,
445
456
  ref: actualRef,
446
457
  className: (0, import_clsx5.default)(
447
458
  "flex items-center cursor-pointer w-full text-left relative outline-none",
@@ -510,6 +521,7 @@ var MenuOption = ({
510
521
  MenuOption,
511
522
  {
512
523
  id: id ? `${id}-back` : void 0,
524
+ testid: testid ? `${testid}-back` : void 0,
513
525
  onClick: () => {
514
526
  closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
515
527
  },
@@ -539,7 +551,7 @@ function highlightMatch(text, searchValue) {
539
551
  var import_jsx_runtime5 = require("react/jsx-runtime");
540
552
  function NestedMenu(props) {
541
553
  var _a;
542
- const { onMenuClick, currentMenu } = props;
554
+ const { onMenuClick, currentMenu, testid } = props;
543
555
  const [selectedIndex, setSelectedIndex] = (0, import_react5.useState)(0);
544
556
  useKeydown(
545
557
  {
@@ -586,6 +598,7 @@ function NestedMenu(props) {
586
598
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
587
599
  MenuOption,
588
600
  {
601
+ testid: testid ? `${testid}-back` : void 0,
589
602
  variant: "action",
590
603
  before: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_left", className: "icon", size: 24 }),
591
604
  onClick: () => {
@@ -596,12 +609,13 @@ function NestedMenu(props) {
596
609
  children: currentMenu.previousMenu ? currentMenu.previousMenu.label : "Main Menu"
597
610
  }
598
611
  ),
599
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuOption, { variant: "action", children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
612
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuOption, { variant: "action", testid: testid ? `${testid}-title` : void 0, children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
600
613
  (currentMenu.subEntries || []).map((item, idx) => {
601
614
  var _a2;
602
615
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
603
616
  MenuOption,
604
617
  {
618
+ testid: testid ? `${testid}-${item.label}` : void 0,
605
619
  variant: "normal",
606
620
  onClick: () => handleMenuClick(item),
607
621
  after: ((_a2 = item.subEntries) == null ? void 0 : _a2.length) && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_right", className: "icon", size: 24 }),