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

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 (304) hide show
  1. package/README.md +72 -37
  2. package/dist/AppBar.cjs +5 -1
  3. package/dist/AppBar.d.cts +6 -6
  4. package/dist/AppBar.d.mts +6 -6
  5. package/dist/AppBar.mjs +5 -1
  6. package/dist/Avatar.cjs +2 -2
  7. package/dist/Avatar.d.cts +6 -6
  8. package/dist/Avatar.d.mts +6 -6
  9. package/dist/Avatar.mjs +2 -2
  10. package/dist/Backdrop.cjs +1 -1
  11. package/dist/Backdrop.d.cts +1 -1
  12. package/dist/Backdrop.d.mts +1 -1
  13. package/dist/Backdrop.mjs +1 -1
  14. package/dist/Button.cjs +2 -2
  15. package/dist/Button.d.cts +1 -1
  16. package/dist/Button.d.mts +1 -1
  17. package/dist/Button.mjs +2 -2
  18. package/dist/ButtonGroup.cjs +1 -1
  19. package/dist/ButtonGroup.d.cts +1 -1
  20. package/dist/ButtonGroup.d.mts +1 -1
  21. package/dist/ButtonGroup.mjs +1 -1
  22. package/dist/Card.cjs +3 -3
  23. package/dist/Card.d.cts +3 -3
  24. package/dist/Card.d.mts +3 -3
  25. package/dist/Card.mjs +3 -3
  26. package/dist/Checkbox.cjs +1 -1
  27. package/dist/Checkbox.d.cts +2 -2
  28. package/dist/Checkbox.d.mts +2 -2
  29. package/dist/Checkbox.mjs +1 -1
  30. package/dist/CircularProgress.cjs +1 -1
  31. package/dist/CircularProgress.d.cts +6 -6
  32. package/dist/CircularProgress.d.mts +6 -6
  33. package/dist/CircularProgress.mjs +1 -1
  34. package/dist/Drawer.cjs +2 -2
  35. package/dist/Drawer.d.cts +3 -3
  36. package/dist/Drawer.d.mts +3 -3
  37. package/dist/Drawer.mjs +2 -2
  38. package/dist/Flex.cjs +1 -1
  39. package/dist/Flex.d.cts +1 -1
  40. package/dist/Flex.d.mts +1 -1
  41. package/dist/Flex.mjs +1 -1
  42. package/dist/FocusTrap.cjs +1 -1
  43. package/dist/FocusTrap.mjs +1 -1
  44. package/dist/Form.cjs +2 -2
  45. package/dist/Form.d.cts +5 -5
  46. package/dist/Form.d.mts +5 -5
  47. package/dist/Form.mjs +2 -2
  48. package/dist/FormControl.cjs +2 -2
  49. package/dist/FormControl.d.cts +8 -8
  50. package/dist/FormControl.d.mts +8 -8
  51. package/dist/FormControl.mjs +2 -2
  52. package/dist/FormHelperText.cjs +1 -1
  53. package/dist/FormHelperText.d.cts +1 -1
  54. package/dist/FormHelperText.d.mts +1 -1
  55. package/dist/FormHelperText.mjs +1 -1
  56. package/dist/FormLabel.cjs +1 -1
  57. package/dist/FormLabel.d.cts +1 -1
  58. package/dist/FormLabel.d.mts +1 -1
  59. package/dist/FormLabel.mjs +1 -1
  60. package/dist/Grid.cjs +1 -1
  61. package/dist/Grid.d.cts +1 -15
  62. package/dist/Grid.d.mts +1 -15
  63. package/dist/Grid.mjs +1 -1
  64. package/dist/{Icon-ByDvM-t1.cjs → Icon-CKLBJ7CC.cjs} +2 -2
  65. package/dist/{Icon-CU_nUmsU.mjs → Icon-CkQGOBmm.mjs} +2 -2
  66. package/dist/Icon.cjs +1 -1
  67. package/dist/Icon.d.cts +1 -1
  68. package/dist/Icon.d.mts +1 -1
  69. package/dist/Icon.mjs +1 -1
  70. package/dist/Image.cjs +1 -1
  71. package/dist/Image.d.cts +3 -3
  72. package/dist/Image.d.mts +3 -3
  73. package/dist/Image.mjs +1 -1
  74. package/dist/LinearProgress.cjs +1 -1
  75. package/dist/LinearProgress.d.cts +5 -5
  76. package/dist/LinearProgress.d.mts +5 -5
  77. package/dist/LinearProgress.mjs +1 -1
  78. package/dist/Link.cjs +2 -2
  79. package/dist/Link.d.cts +1 -1
  80. package/dist/Link.d.mts +1 -1
  81. package/dist/Link.mjs +2 -2
  82. package/dist/MenuItem.cjs +3 -3
  83. package/dist/MenuItem.d.cts +9 -9
  84. package/dist/MenuItem.d.mts +9 -9
  85. package/dist/MenuItem.mjs +3 -3
  86. package/dist/{Modal-Bjfv7n4e.cjs → Modal-CApyh_V5.cjs} +2 -2
  87. package/dist/{Modal-Bv-mf8Fn.mjs → Modal-CYNcPk-2.mjs} +2 -2
  88. package/dist/Modal.cjs +1 -1
  89. package/dist/Modal.d.cts +1 -1
  90. package/dist/Modal.d.mts +1 -1
  91. package/dist/Modal.mjs +1 -1
  92. package/dist/NativeSelect.cjs +3 -3
  93. package/dist/NativeSelect.d.cts +12 -12
  94. package/dist/NativeSelect.d.mts +12 -12
  95. package/dist/NativeSelect.mjs +3 -3
  96. package/dist/PageLayout/LayoutGrid.cjs +21 -0
  97. package/dist/PageLayout/LayoutGrid.d.cts +22 -0
  98. package/dist/PageLayout/LayoutGrid.d.mts +22 -0
  99. package/dist/PageLayout/LayoutGrid.mjs +20 -0
  100. package/dist/PageLayout/PageLayout.cjs +148 -0
  101. package/dist/PageLayout/PageLayout.d.cts +31 -0
  102. package/dist/PageLayout/PageLayout.d.mts +31 -0
  103. package/dist/PageLayout/PageLayout.mjs +147 -0
  104. package/dist/PageLayout.cjs +7 -0
  105. package/dist/PageLayout.d.cts +19 -0
  106. package/dist/PageLayout.d.mts +19 -0
  107. package/dist/PageLayout.mjs +4 -0
  108. package/dist/PageLayoutContext-DjJ1_7Xc.mjs +5 -0
  109. package/dist/PageLayoutContext-agXGhegE.cjs +9 -0
  110. package/dist/Pagination/PaginationItem.cjs +3 -3
  111. package/dist/Pagination/PaginationItem.d.cts +1 -1
  112. package/dist/Pagination/PaginationItem.d.mts +1 -1
  113. package/dist/Pagination/PaginationItem.mjs +3 -3
  114. package/dist/Pagination.cjs +2 -2
  115. package/dist/Pagination.d.cts +2 -2
  116. package/dist/Pagination.d.mts +2 -2
  117. package/dist/Pagination.mjs +2 -2
  118. package/dist/Paper.cjs +2 -2
  119. package/dist/Paper.d.cts +1 -1
  120. package/dist/Paper.d.mts +1 -1
  121. package/dist/Paper.mjs +2 -2
  122. package/dist/{Popover-CH3yI-j-.mjs → Popover-DWOrf7sy.mjs} +4 -4
  123. package/dist/{Popover-COoJ2p2I.cjs → Popover-Dz6h3A_9.cjs} +4 -4
  124. package/dist/Popover.cjs +1 -1
  125. package/dist/Popover.d.cts +7 -7
  126. package/dist/Popover.d.mts +7 -7
  127. package/dist/Popover.mjs +1 -1
  128. package/dist/Portal.cjs +1 -1
  129. package/dist/Portal.d.cts +1 -1
  130. package/dist/Portal.d.mts +1 -1
  131. package/dist/Portal.mjs +1 -1
  132. package/dist/Pressable.cjs +4 -4
  133. package/dist/Pressable.d.cts +1 -1
  134. package/dist/Pressable.d.mts +1 -1
  135. package/dist/Pressable.mjs +4 -4
  136. package/dist/Quote.cjs +2 -2
  137. package/dist/Quote.d.cts +4 -4
  138. package/dist/Quote.d.mts +4 -4
  139. package/dist/Quote.mjs +2 -2
  140. package/dist/Radio.cjs +1 -1
  141. package/dist/Radio.d.cts +3 -3
  142. package/dist/Radio.d.mts +3 -3
  143. package/dist/Radio.mjs +1 -1
  144. package/dist/Select.cjs +4 -4
  145. package/dist/Select.d.cts +11 -11
  146. package/dist/Select.d.mts +11 -11
  147. package/dist/Select.mjs +4 -4
  148. package/dist/Sidebar/Sidebar.cjs +29 -10
  149. package/dist/Sidebar/Sidebar.d.cts +16 -13
  150. package/dist/Sidebar/Sidebar.d.mts +16 -13
  151. package/dist/Sidebar/Sidebar.mjs +30 -11
  152. package/dist/Sidebar/SidebarItem.cjs +5 -4
  153. package/dist/Sidebar/SidebarItem.d.cts +13 -13
  154. package/dist/Sidebar/SidebarItem.d.mts +13 -13
  155. package/dist/Sidebar/SidebarItem.mjs +5 -4
  156. package/dist/Sidebar.d.cts +1 -1
  157. package/dist/Sidebar.d.mts +1 -1
  158. package/dist/{SidebarContext-ao6lRfTX.d.cts → SidebarContext-B1lWrt77.d.cts} +4 -4
  159. package/dist/{SidebarContext-ao6lRfTX.d.mts → SidebarContext-B1lWrt77.d.mts} +4 -4
  160. package/dist/Skeleton.cjs +1 -1
  161. package/dist/Skeleton.d.cts +3 -3
  162. package/dist/Skeleton.d.mts +3 -3
  163. package/dist/Skeleton.mjs +1 -1
  164. package/dist/Switch.cjs +2 -2
  165. package/dist/Switch.d.cts +5 -5
  166. package/dist/Switch.d.mts +5 -5
  167. package/dist/Switch.mjs +2 -2
  168. package/dist/Table/Table.cjs +1 -1
  169. package/dist/Table/Table.d.cts +14 -14
  170. package/dist/Table/Table.d.mts +14 -14
  171. package/dist/Table/Table.mjs +1 -1
  172. package/dist/Table/TableBody.cjs +1 -1
  173. package/dist/Table/TableBody.d.cts +6 -6
  174. package/dist/Table/TableBody.d.mts +6 -6
  175. package/dist/Table/TableBody.mjs +1 -1
  176. package/dist/Table/TableCell.cjs +1 -1
  177. package/dist/Table/TableCell.d.cts +1 -1
  178. package/dist/Table/TableCell.d.mts +1 -1
  179. package/dist/Table/TableCell.mjs +1 -1
  180. package/dist/Table/TableContainer.cjs +2 -2
  181. package/dist/Table/TableContainer.d.cts +4 -4
  182. package/dist/Table/TableContainer.d.mts +4 -4
  183. package/dist/Table/TableContainer.mjs +2 -2
  184. package/dist/Table/TableControl.cjs +1 -1
  185. package/dist/Table/TableControl.d.cts +7 -7
  186. package/dist/Table/TableControl.d.mts +7 -7
  187. package/dist/Table/TableControl.mjs +1 -1
  188. package/dist/Table/TableFooter.cjs +1 -1
  189. package/dist/Table/TableFooter.d.cts +6 -6
  190. package/dist/Table/TableFooter.d.mts +6 -6
  191. package/dist/Table/TableFooter.mjs +1 -1
  192. package/dist/Table/TableHead.cjs +1 -1
  193. package/dist/Table/TableHead.d.cts +6 -6
  194. package/dist/Table/TableHead.d.mts +6 -6
  195. package/dist/Table/TableHead.mjs +1 -1
  196. package/dist/Table/TablePagination.cjs +3 -3
  197. package/dist/Table/TablePagination.d.cts +4 -4
  198. package/dist/Table/TablePagination.d.mts +4 -4
  199. package/dist/Table/TablePagination.mjs +3 -3
  200. package/dist/Table/TablePaginationActions.cjs +2 -2
  201. package/dist/Table/TablePaginationActions.d.cts +1 -1
  202. package/dist/Table/TablePaginationActions.d.mts +1 -1
  203. package/dist/Table/TablePaginationActions.mjs +2 -2
  204. package/dist/Table/TableRow.cjs +1 -1
  205. package/dist/Table/TableRow.d.cts +7 -7
  206. package/dist/Table/TableRow.d.mts +7 -7
  207. package/dist/Table/TableRow.mjs +1 -1
  208. package/dist/Table/TableSortLabel.cjs +2 -2
  209. package/dist/Table/TableSortLabel.d.cts +1 -1
  210. package/dist/Table/TableSortLabel.d.mts +1 -1
  211. package/dist/Table/TableSortLabel.mjs +2 -2
  212. package/dist/Table/hooks.cjs +5 -5
  213. package/dist/Table/hooks.d.cts +5 -5
  214. package/dist/Table/hooks.d.mts +5 -5
  215. package/dist/Table/hooks.mjs +5 -5
  216. package/dist/Table.d.cts +5 -5
  217. package/dist/Table.d.mts +5 -5
  218. package/dist/{TableContext-BoOxdk8p.d.cts → TableContext-DBOk01Xl.d.mts} +2 -2
  219. package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DRAhXvq3.d.cts} +2 -2
  220. package/dist/TextInput.cjs +2 -2
  221. package/dist/TextInput.d.cts +10 -10
  222. package/dist/TextInput.d.mts +10 -10
  223. package/dist/TextInput.mjs +2 -2
  224. package/dist/ToggleButton/ToggleButton.cjs +2 -2
  225. package/dist/ToggleButton/ToggleButton.d.cts +3 -3
  226. package/dist/ToggleButton/ToggleButton.d.mts +3 -3
  227. package/dist/ToggleButton/ToggleButton.mjs +2 -2
  228. package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
  229. package/dist/ToggleButton/ToggleButtonGroup.d.cts +4 -4
  230. package/dist/ToggleButton/ToggleButtonGroup.d.mts +4 -4
  231. package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -3
  232. package/dist/ToggleButton.d.cts +1 -1
  233. package/dist/ToggleButton.d.mts +1 -1
  234. package/dist/{ToggleButtonGroupContext-CqD-Afho.d.cts → ToggleButtonGroupContext-10jEsQdg.d.cts} +2 -2
  235. package/dist/{ToggleButtonGroupContext-CqD-Afho.d.mts → ToggleButtonGroupContext-10jEsQdg.d.mts} +2 -2
  236. package/dist/Typography.cjs +2 -2
  237. package/dist/Typography.d.cts +2 -2
  238. package/dist/Typography.d.mts +2 -2
  239. package/dist/Typography.mjs +2 -2
  240. package/dist/View.cjs +1 -1
  241. package/dist/View.d.cts +1 -1
  242. package/dist/View.d.mts +1 -1
  243. package/dist/View.mjs +1 -1
  244. package/dist/engine.cjs +2 -2
  245. package/dist/engine.d.cts +3 -3
  246. package/dist/engine.d.mts +3 -3
  247. package/dist/engine.mjs +2 -2
  248. package/dist/{index-CrXLEJO4.d.mts → index-8mHoIUt5.d.mts} +8 -8
  249. package/dist/{index-DLUE7t3O.d.cts → index-B41OXLX8.d.mts} +4 -4
  250. package/dist/{index-X4STXeE2.d.cts → index-B6vxRNLt.d.cts} +14 -14
  251. package/dist/{index-BBWtMvkm.d.cts → index-B8KscJic.d.cts} +3 -3
  252. package/dist/{index-MsUtFRul.d.cts → index-BDD-L8uL.d.cts} +3 -3
  253. package/dist/{index-BW-9sqFG.d.cts → index-BGD4OzzG.d.cts} +6 -6
  254. package/dist/index-BJ5Tsf7u.d.cts +16 -0
  255. package/dist/{index-n2OyTMr6.d.mts → index-BMJ3tyIw.d.cts} +4 -4
  256. package/dist/{index-CbGfrKZi.d.mts → index-BNpkmtaM.d.mts} +6 -6
  257. package/dist/{index-CKz1lEdR.d.mts → index-BSR9zrAA.d.mts} +6 -6
  258. package/dist/index-BnFxdnEL.d.mts +16 -0
  259. package/dist/{index-BYYEoNec.d.cts → index-CCrocxBL.d.cts} +6 -6
  260. package/dist/{index-q9peil7T.d.mts → index-CEqa8xx8.d.mts} +7 -7
  261. package/dist/{index-CiShdd2j.d.cts → index-CLttbRhG.d.cts} +8 -8
  262. package/dist/{index-DfhMdqqI.d.mts → index-CVb5zbas.d.mts} +14 -14
  263. package/dist/{index-DEEHBUUZ.d.cts → index-Cjlax0-f.d.mts} +4 -4
  264. package/dist/{index-BoOs5h_b.d.mts → index-CoHrw2p7.d.mts} +3 -3
  265. package/dist/{index-CCfnnT2l.d.cts → index-CohgpyUj.d.cts} +7 -7
  266. package/dist/{index-CSXMCqrV.d.cts → index-CtrxW81j.d.cts} +8 -8
  267. package/dist/{index-m9jUR509.d.mts → index-CvWslVk6.d.cts} +9 -9
  268. package/dist/{index-3hPS6Lm8.d.mts → index-CzmA09Yf.d.mts} +8 -8
  269. package/dist/{index-uH0EeDBZ.d.cts → index-D4i9vrQM.d.mts} +12 -12
  270. package/dist/{index-DkPJUFzd.d.cts → index-DNNg9RoR.d.cts} +5 -5
  271. package/dist/{index-B0xTqpvt.d.mts → index-DPHwCZYf.d.cts} +4 -4
  272. package/dist/{index-2QPYJgCl.d.cts → index-DkJzi96w.d.cts} +7 -7
  273. package/dist/{index-D07y72Xr.d.mts → index-DsKd9VW5.d.mts} +7 -7
  274. package/dist/{index-CohsoGjZ.d.cts → index-DuefjNlC.d.mts} +7 -7
  275. package/dist/{index-DGku7hLP.d.mts → index-EYR0z1Qv.d.cts} +4 -4
  276. package/dist/{index-hcZwhQmR.d.mts → index-IEvuh6Cd.d.mts} +5 -5
  277. package/dist/{index-BAfSyQaP.d.mts → index-S3NZS-Qp.d.cts} +12 -12
  278. package/dist/{index-DxBKLmUS.d.mts → index-bN91IhZi.d.cts} +7 -7
  279. package/dist/{index-CTYZyQ2g.d.mts → index-qtKJ56yu.d.mts} +3 -3
  280. package/dist/{index-D_AwmCU5.d.cts → index-r2avCy1z.d.mts} +4 -4
  281. package/dist/{index-BPzvFTi5.d.cts → index-tv-TGYSG.d.mts} +9 -9
  282. package/dist/index.cjs +1 -1
  283. package/dist/index.d.cts +2 -2
  284. package/dist/index.d.mts +2 -2
  285. package/dist/index.mjs +1 -1
  286. package/dist/layoutStyles-B4Z1K6HZ.cjs +67 -0
  287. package/dist/layoutStyles-f0ISNjsC.mjs +56 -0
  288. package/dist/{src-D3tHU94W.mjs → src-DLGYOJMh.mjs} +1 -1
  289. package/dist/{src-BJrcLd7P.cjs → src-DU81aGy9.cjs} +1 -1
  290. package/dist/style.cjs +1 -1
  291. package/dist/style.d.cts +2 -2
  292. package/dist/style.d.mts +2 -2
  293. package/dist/style.mjs +1 -1
  294. package/dist/{theme-Cudynq5K.mjs → theme-BQGlZoma.mjs} +53 -5
  295. package/dist/{theme-CleLAV6A.cjs → theme-BmEAXmwh.cjs} +64 -4
  296. package/dist/theme.cjs +3 -1
  297. package/dist/theme.d.cts +3 -3
  298. package/dist/theme.d.mts +3 -3
  299. package/dist/theme.mjs +2 -2
  300. package/dist/{themes-CUV79qWU.d.cts → themes-9YNnlVyY.d.cts} +90 -21
  301. package/dist/{themes-CUV79qWU.d.mts → themes-9YNnlVyY.d.mts} +90 -21
  302. package/dist/{useTablePagination--XtCc2YL.d.cts → useTablePagination-CLoac5oX.d.cts} +6 -6
  303. package/dist/{useTablePagination-RgVhJs-7.d.mts → useTablePagination-RelVsdMR.d.mts} +6 -6
  304. package/package.json +15 -5
