@soroush.tech/design-system 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +28 -28
  2. package/dist/AppBar.cjs +1 -1
  3. package/dist/AppBar.d.cts +6 -6
  4. package/dist/AppBar.d.mts +6 -6
  5. package/dist/AppBar.mjs +1 -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 +4 -4
  62. package/dist/Grid.d.mts +4 -4
  63. package/dist/Grid.mjs +1 -1
  64. package/dist/{Icon-ByDvM-t1.cjs → Icon-BAMpe9SO.cjs} +2 -2
  65. package/dist/{Icon-CU_nUmsU.mjs → Icon-gSiGgU13.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/Pagination/PaginationItem.cjs +3 -3
  97. package/dist/Pagination/PaginationItem.d.cts +1 -1
  98. package/dist/Pagination/PaginationItem.d.mts +1 -1
  99. package/dist/Pagination/PaginationItem.mjs +3 -3
  100. package/dist/Pagination.cjs +2 -2
  101. package/dist/Pagination.d.cts +2 -2
  102. package/dist/Pagination.d.mts +2 -2
  103. package/dist/Pagination.mjs +2 -2
  104. package/dist/Paper.cjs +2 -2
  105. package/dist/Paper.d.cts +1 -1
  106. package/dist/Paper.d.mts +1 -1
  107. package/dist/Paper.mjs +2 -2
  108. package/dist/{Popover-CH3yI-j-.mjs → Popover-Bq31OTEl.mjs} +4 -4
  109. package/dist/{Popover-COoJ2p2I.cjs → Popover-gg44qzwo.cjs} +4 -4
  110. package/dist/Popover.cjs +1 -1
  111. package/dist/Popover.d.cts +7 -7
  112. package/dist/Popover.d.mts +7 -7
  113. package/dist/Popover.mjs +1 -1
  114. package/dist/Portal.cjs +1 -1
  115. package/dist/Portal.d.cts +1 -1
  116. package/dist/Portal.d.mts +1 -1
  117. package/dist/Portal.mjs +1 -1
  118. package/dist/Pressable.cjs +4 -4
  119. package/dist/Pressable.d.cts +1 -1
  120. package/dist/Pressable.d.mts +1 -1
  121. package/dist/Pressable.mjs +4 -4
  122. package/dist/Quote.cjs +2 -2
  123. package/dist/Quote.d.cts +5 -5
  124. package/dist/Quote.d.mts +5 -5
  125. package/dist/Quote.mjs +2 -2
  126. package/dist/Radio.cjs +1 -1
  127. package/dist/Radio.d.cts +3 -3
  128. package/dist/Radio.d.mts +3 -3
  129. package/dist/Radio.mjs +1 -1
  130. package/dist/Select.cjs +4 -4
  131. package/dist/Select.d.cts +11 -11
  132. package/dist/Select.d.mts +11 -11
  133. package/dist/Select.mjs +4 -4
  134. package/dist/Sidebar/Sidebar.cjs +4 -4
  135. package/dist/Sidebar/Sidebar.d.cts +12 -12
  136. package/dist/Sidebar/Sidebar.d.mts +12 -12
  137. package/dist/Sidebar/Sidebar.mjs +4 -4
  138. package/dist/Sidebar/SidebarItem.cjs +4 -4
  139. package/dist/Sidebar/SidebarItem.d.cts +13 -13
  140. package/dist/Sidebar/SidebarItem.d.mts +13 -13
  141. package/dist/Sidebar/SidebarItem.mjs +4 -4
  142. package/dist/Sidebar.d.cts +1 -1
  143. package/dist/Sidebar.d.mts +1 -1
  144. package/dist/{SidebarContext-ao6lRfTX.d.cts → SidebarContext-B1lWrt77.d.cts} +4 -4
  145. package/dist/{SidebarContext-ao6lRfTX.d.mts → SidebarContext-B1lWrt77.d.mts} +4 -4
  146. package/dist/Skeleton.cjs +1 -1
  147. package/dist/Skeleton.d.cts +3 -3
  148. package/dist/Skeleton.d.mts +3 -3
  149. package/dist/Skeleton.mjs +1 -1
  150. package/dist/Switch.cjs +2 -2
  151. package/dist/Switch.d.cts +5 -5
  152. package/dist/Switch.d.mts +5 -5
  153. package/dist/Switch.mjs +2 -2
  154. package/dist/Table/Table.cjs +1 -1
  155. package/dist/Table/Table.d.cts +14 -14
  156. package/dist/Table/Table.d.mts +14 -14
  157. package/dist/Table/Table.mjs +1 -1
  158. package/dist/Table/TableBody.cjs +1 -1
  159. package/dist/Table/TableBody.d.cts +6 -6
  160. package/dist/Table/TableBody.d.mts +6 -6
  161. package/dist/Table/TableBody.mjs +1 -1
  162. package/dist/Table/TableCell.cjs +1 -1
  163. package/dist/Table/TableCell.d.cts +1 -1
  164. package/dist/Table/TableCell.d.mts +1 -1
  165. package/dist/Table/TableCell.mjs +1 -1
  166. package/dist/Table/TableContainer.cjs +2 -2
  167. package/dist/Table/TableContainer.d.cts +5 -5
  168. package/dist/Table/TableContainer.d.mts +5 -5
  169. package/dist/Table/TableContainer.mjs +2 -2
  170. package/dist/Table/TableControl.cjs +1 -1
  171. package/dist/Table/TableControl.d.cts +7 -7
  172. package/dist/Table/TableControl.d.mts +7 -7
  173. package/dist/Table/TableControl.mjs +1 -1
  174. package/dist/Table/TableFooter.cjs +1 -1
  175. package/dist/Table/TableFooter.d.cts +6 -6
  176. package/dist/Table/TableFooter.d.mts +6 -6
  177. package/dist/Table/TableFooter.mjs +1 -1
  178. package/dist/Table/TableHead.cjs +1 -1
  179. package/dist/Table/TableHead.d.cts +6 -6
  180. package/dist/Table/TableHead.d.mts +6 -6
  181. package/dist/Table/TableHead.mjs +1 -1
  182. package/dist/Table/TablePagination.cjs +3 -3
  183. package/dist/Table/TablePagination.d.cts +4 -4
  184. package/dist/Table/TablePagination.d.mts +4 -4
  185. package/dist/Table/TablePagination.mjs +3 -3
  186. package/dist/Table/TablePaginationActions.cjs +2 -2
  187. package/dist/Table/TablePaginationActions.d.cts +1 -1
  188. package/dist/Table/TablePaginationActions.d.mts +1 -1
  189. package/dist/Table/TablePaginationActions.mjs +2 -2
  190. package/dist/Table/TableRow.cjs +1 -1
  191. package/dist/Table/TableRow.d.cts +7 -7
  192. package/dist/Table/TableRow.d.mts +7 -7
  193. package/dist/Table/TableRow.mjs +1 -1
  194. package/dist/Table/TableSortLabel.cjs +2 -2
  195. package/dist/Table/TableSortLabel.d.cts +1 -1
  196. package/dist/Table/TableSortLabel.d.mts +1 -1
  197. package/dist/Table/TableSortLabel.mjs +2 -2
  198. package/dist/Table/hooks.cjs +5 -5
  199. package/dist/Table/hooks.d.cts +5 -5
  200. package/dist/Table/hooks.d.mts +5 -5
  201. package/dist/Table/hooks.mjs +5 -5
  202. package/dist/Table.d.cts +5 -5
  203. package/dist/Table.d.mts +5 -5
  204. package/dist/{TableContext-BoOxdk8p.d.cts → TableContext-BrIREKe7.d.mts} +2 -2
  205. package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DXzUQ4-a.d.cts} +2 -2
  206. package/dist/TextInput.cjs +2 -2
  207. package/dist/TextInput.d.cts +10 -10
  208. package/dist/TextInput.d.mts +10 -10
  209. package/dist/TextInput.mjs +2 -2
  210. package/dist/ToggleButton/ToggleButton.cjs +2 -2
  211. package/dist/ToggleButton/ToggleButton.d.cts +3 -3
  212. package/dist/ToggleButton/ToggleButton.d.mts +3 -3
  213. package/dist/ToggleButton/ToggleButton.mjs +2 -2
  214. package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
  215. package/dist/ToggleButton/ToggleButtonGroup.d.cts +4 -4
  216. package/dist/ToggleButton/ToggleButtonGroup.d.mts +4 -4
  217. package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -3
  218. package/dist/ToggleButton.d.cts +1 -1
  219. package/dist/ToggleButton.d.mts +1 -1
  220. package/dist/{ToggleButtonGroupContext-CqD-Afho.d.cts → ToggleButtonGroupContext-10jEsQdg.d.cts} +2 -2
  221. package/dist/{ToggleButtonGroupContext-CqD-Afho.d.mts → ToggleButtonGroupContext-10jEsQdg.d.mts} +2 -2
  222. package/dist/Typography.cjs +2 -2
  223. package/dist/Typography.d.cts +2 -2
  224. package/dist/Typography.d.mts +2 -2
  225. package/dist/Typography.mjs +2 -2
  226. package/dist/View.cjs +1 -1
  227. package/dist/View.d.cts +1 -1
  228. package/dist/View.d.mts +1 -1
  229. package/dist/View.mjs +1 -1
  230. package/dist/engine.cjs +2 -2
  231. package/dist/engine.d.cts +3 -3
  232. package/dist/engine.d.mts +3 -3
  233. package/dist/engine.mjs +2 -2
  234. package/dist/index-76XH-GEc.d.mts +250 -0
  235. package/dist/{index-BW-9sqFG.d.cts → index-BCvkP5R1.d.mts} +6 -6
  236. package/dist/{index-CohsoGjZ.d.cts → index-BWECJgSb.d.mts} +7 -7
  237. package/dist/{index-X4STXeE2.d.cts → index-BoIi-XoB.d.mts} +15 -15
  238. package/dist/{index-D07y72Xr.d.mts → index-Br2gDSme.d.cts} +8 -8
  239. package/dist/{index-m9jUR509.d.mts → index-Btmdtbpb.d.cts} +9 -9
  240. package/dist/{index-uH0EeDBZ.d.cts → index-C-2VKPcp.d.mts} +12 -12
  241. package/dist/{index-CbGfrKZi.d.mts → index-C5-ZM7lt.d.cts} +7 -7
  242. package/dist/{index-DfhMdqqI.d.mts → index-CHRAYSwH.d.cts} +15 -15
  243. package/dist/{index-CrXLEJO4.d.mts → index-COYxtrc0.d.mts} +8 -8
  244. package/dist/{index-CTYZyQ2g.d.mts → index-CTVFwvju.d.mts} +3 -3
  245. package/dist/{index-CKz1lEdR.d.mts → index-Cf7w9Lod.d.cts} +6 -6
  246. package/dist/{index-DxBKLmUS.d.mts → index-Csp1Wzbz.d.cts} +7 -7
  247. package/dist/{index-BBWtMvkm.d.cts → index-D-QRCHiS.d.cts} +3 -3
  248. package/dist/{index-MsUtFRul.d.cts → index-D3iQQ0L3.d.cts} +3 -3
  249. package/dist/{index-DEEHBUUZ.d.cts → index-D9CwTcnr.d.cts} +4 -4
  250. package/dist/index-DCu7qjpa.d.cts +250 -0
  251. package/dist/{index-DLUE7t3O.d.cts → index-DOLA1VFD.d.cts} +4 -4
  252. package/dist/{index-BPzvFTi5.d.cts → index-DQ16ijxx.d.mts} +9 -9
  253. package/dist/{index-3hPS6Lm8.d.mts → index-DdBeSvit.d.mts} +8 -8
  254. package/dist/{index-BYYEoNec.d.cts → index-DhMAwR96.d.mts} +7 -7
  255. package/dist/{index-CSXMCqrV.d.cts → index-DzuXwDCW.d.cts} +8 -8
  256. package/dist/{index-n2OyTMr6.d.mts → index-KZKeZDAF.d.mts} +4 -4
  257. package/dist/{index-BoOs5h_b.d.mts → index-NBVilQuP.d.mts} +3 -3
  258. package/dist/{index-BAfSyQaP.d.mts → index-Oxx0z4dS.d.cts} +12 -12
  259. package/dist/{index-DGku7hLP.d.mts → index-XZDPGJ_h.d.mts} +4 -4
  260. package/dist/{index-CiShdd2j.d.cts → index-d6gR2x8j.d.cts} +8 -8
  261. package/dist/{index-C1hP7Igl.d.mts → index-ggLhNdZV.d.mts} +5 -5
  262. package/dist/{index-CCfnnT2l.d.cts → index-h36rcOy8.d.mts} +8 -8
  263. package/dist/{index-2QPYJgCl.d.cts → index-jmy5eXpx.d.cts} +7 -7
  264. package/dist/{index-q9peil7T.d.mts → index-v_otepCe.d.mts} +7 -7
  265. package/dist/{index-DiLm48XP.d.cts → index-vuPAf55D.d.cts} +5 -5
  266. package/dist/index.cjs +1 -1
  267. package/dist/index.d.cts +2 -2
  268. package/dist/index.d.mts +2 -2
  269. package/dist/index.mjs +1 -1
  270. package/dist/{src-D3tHU94W.mjs → src-DLGYOJMh.mjs} +1 -1
  271. package/dist/{src-BJrcLd7P.cjs → src-DU81aGy9.cjs} +1 -1
  272. package/dist/style.cjs +1 -1
  273. package/dist/style.d.cts +2 -2
  274. package/dist/style.d.mts +2 -2
  275. package/dist/style.mjs +1 -1
  276. package/dist/{theme-CleLAV6A.cjs → theme-Bnc03K83.cjs} +4 -4
  277. package/dist/{theme-Cudynq5K.mjs → theme-BuqqFbsz.mjs} +4 -4
  278. package/dist/theme.cjs +1 -1
  279. package/dist/theme.d.cts +2 -2
  280. package/dist/theme.d.mts +2 -2
  281. package/dist/theme.mjs +1 -1
  282. package/dist/{themes-CUV79qWU.d.mts → themes-kbuYiwCi.d.cts} +20 -20
  283. package/dist/{themes-CUV79qWU.d.cts → themes-kbuYiwCi.d.mts} +20 -20
  284. package/dist/{useTablePagination-DOty8Ucb.d.mts → useTablePagination-BpMOVLsR.d.cts} +6 -6
  285. package/dist/{useTablePagination-Dh7o59Wt.d.cts → useTablePagination-DebYZ6vN.d.mts} +6 -6
  286. package/package.json +15 -15
  287. package/dist/index-BjLlSr2P.d.mts +0 -79
  288. package/dist/index-Borai-Wg.d.cts +0 -79
