@soroush.tech/design-system 2.1.0-alpha.0 → 2.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.cts +2 -2
- package/dist/Accordion/Accordion.d.mts +2 -2
- package/dist/Accordion/AccordionGroup.d.cts +1 -1
- package/dist/Accordion/AccordionGroup.d.mts +1 -1
- package/dist/Alert/Alert.d.cts +1 -1
- package/dist/Alert/Alert.d.mts +1 -1
- package/dist/AppBar.d.cts +1 -1
- package/dist/AppBar.d.mts +1 -1
- package/dist/Autocomplete.d.cts +1 -1
- package/dist/Autocomplete.d.mts +1 -1
- package/dist/Avatar.d.cts +1 -1
- package/dist/Avatar.d.mts +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Badge.d.cts +1 -1
- package/dist/Badge.d.mts +1 -1
- package/dist/Breadcrumbs.d.cts +3 -3
- package/dist/Breadcrumbs.d.mts +3 -3
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Card.d.cts +4 -4
- package/dist/Card.d.mts +4 -4
- package/dist/Checkbox.d.cts +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/Chip.d.cts +1 -1
- package/dist/Chip.d.mts +1 -1
- package/dist/CircularProgress.d.cts +2 -2
- package/dist/CircularProgress.d.mts +2 -2
- package/dist/Collapse.d.cts +1 -1
- package/dist/Collapse.d.mts +1 -1
- package/dist/Drawer.d.cts +3 -3
- package/dist/Drawer.d.mts +3 -3
- package/dist/Fab.d.cts +1 -1
- package/dist/Fab.d.mts +1 -1
- package/dist/FabMenu/FabMenu.d.cts +1 -1
- package/dist/FabMenu/FabMenu.d.mts +1 -1
- package/dist/FabMenu/FabMenuItem.d.cts +1 -1
- package/dist/FabMenu/FabMenuItem.d.mts +1 -1
- package/dist/Fade.d.cts +1 -1
- package/dist/Fade.d.mts +1 -1
- 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.d.cts +1 -1
- package/dist/FormControl.d.mts +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 -1
- package/dist/Grid.d.mts +1 -1
- package/dist/Grow.d.cts +1 -1
- package/dist/Grow.d.mts +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Image.d.cts +1 -1
- package/dist/Image.d.mts +1 -1
- package/dist/LinearProgress.d.cts +2 -2
- package/dist/LinearProgress.d.mts +2 -2
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Menu/ContextMenu.cjs +23 -14
- package/dist/Menu/ContextMenu.d.cts +18 -8
- package/dist/Menu/ContextMenu.d.mts +18 -8
- package/dist/Menu/ContextMenu.mjs +24 -15
- package/dist/Menu/Menu.cjs +1 -1
- package/dist/Menu/Menu.d.cts +1 -1
- package/dist/Menu/Menu.d.mts +1 -1
- package/dist/Menu/Menu.mjs +1 -1
- package/dist/Menu/MenuItems.cjs +1 -1
- package/dist/Menu/MenuItems.d.cts +1 -1
- package/dist/Menu/MenuItems.d.mts +1 -1
- package/dist/Menu/MenuItems.mjs +1 -1
- package/dist/Menu/MenuList.cjs +1 -1
- package/dist/Menu/MenuList.d.cts +3 -36
- package/dist/Menu/MenuList.d.mts +3 -36
- package/dist/Menu/MenuList.mjs +1 -1
- package/dist/{Menu-BfJF32J2.cjs → Menu-C6eIdA1J.cjs} +8 -5
- package/dist/{Menu-CX9V2DAu.mjs → Menu-C_4jYHWE.mjs} +8 -5
- package/dist/Menu.cjs +2 -2
- package/dist/Menu.d.cts +5 -5
- package/dist/Menu.d.mts +5 -5
- package/dist/Menu.mjs +2 -2
- package/dist/{MenuItem-CvCMGXuL.cjs → MenuItem-Bg4iRvVe.cjs} +28 -25
- package/dist/{MenuItem-DdPzSWZY.mjs → MenuItem-kRGVRI6G.mjs} +28 -25
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.d.cts +1 -1
- package/dist/MenuItem.d.mts +1 -1
- package/dist/MenuItem.mjs +1 -1
- package/dist/{MenuList-DsJmxNPu.cjs → MenuList-CSaaR3jt.cjs} +2 -1
- package/dist/{MenuList-CGZgfBno.mjs → MenuList-D7Pvpn_K.mjs} +2 -1
- package/dist/{MenuListContext-DJ_qJ1Uo.d.cts → MenuListContext-AnAxu0he.d.cts} +2 -2
- package/dist/{MenuListContext-DiZAVDCb.d.mts → MenuListContext-DURKFg_T.d.mts} +2 -2
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/NativeSelect.d.cts +2 -2
- package/dist/NativeSelect.d.mts +2 -2
- package/dist/NavTree/NavLink.d.cts +1 -1
- package/dist/NavTree/NavLink.d.mts +1 -1
- package/dist/NavTree/NavTree.d.cts +1 -1
- package/dist/NavTree/NavTree.d.mts +1 -1
- package/dist/NumberInput.d.cts +1 -1
- package/dist/NumberInput.d.mts +1 -1
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.d.cts +2 -2
- package/dist/Paper.d.mts +2 -2
- package/dist/Popover.d.cts +3 -3
- package/dist/Popover.d.mts +3 -3
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Quote.d.cts +2 -2
- package/dist/Quote.d.mts +2 -2
- package/dist/Radio.d.cts +1 -1
- package/dist/Radio.d.mts +1 -1
- package/dist/RangeInput.d.cts +1 -1
- package/dist/RangeInput.d.mts +1 -1
- package/dist/Rating.d.cts +1 -1
- package/dist/Rating.d.mts +1 -1
- package/dist/ScrollArea.d.cts +1 -1
- package/dist/ScrollArea.d.mts +1 -1
- package/dist/Select.d.cts +2 -2
- package/dist/Select.d.mts +2 -2
- package/dist/Sidebar/Sidebar.d.cts +1 -1
- package/dist/Sidebar/Sidebar.d.mts +1 -1
- package/dist/Sidebar/SidebarItem.d.cts +3 -3
- package/dist/Sidebar/SidebarItem.d.mts +3 -3
- package/dist/Skeleton.d.cts +1 -1
- package/dist/Skeleton.d.mts +1 -1
- package/dist/Slide.d.cts +1 -1
- package/dist/Slide.d.mts +1 -1
- package/dist/Snackbar.d.cts +2 -2
- package/dist/Snackbar.d.mts +2 -2
- package/dist/Switch.d.cts +1 -1
- package/dist/Switch.d.mts +1 -1
- package/dist/Table/Table.d.cts +2 -2
- package/dist/Table/Table.d.mts +2 -2
- package/dist/Table/TableBody.d.cts +1 -1
- package/dist/Table/TableBody.d.mts +1 -1
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableContainer.d.cts +1 -1
- package/dist/Table/TableContainer.d.mts +1 -1
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableFooter.d.cts +1 -1
- package/dist/Table/TableFooter.d.mts +1 -1
- package/dist/Table/TableHead.d.cts +1 -1
- package/dist/Table/TableHead.d.mts +1 -1
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TableRow.d.cts +1 -1
- package/dist/Table/TableRow.d.mts +1 -1
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +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-4sJdk84N.d.cts → TableContext-CPxH920f.d.mts} +1 -1
- package/dist/{TableContext-BCW5av9c.d.mts → TableContext-VuMFtVNr.d.cts} +1 -1
- package/dist/Tabs/Tab.cjs +18 -14
- package/dist/Tabs/Tab.d.cts +2 -2
- package/dist/Tabs/Tab.d.mts +2 -2
- package/dist/Tabs/Tab.mjs +18 -14
- package/dist/Tabs/TabContext.d.cts +1 -1
- package/dist/Tabs/TabContext.d.mts +1 -1
- package/dist/Tabs/TabList.cjs +1 -1
- package/dist/Tabs/TabList.d.cts +1 -1
- package/dist/Tabs/TabList.d.mts +1 -1
- package/dist/Tabs/TabList.mjs +1 -1
- package/dist/Tabs/TabPanel.d.cts +2 -2
- package/dist/Tabs/TabPanel.d.mts +2 -2
- package/dist/Tabs/TabScrollButton.d.cts +1 -1
- package/dist/Tabs/TabScrollButton.d.mts +1 -1
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.d.cts +2 -2
- package/dist/Tabs/Tabs.d.mts +2 -2
- package/dist/Tabs/Tabs.mjs +1 -1
- package/dist/{Tabs-CG-hRs9L.mjs → Tabs-C_qe9d4p.mjs} +28 -21
- package/dist/{Tabs-CPH0H6yp.cjs → Tabs-DmiA1J--.cjs} +28 -21
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.d.cts +3 -3
- package/dist/Tabs.d.mts +3 -3
- package/dist/Tabs.mjs +1 -1
- package/dist/{TabsContext-CsiW5MOp.d.mts → TabsContext-DeP8oJpC.d.cts} +1 -1
- package/dist/{TabsContext-DrmDtBqA.d.cts → TabsContext-VJcdZQOf.d.mts} +1 -1
- package/dist/TextInput.d.cts +1 -1
- package/dist/TextInput.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/Tooltip-CrPRvmj3.cjs +338 -0
- package/dist/Tooltip-CwbuEQzf.mjs +332 -0
- package/dist/Tooltip.cjs +2 -311
- package/dist/Tooltip.d.cts +18 -5
- package/dist/Tooltip.d.mts +18 -5
- package/dist/Tooltip.mjs +1 -310
- package/dist/TransferList.d.cts +1 -1
- package/dist/TransferList.d.mts +1 -1
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/Zoom.d.cts +1 -1
- package/dist/Zoom.d.mts +1 -1
- package/dist/catalog.cjs +4 -0
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +4 -0
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-Dt-ZNTnC.d.cts → index-2jMSUeji.d.cts} +1 -1
- package/dist/{index-5TAVgzbU.d.mts → index-3Xe5X6Ny.d.mts} +2 -2
- package/dist/{index-BYAtunSZ.d.cts → index-B-p51b0z.d.cts} +2 -2
- package/dist/index-B2XL_zZY.d.mts +44 -0
- package/dist/{index-YKXzINGk.d.mts → index-B5_-Bxoo.d.cts} +3 -3
- package/dist/{index-DKNvADeE.d.mts → index-BFUn2EWp.d.mts} +2 -2
- package/dist/{index-CeFExef3.d.cts → index-BKM4d_F4.d.cts} +2 -2
- package/dist/index-BL5Kj3Ka.d.mts +1 -0
- package/dist/{index-Biqn5xUs.d.mts → index-BLypGp0N.d.mts} +4 -4
- package/dist/{index-D24iFgwR.d.cts → index-BVDN2XbT.d.mts} +3 -3
- package/dist/{index-D--R4_5H.d.mts → index-Bhb0bFxe.d.mts} +2 -2
- package/dist/index-Biqpy7c9.d.cts +44 -0
- package/dist/{index-BgmEVOSj.d.mts → index-C-ebcNOc.d.mts} +1 -1
- package/dist/{index-DvVQLBZc.d.cts → index-C6a3kDn2.d.cts} +1 -0
- package/dist/{index-DQYhGgbl.d.cts → index-C9nnnfhd.d.cts} +2 -2
- package/dist/{index-DWon54cO.d.cts → index-CBHCGizS.d.mts} +1 -1
- package/dist/{index-Bx-4KmJU.d.mts → index-CCEfrBNN.d.mts} +1 -1
- package/dist/{index-DhTzn0mf.d.cts → index-CHWMSBhQ.d.cts} +1 -1
- package/dist/index-CJMvoc8h.d.cts +1 -0
- package/dist/{index-DtVrZFJI.d.mts → index-COgZvhXQ.d.mts} +1 -1
- package/dist/{index-DtK3SaKA.d.mts → index-CP55_Zs2.d.mts} +1 -1
- package/dist/{index-DhzjNAzv.d.mts → index-CgyyM3ty.d.cts} +10 -5
- package/dist/{index-Buu5MtRG.d.mts → index-CtwlReZi.d.cts} +1 -1
- package/dist/{index-Dudkopvi.d.mts → index-D0skdQEK.d.mts} +1 -1
- package/dist/{index-fRyMPKtY.d.cts → index-D2tfsNPw.d.cts} +1 -1
- package/dist/{index-DrfJt7W6.d.cts → index-D7h8qFS1.d.cts} +2 -2
- package/dist/{index-DR76LcSz.d.mts → index-DACdQ7-d.d.cts} +1 -1
- package/dist/{index-C3TrdOpQ.d.cts → index-DAJ5DVHh.d.cts} +2 -2
- package/dist/{index-CyOSmefH.d.cts → index-DMysZsti.d.cts} +1 -1
- package/dist/{index-BWiDilH8.d.mts → index-DOH6uskj.d.mts} +1 -0
- package/dist/{index-DM7HHa4V.d.mts → index-DQo4XtH4.d.mts} +2 -2
- package/dist/{index-CBOtkDdX.d.cts → index-DTJN6JL2.d.cts} +1 -1
- package/dist/{index-Bp9ECTzr.d.mts → index-DbKYSbLs.d.mts} +2 -2
- package/dist/{index-CW0DW6Aq.d.mts → index-Dg0FPoms.d.mts} +2 -2
- package/dist/{index-D_azfqsX.d.mts → index-DlNBgVwb.d.mts} +1 -1
- package/dist/{index-HAVWK7RM.d.cts → index-DsBOpK8T.d.mts} +3 -3
- package/dist/{index-BlHFb150.d.cts → index-Dvx5TRET.d.cts} +2 -2
- package/dist/{index-m1RGSQlP.d.mts → index-Sq75GwA2.d.cts} +3 -3
- package/dist/{index-Ba39mhDf.d.cts → index-ZyigJMkV.d.mts} +10 -5
- package/dist/{index-HLDMvfb2.d.cts → index-gHMydoIS.d.cts} +4 -4
- package/dist/{index-DgLjcrkG.d.cts → index-gxBafJdz.d.cts} +1 -1
- package/dist/{index-DjmWIzXF.d.mts → index-hTgl9zwe.d.mts} +2 -2
- package/dist/{index-CAICXdTA.d.cts → index-i8BxMDEC.d.mts} +1 -1
- package/dist/{index-Bo8Og0oC.d.cts → index-v1I6VA9w.d.cts} +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/style.d.cts +2 -2
- package/dist/style.d.mts +2 -2
- package/dist/theme.d.cts +2 -2
- package/dist/theme.d.mts +2 -2
- package/dist/{useTablePagination-BOzuKUnF.d.mts → useTablePagination-CUsagS5T.d.mts} +1 -1
- package/dist/{useTablePagination-CraL2Mux.d.cts → useTablePagination-jpEfHKUh.d.cts} +1 -1
- package/dist/{useTransition-B-hzi7Sm.d.mts → useTransition-BJ375Sto.d.cts} +1 -1
- package/dist/{useTransition-CF_Zy_tM.d.cts → useTransition-DDGpvgci.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/index-6zQ2VUlM.d.cts +0 -1
- package/dist/index-B1qv6yGM.d.mts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { r as CollapseProps } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-C6a3kDn2.cjs";
|
|
2
|
+
import { r as CollapseProps } from "../index-D7h8qFS1.cjs";
|
|
3
3
|
import { ComponentType, ReactNode, SyntheticEvent } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
/** What an `Accordion` hands the transition that opens and closes its region. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { r as CollapseProps } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-DOH6uskj.mjs";
|
|
2
|
+
import { r as CollapseProps } from "../index-Bhb0bFxe.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ComponentType, ReactNode, SyntheticEvent } from "react";
|
|
5
5
|
/** What an `Accordion` hands the transition that opens and closes its region. */
|
package/dist/Alert/Alert.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-C6a3kDn2.cjs";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
package/dist/Alert/Alert.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-DOH6uskj.mjs";
|
|
2
2
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { MouseEvent, ReactNode } from "react";
|
|
4
4
|
type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
package/dist/AppBar.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
/** Valid values for the color prop - derived from theme.background keys. */
|
|
3
3
|
type AppBarColor = keyof Theme['background'];
|
|
4
4
|
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
package/dist/AppBar.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
/** Valid values for the color prop - derived from theme.background keys. */
|
|
3
3
|
type AppBarColor = keyof Theme['background'];
|
|
4
4
|
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
package/dist/Autocomplete.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
import { ChangeEvent, KeyboardEvent, ReactNode, SyntheticEvent } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
/** One value for a single field, a list for `multiple`. */
|
package/dist/Autocomplete.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ChangeEvent, KeyboardEvent, ReactNode, SyntheticEvent } from "react";
|
|
4
4
|
/** One value for a single field, a list for `multiple`. */
|
package/dist/Avatar.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
3
3
|
type AvatarSize = keyof Theme['avatar'];
|
|
4
4
|
type AvatarRingColor = keyof Theme['border'];
|
package/dist/Avatar.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
3
3
|
type AvatarSize = keyof Theme['avatar'];
|
|
4
4
|
type AvatarRingColor = keyof Theme['border'];
|
package/dist/Backdrop.d.cts
CHANGED
package/dist/Backdrop.d.mts
CHANGED
package/dist/Badge.d.cts
CHANGED
package/dist/Badge.d.mts
CHANGED
package/dist/Breadcrumbs.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jt as TypographyVariant } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps } from "./index-
|
|
1
|
+
import { jt as TypographyVariant } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-DMysZsti.cjs";
|
|
3
|
+
import { n as IconProps } from "./index-DAJ5DVHh.cjs";
|
|
4
4
|
import { ElementType, ReactNode } from "react";
|
|
5
5
|
interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
|
|
6
6
|
/** The crumbs - the app's `Link`s, and the current page as `Typography` or a `Link` with `aria-current="page"`. */
|
package/dist/Breadcrumbs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jt as TypographyVariant } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps } from "./index-
|
|
1
|
+
import { jt as TypographyVariant } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
|
|
3
|
+
import { n as IconProps } from "./index-hTgl9zwe.mjs";
|
|
4
4
|
import { ElementType, ReactNode } from "react";
|
|
5
5
|
interface BreadcrumbsProps extends Omit<TypographyProps, 'children' | 'variant'> {
|
|
6
6
|
/** The crumbs - the app's `Link`s, and the current page as `Typography` or a `Link` with `aria-current="page"`. */
|
package/dist/Button.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-gxBafJdz.cjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/Button.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-CCEfrBNN.mjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/ButtonGroup.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-Sq75GwA2.cjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/ButtonGroup.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-BVDN2XbT.mjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/Card.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ln as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { ln as PaperProps } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-DMysZsti.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DAJ5DVHh.cjs";
|
|
4
|
+
import "./index-CJMvoc8h.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
|
7
7
|
interface CardProps extends Omit<PaperProps, 'title'> {
|
package/dist/Card.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ln as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { ln as PaperProps } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-hTgl9zwe.mjs";
|
|
4
|
+
import "./index-BL5Kj3Ka.mjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
|
7
7
|
interface CardProps extends Omit<PaperProps, 'title'> {
|
package/dist/Checkbox.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as PaletteColor, nt as Theme } from "./index-
|
|
1
|
+
import { U as PaletteColor, nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
import { ChangeEvent, ReactNode } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type CheckboxColor = PaletteColor;
|
package/dist/Checkbox.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as PaletteColor, nt as Theme } from "./index-
|
|
1
|
+
import { U as PaletteColor, nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
4
|
type CheckboxColor = PaletteColor;
|
package/dist/Chip.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
import { t as Shape } from "./getShapeRadius-CdCQb8OT.cjs";
|
|
3
3
|
import { MouseEvent, ReactNode, SyntheticEvent } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
package/dist/Chip.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
import { t as Shape } from "./getShapeRadius-CdCQb8OT.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { MouseEvent, ReactNode, SyntheticEvent } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { n as ButtonColor } from "./index-gxBafJdz.cjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
type CircularProgressVariant = 'indeterminate' | 'determinate';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { n as ButtonColor } from "./index-CCEfrBNN.mjs";
|
|
3
3
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
type CircularProgressVariant = 'indeterminate' | 'determinate';
|
package/dist/Collapse.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-
|
|
1
|
+
import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-D7h8qFS1.cjs";
|
|
2
2
|
export { Collapse, CollapseOrientation, CollapseProps };
|
package/dist/Collapse.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-
|
|
1
|
+
import { n as CollapseOrientation, r as CollapseProps, t as Collapse } from "./index-Bhb0bFxe.mjs";
|
|
2
2
|
export { Collapse, CollapseOrientation, CollapseProps };
|
package/dist/Drawer.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cn as PaperElevation } from "./index-
|
|
2
|
-
import { i as ButtonProps } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { cn as PaperElevation } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { i as ButtonProps } from "./index-gxBafJdz.cjs";
|
|
3
|
+
import "./index-CJMvoc8h.cjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
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). */
|
package/dist/Drawer.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cn as PaperElevation } from "./index-
|
|
2
|
-
import { i as ButtonProps } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { cn as PaperElevation } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { i as ButtonProps } from "./index-CCEfrBNN.mjs";
|
|
3
|
+
import "./index-BL5Kj3Ka.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
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). */
|
package/dist/Fab.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FabProps, r as FabVariant, t as Fab } from "./index-
|
|
1
|
+
import { n as FabProps, r as FabVariant, t as Fab } from "./index-DACdQ7-d.cjs";
|
|
2
2
|
export { Fab, FabProps, FabVariant };
|
package/dist/Fab.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FabProps, r as FabVariant, t as Fab } from "./index-
|
|
1
|
+
import { n as FabProps, r as FabVariant, t as Fab } from "./index-CBHCGizS.mjs";
|
|
2
2
|
export { Fab, FabProps, FabVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-C6a3kDn2.cjs";
|
|
2
2
|
import { ReactNode, SyntheticEvent } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type FabMenuDirection = 'up' | 'down' | 'left' | 'right';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-DOH6uskj.mjs";
|
|
2
2
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ReactNode, SyntheticEvent } from "react";
|
|
4
4
|
type FabMenuDirection = 'up' | 'down' | 'left' | 'right';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FabProps } from "../index-
|
|
1
|
+
import { n as FabProps } from "../index-DACdQ7-d.cjs";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
3
|
interface FabMenuItemProps extends Omit<FabProps, 'variant' | 'size' | 'isCollapsed' | 'startIcon' | 'children'> {
|
|
4
4
|
/** An icon before the label. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FabProps } from "../index-
|
|
1
|
+
import { n as FabProps } from "../index-CBHCGizS.mjs";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
3
|
interface FabMenuItemProps extends Omit<FabProps, 'variant' | 'size' | 'isCollapsed' | 'startIcon' | 'children'> {
|
|
4
4
|
/** An icon before the label. */
|
package/dist/Fade.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TransitionProps } from "./useTransition-
|
|
1
|
+
import { n as TransitionProps } from "./useTransition-BJ375Sto.cjs";
|
|
2
2
|
type FadeProps = TransitionProps;
|
|
3
3
|
/**
|
|
4
4
|
* @description Fades one child in and out by its opacity. The child holds a `ref` and takes a
|
package/dist/Fade.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TransitionProps } from "./useTransition-
|
|
1
|
+
import { n as TransitionProps } from "./useTransition-DDGpvgci.mjs";
|
|
2
2
|
type FadeProps = TransitionProps;
|
|
3
3
|
/**
|
|
4
4
|
* @description Fades one child in and out by its opacity. The child holds a `ref` and takes a
|
package/dist/Flex.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-
|
|
1
|
+
import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
export { Flex, FlexProps, GapToken };
|
package/dist/Flex.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-
|
|
1
|
+
import { dn as FlexProps, fn as GapToken, un as Flex } from "./index-DOH6uskj.mjs";
|
|
2
2
|
export { Flex, FlexProps, GapToken };
|
package/dist/Form.d.cts
CHANGED
package/dist/Form.d.mts
CHANGED
package/dist/FormControl.d.cts
CHANGED
package/dist/FormControl.d.mts
CHANGED
package/dist/FormLabel.d.cts
CHANGED
package/dist/FormLabel.d.mts
CHANGED
package/dist/Grid.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme, yn as ViewProps } from "./index-
|
|
1
|
+
import { nt as Theme, yn as ViewProps } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
3
3
|
/** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
|
|
4
4
|
type GapToken = keyof Theme['space'];
|
package/dist/Grid.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme, yn as ViewProps } from "./index-
|
|
1
|
+
import { nt as Theme, yn as ViewProps } from "./index-DOH6uskj.mjs";
|
|
2
2
|
import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
3
3
|
/** Valid values for the gap / columnGap / rowGap props - derived from theme.space keys. */
|
|
4
4
|
type GapToken = keyof Theme['space'];
|
package/dist/Grow.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TransitionProps } from "./useTransition-
|
|
1
|
+
import { n as TransitionProps } from "./useTransition-BJ375Sto.cjs";
|
|
2
2
|
type GrowProps = TransitionProps;
|
|
3
3
|
/**
|
|
4
4
|
* @description Grows one child in from a little smaller, fading as it does, and shrinks it out.
|
package/dist/Grow.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TransitionProps } from "./useTransition-
|
|
1
|
+
import { n as TransitionProps } from "./useTransition-DDGpvgci.mjs";
|
|
2
2
|
type GrowProps = TransitionProps;
|
|
3
3
|
/**
|
|
4
4
|
* @description Grows one child in from a little smaller, fading as it does, and shrinks it out.
|
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-DAJ5DVHh.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-hTgl9zwe.mjs";
|
|
2
2
|
export { Icon, type IconName, IconProps, icons };
|
package/dist/Image.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
2
|
import { CSSProperties, ImgHTMLAttributes } from "react";
|
|
3
3
|
import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'height' | 'width' | 'color'>, LayoutProps, SpaceProps, BackgroundProps, PositionProps {
|
package/dist/Image.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
2
|
import { BackgroundProps, LayoutProps, PositionProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { CSSProperties, ImgHTMLAttributes } from "react";
|
|
4
4
|
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'height' | 'width' | 'color'>, LayoutProps, SpaceProps, BackgroundProps, PositionProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { n as ButtonColor } from "./index-gxBafJdz.cjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as ButtonColor } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { n as ButtonColor } from "./index-CCEfrBNN.mjs";
|
|
3
3
|
import { LayoutProps, PaddingProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
type LinearProgressVariant = 'indeterminate' | 'determinate' | 'query';
|
package/dist/Link.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TypographyProps } from "./index-
|
|
1
|
+
import { a as TypographyProps } from "./index-DMysZsti.cjs";
|
|
2
2
|
import { AnchorHTMLAttributes } from "react";
|
|
3
3
|
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
4
4
|
interface LinkProps extends Omit<TypographyProps, 'as'>, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Omit<TypographyProps, 'as'>> {
|
package/dist/Link.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TypographyProps } from "./index-
|
|
1
|
+
import { a as TypographyProps } from "./index-COgZvhXQ.mjs";
|
|
2
2
|
import { AnchorHTMLAttributes } from "react";
|
|
3
3
|
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
4
4
|
interface LinkProps extends Omit<TypographyProps, 'as'>, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Omit<TypographyProps, 'as'>> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_src = require("../src-yC1f5WR2.cjs");
|
|
3
3
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
4
|
-
const require_MenuList = require("../MenuList-
|
|
5
|
-
const require_MenuItem = require("../MenuItem-
|
|
4
|
+
const require_MenuList = require("../MenuList-CSaaR3jt.cjs");
|
|
5
|
+
const require_MenuItem = require("../MenuItem-Bg4iRvVe.cjs");
|
|
6
6
|
const require_Menu_MenuItems = require("./MenuItems.cjs");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -30,7 +30,7 @@ function ContextMenuTarget({ element, onContextMenu, onKeyDown }) {
|
|
|
30
30
|
* `Menu` does - Escape, a chosen row or focus leaving - and gives focus back to where it
|
|
31
31
|
* was. The browser's own menu is held back only when this one opens.
|
|
32
32
|
*/
|
|
33
|
-
function ContextMenu({ target, children, items, onClose, onSelect, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, "aria-label": ariaLabel, className, "data-testid": dataTestid }) {
|
|
33
|
+
function ContextMenu({ target, isOpen: isOpenProp, anchorPosition, children, items, onClose, onSelect, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, "aria-label": ariaLabel, className, slotProps, "data-testid": dataTestid }) {
|
|
34
34
|
const dp = require_theme.useDefaultProps("ContextMenu");
|
|
35
35
|
const marginThreshold = marginThresholdProp ?? dp.marginThreshold ?? 2;
|
|
36
36
|
const elevation = elevationProp ?? dp.elevation ?? 8;
|
|
@@ -41,7 +41,9 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
|
|
|
41
41
|
const size = sizeProp ?? dp.size;
|
|
42
42
|
const dense = denseProp ?? dp.dense;
|
|
43
43
|
const theme = require_theme.useTheme();
|
|
44
|
-
const [
|
|
44
|
+
const [openPoint, setOpenPoint] = (0, react.useState)(null);
|
|
45
|
+
const isControlled = isOpenProp !== void 0;
|
|
46
|
+
const point = isControlled ? isOpenProp && anchorPosition || null : openPoint;
|
|
45
47
|
const isOpen = point !== null;
|
|
46
48
|
const rootRef = (0, react.useRef)(null);
|
|
47
49
|
const surfaceRef = (0, react.useRef)(null);
|
|
@@ -52,11 +54,13 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
|
|
|
52
54
|
align: "start",
|
|
53
55
|
margin,
|
|
54
56
|
elevation,
|
|
55
|
-
layer
|
|
57
|
+
layer,
|
|
58
|
+
listProps: slotProps?.list
|
|
56
59
|
}), [
|
|
57
60
|
margin,
|
|
58
61
|
elevation,
|
|
59
|
-
layer
|
|
62
|
+
layer,
|
|
63
|
+
slotProps?.list
|
|
60
64
|
]);
|
|
61
65
|
require_MenuItem.useMenuPlacement({
|
|
62
66
|
isOpen,
|
|
@@ -67,27 +71,31 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
|
|
|
67
71
|
align: "start",
|
|
68
72
|
margin
|
|
69
73
|
});
|
|
74
|
+
(0, react.useLayoutEffect)(() => {
|
|
75
|
+
if (isControlled && isOpen) returnFocusRef.current = document.activeElement;
|
|
76
|
+
}, [isControlled, isOpen]);
|
|
70
77
|
const openAt = (top, left) => {
|
|
71
78
|
returnFocusRef.current = document.activeElement;
|
|
72
|
-
|
|
79
|
+
setOpenPoint({
|
|
73
80
|
top,
|
|
74
81
|
left
|
|
75
82
|
});
|
|
76
83
|
};
|
|
77
84
|
const close = (0, react.useCallback)((event, reason) => {
|
|
78
|
-
|
|
85
|
+
if (!isControlled) setOpenPoint(null);
|
|
79
86
|
onClose?.(event, reason);
|
|
80
|
-
if (reason !== "blur") returnFocusRef.current
|
|
81
|
-
}, [onClose]);
|
|
87
|
+
if (reason !== "blur") returnFocusRef.current?.focus();
|
|
88
|
+
}, [isControlled, onClose]);
|
|
82
89
|
const handleActivate = (0, react.useCallback)((_value, event) => close(event, "select"), [close]);
|
|
83
90
|
const handleContextMenu = (event) => {
|
|
84
|
-
target
|
|
91
|
+
target?.props.onContextMenu?.(event);
|
|
92
|
+
if (isControlled) return;
|
|
85
93
|
event.preventDefault();
|
|
86
94
|
openAt(event.clientY, event.clientX);
|
|
87
95
|
};
|
|
88
96
|
const handleKeyDown = (event) => {
|
|
89
|
-
target
|
|
90
|
-
if (!isMenuKey(event)) return;
|
|
97
|
+
target?.props.onKeyDown?.(event);
|
|
98
|
+
if (isControlled || !isMenuKey(event)) return;
|
|
91
99
|
event.preventDefault();
|
|
92
100
|
const { bottom, left } = event.target.getBoundingClientRect();
|
|
93
101
|
openAt(bottom, left);
|
|
@@ -109,7 +117,7 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
|
|
|
109
117
|
className,
|
|
110
118
|
"data-testid": dataTestid,
|
|
111
119
|
onBlur: handleBlur,
|
|
112
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenuTarget, {
|
|
120
|
+
children: [target && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenuTarget, {
|
|
113
121
|
element: target,
|
|
114
122
|
onContextMenu: handleContextMenu,
|
|
115
123
|
onKeyDown: handleKeyDown
|
|
@@ -125,6 +133,7 @@ function ContextMenu({ target, children, items, onClose, onSelect, marginThresho
|
|
|
125
133
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuList.MenuActivationContext.Provider, {
|
|
126
134
|
value: handleActivate,
|
|
127
135
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuList.MenuList, {
|
|
136
|
+
...slotProps?.list,
|
|
128
137
|
id: listId,
|
|
129
138
|
"aria-label": ariaLabel,
|
|
130
139
|
shouldAutoFocus: true,
|