@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,46 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { t as TableCellPadding } from "./TableContext-2qH7XYJB.mjs";
|
|
3
|
+
import { ElementType, ThHTMLAttributes } from "react";
|
|
4
|
+
//#region src/Table/TableSectionContext.d.ts
|
|
5
|
+
/** The table section a cell lives in — drives `TableCell`'s th/td element resolution. */
|
|
6
|
+
type TableSection = 'head' | 'body' | 'footer';
|
|
7
|
+
declare const TableSectionContext: import("react").Context<TableSection | undefined>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/Table/TableCell/TableCell.d.ts
|
|
10
|
+
/** Cell type — inherited from the enclosing section, overridable per cell. */
|
|
11
|
+
type TableCellVariant = TableSection;
|
|
12
|
+
type TableCellAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
13
|
+
type TableCellSortDirection = 'asc' | 'desc';
|
|
14
|
+
/** Valid values for the color prop — derived from theme.text keys. */
|
|
15
|
+
type TableCellColorToken = keyof Theme['text'];
|
|
16
|
+
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
17
|
+
type TableCellBackgroundToken = keyof Theme['background'];
|
|
18
|
+
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
19
|
+
type TableCellBorderColorToken = keyof Theme['border'];
|
|
20
|
+
interface TableCellProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'color' | 'align'>, index_d_exports.SpaceProps<Theme>, index_d_exports.TypographyProps<Theme>, Omit<index_d_exports.BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
21
|
+
/** Resolves against theme.text */
|
|
22
|
+
color?: TableCellColorToken;
|
|
23
|
+
/** Resolves against theme.background */
|
|
24
|
+
bg?: TableCellBackgroundToken;
|
|
25
|
+
/** Resolves against theme.border — light · primary · dark */
|
|
26
|
+
borderColor?: TableCellBorderColorToken;
|
|
27
|
+
/** Cell type — overrides the enclosing `TableHead`/`TableBody`/`TableFooter` section. */
|
|
28
|
+
variant?: TableCellVariant;
|
|
29
|
+
/** Text alignment of the cell content. Numbers should be right-aligned. Default: `'inherit'`. */
|
|
30
|
+
align?: TableCellAlign;
|
|
31
|
+
/** Cell density — overrides the `Table`'s `size`. Resolves against `theme.sizes`. */
|
|
32
|
+
size?: keyof Theme['sizes'];
|
|
33
|
+
/** Cell padding mode — overrides the `Table`'s `cellPadding`. `'none'` zeroes padding. */
|
|
34
|
+
cellPadding?: TableCellPadding;
|
|
35
|
+
/** Sets `aria-sort` on the cell — a11y only, pair with `TableSortLabel` for the control. */
|
|
36
|
+
sortDirection?: TableCellSortDirection;
|
|
37
|
+
/**
|
|
38
|
+
* Truncates overflowing text with an ellipsis — inherits the `Table`'s
|
|
39
|
+
* `hasEllipsis`. Needs a constrained width (e.g. `maxWidth`) to kick in.
|
|
40
|
+
*/
|
|
41
|
+
hasEllipsis?: boolean;
|
|
42
|
+
as?: ElementType;
|
|
43
|
+
}
|
|
44
|
+
declare function TableCell({ variant, align, size, cellPadding, sortDirection, hasEllipsis, scope, as, children, ...rest }: Readonly<TableCellProps>): import("react").JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { TableCellColorToken as a, TableCellVariant as c, TableCellBorderColorToken as i, TableSection as l, TableCellAlign as n, TableCellProps as o, TableCellBackgroundToken as r, TableCellSortDirection as s, TableCell as t, TableSectionContext as u };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { n as FlexProps } from "./index-z35LEYG8.mjs";
|
|
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,72 @@
|
|
|
1
|
+
import { l as index_d_exports } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { n as TextColorToken } from "./index-DE5PtzPn.mjs";
|
|
3
|
+
import { SVGProps } from "react";
|
|
4
|
+
//#region src/Icon/icons.d.ts
|
|
5
|
+
/** Registry of available icons, keyed by their asset file name. */
|
|
6
|
+
declare const icons: {
|
|
7
|
+
readonly account_tree: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
8
|
+
readonly ads_click: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
9
|
+
readonly analytics: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
10
|
+
readonly architecture: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
11
|
+
readonly arrow_back: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
12
|
+
readonly arrow_forward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
13
|
+
readonly arrow_upward: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
14
|
+
readonly check: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
15
|
+
readonly chevron_left: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
16
|
+
readonly chevron_right: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
17
|
+
readonly checklist: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
18
|
+
readonly cloud_done: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
19
|
+
readonly close: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
20
|
+
readonly code: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
21
|
+
readonly content_copy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
22
|
+
readonly cookie: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
23
|
+
readonly database: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
24
|
+
readonly desktop_windows: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
25
|
+
readonly dns: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
26
|
+
readonly expand_less: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
27
|
+
readonly expand_more: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
28
|
+
readonly external_link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
29
|
+
readonly first_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
30
|
+
readonly format_list_bulleted: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
31
|
+
readonly format_list_numbered: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
32
|
+
readonly format_quote: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
33
|
+
readonly grid_view: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
34
|
+
readonly groups: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
35
|
+
readonly hub: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
36
|
+
readonly image: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
37
|
+
readonly language: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
38
|
+
readonly last_page: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
39
|
+
readonly link: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
40
|
+
readonly lock: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
41
|
+
readonly menu: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
42
|
+
readonly neurology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
43
|
+
readonly psychology: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
44
|
+
readonly rebase_edit: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
45
|
+
readonly schema: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
46
|
+
readonly security: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
47
|
+
readonly settings_input_component: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
48
|
+
readonly smart_toy: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
49
|
+
readonly smartphone: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
50
|
+
readonly speed: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
51
|
+
readonly stacks: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
52
|
+
readonly table: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
53
|
+
readonly terminal: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
54
|
+
readonly visibility: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
55
|
+
readonly warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
56
|
+
readonly web_asset: (props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
57
|
+
};
|
|
58
|
+
/** Valid values for the Icon `name` prop — derived from the registry keys. */
|
|
59
|
+
type IconName = keyof typeof icons;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/Icon/Icon.d.ts
|
|
62
|
+
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color' | 'ref' | 'width' | 'height' | 'display' | 'overflow'>, index_d_exports.LayoutProps, index_d_exports.SpaceProps {
|
|
63
|
+
/** Registry key of the icon to render. */
|
|
64
|
+
name: IconName;
|
|
65
|
+
/** Resolves against theme.text — applied as `color`, which the SVG inherits via `currentColor`. */
|
|
66
|
+
color?: TextColorToken;
|
|
67
|
+
/** Sets both width and height (icons are square). */
|
|
68
|
+
size?: string | number;
|
|
69
|
+
}
|
|
70
|
+
declare function Icon({ name, color, size, ...rest }: Readonly<IconProps>): import("react").JSX.Element;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { icons as i, IconProps as n, IconName as r, Icon as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { s as ViewProps } from "./index-FwTocqhP.cjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/CodeBlock/CodeBlock.d.ts
|
|
4
|
+
interface CodeBlockProps extends ViewProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Fenced-code block: a horizontally scrollable, syntax-highlighted surface with a
|
|
9
|
+
* copy-to-clipboard button that sticks to the top-right while the block is in view.
|
|
10
|
+
*/
|
|
11
|
+
declare function CodeBlock({ children, ...rest }: Readonly<CodeBlockProps>): import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CodeBlockProps as n, CodeBlock as t };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { o as Theme } from "./index-Bihpwn75.cjs";
|
|
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,64 @@
|
|
|
1
|
+
import { l as PaletteColor } from "./themes-D81JYbqm.cjs";
|
|
2
|
+
import { CreateStyled, CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
|
+
import { CSSObject as CSSObject$1, CacheProvider, Global, PropsOf, Theme, Theme as Theme$1, ThemeContext as EmotionThemeContext, ThemeProvider as EmotionThemeProvider, css, keyframes, useTheme } from "@emotion/react";
|
|
4
|
+
import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
|
|
5
|
+
import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/styled.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Design-system additions to Emotion's styled options. A styled root that passes
|
|
10
|
+
* `name` becomes theme-customizable: `theme.components[name]` may contribute
|
|
11
|
+
* `styleOverrides` (per `slot`) and `variants`, appended after the component's
|
|
12
|
+
* own styles so the theme wins the cascade. Roots without `name` are plain
|
|
13
|
+
* Emotion — zero behavior change, zero cost.
|
|
14
|
+
*/
|
|
15
|
+
interface ThemeCustomizationOptions {
|
|
16
|
+
/** `theme.components` key enabling styleOverrides/variants for this root. */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** The `styleOverrides` slot this root maps to. Default: `'root'`. */
|
|
19
|
+
slot?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Styled-system prop parsers (`space`, `layout`, …) appended AFTER the theme
|
|
22
|
+
* override resolver, so per-instance props (`m`, `p`, `width`, …) always beat
|
|
23
|
+
* theme `styleOverrides`.
|
|
24
|
+
*/
|
|
25
|
+
systemProps?: ReadonlyArray<Interpolation<never>>;
|
|
26
|
+
/**
|
|
27
|
+
* Custom mapping from render props to applied override styles — replaces the
|
|
28
|
+
* default `styleOverrides[slot]` lookup (for prop-keyed override keys).
|
|
29
|
+
*/
|
|
30
|
+
overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
|
|
31
|
+
}
|
|
32
|
+
/** Overloads mirroring Emotion's, with the theme-customization options added. */
|
|
33
|
+
interface CreateThemedStyled extends CreateStyled {
|
|
34
|
+
<C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
|
|
35
|
+
theme?: Theme;
|
|
36
|
+
}, {}, {
|
|
37
|
+
ref?: Ref<InstanceType<C>>;
|
|
38
|
+
}>;
|
|
39
|
+
<C extends ComponentType<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
|
|
40
|
+
theme?: Theme;
|
|
41
|
+
}>;
|
|
42
|
+
<C extends ComponentType<ComponentProps<C>>>(component: C, options?: StyledOptions<ComponentProps<C>> & ThemeCustomizationOptions): CreateStyledComponent<PropsOf<C> & {
|
|
43
|
+
theme?: Theme;
|
|
44
|
+
}>;
|
|
45
|
+
<Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] & string = keyof JSX.IntrinsicElements[Tag] & string>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<{
|
|
46
|
+
theme?: Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
|
+
}, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>>;
|
|
49
|
+
<Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]> & ThemeCustomizationOptions): CreateStyledComponent<{
|
|
50
|
+
theme?: Theme;
|
|
51
|
+
as?: React.ElementType;
|
|
52
|
+
}, JSX.IntrinsicElements[Tag]>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The design system's `styled` — Emotion's styled plus theme-level component
|
|
56
|
+
* customization (`theme.components[name].styleOverrides` / `.variants`).
|
|
57
|
+
*/
|
|
58
|
+
declare const styled: CreateThemedStyled;
|
|
59
|
+
declare namespace index_d_exports {
|
|
60
|
+
export { CSSObject$1 as CSSObject, CacheProvider, EmotionThemeContext, EmotionThemeProvider, Global, PaletteColor, Theme$1 as Theme, ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled, useTheme };
|
|
61
|
+
}
|
|
62
|
+
import * as import__soroush_tech_styled_system from "@soroush.tech/styled-system";
|
|
63
|
+
//#endregion
|
|
64
|
+
export { Global as a, css as c, props as d, useTheme as f, EmotionThemeProvider as i, index_d_exports as l, styled as m, CacheProvider as n, Theme$1 as o, ThemeCustomizationOptions as p, EmotionThemeContext as r, createShouldForwardProp as s, CSSObject$1 as t, keyframes as u };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { o as TableCellProps } from "./index-4rC2j7fR.cjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "./index-DSCMXFTn.cjs";
|
|
3
|
+
import { ElementType, ReactNode } from "react";
|
|
4
|
+
//#region src/Table/TablePagination/TablePagination.d.ts
|
|
5
|
+
interface TablePaginationDisplayedRowsInfo {
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
count: number;
|
|
9
|
+
page: number;
|
|
10
|
+
}
|
|
11
|
+
interface TablePaginationProps extends Omit<TableCellProps, 'children' | 'variant' | 'align' | 'sortDirection'> {
|
|
12
|
+
/** Total number of rows; `-1` = unknown (server-side pagination). */
|
|
13
|
+
count: number;
|
|
14
|
+
/** Zero-based current page. */
|
|
15
|
+
page: number;
|
|
16
|
+
/** Rows per page; `-1` shows all rows. */
|
|
17
|
+
rowsPerPage: number;
|
|
18
|
+
/** Fired with the target zero-based page. */
|
|
19
|
+
onPageChange: (page: number) => void;
|
|
20
|
+
/** Fired with the new rows-per-page value. */
|
|
21
|
+
onRowsPerPageChange?: (rowsPerPage: number) => void;
|
|
22
|
+
/** Options for the rows-per-page selector. Fewer than two options hides it. */
|
|
23
|
+
rowsPerPageOptions?: Array<number | {
|
|
24
|
+
label: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}>;
|
|
27
|
+
/** Disables all controls. Default: `false`. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
shouldShowFirstButton?: boolean;
|
|
30
|
+
shouldShowLastButton?: boolean;
|
|
31
|
+
/** Label for the rows-per-page selector. Default: `'Rows per page:'`. */
|
|
32
|
+
rowsPerPageLabel?: ReactNode;
|
|
33
|
+
/** Renders the displayed-rows range. A sensible default (`1–10 of 57`) is provided. */
|
|
34
|
+
displayedRowsLabel?: (info: TablePaginationDisplayedRowsInfo) => ReactNode;
|
|
35
|
+
/** Accessible name per nav button. A sensible default is provided. */
|
|
36
|
+
getItemAriaLabel?: (type: TablePaginationActionType) => string;
|
|
37
|
+
as?: ElementType;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A `TableCell`-based pagination control for `TableFooter > TableRow`.
|
|
41
|
+
* Controlled only — the consumer owns `page` and `rowsPerPage`.
|
|
42
|
+
*/
|
|
43
|
+
declare function TablePagination({ count, page, rowsPerPage, onPageChange, onRowsPerPageChange, rowsPerPageOptions, disabled, shouldShowFirstButton, shouldShowLastButton, rowsPerPageLabel, displayedRowsLabel, getItemAriaLabel, colSpan, as, ...rest }: Readonly<TablePaginationProps>): import("react").JSX.Element;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { TablePaginationDisplayedRowsInfo as n, TablePaginationProps as r, TablePagination as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { a as PaginationItemSize } from "./index-CxSNNzBT2.mjs";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
4
|
+
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
5
|
+
interface TablePaginationActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Total number of rows; `-1` = unknown (server-side pagination). */
|
|
7
|
+
count: number;
|
|
8
|
+
/** Zero-based current page. */
|
|
9
|
+
page: number;
|
|
10
|
+
/** Rows per page; `-1` = all rows. */
|
|
11
|
+
rowsPerPage: number;
|
|
12
|
+
/** Fired with the target zero-based page. */
|
|
13
|
+
onPageChange: (page: number) => void;
|
|
14
|
+
/** Accessible name per nav button — important for screen readers. */
|
|
15
|
+
getItemAriaLabel: (type: TablePaginationActionType) => string;
|
|
16
|
+
/** Disables all buttons. Default: `false`. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
shouldShowFirstButton?: boolean;
|
|
19
|
+
shouldShowLastButton?: boolean;
|
|
20
|
+
/** Button density — resolves against `theme.sizes`. Default: `'sm'`. */
|
|
21
|
+
size?: PaginationItemSize;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The first / previous / next / last button cluster inside `TablePagination`.
|
|
25
|
+
* Composes `PaginationItem`'s nav types; boundary state is derived from
|
|
26
|
+
* `count` / `page` / `rowsPerPage`.
|
|
27
|
+
*/
|
|
28
|
+
declare function TablePaginationActions({ count, page, rowsPerPage, onPageChange, getItemAriaLabel, disabled, shouldShowFirstButton, shouldShowLastButton, size: sizeProp, ...rest }: Readonly<TablePaginationActionsProps>): import("react").JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { TablePaginationActions as n, TablePaginationActionsProps as r, TablePaginationActionType as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { s as ViewProps } from "./index-pX7tBQdJ.mjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/CodeBlock/CodeBlock.d.ts
|
|
4
|
+
interface CodeBlockProps extends ViewProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Fenced-code block: a horizontally scrollable, syntax-highlighted surface with a
|
|
9
|
+
* copy-to-clipboard button that sticks to the top-right while the block is in view.
|
|
10
|
+
*/
|
|
11
|
+
declare function CodeBlock({ children, ...rest }: Readonly<CodeBlockProps>): import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CodeBlockProps as n, CodeBlock as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
2
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-C0xMvDjL.mjs";
|
|
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,79 @@
|
|
|
1
|
+
import { l as index_d_exports, o as Theme } from "./index-Dm9HfgV6.mjs";
|
|
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,43 @@
|
|
|
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 { ChangeEvent, ReactNode } from "react";
|
|
4
|
+
//#region src/Checkbox/Checkbox.d.ts
|
|
5
|
+
type CheckboxColor = PaletteColor;
|
|
6
|
+
type CheckboxSize = keyof Theme['sizes'];
|
|
7
|
+
interface CheckboxProps extends index_d_exports.SpaceProps<Theme> {
|
|
8
|
+
/** Controlled checked state. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
/** Initial checked state for uncontrolled usage. */
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
/** Disables the checkbox. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Stroke/fill color. `'default'` resolves to `theme.text.secondary`. Default: `'default'`. */
|
|
15
|
+
color?: CheckboxColor;
|
|
16
|
+
/** Icon size. Default: `'medium'`. */
|
|
17
|
+
size?: CheckboxSize;
|
|
18
|
+
/** Stretches the root to `width: 100%`. Default: `false`. */
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
/** Displays the indeterminate state (dash icon). Takes priority over `checked`. */
|
|
21
|
+
indeterminate?: boolean;
|
|
22
|
+
/** Custom icon for the unchecked state. */
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/** Custom icon for the checked state. */
|
|
25
|
+
checkedIcon?: ReactNode;
|
|
26
|
+
/** Called when the user toggles the checkbox. */
|
|
27
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
|
+
/** Forwarded to the underlying `<input>` for label association. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** Marks the field as required in a form. */
|
|
31
|
+
required?: boolean;
|
|
32
|
+
name?: string;
|
|
33
|
+
value?: string | number | readonly string[];
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
'aria-labelledby'?: string;
|
|
38
|
+
'aria-describedby'?: string;
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
}
|
|
41
|
+
declare function Checkbox({ checked, defaultChecked, disabled: disabledProp, color: colorProp, size: sizeProp, fullWidth: fullWidthProp, indeterminate, icon, checkedIcon, onChange, id: idProp, required: requiredProp, name, value, children, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<CheckboxProps>): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { CheckboxSize as i, CheckboxColor as n, CheckboxProps as r, Checkbox 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/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 };
|