@soroush.tech/design-system 0.1.0 → 1.0.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 (367) hide show
  1. package/README.md +42 -31
  2. package/dist/AppBar.cjs +2 -2
  3. package/dist/AppBar.d.cts +3 -2
  4. package/dist/AppBar.d.mts +3 -2
  5. package/dist/AppBar.mjs +2 -2
  6. package/dist/Avatar.cjs +4 -4
  7. package/dist/Avatar.d.cts +3 -2
  8. package/dist/Avatar.d.mts +3 -2
  9. package/dist/Avatar.mjs +3 -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 +5 -6
  15. package/dist/Button.d.cts +1 -1
  16. package/dist/Button.d.mts +1 -1
  17. package/dist/Button.mjs +3 -3
  18. package/dist/ButtonGroup.cjs +2 -2
  19. package/dist/ButtonGroup.d.cts +1 -1
  20. package/dist/ButtonGroup.d.mts +1 -1
  21. package/dist/ButtonGroup.mjs +2 -2
  22. package/dist/Card.cjs +6 -7
  23. package/dist/Card.d.cts +3 -3
  24. package/dist/Card.d.mts +3 -3
  25. package/dist/Card.mjs +4 -4
  26. package/dist/Checkbox.cjs +2 -2
  27. package/dist/Checkbox.d.cts +42 -1
  28. package/dist/Checkbox.d.mts +42 -1
  29. package/dist/Checkbox.mjs +2 -2
  30. package/dist/CircularProgress.cjs +2 -2
  31. package/dist/CircularProgress.d.cts +3 -2
  32. package/dist/CircularProgress.d.mts +3 -2
  33. package/dist/CircularProgress.mjs +2 -2
  34. package/dist/Drawer.cjs +2 -2
  35. package/dist/Drawer.d.cts +2 -2
  36. package/dist/Drawer.d.mts +2 -2
  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 -3
  45. package/dist/Form.d.cts +1 -1
  46. package/dist/Form.d.mts +1 -1
  47. package/dist/Form.mjs +2 -3
  48. package/dist/{FormContext-CRmRgDgu.cjs → FormContext-BGCsWAFc.cjs} +0 -1
  49. package/dist/{FormContext-_G3sxJyQ.mjs → FormContext-LrjAGe6U.mjs} +0 -1
  50. package/dist/FormControl.cjs +6 -6
  51. package/dist/FormControl.d.cts +2 -2
  52. package/dist/FormControl.d.mts +2 -2
  53. package/dist/FormControl.mjs +5 -5
  54. package/dist/{FormControlContext-aeKTjRKY.cjs → FormControlContext-74gvPGFk.cjs} +0 -1
  55. package/dist/{FormControlContext-CyxdOxdN.mjs → FormControlContext-CC2kToms.mjs} +0 -1
  56. package/dist/FormHelperText.cjs +3 -3
  57. package/dist/FormHelperText.d.cts +1 -1
  58. package/dist/FormHelperText.d.mts +1 -1
  59. package/dist/FormHelperText.mjs +3 -3
  60. package/dist/FormLabel.cjs +3 -3
  61. package/dist/FormLabel.d.cts +17 -1
  62. package/dist/FormLabel.d.mts +17 -1
  63. package/dist/FormLabel.mjs +3 -3
  64. package/dist/Grid.cjs +1 -1
  65. package/dist/Grid.d.cts +3 -2
  66. package/dist/Grid.d.mts +3 -2
  67. package/dist/Grid.mjs +1 -1
  68. package/dist/{Icon-CAKRmFz3.mjs → Icon-bv8Z38l-.mjs} +44 -3
  69. package/dist/{Icon-1YtNCUKo.cjs → Icon-zsHe7hWR.cjs} +45 -5
  70. package/dist/Icon.cjs +1 -1
  71. package/dist/Icon.d.cts +1 -1
  72. package/dist/Icon.d.mts +1 -1
  73. package/dist/Icon.mjs +1 -1
  74. package/dist/Image.cjs +1 -1
  75. package/dist/Image.d.cts +16 -1
  76. package/dist/Image.d.mts +16 -1
  77. package/dist/Image.mjs +1 -1
  78. package/dist/LinearProgress.cjs +2 -2
  79. package/dist/LinearProgress.d.cts +3 -2
  80. package/dist/LinearProgress.d.mts +3 -2
  81. package/dist/LinearProgress.mjs +2 -2
  82. package/dist/Link.cjs +4 -4
  83. package/dist/Link.d.cts +10 -1
  84. package/dist/Link.d.mts +10 -1
  85. package/dist/Link.mjs +3 -2
  86. package/dist/MenuItem.cjs +6 -7
  87. package/dist/MenuItem.d.cts +2 -1
  88. package/dist/MenuItem.d.mts +2 -1
  89. package/dist/MenuItem.mjs +4 -3
  90. package/dist/{Modal-BDMPTSXv.cjs → Modal-DZH-DzMZ.cjs} +2 -2
  91. package/dist/{Modal-DR60peRg.mjs → Modal-dy5l7gfH.mjs} +2 -2
  92. package/dist/Modal.cjs +1 -1
  93. package/dist/Modal.d.cts +1 -1
  94. package/dist/Modal.d.mts +1 -1
  95. package/dist/Modal.mjs +1 -1
  96. package/dist/NativeSelect.cjs +5 -5
  97. package/dist/NativeSelect.d.cts +3 -2
  98. package/dist/NativeSelect.d.mts +3 -2
  99. package/dist/NativeSelect.mjs +4 -3
  100. package/dist/Pagination/PaginationItem.cjs +3 -3
  101. package/dist/Pagination/PaginationItem.d.cts +1 -1
  102. package/dist/Pagination/PaginationItem.d.mts +1 -1
  103. package/dist/Pagination/PaginationItem.mjs +3 -3
  104. package/dist/Pagination.cjs +1 -1
  105. package/dist/Pagination.d.cts +2 -22
  106. package/dist/Pagination.d.mts +2 -22
  107. package/dist/Pagination.mjs +1 -1
  108. package/dist/Paper.cjs +5 -6
  109. package/dist/Paper.d.cts +1 -1
  110. package/dist/Paper.d.mts +1 -1
  111. package/dist/Paper.mjs +3 -2
  112. package/dist/{Popover-B61J7C79.mjs → Popover-Chgtjn-N.mjs} +3 -2
  113. package/dist/{Popover-CRDLmywF.cjs → Popover-pEVboMZO.cjs} +4 -4
  114. package/dist/Popover.cjs +1 -1
  115. package/dist/Popover.d.cts +4 -3
  116. package/dist/Popover.d.mts +4 -3
  117. package/dist/Popover.mjs +1 -1
  118. package/dist/Quote.cjs +1 -1
  119. package/dist/Quote.d.cts +13 -1
  120. package/dist/Quote.d.mts +13 -1
  121. package/dist/Quote.mjs +1 -1
  122. package/dist/Radio.cjs +2 -2
  123. package/dist/Radio.d.cts +2 -2
  124. package/dist/Radio.d.mts +2 -2
  125. package/dist/Radio.mjs +2 -2
  126. package/dist/Select.cjs +10 -32
  127. package/dist/Select.d.cts +3 -2
  128. package/dist/Select.d.mts +3 -2
  129. package/dist/Select.mjs +9 -30
  130. package/dist/Skeleton.cjs +1 -1
  131. package/dist/Skeleton.d.cts +2 -1
  132. package/dist/Skeleton.d.mts +2 -1
  133. package/dist/Skeleton.mjs +1 -1
  134. package/dist/Switch.cjs +4 -4
  135. package/dist/Switch.d.cts +2 -1
  136. package/dist/Switch.d.mts +2 -1
  137. package/dist/Switch.mjs +3 -2
  138. package/dist/Table/Table.cjs +2 -2
  139. package/dist/Table/Table.d.cts +47 -1
  140. package/dist/Table/Table.d.mts +47 -1
  141. package/dist/Table/Table.mjs +2 -2
  142. package/dist/Table/TableBody.cjs +1 -1
  143. package/dist/Table/TableBody.d.cts +21 -1
  144. package/dist/Table/TableBody.d.mts +21 -1
  145. package/dist/Table/TableBody.mjs +1 -1
  146. package/dist/Table/TableCell.cjs +3 -3
  147. package/dist/Table/TableCell.d.cts +1 -1
  148. package/dist/Table/TableCell.d.mts +1 -1
  149. package/dist/Table/TableCell.mjs +3 -3
  150. package/dist/Table/TableContainer.cjs +1 -1
  151. package/dist/Table/TableContainer.d.cts +17 -1
  152. package/dist/Table/TableContainer.d.mts +17 -1
  153. package/dist/Table/TableContainer.mjs +1 -1
  154. package/dist/Table/TableControl.d.cts +27 -1
  155. package/dist/Table/TableControl.d.mts +27 -1
  156. package/dist/Table/TableFooter.cjs +1 -1
  157. package/dist/Table/TableFooter.d.cts +21 -1
  158. package/dist/Table/TableFooter.d.mts +21 -1
  159. package/dist/Table/TableFooter.mjs +1 -1
  160. package/dist/Table/TableHead.cjs +1 -1
  161. package/dist/Table/TableHead.d.cts +21 -1
  162. package/dist/Table/TableHead.d.mts +21 -1
  163. package/dist/Table/TableHead.mjs +1 -1
  164. package/dist/Table/TablePagination.cjs +1 -1
  165. package/dist/Table/TablePagination.d.cts +44 -1
  166. package/dist/Table/TablePagination.d.mts +44 -1
  167. package/dist/Table/TablePagination.mjs +1 -1
  168. package/dist/Table/TablePaginationActions.cjs +4 -4
  169. package/dist/Table/TablePaginationActions.d.cts +1 -1
  170. package/dist/Table/TablePaginationActions.d.mts +1 -1
  171. package/dist/Table/TablePaginationActions.mjs +3 -2
  172. package/dist/Table/TableRow.cjs +3 -3
  173. package/dist/Table/TableRow.d.cts +29 -1
  174. package/dist/Table/TableRow.d.mts +29 -1
  175. package/dist/Table/TableRow.mjs +3 -3
  176. package/dist/Table/TableSortLabel.cjs +3 -3
  177. package/dist/Table/TableSortLabel.d.cts +1 -1
  178. package/dist/Table/TableSortLabel.d.mts +1 -1
  179. package/dist/Table/TableSortLabel.mjs +3 -3
  180. package/dist/Table/hooks.d.cts +39 -2
  181. package/dist/Table/hooks.d.mts +39 -2
  182. package/dist/Table.cjs +1 -1
  183. package/dist/Table.d.cts +14 -15
  184. package/dist/Table.d.mts +14 -15
  185. package/dist/Table.mjs +1 -1
  186. package/dist/{TableContext-qqp35o8z.cjs → TableContext-Bfg1C3Sr.cjs} +0 -1
  187. package/dist/{TableContext-2qH7XYJB.d.cts → TableContext-DOhYeOFx.d.cts} +1 -1
  188. package/dist/{TableContext-BRWPghAI.mjs → TableContext-Dyr89h_k.mjs} +0 -1
  189. package/dist/{TableContext-2qH7XYJB.d.mts → TableContext-adilRIJZ.d.mts} +1 -1
  190. package/dist/TextInput.cjs +228 -2
  191. package/dist/TextInput.d.cts +79 -1
  192. package/dist/TextInput.d.mts +79 -1
  193. package/dist/TextInput.mjs +226 -1
  194. package/dist/ToggleButton/ToggleButton.cjs +4 -4
  195. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  196. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  197. package/dist/ToggleButton/ToggleButton.mjs +3 -2
  198. package/dist/ToggleButton/ToggleButtonGroup.cjs +4 -4
  199. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  200. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  201. package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -2
  202. package/dist/ToggleButton.d.cts +1 -1
  203. package/dist/ToggleButton.d.mts +1 -1
  204. package/dist/Typography.cjs +3 -3
  205. package/dist/Typography.d.cts +2 -2
  206. package/dist/Typography.d.mts +2 -2
  207. package/dist/Typography.mjs +2 -1
  208. package/dist/View.cjs +1 -1
  209. package/dist/View.d.cts +1 -1
  210. package/dist/View.d.mts +1 -1
  211. package/dist/View.mjs +1 -1
  212. package/dist/emotion-BAyqVw0c.mjs +6 -0
  213. package/dist/emotion-DviPkkGL.cjs +10 -0
  214. package/dist/engine.cjs +80 -0
  215. package/dist/engine.d.cts +21 -0
  216. package/dist/engine.d.mts +21 -0
  217. package/dist/engine.mjs +69 -0
  218. package/dist/index-0J6U39Rl.d.mts +53 -0
  219. package/dist/{index-Dm9HfgV6.d.mts → index-B66h9kbP.d.mts} +17 -7
  220. package/dist/{index-FwTocqhP.d.cts → index-B8FOqBiS.d.cts} +2 -1
  221. package/dist/{index-DE5PtzPn.d.mts → index-BF2KXGBM.d.mts} +2 -2
  222. package/dist/{index-CeYkEXU2.d.cts → index-BGWm4HKR.d.cts} +2 -2
  223. package/dist/{index-DmJIuQJj.d.mts → index-BGzs2cKy.d.mts} +3 -2
  224. package/dist/{index-B1rCD6Oo.d.cts → index-BJcHQUga.d.mts} +3 -2
  225. package/dist/{index-CDVnvjIE.d.cts → index-BLnOsdgc.d.cts} +2 -2
  226. package/dist/{index-Bihpwn75.d.cts → index-BVX_Jq2G.d.cts} +17 -7
  227. package/dist/{index-8dzWTpFp.d.cts → index-BahGB82c.d.cts} +3 -2
  228. package/dist/{index-DASvoACZ.d.cts → index-BnCp6k4s.d.cts} +2 -2
  229. package/dist/{index-Dy03o__A.d.mts → index-BpLv6Y8m.d.mts} +2 -1
  230. package/dist/index-C-UBdWKI.d.cts +24 -0
  231. package/dist/{index-BqVgv2B_.d.mts → index-C1vVYigQ.d.cts} +3 -2
  232. package/dist/index-CJQXZ4hq.d.cts +53 -0
  233. package/dist/{index-C0xMvDjL.d.mts → index-CLCtvcKA.d.mts} +2 -2
  234. package/dist/{index-DSCMXFTn.d.cts → index-CY0Czi9Z.d.cts} +2 -1
  235. package/dist/{index-pX7tBQdJ.d.mts → index-CYNgNatZ.d.mts} +2 -1
  236. package/dist/{index-BLfFycfJ.d.mts → index-D0x1ZMVG.d.mts} +6 -2
  237. package/dist/{index-4rC2j7fR.d.cts → index-D2H_6WLf.d.cts} +3 -2
  238. package/dist/{index-BnzUumAC2.d.mts → index-DCwLdUQH.d.mts} +2 -1
  239. package/dist/{index-BH8jQOdF.d.mts → index-DGqakgRN.d.mts} +3 -2
  240. package/dist/{index-BLRMuO_x.d.mts → index-DLiHZtDi.d.mts} +3 -2
  241. package/dist/{index-Dp81rWM1.d.cts → index-DN7IvJeV.d.cts} +6 -2
  242. package/dist/{index-BX5-NfbX.d.cts → index-DdFxl06Q.d.cts} +2 -1
  243. package/dist/{index-z35LEYG8.d.mts → index-DhcmRr8Q.d.cts} +3 -2
  244. package/dist/index-DitJ7ss0.d.mts +24 -0
  245. package/dist/{index-CyZYXDn0.d.cts → index-DwjxjLcD.d.mts} +3 -2
  246. package/dist/{index-x80UG39F.d.cts → index-HnvGdPCp.d.cts} +3 -2
  247. package/dist/{index-CxSNNzBT2.d.mts → index-ypEBcdCx.d.mts} +2 -2
  248. package/dist/index.cjs +2 -32
  249. package/dist/index.d.cts +3 -3
  250. package/dist/index.d.mts +3 -3
  251. package/dist/index.mjs +2 -2
  252. package/dist/{src-DcNT2aIK.mjs → src-BJy4dM4f.mjs} +5 -10
  253. package/dist/{src-BiocWFSR.cjs → src-C8PIppTy.cjs} +2 -7
  254. package/dist/{hooks.cjs → style.cjs} +5 -23
  255. package/dist/style.d.cts +23 -0
  256. package/dist/style.d.mts +23 -0
  257. package/dist/{hooks.mjs → style.mjs} +6 -16
  258. package/dist/theme-Du6xgPsg.cjs +470 -0
  259. package/dist/{themes.mjs → theme-V6lYzd3j.mjs} +68 -14
  260. package/dist/theme.cjs +23 -0
  261. package/dist/theme.d.cts +3 -0
  262. package/dist/theme.d.mts +3 -0
  263. package/dist/theme.mjs +3 -0
  264. package/dist/{themeDefault-B-QjpGEO.cjs → themeDefault-Cebi08Cv.cjs} +1 -1
  265. package/dist/{themeDefault-CjXaY3ok.mjs → themeDefault-Z3KmyIbm.mjs} +1 -1
  266. package/dist/themes-BTGww2YK.d.cts +488 -0
  267. package/dist/themes-BTGww2YK.d.mts +488 -0
  268. package/dist/{useTableSort--XMWjujs.d.cts → useTablePagination-D6T-fQFc.d.mts} +25 -25
  269. package/dist/{useTableSort-CpDs4cGq.d.mts → useTablePagination-_94Wrvj9.d.cts} +25 -25
  270. package/dist/utils.cjs +0 -29
  271. package/dist/utils.d.cts +1 -19
  272. package/dist/utils.d.mts +1 -19
  273. package/dist/utils.mjs +1 -27
  274. package/package.json +410 -23
  275. package/dist/CodeBlock.cjs +0 -101
  276. package/dist/CodeBlock.d.cts +0 -2
  277. package/dist/CodeBlock.d.mts +0 -2
  278. package/dist/CodeBlock.mjs +0 -100
  279. package/dist/Field.cjs +0 -59
  280. package/dist/Field.d.cts +0 -36
  281. package/dist/Field.d.mts +0 -36
  282. package/dist/Field.mjs +0 -58
  283. package/dist/Markdown/Control.cjs +0 -61
  284. package/dist/Markdown/Control.d.cts +0 -18
  285. package/dist/Markdown/Control.d.mts +0 -18
  286. package/dist/Markdown/Control.mjs +0 -60
  287. package/dist/Markdown/Editor.cjs +0 -130
  288. package/dist/Markdown/Editor.d.cts +0 -40
  289. package/dist/Markdown/Editor.d.mts +0 -40
  290. package/dist/Markdown/Editor.mjs +0 -128
  291. package/dist/Markdown/Preview.cjs +0 -241
  292. package/dist/Markdown/Preview.d.cts +0 -55
  293. package/dist/Markdown/Preview.d.mts +0 -55
  294. package/dist/Markdown/Preview.mjs +0 -236
  295. package/dist/Markdown/Toolbar.cjs +0 -4
  296. package/dist/Markdown/Toolbar.d.cts +0 -13
  297. package/dist/Markdown/Toolbar.d.mts +0 -13
  298. package/dist/Markdown/Toolbar.mjs +0 -2
  299. package/dist/Markdown.cjs +0 -13
  300. package/dist/Markdown.d.cts +0 -80
  301. package/dist/Markdown.d.mts +0 -80
  302. package/dist/Markdown.mjs +0 -6
  303. package/dist/MarkdownContext-BN8A3W-J.mjs +0 -11
  304. package/dist/MarkdownContext-DSwjzpH8.cjs +0 -22
  305. package/dist/TextInput-6o37Zddp.cjs +0 -231
  306. package/dist/TextInput-D_lHYJlL.mjs +0 -224
  307. package/dist/ThemeProvider.cjs +0 -15
  308. package/dist/ThemeProvider.d.cts +0 -20
  309. package/dist/ThemeProvider.d.mts +0 -20
  310. package/dist/ThemeProvider.mjs +0 -14
  311. package/dist/Toolbar-B-W22Sk4.cjs +0 -459
  312. package/dist/Toolbar-KbR97iJS.mjs +0 -448
  313. package/dist/applyAction-B2B-hnP3.mjs +0 -98
  314. package/dist/applyAction-B2uVHxOE.cjs +0 -103
  315. package/dist/createTheme-Dts2F4R_.d.cts +0 -21
  316. package/dist/createTheme-Dts2F4R_.d.mts +0 -21
  317. package/dist/hooks/useCopyToClipboard.cjs +0 -33
  318. package/dist/hooks/useCopyToClipboard.d.cts +0 -16
  319. package/dist/hooks/useCopyToClipboard.d.mts +0 -16
  320. package/dist/hooks/useCopyToClipboard.mjs +0 -31
  321. package/dist/hooks.d.cts +0 -40
  322. package/dist/hooks.d.mts +0 -40
  323. package/dist/index-BPrjvi7B.d.cts +0 -13
  324. package/dist/index-BlfIbAMs.d.cts +0 -45
  325. package/dist/index-BoqlPb3Z.d.mts +0 -13
  326. package/dist/index-Bwi4kRpf.d.mts +0 -79
  327. package/dist/index-Bx24ZnOV.d.mts +0 -43
  328. package/dist/index-C-P_hipv.d.mts +0 -21
  329. package/dist/index-C5_ciaeo.d.cts +0 -79
  330. package/dist/index-CDcGTGR4.d.cts +0 -21
  331. package/dist/index-CEOZI-6L.d.mts +0 -48
  332. package/dist/index-CLU39rUS2.d.mts +0 -30
  333. package/dist/index-CM_KCTee.d.cts +0 -48
  334. package/dist/index-CT9uGKrs.d.cts +0 -30
  335. package/dist/index-CcYSvIJi.d.cts +0 -21
  336. package/dist/index-CdF_4ckE.d.mts +0 -11
  337. package/dist/index-Cl_yBpzW2.d.mts +0 -13
  338. package/dist/index-Cv_UOfYx.d.mts +0 -18
  339. package/dist/index-DBGE6yKw.d.mts +0 -16
  340. package/dist/index-DCQ2fsDu.d.mts +0 -40
  341. package/dist/index-DD2AVtiR.d.cts +0 -16
  342. package/dist/index-DOPXpr2J.d.cts +0 -43
  343. package/dist/index-DTkQSXQD.d.cts +0 -11
  344. package/dist/index-DeJWkpf9.d.cts +0 -16
  345. package/dist/index-DeiZHSwA.d.cts +0 -12
  346. package/dist/index-Des8BisQ.d.mts +0 -12
  347. package/dist/index-Dg8-CPOO.d.cts +0 -18
  348. package/dist/index-DgRS5Aqv.d.mts +0 -16
  349. package/dist/index-Dtzj8X58.d.cts +0 -40
  350. package/dist/index-DvW2eETV.d.mts +0 -21
  351. package/dist/index-GVsFY00r.d.cts +0 -21
  352. package/dist/index-Nqco3fsM.d.cts +0 -13
  353. package/dist/index-g-9DZ_KQ.d.cts +0 -28
  354. package/dist/index-g9EThkSg.d.mts +0 -21
  355. package/dist/index-kpk9e3xM2.d.mts +0 -45
  356. package/dist/index-u57CbuAU2.d.mts +0 -28
  357. package/dist/themes-D1SAp3SL.d.mts +0 -500
  358. package/dist/themes-D81JYbqm.d.cts +0 -500
  359. package/dist/themes.cjs +0 -318
  360. package/dist/themes.d.cts +0 -3
  361. package/dist/themes.d.mts +0 -3
  362. package/dist/useDefaultProps-Cb-5FNok.cjs +0 -19
  363. package/dist/useDefaultProps-CoApb4KT.mjs +0 -14
  364. package/dist/utils/styleCache.cjs +0 -7
  365. package/dist/utils/styleCache.d.cts +0 -3
  366. package/dist/utils/styleCache.d.mts +0 -4
  367. package/dist/utils/styleCache.mjs +0 -5
