@soroush.tech/design-system 2.0.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.cjs +1 -1
- package/dist/Autocomplete.d.cts +1 -1
- package/dist/Autocomplete.d.mts +1 -1
- package/dist/Autocomplete.mjs +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-Bx9jaHOy.cjs → Menu-C6eIdA1J.cjs} +8 -5
- package/dist/{Menu-D4AIpdJv.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-DXRw3Yca.cjs → MenuItem-Bg4iRvVe.cjs} +29 -26
- package/dist/{MenuItem-vXHGPK8g.mjs → MenuItem-kRGVRI6G.mjs} +29 -26
- 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-BwgQHUu9.d.cts → MenuListContext-AnAxu0he.d.cts} +2 -2
- package/dist/{MenuListContext-DbnAoUdJ.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 +4 -14
- package/dist/Popover.d.mts +4 -14
- 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-0hifLOKH.d.mts → TableContext-CPxH920f.d.mts} +1 -1
- package/dist/{TableContext-fIyMD_Bj.d.cts → 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-JvjuCU8m.mjs → Tabs-C_qe9d4p.mjs} +28 -21
- package/dist/{Tabs-BsbX0jFL.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-0ZtedNyH.d.mts → TabsContext-DeP8oJpC.d.cts} +1 -1
- package/dist/{TabsContext-MpMEEVuB.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 -267
- package/dist/Tooltip.d.cts +42 -7
- package/dist/Tooltip.d.mts +42 -7
- package/dist/Tooltip.mjs +1 -266
- 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 +12 -0
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +12 -0
- package/dist/computePopoverPosition-JgOwCM7k.d.cts +12 -0
- package/dist/computePopoverPosition-JgOwCM7k.d.mts +12 -0
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-4maWM1H8.d.mts → index-2jMSUeji.d.cts} +1 -1
- package/dist/{index-76zijQoi.d.mts → index-3Xe5X6Ny.d.mts} +2 -2
- package/dist/{index-C7EUYyom.d.cts → index-B-p51b0z.d.cts} +2 -2
- package/dist/index-B2XL_zZY.d.mts +44 -0
- package/dist/{index-D4PcgL-c.d.cts → index-B5_-Bxoo.d.cts} +2 -2
- package/dist/{index-DBF5n3ey.d.cts → index-BFUn2EWp.d.mts} +3 -3
- package/dist/{index-Byk1_ms9.d.cts → index-BKM4d_F4.d.cts} +2 -2
- package/dist/index-BL5Kj3Ka.d.mts +1 -0
- package/dist/{index-SotXsXXb.d.mts → index-BLypGp0N.d.mts} +4 -4
- package/dist/{index-hoHPfsc1.d.cts → index-BVDN2XbT.d.mts} +3 -3
- package/dist/{index-CLTFsCYC.d.cts → index-Bhb0bFxe.d.mts} +2 -2
- package/dist/index-Biqpy7c9.d.cts +44 -0
- package/dist/{index-CKywwIep.d.mts → index-C-ebcNOc.d.mts} +1 -1
- package/dist/{index-Lsm4v8fB.d.cts → index-C6a3kDn2.d.cts} +3 -0
- package/dist/{index-RaDENVX_.d.cts → index-C9nnnfhd.d.cts} +2 -2
- package/dist/{index-BuAKhHMs.d.cts → index-CBHCGizS.d.mts} +1 -1
- package/dist/{index-BChRNCld.d.mts → index-CCEfrBNN.d.mts} +1 -1
- package/dist/{index-Dxu6Ks2A.d.cts → index-CHWMSBhQ.d.cts} +1 -1
- package/dist/index-CJMvoc8h.d.cts +1 -0
- package/dist/{index-C2a-5yop.d.mts → index-COgZvhXQ.d.mts} +1 -1
- package/dist/{index-BC9S8Fpr.d.cts → index-CP55_Zs2.d.mts} +1 -1
- package/dist/{index-Dm7vQHor.d.cts → index-CgyyM3ty.d.cts} +10 -5
- package/dist/{index-CfB7OceY.d.cts → index-CtwlReZi.d.cts} +1 -1
- package/dist/{index-CnVvfG9_.d.mts → index-D0skdQEK.d.mts} +1 -1
- package/dist/{index-Cjh607-v.d.cts → index-D2tfsNPw.d.cts} +1 -1
- package/dist/{index-B3Bdupj3.d.mts → index-D7h8qFS1.d.cts} +2 -2
- package/dist/{index-BV5BvdeN.d.mts → index-DACdQ7-d.d.cts} +1 -1
- package/dist/{index-CAt0-L4i.d.cts → index-DAJ5DVHh.d.cts} +2 -2
- package/dist/{index-CGyIuCRh.d.cts → index-DMysZsti.d.cts} +1 -1
- package/dist/{index-CR8qkP8U.d.mts → index-DOH6uskj.d.mts} +3 -0
- package/dist/{index-C2tTbEBS.d.mts → index-DQo4XtH4.d.mts} +2 -2
- package/dist/{index-CQeTS_zL.d.cts → index-DTJN6JL2.d.cts} +1 -1
- package/dist/{index-Dt274Ngt.d.mts → index-DbKYSbLs.d.mts} +2 -2
- package/dist/{index-CJYWGPVO.d.mts → index-Dg0FPoms.d.mts} +2 -2
- package/dist/{index-C_J58B_n.d.mts → index-DlNBgVwb.d.mts} +1 -1
- package/dist/{index-UiyZAKID.d.mts → index-DsBOpK8T.d.mts} +2 -2
- package/dist/{index-DbgrItbx.d.cts → index-Dvx5TRET.d.cts} +2 -2
- package/dist/{index-tOrd12AJ.d.mts → index-Sq75GwA2.d.cts} +3 -3
- package/dist/{index-BAzMLTVi.d.mts → index-ZyigJMkV.d.mts} +10 -5
- package/dist/{index-Bo45R0nD.d.cts → index-gHMydoIS.d.cts} +4 -4
- package/dist/{index-BzQze7eY.d.cts → index-gxBafJdz.d.cts} +1 -1
- package/dist/{index-D48qVo1X.d.mts → index-hTgl9zwe.d.mts} +2 -2
- package/dist/{index-CF_pl72E.d.mts → index-i8BxMDEC.d.mts} +1 -1
- package/dist/{index-BXlBouWV.d.mts → index-v1I6VA9w.d.cts} +3 -3
- 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/{useAnchoredPlacement-ee6KzG3t.cjs → useAnchoredPlacement-BSfjNMut.cjs} +10 -5
- package/dist/{useAnchoredPlacement-COrXZxhm.mjs → useAnchoredPlacement-txSaWzfk.mjs} +10 -5
- package/dist/{useTablePagination-BlD8mK8k.d.mts → useTablePagination-CUsagS5T.d.mts} +1 -1
- package/dist/{useTablePagination-CGjb_jPX.d.cts → useTablePagination-jpEfHKUh.d.cts} +1 -1
- package/dist/{useTransition-3EoagwIe.d.mts → useTransition-BJ375Sto.d.cts} +1 -1
- package/dist/{useTransition-C89K0mS7.d.cts → useTransition-DDGpvgci.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/index-1Xzj0iAs.d.mts +0 -1
- package/dist/index-323PrYLR.d.cts +0 -1
|
@@ -4,8 +4,9 @@ const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
|
4
4
|
const require_getSurfaceRadius = require("./getSurfaceRadius-DwOn3ALC.cjs");
|
|
5
5
|
const require_Icon = require("./Icon-C5Iz5ekp.cjs");
|
|
6
6
|
const require_isRtl = require("./isRtl-Dl6QQWib.cjs");
|
|
7
|
-
const require_useAnchoredPlacement = require("./useAnchoredPlacement-
|
|
8
|
-
const require_MenuList = require("./MenuList-
|
|
7
|
+
const require_useAnchoredPlacement = require("./useAnchoredPlacement-BSfjNMut.cjs");
|
|
8
|
+
const require_MenuList = require("./MenuList-CSaaR3jt.cjs");
|
|
9
|
+
const require_Tooltip = require("./Tooltip-CrPRvmj3.cjs");
|
|
9
10
|
let react = require("react");
|
|
10
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
12
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -135,7 +136,7 @@ function useMenuPlacement({ isOpen, anchorRef, surfaceRef, placement, align, mar
|
|
|
135
136
|
*/
|
|
136
137
|
function Submenu({ anchorRef, listId, labelledBy, children }) {
|
|
137
138
|
const menu = useMenuContext();
|
|
138
|
-
const { align, margin, elevation, layer } = menu;
|
|
139
|
+
const { align, margin, elevation, layer, listProps } = menu;
|
|
139
140
|
const surfaceRef = (0, react.useRef)(null);
|
|
140
141
|
const isFlipped = useMenuPlacement({
|
|
141
142
|
isOpen: true,
|
|
@@ -163,6 +164,7 @@ function Submenu({ anchorRef, listId, labelledBy, children }) {
|
|
|
163
164
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuContext.Provider, {
|
|
164
165
|
value: context,
|
|
165
166
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuList.MenuList, {
|
|
167
|
+
...listProps,
|
|
166
168
|
id: listId,
|
|
167
169
|
"aria-labelledby": labelledBy,
|
|
168
170
|
width: "100%",
|
|
@@ -413,10 +415,14 @@ const getRowAria = (state) => ({
|
|
|
413
415
|
"aria-expanded": state.hasSubmenu ? state.isSubmenuOpen : void 0,
|
|
414
416
|
"aria-controls": state.isSubmenuOpen ? state.submenuId : void 0,
|
|
415
417
|
"aria-checked": state.role === "menuitem" ? void 0 : state.selected,
|
|
416
|
-
"aria-keyshortcuts": state.keyShortcuts ?? (typeof state.shortcut === "string" ? state.shortcut : void 0)
|
|
417
|
-
"aria-describedby": state.note ? state.noteId : void 0
|
|
418
|
+
"aria-keyshortcuts": state.keyShortcuts ?? (typeof state.shortcut === "string" ? state.shortcut : void 0)
|
|
418
419
|
});
|
|
419
420
|
const joinClassNames = (...names) => names.filter(Boolean).join(" ") || void 0;
|
|
421
|
+
const getTick = (role, selected) => role !== "menuitem" && selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
422
|
+
name: "check",
|
|
423
|
+
size: "sm",
|
|
424
|
+
color: "inherit"
|
|
425
|
+
}) : null;
|
|
420
426
|
/**
|
|
421
427
|
* @description A row of a list. Inside a `MenuList` it is a menu row - a `menuitem`
|
|
422
428
|
* (or `menuitemradio` / `menuitemcheckbox`) with a leading icon column, its label and a
|
|
@@ -435,7 +441,6 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
435
441
|
}, menu);
|
|
436
442
|
const rootRef = (0, react.useRef)(null);
|
|
437
443
|
const [isFocusVisible, setIsFocusVisible] = (0, react.useState)(false);
|
|
438
|
-
const noteId = (0, react.useId)();
|
|
439
444
|
const fallbackId = (0, react.useId)();
|
|
440
445
|
const hasSubmenu = isMenu && submenu !== void 0;
|
|
441
446
|
const { isOpen: isSubmenuOpen, entryRef, listId: submenuId, handleRowFocus, handleRowKeyDown, handleEntryKeyDown, handleEntryBlur } = useSubmenu(rootRef, hasSubmenu && !disabled);
|
|
@@ -511,16 +516,13 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
511
516
|
})
|
|
512
517
|
}), children]
|
|
513
518
|
});
|
|
514
|
-
const tick = role !== "menuitem" && selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
515
|
-
name: "check",
|
|
516
|
-
size: "sm",
|
|
517
|
-
color: "inherit"
|
|
518
|
-
}) : null;
|
|
519
519
|
const rowId = id ?? fallbackId;
|
|
520
520
|
const hasSecondaryAction = secondaryAction != null;
|
|
521
|
+
const hasNote = Boolean(note);
|
|
522
|
+
const isEntry = hasSubmenu || hasSecondaryAction || hasNote;
|
|
521
523
|
const row = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MenuItemRoot, {
|
|
522
524
|
...rootProps,
|
|
523
|
-
as:
|
|
525
|
+
as: isEntry ? "div" : as,
|
|
524
526
|
id: rowId,
|
|
525
527
|
role,
|
|
526
528
|
...getRowAria({
|
|
@@ -530,18 +532,15 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
530
532
|
isSubmenuOpen,
|
|
531
533
|
submenuId,
|
|
532
534
|
shortcut,
|
|
533
|
-
keyShortcuts
|
|
534
|
-
note,
|
|
535
|
-
noteId
|
|
535
|
+
keyShortcuts
|
|
536
536
|
}),
|
|
537
|
-
title: note,
|
|
538
537
|
onKeyDown: handleKeyDown,
|
|
539
538
|
onKeyUp: handleKeyUp,
|
|
540
539
|
onPointerMove: handlePointerMove,
|
|
541
540
|
children: [
|
|
542
541
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StartIconSlot, {
|
|
543
542
|
"aria-hidden": true,
|
|
544
|
-
children: startIcon ??
|
|
543
|
+
children: startIcon ?? getTick(role, selected)
|
|
545
544
|
}),
|
|
546
545
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LabelSlot, {
|
|
547
546
|
"data-menu-label": true,
|
|
@@ -558,19 +557,23 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
558
557
|
size: "sm",
|
|
559
558
|
color: "inherit"
|
|
560
559
|
})
|
|
561
|
-
}),
|
|
562
|
-
note && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
563
|
-
id: noteId,
|
|
564
|
-
hidden: true,
|
|
565
|
-
children: note
|
|
566
560
|
})
|
|
567
561
|
]
|
|
568
562
|
});
|
|
569
|
-
|
|
563
|
+
const noted = hasNote ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Tooltip.Tooltip, {
|
|
564
|
+
title: note,
|
|
565
|
+
placement: "right",
|
|
566
|
+
isInteractive: false,
|
|
567
|
+
shouldDescribeChild: true,
|
|
568
|
+
isDescriptionPersistent: true,
|
|
569
|
+
shouldWrapDisabledChild: false,
|
|
570
|
+
children: row
|
|
571
|
+
}) : row;
|
|
572
|
+
if (!isEntry) return row;
|
|
570
573
|
if (!hasSubmenu) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(EntrySlot, {
|
|
571
574
|
role: "none",
|
|
572
|
-
hasSecondaryAction
|
|
573
|
-
children: [
|
|
575
|
+
hasSecondaryAction,
|
|
576
|
+
children: [noted, hasSecondaryAction && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SecondaryActionSlot, {
|
|
574
577
|
"aria-hidden": shouldAnnounceSecondaryAction ? void 0 : true,
|
|
575
578
|
children: secondaryAction
|
|
576
579
|
})]
|
|
@@ -583,7 +586,7 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
583
586
|
onKeyDown: handleEntryKeyDown,
|
|
584
587
|
onBlur: handleEntryBlur,
|
|
585
588
|
children: [
|
|
586
|
-
|
|
589
|
+
noted,
|
|
587
590
|
hasSecondaryAction && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SecondaryActionSlot, {
|
|
588
591
|
"aria-hidden": shouldAnnounceSecondaryAction ? void 0 : true,
|
|
589
592
|
children: secondaryAction
|
|
@@ -4,8 +4,9 @@ import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
|
4
4
|
import { t as getSurfaceRadius } from "./getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
5
|
import { t as Icon } from "./Icon-XpXU-SuF.mjs";
|
|
6
6
|
import { t as isRtl } from "./isRtl-DN-EdUlg.mjs";
|
|
7
|
-
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-
|
|
8
|
-
import { a as useMenuListContext, n as getNextRow, r as getOwnRows, t as MenuList } from "./MenuList-
|
|
7
|
+
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-txSaWzfk.mjs";
|
|
8
|
+
import { a as useMenuListContext, n as getNextRow, r as getOwnRows, t as MenuList } from "./MenuList-D7Pvpn_K.mjs";
|
|
9
|
+
import { t as Tooltip } from "./Tooltip-CwbuEQzf.mjs";
|
|
9
10
|
import { Children, createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
10
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
// src/Menu/MenuPaper.ts
|
|
@@ -134,7 +135,7 @@ function useMenuPlacement({ isOpen, anchorRef, surfaceRef, placement, align, mar
|
|
|
134
135
|
*/
|
|
135
136
|
function Submenu({ anchorRef, listId, labelledBy, children }) {
|
|
136
137
|
const menu = useMenuContext();
|
|
137
|
-
const { align, margin, elevation, layer } = menu;
|
|
138
|
+
const { align, margin, elevation, layer, listProps } = menu;
|
|
138
139
|
const surfaceRef = useRef(null);
|
|
139
140
|
const isFlipped = useMenuPlacement({
|
|
140
141
|
isOpen: true,
|
|
@@ -162,6 +163,7 @@ function Submenu({ anchorRef, listId, labelledBy, children }) {
|
|
|
162
163
|
children: /* @__PURE__ */ jsx(MenuContext.Provider, {
|
|
163
164
|
value: context,
|
|
164
165
|
children: /* @__PURE__ */ jsx(MenuList, {
|
|
166
|
+
...listProps,
|
|
165
167
|
id: listId,
|
|
166
168
|
"aria-labelledby": labelledBy,
|
|
167
169
|
width: "100%",
|
|
@@ -412,10 +414,14 @@ const getRowAria = (state) => ({
|
|
|
412
414
|
"aria-expanded": state.hasSubmenu ? state.isSubmenuOpen : void 0,
|
|
413
415
|
"aria-controls": state.isSubmenuOpen ? state.submenuId : void 0,
|
|
414
416
|
"aria-checked": state.role === "menuitem" ? void 0 : state.selected,
|
|
415
|
-
"aria-keyshortcuts": state.keyShortcuts ?? (typeof state.shortcut === "string" ? state.shortcut : void 0)
|
|
416
|
-
"aria-describedby": state.note ? state.noteId : void 0
|
|
417
|
+
"aria-keyshortcuts": state.keyShortcuts ?? (typeof state.shortcut === "string" ? state.shortcut : void 0)
|
|
417
418
|
});
|
|
418
419
|
const joinClassNames = (...names) => names.filter(Boolean).join(" ") || void 0;
|
|
420
|
+
const getTick = (role, selected) => role !== "menuitem" && selected ? /* @__PURE__ */ jsx(Icon, {
|
|
421
|
+
name: "check",
|
|
422
|
+
size: "sm",
|
|
423
|
+
color: "inherit"
|
|
424
|
+
}) : null;
|
|
419
425
|
/**
|
|
420
426
|
* @description A row of a list. Inside a `MenuList` it is a menu row - a `menuitem`
|
|
421
427
|
* (or `menuitemradio` / `menuitemcheckbox`) with a leading icon column, its label and a
|
|
@@ -434,7 +440,6 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
434
440
|
}, menu);
|
|
435
441
|
const rootRef = useRef(null);
|
|
436
442
|
const [isFocusVisible, setIsFocusVisible] = useState(false);
|
|
437
|
-
const noteId = useId();
|
|
438
443
|
const fallbackId = useId();
|
|
439
444
|
const hasSubmenu = isMenu && submenu !== void 0;
|
|
440
445
|
const { isOpen: isSubmenuOpen, entryRef, listId: submenuId, handleRowFocus, handleRowKeyDown, handleEntryKeyDown, handleEntryBlur } = useSubmenu(rootRef, hasSubmenu && !disabled);
|
|
@@ -510,16 +515,13 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
510
515
|
})
|
|
511
516
|
}), children]
|
|
512
517
|
});
|
|
513
|
-
const tick = role !== "menuitem" && selected ? /* @__PURE__ */ jsx(Icon, {
|
|
514
|
-
name: "check",
|
|
515
|
-
size: "sm",
|
|
516
|
-
color: "inherit"
|
|
517
|
-
}) : null;
|
|
518
518
|
const rowId = id ?? fallbackId;
|
|
519
519
|
const hasSecondaryAction = secondaryAction != null;
|
|
520
|
+
const hasNote = Boolean(note);
|
|
521
|
+
const isEntry = hasSubmenu || hasSecondaryAction || hasNote;
|
|
520
522
|
const row = /* @__PURE__ */ jsxs(MenuItemRoot, {
|
|
521
523
|
...rootProps,
|
|
522
|
-
as:
|
|
524
|
+
as: isEntry ? "div" : as,
|
|
523
525
|
id: rowId,
|
|
524
526
|
role,
|
|
525
527
|
...getRowAria({
|
|
@@ -529,18 +531,15 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
529
531
|
isSubmenuOpen,
|
|
530
532
|
submenuId,
|
|
531
533
|
shortcut,
|
|
532
|
-
keyShortcuts
|
|
533
|
-
note,
|
|
534
|
-
noteId
|
|
534
|
+
keyShortcuts
|
|
535
535
|
}),
|
|
536
|
-
title: note,
|
|
537
536
|
onKeyDown: handleKeyDown,
|
|
538
537
|
onKeyUp: handleKeyUp,
|
|
539
538
|
onPointerMove: handlePointerMove,
|
|
540
539
|
children: [
|
|
541
540
|
/* @__PURE__ */ jsx(StartIconSlot, {
|
|
542
541
|
"aria-hidden": true,
|
|
543
|
-
children: startIcon ??
|
|
542
|
+
children: startIcon ?? getTick(role, selected)
|
|
544
543
|
}),
|
|
545
544
|
/* @__PURE__ */ jsx(LabelSlot, {
|
|
546
545
|
"data-menu-label": true,
|
|
@@ -557,19 +556,23 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
557
556
|
size: "sm",
|
|
558
557
|
color: "inherit"
|
|
559
558
|
})
|
|
560
|
-
}),
|
|
561
|
-
note && /* @__PURE__ */ jsx("span", {
|
|
562
|
-
id: noteId,
|
|
563
|
-
hidden: true,
|
|
564
|
-
children: note
|
|
565
559
|
})
|
|
566
560
|
]
|
|
567
561
|
});
|
|
568
|
-
|
|
562
|
+
const noted = hasNote ? /* @__PURE__ */ jsx(Tooltip, {
|
|
563
|
+
title: note,
|
|
564
|
+
placement: "right",
|
|
565
|
+
isInteractive: false,
|
|
566
|
+
shouldDescribeChild: true,
|
|
567
|
+
isDescriptionPersistent: true,
|
|
568
|
+
shouldWrapDisabledChild: false,
|
|
569
|
+
children: row
|
|
570
|
+
}) : row;
|
|
571
|
+
if (!isEntry) return row;
|
|
569
572
|
if (!hasSubmenu) return /* @__PURE__ */ jsxs(EntrySlot, {
|
|
570
573
|
role: "none",
|
|
571
|
-
hasSecondaryAction
|
|
572
|
-
children: [
|
|
574
|
+
hasSecondaryAction,
|
|
575
|
+
children: [noted, hasSecondaryAction && /* @__PURE__ */ jsx(SecondaryActionSlot, {
|
|
573
576
|
"aria-hidden": shouldAnnounceSecondaryAction ? void 0 : true,
|
|
574
577
|
children: secondaryAction
|
|
575
578
|
})]
|
|
@@ -582,7 +585,7 @@ function MenuItem({ value, children, as, disabled = false, selected = false, hig
|
|
|
582
585
|
onKeyDown: handleEntryKeyDown,
|
|
583
586
|
onBlur: handleEntryBlur,
|
|
584
587
|
children: [
|
|
585
|
-
|
|
588
|
+
noted,
|
|
586
589
|
hasSecondaryAction && /* @__PURE__ */ jsx(SecondaryActionSlot, {
|
|
587
590
|
"aria-hidden": shouldAnnounceSecondaryAction ? void 0 : true,
|
|
588
591
|
children: secondaryAction
|
package/dist/MenuItem.cjs
CHANGED
package/dist/MenuItem.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MenuItemSize, i as MenuItemRole, n as MenuItemColor, o as MenuItemTextColor, r as MenuItemProps, t as MenuItem } from "./index-
|
|
1
|
+
import { a as MenuItemSize, i as MenuItemRole, n as MenuItemColor, o as MenuItemTextColor, r as MenuItemProps, t as MenuItem } from "./index-BKM4d_F4.cjs";
|
|
2
2
|
export { MenuItem, MenuItemColor, MenuItemProps, MenuItemRole, MenuItemSize, MenuItemTextColor };
|
package/dist/MenuItem.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MenuItemSize, i as MenuItemRole, n as MenuItemColor, o as MenuItemTextColor, r as MenuItemProps, t as MenuItem } from "./index-
|
|
1
|
+
import { a as MenuItemSize, i as MenuItemRole, n as MenuItemColor, o as MenuItemTextColor, r as MenuItemProps, t as MenuItem } from "./index-DbKYSbLs.mjs";
|
|
2
2
|
export { MenuItem, MenuItemColor, MenuItemProps, MenuItemRole, MenuItemSize, MenuItemTextColor };
|
package/dist/MenuItem.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MenuItem } from "./MenuItem-
|
|
1
|
+
export { t as MenuItem } from "./MenuItem-kRGVRI6G.mjs";
|
|
@@ -149,6 +149,8 @@ function MenuList({ children, onSelect, shouldWrap: shouldWrapProp, shouldAutoFo
|
|
|
149
149
|
const handleKeyDown = (event) => {
|
|
150
150
|
const list = event.currentTarget;
|
|
151
151
|
if (event.target.closest("[role=\"menu\"]") !== list) return;
|
|
152
|
+
onKeyDown?.(event);
|
|
153
|
+
if (event.defaultPrevented) return;
|
|
152
154
|
const rows = getOwnRows(list);
|
|
153
155
|
const current = list.ownerDocument.activeElement;
|
|
154
156
|
const step = STEP_BY_KEY[event.key];
|
|
@@ -165,7 +167,6 @@ function MenuList({ children, onSelect, shouldWrap: shouldWrapProp, shouldAutoFo
|
|
|
165
167
|
}
|
|
166
168
|
if (step || target) event.preventDefault();
|
|
167
169
|
target?.focus();
|
|
168
|
-
onKeyDown?.(event);
|
|
169
170
|
};
|
|
170
171
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuListContext.Provider, {
|
|
171
172
|
value: context,
|
|
@@ -148,6 +148,8 @@ function MenuList({ children, onSelect, shouldWrap: shouldWrapProp, shouldAutoFo
|
|
|
148
148
|
const handleKeyDown = (event) => {
|
|
149
149
|
const list = event.currentTarget;
|
|
150
150
|
if (event.target.closest("[role=\"menu\"]") !== list) return;
|
|
151
|
+
onKeyDown?.(event);
|
|
152
|
+
if (event.defaultPrevented) return;
|
|
151
153
|
const rows = getOwnRows(list);
|
|
152
154
|
const current = list.ownerDocument.activeElement;
|
|
153
155
|
const step = STEP_BY_KEY[event.key];
|
|
@@ -164,7 +166,6 @@ function MenuList({ children, onSelect, shouldWrap: shouldWrapProp, shouldAutoFo
|
|
|
164
166
|
}
|
|
165
167
|
if (step || target) event.preventDefault();
|
|
166
168
|
target?.focus();
|
|
167
|
-
onKeyDown?.(event);
|
|
168
169
|
};
|
|
169
170
|
return /* @__PURE__ */ jsx(MenuListContext.Provider, {
|
|
170
171
|
value: context,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import "./index-CtwlReZi.cjs";
|
|
3
3
|
import { SyntheticEvent } from "react";
|
|
4
4
|
type MenuItemValue = string | number;
|
|
5
5
|
interface MenuListContextValue {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import "./index-i8BxMDEC.mjs";
|
|
3
3
|
import { SyntheticEvent } from "react";
|
|
4
4
|
type MenuItemValue = string | number;
|
|
5
5
|
interface MenuListContextValue {
|
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-2jMSUeji.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-CP55_Zs2.mjs";
|
|
2
2
|
export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
|
package/dist/NativeSelect.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { n as IconProps, r as IconName } from "./index-DAJ5DVHh.cjs";
|
|
3
3
|
import { SelectHTMLAttributes } from "react";
|
|
4
4
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
type NativeSelectColor = keyof Theme['palette'];
|
package/dist/NativeSelect.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { n as IconProps, r as IconName } from "./index-hTgl9zwe.mjs";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { SelectHTMLAttributes } from "react";
|
|
5
5
|
type NativeSelectColor = keyof Theme['palette'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-C6a3kDn2.cjs";
|
|
2
2
|
import { AnchorHTMLAttributes, ReactNode } from "react";
|
|
3
3
|
interface NavLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
|
|
4
4
|
/** Where it goes. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-DOH6uskj.mjs";
|
|
2
2
|
import { AnchorHTMLAttributes, ReactNode } from "react";
|
|
3
3
|
interface NavLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
|
|
4
4
|
/** Where it goes. */
|
|
@@ -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
|
interface NavTreeProps extends FlexProps {
|
|
3
3
|
/** Palette color of the current page's pill, a hovered link and the focus ring - resolves to `theme.palette`. Default: `'primary'`. */
|
|
4
4
|
color?: keyof Theme['palette'];
|
|
@@ -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
|
interface NavTreeProps extends FlexProps {
|
|
3
3
|
/** Palette color of the current page's pill, a hovered link and the focus ring - resolves to `theme.palette`. Default: `'primary'`. */
|
|
4
4
|
color?: keyof Theme['palette'];
|
package/dist/NumberInput.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 { ReactNode } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type NumberInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
package/dist/NumberInput.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 { ReactNode } from "react";
|
|
4
4
|
type NumberInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
@@ -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-CHWMSBhQ.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-C-ebcNOc.mjs";
|
|
2
2
|
export { PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemVariant };
|
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-CHWMSBhQ.cjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-v1I6VA9w.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-C-ebcNOc.mjs";
|
|
2
|
+
import { a as PaginationSize, i as PaginationShape, n as PaginationColor, o as PaginationVariant, r as PaginationProps, t as Pagination } from "./index-BFUn2EWp.mjs";
|
|
3
3
|
export { Pagination, PaginationColor, PaginationItem, PaginationItemColor, PaginationItemProps, PaginationItemShape, PaginationItemSize, PaginationItemType, PaginationItemVariant, PaginationProps, PaginationShape, PaginationSize, PaginationVariant, UsePaginationItem, UsePaginationProps, usePagination };
|
package/dist/Paper.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { cn as PaperElevation, ln as PaperProps, sn as Paper } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { cn as PaperElevation, ln as PaperProps, sn as Paper } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import "./index-CJMvoc8h.cjs";
|
|
3
3
|
export { Paper, PaperElevation, PaperProps };
|
package/dist/Paper.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { cn as PaperElevation, ln as PaperProps, sn as Paper } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { cn as PaperElevation, ln as PaperProps, sn as Paper } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import "./index-BL5Kj3Ka.mjs";
|
|
3
3
|
export { Paper, PaperElevation, PaperProps };
|
package/dist/Popover.d.cts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { cn as PaperElevation, ln as PaperProps, nt as Theme } from "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { cn as PaperElevation, ln as PaperProps, nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import "./index-CJMvoc8h.cjs";
|
|
3
|
+
import { n as PopoverPosition, r as PopoverReference, t as PopoverOrigin } from "./computePopoverPosition-JgOwCM7k.cjs";
|
|
4
|
+
import { l as ModalCloseReason } from "./index-2jMSUeji.cjs";
|
|
4
5
|
import { ReactNode, Ref } from "react";
|
|
5
|
-
type PopoverVerticalOrigin = 'top' | 'center' | 'bottom' | number;
|
|
6
|
-
type PopoverHorizontalOrigin = 'left' | 'center' | 'right' | number;
|
|
7
|
-
interface PopoverOrigin {
|
|
8
|
-
vertical: PopoverVerticalOrigin;
|
|
9
|
-
horizontal: PopoverHorizontalOrigin;
|
|
10
|
-
}
|
|
11
|
-
type PopoverReference = 'anchorEl' | 'anchorPosition' | 'none';
|
|
12
|
-
interface PopoverPosition {
|
|
13
|
-
top: number;
|
|
14
|
-
left: number;
|
|
15
|
-
}
|
|
16
6
|
type PopoverAnchorEl = HTMLElement | (() => HTMLElement | null) | null;
|
|
17
7
|
interface PopoverActions {
|
|
18
8
|
/** Recomputes the popover's position against its anchor. */
|
package/dist/Popover.d.mts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { cn as PaperElevation, ln as PaperProps, nt as Theme } from "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { cn as PaperElevation, ln as PaperProps, nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import "./index-BL5Kj3Ka.mjs";
|
|
3
|
+
import { n as PopoverPosition, r as PopoverReference, t as PopoverOrigin } from "./computePopoverPosition-JgOwCM7k.mjs";
|
|
4
|
+
import { l as ModalCloseReason } from "./index-CP55_Zs2.mjs";
|
|
4
5
|
import { ReactNode, Ref } from "react";
|
|
5
|
-
type PopoverVerticalOrigin = 'top' | 'center' | 'bottom' | number;
|
|
6
|
-
type PopoverHorizontalOrigin = 'left' | 'center' | 'right' | number;
|
|
7
|
-
interface PopoverOrigin {
|
|
8
|
-
vertical: PopoverVerticalOrigin;
|
|
9
|
-
horizontal: PopoverHorizontalOrigin;
|
|
10
|
-
}
|
|
11
|
-
type PopoverReference = 'anchorEl' | 'anchorPosition' | 'none';
|
|
12
|
-
interface PopoverPosition {
|
|
13
|
-
top: number;
|
|
14
|
-
left: number;
|
|
15
|
-
}
|
|
16
6
|
type PopoverAnchorEl = HTMLElement | (() => HTMLElement | null) | null;
|
|
17
7
|
interface PopoverActions {
|
|
18
8
|
/** Recomputes the popover's position against its anchor. */
|
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-D2tfsNPw.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-D0skdQEK.mjs";
|
|
2
2
|
export { Pressable, PressableColor, PressableFeedback, PressableProps };
|
package/dist/Quote.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme, yn as ViewProps } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { nt as Theme, yn as ViewProps } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import "./index-CtwlReZi.cjs";
|
|
3
3
|
type QuoteProps = ViewProps;
|
|
4
4
|
/** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
|
|
5
5
|
declare const Quote: import("@emotion/styled").StyledComponent<Pick<{
|
package/dist/Quote.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme, yn as ViewProps } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { nt as Theme, yn as ViewProps } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import "./index-i8BxMDEC.mjs";
|
|
3
3
|
type QuoteProps = ViewProps;
|
|
4
4
|
/** A View with a 2px primary left-border - used for terminal readouts and markdown blockquotes. */
|
|
5
5
|
declare const Quote: import("@emotion/styled").StyledComponent<Pick<{
|
package/dist/Radio.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, InputHTMLAttributes, ReactNode } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type RadioColor = PaletteColor;
|
package/dist/Radio.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, InputHTMLAttributes, ReactNode } from "react";
|
|
4
4
|
type RadioColor = PaletteColor;
|
package/dist/RangeInput.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
|
/** A tick on the rail, with a label under it when it has one. */
|
package/dist/RangeInput.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
|
/** A tick on the rail, with a label under it when it has one. */
|
package/dist/Rating.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, SyntheticEvent } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
interface RatingProps extends SpaceProps<Theme> {
|
package/dist/Rating.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, SyntheticEvent } from "react";
|
|
4
4
|
interface RatingProps extends SpaceProps<Theme> {
|
package/dist/ScrollArea.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 { ReactNode, Ref } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
/** Which way a thumb runs: down the right edge, or along the bottom. */
|
package/dist/ScrollArea.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 { ReactNode, Ref } from "react";
|
|
4
4
|
/** Which way a thumb runs: down the right edge, or along the bottom. */
|
package/dist/Select.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-C6a3kDn2.cjs";
|
|
2
|
+
import { n as IconProps, r as IconName } from "./index-DAJ5DVHh.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
/** The union of value shapes `Select` holds: a single value, or an array in multiple mode. */
|
package/dist/Select.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-DOH6uskj.mjs";
|
|
2
|
+
import { n as IconProps, r as IconName } from "./index-hTgl9zwe.mjs";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
/** The union of value shapes `Select` holds: a single value, or an array in multiple mode. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as FlexProps } from "../index-
|
|
1
|
+
import { dn as FlexProps } from "../index-C6a3kDn2.cjs";
|
|
2
2
|
import { a as SidebarLayout, i as SidebarItemVariant, t as SidebarAnchor } from "../SidebarContext-Bod_oUMi.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
interface SidebarProps extends FlexProps {
|