@@ -1,17 +1,17 @@
1
- import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.cjs";
2
- import "../index-2QPYJgCl.cjs";
1
+ import { S as Theme, v as PaletteColor } from "../themes-9YNnlVyY.cjs";
2
+ import "../index-DkJzi96w.cjs";
3
3
  import { ElementType, HTMLAttributes } from "react";
4
4
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/Table/TableRow/TableRow.d.ts
6
- /** Palette color driving the hover/selected shading — a `theme.palette` key. */
6
+ /** Palette color driving the hover/selected shading - a `theme.palette` key. */
7
7
  type TableRowColor = PaletteColor;
8
- /** Valid values for the bg prop — derived from theme.background keys. */
8
+ /** Valid values for the bg prop - derived from theme.background keys. */
9
9
  type TableRowBackgroundToken = keyof Theme['background'];
10
- /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ /** Valid values for the borderColor prop - derived from theme.border keys. */
11
11
  type TableRowBorderColorToken = keyof Theme['border'];
12
12
  interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
13
13
  /**
14
- * Palette color for the hover/selected shading — maps to `theme.palette[color]`
14
+ * Palette color for the hover/selected shading - maps to `theme.palette[color]`
15
15
  * (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
16
16
  * to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
17
17
  */
@@ -19,7 +19,7 @@ interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color
19
19
  as?: ElementType;
