@dmsi/wedgekit-react 0.0.140 → 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
@@ -206,7 +206,8 @@ var Button = (_a) => {
206
206
  iconOnly = false,
207
207
  colorClassName,
208
208
  href,
209
- id
209
+ id,
210
+ testid
210
211
  } = _b, props = __objRest(_b, [
211
212
  "variant",
212
213
  "as",
@@ -220,7 +221,8 @@ var Button = (_a) => {
220
221
  "iconOnly",
221
222
  "colorClassName",
222
223
  "href",
223
- "id"
224
+ "id",
225
+ "testid"
224
226
  ]);
225
227
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
226
228
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -308,6 +310,7 @@ var Button = (_a) => {
308
310
  Element,
309
311
  __spreadProps(__spreadValues({
310
312
  id,
313
+ "data-testid": testid,
311
314
  type: Element === "button" ? "button" : void 0,
312
315
  className: buttonClasses
313
316
  }, props), {
@@ -317,7 +320,7 @@ var Button = (_a) => {
317
320
  "data-theme": variant === "navigation" ? "brand" : void 0,
318
321
  children: [
319
322
  leftIcon && leftIcon,
320
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
323
+ !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 }),
321
324
  rightIcon && rightIcon
322
325
  ]
323
326
  })
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "../chunk-H6LXXGX6.js";
3
+ } from "../chunk-FKMKHLQH.js";
4
4
  import "../chunk-RDLEIAQU.js";
5
5
  import "../chunk-ORMEWXMH.js";