@@ -1,4 +1,4 @@
1
- import { d as styled } from "../src-DcNT2aIK.mjs";
1
+ import { o as styled } from "../src-BJy4dM4f.mjs";
2
2
  import { View } from "../View.mjs";
3
3
  //#region src/Table/TableContainer/TableContainer.tsx
4
4
  /**
@@ -1,2 +1,28 @@
1
- import { n as TableControlProps, t as TableControl } from "../index-g-9DZ_KQ.cjs";
1
+ import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-_94Wrvj9.cjs";
2
+ import { ReactNode } from "react";
3
+ //#region src/Table/TableControl/TableControl.d.ts
4
+ interface TableControlProps<T, K extends string = string> {
5
+ /** The full dataset — `TableControl` derives the visible rows from it. */
6
+ data: readonly T[];
7
+ /** Sort map from `useTableSort` — the active entry drives the ordering. */
8
+ sort?: TableSortMap<K>;
9
+ /** Paging state from `useTablePagination` — drives the visible slice. */
10
+ pagination?: Pick<TablePaginationState, 'page' | 'rowsPerPage'>;
11
+ /**
12
+ * Custom sort — overrides the default string/number comparison. Receives the
13
+ * active column key, so different columns can use different logic:
14
+ * `(a, b, orderBy) => orderBy === 'name' ? a.name.localeCompare(b.name) : a[orderBy] - b[orderBy]`
15
+ */
16
+ sortFunction?: (a: T, b: T, orderBy: K) => number;
17
+ /** Row renderer — invoked for each visible row. */
18
+ children: (row: T, index: number) => ReactNode;
19
+ }
20
+ /**
21
+ * Renders the visible rows of a dataset inside `TableBody` — sorted by the
22
+ * active `useTableSort` column and sliced by the `useTablePagination` state.
23
+ * Emits the rows directly (no wrapper element), so its output are valid
24
+ * `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
25
+ */
26
+ declare function TableControl<T, K extends string = string>({ data, sort, pagination, sortFunction, children }: Readonly<TableControlProps<T, K>>): import("react").JSX.Element;
27
+ //#endregion
2
28
  export { TableControl, TableControlProps };
