@soroush.tech/design-system 0.1.0 → 1.1.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 (389) hide show
  1. package/README.md +47 -36
  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 -12
  15. package/dist/Button.d.cts +1 -1
  16. package/dist/Button.d.mts +1 -1
  17. package/dist/Button.mjs +3 -9
  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 +3 -7
  39. package/dist/Flex.d.cts +1 -1
  40. package/dist/Flex.d.mts +1 -1
  41. package/dist/Flex.mjs +3 -9
  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 +3 -26
  65. package/dist/Grid.d.cts +4 -10
  66. package/dist/Grid.d.mts +4 -10
  67. package/dist/Grid.mjs +3 -25
  68. package/dist/{Icon-1YtNCUKo.cjs → Icon-BOjk5r39.cjs} +75 -5
  69. package/dist/{Icon-CAKRmFz3.mjs → Icon-CYjD0Bad.mjs} +74 -3
  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 +5 -9
  83. package/dist/Link.d.cts +9 -1
  84. package/dist/Link.d.mts +9 -1
  85. package/dist/Link.mjs +4 -7
  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 -8
  109. package/dist/Paper.d.cts +1 -1
  110. package/dist/Paper.d.mts +1 -1
  111. package/dist/Paper.mjs +3 -4
  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/Pressable.cjs +123 -0
  119. package/dist/Pressable.d.cts +2 -0
  120. package/dist/Pressable.d.mts +2 -0
  121. package/dist/Pressable.mjs +121 -0
  122. package/dist/Quote.cjs +1 -1
  123. package/dist/Quote.d.cts +13 -1
  124. package/dist/Quote.d.mts +13 -1
  125. package/dist/Quote.mjs +1 -1
  126. package/dist/Radio.cjs +2 -2
  127. package/dist/Radio.d.cts +2 -2
  128. package/dist/Radio.d.mts +2 -2
  129. package/dist/Radio.mjs +2 -2
  130. package/dist/Select.cjs +10 -32
  131. package/dist/Select.d.cts +3 -2
  132. package/dist/Select.d.mts +3 -2
  133. package/dist/Select.mjs +9 -30
  134. package/dist/Sidebar/Sidebar.cjs +94 -0
  135. package/dist/Sidebar/Sidebar.d.cts +59 -0
  136. package/dist/Sidebar/Sidebar.d.mts +59 -0
  137. package/dist/Sidebar/Sidebar.mjs +93 -0
  138. package/dist/Sidebar/SidebarItem.cjs +125 -0
  139. package/dist/Sidebar/SidebarItem.d.cts +39 -0
  140. package/dist/Sidebar/SidebarItem.d.mts +39 -0
  141. package/dist/Sidebar/SidebarItem.mjs +124 -0
  142. package/dist/Sidebar.cjs +7 -0
  143. package/dist/Sidebar.d.cts +4 -0
  144. package/dist/Sidebar.d.mts +4 -0
  145. package/dist/Sidebar.mjs +4 -0
  146. package/dist/SidebarContext-DgSLwjur.mjs +10 -0
  147. package/dist/SidebarContext-ao6lRfTX.d.cts +37 -0
  148. package/dist/SidebarContext-ao6lRfTX.d.mts +37 -0
  149. package/dist/SidebarContext-jG6OioC-.cjs +14 -0
  150. package/dist/Skeleton.cjs +1 -1
  151. package/dist/Skeleton.d.cts +2 -1
  152. package/dist/Skeleton.d.mts +2 -1
  153. package/dist/Skeleton.mjs +1 -1
  154. package/dist/Switch.cjs +4 -4
  155. package/dist/Switch.d.cts +2 -1
  156. package/dist/Switch.d.mts +2 -1
  157. package/dist/Switch.mjs +3 -2
  158. package/dist/Table/Table.cjs +2 -2
  159. package/dist/Table/Table.d.cts +47 -1
  160. package/dist/Table/Table.d.mts +47 -1
  161. package/dist/Table/Table.mjs +2 -2
  162. package/dist/Table/TableBody.cjs +1 -1
  163. package/dist/Table/TableBody.d.cts +21 -1
  164. package/dist/Table/TableBody.d.mts +21 -1
  165. package/dist/Table/TableBody.mjs +1 -1
  166. package/dist/Table/TableCell.cjs +3 -3
  167. package/dist/Table/TableCell.d.cts +1 -1
  168. package/dist/Table/TableCell.d.mts +1 -1
  169. package/dist/Table/TableCell.mjs +3 -3
  170. package/dist/Table/TableContainer.cjs +1 -1
  171. package/dist/Table/TableContainer.d.cts +17 -1
  172. package/dist/Table/TableContainer.d.mts +17 -1
  173. package/dist/Table/TableContainer.mjs +1 -1
  174. package/dist/Table/TableControl.d.cts +27 -1
  175. package/dist/Table/TableControl.d.mts +27 -1
  176. package/dist/Table/TableFooter.cjs +1 -1
  177. package/dist/Table/TableFooter.d.cts +21 -1
  178. package/dist/Table/TableFooter.d.mts +21 -1
  179. package/dist/Table/TableFooter.mjs +1 -1
  180. package/dist/Table/TableHead.cjs +1 -1
  181. package/dist/Table/TableHead.d.cts +21 -1
  182. package/dist/Table/TableHead.d.mts +21 -1
  183. package/dist/Table/TableHead.mjs +1 -1
  184. package/dist/Table/TablePagination.cjs +1 -1
  185. package/dist/Table/TablePagination.d.cts +44 -1
  186. package/dist/Table/TablePagination.d.mts +44 -1
  187. package/dist/Table/TablePagination.mjs +1 -1
  188. package/dist/Table/TablePaginationActions.cjs +4 -4
  189. package/dist/Table/TablePaginationActions.d.cts +1 -1
  190. package/dist/Table/TablePaginationActions.d.mts +1 -1
  191. package/dist/Table/TablePaginationActions.mjs +3 -2
  192. package/dist/Table/TableRow.cjs +3 -3
  193. package/dist/Table/TableRow.d.cts +29 -1
  194. package/dist/Table/TableRow.d.mts +29 -1
  195. package/dist/Table/TableRow.mjs +3 -3
  196. package/dist/Table/TableSortLabel.cjs +3 -3
  197. package/dist/Table/TableSortLabel.d.cts +1 -1
  198. package/dist/Table/TableSortLabel.d.mts +1 -1
  199. package/dist/Table/TableSortLabel.mjs +3 -3
  200. package/dist/Table/hooks.d.cts +39 -2
  201. package/dist/Table/hooks.d.mts +39 -2
  202. package/dist/Table.cjs +1 -1
  203. package/dist/Table.d.cts +14 -15
  204. package/dist/Table.d.mts +14 -15
  205. package/dist/Table.mjs +1 -1
  206. package/dist/{TableContext-qqp35o8z.cjs → TableContext-Bfg1C3Sr.cjs} +0 -1
  207. package/dist/{TableContext-2qH7XYJB.d.cts → TableContext-BoOxdk8p.d.cts} +1 -1
  208. package/dist/{TableContext-2qH7XYJB.d.mts → TableContext-DV31j6HO.d.mts} +1 -1
  209. package/dist/{TableContext-BRWPghAI.mjs → TableContext-Dyr89h_k.mjs} +0 -1
  210. package/dist/TextInput.cjs +228 -2
  211. package/dist/TextInput.d.cts +79 -1
  212. package/dist/TextInput.d.mts +79 -1
  213. package/dist/TextInput.mjs +226 -1
  214. package/dist/ToggleButton/ToggleButton.cjs +4 -4
  215. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  216. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  217. package/dist/ToggleButton/ToggleButton.mjs +3 -2
  218. package/dist/ToggleButton/ToggleButtonGroup.cjs +4 -4
  219. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  220. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  221. package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -2
  222. package/dist/ToggleButton.d.cts +1 -1
  223. package/dist/ToggleButton.d.mts +1 -1
  224. package/dist/Typography.cjs +3 -3
  225. package/dist/Typography.d.cts +2 -2
  226. package/dist/Typography.d.mts +2 -2
  227. package/dist/Typography.mjs +2 -1
  228. package/dist/View.cjs +1 -3
  229. package/dist/View.d.cts +1 -1
  230. package/dist/View.d.mts +1 -1
  231. package/dist/View.mjs +1 -3
  232. package/dist/emotion-BAyqVw0c.mjs +6 -0
  233. package/dist/emotion-DviPkkGL.cjs +10 -0
  234. package/dist/engine.cjs +80 -0
  235. package/dist/engine.d.cts +21 -0
  236. package/dist/engine.d.mts +21 -0
  237. package/dist/engine.mjs +69 -0
  238. package/dist/{index-BqVgv2B_.d.mts → index--mvTGo8F.d.cts} +3 -2
  239. package/dist/{index-DSCMXFTn.d.cts → index-ATXjtAOY.d.mts} +2 -1
  240. package/dist/{index-CDVnvjIE.d.cts → index-B2hrssyF.d.mts} +2 -2
  241. package/dist/index-B3FrhO2r.d.cts +24 -0
  242. package/dist/{index-BnzUumAC2.d.mts → index-B7aaTHOe.d.cts} +2 -1
  243. package/dist/{index-DmJIuQJj.d.mts → index-BItZoGZ1.d.mts} +3 -2
  244. package/dist/{index-DASvoACZ.d.cts → index-BJ8OC_Zh.d.cts} +2 -2
  245. package/dist/{index-BLfFycfJ.d.mts → index-BL3jwIQU.d.mts} +9 -2
  246. package/dist/{index-4rC2j7fR.d.cts → index-BNP_iejT.d.cts} +3 -2
  247. package/dist/{index-Dy03o__A.d.mts → index-BfpjEqqt.d.cts} +2 -1
  248. package/dist/index-BoOs5h_b.d.mts +53 -0
  249. package/dist/{index-CeYkEXU2.d.cts → index-BwUnDd9W.d.mts} +2 -2
  250. package/dist/{index-BH8jQOdF.d.mts → index-C7j38wne.d.mts} +3 -2
  251. package/dist/{index-Dp81rWM1.d.cts → index-CA_X-mXg.d.cts} +9 -2
  252. package/dist/index-CO3Qq0I0.d.mts +49 -0
  253. package/dist/{index-BLRMuO_x.d.mts → index-CYTaYcm3.d.cts} +3 -4
  254. package/dist/index-Ca0Pj5m2.d.mts +24 -0
  255. package/dist/{index-DE5PtzPn.d.mts → index-CvaEVk-f.d.cts} +2 -2
  256. package/dist/{index-C0xMvDjL.d.mts → index-D8U2tk1L.d.mts} +2 -2
  257. package/dist/{index-Dm9HfgV6.d.mts → index-D8b5OCLe.d.mts} +17 -7
  258. package/dist/{index-B1rCD6Oo.d.cts → index-DEv2QslH.d.mts} +4 -6
  259. package/dist/{index-CyZYXDn0.d.cts → index-DF3Hweir.d.mts} +3 -2
  260. package/dist/{index-Bihpwn75.d.cts → index-DLJ-li1B.d.cts} +17 -7
  261. package/dist/{index-FwTocqhP.d.cts → index-DjtGkwRM.d.cts} +2 -3
  262. package/dist/{index-BX5-NfbX.d.cts → index-Ds__py2h.d.mts} +2 -1
  263. package/dist/{index-x80UG39F.d.cts → index-KZUd8B5E.d.mts} +3 -4
  264. package/dist/index-MsUtFRul.d.cts +53 -0
  265. package/dist/index-dtLxevvf.d.cts +49 -0
  266. package/dist/{index-pX7tBQdJ.d.mts → index-q6EgsH9R.d.mts} +2 -3
  267. package/dist/{index-8dzWTpFp.d.cts → index-v99yMdts.d.cts} +3 -2
  268. package/dist/{index-CxSNNzBT2.d.mts → index-yr4HkKOj.d.cts} +2 -2
  269. package/dist/{index-z35LEYG8.d.mts → index-zFYi0f1t.d.cts} +4 -6
  270. package/dist/index.cjs +2 -32
  271. package/dist/index.d.cts +3 -3
  272. package/dist/index.d.mts +3 -3
  273. package/dist/index.mjs +2 -2
  274. package/dist/{src-DcNT2aIK.mjs → src-BJy4dM4f.mjs} +5 -10
  275. package/dist/{src-BiocWFSR.cjs → src-C8PIppTy.cjs} +2 -7
  276. package/dist/{hooks.cjs → style.cjs} +5 -23
  277. package/dist/style.d.cts +23 -0
  278. package/dist/style.d.mts +23 -0
  279. package/dist/{hooks.mjs → style.mjs} +6 -16
  280. package/dist/theme-Du6xgPsg.cjs +470 -0
  281. package/dist/{themes.mjs → theme-V6lYzd3j.mjs} +68 -14
  282. package/dist/theme.cjs +23 -0
  283. package/dist/theme.d.cts +3 -0
  284. package/dist/theme.d.mts +3 -0
  285. package/dist/theme.mjs +3 -0
  286. package/dist/{themeDefault-B-QjpGEO.cjs → themeDefault-Cebi08Cv.cjs} +1 -1
  287. package/dist/{themeDefault-CjXaY3ok.mjs → themeDefault-Z3KmyIbm.mjs} +1 -1
  288. package/dist/themes-CUV79qWU.d.cts +503 -0
  289. package/dist/themes-CUV79qWU.d.mts +503 -0
  290. package/dist/{useTableSort--XMWjujs.d.cts → useTablePagination-7jiSvKCh.d.cts} +25 -25
  291. package/dist/{useTableSort-CpDs4cGq.d.mts → useTablePagination-HaIcJPv-.d.mts} +25 -25
  292. package/dist/utils.cjs +0 -29
  293. package/dist/utils.d.cts +1 -19
  294. package/dist/utils.d.mts +1 -19
  295. package/dist/utils.mjs +1 -27
  296. package/package.json +431 -24
  297. package/dist/CodeBlock.cjs +0 -101
  298. package/dist/CodeBlock.d.cts +0 -2
  299. package/dist/CodeBlock.d.mts +0 -2
  300. package/dist/CodeBlock.mjs +0 -100
  301. package/dist/Field.cjs +0 -59
  302. package/dist/Field.d.cts +0 -36
  303. package/dist/Field.d.mts +0 -36
  304. package/dist/Field.mjs +0 -58
  305. package/dist/Markdown/Control.cjs +0 -61
  306. package/dist/Markdown/Control.d.cts +0 -18
  307. package/dist/Markdown/Control.d.mts +0 -18
  308. package/dist/Markdown/Control.mjs +0 -60
  309. package/dist/Markdown/Editor.cjs +0 -130
  310. package/dist/Markdown/Editor.d.cts +0 -40
  311. package/dist/Markdown/Editor.d.mts +0 -40
  312. package/dist/Markdown/Editor.mjs +0 -128
  313. package/dist/Markdown/Preview.cjs +0 -241
  314. package/dist/Markdown/Preview.d.cts +0 -55
  315. package/dist/Markdown/Preview.d.mts +0 -55
  316. package/dist/Markdown/Preview.mjs +0 -236
  317. package/dist/Markdown/Toolbar.cjs +0 -4
  318. package/dist/Markdown/Toolbar.d.cts +0 -13
  319. package/dist/Markdown/Toolbar.d.mts +0 -13
  320. package/dist/Markdown/Toolbar.mjs +0 -2
  321. package/dist/Markdown.cjs +0 -13
  322. package/dist/Markdown.d.cts +0 -80
  323. package/dist/Markdown.d.mts +0 -80
  324. package/dist/Markdown.mjs +0 -6
  325. package/dist/MarkdownContext-BN8A3W-J.mjs +0 -11
  326. package/dist/MarkdownContext-DSwjzpH8.cjs +0 -22
  327. package/dist/TextInput-6o37Zddp.cjs +0 -231
  328. package/dist/TextInput-D_lHYJlL.mjs +0 -224
  329. package/dist/ThemeProvider.cjs +0 -15
  330. package/dist/ThemeProvider.d.cts +0 -20
  331. package/dist/ThemeProvider.d.mts +0 -20
  332. package/dist/ThemeProvider.mjs +0 -14
  333. package/dist/Toolbar-B-W22Sk4.cjs +0 -459
  334. package/dist/Toolbar-KbR97iJS.mjs +0 -448
  335. package/dist/applyAction-B2B-hnP3.mjs +0 -98
  336. package/dist/applyAction-B2uVHxOE.cjs +0 -103
  337. package/dist/createTheme-Dts2F4R_.d.cts +0 -21
  338. package/dist/createTheme-Dts2F4R_.d.mts +0 -21
  339. package/dist/hooks/useCopyToClipboard.cjs +0 -33
  340. package/dist/hooks/useCopyToClipboard.d.cts +0 -16
  341. package/dist/hooks/useCopyToClipboard.d.mts +0 -16
  342. package/dist/hooks/useCopyToClipboard.mjs +0 -31
  343. package/dist/hooks.d.cts +0 -40
  344. package/dist/hooks.d.mts +0 -40
  345. package/dist/index-BPrjvi7B.d.cts +0 -13
  346. package/dist/index-BlfIbAMs.d.cts +0 -45
  347. package/dist/index-BoqlPb3Z.d.mts +0 -13
  348. package/dist/index-Bwi4kRpf.d.mts +0 -79
  349. package/dist/index-Bx24ZnOV.d.mts +0 -43
  350. package/dist/index-C-P_hipv.d.mts +0 -21
  351. package/dist/index-C5_ciaeo.d.cts +0 -79
  352. package/dist/index-CDcGTGR4.d.cts +0 -21
  353. package/dist/index-CEOZI-6L.d.mts +0 -48
  354. package/dist/index-CLU39rUS2.d.mts +0 -30
  355. package/dist/index-CM_KCTee.d.cts +0 -48
  356. package/dist/index-CT9uGKrs.d.cts +0 -30
  357. package/dist/index-CcYSvIJi.d.cts +0 -21
  358. package/dist/index-CdF_4ckE.d.mts +0 -11
  359. package/dist/index-Cl_yBpzW2.d.mts +0 -13
  360. package/dist/index-Cv_UOfYx.d.mts +0 -18
  361. package/dist/index-DBGE6yKw.d.mts +0 -16
  362. package/dist/index-DCQ2fsDu.d.mts +0 -40
  363. package/dist/index-DD2AVtiR.d.cts +0 -16
  364. package/dist/index-DOPXpr2J.d.cts +0 -43
  365. package/dist/index-DTkQSXQD.d.cts +0 -11
  366. package/dist/index-DeJWkpf9.d.cts +0 -16
  367. package/dist/index-DeiZHSwA.d.cts +0 -12
  368. package/dist/index-Des8BisQ.d.mts +0 -12
  369. package/dist/index-Dg8-CPOO.d.cts +0 -18
  370. package/dist/index-DgRS5Aqv.d.mts +0 -16
  371. package/dist/index-Dtzj8X58.d.cts +0 -40
  372. package/dist/index-DvW2eETV.d.mts +0 -21
  373. package/dist/index-GVsFY00r.d.cts +0 -21
  374. package/dist/index-Nqco3fsM.d.cts +0 -13
  375. package/dist/index-g-9DZ_KQ.d.cts +0 -28
  376. package/dist/index-g9EThkSg.d.mts +0 -21
  377. package/dist/index-kpk9e3xM2.d.mts +0 -45
  378. package/dist/index-u57CbuAU2.d.mts +0 -28
  379. package/dist/themes-D1SAp3SL.d.mts +0 -500
  380. package/dist/themes-D81JYbqm.d.cts +0 -500
  381. package/dist/themes.cjs +0 -318
  382. package/dist/themes.d.cts +0 -3
  383. package/dist/themes.d.mts +0 -3
  384. package/dist/useDefaultProps-Cb-5FNok.cjs +0 -19
  385. package/dist/useDefaultProps-CoApb4KT.mjs +0 -14
  386. package/dist/utils/styleCache.cjs +0 -7
  387. package/dist/utils/styleCache.d.cts +0 -3
  388. package/dist/utils/styleCache.d.mts +0 -4
  389. package/dist/utils/styleCache.mjs +0 -5
