@dmsi/wedgekit-react 0.0.26 → 0.0.27

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 (217) hide show
  1. package/dist/{chunk-KDEPZ6I7.js → chunk-2S2Z3L56.js} +5 -1
  2. package/dist/{chunk-TU55CHXU.js → chunk-4JLU7TAC.js} +3 -1
  3. package/dist/{chunk-Z2LOGSGE.js → chunk-4N2PED4P.js} +15 -3
  4. package/dist/{chunk-U42SKNR6.js → chunk-57WRM337.js} +68 -30
  5. package/dist/{chunk-ZFGGZXB6.js → chunk-AY7ELVQY.js} +5 -2
  6. package/dist/{chunk-I2UVVKQI.js → chunk-CHTO7PW4.js} +3 -2
  7. package/dist/{chunk-WIDBAFBU.js → chunk-FWPJ73IK.js} +3 -1
  8. package/dist/{chunk-5TLFMKSR.js → chunk-INYI65WW.js} +15 -5
  9. package/dist/{chunk-TJ44JJCB.js → chunk-J6LETUNM.js} +5 -2
  10. package/dist/{chunk-T6HZARR7.js → chunk-MZJS2ZAU.js} +6 -3
  11. package/dist/{chunk-ZCBSLV7U.js → chunk-O4M2GISS.js} +5 -2
  12. package/dist/{chunk-OUTEIXV4.js → chunk-OUSNH76S.js} +11 -3
  13. package/dist/{chunk-YDREJNAS.js → chunk-PDDZ5PMY.js} +18 -4
  14. package/dist/{chunk-4RD5ZF2V.js → chunk-QBIEU25R.js} +10 -4
  15. package/dist/chunk-QUPHLL7D.js +61 -0
  16. package/dist/{chunk-OISE6NMA.js → chunk-QV2EFOYF.js} +17 -6
  17. package/dist/{chunk-YZQNTOIF.js → chunk-QZGUMB7T.js} +10 -5
  18. package/dist/{chunk-S7R37IUP.js → chunk-S5K22XTH.js} +5 -2
  19. package/dist/{chunk-GCPJH5R6.js → chunk-S5KPS4IQ.js} +22 -7
  20. package/dist/{chunk-VELXLFMJ.js → chunk-SAMX4YGM.js} +4 -1
  21. package/dist/{chunk-TWP6YSFO.js → chunk-SKHSGGO3.js} +14 -6
  22. package/dist/chunk-TVDFTRGL.js +57 -0
  23. package/dist/{chunk-N32PXOA5.js → chunk-UT7XCBZF.js} +9 -4
  24. package/dist/{chunk-L4UM372R.js → chunk-VC3R5EUH.js} +3 -0
  25. package/dist/{chunk-UIQ733QP.js → chunk-VG4EPHJA.js} +7 -3
  26. package/dist/components/Breadcrumbs.cjs +29 -9
  27. package/dist/components/Breadcrumbs.js +29 -9
  28. package/dist/components/Button.cjs +6 -3
  29. package/dist/components/Button.js +1 -1
  30. package/dist/components/CalendarRange.cjs +11 -3
  31. package/dist/components/CalendarRange.js +1 -1
  32. package/dist/components/Caption.cjs +53 -9
  33. package/dist/components/Caption.js +53 -9
  34. package/dist/components/Checkbox.cjs +15 -6
  35. package/dist/components/Checkbox.js +2 -2
  36. package/dist/components/ContentTab.cjs +20 -7
  37. package/dist/components/ContentTab.js +2 -2
  38. package/dist/components/ContentTabs.cjs +32 -18
  39. package/dist/components/ContentTabs.js +14 -13
  40. package/dist/components/DMSiLogo.cjs +22 -4
  41. package/dist/components/DMSiLogo.js +9 -5
  42. package/dist/components/DataGrid.cjs +374 -243
  43. package/dist/components/DataGrid.js +283 -226
  44. package/dist/components/DataGridCell.cjs +79 -21
  45. package/dist/components/DataGridCell.js +7 -7
  46. package/dist/components/DataTable.cjs +197 -139
  47. package/dist/components/DataTable.js +197 -139
  48. package/dist/components/DateInput.cjs +36 -10
  49. package/dist/components/DateInput.js +7 -3
  50. package/dist/components/DateRangeInput.cjs +36 -10
  51. package/dist/components/DateRangeInput.js +7 -3
  52. package/dist/components/DebugJson.cjs +21 -13
  53. package/dist/components/DebugJson.js +21 -13
  54. package/dist/components/Display.cjs +5 -2
  55. package/dist/components/Display.js +1 -1
  56. package/dist/components/EditingContext.cjs +4 -1
  57. package/dist/components/EditingContext.js +4 -1
  58. package/dist/components/FilterGroup.cjs +102 -32
  59. package/dist/components/FilterGroup.js +41 -17
  60. package/dist/components/FullViewportBox.cjs +10 -2
  61. package/dist/components/FullViewportBox.js +10 -2
  62. package/dist/components/Grid.cjs +3 -1
  63. package/dist/components/Grid.js +3 -1
  64. package/dist/components/Heading.cjs +5 -2
  65. package/dist/components/Heading.js +1 -1
  66. package/dist/components/HorizontalDivider.cjs +2 -2
  67. package/dist/components/HorizontalDivider.js +2 -2
  68. package/dist/components/Input.cjs +21 -7
  69. package/dist/components/Input.js +2 -2
  70. package/dist/components/InputGroup.cjs +13 -6
  71. package/dist/components/InputGroup.js +9 -5
  72. package/dist/components/Label.cjs +5 -2
  73. package/dist/components/Label.js +1 -1
  74. package/dist/components/List.cjs +3 -2
  75. package/dist/components/List.js +3 -2
  76. package/dist/components/LogoAgilityTopBar.cjs +22 -4
  77. package/dist/components/LogoAgilityTopBar.js +9 -5
  78. package/dist/components/LogoDMSiTopBar.cjs +22 -4
  79. package/dist/components/LogoDMSiTopBar.js +1 -1
  80. package/dist/components/LogoMillworkTopBar.cjs +22 -4
  81. package/dist/components/LogoMillworkTopBar.js +9 -5
  82. package/dist/components/MainBar.cjs +2 -0
  83. package/dist/components/MainBar.js +2 -0
  84. package/dist/components/Menu.cjs +3 -0
  85. package/dist/components/Menu.js +1 -1
  86. package/dist/components/MenuOption.cjs +28 -7
  87. package/dist/components/MenuOption.js +3 -3
  88. package/dist/components/MobileDataGrid.cjs +101 -46
  89. package/dist/components/MobileDataGrid.js +23 -11
  90. package/dist/components/Modal.cjs +96 -51
  91. package/dist/components/Modal.js +19 -7
  92. package/dist/components/ModalButtons.cjs +43 -26
  93. package/dist/components/ModalButtons.js +2 -2
  94. package/dist/components/ModalContent.cjs +3 -1
  95. package/dist/components/ModalContent.js +1 -1
  96. package/dist/components/ModalHeader.cjs +40 -25
  97. package/dist/components/ModalHeader.js +3 -3
  98. package/dist/components/ModalScrim.cjs +3 -1
  99. package/dist/components/ModalScrim.js +1 -1
  100. package/dist/components/NavigationTab.cjs +9 -3
  101. package/dist/components/NavigationTab.js +2 -2
  102. package/dist/components/NavigationTabs.cjs +15 -7
  103. package/dist/components/NavigationTabs.js +8 -6
  104. package/dist/components/NestedMenu.cjs +28 -7
  105. package/dist/components/NestedMenu.js +3 -3
  106. package/dist/components/Notification.cjs +84 -38
  107. package/dist/components/Notification.js +8 -4
  108. package/dist/components/OptionPill.cjs +24 -6
  109. package/dist/components/OptionPill.js +3 -3
  110. package/dist/components/Paragraph.cjs +7 -3
  111. package/dist/components/Paragraph.js +1 -1
  112. package/dist/components/Password.cjs +33 -11
  113. package/dist/components/Password.js +14 -6
  114. package/dist/components/ProjectBar.cjs +3 -1
  115. package/dist/components/ProjectBar.js +3 -1
  116. package/dist/components/Radio.cjs +13 -7
  117. package/dist/components/Radio.js +7 -5
  118. package/dist/components/Search.cjs +34 -12
  119. package/dist/components/Search.js +3 -3
  120. package/dist/components/Select.cjs +25 -7
  121. package/dist/components/Select.js +3 -3
  122. package/dist/components/SideMenu.cjs +6 -1
  123. package/dist/components/SideMenu.js +6 -1
  124. package/dist/components/SideMenuGroup.cjs +96 -49
  125. package/dist/components/SideMenuGroup.js +31 -19
  126. package/dist/components/SideMenuItem.cjs +99 -43
  127. package/dist/components/SideMenuItem.js +32 -12
  128. package/dist/components/Stack.cjs +91 -30
  129. package/dist/components/Stack.js +1 -1
  130. package/dist/components/StatusPill.cjs +13 -6
  131. package/dist/components/StatusPill.js +9 -5
  132. package/dist/components/Stepper.cjs +35 -17
  133. package/dist/components/Stepper.js +11 -10
  134. package/dist/components/Subheader.cjs +5 -2
  135. package/dist/components/Subheader.js +1 -1
  136. package/dist/components/Surface.cjs +5 -2
  137. package/dist/components/Surface.js +5 -2
  138. package/dist/components/Swatch.cjs +1544 -1308
  139. package/dist/components/Swatch.js +1469 -1275
  140. package/dist/components/Textarea.cjs +5 -2
  141. package/dist/components/Textarea.js +5 -2
  142. package/dist/components/Theme.cjs +3 -2
  143. package/dist/components/Theme.js +1 -1
  144. package/dist/components/Time.cjs +98 -40
  145. package/dist/components/Time.js +18 -6
  146. package/dist/components/Toast.cjs +38 -15
  147. package/dist/components/Toast.js +23 -10
  148. package/dist/components/Tooltip.cjs +5 -4
  149. package/dist/components/Tooltip.js +1 -1
  150. package/dist/components/TopBar.cjs +16 -8
  151. package/dist/components/TopBar.js +12 -5
  152. package/package.json +1 -1
  153. package/src/components/Breadcrumbs.tsx +24 -15
  154. package/src/components/Button.tsx +7 -3
  155. package/src/components/CalendarRange.tsx +9 -0
  156. package/src/components/Caption.tsx +36 -6
  157. package/src/components/Checkbox.tsx +7 -2
  158. package/src/components/ContentTab.tsx +13 -3
  159. package/src/components/ContentTabs.tsx +11 -8
  160. package/src/components/DMSiLogo.tsx +2 -1
  161. package/src/components/DataGrid.tsx +85 -23
  162. package/src/components/DataGridCell.tsx +15 -2
  163. package/src/components/DataTable.tsx +64 -14
  164. package/src/components/DateInput.tsx +5 -1
  165. package/src/components/DateRangeInput.tsx +5 -1
  166. package/src/components/DebugJson.tsx +7 -3
  167. package/src/components/Display.tsx +3 -0
  168. package/src/components/EditingContext.tsx +8 -6
  169. package/src/components/FilterGroup.tsx +23 -3
  170. package/src/components/FullViewportBox.tsx +6 -1
  171. package/src/components/Grid.tsx +3 -0
  172. package/src/components/Heading.tsx +3 -0
  173. package/src/components/HorizontalDivider.tsx +4 -2
  174. package/src/components/Input.tsx +19 -10
  175. package/src/components/InputGroup.tsx +8 -4
  176. package/src/components/Label.tsx +3 -0
  177. package/src/components/Link.tsx +1 -0
  178. package/src/components/List.tsx +7 -1
  179. package/src/components/LogoAgilityTopBar.tsx +2 -1
  180. package/src/components/LogoDMSiTopBar.tsx +2 -1
  181. package/src/components/LogoMillworkTopBar.tsx +2 -1
  182. package/src/components/MainBar.tsx +3 -0
  183. package/src/components/Menu.tsx +3 -0
  184. package/src/components/MenuOption.tsx +72 -58
  185. package/src/components/MobileDataGrid.tsx +15 -4
  186. package/src/components/Modal.tsx +10 -1
  187. package/src/components/ModalButtons.tsx +12 -1
  188. package/src/components/ModalContent.tsx +3 -0
  189. package/src/components/ModalHeader.tsx +16 -6
  190. package/src/components/ModalScrim.tsx +3 -0
  191. package/src/components/NavigationTab.tsx +6 -3
  192. package/src/components/NavigationTabs.tsx +5 -2
  193. package/src/components/Notification.tsx +4 -0
  194. package/src/components/OptionPill.tsx +9 -1
  195. package/src/components/Paragraph.tsx +3 -0
  196. package/src/components/Password.tsx +9 -3
  197. package/src/components/ProjectBar.tsx +3 -0
  198. package/src/components/Radio.tsx +3 -2
  199. package/src/components/Search.tsx +56 -41
  200. package/src/components/Select.tsx +6 -1
  201. package/src/components/SideMenu.tsx +7 -1
  202. package/src/components/SideMenuGroup.tsx +13 -2
  203. package/src/components/SideMenuItem.tsx +15 -2
  204. package/src/components/Stack.tsx +8 -3
  205. package/src/components/StatusPill.tsx +4 -2
  206. package/src/components/Stepper.tsx +5 -5
  207. package/src/components/Subheader.tsx +3 -0
  208. package/src/components/Surface.tsx +3 -0
  209. package/src/components/Swatch.tsx +415 -140
  210. package/src/components/Textarea.tsx +6 -3
  211. package/src/components/Theme.tsx +3 -1
  212. package/src/components/Time.tsx +21 -5
  213. package/src/components/Toast.tsx +29 -14
  214. package/src/components/Tooltip.tsx +46 -32
  215. package/src/components/TopBar.tsx +7 -3
  216. package/dist/chunk-DBYSGYST.js +0 -47
  217. package/dist/chunk-UK3WG7HQ.js +0 -48