@@ -1,2 +1,28 @@
1
- import { n as TableControlProps, t as TableControl } from "../index-u57CbuAU2.mjs";
1
+ import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-D6T-fQFc.mjs";
2
+ import { ReactNode } from "react";
3
+ //#region src/Table/TableControl/TableControl.d.ts
4
+ interface TableControlProps<T, K extends string = string> {
5
+ /** The full dataset — `TableControl` derives the visible rows from it. */
6
+ data: readonly T[];
7
+ /** Sort map from `useTableSort` — the active entry drives the ordering. */
8
+ sort?: TableSortMap<K>;
9
+ /** Paging state from `useTablePagination` — drives the visible slice. */
10
+ pagination?: Pick<TablePaginationState, 'page' | 'rowsPerPage'>;
11
+ /**
12
+ * Custom sort — overrides the default string/number comparison. Receives the
13
+ * active column key, so different columns can use different logic:
14
+ * `(a, b, orderBy) => orderBy === 'name' ? a.name.localeCompare(b.name) : a[orderBy] - b[orderBy]`
15
+ */
16
+ sortFunction?: (a: T, b: T, orderBy: K) => number;
17
+ /** Row renderer — invoked for each visible row. */
18
+ children: (row: T, index: number) => ReactNode;
19
+ }
20
+ /**
21
+ * Renders the visible rows of a dataset inside `TableBody` — sorted by the
22
+ * active `useTableSort` column and sliced by the `useTablePagination` state.
23
+ * Emits the rows directly (no wrapper element), so its output are valid
24
+ * `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
25
+ */
26
+ declare function TableControl<T, K extends string = string>({ data, sort, pagination, sortFunction, children }: Readonly<TableControlProps<T, K>>): import("react").JSX.Element;
27
+ //#endregion
2
28
  export { TableControl, TableControlProps };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
