@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,94 @@
|
|
|
1
|
+
import { o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
|
|
3
|
+
//#region src/Modal/useModal.d.ts
|
|
4
|
+
type ModalCloseReason = 'escapeKey' | 'backdropClick';
|
|
5
|
+
type EventHandlers = Record<string, ((event: SyntheticEvent) => void) | undefined>;
|
|
6
|
+
interface UseModalParameters {
|
|
7
|
+
/** Whether the modal is shown. */
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
/** Fired on Escape (top modal only) or backdrop click. */
|
|
10
|
+
onClose?: (event: KeyboardEvent | MouseEvent, reason: ModalCloseReason) => void;
|
|
11
|
+
/** Portal container, or a function returning one. Defaults to the document body. */
|
|
12
|
+
container?: HTMLElement | (() => HTMLElement | null) | null;
|
|
13
|
+
/** Disable body scroll-lock while open. */
|
|
14
|
+
disableScrollLock?: boolean;
|
|
15
|
+
/** Skip `aria-hidden` on background siblings (for non-modal popovers). */
|
|
16
|
+
disableAriaHidden?: boolean;
|
|
17
|
+
/** Forwarded ref for the modal root element. */
|
|
18
|
+
rootRef?: Ref<Element>;
|
|
19
|
+
}
|
|
20
|
+
interface UseModalReturnValue {
|
|
21
|
+
getRootProps: (otherHandlers?: EventHandlers) => Record<string, unknown>;
|
|
22
|
+
getBackdropProps: (otherHandlers?: EventHandlers) => Record<string, unknown>;
|
|
23
|
+
rootRef: RefCallback<Element> | null;
|
|
24
|
+
portalRef: (node: HTMLElement | null) => void;
|
|
25
|
+
isTopModal: () => boolean;
|
|
26
|
+
}
|
|
27
|
+
declare function useModal(parameters: UseModalParameters): UseModalReturnValue;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/Modal/Modal.d.ts
|
|
30
|
+
type ModalScroll = 'paper' | 'body';
|
|
31
|
+
interface ModalProps {
|
|
32
|
+
/** If true, the modal is shown. */
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
/** A single content element. */
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
/** Fired on Escape (top modal only) or backdrop click. */
|
|
37
|
+
onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
|
|
38
|
+
/** Render the dimmed backdrop. Default: true. */
|
|
39
|
+
hasBackdrop?: boolean;
|
|
40
|
+
/** Keep the children mounted while closed. Default: false. */
|
|
41
|
+
shouldKeepMounted?: boolean;
|
|
42
|
+
/** Portal the modal into `portalContainer`. Default: true. */
|
|
43
|
+
shouldUsePortal?: boolean;
|
|
44
|
+
/** Portal target, or a function returning one. Defaults to the document body. */
|
|
45
|
+
portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
|
|
46
|
+
/** Lock body scroll while open. Default: true. */
|
|
47
|
+
shouldLockScroll?: boolean;
|
|
48
|
+
/** Skip `aria-hidden` on background content — for non-modal popovers whose trigger stays focused. Default: false. */
|
|
49
|
+
disableAriaHidden?: boolean;
|
|
50
|
+
/** Move focus into the modal on open. Default: true. */
|
|
51
|
+
shouldAutoFocus?: boolean;
|
|
52
|
+
/** Trap Tab focus within the modal. Default: true. */
|
|
53
|
+
shouldTrapFocus?: boolean;
|
|
54
|
+
/** Pull focus back into the modal whenever it escapes. Default: true. */
|
|
55
|
+
shouldEnforceFocus?: boolean;
|
|
56
|
+
/** Restore focus to the trigger on close. Default: true. */
|
|
57
|
+
shouldRestoreFocus?: boolean;
|
|
58
|
+
/** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
|
|
59
|
+
scroll?: ModalScroll;
|
|
60
|
+
/** Stacking layer from `theme.zOrder`. Default: 'modal'. */
|
|
61
|
+
layer?: keyof Theme['zOrder'];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @description Accessible overlay primitive: portals its content, dims the page,
|
|
65
|
+
* traps focus, locks scroll, and closes on Escape or backdrop click. The base for
|
|
66
|
+
* higher-level overlays such as Drawer.
|
|
67
|
+
*/
|
|
68
|
+
declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer }: Readonly<ModalProps>): import("react").JSX.Element | null;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/Modal/ModalManager.d.ts
|
|
71
|
+
/** A modal tracked by the manager: its portal mount node and its root element. */
|
|
72
|
+
interface ManagedModal {
|
|
73
|
+
mount: Element;
|
|
74
|
+
modalRef: Element;
|
|
75
|
+
}
|
|
76
|
+
interface ManagedModalProps {
|
|
77
|
+
disableScrollLock?: boolean;
|
|
78
|
+
}
|
|
79
|
+
declare function ariaHidden(element: Element, hide: boolean): void;
|
|
80
|
+
/**
|
|
81
|
+
* Tracks every open modal and the containers they live in. A single shared
|
|
82
|
+
* instance coordinates stacking (`isTopModal`), scroll-lock, and `aria-hidden`
|
|
83
|
+
* on background siblings so assistive tech only sees the active modal.
|
|
84
|
+
*/
|
|
85
|
+
declare class ModalManager {
|
|
86
|
+
private readonly modals;
|
|
87
|
+
private readonly containers;
|
|
88
|
+
add(modal: ManagedModal, container: HTMLElement, disableAriaHidden?: boolean): number;
|
|
89
|
+
mount(modal: ManagedModal, props: ManagedModalProps): void;
|
|
90
|
+
remove(modal: ManagedModal, ariaHiddenState?: boolean): number;
|
|
91
|
+
isTopModal(modal: ManagedModal): boolean;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { Modal as a, ModalCloseReason as c, useModal as d, ariaHidden as i, UseModalParameters as l, ManagedModalProps as n, ModalProps as o, ModalManager as r, ModalScroll as s, ManagedModal as t, UseModalReturnValue as u };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { CSSProperties, HTMLAttributes } from "react";
|
|
3
|
+
//#region src/View/View.d.ts
|
|
4
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
5
|
+
type ViewColorToken = keyof Theme['text'];
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type ViewBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
9
|
+
type ViewBorderColorToken = keyof Theme['border'];
|
|
10
|
+
/** Valid values for the borderWidth prop — derived from theme.borderWidths keys. */
|
|
11
|
+
type ViewBorderWidthToken = keyof Theme['borderWidths'];
|
|
12
|
+
/** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
|
|
13
|
+
type ViewBorderRadiusToken = keyof Theme['radii'] | `${number}px`;
|
|
14
|
+
interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.TypographyProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderWidth' | 'borderRadius'>, index_d_exports.PositionProps<Theme> {
|
|
15
|
+
bg?: ViewBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: ViewBorderColorToken;
|
|
18
|
+
/** Resolves against theme.borderWidths — none · thin · base · thick */
|
|
19
|
+
borderWidth?: ViewBorderWidthToken;
|
|
20
|
+
/** Theme tokens: sq · sm · md · lg. Also accepts raw CSS pixel values e.g. '6px', '9999px'. */
|
|
21
|
+
borderRadius?: ViewBorderRadiusToken;
|
|
22
|
+
opacity?: number;
|
|
23
|
+
cursor?: CSSProperties['cursor'];
|
|
24
|
+
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
25
|
+
aspectRatio?: CSSProperties['aspectRatio'];
|
|
26
|
+
/** CSS order for flex/grid item placement. Accepts responsive arrays. */
|
|
27
|
+
order?: index_d_exports.FlexboxProps<Theme>['order'];
|
|
28
|
+
}
|
|
29
|
+
declare const View: import("@emotion/styled").StyledComponent<{
|
|
30
|
+
theme?: Theme;
|
|
31
|
+
as?: React.ElementType;
|
|
32
|
+
} & ViewProps, import("react").DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ViewBorderWidthToken as a, ViewBorderRadiusToken as i, ViewBackgroundToken as n, ViewColorToken as o, ViewBorderColorToken as r, ViewProps as s, View 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/TableBody/TableBody.d.ts
|
|
4
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
5
|
+
type TableBodyColorToken = keyof Theme['text'];
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type TableBodyBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
9
|
+
type TableBodyBorderColorToken = keyof Theme['border'];
|
|
10
|
+
interface TableBodyProps 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?: TableBodyColorToken;
|
|
13
|
+
/** Resolves against theme.background */
|
|
14
|
+
bg?: TableBodyBackgroundToken;
|
|
15
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
16
|
+
borderColor?: TableBodyBorderColorToken;
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
}
|
|
19
|
+
declare function TableBody({ as, children, ...rest }: Readonly<TableBodyProps>): import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { TableBodyProps as a, TableBodyColorToken as i, TableBodyBackgroundToken as n, TableBodyBorderColorToken as r, TableBody as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./index-Dtzj8X58.cjs";
|
|
2
|
+
import "./index-8dzWTpFp.cjs";
|
|
3
|
+
import "./TableContext-2qH7XYJB.cjs";
|
|
4
|
+
import "./index-CM_KCTee.cjs";
|
|
5
|
+
import "./index-GVsFY00r.cjs";
|
|
6
|
+
import "./index-4rC2j7fR.cjs";
|
|
7
|
+
import "./index-DeJWkpf9.cjs";
|
|
8
|
+
import "./index-g-9DZ_KQ.cjs";
|
|
9
|
+
import "./index-CDcGTGR4.cjs";
|
|
10
|
+
import "./index-CcYSvIJi.cjs";
|
|
11
|
+
import "./index-DSCMXFTn.cjs";
|
|
12
|
+
import "./index-BlfIbAMs.cjs";
|
|
13
|
+
import "./index-CT9uGKrs.cjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { i as TablePaginationState, n as TableSortMap } from "./useTableSort--XMWjujs.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
|
|
28
|
+
export { TableControlProps as n, TableControl as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
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,45 @@
|
|
|
1
|
+
import { o as TableCellProps } from "./index-BH8jQOdF.mjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "./index-BnzUumAC2.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
|
|
45
|
+
export { TablePaginationDisplayedRowsInfo as n, TablePaginationProps as r, TablePagination as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { CSSProperties, HTMLAttributes } from "react";
|
|
3
|
+
//#region src/View/View.d.ts
|
|
4
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
5
|
+
type ViewColorToken = keyof Theme['text'];
|
|
6
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
|
+
type ViewBackgroundToken = keyof Theme['background'];
|
|
8
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
9
|
+
type ViewBorderColorToken = keyof Theme['border'];
|
|
10
|
+
/** Valid values for the borderWidth prop — derived from theme.borderWidths keys. */
|
|
11
|
+
type ViewBorderWidthToken = keyof Theme['borderWidths'];
|
|
12
|
+
/** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
|
|
13
|
+
type ViewBorderRadiusToken = keyof Theme['radii'] | `${number}px`;
|
|
14
|
+
interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.TypographyProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderWidth' | 'borderRadius'>, index_d_exports.PositionProps<Theme> {
|
|
15
|
+
bg?: ViewBackgroundToken;
|
|
16
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
17
|
+
borderColor?: ViewBorderColorToken;
|
|
18
|
+
/** Resolves against theme.borderWidths — none · thin · base · thick */
|
|
19
|
+
borderWidth?: ViewBorderWidthToken;
|
|
20
|
+
/** Theme tokens: sq · sm · md · lg. Also accepts raw CSS pixel values e.g. '6px', '9999px'. */
|
|
21
|
+
borderRadius?: ViewBorderRadiusToken;
|
|
22
|
+
opacity?: number;
|
|
23
|
+
cursor?: CSSProperties['cursor'];
|
|
24
|
+
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
25
|
+
aspectRatio?: CSSProperties['aspectRatio'];
|
|
26
|
+
/** CSS order for flex/grid item placement. Accepts responsive arrays. */
|
|
27
|
+
order?: index_d_exports.FlexboxProps<Theme>['order'];
|
|
28
|
+
}
|
|
29
|
+
declare const View: import("@emotion/styled").StyledComponent<{
|
|
30
|
+
theme?: Theme;
|
|
31
|
+
as?: React.ElementType;
|
|
32
|
+
} & ViewProps, import("react").DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ViewBorderWidthToken as a, ViewBorderRadiusToken as i, ViewBackgroundToken as n, ViewColorToken as o, ViewBorderColorToken as r, ViewProps as s, View as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { i as TablePaginationState, n as TableSortMap } from "./useTableSort-CpDs4cGq.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
|
|
28
|
+
export { TableControlProps as n, TableControl as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { o as Theme } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { n as FlexProps } from "./index-B1rCD6Oo.cjs";
|
|
3
|
+
import { CSSProperties, ElementType } from "react";
|
|
4
|
+
//#region src/Paper/Paper.d.ts
|
|
5
|
+
type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
6
|
+
interface PaperProps extends FlexProps {
|
|
7
|
+
/** Shadow depth — 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
|
|
8
|
+
elevation?: PaperElevation;
|
|
9
|
+
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
10
|
+
aspectRatio?: CSSProperties['aspectRatio'];
|
|
11
|
+
/** CSS transition for surface animations (e.g. hover elevation change). */
|
|
12
|
+
transition?: CSSProperties['transition'];
|
|
13
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
14
|
+
borderColor?: keyof Theme['border'];
|
|
15
|
+
/** Resolves against theme.borderWidths — none · thin · base · thick */
|
|
16
|
+
borderWidth?: keyof Theme['borderWidths'];
|
|
17
|
+
/** CSS border-style value (e.g. 'solid', 'dashed'). */
|
|
18
|
+
borderStyle?: CSSProperties['borderStyle'];
|
|
19
|
+
/** Renders the surface as a different element (e.g. 'section'). */
|
|
20
|
+
as?: ElementType;
|
|
21
|
+
}
|
|
22
|
+
declare function Paper({ elevation, p, bg, borderRadius, ...rest }: Readonly<PaperProps>): import("react").JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PaperElevation as n, PaperProps as r, Paper as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { s as ViewProps } from "./index-pX7tBQdJ.mjs";
|
|
3
|
+
//#region src/Flex/Flex.d.ts
|
|
4
|
+
/** Valid values for the gap prop — derived from theme.space keys. */
|
|
5
|
+
type GapToken = keyof Theme['space'];
|
|
6
|
+
interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {
|
|
7
|
+
/** Resolves against theme.space — maps to CSS gap. Accepts responsive arrays. */
|
|
8
|
+
gap?: index_d_exports.ResponsiveValue<GapToken>;
|
|
9
|
+
}
|
|
10
|
+
declare const Flex: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
} & FlexProps, {}, {}>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FlexProps as n, GapToken as r, Flex as t };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_src = require("./src-BiocWFSR.cjs");
|
|
3
|
+
let _emotion_react = require("@emotion/react");
|
|
4
|
+
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
5
|
+
Object.defineProperty(exports, "CacheProvider", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _emotion_react.CacheProvider;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "EmotionThemeContext", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return _emotion_react.ThemeContext;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "EmotionThemeProvider", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return _emotion_react.ThemeProvider;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "Global", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return _emotion_react.Global;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "createShouldForwardProp", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function() {
|
|
32
|
+
return _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "css", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function() {
|
|
38
|
+
return _emotion_react.css;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "keyframes", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _emotion_react.keyframes;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "props", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function() {
|
|
50
|
+
return _soroush_tech_styled_system_should_forward_prop.props;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
exports.styled = require_src.styled;
|
|
54
|
+
Object.defineProperty(exports, "useTheme", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function() {
|
|
57
|
+
return _emotion_react.useTheme;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var _soroush_tech_styled_system = require("@soroush.tech/styled-system");
|
|
61
|
+
Object.keys(_soroush_tech_styled_system).forEach(function(k) {
|
|
62
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function() {
|
|
65
|
+
return _soroush_tech_styled_system[k];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as Global, c as css, d as props, f as useTheme, i as EmotionThemeProvider, m as styled, n as CacheProvider, o as Theme, p as ThemeCustomizationOptions, r as EmotionThemeContext, s as createShouldForwardProp, t as CSSObject, u as keyframes } from "./index-Bihpwn75.cjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
|
|
3
|
+
export * from "@soroush.tech/styled-system";
|
|
4
|
+
export { type CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as Global, c as css, d as props, f as useTheme, i as EmotionThemeProvider, m as styled, n as CacheProvider, o as Theme, p as ThemeCustomizationOptions, r as EmotionThemeContext, s as createShouldForwardProp, t as CSSObject, u as keyframes } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { l as PaletteColor } from "./themes-D1SAp3SL.mjs";
|
|
3
|
+
export * from "@soroush.tech/styled-system";
|
|
4
|
+
export { type CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as createShouldForwardProp, c as props, d as styled, i as Global, n as EmotionThemeContext, o as css, r as EmotionThemeProvider, s as keyframes, t as CacheProvider, u as useTheme } from "./src-DcNT2aIK.mjs";
|
|
2
|
+
export * from "@soroush.tech/styled-system";
|
|
3
|
+
export { CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, createShouldForwardProp, css, keyframes, props, styled, useTheme };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/utils/inputVariantStyles.ts
|
|
2
|
+
const inputVariantStyles = (0, require("@soroush.tech/styled-system").variant)({
|
|
3
|
+
prop: "variant",
|
|
4
|
+
variants: {
|
|
5
|
+
outlined: {
|
|
6
|
+
borderRadius: "sq",
|
|
7
|
+
borderWidth: "thin",
|
|
8
|
+
borderStyle: "solid"
|
|
9
|
+
},
|
|
10
|
+
default: {
|
|
11
|
+
borderRadius: "sq",
|
|
12
|
+
borderStyle: "none"
|
|
13
|
+
},
|
|
14
|
+
underline: {
|
|
15
|
+
borderRadius: "sq",
|
|
16
|
+
borderStyle: "none",
|
|
17
|
+
borderBottomWidth: "thin",
|
|
18
|
+
borderBottomStyle: "solid"
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
borderRadius: "sq",
|
|
22
|
+
borderStyle: "none"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, "inputVariantStyles", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function() {
|
|
30
|
+
return inputVariantStyles;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { variant } from "@soroush.tech/styled-system";
|
|
2
|
+
//#region src/utils/inputVariantStyles.ts
|
|
3
|
+
const inputVariantStyles = variant({
|
|
4
|
+
prop: "variant",
|
|
5
|
+
variants: {
|
|
6
|
+
outlined: {
|
|
7
|
+
borderRadius: "sq",
|
|
8
|
+
borderWidth: "thin",
|
|
9
|
+
borderStyle: "solid"
|
|
10
|
+
},
|
|
11
|
+
default: {
|
|
12
|
+
borderRadius: "sq",
|
|
13
|
+
borderStyle: "none"
|
|
14
|
+
},
|
|
15
|
+
underline: {
|
|
16
|
+
borderRadius: "sq",
|
|
17
|
+
borderStyle: "none",
|
|
18
|
+
borderBottomWidth: "thin",
|
|
19
|
+
borderBottomStyle: "solid"
|
|
20
|
+
},
|
|
21
|
+
text: {
|
|
22
|
+
borderRadius: "sq",
|
|
23
|
+
borderStyle: "none"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { inputVariantStyles as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __exportAll = (all, no_symbols) => {
|
|
7
|
+
let target = {};
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
return target;
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
|
+
key = keys[i];
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: ((k) => from[k]).bind(null, key),
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
+
//#endregion
|
|
27
|
+
export { __reExport as n, __exportAll as t };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function() {
|
|
36
|
+
return __exportAll;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "__reExport", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function() {
|
|
42
|
+
return __reExport;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "__toESM", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function() {
|
|
48
|
+
return __toESM;
|
|
49
|
+
}
|
|
50
|
+
});
|