20
20
  /** Resolves against theme.background */
21
21
  bg?: TableRowBackgroundToken;
22
- /** Resolves against theme.border — light · primary · dark */
22
+ /** Resolves against theme.border - light · primary · dark */
23
23
  borderColor?: TableRowBorderColorToken;
24
24
  /** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
25
25
  isHoverable?: boolean;
@@ -1,17 +1,17 @@
1
- import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.mjs";
2
- import "../index-q9peil7T.mjs";
1
+ import { S as Theme, v as PaletteColor } from "../themes-9YNnlVyY.mjs";
2
+ import "../index-CEqa8xx8.mjs";
3
3
  import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { ElementType, HTMLAttributes } from "react";
5
5
  //#region src/Table/TableRow/TableRow.d.ts
6
- /** Palette color driving the hover/selected shading — a `theme.palette` key. */
6
+ /** Palette color driving the hover/selected shading - a `theme.palette` key. */
7
7
  type TableRowColor = PaletteColor;
8
- /** Valid values for the bg prop — derived from theme.background keys. */
8
+ /** Valid values for the bg prop - derived from theme.background keys. */
9
9
  type TableRowBackgroundToken = keyof Theme['background'];
10
- /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ /** Valid values for the borderColor prop - derived from theme.border keys. */
11
11
  type TableRowBorderColorToken = keyof Theme['border'];
