@soroush.tech/design-system 1.3.2 → 1.3.3
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 +28 -28
- package/dist/AppBar.cjs +1 -1
- package/dist/AppBar.d.cts +6 -6
- package/dist/AppBar.d.mts +6 -6
- package/dist/AppBar.mjs +1 -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 +4 -4
- package/dist/Grid.d.mts +4 -4
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-ByDvM-t1.cjs → Icon-BAMpe9SO.cjs} +2 -2
- package/dist/{Icon-CU_nUmsU.mjs → Icon-gSiGgU13.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/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-Bq31OTEl.mjs} +4 -4
- package/dist/{Popover-COoJ2p2I.cjs → Popover-gg44qzwo.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 +4 -4
- package/dist/Sidebar/Sidebar.d.cts +12 -12
- package/dist/Sidebar/Sidebar.d.mts +12 -12
- package/dist/Sidebar/Sidebar.mjs +4 -4
- package/dist/Sidebar/SidebarItem.cjs +4 -4
- package/dist/Sidebar/SidebarItem.d.cts +13 -13
- package/dist/Sidebar/SidebarItem.d.mts +13 -13
- package/dist/Sidebar/SidebarItem.mjs +4 -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-BrIREKe7.d.mts} +2 -2
- package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DXzUQ4-a.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-B0xTqpvt.d.mts → index-76XH-GEc.d.mts} +3 -3
- package/dist/{index-BW-9sqFG.d.cts → index-BCvkP5R1.d.mts} +6 -6
- package/dist/{index-CohsoGjZ.d.cts → index-BWECJgSb.d.mts} +7 -7
- package/dist/{index-X4STXeE2.d.cts → index-BoIi-XoB.d.mts} +15 -15
- package/dist/{index-CCfnnT2l.d.cts → index-Br2gDSme.d.cts} +7 -7
- package/dist/{index-m9jUR509.d.mts → index-Btmdtbpb.d.cts} +9 -9
- package/dist/{index-uH0EeDBZ.d.cts → index-C-2VKPcp.d.mts} +12 -12
- package/dist/{index-CbGfrKZi.d.mts → index-C5-ZM7lt.d.cts} +7 -7
- package/dist/{index-DfhMdqqI.d.mts → index-CHRAYSwH.d.cts} +15 -15
- package/dist/{index-CrXLEJO4.d.mts → index-COYxtrc0.d.mts} +8 -8
- package/dist/{index-BBWtMvkm.d.cts → index-CTVFwvju.d.mts} +3 -3
- package/dist/{index-CKz1lEdR.d.mts → index-Cf7w9Lod.d.cts} +6 -6
- package/dist/{index-DxBKLmUS.d.mts → index-Csp1Wzbz.d.cts} +7 -7
- package/dist/{index-CTYZyQ2g.d.mts → index-D-QRCHiS.d.cts} +3 -3
- package/dist/{index-MsUtFRul.d.cts → index-D3iQQ0L3.d.cts} +3 -3
- package/dist/{index-DEEHBUUZ.d.cts → index-D9CwTcnr.d.cts} +4 -4
- package/dist/{index-D_AwmCU5.d.cts → index-DCu7qjpa.d.cts} +3 -3
- package/dist/{index-DLUE7t3O.d.cts → index-DOLA1VFD.d.cts} +4 -4
- package/dist/{index-BPzvFTi5.d.cts → index-DQ16ijxx.d.mts} +9 -9
- package/dist/{index-3hPS6Lm8.d.mts → index-DdBeSvit.d.mts} +8 -8
- package/dist/{index-BYYEoNec.d.cts → index-DhMAwR96.d.mts} +7 -7
- package/dist/{index-CSXMCqrV.d.cts → index-DzuXwDCW.d.cts} +8 -8
- package/dist/{index-n2OyTMr6.d.mts → index-KZKeZDAF.d.mts} +4 -4
- package/dist/{index-BoOs5h_b.d.mts → index-NBVilQuP.d.mts} +3 -3
- package/dist/{index-BAfSyQaP.d.mts → index-Oxx0z4dS.d.cts} +12 -12
- package/dist/{index-DGku7hLP.d.mts → index-XZDPGJ_h.d.mts} +4 -4
- package/dist/{index-CiShdd2j.d.cts → index-d6gR2x8j.d.cts} +8 -8
- package/dist/{index-hcZwhQmR.d.mts → index-ggLhNdZV.d.mts} +5 -5
- package/dist/{index-D07y72Xr.d.mts → index-h36rcOy8.d.mts} +7 -7
- package/dist/{index-2QPYJgCl.d.cts → index-jmy5eXpx.d.cts} +7 -7
- package/dist/{index-q9peil7T.d.mts → index-v_otepCe.d.mts} +7 -7
- package/dist/{index-DkPJUFzd.d.cts → index-vuPAf55D.d.cts} +5 -5
- 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/{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-CleLAV6A.cjs → theme-Bnc03K83.cjs} +4 -4
- package/dist/{theme-Cudynq5K.mjs → theme-BuqqFbsz.mjs} +4 -4
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +2 -2
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +1 -1
- package/dist/{themes-CUV79qWU.d.cts → themes-kbuYiwCi.d.cts} +20 -20
- package/dist/{themes-CUV79qWU.d.mts → themes-kbuYiwCi.d.mts} +20 -20
- package/dist/{useTablePagination--XtCc2YL.d.cts → useTablePagination-BpMOVLsR.d.cts} +6 -6
- package/dist/{useTablePagination-RgVhJs-7.d.mts → useTablePagination-DebYZ6vN.d.mts} +6 -6
- package/package.json +3 -3
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-Bnc03K83.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-BuqqFbsz.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-Bnc03K83.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-BAMpe9SO.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 { h as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { h as Theme } from "./themes-kbuYiwCi.cjs";
|
|
2
|
+
import "./index-jmy5eXpx.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 { h as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { h as Theme } from "./themes-kbuYiwCi.mjs";
|
|
2
|
+
import "./index-v_otepCe.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-BuqqFbsz.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-gSiGgU13.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-D-QRCHiS.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-CTVFwvju.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-Bnc03K83.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-BAMpe9SO.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 { h as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-kbuYiwCi.cjs";
|
|
2
|
+
import "./index-jmy5eXpx.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DCu7qjpa.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 { h as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-kbuYiwCi.mjs";
|
|
2
|
+
import "./index-v_otepCe.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-76XH-GEc.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-BuqqFbsz.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-gSiGgU13.mjs";
|
|
5
5
|
import { useFormControl } from "./FormControl.mjs";
|
|
6
6
|
import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
|
|
7
7
|
import "react";
|
|
@@ -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
4
|
const require_utils = require("../utils.cjs");
|
|
5
|
-
const require_Icon = require("../Icon-
|
|
5
|
+
const require_Icon = require("../Icon-BAMpe9SO.cjs");
|
|
6
6
|
require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -92,7 +92,7 @@ function PaginationItem({ type = "page", page, isSelected = false, color, varian
|
|
|
92
92
|
as,
|
|
93
93
|
size,
|
|
94
94
|
...ellipsisRest,
|
|
95
|
-
children: "
|
|
95
|
+
children: "..."
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemRoot, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-
|
|
1
|
+
import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-d6gR2x8j.cjs";
|
|
2
2
|
export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-
|
|
1
|
+
import { a as PaginationItemSize, i as PaginationItemShape, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, t as PaginationItem } from "../index-DdBeSvit.mjs";
|
|
2
2
|
export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
|
|
@@ -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
3
|
import { alpha } from "../utils.mjs";
|
|
4
|
-
import { t as Icon } from "../Icon-
|
|
4
|
+
import { t as Icon } from "../Icon-gSiGgU13.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Pagination/PaginationItem/PaginationItem.tsx
|
|
@@ -90,7 +90,7 @@ function PaginationItem({ type = "page", page, isSelected = false, color, varian
|
|
|
90
90
|
as,
|
|
91
91
|
size,
|
|
92
92
|
...ellipsisRest,
|
|
93
|
-
children: "
|
|
93
|
+
children: "..."
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
return /* @__PURE__ */ jsx(ItemRoot, {
|
package/dist/Pagination.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_Pagination_PaginationItem = require("./Pagination/PaginationItem.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -7,7 +7,7 @@ let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/sty
|
|
|
7
7
|
//#region src/Pagination/hooks/usePagination.ts
|
|
8
8
|
const range = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
9
9
|
/**
|
|
10
|
-
* Headless pagination model
|
|
10
|
+
* Headless pagination model - computes the item list (nav buttons, page numbers,
|
|
11
11
|
* ellipses) with selection, boundary disabling, and controlled/uncontrolled paging.
|
|
12
12
|
*/
|
|
13
13
|
function usePagination({ count, page: pageProp, defaultPage = 1, siblingCount = 1, boundaryCount = 1, disabled = false, shouldShowFirstButton = false, shouldShowLastButton = false, shouldHidePrevButton = false, shouldHideNextButton = false, onChange }) {
|
package/dist/Pagination.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-
|
|
2
|
-
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-
|
|
1
|
+
import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-d6gR2x8j.cjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-Br2gDSme.cjs";
|
|
3
3
|
export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
|
package/dist/Pagination.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-
|
|
2
|
-
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-
|
|
1
|
+
import { a as PaginationItemSize, c as UsePaginationItem, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, r as PaginationItemProps, s as PaginationItemType, t as PaginationItem, u as usePagination } from "./index-DdBeSvit.mjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-h36rcOy8.mjs";
|
|
3
3
|
export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
|
package/dist/Pagination.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { PaginationItem } from "./Pagination/PaginationItem.mjs";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/Pagination/hooks/usePagination.ts
|
|
6
6
|
const range = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
7
7
|
/**
|
|
8
|
-
* Headless pagination model
|
|
8
|
+
* Headless pagination model - computes the item list (nav buttons, page numbers,
|
|
9
9
|
* ellipses) with selection, boundary disabling, and controlled/uncontrolled paging.
|
|
10
10
|
*/
|
|
11
11
|
function usePagination({ count, page: pageProp, defaultPage = 1, siblingCount = 1, boundaryCount = 1, disabled = false, shouldShowFirstButton = false, shouldShowLastButton = false, shouldHidePrevButton = false, shouldHideNextButton = false, onChange }) {
|
package/dist/Paper.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_Flex = require("./Flex.cjs");
|
|
4
4
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
5
|
-
const require_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-Bnc03K83.cjs");
|
|
6
6
|
require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
//#region src/Paper/Paper.tsx
|
package/dist/Paper.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-
|
|
1
|
+
import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-Cf7w9Lod.cjs";
|
|
2
2
|
export { Paper, PaperElevation, PaperProps };
|
package/dist/Paper.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-
|
|
1
|
+
import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-BCvkP5R1.mjs";
|
|
2
2
|
export { Paper, PaperElevation, PaperProps };
|
package/dist/Paper.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 { Flex } from "./Flex.mjs";
|
|
3
3
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
4
|
-
import { r as useTheme } from "./theme-
|
|
4
|
+
import { r as useTheme } from "./theme-BuqqFbsz.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Paper/Paper.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as styled, t as createShouldForwardProp } from "./src-
|
|
2
|
-
import { r as useTheme } from "./theme-
|
|
1
|
+
import { o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
|
+
import { r as useTheme } from "./theme-BuqqFbsz.mjs";
|
|
3
3
|
import { Paper } from "./Paper.mjs";
|
|
4
|
-
import { t as Modal } from "./Modal-
|
|
4
|
+
import { t as Modal } from "./Modal-CYNcPk-2.mjs";
|
|
5
5
|
import { useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Popover/utils/resolveAnchorEl.ts
|
|
@@ -161,7 +161,7 @@ const Surface = styled(Paper, {
|
|
|
161
161
|
/**
|
|
162
162
|
* @description Positions its content next to an anchor, portaled above the page.
|
|
163
163
|
* Built on `Modal`, so it inherits the portal, optional backdrop, focus management,
|
|
164
|
-
* scroll lock, and Escape/click-away close
|
|
164
|
+
* scroll lock, and Escape/click-away close - then adds anchor positioning
|
|
165
165
|
* (`anchorOrigin`/`transformOrigin`/`marginThreshold`).
|
|
166
166
|
*/
|
|
167
167
|
function Popover({ open, children, anchorEl = null, anchorReference = "anchorEl", anchorPosition, anchorOrigin = ANCHOR_ORIGIN_DEFAULT, transformOrigin = ANCHOR_ORIGIN_DEFAULT, onClose, elevation = 8, marginThreshold = 2, container, action, slotProps, hasBackdrop = false, disableScrollLock = false, disableAriaHidden = false, shouldAutoFocus = true, shouldTrapFocus = true, shouldEnforceFocus = true, shouldRestoreFocus = true, shouldKeepMounted = false, layer = "modal" }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require("./src-
|
|
2
|
-
const require_theme = require("./theme-
|
|
1
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
2
|
+
const require_theme = require("./theme-Bnc03K83.cjs");
|
|
3
3
|
const require_Paper = require("./Paper.cjs");
|
|
4
|
-
const require_Modal = require("./Modal-
|
|
4
|
+
const require_Modal = require("./Modal-CApyh_V5.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -162,7 +162,7 @@ const Surface = require_src.styled(require_Paper.Paper, {
|
|
|
162
162
|
/**
|
|
163
163
|
* @description Positions its content next to an anchor, portaled above the page.
|
|
164
164
|
* Built on `Modal`, so it inherits the portal, optional backdrop, focus management,
|
|
165
|
-
* scroll lock, and Escape/click-away close
|
|
165
|
+
* scroll lock, and Escape/click-away close - then adds anchor positioning
|
|
166
166
|
* (`anchorOrigin`/`transformOrigin`/`marginThreshold`).
|
|
167
167
|
*/
|
|
168
168
|
function Popover({ open, children, anchorEl = null, anchorReference = "anchorEl", anchorPosition, anchorOrigin = ANCHOR_ORIGIN_DEFAULT, transformOrigin = ANCHOR_ORIGIN_DEFAULT, onClose, elevation = 8, marginThreshold = 2, container, action, slotProps, hasBackdrop = false, disableScrollLock = false, disableAriaHidden = false, shouldAutoFocus = true, shouldTrapFocus = true, shouldEnforceFocus = true, shouldRestoreFocus = true, shouldKeepMounted = false, layer = "modal" }) {
|
package/dist/Popover.cjs
CHANGED
package/dist/Popover.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as Theme } from "./themes-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as PaperElevation, r as PaperProps } from "./index-
|
|
4
|
-
import { l as ModalCloseReason } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-kbuYiwCi.cjs";
|
|
2
|
+
import "./index-jmy5eXpx.cjs";
|
|
3
|
+
import { n as PaperElevation, r as PaperProps } from "./index-Cf7w9Lod.cjs";
|
|
4
|
+
import { l as ModalCloseReason } from "./index-D-QRCHiS.cjs";
|
|
5
5
|
import { ReactNode, Ref } from "react";
|
|
6
6
|
//#region src/Popover/utils/resolveAnchorEl.d.ts
|
|
7
7
|
type PopoverAnchorEl = HTMLElement | (() => HTMLElement | null) | null;
|
|
@@ -49,7 +49,7 @@ interface PopoverProps {
|
|
|
49
49
|
marginThreshold?: Exclude<keyof Theme['space'], 'auto'> | null;
|
|
50
50
|
/** Portal target passed to the underlying Modal. */
|
|
51
51
|
container?: HTMLElement | (() => HTMLElement | null) | null;
|
|
52
|
-
/** Ref for imperative actions
|
|
52
|
+
/** Ref for imperative actions - currently `updatePosition()`. */
|
|
53
53
|
action?: Ref<PopoverActions>;
|
|
54
54
|
/** Props for the paper slot (the surface). */
|
|
55
55
|
slotProps?: {
|
|
@@ -59,7 +59,7 @@ interface PopoverProps {
|
|
|
59
59
|
hasBackdrop?: boolean;
|
|
60
60
|
/** Disable body scroll-lock. When true, the popover re-positions on scroll. Default: false. */
|
|
61
61
|
disableScrollLock?: boolean;
|
|
62
|
-
/** Skip `aria-hidden` on background content
|
|
62
|
+
/** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
|
|
63
63
|
disableAriaHidden?: boolean;
|
|
64
64
|
/** Move focus into the popover on open. Default: true. */
|
|
65
65
|
shouldAutoFocus?: boolean;
|
|
@@ -77,7 +77,7 @@ interface PopoverProps {
|
|
|
77
77
|
/**
|
|
78
78
|
* @description Positions its content next to an anchor, portaled above the page.
|
|
79
79
|
* Built on `Modal`, so it inherits the portal, optional backdrop, focus management,
|
|
80
|
-
* scroll lock, and Escape/click-away close
|
|
80
|
+
* scroll lock, and Escape/click-away close - then adds anchor positioning
|
|
81
81
|
* (`anchorOrigin`/`transformOrigin`/`marginThreshold`).
|
|
82
82
|
*/
|
|
83
83
|
declare function Popover({ open, children, anchorEl, anchorReference, anchorPosition, anchorOrigin, transformOrigin, onClose, elevation, marginThreshold, container, action, slotProps, hasBackdrop, disableScrollLock, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, shouldKeepMounted, layer }: Readonly<PopoverProps>): import("react").JSX.Element;
|