@dmsi/wedgekit-react 0.0.26 → 0.0.28

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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InputBase
3
- } from "./chunk-OISE6NMA.js";
3
+ } from "./chunk-QV2EFOYF.js";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-IGQVA7SC.js";
@@ -16,6 +16,7 @@ import clsx from "clsx";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  var Select = (_a) => {
18
18
  var _b = _a, {
19
+ id,
19
20
  label,
20
21
  error,
21
22
  children,
@@ -28,6 +29,7 @@ var Select = (_a) => {
28
29
  displayValue,
29
30
  value
30
31
  } = _b, props = __objRest(_b, [
32
+ "id",
31
33
  "label",
32
34
  "error",
33
35
  "children",
@@ -56,6 +58,7 @@ var Select = (_a) => {
56
58
  /* @__PURE__ */ jsx(
57
59
  InputBase,
58
60
  __spreadProps(__spreadValues({
61
+ id,
59
62
  inputContainerRef,
60
63
  ref: inputRef,
61
64
  label,
@@ -95,6 +98,7 @@ var Select = (_a) => {
95
98
  })
96
99
  ),
97
100
  renderMenu ? renderMenu({
101
+ id: `${id}-menu`,
98
102
  positionTo: inputContainerRef,
99
103
  show,
100
104
  setShow,
@@ -6,11 +6,13 @@ var ModalScrim = ({
6
6
  size = "small",
7
7
  children,
8
8
  onClick,
9
- ref
9
+ ref,
10
+ id
10
11
  }) => {
11
12
  return /* @__PURE__ */ jsx(
12
13
  "div",
13
14
  {
15
+ id,
14
16
  className: clsx(
15
17
  "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",
16
18
  !show && " pointer-events-none",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Label
3
- } from "./chunk-S7R37IUP.js";
3
+ } from "./chunk-S5K22XTH.js";
4
4
  import {
5
5
  Button
6
- } from "./chunk-T6HZARR7.js";
6
+ } from "./chunk-MZJS2ZAU.js";
7
7
  import {
8
8
  Icon
9
9
  } from "./chunk-IGQVA7SC.js";
@@ -25,6 +25,7 @@ import clsx from "clsx";
25
25
  import { jsx, jsxs } from "react/jsx-runtime";
26
26
  var OptionPill = (_a) => {
27
27
  var _b = _a, {
28
+ id,
28
29
  selected = false,
29
30
  onClick,
30
31
  onRemove,
@@ -33,6 +34,7 @@ var OptionPill = (_a) => {
33
34
  children,
34
35
  className
35
36
  } = _b, props = __objRest(_b, [
37
+ "id",
36
38
  "selected",
37
39
  "onClick",
38
40
  "onRemove",
@@ -63,6 +65,7 @@ var OptionPill = (_a) => {
63
65
  return /* @__PURE__ */ jsxs(
64
66
  "div",
65
67
  __spreadProps(__spreadValues(__spreadValues({
68
+ id,
66
69
  onClick: handleOnClick
67
70
  }, props), additionalAttributes), {
68
71
  className: clsx(
@@ -76,10 +79,19 @@ var OptionPill = (_a) => {
76
79
  textColor
77
80
  ),
78
81
  children: [
79
- /* @__PURE__ */ jsx(Label, { padded: true, className: componentPaddingYUsingComponentGap, children }),
82
+ /* @__PURE__ */ jsx(
83
+ Label,
84
+ {
85
+ id: id ? `${id}-label` : void 0,
86
+ padded: true,
87
+ className: componentPaddingYUsingComponentGap,
88
+ children
89
+ }
90
+ ),
80
91
  removable && /* @__PURE__ */ jsx(
81
92
  Button,
82
93
  {
94
+ id: id ? `${id}-remove-button` : void 0,
83
95
  onClick: handleOnRemove,
84
96
  disabled,
85
97
  className: clsx(
@@ -1,3 +1,9 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-ORMEWXMH.js";
6
+
1
7
  // src/components/Stack.tsx
2
8
  import clsx from "clsx";
3
9
  import { jsx } from "react/jsx-runtime";
@@ -16,38 +22,70 @@ var useFlexClassNames = ({ items, justify, grow }) => clsx(
16
22
  justify === "between" && "justify-between",
17
23
  justify === "around" && "justify-around"
18
24
  );
19
- var Stack = ({
20
- children,
21
- items,
22
- justify,
23
- grow,
24
- padding,
25
- paddingX,
26
- horizontal,
27
- horizontalMobile,
28
- elevation = 0,
29
- rounded,
30
- centered,
31
- width,
32
- maxWidth,
33
- minWidth,
34
- height,
35
- maxHeight,
36
- borderColor,
37
- backgroundColor,
38
- sizing = "none",
39
- overflowY = "inherit",
40
- overflowX = "inherit",
41
- flexShrink,
42
- flexGrow,
43
- position,
44
- top,
45
- left
46
- }) => {
25
+ var Stack = (_a) => {
26
+ var _b = _a, {
27
+ children,
28
+ items,
29
+ justify,
30
+ grow,
31
+ padding,
32
+ paddingX,
33
+ horizontal,
34
+ horizontalMobile,
35
+ elevation = 0,
36
+ rounded,
37
+ centered,
38
+ width,
39
+ maxWidth,
40
+ minWidth,
41
+ height,
42
+ maxHeight,
43
+ borderColor,
44
+ backgroundColor,
45
+ sizing = "none",
46
+ overflowY = "inherit",
47
+ overflowX = "inherit",
48
+ flexShrink,
49
+ flexGrow,
50
+ position,
51
+ top,
52
+ left,
53
+ id
54
+ } = _b, props = __objRest(_b, [
55
+ "children",
56
+ "items",
57
+ "justify",
58
+ "grow",
59
+ "padding",
60
+ "paddingX",
61
+ "horizontal",
62
+ "horizontalMobile",
63
+ "elevation",
64
+ "rounded",
65
+ "centered",
66
+ "width",
67
+ "maxWidth",
68
+ "minWidth",
69
+ "height",
70
+ "maxHeight",
71
+ "borderColor",
72
+ "backgroundColor",
73
+ "sizing",
74
+ "overflowY",
75
+ "overflowX",
76
+ "flexShrink",
77
+ "flexGrow",
78
+ "position",
79
+ "top",
80
+ "left",
81
+ "id"
82
+ ]);
47
83
  const flexClassNames = useFlexClassNames({ items, justify, grow });
48
84
  return /* @__PURE__ */ jsx(
49
85
  "div",
50
- {
86
+ __spreadProps(__spreadValues({
87
+ id
88
+ }, props), {
51
89
  style: {
52
90
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
53
91
  maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
@@ -95,7 +133,7 @@ var Stack = ({
95
133
  rounded && "rounded"
96
134
  ),
97
135
  children
98
- }
136
+ })
99
137
  );
100
138
  };
101
139
 
@@ -17,20 +17,23 @@ var Display = (_a) => {
17
17
  as,
18
18
  color,
19
19
  align,
20
- variant = "display1"
20
+ variant = "display1",
21
+ id
21
22
  } = _b, props = __objRest(_b, [
22
23
  "className",
23
24
  "children",
24
25
  "as",
25
26
  "color",
26
27
  "align",
27
- "variant"
28
+ "variant",
29
+ "id"
28
30
  ]);
29
31
  const defaultElement = variant === "display1" ? "h1" : "h2";
30
32
  const Element = as != null ? as : defaultElement;
31
33
  return /* @__PURE__ */ jsx(
32
34
  Element,
33
35
  __spreadProps(__spreadValues({
36
+ id,
34
37
  className: clsx(
35
38
  typography[variant],
36
39
  className,
@@ -2,9 +2,10 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  function Theme({
4
4
  theme,
5
- children
5
+ children,
6
+ id
6
7
  }) {
7
- return /* @__PURE__ */ jsx("div", { className: "contents", "data-theme": theme, children });
8
+ return /* @__PURE__ */ jsx("div", { id, className: "contents", "data-theme": theme, children });
8
9
  }
9
10
 
10
11
  export {
@@ -7,11 +7,13 @@ import clsx from "clsx";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  function ModalContent({
9
9
  fixedHeightScrolling,
10
- children
10
+ children,
11
+ id
11
12
  }) {
12
13
  return /* @__PURE__ */ jsx(
13
14
  "div",
14
15
  {
16
+ id,
15
17
  className: clsx(
16
18
  "flex-grow desktop:flex-grow-0",
17
19
  layoutPaddding,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-T6HZARR7.js";
3
+ } from "./chunk-MZJS2ZAU.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -18,14 +18,16 @@ var ContentTab = (_a) => {
18
18
  className,
19
19
  disabled = false,
20
20
  onClick,
21
- ref
21
+ ref,
22
+ id
22
23
  } = _b, props = __objRest(_b, [
23
24
  "label",
24
25
  "selected",
25
26
  "className",
26
27
  "disabled",
27
28
  "onClick",
28
- "ref"
29
+ "ref",
30
+ "id"
29
31
  ]);
30
32
  const [active, setActive] = useState(false);
31
33
  const handleClick = useCallback(
@@ -45,10 +47,11 @@ var ContentTab = (_a) => {
45
47
  !active && disabled && "bg-text-action-primary-disabled",
46
48
  className
47
49
  );
48
- return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
50
+ return /* @__PURE__ */ jsxs("div", { id, className: "relative", children: [
49
51
  /* @__PURE__ */ jsx(
50
52
  Button,
51
53
  __spreadProps(__spreadValues({
54
+ id: id ? `${id}-button` : void 0,
52
55
  ref,
53
56
  variant: "tertiary",
54
57
  disabled,
@@ -62,7 +65,14 @@ var ContentTab = (_a) => {
62
65
  children: label
63
66
  })
64
67
  ),
65
- selected && /* @__PURE__ */ jsx("div", { className: computedClassName, children: " " })
68
+ selected && /* @__PURE__ */ jsx(
69
+ "div",
70
+ {
71
+ id: id ? `${id}-indicator` : void 0,
72
+ className: computedClassName,
73
+ children: " "
74
+ }
75
+ )
66
76
  ] });
67
77
  };
68
78
  ContentTab.displayName = "ContentTab";
@@ -17,20 +17,23 @@ var Heading = (_a) => {
17
17
  as,
18
18
  color,
19
19
  align,
20
- variant = "heading1"
20
+ variant = "heading1",
21
+ id
21
22
  } = _b, props = __objRest(_b, [
22
23
  "className",
23
24
  "children",
24
25
  "as",
25
26
  "color",
26
27
  "align",
27
- "variant"
28
+ "variant",
29
+ "id"
28
30
  ]);
29
31
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
30
32
  const Element = as != null ? as : defaultElement;
31
33
  return /* @__PURE__ */ jsx(
32
34
  Element,
33
35
  __spreadProps(__spreadValues({
36
+ id,
34
37
  className: clsx(
35
38
  typography[variant],
36
39
  className,
@@ -28,7 +28,8 @@ var Button = (_a) => {
28
28
  children,
29
29
  iconOnly = false,
30
30
  colorClassName,
31
- href
31
+ href,
32
+ id
32
33
  } = _b, props = __objRest(_b, [
33
34
  "variant",
34
35
  "as",
@@ -41,7 +42,8 @@ var Button = (_a) => {
41
42
  "children",
42
43
  "iconOnly",
43
44
  "colorClassName",
44
- "href"
45
+ "href",
46
+ "id"
45
47
  ]);
46
48
  const primaryVariantStyles = variant === "primary" && clsx(
47
49
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -131,6 +133,7 @@ var Button = (_a) => {
131
133
  return /* @__PURE__ */ jsxs(
132
134
  Element,
133
135
  __spreadProps(__spreadValues({
136
+ id,
134
137
  type: Element === "button" ? "button" : void 0,
135
138
  className: buttonClasses
136
139
  }, props), {
@@ -138,7 +141,7 @@ var Button = (_a) => {
138
141
  href,
139
142
  children: [
140
143
  leftIcon && leftIcon,
141
- !iconOnly && children && /* @__PURE__ */ jsx("span", { className: labelClasses, children }),
144
+ !iconOnly && children && /* @__PURE__ */ jsx("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
142
145
  rightIcon && rightIcon
143
146
  ]
144
147
  })
@@ -17,19 +17,22 @@ var Subheader = (_a) => {
17
17
  as = "span",
18
18
  align,
19
19
  color,
20
- tall
20
+ tall,
21
+ id
21
22
  } = _b, props = __objRest(_b, [
22
23
  "className",
23
24
  "children",
24
25
  "as",
25
26
  "align",
26
27
  "color",
27
- "tall"
28
+ "tall",
29
+ "id"
28
30
  ]);
29
31
  const Element = as;
30
32
  return /* @__PURE__ */ jsx(
31
33
  Element,
32
34
  __spreadProps(__spreadValues({
35
+ id,
33
36
  className: clsx(
34
37
  typography.subheader,
35
38
  className,
@@ -35,7 +35,8 @@ function DateCell(_a) {
35
35
  onMouseEnter,
36
36
  onMouseLeave,
37
37
  cellPadding = "",
38
- isRangeDisabled = false
38
+ isRangeDisabled = false,
39
+ id
39
40
  } = _b, props = __objRest(_b, [
40
41
  "date",
41
42
  "isInMonth",
@@ -49,11 +50,13 @@ function DateCell(_a) {
49
50
  "onMouseEnter",
50
51
  "onMouseLeave",
51
52
  "cellPadding",
52
- "isRangeDisabled"
53
+ "isRangeDisabled",
54
+ "id"
53
55
  ]);
54
56
  return /* @__PURE__ */ jsx(
55
57
  "span",
56
58
  __spreadProps(__spreadValues({}, props), {
59
+ id,
57
60
  className: clsx(
58
61
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
59
62
  typography.caption,
@@ -99,7 +102,8 @@ function CalendarRange({
99
102
  isDateAvailable,
100
103
  mode = "double",
101
104
  cardStyle = false,
102
- disableRange = false
105
+ disableRange = false,
106
+ id
103
107
  }) {
104
108
  const weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
105
109
  const parseDate = (d) => {
@@ -168,6 +172,7 @@ function CalendarRange({
168
172
  return /* @__PURE__ */ jsx(
169
173
  "div",
170
174
  {
175
+ id,
171
176
  className: clsx(
172
177
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
173
178
  layoutPaddding,
@@ -207,6 +212,7 @@ function CalendarRange({
207
212
  idx === 0 ? /* @__PURE__ */ jsx(
208
213
  "button",
209
214
  {
215
+ id: id ? `${id}-prev-month-button` : void 0,
210
216
  type: "button",
211
217
  className: clsx(
212
218
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
@@ -224,6 +230,7 @@ function CalendarRange({
224
230
  (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ jsx(
225
231
  "button",
226
232
  {
233
+ id: id ? `${id}-next-month-button` : void 0,
227
234
  type: "button",
228
235
  className: clsx(
229
236
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
@@ -266,6 +273,7 @@ function CalendarRange({
266
273
  return /* @__PURE__ */ jsx(
267
274
  DateCell,
268
275
  {
276
+ id: id ? `${id}-date-${date.toString()}` : void 0,
269
277
  date,
270
278
  isInMonth: !!isInMonth,
271
279
  isToday: !!isToday,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-SEKKGFM6.js";
4
4
  import {
5
5
  Label
6
- } from "./chunk-S7R37IUP.js";
6
+ } from "./chunk-S5K22XTH.js";
7
7
  import {
8
8
  Paragraph
9
- } from "./chunk-UIQ733QP.js";
9
+ } from "./chunk-VG4EPHJA.js";
10
10
  import {
11
11
  Icon
12
12
  } from "./chunk-IGQVA7SC.js";
@@ -25,6 +25,7 @@ import clsx from "clsx";
25
25
  import { useId, useRef } from "react";
26
26
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
27
27
  var MenuOption = ({
28
+ id,
28
29
  children,
29
30
  disabled = false,
30
31
  variant = "normal",
@@ -96,6 +97,7 @@ var MenuOption = ({
96
97
  /* @__PURE__ */ jsxs(
97
98
  "div",
98
99
  __spreadProps(__spreadValues({
100
+ id,
99
101
  ref: actualRef,
100
102
  className: clsx(
101
103
  "flex items-center cursor-pointer w-full text-left relative outline-none",
@@ -136,7 +138,15 @@ var MenuOption = ({
136
138
  onMouseLeave: handleMouseLeave,
137
139
  "data-submenu-parent": menuId.current,
138
140
  "data-menu-level": subMenuLevel + 1,
139
- children: subMenu({ menuId: menuId.current, positionTo: actualRef, mobilePositionTo, position: "right", subMenuLevel, mobileBackMenuOption, mobileHide: isMobile && activeMenu !== menuId.current })
141
+ children: subMenu({
142
+ menuId: menuId.current,
143
+ positionTo: actualRef,
144
+ mobilePositionTo,
145
+ position: "right",
146
+ subMenuLevel,
147
+ mobileBackMenuOption,
148
+ mobileHide: isMobile && activeMenu !== menuId.current
149
+ })
140
150
  }
141
151
  )
142
152
  ] });
@@ -155,6 +165,7 @@ var MenuOption = ({
155
165
  return /* @__PURE__ */ jsx(
156
166
  MenuOption,
157
167
  {
168
+ id: id ? `${id}-back` : void 0,
158
169
  onClick: () => {
159
170
  closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
160
171
  },
@@ -170,7 +181,10 @@ function highlightMatch(text, searchValue) {
170
181
  if (!searchValue || !searchValue.trim()) {
171
182
  return text;
172
183
  }
173
- const regex = new RegExp(`(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
184
+ const regex = new RegExp(
185
+ `(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
186
+ "gi"
187
+ );
174
188
  const parts = text.split(regex);
175
189
  return parts.map(
176
190
  (part, index) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: "font-bold", children: part }, index) : part
@@ -1,12 +1,18 @@
1
+ import {
2
+ __spreadProps,
3
+ __spreadValues
4
+ } from "./chunk-ORMEWXMH.js";
5
+
1
6
  // src/components/LogoDMSiTopBar.tsx
2
7
  import { jsx, jsxs } from "react/jsx-runtime";
3
- function LogoDMSiTopBar() {
8
+ function LogoDMSiTopBar(props) {
4
9
  return /* @__PURE__ */ jsxs(
5
10
  "svg",
6
- {
11
+ __spreadProps(__spreadValues({
7
12
  width: "106",
8
13
  height: "24",
9
- viewBox: "0 0 106 24",
14
+ viewBox: "0 0 106 24"
15
+ }, props), {
10
16
  fill: "none",
11
17
  xmlns: "http://www.w3.org/2000/svg",
12
18
  children: [
@@ -46,7 +52,7 @@ function LogoDMSiTopBar() {
46
52
  }
47
53
  )
48
54
  ]
49
- }
55
+ })
50
56
  );
51
57
  }
52
58
 
@@ -0,0 +1,61 @@
1
+ import {
2
+ Button
3
+ } from "./chunk-MZJS2ZAU.js";
4
+ import {
5
+ Icon
6
+ } from "./chunk-IGQVA7SC.js";
7
+ import {
8
+ layoutGroupGap,
9
+ layoutPaddding
10
+ } from "./chunk-RDLEIAQU.js";
11
+
12
+ // src/components/ModalButtons.tsx
13
+ import clsx from "clsx";
14
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
+ var ModalButtons = ({
16
+ onClose,
17
+ onContinue,
18
+ customActions,
19
+ id
20
+ }) => {
21
+ return /* @__PURE__ */ jsx(
22
+ "div",
23
+ {
24
+ id,
25
+ className: clsx(
26
+ "border-t border-neutral-300 flex justify-end",
27
+ layoutPaddding,
28
+ layoutGroupGap
29
+ ),
30
+ children: customActions != null ? customActions : /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ /* @__PURE__ */ jsx(
32
+ Button,
33
+ {
34
+ id: id ? `${id}-close-button` : void 0,
35
+ variant: "secondary",
36
+ leftIcon: /* @__PURE__ */ jsx(Icon, { name: "close", size: 24 }),
37
+ onClick: onClose,
38
+ className: "max-sm:w-full",
39
+ children: "Close"
40
+ }
41
+ ),
42
+ /* @__PURE__ */ jsx(
43
+ Button,
44
+ {
45
+ id: id ? `${id}-continue-button` : void 0,
46
+ variant: "primary",
47
+ leftIcon: /* @__PURE__ */ jsx(Icon, { name: "check", size: 24 }),
48
+ className: "max-sm:w-full",
49
+ onClick: onContinue,
50
+ children: "Continue"
51
+ }
52
+ )
53
+ ] })
54
+ }
55
+ );
56
+ };
57
+ ModalButtons.displayName = "ModalButtons";
58
+
59
+ export {
60
+ ModalButtons
61
+ };