@@ -1,12 +1,10 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
2
- import { s as ViewProps } from "./index-FwTocqhP.cjs";
1
+ import { h as Theme } from "./themes-CUV79qWU.mjs";
2
+ import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
3
+ import { s as ViewProps } from "./index-q6EgsH9R.mjs";
3
4
  //#region src/Flex/Flex.d.ts
4
5
  /** Valid values for the gap prop — derived from theme.space keys. */
5
6
  type GapToken = keyof Theme['space'];
6
- interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {
7
- /** Resolves against theme.space — maps to CSS gap. Accepts responsive arrays. */
8
- gap?: index_d_exports.ResponsiveValue<GapToken>;
9
- }
7
+ interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {}
10
8
  declare const Flex: import("@emotion/styled").StyledComponent<{
11
9
  theme?: Theme;
12
10
  as?: React.ElementType;
@@ -1,5 +1,6 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
2
- import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-DASvoACZ.cjs";
1
+ import { h as Theme } from "./themes-CUV79qWU.mjs";
2
+ import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
3
+ import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-D8U2tk1L.mjs";
3
4
  import { ElementType, HTMLAttributes } from "react";
4
5
  //#region src/ButtonGroup/ButtonGroup.d.ts
5
6
  type ButtonGroupOrientation = 'horizontal' | 'vertical';
@@ -1,10 +1,10 @@
1
- import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
2
- import { CreateStyled, CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
3
- import { CSSObject as CSSObject$1, CacheProvider, Global, PropsOf, Theme, Theme as Theme$1, ThemeContext as EmotionThemeContext, ThemeProvider as EmotionThemeProvider, css, keyframes, useTheme } from "@emotion/react";
1
+ import { d as PaletteColor, h as Theme, r as CSSObject$1 } from "./themes-CUV79qWU.cjs";
2
+ import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
3
+ import { PropsOf, css, keyframes } from "@emotion/react";
4
4
  import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
5
5
  import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
6
6
  //#endregion
7
- //#region src/styled.d.ts
7
+ //#region src/style/styled.d.ts
8
8
  /**
9
9
  * Design-system additions to Emotion's styled options. A styled root that passes
10
10
  * `name` becomes theme-customizable: `theme.components[name]` may contribute
@@ -29,8 +29,18 @@ interface ThemeCustomizationOptions {
29
29
  */
30
30
  overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
31
31
  }
32
+ /**
33
+ * The `styled.div`, `styled.span`, … tag shorthands — mirrors Emotion's own
34
+ * `StyledTags`, retyped against this package's `Theme` instead of Emotion's
35
+ * (otherwise-empty) one, so `${({ theme }) => theme.space[2]}` template
36
+ * interpolations resolve to the real theme shape.
37
+ */
38
+ type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
39
+ theme?: Theme;
40
+ as?: React.ElementType;
41
+ }, JSX.IntrinsicElements[Tag]>; };
32
42
  /** Overloads mirroring Emotion's, with the theme-customization options added. */
