@soroush.tech/design-system 0.1.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -36
- package/dist/AppBar.cjs +2 -2
- package/dist/AppBar.d.cts +3 -2
- package/dist/AppBar.d.mts +3 -2
- package/dist/AppBar.mjs +2 -2
- package/dist/Avatar.cjs +4 -4
- package/dist/Avatar.d.cts +3 -2
- package/dist/Avatar.d.mts +3 -2
- package/dist/Avatar.mjs +3 -2
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Backdrop.mjs +1 -1
- package/dist/Button.cjs +5 -12
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +3 -9
- package/dist/ButtonGroup.cjs +2 -2
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +2 -2
- package/dist/Card.cjs +6 -7
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.cjs +2 -2
- package/dist/Checkbox.d.cts +42 -1
- package/dist/Checkbox.d.mts +42 -1
- package/dist/Checkbox.mjs +2 -2
- package/dist/CircularProgress.cjs +2 -2
- package/dist/CircularProgress.d.cts +3 -2
- package/dist/CircularProgress.d.mts +3 -2
- package/dist/CircularProgress.mjs +2 -2
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Drawer.mjs +2 -2
- package/dist/Flex.cjs +3 -7
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +3 -9
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +2 -3
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/Form.mjs +2 -3
- package/dist/{FormContext-CRmRgDgu.cjs → FormContext-BGCsWAFc.cjs} +0 -1
- package/dist/{FormContext-_G3sxJyQ.mjs → FormContext-LrjAGe6U.mjs} +0 -1
- package/dist/FormControl.cjs +6 -6
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +5 -5
- package/dist/{FormControlContext-aeKTjRKY.cjs → FormControlContext-74gvPGFk.cjs} +0 -1
- package/dist/{FormControlContext-CyxdOxdN.mjs → FormControlContext-CC2kToms.mjs} +0 -1
- package/dist/FormHelperText.cjs +3 -3
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormHelperText.mjs +3 -3
- package/dist/FormLabel.cjs +3 -3
- package/dist/FormLabel.d.cts +17 -1
- package/dist/FormLabel.d.mts +17 -1
- package/dist/FormLabel.mjs +3 -3
- package/dist/Grid.cjs +3 -26
- package/dist/Grid.d.cts +4 -10
- package/dist/Grid.d.mts +4 -10
- package/dist/Grid.mjs +3 -25
- package/dist/{Icon-1YtNCUKo.cjs → Icon-BOjk5r39.cjs} +75 -5
- package/dist/{Icon-CAKRmFz3.mjs → Icon-CYjD0Bad.mjs} +74 -3
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +1 -1
- package/dist/Image.d.cts +16 -1
- package/dist/Image.d.mts +16 -1
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +2 -2
- package/dist/LinearProgress.d.cts +3 -2
- package/dist/LinearProgress.d.mts +3 -2
- package/dist/LinearProgress.mjs +2 -2
- package/dist/Link.cjs +5 -9
- package/dist/Link.d.cts +9 -1
- package/dist/Link.d.mts +9 -1
- package/dist/Link.mjs +4 -7
- package/dist/MenuItem.cjs +6 -7
- package/dist/MenuItem.d.cts +2 -1
- package/dist/MenuItem.d.mts +2 -1
- package/dist/MenuItem.mjs +4 -3
- package/dist/{Modal-BDMPTSXv.cjs → Modal-DZH-DzMZ.cjs} +2 -2
- package/dist/{Modal-DR60peRg.mjs → Modal-dy5l7gfH.mjs} +2 -2
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +5 -5
- package/dist/NativeSelect.d.cts +3 -2
- package/dist/NativeSelect.d.mts +3 -2
- package/dist/NativeSelect.mjs +4 -3
- package/dist/Pagination/PaginationItem.cjs +3 -3
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +3 -3
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.d.cts +2 -22
- package/dist/Pagination.d.mts +2 -22
- package/dist/Pagination.mjs +1 -1
- package/dist/Paper.cjs +5 -8
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +3 -4
- package/dist/{Popover-B61J7C79.mjs → Popover-Chgtjn-N.mjs} +3 -2
- package/dist/{Popover-CRDLmywF.cjs → Popover-pEVboMZO.cjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +4 -3
- package/dist/Popover.d.mts +4 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +123 -0
- package/dist/Pressable.d.cts +2 -0
- package/dist/Pressable.d.mts +2 -0
- package/dist/Pressable.mjs +121 -0
- package/dist/Quote.cjs +1 -1
- package/dist/Quote.d.cts +13 -1
- package/dist/Quote.d.mts +13 -1
- package/dist/Quote.mjs +1 -1
- package/dist/Radio.cjs +2 -2
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Radio.mjs +2 -2
- package/dist/Select.cjs +10 -32
- package/dist/Select.d.cts +3 -2
- package/dist/Select.d.mts +3 -2
- package/dist/Select.mjs +9 -30
- package/dist/Sidebar/Sidebar.cjs +94 -0
- package/dist/Sidebar/Sidebar.d.cts +59 -0
- package/dist/Sidebar/Sidebar.d.mts +59 -0
- package/dist/Sidebar/Sidebar.mjs +93 -0
- package/dist/Sidebar/SidebarItem.cjs +125 -0
- package/dist/Sidebar/SidebarItem.d.cts +39 -0
- package/dist/Sidebar/SidebarItem.d.mts +39 -0
- package/dist/Sidebar/SidebarItem.mjs +124 -0
- package/dist/Sidebar.cjs +7 -0
- package/dist/Sidebar.d.cts +4 -0
- package/dist/Sidebar.d.mts +4 -0
- package/dist/Sidebar.mjs +4 -0
- package/dist/SidebarContext-DgSLwjur.mjs +10 -0
- package/dist/SidebarContext-ao6lRfTX.d.cts +37 -0
- package/dist/SidebarContext-ao6lRfTX.d.mts +37 -0
- package/dist/SidebarContext-jG6OioC-.cjs +14 -0
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +2 -1
- package/dist/Skeleton.d.mts +2 -1
- package/dist/Skeleton.mjs +1 -1
- package/dist/Switch.cjs +4 -4
- package/dist/Switch.d.cts +2 -1
- package/dist/Switch.d.mts +2 -1
- package/dist/Switch.mjs +3 -2
- package/dist/Table/Table.cjs +2 -2
- package/dist/Table/Table.d.cts +47 -1
- package/dist/Table/Table.d.mts +47 -1
- package/dist/Table/Table.mjs +2 -2
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +21 -1
- package/dist/Table/TableBody.d.mts +21 -1
- package/dist/Table/TableBody.mjs +1 -1
- package/dist/Table/TableCell.cjs +3 -3
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +3 -3
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableContainer.d.cts +17 -1
- package/dist/Table/TableContainer.d.mts +17 -1
- package/dist/Table/TableContainer.mjs +1 -1
- package/dist/Table/TableControl.d.cts +27 -1
- package/dist/Table/TableControl.d.mts +27 -1
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +21 -1
- package/dist/Table/TableFooter.d.mts +21 -1
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +21 -1
- package/dist/Table/TableHead.d.mts +21 -1
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +1 -1
- package/dist/Table/TablePagination.d.cts +44 -1
- package/dist/Table/TablePagination.d.mts +44 -1
- package/dist/Table/TablePagination.mjs +1 -1
- package/dist/Table/TablePaginationActions.cjs +4 -4
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +3 -2
- package/dist/Table/TableRow.cjs +3 -3
- package/dist/Table/TableRow.d.cts +29 -1
- package/dist/Table/TableRow.d.mts +29 -1
- package/dist/Table/TableRow.mjs +3 -3
- package/dist/Table/TableSortLabel.cjs +3 -3
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +3 -3
- package/dist/Table/hooks.d.cts +39 -2
- package/dist/Table/hooks.d.mts +39 -2
- package/dist/Table.cjs +1 -1
- package/dist/Table.d.cts +14 -15
- package/dist/Table.d.mts +14 -15
- package/dist/Table.mjs +1 -1
- package/dist/{TableContext-qqp35o8z.cjs → TableContext-Bfg1C3Sr.cjs} +0 -1
- package/dist/{TableContext-2qH7XYJB.d.cts → TableContext-BoOxdk8p.d.cts} +1 -1
- package/dist/{TableContext-2qH7XYJB.d.mts → TableContext-DV31j6HO.d.mts} +1 -1
- package/dist/{TableContext-BRWPghAI.mjs → TableContext-Dyr89h_k.mjs} +0 -1
- package/dist/TextInput.cjs +228 -2
- package/dist/TextInput.d.cts +79 -1
- package/dist/TextInput.d.mts +79 -1
- package/dist/TextInput.mjs +226 -1
- package/dist/ToggleButton/ToggleButton.cjs +4 -4
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +3 -2
- package/dist/ToggleButton/ToggleButtonGroup.cjs +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -2
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/Typography.cjs +3 -3
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -1
- package/dist/View.cjs +1 -3
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -3
- package/dist/emotion-BAyqVw0c.mjs +6 -0
- package/dist/emotion-DviPkkGL.cjs +10 -0
- package/dist/engine.cjs +80 -0
- package/dist/engine.d.cts +21 -0
- package/dist/engine.d.mts +21 -0
- package/dist/engine.mjs +69 -0
- package/dist/{index-BqVgv2B_.d.mts → index--mvTGo8F.d.cts} +3 -2
- package/dist/{index-DSCMXFTn.d.cts → index-ATXjtAOY.d.mts} +2 -1
- package/dist/{index-CDVnvjIE.d.cts → index-B2hrssyF.d.mts} +2 -2
- package/dist/index-B3FrhO2r.d.cts +24 -0
- package/dist/{index-BnzUumAC2.d.mts → index-B7aaTHOe.d.cts} +2 -1
- package/dist/{index-DmJIuQJj.d.mts → index-BItZoGZ1.d.mts} +3 -2
- package/dist/{index-DASvoACZ.d.cts → index-BJ8OC_Zh.d.cts} +2 -2
- package/dist/{index-BLfFycfJ.d.mts → index-BL3jwIQU.d.mts} +9 -2
- package/dist/{index-4rC2j7fR.d.cts → index-BNP_iejT.d.cts} +3 -2
- package/dist/{index-Dy03o__A.d.mts → index-BfpjEqqt.d.cts} +2 -1
- package/dist/index-BoOs5h_b.d.mts +53 -0
- package/dist/{index-CeYkEXU2.d.cts → index-BwUnDd9W.d.mts} +2 -2
- package/dist/{index-BH8jQOdF.d.mts → index-C7j38wne.d.mts} +3 -2
- package/dist/{index-Dp81rWM1.d.cts → index-CA_X-mXg.d.cts} +9 -2
- package/dist/index-CO3Qq0I0.d.mts +49 -0
- package/dist/{index-BLRMuO_x.d.mts → index-CYTaYcm3.d.cts} +3 -4
- package/dist/index-Ca0Pj5m2.d.mts +24 -0
- package/dist/{index-DE5PtzPn.d.mts → index-CvaEVk-f.d.cts} +2 -2
- package/dist/{index-C0xMvDjL.d.mts → index-D8U2tk1L.d.mts} +2 -2
- package/dist/{index-Dm9HfgV6.d.mts → index-D8b5OCLe.d.mts} +17 -7
- package/dist/{index-B1rCD6Oo.d.cts → index-DEv2QslH.d.mts} +4 -6
- package/dist/{index-CyZYXDn0.d.cts → index-DF3Hweir.d.mts} +3 -2
- package/dist/{index-Bihpwn75.d.cts → index-DLJ-li1B.d.cts} +17 -7
- package/dist/{index-FwTocqhP.d.cts → index-DjtGkwRM.d.cts} +2 -3
- package/dist/{index-BX5-NfbX.d.cts → index-Ds__py2h.d.mts} +2 -1
- package/dist/{index-x80UG39F.d.cts → index-KZUd8B5E.d.mts} +3 -4
- package/dist/index-MsUtFRul.d.cts +53 -0
- package/dist/index-dtLxevvf.d.cts +49 -0
- package/dist/{index-pX7tBQdJ.d.mts → index-q6EgsH9R.d.mts} +2 -3
- package/dist/{index-8dzWTpFp.d.cts → index-v99yMdts.d.cts} +3 -2
- package/dist/{index-CxSNNzBT2.d.mts → index-yr4HkKOj.d.cts} +2 -2
- package/dist/{index-z35LEYG8.d.mts → index-zFYi0f1t.d.cts} +4 -6
- package/dist/index.cjs +2 -32
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{src-DcNT2aIK.mjs → src-BJy4dM4f.mjs} +5 -10
- package/dist/{src-BiocWFSR.cjs → src-C8PIppTy.cjs} +2 -7
- package/dist/{hooks.cjs → style.cjs} +5 -23
- package/dist/style.d.cts +23 -0
- package/dist/style.d.mts +23 -0
- package/dist/{hooks.mjs → style.mjs} +6 -16
- package/dist/theme-Du6xgPsg.cjs +470 -0
- package/dist/{themes.mjs → theme-V6lYzd3j.mjs} +68 -14
- package/dist/theme.cjs +23 -0
- package/dist/theme.d.cts +3 -0
- package/dist/theme.d.mts +3 -0
- package/dist/theme.mjs +3 -0
- package/dist/{themeDefault-B-QjpGEO.cjs → themeDefault-Cebi08Cv.cjs} +1 -1
- package/dist/{themeDefault-CjXaY3ok.mjs → themeDefault-Z3KmyIbm.mjs} +1 -1
- package/dist/themes-CUV79qWU.d.cts +503 -0
- package/dist/themes-CUV79qWU.d.mts +503 -0
- package/dist/{useTableSort--XMWjujs.d.cts → useTablePagination-7jiSvKCh.d.cts} +25 -25
- package/dist/{useTableSort-CpDs4cGq.d.mts → useTablePagination-HaIcJPv-.d.mts} +25 -25
- package/dist/utils.cjs +0 -29
- package/dist/utils.d.cts +1 -19
- package/dist/utils.d.mts +1 -19
- package/dist/utils.mjs +1 -27
- package/package.json +431 -24
- package/dist/CodeBlock.cjs +0 -101
- package/dist/CodeBlock.d.cts +0 -2
- package/dist/CodeBlock.d.mts +0 -2
- package/dist/CodeBlock.mjs +0 -100
- package/dist/Field.cjs +0 -59
- package/dist/Field.d.cts +0 -36
- package/dist/Field.d.mts +0 -36
- package/dist/Field.mjs +0 -58
- package/dist/Markdown/Control.cjs +0 -61
- package/dist/Markdown/Control.d.cts +0 -18
- package/dist/Markdown/Control.d.mts +0 -18
- package/dist/Markdown/Control.mjs +0 -60
- package/dist/Markdown/Editor.cjs +0 -130
- package/dist/Markdown/Editor.d.cts +0 -40
- package/dist/Markdown/Editor.d.mts +0 -40
- package/dist/Markdown/Editor.mjs +0 -128
- package/dist/Markdown/Preview.cjs +0 -241
- package/dist/Markdown/Preview.d.cts +0 -55
- package/dist/Markdown/Preview.d.mts +0 -55
- package/dist/Markdown/Preview.mjs +0 -236
- package/dist/Markdown/Toolbar.cjs +0 -4
- package/dist/Markdown/Toolbar.d.cts +0 -13
- package/dist/Markdown/Toolbar.d.mts +0 -13
- package/dist/Markdown/Toolbar.mjs +0 -2
- package/dist/Markdown.cjs +0 -13
- package/dist/Markdown.d.cts +0 -80
- package/dist/Markdown.d.mts +0 -80
- package/dist/Markdown.mjs +0 -6
- package/dist/MarkdownContext-BN8A3W-J.mjs +0 -11
- package/dist/MarkdownContext-DSwjzpH8.cjs +0 -22
- package/dist/TextInput-6o37Zddp.cjs +0 -231
- package/dist/TextInput-D_lHYJlL.mjs +0 -224
- package/dist/ThemeProvider.cjs +0 -15
- package/dist/ThemeProvider.d.cts +0 -20
- package/dist/ThemeProvider.d.mts +0 -20
- package/dist/ThemeProvider.mjs +0 -14
- package/dist/Toolbar-B-W22Sk4.cjs +0 -459
- package/dist/Toolbar-KbR97iJS.mjs +0 -448
- package/dist/applyAction-B2B-hnP3.mjs +0 -98
- package/dist/applyAction-B2uVHxOE.cjs +0 -103
- package/dist/createTheme-Dts2F4R_.d.cts +0 -21
- package/dist/createTheme-Dts2F4R_.d.mts +0 -21
- package/dist/hooks/useCopyToClipboard.cjs +0 -33
- package/dist/hooks/useCopyToClipboard.d.cts +0 -16
- package/dist/hooks/useCopyToClipboard.d.mts +0 -16
- package/dist/hooks/useCopyToClipboard.mjs +0 -31
- package/dist/hooks.d.cts +0 -40
- package/dist/hooks.d.mts +0 -40
- package/dist/index-BPrjvi7B.d.cts +0 -13
- package/dist/index-BlfIbAMs.d.cts +0 -45
- package/dist/index-BoqlPb3Z.d.mts +0 -13
- package/dist/index-Bwi4kRpf.d.mts +0 -79
- package/dist/index-Bx24ZnOV.d.mts +0 -43
- package/dist/index-C-P_hipv.d.mts +0 -21
- package/dist/index-C5_ciaeo.d.cts +0 -79
- package/dist/index-CDcGTGR4.d.cts +0 -21
- package/dist/index-CEOZI-6L.d.mts +0 -48
- package/dist/index-CLU39rUS2.d.mts +0 -30
- package/dist/index-CM_KCTee.d.cts +0 -48
- package/dist/index-CT9uGKrs.d.cts +0 -30
- package/dist/index-CcYSvIJi.d.cts +0 -21
- package/dist/index-CdF_4ckE.d.mts +0 -11
- package/dist/index-Cl_yBpzW2.d.mts +0 -13
- package/dist/index-Cv_UOfYx.d.mts +0 -18
- package/dist/index-DBGE6yKw.d.mts +0 -16
- package/dist/index-DCQ2fsDu.d.mts +0 -40
- package/dist/index-DD2AVtiR.d.cts +0 -16
- package/dist/index-DOPXpr2J.d.cts +0 -43
- package/dist/index-DTkQSXQD.d.cts +0 -11
- package/dist/index-DeJWkpf9.d.cts +0 -16
- package/dist/index-DeiZHSwA.d.cts +0 -12
- package/dist/index-Des8BisQ.d.mts +0 -12
- package/dist/index-Dg8-CPOO.d.cts +0 -18
- package/dist/index-DgRS5Aqv.d.mts +0 -16
- package/dist/index-Dtzj8X58.d.cts +0 -40
- package/dist/index-DvW2eETV.d.mts +0 -21
- package/dist/index-GVsFY00r.d.cts +0 -21
- package/dist/index-Nqco3fsM.d.cts +0 -13
- package/dist/index-g-9DZ_KQ.d.cts +0 -28
- package/dist/index-g9EThkSg.d.mts +0 -21
- package/dist/index-kpk9e3xM2.d.mts +0 -45
- package/dist/index-u57CbuAU2.d.mts +0 -28
- package/dist/themes-D1SAp3SL.d.mts +0 -500
- package/dist/themes-D81JYbqm.d.cts +0 -500
- package/dist/themes.cjs +0 -318
- package/dist/themes.d.cts +0 -3
- package/dist/themes.d.mts +0 -3
- package/dist/useDefaultProps-Cb-5FNok.cjs +0 -19
- package/dist/useDefaultProps-CoApb4KT.mjs +0 -14
- package/dist/utils/styleCache.cjs +0 -7
- package/dist/utils/styleCache.d.cts +0 -3
- package/dist/utils/styleCache.d.mts +0 -4
- package/dist/utils/styleCache.mjs +0 -5
package/dist/Table/Table.d.mts
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
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 { t as TableCellPadding } from "../TableContext-DV31j6HO.mjs";
|
|
4
|
+
import { ElementType, TableHTMLAttributes } from "react";
|
|
5
|
+
//#region src/Table/Table/Table.d.ts
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type TableBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the size prop — derived from theme.sizes keys. */
|
|
9
|
+
type TableSize = keyof Theme['sizes'];
|
|
10
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
11
|
+
type TableBorderColorToken = keyof Theme['border'];
|
|
12
|
+
interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color' | 'cellPadding' | 'align' | 'width' | 'border'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor'> {
|
|
13
|
+
/**
|
|
14
|
+
* Palette color for descendant rows' hover/selected shading — broadcast to
|
|
15
|
+
* `TableRow`s via `TableContext`; a row's own `color` wins.
|
|
16
|
+
*/
|
|
17
|
+
color?: PaletteColor;
|
|
18
|
+
/** Resolves against theme.background */
|
|
19
|
+
bg?: TableBackgroundToken;
|
|
20
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
21
|
+
borderColor?: TableBorderColorToken;
|
|
22
|
+
/** Cell density — broadcast to descendant `TableCell`s via `TableContext`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
23
|
+
size?: TableSize;
|
|
24
|
+
/** Cell padding mode — broadcast to descendant `TableCell`s. `'none'` zeroes cell padding. Default: `'normal'`. */
|
|
25
|
+
cellPadding?: TableCellPadding;
|
|
26
|
+
/** Makes header cells stick to the top of a scrolling `TableContainer`. Default: `false`. */
|
|
27
|
+
hasStickyHeader?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Hides inactive sort icons (revealed on hover/focus) — broadcast to
|
|
30
|
+
* descendant `TableSortLabel`s via `TableContext`. Set `false` to keep them
|
|
31
|
+
* always visible (dimmed). Default: `true`.
|
|
32
|
+
*/
|
|
33
|
+
shouldHideSortIcon?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Truncates overflowing cell text with an ellipsis — broadcast to descendant
|
|
36
|
+
* `TableCell`s via `TableContext`. Cells need a constrained width (e.g.
|
|
37
|
+
* `maxWidth`) for the truncation to kick in. Default: `false`.
|
|
38
|
+
*/
|
|
39
|
+
hasEllipsis?: boolean;
|
|
40
|
+
/** Default text alignment for every cell — cells with `align="inherit"` (the default) follow it. */
|
|
41
|
+
align?: TableAlign;
|
|
42
|
+
as?: ElementType;
|
|
43
|
+
}
|
|
44
|
+
/** Table-wide text alignment — inherited by head, body, and footer cells alike. */
|
|
45
|
+
type TableAlign = 'left' | 'right' | 'center' | 'justify';
|
|
46
|
+
declare function Table({ size, cellPadding, hasStickyHeader, shouldHideSortIcon, hasEllipsis, color, align, as, children, ...rest }: Readonly<TableProps>): import("react").JSX.Element;
|
|
47
|
+
//#endregion
|
|
2
48
|
export { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize };
|
package/dist/Table/Table.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as TableContext } from "../TableContext-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/Table/Table/Table.tsx
|
package/dist/Table/TableBody.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_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
|
|
4
4
|
require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableBody/TableBody.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableBodyColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableBodyBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableBodyBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableBodyColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableBodyBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableBodyBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableBody({ as, children, ...rest }: Readonly<TableBodyProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps };
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "../index-D8b5OCLe.mjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableBody/TableBody.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableBodyColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableBodyBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableBodyBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableBodyColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableBodyBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableBodyBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableBody({ as, children, ...rest }: Readonly<TableBodyProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps };
|
package/dist/Table/TableBody.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
package/dist/Table/TableCell.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-
|
|
4
|
-
const require_TableContext = require("../TableContext-
|
|
2
|
+
const require_src = require("../src-C8PIppTy.cjs");
|
|
3
|
+
const require_themeDefault = require("../themeDefault-Cebi08Cv.cjs");
|
|
4
|
+
const require_TableContext = require("../TableContext-Bfg1C3Sr.cjs");
|
|
5
5
|
const require_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-
|
|
1
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-BNP_iejT.cjs";
|
|
2
2
|
export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-
|
|
1
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-C7j38wne.mjs";
|
|
2
2
|
export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
|
package/dist/Table/TableCell.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as themeDefault } from "../themeDefault-
|
|
3
|
-
import { t as TableContext } from "../TableContext-
|
|
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
|
+
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
4
4
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
5
5
|
import { useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -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
|
//#region src/Table/TableContainer/TableContainer.tsx
|
|
5
5
|
/**
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
3
|
+
import { s as ViewProps } from "../index-DjtGkwRM.cjs";
|
|
4
|
+
//#region src/Table/TableContainer/TableContainer.d.ts
|
|
5
|
+
type TableContainerProps = ViewProps;
|
|
6
|
+
/**
|
|
7
|
+
* Scroll wrapper for `Table` — wide tables scroll horizontally inside it
|
|
8
|
+
* instead of breaking the page layout. Give it a bounded height to make
|
|
9
|
+
* `Table`'s `hasStickyHeader` stick.
|
|
10
|
+
*/
|
|
11
|
+
declare const TableContainer: import("@emotion/styled").StyledComponent<Pick<{
|
|
12
|
+
theme?: Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, "p" | "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "aspectRatio" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "columnGap" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textAlignLast" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "gap" | "margin" | "overflow" | "padding" | "textDecoration" | "borderX" | "borderY" | "theme" | "as" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size"> & {
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
} & ViewProps, {}, {}>;
|
|
17
|
+
//#endregion
|
|
2
18
|
export { TableContainer, TableContainerProps };
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
+
import "../index-D8b5OCLe.mjs";
|
|
3
|
+
import { s as ViewProps } from "../index-q6EgsH9R.mjs";
|
|
4
|
+
//#region src/Table/TableContainer/TableContainer.d.ts
|
|
5
|
+
type TableContainerProps = ViewProps;
|
|
6
|
+
/**
|
|
7
|
+
* Scroll wrapper for `Table` — wide tables scroll horizontally inside it
|
|
8
|
+
* instead of breaking the page layout. Give it a bounded height to make
|
|
9
|
+
* `Table`'s `hasStickyHeader` stick.
|
|
10
|
+
*/
|
|
11
|
+
declare const TableContainer: import("@emotion/styled").StyledComponent<Pick<{
|
|
12
|
+
theme?: Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, "p" | "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "aspectRatio" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "columnGap" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textAlignLast" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "gap" | "margin" | "overflow" | "padding" | "textDecoration" | "borderX" | "borderY" | "theme" | "as" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size"> & {
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
} & ViewProps, {}, {}>;
|
|
17
|
+
//#endregion
|
|
2
18
|
export { TableContainer, TableContainerProps };
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-7jiSvKCh.cjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/Table/TableControl/TableControl.d.ts
|
|
4
|
+
interface TableControlProps<T, K extends string = string> {
|
|
5
|
+
/** The full dataset — `TableControl` derives the visible rows from it. */
|
|
6
|
+
data: readonly T[];
|
|
7
|
+
/** Sort map from `useTableSort` — the active entry drives the ordering. */
|
|
8
|
+
sort?: TableSortMap<K>;
|
|
9
|
+
/** Paging state from `useTablePagination` — drives the visible slice. */
|
|
10
|
+
pagination?: Pick<TablePaginationState, 'page' | 'rowsPerPage'>;
|
|
11
|
+
/**
|
|
12
|
+
* Custom sort — overrides the default string/number comparison. Receives the
|
|
13
|
+
* active column key, so different columns can use different logic:
|
|
14
|
+
* `(a, b, orderBy) => orderBy === 'name' ? a.name.localeCompare(b.name) : a[orderBy] - b[orderBy]`
|
|
15
|
+
*/
|
|
16
|
+
sortFunction?: (a: T, b: T, orderBy: K) => number;
|
|
17
|
+
/** Row renderer — invoked for each visible row. */
|
|
18
|
+
children: (row: T, index: number) => ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Renders the visible rows of a dataset inside `TableBody` — sorted by the
|
|
22
|
+
* active `useTableSort` column and sliced by the `useTablePagination` state.
|
|
23
|
+
* Emits the rows directly (no wrapper element), so its output are valid
|
|
24
|
+
* `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
|
|
25
|
+
*/
|
|
26
|
+
declare function TableControl<T, K extends string = string>({ data, sort, pagination, sortFunction, children }: Readonly<TableControlProps<T, K>>): import("react").JSX.Element;
|
|
27
|
+
//#endregion
|
|
2
28
|
export { TableControl, TableControlProps };
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-HaIcJPv-.mjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/Table/TableControl/TableControl.d.ts
|
|
4
|
+
interface TableControlProps<T, K extends string = string> {
|
|
5
|
+
/** The full dataset — `TableControl` derives the visible rows from it. */
|
|
6
|
+
data: readonly T[];
|
|
7
|
+
/** Sort map from `useTableSort` — the active entry drives the ordering. */
|
|
8
|
+
sort?: TableSortMap<K>;
|
|
9
|
+
/** Paging state from `useTablePagination` — drives the visible slice. */
|
|
10
|
+
pagination?: Pick<TablePaginationState, 'page' | 'rowsPerPage'>;
|
|
11
|
+
/**
|
|
12
|
+
* Custom sort — overrides the default string/number comparison. Receives the
|
|
13
|
+
* active column key, so different columns can use different logic:
|
|
14
|
+
* `(a, b, orderBy) => orderBy === 'name' ? a.name.localeCompare(b.name) : a[orderBy] - b[orderBy]`
|
|
15
|
+
*/
|
|
16
|
+
sortFunction?: (a: T, b: T, orderBy: K) => number;
|
|
17
|
+
/** Row renderer — invoked for each visible row. */
|
|
18
|
+
children: (row: T, index: number) => ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Renders the visible rows of a dataset inside `TableBody` — sorted by the
|
|
22
|
+
* active `useTableSort` column and sliced by the `useTablePagination` state.
|
|
23
|
+
* Emits the rows directly (no wrapper element), so its output are valid
|
|
24
|
+
* `<tr>` children of `<tbody>`. Both `sort` and `pagination` are optional.
|
|
25
|
+
*/
|
|
26
|
+
declare function TableControl<T, K extends string = string>({ data, sort, pagination, sortFunction, children }: Readonly<TableControlProps<T, K>>): import("react").JSX.Element;
|
|
27
|
+
//#endregion
|
|
2
28
|
export { TableControl, TableControlProps };
|
|
@@ -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_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
|
|
4
4
|
require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableFooter/TableFooter.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableFooterColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableFooterBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableFooterBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableFooterColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableFooterBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableFooterBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableFooter({ as, children, ...rest }: Readonly<TableFooterProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps };
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "../index-D8b5OCLe.mjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableFooter/TableFooter.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableFooterColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableFooterBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableFooterBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableFooterColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableFooterBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableFooterBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableFooter({ as, children, ...rest }: Readonly<TableFooterProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
package/dist/Table/TableHead.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_TableSectionContext = require("../TableSectionContext-pYlJ-duI.cjs");
|
|
4
4
|
require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableHead/TableHead.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableHeadColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableHeadBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableHeadBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableHeadColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableHeadBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableHeadBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableHead({ as, children, ...rest }: Readonly<TableHeadProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps };
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "../index-D8b5OCLe.mjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableHead/TableHead.d.ts
|
|
5
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
|
+
type TableHeadColorToken = keyof Theme['text'];
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableHeadBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableHeadBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/** Resolves against theme.text */
|
|
13
|
+
color?: TableHeadColorToken;
|
|
14
|
+
/** Resolves against theme.background */
|
|
15
|
+
bg?: TableHeadBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: TableHeadBorderColorToken;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
}
|
|
20
|
+
declare function TableHead({ as, children, ...rest }: Readonly<TableHeadProps>): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
2
22
|
export { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps };
|
package/dist/Table/TableHead.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BJy4dM4f.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -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_Typography = require("../Typography.cjs");
|
|
4
4
|
const require_NativeSelect = require("../NativeSelect.cjs");
|
|
5
5
|
const require_Table_TableCell = require("./TableCell.cjs");
|
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as TableCellProps } from "../index-BNP_iejT.cjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-B7aaTHOe.cjs";
|
|
3
|
+
import { ElementType, ReactNode } from "react";
|
|
4
|
+
//#region src/Table/TablePagination/TablePagination.d.ts
|
|
5
|
+
interface TablePaginationDisplayedRowsInfo {
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
count: number;
|
|
9
|
+
page: number;
|
|
10
|
+
}
|
|
11
|
+
interface TablePaginationProps extends Omit<TableCellProps, 'children' | 'variant' | 'align' | 'sortDirection'> {
|
|
12
|
+
/** Total number of rows; `-1` = unknown (server-side pagination). */
|
|
13
|
+
count: number;
|
|
14
|
+
/** Zero-based current page. */
|
|
15
|
+
page: number;
|
|
16
|
+
/** Rows per page; `-1` shows all rows. */
|
|
17
|
+
rowsPerPage: number;
|
|
18
|
+
/** Fired with the target zero-based page. */
|
|
19
|
+
onPageChange: (page: number) => void;
|
|
20
|
+
/** Fired with the new rows-per-page value. */
|
|
21
|
+
onRowsPerPageChange?: (rowsPerPage: number) => void;
|
|
22
|
+
/** Options for the rows-per-page selector. Fewer than two options hides it. */
|
|
23
|
+
rowsPerPageOptions?: Array<number | {
|
|
24
|
+
label: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}>;
|
|
27
|
+
/** Disables all controls. Default: `false`. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
shouldShowFirstButton?: boolean;
|
|
30
|
+
shouldShowLastButton?: boolean;
|
|
31
|
+
/** Label for the rows-per-page selector. Default: `'Rows per page:'`. */
|
|
32
|
+
rowsPerPageLabel?: ReactNode;
|
|
33
|
+
/** Renders the displayed-rows range. A sensible default (`1–10 of 57`) is provided. */
|
|
34
|
+
displayedRowsLabel?: (info: TablePaginationDisplayedRowsInfo) => ReactNode;
|
|
35
|
+
/** Accessible name per nav button. A sensible default is provided. */
|
|
36
|
+
getItemAriaLabel?: (type: TablePaginationActionType) => string;
|
|
37
|
+
as?: ElementType;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A `TableCell`-based pagination control for `TableFooter > TableRow`.
|
|
41
|
+
* Controlled only — the consumer owns `page` and `rowsPerPage`.
|
|
42
|
+
*/
|
|
43
|
+
declare function TablePagination({ count, page, rowsPerPage, onPageChange, onRowsPerPageChange, rowsPerPageOptions, disabled, shouldShowFirstButton, shouldShowLastButton, rowsPerPageLabel, displayedRowsLabel, getItemAriaLabel, colSpan, as, ...rest }: Readonly<TablePaginationProps>): import("react").JSX.Element;
|
|
44
|
+
//#endregion
|
|
2
45
|
export { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps };
|
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as TableCellProps } from "../index-C7j38wne.mjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-ATXjtAOY.mjs";
|
|
3
|
+
import { ElementType, ReactNode } from "react";
|
|
4
|
+
//#region src/Table/TablePagination/TablePagination.d.ts
|
|
5
|
+
interface TablePaginationDisplayedRowsInfo {
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
count: number;
|
|
9
|
+
page: number;
|
|
10
|
+
}
|
|
11
|
+
interface TablePaginationProps extends Omit<TableCellProps, 'children' | 'variant' | 'align' | 'sortDirection'> {
|
|
12
|
+
/** Total number of rows; `-1` = unknown (server-side pagination). */
|
|
13
|
+
count: number;
|
|
14
|
+
/** Zero-based current page. */
|
|
15
|
+
page: number;
|
|
16
|
+
/** Rows per page; `-1` shows all rows. */
|
|
17
|
+
rowsPerPage: number;
|
|
18
|
+
/** Fired with the target zero-based page. */
|
|
19
|
+
onPageChange: (page: number) => void;
|
|
20
|
+
/** Fired with the new rows-per-page value. */
|
|
21
|
+
onRowsPerPageChange?: (rowsPerPage: number) => void;
|
|
22
|
+
/** Options for the rows-per-page selector. Fewer than two options hides it. */
|
|
23
|
+
rowsPerPageOptions?: Array<number | {
|
|
24
|
+
label: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}>;
|
|
27
|
+
/** Disables all controls. Default: `false`. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
shouldShowFirstButton?: boolean;
|
|
30
|
+
shouldShowLastButton?: boolean;
|
|
31
|
+
/** Label for the rows-per-page selector. Default: `'Rows per page:'`. */
|
|
32
|
+
rowsPerPageLabel?: ReactNode;
|
|
33
|
+
/** Renders the displayed-rows range. A sensible default (`1–10 of 57`) is provided. */
|
|
34
|
+
displayedRowsLabel?: (info: TablePaginationDisplayedRowsInfo) => ReactNode;
|
|
35
|
+
/** Accessible name per nav button. A sensible default is provided. */
|
|
36
|
+
getItemAriaLabel?: (type: TablePaginationActionType) => string;
|
|
37
|
+
as?: ElementType;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A `TableCell`-based pagination control for `TableFooter > TableRow`.
|
|
41
|
+
* Controlled only — the consumer owns `page` and `rowsPerPage`.
|
|
42
|
+
*/
|
|
43
|
+
declare function TablePagination({ count, page, rowsPerPage, onPageChange, onRowsPerPageChange, rowsPerPageOptions, disabled, shouldShowFirstButton, shouldShowLastButton, rowsPerPageLabel, displayedRowsLabel, getItemAriaLabel, colSpan, as, ...rest }: Readonly<TablePaginationProps>): import("react").JSX.Element;
|
|
44
|
+
//#endregion
|
|
2
45
|
export { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
+
const require_theme = require("../theme-Du6xgPsg.cjs");
|
|
4
5
|
const require_Pagination_PaginationItem = require("../Pagination/PaginationItem.cjs");
|
|
5
6
|
require("react");
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
let _emotion_react = require("@emotion/react");
|
|
8
8
|
//#region src/Table/TablePaginationActions/TablePaginationActions.tsx
|
|
9
9
|
const ActionsRoot = require_src.styled("div", {
|
|
10
10
|
name: "TablePaginationActions",
|
|
@@ -21,7 +21,7 @@ const ActionsRoot = require_src.styled("div", {
|
|
|
21
21
|
* `count` / `page` / `rowsPerPage`.
|
|
22
22
|
*/
|
|
23
23
|
function TablePaginationActions({ count, page, rowsPerPage, onPageChange, getItemAriaLabel, disabled = false, shouldShowFirstButton = false, shouldShowLastButton = false, size: sizeProp, ...rest }) {
|
|
24
|
-
const theme =
|
|
24
|
+
const theme = require_theme.useTheme();
|
|
25
25
|
const size = sizeProp ?? require_themeDefault.themeDefault(theme, "compactSize", "sm");
|
|
26
26
|
const lastPage = rowsPerPage === -1 ? 0 : Math.max(0, Math.ceil(count / rowsPerPage) - 1);
|
|
27
27
|
const isBackwardDisabled = disabled || page <= 0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-B7aaTHOe.cjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-ATXjtAOY.mjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as themeDefault } from "../themeDefault-
|
|
1
|
+
import { o as styled } from "../src-BJy4dM4f.mjs";
|
|
2
|
+
import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
|
|
3
|
+
import { r as useTheme } from "../theme-V6lYzd3j.mjs";
|
|
3
4
|
import { PaginationItem } from "../Pagination/PaginationItem.mjs";
|
|
4
5
|
import "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|