@soroush.tech/design-system 2.0.0-rc.2 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -40
- package/dist/Accordion/Accordion.cjs +100 -0
- package/dist/Accordion/Accordion.d.cts +41 -0
- package/dist/Accordion/Accordion.d.mts +41 -0
- package/dist/Accordion/Accordion.mjs +98 -0
- package/dist/Accordion/AccordionActions.cjs +29 -0
- package/dist/Accordion/AccordionActions.d.cts +12 -0
- package/dist/Accordion/AccordionActions.d.mts +12 -0
- package/dist/Accordion/AccordionActions.mjs +27 -0
- package/dist/Accordion/AccordionDetails.cjs +23 -0
- package/dist/Accordion/AccordionDetails.d.cts +12 -0
- package/dist/Accordion/AccordionDetails.d.mts +12 -0
- package/dist/Accordion/AccordionDetails.mjs +21 -0
- package/dist/Accordion/AccordionGroup.cjs +79 -0
- package/dist/Accordion/AccordionGroup.d.cts +24 -0
- package/dist/Accordion/AccordionGroup.d.mts +24 -0
- package/dist/Accordion/AccordionGroup.mjs +77 -0
- package/dist/Accordion/AccordionSummary.cjs +99 -0
- package/dist/Accordion/AccordionSummary.d.cts +21 -0
- package/dist/Accordion/AccordionSummary.d.mts +21 -0
- package/dist/Accordion/AccordionSummary.mjs +97 -0
- package/dist/Accordion.cjs +11 -0
- package/dist/Accordion.d.cts +6 -0
- package/dist/Accordion.d.mts +6 -0
- package/dist/Accordion.mjs +6 -0
- package/dist/AccordionContext-B2TCl9Os.cjs +44 -0
- package/dist/AccordionContext-DDk_i9Dx.mjs +15 -0
- package/dist/Alert/Alert.cjs +154 -0
- package/dist/Alert/Alert.d.cts +37 -0
- package/dist/Alert/Alert.d.mts +37 -0
- package/dist/Alert/Alert.mjs +152 -0
- package/dist/Alert/AlertTitle.cjs +21 -0
- package/dist/Alert/AlertTitle.d.cts +12 -0
- package/dist/Alert/AlertTitle.d.mts +12 -0
- package/dist/Alert/AlertTitle.mjs +20 -0
- package/dist/Alert.cjs +5 -0
- package/dist/Alert.d.cts +3 -0
- package/dist/Alert.d.mts +3 -0
- package/dist/Alert.mjs +3 -0
- package/dist/AppBar.cjs +1 -1
- package/dist/AppBar.d.cts +1 -1
- package/dist/AppBar.d.mts +1 -1
- package/dist/AppBar.mjs +1 -1
- package/dist/Autocomplete.cjs +666 -0
- package/dist/Autocomplete.d.cts +97 -0
- package/dist/Autocomplete.d.mts +97 -0
- package/dist/Autocomplete.mjs +664 -0
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +1 -1
- package/dist/Avatar.d.mts +1 -1
- package/dist/Avatar.mjs +2 -2
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Badge.cjs +130 -0
- package/dist/Badge.d.cts +45 -0
- package/dist/Badge.d.mts +45 -0
- package/dist/Badge.mjs +128 -0
- package/dist/Breadcrumbs.cjs +2 -2
- package/dist/Breadcrumbs.d.cts +3 -3
- package/dist/Breadcrumbs.d.mts +3 -3
- package/dist/Breadcrumbs.mjs +2 -2
- package/dist/Button.cjs +6 -3
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +6 -3
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.d.cts +4 -4
- package/dist/Card.d.mts +4 -4
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.cjs +13 -3
- package/dist/Checkbox.d.cts +4 -2
- package/dist/Checkbox.d.mts +4 -2
- package/dist/Checkbox.mjs +13 -3
- package/dist/Chip.cjs +194 -0
- package/dist/Chip.d.cts +49 -0
- package/dist/Chip.d.mts +49 -0
- package/dist/Chip.mjs +192 -0
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +2 -2
- package/dist/CircularProgress.d.mts +2 -2
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Collapse.cjs +126 -0
- package/dist/Collapse.d.cts +2 -0
- package/dist/Collapse.d.mts +2 -0
- package/dist/Collapse.mjs +124 -0
- package/dist/Drawer.d.cts +3 -3
- package/dist/Drawer.d.mts +3 -3
- package/dist/Fab.cjs +114 -0
- package/dist/Fab.d.cts +2 -0
- package/dist/Fab.d.mts +2 -0
- package/dist/Fab.mjs +113 -0
- package/dist/FabMenu/FabMenu.cjs +3 -0
- package/dist/FabMenu/FabMenu.d.cts +53 -0
- package/dist/FabMenu/FabMenu.d.mts +53 -0
- package/dist/FabMenu/FabMenu.mjs +2 -0
- package/dist/FabMenu/FabMenuItem.cjs +28 -0
- package/dist/FabMenu/FabMenuItem.d.cts +19 -0
- package/dist/FabMenu/FabMenuItem.d.mts +19 -0
- package/dist/FabMenu/FabMenuItem.mjs +27 -0
- package/dist/FabMenu-BDfkT_zt.mjs +273 -0
- package/dist/FabMenu-RiVtzrKe.cjs +279 -0
- package/dist/FabMenu.cjs +5 -0
- package/dist/FabMenu.d.cts +3 -0
- package/dist/FabMenu.d.mts +3 -0
- package/dist/FabMenu.mjs +3 -0
- package/dist/FabMenuContext-BZslb0lL.cjs +22 -0
- package/dist/FabMenuContext-D-XlDbLl.mjs +11 -0
- package/dist/Fade.cjs +17 -0
- package/dist/Fade.d.cts +11 -0
- package/dist/Fade.d.mts +11 -0
- package/dist/Fade.mjs +16 -0
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.cjs +14 -4
- package/dist/FormControl.d.cts +9 -1
- package/dist/FormControl.d.mts +9 -1
- package/dist/FormControl.mjs +14 -4
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +13 -2
- package/dist/FormLabel.d.cts +2 -2
- package/dist/FormLabel.d.mts +2 -2
- package/dist/FormLabel.mjs +14 -3
- package/dist/Grid.d.cts +1 -1
- package/dist/Grid.d.mts +1 -1
- package/dist/Grow.cjs +21 -0
- package/dist/Grow.d.cts +11 -0
- package/dist/Grow.d.mts +11 -0
- package/dist/Grow.mjs +20 -0
- package/dist/{Icon-DlheCTJb.mjs → Icon-0hPpk-WZ.mjs} +71 -1
- package/dist/{Icon-Cvuhp9ek.cjs → Icon-BE7bRsqR.cjs} +71 -1
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.d.cts +1 -1
- package/dist/Image.d.mts +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +2 -2
- package/dist/LinearProgress.d.mts +2 -2
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +3 -3
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +3 -3
- package/dist/Menu/ContextMenu.cjs +6 -4
- package/dist/Menu/ContextMenu.d.cts +8 -6
- package/dist/Menu/ContextMenu.d.mts +8 -6
- package/dist/Menu/ContextMenu.mjs +6 -4
- 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 +2 -2
- package/dist/Menu/MenuList.d.mts +2 -2
- package/dist/Menu/MenuList.mjs +1 -1
- package/dist/{Menu-tECbAEFj.mjs → Menu-CnG4ikZd.mjs} +7 -4
- package/dist/{Menu-BkKPTOfh.cjs → Menu-DXLjR9ga.cjs} +8 -5
- package/dist/Menu.cjs +2 -2
- package/dist/Menu.d.cts +3 -3
- package/dist/Menu.d.mts +3 -3
- package/dist/Menu.mjs +2 -2
- package/dist/{MenuItem-BR7ingQx.mjs → MenuItem-C21eR7d6.mjs} +42 -86
- package/dist/{MenuItem-CfdN4axw.cjs → MenuItem-EJ4u73f0.cjs} +42 -92
- 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-D4imLXAa.cjs → MenuList-BBAYeUvD.cjs} +1 -1
- package/dist/{MenuList-B7msJ1IG.mjs → MenuList-Cz3cupC3.mjs} +1 -1
- package/dist/{MenuListContext-Dml16k0X.d.mts → MenuListContext-BWL5fM_L.d.mts} +2 -2
- package/dist/{MenuListContext-vujGcRk9.d.cts → MenuListContext-BrCKLgKZ.d.cts} +2 -2
- package/dist/{Modal-BcsyrrpH.mjs → Modal-CEHDej-v.mjs} +3 -22
- package/dist/{Modal-CM3osOqj.cjs → Modal-DBw4j0YA.cjs} +3 -22
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +15 -18
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +15 -18
- package/dist/NumberInput.cjs +502 -0
- package/dist/NumberInput.d.cts +79 -0
- package/dist/NumberInput.d.mts +79 -0
- package/dist/NumberInput.mjs +500 -0
- package/dist/Pagination/PaginationItem.cjs +2 -2
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +2 -2
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.d.cts +2 -2
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +2 -2
- package/dist/{Popover-QjM5Z1CR.mjs → Popover-Neeqs_7l.mjs} +3 -3
- package/dist/{Popover-CiZfgiKE.cjs → Popover-xyJTSjZy.cjs} +3 -3
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +3 -3
- package/dist/Popover.d.mts +3 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.d.cts +1 -17
- package/dist/Portal.d.mts +1 -17
- package/dist/Pressable.cjs +17 -13
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +17 -13
- package/dist/Quote.d.cts +2 -2
- package/dist/Quote.d.mts +2 -2
- package/dist/Radio.cjs +13 -3
- package/dist/Radio.d.cts +4 -2
- package/dist/Radio.d.mts +4 -2
- package/dist/Radio.mjs +13 -3
- package/dist/RangeInput.cjs +677 -0
- package/dist/RangeInput.d.cts +79 -0
- package/dist/RangeInput.d.mts +79 -0
- package/dist/RangeInput.mjs +675 -0
- package/dist/Rating.cjs +373 -0
- package/dist/Rating.d.cts +57 -0
- package/dist/Rating.d.mts +57 -0
- package/dist/Rating.mjs +371 -0
- package/dist/ScrollArea.cjs +268 -0
- package/dist/ScrollArea.d.cts +40 -0
- package/dist/ScrollArea.d.mts +40 -0
- package/dist/ScrollArea.mjs +266 -0
- package/dist/Select.cjs +11 -13
- package/dist/Select.d.cts +3 -3
- package/dist/Select.d.mts +3 -3
- package/dist/Select.mjs +13 -15
- package/dist/Sidebar/Sidebar.d.cts +1 -1
- package/dist/Sidebar/Sidebar.d.mts +1 -1
- package/dist/Sidebar/SidebarItem.cjs +2 -2
- package/dist/Sidebar/SidebarItem.d.cts +3 -3
- package/dist/Sidebar/SidebarItem.d.mts +3 -3
- package/dist/Sidebar/SidebarItem.mjs +4 -4
- package/dist/Skeleton.d.cts +1 -1
- package/dist/Skeleton.d.mts +1 -1
- package/dist/Slide.cjs +51 -0
- package/dist/Slide.d.cts +17 -0
- package/dist/Slide.d.mts +17 -0
- package/dist/Slide.mjs +50 -0
- package/dist/Snackbar.cjs +205 -0
- package/dist/Snackbar.d.cts +62 -0
- package/dist/Snackbar.d.mts +62 -0
- package/dist/Snackbar.mjs +203 -0
- package/dist/Switch.cjs +35 -18
- package/dist/Switch.d.cts +4 -2
- package/dist/Switch.d.mts +4 -2
- package/dist/Switch.mjs +37 -20
- 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/TableControl.mjs +2 -2
- 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.cjs +1 -0
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePagination.mjs +1 -0
- package/dist/Table/TablePaginationActions.cjs +1 -1
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +1 -1
- package/dist/Table/TableRow.d.cts +1 -1
- package/dist/Table/TableRow.d.mts +1 -1
- package/dist/Table/TableSortLabel.cjs +1 -1
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +1 -1
- package/dist/Table/hooks.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-6PgGpUzM.d.mts → TableContext-Be8tluYZ.d.cts} +1 -1
- package/dist/{TableContext-CBGk-Lh8.d.cts → TableContext-DUPqls5k.d.mts} +1 -1
- package/dist/Tabs/Tab.cjs +16 -7
- package/dist/Tabs/Tab.d.cts +2 -2
- package/dist/Tabs/Tab.d.mts +2 -2
- package/dist/Tabs/Tab.mjs +16 -7
- 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.cjs +1 -1
- package/dist/Tabs/TabPanel.d.cts +2 -2
- package/dist/Tabs/TabPanel.d.mts +2 -2
- package/dist/Tabs/TabPanel.mjs +1 -1
- package/dist/Tabs/TabScrollButton.cjs +2 -2
- package/dist/Tabs/TabScrollButton.d.cts +1 -1
- package/dist/Tabs/TabScrollButton.d.mts +1 -1
- package/dist/Tabs/TabScrollButton.mjs +2 -2
- 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-D_wkX-Jb.cjs → Tabs-Croeq9s2.cjs} +15 -10
- package/dist/{Tabs-YfCUbkQV.mjs → Tabs-DMMP5aDj.mjs} +12 -7
- 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-C2agsLBN.d.cts → TabsContext-BYeGjSZK.d.cts} +1 -1
- package/dist/{TabsContext-DqyxdmGW.d.mts → TabsContext-D4YumTfD.d.mts} +1 -1
- package/dist/TextInput.cjs +14 -14
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.mts +2 -2
- package/dist/TextInput.mjs +14 -14
- package/dist/ToggleButton/ToggleButton.cjs +2 -2
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +2 -2
- package/dist/ToggleButton/ToggleButtonGroup.cjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
- package/dist/Tooltip.cjs +270 -0
- package/dist/Tooltip.d.cts +78 -0
- package/dist/Tooltip.d.mts +78 -0
- package/dist/Tooltip.mjs +268 -0
- package/dist/TransferList.cjs +363 -0
- package/dist/TransferList.d.cts +69 -0
- package/dist/TransferList.d.mts +69 -0
- package/dist/TransferList.mjs +361 -0
- package/dist/Typography.cjs +1 -1
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/Zoom.cjs +16 -0
- package/dist/Zoom.d.cts +10 -0
- package/dist/Zoom.d.mts +10 -0
- package/dist/Zoom.mjs +15 -0
- package/dist/catalog.cjs +1405 -45
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1405 -45
- package/dist/engine.d.cts +2 -2
- package/dist/engine.d.mts +1 -1
- package/dist/getAnchorRel-CySI28HJ.mjs +8 -0
- package/dist/getAnchorRel-_vtAXC-4.cjs +13 -0
- package/dist/getShapeRadius-B9ytqDSk.d.cts +5 -0
- package/dist/getShapeRadius-B9ytqDSk.d.mts +5 -0
- package/dist/getShapeRadius-sY6-AGP4.mjs +12 -0
- package/dist/getShapeRadius-vXmXGV3f.cjs +17 -0
- package/dist/getSurfaceRadius-BTUV1E8H.cjs +11 -0
- package/dist/getSurfaceRadius-DTgqIzll.mjs +6 -0
- package/dist/getTooltipOrigins-B_7XXtQq.cjs +104 -0
- package/dist/getTooltipOrigins-CyyIMCF1.mjs +87 -0
- package/dist/{index-qlfNErNd.d.cts → index-05VGk0y_.d.cts} +30 -2
- package/dist/{index-CrIxI8Na.d.mts → index-2x01drCL.d.mts} +2 -2
- package/dist/{index-Cj5Rhh_9.d.mts → index-46mhlgP6.d.mts} +7 -3
- package/dist/{index-BiVvxOvj.d.cts → index-BCzI2Iqo.d.cts} +2 -2
- package/dist/{index-IdMqR82e.d.cts → index-BDqIc6Gx.d.cts} +1 -1
- package/dist/{index-BSA6SKao.d.mts → index-BPh60KDs.d.mts} +1 -1
- package/dist/{index-Bxd9NOWb.d.mts → index-BQge4W7L.d.cts} +3 -3
- package/dist/{index-DCmH5f9I.d.cts → index-BSGu9rPv.d.cts} +7 -3
- package/dist/{index-Bhdn4KTy.d.cts → index-BThHG5QU.d.mts} +3 -3
- package/dist/{index-DrVYWt-X.d.mts → index-BUeqNHjb.d.cts} +3 -3
- package/dist/{index-DIC7HKpP.d.mts → index-BeqpkGV-.d.mts} +1 -1
- package/dist/{index-DqjXDutI.d.mts → index-Bfyz3MDc.d.mts} +1 -1
- package/dist/{index-BlLH6rlE.d.cts → index-BgLqA52S.d.cts} +2 -2
- package/dist/{index-DDJuUfL5.d.cts → index-BhnLFsBv.d.cts} +1 -1
- package/dist/{index-gnh-Oe0n.d.cts → index-BitQk7Hx.d.cts} +1 -1
- package/dist/index-BvgX5eyV.d.mts +36 -0
- package/dist/index-CERyXFjz.d.cts +32 -0
- package/dist/index-CLvlNnjM.d.mts +32 -0
- package/dist/{index-C3KrFPCj.d.mts → index-CO-XxjiZ.d.cts} +2 -2
- package/dist/{index-DXhMkjQ6.d.cts → index-CR0akDlJ.d.cts} +2 -2
- package/dist/{index-CVNJEUwJ.d.mts → index-CRQ7XLri.d.mts} +234 -6
- package/dist/{index-DQcnJ5H4.d.cts → index-CRn4fWwA.d.mts} +2 -2
- package/dist/{index-BCnKYNlZ.d.cts → index-CWPvdEjP.d.mts} +3 -3
- package/dist/{index-DuVNRXP4.d.cts → index-CrQDxJ1D.d.cts} +1 -1
- package/dist/index-Ctx-DKV3.d.cts +18 -0
- package/dist/index-Ctx-DKV3.d.mts +18 -0
- package/dist/{index-BjPX49XA.d.mts → index-CyLhEXYB.d.mts} +1 -1
- package/dist/{index-DeDxYlSQ.d.mts → index-D05fSuF1.d.mts} +2 -2
- package/dist/{index-XxydXX8l.d.cts → index-DK3zgGPe.d.mts} +3 -3
- package/dist/{index-BqpS_Huq.d.mts → index-DNj5P2NH.d.mts} +30 -2
- package/dist/{index-BFruxTHv.d.cts → index-DOH1xY0L.d.cts} +1 -1
- package/dist/{index-B3LIhqHR.d.cts → index-D_-DAAE7.d.mts} +14 -6
- package/dist/{index-BbgFYfX_.d.mts → index-D_LT3QiH.d.mts} +2 -2
- package/dist/index-Db4L2hwa.d.cts +36 -0
- package/dist/{index-BjfPEP_5.d.cts → index-Dk4KuTPB.d.cts} +2 -2
- package/dist/{index-CoEqjFYn.d.mts → index-Ebjbrbsk.d.cts} +14 -6
- package/dist/{index-B8DNxyEw.d.mts → index-MWUGpG-Y.d.mts} +2 -2
- package/dist/{index-DmJ7yWWi.d.cts → index-XN4-ZqTB.d.cts} +236 -8
- package/dist/index-fPRELf0V.d.mts +1 -0
- package/dist/{index-CWnbCxgw.d.cts → index-fi-W3MOz.d.cts} +7 -5
- package/dist/{index-DJCpnTH3.d.mts → index-iTquH69S.d.cts} +3 -3
- package/dist/{index-DckSub2J.d.mts → index-lGpLM144.d.mts} +7 -5
- package/dist/{index-BVPrG1L0.d.mts → index-vBCN6iAz.d.mts} +1 -1
- package/dist/index-x3WC9ViD.d.cts +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/inputVariantStyles-BUK_62Ra.cjs +61 -0
- package/dist/inputVariantStyles-q_cZsCJg.mjs +44 -0
- package/dist/isRtl-BJDtm86G.mjs +7 -0
- package/dist/isRtl-DTkYHRPo.cjs +12 -0
- package/dist/precision-B1lhxnnO.mjs +25 -0
- package/dist/precision-B58cTPB2.cjs +48 -0
- package/dist/style.cjs +1 -1
- package/dist/style.d.cts +2 -2
- package/dist/style.d.mts +2 -2
- package/dist/style.mjs +1 -1
- package/dist/{theme-BxXuXRgQ.cjs → theme-DzfwuzMZ.cjs} +1 -1
- package/dist/{theme-Z9_QludW.mjs → theme-oBfFhJm9.mjs} +1 -1
- package/dist/theme.cjs +3 -2
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +3 -3
- package/dist/{themes-gd6tcmqS.cjs → themes--4eci3M1.cjs} +25 -2
- package/dist/{themes-L-dE7_ck.mjs → themes-BwEsdVox.mjs} +20 -3
- package/dist/useAnchoredPlacement-B1FyGoZV.cjs +111 -0
- package/dist/useAnchoredPlacement-Pe7sY41E.mjs +106 -0
- package/dist/useControlled-C666KpQ0.cjs +18 -0
- package/dist/useControlled-CBRLsO-H.mjs +13 -0
- package/dist/useMergedRefs-2zTDXgPO.cjs +27 -0
- package/dist/useMergedRefs-BfBckwRY.mjs +22 -0
- package/dist/{useTablePagination-C5VKtqDp.d.cts → useTablePagination-CFb_FYA9.d.cts} +1 -1
- package/dist/{useTablePagination-C6LSlt3w.d.mts → useTablePagination-_-bzuXJO.d.mts} +1 -1
- package/dist/useTransition-C1F7MuHO.d.mts +42 -0
- package/dist/useTransition-DAQd1PX3.cjs +83 -0
- package/dist/useTransition-DP1k0irI.mjs +78 -0
- package/dist/useTransition-l9dv83-Y.d.cts +42 -0
- package/dist/useTransitionChild-CikpU0Yh.cjs +54 -0
- package/dist/useTransitionChild-Dvg9hO-F.mjs +49 -0
- package/package.json +194 -4
- package/dist/index-DBteSahY.d.cts +0 -1
- package/dist/index-_G1osn09.d.mts +0 -1
- package/dist/inputVariantStyles-BBkkYQtE.cjs +0 -32
- package/dist/inputVariantStyles-CcqpGfuP.mjs +0 -28
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as TabValue } from "./TabsContext-
|
|
4
|
-
import { n as TabScrollButtonProps } from "./index-
|
|
5
|
-
import { ComponentType, ReactNode, Ref } from "react";
|
|
1
|
+
import { nt as Theme, tt as TabsVariants } from "./index-CRQ7XLri.mjs";
|
|
2
|
+
import "./index-vBCN6iAz.mjs";
|
|
3
|
+
import { t as TabValue } from "./TabsContext-D4YumTfD.mjs";
|
|
4
|
+
import { n as TabScrollButtonProps } from "./index-CyLhEXYB.mjs";
|
|
6
5
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
|
+
import { ComponentType, ReactNode, Ref } from "react";
|
|
7
7
|
//#region src/Tabs/Tabs/Tabs.d.ts
|
|
8
8
|
type TabsVariant = keyof TabsVariants;
|
|
9
9
|
type TabsOrientation = 'horizontal' | 'vertical';
|
|
@@ -29,6 +29,14 @@ interface TabsProps extends SpaceProps<Theme> {
|
|
|
29
29
|
onChange?: (value: TabValue) => void;
|
|
30
30
|
/** Fired with a closable tab's value when its close button, a middle click or Delete closes it. Removing the tab, and picking the next selection, are the app's. */
|
|
31
31
|
onTabClose?: (value: TabValue) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Names each closable tab's close button for assistive technology - and the one in the overflow
|
|
34
|
+
* menu - by its `closeLabel`, so it is a button a screen reader finds and presses by name, still
|
|
35
|
+
* out of the tab order. It is a sibling of the tab, not inside it, so a tablist of tabs and their
|
|
36
|
+
* close buttons is read as one. Without it, the button is the pointer's alone and Delete closes
|
|
37
|
+
* the focused tab. Default: `false`.
|
|
38
|
+
*/
|
|
39
|
+
shouldAnnounceClose?: boolean;
|
|
32
40
|
/** `'nav'` makes it a navigation of links or buttons (`aria-current="page"`) rather than a `tablist`. Default: `'div'`. */
|
|
33
41
|
as?: 'div' | 'nav';
|
|
34
42
|
/** Default: `'horizontal'`. */
|
|
@@ -93,6 +101,6 @@ interface TabsProps extends SpaceProps<Theme> {
|
|
|
93
101
|
* navigation, its current tab marked `aria-current="page"`. Content of the row's own sits
|
|
94
102
|
* before and after the tabs.
|
|
95
103
|
*/
|
|
96
|
-
declare function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose, as, orientation, variant: variantProp, color: colorProp, textColor, size: sizeProp, fullWidth, isCentered, shouldSelectOnFocus, overflowBehavior, overflowLabel, scrollButtons, shouldShowScrollButtonsOnMobile, hasVisibleScrollbar, hasDivider: hasDividerProp, bg, selectedBg: selectedBgProp, slots, startContent, endContent, action, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, id, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TabsProps>): import("react").JSX.Element;
|
|
104
|
+
declare function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose, shouldAnnounceClose, as, orientation, variant: variantProp, color: colorProp, textColor, size: sizeProp, fullWidth, isCentered, shouldSelectOnFocus, overflowBehavior, overflowLabel, scrollButtons, shouldShowScrollButtonsOnMobile, hasVisibleScrollbar, hasDivider: hasDividerProp, bg, selectedBg: selectedBgProp, slots, startContent, endContent, action, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, id, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TabsProps>): import("react").JSX.Element;
|
|
97
105
|
//#endregion
|
|
98
106
|
export { TabsProps as a, TabsOverflowBehavior as i, TabsActions as n, TabsScrollButtons as o, TabsOrientation as r, TabsVariant as s, Tabs as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-CRQ7XLri.mjs";
|
|
2
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BeqpkGV-.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Pagination/Pagination.d.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { nt as Theme } from "./index-XN4-ZqTB.cjs";
|
|
2
|
+
import { r as TransitionTimeout, t as TransitionCallbacks } from "./useTransition-l9dv83-Y.cjs";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
//#region src/Collapse/Collapse.d.ts
|
|
5
|
+
type CollapseOrientation = 'vertical' | 'horizontal';
|
|
6
|
+
interface CollapseProps extends TransitionCallbacks {
|
|
7
|
+
/** What opens and closes. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** Whether it is open. Default: `false`. */
|
|
10
|
+
isShown?: boolean;
|
|
11
|
+
/** Moves on the first render too, when open. Default: `true`. */
|
|
12
|
+
shouldAppear?: boolean;
|
|
13
|
+
/** Keeps the content out of the tree until it is first opened. Default: `false`. */
|
|
14
|
+
shouldMountOnEnter?: boolean;
|
|
15
|
+
/** Takes the content out of the tree once it is closed. Default: `false`. */
|
|
16
|
+
shouldUnmountOnExit?: boolean;
|
|
17
|
+
/** How long it takes in milliseconds, open or closed. Default: `theme.transitions.duration.standard`. */
|
|
18
|
+
timeout?: TransitionTimeout;
|
|
19
|
+
/** Which of `theme.transitions.easing` it moves by. Default: `'standard'`. */
|
|
20
|
+
easing?: keyof Theme['transitions']['easing'];
|
|
21
|
+
/** The height - or, horizontal, the width - it keeps when closed. Default: `0`. */
|
|
22
|
+
collapsedSize?: string | number;
|
|
23
|
+
/** Which way it opens. Default: `'vertical'`. */
|
|
24
|
+
orientation?: CollapseOrientation;
|
|
25
|
+
className?: string;
|
|
26
|
+
'data-testid'?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @description Opens and closes its content by its height - or, horizontal, its width. The size
|
|
30
|
+
* it moves to is measured from the content, and left to the content once it is open, so content
|
|
31
|
+
* that grows keeps showing. Closed, it keeps `collapsedSize` and is hidden when that is nothing.
|
|
32
|
+
* A user who asked for less motion sees it change at once.
|
|
33
|
+
*/
|
|
34
|
+
declare function Collapse({ children, isShown, shouldAppear: shouldAppearProp, shouldMountOnEnter, shouldUnmountOnExit, timeout: timeoutProp, easing: easingProp, collapsedSize: collapsedSizeProp, orientation: orientationProp, onEnter, onEntering, onEntered, onExit, onExiting, onExited, className, 'data-testid': dataTestid }: Readonly<CollapseProps>): import("react").JSX.Element | null;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CollapseOrientation as n, CollapseProps as r, Collapse as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-XN4-ZqTB.cjs";
|
|
2
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-BQge4W7L.cjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as TabValue } from "./TabsContext-
|
|
4
|
-
import { n as TabScrollButtonProps } from "./index-
|
|
5
|
-
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { nt as Theme, tt as TabsVariants } from "./index-XN4-ZqTB.cjs";
|
|
2
|
+
import "./index-BhnLFsBv.cjs";
|
|
3
|
+
import { t as TabValue } from "./TabsContext-BYeGjSZK.cjs";
|
|
4
|
+
import { n as TabScrollButtonProps } from "./index-BitQk7Hx.cjs";
|
|
6
5
|
import { ComponentType, ReactNode, Ref } from "react";
|
|
6
|
+
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
7
7
|
//#region src/Tabs/Tabs/Tabs.d.ts
|
|
8
8
|
type TabsVariant = keyof TabsVariants;
|
|
9
9
|
type TabsOrientation = 'horizontal' | 'vertical';
|
|
@@ -29,6 +29,14 @@ interface TabsProps extends SpaceProps<Theme> {
|
|
|
29
29
|
onChange?: (value: TabValue) => void;
|
|
30
30
|
/** Fired with a closable tab's value when its close button, a middle click or Delete closes it. Removing the tab, and picking the next selection, are the app's. */
|
|
31
31
|
onTabClose?: (value: TabValue) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Names each closable tab's close button for assistive technology - and the one in the overflow
|
|
34
|
+
* menu - by its `closeLabel`, so it is a button a screen reader finds and presses by name, still
|
|
35
|
+
* out of the tab order. It is a sibling of the tab, not inside it, so a tablist of tabs and their
|
|
36
|
+
* close buttons is read as one. Without it, the button is the pointer's alone and Delete closes
|
|
37
|
+
* the focused tab. Default: `false`.
|
|
38
|
+
*/
|
|
39
|
+
shouldAnnounceClose?: boolean;
|
|
32
40
|
/** `'nav'` makes it a navigation of links or buttons (`aria-current="page"`) rather than a `tablist`. Default: `'div'`. */
|
|
33
41
|
as?: 'div' | 'nav';
|
|
34
42
|
/** Default: `'horizontal'`. */
|
|
@@ -93,6 +101,6 @@ interface TabsProps extends SpaceProps<Theme> {
|
|
|
93
101
|
* navigation, its current tab marked `aria-current="page"`. Content of the row's own sits
|
|
94
102
|
* before and after the tabs.
|
|
95
103
|
*/
|
|
96
|
-
declare function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose, as, orientation, variant: variantProp, color: colorProp, textColor, size: sizeProp, fullWidth, isCentered, shouldSelectOnFocus, overflowBehavior, overflowLabel, scrollButtons, shouldShowScrollButtonsOnMobile, hasVisibleScrollbar, hasDivider: hasDividerProp, bg, selectedBg: selectedBgProp, slots, startContent, endContent, action, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, id, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TabsProps>): import("react").JSX.Element;
|
|
104
|
+
declare function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose, shouldAnnounceClose, as, orientation, variant: variantProp, color: colorProp, textColor, size: sizeProp, fullWidth, isCentered, shouldSelectOnFocus, overflowBehavior, overflowLabel, scrollButtons, shouldShowScrollButtonsOnMobile, hasVisibleScrollbar, hasDivider: hasDividerProp, bg, selectedBg: selectedBgProp, slots, startContent, endContent, action, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, id, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TabsProps>): import("react").JSX.Element;
|
|
97
105
|
//#endregion
|
|
98
106
|
export { TabsProps as a, TabsOverflowBehavior as i, TabsActions as n, TabsScrollButtons as o, TabsOrientation as r, TabsVariant as s, Tabs as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-CRQ7XLri.mjs";
|
|
2
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-DK3zgGPe.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
5
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
2
|
-
import { CSSObject, PropsOf, css, keyframes } from "@emotion/react";
|
|
3
1
|
import { CSSProperties, ComponentClass, ComponentProps, ComponentType, ElementType, HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
4
2
|
import { BorderProps, ContainerQueries, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, QueryHelpers, SpaceProps, SpanProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
3
|
+
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
4
|
+
import { CSSObject, PropsOf, css, keyframes } from "@emotion/react";
|
|
5
5
|
import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
|
|
6
6
|
//#region src/View/View.d.ts
|
|
7
7
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -152,6 +152,10 @@ interface ThemeBackground {
|
|
|
152
152
|
terminal: string;
|
|
153
153
|
grid: string;
|
|
154
154
|
transparent: string;
|
|
155
|
+
/** The thumb of a drawn scrollbar (`ScrollArea`). */
|
|
156
|
+
scrollbar: string;
|
|
157
|
+
/** The track of a drawn scrollbar, while it is hovered or dragged. */
|
|
158
|
+
scrollbarTrack: string;
|
|
155
159
|
}
|
|
156
160
|
interface ThemeBorder {
|
|
157
161
|
default?: string;
|
|
@@ -188,6 +192,25 @@ interface ThemeZOrder {
|
|
|
188
192
|
appBar: number;
|
|
189
193
|
drawer: number;
|
|
190
194
|
modal: number;
|
|
195
|
+
snackbar: number;
|
|
196
|
+
tooltip: number;
|
|
197
|
+
}
|
|
198
|
+
/** The durations of `theme.transitions.duration`, in milliseconds. */
|
|
199
|
+
interface ThemeTransitionDuration {
|
|
200
|
+
short: number;
|
|
201
|
+
standard: number;
|
|
202
|
+
long: number;
|
|
203
|
+
}
|
|
204
|
+
/** The easings of `theme.transitions.easing` - CSS timing functions. */
|
|
205
|
+
interface ThemeTransitionEasing {
|
|
206
|
+
standard: string;
|
|
207
|
+
enter: string;
|
|
208
|
+
exit: string;
|
|
209
|
+
}
|
|
210
|
+
/** How long and how smoothly things move - read by `Collapse`, `Fade`, `Grow`, `Slide` and `Zoom`. */
|
|
211
|
+
interface ThemeTransitions {
|
|
212
|
+
duration: OpenScale<ThemeTransitionDuration>;
|
|
213
|
+
easing: OpenScale<ThemeTransitionEasing>;
|
|
191
214
|
}
|
|
192
215
|
interface ThemeRadii {
|
|
193
216
|
sq: string;
|
|
@@ -417,6 +440,8 @@ interface ThemeDefaults {
|
|
|
417
440
|
avatarSize?: keyof ThemeAvatarSizes;
|
|
418
441
|
/** Icon glyph size step. Fallback: `'lg'`. */
|
|
419
442
|
iconSize?: keyof ThemeIconSizes;
|
|
443
|
+
/** Least width of an input that does not fill its row (text, number, select, autocomplete) - a CSS length. Fallback: `'12rem'`. */
|
|
444
|
+
inputMinWidth?: string;
|
|
420
445
|
/** Border/ring color. Fallback: `'primary'`. */
|
|
421
446
|
borderColor?: keyof ThemeBorder;
|
|
422
447
|
/** Border/ring width. Fallback: `'thin'`. */
|
|
@@ -426,7 +451,7 @@ interface ThemeDefaults {
|
|
|
426
451
|
/** Switch thumb/track layout. Fallback: `'outside'`. */
|
|
427
452
|
switchVariant?: 'outside' | 'inside';
|
|
428
453
|
/** Input frame style (TextInput, Select, NativeSelect). Fallback: `'default'`. */
|
|
429
|
-
inputVariant?:
|
|
454
|
+
inputVariant?: InputVariantKey;
|
|
430
455
|
/** Avatar shape. Fallback: `'circular'`. */
|
|
431
456
|
avatarVariant?: 'circular' | 'rounded' | 'square';
|
|
432
457
|
/** Link underline behavior. Fallback: `'always'`. */
|
|
@@ -467,6 +492,173 @@ interface ButtonVariants {
|
|
|
467
492
|
outlined: true;
|
|
468
493
|
text: true;
|
|
469
494
|
}
|
|
495
|
+
/** The defaults a theme may set for every `RangeInput`. */
|
|
496
|
+
interface RangeInputOwnerState {
|
|
497
|
+
size?: keyof ThemeSizes;
|
|
498
|
+
color?: keyof ThemePalette;
|
|
499
|
+
orientation?: 'horizontal' | 'vertical';
|
|
500
|
+
track?: 'normal' | false | 'inverted';
|
|
501
|
+
step?: number | null;
|
|
502
|
+
shiftStep?: number;
|
|
503
|
+
valueLabel?: 'auto' | 'on' | 'off';
|
|
504
|
+
shouldSwapThumbs?: boolean;
|
|
505
|
+
}
|
|
506
|
+
/** The defaults a theme may set for every `NumberInput` - its button labels give it a language. */
|
|
507
|
+
interface NumberInputOwnerState {
|
|
508
|
+
variant?: InputVariantKey;
|
|
509
|
+
size?: keyof ThemeSizes;
|
|
510
|
+
color?: keyof ThemePalette;
|
|
511
|
+
spinButtons?: 'stacked' | 'sides' | 'none';
|
|
512
|
+
step?: number;
|
|
513
|
+
smallStep?: number;
|
|
514
|
+
largeStep?: number;
|
|
515
|
+
shouldSnapOnStep?: boolean;
|
|
516
|
+
shouldScrubOnWheel?: boolean;
|
|
517
|
+
incrementLabel?: string;
|
|
518
|
+
decrementLabel?: string;
|
|
519
|
+
}
|
|
520
|
+
/** The defaults a theme may set for every `Rating`. */
|
|
521
|
+
interface RatingOwnerState {
|
|
522
|
+
max?: number;
|
|
523
|
+
precision?: number;
|
|
524
|
+
highlightSelectedOnly?: boolean;
|
|
525
|
+
size?: keyof ThemeSizes;
|
|
526
|
+
color?: keyof ThemePalette;
|
|
527
|
+
}
|
|
528
|
+
/** The defaults a theme may set for every `Autocomplete` - its labels give it a language. */
|
|
529
|
+
interface AutocompleteOwnerState {
|
|
530
|
+
borderRadius?: keyof ThemeRadii;
|
|
531
|
+
bg?: keyof ThemeBackground;
|
|
532
|
+
textColor?: keyof ThemeText;
|
|
533
|
+
variant?: InputVariantKey;
|
|
534
|
+
size?: keyof ThemeSizes;
|
|
535
|
+
color?: keyof ThemePalette;
|
|
536
|
+
shouldAllowFreeText?: boolean;
|
|
537
|
+
layer?: keyof ThemeZOrder;
|
|
538
|
+
clearLabel?: string;
|
|
539
|
+
openLabel?: string;
|
|
540
|
+
closeLabel?: string;
|
|
541
|
+
loadingText?: string;
|
|
542
|
+
noOptionsText?: string;
|
|
543
|
+
}
|
|
544
|
+
/** The defaults a theme may set for every `ScrollArea`. */
|
|
545
|
+
interface ScrollAreaOwnerState {
|
|
546
|
+
axes?: 'x' | 'y' | 'both';
|
|
547
|
+
}
|
|
548
|
+
/** The frames a form input is drawn in. */
|
|
549
|
+
type InputVariantKey = 'default' | 'outlined' | 'text' | 'underline';
|
|
550
|
+
/** The corner shapes of a control or a surface. */
|
|
551
|
+
type ShapeKey = 'square' | 'rounded' | 'pill';
|
|
552
|
+
/** The defaults a theme may set for every `Tooltip`. */
|
|
553
|
+
interface TooltipOwnerState {
|
|
554
|
+
borderRadius?: keyof ThemeRadii;
|
|
555
|
+
bg?: keyof ThemeBackground;
|
|
556
|
+
textColor?: keyof ThemeText;
|
|
557
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'auto' | 'auto-start' | 'auto-end';
|
|
558
|
+
hasArrow?: boolean;
|
|
559
|
+
enterDelay?: number;
|
|
560
|
+
leaveDelay?: number;
|
|
561
|
+
enterTouchDelay?: number;
|
|
562
|
+
leaveTouchDelay?: number;
|
|
563
|
+
shouldDescribeChild?: boolean;
|
|
564
|
+
shouldOpenOnHover?: boolean;
|
|
565
|
+
shouldOpenOnFocus?: boolean;
|
|
566
|
+
shouldOpenOnTouch?: boolean;
|
|
567
|
+
layer?: keyof ThemeZOrder;
|
|
568
|
+
}
|
|
569
|
+
/** The defaults a theme may set for every `Snackbar`. */
|
|
570
|
+
interface SnackbarOwnerState {
|
|
571
|
+
anchorOrigin?: {
|
|
572
|
+
vertical: 'top' | 'bottom';
|
|
573
|
+
horizontal: 'start' | 'center' | 'end';
|
|
574
|
+
};
|
|
575
|
+
autoHideDuration?: number;
|
|
576
|
+
resumeHideDuration?: number;
|
|
577
|
+
layer?: keyof ThemeZOrder;
|
|
578
|
+
shape?: ShapeKey;
|
|
579
|
+
borderRadius?: keyof ThemeRadii;
|
|
580
|
+
bg?: keyof ThemeBackground;
|
|
581
|
+
textColor?: keyof ThemeText;
|
|
582
|
+
}
|
|
583
|
+
/** The defaults a theme may set for every `Fab`. */
|
|
584
|
+
interface FabOwnerState {
|
|
585
|
+
variant?: 'circular' | 'extended';
|
|
586
|
+
color?: keyof ThemePalette;
|
|
587
|
+
size?: keyof ThemeSizes;
|
|
588
|
+
}
|
|
589
|
+
/** The defaults a theme may set for every `FabMenu`. */
|
|
590
|
+
interface FabMenuOwnerState {
|
|
591
|
+
direction?: 'up' | 'down' | 'left' | 'right';
|
|
592
|
+
align?: 'start' | 'end';
|
|
593
|
+
color?: keyof ThemePalette;
|
|
594
|
+
size?: keyof ThemeSizes;
|
|
595
|
+
}
|
|
596
|
+
/** The defaults a theme may set for every `Alert` - its `closeLabel` gives it a language. */
|
|
597
|
+
interface AlertOwnerState {
|
|
598
|
+
severity?: 'success' | 'info' | 'warning' | 'error';
|
|
599
|
+
variant?: 'standard' | 'contained' | 'outlined';
|
|
600
|
+
closeLabel?: string;
|
|
601
|
+
role?: 'alert' | 'status';
|
|
602
|
+
borderRadius?: keyof ThemeRadii;
|
|
603
|
+
}
|
|
604
|
+
/** The defaults a theme may set for every `Badge`. */
|
|
605
|
+
interface BadgeOwnerState {
|
|
606
|
+
max?: number;
|
|
607
|
+
variant?: 'standard' | 'dot';
|
|
608
|
+
color?: keyof ThemePalette;
|
|
609
|
+
anchorOrigin?: {
|
|
610
|
+
vertical: 'top' | 'bottom';
|
|
611
|
+
horizontal: 'start' | 'end';
|
|
612
|
+
};
|
|
613
|
+
overlap?: 'rectangular' | 'circular';
|
|
614
|
+
}
|
|
615
|
+
/** The defaults a theme may set for every `Chip` - its `deleteLabel` gives it a language. */
|
|
616
|
+
interface ChipOwnerState {
|
|
617
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
618
|
+
color?: keyof ThemePalette;
|
|
619
|
+
size?: keyof ThemeSizes;
|
|
620
|
+
shape?: ShapeKey;
|
|
621
|
+
borderRadius?: keyof ThemeRadii;
|
|
622
|
+
deleteLabel?: string;
|
|
623
|
+
}
|
|
624
|
+
/** The defaults a theme may set for every `Accordion`. */
|
|
625
|
+
interface AccordionOwnerState {
|
|
626
|
+
hasGutters?: boolean;
|
|
627
|
+
borderRadius?: keyof ThemeRadii;
|
|
628
|
+
bg?: keyof ThemeBackground;
|
|
629
|
+
textColor?: keyof ThemeText;
|
|
630
|
+
}
|
|
631
|
+
/** The defaults a theme may set for every `AccordionSummary`. */
|
|
632
|
+
interface AccordionSummaryOwnerState {
|
|
633
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
634
|
+
}
|
|
635
|
+
/** The defaults a theme may set for every `AccordionGroup`. */
|
|
636
|
+
interface AccordionGroupOwnerState {
|
|
637
|
+
isExclusive?: boolean;
|
|
638
|
+
variant?: 'separated' | 'attached';
|
|
639
|
+
}
|
|
640
|
+
/** The defaults a theme may set for every `Collapse`. */
|
|
641
|
+
interface CollapseOwnerState {
|
|
642
|
+
orientation?: 'vertical' | 'horizontal';
|
|
643
|
+
collapsedSize?: string | number;
|
|
644
|
+
timeout?: number | {
|
|
645
|
+
enter: number;
|
|
646
|
+
exit: number;
|
|
647
|
+
};
|
|
648
|
+
easing?: keyof ThemeTransitionEasing;
|
|
649
|
+
shouldAppear?: boolean;
|
|
650
|
+
}
|
|
651
|
+
/** The defaults a theme may set for every `TransferList` - its button labels give it a language. */
|
|
652
|
+
interface TransferListOwnerState {
|
|
653
|
+
size?: keyof ThemeSizes;
|
|
654
|
+
color?: keyof ThemePalette;
|
|
655
|
+
shouldShowMoveAll?: boolean;
|
|
656
|
+
hasSelectAll?: boolean;
|
|
657
|
+
moveAllRightLabel?: string;
|
|
658
|
+
moveRightLabel?: string;
|
|
659
|
+
moveLeftLabel?: string;
|
|
660
|
+
moveAllLeftLabel?: string;
|
|
661
|
+
}
|
|
470
662
|
/** The defaults a theme may set for every `Breadcrumbs` - its `expandLabel` gives a trail its language. */
|
|
471
663
|
interface BreadcrumbsOwnerState {
|
|
472
664
|
separator?: ReactNode;
|
|
@@ -481,7 +673,7 @@ interface ButtonOwnerState {
|
|
|
481
673
|
variant?: keyof ButtonVariants;
|
|
482
674
|
color?: keyof ThemePalette;
|
|
483
675
|
size?: keyof ThemeSizes;
|
|
484
|
-
shape?:
|
|
676
|
+
shape?: ShapeKey;
|
|
485
677
|
fullWidth?: boolean;
|
|
486
678
|
disabled?: boolean;
|
|
487
679
|
}
|
|
@@ -504,6 +696,7 @@ interface TabsOwnerState {
|
|
|
504
696
|
/** The defaults a theme may set for every `Menu`. */
|
|
505
697
|
interface MenuOwnerState {
|
|
506
698
|
align?: 'start' | 'end';
|
|
699
|
+
borderRadius?: keyof ThemeRadii;
|
|
507
700
|
marginThreshold?: keyof ThemeSpace;
|
|
508
701
|
elevation?: PaperElevation;
|
|
509
702
|
layer?: keyof ThemeZOrder;
|
|
@@ -595,7 +788,7 @@ interface ThemeComponents {
|
|
|
595
788
|
Button?: ComponentConfig<ButtonOwnerState, 'root' | 'label' | 'icon' | 'loader'>;
|
|
596
789
|
ButtonGroup?: ComponentConfig;
|
|
597
790
|
Card?: ComponentConfig<CardOwnerState, 'root' | 'title' | 'caption' | 'icon'>;
|
|
598
|
-
Checkbox?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon'>;
|
|
791
|
+
Checkbox?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon' | 'label'>;
|
|
599
792
|
CircularProgress?: ComponentConfig<Record<string, unknown>, 'root' | 'track' | 'circle'>;
|
|
600
793
|
ContextMenu?: ComponentConfig<ContextMenuOwnerState, 'root' | 'paper'>;
|
|
601
794
|
Drawer?: ComponentConfig;
|
|
@@ -622,12 +815,32 @@ interface ThemeComponents {
|
|
|
622
815
|
Popover?: ComponentConfig<Record<string, unknown>, 'root' | 'positioner'>;
|
|
623
816
|
Pressable?: ComponentConfig<PressableOwnerState>;
|
|
624
817
|
Quote?: ComponentConfig;
|
|
625
|
-
Radio?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon'>;
|
|
818
|
+
Radio?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon' | 'label'>;
|
|
819
|
+
RangeInput?: ComponentConfig<RangeInputOwnerState, 'root' | 'rail' | 'track' | 'thumb' | 'mark' | 'markLabel' | 'valueLabel' | 'input'>;
|
|
820
|
+
Tooltip?: ComponentConfig<TooltipOwnerState, 'root' | 'arrow'>;
|
|
821
|
+
Snackbar?: ComponentConfig<SnackbarOwnerState, 'root' | 'content' | 'message' | 'action'>;
|
|
822
|
+
Fab?: ComponentConfig<FabOwnerState, 'root' | 'label' | 'labelText'>;
|
|
823
|
+
FabMenu?: ComponentConfig<FabMenuOwnerState, 'root' | 'list'>;
|
|
824
|
+
Alert?: ComponentConfig<AlertOwnerState, 'root' | 'icon' | 'message' | 'action' | 'closeButton'>;
|
|
825
|
+
AlertTitle?: ComponentConfig;
|
|
826
|
+
Badge?: ComponentConfig<BadgeOwnerState, 'root' | 'badge' | 'label'>;
|
|
827
|
+
Chip?: ComponentConfig<ChipOwnerState, 'root' | 'body' | 'label' | 'icon' | 'avatar' | 'deleteIcon'>;
|
|
828
|
+
Accordion?: ComponentConfig<AccordionOwnerState, 'root' | 'region'>;
|
|
829
|
+
AccordionSummary?: ComponentConfig<AccordionSummaryOwnerState, 'root' | 'button' | 'content' | 'icon'>;
|
|
830
|
+
AccordionDetails?: ComponentConfig;
|
|
831
|
+
AccordionActions?: ComponentConfig;
|
|
832
|
+
AccordionGroup?: ComponentConfig<AccordionGroupOwnerState>;
|
|
833
|
+
Collapse?: ComponentConfig<CollapseOwnerState, 'root' | 'wrapper' | 'inner'>;
|
|
834
|
+
TransferList?: ComponentConfig<TransferListOwnerState, 'root' | 'list' | 'header' | 'title' | 'count' | 'items' | 'item' | 'controls' | 'icon'>;
|
|
835
|
+
Autocomplete?: ComponentConfig<AutocompleteOwnerState, 'root' | 'tags' | 'input' | 'clearIndicator' | 'popupIndicator' | 'popup' | 'listbox' | 'group' | 'groupLabel' | 'groupItems' | 'option' | 'status'>;
|
|
836
|
+
NumberInput?: ComponentConfig<NumberInputOwnerState, 'root' | 'input' | 'content' | 'spinButtons' | 'increment' | 'decrement'>;
|
|
837
|
+
Rating?: ComponentConfig<RatingOwnerState, 'root' | 'item' | 'icon' | 'decimal' | 'input' | 'text' | 'emptyLabel'>;
|
|
838
|
+
ScrollArea?: ComponentConfig<ScrollAreaOwnerState, 'root' | 'viewport' | 'track' | 'thumb'>;
|
|
626
839
|
Select?: ComponentConfig<Record<string, unknown>, 'root' | 'value' | 'valueArea' | 'valueGhost' | 'listbox'>;
|
|
627
840
|
Sidebar?: ComponentConfig<Record<string, unknown>, 'root' | 'rail' | 'panel'>;
|
|
628
841
|
SidebarItem?: ComponentConfig;
|
|
629
842
|
Skeleton?: ComponentConfig<Record<string, unknown>, 'root' | 'content'>;
|
|
630
|
-
Switch?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'track' | 'thumb'>;
|
|
843
|
+
Switch?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'track' | 'thumb' | 'label'>;
|
|
631
844
|
Tab?: ComponentConfig<TabOwnerState, 'root' | 'label' | 'icon' | 'secondaryAction' | 'close'>;
|
|
632
845
|
Table?: ComponentConfig;
|
|
633
846
|
TableBody?: ComponentConfig;
|
|
@@ -684,6 +897,7 @@ interface Theme {
|
|
|
684
897
|
fontWeights: OpenScale<ThemeFontWeights>;
|
|
685
898
|
palette: OpenScale<ThemePalette>;
|
|
686
899
|
zOrder: OpenScale<ThemeZOrder>;
|
|
900
|
+
transitions: ThemeTransitions;
|
|
687
901
|
}
|
|
688
902
|
/** The semantic color keys of `theme.palette`. */
|
|
689
903
|
type PaletteColor = keyof ThemePalette;
|
|
@@ -705,6 +919,20 @@ declare const zOrder: {
|
|
|
705
919
|
appBar: number;
|
|
706
920
|
drawer: number;
|
|
707
921
|
modal: number;
|
|
922
|
+
snackbar: number;
|
|
923
|
+
tooltip: number;
|
|
924
|
+
};
|
|
925
|
+
declare const transitions: {
|
|
926
|
+
duration: {
|
|
927
|
+
short: number;
|
|
928
|
+
standard: number;
|
|
929
|
+
long: number;
|
|
930
|
+
};
|
|
931
|
+
easing: {
|
|
932
|
+
standard: string;
|
|
933
|
+
enter: string;
|
|
934
|
+
exit: string;
|
|
935
|
+
};
|
|
708
936
|
};
|
|
709
937
|
declare const fontSizes: number[];
|
|
710
938
|
declare const lineHeights: {
|
|
@@ -825,4 +1053,4 @@ interface CreateThemedStyled extends StyledTags {
|
|
|
825
1053
|
*/
|
|
826
1054
|
declare const styled: CreateThemedStyled;
|
|
827
1055
|
//#endregion
|
|
828
|
-
export {
|
|
1056
|
+
export { TabScrollButtonOwnerState as $, typography as $t, FabOwnerState as A, TransferListOwnerState as At, MenuOwnerState as B, fontSizes as Bt, CollapseOwnerState as C, ThemeText as Ct, ContextMenuOwnerState as D, ThemeTypographyVariants as Dt, ComponentVariant as E, ThemeTransitions as Et, LayoutPanel as F, between as Ft, PressableOwnerState as G, letterSpacings as Gt, OpenScale as H, fonts as Ht, LayoutPanels as I, borderWidths as It, ScrollAreaOwnerState as J, only as Jt, RangeInputOwnerState as K, lineHeights as Kt, LayoutSpace as L, breakpoints as Lt, LayoutContent as M, TypographyVariantStyle as Mt, LayoutEntry as N, avatar as Nt, DefaultBreakpoints as O, ThemeZOrder as Ot, LayoutLength as P, baseTheme as Pt, TabPanelOwnerState as Q, transitions as Qt, MenuItemOwnerState as R, containerQueries as Rt, ChipOwnerState as S, ThemeSwitch as St, ComponentStyle as T, ThemeTransitionEasing as Tt, PaletteColor as U, icon as Ut, NumberInputOwnerState as V, fontWeights as Vt, PaletteEntry as W, layout as Wt, SnackbarOwnerState as X, sizes as Xt, SizeEntry as Y, radii as Yt, TabOwnerState as Z, space as Zt, ButtonVariants as _, ViewBorderWidthToken as _n, ThemeRadii as _t, ThemeCustomizationOptions as a, BreakpointHelpers as an, ThemeBorder as at, CardSlotIconProps as b, ThemeSkeleton as bt, AccordionOwnerState as c, PaperElevation as cn, ThemeComponents as ct, AutocompleteOwnerState as d, FlexProps as dn, ThemeFonts as dt, up as en, TabsOwnerState as et, BadgeOwnerState as f, GapToken as fn, ThemeIconSizes as ft, ButtonOwnerState as g, ViewBorderRadiusToken as gn, ThemePalette as gt, BreakpointOverrides as h, ViewBorderColorToken as hn, ThemeLineHeights as ht, props as i, createTheme as in, ThemeBackground as it, LayoutBars as j, TypographyVariant as jt, FabMenuOwnerState as k, TooltipOwnerState as kt, AccordionSummaryOwnerState as l, PaperProps as ln, ThemeDefaults as lt, BreakpointKey as m, ViewBackgroundToken as mn, ThemeLetterSpacings as mt, css as n, DeepPartial as nn, Theme as nt, styled as o, withBreakpointHelpers as on, ThemeBorderWidths as ot, BreadcrumbsOwnerState as p, View as pn, ThemeLayout as pt, RatingOwnerState as q, not as qt, keyframes as r, ThemeOverride as rn, ThemeAvatarSizes as rt, AccordionGroupOwnerState as s, Paper as sn, ThemeBreakpoints as st, createShouldForwardProp as t, zOrder as tn, TabsVariants as tt, AlertOwnerState as u, Flex as un, ThemeFontWeights as ut, CSSObject$1 as v, ViewColorToken as vn, ThemeShadow as vt, ComponentConfig as w, ThemeTransitionDuration as wt, CardSlotTypographyProps as x, ThemeSpace as xt, CardOwnerState as y, ViewProps as yn, ThemeSizes as yt, MenuListOwnerState as z, down as zt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-CRQ7XLri.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as MenuItemValue } from "./MenuListContext-
|
|
4
|
-
import { n as MenuItemData } from "./index-
|
|
1
|
+
import { cn as PaperElevation, nt as Theme } from "./index-XN4-ZqTB.cjs";
|
|
2
|
+
import "./index-x3WC9ViD.cjs";
|
|
3
|
+
import { t as MenuItemValue } from "./MenuListContext-BrCKLgKZ.cjs";
|
|
4
|
+
import { n as MenuItemData } from "./index-CO-XxjiZ.cjs";
|
|
5
5
|
import { KeyboardEvent, MouseEvent, ReactElement, ReactNode, Ref, SyntheticEvent } from "react";
|
|
6
6
|
//#region src/Menu/utils/getMenuOrigins.d.ts
|
|
7
7
|
/** Which edge of its trigger a menu lines up with: the start edge, or the end edge. */
|
|
@@ -43,6 +43,8 @@ interface MenuProps {
|
|
|
43
43
|
marginThreshold?: keyof Theme['space'];
|
|
44
44
|
/** Shadow depth of the surface. Default: `8`. */
|
|
45
45
|
elevation?: PaperElevation;
|
|
46
|
+
/** Corner radius of the list, resolves against `theme.radii`. Default: `theme.defaults.surfaceRadius`, else square. */
|
|
47
|
+
borderRadius?: keyof Theme['radii'];
|
|
46
48
|
/** Stacking layer from `theme.zOrder`. Default: `'modal'`. */
|
|
47
49
|
layer?: keyof Theme['zOrder'];
|
|
48
50
|
/** Shown as one disabled row when the menu has no rows. Without it, the list stays empty. */
|
|
@@ -67,6 +69,6 @@ interface MenuProps {
|
|
|
67
69
|
* can't clip it, but stays inside the menu's own box in the DOM. Escape or a chosen row
|
|
68
70
|
* closes it and returns focus to the trigger; focus leaving it closes it where it went.
|
|
69
71
|
*/
|
|
70
|
-
declare function Menu({ trigger, children, items, isOpen: isOpenProp, defaultOpen, onOpen, onClose, onStep, onSelect, align: alignProp, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, 'aria-label': ariaLabel, className, 'data-testid': dataTestid }: Readonly<MenuProps>): import("react").JSX.Element;
|
|
72
|
+
declare function Menu({ trigger, children, items, isOpen: isOpenProp, defaultOpen, onOpen, onClose, onStep, onSelect, align: alignProp, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, 'aria-label': ariaLabel, className, 'data-testid': dataTestid }: Readonly<MenuProps>): import("react").JSX.Element;
|
|
71
73
|
//#endregion
|
|
72
74
|
export { MenuAlign as a, MenuStep as i, MenuCloseReason as n, MenuProps as r, Menu as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as TableCellPadding } from "./TableContext-
|
|
3
|
-
import { BorderProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { nt as Theme } from "./index-XN4-ZqTB.cjs";
|
|
2
|
+
import { t as TableCellPadding } from "./TableContext-Be8tluYZ.cjs";
|
|
4
3
|
import { ElementType, ThHTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Table/TableSectionContext.d.ts
|
|
6
6
|
/** The table section a cell lives in - drives `TableCell`'s th/td element resolution. */
|
|
7
7
|
type TableSection = 'head' | 'body' | 'footer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as MenuItemValue } from "./MenuListContext-
|
|
4
|
-
import { n as MenuItemData } from "./index-
|
|
1
|
+
import { cn as PaperElevation, nt as Theme } from "./index-CRQ7XLri.mjs";
|
|
2
|
+
import "./index-fPRELf0V.mjs";
|
|
3
|
+
import { t as MenuItemValue } from "./MenuListContext-BWL5fM_L.mjs";
|
|
4
|
+
import { n as MenuItemData } from "./index-CRn4fWwA.mjs";
|
|
5
5
|
import { KeyboardEvent, MouseEvent, ReactElement, ReactNode, Ref, SyntheticEvent } from "react";
|
|
6
6
|
//#region src/Menu/utils/getMenuOrigins.d.ts
|
|
7
7
|
/** Which edge of its trigger a menu lines up with: the start edge, or the end edge. */
|
|
@@ -43,6 +43,8 @@ interface MenuProps {
|
|
|
43
43
|
marginThreshold?: keyof Theme['space'];
|
|
44
44
|
/** Shadow depth of the surface. Default: `8`. */
|
|
45
45
|
elevation?: PaperElevation;
|
|
46
|
+
/** Corner radius of the list, resolves against `theme.radii`. Default: `theme.defaults.surfaceRadius`, else square. */
|
|
47
|
+
borderRadius?: keyof Theme['radii'];
|
|
46
48
|
/** Stacking layer from `theme.zOrder`. Default: `'modal'`. */
|
|
47
49
|
layer?: keyof Theme['zOrder'];
|
|
48
50
|
/** Shown as one disabled row when the menu has no rows. Without it, the list stays empty. */
|
|
@@ -67,6 +69,6 @@ interface MenuProps {
|
|
|
67
69
|
* can't clip it, but stays inside the menu's own box in the DOM. Escape or a chosen row
|
|
68
70
|
* closes it and returns focus to the trigger; focus leaving it closes it where it went.
|
|
69
71
|
*/
|
|
70
|
-
declare function Menu({ trigger, children, items, isOpen: isOpenProp, defaultOpen, onOpen, onClose, onStep, onSelect, align: alignProp, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, 'aria-label': ariaLabel, className, 'data-testid': dataTestid }: Readonly<MenuProps>): import("react").JSX.Element;
|
|
72
|
+
declare function Menu({ trigger, children, items, isOpen: isOpenProp, defaultOpen, onOpen, onClose, onStep, onSelect, align: alignProp, marginThreshold: marginThresholdProp, elevation: elevationProp, layer: layerProp, borderRadius: borderRadiusProp, emptyLabel, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, 'aria-label': ariaLabel, className, 'data-testid': dataTestid }: Readonly<MenuProps>): import("react").JSX.Element;
|
|
71
73
|
//#endregion
|
|
72
74
|
export { MenuAlign as a, MenuStep as i, MenuCloseReason as n, MenuProps as r, Menu as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as ThemeComponents, lt as ThemeDefaults, nt as Theme, pt as ThemeLayout } from "./index-CRQ7XLri.mjs";
|
|
2
2
|
import { ComponentType, ReactNode } from "react";
|
|
3
3
|
//#region src/theme/ThemeProvider.d.ts
|
|
4
4
|
interface ThemeProviderProps {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-XN4-ZqTB.cjs";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as PaletteColor, a as ThemeCustomizationOptions, i as props, n as css, nt as Theme, o as styled, r as keyframes, t as createShouldForwardProp, v as CSSObject } from "./index-XN4-ZqTB.cjs";
|
|
2
2
|
export * from "@soroush.tech/styled-system";
|
|
3
3
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as PaletteColor, a as ThemeCustomizationOptions, i as props, n as css, nt as Theme, o as styled, r as keyframes, t as createShouldForwardProp, v as CSSObject } from "./index-CRQ7XLri.mjs";
|
|
2
2
|
export * from "@soroush.tech/styled-system";
|
|
3
3
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|