@soroush.tech/design-system 2.1.0-alpha.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +1 -1
- package/dist/Menu/ContextMenu.d.cts +6 -6
- package/dist/Menu/ContextMenu.d.mts +6 -6
- package/dist/Menu/ContextMenu.mjs +1 -1
- 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.d.cts +2 -2
- package/dist/Menu/MenuList.d.mts +2 -2
- package/dist/{Menu-C_4jYHWE.mjs → Menu-Cv887y7O.mjs} +1 -1
- package/dist/{Menu-C6eIdA1J.cjs → Menu-DOOK_gM9.cjs} +1 -1
- package/dist/Menu.cjs +1 -1
- package/dist/Menu.d.cts +4 -4
- package/dist/Menu.d.mts +4 -4
- package/dist/Menu.mjs +1 -1
- package/dist/{MenuItem-Bg4iRvVe.cjs → MenuItem-BWm8DC-S.cjs} +1 -1
- package/dist/{MenuItem-kRGVRI6G.mjs → MenuItem-hJeCsQZX.mjs} +1 -1
- 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/{MenuListContext-AnAxu0he.d.cts → MenuListContext-BN1VV12-.d.mts} +2 -2
- package/dist/{MenuListContext-DURKFg_T.d.mts → MenuListContext-BkQzp2DA.d.cts} +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-CPxH920f.d.mts → TableContext-BNwokJ3f.d.cts} +1 -1
- package/dist/{TableContext-VuMFtVNr.d.cts → TableContext-jOlk5jxs.d.mts} +1 -1
- package/dist/Tabs/Tab.cjs +1 -1
- package/dist/Tabs/Tab.d.cts +2 -2
- package/dist/Tabs/Tab.d.mts +2 -2
- package/dist/Tabs/Tab.mjs +1 -1
- 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-DmiA1J--.cjs → Tabs-BTa2myRe.cjs} +3 -3
- package/dist/{Tabs-C_qe9d4p.mjs → Tabs-CE8iDr0D.mjs} +3 -3
- 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-DeP8oJpC.d.cts → TabsContext-D5E7s9i5.d.mts} +1 -1
- package/dist/{TabsContext-VJcdZQOf.d.mts → TabsContext-i57cha5W.d.cts} +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-CwbuEQzf.mjs → Tooltip-Cx4ez9vY.mjs} +86 -13
- package/dist/{Tooltip-CrPRvmj3.cjs → Tooltip-rkGm1HnP.cjs} +89 -10
- package/dist/Tooltip.cjs +2 -1
- package/dist/Tooltip.d.cts +20 -2
- package/dist/Tooltip.d.mts +20 -2
- package/dist/Tooltip.mjs +1 -1
- 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.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-Sq75GwA2.d.cts → index-3-LXZL7g.d.mts} +3 -3
- package/dist/{index-DOH6uskj.d.mts → index-B-1sp9oV.d.mts} +6 -0
- package/dist/{index-hTgl9zwe.d.mts → index-BDVi1DNs.d.mts} +2 -2
- package/dist/{index-3Xe5X6Ny.d.mts → index-BJIqJbF4.d.mts} +2 -2
- package/dist/{index-CCEfrBNN.d.mts → index-BMeqk34D.d.mts} +1 -1
- package/dist/{index-C9nnnfhd.d.cts → index-BYg-l1_n.d.cts} +2 -2
- package/dist/{index-BLypGp0N.d.mts → index-BbWQZ2Wj.d.mts} +4 -4
- package/dist/{index-v1I6VA9w.d.cts → index-BhWBXIkH.d.cts} +2 -2
- package/dist/{index-DACdQ7-d.d.cts → index-BwFPSXSw.d.mts} +1 -1
- package/dist/{index-BFUn2EWp.d.mts → index-Bwry7fNj.d.mts} +2 -2
- package/dist/{index-BKM4d_F4.d.cts → index-C3D70-3U.d.mts} +2 -2
- package/dist/{index-gHMydoIS.d.cts → index-C6uLwNRF.d.cts} +4 -4
- package/dist/{index-C-ebcNOc.d.mts → index-C9jnQ-mQ.d.mts} +1 -1
- package/dist/{index-D7h8qFS1.d.cts → index-CGlDeiGk.d.cts} +2 -2
- package/dist/{index-C6a3kDn2.d.cts → index-CK-uaK5U.d.cts} +6 -0
- package/dist/{index-DAJ5DVHh.d.cts → index-CLTH0nFB.d.cts} +2 -2
- package/dist/{index-CP55_Zs2.d.mts → index-COGZ6LV4.d.mts} +1 -1
- package/dist/{index-CgyyM3ty.d.cts → index-CPmemva9.d.mts} +5 -5
- package/dist/{index-Dg0FPoms.d.mts → index-CRbfhyQ6.d.mts} +2 -2
- package/dist/{index-BVDN2XbT.d.mts → index-CZofj6vc.d.cts} +3 -3
- package/dist/{index-i8BxMDEC.d.mts → index-C_K0hsEr.d.mts} +1 -1
- package/dist/index-C_n4ZPpQ.d.mts +1 -0
- package/dist/{index-D2tfsNPw.d.cts → index-Cc7Yhn7-.d.cts} +1 -1
- package/dist/{index-gxBafJdz.d.cts → index-Cf2D7Y1b.d.cts} +1 -1
- package/dist/{index-DsBOpK8T.d.mts → index-ClTo3BEJ.d.mts} +2 -2
- package/dist/{index-CBHCGizS.d.mts → index-CoHM1HQY.d.cts} +1 -1
- package/dist/{index-COgZvhXQ.d.mts → index-Cp96BUYc.d.cts} +2 -2
- package/dist/{index-CtwlReZi.d.cts → index-CvV0TCBK.d.cts} +1 -1
- package/dist/{index-CHWMSBhQ.d.cts → index-CwWM6Xfz.d.cts} +1 -1
- package/dist/{index-Dvx5TRET.d.cts → index-CykbbqeN.d.cts} +2 -2
- package/dist/{index-ZyigJMkV.d.mts → index-DA3M2w5w.d.cts} +5 -5
- package/dist/{index-Biqpy7c9.d.cts → index-DOimZ1Wo.d.mts} +3 -3
- package/dist/{index-B5_-Bxoo.d.cts → index-DOnYRzqY.d.cts} +2 -2
- package/dist/{index-DQo4XtH4.d.mts → index-DPCh-ols.d.mts} +2 -2
- package/dist/{index-DTJN6JL2.d.cts → index-DXUVsHux.d.mts} +1 -1
- package/dist/{index-Bhb0bFxe.d.mts → index-Dh_9qMhj.d.mts} +2 -2
- package/dist/{index-B2XL_zZY.d.mts → index-DiQHPHUv.d.cts} +3 -3
- package/dist/{index-DMysZsti.d.cts → index-F81TdZtB.d.mts} +2 -2
- package/dist/{index-B-p51b0z.d.cts → index-YxsjfTkO.d.cts} +2 -2
- package/dist/{index-DbKYSbLs.d.mts → index-d5jm3kxO.d.cts} +2 -2
- package/dist/index-fwRQcB91.d.cts +1 -0
- package/dist/{index-DlNBgVwb.d.mts → index-qgFJF8n2.d.cts} +1 -1
- package/dist/{index-2jMSUeji.d.cts → index-vls8Jhdl.d.cts} +1 -1
- package/dist/{index-D0skdQEK.d.mts → index-xhbtDtsc.d.mts} +1 -1
- 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-CUsagS5T.d.mts → useTablePagination-DOLl6Ba7.d.cts} +1 -1
- package/dist/{useTablePagination-jpEfHKUh.d.cts → useTablePagination-bZTeweJ_.d.mts} +1 -1
- package/dist/{useTransition-BJ375Sto.d.cts → useTransition-Dk84FQFT.d.mts} +1 -1
- package/dist/{useTransition-DDGpvgci.d.mts → useTransition-DnOAXNav.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/index-BL5Kj3Ka.d.mts +0 -1
- package/dist/index-CJMvoc8h.d.cts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-B-1sp9oV.mjs";
|
|
2
2
|
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-CK-uaK5U.cjs";
|
|
2
2
|
import { ElementType, HTMLAttributes } from "react";
|
|
3
3
|
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-B-1sp9oV.mjs";
|
|
2
2
|
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TableCellProps } from "../index-
|
|
2
|
-
import { t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { o as TableCellProps } from "../index-DOnYRzqY.cjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-YxsjfTkO.cjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
interface TablePaginationDisplayedRowsInfo {
|
|
5
5
|
from: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TableCellProps } from "../index-
|
|
2
|
-
import { t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { o as TableCellProps } from "../index-ClTo3BEJ.mjs";
|
|
2
|
+
import { t as TablePaginationActionType } from "../index-DPCh-ols.mjs";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
interface TablePaginationDisplayedRowsInfo {
|
|
5
5
|
from: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-YxsjfTkO.cjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-
|
|
1
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "../index-DPCh-ols.mjs";
|
|
2
2
|
export { TablePaginationActionType, TablePaginationActions, TablePaginationActionsProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as PaletteColor, nt as Theme } from "../index-
|
|
1
|
+
import { U as PaletteColor, nt as Theme } from "../index-CK-uaK5U.cjs";
|
|
2
2
|
import { ElementType, HTMLAttributes } from "react";
|
|
3
3
|
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
/** Palette color driving the hover/selected shading - a `theme.palette` key. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as PaletteColor, nt as Theme } from "../index-
|
|
1
|
+
import { U as PaletteColor, nt as Theme } from "../index-B-1sp9oV.mjs";
|
|
2
2
|
import { BorderProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
/** Palette color driving the hover/selected shading - a `theme.palette` key. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-
|
|
1
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-BYg-l1_n.cjs";
|
|
2
2
|
export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-
|
|
1
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "../index-BJIqJbF4.mjs";
|
|
2
2
|
export { TableSortLabel, TableSortLabelDirection, TableSortLabelProps };
|
package/dist/Table/hooks.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-DOLl6Ba7.cjs";
|
|
2
2
|
/** Header select-all state - spreads directly onto `Checkbox`. */
|
|
3
3
|
interface TableSelectionAllProps {
|
|
4
4
|
checked: boolean;
|
package/dist/Table/hooks.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-
|
|
1
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "../useTablePagination-bZTeweJ_.mjs";
|
|
2
2
|
/** Header select-all state - spreads directly onto `Checkbox`. */
|
|
3
3
|
interface TableSelectionAllProps {
|
|
4
4
|
checked: boolean;
|
package/dist/Table.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-
|
|
1
|
+
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-BNwokJ3f.cjs";
|
|
2
2
|
import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.cjs";
|
|
3
3
|
import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.cjs";
|
|
4
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-
|
|
4
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-DOnYRzqY.cjs";
|
|
5
5
|
import { TableContainer, TableContainerProps } from "./Table/TableContainer.cjs";
|
|
6
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-
|
|
7
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-
|
|
6
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-BYg-l1_n.cjs";
|
|
7
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-DOLl6Ba7.cjs";
|
|
8
8
|
import { TableControl, TableControlProps } from "./Table/TableControl.cjs";
|
|
9
9
|
import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.cjs";
|
|
10
10
|
import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.cjs";
|
|
11
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-
|
|
11
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-YxsjfTkO.cjs";
|
|
12
12
|
import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.cjs";
|
|
13
13
|
import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.cjs";
|
|
14
14
|
import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.cjs";
|
package/dist/Table.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-
|
|
1
|
+
import { n as TableContext, r as TableContextValue, t as TableCellPadding } from "./TableContext-jOlk5jxs.mjs";
|
|
2
2
|
import { Table, TableAlign, TableBackgroundToken, TableBorderColorToken, TableProps, TableSize } from "./Table/Table.mjs";
|
|
3
3
|
import { TableBody, TableBodyBackgroundToken, TableBodyBorderColorToken, TableBodyColorToken, TableBodyProps } from "./Table/TableBody.mjs";
|
|
4
|
-
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-
|
|
4
|
+
import { a as TableCellColorToken, c as TableCellVariant, i as TableCellBorderColorToken, l as TableSection, n as TableCellAlign, o as TableCellProps, r as TableCellBackgroundToken, s as TableCellSortDirection, t as TableCell, u as TableSectionContext } from "./index-ClTo3BEJ.mjs";
|
|
5
5
|
import { TableContainer, TableContainerProps } from "./Table/TableContainer.mjs";
|
|
6
|
-
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-
|
|
7
|
-
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-
|
|
6
|
+
import { n as TableSortLabelDirection, r as TableSortLabelProps, t as TableSortLabel } from "./index-BJIqJbF4.mjs";
|
|
7
|
+
import { a as TableSortMap, i as TableSortEntry, n as UseTablePaginationOptions, o as useTableSort, r as useTablePagination, t as TablePaginationState } from "./useTablePagination-bZTeweJ_.mjs";
|
|
8
8
|
import { TableControl, TableControlProps } from "./Table/TableControl.mjs";
|
|
9
9
|
import { TableFooter, TableFooterBackgroundToken, TableFooterBorderColorToken, TableFooterColorToken, TableFooterProps } from "./Table/TableFooter.mjs";
|
|
10
10
|
import { TableHead, TableHeadBackgroundToken, TableHeadBorderColorToken, TableHeadColorToken, TableHeadProps } from "./Table/TableHead.mjs";
|
|
11
|
-
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-
|
|
11
|
+
import { n as TablePaginationActions, r as TablePaginationActionsProps, t as TablePaginationActionType } from "./index-DPCh-ols.mjs";
|
|
12
12
|
import { TablePagination, TablePaginationDisplayedRowsInfo, TablePaginationProps } from "./Table/TablePagination.mjs";
|
|
13
13
|
import { TableRow, TableRowBackgroundToken, TableRowBorderColorToken, TableRowColor, TableRowProps } from "./Table/TableRow.mjs";
|
|
14
14
|
import { TableSelection, TableSelectionAllProps, TableSelectionRowProps, useTableSelection } from "./Table/hooks.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-CK-uaK5U.cjs";
|
|
2
2
|
/** Cell padding modes broadcast from `Table` to descendant cells. */
|
|
3
3
|
type TableCellPadding = 'normal' | 'none';
|
|
4
4
|
/** Table-wide cell config, provided by `Table` and consumed by `TableCell` / `TableSortLabel`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
2
|
/** Cell padding modes broadcast from `Table` to descendant cells. */
|
|
3
3
|
type TableCellPadding = 'normal' | 'none';
|
|
4
4
|
/** Table-wide cell config, provided by `Table` and consumed by `TableCell` / `TableSortLabel`. */
|
package/dist/Tabs/Tab.cjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
const require_Icon = require("../Icon-C5Iz5ekp.cjs");
|
|
5
|
-
const require_Tooltip = require("../Tooltip-
|
|
5
|
+
const require_Tooltip = require("../Tooltip-rkGm1HnP.cjs");
|
|
6
6
|
const require_dividerLine = require("../dividerLine-DFuLn1zU.cjs");
|
|
7
7
|
const require_tonalRadius = require("../tonalRadius-CU9GHoHx.cjs");
|
|
8
8
|
let react = require("react");
|
package/dist/Tabs/Tab.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { t as TabValue } from "../TabsContext-
|
|
1
|
+
import { nt as Theme } from "../index-CK-uaK5U.cjs";
|
|
2
|
+
import { t as TabValue } from "../TabsContext-i57cha5W.cjs";
|
|
3
3
|
import { ElementType, MouseEvent, ReactNode } from "react";
|
|
4
4
|
/** Where `icon` sits around a tab's label. */
|
|
5
5
|
type TabIconPosition = 'start' | 'end' | 'top' | 'bottom';
|
package/dist/Tabs/Tab.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { t as TabValue } from "../TabsContext-
|
|
1
|
+
import { nt as Theme } from "../index-B-1sp9oV.mjs";
|
|
2
|
+
import { t as TabValue } from "../TabsContext-D5E7s9i5.mjs";
|
|
3
3
|
import { ElementType, MouseEvent, ReactNode } from "react";
|
|
4
4
|
/** Where `icon` sits around a tab's label. */
|
|
5
5
|
type TabIconPosition = 'start' | 'end' | 'top' | 'bottom';
|
package/dist/Tabs/Tab.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as src_exports, o as styled, t as createShouldForwardProp } from "../src-B-rNjHIL.mjs";
|
|
2
2
|
import { n as useDefaultProps } from "../theme-DyyZQFzQ.mjs";
|
|
3
3
|
import { t as Icon } from "../Icon-XpXU-SuF.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { n as Tooltip } from "../Tooltip-Cx4ez9vY.mjs";
|
|
5
5
|
import { i as TabIndexContext, n as getDividerShadow, o as useTabsContext } from "../dividerLine-BC8E38Ed.mjs";
|
|
6
6
|
import { t as TONAL_RADIUS } from "../tonalRadius-CvXRueqT.mjs";
|
|
7
7
|
import { useContext } from "react";
|
package/dist/Tabs/TabList.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_TabsValueContext = require("../TabsValueContext-DklTSPKh.cjs");
|
|
3
|
-
const require_Tabs = require("../Tabs-
|
|
3
|
+
const require_Tabs = require("../Tabs-BTa2myRe.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
// src/Tabs/TabList/TabList.tsx
|
package/dist/Tabs/TabList.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TabsProps } from "../index-
|
|
1
|
+
import { a as TabsProps } from "../index-C6uLwNRF.cjs";
|
|
2
2
|
type TabListProps = Omit<TabsProps, 'value' | 'defaultValue'>;
|
|
3
3
|
/**
|
|
4
4
|
* @description The `Tabs` of a `TabContext`: it shows the context's value and chooses through it,
|
package/dist/Tabs/TabList.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TabsProps } from "../index-
|
|
1
|
+
import { a as TabsProps } from "../index-BbWQZ2Wj.mjs";
|
|
2
2
|
type TabListProps = Omit<TabsProps, 'value' | 'defaultValue'>;
|
|
3
3
|
/**
|
|
4
4
|
* @description The `Tabs` of a `TabContext`: it shows the context's value and chooses through it,
|
package/dist/Tabs/TabList.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useTabsValue } from "../TabsValueContext-C0vG9V7s.mjs";
|
|
2
|
-
import { n as TabListContext, t as Tabs } from "../Tabs-
|
|
2
|
+
import { n as TabListContext, t as Tabs } from "../Tabs-CE8iDr0D.mjs";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/Tabs/TabList/TabList.tsx
|
package/dist/Tabs/TabPanel.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { t as TabValue } from "../TabsContext-
|
|
1
|
+
import { nt as Theme } from "../index-CK-uaK5U.cjs";
|
|
2
|
+
import { t as TabValue } from "../TabsContext-i57cha5W.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
interface TabPanelProps extends SpaceProps<Theme> {
|
package/dist/Tabs/TabPanel.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { t as TabValue } from "../TabsContext-
|
|
1
|
+
import { nt as Theme } from "../index-B-1sp9oV.mjs";
|
|
2
|
+
import { t as TabValue } from "../TabsContext-D5E7s9i5.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
interface TabPanelProps extends SpaceProps<Theme> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-
|
|
1
|
+
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-qgFJF8n2.cjs";
|
|
2
2
|
export { TabScrollButton, TabScrollButtonProps, TabScrollDirection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-
|
|
1
|
+
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "../index-DXUVsHux.mjs";
|
|
2
2
|
export { TabScrollButton, TabScrollButtonProps, TabScrollDirection };
|
package/dist/Tabs/Tabs.cjs
CHANGED
package/dist/Tabs/Tabs.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as TabValue } from "../TabsContext-
|
|
2
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-
|
|
1
|
+
import { t as TabValue } from "../TabsContext-i57cha5W.cjs";
|
|
2
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-C6uLwNRF.cjs";
|
|
3
3
|
export { type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs/Tabs.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as TabValue } from "../TabsContext-
|
|
2
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-
|
|
1
|
+
import { t as TabValue } from "../TabsContext-D5E7s9i5.mjs";
|
|
2
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-BbWQZ2Wj.mjs";
|
|
3
3
|
export { type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs/Tabs.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Tabs } from "../Tabs-
|
|
1
|
+
export { t as Tabs } from "../Tabs-CE8iDr0D.mjs";
|
|
@@ -4,9 +4,9 @@ const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
|
4
4
|
const require_Icon = require("./Icon-C5Iz5ekp.cjs");
|
|
5
5
|
const require_View = require("./View.cjs");
|
|
6
6
|
const require_isRtl = require("./isRtl-Dl6QQWib.cjs");
|
|
7
|
-
const require_Tooltip = require("./Tooltip-
|
|
8
|
-
const require_MenuItem = require("./MenuItem-
|
|
9
|
-
const require_Menu = require("./Menu-
|
|
7
|
+
const require_Tooltip = require("./Tooltip-rkGm1HnP.cjs");
|
|
8
|
+
const require_MenuItem = require("./MenuItem-BWm8DC-S.cjs");
|
|
9
|
+
const require_Menu = require("./Menu-DOOK_gM9.cjs");
|
|
10
10
|
const require_dividerLine = require("./dividerLine-DFuLn1zU.cjs");
|
|
11
11
|
require("./tonalRadius-CU9GHoHx.cjs");
|
|
12
12
|
const require_Tabs_TabScrollButton = require("./Tabs/TabScrollButton.cjs");
|
|
@@ -4,9 +4,9 @@ import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
|
4
4
|
import { t as Icon } from "./Icon-XpXU-SuF.mjs";
|
|
5
5
|
import { View } from "./View.mjs";
|
|
6
6
|
import { t as isRtl } from "./isRtl-DN-EdUlg.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { t as MenuItem } from "./MenuItem-
|
|
9
|
-
import { t as Menu } from "./Menu-
|
|
7
|
+
import { n as Tooltip } from "./Tooltip-Cx4ez9vY.mjs";
|
|
8
|
+
import { t as MenuItem } from "./MenuItem-hJeCsQZX.mjs";
|
|
9
|
+
import { t as Menu } from "./Menu-Cv887y7O.mjs";
|
|
10
10
|
import { a as TabsContext, i as TabIndexContext, n as getDividerShadow, r as getEnclosedPieceStyle, t as getDividerColor } from "./dividerLine-BC8E38Ed.mjs";
|
|
11
11
|
import "./tonalRadius-CvXRueqT.mjs";
|
|
12
12
|
import { TabScrollButton } from "./Tabs/TabScrollButton.mjs";
|
package/dist/Tabs.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_Tabs_Tab = require("./Tabs/Tab.cjs");
|
|
3
3
|
const require_Tabs_TabContext = require("./Tabs/TabContext.cjs");
|
|
4
4
|
const require_Tabs_TabScrollButton = require("./Tabs/TabScrollButton.cjs");
|
|
5
|
-
const require_Tabs = require("./Tabs-
|
|
5
|
+
const require_Tabs = require("./Tabs-BTa2myRe.cjs");
|
|
6
6
|
const require_Tabs_TabList = require("./Tabs/TabList.cjs");
|
|
7
7
|
const require_Tabs_TabPanel = require("./Tabs/TabPanel.cjs");
|
|
8
8
|
exports.Tab = require_Tabs_Tab.Tab;
|
package/dist/Tabs.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TabValue } from "./TabsContext-
|
|
1
|
+
import { t as TabValue } from "./TabsContext-i57cha5W.cjs";
|
|
2
2
|
import { Tab, TabIconPosition, TabProps } from "./Tabs/Tab.cjs";
|
|
3
3
|
import { TabContext, TabContextProps } from "./Tabs/TabContext.cjs";
|
|
4
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-
|
|
5
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-
|
|
4
|
+
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-qgFJF8n2.cjs";
|
|
5
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-C6uLwNRF.cjs";
|
|
6
6
|
import { TabList, TabListProps } from "./Tabs/TabList.cjs";
|
|
7
7
|
import { TabPanel, TabPanelProps } from "./Tabs/TabPanel.cjs";
|
|
8
8
|
export { Tab, TabContext, TabContextProps, TabIconPosition, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, TabScrollButton, TabScrollButtonProps, TabScrollDirection, type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TabValue } from "./TabsContext-
|
|
1
|
+
import { t as TabValue } from "./TabsContext-D5E7s9i5.mjs";
|
|
2
2
|
import { Tab, TabIconPosition, TabProps } from "./Tabs/Tab.mjs";
|
|
3
3
|
import { TabContext, TabContextProps } from "./Tabs/TabContext.mjs";
|
|
4
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-
|
|
5
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-
|
|
4
|
+
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-DXUVsHux.mjs";
|
|
5
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-BbWQZ2Wj.mjs";
|
|
6
6
|
import { TabList, TabListProps } from "./Tabs/TabList.mjs";
|
|
7
7
|
import { TabPanel, TabPanelProps } from "./Tabs/TabPanel.mjs";
|
|
8
8
|
export { Tab, TabContext, TabContextProps, TabIconPosition, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, TabScrollButton, TabScrollButtonProps, TabScrollDirection, type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tab } from "./Tabs/Tab.mjs";
|
|
2
2
|
import { TabContext } from "./Tabs/TabContext.mjs";
|
|
3
3
|
import { TabScrollButton } from "./Tabs/TabScrollButton.mjs";
|
|
4
|
-
import { t as Tabs } from "./Tabs-
|
|
4
|
+
import { t as Tabs } from "./Tabs-CE8iDr0D.mjs";
|
|
5
5
|
import { TabList } from "./Tabs/TabList.mjs";
|
|
6
6
|
import { TabPanel } from "./Tabs/TabPanel.mjs";
|
|
7
7
|
export { Tab, TabContext, TabList, TabPanel, TabScrollButton, Tabs };
|
package/dist/TextInput.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-CK-uaK5U.cjs";
|
|
2
2
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
type TextInputColor = keyof Theme['palette'];
|
package/dist/TextInput.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
2
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
4
4
|
type TextInputColor = keyof Theme['palette'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-
|
|
1
|
+
import { i as ButtonProps } from "../index-Cf2D7Y1b.cjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
3
3
|
interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
4
4
|
/** The value associated with the button inside a `ToggleButtonGroup`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-
|
|
1
|
+
import { i as ButtonProps } from "../index-BMeqk34D.mjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
3
3
|
interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
4
4
|
/** The value associated with the button inside a `ToggleButtonGroup`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ButtonGroupProps } from "../index-
|
|
1
|
+
import { a as ButtonGroupProps } from "../index-CZofj6vc.cjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
3
3
|
interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
|
|
4
4
|
/** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ButtonGroupProps } from "../index-
|
|
1
|
+
import { a as ButtonGroupProps } from "../index-3-LXZL7g.mjs";
|
|
2
2
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
3
3
|
interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
|
|
4
4
|
/** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-B-rNjHIL.mjs";
|
|
2
|
-
import { n as useDefaultProps } from "./theme-DyyZQFzQ.mjs";
|
|
2
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-DyyZQFzQ.mjs";
|
|
3
3
|
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
4
4
|
import { t as getSurfaceRadius } from "./getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
5
|
import { t as useControlled } from "./useControlled-B4uQ9Bj6.mjs";
|
|
@@ -7,8 +7,35 @@ import { Portal } from "./Portal.mjs";
|
|
|
7
7
|
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-txSaWzfk.mjs";
|
|
8
8
|
import { t as useMergedRefs } from "./useMergedRefs-CdfwtmUd.mjs";
|
|
9
9
|
import { n as resolveTooltipPlacement, t as getTooltipOrigins } from "./getTooltipOrigins-D0bLLXwY.mjs";
|
|
10
|
-
import { cloneElement, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
10
|
+
import { cloneElement, createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
// src/Tooltip/TooltipGroupContext.ts
|
|
13
|
+
const TooltipGroupContext = createContext(null);
|
|
14
|
+
/** The state of a group whose window is `skipDelayDuration` milliseconds long. */
|
|
15
|
+
const createTooltipGroupState = (skipDelayDuration) => {
|
|
16
|
+
let active = null;
|
|
17
|
+
let closedAt = Number.NEGATIVE_INFINITY;
|
|
18
|
+
return {
|
|
19
|
+
shouldSkipDelay: () => active !== null || Date.now() - closedAt < skipDelayDuration,
|
|
20
|
+
open: (close) => {
|
|
21
|
+
active = close;
|
|
22
|
+
},
|
|
23
|
+
closeActive: (event) => active?.(event),
|
|
24
|
+
release: (close) => {
|
|
25
|
+
if (active !== close) return;
|
|
26
|
+
active = null;
|
|
27
|
+
closedAt = Date.now();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
const themeGroups = /* @__PURE__ */ new WeakMap();
|
|
32
|
+
const getThemeTooltipGroup = (theme, skipDelayDuration) => {
|
|
33
|
+
const byDuration = themeGroups.get(theme) ?? /* @__PURE__ */ new Map();
|
|
34
|
+
themeGroups.set(theme, byDuration);
|
|
35
|
+
const group = byDuration.get(skipDelayDuration) ?? createTooltipGroupState(skipDelayDuration);
|
|
36
|
+
byDuration.set(skipDelayDuration, group);
|
|
37
|
+
return group;
|
|
38
|
+
};
|
|
12
39
|
// src/Tooltip/hooks/useTooltip.ts
|
|
13
40
|
const isKeyboardFocus = (event) => {
|
|
14
41
|
try {
|
|
@@ -23,18 +50,21 @@ const isKeyboardFocus = (event) => {
|
|
|
23
50
|
* delayed; moving from the child onto the tooltip does not close it, so its text can be read and
|
|
24
51
|
* selected (WCAG 1.4.13); Escape closes it at once.
|
|
25
52
|
*/
|
|
26
|
-
function useTooltip({ isOpen: isOpenProp, defaultOpen, isAtPoint = false, onOpen, onClose, enterDelay, leaveDelay, enterTouchDelay, leaveTouchDelay, shouldOpenOnHover, shouldOpenOnFocus, shouldOpenOnTouch }) {
|
|
53
|
+
function useTooltip({ isOpen: isOpenProp, defaultOpen, isAtPoint = false, onOpen, onClose, enterDelay, leaveDelay, enterTouchDelay, leaveTouchDelay, shouldOpenOnHover, shouldOpenOnFocus, shouldOpenOnTouch, skipDelayDuration = 0 }) {
|
|
27
54
|
const [isOpen, setIsOpen] = useControlled({
|
|
28
55
|
controlled: isOpenProp,
|
|
29
56
|
default: defaultOpen
|
|
30
57
|
});
|
|
31
58
|
const timer = useRef(void 0);
|
|
59
|
+
const theme = useTheme();
|
|
60
|
+
const group = useContext(TooltipGroupContext) ?? (skipDelayDuration > 0 ? getThemeTooltipGroup(theme, skipDelayDuration) : null);
|
|
32
61
|
const latest = useRef({
|
|
33
62
|
isOpen,
|
|
34
63
|
isOpenProp,
|
|
35
64
|
isAtPoint,
|
|
36
65
|
onOpen,
|
|
37
|
-
onClose
|
|
66
|
+
onClose,
|
|
67
|
+
group
|
|
38
68
|
});
|
|
39
69
|
useEffect(() => {
|
|
40
70
|
latest.current = {
|
|
@@ -42,20 +72,47 @@ function useTooltip({ isOpen: isOpenProp, defaultOpen, isAtPoint = false, onOpen
|
|
|
42
72
|
isOpenProp,
|
|
43
73
|
isAtPoint,
|
|
44
74
|
onOpen,
|
|
45
|
-
onClose
|
|
75
|
+
onClose,
|
|
76
|
+
group
|
|
46
77
|
};
|
|
47
78
|
});
|
|
48
79
|
const clear = useCallback(() => window.clearTimeout(timer.current), []);
|
|
80
|
+
const closeNow = useCallback((event) => {
|
|
81
|
+
clear();
|
|
82
|
+
const current = latest.current;
|
|
83
|
+
setIsOpen(false);
|
|
84
|
+
current.onClose?.(event);
|
|
85
|
+
}, [clear, setIsOpen]);
|
|
86
|
+
const isInGroup = group !== null && isOpenProp === void 0;
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (!isInGroup || !isOpen) return void 0;
|
|
89
|
+
group.open(closeNow);
|
|
90
|
+
return () => group.release(closeNow);
|
|
91
|
+
}, [
|
|
92
|
+
group,
|
|
93
|
+
isInGroup,
|
|
94
|
+
isOpen,
|
|
95
|
+
closeNow
|
|
96
|
+
]);
|
|
97
|
+
const getEnterDelay = () => isInGroup && group.shouldSkipDelay() ? 0 : enterDelay;
|
|
49
98
|
const ask = useCallback((next, event, delay) => {
|
|
50
99
|
clear();
|
|
51
100
|
timer.current = window.setTimeout(() => {
|
|
52
101
|
const current = latest.current;
|
|
53
102
|
if (current.isOpen === next) return;
|
|
54
103
|
if (next && current.isAtPoint) return;
|
|
55
|
-
if (current.isOpenProp === void 0)
|
|
104
|
+
if (current.isOpenProp === void 0) {
|
|
105
|
+
if (next) current.group?.closeActive(event);
|
|
106
|
+
else current.group?.release(closeNow);
|
|
107
|
+
setIsOpen(next);
|
|
108
|
+
}
|
|
56
109
|
(next ? current.onOpen : current.onClose)?.(event);
|
|
57
110
|
}, delay);
|
|
58
|
-
}, [
|
|
111
|
+
}, [
|
|
112
|
+
clear,
|
|
113
|
+
setIsOpen,
|
|
114
|
+
closeNow
|
|
115
|
+
]);
|
|
59
116
|
useEffect(() => clear, [clear]);
|
|
60
117
|
useEffect(() => {
|
|
61
118
|
if (!isOpen) return void 0;
|
|
@@ -69,13 +126,13 @@ function useTooltip({ isOpen: isOpenProp, defaultOpen, isAtPoint = false, onOpen
|
|
|
69
126
|
isOpen,
|
|
70
127
|
childHandlers: {
|
|
71
128
|
onMouseEnter: (event) => {
|
|
72
|
-
if (shouldOpenOnHover) ask(true, event,
|
|
129
|
+
if (shouldOpenOnHover) ask(true, event, getEnterDelay());
|
|
73
130
|
},
|
|
74
131
|
onMouseLeave: (event) => {
|
|
75
132
|
if (shouldOpenOnHover) ask(false, event, leaveDelay);
|
|
76
133
|
},
|
|
77
134
|
onFocus: (event) => {
|
|
78
|
-
if (shouldOpenOnFocus && isKeyboardFocus(event)) ask(true, event,
|
|
135
|
+
if (shouldOpenOnFocus && isKeyboardFocus(event)) ask(true, event, getEnterDelay());
|
|
79
136
|
},
|
|
80
137
|
onBlur: (event) => {
|
|
81
138
|
if (shouldOpenOnFocus) ask(false, event, leaveDelay);
|
|
@@ -203,12 +260,12 @@ const mergeForwarded = (own, forwarded) => Object.fromEntries(Object.entries(for
|
|
|
203
260
|
current(...args);
|
|
204
261
|
value(...args);
|
|
205
262
|
}];
|
|
206
|
-
if (name === "aria-describedby" && current) return [name, `${
|
|
263
|
+
if (name === "aria-describedby" && typeof current === "string" && current) return [name, `${current} ${String(value)}`];
|
|
207
264
|
return [name, value];
|
|
208
265
|
}));
|
|
209
266
|
const getChildName = (title, own) => {
|
|
210
267
|
const isHidden = own["aria-hidden"] === true || own["aria-hidden"] === "true";
|
|
211
|
-
const isNamed = own["aria-label"]
|
|
268
|
+
const isNamed = Boolean(own["aria-label"] || own["aria-labelledby"]);
|
|
212
269
|
return typeof title === "string" && !isHidden && !isNamed ? { "aria-label": title } : {};
|
|
213
270
|
};
|
|
214
271
|
/**
|
|
@@ -244,7 +301,8 @@ function Tooltip({ children, anchorPosition, title, placement: placementProp, ha
|
|
|
244
301
|
leaveTouchDelay: leaveTouchDelayProp ?? dp.leaveTouchDelay ?? 1500,
|
|
245
302
|
shouldOpenOnHover: shouldOpenOnHoverProp ?? dp.shouldOpenOnHover ?? true,
|
|
246
303
|
shouldOpenOnFocus: shouldOpenOnFocusProp ?? dp.shouldOpenOnFocus ?? true,
|
|
247
|
-
shouldOpenOnTouch: shouldOpenOnTouchProp ?? dp.shouldOpenOnTouch ?? true
|
|
304
|
+
shouldOpenOnTouch: shouldOpenOnTouchProp ?? dp.shouldOpenOnTouch ?? true,
|
|
305
|
+
skipDelayDuration: dp.skipDelayDuration
|
|
248
306
|
});
|
|
249
307
|
const hasTitle = title !== void 0 && title !== null && title !== "";
|
|
250
308
|
const isShown = isOpen && hasTitle;
|
|
@@ -329,4 +387,19 @@ function Tooltip({ children, anchorPosition, title, placement: placementProp, ha
|
|
|
329
387
|
}) })
|
|
330
388
|
] });
|
|
331
389
|
}
|
|
332
|
-
|
|
390
|
+
// src/Tooltip/TooltipGroup.tsx
|
|
391
|
+
/**
|
|
392
|
+
* Lets the tooltips inside it open at once, with no enter delay, when the pointer or the focus
|
|
393
|
+
* moves to the next one just after another closed - a toolbar or a rail read from one icon to the
|
|
394
|
+
* next. It renders nothing of its own. Tooltips outside a group are unchanged, a touch keeps its
|
|
395
|
+
* own delay, and a tooltip whose `isOpen` the app controls is left alone: the group neither opens
|
|
396
|
+
* nor closes it, and it does not start the window.
|
|
397
|
+
*/
|
|
398
|
+
function TooltipGroup({ children, skipDelayDuration = 300 }) {
|
|
399
|
+
const state = useMemo(() => createTooltipGroupState(skipDelayDuration), [skipDelayDuration]);
|
|
400
|
+
return /* @__PURE__ */ jsx(TooltipGroupContext.Provider, {
|
|
401
|
+
value: state,
|
|
402
|
+
children
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
export { Tooltip as n, TooltipGroup as t };
|