@soroush.tech/design-system 2.0.0-rc.2 → 2.0.0-rc.3

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 (267) hide show
  1. package/README.md +14 -10
  2. package/dist/AppBar.d.cts +1 -1
  3. package/dist/AppBar.d.mts +1 -1
  4. package/dist/Avatar.d.cts +1 -1
  5. package/dist/Avatar.d.mts +1 -1
  6. package/dist/Backdrop.d.cts +1 -1
  7. package/dist/Backdrop.d.mts +1 -1
  8. package/dist/Breadcrumbs.cjs +1 -1
  9. package/dist/Breadcrumbs.d.cts +3 -3
  10. package/dist/Breadcrumbs.d.mts +3 -3
  11. package/dist/Breadcrumbs.mjs +1 -1
  12. package/dist/Button.d.cts +1 -1
  13. package/dist/Button.d.mts +1 -1
  14. package/dist/ButtonGroup.d.cts +1 -1
  15. package/dist/ButtonGroup.d.mts +1 -1
  16. package/dist/Card.cjs +1 -1
  17. package/dist/Card.d.cts +4 -4
  18. package/dist/Card.d.mts +4 -4
  19. package/dist/Card.mjs +1 -1
  20. package/dist/Checkbox.d.cts +1 -1
  21. package/dist/Checkbox.d.mts +1 -1
  22. package/dist/CircularProgress.d.cts +2 -2
  23. package/dist/CircularProgress.d.mts +2 -2
  24. package/dist/Drawer.d.cts +3 -3
  25. package/dist/Drawer.d.mts +3 -3
  26. package/dist/Flex.d.cts +1 -1
  27. package/dist/Flex.d.mts +1 -1
  28. package/dist/Form.d.cts +1 -1
  29. package/dist/Form.d.mts +1 -1
  30. package/dist/FormControl.cjs +9 -1
  31. package/dist/FormControl.d.cts +9 -1
  32. package/dist/FormControl.d.mts +9 -1
  33. package/dist/FormControl.mjs +9 -1
  34. package/dist/FormHelperText.d.cts +1 -1
  35. package/dist/FormHelperText.d.mts +1 -1
  36. package/dist/FormLabel.cjs +9 -1
  37. package/dist/FormLabel.d.cts +2 -2
  38. package/dist/FormLabel.d.mts +2 -2
  39. package/dist/FormLabel.mjs +10 -2
  40. package/dist/Grid.d.cts +1 -1
  41. package/dist/Grid.d.mts +1 -1
  42. package/dist/{Icon-DlheCTJb.mjs → Icon-BihOAP4u.mjs} +40 -0
  43. package/dist/{Icon-Cvuhp9ek.cjs → Icon-D-EWsBVg.cjs} +40 -0
  44. package/dist/Icon.cjs +1 -1
  45. package/dist/Icon.d.cts +1 -1
  46. package/dist/Icon.d.mts +1 -1
  47. package/dist/Icon.mjs +1 -1
  48. package/dist/Image.d.cts +1 -1
  49. package/dist/Image.d.mts +1 -1
  50. package/dist/InputRange.cjs +675 -0
  51. package/dist/InputRange.d.cts +79 -0
  52. package/dist/InputRange.d.mts +79 -0
  53. package/dist/InputRange.mjs +673 -0
  54. package/dist/LinearProgress.d.cts +2 -2
  55. package/dist/LinearProgress.d.mts +2 -2
  56. package/dist/Link.d.cts +1 -1
  57. package/dist/Link.d.mts +1 -1
  58. package/dist/Menu/ContextMenu.cjs +1 -1
  59. package/dist/Menu/ContextMenu.d.cts +5 -5
  60. package/dist/Menu/ContextMenu.d.mts +5 -5
  61. package/dist/Menu/ContextMenu.mjs +1 -1
  62. package/dist/Menu/Menu.cjs +1 -1
  63. package/dist/Menu/Menu.d.cts +1 -1
  64. package/dist/Menu/Menu.d.mts +1 -1
  65. package/dist/Menu/Menu.mjs +1 -1
  66. package/dist/Menu/MenuItems.cjs +1 -1
  67. package/dist/Menu/MenuItems.d.cts +1 -1
  68. package/dist/Menu/MenuItems.d.mts +1 -1
  69. package/dist/Menu/MenuItems.mjs +1 -1
  70. package/dist/Menu/MenuList.d.cts +2 -2
  71. package/dist/Menu/MenuList.d.mts +2 -2
  72. package/dist/{Menu-BkKPTOfh.cjs → Menu-Cgg-sX4W.cjs} +3 -2
  73. package/dist/{Menu-tECbAEFj.mjs → Menu-CrzHc_cn.mjs} +2 -1
  74. package/dist/Menu.cjs +1 -1
  75. package/dist/Menu.d.cts +3 -3
  76. package/dist/Menu.d.mts +3 -3
  77. package/dist/Menu.mjs +1 -1
  78. package/dist/{MenuItem-CfdN4axw.cjs → MenuItem-BTP7Ijwi.cjs} +6 -17
  79. package/dist/{MenuItem-BR7ingQx.mjs → MenuItem-DUn4IZKK.mjs} +3 -8
  80. package/dist/MenuItem.cjs +1 -1
  81. package/dist/MenuItem.d.cts +1 -1
  82. package/dist/MenuItem.d.mts +1 -1
  83. package/dist/MenuItem.mjs +1 -1
  84. package/dist/{MenuListContext-Dml16k0X.d.mts → MenuListContext-DKUOhNyw.d.cts} +2 -2
  85. package/dist/{MenuListContext-vujGcRk9.d.cts → MenuListContext-x-7lH4CH.d.mts} +2 -2
  86. package/dist/Modal.d.cts +1 -1
  87. package/dist/Modal.d.mts +1 -1
  88. package/dist/NativeSelect.cjs +8 -7
  89. package/dist/NativeSelect.d.cts +3 -3
  90. package/dist/NativeSelect.d.mts +3 -3
  91. package/dist/NativeSelect.mjs +8 -7
  92. package/dist/NumberField.cjs +476 -0
  93. package/dist/NumberField.d.cts +74 -0
  94. package/dist/NumberField.d.mts +74 -0
  95. package/dist/NumberField.mjs +474 -0
  96. package/dist/Pagination/PaginationItem.cjs +1 -1
  97. package/dist/Pagination/PaginationItem.d.cts +1 -1
  98. package/dist/Pagination/PaginationItem.d.mts +1 -1
  99. package/dist/Pagination/PaginationItem.mjs +1 -1
  100. package/dist/Pagination.d.cts +2 -2
  101. package/dist/Pagination.d.mts +2 -2
  102. package/dist/Paper.d.cts +2 -2
  103. package/dist/Paper.d.mts +2 -2
  104. package/dist/Popover.d.cts +3 -3
  105. package/dist/Popover.d.mts +3 -3
  106. package/dist/Pressable.d.cts +1 -1
  107. package/dist/Pressable.d.mts +1 -1
  108. package/dist/Quote.d.cts +2 -2
  109. package/dist/Quote.d.mts +2 -2
  110. package/dist/Radio.d.cts +1 -1
  111. package/dist/Radio.d.mts +1 -1
  112. package/dist/Rating.cjs +373 -0
  113. package/dist/Rating.d.cts +57 -0
  114. package/dist/Rating.d.mts +57 -0
  115. package/dist/Rating.mjs +371 -0
  116. package/dist/Select.cjs +3 -2
  117. package/dist/Select.d.cts +3 -3
  118. package/dist/Select.d.mts +3 -3
  119. package/dist/Select.mjs +5 -4
  120. package/dist/Sidebar/Sidebar.d.cts +1 -1
  121. package/dist/Sidebar/Sidebar.d.mts +1 -1
  122. package/dist/Sidebar/SidebarItem.cjs +1 -1
  123. package/dist/Sidebar/SidebarItem.d.cts +3 -3
  124. package/dist/Sidebar/SidebarItem.d.mts +3 -3
  125. package/dist/Sidebar/SidebarItem.mjs +3 -3
  126. package/dist/Skeleton.d.cts +1 -1
  127. package/dist/Skeleton.d.mts +1 -1
  128. package/dist/Switch.cjs +22 -15
  129. package/dist/Switch.d.cts +2 -2
  130. package/dist/Switch.d.mts +2 -2
  131. package/dist/Switch.mjs +24 -17
  132. package/dist/Table/Table.d.cts +2 -2
  133. package/dist/Table/Table.d.mts +2 -2
  134. package/dist/Table/TableBody.d.cts +1 -1
  135. package/dist/Table/TableBody.d.mts +1 -1
  136. package/dist/Table/TableCell.d.cts +1 -1
  137. package/dist/Table/TableCell.d.mts +1 -1
  138. package/dist/Table/TableContainer.d.cts +1 -1
  139. package/dist/Table/TableContainer.d.mts +1 -1
  140. package/dist/Table/TableControl.d.cts +1 -1
  141. package/dist/Table/TableControl.d.mts +1 -1
  142. package/dist/Table/TableControl.mjs +2 -2
  143. package/dist/Table/TableFooter.d.cts +1 -1
  144. package/dist/Table/TableFooter.d.mts +1 -1
  145. package/dist/Table/TableHead.d.cts +1 -1
  146. package/dist/Table/TableHead.d.mts +1 -1
  147. package/dist/Table/TablePagination.d.cts +2 -2
  148. package/dist/Table/TablePagination.d.mts +2 -2
  149. package/dist/Table/TablePaginationActions.d.cts +1 -1
  150. package/dist/Table/TablePaginationActions.d.mts +1 -1
  151. package/dist/Table/TableRow.d.cts +1 -1
  152. package/dist/Table/TableRow.d.mts +1 -1
  153. package/dist/Table/TableSortLabel.cjs +1 -1
  154. package/dist/Table/TableSortLabel.d.cts +1 -1
  155. package/dist/Table/TableSortLabel.d.mts +1 -1
  156. package/dist/Table/TableSortLabel.mjs +1 -1
  157. package/dist/Table/hooks.d.cts +1 -1
  158. package/dist/Table/hooks.d.mts +1 -1
  159. package/dist/Table.d.cts +5 -5
  160. package/dist/Table.d.mts +5 -5
  161. package/dist/{TableContext-6PgGpUzM.d.mts → TableContext-DhuRf6Wy.d.mts} +1 -1
  162. package/dist/{TableContext-CBGk-Lh8.d.cts → TableContext-Duj1nVG7.d.cts} +1 -1
  163. package/dist/Tabs/Tab.cjs +1 -1
  164. package/dist/Tabs/Tab.d.cts +2 -2
  165. package/dist/Tabs/Tab.d.mts +2 -2
  166. package/dist/Tabs/Tab.mjs +1 -1
  167. package/dist/Tabs/TabContext.d.cts +1 -1
  168. package/dist/Tabs/TabContext.d.mts +1 -1
  169. package/dist/Tabs/TabList.cjs +1 -1
  170. package/dist/Tabs/TabList.d.cts +1 -1
  171. package/dist/Tabs/TabList.d.mts +1 -1
  172. package/dist/Tabs/TabList.mjs +1 -1
  173. package/dist/Tabs/TabPanel.d.cts +2 -2
  174. package/dist/Tabs/TabPanel.d.mts +2 -2
  175. package/dist/Tabs/TabScrollButton.cjs +1 -1
  176. package/dist/Tabs/TabScrollButton.d.cts +1 -1
  177. package/dist/Tabs/TabScrollButton.d.mts +1 -1
  178. package/dist/Tabs/TabScrollButton.mjs +1 -1
  179. package/dist/Tabs/Tabs.cjs +1 -1
  180. package/dist/Tabs/Tabs.d.cts +2 -2
  181. package/dist/Tabs/Tabs.d.mts +2 -2
  182. package/dist/Tabs/Tabs.mjs +1 -1
  183. package/dist/{Tabs-YfCUbkQV.mjs → Tabs-BTNOJx5v.mjs} +4 -3
  184. package/dist/{Tabs-D_wkX-Jb.cjs → Tabs-D4tWCq78.cjs} +7 -6
  185. package/dist/Tabs.cjs +1 -1
  186. package/dist/Tabs.d.cts +3 -3
  187. package/dist/Tabs.d.mts +3 -3
  188. package/dist/Tabs.mjs +1 -1
  189. package/dist/{TabsContext-C2agsLBN.d.cts → TabsContext-B_XHbjcS.d.cts} +1 -1
  190. package/dist/{TabsContext-DqyxdmGW.d.mts → TabsContext-Dn2kqUwr.d.mts} +1 -1
  191. package/dist/TextInput.cjs +3 -3
  192. package/dist/TextInput.d.cts +2 -2
  193. package/dist/TextInput.d.mts +2 -2
  194. package/dist/TextInput.mjs +3 -3
  195. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  196. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  197. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  198. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  199. package/dist/TransferList.cjs +356 -0
  200. package/dist/TransferList.d.cts +67 -0
  201. package/dist/TransferList.d.mts +67 -0
  202. package/dist/TransferList.mjs +354 -0
  203. package/dist/Typography.d.cts +2 -2
  204. package/dist/Typography.d.mts +2 -2
  205. package/dist/View.d.cts +1 -1
  206. package/dist/View.d.mts +1 -1
  207. package/dist/catalog.cjs +476 -18
  208. package/dist/catalog.d.cts +1 -1
  209. package/dist/catalog.d.mts +1 -1
  210. package/dist/catalog.mjs +476 -18
  211. package/dist/engine.d.cts +1 -1
  212. package/dist/engine.d.mts +1 -1
  213. package/dist/{index-DCmH5f9I.d.cts → index-B1RFybA_.d.mts} +2 -2
  214. package/dist/{index-Cj5Rhh_9.d.mts → index-B4TeaB7b.d.cts} +2 -2
  215. package/dist/{index-DIC7HKpP.d.mts → index-BGbTuHP9.d.mts} +1 -1
  216. package/dist/{index-BiVvxOvj.d.cts → index-BHKgEOZJ.d.cts} +2 -2
  217. package/dist/{index-BbgFYfX_.d.mts → index-BQWjh4rK.d.mts} +2 -2
  218. package/dist/{index-DJCpnTH3.d.mts → index-BelFIizY.d.cts} +3 -3
  219. package/dist/{index-C3KrFPCj.d.mts → index-BkzZxHVj.d.mts} +2 -2
  220. package/dist/{index-B8DNxyEw.d.mts → index-BrgwkY6z.d.mts} +2 -2
  221. package/dist/{index-DqjXDutI.d.mts → index-Bx0-6yeX.d.mts} +1 -1
  222. package/dist/index-BxVTIMnB.d.cts +1 -0
  223. package/dist/{index-Bhdn4KTy.d.cts → index-ByYxVl9O.d.mts} +3 -3
  224. package/dist/{index-gnh-Oe0n.d.cts → index-CE5JG1us.d.mts} +1 -1
  225. package/dist/{index-XxydXX8l.d.cts → index-CG_1uPrD.d.mts} +2 -2
  226. package/dist/{index-CVNJEUwJ.d.mts → index-CJhK7JND.d.mts} +49 -1
  227. package/dist/{index-BjfPEP_5.d.cts → index-CQfJZADG.d.cts} +2 -2
  228. package/dist/{index-DrVYWt-X.d.mts → index-CUz2h5xY.d.mts} +1 -1
  229. package/dist/{index-CrIxI8Na.d.mts → index-CbFaWtjK.d.mts} +2 -2
  230. package/dist/{index-BFruxTHv.d.cts → index-ChXeKJCk.d.cts} +1 -1
  231. package/dist/{index-DQcnJ5H4.d.cts → index-CknoXDLQ.d.cts} +2 -2
  232. package/dist/{index-IdMqR82e.d.cts → index-ClZyaZrR.d.mts} +2 -2
  233. package/dist/{index-Bxd9NOWb.d.mts → index-DAwcmIjN.d.cts} +2 -2
  234. package/dist/{index-CWnbCxgw.d.cts → index-DGnXJwLj.d.mts} +4 -4
  235. package/dist/{index-DmJ7yWWi.d.cts → index-DJ0f69wh.d.cts} +49 -1
  236. package/dist/{index-DckSub2J.d.mts → index-DWjz5ZzG.d.cts} +4 -4
  237. package/dist/{index-DXhMkjQ6.d.cts → index-DYF8sRE-.d.cts} +2 -2
  238. package/dist/index-DaIIo5QU.d.mts +1 -0
  239. package/dist/{index-BVPrG1L0.d.mts → index-DchHf5cF.d.cts} +1 -1
  240. package/dist/{index-BlLH6rlE.d.cts → index-DtYjdBvO.d.cts} +2 -2
  241. package/dist/{index-BqpS_Huq.d.mts → index-Dv_fk1_F.d.cts} +19 -3
  242. package/dist/{index-BSA6SKao.d.mts → index-K5exjvnX.d.cts} +2 -2
  243. package/dist/{index-BjPX49XA.d.mts → index-KnXhlKMr.d.cts} +1 -1
  244. package/dist/{index-B3LIhqHR.d.cts → index-WHFhjfgy.d.cts} +4 -4
  245. package/dist/{index-BCnKYNlZ.d.cts → index-YKrfFC_I.d.cts} +1 -1
  246. package/dist/{index-CoEqjFYn.d.mts → index-bpnLB_4K.d.mts} +4 -4
  247. package/dist/{index-DDJuUfL5.d.cts → index-h4dYtVrp.d.mts} +1 -1
  248. package/dist/{index-qlfNErNd.d.cts → index-ha1WjSZ5.d.mts} +19 -3
  249. package/dist/{index-DuVNRXP4.d.cts → index-nqUA_6J_.d.cts} +1 -1
  250. package/dist/{index-DeDxYlSQ.d.mts → index-pTNq3iQn.d.mts} +2 -2
  251. package/dist/index.d.cts +1 -1
  252. package/dist/index.d.mts +1 -1
  253. package/dist/isRtl-BJDtm86G.mjs +7 -0
  254. package/dist/isRtl-DTkYHRPo.cjs +12 -0
  255. package/dist/precision-B1lhxnnO.mjs +25 -0
  256. package/dist/precision-B58cTPB2.cjs +48 -0
  257. package/dist/style.d.cts +2 -2
  258. package/dist/style.d.mts +2 -2
  259. package/dist/theme.d.cts +3 -3
  260. package/dist/theme.d.mts +3 -3
  261. package/dist/useControlled-C666KpQ0.cjs +18 -0
  262. package/dist/useControlled-CBRLsO-H.mjs +13 -0
  263. package/dist/{useTablePagination-C5VKtqDp.d.cts → useTablePagination-C-u3ru4N.d.cts} +1 -1
  264. package/dist/{useTablePagination-C6LSlt3w.d.mts → useTablePagination-D-39ZmQh.d.mts} +1 -1
  265. package/package.json +42 -2
  266. package/dist/index-DBteSahY.d.cts +0 -1
  267. package/dist/index-_G1osn09.d.mts +0 -1
