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