@soroush.tech/design-system 2.0.0-rc.3 → 2.0.0-rc.5
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 +55 -32
- package/dist/Accordion/Accordion.cjs +99 -0
- package/dist/Accordion/Accordion.d.cts +39 -0
- package/dist/Accordion/Accordion.d.mts +39 -0
- package/dist/Accordion/Accordion.mjs +97 -0
- package/dist/Accordion/AccordionActions.cjs +28 -0
- package/dist/Accordion/AccordionActions.d.cts +10 -0
- package/dist/Accordion/AccordionActions.d.mts +10 -0
- package/dist/Accordion/AccordionActions.mjs +26 -0
- package/dist/Accordion/AccordionDetails.cjs +22 -0
- package/dist/Accordion/AccordionDetails.d.cts +10 -0
- package/dist/Accordion/AccordionDetails.d.mts +10 -0
- package/dist/Accordion/AccordionDetails.mjs +20 -0
- package/dist/Accordion/AccordionGroup.cjs +78 -0
- package/dist/Accordion/AccordionGroup.d.cts +22 -0
- package/dist/Accordion/AccordionGroup.d.mts +22 -0
- package/dist/Accordion/AccordionGroup.mjs +76 -0
- package/dist/Accordion/AccordionSummary.cjs +98 -0
- package/dist/Accordion/AccordionSummary.d.cts +19 -0
- package/dist/Accordion/AccordionSummary.d.mts +19 -0
- package/dist/Accordion/AccordionSummary.mjs +96 -0
- package/dist/Accordion.cjs +11 -0
- package/dist/Accordion.d.cts +6 -0
- package/dist/Accordion.d.mts +6 -0
- package/dist/Accordion.mjs +6 -0
- package/dist/AccordionContext-CBiu9CIa.mjs +14 -0
- package/dist/AccordionContext-CpSLhcF6.cjs +43 -0
- package/dist/Alert/Alert.cjs +153 -0
- package/dist/Alert/Alert.d.cts +35 -0
- package/dist/Alert/Alert.d.mts +35 -0
- package/dist/Alert/Alert.mjs +151 -0
- package/dist/Alert/AlertTitle.cjs +20 -0
- package/dist/Alert/AlertTitle.d.cts +10 -0
- package/dist/Alert/AlertTitle.d.mts +10 -0
- package/dist/Alert/AlertTitle.mjs +19 -0
- package/dist/Alert.cjs +5 -0
- package/dist/Alert.d.cts +3 -0
- package/dist/Alert.d.mts +3 -0
- package/dist/Alert.mjs +3 -0
- package/dist/AppBar.cjs +3 -4
- package/dist/AppBar.d.cts +1 -3
- package/dist/AppBar.d.mts +1 -3
- package/dist/AppBar.mjs +3 -4
- package/dist/Autocomplete.cjs +664 -0
- package/dist/Autocomplete.d.cts +93 -0
- package/dist/Autocomplete.d.mts +93 -0
- package/dist/Autocomplete.mjs +662 -0
- package/dist/Avatar.cjs +4 -5
- package/dist/Avatar.d.cts +1 -3
- package/dist/Avatar.d.mts +1 -3
- package/dist/Avatar.mjs +4 -5
- package/dist/Backdrop.cjs +2 -3
- package/dist/Backdrop.d.cts +1 -3
- package/dist/Backdrop.d.mts +1 -3
- package/dist/Backdrop.mjs +2 -3
- package/dist/Badge.cjs +129 -0
- package/dist/Badge.d.cts +43 -0
- package/dist/Badge.d.mts +43 -0
- package/dist/Badge.mjs +127 -0
- package/dist/Breadcrumbs.cjs +5 -6
- package/dist/Breadcrumbs.d.cts +3 -5
- package/dist/Breadcrumbs.d.mts +3 -5
- package/dist/Breadcrumbs.mjs +5 -6
- package/dist/Button.cjs +9 -7
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +9 -7
- package/dist/ButtonGroup.cjs +4 -5
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +4 -5
- package/dist/{ButtonGroupContext-DS-kl9lG.mjs → ButtonGroupContext-DK9whWFt.mjs} +1 -2
- package/dist/{ButtonGroupContext-NtkVeDVE.cjs → ButtonGroupContext-n0wa0q6H.cjs} +1 -2
- package/dist/Card.cjs +5 -6
- package/dist/Card.d.cts +4 -6
- package/dist/Card.d.mts +4 -6
- package/dist/Card.mjs +5 -6
- package/dist/Checkbox.cjs +16 -7
- package/dist/Checkbox.d.cts +4 -4
- package/dist/Checkbox.d.mts +4 -4
- package/dist/Checkbox.mjs +16 -7
- package/dist/Chip.cjs +193 -0
- package/dist/Chip.d.cts +47 -0
- package/dist/Chip.d.mts +47 -0
- package/dist/Chip.mjs +191 -0
- package/dist/CircularProgress.cjs +3 -4
- package/dist/CircularProgress.d.cts +2 -4
- package/dist/CircularProgress.d.mts +2 -4
- package/dist/CircularProgress.mjs +3 -4
- package/dist/Collapse.cjs +125 -0
- package/dist/Collapse.d.cts +2 -0
- package/dist/Collapse.d.mts +2 -0
- package/dist/Collapse.mjs +123 -0
- package/dist/Drawer.cjs +3 -5
- package/dist/Drawer.d.cts +3 -7
- package/dist/Drawer.d.mts +3 -7
- package/dist/Drawer.mjs +3 -5
- package/dist/Fab.cjs +113 -0
- package/dist/Fab.d.cts +2 -0
- package/dist/Fab.d.mts +2 -0
- package/dist/Fab.mjs +112 -0
- package/dist/FabMenu/FabMenu.cjs +3 -0
- package/dist/FabMenu/FabMenu.d.cts +51 -0
- package/dist/FabMenu/FabMenu.d.mts +51 -0
- package/dist/FabMenu/FabMenu.mjs +1 -0
- package/dist/FabMenu/FabMenuItem.cjs +27 -0
- package/dist/FabMenu/FabMenuItem.d.cts +17 -0
- package/dist/FabMenu/FabMenuItem.d.mts +17 -0
- package/dist/FabMenu/FabMenuItem.mjs +26 -0
- package/dist/FabMenu-BqBhZs0S.mjs +271 -0
- package/dist/FabMenu-fQGSZCjr.cjs +277 -0
- package/dist/FabMenu.cjs +5 -0
- package/dist/FabMenu.d.cts +3 -0
- package/dist/FabMenu.d.mts +3 -0
- package/dist/FabMenu.mjs +3 -0
- package/dist/FabMenuContext-C86bOvTe.cjs +21 -0
- package/dist/FabMenuContext-CiCWgAmf.mjs +10 -0
- package/dist/Fade.cjs +16 -0
- package/dist/Fade.d.cts +9 -0
- package/dist/Fade.d.mts +9 -0
- package/dist/Fade.mjs +15 -0
- package/dist/Flex.cjs +2 -3
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +2 -3
- package/dist/FocusTrap.cjs +2 -3
- package/dist/FocusTrap.d.cts +0 -2
- package/dist/FocusTrap.d.mts +0 -2
- package/dist/FocusTrap.mjs +2 -3
- package/dist/Form.cjs +3 -4
- package/dist/Form.d.cts +1 -5
- package/dist/Form.d.mts +1 -5
- package/dist/Form.mjs +3 -4
- package/dist/{FormContext-LrjAGe6U.mjs → FormContext-BTm-7WM6.mjs} +1 -2
- package/dist/{FormContext-BGCsWAFc.cjs → FormContext-C2C49AJK.cjs} +1 -2
- package/dist/FormControl.cjs +11 -11
- package/dist/FormControl.d.cts +1 -7
- package/dist/FormControl.d.mts +1 -7
- package/dist/FormControl.mjs +11 -11
- package/dist/{FormControlContext-CC2kToms.mjs → FormControlContext-Dg_ommiF.mjs} +1 -2
- package/dist/{FormControlContext-74gvPGFk.cjs → FormControlContext-DvEyxrdM.cjs} +1 -2
- package/dist/FormHelperText.cjs +5 -6
- package/dist/FormHelperText.d.cts +1 -3
- package/dist/FormHelperText.d.mts +1 -3
- package/dist/FormHelperText.mjs +5 -6
- package/dist/FormLabel.cjs +8 -6
- package/dist/FormLabel.d.cts +1 -3
- package/dist/FormLabel.d.mts +1 -3
- package/dist/FormLabel.mjs +8 -6
- package/dist/Grid.cjs +2 -3
- package/dist/Grid.d.cts +1 -3
- package/dist/Grid.d.mts +1 -3
- package/dist/Grid.mjs +2 -3
- package/dist/Grow.cjs +20 -0
- package/dist/Grow.d.cts +9 -0
- package/dist/Grow.d.mts +9 -0
- package/dist/Grow.mjs +19 -0
- package/dist/{Icon-D-EWsBVg.cjs → Icon-C5Iz5ekp.cjs} +175 -131
- package/dist/{Icon-BihOAP4u.mjs → Icon-XpXU-SuF.mjs} +175 -131
- 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 -2
- package/dist/Image.cjs +2 -3
- package/dist/Image.d.cts +1 -3
- package/dist/Image.d.mts +1 -3
- package/dist/Image.mjs +2 -3
- package/dist/LinearProgress.cjs +3 -4
- package/dist/LinearProgress.d.cts +2 -4
- package/dist/LinearProgress.d.mts +2 -4
- package/dist/LinearProgress.mjs +3 -4
- package/dist/Link.cjs +6 -7
- package/dist/Link.d.cts +1 -3
- package/dist/Link.d.mts +1 -3
- package/dist/Link.mjs +6 -7
- package/dist/Menu/ContextMenu.cjs +8 -7
- package/dist/Menu/ContextMenu.d.cts +8 -8
- package/dist/Menu/ContextMenu.d.mts +8 -8
- package/dist/Menu/ContextMenu.mjs +8 -7
- 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 -2
- package/dist/Menu/MenuDivider.cjs +2 -3
- package/dist/Menu/MenuDivider.d.cts +0 -2
- package/dist/Menu/MenuDivider.d.mts +0 -2
- package/dist/Menu/MenuDivider.mjs +2 -3
- package/dist/Menu/MenuItems.cjs +2 -3
- package/dist/Menu/MenuItems.d.cts +1 -1
- package/dist/Menu/MenuItems.d.mts +1 -1
- package/dist/Menu/MenuItems.mjs +2 -3
- package/dist/Menu/MenuList.cjs +1 -1
- package/dist/Menu/MenuList.d.cts +2 -4
- package/dist/Menu/MenuList.d.mts +2 -4
- package/dist/Menu/MenuList.mjs +1 -2
- package/dist/{Menu-Cgg-sX4W.cjs → Menu-Bx9jaHOy.cjs} +10 -10
- package/dist/{Menu-CrzHc_cn.mjs → Menu-D4AIpdJv.mjs} +10 -10
- package/dist/Menu.cjs +2 -2
- package/dist/Menu.d.cts +3 -3
- package/dist/Menu.d.mts +3 -3
- package/dist/Menu.mjs +2 -2
- package/dist/{MenuItem-BTP7Ijwi.cjs → MenuItem-DXRw3Yca.cjs} +50 -97
- package/dist/{MenuItem-DUn4IZKK.mjs → MenuItem-vXHGPK8g.mjs} +51 -98
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.d.cts +1 -1
- package/dist/MenuItem.d.mts +1 -1
- package/dist/MenuItem.mjs +1 -2
- package/dist/{MenuList-B7msJ1IG.mjs → MenuList-CGZgfBno.mjs} +9 -15
- package/dist/{MenuList-D4imLXAa.cjs → MenuList-DsJmxNPu.cjs} +9 -15
- package/dist/{MenuListContext-DKUOhNyw.d.cts → MenuListContext-BwgQHUu9.d.cts} +2 -4
- package/dist/{MenuListContext-x-7lH4CH.d.mts → MenuListContext-DbnAoUdJ.d.mts} +2 -4
- package/dist/{Modal-BcsyrrpH.mjs → Modal-DR4TRQSH.mjs} +11 -37
- package/dist/{Modal-CM3osOqj.cjs → Modal-gQcAJAKH.cjs} +11 -37
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -2
- package/dist/NativeSelect.cjs +11 -16
- package/dist/NativeSelect.d.cts +2 -4
- package/dist/NativeSelect.d.mts +2 -4
- package/dist/NativeSelect.mjs +11 -16
- package/dist/NavTree/NavGroup.cjs +93 -0
- package/dist/NavTree/NavGroup.d.cts +21 -0
- package/dist/NavTree/NavGroup.d.mts +21 -0
- package/dist/NavTree/NavGroup.mjs +92 -0
- package/dist/NavTree/NavLink.cjs +78 -0
- package/dist/NavTree/NavLink.d.cts +24 -0
- package/dist/NavTree/NavLink.d.mts +24 -0
- package/dist/NavTree/NavLink.mjs +76 -0
- package/dist/NavTree/NavTree.cjs +29 -0
- package/dist/NavTree/NavTree.d.cts +14 -0
- package/dist/NavTree/NavTree.d.mts +14 -0
- package/dist/NavTree/NavTree.mjs +28 -0
- package/dist/NavTree.cjs +7 -0
- package/dist/NavTree.d.cts +4 -0
- package/dist/NavTree.d.mts +4 -0
- package/dist/NavTree.mjs +4 -0
- package/dist/NavTreeContext-Cs0zC5hK.mjs +4 -0
- package/dist/NavTreeContext-DrxNyII8.cjs +8 -0
- package/dist/{NumberField.cjs → NumberInput.cjs} +72 -51
- package/dist/{NumberField.d.cts → NumberInput.d.cts} +13 -10
- package/dist/{NumberField.d.mts → NumberInput.d.mts} +13 -10
- package/dist/{NumberField.mjs → NumberInput.mjs} +72 -51
- package/dist/Pagination/PaginationItem.cjs +4 -5
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +4 -5
- package/dist/Pagination.cjs +3 -5
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +3 -5
- package/dist/Paper.cjs +4 -5
- package/dist/Paper.d.cts +2 -2
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +4 -5
- package/dist/{Popover-CiZfgiKE.cjs → Popover-BniabG7D.cjs} +6 -8
- package/dist/{Popover-QjM5Z1CR.mjs → Popover-Dnmeo0Av.mjs} +6 -8
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +3 -11
- package/dist/Popover.d.mts +3 -11
- package/dist/Popover.mjs +1 -2
- package/dist/Portal.cjs +1 -2
- package/dist/Portal.d.cts +1 -17
- package/dist/Portal.d.mts +1 -17
- package/dist/Portal.mjs +1 -2
- package/dist/Pressable.cjs +19 -16
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +19 -16
- package/dist/Quote.cjs +2 -3
- package/dist/Quote.d.cts +2 -4
- package/dist/Quote.d.mts +2 -4
- package/dist/Quote.mjs +2 -3
- package/dist/Radio.cjs +16 -7
- package/dist/Radio.d.cts +4 -4
- package/dist/Radio.d.mts +4 -4
- package/dist/Radio.mjs +16 -7
- package/dist/{InputRange.cjs → RangeInput.cjs} +48 -49
- package/dist/{InputRange.d.cts → RangeInput.d.cts} +11 -17
- package/dist/{InputRange.d.mts → RangeInput.d.mts} +11 -17
- package/dist/{InputRange.mjs → RangeInput.mjs} +48 -49
- package/dist/Rating.cjs +10 -13
- package/dist/Rating.d.cts +1 -3
- package/dist/Rating.d.mts +1 -3
- package/dist/Rating.mjs +10 -13
- package/dist/ScrollArea.cjs +265 -0
- package/dist/ScrollArea.d.cts +36 -0
- package/dist/ScrollArea.d.mts +36 -0
- package/dist/ScrollArea.mjs +263 -0
- package/dist/Select.cjs +18 -28
- package/dist/Select.d.cts +2 -6
- package/dist/Select.d.mts +2 -6
- package/dist/Select.mjs +18 -28
- package/dist/Sidebar/Sidebar.cjs +44 -28
- package/dist/Sidebar/Sidebar.d.cts +21 -8
- package/dist/Sidebar/Sidebar.d.mts +21 -8
- package/dist/Sidebar/Sidebar.mjs +44 -28
- package/dist/Sidebar/SidebarItem.cjs +81 -14
- package/dist/Sidebar/SidebarItem.d.cts +9 -7
- package/dist/Sidebar/SidebarItem.d.mts +9 -7
- package/dist/Sidebar/SidebarItem.mjs +81 -14
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.d.cts +2 -2
- package/dist/Sidebar.d.mts +2 -2
- package/dist/Sidebar.mjs +1 -1
- package/dist/{SidebarContext-B1lWrt77.d.cts → SidebarContext-Bod_oUMi.d.cts} +12 -5
- package/dist/{SidebarContext-B1lWrt77.d.mts → SidebarContext-Bod_oUMi.d.mts} +12 -5
- package/dist/{SidebarContext-DgSLwjur.mjs → SidebarContext-D3bF-Q4N.mjs} +2 -2
- package/dist/{SidebarContext-jG6OioC-.cjs → SidebarContext-mXrB4z8v.cjs} +2 -2
- package/dist/Skeleton.cjs +2 -3
- package/dist/Skeleton.d.cts +1 -3
- package/dist/Skeleton.d.mts +1 -3
- package/dist/Skeleton.mjs +2 -3
- package/dist/Slide.cjs +50 -0
- package/dist/Slide.d.cts +15 -0
- package/dist/Slide.d.mts +15 -0
- package/dist/Slide.mjs +49 -0
- package/dist/Snackbar.cjs +203 -0
- package/dist/Snackbar.d.cts +60 -0
- package/dist/Snackbar.d.mts +60 -0
- package/dist/Snackbar.mjs +201 -0
- package/dist/Switch.cjs +17 -8
- package/dist/Switch.d.cts +4 -4
- package/dist/Switch.d.mts +4 -4
- package/dist/Switch.mjs +17 -8
- package/dist/Table/Table.cjs +3 -4
- package/dist/Table/Table.d.cts +2 -4
- package/dist/Table/Table.d.mts +2 -4
- package/dist/Table/Table.mjs +3 -4
- package/dist/Table/TableBody.cjs +3 -4
- package/dist/Table/TableBody.d.cts +1 -3
- package/dist/Table/TableBody.d.mts +1 -3
- package/dist/Table/TableBody.mjs +3 -4
- package/dist/Table/TableCell.cjs +5 -6
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +5 -6
- package/dist/Table/TableContainer.cjs +2 -3
- package/dist/Table/TableContainer.d.cts +1 -3
- package/dist/Table/TableContainer.d.mts +1 -3
- package/dist/Table/TableContainer.mjs +2 -3
- package/dist/Table/TableControl.cjs +1 -2
- package/dist/Table/TableControl.d.cts +1 -3
- package/dist/Table/TableControl.d.mts +1 -3
- package/dist/Table/TableControl.mjs +1 -2
- package/dist/Table/TableFooter.cjs +3 -4
- package/dist/Table/TableFooter.d.cts +1 -3
- package/dist/Table/TableFooter.d.mts +1 -3
- package/dist/Table/TableFooter.mjs +3 -4
- package/dist/Table/TableHead.cjs +3 -4
- package/dist/Table/TableHead.d.cts +1 -3
- package/dist/Table/TableHead.d.mts +1 -3
- package/dist/Table/TableHead.mjs +3 -4
- package/dist/Table/TablePagination.cjs +3 -3
- package/dist/Table/TablePagination.d.cts +2 -4
- package/dist/Table/TablePagination.d.mts +2 -4
- package/dist/Table/TablePagination.mjs +3 -3
- package/dist/Table/TablePaginationActions.cjs +4 -5
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +4 -5
- package/dist/Table/TableRow.cjs +4 -5
- package/dist/Table/TableRow.d.cts +1 -3
- package/dist/Table/TableRow.d.mts +1 -3
- package/dist/Table/TableRow.mjs +4 -5
- package/dist/Table/TableSortLabel.cjs +4 -5
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +4 -5
- package/dist/Table/hooks.cjs +3 -6
- package/dist/Table/hooks.d.cts +1 -3
- package/dist/Table/hooks.d.mts +1 -3
- package/dist/Table/hooks.mjs +3 -6
- package/dist/Table.cjs +2 -2
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/Table.mjs +2 -2
- package/dist/{TableContext-DhuRf6Wy.d.mts → TableContext-0hifLOKH.d.mts} +1 -3
- package/dist/{TableContext-Dyr89h_k.mjs → TableContext-BBzwHtLn.mjs} +1 -2
- package/dist/{TableContext-Bfg1C3Sr.cjs → TableContext-CK5ALcd9.cjs} +1 -2
- package/dist/{TableContext-Duj1nVG7.d.cts → TableContext-fIyMD_Bj.d.cts} +1 -3
- package/dist/{TableSectionContext-meIG4lFZ.mjs → TableSectionContext-CT6xhPDd.mjs} +1 -2
- package/dist/{TableSectionContext-pYlJ-duI.cjs → TableSectionContext-D25fE10g.cjs} +1 -2
- package/dist/Tabs/Tab.cjs +36 -17
- package/dist/Tabs/Tab.d.cts +2 -4
- package/dist/Tabs/Tab.d.mts +2 -4
- package/dist/Tabs/Tab.mjs +36 -17
- package/dist/Tabs/TabContext.cjs +2 -3
- package/dist/Tabs/TabContext.d.cts +1 -3
- package/dist/Tabs/TabContext.d.mts +1 -3
- package/dist/Tabs/TabContext.mjs +2 -3
- package/dist/Tabs/TabList.cjs +3 -4
- package/dist/Tabs/TabList.d.cts +1 -3
- package/dist/Tabs/TabList.d.mts +1 -3
- package/dist/Tabs/TabList.mjs +3 -4
- package/dist/Tabs/TabPanel.cjs +5 -6
- package/dist/Tabs/TabPanel.d.cts +2 -4
- package/dist/Tabs/TabPanel.d.mts +2 -4
- package/dist/Tabs/TabPanel.mjs +5 -6
- package/dist/Tabs/TabScrollButton.cjs +5 -6
- package/dist/Tabs/TabScrollButton.d.cts +1 -1
- package/dist/Tabs/TabScrollButton.d.mts +1 -1
- package/dist/Tabs/TabScrollButton.mjs +5 -6
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.d.cts +2 -2
- package/dist/Tabs/Tabs.d.mts +2 -2
- package/dist/Tabs/Tabs.mjs +1 -2
- package/dist/{Tabs-D4tWCq78.cjs → Tabs-BsbX0jFL.cjs} +29 -25
- package/dist/{Tabs-BTNOJx5v.mjs → Tabs-JvjuCU8m.mjs} +29 -25
- 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-B_XHbjcS.d.cts → TabsContext-0ZtedNyH.d.mts} +1 -3
- package/dist/{TabsContext-Dn2kqUwr.d.mts → TabsContext-MpMEEVuB.d.cts} +1 -3
- package/dist/{TabsValueContext-DvL3inf7.mjs → TabsValueContext-C0vG9V7s.mjs} +1 -2
- package/dist/{TabsValueContext-D40zGCpE.cjs → TabsValueContext-DklTSPKh.cjs} +1 -2
- package/dist/TextInput.cjs +15 -17
- package/dist/TextInput.d.cts +1 -3
- package/dist/TextInput.d.mts +1 -3
- package/dist/TextInput.mjs +15 -17
- package/dist/ToggleButton/ToggleButton.cjs +6 -7
- package/dist/ToggleButton/ToggleButton.d.cts +2 -4
- package/dist/ToggleButton/ToggleButton.d.mts +2 -4
- package/dist/ToggleButton/ToggleButton.mjs +6 -7
- package/dist/ToggleButton/ToggleButtonGroup.cjs +5 -6
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +2 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +2 -4
- package/dist/ToggleButton/ToggleButtonGroup.mjs +5 -6
- package/dist/ToggleButton.cjs +1 -1
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/{ToggleButtonGroupContext-DxIyy8ze.mjs → ToggleButtonGroupContext-C0owas90.mjs} +1 -2
- package/dist/{ToggleButtonGroupContext-10jEsQdg.d.cts → ToggleButtonGroupContext-CA-4EgZL.d.cts} +0 -2
- package/dist/{ToggleButtonGroupContext-10jEsQdg.d.mts → ToggleButtonGroupContext-CA-4EgZL.d.mts} +0 -2
- package/dist/{ToggleButtonGroupContext-Ewc5Ixas.cjs → ToggleButtonGroupContext-CHA83ShW.cjs} +1 -2
- package/dist/Tooltip.cjs +268 -0
- package/dist/Tooltip.d.cts +74 -0
- package/dist/Tooltip.d.mts +74 -0
- package/dist/Tooltip.mjs +266 -0
- package/dist/TransferList.cjs +17 -12
- package/dist/TransferList.d.cts +4 -6
- package/dist/TransferList.d.mts +4 -6
- package/dist/TransferList.mjs +17 -12
- package/dist/Typography.cjs +3 -4
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +3 -4
- package/dist/View.cjs +2 -3
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +2 -3
- package/dist/Zoom.cjs +15 -0
- package/dist/Zoom.d.cts +8 -0
- package/dist/Zoom.d.mts +8 -0
- package/dist/Zoom.mjs +14 -0
- package/dist/catalog.cjs +1081 -160
- package/dist/catalog.d.cts +1 -5
- package/dist/catalog.d.mts +1 -5
- package/dist/catalog.mjs +1081 -160
- package/dist/{computePopoverPosition-DiyEOHnU.cjs → computePopoverPosition-C2W1FcYE.cjs} +3 -6
- package/dist/{computePopoverPosition-BIprs_xo.mjs → computePopoverPosition-qii46Z6p.mjs} +3 -6
- package/dist/{dividerLine-FahY-M6_.mjs → dividerLine-BC8E38Ed.mjs} +3 -5
- package/dist/{dividerLine-BNljcGlv.cjs → dividerLine-DFuLn1zU.cjs} +3 -5
- package/dist/{emotion-BAyqVw0c.mjs → emotion-E3pBNlXd.mjs} +1 -2
- package/dist/{emotion-DviPkkGL.cjs → emotion-sEV-zb6P.cjs} +1 -2
- package/dist/engine.cjs +4 -6
- package/dist/engine.d.cts +2 -8
- package/dist/engine.d.mts +1 -7
- package/dist/engine.mjs +3 -5
- package/dist/getAnchorRel-BLYap7aE.mjs +7 -0
- package/dist/getAnchorRel-DFMc_uIR.cjs +12 -0
- package/dist/getShapeRadius-C2xXOKCl.cjs +16 -0
- package/dist/getShapeRadius-CdCQb8OT.d.cts +3 -0
- package/dist/getShapeRadius-CdCQb8OT.d.mts +3 -0
- package/dist/getShapeRadius-DVQRARis.mjs +11 -0
- package/dist/getSurfaceRadius-B1QE_VLa.mjs +5 -0
- package/dist/getSurfaceRadius-DwOn3ALC.cjs +10 -0
- package/dist/getTooltipOrigins-8b5zQafY.cjs +103 -0
- package/dist/getTooltipOrigins-D0bLLXwY.mjs +86 -0
- package/dist/index-1Xzj0iAs.d.mts +1 -0
- package/dist/index-323PrYLR.d.cts +1 -0
- package/dist/{index-nqUA_6J_.d.cts → index-4maWM1H8.d.mts} +1 -7
- package/dist/{index-pTNq3iQn.d.mts → index-76zijQoi.d.mts} +2 -4
- package/dist/index-B3Bdupj3.d.mts +34 -0
- package/dist/{index-DGnXJwLj.d.mts → index-BAzMLTVi.d.mts} +7 -9
- package/dist/{index-Bx0-6yeX.d.mts → index-BC9S8Fpr.d.cts} +1 -7
- package/dist/{index-CG_1uPrD.d.mts → index-BChRNCld.d.mts} +2 -4
- package/dist/index-BV5BvdeN.d.mts +30 -0
- package/dist/{index-BHKgEOZJ.d.cts → index-BXlBouWV.d.mts} +3 -5
- package/dist/{index-WHFhjfgy.d.cts → index-Bo45R0nD.d.cts} +14 -8
- package/dist/index-BuAKhHMs.d.cts +30 -0
- package/dist/{index-B1RFybA_.d.mts → index-Byk1_ms9.d.cts} +7 -5
- package/dist/{index-DAwcmIjN.d.cts → index-BzQze7eY.d.cts} +2 -4
- package/dist/{index-ClZyaZrR.d.mts → index-C2a-5yop.d.mts} +1 -3
- package/dist/{index-DtYjdBvO.d.cts → index-C2tTbEBS.d.mts} +2 -4
- package/dist/{index-CbFaWtjK.d.mts → index-C7EUYyom.d.cts} +2 -4
- package/dist/{index-Dv_fk1_F.d.cts → index-CAt0-L4i.d.cts} +26 -130
- package/dist/{index-h4dYtVrp.d.mts → index-CF_pl72E.d.mts} +1 -13
- package/dist/{index-K5exjvnX.d.cts → index-CGyIuCRh.d.cts} +1 -3
- package/dist/{index-BkzZxHVj.d.mts → index-CJYWGPVO.d.mts} +2 -4
- package/dist/{index-BGbTuHP9.d.mts → index-CKywwIep.d.mts} +1 -5
- package/dist/index-CLTFsCYC.d.cts +34 -0
- package/dist/{index-KnXhlKMr.d.cts → index-CQeTS_zL.d.cts} +1 -3
- package/dist/{index-CJhK7JND.d.mts → index-CR8qkP8U.d.mts} +198 -28
- package/dist/{index-CE5JG1us.d.mts → index-C_J58B_n.d.mts} +1 -3
- package/dist/{index-DchHf5cF.d.cts → index-CfB7OceY.d.cts} +1 -13
- package/dist/{index-YKrfFC_I.d.cts → index-Cjh607-v.d.cts} +2 -4
- package/dist/{index-CUz2h5xY.d.mts → index-CnVvfG9_.d.mts} +2 -4
- package/dist/{index-ha1WjSZ5.d.mts → index-D48qVo1X.d.mts} +26 -130
- package/dist/{index-BelFIizY.d.cts → index-D4PcgL-c.d.cts} +2 -6
- package/dist/{index-BQWjh4rK.d.mts → index-DBF5n3ey.d.cts} +3 -5
- package/dist/{index-CknoXDLQ.d.cts → index-DbgrItbx.d.cts} +2 -4
- package/dist/{index-DWjz5ZzG.d.cts → index-Dm7vQHor.d.cts} +7 -9
- package/dist/{index-B4TeaB7b.d.cts → index-Dt274Ngt.d.mts} +7 -5
- package/dist/{index-ChXeKJCk.d.cts → index-Dxu6Ks2A.d.cts} +1 -5
- package/dist/{index-DJ0f69wh.d.cts → index-Lsm4v8fB.d.cts} +200 -30
- package/dist/{index-DYF8sRE-.d.cts → index-RaDENVX_.d.cts} +2 -4
- package/dist/{index-bpnLB_4K.d.mts → index-SotXsXXb.d.mts} +14 -8
- package/dist/{index-ByYxVl9O.d.mts → index-UiyZAKID.d.mts} +2 -6
- package/dist/index-UloRwym_.d.cts +16 -0
- package/dist/index-UloRwym_.d.mts +16 -0
- package/dist/{index-BrgwkY6z.d.mts → index-hoHPfsc1.d.cts} +3 -7
- package/dist/{index-CQfJZADG.d.cts → index-tOrd12AJ.d.mts} +3 -7
- 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 -2
- package/dist/inputVariantStyles-DCGRUY9c.mjs +42 -0
- package/dist/inputVariantStyles-DhClkDHY.cjs +59 -0
- package/dist/{isRtl-BJDtm86G.mjs → isRtl-DN-EdUlg.mjs} +1 -2
- package/dist/{isRtl-DTkYHRPo.cjs → isRtl-Dl6QQWib.cjs} +1 -2
- package/dist/{precision-B58cTPB2.cjs → precision-DbF9gToz.cjs} +1 -2
- package/dist/{precision-B1lhxnnO.mjs → precision-DrmFmgMd.mjs} +1 -2
- package/dist/{rolldown-runtime-BloeesfJ.cjs → rolldown-runtime-CiKaZLfC.cjs} +1 -2
- package/dist/{src-DLGYOJMh.mjs → src-B-rNjHIL.mjs} +3 -6
- package/dist/{src-DU81aGy9.cjs → src-yC1f5WR2.cjs} +3 -5
- package/dist/style.cjs +4 -7
- package/dist/style.d.cts +2 -8
- package/dist/style.d.mts +2 -8
- package/dist/style.mjs +5 -8
- package/dist/{surfaceSystem-D8TbmKy3.mjs → surfaceSystem-4XDqbvf4.mjs} +3 -5
- package/dist/{surfaceSystem-BGQBoXv_.cjs → surfaceSystem-DI6bqK5F.cjs} +3 -5
- package/dist/testing.cjs +1 -2
- package/dist/testing.d.cts +0 -2
- package/dist/testing.d.mts +0 -2
- package/dist/testing.mjs +1 -2
- package/dist/{theme-Z9_QludW.mjs → theme-DyyZQFzQ.mjs} +8 -14
- package/dist/{theme-BxXuXRgQ.cjs → theme-XJvMdOnY.cjs} +7 -13
- package/dist/theme.cjs +4 -3
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +4 -4
- package/dist/{themeDefault-Z3KmyIbm.mjs → themeDefault-BeZJzqJj.mjs} +1 -2
- package/dist/{themeDefault-Cebi08Cv.cjs → themeDefault-DbPHBbNO.cjs} +1 -2
- package/dist/{themes-gd6tcmqS.cjs → themes-C2oyu8gK.cjs} +28 -8
- package/dist/{themes-L-dE7_ck.mjs → themes-D-knykK0.mjs} +23 -9
- package/dist/tonalRadius-CU9GHoHx.cjs +9 -0
- package/dist/tonalRadius-CvXRueqT.mjs +4 -0
- package/dist/useAnchoredPlacement-COrXZxhm.mjs +105 -0
- package/dist/useAnchoredPlacement-ee6KzG3t.cjs +110 -0
- package/dist/{useControlled-CBRLsO-H.mjs → useControlled-B4uQ9Bj6.mjs} +1 -2
- package/dist/{useControlled-C666KpQ0.cjs → useControlled-CzCxM4J3.cjs} +1 -2
- package/dist/useMergedRefs-BtctsnmX.cjs +26 -0
- package/dist/useMergedRefs-CdfwtmUd.mjs +21 -0
- package/dist/{useTablePagination-D-39ZmQh.d.mts → useTablePagination-BlD8mK8k.d.mts} +1 -5
- package/dist/{useTablePagination-C-u3ru4N.d.cts → useTablePagination-CGjb_jPX.d.cts} +1 -5
- package/dist/useTransition-3EoagwIe.d.mts +40 -0
- package/dist/useTransition-B0V2fAq5.cjs +82 -0
- package/dist/useTransition-C89K0mS7.d.cts +40 -0
- package/dist/useTransition-CWxiEqtC.mjs +77 -0
- package/dist/useTransitionChild-CFhlMm65.mjs +48 -0
- package/dist/useTransitionChild-COlRozbU.cjs +53 -0
- package/dist/utils.cjs +4 -8
- package/dist/utils.d.cts +0 -8
- package/dist/utils.d.mts +0 -8
- package/dist/utils.mjs +4 -8
- package/package.json +192 -32
- package/dist/index-BxVTIMnB.d.cts +0 -1
- package/dist/index-DaIIo5QU.d.mts +0 -1
- package/dist/inputVariantStyles-BBkkYQtE.cjs +0 -32
- package/dist/inputVariantStyles-CcqpGfuP.mjs +0 -28
package/dist/catalog.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as baseTheme } from "./themes-
|
|
1
|
+
import { n as baseTheme } from "./themes-D-knykK0.mjs";
|
|
2
|
+
import { r as tooltipPlacementValues } from "./getTooltipOrigins-D0bLLXwY.mjs";
|
|
2
3
|
import { background, border, color, flexbox, grid, layout, position, shadow, space, typography } from "@soroush.tech/styled-system";
|
|
3
|
-
|
|
4
|
+
// ../docs-content/src/kebabCase.ts
|
|
4
5
|
/** PascalCase or camelCase to kebab-case: `TextInput` -> `text-input`. */
|
|
5
6
|
const kebabCase = (name) => name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6
|
-
|
|
7
|
-
//#region ../docs-content/src/registry.ts
|
|
7
|
+
// ../docs-content/src/registry.ts
|
|
8
8
|
/** `nested` marks container folders whose README sits one level down (Table/Table/README.md). */
|
|
9
9
|
const component = (name, nested = false, pkg = "design-system") => ({
|
|
10
10
|
pkg,
|
|
@@ -22,6 +22,7 @@ const componentCategories = [
|
|
|
22
22
|
{
|
|
23
23
|
label: "Layout & surfaces",
|
|
24
24
|
items: [
|
|
25
|
+
component("ScrollArea"),
|
|
25
26
|
component("View"),
|
|
26
27
|
component("Flex"),
|
|
27
28
|
component("Grid"),
|
|
@@ -41,12 +42,15 @@ const componentCategories = [
|
|
|
41
42
|
component("Icon"),
|
|
42
43
|
component("Image"),
|
|
43
44
|
component("Avatar"),
|
|
44
|
-
component("Table", true)
|
|
45
|
+
component("Table", true),
|
|
46
|
+
component("Accordion", true)
|
|
45
47
|
]
|
|
46
48
|
},
|
|
47
49
|
{
|
|
48
50
|
label: "Inputs & forms",
|
|
49
51
|
items: [
|
|
52
|
+
component("Autocomplete"),
|
|
53
|
+
component("Fab"),
|
|
50
54
|
component("Button"),
|
|
51
55
|
component("ButtonGroup"),
|
|
52
56
|
component("ToggleButton", true),
|
|
@@ -54,8 +58,8 @@ const componentCategories = [
|
|
|
54
58
|
component("Checkbox"),
|
|
55
59
|
component("Radio"),
|
|
56
60
|
component("Rating"),
|
|
57
|
-
component("
|
|
58
|
-
component("
|
|
61
|
+
component("NumberInput"),
|
|
62
|
+
component("RangeInput"),
|
|
59
63
|
component("TransferList"),
|
|
60
64
|
component("Switch"),
|
|
61
65
|
component("NativeSelect"),
|
|
@@ -73,21 +77,38 @@ const componentCategories = [
|
|
|
73
77
|
items: [
|
|
74
78
|
component("Breadcrumbs"),
|
|
75
79
|
component("Menu", true),
|
|
80
|
+
component("NavTree", true),
|
|
76
81
|
component("Tabs", true)
|
|
77
82
|
]
|
|
78
83
|
},
|
|
79
84
|
{
|
|
80
85
|
label: "Feedback",
|
|
81
86
|
items: [
|
|
87
|
+
component("FabMenu", true),
|
|
88
|
+
component("Snackbar"),
|
|
89
|
+
component("Alert", true),
|
|
90
|
+
component("Badge"),
|
|
91
|
+
component("Chip"),
|
|
82
92
|
component("CircularProgress"),
|
|
83
93
|
component("LinearProgress"),
|
|
84
94
|
component("Skeleton"),
|
|
85
95
|
component("Backdrop")
|
|
86
96
|
]
|
|
87
97
|
},
|
|
98
|
+
{
|
|
99
|
+
label: "Transitions",
|
|
100
|
+
items: [
|
|
101
|
+
component("Collapse"),
|
|
102
|
+
component("Fade"),
|
|
103
|
+
component("Grow"),
|
|
104
|
+
component("Slide"),
|
|
105
|
+
component("Zoom")
|
|
106
|
+
]
|
|
107
|
+
},
|
|
88
108
|
{
|
|
89
109
|
label: "Overlay & behavior",
|
|
90
110
|
items: [
|
|
111
|
+
component("Tooltip"),
|
|
91
112
|
component("Portal"),
|
|
92
113
|
component("FocusTrap"),
|
|
93
114
|
component("Modal"),
|
|
@@ -99,6 +120,15 @@ const componentCategories = [
|
|
|
99
120
|
const allComponents = componentCategories.flatMap((category) => category.items);
|
|
100
121
|
/** Every family member, in its family's order. */
|
|
101
122
|
const memberComponents = Object.entries({
|
|
123
|
+
NavTree: ["NavGroup", "NavLink"],
|
|
124
|
+
FabMenu: ["FabMenuItem"],
|
|
125
|
+
Alert: ["AlertTitle"],
|
|
126
|
+
Accordion: [
|
|
127
|
+
"AccordionActions",
|
|
128
|
+
"AccordionDetails",
|
|
129
|
+
"AccordionGroup",
|
|
130
|
+
"AccordionSummary"
|
|
131
|
+
],
|
|
102
132
|
Menu: [
|
|
103
133
|
"ContextMenu",
|
|
104
134
|
"MenuDivider",
|
|
@@ -149,8 +179,7 @@ const markdownComponents = [
|
|
|
149
179
|
/** Every documented component, family members included, across packages. Slugs are globally unique. */
|
|
150
180
|
const allDocComponents = [...allComponents.flatMap((item) => [item, ...membersOf(item)]), ...markdownComponents];
|
|
151
181
|
new Map(allDocComponents.map((item) => [item.slug, item]));
|
|
152
|
-
|
|
153
|
-
//#region src/catalog/defineCatalogEntry.ts
|
|
182
|
+
// src/catalog/defineCatalogEntry.ts
|
|
154
183
|
/**
|
|
155
184
|
* Types a component's catalog entry against its props: `defineCatalogEntry<ButtonProps>()({
|
|
156
185
|
* ... })`. Curried, so the props are named and the entry is still inferred.
|
|
@@ -162,8 +191,709 @@ const node = (component, props = {}, children = []) => ({
|
|
|
162
191
|
props,
|
|
163
192
|
children
|
|
164
193
|
});
|
|
165
|
-
|
|
166
|
-
|
|
194
|
+
// src/Accordion/AccordionActions/AccordionActions.catalog.ts
|
|
195
|
+
const accordionActionsCatalog = defineCatalogEntry()({
|
|
196
|
+
summary: "The foot of an accordion's region: its buttons, at the end of a row.",
|
|
197
|
+
isPlaceable: false,
|
|
198
|
+
example: {
|
|
199
|
+
component: "AccordionActions",
|
|
200
|
+
props: {},
|
|
201
|
+
children: [node("Button", { variant: "text" }, ["Save"])]
|
|
202
|
+
},
|
|
203
|
+
variants: [],
|
|
204
|
+
options: {},
|
|
205
|
+
content: { children: "children" }
|
|
206
|
+
});
|
|
207
|
+
// src/Accordion/Accordion/Accordion.catalog.ts
|
|
208
|
+
const accordionCatalog = defineCatalogEntry()({
|
|
209
|
+
summary: "A heading that opens and closes a region of content.",
|
|
210
|
+
isPlaceable: true,
|
|
211
|
+
example: {
|
|
212
|
+
component: "Accordion",
|
|
213
|
+
props: {},
|
|
214
|
+
children: [node("AccordionSummary", {}, ["Title"]), node("AccordionDetails", {}, ["Content that opens and closes."])]
|
|
215
|
+
},
|
|
216
|
+
variants: [],
|
|
217
|
+
options: {
|
|
218
|
+
defaultExpanded: {
|
|
219
|
+
values: [true, false],
|
|
220
|
+
default: false
|
|
221
|
+
},
|
|
222
|
+
disabled: {
|
|
223
|
+
values: [true, false],
|
|
224
|
+
default: false
|
|
225
|
+
},
|
|
226
|
+
hasGutters: {
|
|
227
|
+
values: [true, false],
|
|
228
|
+
default: true
|
|
229
|
+
},
|
|
230
|
+
borderRadius: { scale: "radii" },
|
|
231
|
+
bg: {
|
|
232
|
+
scale: "background",
|
|
233
|
+
default: "paper"
|
|
234
|
+
},
|
|
235
|
+
textColor: {
|
|
236
|
+
scale: "text",
|
|
237
|
+
default: "initial"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
content: { children: "children" },
|
|
241
|
+
twoWay: {
|
|
242
|
+
prop: "isExpanded",
|
|
243
|
+
event: "onChange",
|
|
244
|
+
read: "argument"
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
// src/Accordion/AccordionDetails/AccordionDetails.catalog.ts
|
|
248
|
+
const accordionDetailsCatalog = defineCatalogEntry()({
|
|
249
|
+
summary: "What an accordion opens: the padded body of its region.",
|
|
250
|
+
isPlaceable: false,
|
|
251
|
+
example: {
|
|
252
|
+
component: "AccordionDetails",
|
|
253
|
+
props: {},
|
|
254
|
+
children: ["Content that opens and closes."]
|
|
255
|
+
},
|
|
256
|
+
variants: [],
|
|
257
|
+
options: {},
|
|
258
|
+
content: { children: "children" }
|
|
259
|
+
});
|
|
260
|
+
// src/Accordion/AccordionGroup/AccordionGroup.catalog.ts
|
|
261
|
+
const accordionGroupCatalog = defineCatalogEntry()({
|
|
262
|
+
summary: "A column of accordions that move by the keys, and may keep one open at a time.",
|
|
263
|
+
isPlaceable: true,
|
|
264
|
+
example: {
|
|
265
|
+
component: "AccordionGroup",
|
|
266
|
+
props: {},
|
|
267
|
+
children: [node("Accordion", {}, [node("AccordionSummary", {}, ["First"]), node("AccordionDetails", {}, ["The first content."])]), node("Accordion", {}, [node("AccordionSummary", {}, ["Second"]), node("AccordionDetails", {}, ["The second content."])])]
|
|
268
|
+
},
|
|
269
|
+
variants: [],
|
|
270
|
+
options: {
|
|
271
|
+
isExclusive: {
|
|
272
|
+
values: [true, false],
|
|
273
|
+
default: false
|
|
274
|
+
},
|
|
275
|
+
variant: {
|
|
276
|
+
values: ["separated", "attached"],
|
|
277
|
+
default: "separated"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
content: { children: "children" }
|
|
281
|
+
});
|
|
282
|
+
const accordionSummaryCatalog = defineCatalogEntry()({
|
|
283
|
+
summary: "The header of an accordion: a button in a heading that opens and closes it.",
|
|
284
|
+
isPlaceable: false,
|
|
285
|
+
example: {
|
|
286
|
+
component: "AccordionSummary",
|
|
287
|
+
props: {},
|
|
288
|
+
children: ["Title"]
|
|
289
|
+
},
|
|
290
|
+
variants: [],
|
|
291
|
+
options: { headingLevel: {
|
|
292
|
+
values: [
|
|
293
|
+
1,
|
|
294
|
+
2,
|
|
295
|
+
3,
|
|
296
|
+
4,
|
|
297
|
+
5,
|
|
298
|
+
6
|
|
299
|
+
],
|
|
300
|
+
default: 3
|
|
301
|
+
} },
|
|
302
|
+
content: {
|
|
303
|
+
children: "children",
|
|
304
|
+
expandIcon: "child"
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
// src/Chip/Chip.catalog.ts
|
|
308
|
+
const chipVariantValues = [
|
|
309
|
+
"contained",
|
|
310
|
+
"outlined",
|
|
311
|
+
"text"
|
|
312
|
+
];
|
|
313
|
+
const variantLabels$18 = {
|
|
314
|
+
contained: "Filled",
|
|
315
|
+
outlined: "Outlined",
|
|
316
|
+
text: "Text"
|
|
317
|
+
};
|
|
318
|
+
const chipCatalog = defineCatalogEntry()({
|
|
319
|
+
summary: "A compact tag: a label, an icon or an avatar, and optionally a click and a delete.",
|
|
320
|
+
isPlaceable: true,
|
|
321
|
+
example: {
|
|
322
|
+
component: "Chip",
|
|
323
|
+
props: { label: "Tag" },
|
|
324
|
+
children: []
|
|
325
|
+
},
|
|
326
|
+
variants: chipVariantValues.map((variant) => ({
|
|
327
|
+
name: variant,
|
|
328
|
+
label: variantLabels$18[variant],
|
|
329
|
+
example: {
|
|
330
|
+
component: "Chip",
|
|
331
|
+
props: {
|
|
332
|
+
label: "Tag",
|
|
333
|
+
variant
|
|
334
|
+
},
|
|
335
|
+
children: []
|
|
336
|
+
}
|
|
337
|
+
})),
|
|
338
|
+
options: {
|
|
339
|
+
variant: {
|
|
340
|
+
values: chipVariantValues,
|
|
341
|
+
default: "contained"
|
|
342
|
+
},
|
|
343
|
+
color: {
|
|
344
|
+
scale: "palette",
|
|
345
|
+
default: "default"
|
|
346
|
+
},
|
|
347
|
+
size: {
|
|
348
|
+
scale: "sizes",
|
|
349
|
+
default: "md"
|
|
350
|
+
},
|
|
351
|
+
shape: {
|
|
352
|
+
values: [
|
|
353
|
+
"square",
|
|
354
|
+
"rounded",
|
|
355
|
+
"pill"
|
|
356
|
+
],
|
|
357
|
+
default: "pill"
|
|
358
|
+
},
|
|
359
|
+
borderRadius: { scale: "radii" },
|
|
360
|
+
disabled: {
|
|
361
|
+
values: [true, false],
|
|
362
|
+
default: false
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
content: {
|
|
366
|
+
label: "text",
|
|
367
|
+
icon: "child",
|
|
368
|
+
avatar: "child"
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
const badgeCatalog = defineCatalogEntry()({
|
|
372
|
+
summary: "A count or a dot anchored over another element.",
|
|
373
|
+
isPlaceable: true,
|
|
374
|
+
example: {
|
|
375
|
+
component: "Badge",
|
|
376
|
+
props: { badgeContent: 4 },
|
|
377
|
+
children: [node("Icon", { name: "star" })]
|
|
378
|
+
},
|
|
379
|
+
variants: [{
|
|
380
|
+
name: "dot",
|
|
381
|
+
label: "Dot",
|
|
382
|
+
example: {
|
|
383
|
+
component: "Badge",
|
|
384
|
+
props: { variant: "dot" },
|
|
385
|
+
children: [node("Icon", { name: "star" })]
|
|
386
|
+
}
|
|
387
|
+
}],
|
|
388
|
+
options: {
|
|
389
|
+
max: {
|
|
390
|
+
values: [
|
|
391
|
+
9,
|
|
392
|
+
99,
|
|
393
|
+
999
|
|
394
|
+
],
|
|
395
|
+
default: 99
|
|
396
|
+
},
|
|
397
|
+
variant: {
|
|
398
|
+
values: ["standard", "dot"],
|
|
399
|
+
default: "standard"
|
|
400
|
+
},
|
|
401
|
+
color: {
|
|
402
|
+
scale: "palette",
|
|
403
|
+
default: "error"
|
|
404
|
+
},
|
|
405
|
+
isHidden: {
|
|
406
|
+
values: [true, false],
|
|
407
|
+
default: false
|
|
408
|
+
},
|
|
409
|
+
shouldShowZero: {
|
|
410
|
+
values: [true, false],
|
|
411
|
+
default: false
|
|
412
|
+
},
|
|
413
|
+
overlap: {
|
|
414
|
+
values: ["rectangular", "circular"],
|
|
415
|
+
default: "rectangular"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
content: {
|
|
419
|
+
children: "children",
|
|
420
|
+
badgeContent: "text"
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
// src/Alert/Alert/Alert.catalog.ts
|
|
424
|
+
const alertSeverityValues = [
|
|
425
|
+
"success",
|
|
426
|
+
"info",
|
|
427
|
+
"warning",
|
|
428
|
+
"error"
|
|
429
|
+
];
|
|
430
|
+
const alertCatalog = defineCatalogEntry()({
|
|
431
|
+
summary: "An inline message with a severity, an icon, a title and an action.",
|
|
432
|
+
isPlaceable: true,
|
|
433
|
+
example: {
|
|
434
|
+
component: "Alert",
|
|
435
|
+
props: { severity: "info" },
|
|
436
|
+
children: [node("AlertTitle", {}, ["Heads up"]), "Your changes were saved."]
|
|
437
|
+
},
|
|
438
|
+
variants: alertSeverityValues.map((severity) => ({
|
|
439
|
+
name: severity,
|
|
440
|
+
label: severity[0].toUpperCase() + severity.slice(1),
|
|
441
|
+
example: {
|
|
442
|
+
component: "Alert",
|
|
443
|
+
props: { severity },
|
|
444
|
+
children: ["Your changes were saved."]
|
|
445
|
+
}
|
|
446
|
+
})),
|
|
447
|
+
options: {
|
|
448
|
+
severity: {
|
|
449
|
+
values: alertSeverityValues,
|
|
450
|
+
default: "info"
|
|
451
|
+
},
|
|
452
|
+
variant: {
|
|
453
|
+
values: [
|
|
454
|
+
"standard",
|
|
455
|
+
"contained",
|
|
456
|
+
"outlined"
|
|
457
|
+
],
|
|
458
|
+
default: "standard"
|
|
459
|
+
},
|
|
460
|
+
role: {
|
|
461
|
+
values: ["alert", "status"],
|
|
462
|
+
default: "alert"
|
|
463
|
+
},
|
|
464
|
+
borderRadius: { scale: "radii" }
|
|
465
|
+
},
|
|
466
|
+
content: {
|
|
467
|
+
children: "children",
|
|
468
|
+
icon: "child",
|
|
469
|
+
action: "child"
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
// src/Alert/AlertTitle/AlertTitle.catalog.ts
|
|
473
|
+
const alertTitleCatalog = defineCatalogEntry()({
|
|
474
|
+
summary: "The title of an alert: its first line, in a heavier weight.",
|
|
475
|
+
isPlaceable: false,
|
|
476
|
+
example: {
|
|
477
|
+
component: "AlertTitle",
|
|
478
|
+
props: {},
|
|
479
|
+
children: ["Heads up"]
|
|
480
|
+
},
|
|
481
|
+
variants: [],
|
|
482
|
+
options: {},
|
|
483
|
+
content: { children: "children" }
|
|
484
|
+
});
|
|
485
|
+
const fabCatalog = defineCatalogEntry()({
|
|
486
|
+
summary: "A floating action button: the one main action of a page, circular or extended.",
|
|
487
|
+
isPlaceable: true,
|
|
488
|
+
example: {
|
|
489
|
+
component: "Fab",
|
|
490
|
+
props: { "aria-label": "Add" },
|
|
491
|
+
children: [node("Icon", { name: "add" })]
|
|
492
|
+
},
|
|
493
|
+
variants: [{
|
|
494
|
+
name: "extended",
|
|
495
|
+
label: "Extended",
|
|
496
|
+
example: {
|
|
497
|
+
component: "Fab",
|
|
498
|
+
props: { variant: "extended" },
|
|
499
|
+
children: ["Create"]
|
|
500
|
+
}
|
|
501
|
+
}],
|
|
502
|
+
options: {
|
|
503
|
+
variant: {
|
|
504
|
+
values: ["circular", "extended"],
|
|
505
|
+
default: "circular"
|
|
506
|
+
},
|
|
507
|
+
color: {
|
|
508
|
+
scale: "palette",
|
|
509
|
+
default: "primary"
|
|
510
|
+
},
|
|
511
|
+
size: {
|
|
512
|
+
scale: "sizes",
|
|
513
|
+
default: "md"
|
|
514
|
+
},
|
|
515
|
+
isCollapsed: {
|
|
516
|
+
values: [true, false],
|
|
517
|
+
default: false
|
|
518
|
+
},
|
|
519
|
+
disabled: {
|
|
520
|
+
values: [true, false],
|
|
521
|
+
default: false
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
content: {
|
|
525
|
+
children: "children",
|
|
526
|
+
startIcon: "child"
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
// src/Snackbar/Snackbar.catalog.ts
|
|
530
|
+
const snackbarCatalog = defineCatalogEntry()({
|
|
531
|
+
summary: "A transient message in a corner of the window, with auto-hide and an action.",
|
|
532
|
+
isPlaceable: true,
|
|
533
|
+
example: {
|
|
534
|
+
component: "Snackbar",
|
|
535
|
+
props: {
|
|
536
|
+
isOpen: true,
|
|
537
|
+
message: "Saved",
|
|
538
|
+
autoHideDuration: 4e3
|
|
539
|
+
},
|
|
540
|
+
children: []
|
|
541
|
+
},
|
|
542
|
+
variants: [],
|
|
543
|
+
options: {
|
|
544
|
+
isOpen: {
|
|
545
|
+
values: [true, false],
|
|
546
|
+
default: false
|
|
547
|
+
},
|
|
548
|
+
autoHideDuration: { values: [
|
|
549
|
+
2e3,
|
|
550
|
+
4e3,
|
|
551
|
+
8e3
|
|
552
|
+
] },
|
|
553
|
+
layer: {
|
|
554
|
+
scale: "zOrder",
|
|
555
|
+
default: "snackbar"
|
|
556
|
+
},
|
|
557
|
+
shape: {
|
|
558
|
+
values: [
|
|
559
|
+
"square",
|
|
560
|
+
"rounded",
|
|
561
|
+
"pill"
|
|
562
|
+
],
|
|
563
|
+
default: "rounded"
|
|
564
|
+
},
|
|
565
|
+
borderRadius: { scale: "radii" },
|
|
566
|
+
bg: {
|
|
567
|
+
scale: "background",
|
|
568
|
+
default: "modal"
|
|
569
|
+
},
|
|
570
|
+
textColor: {
|
|
571
|
+
scale: "text",
|
|
572
|
+
default: "initial"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
content: {
|
|
576
|
+
message: "text",
|
|
577
|
+
action: "child",
|
|
578
|
+
children: "children"
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
// src/Tooltip/Tooltip.catalog.ts
|
|
582
|
+
const tooltipCatalog = defineCatalogEntry()({
|
|
583
|
+
summary: "A short description of one element, shown on hover, keyboard focus and a long touch.",
|
|
584
|
+
isPlaceable: true,
|
|
585
|
+
example: {
|
|
586
|
+
component: "Tooltip",
|
|
587
|
+
props: { title: "Save the page" },
|
|
588
|
+
children: [node("Button", { variant: "outlined" }, ["Save"])]
|
|
589
|
+
},
|
|
590
|
+
variants: [],
|
|
591
|
+
options: {
|
|
592
|
+
placement: {
|
|
593
|
+
values: tooltipPlacementValues,
|
|
594
|
+
default: "top"
|
|
595
|
+
},
|
|
596
|
+
hasArrow: {
|
|
597
|
+
values: [true, false],
|
|
598
|
+
default: false
|
|
599
|
+
},
|
|
600
|
+
enterDelay: {
|
|
601
|
+
values: [
|
|
602
|
+
0,
|
|
603
|
+
100,
|
|
604
|
+
500
|
|
605
|
+
],
|
|
606
|
+
default: 100
|
|
607
|
+
},
|
|
608
|
+
leaveDelay: {
|
|
609
|
+
values: [
|
|
610
|
+
0,
|
|
611
|
+
200,
|
|
612
|
+
500
|
|
613
|
+
],
|
|
614
|
+
default: 0
|
|
615
|
+
},
|
|
616
|
+
shouldDescribeChild: {
|
|
617
|
+
values: [true, false],
|
|
618
|
+
default: false
|
|
619
|
+
},
|
|
620
|
+
shouldOpenOnHover: {
|
|
621
|
+
values: [true, false],
|
|
622
|
+
default: true
|
|
623
|
+
},
|
|
624
|
+
shouldOpenOnFocus: {
|
|
625
|
+
values: [true, false],
|
|
626
|
+
default: true
|
|
627
|
+
},
|
|
628
|
+
shouldOpenOnTouch: {
|
|
629
|
+
values: [true, false],
|
|
630
|
+
default: true
|
|
631
|
+
},
|
|
632
|
+
layer: {
|
|
633
|
+
scale: "zOrder",
|
|
634
|
+
default: "tooltip"
|
|
635
|
+
},
|
|
636
|
+
borderRadius: { scale: "radii" },
|
|
637
|
+
bg: {
|
|
638
|
+
scale: "background",
|
|
639
|
+
default: "modal"
|
|
640
|
+
},
|
|
641
|
+
textColor: {
|
|
642
|
+
scale: "text",
|
|
643
|
+
default: "initial"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
content: {
|
|
647
|
+
title: "text",
|
|
648
|
+
children: "child"
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
const autocompleteCatalog = defineCatalogEntry()({
|
|
652
|
+
summary: "A field whose text finds an option in a list - one choice, several as chips, or free text.",
|
|
653
|
+
isPlaceable: true,
|
|
654
|
+
example: {
|
|
655
|
+
component: "Autocomplete",
|
|
656
|
+
props: {
|
|
657
|
+
options: [
|
|
658
|
+
"Berlin",
|
|
659
|
+
"Lisbon",
|
|
660
|
+
"Oslo",
|
|
661
|
+
"Rome"
|
|
662
|
+
],
|
|
663
|
+
variant: "outlined",
|
|
664
|
+
"aria-label": "City",
|
|
665
|
+
noOptionsText: "No city matches"
|
|
666
|
+
},
|
|
667
|
+
children: []
|
|
668
|
+
},
|
|
669
|
+
variants: [],
|
|
670
|
+
options: {
|
|
671
|
+
multiple: {
|
|
672
|
+
values: [true, false],
|
|
673
|
+
default: false
|
|
674
|
+
},
|
|
675
|
+
shouldAllowFreeText: {
|
|
676
|
+
values: [true, false],
|
|
677
|
+
default: false
|
|
678
|
+
},
|
|
679
|
+
isLoading: {
|
|
680
|
+
values: [true, false],
|
|
681
|
+
default: false
|
|
682
|
+
},
|
|
683
|
+
variant: {
|
|
684
|
+
values: [
|
|
685
|
+
"default",
|
|
686
|
+
"outlined",
|
|
687
|
+
"underline",
|
|
688
|
+
"text"
|
|
689
|
+
],
|
|
690
|
+
default: "default"
|
|
691
|
+
},
|
|
692
|
+
size: {
|
|
693
|
+
scale: "sizes",
|
|
694
|
+
default: "md"
|
|
695
|
+
},
|
|
696
|
+
color: {
|
|
697
|
+
scale: "palette",
|
|
698
|
+
default: "primary"
|
|
699
|
+
},
|
|
700
|
+
error: {
|
|
701
|
+
values: [true, false],
|
|
702
|
+
default: false
|
|
703
|
+
},
|
|
704
|
+
disabled: {
|
|
705
|
+
values: [true, false],
|
|
706
|
+
default: false
|
|
707
|
+
},
|
|
708
|
+
required: {
|
|
709
|
+
values: [true, false],
|
|
710
|
+
default: false
|
|
711
|
+
},
|
|
712
|
+
fullWidth: {
|
|
713
|
+
values: [true, false],
|
|
714
|
+
default: false
|
|
715
|
+
},
|
|
716
|
+
layer: {
|
|
717
|
+
scale: "zOrder",
|
|
718
|
+
default: "modal"
|
|
719
|
+
},
|
|
720
|
+
borderRadius: { scale: "radii" },
|
|
721
|
+
bg: {
|
|
722
|
+
scale: "background",
|
|
723
|
+
default: "modal"
|
|
724
|
+
},
|
|
725
|
+
textColor: {
|
|
726
|
+
scale: "text",
|
|
727
|
+
default: "primary"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
content: {}
|
|
731
|
+
});
|
|
732
|
+
const scrollAreaCatalog = defineCatalogEntry()({
|
|
733
|
+
summary: "A scrolling area whose scrollbars are drawn over its content, and show while it is hovered.",
|
|
734
|
+
isPlaceable: true,
|
|
735
|
+
example: {
|
|
736
|
+
component: "ScrollArea",
|
|
737
|
+
props: {
|
|
738
|
+
maxHeight: 120,
|
|
739
|
+
"aria-label": "Notes",
|
|
740
|
+
tabIndex: 0
|
|
741
|
+
},
|
|
742
|
+
children: ["A long list of notes, taller than the area that holds it, so the thumb shows on hover."]
|
|
743
|
+
},
|
|
744
|
+
variants: [],
|
|
745
|
+
options: {
|
|
746
|
+
axes: {
|
|
747
|
+
values: [
|
|
748
|
+
"y",
|
|
749
|
+
"x",
|
|
750
|
+
"both"
|
|
751
|
+
],
|
|
752
|
+
default: "y"
|
|
753
|
+
},
|
|
754
|
+
maxHeight: { values: [120, 240] }
|
|
755
|
+
},
|
|
756
|
+
content: { children: "children" }
|
|
757
|
+
});
|
|
758
|
+
const fabMenuCatalog = defineCatalogEntry()({
|
|
759
|
+
summary: "A fab that opens a stack of actions - extended pills - from the corner of a page.",
|
|
760
|
+
isPlaceable: true,
|
|
761
|
+
example: {
|
|
762
|
+
component: "FabMenu",
|
|
763
|
+
props: { "aria-label": "Create" },
|
|
764
|
+
children: [node("FabMenuItem", {}, [node("Icon", { name: "add" }), "Document"]), node("FabMenuItem", {}, ["Folder"])]
|
|
765
|
+
},
|
|
766
|
+
variants: [],
|
|
767
|
+
options: {
|
|
768
|
+
direction: {
|
|
769
|
+
values: [
|
|
770
|
+
"up",
|
|
771
|
+
"down",
|
|
772
|
+
"left",
|
|
773
|
+
"right"
|
|
774
|
+
],
|
|
775
|
+
default: "up"
|
|
776
|
+
},
|
|
777
|
+
align: {
|
|
778
|
+
values: ["end", "start"],
|
|
779
|
+
default: "end"
|
|
780
|
+
},
|
|
781
|
+
color: {
|
|
782
|
+
scale: "palette",
|
|
783
|
+
default: "primary"
|
|
784
|
+
},
|
|
785
|
+
size: {
|
|
786
|
+
scale: "sizes",
|
|
787
|
+
default: "md"
|
|
788
|
+
},
|
|
789
|
+
isOpen: {
|
|
790
|
+
values: [true, false],
|
|
791
|
+
default: false
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
content: { children: "children" }
|
|
795
|
+
});
|
|
796
|
+
// src/FabMenu/FabMenuItem/FabMenuItem.catalog.ts
|
|
797
|
+
const fabMenuItemCatalog = defineCatalogEntry()({
|
|
798
|
+
summary: "One action of a FabMenu: an extended fab with an icon and a label.",
|
|
799
|
+
isPlaceable: false,
|
|
800
|
+
example: {
|
|
801
|
+
component: "FabMenuItem",
|
|
802
|
+
props: {},
|
|
803
|
+
children: ["Document"]
|
|
804
|
+
},
|
|
805
|
+
variants: [],
|
|
806
|
+
options: {
|
|
807
|
+
color: {
|
|
808
|
+
scale: "palette",
|
|
809
|
+
default: "secondary"
|
|
810
|
+
},
|
|
811
|
+
disabled: {
|
|
812
|
+
values: [true, false],
|
|
813
|
+
default: false
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
content: {
|
|
817
|
+
children: "text",
|
|
818
|
+
icon: "child"
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
// src/NavTree/NavTree/NavTree.catalog.ts
|
|
822
|
+
const navTreeCatalog = defineCatalogEntry()({
|
|
823
|
+
summary: "A tree of links to the pages of a site - groups of links, and links of its own.",
|
|
824
|
+
isPlaceable: true,
|
|
825
|
+
example: {
|
|
826
|
+
component: "NavTree",
|
|
827
|
+
props: {},
|
|
828
|
+
children: [node("NavGroup", { label: "Components" }, [node("NavLink", {
|
|
829
|
+
href: "/components/button/",
|
|
830
|
+
isCurrent: true
|
|
831
|
+
}, ["Button"]), node("NavLink", { href: "/components/tabs/" }, ["Tabs"])]), node("NavGroup", {
|
|
832
|
+
label: "Guides",
|
|
833
|
+
isCollapsible: true,
|
|
834
|
+
isOpen: true
|
|
835
|
+
}, [node("NavLink", { href: "/guides/theming/" }, ["Theming"])])]
|
|
836
|
+
},
|
|
837
|
+
variants: [],
|
|
838
|
+
options: { color: {
|
|
839
|
+
scale: "palette",
|
|
840
|
+
default: "primary"
|
|
841
|
+
} },
|
|
842
|
+
content: { children: "children" }
|
|
843
|
+
});
|
|
844
|
+
// src/NavTree/NavGroup/NavGroup.catalog.ts
|
|
845
|
+
const navGroupCatalog = defineCatalogEntry()({
|
|
846
|
+
summary: "A group of a `NavTree`: a name over a list of links, which can fold under its name.",
|
|
847
|
+
isPlaceable: false,
|
|
848
|
+
example: {
|
|
849
|
+
component: "NavGroup",
|
|
850
|
+
props: { label: "Components" },
|
|
851
|
+
children: []
|
|
852
|
+
},
|
|
853
|
+
variants: [],
|
|
854
|
+
options: {
|
|
855
|
+
isCollapsible: {
|
|
856
|
+
values: [true, false],
|
|
857
|
+
default: false
|
|
858
|
+
},
|
|
859
|
+
isOpen: {
|
|
860
|
+
values: [true, false],
|
|
861
|
+
default: false
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
content: {
|
|
865
|
+
children: "children",
|
|
866
|
+
label: "text"
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
// src/NavTree/NavLink/NavLink.catalog.ts
|
|
870
|
+
const navLinkCatalog = defineCatalogEntry()({
|
|
871
|
+
summary: "A link to a page of a site, a row of a `NavTree` - filled when it is the current page.",
|
|
872
|
+
isPlaceable: false,
|
|
873
|
+
example: {
|
|
874
|
+
component: "NavLink",
|
|
875
|
+
props: { href: "/components/button/" },
|
|
876
|
+
children: ["Button"]
|
|
877
|
+
},
|
|
878
|
+
variants: [],
|
|
879
|
+
options: {
|
|
880
|
+
color: { scale: "palette" },
|
|
881
|
+
isCurrent: {
|
|
882
|
+
values: [true, false],
|
|
883
|
+
default: false
|
|
884
|
+
},
|
|
885
|
+
isExternal: {
|
|
886
|
+
values: [true, false],
|
|
887
|
+
default: false
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
content: {
|
|
891
|
+
children: "children",
|
|
892
|
+
href: "text",
|
|
893
|
+
note: "text"
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
// src/AppBar/AppBar.catalog.ts
|
|
167
897
|
const appBarPositionValues = [
|
|
168
898
|
"static",
|
|
169
899
|
"relative",
|
|
@@ -229,8 +959,7 @@ const appBarCatalog = defineCatalogEntry()({
|
|
|
229
959
|
content: { children: "children" },
|
|
230
960
|
preview: { width: 480 }
|
|
231
961
|
});
|
|
232
|
-
|
|
233
|
-
//#region src/Avatar/Avatar.catalog.ts
|
|
962
|
+
// src/Avatar/Avatar.catalog.ts
|
|
234
963
|
const avatarVariantValues = [
|
|
235
964
|
"circular",
|
|
236
965
|
"rounded",
|
|
@@ -293,8 +1022,7 @@ const avatarCatalog = defineCatalogEntry()({
|
|
|
293
1022
|
},
|
|
294
1023
|
content: { children: "children" }
|
|
295
1024
|
});
|
|
296
|
-
|
|
297
|
-
//#region src/Backdrop/Backdrop.catalog.ts
|
|
1025
|
+
// src/Backdrop/Backdrop.catalog.ts
|
|
298
1026
|
const backdropCatalog = defineCatalogEntry()({
|
|
299
1027
|
summary: "The dimmed full-viewport scrim a modal draws behind its content.",
|
|
300
1028
|
isPlaceable: false,
|
|
@@ -314,8 +1042,7 @@ const backdropCatalog = defineCatalogEntry()({
|
|
|
314
1042
|
height: 200
|
|
315
1043
|
}
|
|
316
1044
|
});
|
|
317
|
-
|
|
318
|
-
//#region src/Breadcrumbs/Breadcrumbs.catalog.ts
|
|
1045
|
+
// src/Breadcrumbs/Breadcrumbs.catalog.ts
|
|
319
1046
|
const breadcrumbsSeparatorValues = [
|
|
320
1047
|
"/",
|
|
321
1048
|
"›",
|
|
@@ -398,8 +1125,7 @@ const breadcrumbsCatalog = defineCatalogEntry()({
|
|
|
398
1125
|
},
|
|
399
1126
|
content: { children: "children" }
|
|
400
1127
|
});
|
|
401
|
-
|
|
402
|
-
//#region src/Button/Button.catalog.ts
|
|
1128
|
+
// src/Button/Button.catalog.ts
|
|
403
1129
|
const buttonVariantValues = [
|
|
404
1130
|
"contained",
|
|
405
1131
|
"outlined",
|
|
@@ -479,8 +1205,7 @@ const buttonCatalog = defineCatalogEntry()({
|
|
|
479
1205
|
},
|
|
480
1206
|
domEvents: ["onClick"]
|
|
481
1207
|
});
|
|
482
|
-
|
|
483
|
-
//#region src/ButtonGroup/ButtonGroup.catalog.ts
|
|
1208
|
+
// src/ButtonGroup/ButtonGroup.catalog.ts
|
|
484
1209
|
const buttonGroupVariantValues = [
|
|
485
1210
|
"contained",
|
|
486
1211
|
"outlined",
|
|
@@ -549,8 +1274,7 @@ const buttonGroupCatalog = defineCatalogEntry()({
|
|
|
549
1274
|
},
|
|
550
1275
|
content: { children: "children" }
|
|
551
1276
|
});
|
|
552
|
-
|
|
553
|
-
//#region src/Card/Card.catalog.ts
|
|
1277
|
+
// src/Card/Card.catalog.ts
|
|
554
1278
|
const cardVariantValues = [
|
|
555
1279
|
"paper",
|
|
556
1280
|
"bracketBox",
|
|
@@ -611,8 +1335,7 @@ const cardCatalog = defineCatalogEntry()({
|
|
|
611
1335
|
},
|
|
612
1336
|
preview: { width: 280 }
|
|
613
1337
|
});
|
|
614
|
-
|
|
615
|
-
//#region src/Checkbox/Checkbox.catalog.ts
|
|
1338
|
+
// src/Checkbox/Checkbox.catalog.ts
|
|
616
1339
|
const colorLabels$4 = {
|
|
617
1340
|
default: "Default",
|
|
618
1341
|
primary: "Primary",
|
|
@@ -680,8 +1403,143 @@ const checkboxCatalog = defineCatalogEntry()({
|
|
|
680
1403
|
read: "target.checked"
|
|
681
1404
|
}
|
|
682
1405
|
});
|
|
683
|
-
|
|
684
|
-
|
|
1406
|
+
/** What every transition around one child offers a picker. */
|
|
1407
|
+
const transitionOptions = {
|
|
1408
|
+
isShown: {
|
|
1409
|
+
values: [true, false],
|
|
1410
|
+
default: false
|
|
1411
|
+
},
|
|
1412
|
+
shouldAppear: {
|
|
1413
|
+
values: [true, false],
|
|
1414
|
+
default: true
|
|
1415
|
+
},
|
|
1416
|
+
shouldMountOnEnter: {
|
|
1417
|
+
values: [true, false],
|
|
1418
|
+
default: false
|
|
1419
|
+
},
|
|
1420
|
+
shouldUnmountOnExit: {
|
|
1421
|
+
values: [true, false],
|
|
1422
|
+
default: false
|
|
1423
|
+
},
|
|
1424
|
+
timeout: {
|
|
1425
|
+
values: [
|
|
1426
|
+
150,
|
|
1427
|
+
250,
|
|
1428
|
+
375
|
|
1429
|
+
],
|
|
1430
|
+
default: 250
|
|
1431
|
+
},
|
|
1432
|
+
easing: {
|
|
1433
|
+
values: [
|
|
1434
|
+
"standard",
|
|
1435
|
+
"enter",
|
|
1436
|
+
"exit"
|
|
1437
|
+
],
|
|
1438
|
+
default: "standard"
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1441
|
+
/** The child a freshly placed transition holds. */
|
|
1442
|
+
const transitionExampleChild = {
|
|
1443
|
+
component: "Paper",
|
|
1444
|
+
props: {
|
|
1445
|
+
p: 3,
|
|
1446
|
+
width: "12rem"
|
|
1447
|
+
},
|
|
1448
|
+
children: ["Content that moves"]
|
|
1449
|
+
};
|
|
1450
|
+
// src/Collapse/Collapse.catalog.ts
|
|
1451
|
+
const collapseOrientationValues = ["vertical", "horizontal"];
|
|
1452
|
+
const collapseCatalog = defineCatalogEntry()({
|
|
1453
|
+
summary: "Opens and closes its content by its height, or its width.",
|
|
1454
|
+
isPlaceable: true,
|
|
1455
|
+
example: {
|
|
1456
|
+
component: "Collapse",
|
|
1457
|
+
props: { isShown: true },
|
|
1458
|
+
children: ["Content that opens and closes"]
|
|
1459
|
+
},
|
|
1460
|
+
variants: [],
|
|
1461
|
+
options: {
|
|
1462
|
+
...transitionOptions,
|
|
1463
|
+
orientation: {
|
|
1464
|
+
values: collapseOrientationValues,
|
|
1465
|
+
default: "vertical"
|
|
1466
|
+
},
|
|
1467
|
+
collapsedSize: {
|
|
1468
|
+
values: [
|
|
1469
|
+
0,
|
|
1470
|
+
24,
|
|
1471
|
+
48
|
|
1472
|
+
],
|
|
1473
|
+
default: 0
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
content: { children: "children" }
|
|
1477
|
+
});
|
|
1478
|
+
// src/Fade/Fade.catalog.ts
|
|
1479
|
+
const fadeCatalog = defineCatalogEntry()({
|
|
1480
|
+
summary: "Fades one child in and out by its opacity.",
|
|
1481
|
+
isPlaceable: true,
|
|
1482
|
+
example: {
|
|
1483
|
+
component: "Fade",
|
|
1484
|
+
props: { isShown: true },
|
|
1485
|
+
children: [transitionExampleChild]
|
|
1486
|
+
},
|
|
1487
|
+
variants: [],
|
|
1488
|
+
options: { ...transitionOptions },
|
|
1489
|
+
content: { children: "child" }
|
|
1490
|
+
});
|
|
1491
|
+
// src/Grow/Grow.catalog.ts
|
|
1492
|
+
const growCatalog = defineCatalogEntry()({
|
|
1493
|
+
summary: "Grows one child in from a little smaller, fading as it does, and shrinks it out.",
|
|
1494
|
+
isPlaceable: true,
|
|
1495
|
+
example: {
|
|
1496
|
+
component: "Grow",
|
|
1497
|
+
props: { isShown: true },
|
|
1498
|
+
children: [transitionExampleChild]
|
|
1499
|
+
},
|
|
1500
|
+
variants: [],
|
|
1501
|
+
options: { ...transitionOptions },
|
|
1502
|
+
content: { children: "child" }
|
|
1503
|
+
});
|
|
1504
|
+
// src/Slide/Slide.catalog.ts
|
|
1505
|
+
const slideDirectionValues = [
|
|
1506
|
+
"up",
|
|
1507
|
+
"down",
|
|
1508
|
+
"left",
|
|
1509
|
+
"right"
|
|
1510
|
+
];
|
|
1511
|
+
const slideCatalog = defineCatalogEntry()({
|
|
1512
|
+
summary: "Slides one child in from an edge of the window and back out.",
|
|
1513
|
+
isPlaceable: true,
|
|
1514
|
+
example: {
|
|
1515
|
+
component: "Slide",
|
|
1516
|
+
props: { isShown: true },
|
|
1517
|
+
children: [transitionExampleChild]
|
|
1518
|
+
},
|
|
1519
|
+
variants: [],
|
|
1520
|
+
options: {
|
|
1521
|
+
...transitionOptions,
|
|
1522
|
+
direction: {
|
|
1523
|
+
values: slideDirectionValues,
|
|
1524
|
+
default: "down"
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
content: { children: "child" }
|
|
1528
|
+
});
|
|
1529
|
+
// src/Zoom/Zoom.catalog.ts
|
|
1530
|
+
const zoomCatalog = defineCatalogEntry()({
|
|
1531
|
+
summary: "Zooms one child in from nothing and out to nothing.",
|
|
1532
|
+
isPlaceable: true,
|
|
1533
|
+
example: {
|
|
1534
|
+
component: "Zoom",
|
|
1535
|
+
props: { isShown: true },
|
|
1536
|
+
children: [transitionExampleChild]
|
|
1537
|
+
},
|
|
1538
|
+
variants: [],
|
|
1539
|
+
options: { ...transitionOptions },
|
|
1540
|
+
content: { children: "child" }
|
|
1541
|
+
});
|
|
1542
|
+
// src/Menu/ContextMenu/ContextMenu.catalog.ts
|
|
685
1543
|
const contextMenuCatalog = defineCatalogEntry()({
|
|
686
1544
|
summary: "A `MenuList` opened by a right-click over its `target`, at the pointer.",
|
|
687
1545
|
isPlaceable: false,
|
|
@@ -732,6 +1590,7 @@ const contextMenuCatalog = defineCatalogEntry()({
|
|
|
732
1590
|
],
|
|
733
1591
|
default: 8
|
|
734
1592
|
},
|
|
1593
|
+
borderRadius: { scale: "radii" },
|
|
735
1594
|
layer: { scale: "zOrder" },
|
|
736
1595
|
marginThreshold: { scale: "space" }
|
|
737
1596
|
},
|
|
@@ -743,8 +1602,7 @@ const contextMenuCatalog = defineCatalogEntry()({
|
|
|
743
1602
|
},
|
|
744
1603
|
domEvents: ["onSelect", "onClose"]
|
|
745
1604
|
});
|
|
746
|
-
|
|
747
|
-
//#region src/CircularProgress/CircularProgress.catalog.ts
|
|
1605
|
+
// src/CircularProgress/CircularProgress.catalog.ts
|
|
748
1606
|
const circularProgressVariantValues = ["indeterminate", "determinate"];
|
|
749
1607
|
const circularProgressEasingValues = [
|
|
750
1608
|
"linear",
|
|
@@ -821,8 +1679,7 @@ const circularProgressCatalog = defineCatalogEntry()({
|
|
|
821
1679
|
},
|
|
822
1680
|
content: {}
|
|
823
1681
|
});
|
|
824
|
-
|
|
825
|
-
//#region src/Drawer/Drawer.catalog.ts
|
|
1682
|
+
// src/Drawer/Drawer.catalog.ts
|
|
826
1683
|
const drawerAnchorValues = [
|
|
827
1684
|
"left",
|
|
828
1685
|
"right",
|
|
@@ -969,8 +1826,7 @@ const drawerToggleCatalog = defineCatalogEntry()({
|
|
|
969
1826
|
},
|
|
970
1827
|
domEvents: ["onClick"]
|
|
971
1828
|
});
|
|
972
|
-
|
|
973
|
-
//#region src/Flex/Flex.catalog.ts
|
|
1829
|
+
// src/Flex/Flex.catalog.ts
|
|
974
1830
|
const flexDirectionValues = [
|
|
975
1831
|
"row",
|
|
976
1832
|
"row-reverse",
|
|
@@ -1068,8 +1924,7 @@ const flexCatalog = defineCatalogEntry()({
|
|
|
1068
1924
|
},
|
|
1069
1925
|
content: { children: "children" }
|
|
1070
1926
|
});
|
|
1071
|
-
|
|
1072
|
-
//#region src/FocusTrap/FocusTrap.catalog.ts
|
|
1927
|
+
// src/FocusTrap/FocusTrap.catalog.ts
|
|
1073
1928
|
const focusTrapCatalog = defineCatalogEntry()({
|
|
1074
1929
|
summary: "Keeps keyboard focus within its children while it is enabled.",
|
|
1075
1930
|
isPlaceable: false,
|
|
@@ -1103,8 +1958,7 @@ const focusTrapCatalog = defineCatalogEntry()({
|
|
|
1103
1958
|
},
|
|
1104
1959
|
content: { children: "children" }
|
|
1105
1960
|
});
|
|
1106
|
-
|
|
1107
|
-
//#region src/Form/Form.catalog.ts
|
|
1961
|
+
// src/Form/Form.catalog.ts
|
|
1108
1962
|
const nameField = node("FormControl", {}, [node("Flex", {
|
|
1109
1963
|
flexDirection: "column",
|
|
1110
1964
|
gap: 1,
|
|
@@ -1153,8 +2007,7 @@ const formCatalog = defineCatalogEntry()({
|
|
|
1153
2007
|
domEvents: ["onSubmit"],
|
|
1154
2008
|
preview: { width: 360 }
|
|
1155
2009
|
});
|
|
1156
|
-
|
|
1157
|
-
//#region src/FormControl/FormControl.catalog.ts
|
|
2010
|
+
// src/FormControl/FormControl.catalog.ts
|
|
1158
2011
|
const formControlCatalog = defineCatalogEntry()({
|
|
1159
2012
|
summary: "One form field - a label, a control and helper text, wired together by a shared id.",
|
|
1160
2013
|
isPlaceable: true,
|
|
@@ -1208,8 +2061,7 @@ const formControlCatalog = defineCatalogEntry()({
|
|
|
1208
2061
|
content: { children: "children" },
|
|
1209
2062
|
preview: { width: 320 }
|
|
1210
2063
|
});
|
|
1211
|
-
|
|
1212
|
-
//#region src/FormHelperText/FormHelperText.catalog.ts
|
|
2064
|
+
// src/FormHelperText/FormHelperText.catalog.ts
|
|
1213
2065
|
const formHelperTextCatalog = defineCatalogEntry()({
|
|
1214
2066
|
summary: "Hint or error text under a field, read by assistive tech as the control's description.",
|
|
1215
2067
|
isPlaceable: false,
|
|
@@ -1231,8 +2083,7 @@ const formHelperTextCatalog = defineCatalogEntry()({
|
|
|
1231
2083
|
},
|
|
1232
2084
|
content: { children: "children" }
|
|
1233
2085
|
});
|
|
1234
|
-
|
|
1235
|
-
//#region src/FormLabel/FormLabel.catalog.ts
|
|
2086
|
+
// src/FormLabel/FormLabel.catalog.ts
|
|
1236
2087
|
const formLabelCatalog = defineCatalogEntry()({
|
|
1237
2088
|
summary: "A field's label, linked to its control - and marked required - through `FormControl`.",
|
|
1238
2089
|
isPlaceable: false,
|
|
@@ -1251,8 +2102,7 @@ const formLabelCatalog = defineCatalogEntry()({
|
|
|
1251
2102
|
},
|
|
1252
2103
|
content: { children: "children" }
|
|
1253
2104
|
});
|
|
1254
|
-
|
|
1255
|
-
//#region src/Grid/Grid.catalog.ts
|
|
2105
|
+
// src/Grid/Grid.catalog.ts
|
|
1256
2106
|
const gridAutoFlowValues = [
|
|
1257
2107
|
"row",
|
|
1258
2108
|
"column",
|
|
@@ -1335,8 +2185,7 @@ const gridCatalog = defineCatalogEntry()({
|
|
|
1335
2185
|
content: { children: "children" },
|
|
1336
2186
|
preview: { width: 320 }
|
|
1337
2187
|
});
|
|
1338
|
-
|
|
1339
|
-
//#region src/Icon/Icon.catalog.ts
|
|
2188
|
+
// src/Icon/Icon.catalog.ts
|
|
1340
2189
|
const iconNameValues = [
|
|
1341
2190
|
"hub",
|
|
1342
2191
|
"code",
|
|
@@ -1396,8 +2245,7 @@ const iconCatalog = defineCatalogEntry()({
|
|
|
1396
2245
|
},
|
|
1397
2246
|
content: {}
|
|
1398
2247
|
});
|
|
1399
|
-
|
|
1400
|
-
//#region src/Image/Image.catalog.ts
|
|
2248
|
+
// src/Image/Image.catalog.ts
|
|
1401
2249
|
const imageObjectFitValues = [
|
|
1402
2250
|
"cover",
|
|
1403
2251
|
"contain",
|
|
@@ -1447,15 +2295,14 @@ const imageCatalog = defineCatalogEntry()({
|
|
|
1447
2295
|
},
|
|
1448
2296
|
content: {}
|
|
1449
2297
|
});
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1453
|
-
const inputRangeValueLabelValues = [
|
|
2298
|
+
// src/RangeInput/RangeInput.catalog.ts
|
|
2299
|
+
const rangeInputTrackValues = ["normal", "inverted"];
|
|
2300
|
+
const rangeInputValueLabelValues = [
|
|
1454
2301
|
"off",
|
|
1455
2302
|
"auto",
|
|
1456
2303
|
"on"
|
|
1457
2304
|
];
|
|
1458
|
-
const
|
|
2305
|
+
const rangeInputOrientationValues = ["horizontal", "vertical"];
|
|
1459
2306
|
const variantProps$1 = {
|
|
1460
2307
|
single: {
|
|
1461
2308
|
defaultValue: 40,
|
|
@@ -1474,11 +2321,11 @@ const variantLabels$12 = {
|
|
|
1474
2321
|
range: "A range",
|
|
1475
2322
|
marks: "With marks"
|
|
1476
2323
|
};
|
|
1477
|
-
const
|
|
2324
|
+
const rangeInputCatalog = defineCatalogEntry()({
|
|
1478
2325
|
summary: "A slider: one value on a range, or two or more thumbs for a range of values.",
|
|
1479
2326
|
isPlaceable: true,
|
|
1480
2327
|
example: {
|
|
1481
|
-
component: "
|
|
2328
|
+
component: "RangeInput",
|
|
1482
2329
|
props: {
|
|
1483
2330
|
defaultValue: 40,
|
|
1484
2331
|
"aria-label": "Value"
|
|
@@ -1489,7 +2336,7 @@ const inputRangeCatalog = defineCatalogEntry()({
|
|
|
1489
2336
|
name,
|
|
1490
2337
|
label: variantLabels$12[name],
|
|
1491
2338
|
example: {
|
|
1492
|
-
component: "
|
|
2339
|
+
component: "RangeInput",
|
|
1493
2340
|
props: variantProps$1[name],
|
|
1494
2341
|
children: []
|
|
1495
2342
|
}
|
|
@@ -1523,15 +2370,15 @@ const inputRangeCatalog = defineCatalogEntry()({
|
|
|
1523
2370
|
default: false
|
|
1524
2371
|
},
|
|
1525
2372
|
orientation: {
|
|
1526
|
-
values:
|
|
2373
|
+
values: rangeInputOrientationValues,
|
|
1527
2374
|
default: "horizontal"
|
|
1528
2375
|
},
|
|
1529
2376
|
track: {
|
|
1530
|
-
values:
|
|
2377
|
+
values: rangeInputTrackValues,
|
|
1531
2378
|
default: "normal"
|
|
1532
2379
|
},
|
|
1533
2380
|
valueLabel: {
|
|
1534
|
-
values:
|
|
2381
|
+
values: rangeInputValueLabelValues,
|
|
1535
2382
|
default: "off"
|
|
1536
2383
|
},
|
|
1537
2384
|
shouldSwapThumbs: {
|
|
@@ -1563,8 +2410,7 @@ const inputRangeCatalog = defineCatalogEntry()({
|
|
|
1563
2410
|
},
|
|
1564
2411
|
domEvents: ["onChangeCommitted"]
|
|
1565
2412
|
});
|
|
1566
|
-
|
|
1567
|
-
//#region src/LinearProgress/LinearProgress.catalog.ts
|
|
2413
|
+
// src/LinearProgress/LinearProgress.catalog.ts
|
|
1568
2414
|
const linearProgressVariantValues = [
|
|
1569
2415
|
"indeterminate",
|
|
1570
2416
|
"determinate",
|
|
@@ -1649,8 +2495,7 @@ const linearProgressCatalog = defineCatalogEntry()({
|
|
|
1649
2495
|
content: {},
|
|
1650
2496
|
preview: { width: 240 }
|
|
1651
2497
|
});
|
|
1652
|
-
|
|
1653
|
-
//#region src/Link/Link.catalog.ts
|
|
2498
|
+
// src/Link/Link.catalog.ts
|
|
1654
2499
|
const linkUnderlineValues = [
|
|
1655
2500
|
"always",
|
|
1656
2501
|
"hover",
|
|
@@ -1759,6 +2604,7 @@ const menuCatalog = defineCatalogEntry()({
|
|
|
1759
2604
|
],
|
|
1760
2605
|
default: 8
|
|
1761
2606
|
},
|
|
2607
|
+
borderRadius: { scale: "radii" },
|
|
1762
2608
|
layer: { scale: "zOrder" },
|
|
1763
2609
|
marginThreshold: { scale: "space" },
|
|
1764
2610
|
defaultOpen: {
|
|
@@ -1774,8 +2620,7 @@ const menuCatalog = defineCatalogEntry()({
|
|
|
1774
2620
|
},
|
|
1775
2621
|
domEvents: ["onSelect", "onClose"]
|
|
1776
2622
|
});
|
|
1777
|
-
|
|
1778
|
-
//#region src/Menu/MenuDivider/MenuDivider.catalog.ts
|
|
2623
|
+
// src/Menu/MenuDivider/MenuDivider.catalog.ts
|
|
1779
2624
|
const menuDividerCatalog = defineCatalogEntry()({
|
|
1780
2625
|
summary: "A line between groups of rows in a `MenuList`.",
|
|
1781
2626
|
isPlaceable: false,
|
|
@@ -1853,8 +2698,7 @@ const menuItemCatalog = defineCatalogEntry()({
|
|
|
1853
2698
|
},
|
|
1854
2699
|
domEvents: ["onClick"]
|
|
1855
2700
|
});
|
|
1856
|
-
|
|
1857
|
-
//#region src/Menu/MenuItems/MenuItems.catalog.ts
|
|
2701
|
+
// src/Menu/MenuItems/MenuItems.catalog.ts
|
|
1858
2702
|
const menuItemsCatalog = defineCatalogEntry()({
|
|
1859
2703
|
summary: "A `MenuList`'s rows from data - rows, dividers and submenus as entries.",
|
|
1860
2704
|
isPlaceable: false,
|
|
@@ -1867,8 +2711,7 @@ const menuItemsCatalog = defineCatalogEntry()({
|
|
|
1867
2711
|
options: {},
|
|
1868
2712
|
content: {}
|
|
1869
2713
|
});
|
|
1870
|
-
|
|
1871
|
-
//#region src/Menu/MenuList/MenuList.catalog.ts
|
|
2714
|
+
// src/Menu/MenuList/MenuList.catalog.ts
|
|
1872
2715
|
const menuListCatalog = defineCatalogEntry()({
|
|
1873
2716
|
summary: "A `role=\"menu\"` list of `MenuItem` commands that owns the keyboard.",
|
|
1874
2717
|
isPlaceable: true,
|
|
@@ -1915,8 +2758,7 @@ const menuListCatalog = defineCatalogEntry()({
|
|
|
1915
2758
|
domEvents: ["onSelect"],
|
|
1916
2759
|
preview: { width: 220 }
|
|
1917
2760
|
});
|
|
1918
|
-
|
|
1919
|
-
//#region src/Modal/Modal.catalog.ts
|
|
2761
|
+
// src/Modal/Modal.catalog.ts
|
|
1920
2762
|
const modalScrollValues = ["paper", "body"];
|
|
1921
2763
|
const dialog = node("Paper", {
|
|
1922
2764
|
role: "dialog",
|
|
@@ -1998,8 +2840,7 @@ const modalCatalog = defineCatalogEntry()({
|
|
|
1998
2840
|
height: 320
|
|
1999
2841
|
}
|
|
2000
2842
|
});
|
|
2001
|
-
|
|
2002
|
-
//#region src/NativeSelect/NativeSelect.catalog.ts
|
|
2843
|
+
// src/NativeSelect/NativeSelect.catalog.ts
|
|
2003
2844
|
const nativeSelectVariantValues = [
|
|
2004
2845
|
"default",
|
|
2005
2846
|
"outlined",
|
|
@@ -2098,14 +2939,13 @@ const nativeSelectCatalog = defineCatalogEntry()({
|
|
|
2098
2939
|
},
|
|
2099
2940
|
preview: { width: 220 }
|
|
2100
2941
|
});
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
const numberFieldSpinButtonsValues = [
|
|
2942
|
+
// src/NumberInput/NumberInput.catalog.ts
|
|
2943
|
+
const numberInputSpinButtonsValues = [
|
|
2104
2944
|
"stacked",
|
|
2105
2945
|
"sides",
|
|
2106
2946
|
"none"
|
|
2107
2947
|
];
|
|
2108
|
-
const
|
|
2948
|
+
const numberInputVariantValues = [
|
|
2109
2949
|
"default",
|
|
2110
2950
|
"outlined",
|
|
2111
2951
|
"underline",
|
|
@@ -2124,22 +2964,22 @@ const example = {
|
|
|
2124
2964
|
decrementLabel: "Decrease",
|
|
2125
2965
|
"aria-label": "Quantity"
|
|
2126
2966
|
};
|
|
2127
|
-
const
|
|
2967
|
+
const numberInputCatalog = defineCatalogEntry()({
|
|
2128
2968
|
summary: "A field for a number, read in its locale and clamped to a range, stepped by keys or buttons.",
|
|
2129
2969
|
isPlaceable: true,
|
|
2130
2970
|
example: {
|
|
2131
|
-
component: "
|
|
2971
|
+
component: "NumberInput",
|
|
2132
2972
|
props: {
|
|
2133
2973
|
...example,
|
|
2134
2974
|
variant: "outlined"
|
|
2135
2975
|
},
|
|
2136
2976
|
children: []
|
|
2137
2977
|
},
|
|
2138
|
-
variants:
|
|
2978
|
+
variants: numberInputSpinButtonsValues.map((spinButtons) => ({
|
|
2139
2979
|
name: spinButtons,
|
|
2140
2980
|
label: spinLabels[spinButtons],
|
|
2141
2981
|
example: {
|
|
2142
|
-
component: "
|
|
2982
|
+
component: "NumberInput",
|
|
2143
2983
|
props: {
|
|
2144
2984
|
...example,
|
|
2145
2985
|
variant: "outlined",
|
|
@@ -2164,11 +3004,11 @@ const numberFieldCatalog = defineCatalogEntry()({
|
|
|
2164
3004
|
default: 1
|
|
2165
3005
|
},
|
|
2166
3006
|
spinButtons: {
|
|
2167
|
-
values:
|
|
3007
|
+
values: numberInputSpinButtonsValues,
|
|
2168
3008
|
default: "stacked"
|
|
2169
3009
|
},
|
|
2170
3010
|
variant: {
|
|
2171
|
-
values:
|
|
3011
|
+
values: numberInputVariantValues,
|
|
2172
3012
|
default: "default"
|
|
2173
3013
|
},
|
|
2174
3014
|
size: {
|
|
@@ -2212,7 +3052,10 @@ const numberFieldCatalog = defineCatalogEntry()({
|
|
|
2212
3052
|
default: false
|
|
2213
3053
|
}
|
|
2214
3054
|
},
|
|
2215
|
-
content: {
|
|
3055
|
+
content: {
|
|
3056
|
+
startContent: "child",
|
|
3057
|
+
endContent: "child"
|
|
3058
|
+
},
|
|
2216
3059
|
twoWay: {
|
|
2217
3060
|
prop: "value",
|
|
2218
3061
|
event: "onChange",
|
|
@@ -2220,8 +3063,7 @@ const numberFieldCatalog = defineCatalogEntry()({
|
|
|
2220
3063
|
},
|
|
2221
3064
|
domEvents: ["onChangeCommitted"]
|
|
2222
3065
|
});
|
|
2223
|
-
|
|
2224
|
-
//#region src/Pagination/Pagination.catalog.ts
|
|
3066
|
+
// src/Pagination/Pagination.catalog.ts
|
|
2225
3067
|
const paginationVariantValues = ["text", "outlined"];
|
|
2226
3068
|
const paginationShapeValues = ["circular", "rounded"];
|
|
2227
3069
|
const variantLabels$9 = {
|
|
@@ -2346,8 +3188,7 @@ const paginationItemCatalog = defineCatalogEntry()({
|
|
|
2346
3188
|
content: { page: "text" },
|
|
2347
3189
|
domEvents: ["onClick"]
|
|
2348
3190
|
});
|
|
2349
|
-
|
|
2350
|
-
//#region src/Paper/Paper.catalog.ts
|
|
3191
|
+
// src/Paper/Paper.catalog.ts
|
|
2351
3192
|
const paperCatalog = defineCatalogEntry()({
|
|
2352
3193
|
summary: "A plain raised surface with a theme shadow, background and radius.",
|
|
2353
3194
|
isPlaceable: true,
|
|
@@ -2466,8 +3307,7 @@ const popoverCatalog = defineCatalogEntry()({
|
|
|
2466
3307
|
content: { children: "children" },
|
|
2467
3308
|
domEvents: ["onClose"]
|
|
2468
3309
|
});
|
|
2469
|
-
|
|
2470
|
-
//#region src/Portal/Portal.catalog.ts
|
|
3310
|
+
// src/Portal/Portal.catalog.ts
|
|
2471
3311
|
const portalCatalog = defineCatalogEntry()({
|
|
2472
3312
|
summary: "Renders its children into another DOM node - the document body by default.",
|
|
2473
3313
|
isPlaceable: false,
|
|
@@ -2520,8 +3360,7 @@ const pressableCatalog = defineCatalogEntry()({
|
|
|
2520
3360
|
content: { children: "children" },
|
|
2521
3361
|
domEvents: ["onClick"]
|
|
2522
3362
|
});
|
|
2523
|
-
|
|
2524
|
-
//#region src/Quote/Quote.catalog.ts
|
|
3363
|
+
// src/Quote/Quote.catalog.ts
|
|
2525
3364
|
const quoteCatalog = defineCatalogEntry()({
|
|
2526
3365
|
summary: "A block set off by a primary left border, for quotes and terminal readouts.",
|
|
2527
3366
|
isPlaceable: true,
|
|
@@ -2545,8 +3384,7 @@ const quoteCatalog = defineCatalogEntry()({
|
|
|
2545
3384
|
content: { children: "children" },
|
|
2546
3385
|
preview: { width: 360 }
|
|
2547
3386
|
});
|
|
2548
|
-
|
|
2549
|
-
//#region src/Radio/Radio.catalog.ts
|
|
3387
|
+
// src/Radio/Radio.catalog.ts
|
|
2550
3388
|
const colorLabels$2 = {
|
|
2551
3389
|
default: "Default",
|
|
2552
3390
|
primary: "Primary",
|
|
@@ -2611,8 +3449,7 @@ const radioCatalog = defineCatalogEntry()({
|
|
|
2611
3449
|
read: "target.checked"
|
|
2612
3450
|
}
|
|
2613
3451
|
});
|
|
2614
|
-
|
|
2615
|
-
//#region src/Rating/Rating.catalog.ts
|
|
3452
|
+
// src/Rating/Rating.catalog.ts
|
|
2616
3453
|
const ratingPrecisionValues = [1, .5];
|
|
2617
3454
|
const sizes = {
|
|
2618
3455
|
sm: "Small",
|
|
@@ -2697,8 +3534,7 @@ const ratingCatalog = defineCatalogEntry()({
|
|
|
2697
3534
|
},
|
|
2698
3535
|
domEvents: ["onChangeActive"]
|
|
2699
3536
|
});
|
|
2700
|
-
|
|
2701
|
-
//#region src/Select/Select.catalog.ts
|
|
3537
|
+
// src/Select/Select.catalog.ts
|
|
2702
3538
|
const selectVariantValues = [
|
|
2703
3539
|
"default",
|
|
2704
3540
|
"outlined",
|
|
@@ -2792,9 +3628,9 @@ const selectCatalog = defineCatalogEntry()({
|
|
|
2792
3628
|
},
|
|
2793
3629
|
preview: { width: 220 }
|
|
2794
3630
|
});
|
|
2795
|
-
|
|
2796
|
-
//#region src/Sidebar/Sidebar/Sidebar.catalog.ts
|
|
3631
|
+
// src/Sidebar/Sidebar/Sidebar.catalog.ts
|
|
2797
3632
|
const sidebarAnchorValues = ["left", "right"];
|
|
3633
|
+
const sidebarLayoutValues = ["inline", "stacked"];
|
|
2798
3634
|
const sidebarVariantValues = [
|
|
2799
3635
|
"text",
|
|
2800
3636
|
"outlined",
|
|
@@ -2859,8 +3695,13 @@ const sidebarCatalog = defineCatalogEntry()({
|
|
|
2859
3695
|
values: sidebarVariantValues,
|
|
2860
3696
|
default: "text"
|
|
2861
3697
|
},
|
|
3698
|
+
layout: {
|
|
3699
|
+
values: sidebarLayoutValues,
|
|
3700
|
+
default: "inline"
|
|
3701
|
+
},
|
|
2862
3702
|
expandedWidth: { default: "14rem" },
|
|
2863
3703
|
collapsedWidth: { default: "3.5rem" },
|
|
3704
|
+
stackedWidth: { default: "5.5rem" },
|
|
2864
3705
|
hasPanel: {
|
|
2865
3706
|
values: [true, false],
|
|
2866
3707
|
default: false
|
|
@@ -2870,8 +3711,7 @@ const sidebarCatalog = defineCatalogEntry()({
|
|
|
2870
3711
|
},
|
|
2871
3712
|
content: { children: "children" }
|
|
2872
3713
|
});
|
|
2873
|
-
|
|
2874
|
-
//#region src/Sidebar/SidebarItem/SidebarItem.catalog.ts
|
|
3714
|
+
// src/Sidebar/SidebarItem/SidebarItem.catalog.ts
|
|
2875
3715
|
const sidebarItemVariantValues = [
|
|
2876
3716
|
"text",
|
|
2877
3717
|
"outlined",
|
|
@@ -2937,8 +3777,7 @@ const sidebarItemCatalog = defineCatalogEntry()({
|
|
|
2937
3777
|
},
|
|
2938
3778
|
domEvents: ["onSelect", "onClick"]
|
|
2939
3779
|
});
|
|
2940
|
-
|
|
2941
|
-
//#region src/Skeleton/Skeleton.catalog.ts
|
|
3780
|
+
// src/Skeleton/Skeleton.catalog.ts
|
|
2942
3781
|
const skeletonVariantValues = [
|
|
2943
3782
|
"text",
|
|
2944
3783
|
"circular",
|
|
@@ -3006,8 +3845,7 @@ const skeletonCatalog = defineCatalogEntry()({
|
|
|
3006
3845
|
height: 80
|
|
3007
3846
|
}
|
|
3008
3847
|
});
|
|
3009
|
-
|
|
3010
|
-
//#region src/Switch/Switch.catalog.ts
|
|
3848
|
+
// src/Switch/Switch.catalog.ts
|
|
3011
3849
|
const switchVariantValues = ["outside", "inside"];
|
|
3012
3850
|
const switchEdgeValues = [
|
|
3013
3851
|
"start",
|
|
@@ -3080,8 +3918,7 @@ const switchCatalog = defineCatalogEntry()({
|
|
|
3080
3918
|
read: "target.checked"
|
|
3081
3919
|
}
|
|
3082
3920
|
});
|
|
3083
|
-
|
|
3084
|
-
//#region src/Tabs/TabPanel/TabPanel.catalog.ts
|
|
3921
|
+
// src/Tabs/TabPanel/TabPanel.catalog.ts
|
|
3085
3922
|
const tabPanelCatalog = defineCatalogEntry()({
|
|
3086
3923
|
summary: "The content a tab shows - inside a `TabContext`, shown while its tab is selected.",
|
|
3087
3924
|
isPlaceable: false,
|
|
@@ -3145,12 +3982,12 @@ const tabCatalog = defineCatalogEntry()({
|
|
|
3145
3982
|
},
|
|
3146
3983
|
domEvents: ["onClick"]
|
|
3147
3984
|
});
|
|
3148
|
-
|
|
3149
|
-
//#region src/Tabs/Tabs/Tabs.catalog.ts
|
|
3985
|
+
// src/Tabs/Tabs/Tabs.catalog.ts
|
|
3150
3986
|
const tabsVariantValues = [
|
|
3151
3987
|
"underline",
|
|
3152
3988
|
"boxed",
|
|
3153
|
-
"enclosed"
|
|
3989
|
+
"enclosed",
|
|
3990
|
+
"tonal"
|
|
3154
3991
|
];
|
|
3155
3992
|
const tabsOrientationValues = ["horizontal", "vertical"];
|
|
3156
3993
|
const tabsOverflowBehaviorValues = [
|
|
@@ -3166,7 +4003,8 @@ const tabsScrollButtonsValues = [
|
|
|
3166
4003
|
const variantLabels$3 = {
|
|
3167
4004
|
underline: "Underline",
|
|
3168
4005
|
boxed: "Boxed",
|
|
3169
|
-
enclosed: "Enclosed"
|
|
4006
|
+
enclosed: "Enclosed",
|
|
4007
|
+
tonal: "Tonal"
|
|
3170
4008
|
};
|
|
3171
4009
|
const views = [
|
|
3172
4010
|
node("Tab", {
|
|
@@ -3274,8 +4112,7 @@ const tabsCatalog = defineCatalogEntry()({
|
|
|
3274
4112
|
domEvents: ["onTabClose"],
|
|
3275
4113
|
preview: { width: 360 }
|
|
3276
4114
|
});
|
|
3277
|
-
|
|
3278
|
-
//#region src/Tabs/TabContext/TabContext.catalog.ts
|
|
4115
|
+
// src/Tabs/TabContext/TabContext.catalog.ts
|
|
3279
4116
|
const tabContextCatalog = defineCatalogEntry()({
|
|
3280
4117
|
summary: "Holds the selected value for a `TabList` and the `TabPanel`s beside it, wherever they sit.",
|
|
3281
4118
|
isPlaceable: false,
|
|
@@ -3309,8 +4146,7 @@ const tabContextCatalog = defineCatalogEntry()({
|
|
|
3309
4146
|
read: "argument"
|
|
3310
4147
|
}
|
|
3311
4148
|
});
|
|
3312
|
-
|
|
3313
|
-
//#region src/Tabs/TabList/TabList.catalog.ts
|
|
4149
|
+
// src/Tabs/TabList/TabList.catalog.ts
|
|
3314
4150
|
const tabListCatalog = defineCatalogEntry()({
|
|
3315
4151
|
summary: "The `Tabs` of a `TabContext` - it shows the context's value and links each tab to its panel.",
|
|
3316
4152
|
isPlaceable: false,
|
|
@@ -3363,8 +4199,7 @@ const tabScrollButtonCatalog = defineCatalogEntry()({
|
|
|
3363
4199
|
content: { children: "children" },
|
|
3364
4200
|
domEvents: ["onClick"]
|
|
3365
4201
|
});
|
|
3366
|
-
|
|
3367
|
-
//#region src/Table/Table/Table.catalog.ts
|
|
4202
|
+
// src/Table/Table/Table.catalog.ts
|
|
3368
4203
|
const tableSizeValues = [
|
|
3369
4204
|
"sm",
|
|
3370
4205
|
"md",
|
|
@@ -3445,8 +4280,7 @@ const tableCatalog = defineCatalogEntry()({
|
|
|
3445
4280
|
content: { children: "children" },
|
|
3446
4281
|
preview: { width: 360 }
|
|
3447
4282
|
});
|
|
3448
|
-
|
|
3449
|
-
//#region src/Table/TableBody/TableBody.catalog.ts
|
|
4283
|
+
// src/Table/TableBody/TableBody.catalog.ts
|
|
3450
4284
|
const tableBodyCatalog = defineCatalogEntry()({
|
|
3451
4285
|
summary: "The body section of a `Table` - its data rows, with cells rendered as `<td>`.",
|
|
3452
4286
|
isPlaceable: false,
|
|
@@ -3471,8 +4305,7 @@ const tableBodyCatalog = defineCatalogEntry()({
|
|
|
3471
4305
|
},
|
|
3472
4306
|
content: { children: "children" }
|
|
3473
4307
|
});
|
|
3474
|
-
|
|
3475
|
-
//#region src/Table/TableCell/TableCell.catalog.ts
|
|
4308
|
+
// src/Table/TableCell/TableCell.catalog.ts
|
|
3476
4309
|
const tableCellVariantValues = [
|
|
3477
4310
|
"head",
|
|
3478
4311
|
"body",
|
|
@@ -3525,8 +4358,7 @@ const tableCellCatalog = defineCatalogEntry()({
|
|
|
3525
4358
|
},
|
|
3526
4359
|
content: { children: "children" }
|
|
3527
4360
|
});
|
|
3528
|
-
|
|
3529
|
-
//#region src/Table/TableContainer/TableContainer.catalog.ts
|
|
4361
|
+
// src/Table/TableContainer/TableContainer.catalog.ts
|
|
3530
4362
|
const tableContainerCatalog = defineCatalogEntry()({
|
|
3531
4363
|
summary: "A scroll wrapper for a `Table` - a wide table scrolls sideways inside it, and a bounded height lets `hasStickyHeader` stick.",
|
|
3532
4364
|
isPlaceable: false,
|
|
@@ -3557,8 +4389,7 @@ const tableContainerCatalog = defineCatalogEntry()({
|
|
|
3557
4389
|
content: { children: "children" },
|
|
3558
4390
|
preview: { width: 360 }
|
|
3559
4391
|
});
|
|
3560
|
-
|
|
3561
|
-
//#region src/Table/TableControl/TableControl.catalog.ts
|
|
4392
|
+
// src/Table/TableControl/TableControl.catalog.ts
|
|
3562
4393
|
const tableControlCatalog = defineCatalogEntry()({
|
|
3563
4394
|
summary: "Renders the visible rows of a dataset inside `TableBody` - sorted by `useTableSort` and sliced by `useTablePagination`, through a row render function.",
|
|
3564
4395
|
isPlaceable: false,
|
|
@@ -3571,8 +4402,7 @@ const tableControlCatalog = defineCatalogEntry()({
|
|
|
3571
4402
|
options: {},
|
|
3572
4403
|
content: { children: "none" }
|
|
3573
4404
|
});
|
|
3574
|
-
|
|
3575
|
-
//#region src/Table/TableFooter/TableFooter.catalog.ts
|
|
4405
|
+
// src/Table/TableFooter/TableFooter.catalog.ts
|
|
3576
4406
|
const tableFooterCatalog = defineCatalogEntry()({
|
|
3577
4407
|
summary: "The footer section of a `Table` - totals or a `TablePagination` row below the body.",
|
|
3578
4408
|
isPlaceable: false,
|
|
@@ -3589,8 +4419,7 @@ const tableFooterCatalog = defineCatalogEntry()({
|
|
|
3589
4419
|
},
|
|
3590
4420
|
content: { children: "children" }
|
|
3591
4421
|
});
|
|
3592
|
-
|
|
3593
|
-
//#region src/Table/TableHead/TableHead.catalog.ts
|
|
4422
|
+
// src/Table/TableHead/TableHead.catalog.ts
|
|
3594
4423
|
const tableHeadCatalog = defineCatalogEntry()({
|
|
3595
4424
|
summary: "The header section of a `Table` - its column-title row, with cells rendered as `<th scope=\"col\">`.",
|
|
3596
4425
|
isPlaceable: false,
|
|
@@ -3653,8 +4482,7 @@ const tablePaginationCatalog = defineCatalogEntry()({
|
|
|
3653
4482
|
},
|
|
3654
4483
|
preview: { width: 480 }
|
|
3655
4484
|
});
|
|
3656
|
-
|
|
3657
|
-
//#region src/Table/TablePaginationActions/TablePaginationActions.catalog.ts
|
|
4485
|
+
// src/Table/TablePaginationActions/TablePaginationActions.catalog.ts
|
|
3658
4486
|
const tablePaginationActionsCatalog = defineCatalogEntry()({
|
|
3659
4487
|
summary: "The first, previous, next and last page buttons inside `TablePagination`, disabled at the bounds of `count`.",
|
|
3660
4488
|
isPlaceable: false,
|
|
@@ -3693,8 +4521,7 @@ const tablePaginationActionsCatalog = defineCatalogEntry()({
|
|
|
3693
4521
|
read: "argument"
|
|
3694
4522
|
}
|
|
3695
4523
|
});
|
|
3696
|
-
|
|
3697
|
-
//#region src/Table/TableRow/TableRow.catalog.ts
|
|
4524
|
+
// src/Table/TableRow/TableRow.catalog.ts
|
|
3698
4525
|
const tableRowCatalog = defineCatalogEntry()({
|
|
3699
4526
|
summary: "One row of a `Table` section - its `TableCell`s, optionally shaded on hover or when selected.",
|
|
3700
4527
|
isPlaceable: false,
|
|
@@ -3756,8 +4583,7 @@ const tableSortLabelCatalog = defineCatalogEntry()({
|
|
|
3756
4583
|
content: { children: "children" },
|
|
3757
4584
|
domEvents: ["onClick"]
|
|
3758
4585
|
});
|
|
3759
|
-
|
|
3760
|
-
//#region src/TextInput/TextInput.catalog.ts
|
|
4586
|
+
// src/TextInput/TextInput.catalog.ts
|
|
3761
4587
|
const textInputVariantValues = [
|
|
3762
4588
|
"default",
|
|
3763
4589
|
"outlined",
|
|
@@ -3844,8 +4670,7 @@ const textInputCatalog = defineCatalogEntry()({
|
|
|
3844
4670
|
read: "target.value"
|
|
3845
4671
|
}
|
|
3846
4672
|
});
|
|
3847
|
-
|
|
3848
|
-
//#region src/ToggleButton/ToggleButton/ToggleButton.catalog.ts
|
|
4673
|
+
// src/ToggleButton/ToggleButton/ToggleButton.catalog.ts
|
|
3849
4674
|
const colorLabels$1 = {
|
|
3850
4675
|
default: "Default",
|
|
3851
4676
|
primary: "Primary",
|
|
@@ -3908,8 +4733,7 @@ const toggleButtonCatalog = defineCatalogEntry()({
|
|
|
3908
4733
|
},
|
|
3909
4734
|
domEvents: ["onClick", "onChange"]
|
|
3910
4735
|
});
|
|
3911
|
-
|
|
3912
|
-
//#region src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.catalog.ts
|
|
4736
|
+
// src/ToggleButton/ToggleButtonGroup/ToggleButtonGroup.catalog.ts
|
|
3913
4737
|
const toggleButtonGroupOrientationValues = ["horizontal", "vertical"];
|
|
3914
4738
|
const colorLabels = {
|
|
3915
4739
|
default: "Default",
|
|
@@ -3991,8 +4815,7 @@ const toggleButtonGroupCatalog = defineCatalogEntry()({
|
|
|
3991
4815
|
read: "argument"
|
|
3992
4816
|
}
|
|
3993
4817
|
});
|
|
3994
|
-
|
|
3995
|
-
//#region src/TransferList/TransferList.catalog.ts
|
|
4818
|
+
// src/TransferList/TransferList.catalog.ts
|
|
3996
4819
|
const items = [
|
|
3997
4820
|
{
|
|
3998
4821
|
value: "apple",
|
|
@@ -4105,8 +4928,7 @@ const transferListCatalog = defineCatalogEntry()({
|
|
|
4105
4928
|
read: "argument"
|
|
4106
4929
|
}
|
|
4107
4930
|
});
|
|
4108
|
-
|
|
4109
|
-
//#region src/Typography/Typography.catalog.ts
|
|
4931
|
+
// src/Typography/Typography.catalog.ts
|
|
4110
4932
|
const typographyAlignValues = [
|
|
4111
4933
|
"left",
|
|
4112
4934
|
"center",
|
|
@@ -4180,8 +5002,7 @@ const typographyCatalog = defineCatalogEntry()({
|
|
|
4180
5002
|
},
|
|
4181
5003
|
content: { children: "children" }
|
|
4182
5004
|
});
|
|
4183
|
-
|
|
4184
|
-
//#region src/View/View.catalog.ts
|
|
5005
|
+
// src/View/View.catalog.ts
|
|
4185
5006
|
const viewCatalog = defineCatalogEntry()({
|
|
4186
5007
|
summary: "The base box - a div styled through theme tokens for space, color, borders and position.",
|
|
4187
5008
|
isPlaceable: true,
|
|
@@ -4199,10 +5020,93 @@ const viewCatalog = defineCatalogEntry()({
|
|
|
4199
5020
|
},
|
|
4200
5021
|
content: { children: "children" }
|
|
4201
5022
|
});
|
|
4202
|
-
|
|
4203
|
-
//#region src/catalog/sources.ts
|
|
5023
|
+
// src/catalog/sources.ts
|
|
4204
5024
|
/** Every component, keyed by its export name. */
|
|
4205
5025
|
const catalogSources = {
|
|
5026
|
+
Accordion: {
|
|
5027
|
+
entry: accordionCatalog,
|
|
5028
|
+
folder: "Accordion"
|
|
5029
|
+
},
|
|
5030
|
+
AccordionActions: {
|
|
5031
|
+
entry: accordionActionsCatalog,
|
|
5032
|
+
folder: "Accordion",
|
|
5033
|
+
family: "Accordion"
|
|
5034
|
+
},
|
|
5035
|
+
AccordionDetails: {
|
|
5036
|
+
entry: accordionDetailsCatalog,
|
|
5037
|
+
folder: "Accordion",
|
|
5038
|
+
family: "Accordion"
|
|
5039
|
+
},
|
|
5040
|
+
AccordionGroup: {
|
|
5041
|
+
entry: accordionGroupCatalog,
|
|
5042
|
+
folder: "Accordion",
|
|
5043
|
+
family: "Accordion"
|
|
5044
|
+
},
|
|
5045
|
+
AccordionSummary: {
|
|
5046
|
+
entry: accordionSummaryCatalog,
|
|
5047
|
+
folder: "Accordion",
|
|
5048
|
+
family: "Accordion"
|
|
5049
|
+
},
|
|
5050
|
+
Chip: {
|
|
5051
|
+
entry: chipCatalog,
|
|
5052
|
+
folder: "Chip"
|
|
5053
|
+
},
|
|
5054
|
+
Badge: {
|
|
5055
|
+
entry: badgeCatalog,
|
|
5056
|
+
folder: "Badge"
|
|
5057
|
+
},
|
|
5058
|
+
Alert: {
|
|
5059
|
+
entry: alertCatalog,
|
|
5060
|
+
folder: "Alert"
|
|
5061
|
+
},
|
|
5062
|
+
AlertTitle: {
|
|
5063
|
+
entry: alertTitleCatalog,
|
|
5064
|
+
folder: "Alert",
|
|
5065
|
+
family: "Alert"
|
|
5066
|
+
},
|
|
5067
|
+
Fab: {
|
|
5068
|
+
entry: fabCatalog,
|
|
5069
|
+
folder: "Fab"
|
|
5070
|
+
},
|
|
5071
|
+
Snackbar: {
|
|
5072
|
+
entry: snackbarCatalog,
|
|
5073
|
+
folder: "Snackbar"
|
|
5074
|
+
},
|
|
5075
|
+
Tooltip: {
|
|
5076
|
+
entry: tooltipCatalog,
|
|
5077
|
+
folder: "Tooltip"
|
|
5078
|
+
},
|
|
5079
|
+
Autocomplete: {
|
|
5080
|
+
entry: autocompleteCatalog,
|
|
5081
|
+
folder: "Autocomplete"
|
|
5082
|
+
},
|
|
5083
|
+
ScrollArea: {
|
|
5084
|
+
entry: scrollAreaCatalog,
|
|
5085
|
+
folder: "ScrollArea"
|
|
5086
|
+
},
|
|
5087
|
+
FabMenu: {
|
|
5088
|
+
entry: fabMenuCatalog,
|
|
5089
|
+
folder: "FabMenu"
|
|
5090
|
+
},
|
|
5091
|
+
FabMenuItem: {
|
|
5092
|
+
entry: fabMenuItemCatalog,
|
|
5093
|
+
folder: "FabMenu",
|
|
5094
|
+
family: "FabMenu"
|
|
5095
|
+
},
|
|
5096
|
+
NavTree: {
|
|
5097
|
+
entry: navTreeCatalog,
|
|
5098
|
+
folder: "NavTree"
|
|
5099
|
+
},
|
|
5100
|
+
NavGroup: {
|
|
5101
|
+
entry: navGroupCatalog,
|
|
5102
|
+
folder: "NavTree",
|
|
5103
|
+
family: "NavTree"
|
|
5104
|
+
},
|
|
5105
|
+
NavLink: {
|
|
5106
|
+
entry: navLinkCatalog,
|
|
5107
|
+
folder: "NavTree",
|
|
5108
|
+
family: "NavTree"
|
|
5109
|
+
},
|
|
4206
5110
|
AppBar: {
|
|
4207
5111
|
entry: appBarCatalog,
|
|
4208
5112
|
folder: "AppBar"
|
|
@@ -4235,6 +5139,26 @@ const catalogSources = {
|
|
|
4235
5139
|
entry: checkboxCatalog,
|
|
4236
5140
|
folder: "Checkbox"
|
|
4237
5141
|
},
|
|
5142
|
+
Collapse: {
|
|
5143
|
+
entry: collapseCatalog,
|
|
5144
|
+
folder: "Collapse"
|
|
5145
|
+
},
|
|
5146
|
+
Fade: {
|
|
5147
|
+
entry: fadeCatalog,
|
|
5148
|
+
folder: "Fade"
|
|
5149
|
+
},
|
|
5150
|
+
Grow: {
|
|
5151
|
+
entry: growCatalog,
|
|
5152
|
+
folder: "Grow"
|
|
5153
|
+
},
|
|
5154
|
+
Slide: {
|
|
5155
|
+
entry: slideCatalog,
|
|
5156
|
+
folder: "Slide"
|
|
5157
|
+
},
|
|
5158
|
+
Zoom: {
|
|
5159
|
+
entry: zoomCatalog,
|
|
5160
|
+
folder: "Zoom"
|
|
5161
|
+
},
|
|
4238
5162
|
ContextMenu: {
|
|
4239
5163
|
entry: contextMenuCatalog,
|
|
4240
5164
|
folder: "Menu",
|
|
@@ -4289,9 +5213,9 @@ const catalogSources = {
|
|
|
4289
5213
|
entry: imageCatalog,
|
|
4290
5214
|
folder: "Image"
|
|
4291
5215
|
},
|
|
4292
|
-
|
|
4293
|
-
entry:
|
|
4294
|
-
folder: "
|
|
5216
|
+
RangeInput: {
|
|
5217
|
+
entry: rangeInputCatalog,
|
|
5218
|
+
folder: "RangeInput"
|
|
4295
5219
|
},
|
|
4296
5220
|
LinearProgress: {
|
|
4297
5221
|
entry: linearProgressCatalog,
|
|
@@ -4332,9 +5256,9 @@ const catalogSources = {
|
|
|
4332
5256
|
entry: nativeSelectCatalog,
|
|
4333
5257
|
folder: "NativeSelect"
|
|
4334
5258
|
},
|
|
4335
|
-
|
|
4336
|
-
entry:
|
|
4337
|
-
folder: "
|
|
5259
|
+
NumberInput: {
|
|
5260
|
+
entry: numberInputCatalog,
|
|
5261
|
+
folder: "NumberInput"
|
|
4338
5262
|
},
|
|
4339
5263
|
Pagination: {
|
|
4340
5264
|
entry: paginationCatalog,
|
|
@@ -4503,8 +5427,7 @@ const catalogSources = {
|
|
|
4503
5427
|
folder: "View"
|
|
4504
5428
|
}
|
|
4505
5429
|
};
|
|
4506
|
-
|
|
4507
|
-
//#region src/catalog/styleScales.ts
|
|
5430
|
+
// src/catalog/styleScales.ts
|
|
4508
5431
|
const DESIGN_SYSTEM_SCALES = {
|
|
4509
5432
|
color: "text",
|
|
4510
5433
|
bg: "background",
|
|
@@ -4539,8 +5462,7 @@ function readStyleScales() {
|
|
|
4539
5462
|
...DESIGN_SYSTEM_SCALES
|
|
4540
5463
|
};
|
|
4541
5464
|
}
|
|
4542
|
-
|
|
4543
|
-
//#region src/catalog/index.ts
|
|
5465
|
+
// src/catalog/index.ts
|
|
4544
5466
|
const designSystemCategories = componentCategories.map((category) => ({
|
|
4545
5467
|
label: category.label,
|
|
4546
5468
|
components: category.items.filter((item) => item.pkg === "design-system").map((item) => item.name)
|
|
@@ -4563,5 +5485,4 @@ const catalog = {
|
|
|
4563
5485
|
styleScales: readStyleScales(),
|
|
4564
5486
|
components
|
|
4565
5487
|
};
|
|
4566
|
-
//#endregion
|
|
4567
5488
|
export { catalog };
|