@soroush.tech/design-system 2.0.0-alpha.0 → 2.0.0-alpha.2

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/README.md +37 -34
  2. package/dist/AppBar.cjs +0 -4
  3. package/dist/AppBar.d.cts +3 -3
  4. package/dist/AppBar.d.mts +3 -3
  5. package/dist/AppBar.mjs +0 -4
  6. package/dist/Avatar.cjs +1 -1
  7. package/dist/Avatar.d.cts +3 -3
  8. package/dist/Avatar.d.mts +3 -3
  9. package/dist/Avatar.mjs +1 -1
  10. package/dist/Backdrop.d.cts +1 -1
  11. package/dist/Backdrop.d.mts +1 -1
  12. package/dist/Button.cjs +1 -1
  13. package/dist/Button.d.cts +1 -1
  14. package/dist/Button.d.mts +1 -1
  15. package/dist/Button.mjs +1 -1
  16. package/dist/ButtonGroup.d.cts +1 -1
  17. package/dist/ButtonGroup.d.mts +1 -1
  18. package/dist/Card.cjs +2 -2
  19. package/dist/Card.d.cts +3 -3
  20. package/dist/Card.d.mts +3 -3
  21. package/dist/Card.mjs +2 -2
  22. package/dist/Checkbox.d.cts +2 -2
  23. package/dist/Checkbox.d.mts +2 -2
  24. package/dist/CircularProgress.d.cts +3 -3
  25. package/dist/CircularProgress.d.mts +3 -3
  26. package/dist/Drawer.cjs +109 -17
  27. package/dist/Drawer.d.cts +43 -7
  28. package/dist/Drawer.d.mts +43 -7
  29. package/dist/Drawer.mjs +109 -18
  30. package/dist/Flex.cjs +6 -2
  31. package/dist/Flex.d.cts +1 -1
  32. package/dist/Flex.d.mts +1 -1
  33. package/dist/Flex.mjs +6 -2
  34. package/dist/Form.d.cts +1 -1
  35. package/dist/Form.d.mts +1 -1
  36. package/dist/FormControl.cjs +1 -1
  37. package/dist/FormControl.d.cts +2 -2
  38. package/dist/FormControl.d.mts +2 -2
  39. package/dist/FormControl.mjs +1 -1
  40. package/dist/FormHelperText.d.cts +1 -1
  41. package/dist/FormHelperText.d.mts +1 -1
  42. package/dist/FormLabel.d.cts +1 -1
  43. package/dist/FormLabel.d.mts +1 -1
  44. package/dist/Grid.cjs +7 -2
  45. package/dist/Grid.d.cts +20 -1
  46. package/dist/Grid.d.mts +20 -1
  47. package/dist/Grid.mjs +7 -2
  48. package/dist/{Icon-CkQGOBmm.mjs → Icon-BGcd6yy0.mjs} +1 -1
  49. package/dist/{Icon-CKLBJ7CC.cjs → Icon-Cn6Zx8wb.cjs} +1 -1
  50. package/dist/Icon.cjs +1 -1
  51. package/dist/Icon.d.cts +1 -1
  52. package/dist/Icon.d.mts +1 -1
  53. package/dist/Icon.mjs +1 -1
  54. package/dist/Image.d.cts +2 -2
  55. package/dist/Image.d.mts +2 -2
  56. package/dist/LinearProgress.d.cts +3 -3
  57. package/dist/LinearProgress.d.mts +3 -3
  58. package/dist/Link.cjs +1 -1
  59. package/dist/Link.d.cts +1 -1
  60. package/dist/Link.d.mts +1 -1
  61. package/dist/Link.mjs +1 -1
  62. package/dist/MenuItem.cjs +2 -2
  63. package/dist/MenuItem.d.cts +2 -2
  64. package/dist/MenuItem.d.mts +2 -2
  65. package/dist/MenuItem.mjs +2 -2
  66. package/dist/Modal.cjs +1 -1
  67. package/dist/Modal.d.cts +1 -1
  68. package/dist/Modal.d.mts +1 -1
  69. package/dist/Modal.mjs +1 -1
  70. package/dist/NativeSelect.cjs +2 -2
  71. package/dist/NativeSelect.d.cts +3 -3
  72. package/dist/NativeSelect.d.mts +3 -3
  73. package/dist/NativeSelect.mjs +2 -2
  74. package/dist/Pagination/PaginationItem.cjs +1 -1
  75. package/dist/Pagination/PaginationItem.d.cts +1 -1
  76. package/dist/Pagination/PaginationItem.d.mts +1 -1
  77. package/dist/Pagination/PaginationItem.mjs +1 -1
  78. package/dist/Pagination.d.cts +2 -2
  79. package/dist/Pagination.d.mts +2 -2
  80. package/dist/Paper.cjs +1 -1
  81. package/dist/Paper.d.cts +1 -1
  82. package/dist/Paper.d.mts +1 -1
  83. package/dist/Paper.mjs +1 -1
  84. package/dist/{Popover-Dz6h3A_9.cjs → Popover-CrSABgRk.cjs} +2 -2
  85. package/dist/{Popover-DWOrf7sy.mjs → Popover-DlpXdcwt.mjs} +2 -2
  86. package/dist/Popover.cjs +1 -1
  87. package/dist/Popover.d.cts +4 -4
  88. package/dist/Popover.d.mts +4 -4
  89. package/dist/Popover.mjs +1 -1
  90. package/dist/Pressable.cjs +1 -1
  91. package/dist/Pressable.d.cts +1 -1
  92. package/dist/Pressable.d.mts +1 -1
  93. package/dist/Pressable.mjs +1 -1
  94. package/dist/Quote.d.cts +4 -4
  95. package/dist/Quote.d.mts +4 -4
  96. package/dist/Radio.d.cts +2 -2
  97. package/dist/Radio.d.mts +2 -2
  98. package/dist/Select.cjs +3 -3
  99. package/dist/Select.d.cts +3 -3
  100. package/dist/Select.d.mts +3 -3
  101. package/dist/Select.mjs +3 -3
  102. package/dist/Sidebar/Sidebar.cjs +6 -25
  103. package/dist/Sidebar/Sidebar.d.cts +2 -5
  104. package/dist/Sidebar/Sidebar.d.mts +2 -5
  105. package/dist/Sidebar/Sidebar.mjs +7 -26
  106. package/dist/Sidebar/SidebarItem.cjs +1 -2
  107. package/dist/Sidebar/SidebarItem.d.cts +4 -4
  108. package/dist/Sidebar/SidebarItem.d.mts +4 -4
  109. package/dist/Sidebar/SidebarItem.mjs +1 -2
  110. package/dist/Skeleton.d.cts +2 -2
  111. package/dist/Skeleton.d.mts +2 -2
  112. package/dist/Switch.cjs +1 -1
  113. package/dist/Switch.d.cts +2 -2
  114. package/dist/Switch.d.mts +2 -2
  115. package/dist/Switch.mjs +1 -1
  116. package/dist/Table/Table.d.cts +3 -3
  117. package/dist/Table/Table.d.mts +3 -3
  118. package/dist/Table/TableBody.d.cts +2 -2
  119. package/dist/Table/TableBody.d.mts +2 -2
  120. package/dist/Table/TableCell.d.cts +1 -1
  121. package/dist/Table/TableCell.d.mts +1 -1
  122. package/dist/Table/TableContainer.d.cts +4 -4
  123. package/dist/Table/TableContainer.d.mts +4 -4
  124. package/dist/Table/TableControl.d.cts +1 -1
  125. package/dist/Table/TableControl.d.mts +1 -1
  126. package/dist/Table/TableFooter.d.cts +2 -2
  127. package/dist/Table/TableFooter.d.mts +2 -2
  128. package/dist/Table/TableHead.d.cts +2 -2
  129. package/dist/Table/TableHead.d.mts +2 -2
  130. package/dist/Table/TablePagination.d.cts +2 -2
  131. package/dist/Table/TablePagination.d.mts +2 -2
  132. package/dist/Table/TablePaginationActions.cjs +1 -1
  133. package/dist/Table/TablePaginationActions.d.cts +1 -1
  134. package/dist/Table/TablePaginationActions.d.mts +1 -1
  135. package/dist/Table/TablePaginationActions.mjs +1 -1
  136. package/dist/Table/TableRow.d.cts +2 -2
  137. package/dist/Table/TableRow.d.mts +2 -2
  138. package/dist/Table/TableSortLabel.cjs +1 -1
  139. package/dist/Table/TableSortLabel.d.cts +1 -1
  140. package/dist/Table/TableSortLabel.d.mts +1 -1
  141. package/dist/Table/TableSortLabel.mjs +1 -1
  142. package/dist/Table/hooks.d.cts +1 -1
  143. package/dist/Table/hooks.d.mts +1 -1
  144. package/dist/Table.d.cts +5 -5
  145. package/dist/Table.d.mts +5 -5
  146. package/dist/{TableContext-DRAhXvq3.d.cts → TableContext-BowhBZkZ.d.cts} +1 -1
  147. package/dist/{TableContext-DBOk01Xl.d.mts → TableContext-GmYLRYpc.d.mts} +1 -1
  148. package/dist/TextInput.cjs +1 -1
  149. package/dist/TextInput.d.cts +2 -2
  150. package/dist/TextInput.d.mts +2 -2
  151. package/dist/TextInput.mjs +1 -1
  152. package/dist/ToggleButton/ToggleButton.cjs +1 -1
  153. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  154. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  155. package/dist/ToggleButton/ToggleButton.mjs +1 -1
  156. package/dist/ToggleButton/ToggleButtonGroup.cjs +1 -1
  157. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  158. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  159. package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
  160. package/dist/Typography.cjs +1 -1
  161. package/dist/Typography.d.cts +2 -2
  162. package/dist/Typography.d.mts +2 -2
  163. package/dist/Typography.mjs +1 -1
  164. package/dist/View.cjs +2 -1
  165. package/dist/View.d.cts +1 -1
  166. package/dist/View.d.mts +1 -1
  167. package/dist/View.mjs +2 -1
  168. package/dist/engine.d.cts +1 -1
  169. package/dist/engine.d.mts +1 -1
  170. package/dist/{index-D4i9vrQM.d.mts → index-B2eLreA5.d.cts} +3 -3
  171. package/dist/{index-DPHwCZYf.d.cts → index-BBV7_p-W.d.mts} +2 -2
  172. package/dist/{index-CoHrw2p7.d.mts → index-BHyJ6P_D.d.mts} +1 -1
  173. package/dist/{index-BDD-L8uL.d.cts → index-BO-vkjtm.d.cts} +1 -1
  174. package/dist/{index-BNpkmtaM.d.mts → index-BT-mcuE6.d.mts} +3 -3
  175. package/dist/{index-qtKJ56yu.d.mts → index-BW4rc8cK.d.cts} +2 -2
  176. package/dist/{index-B8KscJic.d.cts → index-BbngAEDY.d.mts} +2 -2
  177. package/dist/{index-BSR9zrAA.d.mts → index-Bqk30r0W.d.mts} +3 -3
  178. package/dist/{index-DkJzi96w.d.cts → index-BsUsSWXP.d.cts} +1 -1
  179. package/dist/{index-EYR0z1Qv.d.cts → index-C-kvrbCi.d.cts} +2 -2
  180. package/dist/{index-CvWslVk6.d.cts → index-C0-SB0dL.d.mts} +4 -4
  181. package/dist/{index-DsKd9VW5.d.mts → index-C58AZZQ2.d.cts} +4 -4
  182. package/dist/{index-IEvuh6Cd.d.mts → index-C7bEBYuv.d.mts} +3 -3
  183. package/dist/{index-CohgpyUj.d.cts → index-CGCO5eo7.d.mts} +4 -4
  184. package/dist/{index-CzmA09Yf.d.mts → index-CMKzrxOO.d.mts} +2 -2
  185. package/dist/{index-DNNg9RoR.d.cts → index-CNzkJGNq.d.cts} +3 -3
  186. package/dist/{index-CtrxW81j.d.cts → index-CPNzQhUu.d.cts} +2 -2
  187. package/dist/{index-8mHoIUt5.d.mts → index-CmscFo1L.d.mts} +2 -2
  188. package/dist/{index-r2avCy1z.d.mts → index-CxDY_w-H.d.cts} +2 -2
  189. package/dist/{index-CCrocxBL.d.cts → index-D0XX9v0b.d.cts} +3 -3
  190. package/dist/{index-CVb5zbas.d.mts → index-D2yMhmE_.d.mts} +3 -3
  191. package/dist/{index-bN91IhZi.d.cts → index-D5Rj4uWe.d.cts} +2 -2
  192. package/dist/{index-DuefjNlC.d.mts → index-DJ8NTYR8.d.mts} +2 -2
  193. package/dist/{index-B6vxRNLt.d.cts → index-DTeurv8z.d.cts} +3 -3
  194. package/dist/{index-S3NZS-Qp.d.cts → index-DYtIEMr9.d.mts} +3 -3
  195. package/dist/{index-CEqa8xx8.d.mts → index-Dkqk_6g2.d.mts} +1 -1
  196. package/dist/index-EuWfYhf8.d.mts +21 -0
  197. package/dist/{index-BGD4OzzG.d.cts → index-H30eNjJf.d.cts} +3 -3
  198. package/dist/{index-tv-TGYSG.d.mts → index-JSOR69Iy.d.cts} +4 -4
  199. package/dist/{index-CLttbRhG.d.cts → index-VwsWkazt.d.cts} +2 -2
  200. package/dist/{index-Cjlax0-f.d.mts → index-di-L2lJ9.d.mts} +2 -2
  201. package/dist/index-ue1Ccvln.d.cts +21 -0
  202. package/dist/index.d.cts +2 -2
  203. package/dist/index.d.mts +2 -2
  204. package/dist/style.cjs +1 -1
  205. package/dist/style.d.cts +2 -2
  206. package/dist/style.d.mts +2 -2
  207. package/dist/style.mjs +1 -1
  208. package/dist/{theme-BQGlZoma.mjs → theme-C1o9qa2E.mjs} +75 -27
  209. package/dist/{theme-BmEAXmwh.cjs → theme-DfAqr7qo.cjs} +116 -26
  210. package/dist/theme.cjs +8 -1
  211. package/dist/theme.d.cts +3 -3
  212. package/dist/theme.d.mts +3 -3
  213. package/dist/theme.mjs +2 -2
  214. package/dist/{themes-9YNnlVyY.d.mts → themes-C3RTORGO.d.mts} +63 -21
  215. package/dist/{themes-9YNnlVyY.d.cts → themes-Dswy4M6B.d.cts} +63 -21
  216. package/dist/{useTablePagination-RelVsdMR.d.mts → useTablePagination-BueH0_dG.d.cts} +1 -1
  217. package/dist/{useTablePagination-CLoac5oX.d.cts → useTablePagination-CxBh-gU8.d.mts} +1 -1
  218. package/package.json +2 -12
  219. package/dist/PageLayout/LayoutGrid.cjs +0 -21
  220. package/dist/PageLayout/LayoutGrid.d.cts +0 -22
  221. package/dist/PageLayout/LayoutGrid.d.mts +0 -22
  222. package/dist/PageLayout/LayoutGrid.mjs +0 -20
  223. package/dist/PageLayout/PageLayout.cjs +0 -148
  224. package/dist/PageLayout/PageLayout.d.cts +0 -31
  225. package/dist/PageLayout/PageLayout.d.mts +0 -31
  226. package/dist/PageLayout/PageLayout.mjs +0 -147
  227. package/dist/PageLayout.cjs +0 -7
  228. package/dist/PageLayout.d.cts +0 -19
  229. package/dist/PageLayout.d.mts +0 -19
  230. package/dist/PageLayout.mjs +0 -4
  231. package/dist/PageLayoutContext-DjJ1_7Xc.mjs +0 -5
  232. package/dist/PageLayoutContext-agXGhegE.cjs +0 -9
  233. package/dist/index-B41OXLX8.d.mts +0 -16
  234. package/dist/index-BJ5Tsf7u.d.cts +0 -16
  235. package/dist/index-BMJ3tyIw.d.cts +0 -16
  236. package/dist/index-BnFxdnEL.d.mts +0 -16
  237. package/dist/layoutStyles-B4Z1K6HZ.cjs +0 -67
  238. package/dist/layoutStyles-f0ISNjsC.mjs +0 -56
  239. package/dist/{Modal-CYNcPk-2.mjs → Modal-BcsyrrpH.mjs} +1 -1
  240. package/dist/{Modal-CApyh_V5.cjs → Modal-CM3osOqj.cjs} +1 -1