3
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,2 +1,22 @@
1
- import { a as TableFooterProps, i as TableFooterColorToken, n as TableFooterBackgroundToken, r as TableFooterBorderColorToken, t as TableFooter } from "../index-CDcGTGR4.cjs";
1
+ import { r as index_d_exports } from "../index-BVX_Jq2G.cjs";
2
+ import { m as Theme } from "../themes-BTGww2YK.cjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableFooter/TableFooter.d.ts
5
+ /** Valid values for the color prop — derived from theme.text keys. */
6
+ type TableFooterColorToken = keyof Theme['text'];
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableFooterBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableFooterBorderColorToken = keyof Theme['border'];
11
+ interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /** Resolves against theme.text */
13
+ color?: TableFooterColorToken;
14
+ /** Resolves against theme.background */
15
+ bg?: TableFooterBackgroundToken;
16
+ /** Resolves against theme.border — light · primary · dark */
17
+ borderColor?: TableFooterBorderColorToken;
18
+ as?: ElementType;
19
+ }
20
+ declare function TableFooter({ as, children, ...rest }: Readonly<TableFooterProps>): import("react").JSX.Element;
21
+ //#endregion
2
22
  export { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps };
@@ -1,2 +1,22 @@
1
- import { a as TableFooterProps, i as TableFooterColorToken, n as TableFooterBackgroundToken, r as TableFooterBorderColorToken, t as TableFooter } from "../index-g9EThkSg.mjs";
1
+ import { m as Theme } from "../themes-BTGww2YK.mjs";
2
+ import { r as index_d_exports } from "../index-B66h9kbP.mjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableFooter/TableFooter.d.ts
5
+ /** Valid values for the color prop — derived from theme.text keys. */
6
+ type TableFooterColorToken = keyof Theme['text'];
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableFooterBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableFooterBorderColorToken = keyof Theme['border'];
11
+ interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /** Resolves against theme.text */
13
+ color?: TableFooterColorToken;
14
+ /** Resolves against theme.background */
15
+ bg?: TableFooterBackgroundToken;
16
+ /** Resolves against theme.border — light · primary · dark */
17
+ borderColor?: TableFooterBorderColorToken;
18
+ as?: ElementType;
19
+ }
20
+ declare function TableFooter({ as, children, ...rest }: Readonly<TableFooterProps>): import("react").JSX.Element;
21
+ //#endregion
2
22
  export { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps };
