@soroush.tech/design-system 0.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/LICENSE +21 -0
- package/README.md +278 -0
- package/dist/AppBar.cjs +71 -0
- package/dist/AppBar.d.cts +23 -0
- package/dist/AppBar.d.mts +23 -0
- package/dist/AppBar.mjs +69 -0
- package/dist/Avatar.cjs +106 -0
- package/dist/Avatar.d.cts +28 -0
- package/dist/Avatar.d.mts +28 -0
- package/dist/Avatar.mjs +103 -0
- package/dist/Backdrop.cjs +26 -0
- package/dist/Backdrop.d.cts +10 -0
- package/dist/Backdrop.d.mts +10 -0
- package/dist/Backdrop.mjs +25 -0
- package/dist/Button.cjs +178 -0
- package/dist/Button.d.cts +2 -0
- package/dist/Button.d.mts +2 -0
- package/dist/Button.mjs +175 -0
- package/dist/ButtonGroup.cjs +110 -0
- package/dist/ButtonGroup.d.cts +2 -0
- package/dist/ButtonGroup.d.mts +2 -0
- package/dist/ButtonGroup.mjs +107 -0
- package/dist/ButtonGroupContext-DS-kl9lG.mjs +5 -0
- package/dist/ButtonGroupContext-NtkVeDVE.cjs +9 -0
- package/dist/Card.cjs +95 -0
- package/dist/Card.d.cts +18 -0
- package/dist/Card.d.mts +18 -0
- package/dist/Card.mjs +93 -0
- package/dist/Checkbox.cjs +192 -0
- package/dist/Checkbox.d.cts +2 -0
- package/dist/Checkbox.d.mts +2 -0
- package/dist/Checkbox.mjs +190 -0
- package/dist/CircularProgress.cjs +136 -0
- package/dist/CircularProgress.d.cts +34 -0
- package/dist/CircularProgress.d.mts +34 -0
- package/dist/CircularProgress.mjs +133 -0
- package/dist/CodeBlock.cjs +101 -0
- package/dist/CodeBlock.d.cts +2 -0
- package/dist/CodeBlock.d.mts +2 -0
- package/dist/CodeBlock.mjs +100 -0
- package/dist/Drawer.cjs +69 -0
- package/dist/Drawer.d.cts +22 -0
- package/dist/Drawer.d.mts +22 -0
- package/dist/Drawer.mjs +66 -0
- package/dist/Field.cjs +59 -0
- package/dist/Field.d.cts +36 -0
- package/dist/Field.d.mts +36 -0
- package/dist/Field.mjs +58 -0
- package/dist/Flex.cjs +21 -0
- package/dist/Flex.d.cts +2 -0
- package/dist/Flex.d.mts +2 -0
- package/dist/Flex.mjs +19 -0
- package/dist/FocusTrap.cjs +82 -0
- package/dist/FocusTrap.d.cts +24 -0
- package/dist/FocusTrap.d.mts +24 -0
- package/dist/FocusTrap.mjs +81 -0
- package/dist/Form.cjs +44 -0
- package/dist/Form.d.cts +41 -0
- package/dist/Form.d.mts +41 -0
- package/dist/Form.mjs +42 -0
- package/dist/FormContext-CRmRgDgu.cjs +10 -0
- package/dist/FormContext-_G3sxJyQ.mjs +6 -0
- package/dist/FormControl.cjs +84 -0
- package/dist/FormControl.d.cts +78 -0
- package/dist/FormControl.d.mts +78 -0
- package/dist/FormControl.mjs +81 -0
- package/dist/FormControlContext-CyxdOxdN.mjs +6 -0
- package/dist/FormControlContext-aeKTjRKY.cjs +10 -0
- package/dist/FormHelperText.cjs +40 -0
- package/dist/FormHelperText.d.cts +16 -0
- package/dist/FormHelperText.d.mts +16 -0
- package/dist/FormHelperText.mjs +39 -0
- package/dist/FormLabel.cjs +34 -0
- package/dist/FormLabel.d.cts +2 -0
- package/dist/FormLabel.d.mts +2 -0
- package/dist/FormLabel.mjs +33 -0
- package/dist/Grid.cjs +37 -0
- package/dist/Grid.d.cts +21 -0
- package/dist/Grid.d.mts +21 -0
- package/dist/Grid.mjs +32 -0
- package/dist/Icon-1YtNCUKo.cjs +755 -0
- package/dist/Icon-CAKRmFz3.mjs +742 -0
- package/dist/Icon.cjs +4 -0
- package/dist/Icon.d.cts +2 -0
- package/dist/Icon.d.mts +2 -0
- package/dist/Icon.mjs +2 -0
- package/dist/Image.cjs +82 -0
- package/dist/Image.d.cts +2 -0
- package/dist/Image.d.mts +2 -0
- package/dist/Image.mjs +80 -0
- package/dist/LinearProgress.cjs +217 -0
- package/dist/LinearProgress.d.cts +36 -0
- package/dist/LinearProgress.d.mts +36 -0
- package/dist/LinearProgress.mjs +214 -0
- package/dist/Link.cjs +64 -0
- package/dist/Link.d.cts +2 -0
- package/dist/Link.d.mts +2 -0
- package/dist/Link.mjs +62 -0
- package/dist/Markdown/Control.cjs +61 -0
- package/dist/Markdown/Control.d.cts +18 -0
- package/dist/Markdown/Control.d.mts +18 -0
- package/dist/Markdown/Control.mjs +60 -0
- package/dist/Markdown/Editor.cjs +130 -0
- package/dist/Markdown/Editor.d.cts +40 -0
- package/dist/Markdown/Editor.d.mts +40 -0
- package/dist/Markdown/Editor.mjs +128 -0
- package/dist/Markdown/Preview.cjs +241 -0
- package/dist/Markdown/Preview.d.cts +55 -0
- package/dist/Markdown/Preview.d.mts +55 -0
- package/dist/Markdown/Preview.mjs +236 -0
- package/dist/Markdown/Toolbar.cjs +4 -0
- package/dist/Markdown/Toolbar.d.cts +13 -0
- package/dist/Markdown/Toolbar.d.mts +13 -0
- package/dist/Markdown/Toolbar.mjs +2 -0
- package/dist/Markdown.cjs +13 -0
- package/dist/Markdown.d.cts +80 -0
- package/dist/Markdown.d.mts +80 -0
- package/dist/Markdown.mjs +6 -0
- package/dist/MarkdownContext-BN8A3W-J.mjs +11 -0
- package/dist/MarkdownContext-DSwjzpH8.cjs +22 -0
- package/dist/MenuItem.cjs +150 -0
- package/dist/MenuItem.d.cts +51 -0
- package/dist/MenuItem.d.mts +51 -0
- package/dist/MenuItem.mjs +147 -0
- package/dist/Modal-BDMPTSXv.cjs +351 -0
- package/dist/Modal-DR60peRg.mjs +327 -0
- package/dist/Modal.cjs +6 -0
- package/dist/Modal.d.cts +2 -0
- package/dist/Modal.d.mts +2 -0
- package/dist/Modal.mjs +2 -0
- package/dist/NativeSelect.cjs +189 -0
- package/dist/NativeSelect.d.cts +62 -0
- package/dist/NativeSelect.d.mts +62 -0
- package/dist/NativeSelect.mjs +186 -0
- package/dist/Pagination/PaginationItem.cjs +116 -0
- package/dist/Pagination/PaginationItem.d.cts +2 -0
- package/dist/Pagination/PaginationItem.d.mts +2 -0
- package/dist/Pagination/PaginationItem.mjs +114 -0
- package/dist/Pagination.cjs +134 -0
- package/dist/Pagination.d.cts +23 -0
- package/dist/Pagination.d.mts +23 -0
- package/dist/Pagination.mjs +130 -0
- package/dist/Paper.cjs +51 -0
- package/dist/Paper.d.cts +2 -0
- package/dist/Paper.d.mts +2 -0
- package/dist/Paper.mjs +48 -0
- package/dist/Popover-B61J7C79.mjs +252 -0
- package/dist/Popover-CRDLmywF.cjs +259 -0
- package/dist/Popover.cjs +3 -0
- package/dist/Popover.d.cts +84 -0
- package/dist/Popover.d.mts +84 -0
- package/dist/Popover.mjs +2 -0
- package/dist/Portal.cjs +20 -0
- package/dist/Portal.d.cts +18 -0
- package/dist/Portal.d.mts +18 -0
- package/dist/Portal.mjs +19 -0
- package/dist/Quote.cjs +11 -0
- package/dist/Quote.d.cts +2 -0
- package/dist/Quote.d.mts +2 -0
- package/dist/Quote.mjs +10 -0
- package/dist/Radio.cjs +143 -0
- package/dist/Radio.d.cts +38 -0
- package/dist/Radio.d.mts +38 -0
- package/dist/Radio.mjs +141 -0
- package/dist/Select.cjs +528 -0
- package/dist/Select.d.cts +68 -0
- package/dist/Select.d.mts +68 -0
- package/dist/Select.mjs +525 -0
- package/dist/Skeleton.cjs +82 -0
- package/dist/Skeleton.d.cts +21 -0
- package/dist/Skeleton.d.mts +21 -0
- package/dist/Skeleton.mjs +79 -0
- package/dist/Switch.cjs +332 -0
- package/dist/Switch.d.cts +40 -0
- package/dist/Switch.d.mts +40 -0
- package/dist/Switch.mjs +329 -0
- package/dist/Table/Table.cjs +65 -0
- package/dist/Table/Table.d.cts +2 -0
- package/dist/Table/Table.d.mts +2 -0
- package/dist/Table/Table.mjs +63 -0
- package/dist/Table/TableBody.cjs +42 -0
- package/dist/Table/TableBody.d.cts +2 -0
- package/dist/Table/TableBody.d.mts +2 -0
- package/dist/Table/TableBody.mjs +40 -0
- package/dist/Table/TableCell.cjs +93 -0
- package/dist/Table/TableCell.d.cts +2 -0
- package/dist/Table/TableCell.d.mts +2 -0
- package/dist/Table/TableCell.mjs +91 -0
- package/dist/Table/TableContainer.cjs +15 -0
- package/dist/Table/TableContainer.d.cts +2 -0
- package/dist/Table/TableContainer.d.mts +2 -0
- package/dist/Table/TableContainer.mjs +14 -0
- package/dist/Table/TableControl.cjs +42 -0
- package/dist/Table/TableControl.d.cts +2 -0
- package/dist/Table/TableControl.d.mts +2 -0
- package/dist/Table/TableControl.mjs +41 -0
- package/dist/Table/TableFooter.cjs +42 -0
- package/dist/Table/TableFooter.d.cts +2 -0
- package/dist/Table/TableFooter.d.mts +2 -0
- package/dist/Table/TableFooter.mjs +40 -0
- package/dist/Table/TableHead.cjs +42 -0
- package/dist/Table/TableHead.d.cts +2 -0
- package/dist/Table/TableHead.d.mts +2 -0
- package/dist/Table/TableHead.mjs +40 -0
- package/dist/Table/TablePagination.cjs +89 -0
- package/dist/Table/TablePagination.d.cts +2 -0
- package/dist/Table/TablePagination.d.mts +2 -0
- package/dist/Table/TablePagination.mjs +88 -0
- package/dist/Table/TablePaginationActions.cjs +65 -0
- package/dist/Table/TablePaginationActions.d.cts +2 -0
- package/dist/Table/TablePaginationActions.d.mts +2 -0
- package/dist/Table/TablePaginationActions.mjs +63 -0
- package/dist/Table/TableRow.cjs +56 -0
- package/dist/Table/TableRow.d.cts +2 -0
- package/dist/Table/TableRow.d.mts +2 -0
- package/dist/Table/TableRow.mjs +54 -0
- package/dist/Table/TableSortLabel.cjs +62 -0
- package/dist/Table/TableSortLabel.d.cts +2 -0
- package/dist/Table/TableSortLabel.d.mts +2 -0
- package/dist/Table/TableSortLabel.mjs +60 -0
- package/dist/Table/hooks.cjs +112 -0
- package/dist/Table/hooks.d.cts +3 -0
- package/dist/Table/hooks.d.mts +3 -0
- package/dist/Table/hooks.mjs +109 -0
- package/dist/Table.cjs +31 -0
- package/dist/Table.d.cts +16 -0
- package/dist/Table.d.mts +16 -0
- package/dist/Table.mjs +15 -0
- package/dist/TableContext-2qH7XYJB.d.cts +19 -0
- package/dist/TableContext-2qH7XYJB.d.mts +19 -0
- package/dist/TableContext-BRWPghAI.mjs +6 -0
- package/dist/TableContext-qqp35o8z.cjs +10 -0
- package/dist/TableSectionContext-meIG4lFZ.mjs +5 -0
- package/dist/TableSectionContext-pYlJ-duI.cjs +9 -0
- package/dist/TextInput-6o37Zddp.cjs +231 -0
- package/dist/TextInput-D_lHYJlL.mjs +224 -0
- package/dist/TextInput.cjs +3 -0
- package/dist/TextInput.d.cts +2 -0
- package/dist/TextInput.d.mts +2 -0
- package/dist/TextInput.mjs +2 -0
- package/dist/ThemeProvider.cjs +15 -0
- package/dist/ThemeProvider.d.cts +20 -0
- package/dist/ThemeProvider.d.mts +20 -0
- package/dist/ThemeProvider.mjs +14 -0
- package/dist/ToggleButton/ToggleButton.cjs +58 -0
- package/dist/ToggleButton/ToggleButton.d.cts +14 -0
- package/dist/ToggleButton/ToggleButton.d.mts +14 -0
- package/dist/ToggleButton/ToggleButton.mjs +56 -0
- package/dist/ToggleButton/ToggleButtonGroup.cjs +54 -0
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +23 -0
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +23 -0
- package/dist/ToggleButton/ToggleButtonGroup.mjs +52 -0
- package/dist/ToggleButton.cjs +7 -0
- package/dist/ToggleButton.d.cts +4 -0
- package/dist/ToggleButton.d.mts +4 -0
- package/dist/ToggleButton.mjs +4 -0
- package/dist/ToggleButtonGroupContext-CqD-Afho.d.cts +15 -0
- package/dist/ToggleButtonGroupContext-CqD-Afho.d.mts +15 -0
- package/dist/ToggleButtonGroupContext-DxIyy8ze.mjs +5 -0
- package/dist/ToggleButtonGroupContext-Ewc5Ixas.cjs +9 -0
- package/dist/Toolbar-B-W22Sk4.cjs +459 -0
- package/dist/Toolbar-KbR97iJS.mjs +448 -0
- package/dist/Typography.cjs +64 -0
- package/dist/Typography.d.cts +3 -0
- package/dist/Typography.d.mts +3 -0
- package/dist/Typography.mjs +61 -0
- package/dist/View.cjs +40 -0
- package/dist/View.d.cts +2 -0
- package/dist/View.d.mts +2 -0
- package/dist/View.mjs +38 -0
- package/dist/applyAction-B2B-hnP3.mjs +98 -0
- package/dist/applyAction-B2uVHxOE.cjs +103 -0
- package/dist/createTheme-Dts2F4R_.d.cts +21 -0
- package/dist/createTheme-Dts2F4R_.d.mts +21 -0
- package/dist/hooks/useCopyToClipboard.cjs +33 -0
- package/dist/hooks/useCopyToClipboard.d.cts +16 -0
- package/dist/hooks/useCopyToClipboard.d.mts +16 -0
- package/dist/hooks/useCopyToClipboard.mjs +31 -0
- package/dist/hooks.cjs +52 -0
- package/dist/hooks.d.cts +40 -0
- package/dist/hooks.d.mts +40 -0
- package/dist/hooks.mjs +41 -0
- package/dist/index-4rC2j7fR.d.cts +46 -0
- package/dist/index-8dzWTpFp.d.cts +24 -0
- package/dist/index-B1rCD6Oo.d.cts +17 -0
- package/dist/index-BH8jQOdF.d.mts +46 -0
- package/dist/index-BLRMuO_x.d.mts +24 -0
- package/dist/index-BLfFycfJ.d.mts +72 -0
- package/dist/index-BPrjvi7B.d.cts +13 -0
- package/dist/index-BX5-NfbX.d.cts +94 -0
- package/dist/index-Bihpwn75.d.cts +64 -0
- package/dist/index-BlfIbAMs.d.cts +45 -0
- package/dist/index-BnzUumAC2.d.mts +30 -0
- package/dist/index-BoqlPb3Z.d.mts +13 -0
- package/dist/index-BqVgv2B_.d.mts +42 -0
- package/dist/index-Bwi4kRpf.d.mts +79 -0
- package/dist/index-Bx24ZnOV.d.mts +43 -0
- package/dist/index-C-P_hipv.d.mts +21 -0
- package/dist/index-C0xMvDjL.d.mts +49 -0
- package/dist/index-C5_ciaeo.d.cts +79 -0
- package/dist/index-CDVnvjIE.d.cts +27 -0
- package/dist/index-CDcGTGR4.d.cts +21 -0
- package/dist/index-CEOZI-6L.d.mts +48 -0
- package/dist/index-CLU39rUS2.d.mts +30 -0
- package/dist/index-CM_KCTee.d.cts +48 -0
- package/dist/index-CT9uGKrs.d.cts +30 -0
- package/dist/index-CcYSvIJi.d.cts +21 -0
- package/dist/index-CdF_4ckE.d.mts +11 -0
- package/dist/index-CeYkEXU2.d.cts +68 -0
- package/dist/index-Cl_yBpzW2.d.mts +13 -0
- package/dist/index-Cv_UOfYx.d.mts +18 -0
- package/dist/index-CxSNNzBT2.d.mts +68 -0
- package/dist/index-CyZYXDn0.d.cts +42 -0
- package/dist/index-DASvoACZ.d.cts +49 -0
- package/dist/index-DBGE6yKw.d.mts +16 -0
- package/dist/index-DCQ2fsDu.d.mts +40 -0
- package/dist/index-DD2AVtiR.d.cts +16 -0
- package/dist/index-DE5PtzPn.d.mts +27 -0
- package/dist/index-DOPXpr2J.d.cts +43 -0
- package/dist/index-DSCMXFTn.d.cts +30 -0
- package/dist/index-DTkQSXQD.d.cts +11 -0
- package/dist/index-DeJWkpf9.d.cts +16 -0
- package/dist/index-DeiZHSwA.d.cts +12 -0
- package/dist/index-Des8BisQ.d.mts +12 -0
- package/dist/index-Dg8-CPOO.d.cts +18 -0
- package/dist/index-DgRS5Aqv.d.mts +16 -0
- package/dist/index-Dm9HfgV6.d.mts +63 -0
- package/dist/index-DmJIuQJj.d.mts +24 -0
- package/dist/index-Dp81rWM1.d.cts +72 -0
- package/dist/index-Dtzj8X58.d.cts +40 -0
- package/dist/index-DvW2eETV.d.mts +21 -0
- package/dist/index-Dy03o__A.d.mts +94 -0
- package/dist/index-FwTocqhP.d.cts +34 -0
- package/dist/index-GVsFY00r.d.cts +21 -0
- package/dist/index-Nqco3fsM.d.cts +13 -0
- package/dist/index-g-9DZ_KQ.d.cts +28 -0
- package/dist/index-g9EThkSg.d.mts +21 -0
- package/dist/index-kpk9e3xM2.d.mts +45 -0
- package/dist/index-pX7tBQdJ.d.mts +34 -0
- package/dist/index-u57CbuAU2.d.mts +28 -0
- package/dist/index-x80UG39F.d.cts +24 -0
- package/dist/index-z35LEYG8.d.mts +17 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +3 -0
- package/dist/inputVariantStyles-BBkkYQtE.cjs +32 -0
- package/dist/inputVariantStyles-CcqpGfuP.mjs +28 -0
- package/dist/rolldown-runtime-BBjsoOtd.mjs +27 -0
- package/dist/rolldown-runtime-DDXJien1.cjs +50 -0
- package/dist/src-BiocWFSR.cjs +60 -0
- package/dist/src-DcNT2aIK.mjs +49 -0
- package/dist/themeDefault-B-QjpGEO.cjs +16 -0
- package/dist/themeDefault-CjXaY3ok.mjs +11 -0
- package/dist/themes-D1SAp3SL.d.mts +500 -0
- package/dist/themes-D81JYbqm.d.cts +500 -0
- package/dist/themes.cjs +318 -0
- package/dist/themes.d.cts +3 -0
- package/dist/themes.d.mts +3 -0
- package/dist/themes.mjs +303 -0
- package/dist/useDefaultProps-Cb-5FNok.cjs +19 -0
- package/dist/useDefaultProps-CoApb4KT.mjs +14 -0
- package/dist/useTableSort--XMWjujs.d.cts +51 -0
- package/dist/useTableSort-CpDs4cGq.d.mts +51 -0
- package/dist/utils/styleCache.cjs +7 -0
- package/dist/utils/styleCache.d.cts +3 -0
- package/dist/utils/styleCache.d.mts +4 -0
- package/dist/utils/styleCache.mjs +5 -0
- package/dist/utils.cjs +65 -0
- package/dist/utils.d.cts +39 -0
- package/dist/utils.d.mts +39 -0
- package/dist/utils.mjs +58 -0
- package/package.json +125 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { l as PaletteColor, n as ButtonVariants } from "./themes-D1SAp3SL.mjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
//#region src/Button/Button.d.ts
|
|
5
|
+
/** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
|
|
6
|
+
type ButtonVariant = keyof ButtonVariants;
|
|
7
|
+
type ButtonColor = PaletteColor;
|
|
8
|
+
type ButtonSize = keyof Theme['sizes'];
|
|
9
|
+
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
10
|
+
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
11
|
+
/** Valid values for the gap prop — resolves against theme.space. */
|
|
12
|
+
type GapToken = keyof Theme['space'];
|
|
13
|
+
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
|
|
14
|
+
/** Visual style — filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
/** Color palette — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
17
|
+
color?: ButtonColor;
|
|
18
|
+
/** Size token — controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
/** Gap between icon and label — resolves against theme.space. Default: `1` (8px). */
|
|
21
|
+
gap?: GapToken;
|
|
22
|
+
/** Icon rendered before the label. */
|
|
23
|
+
startIcon?: ReactNode;
|
|
24
|
+
/** Icon rendered after the label. */
|
|
25
|
+
endIcon?: ReactNode;
|
|
26
|
+
/** Stretch button to full container width. */
|
|
27
|
+
fullWidth?: boolean;
|
|
28
|
+
/** Shows loading indicator and disables the button. */
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/** Custom loading element. Default: animated spinner. */
|
|
31
|
+
loadingIndicator?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Corner shape — sets the default `borderRadius`.
|
|
34
|
+
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
35
|
+
* The `borderRadius` prop always overrides this.
|
|
36
|
+
*/
|
|
37
|
+
shape?: ButtonShape;
|
|
38
|
+
/** Where the loading indicator appears. Default: `"center"`. */
|
|
39
|
+
loadingPosition?: ButtonLoadingPosition;
|
|
40
|
+
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
41
|
+
href?: string;
|
|
42
|
+
/** Anchor `target` — only meaningful when `href` is set. */
|
|
43
|
+
target?: string;
|
|
44
|
+
/** Anchor `rel` — only meaningful when `href` is set. */
|
|
45
|
+
rel?: string;
|
|
46
|
+
}
|
|
47
|
+
declare function Button({ variant, color, size, shape, gap, fontWeight, letterSpacing, startIcon, endIcon, fullWidth, loading, loadingIndicator, loadingPosition, children, disabled, href, ...rest }: Readonly<ButtonProps>): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { ButtonShape as a, GapToken as c, ButtonProps as i, ButtonColor as n, ButtonSize as o, ButtonLoadingPosition as r, ButtonVariant as s, Button as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
3
|
+
//#region src/TextInput/TextInput.d.ts
|
|
4
|
+
type TextInputColor = keyof Theme['palette'];
|
|
5
|
+
type TextInputTextColor = keyof Theme['text'];
|
|
6
|
+
type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
7
|
+
type TextInputSize = keyof Theme['sizes'];
|
|
8
|
+
interface TextInputClasses {
|
|
9
|
+
root?: string;
|
|
10
|
+
input?: string;
|
|
11
|
+
}
|
|
12
|
+
interface TextInputProps extends index_d_exports.SpaceProps<Theme>, Pick<index_d_exports.LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
13
|
+
/** Corner radius — applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
14
|
+
borderRadius?: keyof Theme['radii'];
|
|
15
|
+
autoComplete?: string;
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
/** Class names applied to inner elements. `root` targets the wrapper; `input` targets the native element. */
|
|
18
|
+
classes?: TextInputClasses;
|
|
19
|
+
/** Override components for the Root and Input slots. */
|
|
20
|
+
components?: {
|
|
21
|
+
Input?: ElementType;
|
|
22
|
+
Root?: ElementType;
|
|
23
|
+
};
|
|
24
|
+
/** Focus/active border color — resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
25
|
+
color?: TextInputColor;
|
|
26
|
+
/** Text color of the typed value — resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
|
|
27
|
+
textColor?: TextInputTextColor;
|
|
28
|
+
/** Disables the input. */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Marks the field as invalid — applies error border color. */
|
|
31
|
+
error?: boolean;
|
|
32
|
+
/** Stretches the root to fill its container. */
|
|
33
|
+
fullWidth?: boolean;
|
|
34
|
+
id?: string;
|
|
35
|
+
/** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
|
|
36
|
+
inputComponent?: ElementType;
|
|
37
|
+
/** Native HTML `size` attribute — visible width in character widths. Has no effect with `multiline` or `resize`. */
|
|
38
|
+
inputSize?: number;
|
|
39
|
+
/** Extra props spread onto the native element. Explicit top-level props take priority. */
|
|
40
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
41
|
+
/** Maximum rows before the auto-grow textarea starts scrolling. Only applies when `resize` is set. */
|
|
42
|
+
maxRows?: number | string;
|
|
43
|
+
/** Minimum rows for the auto-grow textarea. Only applies when `resize` is set. */
|
|
44
|
+
minRows?: number | string;
|
|
45
|
+
/**
|
|
46
|
+
* Renders a `<textarea>` that grows with its content.
|
|
47
|
+
* Combine with `rows` to fix the height instead of auto-growing.
|
|
48
|
+
*/
|
|
49
|
+
multiline?: boolean;
|
|
50
|
+
name?: string;
|
|
51
|
+
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
readOnly?: boolean;
|
|
54
|
+
required?: boolean;
|
|
55
|
+
/** Auto-grows the textarea as content increases. Requires `multiline`. */
|
|
56
|
+
resize?: boolean;
|
|
57
|
+
/** Controls padding and font size. Default: 'md', overridable via `theme.defaults.size`. */
|
|
58
|
+
size?: TextInputSize;
|
|
59
|
+
/**
|
|
60
|
+
* Fixes the textarea height to this many rows. Also enables `multiline`
|
|
61
|
+
* when value is greater than 1. Disables resize.
|
|
62
|
+
*/
|
|
63
|
+
rows?: number | string;
|
|
64
|
+
/** HTML input type. Ignored when multiline. Default: `'text'`. */
|
|
65
|
+
type?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Visual style of the input.
|
|
68
|
+
* - `outlined` / `default` — full border box (default)
|
|
69
|
+
* - `underline` — border on bottom only
|
|
70
|
+
* - `text` — no border, transparent background
|
|
71
|
+
*/
|
|
72
|
+
variant?: TextInputVariant;
|
|
73
|
+
value?: string | number | readonly string[];
|
|
74
|
+
className?: string;
|
|
75
|
+
'data-testid'?: string;
|
|
76
|
+
}
|
|
77
|
+
declare function TextInput({ autoComplete, autoFocus, borderRadius, classes, components, color: colorProp, textColor: textColorProp, disabled: disabledProp, error: errorProp, fullWidth: fullWidthProp, id: idProp, inputComponent, inputProps, inputSize, maxRows, minRows, multiline, name, onChange, placeholder, readOnly, required: requiredProp, resize, rows, size: sizeProp, type, value, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TextInputProps>): import("react").JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { TextInputSize as a, TextInputProps as i, TextInputClasses as n, TextInputTextColor as o, TextInputColor as r, TextInputVariant as s, TextInput as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { F as TypographyVariant } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Typography/Typography.d.ts
|
|
5
|
+
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
6
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
7
|
+
type TextColorToken = keyof Theme['text'];
|
|
8
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
9
|
+
type BackgroundToken = keyof Theme['background'];
|
|
10
|
+
interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.TypographyProps<Theme>, index_d_exports.FlexboxProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.PositionProps<Theme> {
|
|
11
|
+
/** Resolves against theme.text — inherit · initial · primary · secondary · error · success */
|
|
12
|
+
color?: TextColorToken;
|
|
13
|
+
/** Resolves against theme.background */
|
|
14
|
+
bg?: BackgroundToken;
|
|
15
|
+
opacity?: number;
|
|
16
|
+
textTransform?: CSSProperties['textTransform'];
|
|
17
|
+
variant?: TypographyVariant;
|
|
18
|
+
align?: TypographyAlign;
|
|
19
|
+
gutterBottom?: boolean;
|
|
20
|
+
noWrap?: boolean;
|
|
21
|
+
/** Machine-readable timestamp — forwarded when rendering as `<time>` (`as="time"`). */
|
|
22
|
+
dateTime?: string;
|
|
23
|
+
as?: ElementType;
|
|
24
|
+
}
|
|
25
|
+
declare function Typography({ variant, as, ...rest }: Readonly<TypographyProps>): import("react").JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { TypographyProps as a, TypographyAlign as i, TextColorToken as n, Typography as r, BackgroundToken as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
3
|
+
//#region src/Table/TableFooter/TableFooter.d.ts
|
|
4
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
5
|
+
type TableFooterColorToken = keyof Theme['text'];
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type TableFooterBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
9
|
+
type TableFooterBorderColorToken = keyof Theme['border'];
|
|
10
|
+
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
11
|
+
/** Resolves against theme.text */
|
|
12
|
+
color?: TableFooterColorToken;
|
|
13
|
+
/** Resolves against theme.background */
|
|
14
|
+
bg?: TableFooterBackgroundToken;
|
|
15
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
16
|
+
borderColor?: TableFooterBorderColorToken;
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
}
|
|
19
|
+
declare function TableFooter({ as, children, ...rest }: Readonly<TableFooterProps>): import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { TableFooterProps as a, TableFooterColorToken as i, TableFooterBackgroundToken as n, TableFooterBorderColorToken as r, TableFooter as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-2qH7XYJB.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
|
|
48
|
+
export { TableProps as a, TableBorderColorToken as i, TableAlign as n, TableSize as o, TableBackgroundToken as r, Table as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableRow/TableRow.d.ts
|
|
5
|
+
/** Palette color driving the hover/selected shading — a `theme.palette` key. */
|
|
6
|
+
type TableRowColor = PaletteColor;
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableRowBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableRowBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/**
|
|
13
|
+
* Palette color for the hover/selected shading — maps to `theme.palette[color]`
|
|
14
|
+
* (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
|
|
15
|
+
* to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
|
|
16
|
+
*/
|
|
17
|
+
color?: TableRowColor;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/** Resolves against theme.background */
|
|
20
|
+
bg?: TableRowBackgroundToken;
|
|
21
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
22
|
+
borderColor?: TableRowBorderColorToken;
|
|
23
|
+
/** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
|
|
24
|
+
isHoverable?: boolean;
|
|
25
|
+
/** Fills the row with `theme.palette[color].dark` + contrast text. Default: `false`. */
|
|
26
|
+
isSelected?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare function TableRow({ color, ...rest }: Readonly<TableRowProps>): import("react").JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { TableRowProps as a, TableRowColor as i, TableRowBackgroundToken as n, TableRowBorderColorToken as r, TableRow as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-2qH7XYJB.cjs";
|
|
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
|
|
48
|
+
export { TableProps as a, TableBorderColorToken as i, TableAlign as n, TableSize as o, TableBackgroundToken as r, Table as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableRow/TableRow.d.ts
|
|
5
|
+
/** Palette color driving the hover/selected shading — a `theme.palette` key. */
|
|
6
|
+
type TableRowColor = PaletteColor;
|
|
7
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
8
|
+
type TableRowBackgroundToken = keyof Theme['background'];
|
|
9
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
|
+
type TableRowBorderColorToken = keyof Theme['border'];
|
|
11
|
+
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
|
+
/**
|
|
13
|
+
* Palette color for the hover/selected shading — maps to `theme.palette[color]`
|
|
14
|
+
* (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
|
|
15
|
+
* to the enclosing `Table`'s `color`. Default: 'primary', overridable via `theme.defaults.color`.
|
|
16
|
+
*/
|
|
17
|
+
color?: TableRowColor;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/** Resolves against theme.background */
|
|
20
|
+
bg?: TableRowBackgroundToken;
|
|
21
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
22
|
+
borderColor?: TableRowBorderColorToken;
|
|
23
|
+
/** Shades the row on hover with `theme.palette[color].light`. Default: `false`. */
|
|
24
|
+
isHoverable?: boolean;
|
|
25
|
+
/** Fills the row with `theme.palette[color].dark` + contrast text. Default: `false`. */
|
|
26
|
+
isSelected?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare function TableRow({ color, ...rest }: Readonly<TableRowProps>): import("react").JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { TableRowProps as a, TableRowColor as i, TableRowBackgroundToken as n, TableRowBorderColorToken as r, TableRow as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
3
|
+
//#region src/Table/TableHead/TableHead.d.ts
|
|
4
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
5
|
+
type TableHeadColorToken = keyof Theme['text'];
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type TableHeadBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
9
|
+
type TableHeadBorderColorToken = keyof Theme['border'];
|
|
10
|
+
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, index_d_exports.SpaceProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
11
|
+
/** Resolves against theme.text */
|
|
12
|
+
color?: TableHeadColorToken;
|
|
13
|
+
/** Resolves against theme.background */
|
|
14
|
+
bg?: TableHeadBackgroundToken;
|
|
15
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
16
|
+
borderColor?: TableHeadBorderColorToken;
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
}
|
|
19
|
+
declare function TableHead({ as, children, ...rest }: Readonly<TableHeadProps>): import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { TableHeadProps as a, TableHeadColorToken as i, TableHeadBackgroundToken as n, TableHeadBorderColorToken as r, TableHead as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a as TypographyProps } from "./index-DE5PtzPn.mjs";
|
|
2
|
+
import { AnchorHTMLAttributes } from "react";
|
|
3
|
+
//#region src/Link/Link.d.ts
|
|
4
|
+
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
5
|
+
interface LinkProps extends Omit<TypographyProps, 'as'>, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Omit<TypographyProps, 'as'>> {
|
|
6
|
+
underline?: LinkUnderline;
|
|
7
|
+
gap?: number | string;
|
|
8
|
+
}
|
|
9
|
+
declare function Link({ underline: underlineProp, color, variant, target, rel, ...rest }: Readonly<LinkProps>): import("react").JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { LinkProps as n, LinkUnderline as r, Link as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
|
|
4
|
+
//#region src/Pagination/hooks/usePagination.d.ts
|
|
5
|
+
type PaginationItemType = 'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis';
|
|
6
|
+
/** One renderable pagination item — `Pagination` maps these onto `PaginationItem`s. */
|
|
7
|
+
interface UsePaginationItem {
|
|
8
|
+
type: PaginationItemType;
|
|
9
|
+
/** Target page for actionable items; `null` for ellipses. */
|
|
10
|
+
page: number | null;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isDisabled: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
interface UsePaginationProps {
|
|
16
|
+
/** Total number of pages. */
|
|
17
|
+
count: number;
|
|
18
|
+
/** Controlled current page (1-based). */
|
|
19
|
+
page?: number;
|
|
20
|
+
/** Uncontrolled initial page. Default: `1`. */
|
|
21
|
+
defaultPage?: number;
|
|
22
|
+
/** Pages always visible either side of the current page. Default: `1`. */
|
|
23
|
+
siblingCount?: number;
|
|
24
|
+
/** Pages always visible at the start and end. Default: `1`. */
|
|
25
|
+
boundaryCount?: number;
|
|
26
|
+
/** Disables every item. Default: `false`. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
shouldShowFirstButton?: boolean;
|
|
29
|
+
shouldShowLastButton?: boolean;
|
|
30
|
+
shouldHidePrevButton?: boolean;
|
|
31
|
+
shouldHideNextButton?: boolean;
|
|
32
|
+
/** Fired with the target page (1-based). */
|
|
33
|
+
onChange?: (page: number) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Headless pagination model — computes the item list (nav buttons, page numbers,
|
|
37
|
+
* ellipses) with selection, boundary disabling, and controlled/uncontrolled paging.
|
|
38
|
+
*/
|
|
39
|
+
declare function usePagination({ count, page: pageProp, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange }: UsePaginationProps): {
|
|
40
|
+
items: UsePaginationItem[];
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/Pagination/PaginationItem/PaginationItem.d.ts
|
|
44
|
+
type PaginationItemColor = PaletteColor;
|
|
45
|
+
type PaginationItemVariant = 'text' | 'outlined';
|
|
46
|
+
type PaginationItemShape = 'circular' | 'rounded';
|
|
47
|
+
type PaginationItemSize = keyof Theme['sizes'];
|
|
48
|
+
interface PaginationItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'type'>, index_d_exports.SpaceProps<Theme> {
|
|
49
|
+
/** What the item renders — a page number, a nav control, or a non-interactive ellipsis. */
|
|
50
|
+
type?: PaginationItemType;
|
|
51
|
+
/** The page number/content for `type="page"`. */
|
|
52
|
+
page?: ReactNode;
|
|
53
|
+
/** Active styling for the current page. Default: `false`. */
|
|
54
|
+
isSelected?: boolean;
|
|
55
|
+
/** Selected-state color — resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
56
|
+
color?: PaginationItemColor;
|
|
57
|
+
/** `text` — no border · `outlined` — stroked. Default: `'text'`. */
|
|
58
|
+
variant?: PaginationItemVariant;
|
|
59
|
+
/** Corner shape. Default: `'circular'`. */
|
|
60
|
+
shape?: PaginationItemShape;
|
|
61
|
+
/** Item dimensions and font size — resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
62
|
+
size?: PaginationItemSize;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
as?: ElementType;
|
|
65
|
+
}
|
|
66
|
+
declare function PaginationItem({ type, page, isSelected, color, variant, shape, size, as, ...rest }: Readonly<PaginationItemProps>): import("react").JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { PaginationItemSize as a, UsePaginationItem as c, PaginationItemShape as i, UsePaginationProps as l, PaginationItemColor as n, PaginationItemVariant as o, PaginationItemProps as r, PaginationItemType as s, PaginationItem as t, usePagination as u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./index-DCQ2fsDu.mjs";
|
|
2
|
+
import "./index-DmJIuQJj.mjs";
|
|
3
|
+
import "./TableContext-2qH7XYJB.mjs";
|
|
4
|
+
import "./index-CEOZI-6L.mjs";
|
|
5
|
+
import "./index-C-P_hipv.mjs";
|
|
6
|
+
import "./index-BH8jQOdF.mjs";
|
|
7
|
+
import "./index-DBGE6yKw.mjs";
|
|
8
|
+
import "./index-u57CbuAU2.mjs";
|
|
9
|
+
import "./index-g9EThkSg.mjs";
|
|
10
|
+
import "./index-DvW2eETV.mjs";
|
|
11
|
+
import "./index-BnzUumAC2.mjs";
|
|
12
|
+
import "./index-kpk9e3xM2.mjs";
|
|
13
|
+
import "./index-CLU39rUS2.mjs";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { a as TypographyProps } from "./index-DE5PtzPn.mjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/FormLabel/FormLabel.d.ts
|
|
4
|
+
interface FormLabelProps extends TypographyProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Appends a `*` indicator. Falls back to the FormControl `required` value. */
|
|
7
|
+
required?: boolean;
|
|
8
|
+
/** Target control id. Falls back to the FormControl id. */
|
|
9
|
+
htmlFor?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Renders a `<label>` linked to the control via `htmlFor`, reading the id and
|
|
13
|
+
* `required` flag from FormControl context. All Typography props pass through,
|
|
14
|
+
* so callers can restyle freely while keeping the wiring automatic.
|
|
15
|
+
*/
|
|
16
|
+
declare function FormLabel({ children, required, htmlFor, color, ...rest }: Readonly<FormLabelProps>): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { FormLabelProps as n, FormLabel as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
|
|
4
|
+
//#region src/Pagination/hooks/usePagination.d.ts
|
|
5
|
+
type PaginationItemType = 'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis';
|
|
6
|
+
/** One renderable pagination item — `Pagination` maps these onto `PaginationItem`s. */
|
|
7
|
+
interface UsePaginationItem {
|
|
8
|
+
type: PaginationItemType;
|
|
9
|
+
/** Target page for actionable items; `null` for ellipses. */
|
|
10
|
+
page: number | null;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isDisabled: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
interface UsePaginationProps {
|
|
16
|
+
/** Total number of pages. */
|
|
17
|
+
count: number;
|
|
18
|
+
/** Controlled current page (1-based). */
|
|
19
|
+
page?: number;
|
|
20
|
+
/** Uncontrolled initial page. Default: `1`. */
|
|
21
|
+
defaultPage?: number;
|
|
22
|
+
/** Pages always visible either side of the current page. Default: `1`. */
|
|
23
|
+
siblingCount?: number;
|
|
24
|
+
/** Pages always visible at the start and end. Default: `1`. */
|
|
25
|
+
boundaryCount?: number;
|
|
26
|
+
/** Disables every item. Default: `false`. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
shouldShowFirstButton?: boolean;
|
|
29
|
+
shouldShowLastButton?: boolean;
|
|
30
|
+
shouldHidePrevButton?: boolean;
|
|
31
|
+
shouldHideNextButton?: boolean;
|
|
32
|
+
/** Fired with the target page (1-based). */
|
|
33
|
+
onChange?: (page: number) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Headless pagination model — computes the item list (nav buttons, page numbers,
|
|
37
|
+
* ellipses) with selection, boundary disabling, and controlled/uncontrolled paging.
|
|
38
|
+
*/
|
|
39
|
+
declare function usePagination({ count, page: pageProp, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange }: UsePaginationProps): {
|
|
40
|
+
items: UsePaginationItem[];
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/Pagination/PaginationItem/PaginationItem.d.ts
|
|
44
|
+
type PaginationItemColor = PaletteColor;
|
|
45
|
+
type PaginationItemVariant = 'text' | 'outlined';
|
|
46
|
+
type PaginationItemShape = 'circular' | 'rounded';
|
|
47
|
+
type PaginationItemSize = keyof Theme['sizes'];
|
|
48
|
+
interface PaginationItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'type'>, index_d_exports.SpaceProps<Theme> {
|
|
49
|
+
/** What the item renders — a page number, a nav control, or a non-interactive ellipsis. */
|
|
50
|
+
type?: PaginationItemType;
|
|
51
|
+
/** The page number/content for `type="page"`. */
|
|
52
|
+
page?: ReactNode;
|
|
53
|
+
/** Active styling for the current page. Default: `false`. */
|
|
54
|
+
isSelected?: boolean;
|
|
55
|
+
/** Selected-state color — resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
56
|
+
color?: PaginationItemColor;
|
|
57
|
+
/** `text` — no border · `outlined` — stroked. Default: `'text'`. */
|
|
58
|
+
variant?: PaginationItemVariant;
|
|
59
|
+
/** Corner shape. Default: `'circular'`. */
|
|
60
|
+
shape?: PaginationItemShape;
|
|
61
|
+
/** Item dimensions and font size — resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
62
|
+
size?: PaginationItemSize;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
as?: ElementType;
|
|
65
|
+
}
|
|
66
|
+
declare function PaginationItem({ type, page, isSelected, color, variant, shape, size, as, ...rest }: Readonly<PaginationItemProps>): import("react").JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { PaginationItemSize as a, UsePaginationItem as c, PaginationItemShape as i, UsePaginationProps as l, PaginationItemColor as n, PaginationItemVariant as o, PaginationItemProps as r, PaginationItemType as s, PaginationItem as t, usePagination as u };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-DASvoACZ.cjs";
|
|
3
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
|
+
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
6
|
+
type ButtonGroupRadius = keyof Theme['radii'];
|
|
7
|
+
interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, index_d_exports.SpaceProps<Theme> {
|
|
8
|
+
/** Visual style for all child buttons. Default: `'outlined'`. */
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
/** Color palette for all child buttons — resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
11
|
+
color?: ButtonColor;
|
|
12
|
+
/** Density for all child buttons — resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
13
|
+
size?: ButtonSize;
|
|
14
|
+
/** Layout flow direction. Default: `'horizontal'`. */
|
|
15
|
+
orientation?: ButtonGroupOrientation;
|
|
16
|
+
/** Group corner radius — rounds the group's outer corners only. Resolves against `theme.radii`. Default: 'md', overridable via `theme.defaults.borderRadius`. */
|
|
17
|
+
borderRadius?: ButtonGroupRadius;
|
|
18
|
+
/** Disables all child buttons. Default: `false`. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Group fills its container; children share the width. Default: `false`. */
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
as?: ElementType;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Groups related `Button` immediate children into a visually joined cluster and
|
|
26
|
+
* broadcasts `variant` / `color` / `size` / `disabled` / `fullWidth` to them via
|
|
27
|
+
* `ButtonGroupContext` (explicit props on a child win).
|
|
28
|
+
*/
|
|
29
|
+
declare function ButtonGroup({ variant, color, size, orientation, borderRadius, disabled, fullWidth, as, children, ...rest }: Readonly<ButtonGroupProps>): import("react").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/ButtonGroup/ButtonGroupContext.d.ts
|
|
32
|
+
/** Group-wide defaults provided by `ButtonGroup` and consumed by `Button` (explicit props win). */
|
|
33
|
+
interface ButtonGroupContextValue {
|
|
34
|
+
variant?: ButtonVariant;
|
|
35
|
+
color?: ButtonColor;
|
|
36
|
+
size?: ButtonSize;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
fullWidth?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const ButtonGroupContext: import("react").Context<ButtonGroupContextValue>;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ButtonGroupProps as a, ButtonGroupOrientation as i, ButtonGroupContextValue as n, ButtonGroupRadius as o, ButtonGroup as r, ButtonGroupContext as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { l as PaletteColor, n as ButtonVariants } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
//#region src/Button/Button.d.ts
|
|
5
|
+
/** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
|
|
6
|
+
type ButtonVariant = keyof ButtonVariants;
|
|
7
|
+
type ButtonColor = PaletteColor;
|
|
8
|
+
type ButtonSize = keyof Theme['sizes'];
|
|
9
|
+
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
10
|
+
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
11
|
+
/** Valid values for the gap prop — resolves against theme.space. */
|
|
12
|
+
type GapToken = keyof Theme['space'];
|
|
13
|
+
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
|
|
14
|
+
/** Visual style — filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
/** Color palette — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
17
|
+
color?: ButtonColor;
|
|
18
|
+
/** Size token — controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
/** Gap between icon and label — resolves against theme.space. Default: `1` (8px). */
|
|
21
|
+
gap?: GapToken;
|
|
22
|
+
/** Icon rendered before the label. */
|
|
23
|
+
startIcon?: ReactNode;
|
|
24
|
+
/** Icon rendered after the label. */
|
|
25
|
+
endIcon?: ReactNode;
|
|
26
|
+
/** Stretch button to full container width. */
|
|
27
|
+
fullWidth?: boolean;
|
|
28
|
+
/** Shows loading indicator and disables the button. */
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/** Custom loading element. Default: animated spinner. */
|
|
31
|
+
loadingIndicator?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Corner shape — sets the default `borderRadius`.
|
|
34
|
+
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
35
|
+
* The `borderRadius` prop always overrides this.
|
|
36
|
+
*/
|
|
37
|
+
shape?: ButtonShape;
|
|
38
|
+
/** Where the loading indicator appears. Default: `"center"`. */
|
|
39
|
+
loadingPosition?: ButtonLoadingPosition;
|
|
40
|
+
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
41
|
+
href?: string;
|
|
42
|
+
/** Anchor `target` — only meaningful when `href` is set. */
|
|
43
|
+
target?: string;
|
|
44
|
+
/** Anchor `rel` — only meaningful when `href` is set. */
|
|
45
|
+
rel?: string;
|
|
46
|
+
}
|
|
47
|
+
declare function Button({ variant, color, size, shape, gap, fontWeight, letterSpacing, startIcon, endIcon, fullWidth, loading, loadingIndicator, loadingPosition, children, disabled, href, ...rest }: Readonly<ButtonProps>): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { ButtonShape as a, GapToken as c, ButtonProps as i, ButtonColor as n, ButtonSize as o, ButtonLoadingPosition as r, ButtonVariant as s, Button as t };
|