@soroush.tech/design-system 1.3.2 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -37
- package/dist/AppBar.cjs +5 -1
- package/dist/AppBar.d.cts +6 -6
- package/dist/AppBar.d.mts +6 -6
- package/dist/AppBar.mjs +5 -1
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +6 -6
- package/dist/Avatar.d.mts +6 -6
- package/dist/Avatar.mjs +2 -2
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Backdrop.mjs +1 -1
- package/dist/Button.cjs +2 -2
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +2 -2
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +1 -1
- package/dist/Card.cjs +3 -3
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +3 -3
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.d.cts +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +6 -6
- package/dist/CircularProgress.d.mts +6 -6
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +3 -3
- package/dist/Drawer.d.mts +3 -3
- package/dist/Drawer.mjs +2 -2
- package/dist/Flex.cjs +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +2 -2
- package/dist/Form.d.cts +5 -5
- package/dist/Form.d.mts +5 -5
- package/dist/Form.mjs +2 -2
- package/dist/FormControl.cjs +2 -2
- package/dist/FormControl.d.cts +8 -8
- package/dist/FormControl.d.mts +8 -8
- package/dist/FormControl.mjs +2 -2
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/FormLabel.mjs +1 -1
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.d.cts +1 -15
- package/dist/Grid.d.mts +1 -15
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-ByDvM-t1.cjs → Icon-CKLBJ7CC.cjs} +2 -2
- package/dist/{Icon-CU_nUmsU.mjs → Icon-CkQGOBmm.mjs} +2 -2
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +1 -1
- package/dist/Image.d.cts +3 -3
- package/dist/Image.d.mts +3 -3
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +5 -5
- package/dist/LinearProgress.d.mts +5 -5
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +2 -2
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +2 -2
- package/dist/MenuItem.cjs +3 -3
- package/dist/MenuItem.d.cts +9 -9
- package/dist/MenuItem.d.mts +9 -9
- package/dist/MenuItem.mjs +3 -3
- package/dist/{Modal-Bjfv7n4e.cjs → Modal-CApyh_V5.cjs} +2 -2
- package/dist/{Modal-Bv-mf8Fn.mjs → Modal-CYNcPk-2.mjs} +2 -2
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +3 -3
- package/dist/NativeSelect.d.cts +12 -12
- package/dist/NativeSelect.d.mts +12 -12
- package/dist/NativeSelect.mjs +3 -3
- package/dist/PageLayout/LayoutGrid.cjs +21 -0
- package/dist/PageLayout/LayoutGrid.d.cts +22 -0
- package/dist/PageLayout/LayoutGrid.d.mts +22 -0
- package/dist/PageLayout/LayoutGrid.mjs +20 -0
- package/dist/PageLayout/PageLayout.cjs +148 -0
- package/dist/PageLayout/PageLayout.d.cts +31 -0
- package/dist/PageLayout/PageLayout.d.mts +31 -0
- package/dist/PageLayout/PageLayout.mjs +147 -0
- package/dist/PageLayout.cjs +7 -0
- package/dist/PageLayout.d.cts +19 -0
- package/dist/PageLayout.d.mts +19 -0
- package/dist/PageLayout.mjs +4 -0
- package/dist/PageLayoutContext-DjJ1_7Xc.mjs +5 -0
- package/dist/PageLayoutContext-agXGhegE.cjs +9 -0
- package/dist/Pagination/PaginationItem.cjs +3 -3
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +3 -3
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +2 -2
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +2 -2
- package/dist/{Popover-CH3yI-j-.mjs → Popover-DWOrf7sy.mjs} +4 -4
- package/dist/{Popover-COoJ2p2I.cjs → Popover-Dz6h3A_9.cjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +7 -7
- package/dist/Popover.d.mts +7 -7
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.cjs +1 -1
- package/dist/Portal.d.cts +1 -1
- package/dist/Portal.d.mts +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Pressable.cjs +4 -4
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +4 -4
- package/dist/Quote.cjs +2 -2
- package/dist/Quote.d.cts +4 -4
- package/dist/Quote.d.mts +4 -4
- package/dist/Quote.mjs +2 -2
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +3 -3
- package/dist/Radio.d.mts +3 -3
- package/dist/Radio.mjs +1 -1
- package/dist/Select.cjs +4 -4
- package/dist/Select.d.cts +11 -11
- package/dist/Select.d.mts +11 -11
- package/dist/Select.mjs +4 -4
- package/dist/Sidebar/Sidebar.cjs +29 -10
- package/dist/Sidebar/Sidebar.d.cts +16 -13
- package/dist/Sidebar/Sidebar.d.mts +16 -13
- package/dist/Sidebar/Sidebar.mjs +30 -11
- package/dist/Sidebar/SidebarItem.cjs +5 -4
- package/dist/Sidebar/SidebarItem.d.cts +13 -13
- package/dist/Sidebar/SidebarItem.d.mts +13 -13
- package/dist/Sidebar/SidebarItem.mjs +5 -4
- package/dist/Sidebar.d.cts +1 -1
- package/dist/Sidebar.d.mts +1 -1
- package/dist/{SidebarContext-ao6lRfTX.d.cts → SidebarContext-B1lWrt77.d.cts} +4 -4
- package/dist/{SidebarContext-ao6lRfTX.d.mts → SidebarContext-B1lWrt77.d.mts} +4 -4
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +3 -3
- package/dist/Skeleton.d.mts +3 -3
- package/dist/Skeleton.mjs +1 -1
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.d.cts +5 -5
- package/dist/Switch.d.mts +5 -5
- package/dist/Switch.mjs +2 -2
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.d.cts +14 -14
- package/dist/Table/Table.d.mts +14 -14
- package/dist/Table/Table.mjs +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +6 -6
- package/dist/Table/TableBody.d.mts +6 -6
- package/dist/Table/TableBody.mjs +1 -1
- package/dist/Table/TableCell.cjs +1 -1
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +1 -1
- package/dist/Table/TableContainer.cjs +2 -2
- package/dist/Table/TableContainer.d.cts +4 -4
- package/dist/Table/TableContainer.d.mts +4 -4
- package/dist/Table/TableContainer.mjs +2 -2
- package/dist/Table/TableControl.cjs +1 -1
- package/dist/Table/TableControl.d.cts +7 -7
- package/dist/Table/TableControl.d.mts +7 -7
- package/dist/Table/TableControl.mjs +1 -1
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +6 -6
- package/dist/Table/TableFooter.d.mts +6 -6
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +6 -6
- package/dist/Table/TableHead.d.mts +6 -6
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +3 -3
- package/dist/Table/TablePagination.d.cts +4 -4
- package/dist/Table/TablePagination.d.mts +4 -4
- package/dist/Table/TablePagination.mjs +3 -3
- package/dist/Table/TablePaginationActions.cjs +2 -2
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +2 -2
- package/dist/Table/TableRow.cjs +1 -1
- package/dist/Table/TableRow.d.cts +7 -7
- package/dist/Table/TableRow.d.mts +7 -7
- package/dist/Table/TableRow.mjs +1 -1
- package/dist/Table/TableSortLabel.cjs +2 -2
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +2 -2
- package/dist/Table/hooks.cjs +5 -5
- package/dist/Table/hooks.d.cts +5 -5
- package/dist/Table/hooks.d.mts +5 -5
- package/dist/Table/hooks.mjs +5 -5
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-BoOxdk8p.d.cts → TableContext-DBOk01Xl.d.mts} +2 -2
- package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DRAhXvq3.d.cts} +2 -2
- package/dist/TextInput.cjs +2 -2
- package/dist/TextInput.d.cts +10 -10
- package/dist/TextInput.d.mts +10 -10
- package/dist/TextInput.mjs +2 -2
- package/dist/ToggleButton/ToggleButton.cjs +2 -2
- package/dist/ToggleButton/ToggleButton.d.cts +3 -3
- package/dist/ToggleButton/ToggleButton.d.mts +3 -3
- package/dist/ToggleButton/ToggleButton.mjs +2 -2
- package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -3
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/{ToggleButtonGroupContext-CqD-Afho.d.cts → ToggleButtonGroupContext-10jEsQdg.d.cts} +2 -2
- package/dist/{ToggleButtonGroupContext-CqD-Afho.d.mts → ToggleButtonGroupContext-10jEsQdg.d.mts} +2 -2
- package/dist/Typography.cjs +2 -2
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -2
- package/dist/View.cjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/engine.cjs +2 -2
- package/dist/engine.d.cts +3 -3
- package/dist/engine.d.mts +3 -3
- package/dist/engine.mjs +2 -2
- package/dist/{index-CrXLEJO4.d.mts → index-8mHoIUt5.d.mts} +8 -8
- package/dist/{index-DLUE7t3O.d.cts → index-B41OXLX8.d.mts} +4 -4
- package/dist/{index-X4STXeE2.d.cts → index-B6vxRNLt.d.cts} +14 -14
- package/dist/{index-BBWtMvkm.d.cts → index-B8KscJic.d.cts} +3 -3
- package/dist/{index-MsUtFRul.d.cts → index-BDD-L8uL.d.cts} +3 -3
- package/dist/{index-BW-9sqFG.d.cts → index-BGD4OzzG.d.cts} +6 -6
- package/dist/index-BJ5Tsf7u.d.cts +16 -0
- package/dist/{index-n2OyTMr6.d.mts → index-BMJ3tyIw.d.cts} +4 -4
- package/dist/{index-CbGfrKZi.d.mts → index-BNpkmtaM.d.mts} +6 -6
- package/dist/{index-CKz1lEdR.d.mts → index-BSR9zrAA.d.mts} +6 -6
- package/dist/index-BnFxdnEL.d.mts +16 -0
- package/dist/{index-BYYEoNec.d.cts → index-CCrocxBL.d.cts} +6 -6
- package/dist/{index-q9peil7T.d.mts → index-CEqa8xx8.d.mts} +7 -7
- package/dist/{index-CiShdd2j.d.cts → index-CLttbRhG.d.cts} +8 -8
- package/dist/{index-DfhMdqqI.d.mts → index-CVb5zbas.d.mts} +14 -14
- package/dist/{index-DEEHBUUZ.d.cts → index-Cjlax0-f.d.mts} +4 -4
- package/dist/{index-BoOs5h_b.d.mts → index-CoHrw2p7.d.mts} +3 -3
- package/dist/{index-CCfnnT2l.d.cts → index-CohgpyUj.d.cts} +7 -7
- package/dist/{index-CSXMCqrV.d.cts → index-CtrxW81j.d.cts} +8 -8
- package/dist/{index-m9jUR509.d.mts → index-CvWslVk6.d.cts} +9 -9
- package/dist/{index-3hPS6Lm8.d.mts → index-CzmA09Yf.d.mts} +8 -8
- package/dist/{index-uH0EeDBZ.d.cts → index-D4i9vrQM.d.mts} +12 -12
- package/dist/{index-DkPJUFzd.d.cts → index-DNNg9RoR.d.cts} +5 -5
- package/dist/{index-B0xTqpvt.d.mts → index-DPHwCZYf.d.cts} +4 -4
- package/dist/{index-2QPYJgCl.d.cts → index-DkJzi96w.d.cts} +7 -7
- package/dist/{index-D07y72Xr.d.mts → index-DsKd9VW5.d.mts} +7 -7
- package/dist/{index-CohsoGjZ.d.cts → index-DuefjNlC.d.mts} +7 -7
- package/dist/{index-DGku7hLP.d.mts → index-EYR0z1Qv.d.cts} +4 -4
- package/dist/{index-hcZwhQmR.d.mts → index-IEvuh6Cd.d.mts} +5 -5
- package/dist/{index-BAfSyQaP.d.mts → index-S3NZS-Qp.d.cts} +12 -12
- package/dist/{index-DxBKLmUS.d.mts → index-bN91IhZi.d.cts} +7 -7
- package/dist/{index-CTYZyQ2g.d.mts → index-qtKJ56yu.d.mts} +3 -3
- package/dist/{index-D_AwmCU5.d.cts → index-r2avCy1z.d.mts} +4 -4
- package/dist/{index-BPzvFTi5.d.cts → index-tv-TGYSG.d.mts} +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/layoutStyles-B4Z1K6HZ.cjs +67 -0
- package/dist/layoutStyles-f0ISNjsC.mjs +56 -0
- package/dist/{src-D3tHU94W.mjs → src-DLGYOJMh.mjs} +1 -1
- package/dist/{src-BJrcLd7P.cjs → src-DU81aGy9.cjs} +1 -1
- package/dist/style.cjs +1 -1
- package/dist/style.d.cts +2 -2
- package/dist/style.d.mts +2 -2
- package/dist/style.mjs +1 -1
- package/dist/{theme-Cudynq5K.mjs → theme-BQGlZoma.mjs} +53 -5
- package/dist/{theme-CleLAV6A.cjs → theme-BmEAXmwh.cjs} +64 -4
- package/dist/theme.cjs +3 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/{themes-CUV79qWU.d.cts → themes-9YNnlVyY.d.cts} +90 -21
- package/dist/{themes-CUV79qWU.d.mts → themes-9YNnlVyY.d.mts} +90 -21
- package/dist/{useTablePagination--XtCc2YL.d.cts → useTablePagination-CLoac5oX.d.cts} +6 -6
- package/dist/{useTablePagination-RgVhJs-7.d.mts → useTablePagination-RelVsdMR.d.mts} +6 -6
- package/package.json +15 -5
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as TableCellPadding } from "./TableContext-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-DBOk01Xl.mjs";
|
|
4
4
|
import { BorderProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ElementType, ThHTMLAttributes } from "react";
|
|
6
6
|
//#region src/Table/TableSectionContext.d.ts
|
|
7
|
-
/** The table section a cell lives in
|
|
7
|
+
/** The table section a cell lives in - drives `TableCell`'s th/td element resolution. */
|
|
8
8
|
type TableSection = 'head' | 'body' | 'footer';
|
|
9
9
|
declare const TableSectionContext: import("react").Context<TableSection | undefined>;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/Table/TableCell/TableCell.d.ts
|
|
12
|
-
/** Cell type
|
|
12
|
+
/** Cell type - inherited from the enclosing section, overridable per cell. */
|
|
13
13
|
type TableCellVariant = TableSection;
|
|
14
14
|
type TableCellAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
15
15
|
type TableCellSortDirection = 'asc' | 'desc';
|
|
16
|
-
/** Valid values for the color prop
|
|
16
|
+
/** Valid values for the color prop - derived from theme.text keys. */
|
|
17
17
|
type TableCellColorToken = keyof Theme['text'];
|
|
18
|
-
/** Valid values for the bg prop
|
|
18
|
+
/** Valid values for the bg prop - derived from theme.background keys. */
|
|
19
19
|
type TableCellBackgroundToken = keyof Theme['background'];
|
|
20
|
-
/** Valid values for the borderColor prop
|
|
20
|
+
/** Valid values for the borderColor prop - derived from theme.border keys. */
|
|
21
21
|
type TableCellBorderColorToken = keyof Theme['border'];
|
|
22
22
|
interface TableCellProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'color' | 'align'>, SpaceProps<Theme>, TypographyProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
23
23
|
/** Resolves against theme.text */
|
|
24
24
|
color?: TableCellColorToken;
|
|
25
25
|
/** Resolves against theme.background */
|
|
26
26
|
bg?: TableCellBackgroundToken;
|
|
27
|
-
/** Resolves against theme.border
|
|
27
|
+
/** Resolves against theme.border - light · primary · dark */
|
|
28
28
|
borderColor?: TableCellBorderColorToken;
|
|
29
|
-
/** Cell type
|
|
29
|
+
/** Cell type - overrides the enclosing `TableHead`/`TableBody`/`TableFooter` section. */
|
|
30
30
|
variant?: TableCellVariant;
|
|
31
31
|
/** Text alignment of the cell content. Numbers should be right-aligned. Default: `'inherit'`. */
|
|
32
32
|
align?: TableCellAlign;
|
|
33
|
-
/** Cell density
|
|
33
|
+
/** Cell density - overrides the `Table`'s `size`. Resolves against `theme.sizes`. */
|
|
34
34
|
size?: keyof Theme['sizes'];
|
|
35
|
-
/** Cell padding mode
|
|
35
|
+
/** Cell padding mode - overrides the `Table`'s `cellPadding`. `'none'` zeroes padding. */
|
|
36
36
|
cellPadding?: TableCellPadding;
|
|
37
|
-
/** Sets `aria-sort` on the cell
|
|
37
|
+
/** Sets `aria-sort` on the cell - a11y only, pair with `TableSortLabel` for the control. */
|
|
38
38
|
sortDirection?: TableCellSortDirection;
|
|
39
39
|
/**
|
|
40
|
-
* Truncates overflowing text with an ellipsis
|
|
40
|
+
* Truncates overflowing text with an ellipsis - inherits the `Table`'s
|
|
41
41
|
* `hasEllipsis`. Needs a constrained width (e.g. `maxWidth`) to kick in.
|
|
42
42
|
*/
|
|
43
43
|
hasEllipsis?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-CzmA09Yf.mjs";
|
|
2
|
+
import "./index-DsKd9VW5.mjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
5
5
|
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -12,13 +12,13 @@ interface TablePaginationActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
rowsPerPage: number;
|
|
13
13
|
/** Fired with the target zero-based page. */
|
|
14
14
|
onPageChange: (page: number) => void;
|
|
15
|
-
/** Accessible name per nav button
|
|
15
|
+
/** Accessible name per nav button - important for screen readers. */
|
|
16
16
|
getItemAriaLabel: (type: TablePaginationActionType) => string;
|
|
17
17
|
/** Disables all buttons. Default: `false`. */
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
shouldShowFirstButton?: boolean;
|
|
20
20
|
shouldShowLastButton?: boolean;
|
|
21
|
-
/** Button density
|
|
21
|
+
/** Button density - resolves against `theme.sizes`. Default: `'sm'`. */
|
|
22
22
|
size?: PaginationItemSize;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as ThemeComponents, S as Theme, k as ThemeDefaults } from "./themes-9YNnlVyY.mjs";
|
|
2
2
|
import { ComponentType, ReactNode } from "react";
|
|
3
3
|
//#region src/theme/ThemeProvider.d.ts
|
|
4
4
|
interface ThemeProviderProps {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
/**
|
|
7
|
-
* The active theme. Bring one theme, or as many as you like
|
|
7
|
+
* The active theme. Bring one theme, or as many as you like - switching
|
|
8
8
|
* between them is your state, not the provider's. Defaults to the built-in
|
|
9
9
|
* `baseTheme`.
|
|
10
10
|
*/
|
|
@@ -29,7 +29,7 @@ declare const themeDefault: <K extends keyof ThemeDefaults>(theme: Theme, key: K
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/theme/hooks/useTheme.d.ts
|
|
31
31
|
/**
|
|
32
|
-
* The active theme, typed as this package's own `Theme`
|
|
32
|
+
* The active theme, typed as this package's own `Theme` - Emotion is an
|
|
33
33
|
* internal implementation detail, never part of the public type surface.
|
|
34
34
|
*/
|
|
35
35
|
declare const useTheme: () => Theme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-CLttbRhG.cjs";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/Pagination/Pagination.d.ts
|
|
@@ -9,15 +9,15 @@ type PaginationVariant = PaginationItemVariant;
|
|
|
9
9
|
type PaginationShape = PaginationItemShape;
|
|
10
10
|
type PaginationSize = PaginationItemSize;
|
|
11
11
|
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'onChange'>, UsePaginationProps, SpaceProps<Theme> {
|
|
12
|
-
/** Selected-item color
|
|
12
|
+
/** Selected-item color - resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
13
13
|
color?: PaginationColor;
|
|
14
|
-
/** Item style
|
|
14
|
+
/** Item style - `text` or `outlined`. Default: `'text'`. */
|
|
15
15
|
variant?: PaginationVariant;
|
|
16
16
|
/** Item corner shape. Default: `'circular'`. */
|
|
17
17
|
shape?: PaginationShape;
|
|
18
|
-
/** Item density
|
|
18
|
+
/** Item density - resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
19
19
|
size?: PaginationSize;
|
|
20
|
-
/** Accessible name per item
|
|
20
|
+
/** Accessible name per item - important for screen readers. A sensible default is provided. */
|
|
21
21
|
getItemAriaLabel?: (type: PaginationItemType, page: number | null, isSelected: boolean) => string;
|
|
22
22
|
}
|
|
23
23
|
declare function Pagination({ count, page, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange, color, variant, shape, size, getItemAriaLabel, 'aria-label': ariaLabel, ...rest }: Readonly<PaginationProps>): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
4
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Pressable/Pressable.d.ts
|
|
@@ -11,7 +11,7 @@ type PressableFeedback = 'none' | 'opacity' | 'highlight';
|
|
|
11
11
|
type PressableColor = PaletteColor;
|
|
12
12
|
interface PressableProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, BorderProps<Theme>, TypographyProps<Theme> {
|
|
13
13
|
/**
|
|
14
|
-
* Element to render. Default: `'div'`
|
|
14
|
+
* Element to render. Default: `'div'` - which still behaves as a button
|
|
15
15
|
* (`role`, tab stop, Enter/Space) because a `<button>` may not legally contain
|
|
16
16
|
* links, buttons, or block-level content. Pass `'button'` for a native button
|
|
17
17
|
* when the content is phrasing-only, or any other tag you need.
|
|
@@ -19,25 +19,25 @@ interface PressableProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'color'
|
|
|
19
19
|
as?: ElementType;
|
|
20
20
|
/** Feedback shown while pressed. Default: `'none'`, overridable via `theme.components.Pressable.defaultProps`. */
|
|
21
21
|
feedback?: PressableFeedback;
|
|
22
|
-
/** Palette the `highlight` tint derives from
|
|
22
|
+
/** Palette the `highlight` tint derives from - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
23
23
|
color?: PressableColor;
|
|
24
24
|
/** Opacity held content fades to under `feedback="opacity"`. Default: `0.7`. */
|
|
25
25
|
activeOpacity?: number;
|
|
26
26
|
/** The URL to link to. If defined and `as` is unset, an `a` element is used. */
|
|
27
27
|
href?: string;
|
|
28
|
-
/** Anchor `target`
|
|
28
|
+
/** Anchor `target` - only meaningful when `href` is set. */
|
|
29
29
|
target?: string;
|
|
30
|
-
/** Anchor `rel`
|
|
30
|
+
/** Anchor `rel` - only meaningful when `href` is set. */
|
|
31
31
|
rel?: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* An unstyled clickable surface
|
|
34
|
+
* An unstyled clickable surface - button semantics (keyboard activation, focus
|
|
35
35
|
* ring, disabled state) with none of a button's looks, so it can wrap arbitrary
|
|
36
36
|
* content without changing its layout. Use it instead of an `onClick` on a
|
|
37
37
|
* `div`, which no keyboard or screen-reader user can reach.
|
|
38
38
|
*
|
|
39
39
|
* It renders a `div` by default, because `<button>` may not legally contain a
|
|
40
|
-
* link, another button, or block-level content
|
|
40
|
+
* link, another button, or block-level content - the shim gives that div a
|
|
41
41
|
* `role`, a tab stop, and Enter/Space activation, so it is announced and
|
|
42
42
|
* operated as a button either way. Pass `as="button"` for a native button, or
|
|
43
43
|
* `href` for an anchor; both skip the shim and let the browser do the work.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
4
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/View/View.d.ts
|
|
6
|
-
/** Valid values for the color prop
|
|
6
|
+
/** Valid values for the color prop - derived from theme.text keys. */
|
|
7
7
|
type ViewColorToken = keyof Theme['text'];
|
|
8
|
-
/** Valid values for the bg prop
|
|
8
|
+
/** Valid values for the bg prop - derived from theme.background keys. */
|
|
9
9
|
type ViewBackgroundToken = keyof Theme['background'];
|
|
10
|
-
/** Valid values for the borderColor prop
|
|
10
|
+
/** Valid values for the borderColor prop - derived from theme.border keys. */
|
|
11
11
|
type ViewBorderColorToken = keyof Theme['border'];
|
|
12
|
-
/** Valid values for the borderWidth prop
|
|
12
|
+
/** Valid values for the borderWidth prop - derived from theme.borderWidths keys. */
|
|
13
13
|
type ViewBorderWidthToken = keyof Theme['borderWidths'];
|
|
14
14
|
/** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
|
|
15
15
|
type ViewBorderRadiusToken = keyof Theme['radii'] | `${number}px`;
|
|
16
16
|
interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, TypographyProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps<Theme> {
|
|
17
17
|
bg?: ViewBackgroundToken;
|
|
18
|
-
/** Resolves against theme.border
|
|
18
|
+
/** Resolves against theme.border - light · primary · dark */
|
|
19
19
|
borderColor?: ViewBorderColorToken;
|
|
20
|
-
/** Resolves against theme.borderWidths
|
|
20
|
+
/** Resolves against theme.borderWidths - none · thin · base · thick */
|
|
21
21
|
borderWidth?: ViewBorderWidthToken;
|
|
22
22
|
/** Theme tokens: sq · sm · md · lg. Also accepts raw CSS pixel values e.g. '6px', '9999px'. */
|
|
23
23
|
borderRadius?: ViewBorderRadiusToken;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
|
|
5
5
|
//#region src/Pagination/hooks/usePagination.d.ts
|
|
6
6
|
type PaginationItemType = 'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis';
|
|
7
|
-
/** One renderable pagination item
|
|
7
|
+
/** One renderable pagination item - `Pagination` maps these onto `PaginationItem`s. */
|
|
8
8
|
interface UsePaginationItem {
|
|
9
9
|
type: PaginationItemType;
|
|
10
10
|
/** Target page for actionable items; `null` for ellipses. */
|
|
@@ -34,7 +34,7 @@ interface UsePaginationProps {
|
|
|
34
34
|
onChange?: (page: number) => void;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Headless pagination model
|
|
37
|
+
* Headless pagination model - computes the item list (nav buttons, page numbers,
|
|
38
38
|
* ellipses) with selection, boundary disabling, and controlled/uncontrolled paging.
|
|
39
39
|
*/
|
|
40
40
|
declare function usePagination({ count, page: pageProp, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange }: UsePaginationProps): {
|
|
@@ -47,19 +47,19 @@ type PaginationItemVariant = 'text' | 'outlined';
|
|
|
47
47
|
type PaginationItemShape = 'circular' | 'rounded';
|
|
48
48
|
type PaginationItemSize = keyof Theme['sizes'];
|
|
49
49
|
interface PaginationItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'type'>, SpaceProps<Theme> {
|
|
50
|
-
/** What the item renders
|
|
50
|
+
/** What the item renders - a page number, a nav control, or a non-interactive ellipsis. */
|
|
51
51
|
type?: PaginationItemType;
|
|
52
52
|
/** The page number/content for `type="page"`. */
|
|
53
53
|
page?: ReactNode;
|
|
54
54
|
/** Active styling for the current page. Default: `false`. */
|
|
55
55
|
isSelected?: boolean;
|
|
56
|
-
/** Selected-state color
|
|
56
|
+
/** Selected-state color - resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
57
57
|
color?: PaginationItemColor;
|
|
58
|
-
/** `text`
|
|
58
|
+
/** `text` - no border · `outlined` - stroked. Default: `'text'`. */
|
|
59
59
|
variant?: PaginationItemVariant;
|
|
60
60
|
/** Corner shape. Default: `'circular'`. */
|
|
61
61
|
shape?: PaginationItemShape;
|
|
62
|
-
/** Item dimensions and font size
|
|
62
|
+
/** Item dimensions and font size - resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
63
63
|
size?: PaginationItemSize;
|
|
64
64
|
disabled?: boolean;
|
|
65
65
|
as?: ElementType;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import { S as Theme, n as ButtonVariants, v as PaletteColor } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
4
3
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
|
+
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
5
5
|
//#region src/Button/Button.d.ts
|
|
6
|
-
/** Augmentable via the `ButtonVariants` interface
|
|
6
|
+
/** Augmentable via the `ButtonVariants` interface - style new values through `theme.components.Button.variants`. */
|
|
7
7
|
type ButtonVariant = keyof ButtonVariants;
|
|
8
8
|
type ButtonColor = PaletteColor;
|
|
9
9
|
type ButtonSize = keyof Theme['sizes'];
|
|
10
10
|
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
11
11
|
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
12
|
-
/** Valid values for the gap prop
|
|
12
|
+
/** Valid values for the gap prop - resolves against theme.space. */
|
|
13
13
|
type GapToken = keyof Theme['space'];
|
|
14
14
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, BorderProps<Theme>, TypographyProps<Theme> {
|
|
15
|
-
/** Visual style
|
|
15
|
+
/** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
16
16
|
variant?: ButtonVariant;
|
|
17
|
-
/** Color palette
|
|
17
|
+
/** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
18
18
|
color?: ButtonColor;
|
|
19
|
-
/** Size token
|
|
19
|
+
/** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
20
20
|
size?: ButtonSize;
|
|
21
|
-
/** Gap between icon and label
|
|
21
|
+
/** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
|
|
22
22
|
gap?: GapToken;
|
|
23
23
|
/** Icon rendered before the label. */
|
|
24
24
|
startIcon?: ReactNode;
|
|
@@ -31,7 +31,7 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'col
|
|
|
31
31
|
/** Custom loading element. Default: animated spinner. */
|
|
32
32
|
loadingIndicator?: ReactNode;
|
|
33
33
|
/**
|
|
34
|
-
* Corner shape
|
|
34
|
+
* Corner shape - sets the default `borderRadius`.
|
|
35
35
|
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
36
36
|
* The `borderRadius` prop always overrides this.
|
|
37
37
|
*/
|
|
@@ -40,9 +40,9 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'col
|
|
|
40
40
|
loadingPosition?: ButtonLoadingPosition;
|
|
41
41
|
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
42
42
|
href?: string;
|
|
43
|
-
/** Anchor `target`
|
|
43
|
+
/** Anchor `target` - only meaningful when `href` is set. */
|
|
44
44
|
target?: string;
|
|
45
|
-
/** Anchor `rel`
|
|
45
|
+
/** Anchor `rel` - only meaningful when `href` is set. */
|
|
46
46
|
rel?: string;
|
|
47
47
|
}
|
|
48
48
|
declare function Button({ variant, color, size, shape, gap, fontWeight, letterSpacing, startIcon, endIcon, fullWidth, loading, loadingIndicator, loadingPosition, children, disabled, href, ...rest }: Readonly<ButtonProps>): import("react").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DPHwCZYf.cjs";
|
|
4
4
|
import { ButtonHTMLAttributes } from "react";
|
|
5
5
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
7
7
|
type TableSortLabelDirection = 'asc' | 'desc';
|
|
8
8
|
interface TableSortLabelProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme> {
|
|
9
|
-
/** Marks the currently-sorted column
|
|
9
|
+
/** Marks the currently-sorted column - shows the icon fully opaque. Default: `false`. */
|
|
10
10
|
isActive?: boolean;
|
|
11
|
-
/** Current sort direction
|
|
11
|
+
/** Current sort direction - rotates the arrow. Default: `'asc'`. */
|
|
12
12
|
direction?: TableSortLabelDirection;
|
|
13
13
|
/**
|
|
14
14
|
* Hides the inactive sort icon, revealing it on hover/focus. Set `false` to
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as TextColorToken } from "./index-
|
|
2
|
-
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { n as TextColorToken } from "./index-bN91IhZi.cjs";
|
|
3
2
|
import { SVGProps } from "react";
|
|
3
|
+
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
//#region src/Icon/icons/AccountTree.d.ts
|
|
5
5
|
declare const SvgAccountTree: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
6
6
|
//#endregion
|
|
@@ -233,14 +233,14 @@ declare const icons: {
|
|
|
233
233
|
readonly zoom_in: typeof SvgZoomIn;
|
|
234
234
|
readonly zoom_out: typeof SvgZoomOut;
|
|
235
235
|
};
|
|
236
|
-
/** Valid values for the Icon `name` prop
|
|
236
|
+
/** Valid values for the Icon `name` prop - derived from the registry keys. */
|
|
237
237
|
type IconName = keyof typeof icons;
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region src/Icon/Icon.d.ts
|
|
240
240
|
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color' | 'ref' | 'width' | 'height' | 'display' | 'overflow'>, LayoutProps, SpaceProps {
|
|
241
241
|
/** Registry key of the icon to render. */
|
|
242
242
|
name: IconName;
|
|
243
|
-
/** Resolves against theme.text
|
|
243
|
+
/** Resolves against theme.text - applied as `color`, which the SVG inherits via `currentColor`. */
|
|
244
244
|
color?: TextColorToken;
|
|
245
245
|
/** Sets both width and height (icons are square). */
|
|
246
246
|
size?: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
2
|
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
3
|
import { PropsOf, css, keyframes } from "@emotion/react";
|
|
4
4
|
import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
|
|
@@ -9,7 +9,7 @@ import { createShouldForwardProp, props } from "@soroush.tech/styled-system/shou
|
|
|
9
9
|
* `name` becomes theme-customizable: `theme.components[name]` may contribute
|
|
10
10
|
* `styleOverrides` (per `slot`) and `variants`, appended after the component's
|
|
11
11
|
* own styles so the theme wins the cascade. Roots without `name` are plain
|
|
12
|
-
* Emotion
|
|
12
|
+
* Emotion - zero behavior change, zero cost.
|
|
13
13
|
*/
|
|
14
14
|
interface ThemeCustomizationOptions {
|
|
15
15
|
/** `theme.components` key enabling styleOverrides/variants for this root. */
|
|
@@ -17,19 +17,19 @@ interface ThemeCustomizationOptions {
|
|
|
17
17
|
/** The `styleOverrides` slot this root maps to. Default: `'root'`. */
|
|
18
18
|
slot?: string;
|
|
19
19
|
/**
|
|
20
|
-
* Styled-system prop parsers (`space`, `layout`,
|
|
21
|
-
* override resolver, so per-instance props (`m`, `p`, `width`,
|
|
20
|
+
* Styled-system prop parsers (`space`, `layout`, ...) appended AFTER the theme
|
|
21
|
+
* override resolver, so per-instance props (`m`, `p`, `width`, ...) always beat
|
|
22
22
|
* theme `styleOverrides`.
|
|
23
23
|
*/
|
|
24
24
|
systemProps?: ReadonlyArray<Interpolation<never>>;
|
|
25
25
|
/**
|
|
26
|
-
* Custom mapping from render props to applied override styles
|
|
26
|
+
* Custom mapping from render props to applied override styles - replaces the
|
|
27
27
|
* default `styleOverrides[slot]` lookup (for prop-keyed override keys).
|
|
28
28
|
*/
|
|
29
29
|
overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* The `styled.div`, `styled.span`,
|
|
32
|
+
* The `styled.div`, `styled.span`, ... tag shorthands - mirrors Emotion's own
|
|
33
33
|
* `StyledTags`, retyped against this package's `Theme` instead of Emotion's
|
|
34
34
|
* (otherwise-empty) one, so `${({ theme }) => theme.space[2]}` template
|
|
35
35
|
* interpolations resolve to the real theme shape.
|
|
@@ -61,7 +61,7 @@ interface CreateThemedStyled extends StyledTags {
|
|
|
61
61
|
}, JSX.IntrinsicElements[Tag]>;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* The design system's `styled`
|
|
64
|
+
* The design system's `styled` - Emotion's styled plus theme-level component
|
|
65
65
|
* customization (`theme.components[name].styleOverrides` / `.variants`).
|
|
66
66
|
*/
|
|
67
67
|
declare const styled: CreateThemedStyled;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-CzmA09Yf.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { HTMLAttributes } from "react";
|
|
6
6
|
//#region src/Pagination/Pagination.d.ts
|
|
@@ -9,15 +9,15 @@ type PaginationVariant = PaginationItemVariant;
|
|
|
9
9
|
type PaginationShape = PaginationItemShape;
|
|
10
10
|
type PaginationSize = PaginationItemSize;
|
|
11
11
|
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'onChange'>, UsePaginationProps, SpaceProps<Theme> {
|
|
12
|
-
/** Selected-item color
|
|
12
|
+
/** Selected-item color - resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
13
13
|
color?: PaginationColor;
|
|
14
|
-
/** Item style
|
|
14
|
+
/** Item style - `text` or `outlined`. Default: `'text'`. */
|
|
15
15
|
variant?: PaginationVariant;
|
|
16
16
|
/** Item corner shape. Default: `'circular'`. */
|
|
17
17
|
shape?: PaginationShape;
|
|
18
|
-
/** Item density
|
|
18
|
+
/** Item density - resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
19
19
|
size?: PaginationSize;
|
|
20
|
-
/** Accessible name per item
|
|
20
|
+
/** Accessible name per item - important for screen readers. A sensible default is provided. */
|
|
21
21
|
getItemAriaLabel?: (type: PaginationItemType, page: number | null, isSelected: boolean) => string;
|
|
22
22
|
}
|
|
23
23
|
declare function Pagination({ count, page, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange, color, variant, shape, size, getItemAriaLabel, 'aria-label': ariaLabel, ...rest }: Readonly<PaginationProps>): import("react").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
1
|
+
import { K as TypographyVariant, S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
4
3
|
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
|
+
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Typography/Typography.d.ts
|
|
6
6
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
7
|
-
/** Valid values for the color prop
|
|
7
|
+
/** Valid values for the color prop - derived from theme.text keys. */
|
|
8
8
|
type TextColorToken = keyof Theme['text'];
|
|
9
|
-
/** Valid values for the bg prop
|
|
9
|
+
/** Valid values for the bg prop - derived from theme.background keys. */
|
|
10
10
|
type BackgroundToken = keyof Theme['background'];
|
|
11
11
|
interface TypographyProps$1 extends Omit<HTMLAttributes<HTMLElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, TypographyProps<Theme>, FlexboxProps<Theme>, BorderProps<Theme>, PositionProps<Theme> {
|
|
12
|
-
/** Resolves against theme.text
|
|
12
|
+
/** Resolves against theme.text - inherit · initial · primary · secondary · error · success */
|
|
13
13
|
color?: TextColorToken;
|
|
14
14
|
/** Resolves against theme.background */
|
|
15
15
|
bg?: BackgroundToken;
|
|
@@ -19,7 +19,7 @@ interface TypographyProps$1 extends Omit<HTMLAttributes<HTMLElement>, 'color'>,
|
|
|
19
19
|
align?: TypographyAlign;
|
|
20
20
|
gutterBottom?: boolean;
|
|
21
21
|
noWrap?: boolean;
|
|
22
|
-
/** Machine-readable timestamp
|
|
22
|
+
/** Machine-readable timestamp - forwarded when rendering as `<time>` (`as="time"`). */
|
|
23
23
|
dateTime?: string;
|
|
24
24
|
as?: ElementType;
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-CLttbRhG.cjs";
|
|
2
|
+
import "./index-CohgpyUj.cjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
5
5
|
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -12,13 +12,13 @@ interface TablePaginationActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
rowsPerPage: number;
|
|
13
13
|
/** Fired with the target zero-based page. */
|
|
14
14
|
onPageChange: (page: number) => void;
|
|
15
|
-
/** Accessible name per nav button
|
|
15
|
+
/** Accessible name per nav button - important for screen readers. */
|
|
16
16
|
getItemAriaLabel: (type: TablePaginationActionType) => string;
|
|
17
17
|
/** Disables all buttons. Default: `false`. */
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
shouldShowFirstButton?: boolean;
|
|
20
20
|
shouldShowLastButton?: boolean;
|
|
21
|
-
/** Button density
|
|
21
|
+
/** Button density - resolves against `theme.sizes`. Default: `'sm'`. */
|
|
22
22
|
size?: PaginationItemSize;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-r2avCy1z.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ButtonHTMLAttributes } from "react";
|
|
6
6
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
7
7
|
type TableSortLabelDirection = 'asc' | 'desc';
|
|
8
8
|
interface TableSortLabelProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme> {
|
|
9
|
-
/** Marks the currently-sorted column
|
|
9
|
+
/** Marks the currently-sorted column - shows the icon fully opaque. Default: `false`. */
|
|
10
10
|
isActive?: boolean;
|
|
11
|
-
/** Current sort direction
|
|
11
|
+
/** Current sort direction - rotates the arrow. Default: `'asc'`. */
|
|
12
12
|
direction?: TableSortLabelDirection;
|
|
13
13
|
/**
|
|
14
14
|
* Hides the inactive sort icon, revealing it on hover/focus. Set `false` to
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { S as Theme, n as ButtonVariants, v as PaletteColor } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
4
3
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Button/Button.d.ts
|
|
6
|
-
/** Augmentable via the `ButtonVariants` interface
|
|
6
|
+
/** Augmentable via the `ButtonVariants` interface - style new values through `theme.components.Button.variants`. */
|
|
7
7
|
type ButtonVariant = keyof ButtonVariants;
|
|
8
8
|
type ButtonColor = PaletteColor;
|
|
9
9
|
type ButtonSize = keyof Theme['sizes'];
|
|
10
10
|
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
11
11
|
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
12
|
-
/** Valid values for the gap prop
|
|
12
|
+
/** Valid values for the gap prop - resolves against theme.space. */
|
|
13
13
|
type GapToken = keyof Theme['space'];
|
|
14
14
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, BorderProps<Theme>, TypographyProps<Theme> {
|
|
15
|
-
/** Visual style
|
|
15
|
+
/** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
16
16
|
variant?: ButtonVariant;
|
|
17
|
-
/** Color palette
|
|
17
|
+
/** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
18
18
|
color?: ButtonColor;
|
|
19
|
-
/** Size token
|
|
19
|
+
/** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
20
20
|
size?: ButtonSize;
|
|
21
|
-
/** Gap between icon and label
|
|
21
|
+
/** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
|
|
22
22
|
gap?: GapToken;
|
|
23
23
|
/** Icon rendered before the label. */
|
|
24
24
|
startIcon?: ReactNode;
|
|
@@ -31,7 +31,7 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'col
|
|
|
31
31
|
/** Custom loading element. Default: animated spinner. */
|
|
32
32
|
loadingIndicator?: ReactNode;
|
|
33
33
|
/**
|
|
34
|
-
* Corner shape
|
|
34
|
+
* Corner shape - sets the default `borderRadius`.
|
|
35
35
|
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
36
36
|
* The `borderRadius` prop always overrides this.
|
|
37
37
|
*/
|
|
@@ -40,9 +40,9 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'col
|
|
|
40
40
|
loadingPosition?: ButtonLoadingPosition;
|
|
41
41
|
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
42
42
|
href?: string;
|
|
43
|
-
/** Anchor `target`
|
|
43
|
+
/** Anchor `target` - only meaningful when `href` is set. */
|
|
44
44
|
target?: string;
|
|
45
|
-
/** Anchor `rel`
|
|
45
|
+
/** Anchor `rel` - only meaningful when `href` is set. */
|
|
46
46
|
rel?: string;
|
|
47
47
|
}
|
|
48
48
|
declare function Button({ variant, color, size, shape, gap, fontWeight, letterSpacing, startIcon, endIcon, fullWidth, loading, loadingIndicator, loadingPosition, children, disabled, href, ...rest }: Readonly<ButtonProps>): import("react").JSX.Element;
|