@soroush.tech/design-system 1.3.3 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -10
- package/dist/AppBar.cjs +4 -0
- package/dist/AppBar.d.cts +3 -3
- package/dist/AppBar.d.mts +3 -3
- package/dist/AppBar.mjs +4 -0
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.d.cts +3 -3
- package/dist/Avatar.d.mts +3 -3
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Button.cjs +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/Card.cjs +2 -2
- 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 +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/CircularProgress.d.cts +3 -3
- package/dist/CircularProgress.d.mts +3 -3
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.cjs +1 -1
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/Grid.d.cts +1 -15
- package/dist/Grid.d.mts +1 -15
- package/dist/{Icon-BAMpe9SO.cjs → Icon-CKLBJ7CC.cjs} +1 -1
- package/dist/{Icon-gSiGgU13.mjs → Icon-CkQGOBmm.mjs} +1 -1
- 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.d.cts +2 -2
- package/dist/Image.d.mts +2 -2
- package/dist/LinearProgress.d.cts +3 -3
- package/dist/LinearProgress.d.mts +3 -3
- package/dist/Link.cjs +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.cjs +2 -2
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +2 -2
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/NativeSelect.cjs +2 -2
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +2 -2
- package/dist/PageLayout/LayoutGrid.cjs +21 -0
- package/dist/PageLayout/LayoutGrid.d.cts +22 -0
- package/dist/PageLayout/LayoutGrid.d.mts +22 -0
- package/dist/PageLayout/LayoutGrid.mjs +20 -0
- package/dist/PageLayout/PageLayout.cjs +148 -0
- package/dist/PageLayout/PageLayout.d.cts +31 -0
- package/dist/PageLayout/PageLayout.d.mts +31 -0
- package/dist/PageLayout/PageLayout.mjs +147 -0
- package/dist/PageLayout.cjs +7 -0
- package/dist/PageLayout.d.cts +19 -0
- package/dist/PageLayout.d.mts +19 -0
- package/dist/PageLayout.mjs +4 -0
- package/dist/PageLayoutContext-DjJ1_7Xc.mjs +5 -0
- package/dist/PageLayoutContext-agXGhegE.cjs +9 -0
- package/dist/Pagination/PaginationItem.cjs +1 -1
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +1 -1
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.cjs +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-Bq31OTEl.mjs → Popover-DWOrf7sy.mjs} +1 -1
- package/dist/{Popover-gg44qzwo.cjs → Popover-Dz6h3A_9.cjs} +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +4 -4
- package/dist/Popover.d.mts +4 -4
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +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 +3 -3
- package/dist/Quote.d.mts +3 -3
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Select.cjs +3 -3
- package/dist/Select.d.cts +3 -3
- package/dist/Select.d.mts +3 -3
- package/dist/Select.mjs +3 -3
- package/dist/Sidebar/Sidebar.cjs +25 -6
- package/dist/Sidebar/Sidebar.d.cts +5 -2
- package/dist/Sidebar/Sidebar.d.mts +5 -2
- package/dist/Sidebar/Sidebar.mjs +26 -7
- package/dist/Sidebar/SidebarItem.cjs +2 -1
- package/dist/Sidebar/SidebarItem.d.cts +4 -4
- package/dist/Sidebar/SidebarItem.d.mts +4 -4
- package/dist/Sidebar/SidebarItem.mjs +2 -1
- package/dist/Skeleton.d.cts +2 -2
- package/dist/Skeleton.d.mts +2 -2
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.d.cts +2 -2
- package/dist/Switch.d.mts +2 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.d.cts +3 -3
- package/dist/Table/Table.d.mts +3 -3
- package/dist/Table/TableBody.d.cts +2 -2
- package/dist/Table/TableBody.d.mts +2 -2
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableContainer.d.cts +3 -3
- package/dist/Table/TableContainer.d.mts +3 -3
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableFooter.d.cts +2 -2
- package/dist/Table/TableFooter.d.mts +2 -2
- package/dist/Table/TableHead.d.cts +2 -2
- package/dist/Table/TableHead.d.mts +2 -2
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePaginationActions.cjs +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 +2 -2
- package/dist/Table/TableRow.d.mts +2 -2
- package/dist/Table/TableSortLabel.cjs +1 -1
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +1 -1
- package/dist/Table/hooks.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-BrIREKe7.d.mts → TableContext-DBOk01Xl.d.mts} +1 -1
- package/dist/{TableContext-DXzUQ4-a.d.cts → TableContext-DRAhXvq3.d.cts} +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.mts +2 -2
- package/dist/TextInput.mjs +1 -1
- package/dist/ToggleButton/ToggleButton.cjs +1 -1
- 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.cjs +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.cjs +1 -1
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-COYxtrc0.d.mts → index-8mHoIUt5.d.mts} +2 -2
- package/dist/{index-DOLA1VFD.d.cts → index-B41OXLX8.d.mts} +3 -3
- package/dist/{index-BoIi-XoB.d.mts → index-B6vxRNLt.d.cts} +4 -4
- package/dist/{index-CTVFwvju.d.mts → index-B8KscJic.d.cts} +2 -2
- package/dist/{index-D3iQQ0L3.d.cts → index-BDD-L8uL.d.cts} +1 -1
- package/dist/{index-Cf7w9Lod.d.cts → index-BGD4OzzG.d.cts} +3 -3
- package/dist/index-BJ5Tsf7u.d.cts +16 -0
- package/dist/{index-KZKeZDAF.d.mts → index-BMJ3tyIw.d.cts} +3 -3
- package/dist/{index-C5-ZM7lt.d.cts → index-BNpkmtaM.d.mts} +4 -4
- package/dist/{index-BCvkP5R1.d.mts → index-BSR9zrAA.d.mts} +3 -3
- package/dist/index-BnFxdnEL.d.mts +16 -0
- package/dist/{index-DhMAwR96.d.mts → index-CCrocxBL.d.cts} +4 -4
- package/dist/{index-v_otepCe.d.mts → index-CEqa8xx8.d.mts} +1 -1
- package/dist/{index-d6gR2x8j.d.cts → index-CLttbRhG.d.cts} +2 -2
- package/dist/{index-CHRAYSwH.d.cts → index-CVb5zbas.d.mts} +4 -4
- package/dist/{index-XZDPGJ_h.d.mts → index-Cjlax0-f.d.mts} +2 -2
- package/dist/{index-NBVilQuP.d.mts → index-CoHrw2p7.d.mts} +1 -1
- package/dist/{index-h36rcOy8.d.mts → index-CohgpyUj.d.cts} +4 -4
- package/dist/{index-DzuXwDCW.d.cts → index-CtrxW81j.d.cts} +2 -2
- package/dist/{index-DQ16ijxx.d.mts → index-CvWslVk6.d.cts} +3 -3
- package/dist/{index-DdBeSvit.d.mts → index-CzmA09Yf.d.mts} +2 -2
- package/dist/{index-C-2VKPcp.d.mts → index-D4i9vrQM.d.mts} +2 -2
- package/dist/{index-vuPAf55D.d.cts → index-DNNg9RoR.d.cts} +3 -3
- package/dist/{index-76XH-GEc.d.mts → index-DPHwCZYf.d.cts} +2 -2
- package/dist/{index-jmy5eXpx.d.cts → index-DkJzi96w.d.cts} +1 -1
- package/dist/{index-Br2gDSme.d.cts → index-DsKd9VW5.d.mts} +4 -4
- package/dist/{index-Csp1Wzbz.d.cts → index-DuefjNlC.d.mts} +3 -3
- package/dist/{index-D9CwTcnr.d.cts → index-EYR0z1Qv.d.cts} +2 -2
- package/dist/{index-ggLhNdZV.d.mts → index-IEvuh6Cd.d.mts} +3 -3
- package/dist/{index-Oxx0z4dS.d.cts → index-S3NZS-Qp.d.cts} +2 -2
- package/dist/{index-BWECJgSb.d.mts → index-bN91IhZi.d.cts} +3 -3
- package/dist/{index-D-QRCHiS.d.cts → index-qtKJ56yu.d.mts} +2 -2
- package/dist/{index-DCu7qjpa.d.cts → index-r2avCy1z.d.mts} +2 -2
- package/dist/{index-Btmdtbpb.d.cts → index-tv-TGYSG.d.mts} +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/layoutStyles-B4Z1K6HZ.cjs +67 -0
- package/dist/layoutStyles-f0ISNjsC.mjs +56 -0
- 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-BuqqFbsz.mjs → theme-BQGlZoma.mjs} +49 -1
- package/dist/{theme-Bnc03K83.cjs → theme-BmEAXmwh.cjs} +60 -0
- package/dist/theme.cjs +3 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/{themes-kbuYiwCi.d.cts → themes-9YNnlVyY.d.cts} +70 -1
- package/dist/{themes-kbuYiwCi.d.mts → themes-9YNnlVyY.d.mts} +70 -1
- package/dist/{useTablePagination-BpMOVLsR.d.cts → useTablePagination-CLoac5oX.d.cts} +1 -1
- package/dist/{useTablePagination-DebYZ6vN.d.mts → useTablePagination-RelVsdMR.d.mts} +1 -1
- package/package.json +14 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { h as LayoutPanels } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import { LayoutGrid, LayoutGridProps } from "./PageLayout/LayoutGrid.mjs";
|
|
3
|
+
import "./index-CoHrw2p7.mjs";
|
|
4
|
+
import { PageLayout, PageLayoutBarPlacement, PageLayoutPanelSide, PageLayoutProps } from "./PageLayout/PageLayout.mjs";
|
|
5
|
+
//#region src/PageLayout/PageLayoutContext.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `PageLayout` region a component renders in, so components that fill a region
|
|
8
|
+
* (`Sidebar` in a panel, `AppBar` in a bar) can size from it. `null` outside one.
|
|
9
|
+
*/
|
|
10
|
+
type PageLayoutRegion = {
|
|
11
|
+
region: 'panel';
|
|
12
|
+
side: keyof LayoutPanels;
|
|
13
|
+
} | {
|
|
14
|
+
region: 'bar';
|
|
15
|
+
placement: 'top' | 'bottom';
|
|
16
|
+
};
|
|
17
|
+
declare const PageLayoutContext: import("react").Context<PageLayoutRegion | null>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { LayoutGrid, LayoutGridProps, PageLayout, PageLayoutBarPlacement, PageLayoutContext, PageLayoutPanelSide, PageLayoutProps, PageLayoutRegion };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/PageLayout/PageLayoutContext.ts
|
|
2
|
+
const PageLayoutContext = (0, require("react").createContext)(null);
|
|
3
|
+
//#endregion
|
|
4
|
+
Object.defineProperty(exports, "PageLayoutContext", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function() {
|
|
7
|
+
return PageLayoutContext;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
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-CKLBJ7CC.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");
|
|
@@ -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-CLttbRhG.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-CzmA09Yf.mjs";
|
|
2
2
|
export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-CkQGOBmm.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Pagination/PaginationItem/PaginationItem.tsx
|
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-CLttbRhG.cjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-CohgpyUj.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-CzmA09Yf.mjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-DsKd9VW5.mjs";
|
|
3
3
|
export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
|
package/dist/Paper.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
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-BmEAXmwh.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-BGD4OzzG.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-BSR9zrAA.mjs";
|
|
2
2
|
export { Paper, PaperElevation, PaperProps };
|
package/dist/Paper.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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-BQGlZoma.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Paper/Paper.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
|
-
import { r as useTheme } from "./theme-
|
|
2
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
3
3
|
import { Paper } from "./Paper.mjs";
|
|
4
4
|
import { t as Modal } from "./Modal-CYNcPk-2.mjs";
|
|
5
5
|
import { useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_src = require("./src-DU81aGy9.cjs");
|
|
2
|
-
const require_theme = require("./theme-
|
|
2
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
3
3
|
const require_Paper = require("./Paper.cjs");
|
|
4
4
|
const require_Modal = require("./Modal-CApyh_V5.cjs");
|
|
5
5
|
let react = require("react");
|
package/dist/Popover.cjs
CHANGED
package/dist/Popover.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as PaperElevation, r as PaperProps } from "./index-
|
|
4
|
-
import { l as ModalCloseReason } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as PaperElevation, r as PaperProps } from "./index-BGD4OzzG.cjs";
|
|
4
|
+
import { l as ModalCloseReason } from "./index-B8KscJic.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;
|
package/dist/Popover.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as PaperElevation, r as PaperProps } from "./index-
|
|
4
|
-
import { l as ModalCloseReason } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as PaperElevation, r as PaperProps } from "./index-BSR9zrAA.mjs";
|
|
4
|
+
import { l as ModalCloseReason } from "./index-qtKJ56yu.mjs";
|
|
5
5
|
import { ReactNode, Ref } from "react";
|
|
6
6
|
//#region src/Popover/utils/resolveAnchorEl.d.ts
|
|
7
7
|
type PopoverAnchorEl = HTMLElement | (() => HTMLElement | null) | null;
|
package/dist/Popover.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Popover } from "./Popover-
|
|
1
|
+
import { t as Popover } from "./Popover-DWOrf7sy.mjs";
|
|
2
2
|
export { Popover };
|
package/dist/Pressable.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
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_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-BmEAXmwh.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");
|
package/dist/Pressable.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-
|
|
1
|
+
import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-CtrxW81j.cjs";
|
|
2
2
|
export { Pressable, PressableColor, PressableFeedback, PressableProps };
|
package/dist/Pressable.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-
|
|
1
|
+
import { i as PressableProps, n as PressableColor, r as PressableFeedback, t as Pressable } from "./index-8mHoIUt5.mjs";
|
|
2
2
|
export { Pressable, PressableColor, PressableFeedback, PressableProps };
|
package/dist/Pressable.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { n as useDefaultProps, r as useTheme } from "./theme-
|
|
4
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Pressable/Pressable.tsx
|
package/dist/Quote.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { s as ViewProps } from "./index-CvWslVk6.cjs";
|
|
4
4
|
//#region src/Quote/Quote.d.ts
|
|
5
5
|
type QuoteProps = ViewProps;
|
|
6
6
|
/** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
|
package/dist/Quote.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { s as ViewProps } from "./index-tv-TGYSG.mjs";
|
|
4
4
|
//#region src/Quote/Quote.d.ts
|
|
5
5
|
type QuoteProps = ViewProps;
|
|
6
6
|
/** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
|
package/dist/Radio.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Radio/Radio.d.ts
|
package/dist/Radio.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
5
5
|
//#region src/Radio/Radio.d.ts
|
package/dist/Select.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
-
const require_theme = require("./theme-
|
|
5
|
-
const require_Icon = require("./Icon-
|
|
4
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-CKLBJ7CC.cjs");
|
|
6
6
|
const require_FormControl = require("./FormControl.cjs");
|
|
7
7
|
const require_inputVariantStyles = require("./inputVariantStyles-BBkkYQtE.cjs");
|
|
8
8
|
const require_NativeSelect = require("./NativeSelect.cjs");
|
|
9
|
-
const require_Popover = require("./Popover-
|
|
9
|
+
const require_Popover = require("./Popover-Dz6h3A_9.cjs");
|
|
10
10
|
let react = require("react");
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
package/dist/Select.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DPHwCZYf.cjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/Select/utils/isOptionSelected.d.ts
|
package/dist/Select.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-r2avCy1z.mjs";
|
|
4
4
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
//#region src/Select/utils/isOptionSelected.d.ts
|
package/dist/Select.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
-
import { r as useTheme } from "./theme-
|
|
4
|
-
import { t as Icon } from "./Icon-
|
|
3
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-CkQGOBmm.mjs";
|
|
5
5
|
import { useFormControl } from "./FormControl.mjs";
|
|
6
6
|
import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
|
|
7
7
|
import { NativeSelect } from "./NativeSelect.mjs";
|
|
8
|
-
import { t as Popover } from "./Popover-
|
|
8
|
+
import { t as Popover } from "./Popover-DWOrf7sy.mjs";
|
|
9
9
|
import { Children, cloneElement, isValidElement, useCallback, useId, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/Select/hooks/useSelectPopover.ts
|
package/dist/Sidebar/Sidebar.cjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_src = require("../src-DU81aGy9.cjs");
|
|
3
3
|
const require_Flex = require("../Flex.cjs");
|
|
4
|
+
const require_PageLayoutContext = require("../PageLayoutContext-agXGhegE.cjs");
|
|
5
|
+
const require_layoutStyles = require("../layoutStyles-B4Z1K6HZ.cjs");
|
|
4
6
|
const require_SidebarContext = require("../SidebarContext-jG6OioC-.cjs");
|
|
5
7
|
let react = require("react");
|
|
6
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
9
|
//#region src/Sidebar/Sidebar/Sidebar.tsx
|
|
10
|
+
const hideLabels = { "[data-sidebar-item-content] > :not(:first-child)": { display: "none" } };
|
|
8
11
|
const SidebarRoot = require_src.styled(require_Flex.Flex, {
|
|
9
12
|
name: "Sidebar",
|
|
10
13
|
label: "Sidebar"
|
|
@@ -13,13 +16,21 @@ const SidebarRail = require_src.styled(require_Flex.Flex, {
|
|
|
13
16
|
name: "Sidebar",
|
|
14
17
|
slot: "rail",
|
|
15
18
|
label: "SidebarRail",
|
|
16
|
-
shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "expandedWidth" && prop !== "collapsedWidth"
|
|
17
|
-
})(({ isOpen, expandedWidth, collapsedWidth }) =>
|
|
19
|
+
shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "expandedWidth" && prop !== "collapsedWidth" && prop !== "panelSide"
|
|
20
|
+
})(({ theme, isOpen, expandedWidth, collapsedWidth, panelSide }) => panelSide ? {
|
|
21
|
+
width: "100%",
|
|
22
|
+
overflowX: "hidden",
|
|
23
|
+
containerType: "inline-size",
|
|
24
|
+
...require_layoutStyles.layoutStyles(theme, ({ panels }) => {
|
|
25
|
+
const width = panels[panelSide]?.width;
|
|
26
|
+
return width === void 0 ? {} : { [`@container (width < ${require_layoutStyles.layoutLength(theme, width)})`]: hideLabels };
|
|
27
|
+
})
|
|
28
|
+
} : {
|
|
18
29
|
width: isOpen ? expandedWidth : collapsedWidth,
|
|
19
30
|
transition: "width 200ms ease",
|
|
20
31
|
overflowX: "hidden",
|
|
21
32
|
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
22
|
-
})
|
|
33
|
+
});
|
|
23
34
|
const SidebarPanelRoot = require_src.styled(require_Flex.Flex, {
|
|
24
35
|
name: "Sidebar",
|
|
25
36
|
slot: "panel",
|
|
@@ -43,7 +54,10 @@ const SidebarPanelRoot = require_src.styled(require_Flex.Flex, {
|
|
|
43
54
|
* is independent of `isOpen`, so a collapsed icons-only rail can sit beside an
|
|
44
55
|
* open panel.
|
|
45
56
|
*/
|
|
46
|
-
function Sidebar({ children, isOpen, anchor = "left", variant = "text", expandedWidth
|
|
57
|
+
function Sidebar({ children, isOpen, anchor = "left", variant = "text", expandedWidth, collapsedWidth, hasPanel = false, panelWidth = "18rem", panelProps, "aria-label": ariaLabel, ...rest }) {
|
|
58
|
+
const region = (0, react.useContext)(require_PageLayoutContext.PageLayoutContext);
|
|
59
|
+
const isSized = expandedWidth !== void 0 || collapsedWidth !== void 0;
|
|
60
|
+
const panelSide = region?.region === "panel" && !isSized ? region.side : void 0;
|
|
47
61
|
const panelId = (0, react.useId)();
|
|
48
62
|
const [panelNode, setPanelNode] = (0, react.useState)(null);
|
|
49
63
|
const [panelLabel, setPanelLabel] = (0, react.useState)(null);
|
|
@@ -68,14 +82,19 @@ function Sidebar({ children, isOpen, anchor = "left", variant = "text", expanded
|
|
|
68
82
|
"aria-label": ariaLabel,
|
|
69
83
|
flexDirection: anchor === "right" ? "row-reverse" : "row",
|
|
70
84
|
flexShrink: 0,
|
|
85
|
+
...panelSide && {
|
|
86
|
+
width: "100%",
|
|
87
|
+
height: "100%"
|
|
88
|
+
},
|
|
71
89
|
...rest,
|
|
72
90
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarRail, {
|
|
73
91
|
flexDirection: "column",
|
|
74
92
|
gap: 1,
|
|
75
93
|
flexShrink: 0,
|
|
76
94
|
isOpen,
|
|
77
|
-
expandedWidth,
|
|
78
|
-
collapsedWidth,
|
|
95
|
+
expandedWidth: expandedWidth ?? "14rem",
|
|
96
|
+
collapsedWidth: collapsedWidth ?? "3.5rem",
|
|
97
|
+
panelSide,
|
|
79
98
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SidebarContext.SidebarContext.Provider, {
|
|
80
99
|
value: context,
|
|
81
100
|
children
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FlexProps } from "../index-
|
|
1
|
+
import { n as FlexProps } from "../index-BMJ3tyIw.cjs";
|
|
2
2
|
import { i as SidebarItemVariant, t as SidebarAnchor } from "../SidebarContext-B1lWrt77.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/Sidebar/Sidebar/Sidebar.d.ts
|
|
@@ -17,7 +17,10 @@ interface SidebarProps extends FlexProps {
|
|
|
17
17
|
anchor?: SidebarAnchor;
|
|
18
18
|
/** Default variant for every item - an item's own `variant` wins. Default: `'text'`. */
|
|
19
19
|
variant?: SidebarItemVariant;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Rail width while open. Default: `'14rem'`. In a `PageLayout` panel, with neither
|
|
22
|
+
* width set, the rail fills the panel's track instead.
|
|
23
|
+
*/
|
|
21
24
|
expandedWidth?: string;
|
|
22
25
|
/** Rail width while collapsed (icons only). Default: `'3.5rem'`. */
|
|
23
26
|
collapsedWidth?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FlexProps } from "../index-
|
|
1
|
+
import { n as FlexProps } from "../index-B41OXLX8.mjs";
|
|
2
2
|
import { i as SidebarItemVariant, t as SidebarAnchor } from "../SidebarContext-B1lWrt77.mjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/Sidebar/Sidebar/Sidebar.d.ts
|
|
@@ -17,7 +17,10 @@ interface SidebarProps extends FlexProps {
|
|
|
17
17
|
anchor?: SidebarAnchor;
|
|
18
18
|
/** Default variant for every item - an item's own `variant` wins. Default: `'text'`. */
|
|
19
19
|
variant?: SidebarItemVariant;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Rail width while open. Default: `'14rem'`. In a `PageLayout` panel, with neither
|
|
22
|
+
* width set, the rail fills the panel's track instead.
|
|
23
|
+
*/
|
|
21
24
|
expandedWidth?: string;
|
|
22
25
|
/** Rail width while collapsed (icons only). Default: `'3.5rem'`. */
|
|
23
26
|
collapsedWidth?: string;
|
package/dist/Sidebar/Sidebar.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { o as styled } from "../src-DLGYOJMh.mjs";
|
|
2
2
|
import { Flex } from "../Flex.mjs";
|
|
3
|
+
import { t as PageLayoutContext } from "../PageLayoutContext-DjJ1_7Xc.mjs";
|
|
4
|
+
import { n as layoutStyles, t as layoutLength } from "../layoutStyles-f0ISNjsC.mjs";
|
|
3
5
|
import { t as SidebarContext } from "../SidebarContext-DgSLwjur.mjs";
|
|
4
|
-
import { useId, useMemo, useState } from "react";
|
|
6
|
+
import { useContext, useId, useMemo, useState } from "react";
|
|
5
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
8
|
//#region src/Sidebar/Sidebar/Sidebar.tsx
|
|
9
|
+
const hideLabels = { "[data-sidebar-item-content] > :not(:first-child)": { display: "none" } };
|
|
7
10
|
const SidebarRoot = styled(Flex, {
|
|
8
11
|
name: "Sidebar",
|
|
9
12
|
label: "Sidebar"
|
|
@@ -12,13 +15,21 @@ const SidebarRail = styled(Flex, {
|
|
|
12
15
|
name: "Sidebar",
|
|
13
16
|
slot: "rail",
|
|
14
17
|
label: "SidebarRail",
|
|
15
|
-
shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "expandedWidth" && prop !== "collapsedWidth"
|
|
16
|
-
})(({ isOpen, expandedWidth, collapsedWidth }) =>
|
|
18
|
+
shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "expandedWidth" && prop !== "collapsedWidth" && prop !== "panelSide"
|
|
19
|
+
})(({ theme, isOpen, expandedWidth, collapsedWidth, panelSide }) => panelSide ? {
|
|
20
|
+
width: "100%",
|
|
21
|
+
overflowX: "hidden",
|
|
22
|
+
containerType: "inline-size",
|
|
23
|
+
...layoutStyles(theme, ({ panels }) => {
|
|
24
|
+
const width = panels[panelSide]?.width;
|
|
25
|
+
return width === void 0 ? {} : { [`@container (width < ${layoutLength(theme, width)})`]: hideLabels };
|
|
26
|
+
})
|
|
27
|
+
} : {
|
|
17
28
|
width: isOpen ? expandedWidth : collapsedWidth,
|
|
18
29
|
transition: "width 200ms ease",
|
|
19
30
|
overflowX: "hidden",
|
|
20
31
|
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
21
|
-
})
|
|
32
|
+
});
|
|
22
33
|
const SidebarPanelRoot = styled(Flex, {
|
|
23
34
|
name: "Sidebar",
|
|
24
35
|
slot: "panel",
|
|
@@ -42,7 +53,10 @@ const SidebarPanelRoot = styled(Flex, {
|
|
|
42
53
|
* is independent of `isOpen`, so a collapsed icons-only rail can sit beside an
|
|
43
54
|
* open panel.
|
|
44
55
|
*/
|
|
45
|
-
function Sidebar({ children, isOpen, anchor = "left", variant = "text", expandedWidth
|
|
56
|
+
function Sidebar({ children, isOpen, anchor = "left", variant = "text", expandedWidth, collapsedWidth, hasPanel = false, panelWidth = "18rem", panelProps, "aria-label": ariaLabel, ...rest }) {
|
|
57
|
+
const region = useContext(PageLayoutContext);
|
|
58
|
+
const isSized = expandedWidth !== void 0 || collapsedWidth !== void 0;
|
|
59
|
+
const panelSide = region?.region === "panel" && !isSized ? region.side : void 0;
|
|
46
60
|
const panelId = useId();
|
|
47
61
|
const [panelNode, setPanelNode] = useState(null);
|
|
48
62
|
const [panelLabel, setPanelLabel] = useState(null);
|
|
@@ -67,14 +81,19 @@ function Sidebar({ children, isOpen, anchor = "left", variant = "text", expanded
|
|
|
67
81
|
"aria-label": ariaLabel,
|
|
68
82
|
flexDirection: anchor === "right" ? "row-reverse" : "row",
|
|
69
83
|
flexShrink: 0,
|
|
84
|
+
...panelSide && {
|
|
85
|
+
width: "100%",
|
|
86
|
+
height: "100%"
|
|
87
|
+
},
|
|
70
88
|
...rest,
|
|
71
89
|
children: [/* @__PURE__ */ jsx(SidebarRail, {
|
|
72
90
|
flexDirection: "column",
|
|
73
91
|
gap: 1,
|
|
74
92
|
flexShrink: 0,
|
|
75
93
|
isOpen,
|
|
76
|
-
expandedWidth,
|
|
77
|
-
collapsedWidth,
|
|
94
|
+
expandedWidth: expandedWidth ?? "14rem",
|
|
95
|
+
collapsedWidth: collapsedWidth ?? "3.5rem",
|
|
96
|
+
panelSide,
|
|
78
97
|
children: /* @__PURE__ */ jsx(SidebarContext.Provider, {
|
|
79
98
|
value: context,
|
|
80
99
|
children
|
|
@@ -3,7 +3,7 @@ const require_src = require("../src-DU81aGy9.cjs");
|
|
|
3
3
|
const require_Flex = require("../Flex.cjs");
|
|
4
4
|
const require_utils = require("../utils.cjs");
|
|
5
5
|
const require_Typography = require("../Typography.cjs");
|
|
6
|
-
const require_Icon = require("../Icon-
|
|
6
|
+
const require_Icon = require("../Icon-CKLBJ7CC.cjs");
|
|
7
7
|
const require_Portal = require("../Portal.cjs");
|
|
8
8
|
const require_Pressable = require("../Pressable.cjs");
|
|
9
9
|
const require_SidebarContext = require("../SidebarContext-jG6OioC-.cjs");
|
|
@@ -101,6 +101,7 @@ function SidebarItem({ icon, label, variant, size = "sm", color = "primary", chi
|
|
|
101
101
|
...rest,
|
|
102
102
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Flex.Flex, {
|
|
103
103
|
as: "span",
|
|
104
|
+
"data-sidebar-item-content": "",
|
|
104
105
|
flexDirection: anchor === "right" ? "row-reverse" : "row",
|
|
105
106
|
alignItems: "center",
|
|
106
107
|
gap: 2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
3
|
-
import { r as IconName } from "../index-
|
|
4
|
-
import { i as PressableProps } from "../index-
|
|
1
|
+
import { S as Theme } from "../themes-9YNnlVyY.cjs";
|
|
2
|
+
import "../index-DkJzi96w.cjs";
|
|
3
|
+
import { r as IconName } from "../index-DPHwCZYf.cjs";
|
|
4
|
+
import { i as PressableProps } from "../index-CtrxW81j.cjs";
|
|
5
5
|
import { i as SidebarItemVariant } from "../SidebarContext-B1lWrt77.cjs";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
//#region src/Sidebar/SidebarItem/SidebarItem.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
3
|
-
import { r as IconName } from "../index-
|
|
4
|
-
import { i as PressableProps } from "../index-
|
|
1
|
+
import { S as Theme } from "../themes-9YNnlVyY.mjs";
|
|
2
|
+
import "../index-CEqa8xx8.mjs";
|
|
3
|
+
import { r as IconName } from "../index-r2avCy1z.mjs";
|
|
4
|
+
import { i as PressableProps } from "../index-8mHoIUt5.mjs";
|
|
5
5
|
import { i as SidebarItemVariant } from "../SidebarContext-B1lWrt77.mjs";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
//#region src/Sidebar/SidebarItem/SidebarItem.d.ts
|
|
@@ -2,7 +2,7 @@ import { a as src_exports, o as styled } from "../src-DLGYOJMh.mjs";
|
|
|
2
2
|
import { Flex } from "../Flex.mjs";
|
|
3
3
|
import { alpha } from "../utils.mjs";
|
|
4
4
|
import { Typography } from "../Typography.mjs";
|
|
5
|
-
import { t as Icon } from "../Icon-
|
|
5
|
+
import { t as Icon } from "../Icon-CkQGOBmm.mjs";
|
|
6
6
|
import { Portal } from "../Portal.mjs";
|
|
7
7
|
import { Pressable } from "../Pressable.mjs";
|
|
8
8
|
import { t as SidebarContext } from "../SidebarContext-DgSLwjur.mjs";
|
|
@@ -100,6 +100,7 @@ function SidebarItem({ icon, label, variant, size = "sm", color = "primary", chi
|
|
|
100
100
|
...rest,
|
|
101
101
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
102
102
|
as: "span",
|
|
103
|
+
"data-sidebar-item-content": "",
|
|
103
104
|
flexDirection: anchor === "right" ? "row-reverse" : "row",
|
|
104
105
|
alignItems: "center",
|
|
105
106
|
gap: 2,
|
package/dist/Skeleton.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
import { PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Skeleton/Skeleton.d.ts
|
package/dist/Skeleton.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Skeleton/Skeleton.d.ts
|
package/dist/Switch.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
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_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-BmEAXmwh.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");
|
package/dist/Switch.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Switch/Switch.d.ts
|
package/dist/Switch.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ChangeEvent, ReactNode } from "react";
|
|
5
5
|
//#region src/Switch/Switch.d.ts
|
package/dist/Switch.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { r as useTheme } from "./theme-
|
|
4
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Switch/Switch.tsx
|