@soroush.tech/design-system 1.2.0 → 1.3.1
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/dist/AppBar.d.cts +2 -2
- package/dist/AppBar.d.mts +2 -2
- package/dist/AppBar.mjs +1 -1
- package/dist/Avatar.d.cts +2 -2
- package/dist/Avatar.d.mts +2 -2
- package/dist/Avatar.mjs +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.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +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.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.d.cts +3 -2
- package/dist/Checkbox.d.mts +3 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/CircularProgress.d.cts +4 -3
- package/dist/CircularProgress.d.mts +4 -3
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Drawer.mjs +2 -2
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.mjs +1 -1
- package/dist/FormControl.d.cts +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControl.mjs +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.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/FormLabel.mjs +1 -1
- package/dist/Grid.d.cts +4 -3
- package/dist/Grid.d.mts +4 -3
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-GgwNXKEY.mjs → Icon-CU_nUmsU.mjs} +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.d.cts +3 -2
- package/dist/Image.d.mts +3 -2
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.d.cts +4 -3
- package/dist/LinearProgress.d.mts +4 -3
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/MenuItem.d.cts +1 -1
- package/dist/MenuItem.d.mts +1 -1
- package/dist/MenuItem.mjs +2 -2
- package/dist/{Modal-S2nb35q-.cjs → Modal-Bjfv7n4e.cjs} +23 -13
- package/dist/{Modal-COLrJoNW.mjs → Modal-Bv-mf8Fn.mjs} +17 -13
- package/dist/Modal.cjs +3 -2
- package/dist/Modal.d.cts +2 -2
- package/dist/Modal.d.mts +2 -2
- package/dist/Modal.mjs +2 -2
- package/dist/NativeSelect.d.cts +4 -3
- package/dist/NativeSelect.d.mts +4 -3
- package/dist/NativeSelect.mjs +2 -2
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +2 -2
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +1 -1
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-BjGubpna.mjs → Popover-CH3yI-j-.mjs} +2 -2
- package/dist/{Popover-BxN7ts_I.cjs → Popover-COoJ2p2I.cjs} +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +3 -3
- package/dist/Popover.d.mts +3 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +1 -1
- package/dist/Quote.d.cts +2 -2
- package/dist/Quote.d.mts +2 -2
- package/dist/Quote.mjs +1 -1
- package/dist/Radio.d.cts +3 -2
- package/dist/Radio.d.mts +3 -2
- package/dist/Radio.mjs +1 -1
- package/dist/Select.cjs +1 -1
- package/dist/Select.d.cts +4 -3
- package/dist/Select.d.mts +4 -3
- package/dist/Select.mjs +3 -3
- package/dist/Sidebar/Sidebar.d.cts +1 -1
- package/dist/Sidebar/Sidebar.d.mts +1 -1
- package/dist/Sidebar/Sidebar.mjs +1 -1
- package/dist/Sidebar/SidebarItem.d.cts +3 -3
- package/dist/Sidebar/SidebarItem.d.mts +3 -3
- package/dist/Sidebar/SidebarItem.mjs +2 -2
- package/dist/Skeleton.d.cts +3 -2
- package/dist/Skeleton.d.mts +3 -2
- package/dist/Skeleton.mjs +1 -1
- package/dist/Switch.d.cts +3 -2
- package/dist/Switch.d.mts +3 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.d.cts +3 -2
- package/dist/Table/Table.d.mts +3 -2
- package/dist/Table/Table.mjs +1 -1
- package/dist/Table/TableBody.d.cts +3 -2
- package/dist/Table/TableBody.d.mts +3 -2
- package/dist/Table/TableBody.mjs +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.d.cts +2 -2
- package/dist/Table/TableContainer.d.mts +2 -2
- package/dist/Table/TableContainer.mjs +1 -1
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableFooter.d.cts +3 -2
- package/dist/Table/TableFooter.d.mts +3 -2
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.d.cts +3 -2
- package/dist/Table/TableHead.d.mts +3 -2
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePagination.mjs +1 -1
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +1 -1
- package/dist/Table/TableRow.d.cts +3 -2
- package/dist/Table/TableRow.d.mts +3 -2
- package/dist/Table/TableRow.mjs +1 -1
- 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.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table.d.cts +4 -4
- package/dist/Table.d.mts +4 -4
- package/dist/TextInput.cjs +11 -9
- package/dist/TextInput.d.cts +3 -2
- package/dist/TextInput.d.mts +3 -2
- package/dist/TextInput.mjs +12 -10
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
- package/dist/Typography.d.cts +1 -1
- package/dist/Typography.d.mts +1 -1
- package/dist/Typography.mjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/{index-DLJ-li1B.d.cts → index-2QPYJgCl.d.cts} +2 -7
- package/dist/{index-BwUnDd9W.d.mts → index-3hPS6Lm8.d.mts} +3 -2
- package/dist/{index-D8U2tk1L.d.mts → index-BAfSyQaP.d.mts} +3 -2
- package/dist/{index-BfpjEqqt.d.cts → index-BBWtMvkm.d.cts} +6 -3
- package/dist/{index-DjtGkwRM.d.cts → index-BPzvFTi5.d.cts} +4 -3
- package/dist/{index-CYTaYcm3.d.cts → index-BW-9sqFG.d.cts} +2 -2
- package/dist/{index--mvTGo8F.d.cts → index-BYYEoNec.d.cts} +4 -3
- package/dist/{index-BL3jwIQU.d.mts → index-BjLlSr2P.d.mts} +3 -3
- package/dist/{index-CA_X-mXg.d.cts → index-Borai-Wg.d.cts} +3 -3
- package/dist/{index-BItZoGZ1.d.mts → index-C1hP7Igl.d.mts} +4 -3
- package/dist/{index-B3FrhO2r.d.cts → index-CCfnnT2l.d.cts} +4 -3
- package/dist/{index-KZUd8B5E.d.mts → index-CKz1lEdR.d.mts} +2 -2
- package/dist/{index-dtLxevvf.d.cts → index-CSXMCqrV.d.cts} +3 -2
- package/dist/{index-Ds__py2h.d.mts → index-CTYZyQ2g.d.mts} +6 -3
- package/dist/{index-DF3Hweir.d.mts → index-CbGfrKZi.d.mts} +4 -3
- package/dist/{index-yr4HkKOj.d.cts → index-CiShdd2j.d.cts} +3 -2
- package/dist/{index-CvaEVk-f.d.cts → index-CohsoGjZ.d.cts} +5 -4
- package/dist/{index-CO3Qq0I0.d.mts → index-CrXLEJO4.d.mts} +3 -2
- package/dist/{index-Ca0Pj5m2.d.mts → index-D07y72Xr.d.mts} +4 -3
- package/dist/{index-ATXjtAOY.d.mts → index-DEEHBUUZ.d.cts} +2 -2
- package/dist/{index-B7aaTHOe.d.cts → index-DGku7hLP.d.mts} +2 -2
- package/dist/{index-zFYi0f1t.d.cts → index-DLUE7t3O.d.cts} +4 -3
- package/dist/{index-C7j38wne.d.mts → index-DfhMdqqI.d.mts} +3 -2
- package/dist/{index-v99yMdts.d.cts → index-DiLm48XP.d.cts} +4 -3
- package/dist/{index-B2hrssyF.d.mts → index-DxBKLmUS.d.mts} +5 -4
- package/dist/{index-BNP_iejT.d.cts → index-X4STXeE2.d.cts} +3 -2
- package/dist/{index-q6EgsH9R.d.mts → index-m9jUR509.d.mts} +4 -3
- package/dist/{index-DEv2QslH.d.mts → index-n2OyTMr6.d.mts} +4 -3
- package/dist/{index-D8b5OCLe.d.mts → index-q9peil7T.d.mts} +2 -6
- package/dist/{index-BJ8OC_Zh.d.cts → index-uH0EeDBZ.d.cts} +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-BJy4dM4f.mjs → src-D3tHU94W.mjs} +26 -1
- package/dist/{useTablePagination-HaIcJPv-.d.mts → useTablePagination-DOty8Ucb.d.mts} +1 -1
- package/dist/{useTablePagination-7jiSvKCh.d.cts → useTablePagination-Dh7o59Wt.d.cts} +1 -1
- package/package.json +8 -7
- package/dist/rolldown-runtime-BBjsoOtd.mjs +0 -27
package/dist/Skeleton.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-D3tHU94W.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/Skeleton/Skeleton.tsx
|
package/dist/Switch.d.cts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
2
|
+
import "./index-2QPYJgCl.cjs";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
+
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/Switch/Switch.d.ts
|
|
5
6
|
type SwitchColor = keyof Theme['palette'];
|
|
6
7
|
type SwitchSize = keyof Theme['sizes'];
|
|
7
8
|
type SwitchEdge = 'start' | 'end' | false;
|
|
8
9
|
type SwitchVariant = 'outside' | 'inside';
|
|
9
|
-
interface SwitchProps extends
|
|
10
|
+
interface SwitchProps extends SpaceProps<Theme> {
|
|
10
11
|
checked?: boolean;
|
|
11
12
|
defaultChecked?: boolean;
|
|
12
13
|
disabled?: boolean;
|
package/dist/Switch.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "./index-q9peil7T.mjs";
|
|
3
|
+
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
5
|
//#region src/Switch/Switch.d.ts
|
|
5
6
|
type SwitchColor = keyof Theme['palette'];
|
|
6
7
|
type SwitchSize = keyof Theme['sizes'];
|
|
7
8
|
type SwitchEdge = 'start' | 'end' | false;
|
|
8
9
|
type SwitchVariant = 'outside' | 'inside';
|
|
9
|
-
interface SwitchProps extends
|
|
10
|
+
interface SwitchProps extends SpaceProps<Theme> {
|
|
10
11
|
checked?: boolean;
|
|
11
12
|
defaultChecked?: boolean;
|
|
12
13
|
disabled?: boolean;
|
package/dist/Switch.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "./utils.mjs";
|
|
4
4
|
import { r as useTheme } from "./theme-Cudynq5K.mjs";
|
package/dist/Table/Table.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.cjs";
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
3
|
import { t as TableCellPadding } from "../TableContext-BoOxdk8p.cjs";
|
|
4
4
|
import { ElementType, TableHTMLAttributes } from "react";
|
|
5
|
+
import { BorderProps, LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
6
|
//#region src/Table/Table/Table.d.ts
|
|
6
7
|
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
7
8
|
type TableBackgroundToken = keyof Theme['background'];
|
|
@@ -9,7 +10,7 @@ type TableBackgroundToken = keyof Theme['background'];
|
|
|
9
10
|
type TableSize = keyof Theme['sizes'];
|
|
10
11
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
11
12
|
type TableBorderColorToken = keyof Theme['border'];
|
|
12
|
-
interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color' | 'cellPadding' | 'align' | 'width' | 'border'>,
|
|
13
|
+
interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color' | 'cellPadding' | 'align' | 'width' | 'border'>, SpaceProps<Theme>, LayoutProps<Theme>, Omit<BorderProps<Theme>, 'borderColor'> {
|
|
13
14
|
/**
|
|
14
15
|
* Palette color for descendant rows' hover/selected shading — broadcast to
|
|
15
16
|
* `TableRow`s via `TableContext`; a row's own `color` wins.
|
package/dist/Table/Table.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
3
|
import { t as TableCellPadding } from "../TableContext-DV31j6HO.mjs";
|
|
4
|
+
import { BorderProps, LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
import { ElementType, TableHTMLAttributes } from "react";
|
|
5
6
|
//#region src/Table/Table/Table.d.ts
|
|
6
7
|
/** Valid values for the bg prop — derived from theme.background keys. */
|
|
@@ -9,7 +10,7 @@ type TableBackgroundToken = keyof Theme['background'];
|
|
|
9
10
|
type TableSize = keyof Theme['sizes'];
|
|
10
11
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
11
12
|
type TableBorderColorToken = keyof Theme['border'];
|
|
12
|
-
interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color' | 'cellPadding' | 'align' | 'width' | 'border'>,
|
|
13
|
+
interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color' | 'cellPadding' | 'align' | 'width' | 'border'>, SpaceProps<Theme>, LayoutProps<Theme>, Omit<BorderProps<Theme>, 'borderColor'> {
|
|
13
14
|
/**
|
|
14
15
|
* Palette color for descendant rows' hover/selected shading — broadcast to
|
|
15
16
|
* `TableRow`s via `TableContext`; a row's own `color` wins.
|
package/dist/Table/Table.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/Table/TableBody/TableBody.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
7
|
type TableBodyColorToken = keyof Theme['text'];
|
|
@@ -8,7 +9,7 @@ type TableBodyColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableBodyBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableBodyBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableBodyColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableBody/TableBody.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -8,7 +9,7 @@ type TableBodyColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableBodyBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableBodyBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableBodyColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
package/dist/Table/TableBody.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-
|
|
1
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-X4STXeE2.cjs";
|
|
2
2
|
export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-
|
|
1
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell } from "../index-DfhMdqqI.mjs";
|
|
2
2
|
export { TableCell, TableCellAlign, TableCellBackgroundToken, TableCellBorderColorToken, TableCellColorToken, TableCellProps, TableCellSortDirection, TableCellVariant };
|
package/dist/Table/TableCell.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
4
4
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
3
|
-
import
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
|
+
import { s as ViewProps } from "../index-BPzvFTi5.cjs";
|
|
4
4
|
//#region src/Table/TableContainer/TableContainer.d.ts
|
|
5
5
|
type TableContainerProps = ViewProps;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import "../index-
|
|
3
|
-
import { s as ViewProps } from "../index-
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
|
+
import { s as ViewProps } from "../index-m9jUR509.mjs";
|
|
4
4
|
//#region src/Table/TableContainer/TableContainer.d.ts
|
|
5
5
|
type TableContainerProps = ViewProps;
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-Dh7o59Wt.cjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/Table/TableControl/TableControl.d.ts
|
|
4
4
|
interface TableControlProps<T, K extends string = string> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, t as TablePaginationState } from "../useTablePagination-DOty8Ucb.mjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/Table/TableControl/TableControl.d.ts
|
|
4
4
|
interface TableControlProps<T, K extends string = string> {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/Table/TableFooter/TableFooter.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
7
|
type TableFooterColorToken = keyof Theme['text'];
|
|
@@ -8,7 +9,7 @@ type TableFooterColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableFooterBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableFooterBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableFooterColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableFooter/TableFooter.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -8,7 +9,7 @@ type TableFooterColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableFooterBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableFooterBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableFooterColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
|
@@ -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-D3tHU94W.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "../themes-CUV79qWU.cjs";
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/Table/TableHead/TableHead.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
6
7
|
type TableHeadColorToken = keyof Theme['text'];
|
|
@@ -8,7 +9,7 @@ type TableHeadColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableHeadBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableHeadBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableHeadColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableHead/TableHead.d.ts
|
|
5
6
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -8,7 +9,7 @@ type TableHeadColorToken = keyof Theme['text'];
|
|
|
8
9
|
type TableHeadBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableHeadBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>,
|
|
12
|
+
interface TableHeadProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/** Resolves against theme.text */
|
|
13
14
|
color?: TableHeadColorToken;
|
|
14
15
|
/** Resolves against theme.background */
|
package/dist/Table/TableHead.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as TableSectionContext } from "../TableSectionContext-meIG4lFZ.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TableCellProps } from "../index-
|
|
2
|
-
import { t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { o as TableCellProps } from "../index-X4STXeE2.cjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-DEEHBUUZ.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/Table/TablePagination/TablePagination.d.ts
|
|
5
5
|
interface TablePaginationDisplayedRowsInfo {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TableCellProps } from "../index-
|
|
2
|
-
import { t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { o as TableCellProps } from "../index-DfhMdqqI.mjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-DGku7hLP.mjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/Table/TablePagination/TablePagination.d.ts
|
|
5
5
|
interface TablePaginationDisplayedRowsInfo {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DEEHBUUZ.cjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DGku7hLP.mjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as styled } from "../src-
|
|
1
|
+
import { o as styled } from "../src-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { r as useTheme } from "../theme-Cudynq5K.mjs";
|
|
4
4
|
import { PaginationItem } from "../Pagination/PaginationItem.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as index_d_exports } from "../index-DLJ-li1B.cjs";
|
|
2
1
|
import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.cjs";
|
|
2
|
+
import "../index-2QPYJgCl.cjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/Table/TableRow/TableRow.d.ts
|
|
5
6
|
/** Palette color driving the hover/selected shading — a `theme.palette` key. */
|
|
6
7
|
type TableRowColor = PaletteColor;
|
|
@@ -8,7 +9,7 @@ type TableRowColor = PaletteColor;
|
|
|
8
9
|
type TableRowBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableRowBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>,
|
|
12
|
+
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/**
|
|
13
14
|
* Palette color for the hover/selected shading — maps to `theme.palette[color]`
|
|
14
15
|
* (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { d as PaletteColor, h as Theme } from "../themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../index-q9peil7T.mjs";
|
|
3
|
+
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
5
|
//#region src/Table/TableRow/TableRow.d.ts
|
|
5
6
|
/** Palette color driving the hover/selected shading — a `theme.palette` key. */
|
|
@@ -8,7 +9,7 @@ type TableRowColor = PaletteColor;
|
|
|
8
9
|
type TableRowBackgroundToken = keyof Theme['background'];
|
|
9
10
|
/** Valid values for the borderColor prop — derived from theme.border keys. */
|
|
10
11
|
type TableRowBorderColorToken = keyof Theme['border'];
|
|
11
|
-
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>,
|
|
12
|
+
interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'color'>, SpaceProps<Theme>, Omit<BorderProps<Theme>, 'borderColor' | 'borderRadius'> {
|
|
12
13
|
/**
|
|
13
14
|
* Palette color for the hover/selected shading — maps to `theme.palette[color]`
|
|
14
15
|
* (hover → `.light`, selected → `.dark`, both with `contrastText`). Falls back
|
package/dist/Table/TableRow.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
4
4
|
import { useContext } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-
|
|
1
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-DiLm48XP.cjs";
|
|
2
2
|
export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-
|
|
1
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-C1hP7Igl.mjs";
|
|
2
2
|
export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-
|
|
2
|
-
import { t as Icon } from "../Icon-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-D3tHU94W.mjs";
|
|
2
|
+
import { t as Icon } from "../Icon-CU_nUmsU.mjs";
|
|
3
3
|
import { t as TableContext } from "../TableContext-Dyr89h_k.mjs";
|
|
4
4
|
import { useContext } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/Table/hooks.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-Dh7o59Wt.cjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSelection.d.ts
|
|
3
3
|
/** Header select-all state — spreads directly onto `Checkbox`. */
|
|
4
4
|
interface TableSelectionAllProps {
|
package/dist/Table/hooks.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-DOty8Ucb.mjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSelection.d.ts
|
|
3
3
|
/** Header select-all state — spreads directly onto `Checkbox`. */
|
|
4
4
|
interface TableSelectionAllProps {
|
package/dist/Table.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-BoOxdk8p.cjs";
|
|
2
2
|
import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.cjs";
|
|
3
3
|
import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.cjs";
|
|
4
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-
|
|
4
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-X4STXeE2.cjs";
|
|
5
5
|
import { TableContainer, TableContainerProps } from "./Table/TableContainer.cjs";
|
|
6
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-
|
|
7
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-
|
|
6
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-DiLm48XP.cjs";
|
|
7
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-Dh7o59Wt.cjs";
|
|
8
8
|
import { TableControl, TableControlProps } from "./Table/TableControl.cjs";
|
|
9
9
|
import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.cjs";
|
|
10
10
|
import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.cjs";
|
|
11
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-
|
|
11
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-DEEHBUUZ.cjs";
|
|
12
12
|
import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.cjs";
|
|
13
13
|
import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.cjs";
|
|
14
14
|
import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.cjs";
|
package/dist/Table.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-DV31j6HO.mjs";
|
|
2
2
|
import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.mjs";
|
|
3
3
|
import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.mjs";
|
|
4
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-
|
|
4
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-DfhMdqqI.mjs";
|
|
5
5
|
import { TableContainer, TableContainerProps } from "./Table/TableContainer.mjs";
|
|
6
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-
|
|
7
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-
|
|
6
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-C1hP7Igl.mjs";
|
|
7
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-DOty8Ucb.mjs";
|
|
8
8
|
import { TableControl, TableControlProps } from "./Table/TableControl.mjs";
|
|
9
9
|
import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.mjs";
|
|
10
10
|
import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.mjs";
|
|
11
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-
|
|
11
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-DGku7hLP.mjs";
|
|
12
12
|
import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.mjs";
|
|
13
13
|
import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.mjs";
|
|
14
14
|
import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.mjs";
|
package/dist/TextInput.cjs
CHANGED
|
@@ -203,6 +203,16 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
|
|
|
203
203
|
size,
|
|
204
204
|
"aria-describedby": inputProps?.["aria-describedby"] ?? fc["aria-describedby"]
|
|
205
205
|
};
|
|
206
|
+
let inputElement = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInput, {
|
|
207
|
+
inputComponent: resolvedInputComponent,
|
|
208
|
+
inputSize,
|
|
209
|
+
...inputElProps
|
|
210
|
+
});
|
|
211
|
+
if (isTextarea) inputElement = isAutoResize ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledAutoResizeTextarea, {
|
|
212
|
+
...inputElProps,
|
|
213
|
+
minRows: minRows ?? rows,
|
|
214
|
+
maxRows
|
|
215
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextarea, { ...inputElProps });
|
|
206
216
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInputRoot, {
|
|
207
217
|
as: components?.Root,
|
|
208
218
|
color,
|
|
@@ -215,15 +225,7 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
|
|
|
215
225
|
className: rootClassName,
|
|
216
226
|
"data-testid": dataTestid,
|
|
217
227
|
...spaceProps,
|
|
218
|
-
children:
|
|
219
|
-
...inputElProps,
|
|
220
|
-
minRows: minRows ?? rows,
|
|
221
|
-
maxRows
|
|
222
|
-
}) : isTextarea ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextarea, { ...inputElProps }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInput, {
|
|
223
|
-
inputComponent: resolvedInputComponent,
|
|
224
|
-
inputSize,
|
|
225
|
-
...inputElProps
|
|
226
|
-
})
|
|
228
|
+
children: inputElement
|
|
227
229
|
});
|
|
228
230
|
}
|
|
229
231
|
//#endregion
|
package/dist/TextInput.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
1
|
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
2
|
+
import "./index-2QPYJgCl.cjs";
|
|
3
3
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
4
|
+
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
5
|
//#region src/TextInput/TextInput.d.ts
|
|
5
6
|
type TextInputColor = keyof Theme['palette'];
|
|
6
7
|
type TextInputTextColor = keyof Theme['text'];
|
|
@@ -10,7 +11,7 @@ interface TextInputClasses {
|
|
|
10
11
|
root?: string;
|
|
11
12
|
input?: string;
|
|
12
13
|
}
|
|
13
|
-
interface TextInputProps extends
|
|
14
|
+
interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
14
15
|
/** Corner radius — applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
15
16
|
borderRadius?: keyof Theme['radii'];
|
|
16
17
|
autoComplete?: string;
|
package/dist/TextInput.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "./index-q9peil7T.mjs";
|
|
3
|
+
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
4
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
4
5
|
//#region src/TextInput/TextInput.d.ts
|
|
5
6
|
type TextInputColor = keyof Theme['palette'];
|
|
@@ -10,7 +11,7 @@ interface TextInputClasses {
|
|
|
10
11
|
root?: string;
|
|
11
12
|
input?: string;
|
|
12
13
|
}
|
|
13
|
-
interface TextInputProps extends
|
|
14
|
+
interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
14
15
|
/** Corner radius — applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
15
16
|
borderRadius?: keyof Theme['radii'];
|
|
16
17
|
autoComplete?: string;
|
package/dist/TextInput.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-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { r as useTheme } from "./theme-Cudynq5K.mjs";
|
|
4
4
|
import { useFormControl } from "./FormControl.mjs";
|
|
@@ -201,6 +201,16 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
|
|
|
201
201
|
size,
|
|
202
202
|
"aria-describedby": inputProps?.["aria-describedby"] ?? fc["aria-describedby"]
|
|
203
203
|
};
|
|
204
|
+
let inputElement = /* @__PURE__ */ jsx(StyledInput, {
|
|
205
|
+
inputComponent: resolvedInputComponent,
|
|
206
|
+
inputSize,
|
|
207
|
+
...inputElProps
|
|
208
|
+
});
|
|
209
|
+
if (isTextarea) inputElement = isAutoResize ? /* @__PURE__ */ jsx(StyledAutoResizeTextarea, {
|
|
210
|
+
...inputElProps,
|
|
211
|
+
minRows: minRows ?? rows,
|
|
212
|
+
maxRows
|
|
213
|
+
}) : /* @__PURE__ */ jsx(StyledTextarea, { ...inputElProps });
|
|
204
214
|
return /* @__PURE__ */ jsx(TextInputRoot, {
|
|
205
215
|
as: components?.Root,
|
|
206
216
|
color,
|
|
@@ -213,15 +223,7 @@ function TextInput({ autoComplete, autoFocus, borderRadius, classes, components,
|
|
|
213
223
|
className: rootClassName,
|
|
214
224
|
"data-testid": dataTestid,
|
|
215
225
|
...spaceProps,
|
|
216
|
-
children:
|
|
217
|
-
...inputElProps,
|
|
218
|
-
minRows: minRows ?? rows,
|
|
219
|
-
maxRows
|
|
220
|
-
}) : isTextarea ? /* @__PURE__ */ jsx(StyledTextarea, { ...inputElProps }) : /* @__PURE__ */ jsx(StyledInput, {
|
|
221
|
-
inputComponent: resolvedInputComponent,
|
|
222
|
-
inputSize,
|
|
223
|
-
...inputElProps
|
|
224
|
-
})
|
|
226
|
+
children: inputElement
|
|
225
227
|
});
|
|
226
228
|
}
|
|
227
229
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-
|
|
1
|
+
import { i as ButtonProps } from "../index-uH0EeDBZ.cjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.cjs";
|
|
3
3
|
//#region src/ToggleButton/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-
|
|
1
|
+
import { i as ButtonProps } from "../index-BAfSyQaP.mjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.mjs";
|
|
3
3
|
//#region src/ToggleButton/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as src_exports, o as styled } from "../src-
|
|
1
|
+
import { a as src_exports, o as styled } from "../src-D3tHU94W.mjs";
|
|
2
2
|
import { t as themeDefault } from "../themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "../utils.mjs";
|
|
4
4
|
import { r as useTheme } from "../theme-Cudynq5K.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ButtonGroupProps } from "../index
|
|
1
|
+
import { a as ButtonGroupProps } from "../index-BYYEoNec.cjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CqD-Afho.cjs";
|
|
3
3
|
//#region src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.d.ts
|
|
4
4
|
interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
|