12
12
  interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
13
13
  /**
14
- * Palette color for the hover/selected shading — maps to `theme.palette[color]`
14
+ * Palette color for the hover/selected shading - maps to `theme.palette[color]`
15
15
  * (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
16
16
  * to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
17
17
  */
@@ -19,7 +19,7 @@ interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color
19
19
  as?: ElementType;
20
20
  /** Resolves against theme.background */
21
21
  bg?: TableRowBackgroundToken;
22
- /** Resolves against theme.border — light · primary · dark */
22
+ /** Resolves against theme.border - light · primary · dark */
23
23
  borderColor?: TableRowBorderColorToken;
24
24
  /** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
25
25
  isHoverable?: boolean;
@@ -1,4 +1,4 @@
1
- import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-D3tHU94W.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
3
  import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
4
4
  import { useContext } from "react";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BJrcLd7P.cjs");
3
- const require_Icon = require("../Icon-ByDvM-t1.cjs");
2
+ const require_src = require("../src-DU81aGy9.cjs");
3
+ const require_Icon = require("../Icon-CKLBJ7CC.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-DkPJUFzd.cjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DNNg9RoR.cjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,2 +1,2 @@
1
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-hcZwhQmR.mjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-IEvuh6Cd.mjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,5 +1,5 @@
1
- import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-D3tHU94W.mjs";
2
- import { t as Icon } from "../Icon-CU_nUmsU.mjs";
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-CkQGOBmm.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";
@@ -7,7 +7,7 @@ let react = require("react");
7
7
  * ```tsx
8
8
  * const pagination = useTablePagination({ defaultRowsPerPage: 10 })
9
9
  * <TablePagination count={data.length} {...pagination} />
10
- * <TableControl data={data} pagination={pagination}>{(row) => …}</TableControl>
10
+ * <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
11
11
  * ```
12
12
  */
