@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
@@ -202,20 +202,23 @@ var Label = (_a) => {
202
202
  className,
203
203
  color,
204
204
  align,
205
- id
205
+ id,
206
+ testid
206
207
  } = _b, props = __objRest(_b, [
207
208
  "as",
208
209
  "padded",
209
210
  "className",
210
211
  "color",
211
212
  "align",
212
- "id"
213
+ "id",
214
+ "testid"
213
215
  ]);
214
216
  const Element = as;
215
217
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
218
  Element,
217
219
  __spreadProps(__spreadValues({
218
220
  id,
221
+ "data-testid": testid,
219
222
  className: (0, import_clsx2.default)(
220
223
  typography.label,
221
224
  align === "left" && "text-left",
@@ -246,7 +249,8 @@ var Paragraph = (_a) => {
246
249
  addOverflow,
247
250
  children,
248
251
  as = "p",
249
- id
252
+ id,
253
+ testid
250
254
  } = _b, props = __objRest(_b, [
251
255
  "className",
252
256
  "color",
@@ -256,13 +260,15 @@ var Paragraph = (_a) => {
256
260
  "addOverflow",
257
261
  "children",
258
262
  "as",
259
- "id"
263
+ "id",
264
+ "testid"
260
265
  ]);
261
266
  const Element = as;
262
267
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
263
268
  Element,
264
269
  __spreadProps(__spreadValues({
265
- id
270
+ id,
271
+ "data-testid": testid
266
272
  }, props), {
267
273
  className: (0, import_clsx3.default)(
268
274
  typography.paragraph,
@@ -290,17 +296,20 @@ function Icon(_a) {
290
296
  var _b = _a, {
291
297
  name,
292
298
  size = 24,
293
- variant = "outline"
299
+ variant = "outline",
300
+ testid
294
301
  } = _b, props = __objRest(_b, [
295
302
  "name",
296
303
  "size",
297
- "variant"
304
+ "variant",
305
+ "testid"
298
306
  ]);
299
307
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
300
308
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
301
309
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
302
310
  "span",
303
311
  __spreadProps(__spreadValues({}, props), {
312
+ "data-testid": testid,
304
313
  className: (0, import_clsx4.default)(
305
314
  "icon",
306
315
  `icon-${size}`,
@@ -340,6 +349,7 @@ var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
340
349
  var import_jsx_runtime4 = require("react/jsx-runtime");
341
350
  var MenuOption = ({
342
351
  id,
352
+ testid,
343
353
  children,
344
354
  disabled = false,
345
355
  variant = "normal",
@@ -413,6 +423,7 @@ var MenuOption = ({
413
423
  "div",
414
424
  __spreadProps(__spreadValues({
415
425
  id,
426
+ "data-testid": testid,
416
427
  ref: actualRef,
417
428
  className: (0, import_clsx5.default)(
418
429
  "flex items-center cursor-pointer w-full text-left relative outline-none",
@@ -481,6 +492,7 @@ var MenuOption = ({
481
492
  MenuOption,
482
493
  {
483
494
  id: id ? `${id}-back` : void 0,
495
+ testid: testid ? `${testid}-back` : void 0,
484
496
  onClick: () => {
485
497
  closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
486
498
  },
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  MenuOption
4
- } from "../chunk-VH3EJNVE.js";
4
+ } from "../chunk-FFU6FB3K.js";
5
5
  import "../chunk-WNQ53SVY.js";
6
- import "../chunk-S5K22XTH.js";
7
- import "../chunk-VG4EPHJA.js";
8
- import "../chunk-IGQVA7SC.js";
6
+ import "../chunk-JWCT72WR.js";
7
+ import "../chunk-HVI3CL7Y.js";
8
+ import "../chunk-NKUETCDA.js";
9
9
  import "../chunk-RDLEIAQU.js";
10
10
  import "../chunk-ORMEWXMH.js";
11
11
  export {
@@ -71,17 +71,20 @@ function Icon(_a) {
71
71
  var _b = _a, {
72
72
  name,
73
73
  size = 24,
74
- variant = "outline"
74
+ variant = "outline",
75
+ testid
75
76
  } = _b, props = __objRest(_b, [
76
77
  "name",
77
78
  "size",
78
- "variant"
79
+ "variant",
80
+ "testid"
79
81
  ]);
80
82
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
81
83
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
82
84
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
85
  "span",
84
86
  __spreadProps(__spreadValues({}, props), {
87
+ "data-testid": testid,
85
88
  className: (0, import_clsx.default)(
86
89
  "icon",
87
90
  `icon-${size}`,
@@ -286,7 +289,8 @@ var Stack = (_a) => {
286
289
  id,
287
290
  noGap,
288
291
  marginTop,
289
- marginBottom
292
+ marginBottom,
293
+ testid
290
294
  } = _b, props = __objRest(_b, [
291
295
  "children",
292
296
  "items",
@@ -322,14 +326,16 @@ var Stack = (_a) => {
322
326
  "id",
323
327
  "noGap",
324
328
  "marginTop",
325
- "marginBottom"
329
+ "marginBottom",
330
+ "testid"
326
331
  ]);
327
332
  const flexClassNames = getFlexClassNames({ items, justify, grow });
328
333
  const gapClassNames = useGapClassNames(sizing);
329
334
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
330
335
  "div",
331
336
  __spreadProps(__spreadValues({
332
- id
337
+ id,
338
+ "data-testid": testid
333
339
  }, props), {
334
340
  style: {
335
341
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
@@ -408,7 +414,8 @@ var Button = (_a) => {
408
414
  iconOnly = false,
409
415
  colorClassName,
410
416
  href,
411
- id
417
+ id,
418
+ testid
412
419
  } = _b, props = __objRest(_b, [
413
420
  "variant",
414
421
  "as",
@@ -422,7 +429,8 @@ var Button = (_a) => {
422
429
  "iconOnly",
423
430
  "colorClassName",
424
431
  "href",
425
- "id"
432
+ "id",
433
+ "testid"
426
434
  ]);
427
435
  const primaryVariantStyles = variant === "primary" && (0, import_clsx4.default)(
428
436
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -510,6 +518,7 @@ var Button = (_a) => {
510
518
  Element,
511
519
  __spreadProps(__spreadValues({
512
520
  id,
521
+ "data-testid": testid,
513
522
  type: Element === "button" ? "button" : void 0,
514
523
  className: buttonClasses
515
524
  }, props), {
@@ -519,7 +528,7 @@ var Button = (_a) => {
519
528
  "data-theme": variant === "navigation" ? "brand" : void 0,
520
529
  children: [
521
530
  leftIcon && leftIcon,
522
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
531
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
523
532
  rightIcon && rightIcon
524
533
  ]
525
534
  })
@@ -533,12 +542,14 @@ function Theme({
533
542
  theme,
534
543
  children,
535
544
  id,
545
+ testid,
536
546
  ref
537
547
  }) {
538
548
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
539
549
  "div",
540
550
  {
541
551
  id,
552
+ "data-testid": testid,
542
553
  className: "contents",
543
554
  "data-theme": theme,
544
555
  ref: (e) => {
@@ -560,7 +571,8 @@ var Heading = (_a) => {
560
571
  color,
561
572
  align,
562
573
  variant = "heading1",
563
- id
574
+ id,
575
+ testid
564
576
  } = _b, props = __objRest(_b, [
565
577
  "className",
566
578
  "children",
@@ -568,7 +580,8 @@ var Heading = (_a) => {
568
580
  "color",
569
581
  "align",
570
582
  "variant",
571
- "id"
583
+ "id",
584
+ "testid"
572
585
  ]);
573
586
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
574
587
  const Element = as != null ? as : defaultElement;
@@ -576,6 +589,7 @@ var Heading = (_a) => {
576
589
  Element,
577
590
  __spreadProps(__spreadValues({
578
591
  id,
592
+ "data-testid": testid,
579
593
  className: (0, import_clsx5.default)(
580
594
  typography[variant],
581
595
  className,
@@ -612,7 +626,8 @@ var Paragraph = (_a) => {
612
626
  addOverflow,
613
627
  children,
614
628
  as = "p",
615
- id
629
+ id,
630
+ testid
616
631
  } = _b, props = __objRest(_b, [
617
632
  "className",
618
633
  "color",
@@ -622,13 +637,15 @@ var Paragraph = (_a) => {
622
637
  "addOverflow",
623
638
  "children",
624
639
  "as",
625
- "id"
640
+ "id",
641
+ "testid"
626
642
  ]);
627
643
  const Element = as;
628
644
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
629
645
  Element,
630
646
  __spreadProps(__spreadValues({
631
- id
647
+ id,
648
+ "data-testid": testid
632
649
  }, props), {
633
650
  className: (0, import_clsx6.default)(
634
651
  typography.paragraph,
@@ -658,12 +675,14 @@ function MobileDataGrid({
658
675
  getId,
659
676
  renderLink,
660
677
  renderChevron,
661
- id
678
+ id,
679
+ testid
662
680
  }) {
663
681
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
664
682
  "div",
665
683
  {
666
684
  id,
685
+ "data-testid": testid,
667
686
  className: (0, import_clsx7.default)(
668
687
  "rounded",
669
688
  "overflow-hidden",
@@ -676,6 +695,7 @@ function MobileDataGrid({
676
695
  MobileDataGridHeader,
677
696
  {
678
697
  id: id ? `${id}-header` : void 0,
698
+ testid: testid ? `${testid}-header` : void 0,
679
699
  header
680
700
  }
681
701
  ),
@@ -683,6 +703,7 @@ function MobileDataGrid({
683
703
  MobileDataGridCard,
684
704
  {
685
705
  id: id ? `${id}-card-${getId(item)}` : void 0,
706
+ testid: testid ? `${testid}-card-${getId(item)}` : void 0,
686
707
  data: item,
687
708
  columns,
688
709
  renderLink,
@@ -694,8 +715,8 @@ function MobileDataGrid({
694
715
  }
695
716
  );
696
717
  }
697
- function MobileDataGridHeader({ header, id }) {
698
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { id, className: "sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
718
+ function MobileDataGridHeader({ header, id, testid }) {
719
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { id, "data-testid": testid, className: "sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
699
720
  Stack,
700
721
  {
701
722
  horizontal: true,
@@ -713,9 +734,10 @@ function MobileDataGridCard({
713
734
  columns,
714
735
  renderLink,
715
736
  renderChevron,
716
- id
737
+ id,
738
+ testid
717
739
  }) {
718
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { id, children: [
740
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { id, "data-testid": testid, children: [
719
741
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { sizing: "component", padding: true, children: [
720
742
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
721
743
  renderLink && renderLink(data),
@@ -724,6 +746,7 @@ function MobileDataGridCard({
724
746
  Button,
725
747
  {
726
748
  id: id ? `${id}-docs-button` : void 0,
749
+ testid: testid ? `${testid}-docs-button` : void 0,
727
750
  iconOnly: true,
728
751
  variant: "tertiary",
729
752
  onClick: () => console.log("Edit", data.id),
@@ -734,6 +757,7 @@ function MobileDataGridCard({
734
757
  Button,
735
758
  {
736
759
  id: id ? `${id}-swap-button` : void 0,
760
+ testid: testid ? `${testid}-swap-button` : void 0,
737
761
  iconOnly: true,
738
762
  variant: "tertiary",
739
763
  onClick: () => console.log("Edit", data.id),
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  Theme
3
- } from "../chunk-6DONKNDT.js";
3
+ } from "../chunk-EWGHVZL5.js";
4
4
  import {
5
5
  Heading3
6
- } from "../chunk-J6LETUNM.js";
6
+ } from "../chunk-AZ7LVLOK.js";
7
7
  import {
8
8
  Stack
9
- } from "../chunk-EO3JJWFW.js";
9
+ } from "../chunk-N6JVLYEE.js";
10
10
  import {
11
11
  Paragraph
12
- } from "../chunk-VG4EPHJA.js";
12
+ } from "../chunk-HVI3CL7Y.js";
13
13
  import {
14
14
  Button
15
- } from "../chunk-H6LXXGX6.js";
15
+ } from "../chunk-FKMKHLQH.js";
16
16
  import {
17
17
  Icon
18
- } from "../chunk-IGQVA7SC.js";
18
+ } from "../chunk-NKUETCDA.js";
19
19
  import "../chunk-RDLEIAQU.js";
20
20
  import "../chunk-ORMEWXMH.js";
21
21
 
@@ -29,12 +29,14 @@ function MobileDataGrid({
29
29
  getId,
30
30
  renderLink,
31
31
  renderChevron,
32
- id
32
+ id,
33
+ testid
33
34
  }) {
34
35
  return /* @__PURE__ */ jsxs(
35
36
  "div",
36
37
  {
37
38
  id,
39
+ "data-testid": testid,
38
40
  className: clsx(
39
41
  "rounded",
40
42
  "overflow-hidden",
@@ -47,6 +49,7 @@ function MobileDataGrid({
47
49
  MobileDataGridHeader,
48
50
  {
49
51
  id: id ? `${id}-header` : void 0,
52
+ testid: testid ? `${testid}-header` : void 0,
50
53
  header
51
54
  }
52
55
  ),
@@ -54,6 +57,7 @@ function MobileDataGrid({
54
57
  MobileDataGridCard,
55
58
  {
56
59
  id: id ? `${id}-card-${getId(item)}` : void 0,
60
+ testid: testid ? `${testid}-card-${getId(item)}` : void 0,
57
61
  data: item,
58
62
  columns,
59
63
  renderLink,
@@ -65,8 +69,8 @@ function MobileDataGrid({
65
69
  }
66
70
  );
67
71
  }
68
- function MobileDataGridHeader({ header, id }) {
69
- return /* @__PURE__ */ jsx("div", { id, className: "sticky top-0", children: /* @__PURE__ */ jsx(Theme, { theme: "brand", children: /* @__PURE__ */ jsx(
72
+ function MobileDataGridHeader({ header, id, testid }) {
73
+ return /* @__PURE__ */ jsx("div", { id, "data-testid": testid, className: "sticky top-0", children: /* @__PURE__ */ jsx(Theme, { theme: "brand", children: /* @__PURE__ */ jsx(
70
74
  Stack,
71
75
  {
72
76
  horizontal: true,
@@ -84,9 +88,10 @@ function MobileDataGridCard({
84
88
  columns,
85
89
  renderLink,
86
90
  renderChevron,
87
- id
91
+ id,
92
+ testid
88
93
  }) {
89
- return /* @__PURE__ */ jsxs("div", { id, children: [
94
+ return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, children: [
90
95
  /* @__PURE__ */ jsxs(Stack, { sizing: "component", padding: true, children: [
91
96
  /* @__PURE__ */ jsxs(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
92
97
  renderLink && renderLink(data),
@@ -95,6 +100,7 @@ function MobileDataGridCard({
95
100
  Button,
96
101
  {
97
102
  id: id ? `${id}-docs-button` : void 0,
103
+ testid: testid ? `${testid}-docs-button` : void 0,
98
104
  iconOnly: true,
99
105
  variant: "tertiary",
100
106
  onClick: () => console.log("Edit", data.id),
@@ -105,6 +111,7 @@ function MobileDataGridCard({
105
111
  Button,
106
112
  {
107
113
  id: id ? `${id}-swap-button` : void 0,
114
+ testid: testid ? `${testid}-swap-button` : void 0,
108
115
  iconOnly: true,
109
116
  variant: "tertiary",
110
117
  onClick: () => console.log("Edit", data.id),
@@ -205,7 +205,8 @@ var Heading = (_a) => {
205
205
  color,
206
206
  align,
207
207
  variant = "heading1",
208
- id
208
+ id,
209
+ testid
209
210
  } = _b, props = __objRest(_b, [
210
211
  "className",
211
212
  "children",
@@ -213,7 +214,8 @@ var Heading = (_a) => {
213
214
  "color",
214
215
  "align",
215
216
  "variant",
216
- "id"
217
+ "id",
218
+ "testid"
217
219
  ]);
218
220
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
219
221
  const Element = as != null ? as : defaultElement;
@@ -221,6 +223,7 @@ var Heading = (_a) => {
221
223
  Element,
222
224
  __spreadProps(__spreadValues({
223
225
  id,
226
+ "data-testid": testid,
224
227
  className: (0, import_clsx2.default)(
225
228
  typography[variant],
226
229
  className,
@@ -261,7 +264,8 @@ var Button = (_a) => {
261
264
  iconOnly = false,
262
265
  colorClassName,
263
266
  href,
264
- id
267
+ id,
268
+ testid
265
269
  } = _b, props = __objRest(_b, [
266
270
  "variant",
267
271
  "as",
@@ -275,7 +279,8 @@ var Button = (_a) => {
275
279
  "iconOnly",
276
280
  "colorClassName",
277
281
  "href",
278
- "id"
282
+ "id",
283
+ "testid"
279
284
  ]);
280
285
  const primaryVariantStyles = variant === "primary" && (0, import_clsx3.default)(
281
286
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -363,6 +368,7 @@ var Button = (_a) => {
363
368
  Element,
364
369
  __spreadProps(__spreadValues({
365
370
  id,
371
+ "data-testid": testid,
366
372
  type: Element === "button" ? "button" : void 0,
367
373
  className: buttonClasses
368
374
  }, props), {
@@ -372,7 +378,7 @@ var Button = (_a) => {
372
378
  "data-theme": variant === "navigation" ? "brand" : void 0,
373
379
  children: [
374
380
  leftIcon && leftIcon,
375
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
381
+ !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 }),
376
382
  rightIcon && rightIcon
377
383
  ]
378
384
  })
@@ -387,17 +393,20 @@ function Icon(_a) {
387
393
  var _b = _a, {
388
394
  name,
389
395
  size = 24,
390
- variant = "outline"
396
+ variant = "outline",
397
+ testid
391
398
  } = _b, props = __objRest(_b, [
392
399
  "name",
393
400
  "size",
394
- "variant"
401
+ "variant",
402
+ "testid"
395
403
  ]);
396
404
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
397
405
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
398
406
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
399
407
  "span",
400
408
  __spreadProps(__spreadValues({}, props), {
409
+ "data-testid": testid,
401
410
  className: (0, import_clsx4.default)(
402
411
  "icon",
403
412
  `icon-${size}`,
@@ -420,12 +429,14 @@ var ModalHeader = ({
420
429
  hideCloseIcon,
421
430
  headerIcon,
422
431
  onClose,
423
- id
432
+ id,
433
+ testid
424
434
  }) => {
425
435
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
426
436
  "div",
427
437
  {
428
438
  id,
439
+ "data-testid": testid,
429
440
  className: (0, import_clsx5.default)(
430
441
  "flex justify-between items-center",
431
442
  layoutPaddding,
@@ -434,12 +445,13 @@ var ModalHeader = ({
434
445
  children: [
435
446
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", layoutGroupGap), children: [
436
447
  headerIcon,
437
- title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, as: "p", children: title })
448
+ title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, testid: testid ? `${testid}-title` : void 0, as: "p", children: title })
438
449
  ] }),
439
450
  !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
440
451
  Button,
441
452
  {
442
453
  id: id ? `${id}-close-button` : void 0,
454
+ testid: testid ? `${testid}-close-button` : void 0,
443
455
  iconOnly: true,
444
456
  variant: "tertiary",
445
457
  onClick: onClose,
@@ -458,12 +470,14 @@ var import_jsx_runtime5 = require("react/jsx-runtime");
458
470
  function ModalContent({
459
471
  fixedHeightScrolling,
460
472
  children,
461
- id
473
+ id,
474
+ testid
462
475
  }) {
463
476
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
464
477
  "div",
465
478
  {
466
479
  id,
480
+ "data-testid": testid,
467
481
  className: (0, import_clsx6.default)(
468
482
  "flex-grow desktop:flex-grow-0",
469
483
  layoutPaddding,
@@ -482,12 +496,14 @@ var ModalButtons = ({
482
496
  onClose,
483
497
  onContinue,
484
498
  customActions,
485
- id
499
+ id,
500
+ testid
486
501
  }) => {
487
502
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
488
503
  "div",
489
504
  {
490
505
  id,
506
+ "data-testid": testid,
491
507
  className: (0, import_clsx7.default)(
492
508
  "border-t border-neutral-300 flex justify-end",
493
509
  layoutPaddding,
@@ -498,6 +514,7 @@ var ModalButtons = ({
498
514
  Button,
499
515
  {
500
516
  id: id ? `${id}-close-button` : void 0,
517
+ testid: testid ? `${testid}-close-button` : void 0,
501
518
  variant: "secondary",
502
519
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "close", size: 24 }),
503
520
  onClick: onClose,
@@ -509,6 +526,7 @@ var ModalButtons = ({
509
526
  Button,
510
527
  {
511
528
  id: id ? `${id}-continue-button` : void 0,
529
+ testid: testid ? `${testid}-continue-button` : void 0,
512
530
  variant: "primary",
513
531
  leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "check", size: 24 }),
514
532
  className: "max-sm:w-full",
@@ -531,12 +549,14 @@ var ModalScrim = ({
531
549
  children,
532
550
  onClick,
533
551
  ref,
534
- id
552
+ id,
553
+ testid
535
554
  }) => {
536
555
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
537
556
  "div",
538
557
  {
539
558
  id,
559
+ "data-testid": testid,
540
560
  className: (0, import_clsx8.default)(
541
561
  "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",
542
562
  !show && " pointer-events-none",
@@ -673,6 +693,7 @@ var sizes = {
673
693
  };
674
694
  var Modal = ({
675
695
  id,
696
+ testid,
676
697
  title,
677
698
  open = false,
678
699
  size = "small",
@@ -781,6 +802,7 @@ var Modal = ({
781
802
  ModalScrim,
782
803
  {
783
804
  id: id ? `${id}-scrim` : void 0,
805
+ testid: testid ? `${testid}-scrim` : void 0,
784
806
  size,
785
807
  ref: bgRef,
786
808
  show: open,
@@ -789,6 +811,7 @@ var Modal = ({
789
811
  "div",
790
812
  {
791
813
  id,
814
+ "data-testid": testid,
792
815
  ref: modalRef,
793
816
  className: (0, import_clsx9.default)(
794
817
  "bg-white shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
@@ -802,6 +825,7 @@ var Modal = ({
802
825
  ModalHeader,
803
826
  {
804
827
  id: id ? `${id}-header` : void 0,
828
+ testid: testid ? `${testid}-header` : void 0,
805
829
  title,
806
830
  onClose: handleClose,
807
831
  hideCloseIcon,
@@ -812,6 +836,7 @@ var Modal = ({
812
836
  ModalContent,
813
837
  {
814
838
  id: id ? `${id}-content` : void 0,
839
+ testid: testid ? `${testid}-content` : void 0,
815
840
  fixedHeightScrolling: computedFixedHeightScrolling,
816
841
  children
817
842
  }
@@ -820,6 +845,7 @@ var Modal = ({
820
845
  ModalButtons,
821
846
  {
822
847
  id: id ? `${id}-buttons` : void 0,
848
+ testid: testid ? `${testid}-buttons` : void 0,
823
849
  onClose: handleClose,
824
850
  onContinue,
825
851
  customActions
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Modal
4
- } from "../chunk-D2YP2BTN.js";
4
+ } from "../chunk-5GOJRLQO.js";
5
5
  import "../chunk-4RJKB7LC.js";
6
- import "../chunk-CG2NIXZE.js";
7
- import "../chunk-FWPJ73IK.js";
8
- import "../chunk-6UI5GABI.js";
9
- import "../chunk-4JLU7TAC.js";
10
- import "../chunk-J6LETUNM.js";
6
+ import "../chunk-C4JGTH6G.js";
7
+ import "../chunk-SYEJVSE4.js";
8
+ import "../chunk-R7ELP5C5.js";
9
+ import "../chunk-ZFOANBWG.js";
10
+ import "../chunk-AZ7LVLOK.js";
11
11
  import "../chunk-WNQ53SVY.js";
12
12
  import "../chunk-4T7F5BZZ.js";
13
- import "../chunk-H6LXXGX6.js";
14
- import "../chunk-IGQVA7SC.js";
13
+ import "../chunk-FKMKHLQH.js";
14
+ import "../chunk-NKUETCDA.js";
15
15
  import "../chunk-RDLEIAQU.js";
16
16
  import "../chunk-ORMEWXMH.js";
17
17
  export {