package/dist/Switch.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  import { ChangeEvent, ReactNode } from "react";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Switch/Switch.d.ts
@@ -36,6 +36,6 @@ interface SwitchProps extends SpaceProps<Theme> {
36
36
  'aria-describedby'?: string;
37
37
  'data-testid'?: string;
38
38
  }
39
- declare function Switch({ checked, defaultChecked, disabled, disableRipple: _disableRipple, color, size, variant: variantProp, marked, bg, edge, icon, checkedIcon, onChange, id, required, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<SwitchProps>): import("react").JSX.Element;
39
+ declare function Switch({ checked, defaultChecked, disabled: disabledProp, disableRipple: _disableRipple, color: colorProp, size: sizeProp, variant: variantProp, marked, bg, edge, icon, checkedIcon, onChange, id: idProp, required: requiredProp, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<SwitchProps>): import("react").JSX.Element;
40
40
  //#endregion
41
41
  export { Switch, SwitchColor, SwitchEdge, SwitchProps, SwitchSize, SwitchVariant };
package/dist/Switch.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "./index-CJhK7JND.mjs";
2
2
  import { SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ChangeEvent, ReactNode } from "react";
4
4
  //#region src/Switch/Switch.d.ts
@@ -36,6 +36,6 @@ interface SwitchProps extends SpaceProps<Theme> {
36
36
  'aria-describedby'?: string;
37
37
  'data-testid'?: string;
38
38
  }
39
- declare function Switch({ checked, defaultChecked, disabled, disableRipple: _disableRipple, color, size, variant: variantProp, marked, bg, edge, icon, checkedIcon, onChange, id, required, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<SwitchProps>): import("react").JSX.Element;
39
+ declare function Switch({ checked, defaultChecked, disabled: disabledProp, disableRipple: _disableRipple, color: colorProp, size: sizeProp, variant: variantProp, marked, bg, edge, icon, checkedIcon, onChange, id: idProp, required: requiredProp, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<SwitchProps>): import("react").JSX.Element;
40
40
  //#endregion
41
41
  export { Switch, SwitchColor, SwitchEdge, SwitchProps, SwitchSize, SwitchVariant };
package/dist/Switch.mjs CHANGED
@@ -2,8 +2,9 @@ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
3
  import { alpha } from "./utils.mjs";
4
4
  import { r as useTheme } from "./theme-Z9_QludW.mjs";
5
+ import { useFormControl } from "./FormControl.mjs";
5
6
  import "react";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
8
  //#region src/Switch/Switch.tsx
8
9
  const OUTSIDE_TRACK = {
9
10
  sm: {
@@ -63,10 +64,7 @@ const INSIDE_TRANSLATE = {
63
64
  md: "20px",
64
65
  lg: "24px"
65
66
  };
66
- const knownSize = (size, theme) => {
67
- const resolved = size ?? themeDefault(theme, "size", "md");
68
- return resolved === "sm" || resolved === "lg" ? resolved : "md";
69
- };
67
+ const knownSize = (size) => size === "sm" || size === "lg" ? size : "md";
70
68
  const CheckMarkIcon = () => /* @__PURE__ */ jsx("svg", {
71
69
  viewBox: "0 0 12 12",
72
70
  width: "0.6em",
@@ -118,15 +116,15 @@ const SwitchTrack = styled("span", {
118
116
  display: "inline-block",
119
117
  position: "relative",
120
118
  flexShrink: 0,
121
- width: OUTSIDE_TRACK[knownSize(size, theme)].width,
122
- height: OUTSIDE_THUMB[knownSize(size, theme)],
119
+ width: OUTSIDE_TRACK[knownSize(size)].width,
120
+ height: OUTSIDE_THUMB[knownSize(size)],
123
121
  "&::before": {
124
122
  content: "\"\"",
125
123
  position: "absolute",
126
124
  top: "50%",
127
125
  left: 0,
128
126
  right: 0,
129
- height: OUTSIDE_TRACK[knownSize(size, theme)].height,
127
+ height: OUTSIDE_TRACK[knownSize(size)].height,
130
128
  transform: "translateY(-50%)",
131
129
  borderRadius: "999px",
132
130
  backgroundColor: trackBg,
@@ -137,8 +135,8 @@ const SwitchTrack = styled("span", {
137
135
  display: "inline-block",
138
136
  position: "relative",
139
137
  flexShrink: 0,
140
- width: INSIDE_TRACK[knownSize(size, theme)].width,
141
- height: INSIDE_TRACK[knownSize(size, theme)].height,
138
+ width: INSIDE_TRACK[knownSize(size)].width,
139
+ height: INSIDE_TRACK[knownSize(size)].height,
142
140
  borderRadius: "999px",
143
141
  backgroundColor: trackBg,
144
142
  transition: "background-color 0.3s ease"
@@ -150,8 +148,8 @@ const SwitchThumb = styled("span", {
150
148
  label: "SwitchThumb",
151
149
  shouldForwardProp: (p) => p !== "size" && p !== "variant"
152
150
  })(({ size, variant = "outside", theme }) => {
153
- const thumbSize = variant === "outside" ? OUTSIDE_THUMB[knownSize(size, theme)] : INSIDE_THUMB[knownSize(size, theme)];
154
- const thumbStart = variant === "outside" ? OUTSIDE_THUMB_START[knownSize(size, theme)] : INSIDE_THUMB_START[knownSize(size, theme)];
151
+ const thumbSize = variant === "outside" ? OUTSIDE_THUMB[knownSize(size)] : INSIDE_THUMB[knownSize(size)];
152
+ const thumbStart = variant === "outside" ? OUTSIDE_THUMB_START[knownSize(size)] : INSIDE_THUMB_START[knownSize(size)];
155
153
  const transitionDuration = variant === "inside" ? "0.3s" : "0.15s";
156
154
  return {
157
155
  position: "absolute",
@@ -183,7 +181,7 @@ const shouldForwardProp = createShouldForwardProp([
183
181
  ]);
184
182
  const baseStyle = ({ disabled, size, variant = "outside", theme, color = themeDefault(theme, "neutralColor", "default") }) => {
185
183
  const focusRing = theme.palette[themeDefault(theme, "color", "primary")].main;
186
- const thumbTranslate = variant === "outside" ? OUTSIDE_TRANSLATE[knownSize(size, theme)] : INSIDE_TRANSLATE[knownSize(size, theme)];
184
+ const thumbTranslate = variant === "outside" ? OUTSIDE_TRANSLATE[knownSize(size)] : INSIDE_TRANSLATE[knownSize(size)];
187
185
  const gap = theme?.space?.[1];
188
186
  return {
189
187
  display: "inline-flex",
@@ -249,7 +247,7 @@ const baseStyle = ({ disabled, size, variant = "outside", theme, color = themeDe
249
247
  };
250
248
  };
251
249
  const colorStyle = ({ theme, color = themeDefault(theme, "neutralColor", "default") }) => {
252
- return { color: theme.palette[color].main };
250
+ return { color: color === "default" ? theme.text.secondary : theme.palette[color].main };
253
251
  };
254
252
  const edgeStyle = ({ edge }) => {
255
253
  if (!edge) return {};
@@ -264,8 +262,17 @@ const SwitchRoot = styled("label", {
264
262
  shouldForwardProp,
265
263
  systemProps: [src_exports.space]
266
264
  })(baseStyle, colorStyle, edgeStyle);
267
- function Switch({ checked, defaultChecked, disabled = false, disableRipple: _disableRipple, color, size, variant: variantProp, marked = false, bg, edge = false, icon, checkedIcon, onChange, id, required, children, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "data-testid": dataTestid, ...spaceProps }) {
265
+ function Switch({ checked, defaultChecked, disabled: disabledProp, disableRipple: _disableRipple, color: colorProp, size: sizeProp, variant: variantProp, marked = false, bg, edge = false, icon, checkedIcon, onChange, id: idProp, required: requiredProp, children, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "data-testid": dataTestid, ...spaceProps }) {
268
266
  const theme = useTheme();
267
+ const fc = useFormControl({
268
+ id: idProp,
269
+ disabled: disabledProp,
270
+ required: requiredProp,
271
+ size: sizeProp
272
+ });
273
+ const { id, disabled, required, size } = fc;
274
+ const color = colorProp ?? fc.color;
275
+ const describedBy = ariaDescribedby ?? fc["aria-describedby"];
269
276
  const variant = variantProp ?? themeDefault(theme, "switchVariant", "outside");
270
277
  const effectiveIcon = icon ?? (marked && variant === "outside" ? /* @__PURE__ */ jsx(XMarkIcon, {}) : null);
271
278
  const effectiveCheckedIcon = checkedIcon ?? (marked && variant === "outside" ? /* @__PURE__ */ jsx(CheckMarkIcon, {}) : null);
@@ -296,14 +303,14 @@ function Switch({ checked, defaultChecked, disabled = false, disableRipple: _dis
296
303
  onKeyDown: handleKeyDown,
297
304
  "aria-label": ariaLabel,
298
305
  "aria-labelledby": ariaLabelledby,
299
- "aria-describedby": ariaDescribedby
306
+ "aria-describedby": describedBy
300
307
  }),
301
308
  /* @__PURE__ */ jsxs(SwitchTrack, {
302
309
  className: "sw-track",
303
310
  size,
304
311
  variant,
305
312
  bg,
306
- children: [variant === "inside" && marked && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
313
+ children: [variant === "inside" && marked && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
307
314
  className: "sw-track-check",
308
315
  children: /* @__PURE__ */ jsx(CheckMarkIcon, {})
309
316
  }), /* @__PURE__ */ jsx("span", {
@@ -1,5 +1,5 @@
1
- import { M as PaletteColor, V as Theme } from "../index-DmJ7yWWi.cjs";
2
- import { t as TableCellPadding } from "../TableContext-CBGk-Lh8.cjs";
1
+ import { P as PaletteColor, W as Theme } from "../index-DJ0f69wh.cjs";
2
+ import { t as TableCellPadding } from "../TableContext-Duj1nVG7.cjs";
3
3
  import { ElementType, TableHTMLAttributes } from "react";
4
4
  import { BorderProps, LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/Table/Table/Table.d.ts
@@ -1,5 +1,5 @@
1
- import { M as PaletteColor, V as Theme } from "../index-CVNJEUwJ.mjs";
2
- import { t as TableCellPadding } from "../TableContext-6PgGpUzM.mjs";
1
+ import { P as PaletteColor, W as Theme } from "../index-CJhK7JND.mjs";
2
+ import { t as TableCellPadding } from "../TableContext-DhuRf6Wy.mjs";
3
3
  import { BorderProps, LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { ElementType, TableHTMLAttributes } from "react";
5
5
  //#region src/Table/Table/Table.d.ts
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "../index-DJ0f69wh.cjs";
2
2
  import { ElementType, HTMLAttributes } from "react";
3
3
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Table/TableBody/TableBody.d.ts
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "../index-CJhK7JND.mjs";
2
2
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  //#region src/Table/TableBody/TableBody.d.ts
@@ -1,2 +1,2 @@
1
- import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-Bhdn4KTy.cjs";
1
+ import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-BelFIizY.cjs";
2
2
  export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
@@ -1,2 +1,2 @@
1
- import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-DJCpnTH3.mjs";
1
+ import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-ByYxVl9O.mjs";
2
2
  export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "../index-DmJ7yWWi.cjs";
1
+ import { W as Theme, nn as ViewProps } from "../index-DJ0f69wh.cjs";
2
2
  //#region src/Table/TableContainer/TableContainer.d.ts
3
3
  type TableContainerProps = ViewProps;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Qt as ViewProps, V as Theme } from "../index-CVNJEUwJ.mjs";
1
+ import { W as Theme, nn as ViewProps } from "../index-CJhK7JND.mjs";
2
2
  //#region src/Table/TableContainer/TableContainer.d.ts
3
3
  type TableContainerProps = ViewProps;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-C5VKtqDp.cjs";
1
+ import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-C-u3ru4N.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/Table/TableControl/TableControl.d.ts
4
4
  interface TableControlProps<T, K extends string = string> {
@@ -1,4 +1,4 @@
1
- import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-C6LSlt3w.mjs";
1
+ import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-D-39ZmQh.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/Table/TableControl/TableControl.d.ts
4
4
  interface TableControlProps<T, K extends string = string> {
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from "react";
2
- import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
3
3
  //#region src/Table/TableControl/TableControl.tsx
4
4
  const defaultSortFunction = (a, b, orderBy) => {
5
5
  const first = a[orderBy];
@@ -36,7 +36,7 @@ function TableControl({ data, sort, pagination, sortFunction = defaultSortFuncti
36
36
  pagination,
37
37
  sortFunction
38
38
  ]);
39
- return /* @__PURE__ */ jsx(Fragment, { children: rows.map(children) });
39
+ return /* @__PURE__ */ jsx(Fragment$1, { children: rows.map(children) });
40
40
  }
41
41
  //#endregion
42
42
  export { TableControl };
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "../index-DJ0f69wh.cjs";
2
2
  import { ElementType, HTMLAttributes } from "react";
3
3
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Table/TableFooter/TableFooter.d.ts
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "../index-CJhK7JND.mjs";
2
2
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  //#region src/Table/TableFooter/TableFooter.d.ts
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "../index-DJ0f69wh.cjs";
2
2
  import { ElementType, HTMLAttributes } from "react";
3
3
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Table/TableHead/TableHead.d.ts
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "../index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "../index-CJhK7JND.mjs";
2
2
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  //#region src/Table/TableHead/TableHead.d.ts
@@ -1,5 +1,5 @@
1
- import { o as TableCellProps } from "../index-Bhdn4KTy.cjs";
2
- import { t as TablePaginationActionType } from "../index-BlLH6rlE.cjs";
1
+ import { o as TableCellProps } from "../index-BelFIizY.cjs";
2
+ import { t as TablePaginationActionType } from "../index-DtYjdBvO.cjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/Table/TablePagination/TablePagination.d.ts
5
5
  interface TablePaginationDisplayedRowsInfo {
@@ -1,5 +1,5 @@
1
- import { o as TableCellProps } from "../index-DJCpnTH3.mjs";
2
- import { t as TablePaginationActionType } from "../index-CrIxI8Na.mjs";
1
+ import { o as TableCellProps } from "../index-ByYxVl9O.mjs";
2
+ import { t as TablePaginationActionType } from "../index-CbFaWtjK.mjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/Table/TablePagination/TablePagination.d.ts
5
5
  interface TablePaginationDisplayedRowsInfo {
@@ -1,2 +1,2 @@
1
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-BlLH6rlE.cjs";
1
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DtYjdBvO.cjs";
2
2
  export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
@@ -1,2 +1,2 @@
1
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-CrIxI8Na.mjs";
1
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-CbFaWtjK.mjs";
2
2
  export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
@@ -1,4 +1,4 @@
1
- import { M as PaletteColor, V as Theme } from "../index-DmJ7yWWi.cjs";
1
+ import { P as PaletteColor, W as Theme } from "../index-DJ0f69wh.cjs";
2
2
  import { ElementType, HTMLAttributes } from "react";
3
3
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  //#region src/Table/TableRow/TableRow.d.ts
@@ -1,4 +1,4 @@
1
- import { M as PaletteColor, V as Theme } from "../index-CVNJEUwJ.mjs";
1
+ import { P as PaletteColor, W as Theme } from "../index-CJhK7JND.mjs";
2
2
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  //#region src/Table/TableRow/TableRow.d.ts
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("../src-DU81aGy9.cjs");
3
- const require_Icon = require("../Icon-Cvuhp9ek.cjs");
3
+ const require_Icon = require("../Icon-D-EWsBVg.cjs");
4
4
  const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  let react = require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,2 +1,2 @@
1
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DXhMkjQ6.cjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DYF8sRE-.cjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,2 +1,2 @@
1
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DeDxYlSQ.mjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-pTNq3iQn.mjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,5 +1,5 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-DLGYOJMh.mjs";
2
- import { t as Icon } from "../Icon-DlheCTJb.mjs";
2
+ import { t as Icon } from "../Icon-BihOAP4u.mjs";
3
3
  import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
4
4
  import { useContext } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-C5VKtqDp.cjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-C-u3ru4N.cjs";
2
2
  //#region src/Table/hooks/useTableSelection.d.ts
3
3
  /** Header select-all state - spreads directly onto `Checkbox`. */
4
4
  interface TableSelectionAllProps {
@@ -1,4 +1,4 @@
1
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-C6LSlt3w.mjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-D-39ZmQh.mjs";
2
2
  //#region src/Table/hooks/useTableSelection.d.ts
3
3
  /** Header select-all state - spreads directly onto `Checkbox`. */
4
4
  interface TableSelectionAllProps {
package/dist/Table.d.cts CHANGED
@@ -1,14 +1,14 @@
1
- import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-CBGk-Lh8.cjs";
1
+ import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-Duj1nVG7.cjs";
2
2
  import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.cjs";
3
3
  import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.cjs";
4
- import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-Bhdn4KTy.cjs";
4
+ import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-BelFIizY.cjs";
5
5
  import { TableContainer, TableContainerProps } from "./Table/TableContainer.cjs";
6
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DXhMkjQ6.cjs";
7
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-C5VKtqDp.cjs";
6
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DYF8sRE-.cjs";
7
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-C-u3ru4N.cjs";
8
8
  import { TableControl, TableControlProps } from "./Table/TableControl.cjs";
9
9
  import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.cjs";
10
10
  import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.cjs";
11
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-BlLH6rlE.cjs";
11
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-DtYjdBvO.cjs";
12
12
  import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.cjs";
13
13
  import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.cjs";
14
14
  import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.cjs";
package/dist/Table.d.mts CHANGED
@@ -1,14 +1,14 @@
1
- import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-6PgGpUzM.mjs";
1
+ import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-DhuRf6Wy.mjs";
2
2
  import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.mjs";
3
3
  import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.mjs";
4
- import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-DJCpnTH3.mjs";
4
+ import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-ByYxVl9O.mjs";
5
5
  import { TableContainer, TableContainerProps } from "./Table/TableContainer.mjs";
6
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DeDxYlSQ.mjs";
7
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-C6LSlt3w.mjs";
6
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-pTNq3iQn.mjs";
7
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-D-39ZmQh.mjs";
8
8
  import { TableControl, TableControlProps } from "./Table/TableControl.mjs";
9
9
  import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.mjs";
10
10
  import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.mjs";
11
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-CrIxI8Na.mjs";
11
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-CbFaWtjK.mjs";
12
12
  import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.mjs";
13
13
  import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.mjs";
14
14
  import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.mjs";
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-CVNJEUwJ.mjs";
1
+ import { W as Theme } from "./index-CJhK7JND.mjs";
2
2
  //#region src/Table/TableContext.d.ts
3
3
  /** Cell padding modes broadcast from `Table` to descendant cells. */
4
4
  type TableCellPadding = 'normal' | 'none';
@@ -1,4 +1,4 @@
1
- import { V as Theme } from "./index-DmJ7yWWi.cjs";
1
+ import { W as Theme } from "./index-DJ0f69wh.cjs";
2
2
  //#region src/Table/TableContext.d.ts
3
3
  /** Cell padding modes broadcast from `Table` to descendant cells. */
4
4
  type TableCellPadding = 'normal' | 'none';
package/dist/Tabs/Tab.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_theme = require("../theme-BxXuXRgQ.cjs");
4
- const require_Icon = require("../Icon-Cvuhp9ek.cjs");
4
+ const require_Icon = require("../Icon-D-EWsBVg.cjs");
5
5
  const require_dividerLine = require("../dividerLine-BNljcGlv.cjs");
6
6
  let react = require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "../index-DmJ7yWWi.cjs";
2
- import { t as TabValue } from "../TabsContext-C2agsLBN.cjs";
1
+ import { W as Theme } from "../index-DJ0f69wh.cjs";
2
+ import { t as TabValue } from "../TabsContext-B_XHbjcS.cjs";
3
3
  import { ElementType, MouseEvent, ReactNode } from "react";
4
4
  //#region src/Tabs/Tab/Tab.d.ts
5
5
  /** Where `icon` sits around a tab's label. */
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "../index-CVNJEUwJ.mjs";
2
- import { t as TabValue } from "../TabsContext-DqyxdmGW.mjs";
1
+ import { W as Theme } from "../index-CJhK7JND.mjs";
2
+ import { t as TabValue } from "../TabsContext-Dn2kqUwr.mjs";
3
3
  import { ElementType, MouseEvent, ReactNode } from "react";
4
4
  //#region src/Tabs/Tab/Tab.d.ts
5
5
  /** Where `icon` sits around a tab's label. */
package/dist/Tabs/Tab.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as src_exports, o as styled, t as createShouldForwardProp } from "../src-DLGYOJMh.mjs";
2
2
  import { n as useDefaultProps } from "../theme-Z9_QludW.mjs";
3
- import { t as Icon } from "../Icon-DlheCTJb.mjs";
3
+ import { t as Icon } from "../Icon-BihOAP4u.mjs";
4
4
  import { i as TabIndexContext, n as getDividerShadow, o as useTabsContext } from "../dividerLine-FahY-M6_.mjs";
5
5
  import { useContext } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as TabValue } from "../TabsContext-C2agsLBN.cjs";
1
+ import { t as TabValue } from "../TabsContext-B_XHbjcS.cjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/Tabs/TabContext/TabContext.d.ts
4
4
  interface TabContextProps {
@@ -1,4 +1,4 @@
1
- import { t as TabValue } from "../TabsContext-DqyxdmGW.mjs";
1
+ import { t as TabValue } from "../TabsContext-Dn2kqUwr.mjs";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/Tabs/TabContext/TabContext.d.ts
4
4
  interface TabContextProps {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_TabsValueContext = require("../TabsValueContext-D40zGCpE.cjs");
3
- const require_Tabs = require("../Tabs-D_wkX-Jb.cjs");
3
+ const require_Tabs = require("../Tabs-D4tWCq78.cjs");
4
4
  let react = require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  //#region src/Tabs/TabList/TabList.tsx
@@ -1,4 +1,4 @@
1
- import { a as TabsProps } from "../index-B3LIhqHR.cjs";
1
+ import { a as TabsProps } from "../index-WHFhjfgy.cjs";
2
2
  //#region src/Tabs/TabList/TabList.d.ts
3
3
  type TabListProps = Omit<TabsProps, 'value' | 'defaultValue'>;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as TabsProps } from "../index-CoEqjFYn.mjs";
1
+ import { a as TabsProps } from "../index-bpnLB_4K.mjs";
2
2
  //#region src/Tabs/TabList/TabList.d.ts
3
3
  type TabListProps = Omit<TabsProps, 'value' | 'defaultValue'>;
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as useTabsValue } from "../TabsValueContext-DvL3inf7.mjs";
2
- import { n as TabListContext, t as Tabs } from "../Tabs-YfCUbkQV.mjs";
2
+ import { n as TabListContext, t as Tabs } from "../Tabs-BTNOJx5v.mjs";
3
3
  import { useMemo } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/Tabs/TabList/TabList.tsx
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "../index-DmJ7yWWi.cjs";
2
- import { t as TabValue } from "../TabsContext-C2agsLBN.cjs";
1
+ import { W as Theme } from "../index-DJ0f69wh.cjs";
2
+ import { t as TabValue } from "../TabsContext-B_XHbjcS.cjs";
3
3
  import { ReactNode } from "react";
4
4
  import { SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/Tabs/TabPanel/TabPanel.d.ts
@@ -1,5 +1,5 @@
1
- import { V as Theme } from "../index-CVNJEUwJ.mjs";
2
- import { t as TabValue } from "../TabsContext-DqyxdmGW.mjs";
1
+ import { W as Theme } from "../index-CJhK7JND.mjs";
2
+ import { t as TabValue } from "../TabsContext-Dn2kqUwr.mjs";
3
3
  import { SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/Tabs/TabPanel/TabPanel.d.ts
@@ -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_theme = require("../theme-BxXuXRgQ.cjs");
4
- const require_Icon = require("../Icon-Cvuhp9ek.cjs");
4
+ const require_Icon = require("../Icon-D-EWsBVg.cjs");
5
5
  const require_dividerLine = require("../dividerLine-BNljcGlv.cjs");
6
6
  let react = require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,2 +1,2 @@
1
- import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-gnh-Oe0n.cjs";
1
+ import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-KnXhlKMr.cjs";
2
2
  export { TabScrollButton, TabScrollButtonProps, TabScrollDirection };
@@ -1,2 +1,2 @@
1
- import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-BjPX49XA.mjs";
1
+ import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-CE5JG1us.mjs";
2
2
  export { TabScrollButton, TabScrollButtonProps, TabScrollDirection };
@@ -1,6 +1,6 @@
1
1
  import { a as src_exports, o as styled, t as createShouldForwardProp } from "../src-DLGYOJMh.mjs";
2
2
  import { n as useDefaultProps, r as useTheme } from "../theme-Z9_QludW.mjs";
3
- import { t as Icon } from "../Icon-DlheCTJb.mjs";
3
+ import { t as Icon } from "../Icon-BihOAP4u.mjs";
4
4
  import { a as TabsContext, r as getEnclosedPieceStyle } from "../dividerLine-FahY-M6_.mjs";
5
5
  import { useContext } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Tabs = require("../Tabs-D_wkX-Jb.cjs");
2
+ const require_Tabs = require("../Tabs-D4tWCq78.cjs");
3
3
  exports.Tabs = require_Tabs.Tabs;
@@ -1,3 +1,3 @@
1
- import { t as TabValue } from "../TabsContext-C2agsLBN.cjs";
2
- import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-B3LIhqHR.cjs";
1
+ import { t as TabValue } from "../TabsContext-B_XHbjcS.cjs";
2
+ import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-WHFhjfgy.cjs";
3
3
  export { type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
@@ -1,3 +1,3 @@
1
- import { t as TabValue } from "../TabsContext-DqyxdmGW.mjs";
2
- import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-CoEqjFYn.mjs";
1
+ import { t as TabValue } from "../TabsContext-Dn2kqUwr.mjs";
2
+ import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-bpnLB_4K.mjs";
3
3
  export { type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
@@ -1,2 +1,2 @@
1
- import { t as Tabs } from "../Tabs-YfCUbkQV.mjs";
1
+ import { t as Tabs } from "../Tabs-BTNOJx5v.mjs";
2
2
  export { Tabs };
@@ -2,9 +2,10 @@ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp
2
2
  import { View } from "./View.mjs";
3
3
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
4
4
  import { n as useDefaultProps, r as useTheme } from "./theme-Z9_QludW.mjs";
5
- import { t as Icon } from "./Icon-DlheCTJb.mjs";
6
- import { r as isRtl, t as MenuItem } from "./MenuItem-BR7ingQx.mjs";
7
- import { t as Menu } from "./Menu-tECbAEFj.mjs";
5
+ import { t as Icon } from "./Icon-BihOAP4u.mjs";
6
+ import { t as isRtl } from "./isRtl-BJDtm86G.mjs";
7
+ import { t as MenuItem } from "./MenuItem-DUn4IZKK.mjs";
8
+ import { t as Menu } from "./Menu-CrzHc_cn.mjs";
8
9
  import { a as TabsContext, i as TabIndexContext, n as getDividerShadow, r as getEnclosedPieceStyle, t as getDividerColor } from "./dividerLine-FahY-M6_.mjs";
9
10
  import { TabScrollButton } from "./Tabs/TabScrollButton.mjs";
10
11
  import { n as getPanelId, r as getTabId, t as surfaceSystem } from "./surfaceSystem-D8TbmKy3.mjs";