@soroush.tech/design-system 2.1.0 → 2.1.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-Cv887y7O.mjs → Menu-31GXflmP.mjs} +5 -5
- package/dist/{Menu-DOOK_gM9.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-BWm8DC-S.cjs → MenuItem-Be4xFEww.cjs} +5 -5
- package/dist/{MenuItem-hJeCsQZX.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-D7Pvpn_K.mjs → MenuList-CoLoldE2.mjs} +3 -3
- package/dist/{MenuList-CSaaR3jt.cjs → MenuList-Cr9L4x9N.cjs} +2 -2
- 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 +4 -4
- package/dist/Sidebar/Sidebar.d.cts +3 -4
- package/dist/Sidebar/Sidebar.d.mts +3 -4
- package/dist/Sidebar/Sidebar.mjs +4 -4
- 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-CE8iDr0D.mjs → Tabs-DPCVKt9p.mjs} +25 -15
- package/dist/{Tabs-BTa2myRe.cjs → Tabs-DipA7I2c.cjs} +24 -14
- 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-BDVi1DNs.d.mts → index-CjIlieUz.d.cts} +3 -3
- 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-DA3M2w5w.d.cts → 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-CLTH0nFB.d.cts → index-Dv-JacXL.d.mts} +3 -3
- package/dist/{index-CK-uaK5U.d.cts → index-MipJMh6w.d.cts} +7 -7
- package/dist/{index-CPmemva9.d.mts → 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
package/dist/Tabs/Tabs.d.cts
CHANGED
|
@@ -1,3 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { nt as Theme, tt as TabsVariants } from "../index-MipJMh6w.cjs";
|
|
2
|
+
import "../theme.cjs";
|
|
3
|
+
import { TabScrollButtonProps } from "./TabScrollButton.cjs";
|
|
4
|
+
import { t as TabValue } from "../TabsContext-DkPIvEhN.cjs";
|
|
5
|
+
import { ComponentType, ReactNode, Ref } from "react";
|
|
6
|
+
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
7
|
+
export type TabsVariant = keyof TabsVariants;
|
|
8
|
+
export 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
|
+
export type TabsOverflowBehavior = 'scroll' | 'menu' | 'none';
|
|
11
|
+
/** When a scrolling row shows its scroll buttons. */
|
|
12
|
+
export type TabsScrollButtons = 'auto' | 'always' | 'never';
|
|
13
|
+
/** What `action` exposes. */
|
|
14
|
+
export 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
|
+
export 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
|
+
export 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 type { TabValue };
|
package/dist/Tabs/Tabs.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as TabValue } from "../TabsContext-
|
|
2
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-
|
|
1
|
+
import { t as TabValue } from "../TabsContext-cm-4w5HV.mjs";
|
|
2
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "../index-CgZujUBc.mjs";
|
|
3
3
|
export { type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs/Tabs.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Tabs } from "../Tabs-
|
|
1
|
+
export { t as Tabs } from "../Tabs-DPCVKt9p.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
2
|
-
import { n as useDefaultProps, r as useTheme } from "./theme-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-B6LFWZ98.mjs";
|
|
3
3
|
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
4
|
-
import { t as Icon } from "./Icon-
|
|
4
|
+
import { t as Icon } from "./Icon-gVHlFgdH.mjs";
|
|
5
|
+
import { n as Tooltip } from "./Tooltip-CqGB8Pgm.mjs";
|
|
5
6
|
import { View } from "./View.mjs";
|
|
7
|
+
import { t as Menu } from "./Menu-31GXflmP.mjs";
|
|
8
|
+
import { t as MenuItem } from "./MenuItem-DfS3Q2Ha.mjs";
|
|
6
9
|
import { t as isRtl } from "./isRtl-DN-EdUlg.mjs";
|
|
7
|
-
import { n as Tooltip } from "./Tooltip-Cx4ez9vY.mjs";
|
|
8
|
-
import { t as MenuItem } from "./MenuItem-hJeCsQZX.mjs";
|
|
9
|
-
import { t as Menu } from "./Menu-Cv887y7O.mjs";
|
|
10
|
-
import { a as TabsContext, i as TabIndexContext, n as getDividerShadow, r as getEnclosedPieceStyle, t as getDividerColor } from "./dividerLine-BC8E38Ed.mjs";
|
|
11
|
-
import "./tonalRadius-CvXRueqT.mjs";
|
|
12
10
|
import { TabScrollButton } from "./Tabs/TabScrollButton.mjs";
|
|
13
|
-
import { n as
|
|
11
|
+
import { a as TabsContext, i as TabIndexContext, n as getDividerShadow, r as getEnclosedPieceStyle, t as getDividerColor } from "./dividerLine-CjHOunP8.mjs";
|
|
12
|
+
import { n as getPanelId, r as getTabId, t as surfaceSystem } from "./surfaceSystem-Bsd7LqgB.mjs";
|
|
13
|
+
import "./tonalRadius-CvXRueqT.mjs";
|
|
14
14
|
import { Children, createContext, isValidElement, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
// src/Tabs/utils/fitTabs.ts
|
|
@@ -345,6 +345,10 @@ const OverflowClose = styled("button", {
|
|
|
345
345
|
"&:hover": { backgroundColor: `${main}1F` }
|
|
346
346
|
};
|
|
347
347
|
});
|
|
348
|
+
const overshoot = (start, end, viewStart, viewEnd) => {
|
|
349
|
+
if (start < viewStart) return start - viewStart;
|
|
350
|
+
return Math.max(end - viewEnd, 0);
|
|
351
|
+
};
|
|
348
352
|
const readTabs = (children) => Children.toArray(children).flatMap((child, index) => {
|
|
349
353
|
if (!isValidElement(child)) return [];
|
|
350
354
|
const { value, disabled, label, icon, closeLabel, color, size } = child.props;
|
|
@@ -504,12 +508,18 @@ function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose,
|
|
|
504
508
|
}), [updateIndicator, updateOverflow]);
|
|
505
509
|
useEffect(() => {
|
|
506
510
|
if (!isScrolling) return;
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
const row = listRef.current;
|
|
512
|
+
const selected = row.querySelector("[data-tab-selected]");
|
|
513
|
+
if (!selected) return;
|
|
514
|
+
const rowBox = row.getBoundingClientRect();
|
|
515
|
+
const tabBox = selected.getBoundingClientRect();
|
|
516
|
+
if (isVertical) row.scrollTop += overshoot(tabBox.top, tabBox.bottom, rowBox.top, rowBox.bottom);
|
|
517
|
+
else row.scrollLeft += overshoot(tabBox.left, tabBox.right, rowBox.left, rowBox.right);
|
|
518
|
+
}, [
|
|
519
|
+
isScrolling,
|
|
520
|
+
isVertical,
|
|
521
|
+
selectedValue
|
|
522
|
+
]);
|
|
513
523
|
const hasScrollButtons = isScrolling && (scrollButtons === "always" || scrollButtons === "auto" && scroll.isOverflowing);
|
|
514
524
|
const ScrollButton = slots?.scrollButton ?? TabScrollButton;
|
|
515
525
|
const renderScrollButton = (direction) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const require_src = require("./src-
|
|
1
|
+
const require_src = require("./src-B1PmaZ-2.cjs");
|
|
2
2
|
const require_theme = require("./theme-XJvMdOnY.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
4
|
-
const require_Icon = require("./Icon-
|
|
4
|
+
const require_Icon = require("./Icon-C4QMiNHJ.cjs");
|
|
5
|
+
const require_Tooltip = require("./Tooltip-Bzt4mirM.cjs");
|
|
5
6
|
const require_View = require("./View.cjs");
|
|
7
|
+
const require_Menu = require("./Menu-CTqplttU.cjs");
|
|
8
|
+
const require_MenuItem = require("./MenuItem-Be4xFEww.cjs");
|
|
6
9
|
const require_isRtl = require("./isRtl-Dl6QQWib.cjs");
|
|
7
|
-
const require_Tooltip = require("./Tooltip-rkGm1HnP.cjs");
|
|
8
|
-
const require_MenuItem = require("./MenuItem-BWm8DC-S.cjs");
|
|
9
|
-
const require_Menu = require("./Menu-DOOK_gM9.cjs");
|
|
10
|
-
const require_dividerLine = require("./dividerLine-DFuLn1zU.cjs");
|
|
11
|
-
require("./tonalRadius-CU9GHoHx.cjs");
|
|
12
10
|
const require_Tabs_TabScrollButton = require("./Tabs/TabScrollButton.cjs");
|
|
13
|
-
const
|
|
11
|
+
const require_dividerLine = require("./dividerLine-BL7qyMS7.cjs");
|
|
12
|
+
const require_surfaceSystem = require("./surfaceSystem-BeGFjViA.cjs");
|
|
13
|
+
require("./tonalRadius-CU9GHoHx.cjs");
|
|
14
14
|
let react = require("react");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -346,6 +346,10 @@ const OverflowClose = require_src.styled("button", {
|
|
|
346
346
|
"&:hover": { backgroundColor: `${main}1F` }
|
|
347
347
|
};
|
|
348
348
|
});
|
|
349
|
+
const overshoot = (start, end, viewStart, viewEnd) => {
|
|
350
|
+
if (start < viewStart) return start - viewStart;
|
|
351
|
+
return Math.max(end - viewEnd, 0);
|
|
352
|
+
};
|
|
349
353
|
const readTabs = (children) => react.Children.toArray(children).flatMap((child, index) => {
|
|
350
354
|
if (!(0, react.isValidElement)(child)) return [];
|
|
351
355
|
const { value, disabled, label, icon, closeLabel, color, size } = child.props;
|
|
@@ -505,12 +509,18 @@ function Tabs({ children, value: valueProp, defaultValue, onChange, onTabClose,
|
|
|
505
509
|
}), [updateIndicator, updateOverflow]);
|
|
506
510
|
(0, react.useEffect)(() => {
|
|
507
511
|
if (!isScrolling) return;
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
const row = listRef.current;
|
|
513
|
+
const selected = row.querySelector("[data-tab-selected]");
|
|
514
|
+
if (!selected) return;
|
|
515
|
+
const rowBox = row.getBoundingClientRect();
|
|
516
|
+
const tabBox = selected.getBoundingClientRect();
|
|
517
|
+
if (isVertical) row.scrollTop += overshoot(tabBox.top, tabBox.bottom, rowBox.top, rowBox.bottom);
|
|
518
|
+
else row.scrollLeft += overshoot(tabBox.left, tabBox.right, rowBox.left, rowBox.right);
|
|
519
|
+
}, [
|
|
520
|
+
isScrolling,
|
|
521
|
+
isVertical,
|
|
522
|
+
selectedValue
|
|
523
|
+
]);
|
|
514
524
|
const hasScrollButtons = isScrolling && (scrollButtons === "always" || scrollButtons === "auto" && scroll.isOverflowing);
|
|
515
525
|
const ScrollButton = slots?.scrollButton ?? require_Tabs_TabScrollButton.TabScrollButton;
|
|
516
526
|
const renderScrollButton = (direction) => {
|
package/dist/Tabs.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_Tabs_Tab = require("./Tabs/Tab.cjs");
|
|
3
3
|
const require_Tabs_TabContext = require("./Tabs/TabContext.cjs");
|
|
4
4
|
const require_Tabs_TabScrollButton = require("./Tabs/TabScrollButton.cjs");
|
|
5
|
-
const require_Tabs = require("./Tabs-
|
|
5
|
+
const require_Tabs = require("./Tabs-DipA7I2c.cjs");
|
|
6
6
|
const require_Tabs_TabList = require("./Tabs/TabList.cjs");
|
|
7
7
|
const require_Tabs_TabPanel = require("./Tabs/TabPanel.cjs");
|
|
8
8
|
exports.Tab = require_Tabs_Tab.Tab;
|
package/dist/Tabs.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TabValue } from "./TabsContext-
|
|
1
|
+
import { t as TabValue } from "./TabsContext-DkPIvEhN.cjs";
|
|
2
2
|
import { Tab, TabIconPosition, TabProps } from "./Tabs/Tab.cjs";
|
|
3
3
|
import { TabContext, TabContextProps } from "./Tabs/TabContext.cjs";
|
|
4
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-qgFJF8n2.cjs";
|
|
5
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-C6uLwNRF.cjs";
|
|
6
4
|
import { TabList, TabListProps } from "./Tabs/TabList.cjs";
|
|
7
5
|
import { TabPanel, TabPanelProps } from "./Tabs/TabPanel.cjs";
|
|
6
|
+
import { TabScrollButton, TabScrollButtonProps, TabScrollDirection } from "./Tabs/TabScrollButton.cjs";
|
|
7
|
+
import { Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant } from "./Tabs/Tabs.cjs";
|
|
8
8
|
export { Tab, TabContext, TabContextProps, TabIconPosition, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, TabScrollButton, TabScrollButtonProps, TabScrollDirection, type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TabValue } from "./TabsContext-
|
|
1
|
+
import { t as TabValue } from "./TabsContext-cm-4w5HV.mjs";
|
|
2
2
|
import { Tab, TabIconPosition, TabProps } from "./Tabs/Tab.mjs";
|
|
3
3
|
import { TabContext, TabContextProps } from "./Tabs/TabContext.mjs";
|
|
4
|
-
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-DXUVsHux.mjs";
|
|
5
|
-
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-BbWQZ2Wj.mjs";
|
|
6
4
|
import { TabList, TabListProps } from "./Tabs/TabList.mjs";
|
|
7
5
|
import { TabPanel, TabPanelProps } from "./Tabs/TabPanel.mjs";
|
|
6
|
+
import { n as TabScrollButtonProps, r as TabScrollDirection, t as TabScrollButton } from "./index-B4rMxnAI.mjs";
|
|
7
|
+
import { a as TabsProps, i as TabsOverflowBehavior, n as TabsActions, o as TabsScrollButtons, r as TabsOrientation, s as TabsVariant, t as Tabs } from "./index-CgZujUBc.mjs";
|
|
8
8
|
export { Tab, TabContext, TabContextProps, TabIconPosition, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, TabScrollButton, TabScrollButtonProps, TabScrollDirection, type TabValue, Tabs, TabsActions, TabsOrientation, TabsOverflowBehavior, TabsProps, TabsScrollButtons, TabsVariant };
|
package/dist/Tabs.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tab } from "./Tabs/Tab.mjs";
|
|
2
2
|
import { TabContext } from "./Tabs/TabContext.mjs";
|
|
3
3
|
import { TabScrollButton } from "./Tabs/TabScrollButton.mjs";
|
|
4
|
-
import { t as Tabs } from "./Tabs-
|
|
4
|
+
import { t as Tabs } from "./Tabs-DPCVKt9p.mjs";
|
|
5
5
|
import { TabList } from "./Tabs/TabList.mjs";
|
|
6
6
|
import { TabPanel } from "./Tabs/TabPanel.mjs";
|
|
7
7
|
export { Tab, TabContext, TabList, TabPanel, TabScrollButton, Tabs };
|
package/dist/TextInput.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_FormControl = require("./FormControl.cjs");
|
|
3
|
+
const require_src = require("./src-B1PmaZ-2.cjs");
|
|
3
4
|
const require_theme = require("./theme-XJvMdOnY.cjs");
|
|
5
|
+
const require_inputVariantStyles = require("./inputVariantStyles-GsJaknFt.cjs");
|
|
4
6
|
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
5
|
-
const require_inputVariantStyles = require("./inputVariantStyles-DhClkDHY.cjs");
|
|
6
|
-
const require_FormControl = require("./FormControl.cjs");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -15,7 +15,7 @@ const adjust = (el, minRows, maxRows) => {
|
|
|
15
15
|
el.style.height = "auto";
|
|
16
16
|
const scrollHeight = el.scrollHeight;
|
|
17
17
|
const min = minRows == null ? 0 : Number(minRows) * lineHeight + paddingY;
|
|
18
|
-
const max = maxRows == null ?
|
|
18
|
+
const max = maxRows == null ? 1e400 : Number(maxRows) * lineHeight + paddingY;
|
|
19
19
|
el.style.height = `${Math.min(max, Math.max(min, scrollHeight))}px`;
|
|
20
20
|
el.style.overflow = scrollHeight > max ? "auto" : "hidden";
|
|
21
21
|
};
|
package/dist/TextInput.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-MipJMh6w.cjs";
|
|
2
2
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
|
-
type TextInputColor = keyof Theme['palette'];
|
|
5
|
-
type TextInputTextColor = keyof Theme['text'];
|
|
6
|
-
type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
7
|
-
type TextInputSize = keyof Theme['sizes'];
|
|
8
|
-
interface TextInputClasses {
|
|
4
|
+
export type TextInputColor = keyof Theme['palette'];
|
|
5
|
+
export type TextInputTextColor = keyof Theme['text'];
|
|
6
|
+
export type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
7
|
+
export type TextInputSize = keyof Theme['sizes'];
|
|
8
|
+
export interface TextInputClasses {
|
|
9
9
|
root?: string;
|
|
10
10
|
input?: string;
|
|
11
11
|
}
|
|
12
|
-
interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
12
|
+
export interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
13
13
|
/** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
14
14
|
borderRadius?: keyof Theme['radii'];
|
|
15
15
|
autoComplete?: string;
|
|
@@ -74,5 +74,4 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
|
|
|
74
74
|
className?: string;
|
|
75
75
|
'data-testid'?: string;
|
|
76
76
|
}
|
|
77
|
-
declare function TextInput({ autoComplete, autoFocus, borderRadius, classes, components, color: colorProp, textColor: textColorProp, disabled: disabledProp, error: errorProp, fullWidth: fullWidthProp, id: idProp, inputComponent, inputProps, inputSize, maxRows, minRows, multiline, name, onChange, placeholder, readOnly, required: requiredProp, resize, rows, size: sizeProp, type, value, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TextInputProps>): import("react").JSX.Element;
|
|
78
|
-
export { TextInput, TextInputClasses, TextInputColor, TextInputProps, TextInputSize, TextInputTextColor, TextInputVariant };
|
|
77
|
+
export declare function TextInput({ autoComplete, autoFocus, borderRadius, classes, components, color: colorProp, textColor: textColorProp, disabled: disabledProp, error: errorProp, fullWidth: fullWidthProp, id: idProp, inputComponent, inputProps, inputSize, maxRows, minRows, multiline, name, onChange, placeholder, readOnly, required: requiredProp, resize, rows, size: sizeProp, type, value, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TextInputProps>): import("react").JSX.Element;
|
package/dist/TextInput.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-nw0pvCoK.mjs";
|
|
2
2
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ChangeEventHandler, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
4
|
-
type TextInputColor = keyof Theme['palette'];
|
|
5
|
-
type TextInputTextColor = keyof Theme['text'];
|
|
6
|
-
type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
7
|
-
type TextInputSize = keyof Theme['sizes'];
|
|
8
|
-
interface TextInputClasses {
|
|
4
|
+
export type TextInputColor = keyof Theme['palette'];
|
|
5
|
+
export type TextInputTextColor = keyof Theme['text'];
|
|
6
|
+
export type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
7
|
+
export type TextInputSize = keyof Theme['sizes'];
|
|
8
|
+
export interface TextInputClasses {
|
|
9
9
|
root?: string;
|
|
10
10
|
input?: string;
|
|
11
11
|
}
|
|
12
|
-
interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
12
|
+
export interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
13
13
|
/** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
14
14
|
borderRadius?: keyof Theme['radii'];
|
|
15
15
|
autoComplete?: string;
|
|
@@ -74,5 +74,4 @@ interface TextInputProps extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'wi
|
|
|
74
74
|
className?: string;
|
|
75
75
|
'data-testid'?: string;
|
|
76
76
|
}
|
|
77
|
-
declare function TextInput({ autoComplete, autoFocus, borderRadius, classes, components, color: colorProp, textColor: textColorProp, disabled: disabledProp, error: errorProp, fullWidth: fullWidthProp, id: idProp, inputComponent, inputProps, inputSize, maxRows, minRows, multiline, name, onChange, placeholder, readOnly, required: requiredProp, resize, rows, size: sizeProp, type, value, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TextInputProps>): import("react").JSX.Element;
|
|
78
|
-
export { TextInput, TextInputClasses, TextInputColor, TextInputProps, TextInputSize, TextInputTextColor, TextInputVariant };
|
|
77
|
+
export declare function TextInput({ autoComplete, autoFocus, borderRadius, classes, components, color: colorProp, textColor: textColorProp, disabled: disabledProp, error: errorProp, fullWidth: fullWidthProp, id: idProp, inputComponent, inputProps, inputSize, maxRows, minRows, multiline, name, onChange, placeholder, readOnly, required: requiredProp, resize, rows, size: sizeProp, type, value, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<TextInputProps>): import("react").JSX.Element;
|
package/dist/TextInput.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-B-rNjHIL.mjs";
|
|
2
|
-
import { r as useTheme } from "./theme-DyyZQFzQ.mjs";
|
|
3
|
-
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
4
|
-
import { n as getFocusRing, r as getInputMinWidth, t as inputVariantStyles } from "./inputVariantStyles-DCGRUY9c.mjs";
|
|
5
1
|
import { useFormControl } from "./FormControl.mjs";
|
|
2
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BSo7bM2g.mjs";
|
|
3
|
+
import { r as useTheme } from "./theme-B6LFWZ98.mjs";
|
|
4
|
+
import { n as getFocusRing, r as getInputMinWidth, t as inputVariantStyles } from "./inputVariantStyles-GEyyFeaq.mjs";
|
|
5
|
+
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
6
6
|
import { forwardRef, useCallback, useLayoutEffect, useRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
// src/TextInput/TextAreaAutoResize.tsx
|
|
@@ -13,7 +13,7 @@ const adjust = (el, minRows, maxRows) => {
|
|
|
13
13
|
el.style.height = "auto";
|
|
14
14
|
const scrollHeight = el.scrollHeight;
|
|
15
15
|
const min = minRows == null ? 0 : Number(minRows) * lineHeight + paddingY;
|
|
16
|
-
const max = maxRows == null ?
|
|
16
|
+
const max = maxRows == null ? 1e400 : Number(maxRows) * lineHeight + paddingY;
|
|
17
17
|
el.style.height = `${Math.min(max, Math.max(min, scrollHeight))}px`;
|
|
18
18
|
el.style.overflow = scrollHeight > max ? "auto" : "hidden";
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-CHA83ShW.cjs");
|
|
3
|
+
const require_Button = require("../Button.cjs");
|
|
4
|
+
const require_ButtonGroupContext = require("../ButtonGroupContext-n0wa0q6H.cjs");
|
|
5
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
4
6
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
5
7
|
const require_themeDefault = require("../themeDefault-DbPHBbNO.cjs");
|
|
6
|
-
const
|
|
7
|
-
const require_Button = require("../Button.cjs");
|
|
8
|
-
const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-CHA83ShW.cjs");
|
|
8
|
+
const require_utils = require("../utils.cjs");
|
|
9
9
|
let react = require("react");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
// src/ToggleButton/ToggleButton/ToggleButton.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-Cf2D7Y1b.cjs";
|
|
2
1
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
3
|
-
|
|
2
|
+
import { ButtonProps } from "../Button.cjs";
|
|
3
|
+
export interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
4
4
|
/** The value associated with the button inside a `ToggleButtonGroup`. */
|
|
5
5
|
value: ToggleButtonValue;
|
|
6
6
|
/** Active state - inferred from the group's value when omitted. Drives `aria-pressed`. */
|
|
@@ -8,5 +8,4 @@ interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'targ
|
|
|
8
8
|
/** Fired with the button's `value` when toggled. */
|
|
9
9
|
onChange?: (value: ToggleButtonValue) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function ToggleButton({ value, isSelected, color, onChange, onClick, type, ...rest }: Readonly<ToggleButtonProps>): import("react").JSX.Element;
|
|
12
|
-
export { ToggleButton, ToggleButtonProps };
|
|
11
|
+
export declare function ToggleButton({ value, isSelected, color, onChange, onClick, type, ...rest }: Readonly<ToggleButtonProps>): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ButtonProps } from "../index-BMeqk34D.mjs";
|
|
2
1
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
3
|
-
|
|
2
|
+
import { i as ButtonProps } from "../index-DuW9P_vU.mjs";
|
|
3
|
+
export interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'target' | 'rel' | 'value' | 'onChange'> {
|
|
4
4
|
/** The value associated with the button inside a `ToggleButtonGroup`. */
|
|
5
5
|
value: ToggleButtonValue;
|
|
6
6
|
/** Active state - inferred from the group's value when omitted. Drives `aria-pressed`. */
|
|
@@ -8,5 +8,4 @@ interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'href' | 'targ
|
|
|
8
8
|
/** Fired with the button's `value` when toggled. */
|
|
9
9
|
onChange?: (value: ToggleButtonValue) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function ToggleButton({ value, isSelected, color, onChange, onClick, type, ...rest }: Readonly<ToggleButtonProps>): import("react").JSX.Element;
|
|
12
|
-
export { ToggleButton, ToggleButtonProps };
|
|
11
|
+
export declare function ToggleButton({ value, isSelected, color, onChange, onClick, type, ...rest }: Readonly<ToggleButtonProps>): import("react").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as src_exports, o as styled } from "../src-B-rNjHIL.mjs";
|
|
2
|
-
import { alpha } from "../utils.mjs";
|
|
3
|
-
import { r as useTheme } from "../theme-DyyZQFzQ.mjs";
|
|
4
|
-
import { t as themeDefault } from "../themeDefault-BeZJzqJj.mjs";
|
|
5
|
-
import { t as ButtonGroupContext } from "../ButtonGroupContext-DK9whWFt.mjs";
|
|
6
|
-
import { Button } from "../Button.mjs";
|
|
7
1
|
import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-C0owas90.mjs";
|
|
2
|
+
import { Button } from "../Button.mjs";
|
|
3
|
+
import { t as ButtonGroupContext } from "../ButtonGroupContext-DK9whWFt.mjs";
|
|
4
|
+
import { a as src_exports, o as styled } from "../src-BSo7bM2g.mjs";
|
|
5
|
+
import { r as useTheme } from "../theme-B6LFWZ98.mjs";
|
|
6
|
+
import { t as themeDefault } from "../themeDefault-BeZJzqJj.mjs";
|
|
7
|
+
import { alpha } from "../utils.mjs";
|
|
8
8
|
import { useContext } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
// src/ToggleButton/ToggleButton/ToggleButton.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-CHA83ShW.cjs");
|
|
3
|
+
const require_ButtonGroup = require("../ButtonGroup.cjs");
|
|
4
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
5
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
4
6
|
const require_themeDefault = require("../themeDefault-DbPHBbNO.cjs");
|
|
5
|
-
const require_ButtonGroup = require("../ButtonGroup.cjs");
|
|
6
|
-
const require_ToggleButtonGroupContext = require("../ToggleButtonGroupContext-CHA83ShW.cjs");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
// src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ButtonGroupProps } from "../index-CZofj6vc.cjs";
|
|
2
1
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
3
|
-
|
|
2
|
+
import { ButtonGroupProps } from "../ButtonGroup.cjs";
|
|
3
|
+
export interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
|
|
4
4
|
/** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
|
|
5
5
|
value?: ToggleButtonValue | ToggleButtonValue[] | null;
|
|
6
6
|
/**
|
|
@@ -17,5 +17,4 @@ interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onC
|
|
|
17
17
|
* owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
|
|
18
18
|
* through `ButtonGroup` as usual.
|
|
19
19
|
*/
|
|
20
|
-
declare function ToggleButtonGroup({ value, onChange, isExclusive, color: colorProp, children, ...rest }: Readonly<ToggleButtonGroupProps>): import("react").JSX.Element;
|
|
21
|
-
export { ToggleButtonGroup, ToggleButtonGroupProps };
|
|
20
|
+
export declare function ToggleButtonGroup({ value, onChange, isExclusive, color: colorProp, children, ...rest }: Readonly<ToggleButtonGroupProps>): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ButtonGroupProps } from "../index-3-LXZL7g.mjs";
|
|
2
1
|
import { r as ToggleButtonValue } from "../ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
3
|
-
|
|
2
|
+
import { a as ButtonGroupProps } from "../index-BX05FTzq.mjs";
|
|
3
|
+
export interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onChange'> {
|
|
4
4
|
/** Selected value(s) - single when `isExclusive`, array otherwise. Controlled. */
|
|
5
5
|
value?: ToggleButtonValue | ToggleButtonValue[] | null;
|
|
6
6
|
/**
|
|
@@ -17,5 +17,4 @@ interface ToggleButtonGroupProps extends Omit<ButtonGroupProps, 'variant' | 'onC
|
|
|
17
17
|
* owns `value`. Visual props (`color` / `size` / `disabled` / `fullWidth`) broadcast
|
|
18
18
|
* through `ButtonGroup` as usual.
|
|
19
19
|
*/
|
|
20
|
-
declare function ToggleButtonGroup({ value, onChange, isExclusive, color: colorProp, children, ...rest }: Readonly<ToggleButtonGroupProps>): import("react").JSX.Element;
|
|
21
|
-
export { ToggleButtonGroup, ToggleButtonGroupProps };
|
|
20
|
+
export declare function ToggleButtonGroup({ value, onChange, isExclusive, color: colorProp, children, ...rest }: Readonly<ToggleButtonGroupProps>): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as styled } from "../src-B-rNjHIL.mjs";
|
|
2
|
-
import { r as useTheme } from "../theme-DyyZQFzQ.mjs";
|
|
3
|
-
import { t as themeDefault } from "../themeDefault-BeZJzqJj.mjs";
|
|
4
|
-
import { ButtonGroup } from "../ButtonGroup.mjs";
|
|
5
1
|
import { t as ToggleButtonGroupContext } from "../ToggleButtonGroupContext-C0owas90.mjs";
|
|
2
|
+
import { ButtonGroup } from "../ButtonGroup.mjs";
|
|
3
|
+
import { o as styled } from "../src-BSo7bM2g.mjs";
|
|
4
|
+
import { r as useTheme } from "../theme-B6LFWZ98.mjs";
|
|
5
|
+
import { t as themeDefault } from "../themeDefault-BeZJzqJj.mjs";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
// src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.tsx
|
package/dist/ToggleButton.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
2
1
|
import { ToggleButton, ToggleButtonProps } from "./ToggleButton/ToggleButton.cjs";
|
|
3
2
|
import { ToggleButtonGroup, ToggleButtonGroupProps } from "./ToggleButton/ToggleButtonGroup.cjs";
|
|
3
|
+
import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-CA-4EgZL.cjs";
|
|
4
4
|
export { ToggleButton, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupContextValue, ToggleButtonGroupProps, ToggleButtonProps, ToggleButtonValue };
|
package/dist/ToggleButton.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
2
1
|
import { ToggleButton, ToggleButtonProps } from "./ToggleButton/ToggleButton.mjs";
|
|
3
2
|
import { ToggleButtonGroup, ToggleButtonGroupProps } from "./ToggleButton/ToggleButtonGroup.mjs";
|
|
3
|
+
import { n as ToggleButtonGroupContextValue, r as ToggleButtonValue, t as ToggleButtonGroupContext } from "./ToggleButtonGroupContext-CA-4EgZL.mjs";
|
|
4
4
|
export { ToggleButton, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupContextValue, ToggleButtonGroupProps, ToggleButtonProps, ToggleButtonValue };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_src = require("./src-
|
|
1
|
+
const require_src = require("./src-B1PmaZ-2.cjs");
|
|
2
2
|
const require_theme = require("./theme-XJvMdOnY.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
4
4
|
const require_getSurfaceRadius = require("./getSurfaceRadius-DwOn3ALC.cjs");
|
|
5
|
-
const require_useControlled = require("./useControlled-CzCxM4J3.cjs");
|
|
6
5
|
const require_Portal = require("./Portal.cjs");
|
|
7
|
-
const require_useAnchoredPlacement = require("./useAnchoredPlacement-BSfjNMut.cjs");
|
|
8
6
|
const require_useMergedRefs = require("./useMergedRefs-BtctsnmX.cjs");
|
|
7
|
+
const require_useAnchoredPlacement = require("./useAnchoredPlacement-BSfjNMut.cjs");
|
|
8
|
+
const require_useControlled = require("./useControlled-CzCxM4J3.cjs");
|
|
9
9
|
const require_getTooltipOrigins = require("./getTooltipOrigins-8b5zQafY.cjs");
|
|
10
10
|
let react = require("react");
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-
|
|
2
|
-
import { n as useDefaultProps, r as useTheme } from "./theme-
|
|
1
|
+
import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-B6LFWZ98.mjs";
|
|
3
3
|
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
4
4
|
import { t as getSurfaceRadius } from "./getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
|
-
import { t as useControlled } from "./useControlled-B4uQ9Bj6.mjs";
|
|
6
5
|
import { Portal } from "./Portal.mjs";
|
|
7
|
-
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-txSaWzfk.mjs";
|
|
8
6
|
import { t as useMergedRefs } from "./useMergedRefs-CdfwtmUd.mjs";
|
|
7
|
+
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-txSaWzfk.mjs";
|
|
8
|
+
import { t as useControlled } from "./useControlled-B4uQ9Bj6.mjs";
|
|
9
9
|
import { n as resolveTooltipPlacement, t as getTooltipOrigins } from "./getTooltipOrigins-D0bLLXwY.mjs";
|
|
10
10
|
import { cloneElement, createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/Tooltip.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_Tooltip = require("./Tooltip-
|
|
2
|
+
const require_Tooltip = require("./Tooltip-Bzt4mirM.cjs");
|
|
3
3
|
exports.Tooltip = require_Tooltip.Tooltip;
|
|
4
4
|
exports.TooltipGroup = require_Tooltip.TooltipGroup;
|