@@ -1,6 +1,6 @@
1
- import { n as TableSortLabelDirection } from "./index-C1hP7Igl.mjs";
1
+ import { n as TableSortLabelDirection } from "./index-vuPAf55D.cjs";
2
2
  //#region src/Table/hooks/useTableSort.d.ts
3
- /** One column's sort state — spreads directly onto `TableSortLabel`. */
3
+ /** One column's sort state - spreads directly onto `TableSortLabel`. */
4
4
  interface TableSortEntry {
5
5
  isActive: boolean;
6
6
  direction: TableSortLabelDirection;
@@ -11,13 +11,13 @@ type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
11
11
  /**
12
12
  * Column-keyed sort state for sortable tables. Each column remembers its own
13
13
  * direction (initially `'asc'`); clicking a column activates it AND flips its
14
- * stored direction — so the first click on a column sorts `'desc'`.
14
+ * stored direction - so the first click on a column sorts `'desc'`.
15
15
  * `keys` is read once on mount.
16
16
  *
17
17
  * ```tsx
18
18
  * const sort = useTableSort(['name', 'latency'])
19
19
  * <TableSortLabel {...sort.name}>Service</TableSortLabel>
20
- * <TableControl data={rows} sort={sort}>{(row) => …}</TableControl>
20
+ * <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
21
21
  * ```
22
22
  */
23
23
  declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
@@ -29,7 +29,7 @@ interface UseTablePaginationOptions {
29
29
  /** Initial rows per page; `-1` shows all rows. Default: `10`. */
30
30
  defaultRowsPerPage?: number;
31
31
  }
32
- /** Paging state — property names mirror `TablePagination`'s props so it spreads in one go. */
32
+ /** Paging state - property names mirror `TablePagination`'s props so it spreads in one go. */
33
33
  interface TablePaginationState {
34
34
  page: number;
35
35
  rowsPerPage: number;
@@ -43,7 +43,7 @@ interface TablePaginationState {
43
43
  * ```tsx
44
44
  * const pagination = useTablePagination({ defaultRowsPerPage: 10 })
45
45
  * <TablePagination count={data.length} {...pagination} />
46
- * <TableControl data={data} pagination={pagination}>{(row) => …}</TableControl>
46
+ * <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
47
47
  * ```
48
48
  */
49
49
  declare function useTablePagination({ defaultPage, defaultRowsPerPage }?: UseTablePaginationOptions): TablePaginationState;
@@ -1,6 +1,6 @@
1
- import { n as TableSortLabelDirection } from "./index-DiLm48XP.cjs";
1
+ import { n as TableSortLabelDirection } from "./index-ggLhNdZV.mjs";
2
2
  //#region src/Table/hooks/useTableSort.d.ts
3
- /** One column's sort state — spreads directly onto `TableSortLabel`. */
3
+ /** One column's sort state - spreads directly onto `TableSortLabel`. */
4
4
  interface TableSortEntry {
5
5
  isActive: boolean;
6
6
  direction: TableSortLabelDirection;
@@ -11,13 +11,13 @@ type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
11
11
  /**
12
12
  * Column-keyed sort state for sortable tables. Each column remembers its own
13
13
  * direction (initially `'asc'`); clicking a column activates it AND flips its
14
- * stored direction — so the first click on a column sorts `'desc'`.
14
+ * stored direction - so the first click on a column sorts `'desc'`.
15
15
  * `keys` is read once on mount.
16
16
  *
17
17
  * ```tsx
18
18
  * const sort = useTableSort(['name', 'latency'])
19
19
  * <TableSortLabel {...sort.name}>Service</TableSortLabel>
20
- * <TableControl data={rows} sort={sort}>{(row) => …}</TableControl>
20
+ * <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
21
21
  * ```
22
22
  */
23
23
  declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
@@ -29,7 +29,7 @@ interface UseTablePaginationOptions {
29
29
  /** Initial rows per page; `-1` shows all rows. Default: `10`. */
30
30
  defaultRowsPerPage?: number;
31
31
  }
32
- /** Paging state — property names mirror `TablePagination`'s props so it spreads in one go. */
32
+ /** Paging state - property names mirror `TablePagination`'s props so it spreads in one go. */
33
33
  interface TablePaginationState {
34
34
  page: number;
35
35
  rowsPerPage: number;
@@ -43,7 +43,7 @@ interface TablePaginationState {
43
43
  * ```tsx
44
44
  * const pagination = useTablePagination({ defaultRowsPerPage: 10 })
45
45
  * <TablePagination count={data.length} {...pagination} />
46
- * <TableControl data={data} pagination={pagination}>{(row) => …}</TableControl>
46
+ * <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
47
47
  * ```
48
48
  */
49
49
  declare function useTablePagination({ defaultPage, defaultRowsPerPage }?: UseTablePaginationOptions): TablePaginationState;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soroush.tech/design-system",
3
- "version": "1.3.1",
4
- "description": "Emotion + @soroush.tech/styled-system React component library — token-driven light/dark themes, layout primitives, forms, and overlays.",
3
+ "version": "1.3.3",
4
+ "description": "Emotion + @soroush.tech/styled-system React component library - token-driven light/dark themes, layout primitives, forms, and overlays.",
5
5
  "keywords": [
6
6
  "design-system",
7
7
  "react",
@@ -477,7 +477,7 @@
477
477
  "@emotion/cache": "^11.14.0",
478
478
  "@emotion/react": "^11.14.0",
479
479
  "@emotion/styled": "^11.14.1",
480
- "@soroush.tech/styled-system": "^5.8.1"
480
+ "@soroush.tech/styled-system": "^5.8.3"
481
481
  },
482
482
  "peerDependencies": {
483
483
  "react": "^19.2.8",
@@ -485,37 +485,37 @@
485
485
  },
486
486
  "devDependencies": {
487
487
  "@emotion/css": "^11.13.5",
488
- "@storybook/react-vite": "^10.5.7",
489
- "@testing-library/jest-dom": "^7.0.0",
488
+ "@storybook/addon-a11y": "^10.5.8",
489
+ "@storybook/addon-docs": "^10.5.8",
490
+ "@storybook/addon-vitest": "^10.5.8",
491
+ "@storybook/react-vite": "^10.5.8",
492
+ "@testing-library/jest-dom": "^7.0.1",
490
493
  "@testing-library/react": "^16.3.2",
491
494
  "@types/node": "^26.2.0",
492
495
  "@types/react": "^19.2.18",
493
496
  "@types/react-dom": "^19.2.4",
494
497
  "@vitest/browser-playwright": "^4.1.10",
495
498
  "@vitest/coverage-v8": "^4.1.10",
496
- "eslint": "^10.8.1",
497
- "eslint-plugin-react": "^7.37.5",
498
- "eslint-plugin-react-hooks": "^7.1.1",
499
- "eslint-plugin-react-refresh": "^0.5.3",
500
- "eslint-plugin-storybook": "^10.5.7",
501
- "globals": "^17.9.0",
502
499
  "jsdom": "^29.1.1",
500
+ "oxlint": "^1.78.0",
503
501
  "playwright": "^1.62.1",
504
502
  "react": "^19.2.8",
505
503
  "react-dom": "^19.2.8",
506
- "storybook": "^10.5.7",
504
+ "storybook": "^10.5.8",
507
505
  "tsdown": "^0.22.14",
508
- "typescript": "~6.0.3",
506
+ "typescript": "~7.0.2",
509
507
  "vitest": "^4.1.10",
510
508
  "zod": "^4.4.3",
511
509
  "@soroush.tech/eslint-config": "0.0.0"
512
510
  },
513
511
  "scripts": {
514
512
  "build": "tsdown",
515
- "storybook": "pnpm --filter @soroush/web storybook",
516
- "lint": "eslint . --max-warnings 0",
513
+ "storybook": "storybook dev -p 6007",
514
+ "build:storybook": "storybook build",
515
+ "lint": "oxlint --deny-warnings",
517
516
  "typecheck": "tsc --noEmit",
518
517
  "test": "vitest run",
518
+ "test:storybook": "vitest run --project=storybook",
519
519
  "test:coverage": "vitest run --coverage",
520
520
  "test:types": "pnpm build && node scripts/check-dts.mjs && tsc -p type-tests/tsconfig.json",
521
521
  "check:dts": "node scripts/check-dts.mjs",
@@ -1,79 +0,0 @@
1
- import { n as TextColorToken } from "./index-DxBKLmUS.mjs";
2
- import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
3
- import { SVGProps } from "react";
4
- //#region src/Icon/icons.d.ts
5
- /** Registry of available icons, keyed by their asset file name. */
6
- declare const icons: {
7
- readonly account_tree: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
8
- readonly ads_click: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
9
- readonly analytics: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
10
- readonly architecture: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
11
- readonly arrow_back: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
12
- readonly arrow_forward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
13
- readonly arrow_upward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
14
- readonly check: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
15
- readonly chevron_left: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
16
- readonly chevron_right: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
17
- readonly checklist: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
18
- readonly cloud_done: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
19
- readonly close: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
20
- readonly code: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
21
- readonly content_copy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
22
- readonly cookie: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
23
- readonly database: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
24
- readonly desktop_windows: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
25
- readonly dns: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
26
- readonly edit_note: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
27
- readonly expand_less: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
28
- readonly expand_more: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
29
- readonly external_link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
30
- readonly first_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
31
- readonly folder: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
32
- readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
33
- readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
34
- readonly format_quote: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
35
- readonly fullscreen: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
36
- readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
37
- readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
38
- readonly history: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
39
- readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
40
- readonly image: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
41
- readonly language: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
42
- readonly last_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
43
- readonly link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
44
- readonly lock: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
45
- readonly menu: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
46
- readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
47
- readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
48
- readonly rebase_edit: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
49
- readonly refresh: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
50
- readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
51
- readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
52
- readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
53
- readonly smart_toy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
54
- readonly smartphone: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
55
- readonly speed: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
56
- readonly stacks: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
57
- readonly table: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
58
- readonly terminal: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
59
- readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
60
- readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
61
- readonly web_asset: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
62
- readonly zoom_in: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
63
- readonly zoom_out: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
64
- };
65
- /** Valid values for the Icon `name` prop — derived from the registry keys. */
66
- type IconName = keyof typeof icons;
67
- //#endregion
68
- //#region src/Icon/Icon.d.ts
69
- interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color' | 'ref' | 'width' | 'height' | 'display' | 'overflow'>, LayoutProps, SpaceProps {
70
- /** Registry key of the icon to render. */
71
- name: IconName;
72
- /** Resolves against theme.text — applied as `color`, which the SVG inherits via `currentColor`. */
73
- color?: TextColorToken;
74
- /** Sets both width and height (icons are square). */
75
- size?: string | number;
76
- }
77
- declare function Icon({ name, color, size, ...rest }: Readonly<IconProps>): import("react").JSX.Element;
78
- //#endregion
79
- export { icons as i, IconProps as n, IconName as r, Icon as t };
@@ -1,79 +0,0 @@
1
- import { n as TextColorToken } from "./index-CohsoGjZ.cjs";
2
- import { SVGProps } from "react";
3
- import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
4
- //#region src/Icon/icons.d.ts
5
- /** Registry of available icons, keyed by their asset file name. */
6
- declare const icons: {
7
- readonly account_tree: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
8
- readonly ads_click: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
9
- readonly analytics: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
10
- readonly architecture: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
11
- readonly arrow_back: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
12
- readonly arrow_forward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
13
- readonly arrow_upward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
14
- readonly check: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
15
- readonly chevron_left: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
16
- readonly chevron_right: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
17
- readonly checklist: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
18
- readonly cloud_done: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
19
- readonly close: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
20
- readonly code: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
21
- readonly content_copy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
22
- readonly cookie: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
23
- readonly database: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
24
- readonly desktop_windows: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
25
- readonly dns: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
26
- readonly edit_note: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
27
- readonly expand_less: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
28
- readonly expand_more: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
29
- readonly external_link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
30
- readonly first_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
31
- readonly folder: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
32
- readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
33
- readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
34
- readonly format_quote: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
35
- readonly fullscreen: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
36
- readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
37
- readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
38
- readonly history: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
39
- readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
40
- readonly image: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
41
- readonly language: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
42
- readonly last_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
43
- readonly link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
44
- readonly lock: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
45
- readonly menu: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
46
- readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
47
- readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
48
- readonly rebase_edit: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
49
- readonly refresh: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
50
- readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
51
- readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
52
- readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
53
- readonly smart_toy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
54
- readonly smartphone: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
55
- readonly speed: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
56
- readonly stacks: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
57
- readonly table: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
58
- readonly terminal: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
59
- readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
60
- readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
61
- readonly web_asset: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
62
- readonly zoom_in: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
63
- readonly zoom_out: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
64
- };
65
- /** Valid values for the Icon `name` prop — derived from the registry keys. */
66
- type IconName = keyof typeof icons;
67
- //#endregion
68
- //#region src/Icon/Icon.d.ts
69
- interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color' | 'ref' | 'width' | 'height' | 'display' | 'overflow'>, LayoutProps, SpaceProps {
70
- /** Registry key of the icon to render. */
71
- name: IconName;
72
- /** Resolves against theme.text — applied as `color`, which the SVG inherits via `currentColor`. */
73
- color?: TextColorToken;
74
- /** Sets both width and height (icons are square). */
75
- size?: string | number;
76
- }
77
- declare function Icon({ name, color, size, ...rest }: Readonly<IconProps>): import("react").JSX.Element;
78
- //#endregion
79
- export { icons as i, IconProps as n, IconName as r, Icon as t };