@@ -1,4 +1,4 @@
1
- import { a as createShouldForwardProp, c as props, d as styled, l as src_exports } from "../src-DcNT2aIK.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
2
2
  import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
3
  const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
4
4
  require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,2 +1,22 @@
1
- import { a as TableHeadProps, i as TableHeadColorToken, n as TableHeadBackgroundToken, r as TableHeadBorderColorToken, t as TableHead } from "../index-CcYSvIJi.cjs";
1
+ import { r as index_d_exports } from "../index-BVX_Jq2G.cjs";
2
+ import { m as Theme } from "../themes-BTGww2YK.cjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableHead/TableHead.d.ts
5
+ /** Valid values for the color prop — derived from theme.text keys. */
6
+ type TableHeadColorToken = keyof Theme['text'];
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableHeadBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableHeadBorderColorToken = keyof Theme['border'];
11
+ interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /** Resolves against theme.text */
13
+ color?: TableHeadColorToken;
14
+ /** Resolves against theme.background */
15
+ bg?: TableHeadBackgroundToken;
16
+ /** Resolves against theme.border — light · primary · dark */
17
+ borderColor?: TableHeadBorderColorToken;
18
+ as?: ElementType;
19
+ }
20
+ declare function TableHead({ as, children, ...rest }: Readonly<TableHeadProps>): import("react").JSX.Element;
21
+ //#endregion
2
22
  export { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps };
@@ -1,2 +1,22 @@
1
- import { a as TableHeadProps, i as TableHeadColorToken, n as TableHeadBackgroundToken, r as TableHeadBorderColorToken, t as TableHead } from "../index-DvW2eETV.mjs";
1
+ import { m as Theme } from "../themes-BTGww2YK.mjs";
2
+ import { r as index_d_exports } from "../index-B66h9kbP.mjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableHead/TableHead.d.ts
5
+ /** Valid values for the color prop — derived from theme.text keys. */
6
+ type TableHeadColorToken = keyof Theme['text'];
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableHeadBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableHeadBorderColorToken = keyof Theme['border'];
11
+ interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /** Resolves against theme.text */
13
+ color?: TableHeadColorToken;
14
+ /** Resolves against theme.background */
15
+ bg?: TableHeadBackgroundToken;
16
+ /** Resolves against theme.border — light · primary · dark */
17
+ borderColor?: TableHeadBorderColorToken;
18
+ as?: ElementType;
19
+ }
20
+ declare function TableHead({ as, children, ...rest }: Readonly<TableHeadProps>): import("react").JSX.Element;
21
+ //#endregion
2
22
  export { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps };
@@ -1,4 +1,4 @@
1
- import { a as createShouldForwardProp, c as props, d as styled, l as src_exports } from "../src-DcNT2aIK.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
2
2
  import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
3
  const require_Typography = require("../Typography.cjs");
4
4
  const require_NativeSelect = require("../NativeSelect.cjs");
5
5
  const require_Table_TableCell = require("./TableCell.cjs");