33
- interface CreateThemedStyled extends CreateStyled {
43
+ interface CreateThemedStyled extends StyledTags {
34
44
  <C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
35
45
  theme?: Theme;
36
46
  }, {}, {
@@ -57,8 +67,8 @@ interface CreateThemedStyled extends CreateStyled {
57
67
  */
58
68
  declare const styled: CreateThemedStyled;
59
69
  declare namespace index_d_exports {
60
- export { CSSObject$1 as CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, PaletteColor, Theme$1 as Theme, ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
70
+ export { CSSObject$1 as CSSObject, PaletteColor, Theme, ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
61
71
  }
62
72
  import * as import__soroush_tech_styled_system from "@soroush.tech/styled-system";
63
73
  //#endregion
64
- export { Global as a, css as c, props as d, useTheme as f, EmotionThemeProvider as i, index_d_exports as l, styled as m, CacheProvider as n, Theme$1 as o, ThemeCustomizationOptions as p, EmotionThemeContext as r, createShouldForwardProp as s, CSSObject$1 as t, keyframes as u };
74
+ export { props as a, keyframes as i, css as n, ThemeCustomizationOptions as o, index_d_exports as r, styled as s, createShouldForwardProp as t };
@@ -1,4 +1,5 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
1
+ import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
+ import { h as Theme } from "./themes-CUV79qWU.cjs";
2
3
  import { CSSProperties, HTMLAttributes } from "react";
3
4
  //#region src/View/View.d.ts
4
5
  /** Valid values for the color prop — derived from theme.text keys. */
@@ -21,8 +22,6 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_
21
22
  borderRadius?: ViewBorderRadiusToken;
22
23
  opacity?: number;
23
24
  cursor?: CSSProperties['cursor'];
24
- /** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
25
- aspectRatio?: CSSProperties['aspectRatio'];
26
25
  /** CSS order for flex/grid item placement. Accepts responsive arrays. */
27
26
  order?: index_d_exports.FlexboxProps<Theme>['order'];
28
27
  }
@@ -1,4 +1,5 @@
1
- import { o as Theme } from "./index-Bihpwn75.cjs";
1
+ import { h as Theme } from "./themes-CUV79qWU.mjs";
2
+ import "./index-D8b5OCLe.mjs";
2
3
  import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
3
4
  //#region src/Modal/useModal.d.ts
4
5
  type ModalCloseReason = 'escapeKey' | 'backdropClick';
@@ -1,13 +1,12 @@
1
- import { o as Theme } from "./index-Bihpwn75.cjs";
2
- import { n as FlexProps } from "./index-B1rCD6Oo.cjs";
1
+ import { h as Theme } from "./themes-CUV79qWU.mjs";
2
+ import "./index-D8b5OCLe.mjs";
3
+ import { n as FlexProps } from "./index-DEv2QslH.mjs";
3
4
  import { CSSProperties, ElementType } from "react";
4
5
  //#region src/Paper/Paper.d.ts
5
6
  type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
6
7
  interface PaperProps extends FlexProps {
7
8
  /** Shadow depth — 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
8
9
  elevation?: PaperElevation;
9
- /** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
10
- aspectRatio?: CSSProperties['aspectRatio'];
11
10
  /** CSS transition for surface animations (e.g. hover elevation change). */
12
11
  transition?: CSSProperties['transition'];
13
12
  /** Resolves against theme.border — light · primary · dark */
@@ -0,0 +1,53 @@
1
+ import { b as ThemeComponents, h as Theme, x as ThemeDefaults } from "./themes-CUV79qWU.cjs";
2
+ import { ComponentType, ReactNode } from "react";
3
+ //#region src/theme/ThemeProvider.d.ts
4
+ interface ThemeProviderProps {
5
+ children: ReactNode;
6
+ /**
7
+ * The active theme. Bring one theme, or as many as you like — switching
8
+ * between them is your state, not the provider's. Defaults to the built-in
9
+ * `baseTheme`.
10
+ */
11
+ theme?: Theme;
12
+ /**
13
+ * Optional component default token/variant keys, merged into the theme
14
+ * (e.g. `{ size: 'compact' }` makes every sized component default to your key).
15
+ */
16
+ defaults?: ThemeDefaults;
17
+ }
18
+ declare function ThemeProvider({ children, theme, defaults }: Readonly<ThemeProviderProps>): import("react").JSX.Element;
19
+ //#endregion
20
+ //#region src/theme/utils/themeDefault.d.ts
21
+ /**
22
+ * Resolves a component's default token/variant key: the theme's optional
23
+ * `defaults` override wins, otherwise the component's literal `fallback`.
24
+ * Components call this in their prop defaults (`size = themeDefault(theme,
25
+ * 'size', 'md')`) so every built-in default stays visible in the component
26
+ * yet overridable per theme or via `ThemeProvider`'s `defaults` prop.
27
+ */
28
+ declare const themeDefault: <K extends keyof ThemeDefaults>(theme: Theme, key: K, fallback: NonNullable<ThemeDefaults[K]>) => NonNullable<ThemeDefaults[K]>;
29
+ //#endregion
30
+ //#region src/theme/hooks/useTheme.d.ts
31
+ /**
32
+ * The active theme, typed as this package's own `Theme` — Emotion is an
33
+ * internal implementation detail, never part of the public type surface.
34
+ */
35
+ declare const useTheme: () => Theme;
36
+ //#endregion
37
+ //#region src/theme/hooks/useDefaultProps.d.ts
38
+ type DefaultPropsOf<N extends keyof ThemeComponents> = NonNullable<NonNullable<ThemeComponents[N]>['defaultProps']>;
39
+ /**
40
+ * The theme-contributed default prop values for a component
41
+ * (`theme.components[name].defaultProps`), or an empty object.
42
+ *
43
+ * Components apply it as one step of the default-resolution chain:
44
+ * explicit prop → group context → `useDefaultProps` → `theme.defaults.*` → literal fallback.
45
+ */
46
+ declare function useDefaultProps<N extends keyof ThemeComponents>(name: N): DefaultPropsOf<N>;
47
+ //#endregion
48
+ //#region src/theme/hoc/withTheme.d.ts
49
+ declare function withTheme<P extends object>(WrappedComponent: ComponentType<P & {
50
+ theme: Theme;
51
+ }>): (props: P) => import("react").JSX.Element;
52
+ //#endregion
53
+ export { ThemeProvider as a, themeDefault as i, useDefaultProps as n, useTheme as r, withTheme as t };
@@ -0,0 +1,49 @@
1
+ import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
+ import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.cjs";
3
+ import { ButtonHTMLAttributes, ElementType } from "react";
4
+ //#region src/Pressable/Pressable.d.ts
5
+ /**
6
+ * Press feedback: `none` leaves the wrapped content untouched, `opacity` dims it
7
+ * while held, `highlight` tints the surface behind it while held.
8
+ */
9
+ type PressableFeedback = 'none' | 'opacity' | 'highlight';
10
+ type PressableColor = PaletteColor;
11
+ interface PressableProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
12
+ /**
13
+ * Element to render. Default: `'div'` — which still behaves as a button
14
+ * (`role`, tab stop, Enter/Space) because a `<button>` may not legally contain
15
+ * links, buttons, or block-level content. Pass `'button'` for a native button
16
+ * when the content is phrasing-only, or any other tag you need.
17
+ */
18
+ as?: ElementType;
19
+ /** Feedback shown while pressed. Default: `'none'`, overridable via `theme.components.Pressable.defaultProps`. */
20
+ feedback?: PressableFeedback;
21
+ /** Palette the `highlight` tint derives from — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
22
+ color?: PressableColor;
23
+ /** Opacity held content fades to under `feedback="opacity"`. Default: `0.7`. */
24
+ activeOpacity?: number;
25
+ /** The URL to link to. If defined and `as` is unset, an `a` element is used. */
26
+ href?: string;
27
+ /** Anchor `target` — only meaningful when `href` is set. */
28
+ target?: string;
29
+ /** Anchor `rel` — only meaningful when `href` is set. */
30
+ rel?: string;
31
+ }
32
+ /**
33
+ * An unstyled clickable surface — button semantics (keyboard activation, focus
34
+ * ring, disabled state) with none of a button's looks, so it can wrap arbitrary
35
+ * content without changing its layout. Use it instead of an `onClick` on a
36
+ * `div`, which no keyboard or screen-reader user can reach.
37
+ *
38
+ * It renders a `div` by default, because `<button>` may not legally contain a
39
+ * link, another button, or block-level content — the shim gives that div a
40
+ * `role`, a tab stop, and Enter/Space activation, so it is announced and
41
+ * operated as a button either way. Pass `as="button"` for a native button, or
42
+ * `href` for an anchor; both skip the shim and let the browser do the work.
43
+ *
44
+ * `feedback` picks what happens while it is held: nothing (default), the content
45
+ * dims, or the surface tints.
46
+ */
47
+ declare function Pressable({ as, feedback, color, activeOpacity, href, type, disabled, onClick, onKeyDown, onKeyUp, ...rest }: Readonly<PressableProps>): import("react").JSX.Element;
48
+ //#endregion
49
+ export { PressableProps as i, PressableColor as n, PressableFeedback as r, Pressable as t };
@@ -1,4 +1,5 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
1
+ import { h as Theme } from "./themes-CUV79qWU.mjs";
2
+ import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
2
3
  import { CSSProperties, HTMLAttributes } from "react";
3
4
  //#region src/View/View.d.ts
4
5
  /** Valid values for the color prop — derived from theme.text keys. */
@@ -21,8 +22,6 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_
21
22
  borderRadius?: ViewBorderRadiusToken;
22
23
  opacity?: number;
23
24
  cursor?: CSSProperties['cursor'];
24
- /** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
25
- aspectRatio?: CSSProperties['aspectRatio'];
26
25
  /** CSS order for flex/grid item placement. Accepts responsive arrays. */
27
26
  order?: index_d_exports.FlexboxProps<Theme>['order'];
28
27
  }
@@ -1,5 +1,6 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
2
- import { n as IconProps, r as IconName } from "./index-Dp81rWM1.cjs";
1
+ import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
+ import { h as Theme } from "./themes-CUV79qWU.cjs";
3
+ import { n as IconProps, r as IconName } from "./index-CA_X-mXg.cjs";
3
4
  import { ButtonHTMLAttributes } from "react";
4
5
  //#region src/Table/TableSortLabel/TableSortLabel.d.ts
5
6
  type TableSortLabelDirection = 'asc' | 'desc';
@@ -1,5 +1,5 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
2
- import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
1
+ import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
+ import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.cjs";
3
3
  import { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
4
4
  //#region src/Pagination/hooks/usePagination.d.ts
5
5
  type PaginationItemType = 'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis';
@@ -1,12 +1,10 @@
1
- import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
2
- import { s as ViewProps } from "./index-pX7tBQdJ.mjs";
1
+ import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
2
+ import { h as Theme } from "./themes-CUV79qWU.cjs";
3
+ import { s as ViewProps } from "./index-DjtGkwRM.cjs";
3
4
  //#region src/Flex/Flex.d.ts
4
5
  /** Valid values for the gap prop — derived from theme.space keys. */
5
6
  type GapToken = keyof Theme['space'];
6
- interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {
7
- /** Resolves against theme.space — maps to CSS gap. Accepts responsive arrays. */
8
- gap?: index_d_exports.ResponsiveValue<GapToken>;
9
- }
7
+ interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {}
10
8
  declare const Flex: import("@emotion/styled").StyledComponent<{
11
9
  theme?: Theme;
12
10
  as?: React.ElementType;
package/dist/index.cjs CHANGED
@@ -1,31 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-BiocWFSR.cjs");
3
- let _emotion_react = require("@emotion/react");
2
+ const require_src = require("./src-C8PIppTy.cjs");
4
3
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
5
- Object.defineProperty(exports, "CacheProvider", {
6
- enumerable: true,
7
- get: function() {
8
- return _emotion_react.CacheProvider;
9
- }
10
- });
11
- Object.defineProperty(exports, "EmotionThemeContext", {
12
- enumerable: true,
13
- get: function() {
14
- return _emotion_react.ThemeContext;
15
- }
16
- });
17
- Object.defineProperty(exports, "EmotionThemeProvider", {
18
- enumerable: true,
19
- get: function() {
20
- return _emotion_react.ThemeProvider;
21
- }
22
- });
23
- Object.defineProperty(exports, "Global", {
24
- enumerable: true,
25
- get: function() {
26
- return _emotion_react.Global;
27
- }
28
- });
4
+ let _emotion_react = require("@emotion/react");
29
5
  Object.defineProperty(exports, "createShouldForwardProp", {
30
6
  enumerable: true,
31
7
  get: function() {
@@ -51,12 +27,6 @@ Object.defineProperty(exports, "props", {
51
27
  }
52
28
  });
53
29
  exports.styled = require_src.styled;
54
- Object.defineProperty(exports, "useTheme", {
55
- enumerable: true,
56
- get: function() {
57
- return _emotion_react.useTheme;
58
- }
59
- });
60
30
  var _soroush_tech_styled_system = require("@soroush.tech/styled-system");
61
31
  Object.keys(_soroush_tech_styled_system).forEach(function(k) {
62
32
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Global, c as css, d as props, f as useTheme, i as EmotionThemeProvider, m as styled, n as CacheProvider, o as Theme, p as ThemeCustomizationOptions, r as EmotionThemeContext, s as createShouldForwardProp, t as CSSObject, u as keyframes } from "./index-Bihpwn75.cjs";
2
- import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
1
+ import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-DLJ-li1B.cjs";
2
+ import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.cjs";
3
3
  export * from "@soroush.tech/styled-system";
4
- export { type CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
4
+ export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Global, c as css, d as props, f as useTheme, i as EmotionThemeProvider, m as styled, n as CacheProvider, o as Theme, p as ThemeCustomizationOptions, r as EmotionThemeContext, s as createShouldForwardProp, t as CSSObject, u as keyframes } from "./index-Dm9HfgV6.mjs";
2
- import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
1
+ import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.mjs";
2
+ import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-D8b5OCLe.mjs";
3
3
  export * from "@soroush.tech/styled-system";
4
- export { type CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
4
+ export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as createShouldForwardProp, c as props, d as styled, i as Global, n as EmotionThemeContext, o as css, r as EmotionThemeProvider, s as keyframes, t as CacheProvider, u as useTheme } from "./src-DcNT2aIK.mjs";
1
+ import { i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
2
2
  export * from "@soroush.tech/styled-system";
3
- export { CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, createShouldForwardProp, css, keyframes, props, styled, useTheme };
3
+ export { createShouldForwardProp, css, keyframes, props, styled };
@@ -1,8 +1,8 @@
1
1
  import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.mjs";
2
2
  import emotionStyled from "@emotion/styled";
3
- import { CacheProvider, Global, ThemeContext as EmotionThemeContext, ThemeProvider as EmotionThemeProvider, css, keyframes, useTheme } from "@emotion/react";
3
+ import { css as css$1, keyframes } from "@emotion/react";
4
4
  import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
5
- //#region src/styled.ts
5
+ //#region src/style/styled.ts
6
6
  const resolveStyle = (style, props) => typeof style === "function" ? style({
7
7
  theme: props.theme,
8
8
  ownerState: props
@@ -32,18 +32,13 @@ const styled = Object.assign(createThemedStyled, emotionStyled);
32
32
  //#endregion
33
33
  //#region src/index.ts
34
34
  var src_exports = /* @__PURE__ */ __exportAll({
35
- CacheProvider: () => CacheProvider,
36
- EmotionThemeContext: () => EmotionThemeContext,
37
- EmotionThemeProvider: () => EmotionThemeProvider,
38
- Global: () => Global,
39
35
  createShouldForwardProp: () => createShouldForwardProp,
40
- css: () => css,
36
+ css: () => css$1,
41
37
  keyframes: () => keyframes,
42
38
  props: () => props,
43
- styled: () => styled,
44
- useTheme: () => useTheme
39
+ styled: () => styled
45
40
  });
46
41
  import * as import__soroush_tech_styled_system from "@soroush.tech/styled-system";
47
42
  __reExport(src_exports, import__soroush_tech_styled_system);
48
43
  //#endregion
49
- export { createShouldForwardProp as a, props as c, styled as d, Global as i, src_exports as l, EmotionThemeContext as n, css as o, EmotionThemeProvider as r, keyframes as s, CacheProvider as t, useTheme as u };
44
+ export { src_exports as a, props as i, css$1 as n, styled as o, keyframes as r, createShouldForwardProp as t };
@@ -3,7 +3,7 @@ let _emotion_styled = require("@emotion/styled");
3
3
  _emotion_styled = require_rolldown_runtime.__toESM(_emotion_styled, 1);
4
4
  let _emotion_react = require("@emotion/react");
5
5
  let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
6
- //#region src/styled.ts
6
+ //#region src/style/styled.ts
7
7
  const resolveStyle = (style, props) => typeof style === "function" ? style({
8
8
  theme: props.theme,
9
9
  ownerState: props
@@ -33,16 +33,11 @@ const styled = Object.assign(createThemedStyled, _emotion_styled.default);
33
33
  //#endregion
34
34
  //#region src/index.ts
35
35
  var src_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
36
- CacheProvider: () => _emotion_react.CacheProvider,
37
- EmotionThemeContext: () => _emotion_react.ThemeContext,
38
- EmotionThemeProvider: () => _emotion_react.ThemeProvider,
39
- Global: () => _emotion_react.Global,
40
36
  createShouldForwardProp: () => _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp,
41
37
  css: () => _emotion_react.css,
42
38
  keyframes: () => _emotion_react.keyframes,
43
39
  props: () => _soroush_tech_styled_system_should_forward_prop.props,
44
- styled: () => styled,
45
- useTheme: () => _emotion_react.useTheme
40
+ styled: () => styled
46
41
  });
47
42
  require_rolldown_runtime.__reExport(src_exports, require("@soroush.tech/styled-system"));
48
43
  //#endregion
@@ -1,19 +1,19 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_useDefaultProps = require("./useDefaultProps-Cb-5FNok.cjs");
2
+ const require_theme = require("./theme-Du6xgPsg.cjs");
3
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
4
  let _emotion_react = require("@emotion/react");
5
- //#region src/hooks/useStyle.ts
5
+ //#region src/style/hooks/useStyle.ts
6
6
  function useStyle(style) {
7
- const theme = (0, _emotion_react.useTheme)();
7
+ const theme = require_theme.useTheme();
8
8
  return typeof style.getStyles === "function" ? style.getStyles(theme) : style;
9
9
  }
10
10
  //#endregion
11
- //#region src/hooks/StylesConsumer.tsx
11
+ //#region src/style/StylesConsumer.tsx
12
12
  function StylesConsumer({ style, children }) {
13
13
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_emotion_react.ThemeContext.Consumer, { children: (theme) => children(style.getStyles(theme)) });
14
14
  }
15
15
  //#endregion
16
- //#region src/hooks/withStyles.tsx
16
+ //#region src/style/hoc/withStyles.tsx
17
17
  function withStyles(style) {
18
18
  return (WrappedComponent) => function WithStyles(props) {
19
19
  return typeof style.getStyles === "function" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StylesConsumer, {
@@ -29,24 +29,6 @@ function withStyles(style) {
29
29
  };
30
30
  }
31
31
  //#endregion
32
- //#region src/hooks/withTheme.tsx
33
- function withTheme(WrappedComponent) {
34
- return function WithTheme(props) {
35
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_emotion_react.ThemeContext.Consumer, { children: (theme) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WrappedComponent, {
36
- ...props,
37
- theme
38
- }) });
39
- };
40
- }
41
- //#endregion
42
32
  exports.StylesConsumer = StylesConsumer;
43
- exports.useDefaultProps = require_useDefaultProps.useDefaultProps;
44
33
  exports.useStyle = useStyle;
45
- Object.defineProperty(exports, "useTheme", {
46
- enumerable: true,
47
- get: function() {
48
- return _emotion_react.useTheme;
49
- }
50
- });
51
34
  exports.withStyles = withStyles;
52
- exports.withTheme = withTheme;
@@ -0,0 +1,23 @@
1
+ import { h as Theme, r as CSSObject } from "./themes-CUV79qWU.cjs";
2
+ import "./index-MsUtFRul.cjs";
3
+ import { ComponentType, ReactNode } from "react";
4
+ //#region src/style/hooks/useStyle.d.ts
5
+ type StyleFactory = {
6
+ getStyles: (theme: Theme) => CSSObject;
7
+ };
8
+ type StyleInput = CSSObject | StyleFactory;
9
+ declare function useStyle(style: StyleInput): CSSObject;
10
+ //#endregion
11
+ //#region src/style/hoc/withStyles.d.ts
12
+ declare function withStyles<P extends object>(style: StyleInput): (WrappedComponent: ComponentType<P & {
13
+ styles: CSSObject;
14
+ }>) => (props: P) => import("react").JSX.Element;
15
+ //#endregion
16
+ //#region src/style/StylesConsumer.d.ts
17
+ type StylesConsumerProps = {
18
+ style: StyleFactory;
19
+ children: (styles: CSSObject) => ReactNode;
20
+ };
21
+ declare function StylesConsumer({ style, children }: Readonly<StylesConsumerProps>): import("react").JSX.Element;
22
+ //#endregion
23
+ export { StyleFactory, StyleInput, StylesConsumer, useStyle, withStyles };
@@ -0,0 +1,23 @@
1
+ import { h as Theme, r as CSSObject } from "./themes-CUV79qWU.mjs";
2
+ import "./index-BoOs5h_b.mjs";
3
+ import { ComponentType, ReactNode } from "react";
4
+ //#region src/style/hooks/useStyle.d.ts
5
+ type StyleFactory = {
6
+ getStyles: (theme: Theme) => CSSObject;
7
+ };
8
+ type StyleInput = CSSObject | StyleFactory;
9
+ declare function useStyle(style: StyleInput): CSSObject;
10
+ //#endregion
11
+ //#region src/style/hoc/withStyles.d.ts
12
+ declare function withStyles<P extends object>(style: StyleInput): (WrappedComponent: ComponentType<P & {
13
+ styles: CSSObject;
14
+ }>) => (props: P) => import("react").JSX.Element;
15
+ //#endregion
16
+ //#region src/style/StylesConsumer.d.ts
17
+ type StylesConsumerProps = {
18
+ style: StyleFactory;
19
+ children: (styles: CSSObject) => ReactNode;
20
+ };
21
+ declare function StylesConsumer({ style, children }: Readonly<StylesConsumerProps>): import("react").JSX.Element;
22
+ //#endregion
23
+ export { StyleFactory, StyleInput, StylesConsumer, useStyle, withStyles };
@@ -1,18 +1,18 @@
1
- import { n as EmotionThemeContext, u as useTheme } from "./src-DcNT2aIK.mjs";
2
- import { t as useDefaultProps } from "./useDefaultProps-CoApb4KT.mjs";
1
+ import { r as useTheme } from "./theme-V6lYzd3j.mjs";
2
+ import { n as EmotionThemeContext } from "./emotion-BAyqVw0c.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
- //#region src/hooks/useStyle.ts
4
+ //#region src/style/hooks/useStyle.ts
5
5
  function useStyle(style) {
6
6
  const theme = useTheme();
7
7
  return typeof style.getStyles === "function" ? style.getStyles(theme) : style;
8
8
  }
9
9
  //#endregion
10
- //#region src/hooks/StylesConsumer.tsx
10
+ //#region src/style/StylesConsumer.tsx
11
11
  function StylesConsumer({ style, children }) {
12
12
  return /* @__PURE__ */ jsx(EmotionThemeContext.Consumer, { children: (theme) => children(style.getStyles(theme)) });
13
13
  }
14
14
  //#endregion
15
- //#region src/hooks/withStyles.tsx
15
+ //#region src/style/hoc/withStyles.tsx
16
16
  function withStyles(style) {
17
17
  return (WrappedComponent) => function WithStyles(props) {
18
18
  return typeof style.getStyles === "function" ? /* @__PURE__ */ jsx(StylesConsumer, {
@@ -28,14 +28,4 @@ function withStyles(style) {
28
28
  };
29
29
  }
30
30
  //#endregion
31
- //#region src/hooks/withTheme.tsx
32
- function withTheme(WrappedComponent) {
33
- return function WithTheme(props) {
34
- return /* @__PURE__ */ jsx(EmotionThemeContext.Consumer, { children: (theme) => /* @__PURE__ */ jsx(WrappedComponent, {
35
- ...props,
36
- theme
37
- }) });
38
- };
39
- }
40
- //#endregion
41
- export { StylesConsumer, useDefaultProps, useStyle, useTheme, withStyles, withTheme };
31
+ export { StylesConsumer, useStyle, withStyles };