@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
package/dist/Image.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { CSSProperties, ImgHTMLAttributes } from "react";
|
|
5
5
|
//#region src/Image/Image.d.ts
|
|
@@ -8,7 +8,7 @@ interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'height'
|
|
|
8
8
|
fallback?: string;
|
|
9
9
|
objectFit?: CSSProperties['objectFit'];
|
|
10
10
|
objectPosition?: CSSProperties['objectPosition'];
|
|
11
|
-
/** Corner radius
|
|
11
|
+
/** Corner radius - resolves against `theme.radii`. */
|
|
12
12
|
borderRadius?: keyof Theme['radii'];
|
|
13
13
|
/** Called once when all image sources are exhausted. */
|
|
14
14
|
onError?: () => void;
|
package/dist/Image.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/Image/Image.tsx
|
package/dist/LinearProgress.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
5
|
require("react");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as ButtonColor } from "./index-S3NZS-Qp.cjs";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/LinearProgress/LinearProgress.d.ts
|
|
@@ -8,9 +8,9 @@ type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
|
|
|
8
8
|
type LinearProgressColor = ButtonColor | 'inherit';
|
|
9
9
|
type LinearProgressEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
10
10
|
interface LinearProgressProps extends HTMLAttributes<HTMLSpanElement>, Omit<SpaceProps<Theme>, keyof PaddingProps>, LayoutProps<Theme> {
|
|
11
|
-
/** Visual variant
|
|
11
|
+
/** Visual variant - looping animation, value-driven bar, or reversed loop. Default: `'indeterminate'`. */
|
|
12
12
|
variant?: LinearProgressVariant;
|
|
13
|
-
/** Bar color
|
|
13
|
+
/** Bar color - resolves to `theme.palette[color].main`; `'inherit'` uses `currentColor`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
14
14
|
color?: LinearProgressColor;
|
|
15
15
|
/** Bar height. Number → px; string → raw CSS unit (e.g. `'0.5rem'`). Default: `4`. */
|
|
16
16
|
thickness?: number | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as ButtonColor } from "./index-D4i9vrQM.mjs";
|
|
4
4
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { HTMLAttributes } from "react";
|
|
6
6
|
//#region src/LinearProgress/LinearProgress.d.ts
|
|
@@ -8,9 +8,9 @@ type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
|
|
|
8
8
|
type LinearProgressColor = ButtonColor | 'inherit';
|
|
9
9
|
type LinearProgressEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
10
10
|
interface LinearProgressProps extends HTMLAttributes<HTMLSpanElement>, Omit<SpaceProps<Theme>, keyof PaddingProps>, LayoutProps<Theme> {
|
|
11
|
-
/** Visual variant
|
|
11
|
+
/** Visual variant - looping animation, value-driven bar, or reversed loop. Default: `'indeterminate'`. */
|
|
12
12
|
variant?: LinearProgressVariant;
|
|
13
|
-
/** Bar color
|
|
13
|
+
/** Bar color - resolves to `theme.palette[color].main`; `'inherit'` uses `currentColor`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
14
14
|
color?: LinearProgressColor;
|
|
15
15
|
/** Bar height. Number → px; string → raw CSS unit (e.g. `'0.5rem'`). Default: `4`. */
|
|
16
16
|
thickness?: number | string;
|
package/dist/LinearProgress.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, r as keyframes, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { clamp } from "./utils.mjs";
|
|
4
4
|
import "react";
|
package/dist/Link.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
-
const require_theme = require("./theme-
|
|
4
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
5
5
|
const require_Typography = require("./Typography.cjs");
|
|
6
6
|
require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
package/dist/Link.d.cts
CHANGED
package/dist/Link.d.mts
CHANGED
package/dist/Link.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as styled } from "./src-
|
|
1
|
+
import { o as styled } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
-
import { r as useTheme } from "./theme-
|
|
3
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
4
4
|
import { Typography } from "./Typography.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
package/dist/MenuItem.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
-
const require_theme = require("./theme-
|
|
5
|
-
const require_Icon = require("./Icon-
|
|
4
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-CKLBJ7CC.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
//#region src/MenuItem/MenuItem.tsx
|
package/dist/MenuItem.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/MenuItem/MenuItem.d.ts
|
|
5
5
|
type MenuItemColor = keyof Theme['palette'];
|
|
6
6
|
type MenuItemSize = keyof Theme['sizes'];
|
|
7
7
|
type MenuItemTextColor = keyof Theme['text'];
|
|
8
8
|
interface MenuItemProps {
|
|
9
|
-
/** The value this option represents
|
|
9
|
+
/** The value this option represents - reported to `Select`'s `onChange`. */
|
|
10
10
|
value: string | number;
|
|
11
11
|
/** The option label. */
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
/** The element used for the root node
|
|
13
|
+
/** The element used for the root node - a tag name or a component. Default: `'li'`. */
|
|
14
14
|
as?: ElementType;
|
|
15
|
-
/** Disables the option
|
|
15
|
+
/** Disables the option - it cannot be highlighted or selected. */
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
/** Marks the option as the current selection. Injected by `Select`. */
|
|
18
18
|
selected?: boolean;
|
|
@@ -20,11 +20,11 @@ interface MenuItemProps {
|
|
|
20
20
|
highlighted?: boolean;
|
|
21
21
|
/** Reserves a leading checkmark slot for multi-select menus. Injected by `Select`. */
|
|
22
22
|
multiple?: boolean;
|
|
23
|
-
/** Accent color
|
|
23
|
+
/** Accent color - resolves to `theme.palette[color]`. Injected by `Select`; the item's own value wins. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
24
24
|
color?: MenuItemColor;
|
|
25
|
-
/** Base text color of the row
|
|
25
|
+
/** Base text color of the row - resolves against `theme.text`. When unset, falls back to the accent color's `main`. Injected by `Select`; the item's own value wins. */
|
|
26
26
|
textColor?: MenuItemTextColor;
|
|
27
|
-
/** Density token
|
|
27
|
+
/** Density token - resolves against `theme.sizes`. Injected by `Select`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
28
28
|
size?: MenuItemSize;
|
|
29
29
|
/** Compact vertical padding, independent of `size`. Default: `false`. */
|
|
30
30
|
dense?: boolean;
|
|
@@ -34,7 +34,7 @@ interface MenuItemProps {
|
|
|
34
34
|
divider?: boolean;
|
|
35
35
|
/** Focus the row on first mount, and whenever `autoFocus` flips from `false` to `true`. Default: `false`. */
|
|
36
36
|
autoFocus?: boolean;
|
|
37
|
-
/** Class applied only while the row has keyboard focus
|
|
37
|
+
/** Class applied only while the row has keyboard focus - a `:focus-visible` hook. */
|
|
38
38
|
focusVisibleClassName?: string;
|
|
39
39
|
/** Fired with `value` when the option is chosen. Injected by `Select`. */
|
|
40
40
|
onSelect?: (value: string | number) => void;
|
package/dist/MenuItem.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/MenuItem/MenuItem.d.ts
|
|
5
5
|
type MenuItemColor = keyof Theme['palette'];
|
|
6
6
|
type MenuItemSize = keyof Theme['sizes'];
|
|
7
7
|
type MenuItemTextColor = keyof Theme['text'];
|
|
8
8
|
interface MenuItemProps {
|
|
9
|
-
/** The value this option represents
|
|
9
|
+
/** The value this option represents - reported to `Select`'s `onChange`. */
|
|
10
10
|
value: string | number;
|
|
11
11
|
/** The option label. */
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
/** The element used for the root node
|
|
13
|
+
/** The element used for the root node - a tag name or a component. Default: `'li'`. */
|
|
14
14
|
as?: ElementType;
|
|
15
|
-
/** Disables the option
|
|
15
|
+
/** Disables the option - it cannot be highlighted or selected. */
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
/** Marks the option as the current selection. Injected by `Select`. */
|
|
18
18
|
selected?: boolean;
|
|
@@ -20,11 +20,11 @@ interface MenuItemProps {
|
|
|
20
20
|
highlighted?: boolean;
|
|
21
21
|
/** Reserves a leading checkmark slot for multi-select menus. Injected by `Select`. */
|
|
22
22
|
multiple?: boolean;
|
|
23
|
-
/** Accent color
|
|
23
|
+
/** Accent color - resolves to `theme.palette[color]`. Injected by `Select`; the item's own value wins. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
24
24
|
color?: MenuItemColor;
|
|
25
|
-
/** Base text color of the row
|
|
25
|
+
/** Base text color of the row - resolves against `theme.text`. When unset, falls back to the accent color's `main`. Injected by `Select`; the item's own value wins. */
|
|
26
26
|
textColor?: MenuItemTextColor;
|
|
27
|
-
/** Density token
|
|
27
|
+
/** Density token - resolves against `theme.sizes`. Injected by `Select`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
28
28
|
size?: MenuItemSize;
|
|
29
29
|
/** Compact vertical padding, independent of `size`. Default: `false`. */
|
|
30
30
|
dense?: boolean;
|
|
@@ -34,7 +34,7 @@ interface MenuItemProps {
|
|
|
34
34
|
divider?: boolean;
|
|
35
35
|
/** Focus the row on first mount, and whenever `autoFocus` flips from `false` to `true`. Default: `false`. */
|
|
36
36
|
autoFocus?: boolean;
|
|
37
|
-
/** Class applied only while the row has keyboard focus
|
|
37
|
+
/** Class applied only while the row has keyboard focus - a `:focus-visible` hook. */
|
|
38
38
|
focusVisibleClassName?: string;
|
|
39
39
|
/** Fired with `value` when the option is chosen. Injected by `Select`. */
|
|
40
40
|
onSelect?: (value: string | number) => void;
|
package/dist/MenuItem.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
-
import { r as useTheme } from "./theme-
|
|
4
|
-
import { t as Icon } from "./Icon-
|
|
3
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-CkQGOBmm.mjs";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/MenuItem/MenuItem.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_src = require("./src-
|
|
1
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
2
2
|
const require_View = require("./View.cjs");
|
|
3
3
|
const require_Backdrop = require("./Backdrop.cjs");
|
|
4
4
|
const require_Portal = require("./Portal.cjs");
|
|
@@ -170,7 +170,7 @@ var ModalManager = class {
|
|
|
170
170
|
* Returns a stable function identity that always calls the latest `fn`. Lets
|
|
171
171
|
* effects depend on the callback without re-running when the handler changes.
|
|
172
172
|
*
|
|
173
|
-
* Syncs the ref in `useEffect` (not `useLayoutEffect`) so it stays SSR-safe
|
|
173
|
+
* Syncs the ref in `useEffect` (not `useLayoutEffect`) so it stays SSR-safe -
|
|
174
174
|
* the timing difference is irrelevant for the user-triggered handlers it wraps.
|
|
175
175
|
*/
|
|
176
176
|
function useEventCallback(fn) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { View } from "./View.mjs";
|
|
3
3
|
import { Backdrop } from "./Backdrop.mjs";
|
|
4
4
|
import { Portal } from "./Portal.mjs";
|
|
@@ -169,7 +169,7 @@ var ModalManager = class {
|
|
|
169
169
|
* Returns a stable function identity that always calls the latest `fn`. Lets
|
|
170
170
|
* effects depend on the callback without re-running when the handler changes.
|
|
171
171
|
*
|
|
172
|
-
* Syncs the ref in `useEffect` (not `useLayoutEffect`) so it stays SSR-safe
|
|
172
|
+
* Syncs the ref in `useEffect` (not `useLayoutEffect`) so it stays SSR-safe -
|
|
173
173
|
* the timing difference is irrelevant for the user-triggered handlers it wraps.
|
|
174
174
|
*/
|
|
175
175
|
function useEventCallback(fn) {
|
package/dist/Modal.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_Modal = require("./Modal-
|
|
2
|
+
const require_Modal = require("./Modal-CApyh_V5.cjs");
|
|
3
3
|
exports.Modal = require_Modal.Modal;
|
|
4
4
|
exports.ModalManager = require_Modal.ModalManager;
|
|
5
5
|
exports.exposeToAria = require_Modal.exposeToAria;
|
package/dist/Modal.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-
|
|
1
|
+
import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-B8KscJic.cjs";
|
|
2
2
|
export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
|
package/dist/Modal.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-
|
|
1
|
+
import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-qtKJ56yu.mjs";
|
|
2
2
|
export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
|
package/dist/Modal.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hideFromAria, i as exposeToAria, n as useModal, r as ModalManager, t as Modal } from "./Modal-
|
|
1
|
+
import { a as hideFromAria, i as exposeToAria, n as useModal, r as ModalManager, t as Modal } from "./Modal-CYNcPk-2.mjs";
|
|
2
2
|
export { Modal, ModalManager, exposeToAria, hideFromAria, useModal };
|
package/dist/NativeSelect.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
-
const require_theme = require("./theme-
|
|
5
|
-
const require_Icon = require("./Icon-
|
|
4
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-CKLBJ7CC.cjs");
|
|
6
6
|
const require_FormControl = require("./FormControl.cjs");
|
|
7
7
|
const require_inputVariantStyles = require("./inputVariantStyles-BBkkYQtE.cjs");
|
|
8
8
|
require("react");
|
package/dist/NativeSelect.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { SelectHTMLAttributes } from "react";
|
|
5
5
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/NativeSelect/NativeSelect.d.ts
|
|
@@ -16,7 +16,7 @@ interface NativeSelectOption {
|
|
|
16
16
|
interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
17
17
|
/** The options to populate the select with. */
|
|
18
18
|
options: NativeSelectOption[];
|
|
19
|
-
/** Controlled value
|
|
19
|
+
/** Controlled value - matches an option's `value`. */
|
|
20
20
|
value?: string | number;
|
|
21
21
|
/** Uncontrolled initial value. */
|
|
22
22
|
defaultValue?: string | number;
|
|
@@ -24,17 +24,17 @@ interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>,
|
|
|
24
24
|
onChange?: (value: string | number) => void;
|
|
25
25
|
/** Empty-state label rendered as a disabled first option, shown while nothing is selected. */
|
|
26
26
|
placeholder?: string;
|
|
27
|
-
/** Corner radius
|
|
27
|
+
/** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
28
28
|
borderRadius?: keyof Theme['radii'];
|
|
29
|
-
/** Focus/active border color
|
|
29
|
+
/** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
30
30
|
color?: NativeSelectColor;
|
|
31
|
-
/** Text color of the selected value
|
|
31
|
+
/** Text color of the selected value - resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
|
|
32
32
|
textColor?: NativeSelectTextColor;
|
|
33
|
-
/** Background color
|
|
33
|
+
/** Background color - resolves against `theme.background`. Default: `'terminal'`. */
|
|
34
34
|
bg?: NativeSelectBackgroundToken;
|
|
35
35
|
/** Disables the select. */
|
|
36
36
|
disabled?: boolean;
|
|
37
|
-
/** Marks the field as invalid
|
|
37
|
+
/** Marks the field as invalid - applies error border color. */
|
|
38
38
|
error?: boolean;
|
|
39
39
|
/** Stretches the root to fill its container. */
|
|
40
40
|
fullWidth?: boolean;
|
|
@@ -51,9 +51,9 @@ interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>,
|
|
|
51
51
|
size?: NativeSelectSize;
|
|
52
52
|
/**
|
|
53
53
|
* Visual style of the select.
|
|
54
|
-
* - `outlined` / `default`
|
|
55
|
-
* - `underline`
|
|
56
|
-
* - `text`
|
|
54
|
+
* - `outlined` / `default` - full border box (default)
|
|
55
|
+
* - `underline` - border on bottom only
|
|
56
|
+
* - `text` - no border, transparent background
|
|
57
57
|
*/
|
|
58
58
|
variant?: NativeSelectVariant;
|
|
59
59
|
className?: string;
|
package/dist/NativeSelect.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { SelectHTMLAttributes } from "react";
|
|
6
6
|
//#region src/NativeSelect/NativeSelect.d.ts
|
|
@@ -16,7 +16,7 @@ interface NativeSelectOption {
|
|
|
16
16
|
interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
17
17
|
/** The options to populate the select with. */
|
|
18
18
|
options: NativeSelectOption[];
|
|
19
|
-
/** Controlled value
|
|
19
|
+
/** Controlled value - matches an option's `value`. */
|
|
20
20
|
value?: string | number;
|
|
21
21
|
/** Uncontrolled initial value. */
|
|
22
22
|
defaultValue?: string | number;
|
|
@@ -24,17 +24,17 @@ interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>,
|
|
|
24
24
|
onChange?: (value: string | number) => void;
|
|
25
25
|
/** Empty-state label rendered as a disabled first option, shown while nothing is selected. */
|
|
26
26
|
placeholder?: string;
|
|
27
|
-
/** Corner radius
|
|
27
|
+
/** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
28
28
|
borderRadius?: keyof Theme['radii'];
|
|
29
|
-
/** Focus/active border color
|
|
29
|
+
/** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
30
30
|
color?: NativeSelectColor;
|
|
31
|
-
/** Text color of the selected value
|
|
31
|
+
/** Text color of the selected value - resolves against `theme.text`. Default: 'primary', overridable via `theme.defaults.accentTextColor`. */
|
|
32
32
|
textColor?: NativeSelectTextColor;
|
|
33
|
-
/** Background color
|
|
33
|
+
/** Background color - resolves against `theme.background`. Default: `'terminal'`. */
|
|
34
34
|
bg?: NativeSelectBackgroundToken;
|
|
35
35
|
/** Disables the select. */
|
|
36
36
|
disabled?: boolean;
|
|
37
|
-
/** Marks the field as invalid
|
|
37
|
+
/** Marks the field as invalid - applies error border color. */
|
|
38
38
|
error?: boolean;
|
|
39
39
|
/** Stretches the root to fill its container. */
|
|
40
40
|
fullWidth?: boolean;
|
|
@@ -51,9 +51,9 @@ interface NativeSelectProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>,
|
|
|
51
51
|
size?: NativeSelectSize;
|
|
52
52
|
/**
|
|
53
53
|
* Visual style of the select.
|
|
54
|
-
* - `outlined` / `default`
|
|
55
|
-
* - `underline`
|
|
56
|
-
* - `text`
|
|
54
|
+
* - `outlined` / `default` - full border box (default)
|
|
55
|
+
* - `underline` - border on bottom only
|
|
56
|
+
* - `text` - no border, transparent background
|
|
57
57
|
*/
|
|
58
58
|
variant?: NativeSelectVariant;
|
|
59
59
|
className?: string;
|
package/dist/NativeSelect.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
-
import { r as useTheme } from "./theme-
|
|
4
|
-
import { t as Icon } from "./Icon-
|
|
3
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-CkQGOBmm.mjs";
|
|
5
5
|
import { useFormControl } from "./FormControl.mjs";
|
|
6
6
|
import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
|
|
7
7
|
import "react";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_src = require("../src-DU81aGy9.cjs");
|
|
3
|
+
const require_Grid = require("../Grid.cjs");
|
|
4
|
+
const require_layoutStyles = require("../layoutStyles-B4Z1K6HZ.cjs");
|
|
5
|
+
//#region src/PageLayout/LayoutGrid/LayoutGrid.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A `Grid` on the theme's content columns: each breakpoint's
|
|
8
|
+
* `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
|
|
9
|
+
* Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
|
|
10
|
+
* `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
|
|
11
|
+
*/
|
|
12
|
+
const LayoutGrid = require_src.styled(require_Grid.Grid, {
|
|
13
|
+
name: "LayoutGrid",
|
|
14
|
+
label: "LayoutGrid",
|
|
15
|
+
systemProps: [require_src.src_exports.grid, require_src.src_exports.space]
|
|
16
|
+
})(({ theme }) => require_layoutStyles.layoutStyles(theme, ({ content: { columns, gutter } }) => ({
|
|
17
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
|
|
18
|
+
columnGap: require_layoutStyles.layoutLength(theme, gutter)
|
|
19
|
+
})));
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.LayoutGrid = LayoutGrid;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { S as Theme } from "../themes-9YNnlVyY.cjs";
|
|
2
|
+
import "../index-DkJzi96w.cjs";
|
|
3
|
+
import { s as ViewProps } from "../index-CvWslVk6.cjs";
|
|
4
|
+
import { r as GridProps } from "../index-BJ5Tsf7u.cjs";
|
|
5
|
+
//#region src/PageLayout/LayoutGrid/LayoutGrid.d.ts
|
|
6
|
+
type LayoutGridProps = GridProps;
|
|
7
|
+
/**
|
|
8
|
+
* A `Grid` on the theme's content columns: each breakpoint's
|
|
9
|
+
* `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
|
|
10
|
+
* Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
|
|
11
|
+
* `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
|
|
12
|
+
*/
|
|
13
|
+
declare const LayoutGrid: import("@emotion/styled").StyledComponent<Pick<{
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
} & GridProps, "about" | "accessKey" | "alignContent" | "alignItems" | "alignSelf" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "aspectRatio" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "bg" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderColor" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "borderX" | "borderY" | "bottom" | "children" | "className" | "color" | "columnGap" | "content" | "contentEditable" | "contextMenu" | "cursor" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "display" | "draggable" | "enterKeyHint" | "exportparts" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridGap" | "gridRow" | "gridRowGap" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "justifyContent" | "justifyItems" | "justifySelf" | "key" | "lang" | "left" | "letterSpacing" | "lineHeight" | "m" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marginX" | "marginY" | "maxHeight" | "maxWidth" | "mb" | "minHeight" | "minWidth" | "ml" | "mr" | "mt" | "mx" | "my" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "p" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingX" | "paddingY" | "part" | "pb" | "pl" | "popover" | "popoverTarget" | "popoverTargetAction" | "position" | "pr" | "prefix" | "property" | "pt" | "px" | "py" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "right" | "role" | "rowGap" | "security" | "size" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "theme" | "title" | "top" | "translate" | "typeof" | "unselectable" | "verticalAlign" | "vocab" | "whiteSpace" | "width" | "zIndex"> & {
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
} & GridProps, {}, {}>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { LayoutGrid, LayoutGridProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { S as Theme } from "../themes-9YNnlVyY.mjs";
|
|
2
|
+
import "../index-CEqa8xx8.mjs";
|
|
3
|
+
import { s as ViewProps } from "../index-tv-TGYSG.mjs";
|
|
4
|
+
import { r as GridProps } from "../index-BnFxdnEL.mjs";
|
|
5
|
+
//#region src/PageLayout/LayoutGrid/LayoutGrid.d.ts
|
|
6
|
+
type LayoutGridProps = GridProps;
|
|
7
|
+
/**
|
|
8
|
+
* A `Grid` on the theme's content columns: each breakpoint's
|
|
9
|
+
* `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
|
|
10
|
+
* Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
|
|
11
|
+
* `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
|
|
12
|
+
*/
|
|
13
|
+
declare const LayoutGrid: import("@emotion/styled").StyledComponent<Pick<{
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
} & GridProps, "about" | "accessKey" | "alignContent" | "alignItems" | "alignSelf" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "aspectRatio" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "bg" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderColor" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "borderX" | "borderY" | "bottom" | "children" | "className" | "color" | "columnGap" | "content" | "contentEditable" | "contextMenu" | "cursor" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "display" | "draggable" | "enterKeyHint" | "exportparts" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridGap" | "gridRow" | "gridRowGap" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "justifyContent" | "justifyItems" | "justifySelf" | "key" | "lang" | "left" | "letterSpacing" | "lineHeight" | "m" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marginX" | "marginY" | "maxHeight" | "maxWidth" | "mb" | "minHeight" | "minWidth" | "ml" | "mr" | "mt" | "mx" | "my" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "p" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingX" | "paddingY" | "part" | "pb" | "pl" | "popover" | "popoverTarget" | "popoverTargetAction" | "position" | "pr" | "prefix" | "property" | "pt" | "px" | "py" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "right" | "role" | "rowGap" | "security" | "size" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "theme" | "title" | "top" | "translate" | "typeof" | "unselectable" | "verticalAlign" | "vocab" | "whiteSpace" | "width" | "zIndex"> & {
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
} & GridProps, {}, {}>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { LayoutGrid, LayoutGridProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as src_exports, o as styled } from "../src-DLGYOJMh.mjs";
|
|
2
|
+
import { Grid } from "../Grid.mjs";
|
|
3
|
+
import { n as layoutStyles, t as layoutLength } from "../layoutStyles-f0ISNjsC.mjs";
|
|
4
|
+
//#region src/PageLayout/LayoutGrid/LayoutGrid.tsx
|
|
5
|
+
/**
|
|
6
|
+
* A `Grid` on the theme's content columns: each breakpoint's
|
|
7
|
+
* `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
|
|
8
|
+
* Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
|
|
9
|
+
* `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
|
|
10
|
+
*/
|
|
11
|
+
const LayoutGrid = styled(Grid, {
|
|
12
|
+
name: "LayoutGrid",
|
|
13
|
+
label: "LayoutGrid",
|
|
14
|
+
systemProps: [src_exports.grid, src_exports.space]
|
|
15
|
+
})(({ theme }) => layoutStyles(theme, ({ content: { columns, gutter } }) => ({
|
|
16
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
|
|
17
|
+
columnGap: layoutLength(theme, gutter)
|
|
18
|
+
})));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { LayoutGrid };
|