@soroush.tech/design-system 2.0.0-alpha.0 → 2.0.0-alpha.2
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 +37 -34
- package/dist/AppBar.cjs +0 -4
- package/dist/AppBar.d.cts +3 -3
- package/dist/AppBar.d.mts +3 -3
- package/dist/AppBar.mjs +0 -4
- 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.cjs +109 -17
- package/dist/Drawer.d.cts +43 -7
- package/dist/Drawer.d.mts +43 -7
- package/dist/Drawer.mjs +109 -18
- package/dist/Flex.cjs +6 -2
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +6 -2
- 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.cjs +7 -2
- package/dist/Grid.d.cts +20 -1
- package/dist/Grid.d.mts +20 -1
- package/dist/Grid.mjs +7 -2
- package/dist/{Icon-CkQGOBmm.mjs → Icon-BGcd6yy0.mjs} +1 -1
- package/dist/{Icon-CKLBJ7CC.cjs → Icon-Cn6Zx8wb.cjs} +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.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 +2 -2
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +2 -2
- 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-Dz6h3A_9.cjs → Popover-CrSABgRk.cjs} +2 -2
- package/dist/{Popover-DWOrf7sy.mjs → Popover-DlpXdcwt.mjs} +2 -2
- 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 +4 -4
- package/dist/Quote.d.mts +4 -4
- 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 +6 -25
- package/dist/Sidebar/Sidebar.d.cts +2 -5
- package/dist/Sidebar/Sidebar.d.mts +2 -5
- package/dist/Sidebar/Sidebar.mjs +7 -26
- package/dist/Sidebar/SidebarItem.cjs +1 -2
- package/dist/Sidebar/SidebarItem.d.cts +4 -4
- package/dist/Sidebar/SidebarItem.d.mts +4 -4
- package/dist/Sidebar/SidebarItem.mjs +1 -2
- 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 +4 -4
- package/dist/Table/TableContainer.d.mts +4 -4
- 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-DRAhXvq3.d.cts → TableContext-BowhBZkZ.d.cts} +1 -1
- package/dist/{TableContext-DBOk01Xl.d.mts → TableContext-GmYLRYpc.d.mts} +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.cjs +2 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +2 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-D4i9vrQM.d.mts → index-B2eLreA5.d.cts} +3 -3
- package/dist/{index-DPHwCZYf.d.cts → index-BBV7_p-W.d.mts} +2 -2
- package/dist/{index-CoHrw2p7.d.mts → index-BHyJ6P_D.d.mts} +1 -1
- package/dist/{index-BDD-L8uL.d.cts → index-BO-vkjtm.d.cts} +1 -1
- package/dist/{index-BNpkmtaM.d.mts → index-BT-mcuE6.d.mts} +3 -3
- package/dist/{index-qtKJ56yu.d.mts → index-BW4rc8cK.d.cts} +2 -2
- package/dist/{index-B8KscJic.d.cts → index-BbngAEDY.d.mts} +2 -2
- package/dist/{index-BSR9zrAA.d.mts → index-Bqk30r0W.d.mts} +3 -3
- package/dist/{index-DkJzi96w.d.cts → index-BsUsSWXP.d.cts} +1 -1
- package/dist/{index-EYR0z1Qv.d.cts → index-C-kvrbCi.d.cts} +2 -2
- package/dist/{index-CvWslVk6.d.cts → index-C0-SB0dL.d.mts} +4 -4
- package/dist/{index-DsKd9VW5.d.mts → index-C58AZZQ2.d.cts} +4 -4
- package/dist/{index-IEvuh6Cd.d.mts → index-C7bEBYuv.d.mts} +3 -3
- package/dist/{index-CohgpyUj.d.cts → index-CGCO5eo7.d.mts} +4 -4
- package/dist/{index-CzmA09Yf.d.mts → index-CMKzrxOO.d.mts} +2 -2
- package/dist/{index-DNNg9RoR.d.cts → index-CNzkJGNq.d.cts} +3 -3
- package/dist/{index-CtrxW81j.d.cts → index-CPNzQhUu.d.cts} +2 -2
- package/dist/{index-8mHoIUt5.d.mts → index-CmscFo1L.d.mts} +2 -2
- package/dist/{index-r2avCy1z.d.mts → index-CxDY_w-H.d.cts} +2 -2
- package/dist/{index-CCrocxBL.d.cts → index-D0XX9v0b.d.cts} +3 -3
- package/dist/{index-CVb5zbas.d.mts → index-D2yMhmE_.d.mts} +3 -3
- package/dist/{index-bN91IhZi.d.cts → index-D5Rj4uWe.d.cts} +2 -2
- package/dist/{index-DuefjNlC.d.mts → index-DJ8NTYR8.d.mts} +2 -2
- package/dist/{index-B6vxRNLt.d.cts → index-DTeurv8z.d.cts} +3 -3
- package/dist/{index-S3NZS-Qp.d.cts → index-DYtIEMr9.d.mts} +3 -3
- package/dist/{index-CEqa8xx8.d.mts → index-Dkqk_6g2.d.mts} +1 -1
- package/dist/index-EuWfYhf8.d.mts +21 -0
- package/dist/{index-BGD4OzzG.d.cts → index-H30eNjJf.d.cts} +3 -3
- package/dist/{index-tv-TGYSG.d.mts → index-JSOR69Iy.d.cts} +4 -4
- package/dist/{index-CLttbRhG.d.cts → index-VwsWkazt.d.cts} +2 -2
- package/dist/{index-Cjlax0-f.d.mts → index-di-L2lJ9.d.mts} +2 -2
- package/dist/index-ue1Ccvln.d.cts +21 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- 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-BQGlZoma.mjs → theme-C1o9qa2E.mjs} +75 -27
- package/dist/{theme-BmEAXmwh.cjs → theme-DfAqr7qo.cjs} +116 -26
- package/dist/theme.cjs +8 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/{themes-9YNnlVyY.d.mts → themes-C3RTORGO.d.mts} +63 -21
- package/dist/{themes-9YNnlVyY.d.cts → themes-Dswy4M6B.d.cts} +63 -21
- package/dist/{useTablePagination-RelVsdMR.d.mts → useTablePagination-BueH0_dG.d.cts} +1 -1
- package/dist/{useTablePagination-CLoac5oX.d.cts → useTablePagination-CxBh-gU8.d.mts} +1 -1
- package/package.json +2 -12
- package/dist/PageLayout/LayoutGrid.cjs +0 -21
- package/dist/PageLayout/LayoutGrid.d.cts +0 -22
- package/dist/PageLayout/LayoutGrid.d.mts +0 -22
- package/dist/PageLayout/LayoutGrid.mjs +0 -20
- package/dist/PageLayout/PageLayout.cjs +0 -148
- package/dist/PageLayout/PageLayout.d.cts +0 -31
- package/dist/PageLayout/PageLayout.d.mts +0 -31
- package/dist/PageLayout/PageLayout.mjs +0 -147
- package/dist/PageLayout.cjs +0 -7
- package/dist/PageLayout.d.cts +0 -19
- package/dist/PageLayout.d.mts +0 -19
- package/dist/PageLayout.mjs +0 -4
- package/dist/PageLayoutContext-DjJ1_7Xc.mjs +0 -5
- package/dist/PageLayoutContext-agXGhegE.cjs +0 -9
- package/dist/index-B41OXLX8.d.mts +0 -16
- package/dist/index-BJ5Tsf7u.d.cts +0 -16
- package/dist/index-BMJ3tyIw.d.cts +0 -16
- package/dist/index-BnFxdnEL.d.mts +0 -16
- package/dist/layoutStyles-B4Z1K6HZ.cjs +0 -67
- package/dist/layoutStyles-f0ISNjsC.mjs +0 -56
- package/dist/{Modal-CYNcPk-2.mjs → Modal-BcsyrrpH.mjs} +1 -1
- package/dist/{Modal-CApyh_V5.cjs → Modal-CM3osOqj.cjs} +1 -1
package/dist/Drawer.d.mts
CHANGED
|
@@ -1,22 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as ButtonProps } from "./index-DYtIEMr9.mjs";
|
|
2
|
+
import { n as PaperElevation } from "./index-Bqk30r0W.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/Drawer/Drawer.d.ts
|
|
5
5
|
type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
|
|
6
|
-
|
|
6
|
+
/** Why the drawer closed: the Escape key, or any other dismissal (a click outside, its toggle). */
|
|
7
|
+
type DrawerCloseReason = 'escapeKey' | 'dismiss';
|
|
8
|
+
interface DrawerProps {
|
|
9
|
+
/** The element id a `DrawerToggle`'s `drawer` names. */
|
|
10
|
+
id: string;
|
|
7
11
|
/** The content of the drawer. */
|
|
8
12
|
children: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Open state, for controlled use with JavaScript. Leave it out and the drawer opens and
|
|
15
|
+
* closes from its `DrawerToggle` alone - which also works with JavaScript disabled.
|
|
16
|
+
*/
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
/** Fired when the drawer closes by itself: Escape, a click outside, or its toggle. */
|
|
19
|
+
onClose?: (event: Event, reason: DrawerCloseReason) => void;
|
|
9
20
|
/** Edge the drawer slides in from. Default: 'left'. */
|
|
10
21
|
anchor?: DrawerAnchor;
|
|
11
22
|
/** Shadow depth of the panel (0-24), forwarded to Paper. Default: 16. */
|
|
12
23
|
elevation?: PaperElevation;
|
|
13
24
|
/** Slide duration in milliseconds. Default: 225. */
|
|
14
25
|
transitionDuration?: number;
|
|
26
|
+
/** Dim the page behind the open drawer. Default: true. */
|
|
27
|
+
hasBackdrop?: boolean;
|
|
28
|
+
/** With JavaScript: lock body scroll while open. Default: true. */
|
|
29
|
+
shouldLockScroll?: boolean;
|
|
30
|
+
/** With JavaScript: move focus into the drawer when it opens. Default: true. */
|
|
31
|
+
shouldAutoFocus?: boolean;
|
|
32
|
+
/** With JavaScript: keep Tab cycling within the open drawer. Default: true. */
|
|
33
|
+
shouldTrapFocus?: boolean;
|
|
34
|
+
/** With JavaScript: return focus to where it was when the drawer closes. Default: true. */
|
|
35
|
+
shouldRestoreFocus?: boolean;
|
|
15
36
|
}
|
|
16
37
|
/**
|
|
17
|
-
* @description A panel that slides in from a screen edge
|
|
18
|
-
*
|
|
38
|
+
* @description A panel that slides in from a screen edge. It is an HTML `popover`: a
|
|
39
|
+
* `DrawerToggle` opens it, and Escape or a click outside closes it - all without JavaScript,
|
|
40
|
+
* so it works on a prerendered page with scripts off. With JavaScript it can be controlled with
|
|
41
|
+
* `isOpen` / `onClose`, and it moves focus in, traps Tab and locks scroll while open.
|
|
19
42
|
*/
|
|
20
|
-
declare function Drawer({ children, anchor, elevation, transitionDuration,
|
|
43
|
+
declare function Drawer({ id, children, isOpen, onClose, anchor, elevation, transitionDuration, hasBackdrop, shouldLockScroll, shouldAutoFocus, shouldTrapFocus, shouldRestoreFocus }: Readonly<DrawerProps>): import("react").JSX.Element;
|
|
21
44
|
//#endregion
|
|
22
|
-
|
|
45
|
+
//#region src/Drawer/DrawerToggle.d.ts
|
|
46
|
+
interface DrawerToggleProps extends Omit<ButtonProps, 'href'> {
|
|
47
|
+
/** The `id` of the `Drawer` this button opens and closes. */
|
|
48
|
+
drawer: string;
|
|
49
|
+
/** What a click does to the drawer. Default: 'toggle'. */
|
|
50
|
+
action?: 'toggle' | 'show' | 'hide';
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @description The button that opens and closes a `Drawer`, through the HTML
|
|
54
|
+
* `popovertarget` attribute - it works without JavaScript. Takes every `Button` prop.
|
|
55
|
+
*/
|
|
56
|
+
declare function DrawerToggle({ drawer, action, ...rest }: Readonly<DrawerToggleProps>): import("react").JSX.Element;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { Drawer, DrawerAnchor, DrawerCloseReason, DrawerProps, DrawerToggle, DrawerToggleProps };
|
package/dist/Drawer.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { o as styled, r as keyframes, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
|
+
import { Button } from "./Button.mjs";
|
|
2
3
|
import { Paper } from "./Paper.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import "react";
|
|
4
|
+
import { FocusTrap } from "./FocusTrap.mjs";
|
|
5
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
//#region src/Drawer/Drawer.tsx
|
|
7
8
|
const slideIn = {
|
|
@@ -36,32 +37,122 @@ const anchorPosition = {
|
|
|
36
37
|
width: "100%"
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
|
-
const shouldForwardProp = createShouldForwardProp([
|
|
40
|
-
|
|
40
|
+
const shouldForwardProp = createShouldForwardProp([
|
|
41
|
+
"anchor",
|
|
42
|
+
"duration",
|
|
43
|
+
"hasBackdrop"
|
|
44
|
+
]);
|
|
45
|
+
const DrawerPanel = styled("div", {
|
|
41
46
|
name: "Drawer",
|
|
42
47
|
label: "Drawer",
|
|
43
48
|
shouldForwardProp
|
|
44
|
-
})(({ anchor, duration }) => ({
|
|
49
|
+
})(({ theme, anchor, duration, hasBackdrop }) => ({
|
|
45
50
|
position: "fixed",
|
|
51
|
+
inset: "auto",
|
|
52
|
+
margin: 0,
|
|
53
|
+
padding: 0,
|
|
54
|
+
border: "none",
|
|
55
|
+
background: "transparent",
|
|
56
|
+
color: "inherit",
|
|
57
|
+
maxWidth: "100%",
|
|
58
|
+
maxHeight: "100%",
|
|
59
|
+
overflow: "visible",
|
|
46
60
|
...anchorPosition[anchor],
|
|
47
|
-
animation: `${slideIn[anchor]} ${duration}ms ease-out
|
|
48
|
-
"
|
|
61
|
+
"&:popover-open": { animation: `${slideIn[anchor]} ${duration}ms ease-out` },
|
|
62
|
+
"&::backdrop": { backgroundColor: hasBackdrop ? theme.background.backdrop : "transparent" },
|
|
63
|
+
"@media (prefers-reduced-motion: reduce)": { "&:popover-open": { animation: "none" } }
|
|
49
64
|
}));
|
|
50
65
|
/**
|
|
51
|
-
* @description A panel that slides in from a screen edge
|
|
52
|
-
*
|
|
66
|
+
* @description A panel that slides in from a screen edge. It is an HTML `popover`: a
|
|
67
|
+
* `DrawerToggle` opens it, and Escape or a click outside closes it - all without JavaScript,
|
|
68
|
+
* so it works on a prerendered page with scripts off. With JavaScript it can be controlled with
|
|
69
|
+
* `isOpen` / `onClose`, and it moves focus in, traps Tab and locks scroll while open.
|
|
53
70
|
*/
|
|
54
|
-
function Drawer({ children, anchor = "left", elevation = 16, transitionDuration = 225,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
function Drawer({ id, children, isOpen, onClose, anchor = "left", elevation = 16, transitionDuration = 225, hasBackdrop = true, shouldLockScroll = true, shouldAutoFocus = true, shouldTrapFocus = true, shouldRestoreFocus = true }) {
|
|
72
|
+
const panelRef = useRef(null);
|
|
73
|
+
const [isShown, setIsShown] = useState(false);
|
|
74
|
+
const isShownRef = useRef(false);
|
|
75
|
+
const closingByProp = useRef(false);
|
|
76
|
+
const onCloseRef = useRef(onClose);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
onCloseRef.current = onClose;
|
|
79
|
+
}, [onClose]);
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
const panel = panelRef.current;
|
|
82
|
+
let escaped = false;
|
|
83
|
+
const handleKeyDown = (event) => {
|
|
84
|
+
escaped = event.key === "Escape" && isShownRef.current;
|
|
85
|
+
};
|
|
86
|
+
const handleToggle = (event) => {
|
|
87
|
+
const open = event.newState === "open";
|
|
88
|
+
isShownRef.current = open;
|
|
89
|
+
setIsShown(open);
|
|
90
|
+
if (!open && !closingByProp.current) onCloseRef.current?.(event, escaped ? "escapeKey" : "dismiss");
|
|
91
|
+
closingByProp.current = false;
|
|
92
|
+
escaped = false;
|
|
93
|
+
};
|
|
94
|
+
const doc = panel.ownerDocument;
|
|
95
|
+
doc.addEventListener("keydown", handleKeyDown, true);
|
|
96
|
+
panel.addEventListener("toggle", handleToggle);
|
|
97
|
+
return () => {
|
|
98
|
+
doc.removeEventListener("keydown", handleKeyDown, true);
|
|
99
|
+
panel.removeEventListener("toggle", handleToggle);
|
|
100
|
+
};
|
|
101
|
+
}, []);
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
if (isOpen === void 0 || isOpen === isShownRef.current) return;
|
|
104
|
+
const panel = panelRef.current;
|
|
105
|
+
isShownRef.current = isOpen;
|
|
106
|
+
if (isOpen) panel.showPopover();
|
|
107
|
+
else {
|
|
108
|
+
closingByProp.current = true;
|
|
109
|
+
panel.hidePopover();
|
|
110
|
+
}
|
|
111
|
+
}, [isOpen]);
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
if (!isShown || !shouldLockScroll) return;
|
|
114
|
+
const { body } = panelRef.current.ownerDocument;
|
|
115
|
+
const previous = body.style.overflow;
|
|
116
|
+
body.style.overflow = "hidden";
|
|
117
|
+
return () => {
|
|
118
|
+
body.style.overflow = previous;
|
|
119
|
+
};
|
|
120
|
+
}, [isShown, shouldLockScroll]);
|
|
121
|
+
return /* @__PURE__ */ jsx(DrawerPanel, {
|
|
122
|
+
ref: panelRef,
|
|
123
|
+
id,
|
|
124
|
+
popover: "auto",
|
|
125
|
+
anchor,
|
|
126
|
+
duration: transitionDuration,
|
|
127
|
+
hasBackdrop,
|
|
128
|
+
children: /* @__PURE__ */ jsx(Paper, {
|
|
61
129
|
elevation,
|
|
62
|
-
|
|
130
|
+
width: "100%",
|
|
131
|
+
height: "100%",
|
|
132
|
+
overflow: "auto",
|
|
133
|
+
children: /* @__PURE__ */ jsx(FocusTrap, {
|
|
134
|
+
isEnabled: isShown,
|
|
135
|
+
shouldAutoFocus,
|
|
136
|
+
shouldTrapFocus,
|
|
137
|
+
shouldEnforceFocus: false,
|
|
138
|
+
shouldRestoreFocus,
|
|
139
|
+
children
|
|
140
|
+
})
|
|
63
141
|
})
|
|
64
142
|
});
|
|
65
143
|
}
|
|
66
144
|
//#endregion
|
|
67
|
-
|
|
145
|
+
//#region src/Drawer/DrawerToggle.tsx
|
|
146
|
+
/**
|
|
147
|
+
* @description The button that opens and closes a `Drawer`, through the HTML
|
|
148
|
+
* `popovertarget` attribute - it works without JavaScript. Takes every `Button` prop.
|
|
149
|
+
*/
|
|
150
|
+
function DrawerToggle({ drawer, action = "toggle", ...rest }) {
|
|
151
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
152
|
+
popoverTarget: drawer,
|
|
153
|
+
popoverTargetAction: action,
|
|
154
|
+
...rest
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
export { Drawer, DrawerToggle };
|
package/dist/Flex.cjs
CHANGED
|
@@ -3,12 +3,16 @@ const require_src = require("./src-DU81aGy9.cjs");
|
|
|
3
3
|
const require_View = require("./View.cjs");
|
|
4
4
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
5
5
|
//#region src/Flex/Flex.tsx
|
|
6
|
-
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
|
|
6
|
+
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props, "layout"]);
|
|
7
7
|
const Flex = require_src.styled(require_View.View, {
|
|
8
8
|
name: "Flex",
|
|
9
9
|
label: "flex",
|
|
10
10
|
shouldForwardProp,
|
|
11
|
-
systemProps: [
|
|
11
|
+
systemProps: [
|
|
12
|
+
require_src.src_exports.layoutFlex,
|
|
13
|
+
require_src.src_exports.flexbox,
|
|
14
|
+
require_src.src_exports.space
|
|
15
|
+
]
|
|
12
16
|
})({
|
|
13
17
|
display: "flex",
|
|
14
18
|
flexDirection: "column"
|
package/dist/Flex.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FlexProps, r as GapToken, t as Flex } from "./index-
|
|
1
|
+
import { n as FlexProps, r as GapToken, t as Flex } from "./index-ue1Ccvln.cjs";
|
|
2
2
|
export { Flex, FlexProps, GapToken };
|
package/dist/Flex.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FlexProps, r as GapToken, t as Flex } from "./index-
|
|
1
|
+
import { n as FlexProps, r as GapToken, t as Flex } from "./index-EuWfYhf8.mjs";
|
|
2
2
|
export { Flex, FlexProps, GapToken };
|
package/dist/Flex.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { View } from "./View.mjs";
|
|
3
3
|
//#region src/Flex/Flex.tsx
|
|
4
|
-
const shouldForwardProp = createShouldForwardProp([...props]);
|
|
4
|
+
const shouldForwardProp = createShouldForwardProp([...props, "layout"]);
|
|
5
5
|
const Flex = styled(View, {
|
|
6
6
|
name: "Flex",
|
|
7
7
|
label: "flex",
|
|
8
8
|
shouldForwardProp,
|
|
9
|
-
systemProps: [
|
|
9
|
+
systemProps: [
|
|
10
|
+
src_exports.layoutFlex,
|
|
11
|
+
src_exports.flexbox,
|
|
12
|
+
src_exports.space
|
|
13
|
+
]
|
|
10
14
|
})({
|
|
11
15
|
display: "flex",
|
|
12
16
|
flexDirection: "column"
|
package/dist/Form.d.cts
CHANGED
package/dist/Form.d.mts
CHANGED
package/dist/FormControl.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_View = require("./View.cjs");
|
|
4
4
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
5
|
-
const require_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-DfAqr7qo.cjs");
|
|
6
6
|
const require_FormControlContext = require("./FormControlContext-74gvPGFk.cjs");
|
|
7
7
|
const require_FormContext = require("./FormContext-BGCsWAFc.cjs");
|
|
8
8
|
let react = require("react");
|
package/dist/FormControl.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-Dswy4M6B.cjs";
|
|
2
|
+
import { s as ViewProps } from "./index-JSOR69Iy.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/FormControl/FormControl.d.ts
|
|
5
5
|
interface FormControlProps extends Omit<ViewProps, 'color'> {
|
package/dist/FormControl.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-C3RTORGO.mjs";
|
|
2
|
+
import { s as ViewProps } from "./index-C0-SB0dL.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/FormControl/FormControl.d.ts
|
|
5
5
|
interface FormControlProps extends Omit<ViewProps, 'color'> {
|
package/dist/FormControl.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as styled } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { View } from "./View.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-C1o9qa2E.mjs";
|
|
5
5
|
import { t as FormControlContext } from "./FormControlContext-CC2kToms.mjs";
|
|
6
6
|
import { t as FormContext } from "./FormContext-LrjAGe6U.mjs";
|
|
7
7
|
import { useContext, useId, useMemo, useState } from "react";
|
package/dist/FormLabel.d.cts
CHANGED
package/dist/FormLabel.d.mts
CHANGED
package/dist/Grid.cjs
CHANGED
|
@@ -3,12 +3,17 @@ const require_src = require("./src-DU81aGy9.cjs");
|
|
|
3
3
|
const require_View = require("./View.cjs");
|
|
4
4
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
5
5
|
//#region src/Grid/Grid.tsx
|
|
6
|
-
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props]);
|
|
6
|
+
const shouldForwardProp = (0, _soroush_tech_styled_system_should_forward_prop.createShouldForwardProp)([..._soroush_tech_styled_system_should_forward_prop.props, "layout"]);
|
|
7
7
|
const Grid = require_src.styled(require_View.View, {
|
|
8
8
|
name: "Grid",
|
|
9
9
|
label: "grid",
|
|
10
10
|
shouldForwardProp,
|
|
11
|
-
systemProps: [
|
|
11
|
+
systemProps: [
|
|
12
|
+
require_src.src_exports.layoutGrid,
|
|
13
|
+
require_src.src_exports.grid,
|
|
14
|
+
require_src.src_exports.flexbox,
|
|
15
|
+
require_src.src_exports.space
|
|
16
|
+
]
|
|
12
17
|
})({ display: "grid" });
|
|
13
18
|
//#endregion
|
|
14
19
|
exports.Grid = Grid;
|
package/dist/Grid.d.cts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as Theme } from "./themes-Dswy4M6B.cjs";
|
|
2
|
+
import "./index-BsUsSWXP.cjs";
|
|
3
|
+
import { s as ViewProps } from "./index-JSOR69Iy.cjs";
|
|
4
|
+
import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
5
|
+
//#region src/Grid/Grid.d.ts
|
|
6
|
+
/** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
|
|
7
|
+
type GapToken = keyof Theme['space'];
|
|
8
|
+
/**
|
|
9
|
+
* `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
|
|
10
|
+
* breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
|
|
11
|
+
* breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
|
|
12
|
+
*/
|
|
13
|
+
interface GridProps extends ViewProps, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
|
|
14
|
+
declare const Grid: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
theme?: Theme;
|
|
19
|
+
} & GridProps, {}, {}>;
|
|
20
|
+
//#endregion
|
|
2
21
|
export { GapToken, Grid, GridProps };
|
package/dist/Grid.d.mts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as Theme } from "./themes-C3RTORGO.mjs";
|
|
2
|
+
import "./index-Dkqk_6g2.mjs";
|
|
3
|
+
import { s as ViewProps } from "./index-C0-SB0dL.mjs";
|
|
4
|
+
import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
5
|
+
//#region src/Grid/Grid.d.ts
|
|
6
|
+
/** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
|
|
7
|
+
type GapToken = keyof Theme['space'];
|
|
8
|
+
/**
|
|
9
|
+
* `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
|
|
10
|
+
* breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
|
|
11
|
+
* breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
|
|
12
|
+
*/
|
|
13
|
+
interface GridProps extends ViewProps, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
|
|
14
|
+
declare const Grid: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
theme?: Theme;
|
|
19
|
+
} & GridProps, {}, {}>;
|
|
20
|
+
//#endregion
|
|
2
21
|
export { GapToken, Grid, GridProps };
|
package/dist/Grid.mjs
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { View } from "./View.mjs";
|
|
3
3
|
//#region src/Grid/Grid.tsx
|
|
4
|
-
const shouldForwardProp = createShouldForwardProp([...props]);
|
|
4
|
+
const shouldForwardProp = createShouldForwardProp([...props, "layout"]);
|
|
5
5
|
const Grid = styled(View, {
|
|
6
6
|
name: "Grid",
|
|
7
7
|
label: "grid",
|
|
8
8
|
shouldForwardProp,
|
|
9
|
-
systemProps: [
|
|
9
|
+
systemProps: [
|
|
10
|
+
src_exports.layoutGrid,
|
|
11
|
+
src_exports.grid,
|
|
12
|
+
src_exports.flexbox,
|
|
13
|
+
src_exports.space
|
|
14
|
+
]
|
|
10
15
|
})({ display: "grid" });
|
|
11
16
|
//#endregion
|
|
12
17
|
export { Grid };
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { r as useTheme } from "./theme-C1o9qa2E.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/Icon/icons/AccountTree.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_src = require("./src-DU81aGy9.cjs");
|
|
2
2
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
3
|
-
const require_theme = require("./theme-
|
|
3
|
+
const require_theme = require("./theme-DfAqr7qo.cjs");
|
|
4
4
|
require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
package/dist/Icon.cjs
CHANGED
package/dist/Icon.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-
|
|
1
|
+
import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-CxDY_w-H.cjs";
|
|
2
2
|
export { Icon, type IconName, IconProps, icons };
|
package/dist/Icon.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-
|
|
1
|
+
import { i as icons, n as IconProps, r as IconName, t as Icon } from "./index-BBV7_p-W.mjs";
|
|
2
2
|
export { Icon, type IconName, IconProps, icons };
|
package/dist/Icon.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as icons, t as Icon } from "./Icon-
|
|
1
|
+
import { n as icons, t as Icon } from "./Icon-BGcd6yy0.mjs";
|
|
2
2
|
export { Icon, icons };
|
package/dist/Image.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-Dswy4M6B.cjs";
|
|
2
|
+
import "./index-BsUsSWXP.cjs";
|
|
3
3
|
import { CSSProperties, ImgHTMLAttributes } from "react";
|
|
4
4
|
import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Image/Image.d.ts
|
package/dist/Image.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-C3RTORGO.mjs";
|
|
2
|
+
import "./index-Dkqk_6g2.mjs";
|
|
3
3
|
import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { CSSProperties, ImgHTMLAttributes } from "react";
|
|
5
5
|
//#region src/Image/Image.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-Dswy4M6B.cjs";
|
|
2
|
+
import "./index-BsUsSWXP.cjs";
|
|
3
|
+
import { n as ButtonColor } from "./index-B2eLreA5.cjs";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/LinearProgress/LinearProgress.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-C3RTORGO.mjs";
|
|
2
|
+
import "./index-Dkqk_6g2.mjs";
|
|
3
|
+
import { n as ButtonColor } from "./index-DYtIEMr9.mjs";
|
|
4
4
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { HTMLAttributes } from "react";
|
|
6
6
|
//#region src/LinearProgress/LinearProgress.d.ts
|
package/dist/Link.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
const require_theme = require("./theme-DfAqr7qo.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
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-C1o9qa2E.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
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-DfAqr7qo.cjs");
|
|
5
|
+
const require_Icon = require("./Icon-Cn6Zx8wb.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-Dswy4M6B.cjs";
|
|
2
|
+
import "./index-BsUsSWXP.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/MenuItem/MenuItem.d.ts
|
|
5
5
|
type MenuItemColor = keyof Theme['palette'];
|
package/dist/MenuItem.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-C3RTORGO.mjs";
|
|
2
|
+
import "./index-Dkqk_6g2.mjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/MenuItem/MenuItem.d.ts
|
|
5
5
|
type MenuItemColor = keyof Theme['palette'];
|
package/dist/MenuItem.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 { 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-C1o9qa2E.mjs";
|
|
4
|
+
import { t as Icon } from "./Icon-BGcd6yy0.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
|
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-CM3osOqj.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-BW4rc8cK.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-BbngAEDY.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-BcsyrrpH.mjs";
|
|
2
2
|
export { Modal, ModalManager, exposeToAria, hideFromAria, useModal };
|