@@ -1,2 +1,45 @@
1
- import { n as TablePaginationDisplayedRowsInfo, r as TablePaginationProps, t as TablePagination } from "../index-BlfIbAMs.cjs";
1
+ import { o as TableCellProps } from "../index-D2H_6WLf.cjs";
2
+ import { t as TablePaginationActionType } from "../index-CY0Czi9Z.cjs";
3
+ import { ElementType, ReactNode } from "react";
4
+ //#region src/Table/TablePagination/TablePagination.d.ts
5
+ interface TablePaginationDisplayedRowsInfo {
6
+ from: number;
7
+ to: number;
8
+ count: number;
9
+ page: number;
10
+ }
11
+ interface TablePaginationProps extends Omit<TableCellProps, 'children' | 'variant' | 'align' | 'sortDirection'> {
12
+ /** Total number of rows; `-1` = unknown (server-side pagination). */
13
+ count: number;
14
+ /** Zero-based current page. */
15
+ page: number;
16
+ /** Rows per page; `-1` shows all rows. */
17
+ rowsPerPage: number;
18
+ /** Fired with the target zero-based page. */
19
+ onPageChange: (page: number) => void;
20
+ /** Fired with the new rows-per-page value. */
21
+ onRowsPerPageChange?: (rowsPerPage: number) => void;
22
+ /** Options for the rows-per-page selector. Fewer than two options hides it. */
23
+ rowsPerPageOptions?: Array<number | {
24
+ label: string;
25
+ value: number;
26
+ }>;
27
+ /** Disables all controls. Default: `false`. */
28
+ disabled?: boolean;
29
+ shouldShowFirstButton?: boolean;
30
+ shouldShowLastButton?: boolean;
31
+ /** Label for the rows-per-page selector. Default: `'Rows per page:'`. */
32
+ rowsPerPageLabel?: ReactNode;
33
+ /** Renders the displayed-rows range. A sensible default (`1–10 of 57`) is provided. */
34
+ displayedRowsLabel?: (info: TablePaginationDisplayedRowsInfo) => ReactNode;
35
+ /** Accessible name per nav button. A sensible default is provided. */
36
+ getItemAriaLabel?: (type: TablePaginationActionType) => string;
37
+ as?: ElementType;
38
+ }
39
+ /**
40
+ * A `TableCell`-based pagination control for `TableFooter > TableRow`.
41
+ * Controlled only — the consumer owns `page` and `rowsPerPage`.
42
+ */
43
+ declare function TablePagination({ count, page, rowsPerPage, onPageChange, onRowsPerPageChange, rowsPerPageOptions, disabled, shouldShowFirstButton, shouldShowLastButton, rowsPerPageLabel, displayedRowsLabel, getItemAriaLabel, colSpan, as, ...rest }: Readonly<TablePaginationProps>): import("react").JSX.Element;
44
+ //#endregion
2
45
  export { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps };
@@ -1,2 +1,45 @@
1
- import { n as TablePaginationDisplayedRowsInfo, r as TablePaginationProps, t as TablePagination } from "../index-kpk9e3xM2.mjs";
1
+ import { o as TableCellProps } from "../index-DGqakgRN.mjs";
2
+ import { t as TablePaginationActionType } from "../index-DCwLdUQH.mjs";
3
+ import { ElementType, ReactNode } from "react";
4
+ //#region src/Table/TablePagination/TablePagination.d.ts
5
+ interface TablePaginationDisplayedRowsInfo {
6
+ from: number;
7
+ to: number;
8
+ count: number;
9
+ page: number;
10
+ }
11
+ interface TablePaginationProps extends Omit<TableCellProps, 'children' | 'variant' | 'align' | 'sortDirection'> {
12
+ /** Total number of rows; `-1` = unknown (server-side pagination). */
13
+ count: number;
14
+ /** Zero-based current page. */
15
+ page: number;
16
+ /** Rows per page; `-1` shows all rows. */
17
+ rowsPerPage: number;
18
+ /** Fired with the target zero-based page. */
19
+ onPageChange: (page: number) => void;
20
+ /** Fired with the new rows-per-page value. */
21
+ onRowsPerPageChange?: (rowsPerPage: number) => void;
22
+ /** Options for the rows-per-page selector. Fewer than two options hides it. */
23
+ rowsPerPageOptions?: Array<number | {
24
+ label: string;
25
+ value: number;
26
+ }>;
27
+ /** Disables all controls. Default: `false`. */
28
+ disabled?: boolean;
29
+ shouldShowFirstButton?: boolean;
30
+ shouldShowLastButton?: boolean;
31
+ /** Label for the rows-per-page selector. Default: `'Rows per page:'`. */
32
+ rowsPerPageLabel?: ReactNode;
33
+ /** Renders the displayed-rows range. A sensible default (`1–10 of 57`) is provided. */
34
+ displayedRowsLabel?: (info: TablePaginationDisplayedRowsInfo) => ReactNode;
35
+ /** Accessible name per nav button. A sensible default is provided. */
36
+ getItemAriaLabel?: (type: TablePaginationActionType) => string;
37
+ as?: ElementType;
38
+ }
39
+ /**
40
+ * A `TableCell`-based pagination control for `TableFooter > TableRow`.
41
+ * Controlled only — the consumer owns `page` and `rowsPerPage`.
42
+ */
43
+ declare function TablePagination({ count, page, rowsPerPage, onPageChange, onRowsPerPageChange, rowsPerPageOptions, disabled, shouldShowFirstButton, shouldShowLastButton, rowsPerPageLabel, displayedRowsLabel, getItemAriaLabel, colSpan, as, ...rest }: Readonly<TablePaginationProps>): import("react").JSX.Element;
44
+ //#endregion
2
45
  export { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps };
@@ -1,4 +1,4 @@
1
- import { d as styled } from "../src-DcNT2aIK.mjs";
1
+ import { o as styled } from "../src-BJy4dM4f.mjs";
2
2
  import { Typography } from "../Typography.mjs";
3
3
  import { NativeSelect } from "../NativeSelect.mjs";