13
13
  function useTablePagination({ defaultPage = 0, defaultRowsPerPage = 10 } = {}) {
@@ -27,7 +27,7 @@ function useTablePagination({ defaultPage = 0, defaultRowsPerPage = 10 } = {}) {
27
27
  //#region src/Table/hooks/useTableSelection.ts
28
28
  const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selected.filter((item) => item !== key) : [...selected, key];
29
29
  /**
30
- * Key-based row selection that survives paging and re-sorting — selection is
30
+ * Key-based row selection that survives paging and re-sorting - selection is
31
31
  * stored as row identities, and the select-all/indeterminate state is computed
32
32
  * against the full `keys` list rather than the visible slice.
33
33
  *
@@ -35,7 +35,7 @@ const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selecte
35
35
  * const selection = useTableSelection(services.map((s) => s.service))
36
36
  * <Checkbox {...selection.all} aria-label="Select all" />
37
37
  * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
38
- * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
38
+ * <TableRow isSelected={selection.isSelected(row.service)}>...</TableRow>
39
39
  * ```
40
40
  */
41
41
  function useTableSelection(keys, onChange) {
@@ -74,13 +74,13 @@ function useTableSelection(keys, onChange) {
74
74
  /**
75
75
  * Column-keyed sort state for sortable tables. Each column remembers its own
76
76
  * direction (initially `'asc'`); clicking a column activates it AND flips its
77
- * stored direction — so the first click on a column sorts `'desc'`.
77
+ * stored direction - so the first click on a column sorts `'desc'`.
78
78
  * `keys` is read once on mount.
79
79
  *
80
80
  * ```tsx
81
81
  * const sort = useTableSort(['name', 'latency'])
82
82
  * <TableSortLabel {...sort.name}>Service</TableSortLabel>
83
- * <TableControl data={rows} sort={sort}>{(row) => …}</TableControl>
83
+ * <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
84
84
  * ```
85
85
  */
86
86
  function useTableSort(keys, onChange) {
@@ -1,13 +1,13 @@
1
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination--XtCc2YL.cjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-CLoac5oX.cjs";
2
2
  //#region src/Table/hooks/useTableSelection.d.ts
3
- /** Header select-all state — spreads directly onto `Checkbox`. */
3
+ /** Header select-all state - spreads directly onto `Checkbox`. */
4
4
  interface TableSelectionAllProps {
5
5
  checked: boolean;
6
6
  indeterminate: boolean;
7
7
  /** All selected → clears; otherwise selects every key. */
8
8
  onChange: () => void;
9
9
  }
10
- /** One row's selection state — spreads directly onto `Checkbox`. */
10
+ /** One row's selection state - spreads directly onto `Checkbox`. */
11
11
  interface TableSelectionRowProps {
12
12
  checked: boolean;
13
13
  /** Toggles this key in and out of the selection. */
@@ -24,7 +24,7 @@ interface TableSelection<K extends string | number> {
24
24
  clear: () => void;
25
25
  }
26
26
  /**
27
- * Key-based row selection that survives paging and re-sorting — selection is
27
+ * Key-based row selection that survives paging and re-sorting - selection is
28
28
  * stored as row identities, and the select-all/indeterminate state is computed
29
29
  * against the full `keys` list rather than the visible slice.
30
30
  *
@@ -32,7 +32,7 @@ interface TableSelection<K extends string | number> {
32
32
  * const selection = useTableSelection(services.map((s) => s.service))
33
33
  * <Checkbox {...selection.all} aria-label="Select all" />
34
34
  * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
35
- * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
35
+ * <TableRow isSelected={selection.isSelected(row.service)}>...</TableRow>
36
36
  * ```
37
37
  */
38
38
  declare function useTableSelection<K extends string | number>(keys: readonly K[], onChange?: (selected: K[]) => void): TableSelection<K>;
@@ -1,13 +1,13 @@
1
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-RgVhJs-7.mjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-RelVsdMR.mjs";
2
2
  //#region src/Table/hooks/useTableSelection.d.ts
3
- /** Header select-all state — spreads directly onto `Checkbox`. */
3
+ /** Header select-all state - spreads directly onto `Checkbox`. */
4
4
  interface TableSelectionAllProps {
5
5
  checked: boolean;
6
6
  indeterminate: boolean;
7
7
  /** All selected → clears; otherwise selects every key. */
8
8
  onChange: () => void;
9
9
  }
10
- /** One row's selection state — spreads directly onto `Checkbox`. */
10
+ /** One row's selection state - spreads directly onto `Checkbox`. */
11
11
  interface TableSelectionRowProps {
12
12
  checked: boolean;
13
13
  /** Toggles this key in and out of the selection. */
@@ -24,7 +24,7 @@ interface TableSelection<K extends string | number> {
24
24
  clear: () => void;
25
25
  }
26
26
  /**
27
- * Key-based row selection that survives paging and re-sorting — selection is
27
+ * Key-based row selection that survives paging and re-sorting - selection is
28
28
  * stored as row identities, and the select-all/indeterminate state is computed
29
29
  * against the full `keys` list rather than the visible slice.
30
30
  *
@@ -32,7 +32,7 @@ interface TableSelection<K extends string | number> {
32
32
  * const selection = useTableSelection(services.map((s) => s.service))
33
33
  * <Checkbox {...selection.all} aria-label="Select all" />
34
34
  * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
35
- * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
35
+ * <TableRow isSelected={selection.isSelected(row.service)}>...</TableRow>
36
36
  * ```
37
37
  */
38
38
  declare function useTableSelection<K extends string | number>(keys: readonly K[], onChange?: (selected: K[]) => void): TableSelection<K>;
@@ -6,7 +6,7 @@ import { useCallback, useMemo, useState } from "react";
6
6
  * ```tsx
7
7
  * const pagination = useTablePagination({ defaultRowsPerPage: 10 })
8
8
  * <TablePagination count={data.length} {...pagination} />
9
- * <TableControl data={data} pagination={pagination}>{(row) => …}</TableControl>
9
+ * <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
10
10
  * ```
11
11
  */
12
12
  function useTablePagination({ defaultPage = 0, defaultRowsPerPage = 10 } = {}) {
@@ -26,7 +26,7 @@ function useTablePagination({ defaultPage = 0, defaultRowsPerPage = 10 } = {}) {
26
26
  //#region src/Table/hooks/useTableSelection.ts
27
27
  const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selected.filter((item) => item !== key) : [...selected, key];
28
28
  /**
29
- * Key-based row selection that survives paging and re-sorting — selection is
29
+ * Key-based row selection that survives paging and re-sorting - selection is
30
30
  * stored as row identities, and the select-all/indeterminate state is computed
31
31
  * against the full `keys` list rather than the visible slice.
32
32
  *
@@ -34,7 +34,7 @@ const toggleKey = (selected, selectedSet, key) => selectedSet.has(key) ? selecte
34
34
  * const selection = useTableSelection(services.map((s) => s.service))
35
35
  * <Checkbox {...selection.all} aria-label="Select all" />
36
36
  * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
37
- * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
37
+ * <TableRow isSelected={selection.isSelected(row.service)}>...</TableRow>
38
38
  * ```
39
39
  */
40
40
  function useTableSelection(keys, onChange) {
@@ -73,13 +73,13 @@ function useTableSelection(keys, onChange) {
73
73
  /**
74
74
  * Column-keyed sort state for sortable tables. Each column remembers its own
75
75
  * direction (initially `'asc'`); clicking a column activates it AND flips its
76
- * stored direction — so the first click on a column sorts `'desc'`.
76
+ * stored direction - so the first click on a column sorts `'desc'`.
77
77
  * `keys` is read once on mount.
78
78
  *
79
79
  * ```tsx
80
80
  * const sort = useTableSort(['name', 'latency'])
81
81
  * <TableSortLabel {...sort.name}>Service</TableSortLabel>
82
- * <TableControl data={rows} sort={sort}>{(row) => …}</TableControl>
82
+ * <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
83
83
  * ```
84
84
  */
85
85
  function useTableSort(keys, onChange) {
package/dist/Table.d.cts CHANGED
@@ -1,14 +1,14 @@
1
- import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-BoOxdk8p.cjs";
1
+ import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-DRAhXvq3.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-X4STXeE2.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-B6vxRNLt.cjs";
5
5
  import { TableContainer, TableContainerProps } from "./Table/TableContainer.cjs";
6
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DkPJUFzd.cjs";
7
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination--XtCc2YL.cjs";
6
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DNNg9RoR.cjs";
7
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-CLoac5oX.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-DEEHBUUZ.cjs";
11
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-EYR0z1Qv.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-DV31j6HO.mjs";
1
+ import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-DBOk01Xl.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-DfhMdqqI.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-CVb5zbas.mjs";
5
5
  import { TableContainer, TableContainerProps } from "./Table/TableContainer.mjs";
6
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-hcZwhQmR.mjs";
7
- import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-RgVhJs-7.mjs";
6
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-IEvuh6Cd.mjs";
7
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-RelVsdMR.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-DGku7hLP.mjs";
11
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-Cjlax0-f.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 { h as Theme } from "./themes-CUV79qWU.cjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.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';
@@ -7,7 +7,7 @@ interface TableContextValue {
7
7
  size?: keyof Theme['sizes'];
8
8
  cellPadding?: TableCellPadding;
9
9
  hasStickyHeader?: boolean;
10
- /** Palette color for descendant rows' hover/selected shading — a row's own `color` wins. */
10
+ /** Palette color for descendant rows' hover/selected shading - a row's own `color` wins. */
11
11
  color?: keyof Theme['palette'];
12
12
  /** Hides inactive sort icons (revealed on hover/focus). */
13
13
  shouldHideSortIcon?: boolean;
@@ -1,4 +1,4 @@
1
- import { h as Theme } from "./themes-CUV79qWU.mjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.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';
@@ -7,7 +7,7 @@ interface TableContextValue {
7
7
  size?: keyof Theme['sizes'];
8
8
  cellPadding?: TableCellPadding;
9
9
  hasStickyHeader?: boolean;
10
- /** Palette color for descendant rows' hover/selected shading — a row's own `color` wins. */
10
+ /** Palette color for descendant rows' hover/selected shading - a row's own `color` wins. */
11
11
  color?: keyof Theme['palette'];
12
12
  /** Hides inactive sort icons (revealed on hover/focus). */
13
13
  shouldHideSortIcon?: boolean;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-BJrcLd7P.cjs");
2
+ const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-CleLAV6A.cjs");
4
+ const require_theme = require("./theme-BmEAXmwh.cjs");
5
5
  const require_FormControl = require("./FormControl.cjs");
6
6
  const require_inputVariantStyles = require("./inputVariantStyles-BBkkYQtE.cjs");
7
7
  let react = require("react");
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-CUV79qWU.cjs";
2
- import "./index-2QPYJgCl.cjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
+ import "./index-DkJzi96w.cjs";
3
3
  import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
4
4
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  //#region src/TextInput/TextInput.d.ts
@@ -12,7 +12,7 @@ interface TextInputClasses {
12
12
  input?: string;
13
13
  }
14
14
  interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
15
- /** Corner radius — applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
15
+ /** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
16
16
  borderRadius?: keyof Theme['radii'];
17
17
  autoComplete?: string;
18
18
  autoFocus?: boolean;
@@ -23,20 +23,20 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
23
23
  Input?: ElementType;
24
24
  Root?: ElementType;
25
25
  };
26
- /** Focus/active border color — resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
26
+ /** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
27
27
  color?: TextInputColor;
28
- /** Text color of the typed value — resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
28
+ /** Text color of the typed value - resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
29
29
  textColor?: TextInputTextColor;
30
30
  /** Disables the input. */
31
31
  disabled?: boolean;
32
- /** Marks the field as invalid — applies error border color. */
32
+ /** Marks the field as invalid - applies error border color. */
33
33
  error?: boolean;
34
34
  /** Stretches the root to fill its container. */
35
35
  fullWidth?: boolean;
36
36
  id?: string;
37
37
  /** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
38
38
  inputComponent?: ElementType;
39
- /** Native HTML `size` attribute — visible width in character widths. Has no effect with `multiline` or `resize`. */
39
+ /** Native HTML `size` attribute - visible width in character widths. Has no effect with `multiline` or `resize`. */
40
40
  inputSize?: number;
41
41
  /** Extra props spread onto the native element. Explicit top-level props take priority. */
42
42
  inputProps?: InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>;
@@ -67,9 +67,9 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
67
67
  type?: string;
68
68
  /**
69
69
  * Visual style of the input.
70
- * - `outlined` / `default` — full border box (default)
71
- * - `underline` — border on bottom only
72
- * - `text` — no border, transparent background
70
+ * - `outlined` / `default` - full border box (default)
71
+ * - `underline` - border on bottom only
72
+ * - `text` - no border, transparent background
73
73
  */
74
74
  variant?: TextInputVariant;
75
75
  value?: string | number | readonly string[];
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-CUV79qWU.mjs";
2
- import "./index-q9peil7T.mjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
+ import "./index-CEqa8xx8.mjs";
3
3
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
4
4
  import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
5
5
  //#region src/TextInput/TextInput.d.ts
@@ -12,7 +12,7 @@ interface TextInputClasses {
12
12
  input?: string;
13
13
  }
14
14
  interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
15
- /** Corner radius — applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
15
+ /** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
16
16
  borderRadius?: keyof Theme['radii'];
17
17
  autoComplete?: string;
18
18
  autoFocus?: boolean;
@@ -23,20 +23,20 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
23
23
  Input?: ElementType;
24
24
  Root?: ElementType;
25
25
  };
26
- /** Focus/active border color — resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
26
+ /** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
27
27
  color?: TextInputColor;
28
- /** Text color of the typed value — resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
28
+ /** Text color of the typed value - resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
29
29
  textColor?: TextInputTextColor;
30
30
  /** Disables the input. */
31
31
  disabled?: boolean;
32
- /** Marks the field as invalid — applies error border color. */
32
+ /** Marks the field as invalid - applies error border color. */
33
33
  error?: boolean;
34
34
  /** Stretches the root to fill its container. */
35
35
  fullWidth?: boolean;
36
36
  id?: string;
37
37
  /** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
38
38
  inputComponent?: ElementType;
39
- /** Native HTML `size` attribute — visible width in character widths. Has no effect with `multiline` or `resize`. */
39
+ /** Native HTML `size` attribute - visible width in character widths. Has no effect with `multiline` or `resize`. */
40
40
  inputSize?: number;
41
41
  /** Extra props spread onto the native element. Explicit top-level props take priority. */
42
42
  inputProps?: InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>;
@@ -67,9 +67,9 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
67
67
  type?: string;
68
68
  /**
69
69
  * Visual style of the input.
70
- * - `outlined` / `default` — full border box (default)
71
- * - `underline` — border on bottom only
72
- * - `text` — no border, transparent background
70
+ * - `outlined` / `default` - full border box (default)
71
+ * - `underline` - border on bottom only
72
+ * - `text` - no border, transparent background
73
73
  */
74
74
  variant?: TextInputVariant;
75
75
  value?: string | number | readonly string[];
@@ -1,6 +1,6 @@
1
- import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-D3tHU94W.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-Cudynq5K.mjs";
3
+ import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
4
  import { useFormControl } from "./FormControl.mjs";
5
5
  import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
6
6
  import { forwardRef, useCallback, useLayoutEffect, useRef } from "react";
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BJrcLd7P.cjs");
2
+ const require_src = require("../src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
4
  const require_utils = require("../utils.cjs");
5
- const require_theme = require("../theme-CleLAV6A.cjs");
5
+ const require_theme = require("../theme-BmEAXmwh.cjs");
6
6
  const require_ButtonGroupContext = require("../ButtonGroupContext-NtkVeDVE.cjs");
7
7
  const require_Button = require("../Button.cjs");
8
8
  const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-Ewc5Ixas.cjs");
@@ -1,10 +1,10 @@
1
- import { i as ButtonProps } from "../index-uH0EeDBZ.cjs";
2
- import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.cjs";
1
+ import { i as ButtonProps } from "../index-S3NZS-Qp.cjs";
2
+ import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-10jEsQdg.cjs";
3
3
  //#region src/ToggleButton/ToggleButton/ToggleButton.d.ts
4
4
  interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
5
5
  /** The value associated with the button inside a `ToggleButtonGroup`. */
6
6
  value: ToggleButtonValue;
7
- /** Active state — inferred from the group's value when omitted. Drives `aria-pressed`. */
7
+ /** Active state - inferred from the group's value when omitted. Drives `aria-pressed`. */
8
8
  isSelected?: boolean;
9
9
  /** Fired with the button's `value` when toggled. */
10
10
  onChange?: (value: ToggleButtonValue) => void;
@@ -1,10 +1,10 @@
1
- import { i as ButtonProps } from "../index-BAfSyQaP.mjs";
2
- import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.mjs";
1
+ import { i as ButtonProps } from "../index-D4i9vrQM.mjs";
2
+ import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-10jEsQdg.mjs";
3
3
  //#region src/ToggleButton/ToggleButton/ToggleButton.d.ts
4
4
  interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
5
5
  /** The value associated with the button inside a `ToggleButtonGroup`. */
6
6
  value: ToggleButtonValue;
7
- /** Active state — inferred from the group's value when omitted. Drives `aria-pressed`. */
7
+ /** Active state - inferred from the group's value when omitted. Drives `aria-pressed`. */
8
8
  isSelected?: boolean;
9
9
  /** Fired with the button's `value` when toggled. */
10
10
  onChange?: (value: ToggleButtonValue) => void;
@@ -1,7 +1,7 @@
1
- import { a as src_exports, o as styled } from "../src-D3tHU94W.mjs";
1
+ import { a as src_exports, o as styled } from "../src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
3
  import { alpha } from "../utils.mjs";
4
- import { r as useTheme } from "../theme-Cudynq5K.mjs";
4
+ import { r as useTheme } from "../theme-BQGlZoma.mjs";
5
5
  import { t as ButtonGroupContext } from "../ButtonGroupContext-DS-kl9lG.mjs";
6
6
  import { Button } from "../Button.mjs";
7
7
  import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-DxIyy8ze.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BJrcLd7P.cjs");
2
+ const require_src = require("../src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("../theme-CleLAV6A.cjs");
4
+ const require_theme = require("../theme-BmEAXmwh.cjs");
5
5
  const require_ButtonGroup = require("../ButtonGroup.cjs");
6
6
  const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-Ewc5Ixas.cjs");
7
7
  let react = require("react");
@@ -16,7 +16,7 @@ const ToggleButtonGroupRoot = require_src.styled(require_ButtonGroup.ButtonGroup
16
16
  })(selectedEdgeStyles);
17
17
  /**
18
18
  * A `ButtonGroup` of `ToggleButton`s with single (exclusive) or multiple selection,
19
- * provided to children via `ToggleButtonGroupContext`. Controlled — the consumer
19
+ * provided to children via `ToggleButtonGroupContext`. Controlled - the consumer
20
20
  * owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
21
21
  * through `ButtonGroup` as usual.
22
22
  */
@@ -1,8 +1,8 @@
1
- import { a as ButtonGroupProps } from "../index-BYYEoNec.cjs";
2
- import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.cjs";
1
+ import { a as ButtonGroupProps } from "../index-CCrocxBL.cjs";
2
+ import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-10jEsQdg.cjs";
3
3
  //#region src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.d.ts
4
4
  interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
5
- /** Selected value(s) — single when `isExclusive`, array otherwise. Controlled. */
5
+ /** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
6
6
  value?: ToggleButtonValue | ToggleButtonValue[] | null;
7
7
  /**
8
8
  * Fired with the next selection: a single value or `null` when `isExclusive`,
@@ -14,7 +14,7 @@ interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onC
14
14
  }
15
15
  /**
16
16
  * A `ButtonGroup` of `ToggleButton`s with single (exclusive) or multiple selection,
17
- * provided to children via `ToggleButtonGroupContext`. Controlled — the consumer
17
+ * provided to children via `ToggleButtonGroupContext`. Controlled - the consumer
18
18
  * owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
19
19
  * through `ButtonGroup` as usual.
20
20
  */
@@ -1,8 +1,8 @@
1
- import { a as ButtonGroupProps } from "../index-CbGfrKZi.mjs";
2
- import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.mjs";
1
+ import { a as ButtonGroupProps } from "../index-BNpkmtaM.mjs";
2
+ import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-10jEsQdg.mjs";
3
3
  //#region src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.d.ts
4
4
  interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
5
- /** Selected value(s) — single when `isExclusive`, array otherwise. Controlled. */
5
+ /** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
6
6
  value?: ToggleButtonValue | ToggleButtonValue[] | null;
7
7
  /**
8
8
  * Fired with the next selection: a single value or `null` when `isExclusive`,
@@ -14,7 +14,7 @@ interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onC
14
14
  }
15
15
  /**
16
16
  * A `ButtonGroup` of `ToggleButton`s with single (exclusive) or multiple selection,
17
- * provided to children via `ToggleButtonGroupContext`. Controlled — the consumer
17
+ * provided to children via `ToggleButtonGroupContext`. Controlled - the consumer
18
18
  * owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
19
19
  * through `ButtonGroup` as usual.
20
20
  */
@@ -1,6 +1,6 @@
1
- import { o as styled } from "../src-D3tHU94W.mjs";
1
+ import { o as styled } from "../src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "../theme-Cudynq5K.mjs";
3
+ import { r as useTheme } from "../theme-BQGlZoma.mjs";
4
4
  import { ButtonGroup } from "../ButtonGroup.mjs";
5
5
  import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-DxIyy8ze.mjs";
6
6
  import { useMemo } from "react";
@@ -15,7 +15,7 @@ const ToggleButtonGroupRoot = styled(ButtonGroup, {
15
15
  })(selectedEdgeStyles);
16
16
  /**
17
17
  * A `ButtonGroup` of `ToggleButton`s with single (exclusive) or multiple selection,
18
- * provided to children via `ToggleButtonGroupContext`. Controlled — the consumer
18
+ * provided to children via `ToggleButtonGroupContext`. Controlled - the consumer
19
19
  * owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
20
20
  * through `ButtonGroup` as usual.
21
21
  */
@@ -1,4 +1,4 @@
1
- import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-CqD-Afho.cjs";
1
+ import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-10jEsQdg.cjs";
2
2
  import { ToggleButton, ToggleButtonProps } from "./ToggleButton/ToggleButton.cjs";
3
3
  import { ToggleButtonGroup, ToggleButtonGroupProps } from "./ToggleButton/ToggleButtonGroup.cjs";
4
4
  export { ToggleButton, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupContextValue, ToggleButtonGroupProps, ToggleButtonProps, ToggleButtonValue };