6
6
  export {
@@ -199,17 +199,20 @@ function Icon(_a) {
199
199
  var _b = _a, {
200
200
  name,
201
201
  size = 24,
202
- variant = "outline"
202
+ variant = "outline",
203
+ testid
203
204
  } = _b, props = __objRest(_b, [
204
205
  "name",
205
206
  "size",
206
- "variant"
207
+ "variant",
208
+ "testid"
207
209
  ]);
208
210
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
209
211
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
210
212
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
211
213
  "span",
212
214
  __spreadProps(__spreadValues({}, props), {
215
+ "data-testid": testid,
213
216
  className: (0, import_clsx2.default)(
214
217
  "icon",
215
218
  `icon-${size}`,
@@ -246,7 +249,8 @@ function DateCell(_a) {
246
249
  onMouseLeave,
247
250
  cellPadding = "",
248
251
  isRangeDisabled = false,
249
- id
252
+ id,
253
+ testid
250
254
  } = _b, props = __objRest(_b, [
251
255
  "date",
252
256
  "isInMonth",
@@ -261,12 +265,14 @@ function DateCell(_a) {
261
265
  "onMouseLeave",
262
266
  "cellPadding",
263
267
  "isRangeDisabled",
264
- "id"
268
+ "id",
269
+ "testid"
265
270
  ]);
266
271
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
267
272
  "span",
268
273
  __spreadProps(__spreadValues({}, props), {
269
274
  id,
275
+ "data-testid": testid,
270
276
  className: (0, import_clsx3.default)(
271
277
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
272
278
  typography.caption,
@@ -313,7 +319,8 @@ function CalendarRange({
313
319
  mode = "double",
314
320
  cardStyle = false,
315
321
  disableRange = false,
316
- id
322
+ id,
323
+ testid
317
324
  }) {
318
325
  const weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
319
326
  const parseDate = (d) => {
@@ -406,6 +413,7 @@ function CalendarRange({
406
413
  "div",
407
414
  {
408
415
  id,
416
+ "data-testid": testid,
409
417
  className: (0, import_clsx3.default)(
410
418
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
411
419
  layoutPaddding,
@@ -446,6 +454,7 @@ function CalendarRange({
446
454
  "button",
447
455
  {
448
456
  id: id ? `${id}-prev-month-button` : void 0,
457
+ "data-testid": testid ? `${testid}-prev-month-button` : void 0,
449
458
  type: "button",
450
459
  className: (0, import_clsx3.default)(
451
460
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
@@ -464,6 +473,7 @@ function CalendarRange({
464
473
  "button",
465
474
  {
466
475
  id: id ? `${id}-next-month-button` : void 0,
476
+ "data-testid": testid ? `${testid}-next-month-button` : void 0,
467
477
  type: "button",
468
478
  className: (0, import_clsx3.default)(
469
479
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
@@ -507,6 +517,7 @@ function CalendarRange({
507
517
  DateCell,
508
518
  {
509
519
  id: id ? `${id}-date-${date.toString()}` : void 0,
520
+ testid: testid ? `${testid}-date-${date.toString()}` : void 0,
510
521
  date,
511
522
  isInMonth: !!isInMonth,
512
523
  isToday: !!isToday,
@@ -2,8 +2,8 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
5
- } from "../chunk-PCCJ7L3N.js";
6
- import "../chunk-IGQVA7SC.js";
5
+ } from "../chunk-NMVSRA5Y.js";
6
+ import "../chunk-NKUETCDA.js";
7
7
  import "../chunk-RDLEIAQU.js";
8
8
  import "../chunk-ORMEWXMH.js";
9
9
  export {
@@ -197,17 +197,20 @@ function Icon(_a) {
197
197
  var _b = _a, {
198
198
  name,
199
199
  size = 24,
200
- variant = "outline"
200
+ variant = "outline",
201
+ testid
201
202
  } = _b, props = __objRest(_b, [
202
203
  "name",
203
204
  "size",
204
- "variant"
205
+ "variant",
206
+ "testid"
205
207
  ]);
206
208
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
207
209
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
208
210
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
209
211
  "span",
210
212
  __spreadProps(__spreadValues({}, props), {
213
+ "data-testid": testid,
211
214
  className: (0, import_clsx2.default)(
212
215
  "icon",
213
216
  `icon-${size}`,
@@ -232,7 +235,8 @@ var Caption = (_a) => {
232
235
  style = "default",
233
236
  color,
234
237
  align,
235
- id
238
+ id,
239
+ testid
236
240
  } = _b, props = __objRest(_b, [
237
241
  "className",
238
242
  "children",
@@ -240,14 +244,16 @@ var Caption = (_a) => {
240
244
  "style",
241
245
  "color",
242
246
  "align",
243
- "id"
247
+ "id",
248
+ "testid"
244
249
  ]);
245
250
  const Element = as;
246
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className: "flex gap-1", children: [
251
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, "data-testid": testid, className: "flex gap-1", children: [
247
252
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
248
253
  WhichIcon,
249
254
  {
250
255
  id,
256
+ testid,
251
257
  style,
252
258
  size: 16,
253
259
  className: "mt-[3px] desktop:mt-0"
@@ -257,6 +263,7 @@ var Caption = (_a) => {
257
263
  Element,
258
264
  __spreadProps(__spreadValues({
259
265
  id: id ? `${id}-text` : void 0,
266
+ "data-testid": testid ? `${testid}-text` : void 0,
260
267
  className: (0, import_clsx3.default)(
261
268
  typography.caption.replace("text-text-primary-normal", ""),
262
269
  (style === "default" || style === "info") && "text-text-secondary-normal",
@@ -281,13 +288,15 @@ var WhichIcon = ({
281
288
  style,
282
289
  size,
283
290
  className,
284
- id
291
+ id,
292
+ testid
285
293
  }) => {
286
294
  if (style === "success") {
287
295
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
288
296
  Icon,
289
297
  {
290
298
  id: id ? `${id}-icon` : void 0,
299
+ testid: testid ? `${testid}-icon` : void 0,
291
300
  className,
292
301
  name: "check_circle",
293
302
  size
@@ -299,6 +308,7 @@ var WhichIcon = ({
299
308
  Icon,
300
309
  {
301
310
  id: id ? `${id}-icon` : void 0,
311
+ testid: testid ? `${testid}-icon` : void 0,
302
312
  className,
303
313
  name: "warning",
304
314
  size
@@ -310,6 +320,7 @@ var WhichIcon = ({
310
320
  Icon,
311
321
  {
312
322
  id: id ? `${id}-icon` : void 0,
323
+ testid: testid ? `${testid}-icon` : void 0,
313
324
  className,
314
325
  name: "info",
315
326
  size
@@ -321,6 +332,7 @@ var WhichIcon = ({
321
332
  Icon,
322
333
  {
323
334
  id: id ? `${id}-icon` : void 0,
335
+ testid: testid ? `${testid}-icon` : void 0,
324
336
  className,
325
337
  name: "info",
326
338
  size
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Caption
3
- } from "../chunk-6HIALT5L.js";
4
- import "../chunk-IGQVA7SC.js";
3
+ } from "../chunk-E7D24OHM.js";
4
+ import "../chunk-NKUETCDA.js";
5
5
  import "../chunk-RDLEIAQU.js";
6
6
  import "../chunk-ORMEWXMH.js";
7
7
  export {
@@ -65,10 +65,11 @@ module.exports = __toCommonJS(Card_exports);
65
65
  var import_clsx = __toESM(require("clsx"), 1);
66
66
  var import_jsx_runtime = require("react/jsx-runtime");
67
67
  function Card(props) {
68
- const _a = props, { children, selected } = _a, rest = __objRest(_a, ["children", "selected"]);
68
+ const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
69
69
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
70
  "div",
71
71
  __spreadProps(__spreadValues({}, rest), {
72
+ "data-testid": testid,
72
73
  className: (0, import_clsx.default)(
73
74
  "rounded-sm p-desktop-layout-padding",
74
75
  selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Card
3
- } from "../chunk-4OS6APPF.js";
3
+ } from "../chunk-4LXG6QNT.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Card
@@ -198,17 +198,20 @@ function Icon(_a) {
198
198
  var _b = _a, {
199
199
  name,
200
200
  size = 24,
201
- variant = "outline"
201
+ variant = "outline",
202
+ testid
202
203
  } = _b, props = __objRest(_b, [
203
204
  "name",
204
205
  "size",
205
- "variant"
206
+ "variant",
207
+ "testid"
206
208
  ]);
207
209
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
208
210
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
209
211
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
210
212
  "span",
211
213
  __spreadProps(__spreadValues({}, props), {
214
+ "data-testid": testid,
212
215
  className: (0, import_clsx2.default)(
213
216
  "icon",
214
217
  `icon-${size}`,
@@ -236,7 +239,8 @@ var Paragraph = (_a) => {
236
239
  addOverflow,
237
240
  children,
238
241
  as = "p",
239
- id
242
+ id,
243
+ testid
240
244
  } = _b, props = __objRest(_b, [
241
245
  "className",
242
246
  "color",
@@ -246,13 +250,15 @@ var Paragraph = (_a) => {
246
250
  "addOverflow",
247
251
  "children",
248
252
  "as",
249
- "id"
253
+ "id",
254
+ "testid"
250
255
  ]);
251
256
  const Element = as;
252
257
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
253
258
  Element,
254
259
  __spreadProps(__spreadValues({
255
- id
260
+ id,
261
+ "data-testid": testid
256
262
  }, props), {
257
263
  className: (0, import_clsx3.default)(
258
264
  typography.paragraph,
@@ -285,7 +291,8 @@ var Checkbox = (_a) => {
285
291
  onChange,
286
292
  indeterminate,
287
293
  paragraphClassName,
288
- id
294
+ id,
295
+ testid
289
296
  } = _b, props = __objRest(_b, [
290
297
  "label",
291
298
  "error",
@@ -295,7 +302,8 @@ var Checkbox = (_a) => {
295
302
  "onChange",
296
303
  "indeterminate",
297
304
  "paragraphClassName",
298
- "id"
305
+ "id",
306
+ "testid"
299
307
  ]);
300
308
  const selected = indeterminate || checked;
301
309
  const normalClassName = (0, import_clsx4.default)(
@@ -324,6 +332,7 @@ var Checkbox = (_a) => {
324
332
  "label",
325
333
  {
326
334
  id,
335
+ "data-testid": testid,
327
336
  htmlFor: id ? `${id}-input` : void 0,
328
337
  className: (0, import_clsx4.default)(
329
338
  "flex items-center",
@@ -337,6 +346,7 @@ var Checkbox = (_a) => {
337
346
  "input",
338
347
  __spreadValues({
339
348
  id: id ? `${id}-input` : void 0,
349
+ "data-testid": testid ? `${testid}-input` : void 0,
340
350
  type: "checkbox",
341
351
  className: "sr-only peer",
342
352
  disabled,
@@ -368,6 +378,7 @@ var Checkbox = (_a) => {
368
378
  Paragraph,
369
379
  {
370
380
  id: id ? `${id}-label` : void 0,
381
+ testid: testid ? `${testid}-label` : void 0,
371
382
  as: "span",
372
383
  padded: true,
373
384
  className: (0, import_clsx4.default)(
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  Checkbox
4
- } from "../chunk-WT5XXW6G.js";
5
- import "../chunk-VG4EPHJA.js";
6
- import "../chunk-IGQVA7SC.js";
4
+ } from "../chunk-WFQEE2OO.js";
5
+ import "../chunk-HVI3CL7Y.js";
6
+ import "../chunk-NKUETCDA.js";
7
7
  import "../chunk-RDLEIAQU.js";
8
8
  import "../chunk-ORMEWXMH.js";
9
9
  export {
@@ -211,7 +211,8 @@ var Button = (_a) => {
211
211
  iconOnly = false,
212
212
  colorClassName,
213
213
  href,
214
- id
214
+ id,
215
+ testid
215
216
  } = _b, props = __objRest(_b, [
216
217
  "variant",
217
218
  "as",
@@ -225,7 +226,8 @@ var Button = (_a) => {
225
226
  "iconOnly",
226
227
  "colorClassName",
227
228
  "href",
228
- "id"
229
+ "id",
230
+ "testid"
229
231
  ]);
230
232
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
231
233
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -313,6 +315,7 @@ var Button = (_a) => {
313
315
  Element,
314
316
  __spreadProps(__spreadValues({
315
317
  id,
318
+ "data-testid": testid,
316
319
  type: Element === "button" ? "button" : void 0,
317
320
  className: buttonClasses
318
321
  }, props), {
@@ -322,7 +325,7 @@ var Button = (_a) => {
322
325
  "data-theme": variant === "navigation" ? "brand" : void 0,
323
326
  children: [
324
327
  leftIcon && leftIcon,
325
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
328
+ !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 }),
326
329
  rightIcon && rightIcon
327
330
  ]
328
331
  })
@@ -341,7 +344,8 @@ var ContentTab = (_a) => {
341
344
  onClick,
342
345
  ref,
343
346
  fullWidth,
344
- id
347
+ id,
348
+ testid
345
349
  } = _b, props = __objRest(_b, [
346
350
  "label",
347
351
  "selected",
@@ -350,9 +354,9 @@ var ContentTab = (_a) => {
350
354
  "onClick",
351
355
  "ref",
352
356
  "fullWidth",
353
- "id"
357
+ "id",
358
+ "testid"
354
359
  ]);
355
- const [active, setActive] = (0, import_react.useState)(false);
356
360
  const handleClick = (0, import_react.useCallback)(
357
361
  (e) => {
358
362
  if (!disabled) {
@@ -362,15 +366,14 @@ var ContentTab = (_a) => {
362
366
  [onClick, disabled]
363
367
  );
364
368
  const computedClassName = (0, import_clsx3.default)(
365
- "absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out hover:bg-border-action-hover z-10",
366
- "rounded-px",
369
+ "absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out z-10",
370
+ "rounded-px ",
367
371
  "h-0.5",
368
- active && "bg-text-action-primary-active",
369
- !active && !disabled && "bg-text-action-primary-normal",
370
- !active && disabled && "bg-text-action-primary-disabled",
372
+ !disabled && "bg-text-action-primary-normal peer-hover:bg-border-action-hover peer-active:bg-border-action-active",
373
+ disabled && "bg-text-action-primary-disabled",
371
374
  className
372
375
  );
373
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className: (0, import_clsx3.default)(
376
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, "data-testid": testid, className: (0, import_clsx3.default)(
374
377
  "relative",
375
378
  fullWidth && "flex-1"
376
379
  ), children: [
@@ -378,16 +381,18 @@ var ContentTab = (_a) => {
378
381
  Button,
379
382
  __spreadProps(__spreadValues({
380
383
  id: id ? `${id}-button` : void 0,
384
+ testid: testid ? `${testid}-button` : void 0,
381
385
  block: fullWidth,
382
386
  ref,
383
387
  variant: "tertiary",
384
388
  disabled,
385
- onMouseDown: () => setActive(true),
386
- onMouseLeave: () => setActive(false),
387
- onMouseUp: () => setActive(false),
388
389
  onClick: handleClick,
389
390
  role: "tab",
390
- "aria-selected": selected
391
+ "aria-selected": selected,
392
+ className: (0, import_clsx3.default)(
393
+ "peer",
394
+ !selected && "!text-text-secondary-normal hover:!text-text-action-primary-hover active:!text-text-action-primary-active"
395
+ )
391
396
  }, props), {
392
397
  children: label
393
398
  })
@@ -396,6 +401,7 @@ var ContentTab = (_a) => {
396
401
  "div",
397
402
  {
398
403
  id: id ? `${id}-indicator` : void 0,
404
+ "data-testid": testid ? `${testid}-indicator` : void 0,
399
405
  className: computedClassName,
400
406
  children: " "
401
407
  }
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  ContentTab
4
- } from "../chunk-X62XGQY7.js";
5
- import "../chunk-H6LXXGX6.js";
4
+ } from "../chunk-NW2C4DL4.js";
5
+ import "../chunk-FKMKHLQH.js";
6
6
  import "../chunk-RDLEIAQU.js";
7
7
  import "../chunk-ORMEWXMH.js";
8
8
  export {
@@ -215,7 +215,8 @@ var Button = (_a) => {
215
215
  iconOnly = false,
216
216
  colorClassName,
217
217
  href,
218
- id
218
+ id,
219
+ testid
219
220
  } = _b, props = __objRest(_b, [
220
221
  "variant",
221
222
  "as",
@@ -229,7 +230,8 @@ var Button = (_a) => {
229
230
  "iconOnly",
230
231
  "colorClassName",
231
232
  "href",
232
- "id"
233
+ "id",
234
+ "testid"
233
235
  ]);
234
236
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
235
237
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -317,6 +319,7 @@ var Button = (_a) => {
317
319
  Element,
318
320
  __spreadProps(__spreadValues({
319
321
  id,
322
+ "data-testid": testid,
320
323
  type: Element === "button" ? "button" : void 0,
321
324
  className: buttonClasses
322
325
  }, props), {
@@ -326,7 +329,7 @@ var Button = (_a) => {
326
329
  "data-theme": variant === "navigation" ? "brand" : void 0,
327
330
  children: [
328
331
  leftIcon && leftIcon,
329
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
332
+ !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 }),
330
333
  rightIcon && rightIcon
331
334
  ]
332
335
  })
@@ -345,7 +348,8 @@ var ContentTab = (_a) => {
345
348
  onClick,
346
349
  ref,
347
350
  fullWidth,
348
- id
351
+ id,
352
+ testid
349
353
  } = _b, props = __objRest(_b, [
350
354
  "label",
351
355
  "selected",
@@ -354,9 +358,9 @@ var ContentTab = (_a) => {
354
358
  "onClick",
355
359
  "ref",
356
360
  "fullWidth",
357
- "id"
361
+ "id",
362
+ "testid"
358
363
  ]);
359
- const [active, setActive] = (0, import_react.useState)(false);
360
364
  const handleClick = (0, import_react.useCallback)(
361
365
  (e) => {
362
366
  if (!disabled) {
@@ -366,15 +370,14 @@ var ContentTab = (_a) => {
366
370
  [onClick, disabled]
367
371
  );
368
372
  const computedClassName = (0, import_clsx3.default)(
369
- "absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out hover:bg-border-action-hover z-10",
370
- "rounded-px",
373
+ "absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out z-10",
374
+ "rounded-px ",
371
375
  "h-0.5",
372
- active && "bg-text-action-primary-active",
373
- !active && !disabled && "bg-text-action-primary-normal",
374
- !active && disabled && "bg-text-action-primary-disabled",
376
+ !disabled && "bg-text-action-primary-normal peer-hover:bg-border-action-hover peer-active:bg-border-action-active",
377
+ disabled && "bg-text-action-primary-disabled",
375
378
  className
376
379
  );
377
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className: (0, import_clsx3.default)(
380
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, "data-testid": testid, className: (0, import_clsx3.default)(
378
381
  "relative",
379
382
  fullWidth && "flex-1"
380
383
  ), children: [
@@ -382,16 +385,18 @@ var ContentTab = (_a) => {
382
385
  Button,
383
386
  __spreadProps(__spreadValues({
384
387
  id: id ? `${id}-button` : void 0,
388
+ testid: testid ? `${testid}-button` : void 0,
385
389
  block: fullWidth,
386
390
  ref,
387
391
  variant: "tertiary",
388
392
  disabled,
389
- onMouseDown: () => setActive(true),
390
- onMouseLeave: () => setActive(false),
391
- onMouseUp: () => setActive(false),
392
393
  onClick: handleClick,
393
394
  role: "tab",
394
- "aria-selected": selected
395
+ "aria-selected": selected,
396
+ className: (0, import_clsx3.default)(
397
+ "peer",
398
+ !selected && "!text-text-secondary-normal hover:!text-text-action-primary-hover active:!text-text-action-primary-active"
399
+ )
395
400
  }, props), {
396
401
  children: label
397
402
  })
@@ -400,6 +405,7 @@ var ContentTab = (_a) => {
400
405
  "div",
401
406
  {
402
407
  id: id ? `${id}-indicator` : void 0,
408
+ "data-testid": testid ? `${testid}-indicator` : void 0,
403
409
  className: computedClassName,
404
410
  children: " "
405
411
  }
@@ -411,7 +417,7 @@ ContentTab.displayName = "ContentTab";
411
417
  // src/components/ContentTabs.tsx
412
418
  var import_jsx_runtime3 = require("react/jsx-runtime");
413
419
  var afterClasses = "after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-border-primary-normal z-0";
414
- var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id, selectedTab }) => {
420
+ var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id, testid, selectedTab }) => {
415
421
  var _a, _b;
416
422
  const [selectedTabId, setSelectedTabId] = (0, import_react2.useState)(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
417
423
  const [focusedTabIndex, setFocusedTabIndex] = (0, import_react2.useState)(0);
@@ -448,11 +454,12 @@ var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id, selectedTab }) => {
448
454
  setFocusedTabIndex(newIndex);
449
455
  };
450
456
  const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTabId)) == null ? void 0 : _b.content;
451
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id, children: [
457
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id, "data-testid": testid, children: [
452
458
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "overflow-x-auto pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
453
459
  "div",
454
460
  {
455
461
  id: id ? `${id}-tablist` : void 0,
462
+ "data-testid": testid ? `${testid}-tablist` : void 0,
456
463
  role: "tablist",
457
464
  "aria-orientation": "horizontal",
458
465
  className: (0, import_clsx4.default)("flex relative", afterClasses),
@@ -464,6 +471,7 @@ var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id, selectedTab }) => {
464
471
  {
465
472
  fullWidth: fullWidthTabs,
466
473
  id: id ? `${id}-tab-${tab.id}` : void 0,
474
+ testid: testid ? `${testid}-tab-${tab.id}` : void 0,
467
475
  label: tab.label,
468
476
  selected: isSelected,
469
477
  onClick: () => handleTabClick(tab.id, index),
@@ -490,6 +498,7 @@ var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id, selectedTab }) => {
490
498
  "div",
491
499
  {
492
500
  id: (id ? `${id}-` : "") + `panel-${selectedTabId}`,
501
+ "data-testid": (testid ? `${testid}-` : "") + `panel-${selectedTabId}`,
493
502
  className: "mt-2",
494
503
  role: "tabpanel",
495
504
  "aria-labelledby": `tab-${selectedTabId}`,