4
4
  import { TableCell } from "./TableCell.mjs";
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
3
- const require_themeDefault = require("../themeDefault-B-QjpGEO.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
+ const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
+ const require_theme = require("../theme-Du6xgPsg.cjs");
4
5
  const require_Pagination_PaginationItem = require("../Pagination/PaginationItem.cjs");
5
6
  require("react");
6
7
  let react_jsx_runtime = require("react/jsx-runtime");
7
- let _emotion_react = require("@emotion/react");
8
8
  //#region src/Table/TablePaginationActions/TablePaginationActions.tsx
9
9
  const ActionsRoot = require_src.styled("div", {
10
10
  name: "TablePaginationActions",
@@ -21,7 +21,7 @@ const ActionsRoot = require_src.styled("div", {
21
21
  * `count` / `page` / `rowsPerPage`.
22
22
  */
23
23
  function TablePaginationActions({ count, page, rowsPerPage, onPageChange, getItemAriaLabel, disabled = false, shouldShowFirstButton = false, shouldShowLastButton = false, size: sizeProp, ...rest }) {
24
- const theme = (0, _emotion_react.useTheme)();
24
+ const theme = require_theme.useTheme();
25
25
  const size = sizeProp ?? require_themeDefault.themeDefault(theme, "compactSize", "sm");
26
26
  const lastPage = rowsPerPage === -1 ? 0 : Math.max(0, Math.ceil(count / rowsPerPage) - 1);
27
27
  const isBackwardDisabled = disabled || page <= 0;
@@ -1,2 +1,2 @@
1
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DSCMXFTn.cjs";
1
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-CY0Czi9Z.cjs";
2
2
  export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
@@ -1,2 +1,2 @@
1
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-BnzUumAC2.mjs";
1
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DCwLdUQH.mjs";
2
2
  export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
@@ -1,5 +1,6 @@
1
- import { d as styled, u as useTheme } from "../src-DcNT2aIK.mjs";
2
- import { t as themeDefault } from "../themeDefault-CjXaY3ok.mjs";
1
+ import { o as styled } from "../src-BJy4dM4f.mjs";
2
+ import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
+ import { r as useTheme } from "../theme-V6lYzd3j.mjs";
3
4
  import { PaginationItem } from "../Pagination/PaginationItem.mjs";
4
5
  import "react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
3
- const require_themeDefault = require("../themeDefault-B-QjpGEO.cjs");
4
- const require_TableContext = require("../TableContext-qqp35o8z.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
+ const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
4
+ const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  let react = require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
@@ -1,2 +1,30 @@
1
- import { a as TableRowProps, i as TableRowColor, n as TableRowBackgroundToken, r as TableRowBorderColorToken, t as TableRow } from "../index-CT9uGKrs.cjs";
1
+ import { r as index_d_exports } from "../index-BVX_Jq2G.cjs";
2
+ import { d as PaletteColor, m as Theme } from "../themes-BTGww2YK.cjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableRow/TableRow.d.ts
5
+ /** Palette color driving the hover/selected shading — a `theme.palette` key. */
6
+ type TableRowColor = PaletteColor;
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableRowBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableRowBorderColorToken = keyof Theme['border'];
11
+ interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /**
13
+ * Palette color for the hover/selected shading — maps to `theme.palette[color]`
14
+ * (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
15
+ * to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
16
+ */
17
+ color?: TableRowColor;
18
+ as?: ElementType;
19
+ /** Resolves against theme.background */
20
+ bg?: TableRowBackgroundToken;
21
+ /** Resolves against theme.border — light · primary · dark */
22
+ borderColor?: TableRowBorderColorToken;
23
+ /** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
24
+ isHoverable?: boolean;
25
+ /** Fills the row with `theme.palette[color].dark` + contrast text. Default: `false`. */
26
+ isSelected?: boolean;
27
+ }
28
+ declare function TableRow({ color, ...rest }: Readonly<TableRowProps>): import("react").JSX.Element;
29
+ //#endregion
2
30
  export { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps };
@@ -1,2 +1,30 @@
1
- import { a as TableRowProps, i as TableRowColor, n as TableRowBackgroundToken, r as TableRowBorderColorToken, t as TableRow } from "../index-CLU39rUS2.mjs";
1
+ import { d as PaletteColor, m as Theme } from "../themes-BTGww2YK.mjs";
2
+ import { r as index_d_exports } from "../index-B66h9kbP.mjs";
3
+ import { ElementType, HTMLAttributes } from "react";
4
+ //#region src/Table/TableRow/TableRow.d.ts
5
+ /** Palette color driving the hover/selected shading — a `theme.palette` key. */
6
+ type TableRowColor = PaletteColor;
7
+ /** Valid values for the bg prop — derived from theme.background keys. */
8
+ type TableRowBackgroundToken = keyof Theme['background'];
9
+ /** Valid values for the borderColor prop — derived from theme.border keys. */
10
+ type TableRowBorderColorToken = keyof Theme['border'];
11
+ interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
12
+ /**
13
+ * Palette color for the hover/selected shading — maps to `theme.palette[color]`
14
+ * (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
15
+ * to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
16
+ */
17
+ color?: TableRowColor;
18
+ as?: ElementType;
19
+ /** Resolves against theme.background */
20
+ bg?: TableRowBackgroundToken;
21
+ /** Resolves against theme.border — light · primary · dark */
22
+ borderColor?: TableRowBorderColorToken;
23
+ /** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
24
+ isHoverable?: boolean;
25
+ /** Fills the row with `theme.palette[color].dark` + contrast text. Default: `false`. */
26
+ isSelected?: boolean;
27
+ }
28
+ declare function TableRow({ color, ...rest }: Readonly<TableRowProps>): import("react").JSX.Element;
29
+ //#endregion
2
30
  export { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps };
@@ -1,6 +1,6 @@
1
- import { a as createShouldForwardProp, c as props, d as styled, l as src_exports } from "../src-DcNT2aIK.mjs";
2
- import { t as themeDefault } from "../themeDefault-CjXaY3ok.mjs";
3
- import { t as TableContext } from "../TableContext-BRWPghAI.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
2
+ import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
3
+ import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
4
4
  import { useContext } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/Table/TableRow/TableRow.tsx
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("../src-BiocWFSR.cjs");
3
- const require_Icon = require("../Icon-1YtNCUKo.cjs");
4
- const require_TableContext = require("../TableContext-qqp35o8z.cjs");
2
+ const require_src = require("../src-C8PIppTy.cjs");
3
+ const require_Icon = require("../Icon-zsHe7hWR.cjs");
4
+ const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
5
5
  let react = require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
@@ -1,2 +1,2 @@
1
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-8dzWTpFp.cjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-BahGB82c.cjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,2 +1,2 @@
1
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DmJIuQJj.mjs";
1
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-BGzs2cKy.mjs";
2
2
  export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
@@ -1,6 +1,6 @@
1
- import { a as createShouldForwardProp, c as props, d as styled, l as src_exports } from "../src-DcNT2aIK.mjs";
2
- import { t as Icon } from "../Icon-CAKRmFz3.mjs";
3
- import { t as TableContext } from "../TableContext-BRWPghAI.mjs";
1
+ import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
2
+ import { t as Icon } from "../Icon-bv8Z38l-.mjs";
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";
6
6
  //#region src/Table/TableSortLabel/TableSortLabel.tsx
@@ -1,3 +1,40 @@
1
- import { a as UseTablePaginationOptions, i as TablePaginationState, n as TableSortMap, o as useTablePagination, r as useTableSort, t as TableSortEntry } from "../useTableSort--XMWjujs.cjs";
2
- import { i as useTableSelection, n as TableSelectionAllProps, r as TableSelectionRowProps, t as TableSelection } from "../index-Dtzj8X58.cjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-_94Wrvj9.cjs";
2
+ //#region src/Table/hooks/useTableSelection.d.ts
3
+ /** Header select-all state — spreads directly onto `Checkbox`. */
4
+ interface TableSelectionAllProps {
5
+ checked: boolean;
6
+ indeterminate: boolean;
7
+ /** All selected → clears; otherwise selects every key. */
8
+ onChange: () => void;
9
+ }
10
+ /** One row's selection state — spreads directly onto `Checkbox`. */
11
+ interface TableSelectionRowProps {
12
+ checked: boolean;
13
+ /** Toggles this key in and out of the selection. */
14
+ onChange: () => void;
15
+ }
16
+ interface TableSelection<K extends string | number> {
17
+ /** Currently selected keys. */
18
+ selected: K[];
19
+ isSelected: (key: K) => boolean;
20
+ /** Spread onto the header select-all `Checkbox`. */
21
+ all: TableSelectionAllProps;
22
+ /** Spread onto a row's `Checkbox`. */
23
+ row: (key: K) => TableSelectionRowProps;
24
+ clear: () => void;
25
+ }
26
+ /**
27
+ * Key-based row selection that survives paging and re-sorting — selection is
28
+ * stored as row identities, and the select-all/indeterminate state is computed
29
+ * against the full `keys` list rather than the visible slice.
30
+ *
31
+ * ```tsx
32
+ * const selection = useTableSelection(services.map((s) => s.service))
33
+ * <Checkbox {...selection.all} aria-label="Select all" />
34
+ * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
35
+ * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
36
+ * ```
37
+ */
38
+ declare function useTableSelection<K extends string | number>(keys: readonly K[], onChange?: (selected: K[]) => void): TableSelection<K>;
39
+ //#endregion
3
40
  export { TablePaginationState, TableSelection, TableSelectionAllProps, TableSelectionRowProps, TableSortEntry, TableSortMap, UseTablePaginationOptions, useTablePagination, useTableSelection, useTableSort };
@@ -1,3 +1,40 @@
1
- import { a as UseTablePaginationOptions, i as TablePaginationState, n as TableSortMap, o as useTablePagination, r as useTableSort, t as TableSortEntry } from "../useTableSort-CpDs4cGq.mjs";
2
- import { i as useTableSelection, n as TableSelectionAllProps, r as TableSelectionRowProps, t as TableSelection } from "../index-DCQ2fsDu.mjs";
1
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-D6T-fQFc.mjs";
2
+ //#region src/Table/hooks/useTableSelection.d.ts
3
+ /** Header select-all state — spreads directly onto `Checkbox`. */
4
+ interface TableSelectionAllProps {
5
+ checked: boolean;
6
+ indeterminate: boolean;
7
+ /** All selected → clears; otherwise selects every key. */
8
+ onChange: () => void;
9
+ }
10
+ /** One row's selection state — spreads directly onto `Checkbox`. */
11
+ interface TableSelectionRowProps {
12
+ checked: boolean;
13
+ /** Toggles this key in and out of the selection. */
14
+ onChange: () => void;
15
+ }
16
+ interface TableSelection<K extends string | number> {
17
+ /** Currently selected keys. */
18
+ selected: K[];
19
+ isSelected: (key: K) => boolean;
20
+ /** Spread onto the header select-all `Checkbox`. */
21
+ all: TableSelectionAllProps;
22
+ /** Spread onto a row's `Checkbox`. */
23
+ row: (key: K) => TableSelectionRowProps;
24
+ clear: () => void;
25
+ }
26
+ /**
27
+ * Key-based row selection that survives paging and re-sorting — selection is
28
+ * stored as row identities, and the select-all/indeterminate state is computed
29
+ * against the full `keys` list rather than the visible slice.
30
+ *
31
+ * ```tsx
32
+ * const selection = useTableSelection(services.map((s) => s.service))
33
+ * <Checkbox {...selection.all} aria-label="Select all" />
34
+ * <Checkbox {...selection.row(row.service)} aria-label={`Select ${row.service}`} />
35
+ * <TableRow isSelected={selection.isSelected(row.service)}>…</TableRow>
36
+ * ```
37
+ */
38
+ declare function useTableSelection<K extends string | number>(keys: readonly K[], onChange?: (selected: K[]) => void): TableSelection<K>;
39
+ //#endregion
3
40
  export { TablePaginationState, TableSelection, TableSelectionAllProps, TableSelectionRowProps, TableSortEntry, TableSortMap, UseTablePaginationOptions, useTablePagination, useTableSelection, useTableSort };
package/dist/Table.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_TableContext = require("./TableContext-qqp35o8z.cjs");
2
+ const require_TableContext = require("./TableContext-Bfg1C3Sr.cjs");
3
3
  const require_Table_TableSortLabel = require("./Table/TableSortLabel.cjs");
4
4
  const require_Table_hooks = require("./Table/hooks.cjs");
5
5
  const require_Table_Table = require("./Table/Table.cjs");
package/dist/Table.d.cts CHANGED
@@ -1,16 +1,15 @@
1
- import { a as UseTablePaginationOptions, i as TablePaginationState, n as TableSortMap, o as useTablePagination, r as useTableSort, t as TableSortEntry } from "./useTableSort--XMWjujs.cjs";
2
- import { i as useTableSelection, n as TableSelectionAllProps, r as TableSelectionRowProps, t as TableSelection } from "./index-Dtzj8X58.cjs";
3
- import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-8dzWTpFp.cjs";
4
- import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-2qH7XYJB.cjs";
5
- import { a as TableProps, i as TableBorderColorToken, n as TableAlign, o as TableSize, r as TableBackgroundToken, t as Table } from "./index-CM_KCTee.cjs";
6
- import { a as TableBodyProps, i as TableBodyColorToken, n as TableBodyBackgroundToken, r as TableBodyBorderColorToken, t as TableBody } from "./index-GVsFY00r.cjs";
7
- 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-4rC2j7fR.cjs";
8
- import { n as TableContainerProps, t as TableContainer } from "./index-DeJWkpf9.cjs";
9
- import { n as TableControlProps, t as TableControl } from "./index-g-9DZ_KQ.cjs";
10
- import { a as TableFooterProps, i as TableFooterColorToken, n as TableFooterBackgroundToken, r as TableFooterBorderColorToken, t as TableFooter } from "./index-CDcGTGR4.cjs";
11
- import { a as TableHeadProps, i as TableHeadColorToken, n as TableHeadBackgroundToken, r as TableHeadBorderColorToken, t as TableHead } from "./index-CcYSvIJi.cjs";
12
- import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-DSCMXFTn.cjs";
13
- import { n as TablePaginationDisplayedRowsInfo, r as TablePaginationProps, t as TablePagination } from "./index-BlfIbAMs.cjs";
14
- import { a as TableRowProps, i as TableRowColor, n as TableRowBackgroundToken, r as TableRowBorderColorToken, t as TableRow } from "./index-CT9uGKrs.cjs";
15
- import "./index-Nqco3fsM.cjs";
1
+ import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-DOhYeOFx.cjs";
2
+ import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.cjs";
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-D2H_6WLf.cjs";
5
+ import { TableContainer, TableContainerProps } from "./Table/TableContainer.cjs";
6
+ import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-BahGB82c.cjs";
7
+ import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-_94Wrvj9.cjs";
8
+ import { TableControl, TableControlProps } from "./Table/TableControl.cjs";
9
+ import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.cjs";
10
+ import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.cjs";
11
+ import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-CY0Czi9Z.cjs";
12
+ import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.cjs";
13
+ import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.cjs";
14
+ import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.cjs";
16
15
  export { Table, TableAlign, TableBackgroundToken, TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps, TableBorderColorToken, TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellPadding, TableCellProps, TableCellSortDirection, TableCellVariant, TableContainer, TableContainerProps, TableContext, TableContextValue, TableControl, TableControlProps, TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps, TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps, TablePagination, TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps, TablePaginationDisplayedRowsInfo, TablePaginationProps, TablePaginationState, TableProps, TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps, TableSection, TableSectionContext, TableSelection, TableSelectionAllProps, TableSelectionRowProps, TableSize, TableSortEntry, TableSortLabel, TableSortLabelDirection, TableSortLabelProps, TableSortMap, UseTablePaginationOptions, useTablePagination, useTableSelection, useTableSort };