@soroush.tech/design-system 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/Accordion/Accordion.cjs +1 -1
- package/dist/Accordion/Accordion.d.cts +5 -6
- package/dist/Accordion/Accordion.d.mts +5 -6
- package/dist/Accordion/Accordion.mjs +2 -2
- package/dist/Accordion/AccordionActions.cjs +1 -1
- package/dist/Accordion/AccordionActions.d.cts +2 -3
- package/dist/Accordion/AccordionActions.d.mts +2 -3
- package/dist/Accordion/AccordionActions.mjs +1 -1
- package/dist/Accordion/AccordionDetails.cjs +1 -1
- package/dist/Accordion/AccordionDetails.d.cts +2 -3
- package/dist/Accordion/AccordionDetails.d.mts +2 -3
- package/dist/Accordion/AccordionDetails.mjs +1 -1
- package/dist/Accordion/AccordionGroup.cjs +1 -1
- package/dist/Accordion/AccordionGroup.d.cts +4 -5
- package/dist/Accordion/AccordionGroup.d.mts +4 -5
- package/dist/Accordion/AccordionGroup.mjs +2 -2
- package/dist/Accordion/AccordionSummary.cjs +2 -2
- package/dist/Accordion/AccordionSummary.d.cts +3 -4
- package/dist/Accordion/AccordionSummary.d.mts +3 -4
- package/dist/Accordion/AccordionSummary.mjs +3 -3
- package/dist/Alert/Alert.cjs +3 -3
- package/dist/Alert/Alert.d.cts +5 -6
- package/dist/Alert/Alert.d.mts +5 -6
- package/dist/Alert/Alert.mjs +4 -4
- package/dist/Alert/AlertTitle.cjs +1 -1
- package/dist/Alert/AlertTitle.d.cts +2 -3
- package/dist/Alert/AlertTitle.d.mts +2 -3
- package/dist/Alert/AlertTitle.mjs +1 -1
- package/dist/AppBar.cjs +2 -2
- package/dist/AppBar.d.cts +6 -7
- package/dist/AppBar.d.mts +6 -7
- package/dist/AppBar.mjs +2 -2
- package/dist/Autocomplete.cjs +6 -6
- package/dist/Autocomplete.d.cts +6 -6
- package/dist/Autocomplete.d.mts +6 -6
- package/dist/Autocomplete.mjs +7 -7
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +8 -8
- package/dist/Avatar.d.mts +8 -8
- package/dist/Avatar.mjs +3 -3
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +3 -4
- package/dist/Backdrop.d.mts +3 -4
- package/dist/Backdrop.mjs +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.d.cts +7 -8
- package/dist/Badge.d.mts +7 -8
- package/dist/Badge.mjs +2 -2
- package/dist/Breadcrumbs.cjs +2 -2
- package/dist/Breadcrumbs.d.cts +5 -6
- package/dist/Breadcrumbs.d.mts +5 -6
- package/dist/Breadcrumbs.mjs +3 -3
- package/dist/Button.cjs +4 -4
- package/dist/Button.d.cts +46 -2
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +4 -4
- package/dist/ButtonGroup.cjs +2 -2
- package/dist/ButtonGroup.d.cts +38 -2
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +2 -2
- package/dist/Card.cjs +4 -4
- package/dist/Card.d.cts +7 -8
- package/dist/Card.d.mts +7 -8
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.cjs +2 -2
- package/dist/Checkbox.d.cts +5 -6
- package/dist/Checkbox.d.mts +5 -6
- package/dist/Checkbox.mjs +2 -2
- package/dist/Chip.cjs +3 -3
- package/dist/Chip.d.cts +7 -8
- package/dist/Chip.d.mts +7 -8
- package/dist/Chip.mjs +4 -4
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +7 -8
- package/dist/CircularProgress.d.mts +7 -8
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Collapse.cjs +1 -1
- package/dist/Collapse.d.cts +33 -2
- package/dist/Collapse.d.mts +1 -1
- package/dist/Collapse.mjs +2 -2
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +9 -10
- package/dist/Drawer.d.mts +9 -10
- package/dist/Drawer.mjs +2 -2
- package/dist/Fab.cjs +1 -1
- package/dist/Fab.d.cts +30 -2
- package/dist/Fab.d.mts +1 -1
- package/dist/Fab.mjs +2 -2
- package/dist/FabMenu/FabMenu.cjs +1 -1
- package/dist/FabMenu/FabMenu.d.cts +5 -6
- package/dist/FabMenu/FabMenu.d.mts +5 -6
- package/dist/FabMenu/FabMenu.mjs +1 -1
- package/dist/FabMenu/FabMenuItem.d.cts +3 -4
- package/dist/FabMenu/FabMenuItem.d.mts +3 -4
- package/dist/{FabMenu-fQGSZCjr.cjs → FabMenu-CvHrONFi.cjs} +4 -4
- package/dist/{FabMenu-BqBhZs0S.mjs → FabMenu-JJzhFdJP.mjs} +5 -5
- package/dist/FabMenu.cjs +1 -1
- package/dist/FabMenu.mjs +1 -1
- package/dist/Fade.cjs +1 -1
- package/dist/Fade.d.cts +3 -4
- package/dist/Fade.d.mts +3 -4
- package/dist/Fade.mjs +1 -1
- package/dist/Flex.cjs +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.d.cts +2 -3
- package/dist/FocusTrap.d.mts +2 -3
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +1 -1
- package/dist/Form.d.cts +5 -6
- package/dist/Form.d.mts +5 -6
- package/dist/Form.mjs +1 -1
- package/dist/FormControl.cjs +3 -3
- package/dist/FormControl.d.cts +8 -9
- package/dist/FormControl.d.mts +8 -9
- package/dist/FormControl.mjs +3 -3
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +3 -4
- package/dist/FormHelperText.d.mts +3 -4
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +3 -4
- package/dist/FormLabel.d.mts +3 -4
- package/dist/FormLabel.mjs +1 -1
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.d.cts +5 -6
- package/dist/Grid.d.mts +5 -6
- package/dist/Grid.mjs +1 -1
- package/dist/Grow.cjs +1 -1
- package/dist/Grow.d.cts +3 -4
- package/dist/Grow.d.mts +3 -4
- package/dist/Grow.mjs +1 -1
- package/dist/{Icon-C5Iz5ekp.cjs → Icon-C4QMiNHJ.cjs} +1 -1
- package/dist/{Icon-XpXU-SuF.mjs → Icon-gVHlFgdH.mjs} +2 -2
- 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.cjs +1 -1
- package/dist/Image.d.cts +3 -4
- package/dist/Image.d.mts +3 -4
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +7 -8
- package/dist/LinearProgress.d.mts +7 -8
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +2 -2
- package/dist/Link.d.cts +4 -5
- package/dist/Link.d.mts +4 -5
- package/dist/Link.mjs +3 -3
- package/dist/Menu/ContextMenu.cjs +3 -3
- package/dist/Menu/ContextMenu.d.cts +9 -9
- package/dist/Menu/ContextMenu.d.mts +9 -9
- package/dist/Menu/ContextMenu.mjs +4 -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/MenuDivider.cjs +1 -1
- package/dist/Menu/MenuDivider.d.cts +2 -3
- package/dist/Menu/MenuDivider.d.mts +2 -3
- package/dist/Menu/MenuDivider.mjs +1 -1
- package/dist/Menu/MenuItems.cjs +1 -1
- package/dist/Menu/MenuItems.d.cts +32 -2
- 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 +44 -3
- package/dist/Menu/MenuList.d.mts +2 -2
- package/dist/Menu/MenuList.mjs +1 -1
- package/dist/{Menu-ULMXG0BP.mjs → Menu-31GXflmP.mjs} +5 -5
- package/dist/{Menu-DiBVHD7B.cjs → Menu-CTqplttU.cjs} +4 -4
- package/dist/Menu.cjs +2 -2
- package/dist/Menu.d.cts +4 -4
- package/dist/Menu.d.mts +4 -4
- package/dist/Menu.mjs +2 -2
- package/dist/{MenuItem-BChqYIsh.cjs → MenuItem-Be4xFEww.cjs} +5 -5
- package/dist/{MenuItem-Kvciwc9F.mjs → MenuItem-DfS3Q2Ha.mjs} +6 -6
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.d.cts +73 -2
- package/dist/MenuItem.d.mts +1 -1
- package/dist/MenuItem.mjs +1 -1
- package/dist/{MenuList-BUTy11DW.mjs → MenuList-CoLoldE2.mjs} +2 -2
- package/dist/{MenuList-CpPmRGzw.cjs → MenuList-Cr9L4x9N.cjs} +1 -1
- package/dist/{MenuListContext-BN1VV12-.d.mts → MenuListContext-BIcjLUEc.d.cts} +2 -2
- package/dist/{MenuListContext-BkQzp2DA.d.cts → MenuListContext-D976fSth.d.mts} +2 -2
- package/dist/{Modal-gQcAJAKH.cjs → Modal-6SWc5gG5.cjs} +1 -1
- package/dist/{Modal-DR4TRQSH.mjs → Modal-EH6RduGc.mjs} +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +91 -2
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +4 -4
- package/dist/NativeSelect.d.cts +10 -11
- package/dist/NativeSelect.d.mts +10 -11
- package/dist/NativeSelect.mjs +5 -5
- package/dist/NavTree/NavGroup.cjs +1 -1
- package/dist/NavTree/NavGroup.d.cts +2 -3
- package/dist/NavTree/NavGroup.d.mts +2 -3
- package/dist/NavTree/NavGroup.mjs +1 -1
- package/dist/NavTree/NavLink.cjs +2 -2
- package/dist/NavTree/NavLink.d.cts +3 -4
- package/dist/NavTree/NavLink.d.mts +3 -4
- package/dist/NavTree/NavLink.mjs +2 -2
- package/dist/NavTree/NavTree.cjs +1 -1
- package/dist/NavTree/NavTree.d.cts +3 -4
- package/dist/NavTree/NavTree.d.mts +3 -4
- package/dist/NavTree/NavTree.mjs +1 -1
- package/dist/NavTree.d.cts +1 -1
- package/dist/NavTree.d.mts +1 -1
- package/dist/NumberInput.cjs +6 -6
- package/dist/NumberInput.d.cts +5 -6
- package/dist/NumberInput.d.mts +5 -6
- package/dist/NumberInput.mjs +7 -7
- 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.cjs +1 -1
- package/dist/Pagination.d.cts +22 -3
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +1 -1
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.d.cts +1 -2
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +3 -3
- package/dist/{Popover-BniabG7D.cjs → Popover-CPB9wIFY.cjs} +3 -3
- package/dist/{Popover-Dnmeo0Av.mjs → Popover-JCnuplk4.mjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +7 -7
- package/dist/Popover.d.mts +7 -7
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.d.cts +15 -2
- package/dist/Pressable.cjs +3 -3
- package/dist/Pressable.d.cts +46 -2
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +3 -3
- package/dist/Quote.cjs +1 -1
- package/dist/Quote.d.cts +5 -6
- package/dist/Quote.d.mts +5 -6
- package/dist/Quote.mjs +1 -1
- package/dist/Radio.cjs +2 -2
- package/dist/Radio.d.cts +5 -6
- package/dist/Radio.d.mts +5 -6
- package/dist/Radio.mjs +2 -2
- package/dist/RangeInput.cjs +3 -3
- package/dist/RangeInput.d.cts +7 -7
- package/dist/RangeInput.d.mts +7 -7
- package/dist/RangeInput.mjs +4 -4
- package/dist/Rating.cjs +5 -5
- package/dist/Rating.d.cts +3 -4
- package/dist/Rating.d.mts +3 -4
- package/dist/Rating.mjs +6 -6
- package/dist/ScrollArea.cjs +1 -1
- package/dist/ScrollArea.d.cts +5 -5
- package/dist/ScrollArea.d.mts +5 -5
- package/dist/ScrollArea.mjs +2 -2
- package/dist/Select.cjs +6 -6
- package/dist/Select.d.cts +10 -10
- package/dist/Select.d.mts +10 -10
- package/dist/Select.mjs +6 -6
- package/dist/Sidebar/Sidebar.cjs +1 -1
- package/dist/Sidebar/Sidebar.d.cts +3 -4
- package/dist/Sidebar/Sidebar.d.mts +3 -4
- package/dist/Sidebar/Sidebar.mjs +1 -1
- package/dist/Sidebar/SidebarItem.cjs +4 -4
- package/dist/Sidebar/SidebarItem.d.cts +6 -7
- package/dist/Sidebar/SidebarItem.d.mts +6 -7
- package/dist/Sidebar/SidebarItem.mjs +4 -4
- package/dist/Sidebar.d.cts +1 -1
- package/dist/Sidebar.d.mts +1 -1
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +6 -7
- package/dist/Skeleton.d.mts +6 -7
- package/dist/Skeleton.mjs +1 -1
- package/dist/Slide.cjs +1 -1
- package/dist/Slide.d.cts +4 -5
- package/dist/Slide.d.mts +4 -5
- package/dist/Slide.mjs +1 -1
- package/dist/Snackbar.cjs +3 -3
- package/dist/Snackbar.d.cts +8 -9
- package/dist/Snackbar.d.mts +7 -8
- package/dist/Snackbar.mjs +4 -4
- package/dist/Switch.cjs +3 -3
- package/dist/Switch.d.cts +7 -8
- package/dist/Switch.d.mts +7 -8
- package/dist/Switch.mjs +3 -3
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.d.cts +8 -9
- package/dist/Table/Table.d.mts +8 -9
- package/dist/Table/Table.mjs +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +6 -7
- package/dist/Table/TableBody.d.mts +6 -7
- package/dist/Table/TableBody.mjs +1 -1
- package/dist/Table/TableCell.cjs +2 -2
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +2 -2
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableContainer.d.cts +4 -5
- package/dist/Table/TableContainer.d.mts +4 -5
- package/dist/Table/TableContainer.mjs +1 -1
- package/dist/Table/TableControl.d.cts +3 -4
- package/dist/Table/TableControl.d.mts +3 -4
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +6 -7
- package/dist/Table/TableFooter.d.mts +6 -7
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +6 -7
- package/dist/Table/TableHead.d.mts +6 -7
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +2 -2
- package/dist/Table/TablePagination.d.cts +5 -6
- package/dist/Table/TablePagination.d.mts +5 -6
- package/dist/Table/TablePagination.mjs +2 -2
- package/dist/Table/TablePaginationActions.cjs +2 -2
- package/dist/Table/TablePaginationActions.d.cts +28 -2
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +3 -3
- package/dist/Table/TableRow.cjs +2 -2
- package/dist/Table/TableRow.d.cts +6 -7
- package/dist/Table/TableRow.d.mts +6 -7
- package/dist/Table/TableRow.mjs +2 -2
- package/dist/Table/TableSortLabel.cjs +2 -2
- package/dist/Table/TableSortLabel.d.cts +22 -2
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +2 -2
- package/dist/Table/hooks.d.cts +6 -6
- package/dist/Table/hooks.d.mts +6 -6
- package/dist/Table.d.cts +6 -6
- package/dist/Table.d.mts +6 -6
- package/dist/{TableContext-BNwokJ3f.d.cts → TableContext-BsJpQ-9A.d.cts} +1 -1
- package/dist/{TableContext-jOlk5jxs.d.mts → TableContext-rP21CNyq.d.mts} +1 -1
- package/dist/Tabs/Tab.cjs +4 -4
- package/dist/Tabs/Tab.d.cts +5 -6
- package/dist/Tabs/Tab.d.mts +5 -6
- package/dist/Tabs/Tab.mjs +5 -5
- package/dist/Tabs/TabContext.d.cts +3 -4
- package/dist/Tabs/TabContext.d.mts +3 -4
- package/dist/Tabs/TabList.cjs +1 -1
- package/dist/Tabs/TabList.d.cts +3 -4
- package/dist/Tabs/TabList.d.mts +3 -4
- package/dist/Tabs/TabList.mjs +1 -1
- package/dist/Tabs/TabPanel.cjs +2 -2
- package/dist/Tabs/TabPanel.d.cts +4 -5
- package/dist/Tabs/TabPanel.d.mts +4 -5
- package/dist/Tabs/TabPanel.mjs +3 -3
- package/dist/Tabs/TabScrollButton.cjs +3 -3
- package/dist/Tabs/TabScrollButton.d.cts +31 -2
- package/dist/Tabs/TabScrollButton.d.mts +1 -1
- package/dist/Tabs/TabScrollButton.mjs +4 -4
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.d.cts +104 -3
- package/dist/Tabs/Tabs.d.mts +2 -2
- package/dist/Tabs/Tabs.mjs +1 -1
- package/dist/{Tabs-t2KrGCQo.mjs → Tabs-DPCVKt9p.mjs} +9 -9
- package/dist/{Tabs-BqYnn6OV.cjs → Tabs-DipA7I2c.cjs} +8 -8
- 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-D5E7s9i5.d.mts → TabsContext-DkPIvEhN.d.cts} +1 -1
- package/dist/{TabsContext-i57cha5W.d.cts → TabsContext-cm-4w5HV.d.mts} +1 -1
- package/dist/TextInput.cjs +4 -4
- package/dist/TextInput.d.cts +8 -9
- package/dist/TextInput.d.mts +8 -9
- package/dist/TextInput.mjs +5 -5
- package/dist/ToggleButton/ToggleButton.cjs +5 -5
- package/dist/ToggleButton/ToggleButton.d.cts +3 -4
- package/dist/ToggleButton/ToggleButton.d.mts +3 -4
- package/dist/ToggleButton/ToggleButton.mjs +6 -6
- package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +3 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +3 -4
- package/dist/ToggleButton/ToggleButtonGroup.mjs +4 -4
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/{Tooltip-rkGm1HnP.cjs → Tooltip-Bzt4mirM.cjs} +3 -3
- package/dist/{Tooltip-Cx4ez9vY.mjs → Tooltip-CqGB8Pgm.mjs} +4 -4
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.d.cts +9 -9
- package/dist/Tooltip.d.mts +9 -9
- package/dist/Tooltip.mjs +1 -1
- package/dist/TransferList.cjs +5 -5
- package/dist/TransferList.d.cts +4 -4
- package/dist/TransferList.d.mts +4 -4
- package/dist/TransferList.mjs +6 -6
- package/dist/Typography.cjs +1 -1
- package/dist/Typography.d.cts +25 -3
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -2
- package/dist/View.cjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/Zoom.cjs +1 -1
- package/dist/Zoom.d.cts +3 -4
- package/dist/Zoom.d.mts +3 -4
- package/dist/Zoom.mjs +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.d.cts +3 -3
- package/dist/catalog.d.mts +3 -3
- package/dist/catalog.mjs +1 -1
- package/dist/{dividerLine-DFuLn1zU.cjs → dividerLine-BL7qyMS7.cjs} +1 -1
- package/dist/{dividerLine-BC8E38Ed.mjs → dividerLine-CjHOunP8.mjs} +1 -1
- package/dist/emotion-b3mnJPXZ.mjs +5 -0
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +5 -5
- package/dist/engine.d.mts +4 -4
- package/dist/engine.mjs +1 -1
- package/dist/{index-C_K0hsEr.d.mts → index-2yg1ycx-.d.mts} +1 -1
- package/dist/{index-DXUVsHux.d.mts → index-B4rMxnAI.d.mts} +1 -1
- package/dist/{index-CZofj6vc.d.cts → index-BX05FTzq.d.mts} +3 -3
- package/dist/index-BzWmnUjW.d.mts +1 -0
- package/dist/{index-DPCh-ols.d.mts → index-CCA5pNXc.d.mts} +2 -2
- package/dist/{index-vls8Jhdl.d.cts → index-CF6cynkC.d.mts} +1 -1
- package/dist/{index-BJIqJbF4.d.mts → index-CR-3ET8R.d.mts} +2 -2
- package/dist/{index-C9jnQ-mQ.d.mts → index-CRopLcd3.d.mts} +1 -1
- package/dist/{index-F81TdZtB.d.mts → index-C_6hDoX5.d.mts} +5 -5
- package/dist/{index-C6uLwNRF.d.cts → index-CgZujUBc.d.mts} +5 -5
- package/dist/{index-CLTH0nFB.d.cts → index-CjIlieUz.d.cts} +2 -2
- package/dist/{index-CwWM6Xfz.d.cts → index-Ck1kZGKo.d.cts} +1 -1
- package/dist/{index-xhbtDtsc.d.mts → index-DA-h_wfm.d.mts} +1 -1
- package/dist/{index-CPmemva9.d.mts → index-DW6ItSg9.d.mts} +5 -5
- package/dist/{index-CRbfhyQ6.d.mts → index-DWPBIj3Q.d.mts} +2 -2
- package/dist/{index-CGlDeiGk.d.cts → index-DXpsn7vq.d.mts} +2 -2
- package/dist/{index-Cf2D7Y1b.d.cts → index-DuW9P_vU.d.mts} +2 -2
- package/dist/{index-BDVi1DNs.d.mts → index-Dv-JacXL.d.mts} +2 -2
- package/dist/{index-CK-uaK5U.d.cts → index-MipJMh6w.d.cts} +7 -7
- package/dist/{index-DA3M2w5w.d.cts → index-UdCNBn1j.d.cts} +6 -5
- package/dist/{index-ClTo3BEJ.d.mts → index-WepMprJw.d.cts} +3 -3
- package/dist/{index-DOimZ1Wo.d.mts → index-fbOIRIGi.d.mts} +2 -2
- package/dist/{index-BhWBXIkH.d.cts → index-fiGzE2_0.d.mts} +3 -3
- package/dist/{index-d5jm3kxO.d.cts → index-goQ0P1tj.d.mts} +2 -2
- package/dist/{index-BwFPSXSw.d.mts → index-m7brCUK5.d.mts} +1 -1
- package/dist/{index-B-1sp9oV.d.mts → index-nw0pvCoK.d.mts} +9 -9
- package/dist/{index-DOnYRzqY.d.cts → index-uxQ6yoYo.d.mts} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{inputVariantStyles-DCGRUY9c.mjs → inputVariantStyles-GEyyFeaq.mjs} +1 -1
- package/dist/{inputVariantStyles-DhClkDHY.cjs → inputVariantStyles-GsJaknFt.cjs} +1 -1
- package/dist/{rolldown-runtime-CiKaZLfC.cjs → rolldown-runtime-C_Pgydhf.cjs} +4 -4
- package/dist/{src-yC1f5WR2.cjs → src-B1PmaZ-2.cjs} +2 -2
- package/dist/{src-B-rNjHIL.mjs → src-BSo7bM2g.mjs} +8 -8
- package/dist/style.d.cts +8 -8
- package/dist/style.d.mts +8 -8
- package/dist/style.mjs +2 -2
- package/dist/{surfaceSystem-DI6bqK5F.cjs → surfaceSystem-BeGFjViA.cjs} +1 -1
- package/dist/{surfaceSystem-4XDqbvf4.mjs → surfaceSystem-Bsd7LqgB.mjs} +1 -1
- package/dist/testing.d.cts +1 -2
- package/dist/testing.d.mts +1 -2
- package/dist/{theme-DyyZQFzQ.mjs → theme-B6LFWZ98.mjs} +2 -2
- package/dist/theme.d.cts +59 -3
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +2 -2
- package/dist/{themes-D-knykK0.mjs → themes-D3yxQwT9.mjs} +10 -10
- package/dist/{useTablePagination-DOLl6Ba7.d.cts → useTablePagination-Be__hayI.d.mts} +1 -1
- package/dist/{useTablePagination-bZTeweJ_.d.mts → useTableSort-DQWSd9Rf.d.cts} +23 -23
- package/dist/{useTransition-DnOAXNav.d.cts → useTransition-CdObuV2M.d.cts} +1 -1
- package/dist/{useTransition-Dk84FQFT.d.mts → useTransition-DwlKWjUJ.d.mts} +1 -1
- package/dist/{useTransitionChild-CFhlMm65.mjs → useTransitionChild-De79LIB9.mjs} +2 -2
- package/dist/utils.d.cts +4 -5
- package/dist/utils.d.mts +4 -5
- package/package.json +15 -15
- package/dist/emotion-E3pBNlXd.mjs +0 -5
- package/dist/index-3-LXZL7g.d.mts +0 -39
- package/dist/index-BMeqk34D.d.mts +0 -47
- package/dist/index-BYg-l1_n.d.cts +0 -23
- package/dist/index-BbWQZ2Wj.d.mts +0 -104
- package/dist/index-Bwry7fNj.d.mts +0 -22
- package/dist/index-C3D70-3U.d.mts +0 -74
- package/dist/index-COGZ6LV4.d.mts +0 -91
- package/dist/index-C_n4ZPpQ.d.mts +0 -1
- package/dist/index-Cc7Yhn7-.d.cts +0 -47
- package/dist/index-CoHM1HQY.d.cts +0 -30
- package/dist/index-Cp96BUYc.d.cts +0 -25
- package/dist/index-CvV0TCBK.d.cts +0 -59
- package/dist/index-CykbbqeN.d.cts +0 -33
- package/dist/index-Dh_9qMhj.d.mts +0 -34
- package/dist/index-DiQHPHUv.d.cts +0 -44
- package/dist/index-UloRwym_.d.cts +0 -16
- package/dist/index-YxsjfTkO.d.cts +0 -29
- package/dist/index-fwRQcB91.d.cts +0 -1
- package/dist/index-qgFJF8n2.d.cts +0 -32
- package/dist/{useTransitionChild-COlRozbU.cjs → useTransitionChild-B2W_GM3m.cjs} +1 -1
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
3
|
-
interface TableSortEntry {
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
direction: TableSortLabelDirection;
|
|
6
|
-
/** Activates the column and flips its stored direction. */
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
}
|
|
9
|
-
type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
|
|
10
|
-
/**
|
|
11
|
-
* Column-keyed sort state for sortable tables. Each column remembers its own
|
|
12
|
-
* direction (initially `'asc'`); clicking a column activates it AND flips its
|
|
13
|
-
* stored direction - so the first click on a column sorts `'desc'`.
|
|
14
|
-
* `keys` is read once on mount.
|
|
15
|
-
*
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const sort = useTableSort(['name', 'latency'])
|
|
18
|
-
* <TableSortLabel {...sort.name}>Service</TableSortLabel>
|
|
19
|
-
* <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
|
|
1
|
+
import { TableSortLabelDirection } from "./Table/TableSortLabel.cjs";
|
|
23
2
|
interface UseTablePaginationOptions {
|
|
24
3
|
/** Initial zero-based page. Default: `0`. */
|
|
25
4
|
defaultPage?: number;
|
|
@@ -44,4 +23,25 @@ interface TablePaginationState {
|
|
|
44
23
|
* ```
|
|
45
24
|
*/
|
|
46
25
|
declare function useTablePagination({ defaultPage, defaultRowsPerPage }?: UseTablePaginationOptions): TablePaginationState;
|
|
47
|
-
|
|
26
|
+
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
27
|
+
interface TableSortEntry {
|
|
28
|
+
isActive: boolean;
|
|
29
|
+
direction: TableSortLabelDirection;
|
|
30
|
+
/** Activates the column and flips its stored direction. */
|
|
31
|
+
onClick: () => void;
|
|
32
|
+
}
|
|
33
|
+
type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
|
|
34
|
+
/**
|
|
35
|
+
* Column-keyed sort state for sortable tables. Each column remembers its own
|
|
36
|
+
* direction (initially `'asc'`); clicking a column activates it AND flips its
|
|
37
|
+
* stored direction - so the first click on a column sorts `'desc'`.
|
|
38
|
+
* `keys` is read once on mount.
|
|
39
|
+
*
|
|
40
|
+
* ```tsx
|
|
41
|
+
* const sort = useTableSort(['name', 'latency'])
|
|
42
|
+
* <TableSortLabel {...sort.name}>Service</TableSortLabel>
|
|
43
|
+
* <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
|
|
47
|
+
export { UseTablePaginationOptions as a, TablePaginationState as i, TableSortMap as n, useTablePagination as o, useTableSort as r, TableSortEntry as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-MipJMh6w.cjs";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
/** How long a transition takes in milliseconds - one for both ways, or one for each. */
|
|
4
4
|
type TransitionTimeout = number | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-nw0pvCoK.mjs";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
/** How long a transition takes in milliseconds - one for both ways, or one for each. */
|
|
4
4
|
type TransitionTimeout = number | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as useTheme } from "./theme-DyyZQFzQ.mjs";
|
|
2
|
-
import { t as useTransition } from "./useTransition-CWxiEqtC.mjs";
|
|
3
1
|
import { t as useMergedRefs } from "./useMergedRefs-CdfwtmUd.mjs";
|
|
2
|
+
import { r as useTheme } from "./theme-B6LFWZ98.mjs";
|
|
3
|
+
import { t as useTransition } from "./useTransition-CWxiEqtC.mjs";
|
|
4
4
|
import { cloneElement, useRef } from "react";
|
|
5
5
|
// src/utils/useTransitionChild.ts
|
|
6
6
|
const chain = (own, given) => (node) => {
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const generateBoxShadow: (elevation: number, shadowColor: string) => string;
|
|
1
|
+
export declare const generateBoxShadow: (elevation: number, shadowColor: string) => string;
|
|
2
2
|
/** Clamps `value` to the inclusive range `[min, max]`. */
|
|
3
|
-
declare function clamp(value: number, min: number, max: number): number;
|
|
4
|
-
declare function luminance(hex: string): number;
|
|
3
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
4
|
+
export declare function luminance(hex: string): number;
|
|
5
5
|
/**
|
|
6
6
|
* Appends an alpha channel to a 6-digit hex color, producing an 8-digit `#RRGGBBAA` hex.
|
|
7
7
|
* @param color - 6-digit hex string, e.g. `'#4ade80'`
|
|
@@ -9,5 +9,4 @@ declare function luminance(hex: string): number;
|
|
|
9
9
|
* @returns 8-digit hex string, e.g. `'#4ade801A'`
|
|
10
10
|
* @example alpha('#4ade80', 0.1) // '#4ade801A'
|
|
11
11
|
*/
|
|
12
|
-
declare const alpha: (color: string, opacity: number) => string;
|
|
13
|
-
export { alpha, clamp, generateBoxShadow, luminance };
|
|
12
|
+
export declare const alpha: (color: string, opacity: number) => string;
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const generateBoxShadow: (elevation: number, shadowColor: string) => string;
|
|
1
|
+
export declare const generateBoxShadow: (elevation: number, shadowColor: string) => string;
|
|
2
2
|
/** Clamps `value` to the inclusive range `[min, max]`. */
|
|
3
|
-
declare function clamp(value: number, min: number, max: number): number;
|
|
4
|
-
declare function luminance(hex: string): number;
|
|
3
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
4
|
+
export declare function luminance(hex: string): number;
|
|
5
5
|
/**
|
|
6
6
|
* Appends an alpha channel to a 6-digit hex color, producing an 8-digit `#RRGGBBAA` hex.
|
|
7
7
|
* @param color - 6-digit hex string, e.g. `'#4ade80'`
|
|
@@ -9,5 +9,4 @@ declare function luminance(hex: string): number;
|
|
|
9
9
|
* @returns 8-digit hex string, e.g. `'#4ade801A'`
|
|
10
10
|
* @example alpha('#4ade80', 0.1) // '#4ade801A'
|
|
11
11
|
*/
|
|
12
|
-
declare const alpha: (color: string, opacity: number) => string;
|
|
13
|
-
export { alpha, clamp, generateBoxShadow, luminance };
|
|
12
|
+
export declare const alpha: (color: string, opacity: number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/design-system",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Emotion + @soroush.tech/styled-system React component library - token-driven light/dark themes, layout primitives, forms, and overlays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
"@emotion/cache": "^11.14.0",
|
|
728
728
|
"@emotion/react": "^11.14.0",
|
|
729
729
|
"@emotion/styled": "^11.14.1",
|
|
730
|
-
"@soroush.tech/styled-system": "^6.0.
|
|
730
|
+
"@soroush.tech/styled-system": "^6.0.1"
|
|
731
731
|
},
|
|
732
732
|
"peerDependencies": {
|
|
733
733
|
"react": "^19.0.0",
|
|
@@ -735,26 +735,26 @@
|
|
|
735
735
|
},
|
|
736
736
|
"devDependencies": {
|
|
737
737
|
"@emotion/css": "^11.13.5",
|
|
738
|
-
"@storybook/addon-a11y": "^10.6.
|
|
739
|
-
"@storybook/addon-docs": "^10.6.
|
|
740
|
-
"@storybook/addon-vitest": "^10.6.
|
|
741
|
-
"@storybook/react-vite": "^10.6.
|
|
738
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
739
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
740
|
+
"@storybook/addon-vitest": "^10.6.7",
|
|
741
|
+
"@storybook/react-vite": "^10.6.7",
|
|
742
742
|
"@testing-library/jest-dom": "^7.0.1",
|
|
743
743
|
"@testing-library/react": "^16.3.3",
|
|
744
|
-
"@types/node": "^26.6.
|
|
744
|
+
"@types/node": "^26.6.6",
|
|
745
745
|
"@types/react": "^19.3.0",
|
|
746
746
|
"@types/react-dom": "^19.3.0",
|
|
747
|
-
"@vitest/browser-playwright": "^5.0
|
|
748
|
-
"@vitest/coverage-v8": "^5.0
|
|
749
|
-
"jsdom": "^
|
|
750
|
-
"oxlint": "^1.
|
|
751
|
-
"playwright": "^1.
|
|
747
|
+
"@vitest/browser-playwright": "^5.1.0",
|
|
748
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
749
|
+
"jsdom": "^31.0.0",
|
|
750
|
+
"oxlint": "^1.93.0",
|
|
751
|
+
"playwright": "^1.65.0",
|
|
752
752
|
"react": "^19.3.1",
|
|
753
753
|
"react-dom": "^19.3.1",
|
|
754
|
-
"storybook": "^10.6.
|
|
755
|
-
"tsdown": "^0.
|
|
754
|
+
"storybook": "^10.6.7",
|
|
755
|
+
"tsdown": "^0.23.7",
|
|
756
756
|
"typescript": "~7.0.2",
|
|
757
|
-
"vitest": "^5.0
|
|
757
|
+
"vitest": "^5.1.0",
|
|
758
758
|
"zod": "^4.6.7",
|
|
759
759
|
"@soroush.tech/docs-content": "0.1.0",
|
|
760
760
|
"@soroush.tech/eslint-config": "0.0.0"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CacheProvider, Global, ThemeContext as EmotionThemeContext, ThemeProvider as EmotionThemeProvider, useTheme as useEmotionTheme } from "@emotion/react";
|
|
2
|
-
// src/theme/emotion.ts
|
|
3
|
-
/** `Global`, retyped against this package's own `Theme` (see `styled.ts`'s `StyledTags`). */
|
|
4
|
-
const Global$1 = Global;
|
|
5
|
-
export { useEmotionTheme as a, Global$1 as i, EmotionThemeContext as n, EmotionThemeProvider as r, CacheProvider as t };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-BMeqk34D.mjs";
|
|
3
|
-
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
|
-
import { ElementType, HTMLAttributes } from "react";
|
|
5
|
-
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
6
|
-
type ButtonGroupRadius = keyof Theme['radii'];
|
|
7
|
-
interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, SpaceProps<Theme> {
|
|
8
|
-
/** Visual style for all child buttons. Default: `'outlined'`. */
|
|
9
|
-
variant?: ButtonVariant;
|
|
10
|
-
/** Color palette for all child buttons - resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
11
|
-
color?: ButtonColor;
|
|
12
|
-
/** Density for all child buttons - resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
13
|
-
size?: ButtonSize;
|
|
14
|
-
/** Layout flow direction. Default: `'horizontal'`. */
|
|
15
|
-
orientation?: ButtonGroupOrientation;
|
|
16
|
-
/** Group corner radius - rounds the group's outer corners only. Resolves against `theme.radii`. Default: 'md', overridable via `theme.defaults.borderRadius`. */
|
|
17
|
-
borderRadius?: ButtonGroupRadius;
|
|
18
|
-
/** Disables all child buttons. Default: `false`. */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** Group fills its container; children share the width. Default: `false`. */
|
|
21
|
-
fullWidth?: boolean;
|
|
22
|
-
as?: ElementType;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Groups related `Button` immediate children into a visually joined cluster and
|
|
26
|
-
* broadcasts `variant` / `color` / `size` / `disabled` / `fullWidth` to them via
|
|
27
|
-
* `ButtonGroupContext` (explicit props on a child win).
|
|
28
|
-
*/
|
|
29
|
-
declare function ButtonGroup({ variant, color, size, orientation, borderRadius, disabled, fullWidth, as, children, ...rest }: Readonly<ButtonGroupProps>): import("react").JSX.Element;
|
|
30
|
-
/** Group-wide defaults provided by `ButtonGroup` and consumed by `Button` (explicit props win). */
|
|
31
|
-
interface ButtonGroupContextValue {
|
|
32
|
-
variant?: ButtonVariant;
|
|
33
|
-
color?: ButtonColor;
|
|
34
|
-
size?: ButtonSize;
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
fullWidth?: boolean;
|
|
37
|
-
}
|
|
38
|
-
declare const ButtonGroupContext: import("react").Context<ButtonGroupContextValue>;
|
|
39
|
-
export { ButtonGroupProps as a, ButtonGroupOrientation as i, ButtonGroupContextValue as n, ButtonGroupRadius as o, ButtonGroup as r, ButtonGroupContext as t };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { U as PaletteColor, _ as ButtonVariants, nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
3
|
-
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
|
-
/** Augmentable via the `ButtonVariants` interface - style new values through `theme.components.Button.variants`. */
|
|
5
|
-
type ButtonVariant = keyof ButtonVariants;
|
|
6
|
-
type ButtonColor = PaletteColor;
|
|
7
|
-
type ButtonSize = keyof Theme['sizes'];
|
|
8
|
-
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
9
|
-
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
10
|
-
/** Valid values for the gap prop - resolves against theme.space. */
|
|
11
|
-
type GapToken = keyof Theme['space'];
|
|
12
|
-
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme>, LayoutProps<Theme>, BorderProps<Theme>, TypographyProps<Theme> {
|
|
13
|
-
/** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
14
|
-
variant?: ButtonVariant;
|
|
15
|
-
/** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
16
|
-
color?: ButtonColor;
|
|
17
|
-
/** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
18
|
-
size?: ButtonSize;
|
|
19
|
-
/** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
|
|
20
|
-
gap?: GapToken;
|
|
21
|
-
/** Icon rendered before the label. */
|
|
22
|
-
startIcon?: ReactNode;
|
|
23
|
-
/** Icon rendered after the label. */
|
|
24
|
-
endIcon?: ReactNode;
|
|
25
|
-
/** Stretch button to full container width. */
|
|
26
|
-
fullWidth?: boolean;
|
|
27
|
-
/** Shows loading indicator and disables the button. */
|
|
28
|
-
loading?: boolean;
|
|
29
|
-
/** Custom loading element. Default: animated spinner. */
|
|
30
|
-
loadingIndicator?: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Corner shape - sets the default `borderRadius`.
|
|
33
|
-
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
34
|
-
* The `borderRadius` prop always overrides this.
|
|
35
|
-
*/
|
|
36
|
-
shape?: ButtonShape;
|
|
37
|
-
/** Where the loading indicator appears. Default: `"center"`. */
|
|
38
|
-
loadingPosition?: ButtonLoadingPosition;
|
|
39
|
-
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
40
|
-
href?: string;
|
|
41
|
-
/** Anchor `target` - only meaningful when `href` is set. */
|
|
42
|
-
target?: string;
|
|
43
|
-
/** Anchor `rel` - only meaningful when `href` is set. */
|
|
44
|
-
rel?: string;
|
|
45
|
-
}
|
|
46
|
-
declare function Button({ variant, color, size, shape, gap, fontWeight, letterSpacing, startIcon, endIcon, fullWidth, loading, loadingIndicator, loadingPosition, children, disabled, href, target, rel, ...rest }: Readonly<ButtonProps>): import("react").JSX.Element;
|
|
47
|
-
export { ButtonShape as a, GapToken as c, ButtonProps as i, ButtonColor as n, ButtonSize as o, ButtonLoadingPosition as r, ButtonVariant as s, Button as t };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-CK-uaK5U.cjs";
|
|
2
|
-
import { n as IconProps, r as IconName } from "./index-CLTH0nFB.cjs";
|
|
3
|
-
import { ButtonHTMLAttributes } from "react";
|
|
4
|
-
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
|
-
type TableSortLabelDirection = 'asc' | 'desc';
|
|
6
|
-
interface TableSortLabelProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, SpaceProps<Theme> {
|
|
7
|
-
/** Marks the currently-sorted column - shows the icon fully opaque. Default: `false`. */
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
/** Current sort direction - rotates the arrow. Default: `'asc'`. */
|
|
10
|
-
direction?: TableSortLabelDirection;
|
|
11
|
-
/**
|
|
12
|
-
* Hides the inactive sort icon, revealing it on hover/focus. Set `false` to
|
|
13
|
-
* keep it always visible (dimmed while inactive). Inherited from the
|
|
14
|
-
* enclosing `Table`'s `shouldHideSortIcon` via `TableContext`. Default: `true`.
|
|
15
|
-
*/
|
|
16
|
-
shouldHideSortIcon?: boolean;
|
|
17
|
-
/** Sort arrow icon. Default: `'arrow_upward'`. */
|
|
18
|
-
iconName?: IconName;
|
|
19
|
-
/** Extra props for the sort arrow icon. */
|
|
20
|
-
iconProps?: Omit<IconProps, 'name'>;
|
|
21
|
-
}
|
|
22
|
-
declare function TableSortLabel({ isActive, direction, shouldHideSortIcon, iconName, iconProps, type, children, ...rest }: Readonly<TableSortLabelProps>): import("react").JSX.Element;
|
|
23
|
-
export { TableSortLabelDirection as n, TableSortLabelProps as r, TableSortLabel as t };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { nt as Theme, tt as TabsVariants } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import "./index-C_K0hsEr.mjs";
|
|
3
|
-
import { t as TabValue } from "./TabsContext-D5E7s9i5.mjs";
|
|
4
|
-
import { n as TabScrollButtonProps } from "./index-DXUVsHux.mjs";
|
|
5
|
-
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
|
-
import { ComponentType, ReactNode, Ref } from "react";
|
|
7
|
-
type TabsVariant = keyof TabsVariants;
|
|
8
|
-
type TabsOrientation = 'horizontal' | 'vertical';
|
|
9
|
-
/** What the row does when its tabs don't fit: scroll, list the rest in a menu, or nothing. */
|
|
10
|
-
type TabsOverflowBehavior = 'scroll' | 'menu' | 'none';
|
|
11
|
-
/** When a scrolling row shows its scroll buttons. */
|
|
12
|
-
type TabsScrollButtons = 'auto' | 'always' | 'never';
|
|
13
|
-
/** What `action` exposes. */
|
|
14
|
-
interface TabsActions {
|
|
15
|
-
/** Re-measures the selected tab for the indicator - after a font loads or a label changes. */
|
|
16
|
-
updateIndicator: () => void;
|
|
17
|
-
/** Re-reads whether the tabs overflow - for the scroll buttons, or which tabs go to the menu. */
|
|
18
|
-
updateOverflow: () => void;
|
|
19
|
-
}
|
|
20
|
-
interface TabsProps extends SpaceProps<Theme> {
|
|
21
|
-
/** `Tab`s. */
|
|
22
|
-
children?: ReactNode;
|
|
23
|
-
/** The selected tab's value - `null` for none. Controlled with `onChange`. */
|
|
24
|
-
value?: TabValue | null;
|
|
25
|
-
/** The selected tab's value at first, when uncontrolled. */
|
|
26
|
-
defaultValue?: TabValue | null;
|
|
27
|
-
/** Fired with a tab's value when it is chosen. */
|
|
28
|
-
onChange?: (value: TabValue) => void;
|
|
29
|
-
/** 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. */
|
|
30
|
-
onTabClose?: (value: TabValue) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Names each closable tab's close button for assistive technology - and the one in the overflow
|
|
33
|
-
* menu - by its `closeLabel`, so it is a button a screen reader finds and presses by name, still
|
|
34
|
-
* out of the tab order. It is a sibling of the tab, not inside it, so a tablist of tabs and their
|
|
35
|
-
* close buttons is read as one. Without it, the button is the pointer's alone and Delete closes
|
|
36
|
-
* the focused tab. Default: `false`.
|
|
37
|
-
*/
|
|
38
|
-
shouldAnnounceClose?: boolean;
|
|
39
|
-
/** `'nav'` makes it a navigation of links or buttons (`aria-current="page"`) rather than a `tablist`. Default: `'div'`. */
|
|
40
|
-
as?: 'div' | 'nav';
|
|
41
|
-
/** Default: `'horizontal'`. */
|
|
42
|
-
orientation?: TabsOrientation;
|
|
43
|
-
/** The look: an indicator under the selected tab, the selected tab boxed, or `'tonal'` - the tabs in a rounded container, the selected one a tinted pill. Default: `'underline'`, overridable via `theme.components.Tabs.defaultProps`. */
|
|
44
|
-
variant?: TabsVariant;
|
|
45
|
-
/** The indicator's or outline's color - resolves to `theme.palette[color]`. Default: `'primary'`. */
|
|
46
|
-
color?: keyof Theme['palette'];
|
|
47
|
-
/** The labels' color - resolves against `theme.text`. Default: `'primary'`. */
|
|
48
|
-
textColor?: keyof Theme['text'];
|
|
49
|
-
/** Density token - resolves against `theme.sizes`. Default: `'md'`. */
|
|
50
|
-
size?: keyof Theme['sizes'];
|
|
51
|
-
/** The tabs share the row's width equally. Default: `false`. */
|
|
52
|
-
fullWidth?: boolean;
|
|
53
|
-
/** The tabs sit in the middle of the row. Default: `false`. */
|
|
54
|
-
isCentered?: boolean;
|
|
55
|
-
/** Moving focus with the arrow keys selects as it goes. Default: `false` - Enter or Space selects. */
|
|
56
|
-
shouldSelectOnFocus?: boolean;
|
|
57
|
-
/** What the row does when its tabs don't fit: `'scroll'` - it scrolls, with scroll buttons; `'menu'` - it shows the tabs that fit whole and lists the rest in a menu. Default: `'none'`. */
|
|
58
|
-
overflowBehavior?: TabsOverflowBehavior;
|
|
59
|
-
/** With `overflowBehavior="menu"`: names the button that opens the menu of the tabs that don't fit ("More tabs"). */
|
|
60
|
-
overflowLabel?: string;
|
|
61
|
-
/** With `overflowBehavior="scroll"`: `'auto'` shows them while the tabs overflow, each only while tabs are out of view its way; `'always'` keeps both, disabled at an end; `'never'` hides them. Default: `'auto'`. */
|
|
62
|
-
scrollButtons?: TabsScrollButtons;
|
|
63
|
-
/** Show the scroll buttons on narrow screens too, where swiping does the job. Default: `false`. */
|
|
64
|
-
shouldShowScrollButtonsOnMobile?: boolean;
|
|
65
|
-
/** Show the list's scrollbar. Default: `false`. */
|
|
66
|
-
hasVisibleScrollbar?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* A line along the row's foot (a column's end side), under its own content too. In the
|
|
69
|
-
* enclosed look it runs round the selected tab. Default: `true`, but `false` in the boxed look.
|
|
70
|
-
*/
|
|
71
|
-
hasDivider?: boolean;
|
|
72
|
-
/** The tab strip's ground - resolves against `theme.background`. */
|
|
73
|
-
bg?: keyof Theme['background'];
|
|
74
|
-
/**
|
|
75
|
-
* The selected tab's ground - resolves against `theme.background`. Give its `TabPanel` the same
|
|
76
|
-
* `bg` and the two read as one. Default: `'paper'` in the boxed look, and in the enclosed look
|
|
77
|
-
* without a divider; none otherwise.
|
|
78
|
-
*/
|
|
79
|
-
selectedBg?: keyof Theme['background'];
|
|
80
|
-
/** Components in place of its own: `scrollButton` - a button that takes `TabScrollButton`'s props. */
|
|
81
|
-
slots?: {
|
|
82
|
-
scrollButton?: ComponentType<TabScrollButtonProps>;
|
|
83
|
-
};
|
|
84
|
-
/** Before the tabs - an icon, a button, any component. The arrow keys don't reach it. */
|
|
85
|
-
startContent?: ReactNode;
|
|
86
|
-
/** After the tabs - a toolbar, a "+" button, any component. The arrow keys don't reach it. */
|
|
87
|
-
endContent?: ReactNode;
|
|
88
|
-
/** Imperative handle - see `TabsActions`. */
|
|
89
|
-
action?: Ref<TabsActions>;
|
|
90
|
-
'aria-label'?: string;
|
|
91
|
-
'aria-labelledby'?: string;
|
|
92
|
-
id?: string;
|
|
93
|
-
className?: string;
|
|
94
|
-
'data-testid'?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @description A row of tabs. By default a `tablist`: one tab in the page's tab order, the
|
|
98
|
-
* arrow keys of its orientation moving between tabs, Enter or Space selecting (or moving
|
|
99
|
-
* focus selecting, with `shouldSelectOnFocus`). With `as="nav"`, the same look as a
|
|
100
|
-
* navigation, its current tab marked `aria-current="page"`. Content of the row's own sits
|
|
101
|
-
* before and after the tabs.
|
|
102
|
-
*/
|
|
103
|
-
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;
|
|
104
|
-
export { TabsProps as a, TabsOverflowBehavior as i, TabsActions as n, TabsScrollButtons as o, TabsOrientation as r, TabsVariant as s, Tabs as t };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-C9jnQ-mQ.mjs";
|
|
3
|
-
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
|
-
import { HTMLAttributes } from "react";
|
|
5
|
-
type PaginationColor = PaginationItemColor;
|
|
6
|
-
type PaginationVariant = PaginationItemVariant;
|
|
7
|
-
type PaginationShape = PaginationItemShape;
|
|
8
|
-
type PaginationSize = PaginationItemSize;
|
|
9
|
-
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'onChange'>, UsePaginationProps, SpaceProps<Theme> {
|
|
10
|
-
/** Selected-item color - resolves against `theme.palette`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
11
|
-
color?: PaginationColor;
|
|
12
|
-
/** Item style - `text` or `outlined`. Default: `'text'`. */
|
|
13
|
-
variant?: PaginationVariant;
|
|
14
|
-
/** Item corner shape. Default: `'circular'`. */
|
|
15
|
-
shape?: PaginationShape;
|
|
16
|
-
/** Item density - resolves against `theme.sizes`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
17
|
-
size?: PaginationSize;
|
|
18
|
-
/** Accessible name per item - important for screen readers. A sensible default is provided. */
|
|
19
|
-
getItemAriaLabel?: (type: PaginationItemType, page: number | null, isSelected: boolean) => string;
|
|
20
|
-
}
|
|
21
|
-
declare function Pagination({ count, page, defaultPage, siblingCount, boundaryCount, disabled, shouldShowFirstButton, shouldShowLastButton, shouldHidePrevButton, shouldHideNextButton, onChange, color, variant, shape, size, getItemAriaLabel, 'aria-label': ariaLabel, ...rest }: Readonly<PaginationProps>): import("react").JSX.Element;
|
|
22
|
-
export { PaginationSize as a, PaginationShape as i, PaginationColor as n, PaginationVariant as o, PaginationProps as r, Pagination as t };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import { t as MenuItemValue } from "./MenuListContext-BN1VV12-.mjs";
|
|
3
|
-
import { ElementType, KeyboardEvent, MouseEvent, ReactNode } from "react";
|
|
4
|
-
type MenuItemColor = keyof Theme['palette'];
|
|
5
|
-
type MenuItemSize = keyof Theme['sizes'];
|
|
6
|
-
type MenuItemTextColor = keyof Theme['text'];
|
|
7
|
-
/** A menu row's role: a command, the current choice of a group, or an on/off setting. */
|
|
8
|
-
type MenuItemRole = 'menuitem' | 'menuitemradio' | 'menuitemcheckbox';
|
|
9
|
-
interface MenuItemProps {
|
|
10
|
-
/** The value this row represents - reported to `Select`'s `onChange`, or `MenuList`'s `onSelect`. Required inside a `Select`. */
|
|
11
|
-
value?: MenuItemValue;
|
|
12
|
-
/** The row label. */
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
/** The element used for the root node - a tag name or a component. Default: `'li'`. */
|
|
15
|
-
as?: ElementType;
|
|
16
|
-
/** Disables the row - it cannot be highlighted or chosen. In a menu the keys skip it. */
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/** Marks the row as the current selection. Injected by `Select`; in a menu it sets `aria-checked` on `menuitemradio` / `menuitemcheckbox` rows. */
|
|
19
|
-
selected?: boolean;
|
|
20
|
-
/** Marks the option as the keyboard-highlighted row. Injected by `Select`. */
|
|
21
|
-
highlighted?: boolean;
|
|
22
|
-
/** Reserves a leading checkmark slot for multi-select menus. Injected by `Select`. */
|
|
23
|
-
multiple?: boolean;
|
|
24
|
-
/** Accent color - resolves to `theme.palette[color]`. Injected by `Select` or `MenuList`; the item's own value wins. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
25
|
-
color?: MenuItemColor;
|
|
26
|
-
/** Base text color of the row - resolves against `theme.text`. When unset, falls back to the accent color's `main`. Injected by `Select` or `MenuList`; the item's own value wins. */
|
|
27
|
-
textColor?: MenuItemTextColor;
|
|
28
|
-
/** Density token - resolves against `theme.sizes`. Injected by `Select` or `MenuList`. Default: 'md', overridable via `theme.defaults.size`. */
|
|
29
|
-
size?: MenuItemSize;
|
|
30
|
-
/** Compact vertical padding, independent of `size`. Default: `false`. */
|
|
31
|
-
dense?: boolean;
|
|
32
|
-
/** Remove the left and right padding. Default: `false`. */
|
|
33
|
-
disableGutters?: boolean;
|
|
34
|
-
/** Add a 1px bottom border to separate the row. Default: `false`. */
|
|
35
|
-
divider?: boolean;
|
|
36
|
-
/** Focus the row on first mount, and whenever `autoFocus` flips from `false` to `true`. Default: `false`. */
|
|
37
|
-
autoFocus?: boolean;
|
|
38
|
-
/** Class applied only while the row has keyboard focus - a `:focus-visible` hook. */
|
|
39
|
-
focusVisibleClassName?: string;
|
|
40
|
-
/** Fired with `value` when the option is chosen. Injected by `Select`. */
|
|
41
|
-
onSelect?: (value: MenuItemValue) => void;
|
|
42
|
-
/** Menu only: the row's role. Default: `'menuitem'`. */
|
|
43
|
-
role?: MenuItemRole;
|
|
44
|
-
/** Menu only: an icon in the leading column. Every row keeps the column, so labels line up; a selected checkable row shows a tick there. */
|
|
45
|
-
startIcon?: ReactNode;
|
|
46
|
-
/** Menu only: the row's keyboard shortcut, shown at its end. A string is also given to the row as `aria-keyshortcuts`. */
|
|
47
|
-
shortcut?: ReactNode;
|
|
48
|
-
/** Menu only: what a screen reader hears of the row's keys - the `aria-keyshortcuts` form, such as `Control+=` - where it differs from what `shortcut` shows (`Ctrl+=`). Without it, a string `shortcut` is announced as it is. */
|
|
49
|
-
'aria-keyshortcuts'?: string;
|
|
50
|
-
/** Menu only: why the row is off - its tooltip and accessible description. */
|
|
51
|
-
note?: string;
|
|
52
|
-
/** Menu only: fired when the row is chosen, by a click, Enter or Space. */
|
|
53
|
-
onClick?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
54
|
-
/** Menu only: the rows of a submenu this row opens. `null` or `[]` is a submenu with nothing in it yet - see `emptyLabel`. */
|
|
55
|
-
submenu?: ReactNode;
|
|
56
|
-
/** Menu only: shown as one disabled row in an empty submenu ("Coming soon"). Without it, the submenu stays empty. */
|
|
57
|
-
emptyLabel?: ReactNode;
|
|
58
|
-
/** Menu only: a control of the row's own beside it - a close button. It sits in the row's `role="none"` entry, out of the arrow keys and hidden from assistive technology (a menu owns rows alone), so it is the pointer's: give it `tabIndex={-1}`, and the row a key of its own through `MenuList`'s `onKeyDown`. */
|
|
59
|
-
secondaryAction?: ReactNode;
|
|
60
|
-
/** Menu only: leaves `secondaryAction` in the accessibility tree - a screen reader finds the control by its own name - rather than hidden from it. A menu owns rows alone, so a control beside a row is an exception a tool may report; name it, and keep it out of the tab order. Default: `false`. */
|
|
61
|
-
shouldAnnounceSecondaryAction?: boolean;
|
|
62
|
-
id?: string;
|
|
63
|
-
className?: string;
|
|
64
|
-
'data-testid'?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @description A row of a list. Inside a `MenuList` it is a menu row - a `menuitem`
|
|
68
|
-
* (or `menuitemradio` / `menuitemcheckbox`) with a leading icon column, its label and a
|
|
69
|
-
* trailing shortcut, chosen by a click, Enter or Space. Anywhere else it is `Select`'s
|
|
70
|
-
* `<li role="option">` (override via `as`), whose selection, highlight and density props
|
|
71
|
-
* `Select` injects; used on its own it renders a static, styled row.
|
|
72
|
-
*/
|
|
73
|
-
declare function MenuItem({ value, children, as, disabled, selected, highlighted, multiple, color: colorProp, textColor: textColorProp, size: sizeProp, dense: denseProp, disableGutters, divider, autoFocus, focusVisibleClassName, onSelect, role, startIcon, shortcut, 'aria-keyshortcuts': keyShortcuts, note, onClick, submenu, emptyLabel, secondaryAction, shouldAnnounceSecondaryAction, id, className, 'data-testid': dataTestid }: Readonly<MenuItemProps>): import("react").JSX.Element;
|
|
74
|
-
export { MenuItemSize as a, MenuItemRole as i, MenuItemColor as n, MenuItemTextColor as o, MenuItemProps as r, MenuItem as t };
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-B-1sp9oV.mjs";
|
|
2
|
-
import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
|
|
3
|
-
type ModalCloseReason = 'escapeKey' | 'backdropClick';
|
|
4
|
-
type EventHandlers = Record<string, ((event: SyntheticEvent) => void) | undefined>;
|
|
5
|
-
interface UseModalParameters {
|
|
6
|
-
/** Whether the modal is shown. */
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
/** Fired on Escape (top modal only) or backdrop click. */
|
|
9
|
-
onClose?: (event: KeyboardEvent | MouseEvent, reason: ModalCloseReason) => void;
|
|
10
|
-
/** Portal container, or a function returning one. Defaults to the document body. */
|
|
11
|
-
container?: HTMLElement | (() => HTMLElement | null) | null;
|
|
12
|
-
/** Disable body scroll-lock while open. */
|
|
13
|
-
disableScrollLock?: boolean;
|
|
14
|
-
/** Skip `aria-hidden` on background siblings (for non-modal popovers). */
|
|
15
|
-
disableAriaHidden?: boolean;
|
|
16
|
-
/** Forwarded ref for the modal root element. */
|
|
17
|
-
rootRef?: Ref<Element>;
|
|
18
|
-
}
|
|
19
|
-
interface UseModalReturnValue {
|
|
20
|
-
getRootProps: (otherHandlers?: EventHandlers) => Record<string, unknown>;
|
|
21
|
-
getBackdropProps: (otherHandlers?: EventHandlers) => Record<string, unknown>;
|
|
22
|
-
rootRef: RefCallback<Element> | null;
|
|
23
|
-
portalRef: (node: HTMLElement | null) => void;
|
|
24
|
-
isTopModal: () => boolean;
|
|
25
|
-
}
|
|
26
|
-
declare function useModal(parameters: UseModalParameters): UseModalReturnValue;
|
|
27
|
-
type ModalScroll = 'paper' | 'body';
|
|
28
|
-
interface ModalProps {
|
|
29
|
-
/** If true, the modal is shown. */
|
|
30
|
-
isOpen: boolean;
|
|
31
|
-
/** A single content element. */
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
/** Fired on Escape (top modal only) or backdrop click. */
|
|
34
|
-
onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
|
|
35
|
-
/** Render the dimmed backdrop. Default: true. */
|
|
36
|
-
hasBackdrop?: boolean;
|
|
37
|
-
/** Keep the children mounted while closed. Default: false. */
|
|
38
|
-
shouldKeepMounted?: boolean;
|
|
39
|
-
/** Portal the modal into `portalContainer`. Default: true. */
|
|
40
|
-
shouldUsePortal?: boolean;
|
|
41
|
-
/** Portal target, or a function returning one. Defaults to the document body. */
|
|
42
|
-
portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
|
|
43
|
-
/** Lock body scroll while open. Default: true. */
|
|
44
|
-
shouldLockScroll?: boolean;
|
|
45
|
-
/** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
|
|
46
|
-
disableAriaHidden?: boolean;
|
|
47
|
-
/** Move focus into the modal on open. Default: true. */
|
|
48
|
-
shouldAutoFocus?: boolean;
|
|
49
|
-
/** Trap Tab focus within the modal. Default: true. */
|
|
50
|
-
shouldTrapFocus?: boolean;
|
|
51
|
-
/** Pull focus back into the modal whenever it escapes. Default: true. */
|
|
52
|
-
shouldEnforceFocus?: boolean;
|
|
53
|
-
/** Restore focus to the trigger on close. Default: true. */
|
|
54
|
-
shouldRestoreFocus?: boolean;
|
|
55
|
-
/** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
|
|
56
|
-
scroll?: ModalScroll;
|
|
57
|
-
/** Stacking layer from `theme.zOrder`. Default: 'modal'. */
|
|
58
|
-
layer?: keyof Theme['zOrder'];
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @description Accessible overlay primitive: portals its content, dims the page,
|
|
62
|
-
* traps focus, locks scroll, and closes on Escape or backdrop click. The base for
|
|
63
|
-
* higher-level overlays such as Drawer.
|
|
64
|
-
*/
|
|
65
|
-
declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer }: Readonly<ModalProps>): import("react").JSX.Element | null;
|
|
66
|
-
/** A modal tracked by the manager: its portal mount node and its root element. */
|
|
67
|
-
interface ManagedModal {
|
|
68
|
-
mount: Element;
|
|
69
|
-
modalRef: Element;
|
|
70
|
-
}
|
|
71
|
-
interface ManagedModalProps {
|
|
72
|
-
disableScrollLock?: boolean;
|
|
73
|
-
}
|
|
74
|
-
/** Hides an element from assistive tech. */
|
|
75
|
-
declare function hideFromAria(element: Element): void;
|
|
76
|
-
/** Reveals an element to assistive tech again. */
|
|
77
|
-
declare function exposeToAria(element: Element): void;
|
|
78
|
-
/**
|
|
79
|
-
* Tracks every open modal and the containers they live in. A single shared
|
|
80
|
-
* instance coordinates stacking (`isTopModal`), scroll-lock, and `aria-hidden`
|
|
81
|
-
* on background siblings so assistive tech only sees the active modal.
|
|
82
|
-
*/
|
|
83
|
-
declare class ModalManager {
|
|
84
|
-
private readonly modals;
|
|
85
|
-
private readonly containers;
|
|
86
|
-
add(modal: ManagedModal, container: HTMLElement, disableAriaHidden?: boolean): number;
|
|
87
|
-
mount(modal: ManagedModal, props: ManagedModalProps): void;
|
|
88
|
-
remove(modal: ManagedModal, ariaHiddenState?: boolean): number;
|
|
89
|
-
isTopModal(modal: ManagedModal): boolean;
|
|
90
|
-
}
|
|
91
|
-
export { hideFromAria as a, ModalScroll as c, UseModalReturnValue as d, useModal as f, exposeToAria as i, ModalCloseReason as l, ManagedModalProps as n, Modal as o, ModalManager as r, ModalProps as s, ManagedModal as t, UseModalParameters as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index-B-1sp9oV.mjs";
|