@soroush.tech/design-system 2.1.0-alpha.0 → 2.1.0-alpha.1

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 (277) hide show
  1. package/dist/Accordion/Accordion.d.cts +2 -2
  2. package/dist/Accordion/Accordion.d.mts +2 -2
  3. package/dist/Accordion/AccordionGroup.d.cts +1 -1
  4. package/dist/Accordion/AccordionGroup.d.mts +1 -1
  5. package/dist/Alert/Alert.d.cts +1 -1
  6. package/dist/Alert/Alert.d.mts +1 -1
  7. package/dist/AppBar.d.cts +1 -1
  8. package/dist/AppBar.d.mts +1 -1
  9. package/dist/Autocomplete.d.cts +1 -1
  10. package/dist/Autocomplete.d.mts +1 -1
  11. package/dist/Avatar.d.cts +1 -1
  12. package/dist/Avatar.d.mts +1 -1
  13. package/dist/Backdrop.d.cts +1 -1
  14. package/dist/Backdrop.d.mts +1 -1
  15. package/dist/Badge.d.cts +1 -1
  16. package/dist/Badge.d.mts +1 -1
  17. package/dist/Breadcrumbs.d.cts +3 -3
  18. package/dist/Breadcrumbs.d.mts +3 -3
  19. package/dist/Button.d.cts +1 -1
  20. package/dist/Button.d.mts +1 -1
  21. package/dist/ButtonGroup.d.cts +1 -1
  22. package/dist/ButtonGroup.d.mts +1 -1
  23. package/dist/Card.d.cts +4 -4
  24. package/dist/Card.d.mts +4 -4
  25. package/dist/Checkbox.d.cts +1 -1
  26. package/dist/Checkbox.d.mts +1 -1
  27. package/dist/Chip.d.cts +1 -1
  28. package/dist/Chip.d.mts +1 -1
  29. package/dist/CircularProgress.d.cts +2 -2
  30. package/dist/CircularProgress.d.mts +2 -2
  31. package/dist/Collapse.d.cts +1 -1
  32. package/dist/Collapse.d.mts +1 -1
  33. package/dist/Drawer.d.cts +3 -3
  34. package/dist/Drawer.d.mts +3 -3
  35. package/dist/Fab.d.cts +1 -1
  36. package/dist/Fab.d.mts +1 -1
  37. package/dist/FabMenu/FabMenu.d.cts +1 -1
  38. package/dist/FabMenu/FabMenu.d.mts +1 -1
  39. package/dist/FabMenu/FabMenuItem.d.cts +1 -1
  40. package/dist/FabMenu/FabMenuItem.d.mts +1 -1
  41. package/dist/Fade.d.cts +1 -1
  42. package/dist/Fade.d.mts +1 -1
  43. package/dist/Flex.d.cts +1 -1
  44. package/dist/Flex.d.mts +1 -1
  45. package/dist/Form.d.cts +1 -1
  46. package/dist/Form.d.mts +1 -1
  47. package/dist/FormControl.d.cts +1 -1
  48. package/dist/FormControl.d.mts +1 -1
  49. package/dist/FormHelperText.d.cts +1 -1
  50. package/dist/FormHelperText.d.mts +1 -1
  51. package/dist/FormLabel.d.cts +1 -1
  52. package/dist/FormLabel.d.mts +1 -1
  53. package/dist/Grid.d.cts +1 -1
  54. package/dist/Grid.d.mts +1 -1
  55. package/dist/Grow.d.cts +1 -1
  56. package/dist/Grow.d.mts +1 -1
  57. package/dist/Icon.d.cts +1 -1
  58. package/dist/Icon.d.mts +1 -1
  59. package/dist/Image.d.cts +1 -1
  60. package/dist/Image.d.mts +1 -1
  61. package/dist/LinearProgress.d.cts +2 -2
  62. package/dist/LinearProgress.d.mts +2 -2
  63. package/dist/Link.d.cts +1 -1
  64. package/dist/Link.d.mts +1 -1
  65. package/dist/Menu/ContextMenu.cjs +23 -14
  66. package/dist/Menu/ContextMenu.d.cts +18 -8
  67. package/dist/Menu/ContextMenu.d.mts +18 -8
  68. package/dist/Menu/ContextMenu.mjs +24 -15
  69. package/dist/Menu/Menu.cjs +1 -1
  70. package/dist/Menu/Menu.d.cts +1 -1
  71. package/dist/Menu/Menu.d.mts +1 -1
  72. package/dist/Menu/Menu.mjs +1 -1
  73. package/dist/Menu/MenuItems.cjs +1 -1
  74. package/dist/Menu/MenuItems.d.cts +1 -1
  75. package/dist/Menu/MenuItems.d.mts +1 -1
  76. package/dist/Menu/MenuItems.mjs +1 -1
  77. package/dist/Menu/MenuList.cjs +1 -1
  78. package/dist/Menu/MenuList.d.cts +3 -36
  79. package/dist/Menu/MenuList.d.mts +3 -36
  80. package/dist/Menu/MenuList.mjs +1 -1
  81. package/dist/{Menu-BfJF32J2.cjs → Menu-C6eIdA1J.cjs} +8 -5
  82. package/dist/{Menu-CX9V2DAu.mjs → Menu-C_4jYHWE.mjs} +8 -5
  83. package/dist/Menu.cjs +2 -2
  84. package/dist/Menu.d.cts +5 -5
  85. package/dist/Menu.d.mts +5 -5
  86. package/dist/Menu.mjs +2 -2
  87. package/dist/{MenuItem-CvCMGXuL.cjs → MenuItem-Bg4iRvVe.cjs} +28 -25
  88. package/dist/{MenuItem-DdPzSWZY.mjs → MenuItem-kRGVRI6G.mjs} +28 -25
  89. package/dist/MenuItem.cjs +1 -1
  90. package/dist/MenuItem.d.cts +1 -1
  91. package/dist/MenuItem.d.mts +1 -1
  92. package/dist/MenuItem.mjs +1 -1
  93. package/dist/{MenuList-DsJmxNPu.cjs → MenuList-CSaaR3jt.cjs} +2 -1
  94. package/dist/{MenuList-CGZgfBno.mjs → MenuList-D7Pvpn_K.mjs} +2 -1
  95. package/dist/{MenuListContext-DJ_qJ1Uo.d.cts → MenuListContext-AnAxu0he.d.cts} +2 -2
  96. package/dist/{MenuListContext-DiZAVDCb.d.mts → MenuListContext-DURKFg_T.d.mts} +2 -2
  97. package/dist/Modal.d.cts +1 -1
  98. package/dist/Modal.d.mts +1 -1
  99. package/dist/NativeSelect.d.cts +2 -2
  100. package/dist/NativeSelect.d.mts +2 -2
  101. package/dist/NavTree/NavLink.d.cts +1 -1
  102. package/dist/NavTree/NavLink.d.mts +1 -1
  103. package/dist/NavTree/NavTree.d.cts +1 -1
  104. package/dist/NavTree/NavTree.d.mts +1 -1
  105. package/dist/NumberInput.d.cts +1 -1
  106. package/dist/NumberInput.d.mts +1 -1
  107. package/dist/Pagination/PaginationItem.d.cts +1 -1
  108. package/dist/Pagination/PaginationItem.d.mts +1 -1
  109. package/dist/Pagination.d.cts +2 -2
  110. package/dist/Pagination.d.mts +2 -2
  111. package/dist/Paper.d.cts +2 -2
  112. package/dist/Paper.d.mts +2 -2
  113. package/dist/Popover.d.cts +3 -3
  114. package/dist/Popover.d.mts +3 -3
  115. package/dist/Pressable.d.cts +1 -1
  116. package/dist/Pressable.d.mts +1 -1
  117. package/dist/Quote.d.cts +2 -2
  118. package/dist/Quote.d.mts +2 -2
  119. package/dist/Radio.d.cts +1 -1
  120. package/dist/Radio.d.mts +1 -1
  121. package/dist/RangeInput.d.cts +1 -1
  122. package/dist/RangeInput.d.mts +1 -1
  123. package/dist/Rating.d.cts +1 -1
  124. package/dist/Rating.d.mts +1 -1
  125. package/dist/ScrollArea.d.cts +1 -1
  126. package/dist/ScrollArea.d.mts +1 -1
  127. package/dist/Select.d.cts +2 -2
  128. package/dist/Select.d.mts +2 -2
  129. package/dist/Sidebar/Sidebar.d.cts +1 -1
  130. package/dist/Sidebar/Sidebar.d.mts +1 -1
  131. package/dist/Sidebar/SidebarItem.d.cts +3 -3
  132. package/dist/Sidebar/SidebarItem.d.mts +3 -3
  133. package/dist/Skeleton.d.cts +1 -1
  134. package/dist/Skeleton.d.mts +1 -1
  135. package/dist/Slide.d.cts +1 -1
  136. package/dist/Slide.d.mts +1 -1
  137. package/dist/Snackbar.d.cts +2 -2
  138. package/dist/Snackbar.d.mts +2 -2
  139. package/dist/Switch.d.cts +1 -1
  140. package/dist/Switch.d.mts +1 -1
  141. package/dist/Table/Table.d.cts +2 -2
  142. package/dist/Table/Table.d.mts +2 -2
  143. package/dist/Table/TableBody.d.cts +1 -1
  144. package/dist/Table/TableBody.d.mts +1 -1
  145. package/dist/Table/TableCell.d.cts +1 -1
  146. package/dist/Table/TableCell.d.mts +1 -1
  147. package/dist/Table/TableContainer.d.cts +1 -1
  148. package/dist/Table/TableContainer.d.mts +1 -1
  149. package/dist/Table/TableControl.d.cts +1 -1
  150. package/dist/Table/TableControl.d.mts +1 -1
  151. package/dist/Table/TableFooter.d.cts +1 -1
  152. package/dist/Table/TableFooter.d.mts +1 -1
  153. package/dist/Table/TableHead.d.cts +1 -1
  154. package/dist/Table/TableHead.d.mts +1 -1
  155. package/dist/Table/TablePagination.d.cts +2 -2
  156. package/dist/Table/TablePagination.d.mts +2 -2
  157. package/dist/Table/TablePaginationActions.d.cts +1 -1
  158. package/dist/Table/TablePaginationActions.d.mts +1 -1
  159. package/dist/Table/TableRow.d.cts +1 -1
  160. package/dist/Table/TableRow.d.mts +1 -1
  161. package/dist/Table/TableSortLabel.d.cts +1 -1
  162. package/dist/Table/TableSortLabel.d.mts +1 -1
  163. package/dist/Table/hooks.d.cts +1 -1
  164. package/dist/Table/hooks.d.mts +1 -1
  165. package/dist/Table.d.cts +5 -5
  166. package/dist/Table.d.mts +5 -5
  167. package/dist/{TableContext-4sJdk84N.d.cts → TableContext-CPxH920f.d.mts} +1 -1
  168. package/dist/{TableContext-BCW5av9c.d.mts → TableContext-VuMFtVNr.d.cts} +1 -1
  169. package/dist/Tabs/Tab.cjs +18 -14
  170. package/dist/Tabs/Tab.d.cts +2 -2
  171. package/dist/Tabs/Tab.d.mts +2 -2
  172. package/dist/Tabs/Tab.mjs +18 -14
  173. package/dist/Tabs/TabContext.d.cts +1 -1
  174. package/dist/Tabs/TabContext.d.mts +1 -1
  175. package/dist/Tabs/TabList.cjs +1 -1
  176. package/dist/Tabs/TabList.d.cts +1 -1
  177. package/dist/Tabs/TabList.d.mts +1 -1
  178. package/dist/Tabs/TabList.mjs +1 -1
  179. package/dist/Tabs/TabPanel.d.cts +2 -2
  180. package/dist/Tabs/TabPanel.d.mts +2 -2
  181. package/dist/Tabs/TabScrollButton.d.cts +1 -1
  182. package/dist/Tabs/TabScrollButton.d.mts +1 -1
  183. package/dist/Tabs/Tabs.cjs +1 -1
  184. package/dist/Tabs/Tabs.d.cts +2 -2
  185. package/dist/Tabs/Tabs.d.mts +2 -2
  186. package/dist/Tabs/Tabs.mjs +1 -1
  187. package/dist/{Tabs-CG-hRs9L.mjs → Tabs-C_qe9d4p.mjs} +28 -21
  188. package/dist/{Tabs-CPH0H6yp.cjs → Tabs-DmiA1J--.cjs} +28 -21
  189. package/dist/Tabs.cjs +1 -1
  190. package/dist/Tabs.d.cts +3 -3
  191. package/dist/Tabs.d.mts +3 -3
  192. package/dist/Tabs.mjs +1 -1
  193. package/dist/{TabsContext-CsiW5MOp.d.mts → TabsContext-DeP8oJpC.d.cts} +1 -1
  194. package/dist/{TabsContext-DrmDtBqA.d.cts → TabsContext-VJcdZQOf.d.mts} +1 -1
  195. package/dist/TextInput.d.cts +1 -1
  196. package/dist/TextInput.d.mts +1 -1
  197. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  198. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  199. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  200. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  201. package/dist/Tooltip-CrPRvmj3.cjs +338 -0
  202. package/dist/Tooltip-CwbuEQzf.mjs +332 -0
  203. package/dist/Tooltip.cjs +2 -311
  204. package/dist/Tooltip.d.cts +18 -5
  205. package/dist/Tooltip.d.mts +18 -5
  206. package/dist/Tooltip.mjs +1 -310
  207. package/dist/TransferList.d.cts +1 -1
  208. package/dist/TransferList.d.mts +1 -1
  209. package/dist/Typography.d.cts +2 -2
  210. package/dist/Typography.d.mts +2 -2
  211. package/dist/View.d.cts +1 -1
  212. package/dist/View.d.mts +1 -1
  213. package/dist/Zoom.d.cts +1 -1
  214. package/dist/Zoom.d.mts +1 -1
  215. package/dist/catalog.cjs +4 -0
  216. package/dist/catalog.d.cts +1 -1
  217. package/dist/catalog.d.mts +1 -1
  218. package/dist/catalog.mjs +4 -0
  219. package/dist/engine.d.cts +1 -1
  220. package/dist/engine.d.mts +1 -1
  221. package/dist/{index-Dt-ZNTnC.d.cts → index-2jMSUeji.d.cts} +1 -1
  222. package/dist/{index-5TAVgzbU.d.mts → index-3Xe5X6Ny.d.mts} +2 -2
  223. package/dist/{index-BYAtunSZ.d.cts → index-B-p51b0z.d.cts} +2 -2
  224. package/dist/index-B2XL_zZY.d.mts +44 -0
  225. package/dist/{index-YKXzINGk.d.mts → index-B5_-Bxoo.d.cts} +3 -3
  226. package/dist/{index-DKNvADeE.d.mts → index-BFUn2EWp.d.mts} +2 -2
  227. package/dist/{index-CeFExef3.d.cts → index-BKM4d_F4.d.cts} +2 -2
  228. package/dist/index-BL5Kj3Ka.d.mts +1 -0
  229. package/dist/{index-Biqn5xUs.d.mts → index-BLypGp0N.d.mts} +4 -4
  230. package/dist/{index-D24iFgwR.d.cts → index-BVDN2XbT.d.mts} +3 -3
  231. package/dist/{index-D--R4_5H.d.mts → index-Bhb0bFxe.d.mts} +2 -2
  232. package/dist/index-Biqpy7c9.d.cts +44 -0
  233. package/dist/{index-BgmEVOSj.d.mts → index-C-ebcNOc.d.mts} +1 -1
  234. package/dist/{index-DvVQLBZc.d.cts → index-C6a3kDn2.d.cts} +1 -0
  235. package/dist/{index-DQYhGgbl.d.cts → index-C9nnnfhd.d.cts} +2 -2
  236. package/dist/{index-DWon54cO.d.cts → index-CBHCGizS.d.mts} +1 -1
  237. package/dist/{index-Bx-4KmJU.d.mts → index-CCEfrBNN.d.mts} +1 -1
  238. package/dist/{index-DhTzn0mf.d.cts → index-CHWMSBhQ.d.cts} +1 -1
  239. package/dist/index-CJMvoc8h.d.cts +1 -0
  240. package/dist/{index-DtVrZFJI.d.mts → index-COgZvhXQ.d.mts} +1 -1
  241. package/dist/{index-DtK3SaKA.d.mts → index-CP55_Zs2.d.mts} +1 -1
  242. package/dist/{index-DhzjNAzv.d.mts → index-CgyyM3ty.d.cts} +10 -5
  243. package/dist/{index-Buu5MtRG.d.mts → index-CtwlReZi.d.cts} +1 -1
  244. package/dist/{index-Dudkopvi.d.mts → index-D0skdQEK.d.mts} +1 -1
  245. package/dist/{index-fRyMPKtY.d.cts → index-D2tfsNPw.d.cts} +1 -1
  246. package/dist/{index-DrfJt7W6.d.cts → index-D7h8qFS1.d.cts} +2 -2
  247. package/dist/{index-DR76LcSz.d.mts → index-DACdQ7-d.d.cts} +1 -1
  248. package/dist/{index-C3TrdOpQ.d.cts → index-DAJ5DVHh.d.cts} +2 -2
  249. package/dist/{index-CyOSmefH.d.cts → index-DMysZsti.d.cts} +1 -1
  250. package/dist/{index-BWiDilH8.d.mts → index-DOH6uskj.d.mts} +1 -0
  251. package/dist/{index-DM7HHa4V.d.mts → index-DQo4XtH4.d.mts} +2 -2
  252. package/dist/{index-CBOtkDdX.d.cts → index-DTJN6JL2.d.cts} +1 -1
  253. package/dist/{index-Bp9ECTzr.d.mts → index-DbKYSbLs.d.mts} +2 -2
  254. package/dist/{index-CW0DW6Aq.d.mts → index-Dg0FPoms.d.mts} +2 -2
  255. package/dist/{index-D_azfqsX.d.mts → index-DlNBgVwb.d.mts} +1 -1
  256. package/dist/{index-HAVWK7RM.d.cts → index-DsBOpK8T.d.mts} +3 -3
  257. package/dist/{index-BlHFb150.d.cts → index-Dvx5TRET.d.cts} +2 -2
  258. package/dist/{index-m1RGSQlP.d.mts → index-Sq75GwA2.d.cts} +3 -3
  259. package/dist/{index-Ba39mhDf.d.cts → index-ZyigJMkV.d.mts} +10 -5
  260. package/dist/{index-HLDMvfb2.d.cts → index-gHMydoIS.d.cts} +4 -4
  261. package/dist/{index-DgLjcrkG.d.cts → index-gxBafJdz.d.cts} +1 -1
  262. package/dist/{index-DjmWIzXF.d.mts → index-hTgl9zwe.d.mts} +2 -2
  263. package/dist/{index-CAICXdTA.d.cts → index-i8BxMDEC.d.mts} +1 -1
  264. package/dist/{index-Bo8Og0oC.d.cts → index-v1I6VA9w.d.cts} +2 -2
  265. package/dist/index.d.cts +1 -1
  266. package/dist/index.d.mts +1 -1
  267. package/dist/style.d.cts +2 -2
  268. package/dist/style.d.mts +2 -2
  269. package/dist/theme.d.cts +2 -2
  270. package/dist/theme.d.mts +2 -2
  271. package/dist/{useTablePagination-BOzuKUnF.d.mts → useTablePagination-CUsagS5T.d.mts} +1 -1
  272. package/dist/{useTablePagination-CraL2Mux.d.cts → useTablePagination-jpEfHKUh.d.cts} +1 -1
  273. package/dist/{useTransition-B-hzi7Sm.d.mts → useTransition-BJ375Sto.d.cts} +1 -1
  274. package/dist/{useTransition-CF_Zy_tM.d.cts → useTransition-DDGpvgci.d.mts} +1 -1
  275. package/package.json +1 -1
  276. package/dist/index-6zQ2VUlM.d.cts +0 -1
  277. package/dist/index-B1qv6yGM.d.mts +0 -1
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "../index-DvVQLBZc.cjs";
2
- import { r as CollapseProps } from "../index-DrfJt7W6.cjs";
1
+ import { nt as Theme } from "../index-C6a3kDn2.cjs";
2
+ import { r as CollapseProps } from "../index-D7h8qFS1.cjs";
3
3
  import { ComponentType, ReactNode, SyntheticEvent } from "react";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