@@ -208,7 +208,8 @@ var Button = (_a) => {
208
208
  children,
209
209
  iconOnly = false,
210
210
  colorClassName,
211
- href
211
+ href,
212
+ id
212
213
  } = _b, props = __objRest(_b, [
213
214
  "variant",
214
215
  "as",
@@ -221,7 +222,8 @@ var Button = (_a) => {
221
222
  "children",
222
223
  "iconOnly",
223
224
  "colorClassName",
224
- "href"
225
+ "href",
226
+ "id"
225
227
  ]);
226
228
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
227
229
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -311,6 +313,7 @@ var Button = (_a) => {
311
313
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
312
314
  Element,
313
315
  __spreadProps(__spreadValues({
316
+ id,
314
317
  type: Element === "button" ? "button" : void 0,
315
318
  className: buttonClasses
316
319
  }, props), {
@@ -318,7 +321,7 @@ var Button = (_a) => {
318
321
  href,
319
322
  children: [
320
323
  leftIcon && leftIcon,
321
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
324
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
322
325
  rightIcon && rightIcon
323
326
  ]
324
327
  })
@@ -362,6 +365,7 @@ function Icon(_a) {
362
365
  var import_jsx_runtime3 = require("react/jsx-runtime");
363
366
  var NavigationTab = (_a) => {
364
367
  var _b = _a, {
368
+ id,
365
369
  label,
366
370
  onClick,
367
371
  selected = false,
@@ -369,6 +373,7 @@ var NavigationTab = (_a) => {
369
373
  disabled = false,
370
374
  href
371
375
  } = _b, props = __objRest(_b, [
376
+ "id",
372
377
  "label",
373
378
  "onClick",
374
379
  "selected",
@@ -411,6 +416,7 @@ var NavigationTab = (_a) => {
411
416
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
412
417
  Button,
413
418
  __spreadProps(__spreadValues({
419
+ id,
414
420
  variant: "tertiary-critical",
415
421
  colorClassName: textClassName,
416
422
  className: (0, import_clsx4.default)(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NavigationTab
3
- } from "../chunk-VELXLFMJ.js";
4
- import "../chunk-T6HZARR7.js";
3
+ } from "../chunk-SAMX4YGM.js";
4
+ import "../chunk-MZJS2ZAU.js";
5
5
  import "../chunk-IGQVA7SC.js";
6
6
  import "../chunk-RDLEIAQU.js";
7
7
  import "../chunk-ORMEWXMH.js";
@@ -213,7 +213,8 @@ var Button = (_a) => {
213
213
  children,
214
214
  iconOnly = false,
215
215
  colorClassName,
216
- href
216
+ href,
217
+ id
217
218
  } = _b, props = __objRest(_b, [
218
219
  "variant",
219
220
  "as",
@@ -226,7 +227,8 @@ var Button = (_a) => {
226
227
  "children",
227
228
  "iconOnly",
228
229
  "colorClassName",
229
- "href"
230
+ "href",
231
+ "id"
230
232
  ]);
231
233
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
232
234
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -316,6 +318,7 @@ var Button = (_a) => {
316
318
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
317
319
  Element,
318
320
  __spreadProps(__spreadValues({
321
+ id,
319
322
  type: Element === "button" ? "button" : void 0,
320
323
  className: buttonClasses
321
324
  }, props), {
@@ -323,7 +326,7 @@ var Button = (_a) => {
323
326
  href,
324
327
  children: [
325
328
  leftIcon && leftIcon,
326
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
329
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
327
330
  rightIcon && rightIcon
328
331
  ]
329
332
  })
@@ -367,6 +370,7 @@ function Icon(_a) {
367
370
  var import_jsx_runtime3 = require("react/jsx-runtime");
368
371
  var NavigationTab = (_a) => {
369
372
  var _b = _a, {
373
+ id,
370
374
  label,
371
375
  onClick,
372
376
  selected = false,
@@ -374,6 +378,7 @@ var NavigationTab = (_a) => {
374
378
  disabled = false,
375
379
  href
376
380
  } = _b, props = __objRest(_b, [
381
+ "id",
377
382
  "label",
378
383
  "onClick",
379
384
  "selected",
@@ -416,6 +421,7 @@ var NavigationTab = (_a) => {
416
421
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
417
422
  Button,
418
423
  __spreadProps(__spreadValues({
424
+ id,
419
425
  variant: "tertiary-critical",
420
426
  colorClassName: textClassName,
421
427
  className: (0, import_clsx4.default)(
@@ -443,19 +449,20 @@ NavigationTab.displayName = "NavigationTab";
443
449
  // src/components/NavigationTabs.tsx
444
450
  var import_jsx_runtime4 = require("react/jsx-runtime");
445
451
  var NavigationTabs = ({
452
+ id,
446
453
  tabs,
447
454
  onTabChange,
448
455
  colorPrimitives = "dmsi"
449
456
  }) => {
450
457
  var _a, _b, _c;
451
458
  const [selectedTab, setSelectedTab] = (0, import_react.useState)((_a = tabs[0]) == null ? void 0 : _a.id);
452
- const handleTabClick = (id) => {
453
- setSelectedTab(id);
454
- onTabChange == null ? void 0 : onTabChange(id);
459
+ const handleTabClick = (id2) => {
460
+ setSelectedTab(id2);
461
+ onTabChange == null ? void 0 : onTabChange(id2);
455
462
  };
456
463
  const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
457
464
  const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
458
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
465
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, children: [
459
466
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
460
467
  "div",
461
468
  {
@@ -466,6 +473,7 @@ var NavigationTabs = ({
466
473
  children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
467
474
  NavigationTab,
468
475
  {
476
+ id: id ? `${id}-tab-${tab.id}` : void 0,
469
477
  label: tab.label,
470
478
  selected: selectedTab === tab.id,
471
479
  onClick: () => handleTabClick(tab.id),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  NavigationTab
4
- } from "../chunk-VELXLFMJ.js";
5
- import "../chunk-T6HZARR7.js";
4
+ } from "../chunk-SAMX4YGM.js";
5
+ import "../chunk-MZJS2ZAU.js";
6
6
  import "../chunk-IGQVA7SC.js";
7
7
  import {
8
8
  componentGap
@@ -14,19 +14,20 @@ import clsx from "clsx";
14
14
  import { useState } from "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  var NavigationTabs = ({
17
+ id,
17
18
  tabs,
18
19
  onTabChange,
19
20
  colorPrimitives = "dmsi"
20
21
  }) => {
21
22
  var _a, _b, _c;
22
23
  const [selectedTab, setSelectedTab] = useState((_a = tabs[0]) == null ? void 0 : _a.id);
23
- const handleTabClick = (id) => {
24
- setSelectedTab(id);
25
- onTabChange == null ? void 0 : onTabChange(id);
24
+ const handleTabClick = (id2) => {
25
+ setSelectedTab(id2);
26
+ onTabChange == null ? void 0 : onTabChange(id2);
26
27
  };
27
28
  const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
28
29
  const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
29
- return /* @__PURE__ */ jsxs("div", { children: [
30
+ return /* @__PURE__ */ jsxs("div", { id, children: [
30
31
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
31
32
  "div",
32
33
  {
@@ -37,6 +38,7 @@ var NavigationTabs = ({
37
38
  children: tabs.map((tab) => /* @__PURE__ */ jsx(
38
39
  NavigationTab,
39
40
  {
41
+ id: id ? `${id}-tab-${tab.id}` : void 0,
40
42
  label: tab.label,
41
43
  selected: selectedTab === tab.id,
42
44
  onClick: () => handleTabClick(tab.id),
@@ -236,18 +236,21 @@ var Label = (_a) => {
236
236
  padded,
237
237
  className,
238
238
  color,
239
- align
239
+ align,
240
+ id
240
241
  } = _b, props = __objRest(_b, [
241
242
  "as",
242
243
  "padded",
243
244
  "className",
244
245
  "color",
245
- "align"
246
+ "align",
247
+ "id"
246
248
  ]);
247
249
  const Element = as;
248
250
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
249
251
  Element,
250
252
  __spreadProps(__spreadValues({
253
+ id,
251
254
  className: (0, import_clsx3.default)(
252
255
  typography.label,
253
256
  align === "left" && "text-left",
@@ -277,7 +280,8 @@ var Paragraph = (_a) => {
277
280
  tall,
278
281
  addOverflow,
279
282
  children,
280
- as = "p"
283
+ as = "p",
284
+ id
281
285
  } = _b, props = __objRest(_b, [
282
286
  "className",
283
287
  "color",
@@ -286,12 +290,15 @@ var Paragraph = (_a) => {
286
290
  "tall",
287
291
  "addOverflow",
288
292
  "children",
289
- "as"
293
+ "as",
294
+ "id"
290
295
  ]);
291
296
  const Element = as;
292
297
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
293
298
  Element,
294
- __spreadProps(__spreadValues({}, props), {
299
+ __spreadProps(__spreadValues({
300
+ id
301
+ }, props), {
295
302
  className: (0, import_clsx4.default)(
296
303
  typography.paragraph,
297
304
  className,
@@ -338,6 +345,7 @@ var useMatchesMobile = () => {
338
345
  // src/components/MenuOption.tsx
339
346
  var import_jsx_runtime4 = require("react/jsx-runtime");
340
347
  var MenuOption = ({
348
+ id,
341
349
  children,
342
350
  disabled = false,
343
351
  variant = "normal",
@@ -409,6 +417,7 @@ var MenuOption = ({
409
417
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
410
418
  "div",
411
419
  __spreadProps(__spreadValues({
420
+ id,
412
421
  ref: actualRef,
413
422
  className: (0, import_clsx5.default)(
414
423
  "flex items-center cursor-pointer w-full text-left relative outline-none",
@@ -449,7 +458,15 @@ var MenuOption = ({
449
458
  onMouseLeave: handleMouseLeave,
450
459
  "data-submenu-parent": menuId.current,
451
460
  "data-menu-level": subMenuLevel + 1,
452
- children: subMenu({ menuId: menuId.current, positionTo: actualRef, mobilePositionTo, position: "right", subMenuLevel, mobileBackMenuOption, mobileHide: isMobile && activeMenu !== menuId.current })
461
+ children: subMenu({
462
+ menuId: menuId.current,
463
+ positionTo: actualRef,
464
+ mobilePositionTo,
465
+ position: "right",
466
+ subMenuLevel,
467
+ mobileBackMenuOption,
468
+ mobileHide: isMobile && activeMenu !== menuId.current
469
+ })
453
470
  }
454
471
  )
455
472
  ] });
@@ -468,6 +485,7 @@ var MenuOption = ({
468
485
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
469
486
  MenuOption,
470
487
  {
488
+ id: id ? `${id}-back` : void 0,
471
489
  onClick: () => {
472
490
  closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
473
491
  },
@@ -483,7 +501,10 @@ function highlightMatch(text, searchValue) {
483
501
  if (!searchValue || !searchValue.trim()) {
484
502
  return text;
485
503
  }
486
- const regex = new RegExp(`(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
504
+ const regex = new RegExp(
505
+ `(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
506
+ "gi"
507
+ );
487
508
  const parts = text.split(regex);
488
509
  return parts.map(
489
510
  (part, index) => regex.test(part) ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "font-bold", children: part }, index) : part
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  MenuOption
4
- } from "../chunk-YDREJNAS.js";
4
+ } from "../chunk-PDDZ5PMY.js";
5
5
  import "../chunk-SEKKGFM6.js";
6
- import "../chunk-S7R37IUP.js";
7
- import "../chunk-UIQ733QP.js";
6
+ import "../chunk-S5K22XTH.js";
7
+ import "../chunk-VG4EPHJA.js";
8
8
  import {
9
9
  Icon
10
10
  } from "../chunk-IGQVA7SC.js";
@@ -210,7 +210,8 @@ var Button = (_a) => {
210
210
  children,
211
211
  iconOnly = false,
212
212
  colorClassName,
213
- href
213
+ href,
214
+ id
214
215
  } = _b, props = __objRest(_b, [
215
216
  "variant",
216
217
  "as",
@@ -223,7 +224,8 @@ var Button = (_a) => {
223
224
  "children",
224
225
  "iconOnly",
225
226
  "colorClassName",
226
- "href"
227
+ "href",
228
+ "id"
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",
@@ -313,6 +315,7 @@ var Button = (_a) => {
313
315
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
314
316
  Element,
315
317
  __spreadProps(__spreadValues({
318
+ id,
316
319
  type: Element === "button" ? "button" : void 0,
317
320
  className: buttonClasses
318
321
  }, props), {
@@ -320,7 +323,7 @@ var Button = (_a) => {
320
323
  href,
321
324
  children: [
322
325
  leftIcon && leftIcon,
323
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
326
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
324
327
  rightIcon && rightIcon
325
328
  ]
326
329
  })
@@ -340,7 +343,8 @@ var Paragraph = (_a) => {
340
343
  tall,
341
344
  addOverflow,
342
345
  children,
343
- as = "p"
346
+ as = "p",
347
+ id
344
348
  } = _b, props = __objRest(_b, [
345
349
  "className",
346
350
  "color",
@@ -349,12 +353,15 @@ var Paragraph = (_a) => {
349
353
  "tall",
350
354
  "addOverflow",
351
355
  "children",
352
- "as"
356
+ "as",
357
+ "id"
353
358
  ]);
354
359
  const Element = as;
355
360
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
356
361
  Element,
357
- __spreadProps(__spreadValues({}, props), {
362
+ __spreadProps(__spreadValues({
363
+ id
364
+ }, props), {
358
365
  className: (0, import_clsx3.default)(
359
366
  typography.paragraph,
360
367
  className,
@@ -384,20 +391,23 @@ var Heading = (_a) => {
384
391
  as,
385
392
  color,
386
393
  align,
387
- variant = "heading1"
394
+ variant = "heading1",
395
+ id
388
396
  } = _b, props = __objRest(_b, [
389
397
  "className",
390
398
  "children",
391
399
  "as",
392
400
  "color",
393
401
  "align",
394
- "variant"
402
+ "variant",
403
+ "id"
395
404
  ]);
396
405
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
397
406
  const Element = as != null ? as : defaultElement;
398
407
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
399
408
  Element,
400
409
  __spreadProps(__spreadValues({
410
+ id,
401
411
  className: (0, import_clsx4.default)(
402
412
  typography[variant],
403
413
  className,
@@ -471,38 +481,70 @@ var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx6.default)(
471
481
  justify === "between" && "justify-between",
472
482
  justify === "around" && "justify-around"
473
483
  );
474
- var Stack = ({
475
- children,
476
- items,
477
- justify,
478
- grow,
479
- padding,
480
- paddingX,
481
- horizontal,
482
- horizontalMobile,
483
- elevation = 0,
484
- rounded,
485
- centered,
486
- width,
487
- maxWidth,
488
- minWidth,
489
- height,
490
- maxHeight,
491
- borderColor,
492
- backgroundColor,
493
- sizing = "none",
494
- overflowY = "inherit",
495
- overflowX = "inherit",
496
- flexShrink,
497
- flexGrow,
498
- position,
499
- top,
500
- left
501
- }) => {
484
+ var Stack = (_a) => {
485
+ var _b = _a, {
486
+ children,
487
+ items,
488
+ justify,
489
+ grow,
490
+ padding,
491
+ paddingX,
492
+ horizontal,
493
+ horizontalMobile,
494
+ elevation = 0,
495
+ rounded,
496
+ centered,
497
+ width,
498
+ maxWidth,
499
+ minWidth,
500
+ height,
501
+ maxHeight,
502
+ borderColor,
503
+ backgroundColor,
504
+ sizing = "none",
505
+ overflowY = "inherit",
506
+ overflowX = "inherit",
507
+ flexShrink,
508
+ flexGrow,
509
+ position,
510
+ top,
511
+ left,
512
+ id
513
+ } = _b, props = __objRest(_b, [
514
+ "children",
515
+ "items",
516
+ "justify",
517
+ "grow",
518
+ "padding",
519
+ "paddingX",
520
+ "horizontal",
521
+ "horizontalMobile",
522
+ "elevation",
523
+ "rounded",
524
+ "centered",
525
+ "width",
526
+ "maxWidth",
527
+ "minWidth",
528
+ "height",
529
+ "maxHeight",
530
+ "borderColor",
531
+ "backgroundColor",
532
+ "sizing",
533
+ "overflowY",
534
+ "overflowX",
535
+ "flexShrink",
536
+ "flexGrow",
537
+ "position",
538
+ "top",
539
+ "left",
540
+ "id"
541
+ ]);
502
542
  const flexClassNames = useFlexClassNames({ items, justify, grow });
503
543
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
504
544
  "div",
505
- {
545
+ __spreadProps(__spreadValues({
546
+ id
547
+ }, props), {
506
548
  style: {
507
549
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
508
550
  maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
@@ -550,7 +592,7 @@ var Stack = ({
550
592
  rounded && "rounded"
551
593
  ),
552
594
  children
553
- }
595
+ })
554
596
  );
555
597
  };
556
598
 
@@ -576,6 +618,7 @@ var variants = {
576
618
  };
577
619
  var Notification = (_a) => {
578
620
  var _b = _a, {
621
+ id,
579
622
  variant = "success",
580
623
  title,
581
624
  message,
@@ -586,6 +629,7 @@ var Notification = (_a) => {
586
629
  enableDisclaimer = false,
587
630
  card = false
588
631
  } = _b, props = __objRest(_b, [
632
+ "id",
589
633
  "variant",
590
634
  "title",
591
635
  "message",
@@ -603,6 +647,7 @@ var Notification = (_a) => {
603
647
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
604
648
  "div",
605
649
  __spreadProps(__spreadValues({
650
+ id,
606
651
  className: (0, import_clsx7.default)(
607
652
  "flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
608
653
  className,
@@ -632,6 +677,7 @@ var Notification = (_a) => {
632
677
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
633
678
  Button,
634
679
  {
680
+ id: id ? `${id}-close-button` : void 0,
635
681
  iconOnly: true,
636
682
  variant: "tertiary",
637
683
  onClick: () => setVisible(false),
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  Stack
4
- } from "../chunk-U42SKNR6.js";
4
+ } from "../chunk-57WRM337.js";
5
5
  import {
6
6
  Heading3
7
- } from "../chunk-TJ44JJCB.js";
7
+ } from "../chunk-J6LETUNM.js";
8
8
  import {
9
9
  Button
10
- } from "../chunk-T6HZARR7.js";
10
+ } from "../chunk-MZJS2ZAU.js";
11
11
  import {
12
12
  Paragraph
13
- } from "../chunk-UIQ733QP.js";
13
+ } from "../chunk-VG4EPHJA.js";
14
14
  import {
15
15
  Icon
16
16
  } from "../chunk-IGQVA7SC.js";
@@ -45,6 +45,7 @@ var variants = {
45
45
  };
46
46
  var Notification = (_a) => {
47
47
  var _b = _a, {
48
+ id,
48
49
  variant = "success",
49
50
  title,
50
51
  message,
@@ -55,6 +56,7 @@ var Notification = (_a) => {
55
56
  enableDisclaimer = false,
56
57
  card = false
57
58
  } = _b, props = __objRest(_b, [
59
+ "id",
58
60
  "variant",
59
61
  "title",
60
62
  "message",
@@ -72,6 +74,7 @@ var Notification = (_a) => {
72
74
  return /* @__PURE__ */ jsxs(
73
75
  "div",
74
76
  __spreadProps(__spreadValues({
77
+ id,
75
78
  className: clsx(
76
79
  "flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
77
80
  className,
@@ -101,6 +104,7 @@ var Notification = (_a) => {
101
104
  /* @__PURE__ */ jsx(
102
105
  Button,
103
106
  {
107
+ id: id ? `${id}-close-button` : void 0,
104
108
  iconOnly: true,
105
109
  variant: "tertiary",
106
110
  onClick: () => setVisible(false),