@soroush.tech/design-system 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -31
- 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 -6
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +3 -3
- 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 +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- 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 +1 -1
- package/dist/Grid.d.cts +3 -2
- package/dist/Grid.d.mts +3 -2
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-CAKRmFz3.mjs → Icon-bv8Z38l-.mjs} +44 -3
- package/dist/{Icon-1YtNCUKo.cjs → Icon-zsHe7hWR.cjs} +45 -5
- 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 +4 -4
- package/dist/Link.d.cts +10 -1
- package/dist/Link.d.mts +10 -1
- package/dist/Link.mjs +3 -2
- 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 -6
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +3 -2
- 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/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/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-DOhYeOFx.d.cts} +1 -1
- package/dist/{TableContext-BRWPghAI.mjs → TableContext-Dyr89h_k.mjs} +0 -1
- package/dist/{TableContext-2qH7XYJB.d.mts → TableContext-adilRIJZ.d.mts} +1 -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 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- 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-0J6U39Rl.d.mts +53 -0
- package/dist/{index-Dm9HfgV6.d.mts → index-B66h9kbP.d.mts} +17 -7
- package/dist/{index-FwTocqhP.d.cts → index-B8FOqBiS.d.cts} +2 -1
- package/dist/{index-DE5PtzPn.d.mts → index-BF2KXGBM.d.mts} +2 -2
- package/dist/{index-CeYkEXU2.d.cts → index-BGWm4HKR.d.cts} +2 -2
- package/dist/{index-DmJIuQJj.d.mts → index-BGzs2cKy.d.mts} +3 -2
- package/dist/{index-B1rCD6Oo.d.cts → index-BJcHQUga.d.mts} +3 -2
- package/dist/{index-CDVnvjIE.d.cts → index-BLnOsdgc.d.cts} +2 -2
- package/dist/{index-Bihpwn75.d.cts → index-BVX_Jq2G.d.cts} +17 -7
- package/dist/{index-8dzWTpFp.d.cts → index-BahGB82c.d.cts} +3 -2
- package/dist/{index-DASvoACZ.d.cts → index-BnCp6k4s.d.cts} +2 -2
- package/dist/{index-Dy03o__A.d.mts → index-BpLv6Y8m.d.mts} +2 -1
- package/dist/index-C-UBdWKI.d.cts +24 -0
- package/dist/{index-BqVgv2B_.d.mts → index-C1vVYigQ.d.cts} +3 -2
- package/dist/index-CJQXZ4hq.d.cts +53 -0
- package/dist/{index-C0xMvDjL.d.mts → index-CLCtvcKA.d.mts} +2 -2
- package/dist/{index-DSCMXFTn.d.cts → index-CY0Czi9Z.d.cts} +2 -1
- package/dist/{index-pX7tBQdJ.d.mts → index-CYNgNatZ.d.mts} +2 -1
- package/dist/{index-BLfFycfJ.d.mts → index-D0x1ZMVG.d.mts} +6 -2
- package/dist/{index-4rC2j7fR.d.cts → index-D2H_6WLf.d.cts} +3 -2
- package/dist/{index-BnzUumAC2.d.mts → index-DCwLdUQH.d.mts} +2 -1
- package/dist/{index-BH8jQOdF.d.mts → index-DGqakgRN.d.mts} +3 -2
- package/dist/{index-BLRMuO_x.d.mts → index-DLiHZtDi.d.mts} +3 -2
- package/dist/{index-Dp81rWM1.d.cts → index-DN7IvJeV.d.cts} +6 -2
- package/dist/{index-BX5-NfbX.d.cts → index-DdFxl06Q.d.cts} +2 -1
- package/dist/{index-z35LEYG8.d.mts → index-DhcmRr8Q.d.cts} +3 -2
- package/dist/index-DitJ7ss0.d.mts +24 -0
- package/dist/{index-CyZYXDn0.d.cts → index-DwjxjLcD.d.mts} +3 -2
- package/dist/{index-x80UG39F.d.cts → index-HnvGdPCp.d.cts} +3 -2
- package/dist/{index-CxSNNzBT2.d.mts → index-ypEBcdCx.d.mts} +2 -2
- 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-BTGww2YK.d.cts +488 -0
- package/dist/themes-BTGww2YK.d.mts +488 -0
- package/dist/{useTableSort--XMWjujs.d.cts → useTablePagination-D6T-fQFc.d.mts} +25 -25
- package/dist/{useTableSort-CpDs4cGq.d.mts → useTablePagination-_94Wrvj9.d.cts} +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 +410 -23
- 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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { b as ThemeDefaults, m as Theme, y as ThemeComponents } from "./themes-BTGww2YK.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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { d as PaletteColor, m as Theme, r as CSSObject$1 } from "./themes-BTGww2YK.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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
2
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
3
4
|
//#region src/View/View.d.ts
|
|
4
5
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { I as TypographyVariant, m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { d as PaletteColor, m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
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 { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-D0x1ZMVG.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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
3
|
+
import { s as ViewProps } from "./index-CYNgNatZ.mjs";
|
|
3
4
|
//#region src/Flex/Flex.d.ts
|
|
4
5
|
/** Valid values for the gap prop — derived from theme.space keys. */
|
|
5
6
|
type GapToken = keyof Theme['space'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { I as TypographyVariant, m as Theme } from "./themes-BTGww2YK.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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { d as PaletteColor, m as Theme, r as CSSObject$1 } from "./themes-BTGww2YK.cjs";
|
|
2
|
+
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
|
+
import { PropsOf, css, keyframes } from "@emotion/react";
|
|
4
4
|
import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
|
|
5
5
|
import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region src/styled.d.ts
|
|
7
|
+
//#region src/style/styled.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Design-system additions to Emotion's styled options. A styled root that passes
|
|
10
10
|
* `name` becomes theme-customizable: `theme.components[name]` may contribute
|
|
@@ -29,8 +29,18 @@ interface ThemeCustomizationOptions {
|
|
|
29
29
|
*/
|
|
30
30
|
overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The `styled.div`, `styled.span`, … tag shorthands — mirrors Emotion's own
|
|
34
|
+
* `StyledTags`, retyped against this package's `Theme` instead of Emotion's
|
|
35
|
+
* (otherwise-empty) one, so `${({ theme }) => theme.space[2]}` template
|
|
36
|
+
* interpolations resolve to the real theme shape.
|
|
37
|
+
*/
|
|
38
|
+
type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
|
|
39
|
+
theme?: Theme;
|
|
40
|
+
as?: React.ElementType;
|
|
41
|
+
}, JSX.IntrinsicElements[Tag]>; };
|
|
32
42
|
/** Overloads mirroring Emotion's, with the theme-customization options added. */
|
|
33
|
-
interface CreateThemedStyled extends
|
|
43
|
+
interface CreateThemedStyled extends StyledTags {
|
|
34
44
|
<C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
|
|
35
45
|
theme?: Theme;
|
|
36
46
|
}, {}, {
|
|
@@ -57,8 +67,8 @@ interface CreateThemedStyled extends CreateStyled {
|
|
|
57
67
|
*/
|
|
58
68
|
declare const styled: CreateThemedStyled;
|
|
59
69
|
declare namespace index_d_exports {
|
|
60
|
-
export { CSSObject$1 as CSSObject,
|
|
70
|
+
export { CSSObject$1 as CSSObject, PaletteColor, Theme, ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
|
61
71
|
}
|
|
62
72
|
import * as import__soroush_tech_styled_system from "@soroush.tech/styled-system";
|
|
63
73
|
//#endregion
|
|
64
|
-
export {
|
|
74
|
+
export { props as a, keyframes as i, css as n, ThemeCustomizationOptions as o, index_d_exports as r, styled as s, createShouldForwardProp as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DN7IvJeV.cjs";
|
|
3
4
|
import { ButtonHTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
5
6
|
type TableSortLabelDirection = 'asc' | 'desc';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { d as PaletteColor, m as Theme, n as ButtonVariants } from "./themes-BTGww2YK.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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import "./index-B66h9kbP.mjs";
|
|
2
3
|
import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
|
|
3
4
|
//#region src/Modal/useModal.d.ts
|
|
4
5
|
type ModalCloseReason = 'escapeKey' | 'backdropClick';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BGWm4HKR.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,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-BnCp6k4s.cjs";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
6
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { b as ThemeDefaults, m as Theme, y as ThemeComponents } from "./themes-BTGww2YK.cjs";
|
|
2
|
+
import { ComponentType, ReactNode } from "react";
|
|
3
|
+
//#region src/theme/ThemeProvider.d.ts
|
|
4
|
+
interface ThemeProviderProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* The active theme. Bring one theme, or as many as you like — switching
|
|
8
|
+
* between them is your state, not the provider's. Defaults to the built-in
|
|
9
|
+
* `baseTheme`.
|
|
10
|
+
*/
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
/**
|
|
13
|
+
* Optional component default token/variant keys, merged into the theme
|
|
14
|
+
* (e.g. `{ size: 'compact' }` makes every sized component default to your key).
|
|
15
|
+
*/
|
|
16
|
+
defaults?: ThemeDefaults;
|
|
17
|
+
}
|
|
18
|
+
declare function ThemeProvider({ children, theme, defaults }: Readonly<ThemeProviderProps>): import("react").JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/theme/utils/themeDefault.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Resolves a component's default token/variant key: the theme's optional
|
|
23
|
+
* `defaults` override wins, otherwise the component's literal `fallback`.
|
|
24
|
+
* Components call this in their prop defaults (`size = themeDefault(theme,
|
|
25
|
+
* 'size', 'md')`) so every built-in default stays visible in the component
|
|
26
|
+
* yet overridable per theme or via `ThemeProvider`'s `defaults` prop.
|
|
27
|
+
*/
|
|
28
|
+
declare const themeDefault: <K extends keyof ThemeDefaults>(theme: Theme, key: K, fallback: NonNullable<ThemeDefaults[K]>) => NonNullable<ThemeDefaults[K]>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/theme/hooks/useTheme.d.ts
|
|
31
|
+
/**
|
|
32
|
+
* The active theme, typed as this package's own `Theme` — Emotion is an
|
|
33
|
+
* internal implementation detail, never part of the public type surface.
|
|
34
|
+
*/
|
|
35
|
+
declare const useTheme: () => Theme;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/theme/hooks/useDefaultProps.d.ts
|
|
38
|
+
type DefaultPropsOf<N extends keyof ThemeComponents> = NonNullable<NonNullable<ThemeComponents[N]>['defaultProps']>;
|
|
39
|
+
/**
|
|
40
|
+
* The theme-contributed default prop values for a component
|
|
41
|
+
* (`theme.components[name].defaultProps`), or an empty object.
|
|
42
|
+
*
|
|
43
|
+
* Components apply it as one step of the default-resolution chain:
|
|
44
|
+
* explicit prop → group context → `useDefaultProps` → `theme.defaults.*` → literal fallback.
|
|
45
|
+
*/
|
|
46
|
+
declare function useDefaultProps<N extends keyof ThemeComponents>(name: N): DefaultPropsOf<N>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/theme/hoc/withTheme.d.ts
|
|
49
|
+
declare function withTheme<P extends object>(WrappedComponent: ComponentType<P & {
|
|
50
|
+
theme: Theme;
|
|
51
|
+
}>): (props: P) => import("react").JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { ThemeProvider as a, themeDefault as i, useDefaultProps as n, useTheme as r, withTheme as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, m as Theme, n as ButtonVariants } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.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,4 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-BGWm4HKR.cjs";
|
|
2
|
+
import "./index-C-UBdWKI.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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
2
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
3
4
|
//#region src/View/View.d.ts
|
|
4
5
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
2
|
+
import { n as TextColorToken } from "./index-BF2KXGBM.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. */
|
|
@@ -30,6 +30,7 @@ declare const icons: {
|
|
|
30
30
|
readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
31
31
|
readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
32
32
|
readonly format_quote: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
33
|
+
readonly fullscreen: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
33
34
|
readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
34
35
|
readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
35
36
|
readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -42,6 +43,7 @@ declare const icons: {
|
|
|
42
43
|
readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
43
44
|
readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
44
45
|
readonly rebase_edit: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
|
+
readonly refresh: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
45
47
|
readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
48
|
readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
47
49
|
readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -54,6 +56,8 @@ declare const icons: {
|
|
|
54
56
|
readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
55
57
|
readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
56
58
|
readonly web_asset: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
59
|
+
readonly zoom_in: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
60
|
+
readonly zoom_out: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
57
61
|
};
|
|
58
62
|
/** Valid values for the Icon `name` prop — derived from the registry keys. */
|
|
59
63
|
type IconName = keyof typeof icons;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-DOhYeOFx.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 { a as PaginationItemSize } from "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-ypEBcdCx.mjs";
|
|
2
|
+
import "./index-DitJ7ss0.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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-adilRIJZ.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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import "./index-B66h9kbP.mjs";
|
|
3
|
+
import { n as FlexProps } from "./index-BJcHQUga.mjs";
|
|
3
4
|
import { CSSProperties, ElementType } from "react";
|
|
4
5
|
//#region src/Paper/Paper.d.ts
|
|
5
6
|
type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { n as TextColorToken } from "./index-BLnOsdgc.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. */
|
|
@@ -30,6 +30,7 @@ declare const icons: {
|
|
|
30
30
|
readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
31
31
|
readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
32
32
|
readonly format_quote: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
33
|
+
readonly fullscreen: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
33
34
|
readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
34
35
|
readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
35
36
|
readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -42,6 +43,7 @@ declare const icons: {
|
|
|
42
43
|
readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
43
44
|
readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
44
45
|
readonly rebase_edit: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
|
+
readonly refresh: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
45
47
|
readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
48
|
readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
47
49
|
readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -54,6 +56,8 @@ declare const icons: {
|
|
|
54
56
|
readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
55
57
|
readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
56
58
|
readonly web_asset: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
59
|
+
readonly zoom_in: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
60
|
+
readonly zoom_out: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
57
61
|
};
|
|
58
62
|
/** Valid values for the Icon `name` prop — derived from the registry keys. */
|
|
59
63
|
type IconName = keyof typeof icons;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.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';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { s as ViewProps } from "./index-B8FOqBiS.cjs";
|
|
3
4
|
//#region src/Flex/Flex.d.ts
|
|
4
5
|
/** Valid values for the gap prop — derived from theme.space keys. */
|
|
5
6
|
type GapToken = keyof Theme['space'];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-ypEBcdCx.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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.mjs";
|
|
3
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-CLCtvcKA.mjs";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
6
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { m as Theme } from "./themes-BTGww2YK.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-DhcmRr8Q.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, m as Theme } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-B66h9kbP.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';
|
package/dist/index.cjs
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
let _emotion_react = require("@emotion/react");
|
|
2
|
+
const require_src = require("./src-C8PIppTy.cjs");
|
|
4
3
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
5
|
-
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _emotion_react.CacheProvider;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "EmotionThemeContext", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function() {
|
|
14
|
-
return _emotion_react.ThemeContext;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "EmotionThemeProvider", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return _emotion_react.ThemeProvider;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "Global", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function() {
|
|
26
|
-
return _emotion_react.Global;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
4
|
+
let _emotion_react = require("@emotion/react");
|
|
29
5
|
Object.defineProperty(exports, "createShouldForwardProp", {
|
|
30
6
|
enumerable: true,
|
|
31
7
|
get: function() {
|
|
@@ -51,12 +27,6 @@ Object.defineProperty(exports, "props", {
|
|
|
51
27
|
}
|
|
52
28
|
});
|
|
53
29
|
exports.styled = require_src.styled;
|
|
54
|
-
Object.defineProperty(exports, "useTheme", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function() {
|
|
57
|
-
return _emotion_react.useTheme;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
30
|
var _soroush_tech_styled_system = require("@soroush.tech/styled-system");
|
|
61
31
|
Object.keys(_soroush_tech_styled_system).forEach(function(k) {
|
|
62
32
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-BVX_Jq2G.cjs";
|
|
2
|
+
import { d as PaletteColor, m as Theme, r as CSSObject } from "./themes-BTGww2YK.cjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
|
-
export { type CSSObject,
|
|
4
|
+
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, m as Theme, r as CSSObject } from "./themes-BTGww2YK.mjs";
|
|
2
|
+
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-B66h9kbP.mjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
|
-
export { type CSSObject,
|
|
4
|
+
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-BJy4dM4f.mjs";
|
|
2
2
|
export * from "@soroush.tech/styled-system";
|
|
3
|
-
export {
|
|
3
|
+
export { createShouldForwardProp, css, keyframes, props, styled };
|