5
5
  /** What an `Accordion` hands the transition that opens and closes its region. */
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "../index-BWiDilH8.mjs";
2
- import { r as CollapseProps } from "../index-D--R4_5H.mjs";
1
+ import { nt as Theme } from "../index-DOH6uskj.mjs";
2
+ import { r as CollapseProps } from "../index-Bhb0bFxe.mjs";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { ComponentType, ReactNode, SyntheticEvent } from "react";
5
5
  /** What an `Accordion` hands the transition that opens and closes its region. */
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "../index-C6a3kDn2.cjs";
2
2
  import { ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  type AccordionGroupVariant = 'separated' | 'attached';
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "../index-DOH6uskj.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ReactNode } from "react";
4
4
  type AccordionGroupVariant = 'separated' | 'attached';
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "../index-C6a3kDn2.cjs";
2
2
  import { MouseEvent, ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "../index-DOH6uskj.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { MouseEvent, ReactNode } from "react";
4
4
  type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
package/dist/AppBar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as FlexProps, nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { dn as FlexProps, nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  /** Valid values for the color prop - derived from theme.background keys. */
3
3
  type AppBarColor = keyof Theme['background'];
4
4
  type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
package/dist/AppBar.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as FlexProps, nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { dn as FlexProps, nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  /** Valid values for the color prop - derived from theme.background keys. */
3
3
  type AppBarColor = keyof Theme['background'];
4
4
  type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { ChangeEvent, KeyboardEvent, ReactNode, SyntheticEvent } from "react";
3
3
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  /** One value for a single field, a list for `multiple`. */
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ChangeEvent, KeyboardEvent, ReactNode, SyntheticEvent } from "react";
4
4
  /** One value for a single field, a list for `multiple`. */
package/dist/Avatar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as FlexProps, nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { dn as FlexProps, nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  type AvatarVariant = 'circular' | 'rounded' | 'square';
3
3
  type AvatarSize = keyof Theme['avatar'];
4
4
  type AvatarRingColor = keyof Theme['border'];
package/dist/Avatar.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as FlexProps, nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { dn as FlexProps, nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  type AvatarVariant = 'circular' | 'rounded' | 'square';
3
3
  type AvatarSize = keyof Theme['avatar'];
4
4
  type AvatarRingColor = keyof Theme['border'];
@@ -1,4 +1,4 @@
1
- import { yn as ViewProps } from "./index-DvVQLBZc.cjs";
1
+ import { yn as ViewProps } from "./index-C6a3kDn2.cjs";
2
2
  type BackdropProps = ViewProps;
3
3
  /**
4
4
  * @description Dimmed overlay rendered behind a modal's content. Defaults to the
@@ -1,4 +1,4 @@
1
- import { yn as ViewProps } from "./index-BWiDilH8.mjs";
1
+ import { yn as ViewProps } from "./index-DOH6uskj.mjs";
2
2
  type BackdropProps = ViewProps;
3
3
  /**
4
4
  * @description Dimmed overlay rendered behind a modal's content. Defaults to the
package/dist/Badge.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  type BadgeVariant = 'standard' | 'dot';
package/dist/Badge.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ReactNode } from "react";
4
4
  type BadgeVariant = 'standard' | 'dot';
@@ -1,6 +1,6 @@
1
- import { jt as TypographyVariant } from "./index-DvVQLBZc.cjs";
2
- import { a as TypographyProps } from "./index-CyOSmefH.cjs";
3
- import { n as IconProps } from "./index-C3TrdOpQ.cjs";
1
+ import { jt as TypographyVariant } from "./index-C6a3kDn2.cjs";
2
+ import { a as TypographyProps } from "./index-DMysZsti.cjs";
3
+ import { n as IconProps } from "./index-DAJ5DVHh.cjs";
4
4
  import { ElementType, ReactNode } from "react";
5
5
  interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
6
6
  /** The crumbs - the app's `Link`s, and the current page as `Typography` or a `Link` with `aria-current="page"`. */
@@ -1,6 +1,6 @@
1
- import { jt as TypographyVariant } from "./index-BWiDilH8.mjs";
2
- import { a as TypographyProps } from "./index-DtVrZFJI.mjs";
3
- import { n as IconProps } from "./index-DjmWIzXF.mjs";
1
+ import { jt as TypographyVariant } from "./index-DOH6uskj.mjs";
2
+ import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
3
+ import { n as IconProps } from "./index-hTgl9zwe.mjs";
4
4
  import { ElementType, ReactNode } from "react";
5
5
  interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
6
6
  /** The crumbs - the app's `Link`s, and the current page as `Typography` or a `Link` with `aria-current="page"`. */
package/dist/Button.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-DgLjcrkG.cjs";
1
+ import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-gxBafJdz.cjs";
2
2
  export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
package/dist/Button.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-Bx-4KmJU.mjs";
1
+ import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-CCEfrBNN.mjs";
2
2
  export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
@@ -1,2 +1,2 @@
1
- import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-D24iFgwR.cjs";
1
+ import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-Sq75GwA2.cjs";
2
2
  export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
@@ -1,2 +1,2 @@
1
- import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-m1RGSQlP.mjs";
1
+ import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-BVDN2XbT.mjs";
2
2
  export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
package/dist/Card.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { ln as PaperProps } from "./index-DvVQLBZc.cjs";
2
- import { a as TypographyProps } from "./index-CyOSmefH.cjs";
3
- import { n as IconProps, r as IconName } from "./index-C3TrdOpQ.cjs";
4
- import "./index-6zQ2VUlM.cjs";
1
+ import { ln as PaperProps } from "./index-C6a3kDn2.cjs";
2
+ import { a as TypographyProps } from "./index-DMysZsti.cjs";
3
+ import { n as IconProps, r as IconName } from "./index-DAJ5DVHh.cjs";
4
+ import "./index-CJMvoc8h.cjs";
5
5
  import { ReactNode } from "react";
6
6
  type CardVariant = 'paper' | 'bracketBox' | 'interactive';
7
7
  interface CardProps extends Omit<PaperProps, 'title'> {
package/dist/Card.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { ln as PaperProps } from "./index-BWiDilH8.mjs";
2
- import { a as TypographyProps } from "./index-DtVrZFJI.mjs";
3
- import { n as IconProps, r as IconName } from "./index-DjmWIzXF.mjs";
4
- import "./index-B1qv6yGM.mjs";
1
+ import { ln as PaperProps } from "./index-DOH6uskj.mjs";
2
+ import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
3
+ import { n as IconProps, r as IconName } from "./index-hTgl9zwe.mjs";
4
+ import "./index-BL5Kj3Ka.mjs";
5
5
  import { ReactNode } from "react";
6
6
  type CardVariant = 'paper' | 'bracketBox' | 'interactive';
7
7
  interface CardProps extends Omit<PaperProps, 'title'> {
@@ -1,4 +1,4 @@
1
- import { U as PaletteColor, nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { U as PaletteColor, nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { ChangeEvent, ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  type CheckboxColor = PaletteColor;
@@ -1,4 +1,4 @@
1
- import { U as PaletteColor, nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { U as PaletteColor, nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ChangeEvent, ReactNode } from "react";
4
4
  type CheckboxColor = PaletteColor;
package/dist/Chip.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { t as Shape } from "./getShapeRadius-CdCQb8OT.cjs";
3
3
  import { MouseEvent, ReactNode, SyntheticEvent } from "react";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
package/dist/Chip.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { t as Shape } from "./getShapeRadius-CdCQb8OT.mjs";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { MouseEvent, ReactNode, SyntheticEvent } from "react";
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
2
- import { n as ButtonColor } from "./index-DgLjcrkG.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
+ import { n as ButtonColor } from "./index-gxBafJdz.cjs";
3
3
  import { HTMLAttributes } from "react";
4
4
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  type CircularProgressVariant = 'indeterminate' | 'determinate';
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
2
- import { n as ButtonColor } from "./index-Bx-4KmJU.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
+ import { n as ButtonColor } from "./index-CCEfrBNN.mjs";
3
3
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { HTMLAttributes } from "react";
5
5
  type CircularProgressVariant = 'indeterminate' | 'determinate';
@@ -1,2 +1,2 @@
1
- import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-DrfJt7W6.cjs";
1
+ import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-D7h8qFS1.cjs";
2
2
  export { Collapse, CollapseOrientation, CollapseProps };
@@ -1,2 +1,2 @@
1
- import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-D--R4_5H.mjs";
1
+ import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-Bhb0bFxe.mjs";
2
2
  export { Collapse, CollapseOrientation, CollapseProps };
package/dist/Drawer.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { cn as PaperElevation } from "./index-DvVQLBZc.cjs";
2
- import { i as ButtonProps } from "./index-DgLjcrkG.cjs";
3
- import "./index-6zQ2VUlM.cjs";
1
+ import { cn as PaperElevation } from "./index-C6a3kDn2.cjs";
2
+ import { i as ButtonProps } from "./index-gxBafJdz.cjs";
3
+ import "./index-CJMvoc8h.cjs";
4
4
  import { ReactNode } from "react";
5
5
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
6
6
  /** Why the drawer closed: the Escape key, or any other dismissal (a click outside, its toggle). */
package/dist/Drawer.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { cn as PaperElevation } from "./index-BWiDilH8.mjs";
2
- import { i as ButtonProps } from "./index-Bx-4KmJU.mjs";
3
- import "./index-B1qv6yGM.mjs";
1
+ import { cn as PaperElevation } from "./index-DOH6uskj.mjs";
2
+ import { i as ButtonProps } from "./index-CCEfrBNN.mjs";
3
+ import "./index-BL5Kj3Ka.mjs";
4
4
  import { ReactNode } from "react";
5
5
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
6
6
  /** Why the drawer closed: the Escape key, or any other dismissal (a click outside, its toggle). */
package/dist/Fab.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FabProps, r as FabVariant, t as Fab } from "./index-DWon54cO.cjs";
1
+ import { n as FabProps, r as FabVariant, t as Fab } from "./index-DACdQ7-d.cjs";
2
2
  export { Fab, FabProps, FabVariant };
package/dist/Fab.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FabProps, r as FabVariant, t as Fab } from "./index-DR76LcSz.mjs";
1
+ import { n as FabProps, r as FabVariant, t as Fab } from "./index-CBHCGizS.mjs";
2
2
  export { Fab, FabProps, FabVariant };
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "../index-C6a3kDn2.cjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  type FabMenuDirection = 'up' | 'down' | 'left' | 'right';
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "../index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "../index-DOH6uskj.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ReactNode, SyntheticEvent } from "react";
4
4
  type FabMenuDirection = 'up' | 'down' | 'left' | 'right';
@@ -1,4 +1,4 @@
1
- import { n as FabProps } from "../index-DWon54cO.cjs";
1
+ import { n as FabProps } from "../index-DACdQ7-d.cjs";
2
2
  import { MouseEvent, ReactNode } from "react";
3
3
  interface FabMenuItemProps extends Omit<FabProps, 'variant' | 'size' | 'isCollapsed' | 'startIcon' | 'children'> {
4
4
  /** An icon before the label. */
@@ -1,4 +1,4 @@
1
- import { n as FabProps } from "../index-DR76LcSz.mjs";
1
+ import { n as FabProps } from "../index-CBHCGizS.mjs";
2
2
  import { MouseEvent, ReactNode } from "react";
3
3
  interface FabMenuItemProps extends Omit<FabProps, 'variant' | 'size' | 'isCollapsed' | 'startIcon' | 'children'> {
4
4
  /** An icon before the label. */
package/dist/Fade.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TransitionProps } from "./useTransition-CF_Zy_tM.cjs";
1
+ import { n as TransitionProps } from "./useTransition-BJ375Sto.cjs";
2
2
  type FadeProps = TransitionProps;
3
3
  /**
4
4
  * @description Fades one child in and out by its opacity. The child holds a `ref` and takes a
package/dist/Fade.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TransitionProps } from "./useTransition-B-hzi7Sm.mjs";
1
+ import { n as TransitionProps } from "./useTransition-DDGpvgci.mjs";
2
2
  type FadeProps = TransitionProps;
3
3
  /**
4
4
  * @description Fades one child in and out by its opacity. The child holds a `ref` and takes a
package/dist/Flex.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-DvVQLBZc.cjs";
1
+ import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-C6a3kDn2.cjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-BWiDilH8.mjs";
1
+ import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-DOH6uskj.mjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Form.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  interface FormProps {
4
4
  children: ReactNode;
package/dist/Form.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { ReactNode, SyntheticEvent } from "react";
3
3
  interface FormProps {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { nt as Theme, yn as ViewProps } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme, yn as ViewProps } from "./index-C6a3kDn2.cjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormControlProps extends Omit<ViewProps, 'color'> {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { nt as Theme, yn as ViewProps } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme, yn as ViewProps } from "./index-DOH6uskj.mjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormControlProps extends Omit<ViewProps, 'color'> {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-CyOSmefH.cjs";
1
+ import { a as TypographyProps } from "./index-DMysZsti.cjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormHelperTextProps extends TypographyProps {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DtVrZFJI.mjs";
1
+ import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormHelperTextProps extends TypographyProps {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-CyOSmefH.cjs";
1
+ import { a as TypographyProps } from "./index-DMysZsti.cjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormLabelProps extends TypographyProps {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DtVrZFJI.mjs";
1
+ import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
2
2
  import { ReactNode } from "react";
3
3
  interface FormLabelProps extends TypographyProps {
4
4
  children: ReactNode;
package/dist/Grid.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme, yn as ViewProps } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme, yn as ViewProps } from "./index-C6a3kDn2.cjs";
2
2
  import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
3
3
  /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
4
4
  type GapToken = keyof Theme['space'];
package/dist/Grid.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme, yn as ViewProps } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme, yn as ViewProps } from "./index-DOH6uskj.mjs";
2
2
  import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
3
3
  /** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
4
4
  type GapToken = keyof Theme['space'];
package/dist/Grow.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TransitionProps } from "./useTransition-CF_Zy_tM.cjs";
1
+ import { n as TransitionProps } from "./useTransition-BJ375Sto.cjs";
2
2
  type GrowProps = TransitionProps;
3
3
  /**
4
4
  * @description Grows one child in from a little smaller, fading as it does, and shrinks it out.
package/dist/Grow.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TransitionProps } from "./useTransition-B-hzi7Sm.mjs";
1
+ import { n as TransitionProps } from "./useTransition-DDGpvgci.mjs";
2
2
  type GrowProps = TransitionProps;
3
3
  /**
4
4
  * @description Grows one child in from a little smaller, fading as it does, and shrinks it out.
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-C3TrdOpQ.cjs";
1
+ import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-DAJ5DVHh.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-DjmWIzXF.mjs";
1
+ import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-hTgl9zwe.mjs";
2
2
  export { Icon, type IconName, IconProps, icons };
package/dist/Image.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
2
  import { CSSProperties, ImgHTMLAttributes } from "react";
3
3
  import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'height' | 'width' | 'color'>, LayoutProps, SpaceProps, BackgroundProps, PositionProps {
package/dist/Image.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
2
  import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { CSSProperties, ImgHTMLAttributes } from "react";
4
4
  interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'height' | 'width' | 'color'>, LayoutProps, SpaceProps, BackgroundProps, PositionProps {
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "./index-DvVQLBZc.cjs";
2
- import { n as ButtonColor } from "./index-DgLjcrkG.cjs";
1
+ import { nt as Theme } from "./index-C6a3kDn2.cjs";
2
+ import { n as ButtonColor } from "./index-gxBafJdz.cjs";
3
3
  import { HTMLAttributes } from "react";
4
4
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
@@ -1,5 +1,5 @@
1
- import { nt as Theme } from "./index-BWiDilH8.mjs";
2
- import { n as ButtonColor } from "./index-Bx-4KmJU.mjs";
1
+ import { nt as Theme } from "./index-DOH6uskj.mjs";
2
+ import { n as ButtonColor } from "./index-CCEfrBNN.mjs";
3
3
  import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { HTMLAttributes } from "react";
5
5
  type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
package/dist/Link.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-CyOSmefH.cjs";
1
+ import { a as TypographyProps } from "./index-DMysZsti.cjs";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
  type LinkUnderline = 'always' | 'hover' | 'none';
4
4
  interface LinkProps extends Omit<TypographyProps, 'as'>, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Omit<TypographyProps, 'as'>> {
package/dist/Link.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as TypographyProps } from "./index-DtVrZFJI.mjs";
1
+ import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
  type LinkUnderline = 'always' | 'hover' | 'none';
4
4
  interface LinkProps extends Omit<TypographyProps, 'as'>, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Omit<TypographyProps, 'as'>> {
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("../src-yC1f5WR2.cjs");
3
3
  const require_theme = require("../theme-XJvMdOnY.cjs");
4
- const require_MenuList = require("../MenuList-DsJmxNPu.cjs");
5
- const require_MenuItem = require("../MenuItem-CvCMGXuL.cjs");
4
+ const require_MenuList = require("../MenuList-CSaaR3jt.cjs");
5
+ const require_MenuItem = require("../MenuItem-Bg4iRvVe.cjs");
6
6
  const require_Menu_MenuItems = require("./MenuItems.cjs");
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -30,7 +30,7 @@ function ContextMenuTarget({ element, onContextMenu, onKeyDown }) {
30
30
  * `Menu` does - Escape, a chosen row or focus leaving - and gives focus back to where it
31
31
  * was. The browser's own menu is held back only when this one opens.
32
32
  */
33
- function ContextMenu({ target, children, items, onClose, onSelect, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, "aria-label": ariaLabel, className, "data-testid": dataTestid }) {
33
+ function ContextMenu({ target, isOpen: isOpenProp, anchorPosition, children, items, onClose, onSelect, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, "aria-label": ariaLabel, className, slotProps, "data-testid": dataTestid }) {
34
34
  const dp = require_theme.useDefaultProps("ContextMenu");
35
35
  const marginThreshold = marginThresholdProp ?? dp.marginThreshold ?? 2;
36
36
  const elevation = elevationProp ?? dp.elevation ?? 8;
@@ -41,7 +41,9 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
41
41
  const size = sizeProp ?? dp.size;
42
42
  const dense = denseProp ?? dp.dense;
43
43
  const theme = require_theme.useTheme();
44
- const [point, setPoint] = (0, react.useState)(null);
44
+ const [openPoint, setOpenPoint] = (0, react.useState)(null);
45
+ const isControlled = isOpenProp !== void 0;
46
+ const point = isControlled ? isOpenProp && anchorPosition || null : openPoint;
45
47
  const isOpen = point !== null;
46
48
  const rootRef = (0, react.useRef)(null);
47
49
  const surfaceRef = (0, react.useRef)(null);
@@ -52,11 +54,13 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
52
54
  align: "start",
53
55
  margin,
54
56
  elevation,
55
- layer
57
+ layer,
58
+ listProps: slotProps?.list
56
59
  }), [
57
60
  margin,
58
61
  elevation,
59
- layer
62
+ layer,
63
+ slotProps?.list
60
64
  ]);
61
65
  require_MenuItem.useMenuPlacement({
62
66
  isOpen,
@@ -67,27 +71,31 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
67
71
  align: "start",
68
72
  margin
69
73
  });
74
+ (0, react.useLayoutEffect)(() => {
75
+ if (isControlled && isOpen) returnFocusRef.current = document.activeElement;
76
+ }, [isControlled, isOpen]);
70
77
  const openAt = (top, left) => {
71
78
  returnFocusRef.current = document.activeElement;
72
- setPoint({
79
+ setOpenPoint({
73
80
  top,
74
81
  left
75
82
  });
76
83
  };
77
84
  const close = (0, react.useCallback)((event, reason) => {
78
- setPoint(null);
85
+ if (!isControlled) setOpenPoint(null);
79
86
  onClose?.(event, reason);
80
- if (reason !== "blur") returnFocusRef.current.focus();
81
- }, [onClose]);
87
+ if (reason !== "blur") returnFocusRef.current?.focus();
88
+ }, [isControlled, onClose]);
82
89
  const handleActivate = (0, react.useCallback)((_value, event) => close(event, "select"), [close]);
83
90
  const handleContextMenu = (event) => {
84
- target.props.onContextMenu?.(event);
91
+ target?.props.onContextMenu?.(event);
92
+ if (isControlled) return;
85
93
  event.preventDefault();
86
94
  openAt(event.clientY, event.clientX);
87
95
  };
88
96
  const handleKeyDown = (event) => {
89
- target.props.onKeyDown?.(event);
90
- if (!isMenuKey(event)) return;
97
+ target?.props.onKeyDown?.(event);
98
+ if (isControlled || !isMenuKey(event)) return;
91
99
  event.preventDefault();
92
100
  const { bottom, left } = event.target.getBoundingClientRect();
93
101
  openAt(bottom, left);
@@ -109,7 +117,7 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
109
117
  className,
110
118
  "data-testid": dataTestid,
111
119
  onBlur: handleBlur,
112
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenuTarget, {
120
+ children: [target && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenuTarget, {
113
121
  element: target,
114
122
  onContextMenu: handleContextMenu,
115
123
  onKeyDown: handleKeyDown
@@ -125,6 +133,7 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
125
133
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuList.MenuActivationContext.Provider, {
126
134
  value: handleActivate,
127
135
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuList.MenuList, {
136
+ ...slotProps?.list,
128
137
  id: listId,
129
138
  "aria-label": ariaLabel,
130
139
  shouldAutoFocus: true,