@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.
- package/README.md +47 -36
- package/dist/AppBar.cjs +2 -2
- package/dist/AppBar.d.cts +3 -2
- package/dist/AppBar.d.mts +3 -2
- package/dist/AppBar.mjs +2 -2
- package/dist/Avatar.cjs +4 -4
- package/dist/Avatar.d.cts +3 -2
- package/dist/Avatar.d.mts +3 -2
- package/dist/Avatar.mjs +3 -2
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Backdrop.mjs +1 -1
- package/dist/Button.cjs +5 -12
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +3 -9
- package/dist/ButtonGroup.cjs +2 -2
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +2 -2
- package/dist/Card.cjs +6 -7
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.cjs +2 -2
- package/dist/Checkbox.d.cts +42 -1
- package/dist/Checkbox.d.mts +42 -1
- package/dist/Checkbox.mjs +2 -2
- package/dist/CircularProgress.cjs +2 -2
- package/dist/CircularProgress.d.cts +3 -2
- package/dist/CircularProgress.d.mts +3 -2
- package/dist/CircularProgress.mjs +2 -2
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Drawer.mjs +2 -2
- package/dist/Flex.cjs +3 -7
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +3 -9
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +2 -3
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/Form.mjs +2 -3
- package/dist/{FormContext-CRmRgDgu.cjs → FormContext-BGCsWAFc.cjs} +0 -1
- package/dist/{FormContext-_G3sxJyQ.mjs → FormContext-LrjAGe6U.mjs} +0 -1
- package/dist/FormControl.cjs +6 -6
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +5 -5
- package/dist/{FormControlContext-aeKTjRKY.cjs → FormControlContext-74gvPGFk.cjs} +0 -1
- package/dist/{FormControlContext-CyxdOxdN.mjs → FormControlContext-CC2kToms.mjs} +0 -1
- package/dist/FormHelperText.cjs +3 -3
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormHelperText.mjs +3 -3
- package/dist/FormLabel.cjs +3 -3
- package/dist/FormLabel.d.cts +17 -1
- package/dist/FormLabel.d.mts +17 -1
- package/dist/FormLabel.mjs +3 -3
- package/dist/Grid.cjs +3 -26
- package/dist/Grid.d.cts +4 -10
- package/dist/Grid.d.mts +4 -10
- package/dist/Grid.mjs +3 -25
- package/dist/{Icon-1YtNCUKo.cjs → Icon-BOjk5r39.cjs} +75 -5
- package/dist/{Icon-CAKRmFz3.mjs → Icon-CYjD0Bad.mjs} +74 -3
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +1 -1
- package/dist/Image.d.cts +16 -1
- package/dist/Image.d.mts +16 -1
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +2 -2
- package/dist/LinearProgress.d.cts +3 -2
- package/dist/LinearProgress.d.mts +3 -2
- package/dist/LinearProgress.mjs +2 -2
- package/dist/Link.cjs +5 -9
- package/dist/Link.d.cts +9 -1
- package/dist/Link.d.mts +9 -1
- package/dist/Link.mjs +4 -7
- package/dist/MenuItem.cjs +6 -7
- package/dist/MenuItem.d.cts +2 -1
- package/dist/MenuItem.d.mts +2 -1
- package/dist/MenuItem.mjs +4 -3
- package/dist/{Modal-BDMPTSXv.cjs → Modal-DZH-DzMZ.cjs} +2 -2
- package/dist/{Modal-DR60peRg.mjs → Modal-dy5l7gfH.mjs} +2 -2
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +5 -5
- package/dist/NativeSelect.d.cts +3 -2
- package/dist/NativeSelect.d.mts +3 -2
- package/dist/NativeSelect.mjs +4 -3
- package/dist/Pagination/PaginationItem.cjs +3 -3
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +3 -3
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.d.cts +2 -22
- package/dist/Pagination.d.mts +2 -22
- package/dist/Pagination.mjs +1 -1
- package/dist/Paper.cjs +5 -8
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +3 -4
- package/dist/{Popover-B61J7C79.mjs → Popover-Chgtjn-N.mjs} +3 -2
- package/dist/{Popover-CRDLmywF.cjs → Popover-pEVboMZO.cjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +4 -3
- package/dist/Popover.d.mts +4 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +123 -0
- package/dist/Pressable.d.cts +2 -0
- package/dist/Pressable.d.mts +2 -0
- package/dist/Pressable.mjs +121 -0
- package/dist/Quote.cjs +1 -1
- package/dist/Quote.d.cts +13 -1
- package/dist/Quote.d.mts +13 -1
- package/dist/Quote.mjs +1 -1
- package/dist/Radio.cjs +2 -2
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Radio.mjs +2 -2
- package/dist/Select.cjs +10 -32
- package/dist/Select.d.cts +3 -2
- package/dist/Select.d.mts +3 -2
- package/dist/Select.mjs +9 -30
- package/dist/Sidebar/Sidebar.cjs +94 -0
- package/dist/Sidebar/Sidebar.d.cts +59 -0
- package/dist/Sidebar/Sidebar.d.mts +59 -0
- package/dist/Sidebar/Sidebar.mjs +93 -0
- package/dist/Sidebar/SidebarItem.cjs +125 -0
- package/dist/Sidebar/SidebarItem.d.cts +39 -0
- package/dist/Sidebar/SidebarItem.d.mts +39 -0
- package/dist/Sidebar/SidebarItem.mjs +124 -0
- package/dist/Sidebar.cjs +7 -0
- package/dist/Sidebar.d.cts +4 -0
- package/dist/Sidebar.d.mts +4 -0
- package/dist/Sidebar.mjs +4 -0
- package/dist/SidebarContext-DgSLwjur.mjs +10 -0
- package/dist/SidebarContext-ao6lRfTX.d.cts +37 -0
- package/dist/SidebarContext-ao6lRfTX.d.mts +37 -0
- package/dist/SidebarContext-jG6OioC-.cjs +14 -0
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +2 -1
- package/dist/Skeleton.d.mts +2 -1
- package/dist/Skeleton.mjs +1 -1
- package/dist/Switch.cjs +4 -4
- package/dist/Switch.d.cts +2 -1
- package/dist/Switch.d.mts +2 -1
- package/dist/Switch.mjs +3 -2
- package/dist/Table/Table.cjs +2 -2
- package/dist/Table/Table.d.cts +47 -1
- package/dist/Table/Table.d.mts +47 -1
- package/dist/Table/Table.mjs +2 -2
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +21 -1
- package/dist/Table/TableBody.d.mts +21 -1
- package/dist/Table/TableBody.mjs +1 -1
- package/dist/Table/TableCell.cjs +3 -3
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +3 -3
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableContainer.d.cts +17 -1
- package/dist/Table/TableContainer.d.mts +17 -1
- package/dist/Table/TableContainer.mjs +1 -1
- package/dist/Table/TableControl.d.cts +27 -1
- package/dist/Table/TableControl.d.mts +27 -1
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +21 -1
- package/dist/Table/TableFooter.d.mts +21 -1
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +21 -1
- package/dist/Table/TableHead.d.mts +21 -1
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +1 -1
- package/dist/Table/TablePagination.d.cts +44 -1
- package/dist/Table/TablePagination.d.mts +44 -1
- package/dist/Table/TablePagination.mjs +1 -1
- package/dist/Table/TablePaginationActions.cjs +4 -4
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +3 -2
- package/dist/Table/TableRow.cjs +3 -3
- package/dist/Table/TableRow.d.cts +29 -1
- package/dist/Table/TableRow.d.mts +29 -1
- package/dist/Table/TableRow.mjs +3 -3
- package/dist/Table/TableSortLabel.cjs +3 -3
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +3 -3
- package/dist/Table/hooks.d.cts +39 -2
- package/dist/Table/hooks.d.mts +39 -2
- package/dist/Table.cjs +1 -1
- package/dist/Table.d.cts +14 -15
- package/dist/Table.d.mts +14 -15
- package/dist/Table.mjs +1 -1
- package/dist/{TableContext-qqp35o8z.cjs → TableContext-Bfg1C3Sr.cjs} +0 -1
- package/dist/{TableContext-2qH7XYJB.d.cts → TableContext-BoOxdk8p.d.cts} +1 -1
- package/dist/{TableContext-2qH7XYJB.d.mts → TableContext-DV31j6HO.d.mts} +1 -1
- package/dist/{TableContext-BRWPghAI.mjs → TableContext-Dyr89h_k.mjs} +0 -1
- package/dist/TextInput.cjs +228 -2
- package/dist/TextInput.d.cts +79 -1
- package/dist/TextInput.d.mts +79 -1
- package/dist/TextInput.mjs +226 -1
- package/dist/ToggleButton/ToggleButton.cjs +4 -4
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +3 -2
- package/dist/ToggleButton/ToggleButtonGroup.cjs +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -2
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/Typography.cjs +3 -3
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -1
- package/dist/View.cjs +1 -3
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -3
- package/dist/emotion-BAyqVw0c.mjs +6 -0
- package/dist/emotion-DviPkkGL.cjs +10 -0
- package/dist/engine.cjs +80 -0
- package/dist/engine.d.cts +21 -0
- package/dist/engine.d.mts +21 -0
- package/dist/engine.mjs +69 -0
- package/dist/{index-BqVgv2B_.d.mts → index--mvTGo8F.d.cts} +3 -2
- package/dist/{index-DSCMXFTn.d.cts → index-ATXjtAOY.d.mts} +2 -1
- package/dist/{index-CDVnvjIE.d.cts → index-B2hrssyF.d.mts} +2 -2
- package/dist/index-B3FrhO2r.d.cts +24 -0
- package/dist/{index-BnzUumAC2.d.mts → index-B7aaTHOe.d.cts} +2 -1
- package/dist/{index-DmJIuQJj.d.mts → index-BItZoGZ1.d.mts} +3 -2
- package/dist/{index-DASvoACZ.d.cts → index-BJ8OC_Zh.d.cts} +2 -2
- package/dist/{index-BLfFycfJ.d.mts → index-BL3jwIQU.d.mts} +9 -2
- package/dist/{index-4rC2j7fR.d.cts → index-BNP_iejT.d.cts} +3 -2
- package/dist/{index-Dy03o__A.d.mts → index-BfpjEqqt.d.cts} +2 -1
- package/dist/index-BoOs5h_b.d.mts +53 -0
- package/dist/{index-CeYkEXU2.d.cts → index-BwUnDd9W.d.mts} +2 -2
- package/dist/{index-BH8jQOdF.d.mts → index-C7j38wne.d.mts} +3 -2
- package/dist/{index-Dp81rWM1.d.cts → index-CA_X-mXg.d.cts} +9 -2
- package/dist/index-CO3Qq0I0.d.mts +49 -0
- package/dist/{index-BLRMuO_x.d.mts → index-CYTaYcm3.d.cts} +3 -4
- package/dist/index-Ca0Pj5m2.d.mts +24 -0
- package/dist/{index-DE5PtzPn.d.mts → index-CvaEVk-f.d.cts} +2 -2
- package/dist/{index-C0xMvDjL.d.mts → index-D8U2tk1L.d.mts} +2 -2
- package/dist/{index-Dm9HfgV6.d.mts → index-D8b5OCLe.d.mts} +17 -7
- package/dist/{index-B1rCD6Oo.d.cts → index-DEv2QslH.d.mts} +4 -6
- package/dist/{index-CyZYXDn0.d.cts → index-DF3Hweir.d.mts} +3 -2
- package/dist/{index-Bihpwn75.d.cts → index-DLJ-li1B.d.cts} +17 -7
- package/dist/{index-FwTocqhP.d.cts → index-DjtGkwRM.d.cts} +2 -3
- package/dist/{index-BX5-NfbX.d.cts → index-Ds__py2h.d.mts} +2 -1
- package/dist/{index-x80UG39F.d.cts → index-KZUd8B5E.d.mts} +3 -4
- package/dist/index-MsUtFRul.d.cts +53 -0
- package/dist/index-dtLxevvf.d.cts +49 -0
- package/dist/{index-pX7tBQdJ.d.mts → index-q6EgsH9R.d.mts} +2 -3
- package/dist/{index-8dzWTpFp.d.cts → index-v99yMdts.d.cts} +3 -2
- package/dist/{index-CxSNNzBT2.d.mts → index-yr4HkKOj.d.cts} +2 -2
- package/dist/{index-z35LEYG8.d.mts → index-zFYi0f1t.d.cts} +4 -6
- package/dist/index.cjs +2 -32
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{src-DcNT2aIK.mjs → src-BJy4dM4f.mjs} +5 -10
- package/dist/{src-BiocWFSR.cjs → src-C8PIppTy.cjs} +2 -7
- package/dist/{hooks.cjs → style.cjs} +5 -23
- package/dist/style.d.cts +23 -0
- package/dist/style.d.mts +23 -0
- package/dist/{hooks.mjs → style.mjs} +6 -16
- package/dist/theme-Du6xgPsg.cjs +470 -0
- package/dist/{themes.mjs → theme-V6lYzd3j.mjs} +68 -14
- package/dist/theme.cjs +23 -0
- package/dist/theme.d.cts +3 -0
- package/dist/theme.d.mts +3 -0
- package/dist/theme.mjs +3 -0
- package/dist/{themeDefault-B-QjpGEO.cjs → themeDefault-Cebi08Cv.cjs} +1 -1
- package/dist/{themeDefault-CjXaY3ok.mjs → themeDefault-Z3KmyIbm.mjs} +1 -1
- package/dist/themes-CUV79qWU.d.cts +503 -0
- package/dist/themes-CUV79qWU.d.mts +503 -0
- package/dist/{useTableSort--XMWjujs.d.cts → useTablePagination-7jiSvKCh.d.cts} +25 -25
- package/dist/{useTableSort-CpDs4cGq.d.mts → useTablePagination-HaIcJPv-.d.mts} +25 -25
- package/dist/utils.cjs +0 -29
- package/dist/utils.d.cts +1 -19
- package/dist/utils.d.mts +1 -19
- package/dist/utils.mjs +1 -27
- package/package.json +431 -24
- package/dist/CodeBlock.cjs +0 -101
- package/dist/CodeBlock.d.cts +0 -2
- package/dist/CodeBlock.d.mts +0 -2
- package/dist/CodeBlock.mjs +0 -100
- package/dist/Field.cjs +0 -59
- package/dist/Field.d.cts +0 -36
- package/dist/Field.d.mts +0 -36
- package/dist/Field.mjs +0 -58
- package/dist/Markdown/Control.cjs +0 -61
- package/dist/Markdown/Control.d.cts +0 -18
- package/dist/Markdown/Control.d.mts +0 -18
- package/dist/Markdown/Control.mjs +0 -60
- package/dist/Markdown/Editor.cjs +0 -130
- package/dist/Markdown/Editor.d.cts +0 -40
- package/dist/Markdown/Editor.d.mts +0 -40
- package/dist/Markdown/Editor.mjs +0 -128
- package/dist/Markdown/Preview.cjs +0 -241
- package/dist/Markdown/Preview.d.cts +0 -55
- package/dist/Markdown/Preview.d.mts +0 -55
- package/dist/Markdown/Preview.mjs +0 -236
- package/dist/Markdown/Toolbar.cjs +0 -4
- package/dist/Markdown/Toolbar.d.cts +0 -13
- package/dist/Markdown/Toolbar.d.mts +0 -13
- package/dist/Markdown/Toolbar.mjs +0 -2
- package/dist/Markdown.cjs +0 -13
- package/dist/Markdown.d.cts +0 -80
- package/dist/Markdown.d.mts +0 -80
- package/dist/Markdown.mjs +0 -6
- package/dist/MarkdownContext-BN8A3W-J.mjs +0 -11
- package/dist/MarkdownContext-DSwjzpH8.cjs +0 -22
- package/dist/TextInput-6o37Zddp.cjs +0 -231
- package/dist/TextInput-D_lHYJlL.mjs +0 -224
- package/dist/ThemeProvider.cjs +0 -15
- package/dist/ThemeProvider.d.cts +0 -20
- package/dist/ThemeProvider.d.mts +0 -20
- package/dist/ThemeProvider.mjs +0 -14
- package/dist/Toolbar-B-W22Sk4.cjs +0 -459
- package/dist/Toolbar-KbR97iJS.mjs +0 -448
- package/dist/applyAction-B2B-hnP3.mjs +0 -98
- package/dist/applyAction-B2uVHxOE.cjs +0 -103
- package/dist/createTheme-Dts2F4R_.d.cts +0 -21
- package/dist/createTheme-Dts2F4R_.d.mts +0 -21
- package/dist/hooks/useCopyToClipboard.cjs +0 -33
- package/dist/hooks/useCopyToClipboard.d.cts +0 -16
- package/dist/hooks/useCopyToClipboard.d.mts +0 -16
- package/dist/hooks/useCopyToClipboard.mjs +0 -31
- package/dist/hooks.d.cts +0 -40
- package/dist/hooks.d.mts +0 -40
- package/dist/index-BPrjvi7B.d.cts +0 -13
- package/dist/index-BlfIbAMs.d.cts +0 -45
- package/dist/index-BoqlPb3Z.d.mts +0 -13
- package/dist/index-Bwi4kRpf.d.mts +0 -79
- package/dist/index-Bx24ZnOV.d.mts +0 -43
- package/dist/index-C-P_hipv.d.mts +0 -21
- package/dist/index-C5_ciaeo.d.cts +0 -79
- package/dist/index-CDcGTGR4.d.cts +0 -21
- package/dist/index-CEOZI-6L.d.mts +0 -48
- package/dist/index-CLU39rUS2.d.mts +0 -30
- package/dist/index-CM_KCTee.d.cts +0 -48
- package/dist/index-CT9uGKrs.d.cts +0 -30
- package/dist/index-CcYSvIJi.d.cts +0 -21
- package/dist/index-CdF_4ckE.d.mts +0 -11
- package/dist/index-Cl_yBpzW2.d.mts +0 -13
- package/dist/index-Cv_UOfYx.d.mts +0 -18
- package/dist/index-DBGE6yKw.d.mts +0 -16
- package/dist/index-DCQ2fsDu.d.mts +0 -40
- package/dist/index-DD2AVtiR.d.cts +0 -16
- package/dist/index-DOPXpr2J.d.cts +0 -43
- package/dist/index-DTkQSXQD.d.cts +0 -11
- package/dist/index-DeJWkpf9.d.cts +0 -16
- package/dist/index-DeiZHSwA.d.cts +0 -12
- package/dist/index-Des8BisQ.d.mts +0 -12
- package/dist/index-Dg8-CPOO.d.cts +0 -18
- package/dist/index-DgRS5Aqv.d.mts +0 -16
- package/dist/index-Dtzj8X58.d.cts +0 -40
- package/dist/index-DvW2eETV.d.mts +0 -21
- package/dist/index-GVsFY00r.d.cts +0 -21
- package/dist/index-Nqco3fsM.d.cts +0 -13
- package/dist/index-g-9DZ_KQ.d.cts +0 -28
- package/dist/index-g9EThkSg.d.mts +0 -21
- package/dist/index-kpk9e3xM2.d.mts +0 -45
- package/dist/index-u57CbuAU2.d.mts +0 -28
- package/dist/themes-D1SAp3SL.d.mts +0 -500
- package/dist/themes-D81JYbqm.d.cts +0 -500
- package/dist/themes.cjs +0 -318
- package/dist/themes.d.cts +0 -3
- package/dist/themes.d.mts +0 -3
- package/dist/useDefaultProps-Cb-5FNok.cjs +0 -19
- package/dist/useDefaultProps-CoApb4KT.mjs +0 -14
- package/dist/utils/styleCache.cjs +0 -7
- package/dist/utils/styleCache.d.cts +0 -3
- package/dist/utils/styleCache.d.mts +0 -4
- package/dist/utils/styleCache.mjs +0 -5
package/dist/engine.cjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
+
const require_emotion = require("./emotion-DviPkkGL.cjs");
|
|
4
|
+
let _emotion_react = require("@emotion/react");
|
|
5
|
+
let _emotion_cache = require("@emotion/cache");
|
|
6
|
+
_emotion_cache = require_rolldown_runtime.__toESM(_emotion_cache, 1);
|
|
7
|
+
//#region src/engine/styleCache.ts
|
|
8
|
+
var styleCache_default = (0, _emotion_cache.default)({ key: "soroush" });
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/engine/globalStyles.ts
|
|
11
|
+
/**
|
|
12
|
+
* The base reset this package owns — box-sizing, margin/table resets, and
|
|
13
|
+
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
14
|
+
* app-specific are app policy — compose this into your own `Global` styles array.
|
|
15
|
+
*/
|
|
16
|
+
const globalStyles = (theme) => _emotion_react.css`
|
|
17
|
+
*,
|
|
18
|
+
*::before,
|
|
19
|
+
*::after {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html,
|
|
24
|
+
body {
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
html {
|
|
30
|
+
line-height: 1.15;
|
|
31
|
+
-webkit-text-size-adjust: 100%;
|
|
32
|
+
tab-size: 4;
|
|
33
|
+
color-scheme: ${theme.colorScheme};
|
|
34
|
+
font-synthesis: none;
|
|
35
|
+
text-rendering: optimizeLegibility;
|
|
36
|
+
-webkit-font-smoothing: antialiased;
|
|
37
|
+
-moz-osx-font-smoothing: grayscale;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
body {
|
|
41
|
+
background: ${theme.background.primary};
|
|
42
|
+
color: ${theme.text.initial};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
p,
|
|
46
|
+
h1,
|
|
47
|
+
h2,
|
|
48
|
+
h3,
|
|
49
|
+
h4,
|
|
50
|
+
h5,
|
|
51
|
+
h6 {
|
|
52
|
+
margin: 0;
|
|
53
|
+
font-weight: inherit;
|
|
54
|
+
margin-block-end: 0.5em;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
textarea {
|
|
58
|
+
overflow: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
table {
|
|
62
|
+
border-collapse: collapse;
|
|
63
|
+
border-spacing: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
td,
|
|
67
|
+
th {
|
|
68
|
+
padding: 0;
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
//#endregion
|
|
72
|
+
Object.defineProperty(exports, "CacheProvider", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function() {
|
|
75
|
+
return _emotion_react.CacheProvider;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
exports.Global = require_emotion.Global;
|
|
79
|
+
exports.globalStyles = globalStyles;
|
|
80
|
+
exports.styleCache = styleCache_default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
2
|
+
import { CacheProvider, Interpolation } from "@emotion/react";
|
|
3
|
+
import { ComponentType, RefAttributes } from "react";
|
|
4
|
+
//#region src/theme/emotion.d.ts
|
|
5
|
+
/** `Global`, retyped against this package's own `Theme` (see `styled.ts`'s `StyledTags`). */
|
|
6
|
+
declare const Global: ComponentType<{
|
|
7
|
+
styles: Interpolation<Theme>;
|
|
8
|
+
} & RefAttributes<unknown>>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/engine/styleCache.d.ts
|
|
11
|
+
declare const _default: import("@emotion/cache").EmotionCache;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/engine/globalStyles.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* The base reset this package owns — box-sizing, margin/table resets, and
|
|
16
|
+
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
17
|
+
* app-specific are app policy — compose this into your own `Global` styles array.
|
|
18
|
+
*/
|
|
19
|
+
declare const globalStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CacheProvider, Global, globalStyles, _default as styleCache };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { CacheProvider, Interpolation } from "@emotion/react";
|
|
3
|
+
import { ComponentType, RefAttributes } from "react";
|
|
4
|
+
//#region src/theme/emotion.d.ts
|
|
5
|
+
/** `Global`, retyped against this package's own `Theme` (see `styled.ts`'s `StyledTags`). */
|
|
6
|
+
declare const Global: ComponentType<{
|
|
7
|
+
styles: Interpolation<Theme>;
|
|
8
|
+
} & RefAttributes<unknown>>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/engine/styleCache.d.ts
|
|
11
|
+
declare const _default: import("@emotion/cache").EmotionCache;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/engine/globalStyles.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* The base reset this package owns — box-sizing, margin/table resets, and
|
|
16
|
+
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
17
|
+
* app-specific are app policy — compose this into your own `Global` styles array.
|
|
18
|
+
*/
|
|
19
|
+
declare const globalStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CacheProvider, Global, globalStyles, _default as styleCache };
|
package/dist/engine.mjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { i as Global, t as CacheProvider } from "./emotion-BAyqVw0c.mjs";
|
|
2
|
+
import { css } from "@emotion/react";
|
|
3
|
+
import createCache from "@emotion/cache";
|
|
4
|
+
//#region src/engine/styleCache.ts
|
|
5
|
+
var styleCache_default = createCache({ key: "soroush" });
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/engine/globalStyles.ts
|
|
8
|
+
/**
|
|
9
|
+
* The base reset this package owns — box-sizing, margin/table resets, and
|
|
10
|
+
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
11
|
+
* app-specific are app policy — compose this into your own `Global` styles array.
|
|
12
|
+
*/
|
|
13
|
+
const globalStyles = (theme) => css`
|
|
14
|
+
*,
|
|
15
|
+
*::before,
|
|
16
|
+
*::after {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
html,
|
|
21
|
+
body {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html {
|
|
27
|
+
line-height: 1.15;
|
|
28
|
+
-webkit-text-size-adjust: 100%;
|
|
29
|
+
tab-size: 4;
|
|
30
|
+
color-scheme: ${theme.colorScheme};
|
|
31
|
+
font-synthesis: none;
|
|
32
|
+
text-rendering: optimizeLegibility;
|
|
33
|
+
-webkit-font-smoothing: antialiased;
|
|
34
|
+
-moz-osx-font-smoothing: grayscale;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body {
|
|
38
|
+
background: ${theme.background.primary};
|
|
39
|
+
color: ${theme.text.initial};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
p,
|
|
43
|
+
h1,
|
|
44
|
+
h2,
|
|
45
|
+
h3,
|
|
46
|
+
h4,
|
|
47
|
+
h5,
|
|
48
|
+
h6 {
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-weight: inherit;
|
|
51
|
+
margin-block-end: 0.5em;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
textarea {
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
table {
|
|
59
|
+
border-collapse: collapse;
|
|
60
|
+
border-spacing: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
td,
|
|
64
|
+
th {
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { CacheProvider, Global, globalStyles, styleCache_default as styleCache };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-BJ8OC_Zh.cjs";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
6
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-BwUnDd9W.mjs";
|
|
2
|
+
import "./index-Ca0Pj5m2.mjs";
|
|
2
3
|
import { HTMLAttributes } from "react";
|
|
3
4
|
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
4
5
|
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { L as TypographyVariant, h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
3
|
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Typography/Typography.d.ts
|
|
5
5
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-yr4HkKOj.cjs";
|
|
4
|
+
import { HTMLAttributes } from "react";
|
|
5
|
+
//#region src/Pagination/Pagination.d.ts
|
|
6
|
+
type PaginationColor = PaginationItemColor;
|
|
7
|
+
type PaginationVariant = PaginationItemVariant;
|
|
8
|
+
type PaginationShape = PaginationItemShape;
|
|
9
|
+
type PaginationSize = PaginationItemSize;
|
|
10
|
+
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'onChange'>, UsePaginationProps, index_d_exports.SpaceProps<Theme> {
|
|
11
|
+
/** Selected-item color — resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
12
|
+
color?: PaginationColor;
|
|
13
|
+
/** Item style — `text` or `outlined`. Default: `'text'`. */
|
|
14
|
+
variant?: PaginationVariant;
|
|
15
|
+
/** Item corner shape. Default: `'circular'`. */
|
|
16
|
+
shape?: PaginationShape;
|
|
17
|
+
/** Item density — resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
18
|
+
size?: PaginationSize;
|
|
19
|
+
/** Accessible name per item — important for screen readers. A sensible default is provided. */
|
|
20
|
+
getItemAriaLabel?: (type: PaginationItemType, page: number | null, isSelected: boolean) => string;
|
|
21
|
+
}
|
|
22
|
+
declare function Pagination({ count, page, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange, color, variant, shape, size, getItemAriaLabel, 'aria-label': ariaLabel, ...rest }: Readonly<PaginationProps>): import("react").JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PaginationSize as a, PaginationShape as i, PaginationColor as n, PaginationVariant as o, PaginationProps as r, Pagination as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-yr4HkKOj.cjs";
|
|
2
|
+
import "./index-B3FrhO2r.cjs";
|
|
2
3
|
import { HTMLAttributes } from "react";
|
|
3
4
|
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
4
5
|
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-BL3jwIQU.mjs";
|
|
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 {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { d as PaletteColor, h as Theme, n as ButtonVariants } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
4
|
//#region src/Button/Button.d.ts
|
|
5
5
|
/** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
2
|
+
import { n as TextColorToken } from "./index-B2hrssyF.mjs";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
//#region src/Icon/icons.d.ts
|
|
5
5
|
/** Registry of available icons, keyed by their asset file name. */
|
|
@@ -23,15 +23,19 @@ declare const icons: {
|
|
|
23
23
|
readonly database: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
24
24
|
readonly desktop_windows: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
25
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;
|
|
26
27
|
readonly expand_less: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
27
28
|
readonly expand_more: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
28
29
|
readonly external_link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
29
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;
|
|
30
32
|
readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
31
33
|
readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
32
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;
|
|
33
36
|
readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
34
37
|
readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
38
|
+
readonly history: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
35
39
|
readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
36
40
|
readonly image: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
37
41
|
readonly language: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -42,6 +46,7 @@ declare const icons: {
|
|
|
42
46
|
readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
43
47
|
readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
44
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;
|
|
45
50
|
readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
51
|
readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
47
52
|
readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -54,6 +59,8 @@ declare const icons: {
|
|
|
54
59
|
readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
55
60
|
readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
56
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;
|
|
57
64
|
};
|
|
58
65
|
/** Valid values for the Icon `name` prop — derived from the registry keys. */
|
|
59
66
|
type IconName = keyof typeof icons;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-BoOxdk8p.cjs";
|
|
3
4
|
import { ElementType, ThHTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableSectionContext.d.ts
|
|
5
6
|
/** The table section a cell lives in — drives `TableCell`'s th/td element resolution. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
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';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { b as ThemeComponents, h as Theme, x as ThemeDefaults } from "./themes-CUV79qWU.mjs";
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-DV31j6HO.mjs";
|
|
3
4
|
import { ElementType, ThHTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableSectionContext.d.ts
|
|
5
6
|
/** The table section a cell lives in — drives `TableCell`'s th/td element resolution. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { n as TextColorToken } from "./index-CvaEVk-f.cjs";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
//#region src/Icon/icons.d.ts
|
|
5
5
|
/** Registry of available icons, keyed by their asset file name. */
|
|
@@ -23,15 +23,19 @@ declare const icons: {
|
|
|
23
23
|
readonly database: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
24
24
|
readonly desktop_windows: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
25
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;
|
|
26
27
|
readonly expand_less: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
27
28
|
readonly expand_more: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
28
29
|
readonly external_link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
29
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;
|
|
30
32
|
readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
31
33
|
readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
32
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;
|
|
33
36
|
readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
34
37
|
readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
38
|
+
readonly history: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
35
39
|
readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
36
40
|
readonly image: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
37
41
|
readonly language: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -42,6 +46,7 @@ declare const icons: {
|
|
|
42
46
|
readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
43
47
|
readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
44
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;
|
|
45
50
|
readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
51
|
readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
47
52
|
readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -54,6 +59,8 @@ declare const icons: {
|
|
|
54
59
|
readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
55
60
|
readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
56
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;
|
|
57
64
|
};
|
|
58
65
|
/** Valid values for the Icon `name` prop — derived from the registry keys. */
|
|
59
66
|
type IconName = keyof typeof icons;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
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,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-zFYi0f1t.cjs";
|
|
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,24 @@
|
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BwUnDd9W.mjs";
|
|
4
|
+
import { HTMLAttributes } from "react";
|
|
5
|
+
//#region src/Pagination/Pagination.d.ts
|
|
6
|
+
type PaginationColor = PaginationItemColor;
|
|
7
|
+
type PaginationVariant = PaginationItemVariant;
|
|
8
|
+
type PaginationShape = PaginationItemShape;
|
|
9
|
+
type PaginationSize = PaginationItemSize;
|
|
10
|
+
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'onChange'>, UsePaginationProps, index_d_exports.SpaceProps<Theme> {
|
|
11
|
+
/** Selected-item color — resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
12
|
+
color?: PaginationColor;
|
|
13
|
+
/** Item style — `text` or `outlined`. Default: `'text'`. */
|
|
14
|
+
variant?: PaginationVariant;
|
|
15
|
+
/** Item corner shape. Default: `'circular'`. */
|
|
16
|
+
shape?: PaginationShape;
|
|
17
|
+
/** Item density — resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
18
|
+
size?: PaginationSize;
|
|
19
|
+
/** Accessible name per item — important for screen readers. A sensible default is provided. */
|
|
20
|
+
getItemAriaLabel?: (type: PaginationItemType, page: number | null, isSelected: boolean) => string;
|
|
21
|
+
}
|
|
22
|
+
declare function Pagination({ count, page, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange, color, variant, shape, size, getItemAriaLabel, 'aria-label': ariaLabel, ...rest }: Readonly<PaginationProps>): import("react").JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PaginationSize as a, PaginationShape as i, PaginationColor as n, PaginationVariant as o, PaginationProps as r, Pagination as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { L as TypographyVariant, h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Typography/Typography.d.ts
|
|
5
5
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, h as Theme, n as ButtonVariants } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
4
|
//#region src/Button/Button.d.ts
|
|
5
5
|
/** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { d as PaletteColor, h as Theme, r as CSSObject$1 } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
|
+
import { PropsOf, css as css$1, keyframes } from "@emotion/react";
|
|
4
4
|
import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
|
|
5
5
|
import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
|
|
6
|
-
//#region src/styled.d.ts
|
|
6
|
+
//#region src/style/styled.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Design-system additions to Emotion's styled options. A styled root that passes
|
|
9
9
|
* `name` becomes theme-customizable: `theme.components[name]` may contribute
|
|
@@ -28,8 +28,18 @@ interface ThemeCustomizationOptions {
|
|
|
28
28
|
*/
|
|
29
29
|
overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The `styled.div`, `styled.span`, … tag shorthands — mirrors Emotion's own
|
|
33
|
+
* `StyledTags`, retyped against this package's `Theme` instead of Emotion's
|
|
34
|
+
* (otherwise-empty) one, so `${({ theme }) => theme.space[2]}` template
|
|
35
|
+
* interpolations resolve to the real theme shape.
|
|
36
|
+
*/
|
|
37
|
+
type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
|
|
38
|
+
theme?: Theme;
|
|
39
|
+
as?: React.ElementType;
|
|
40
|
+
}, JSX.IntrinsicElements[Tag]>; };
|
|
31
41
|
/** Overloads mirroring Emotion's, with the theme-customization options added. */
|
|
32
|
-
interface CreateThemedStyled extends
|
|
42
|
+
interface CreateThemedStyled extends StyledTags {
|
|
33
43
|
<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> & {
|
|
34
44
|
theme?: Theme;
|
|
35
45
|
}, {}, {
|
|
@@ -56,8 +66,8 @@ interface CreateThemedStyled extends CreateStyled {
|
|
|
56
66
|
*/
|
|
57
67
|
declare const styled: CreateThemedStyled;
|
|
58
68
|
declare namespace index_d_exports {
|
|
59
|
-
export { CSSObject$1 as CSSObject,
|
|
69
|
+
export { CSSObject$1 as CSSObject, PaletteColor, Theme, ThemeCustomizationOptions, createShouldForwardProp, css$1 as css, keyframes, props, styled };
|
|
60
70
|
}
|
|
61
71
|
import * as import__soroush_tech_styled_system from "@soroush.tech/styled-system";
|
|
62
72
|
//#endregion
|
|
63
|
-
export {
|
|
73
|
+
export { props as a, keyframes as i, css$1 as n, ThemeCustomizationOptions as o, index_d_exports as r, styled as s, createShouldForwardProp as t };
|