package/dist/Drawer.d.mts CHANGED
@@ -1,22 +1,58 @@
1
- import { n as PaperElevation } from "./index-BSR9zrAA.mjs";
2
- import { s as ModalProps } from "./index-qtKJ56yu.mjs";
1
+ import { i as ButtonProps } from "./index-DYtIEMr9.mjs";
2
+ import { n as PaperElevation } from "./index-Bqk30r0W.mjs";
3
3
  import { ReactNode } from "react";
4
4
  //#region src/Drawer/Drawer.d.ts
5
5
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
6
- interface DrawerProps extends Pick<ModalProps, 'isOpen' | 'onClose' | 'hasBackdrop' | 'shouldKeepMounted' | 'shouldUsePortal' | 'portalContainer' | 'shouldLockScroll' | 'shouldAutoFocus' | 'shouldTrapFocus' | 'shouldRestoreFocus'> {
6
+ /** Why the drawer closed: the Escape key, or any other dismissal (a click outside, its toggle). */
7
+ type DrawerCloseReason = 'escapeKey' | 'dismiss';
8
+ interface DrawerProps {
9
+ /** The element id a `DrawerToggle`'s `drawer` names. */
10
+ id: string;
7
11
  /** The content of the drawer. */
8
12
  children: ReactNode;
13
+ /**
14
+ * Open state, for controlled use with JavaScript. Leave it out and the drawer opens and
15
+ * closes from its `DrawerToggle` alone - which also works with JavaScript disabled.
16
+ */
17
+ isOpen?: boolean;
18
+ /** Fired when the drawer closes by itself: Escape, a click outside, or its toggle. */
19
+ onClose?: (event: Event, reason: DrawerCloseReason) => void;
9
20
  /** Edge the drawer slides in from. Default: 'left'. */
10
21
  anchor?: DrawerAnchor;
11
22
  /** Shadow depth of the panel (0-24), forwarded to Paper. Default: 16. */
12
23
  elevation?: PaperElevation;
13
24
  /** Slide duration in milliseconds. Default: 225. */
14
25
  transitionDuration?: number;
26
+ /** Dim the page behind the open drawer. Default: true. */
27
+ hasBackdrop?: boolean;
28
+ /** With JavaScript: lock body scroll while open. Default: true. */
29
+ shouldLockScroll?: boolean;
30
+ /** With JavaScript: move focus into the drawer when it opens. Default: true. */
31
+ shouldAutoFocus?: boolean;
32
+ /** With JavaScript: keep Tab cycling within the open drawer. Default: true. */
33
+ shouldTrapFocus?: boolean;
34
+ /** With JavaScript: return focus to where it was when the drawer closes. Default: true. */
35
+ shouldRestoreFocus?: boolean;
15
36
  }
16
37
  /**
17
- * @description A panel that slides in from a screen edge, built on Modal. Portals,
18
- * dims the page, traps focus, locks scroll, and closes on Escape or backdrop click.
38
+ * @description A panel that slides in from a screen edge. It is an HTML `popover`: a
39
+ * `DrawerToggle` opens it, and Escape or a click outside closes it - all without JavaScript,
40
+ * so it works on a prerendered page with scripts off. With JavaScript it can be controlled with
41
+ * `isOpen` / `onClose`, and it moves focus in, traps Tab and locks scroll while open.
19
42
  */
20
- declare function Drawer({ children, anchor, elevation, transitionDuration, ...modalProps }: Readonly<DrawerProps>): import("react").JSX.Element;
43
+ declare function Drawer({ id, children, isOpen, onClose, anchor, elevation, transitionDuration, hasBackdrop, shouldLockScroll, shouldAutoFocus, shouldTrapFocus, shouldRestoreFocus }: Readonly<DrawerProps>): import("react").JSX.Element;
21
44
  //#endregion
22
- export { Drawer, DrawerAnchor, DrawerProps };
45
+ //#region src/Drawer/DrawerToggle.d.ts
46
+ interface DrawerToggleProps extends Omit<ButtonProps, 'href'> {
47
+ /** The `id` of the `Drawer` this button opens and closes. */
48
+ drawer: string;
49
+ /** What a click does to the drawer. Default: 'toggle'. */
50
+ action?: 'toggle' | 'show' | 'hide';
51
+ }
52
+ /**
53
+ * @description The button that opens and closes a `Drawer`, through the HTML
54
+ * `popovertarget` attribute - it works without JavaScript. Takes every `Button` prop.
55
+ */
56
+ declare function DrawerToggle({ drawer, action, ...rest }: Readonly<DrawerToggleProps>): import("react").JSX.Element;
57
+ //#endregion
58
+ export { Drawer, DrawerAnchor, DrawerCloseReason, DrawerProps, DrawerToggle, DrawerToggleProps };
package/dist/Drawer.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  import { o as styled, r as keyframes, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
+ import { Button } from "./Button.mjs";
2
3
  import { Paper } from "./Paper.mjs";
3
- import { t as Modal } from "./Modal-CYNcPk-2.mjs";
4
- import "react";
4
+ import { FocusTrap } from "./FocusTrap.mjs";
5
+ import { useEffect, useRef, useState } from "react";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  //#region src/Drawer/Drawer.tsx
7
8
  const slideIn = {
@@ -36,32 +37,122 @@ const anchorPosition = {
36
37
  width: "100%"
37
38
  }
38
39
  };
39
- const shouldForwardProp = createShouldForwardProp(["anchor", "duration"]);
40
- const DrawerPanel = styled(Paper, {
40
+ const shouldForwardProp = createShouldForwardProp([
41
+ "anchor",
42
+ "duration",
43
+ "hasBackdrop"
44
+ ]);
45
+ const DrawerPanel = styled("div", {
41
46
  name: "Drawer",
42
47
  label: "Drawer",
43
48
  shouldForwardProp
44
- })(({ anchor, duration }) => ({
49
+ })(({ theme, anchor, duration, hasBackdrop }) => ({
45
50
  position: "fixed",
51
+ inset: "auto",
52
+ margin: 0,
53
+ padding: 0,
54
+ border: "none",
55
+ background: "transparent",
56
+ color: "inherit",
57
+ maxWidth: "100%",
58
+ maxHeight: "100%",
59
+ overflow: "visible",
46
60
  ...anchorPosition[anchor],
47
- animation: `${slideIn[anchor]} ${duration}ms ease-out`,
48
- "@media (prefers-reduced-motion: reduce)": { animation: "none" }
61
+ "&:popover-open": { animation: `${slideIn[anchor]} ${duration}ms ease-out` },
62
+ "&::backdrop": { backgroundColor: hasBackdrop ? theme.background.backdrop : "transparent" },
63
+ "@media (prefers-reduced-motion: reduce)": { "&:popover-open": { animation: "none" } }
49
64
  }));
50
65
  /**
51
- * @description A panel that slides in from a screen edge, built on Modal. Portals,
52
- * dims the page, traps focus, locks scroll, and closes on Escape or backdrop click.
66
+ * @description A panel that slides in from a screen edge. It is an HTML `popover`: a
67
+ * `DrawerToggle` opens it, and Escape or a click outside closes it - all without JavaScript,
68
+ * so it works on a prerendered page with scripts off. With JavaScript it can be controlled with
69
+ * `isOpen` / `onClose`, and it moves focus in, traps Tab and locks scroll while open.
53
70
  */
54
- function Drawer({ children, anchor = "left", elevation = 16, transitionDuration = 225, ...modalProps }) {
55
- return /* @__PURE__ */ jsx(Modal, {
56
- ...modalProps,
57
- layer: "drawer",
58
- children: /* @__PURE__ */ jsx(DrawerPanel, {
59
- anchor,
60
- duration: transitionDuration,
71
+ function Drawer({ id, children, isOpen, onClose, anchor = "left", elevation = 16, transitionDuration = 225, hasBackdrop = true, shouldLockScroll = true, shouldAutoFocus = true, shouldTrapFocus = true, shouldRestoreFocus = true }) {
72
+ const panelRef = useRef(null);
73
+ const [isShown, setIsShown] = useState(false);
74
+ const isShownRef = useRef(false);
75
+ const closingByProp = useRef(false);
76
+ const onCloseRef = useRef(onClose);
77
+ useEffect(() => {
78
+ onCloseRef.current = onClose;
79
+ }, [onClose]);
80
+ useEffect(() => {
81
+ const panel = panelRef.current;
82
+ let escaped = false;
83
+ const handleKeyDown = (event) => {
84
+ escaped = event.key === "Escape" && isShownRef.current;
85
+ };
86
+ const handleToggle = (event) => {
87
+ const open = event.newState === "open";
88
+ isShownRef.current = open;
89
+ setIsShown(open);
90
+ if (!open && !closingByProp.current) onCloseRef.current?.(event, escaped ? "escapeKey" : "dismiss");
91
+ closingByProp.current = false;
92
+ escaped = false;
93
+ };
94
+ const doc = panel.ownerDocument;
95
+ doc.addEventListener("keydown", handleKeyDown, true);
96
+ panel.addEventListener("toggle", handleToggle);
97
+ return () => {
98
+ doc.removeEventListener("keydown", handleKeyDown, true);
99
+ panel.removeEventListener("toggle", handleToggle);
100
+ };
101
+ }, []);
102
+ useEffect(() => {
103
+ if (isOpen === void 0 || isOpen === isShownRef.current) return;
104
+ const panel = panelRef.current;
105
+ isShownRef.current = isOpen;
106
+ if (isOpen) panel.showPopover();
107
+ else {
108
+ closingByProp.current = true;
109
+ panel.hidePopover();
110
+ }
111
+ }, [isOpen]);
112
+ useEffect(() => {
113
+ if (!isShown || !shouldLockScroll) return;
114
+ const { body } = panelRef.current.ownerDocument;
115
+ const previous = body.style.overflow;
116
+ body.style.overflow = "hidden";
117
+ return () => {
118
+ body.style.overflow = previous;
119
+ };
120
+ }, [isShown, shouldLockScroll]);
121
+ return /* @__PURE__ */ jsx(DrawerPanel, {
122
+ ref: panelRef,
123
+ id,
124
+ popover: "auto",
125
+ anchor,
126
+ duration: transitionDuration,
127
+ hasBackdrop,
128
+ children: /* @__PURE__ */ jsx(Paper, {
61
129
  elevation,
62
- children
130
+ width: "100%",
131
+ height: "100%",
132
+ overflow: "auto",
133
+ children: /* @__PURE__ */ jsx(FocusTrap, {
134
+ isEnabled: isShown,
135
+ shouldAutoFocus,
136
+ shouldTrapFocus,
137
+ shouldEnforceFocus: false,
138
+ shouldRestoreFocus,
139
+ children
140
+ })
63
141
  })
64
142
  });
65
143
  }
66
144
  //#endregion
67
- export { Drawer };
145
+ //#region src/Drawer/DrawerToggle.tsx
146
+ /**
147
+ * @description The button that opens and closes a `Drawer`, through the HTML
148
+ * `popovertarget` attribute - it works without JavaScript. Takes every `Button` prop.
149
+ */
150
+ function DrawerToggle({ drawer, action = "toggle", ...rest }) {
151
+ return /* @__PURE__ */ jsx(Button, {
152
+ popoverTarget: drawer,
153
+ popoverTargetAction: action,
154
+ ...rest
155
+ });
156
+ }
157
+ //#endregion
158
+ export { Drawer, DrawerToggle };
package/dist/Flex.cjs CHANGED
@@ -3,12 +3,16 @@ const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_View = require("./View.cjs");
4
4
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
5
5
  //#region src/Flex/Flex.tsx
6
- const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
6
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props, "layout"]);
7
7
  const Flex = require_src.styled(require_View.View, {
8
8
  name: "Flex",
9
9
  label: "flex",
10
10
  shouldForwardProp,
11
- systemProps: [require_src.src_exports.flexbox]
11
+ systemProps: [
12
+ require_src.src_exports.layoutFlex,
13
+ require_src.src_exports.flexbox,
14
+ require_src.src_exports.space
15
+ ]
12
16
  })({
13
17
  display: "flex",
14
18
  flexDirection: "column"
package/dist/Flex.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FlexProps, r as GapToken, t as Flex } from "./index-BMJ3tyIw.cjs";
1
+ import { n as FlexProps, r as GapToken, t as Flex } from "./index-ue1Ccvln.cjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FlexProps, r as GapToken, t as Flex } from "./index-B41OXLX8.mjs";
1
+ import { n as FlexProps, r as GapToken, t as Flex } from "./index-EuWfYhf8.mjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.mjs CHANGED
@@ -1,12 +1,16 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { View } from "./View.mjs";
3
3
  //#region src/Flex/Flex.tsx
4
- const shouldForwardProp = createShouldForwardProp([...props]);
4
+ const shouldForwardProp = createShouldForwardProp([...props, "layout"]);
5
5
  const Flex = styled(View, {
6
6
  name: "Flex",
7
7
  label: "flex",
8
8
  shouldForwardProp,
9
- systemProps: [src_exports.flexbox]
9
+ systemProps: [
10
+ src_exports.layoutFlex,
11
+ src_exports.flexbox,
12
+ src_exports.space
13
+ ]
10
14
  })({
11
15
  display: "flex",
12
16
  flexDirection: "column"
package/dist/Form.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  //#region src/Form/Form.d.ts
4
4
  interface FormProps {
package/dist/Form.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  //#region src/Form/Form.d.ts
4
4
  interface FormProps {
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_View = require("./View.cjs");
4
4
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
5
- const require_theme = require("./theme-BmEAXmwh.cjs");
5
+ const require_theme = require("./theme-DfAqr7qo.cjs");
6
6
  const require_FormControlContext = require("./FormControlContext-74gvPGFk.cjs");
7
7
  const require_FormContext = require("./FormContext-BGCsWAFc.cjs");
8
8
  let react = require("react");
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
- import { s as ViewProps } from "./index-CvWslVk6.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import { s as ViewProps } from "./index-JSOR69Iy.cjs";
3
3
  import { ReactNode } from "react";
4
4
  //#region src/FormControl/FormControl.d.ts
5
5
  interface FormControlProps extends Omit<ViewProps, 'color'> {
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
- import { s as ViewProps } from "./index-tv-TGYSG.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import { s as ViewProps } from "./index-C0-SB0dL.mjs";
3
3
  import { ReactNode } from "react";
4
4
  //#region src/FormControl/FormControl.d.ts
5
5
  interface FormControlProps extends Omit<ViewProps, 'color'> {
@@ -1,7 +1,7 @@
1
1
  import { o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { View } from "./View.mjs";
3
3
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
4
- import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
+ import { r as useTheme } from "./theme-C1o9qa2E.mjs";
5
5
  import { t as FormControlContext } from "./FormControlContext-CC2kToms.mjs";
6
6
  import { t as FormContext } from "./FormContext-LrjAGe6U.mjs";
7
7
  import { useContext, useId, useMemo, useState } from "react";
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-bN91IhZi.cjs";
1
+ import { a as TypographyProps } from "./index-D5Rj4uWe.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormHelperText/FormHelperText.d.ts
4
4
  interface FormHelperTextProps extends TypographyProps {
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DuefjNlC.mjs";
1
+ import { a as TypographyProps } from "./index-DJ8NTYR8.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormHelperText/FormHelperText.d.ts
4
4
  interface FormHelperTextProps extends TypographyProps {
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-bN91IhZi.cjs";
1
+ import { a as TypographyProps } from "./index-D5Rj4uWe.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormLabel/FormLabel.d.ts
4
4
  interface FormLabelProps extends TypographyProps {
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DuefjNlC.mjs";
1
+ import { a as TypographyProps } from "./index-DJ8NTYR8.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/FormLabel/FormLabel.d.ts
4
4
  interface FormLabelProps extends TypographyProps {
package/dist/Grid.cjs CHANGED
@@ -3,12 +3,17 @@ const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_View = require("./View.cjs");
4
4
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
5
5
  //#region src/Grid/Grid.tsx
6
- const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
6
+ const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props, "layout"]);
7
7
  const Grid = require_src.styled(require_View.View, {
8
8
  name: "Grid",
9
9
  label: "grid",
10
10
  shouldForwardProp,
11
- systemProps: [require_src.src_exports.grid, require_src.src_exports.flexbox]
11
+ systemProps: [
12
+ require_src.src_exports.layoutGrid,
13
+ require_src.src_exports.grid,
14
+ require_src.src_exports.flexbox,
15
+ require_src.src_exports.space
16
+ ]
12
17
  })({ display: "grid" });
13
18
  //#endregion
14
19
  exports.Grid = Grid;
package/dist/Grid.d.cts CHANGED
@@ -1,2 +1,21 @@
1
- import { n as Grid, r as GridProps, t as GapToken } from "./index-BJ5Tsf7u.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import "./index-BsUsSWXP.cjs";
3
+ import { s as ViewProps } from "./index-JSOR69Iy.cjs";
4
+ import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
5
+ //#region src/Grid/Grid.d.ts
6
+ /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
10
+ * breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
11
+ * breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
12
+ */
13
+ interface GridProps extends ViewProps, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
14
+ declare const Grid: import("@emotion/styled").StyledComponent<{
15
+ theme?: Theme;
16
+ as?: React.ElementType;
17
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
18
+ theme?: Theme;
19
+ } & GridProps, {}, {}>;
20
+ //#endregion
2
21
  export { GapToken, Grid, GridProps };
package/dist/Grid.d.mts CHANGED
@@ -1,2 +1,21 @@
1
- import { n as Grid, r as GridProps, t as GapToken } from "./index-BnFxdnEL.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import "./index-Dkqk_6g2.mjs";
3
+ import { s as ViewProps } from "./index-C0-SB0dL.mjs";
4
+ import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
5
+ //#region src/Grid/Grid.d.ts
6
+ /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
10
+ * breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
11
+ * breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
12
+ */
13
+ interface GridProps extends ViewProps, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
14
+ declare const Grid: import("@emotion/styled").StyledComponent<{
15
+ theme?: Theme;
16
+ as?: React.ElementType;
17
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
18
+ theme?: Theme;
19
+ } & GridProps, {}, {}>;
20
+ //#endregion
2
21
  export { GapToken, Grid, GridProps };
package/dist/Grid.mjs CHANGED
@@ -1,12 +1,17 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { View } from "./View.mjs";
3
3
  //#region src/Grid/Grid.tsx
4
- const shouldForwardProp = createShouldForwardProp([...props]);
4
+ const shouldForwardProp = createShouldForwardProp([...props, "layout"]);
5
5
  const Grid = styled(View, {
6
6
  name: "Grid",
7
7
  label: "grid",
8
8
  shouldForwardProp,
9
- systemProps: [src_exports.grid, src_exports.flexbox]
9
+ systemProps: [
10
+ src_exports.layoutGrid,
11
+ src_exports.grid,
12
+ src_exports.flexbox,
13
+ src_exports.space
14
+ ]
10
15
  })({ display: "grid" });
11
16
  //#endregion
12
17
  export { Grid };
@@ -1,6 +1,6 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BQGlZoma.mjs";
3
+ import { r as useTheme } from "./theme-C1o9qa2E.mjs";
4
4
  import "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/Icon/icons/AccountTree.tsx
@@ -1,6 +1,6 @@
1
1
  const require_src = require("./src-DU81aGy9.cjs");
2
2
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
3
- const require_theme = require("./theme-BmEAXmwh.cjs");
3
+ const require_theme = require("./theme-DfAqr7qo.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
package/dist/Icon.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Icon = require("./Icon-CKLBJ7CC.cjs");
2
+ const require_Icon = require("./Icon-Cn6Zx8wb.cjs");
3
3
  exports.Icon = require_Icon.Icon;
4
4
  exports.icons = require_Icon.icons;
package/dist/Icon.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-DPHwCZYf.cjs";
1
+ import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-CxDY_w-H.cjs";
2
2
  export { Icon, type IconName, IconProps, icons };
package/dist/Icon.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-r2avCy1z.mjs";
1
+ import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-BBV7_p-W.mjs";
2
2
  export { Icon, type IconName, IconProps, icons };
package/dist/Icon.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as icons, t as Icon } from "./Icon-CkQGOBmm.mjs";
1
+ import { n as icons, t as Icon } from "./Icon-BGcd6yy0.mjs";
2
2
  export { Icon, icons };
package/dist/Image.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
- import "./index-DkJzi96w.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import "./index-BsUsSWXP.cjs";
3
3
  import { CSSProperties, ImgHTMLAttributes } from "react";
4
4
  import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/Image/Image.d.ts
package/dist/Image.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
- import "./index-CEqa8xx8.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import "./index-Dkqk_6g2.mjs";
3
3
  import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { CSSProperties, ImgHTMLAttributes } from "react";
5
5
  //#region src/Image/Image.d.ts
@@ -1,6 +1,6 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
- import "./index-DkJzi96w.cjs";
3
- import { n as ButtonColor } from "./index-S3NZS-Qp.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import "./index-BsUsSWXP.cjs";
3
+ import { n as ButtonColor } from "./index-B2eLreA5.cjs";
4
4
  import { HTMLAttributes } from "react";
5
5
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
6
6
  //#region src/LinearProgress/LinearProgress.d.ts
@@ -1,6 +1,6 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
- import "./index-CEqa8xx8.mjs";
3
- import { n as ButtonColor } from "./index-D4i9vrQM.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import "./index-Dkqk_6g2.mjs";
3
+ import { n as ButtonColor } from "./index-DYtIEMr9.mjs";
4
4
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  import { HTMLAttributes } from "react";
6
6
  //#region src/LinearProgress/LinearProgress.d.ts
package/dist/Link.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-BmEAXmwh.cjs");
4
+ const require_theme = require("./theme-DfAqr7qo.cjs");
5
5
  const require_Typography = require("./Typography.cjs");
6
6
  require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/Link.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-bN91IhZi.cjs";
1
+ import { a as TypographyProps } from "./index-D5Rj4uWe.cjs";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
  //#region src/Link/Link.d.ts
4
4
  type LinkUnderline = 'always' | 'hover' | 'none';
package/dist/Link.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DuefjNlC.mjs";
1
+ import { a as TypographyProps } from "./index-DJ8NTYR8.mjs";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
  //#region src/Link/Link.d.ts
4
4
  type LinkUnderline = 'always' | 'hover' | 'none';
package/dist/Link.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BQGlZoma.mjs";
3
+ import { r as useTheme } from "./theme-C1o9qa2E.mjs";
4
4
  import { Typography } from "./Typography.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
package/dist/MenuItem.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-BmEAXmwh.cjs");
5
- const require_Icon = require("./Icon-CKLBJ7CC.cjs");
4
+ const require_theme = require("./theme-DfAqr7qo.cjs");
5
+ const require_Icon = require("./Icon-Cn6Zx8wb.cjs");
6
6
  let react = require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  //#region src/MenuItem/MenuItem.tsx
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
- import "./index-DkJzi96w.cjs";
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import "./index-BsUsSWXP.cjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/MenuItem/MenuItem.d.ts
5
5
  type MenuItemColor = keyof Theme['palette'];
@@ -1,5 +1,5 @@
1
- import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
- import "./index-CEqa8xx8.mjs";
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import "./index-Dkqk_6g2.mjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/MenuItem/MenuItem.d.ts
5
5
  type MenuItemColor = keyof Theme['palette'];
package/dist/MenuItem.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
- import { t as Icon } from "./Icon-CkQGOBmm.mjs";
3
+ import { r as useTheme } from "./theme-C1o9qa2E.mjs";
4
+ import { t as Icon } from "./Icon-BGcd6yy0.mjs";
5
5
  import { useEffect, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/MenuItem/MenuItem.tsx
package/dist/Modal.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Modal = require("./Modal-CApyh_V5.cjs");
2
+ const require_Modal = require("./Modal-CM3osOqj.cjs");
3
3
  exports.Modal = require_Modal.Modal;
4
4
  exports.ModalManager = require_Modal.ModalManager;
5
5
  exports.exposeToAria = require_Modal.exposeToAria;
package/dist/Modal.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-B8KscJic.cjs";
1
+ import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-BW4rc8cK.cjs";
2
2
  export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
package/dist/Modal.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-qtKJ56yu.mjs";
1
+ import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-BbngAEDY.mjs";
2
2
  export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
package/dist/Modal.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as hideFromAria, i as exposeToAria, n as useModal, r as ModalManager, t as Modal } from "./Modal-CYNcPk-2.mjs";
1
+ import { a as hideFromAria, i as exposeToAria, n as useModal, r as ModalManager, t as Modal } from "./Modal-BcsyrrpH.mjs";
2
2
  export { Modal, ModalManager, exposeToAria, hideFromAria, useModal };