@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/README.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# @soroush.tech/design-system
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
4
|
-
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
3
|
+
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
4
|
+
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
5
5
|
[](https://app.codecov.io/gh/soroush-tech/core?flags%5B0%5D=design-system)
|
|
6
|
-
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
7
|
-
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
8
|
-
[](./LICENSE)
|
|
6
|
+
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
7
|
+
[](https://www.npmjs.com/package/@soroush.tech/design-system)
|
|
8
|
+
[](./LICENSE)
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**Your design system. Your tokens. Your rules.**
|
|
11
|
+
A fully typed React component library where nothing is hardcoded — every color, scale, and default belongs to you, not the package.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
For the conventions every component must follow (prop typing, `system()` wiring, `shouldForwardProp`, Storybook rules, testing), read **[`design-system.md`](./design-system.md)** — this README is the map, that file is the law.
|
|
13
|
+
Tired of forking a component library just to change a color? Every token here is designed to be overridden — theming isn't an afterthought, it's the whole point.
|
|
15
14
|
|
|
16
15
|
## Install
|
|
17
16
|
|
|
@@ -19,7 +18,7 @@ For the conventions every component must follow (prop typing, `system()` wiring,
|
|
|
19
18
|
npm i @soroush.tech/design-system
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
`react
|
|
21
|
+
`react` and `react-dom` are peer dependencies. Emotion is an internal implementation detail — it ships as a regular dependency, not a peer, so you never install it yourself.
|
|
23
22
|
|
|
24
23
|
---
|
|
25
24
|
|
|
@@ -32,29 +31,33 @@ import { Typography } from '@soroush.tech/design-system/Typography'
|
|
|
32
31
|
import { Flex } from '@soroush.tech/design-system/Flex'
|
|
33
32
|
```
|
|
34
33
|
|
|
35
|
-
Styling primitives (the engine) come from the barrel `@soroush.tech/design-system` — `styled`, `css`, `keyframes`,
|
|
34
|
+
Styling primitives (the engine) come from the barrel `@soroush.tech/design-system` — `styled`, `css`, `keyframes`, the `Theme` type, styled-system functions, and `createShouldForwardProp`. The barrel (`src/index.ts`) is the engine abstraction layer: to swap the CSS-in-JS engine, only that file changes.
|
|
36
35
|
|
|
37
36
|
```ts
|
|
38
|
-
import { styled, css,
|
|
37
|
+
import { styled, css, type Theme } from '@soroush.tech/design-system'
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
`ThemeProvider` and the theme-value hooks (`useTheme`, `useDefaultProps`, `withTheme`) live at their own subpath:
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
```ts
|
|
43
|
+
import { ThemeProvider, useTheme } from '@soroush.tech/design-system/theme'
|
|
44
|
+
```
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
| ------------------ | -------------------------------------------------------------------------------------------------------------------------- |
|
|
47
|
-
| `index.ts` | Engine barrel — the themed `styled`, Emotion + `@soroush.tech/styled-system` re-exports |
|
|
48
|
-
| `styled.ts` | The themed `styled` wrapper — `name`/`slot` options enable `theme.components` customization |
|
|
49
|
-
| `themes.ts` | `baseTheme` (the complete default theme — the only place hex values live), the `Theme` type layer, `createTheme` |
|
|
50
|
-
| `hooks/` | `useTheme`, `useDefaultProps`, `useStyle`, `useCopyToClipboard`, `withTheme`, `withStyles`, `StylesConsumer` |
|
|
51
|
-
| `utils/` | Style helpers — `alpha`, `spacing`, `clamp`, `luminance`, `generateBoxShadow`, `styleCache`, `createTheme`, `themeDefault` |
|
|
52
|
-
| `utils/test/` | `storiesOptions.ts` (token option arrays) and `storiesArgs.ts` (pre-built argTypes) for Storybook |
|
|
53
|
-
| `docs/` | Guides — [`theming.md`](./docs/theming.md) and [`customization.md`](./docs/customization.md) |
|
|
54
|
-
| `design-system.md` | Architecture and conventions for building components |
|
|
55
|
-
| `ComponentName/` | One folder per component (see inventory below) |
|
|
46
|
+
Style-computation helpers (`useStyle`, `withStyles`, `StylesConsumer`) — resolving a `StyleInput`/`StyleFactory` into a `CSSObject` — live at their own subpath:
|
|
56
47
|
|
|
57
|
-
|
|
48
|
+
```ts
|
|
49
|
+
import { useStyle } from '@soroush.tech/design-system/style'
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Raw engine primitives for building your own global styles — `Global`, `globalStyles`, and the SSR-only `CacheProvider`/`styleCache` pairing — live at their own subpath, not the barrel:
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { Global, globalStyles, CacheProvider, styleCache } from '@soroush.tech/design-system/engine'
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`Global` (retyped against this package's `Theme`) applies app-wide CSS and should render inside `ThemeProvider` so it resolves against the active theme. `globalStyles(theme)` is the base reset this package owns — box-sizing, margin/table resets, and theme-driven body colors — compose it into your own `Global` styles array alongside your app's own concerns (font-family, webfont loading, and anything else app-specific stay entirely app policy).
|
|
59
|
+
|
|
60
|
+
SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in concern most apps never need — that's what `CacheProvider` and its paired `styleCache` instance are for.
|
|
58
61
|
|
|
59
62
|
---
|
|
60
63
|
|
|
@@ -83,8 +86,6 @@ Every component folder contains `index.ts` (barrel), `ComponentName.tsx`, `READM
|
|
|
83
86
|
| `Image` | Image with styled-system props |
|
|
84
87
|
| `Avatar` | User/entity avatar |
|
|
85
88
|
| `Table` | Compound data table — exports `TableContainer`, `TableHead`, `TableBody`, `TableFooter`, `TableRow`, `TableCell`, `TablePagination`, `TablePaginationActions`, `TableSortLabel`, and `TableControl` from `@soroush.tech/design-system/Table` |
|
|
86
|
-
| `CodeBlock` | Scrollable fenced-code surface with a copy-to-clipboard button |
|
|
87
|
-
| `Markdown` | Headless markdown editor + renderer — exports `Control`, `Toolbar`, `Editor`, and `Preview` from `@soroush.tech/design-system/Markdown` |
|
|
88
89
|
|
|
89
90
|
### Inputs & forms
|
|
90
91
|
|
|
@@ -96,7 +97,6 @@ Every component folder contains `index.ts` (barrel), `ComponentName.tsx`, `READM
|
|
|
96
97
|
| `NativeSelect` | Platform `<select>` |
|
|
97
98
|
| `Select` | Custom select built on `Popover` + `MenuItem` |
|
|
98
99
|
| `MenuItem` | Option row for `Select`'s listbox |
|
|
99
|
-
| `Field` | Composed input field |
|
|
100
100
|
| `Form`, `FormControl`, `FormLabel`, `FormHelperText` | Form composition and labeling |
|
|
101
101
|
| `Pagination` | Page navigation control |
|
|
102
102
|
|
|
@@ -145,8 +145,8 @@ The theme belongs to you — the package only ships defaults. This section is th
|
|
|
145
145
|
`ThemeProvider` provides exactly one theme — the built-in dark theme when you pass nothing. Bring one theme, or as many as you like: switching between them is your state, not the provider's.
|
|
146
146
|
|
|
147
147
|
```tsx
|
|
148
|
-
import { ThemeProvider } from '@soroush.tech/design-system/
|
|
149
|
-
import { baseTheme, createTheme } from '@soroush.tech/design-system/
|
|
148
|
+
import { ThemeProvider } from '@soroush.tech/design-system/theme'
|
|
149
|
+
import { baseTheme, createTheme } from '@soroush.tech/design-system/theme'
|
|
150
150
|
|
|
151
151
|
// Zero-config: the built-in `baseTheme`.
|
|
152
152
|
<ThemeProvider>{app}</ThemeProvider>
|
|
@@ -160,7 +160,7 @@ const [isDark, setIsDark] = useState(true)
|
|
|
160
160
|
<ThemeProvider theme={isDark ? brandDark : brandLight}>{app}</ThemeProvider>
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
`createTheme(base, overrides)` (exported from
|
|
163
|
+
`createTheme(base, overrides)` (exported from `@soroush.tech/design-system/theme`) is the merge primitive: plain objects recurse, arrays (`shadows`, `fontSizes`) and functions replace wholesale, `undefined` values are ignored — keys are added or replaced, never removed.
|
|
164
164
|
|
|
165
165
|
### Component defaults
|
|
166
166
|
|
|
@@ -209,7 +209,7 @@ const brand = createTheme(baseTheme, {
|
|
|
209
209
|
},
|
|
210
210
|
|
|
211
211
|
// A new variant value — register it first so it typechecks:
|
|
212
|
-
// declare module '@
|
|
212
|
+
// declare module '@soroush.tech/design-system/theme' { interface ButtonVariants { dashed: true } }
|
|
213
213
|
variants: [
|
|
214
214
|
{
|
|
215
215
|
props: { variant: 'dashed' },
|
|
@@ -230,12 +230,12 @@ Your own components can join the same mechanism: create their roots with this pa
|
|
|
230
230
|
|
|
231
231
|
### Extending tokens (declaration merging)
|
|
232
232
|
|
|
233
|
-
Every scale is an open interface declared on `@
|
|
233
|
+
Every scale is an open interface declared on `@soroush.tech/design-system/theme`, so you can add palette colors, tokens, or whole scales — and every component prop union (`color`, `bg`, `size`, …) widens automatically:
|
|
234
234
|
|
|
235
235
|
```ts
|
|
236
|
-
import type { PaletteEntry } from '@soroush.tech/design-system/
|
|
236
|
+
import type { PaletteEntry } from '@soroush.tech/design-system/theme'
|
|
237
237
|
|
|
238
|
-
declare module '@
|
|
238
|
+
declare module '@soroush.tech/design-system/theme' {
|
|
239
239
|
interface ThemePalette {
|
|
240
240
|
brand: PaletteEntry // new palette color
|
|
241
241
|
}
|
|
@@ -276,3 +276,14 @@ Scaffold with the skill — it reads the live `Typography` files and `design-sys
|
|
|
276
276
|
```
|
|
277
277
|
|
|
278
278
|
Then work through the checklist at the bottom of [`design-system.md`](./design-system.md).
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
The library takes inspiration from [Material UI](https://mui.com/) — its component vocabulary and prop conventions will feel familiar — but it is written entirely in house. It is not a clone or a fork: every component is built from scratch on our own engine and token system, and the API is free to diverge wherever it serves its consumers better.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Release notes
|
|
287
|
+
|
|
288
|
+
Per-version notes for every published release live in
|
|
289
|
+
[`release-notes/`](https://github.com/soroush-tech/core/tree/main/packages/design-system/release-notes).
|
package/dist/AppBar.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-B-QjpGEO.cjs");
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
4
3
|
const require_Flex = require("./Flex.cjs");
|
|
4
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
7
7
|
//#region src/AppBar/AppBar.tsx
|
package/dist/AppBar.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
//#region src/AppBar/AppBar.d.ts
|
|
4
5
|
/** Valid values for the color prop — derived from theme.background keys. */
|
|
5
6
|
type AppBarColor = keyof Theme['background'];
|
package/dist/AppBar.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
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
|
//#region src/AppBar/AppBar.d.ts
|
|
4
5
|
/** Valid values for the color prop — derived from theme.background keys. */
|
|
5
6
|
type AppBarColor = keyof Theme['background'];
|
package/dist/AppBar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-CjXaY3ok.mjs";
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
3
2
|
import { Flex } from "./Flex.mjs";
|
|
3
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/AppBar/AppBar.tsx
|
|
6
6
|
const shouldForwardProp = createShouldForwardProp([
|
package/dist/Avatar.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-B-QjpGEO.cjs");
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
4
3
|
const require_Flex = require("./Flex.cjs");
|
|
4
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
5
|
+
const require_theme = require("./theme-Du6xgPsg.cjs");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
8
|
-
let _emotion_react = require("@emotion/react");
|
|
9
9
|
//#region src/Avatar/Avatar.tsx
|
|
10
10
|
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([
|
|
11
11
|
..._soroush_tech_styled_system_should_forward_prop.props,
|
|
@@ -62,7 +62,7 @@ const AvatarImg = require_src.styled("img", {
|
|
|
62
62
|
display: "block"
|
|
63
63
|
});
|
|
64
64
|
function Avatar({ src, srcSet, alt, fallback, children, variant: variantProp, size: sizeProp, ring, ringColor: ringColorProp, ringWidth: ringWidthProp, ...rest }) {
|
|
65
|
-
const theme =
|
|
65
|
+
const theme = require_theme.useTheme();
|
|
66
66
|
const variant = variantProp ?? require_themeDefault.themeDefault(theme, "avatarVariant", "circular");
|
|
67
67
|
const size = sizeProp ?? require_themeDefault.themeDefault(theme, "avatarSize", "md");
|
|
68
68
|
const ringColor = ringColorProp ?? require_themeDefault.themeDefault(theme, "borderColor", "primary");
|
package/dist/Avatar.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
//#region src/Avatar/Avatar.d.ts
|
|
4
5
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
5
6
|
type AvatarSize = keyof Theme['avatar'];
|
package/dist/Avatar.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
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
|
//#region src/Avatar/Avatar.d.ts
|
|
4
5
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
5
6
|
type AvatarSize = keyof Theme['avatar'];
|
package/dist/Avatar.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-CjXaY3ok.mjs";
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
3
2
|
import { Flex } from "./Flex.mjs";
|
|
3
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
4
|
+
import { r as useTheme } from "./theme-V6lYzd3j.mjs";
|
|
4
5
|
import { useState } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
//#region src/Avatar/Avatar.tsx
|
package/dist/Backdrop.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
3
|
const require_View = require("./View.cjs");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
//#region src/Backdrop/Backdrop.tsx
|
package/dist/Backdrop.d.cts
CHANGED
package/dist/Backdrop.d.mts
CHANGED
package/dist/Backdrop.mjs
CHANGED
package/dist/Button.cjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
|
+
const require_theme = require("./theme-Du6xgPsg.cjs");
|
|
5
6
|
const require_CircularProgress = require("./CircularProgress.cjs");
|
|
6
7
|
const require_ButtonGroupContext = require("./ButtonGroupContext-NtkVeDVE.cjs");
|
|
7
|
-
const require_useDefaultProps = require("./useDefaultProps-Cb-5FNok.cjs");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
11
|
-
let _emotion_react = require("@emotion/react");
|
|
12
11
|
//#region src/Button/Button.tsx
|
|
13
12
|
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([
|
|
14
13
|
..._soroush_tech_styled_system_should_forward_prop.props,
|
|
15
|
-
"gap",
|
|
16
14
|
"variant",
|
|
17
15
|
"size",
|
|
18
16
|
"shape",
|
|
@@ -73,10 +71,6 @@ const baseStyles = {
|
|
|
73
71
|
opacity: .5
|
|
74
72
|
}
|
|
75
73
|
};
|
|
76
|
-
const buttonBaseSystem = (0, require_src.src_exports.system)({ gap: {
|
|
77
|
-
property: "gap",
|
|
78
|
-
scale: "space"
|
|
79
|
-
} });
|
|
80
74
|
const sizeVariants = ({ theme, size }) => {
|
|
81
75
|
const s = theme.sizes[size];
|
|
82
76
|
return {
|
|
@@ -127,15 +121,14 @@ const ButtonRoot = require_src.styled("button", {
|
|
|
127
121
|
systemProps: [
|
|
128
122
|
require_src.src_exports.space,
|
|
129
123
|
safeLayout,
|
|
130
|
-
buttonBaseSystem,
|
|
131
124
|
require_src.src_exports.typography,
|
|
132
125
|
require_src.src_exports.border
|
|
133
126
|
]
|
|
134
127
|
})(baseStyles, sizeVariants, variantStyles, shapeVariants, fullWidthStyles, focusVisibleStyles);
|
|
135
128
|
function Button({ variant, color, size, shape, gap = 1, fontWeight = "bold", letterSpacing = "tight", startIcon, endIcon, fullWidth, loading = false, loadingIndicator, loadingPosition = "center", children, disabled, href, ...rest }) {
|
|
136
129
|
const group = (0, react.useContext)(require_ButtonGroupContext.ButtonGroupContext);
|
|
137
|
-
const theme =
|
|
138
|
-
const dp =
|
|
130
|
+
const theme = require_theme.useTheme();
|
|
131
|
+
const dp = require_theme.useDefaultProps("Button");
|
|
139
132
|
const resolvedVariant = variant ?? group.variant ?? dp.variant ?? require_themeDefault.themeDefault(theme, "buttonVariant", "contained");
|
|
140
133
|
const resolvedColor = color ?? group.color ?? dp.color ?? require_themeDefault.themeDefault(theme, "color", "primary");
|
|
141
134
|
const resolvedSize = size ?? group.size ?? dp.size ?? require_themeDefault.themeDefault(theme, "size", "md");
|
package/dist/Button.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-BJ8OC_Zh.cjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/Button.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-D8U2tk1L.mjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/Button.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "./utils.mjs";
|
|
4
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-V6lYzd3j.mjs";
|
|
4
5
|
import { CircularProgress } from "./CircularProgress.mjs";
|
|
5
6
|
import { t as ButtonGroupContext } from "./ButtonGroupContext-DS-kl9lG.mjs";
|
|
6
|
-
import { t as useDefaultProps } from "./useDefaultProps-CoApb4KT.mjs";
|
|
7
7
|
import { useContext } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/Button/Button.tsx
|
|
10
10
|
const shouldForwardProp = createShouldForwardProp([
|
|
11
11
|
...props,
|
|
12
|
-
"gap",
|
|
13
12
|
"variant",
|
|
14
13
|
"size",
|
|
15
14
|
"shape",
|
|
@@ -70,10 +69,6 @@ const baseStyles = {
|
|
|
70
69
|
opacity: .5
|
|
71
70
|
}
|
|
72
71
|
};
|
|
73
|
-
const buttonBaseSystem = (0, src_exports.system)({ gap: {
|
|
74
|
-
property: "gap",
|
|
75
|
-
scale: "space"
|
|
76
|
-
} });
|
|
77
72
|
const sizeVariants = ({ theme, size }) => {
|
|
78
73
|
const s = theme.sizes[size];
|
|
79
74
|
return {
|
|
@@ -124,7 +119,6 @@ const ButtonRoot = styled("button", {
|
|
|
124
119
|
systemProps: [
|
|
125
120
|
src_exports.space,
|
|
126
121
|
safeLayout,
|
|
127
|
-
buttonBaseSystem,
|
|
128
122
|
src_exports.typography,
|
|
129
123
|
src_exports.border
|
|
130
124
|
]
|
package/dist/ButtonGroup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
5
|
const require_ButtonGroupContext = require("./ButtonGroupContext-NtkVeDVE.cjs");
|
|
6
6
|
let react = require("react");
|
package/dist/ButtonGroup.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index--mvTGo8F.cjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/ButtonGroup.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-DF3Hweir.mjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/ButtonGroup.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "./utils.mjs";
|
|
4
4
|
import { t as ButtonGroupContext } from "./ButtonGroupContext-DS-kl9lG.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
package/dist/Card.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-
|
|
4
|
-
const
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
+
const require_theme = require("./theme-Du6xgPsg.cjs");
|
|
5
5
|
const require_Paper = require("./Paper.cjs");
|
|
6
6
|
const require_Typography = require("./Typography.cjs");
|
|
7
|
-
const require_Icon = require("./Icon-
|
|
7
|
+
const require_Icon = require("./Icon-BOjk5r39.cjs");
|
|
8
8
|
require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let _emotion_react = require("@emotion/react");
|
|
11
10
|
//#region src/Card/Card.tsx
|
|
12
11
|
const variantStyle = ({ theme, variant }) => {
|
|
13
12
|
if (variant === "bracketBox") {
|
|
@@ -57,8 +56,8 @@ const CardIcon = require_src.styled(require_Icon.Icon, {
|
|
|
57
56
|
slot: "icon"
|
|
58
57
|
})();
|
|
59
58
|
function Card({ variant: variantProp, icon, title, caption, iconProps, titleProps, captionProps, flexDirection = "column", children, ...rest }) {
|
|
60
|
-
const theme =
|
|
61
|
-
const dp =
|
|
59
|
+
const theme = require_theme.useTheme();
|
|
60
|
+
const dp = require_theme.useDefaultProps("Card");
|
|
62
61
|
const variant = variantProp ?? dp.variant ?? require_themeDefault.themeDefault(theme, "cardVariant", "paper");
|
|
63
62
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CardSurface, {
|
|
64
63
|
variant,
|
package/dist/Card.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { r as PaperProps } from "./index-CYTaYcm3.cjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-CvaEVk-f.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-CA_X-mXg.cjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
//#region src/Card/Card.d.ts
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
package/dist/Card.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { r as PaperProps } from "./index-KZUd8B5E.mjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-B2hrssyF.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-BL3jwIQU.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
//#region src/Card/Card.d.ts
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
package/dist/Card.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-
|
|
3
|
-
import {
|
|
1
|
+
import { o as styled } from "./src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-V6lYzd3j.mjs";
|
|
4
4
|
import { Paper } from "./Paper.mjs";
|
|
5
5
|
import { Typography } from "./Typography.mjs";
|
|
6
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { t as Icon } from "./Icon-CYjD0Bad.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/Card/Card.tsx
|
package/dist/Checkbox.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_FormControl = require("./FormControl.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
package/dist/Checkbox.d.cts
CHANGED
|
@@ -1,2 +1,43 @@
|
|
|
1
|
-
import {
|
|
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 { ChangeEvent, ReactNode } from "react";
|
|
4
|
+
//#region src/Checkbox/Checkbox.d.ts
|
|
5
|
+
type CheckboxColor = PaletteColor;
|
|
6
|
+
type CheckboxSize = keyof Theme['sizes'];
|
|
7
|
+
interface CheckboxProps extends index_d_exports.SpaceProps<Theme> {
|
|
8
|
+
/** Controlled checked state. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
/** Initial checked state for uncontrolled usage. */
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
/** Disables the checkbox. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Stroke/fill color. `'default'` resolves to `theme.text.secondary`. Default: `'default'`. */
|
|
15
|
+
color?: CheckboxColor;
|
|
16
|
+
/** Icon size. Default: `'medium'`. */
|
|
17
|
+
size?: CheckboxSize;
|
|
18
|
+
/** Stretches the root to `width: 100%`. Default: `false`. */
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
/** Displays the indeterminate state (dash icon). Takes priority over `checked`. */
|
|
21
|
+
indeterminate?: boolean;
|
|
22
|
+
/** Custom icon for the unchecked state. */
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/** Custom icon for the checked state. */
|
|
25
|
+
checkedIcon?: ReactNode;
|
|
26
|
+
/** Called when the user toggles the checkbox. */
|
|
27
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
|
+
/** Forwarded to the underlying `<input>` for label association. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** Marks the field as required in a form. */
|
|
31
|
+
required?: boolean;
|
|
32
|
+
name?: string;
|
|
33
|
+
value?: string | number | readonly string[];
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
'aria-labelledby'?: string;
|
|
38
|
+
'aria-describedby'?: string;
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
}
|
|
41
|
+
declare function Checkbox({ checked, defaultChecked, disabled: disabledProp, color: colorProp, size: sizeProp, fullWidth: fullWidthProp, indeterminate, icon, checkedIcon, onChange, id: idProp, required: requiredProp, name, value, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<CheckboxProps>): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
2
43
|
export { Checkbox, CheckboxColor, CheckboxProps, CheckboxSize };
|
package/dist/Checkbox.d.mts
CHANGED
|
@@ -1,2 +1,43 @@
|
|
|
1
|
-
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
|
+
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
+
//#region src/Checkbox/Checkbox.d.ts
|
|
5
|
+
type CheckboxColor = PaletteColor;
|
|
6
|
+
type CheckboxSize = keyof Theme['sizes'];
|
|
7
|
+
interface CheckboxProps extends index_d_exports.SpaceProps<Theme> {
|
|
8
|
+
/** Controlled checked state. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
/** Initial checked state for uncontrolled usage. */
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
/** Disables the checkbox. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Stroke/fill color. `'default'` resolves to `theme.text.secondary`. Default: `'default'`. */
|
|
15
|
+
color?: CheckboxColor;
|
|
16
|
+
/** Icon size. Default: `'medium'`. */
|
|
17
|
+
size?: CheckboxSize;
|
|
18
|
+
/** Stretches the root to `width: 100%`. Default: `false`. */
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
/** Displays the indeterminate state (dash icon). Takes priority over `checked`. */
|
|
21
|
+
indeterminate?: boolean;
|
|
22
|
+
/** Custom icon for the unchecked state. */
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/** Custom icon for the checked state. */
|
|
25
|
+
checkedIcon?: ReactNode;
|
|
26
|
+
/** Called when the user toggles the checkbox. */
|
|
27
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
|
+
/** Forwarded to the underlying `<input>` for label association. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** Marks the field as required in a form. */
|
|
31
|
+
required?: boolean;
|
|
32
|
+
name?: string;
|
|
33
|
+
value?: string | number | readonly string[];
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
'aria-labelledby'?: string;
|
|
38
|
+
'aria-describedby'?: string;
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
}
|
|
41
|
+
declare function Checkbox({ checked, defaultChecked, disabled: disabledProp, color: colorProp, size: sizeProp, fullWidth: fullWidthProp, indeterminate, icon, checkedIcon, onChange, id: idProp, required: requiredProp, name, value, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<CheckboxProps>): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
2
43
|
export { Checkbox, CheckboxColor, CheckboxProps, CheckboxSize };
|
package/dist/Checkbox.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { useFormControl } from "./FormControl.mjs";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
5
|
require("react");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|