@soroush.tech/design-system 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/Accordion/Accordion.cjs +1 -1
- package/dist/Accordion/Accordion.d.cts +5 -6
- package/dist/Accordion/Accordion.d.mts +5 -6
- package/dist/Accordion/Accordion.mjs +2 -2
- package/dist/Accordion/AccordionActions.cjs +1 -1
- package/dist/Accordion/AccordionActions.d.cts +2 -3
- package/dist/Accordion/AccordionActions.d.mts +2 -3
- package/dist/Accordion/AccordionActions.mjs +1 -1
- package/dist/Accordion/AccordionDetails.cjs +1 -1
- package/dist/Accordion/AccordionDetails.d.cts +2 -3
- package/dist/Accordion/AccordionDetails.d.mts +2 -3
- package/dist/Accordion/AccordionDetails.mjs +1 -1
- package/dist/Accordion/AccordionGroup.cjs +1 -1
- package/dist/Accordion/AccordionGroup.d.cts +4 -5
- package/dist/Accordion/AccordionGroup.d.mts +4 -5
- package/dist/Accordion/AccordionGroup.mjs +2 -2
- package/dist/Accordion/AccordionSummary.cjs +2 -2
- package/dist/Accordion/AccordionSummary.d.cts +3 -4
- package/dist/Accordion/AccordionSummary.d.mts +3 -4
- package/dist/Accordion/AccordionSummary.mjs +3 -3
- package/dist/Alert/Alert.cjs +3 -3
- package/dist/Alert/Alert.d.cts +5 -6
- package/dist/Alert/Alert.d.mts +5 -6
- package/dist/Alert/Alert.mjs +4 -4
- package/dist/Alert/AlertTitle.cjs +1 -1
- package/dist/Alert/AlertTitle.d.cts +2 -3
- package/dist/Alert/AlertTitle.d.mts +2 -3
- package/dist/Alert/AlertTitle.mjs +1 -1
- package/dist/AppBar.cjs +2 -2
- package/dist/AppBar.d.cts +6 -7
- package/dist/AppBar.d.mts +6 -7
- package/dist/AppBar.mjs +2 -2
- package/dist/Autocomplete.cjs +6 -6
- package/dist/Autocomplete.d.cts +6 -6
- package/dist/Autocomplete.d.mts +6 -6
- package/dist/Autocomplete.mjs +7 -7
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +8 -8
- package/dist/Avatar.d.mts +8 -8
- package/dist/Avatar.mjs +3 -3
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +3 -4
- package/dist/Backdrop.d.mts +3 -4
- package/dist/Backdrop.mjs +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.d.cts +7 -8
- package/dist/Badge.d.mts +7 -8
- package/dist/Badge.mjs +2 -2
- package/dist/Breadcrumbs.cjs +2 -2
- package/dist/Breadcrumbs.d.cts +5 -6
- package/dist/Breadcrumbs.d.mts +5 -6
- package/dist/Breadcrumbs.mjs +3 -3
- package/dist/Button.cjs +4 -4
- package/dist/Button.d.cts +46 -2
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +4 -4
- package/dist/ButtonGroup.cjs +2 -2
- package/dist/ButtonGroup.d.cts +38 -2
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +2 -2
- package/dist/Card.cjs +4 -4
- package/dist/Card.d.cts +7 -8
- package/dist/Card.d.mts +7 -8
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.cjs +2 -2
- package/dist/Checkbox.d.cts +5 -6
- package/dist/Checkbox.d.mts +5 -6
- package/dist/Checkbox.mjs +2 -2
- package/dist/Chip.cjs +3 -3
- package/dist/Chip.d.cts +7 -8
- package/dist/Chip.d.mts +7 -8
- package/dist/Chip.mjs +4 -4
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +7 -8
- package/dist/CircularProgress.d.mts +7 -8
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Collapse.cjs +1 -1
- package/dist/Collapse.d.cts +33 -2
- package/dist/Collapse.d.mts +1 -1
- package/dist/Collapse.mjs +2 -2
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +9 -10
- package/dist/Drawer.d.mts +9 -10
- package/dist/Drawer.mjs +2 -2
- package/dist/Fab.cjs +1 -1
- package/dist/Fab.d.cts +30 -2
- package/dist/Fab.d.mts +1 -1
- package/dist/Fab.mjs +2 -2
- package/dist/FabMenu/FabMenu.cjs +1 -1
- package/dist/FabMenu/FabMenu.d.cts +5 -6
- package/dist/FabMenu/FabMenu.d.mts +5 -6
- package/dist/FabMenu/FabMenu.mjs +1 -1
- package/dist/FabMenu/FabMenuItem.d.cts +3 -4
- package/dist/FabMenu/FabMenuItem.d.mts +3 -4
- package/dist/{FabMenu-fQGSZCjr.cjs → FabMenu-CvHrONFi.cjs} +4 -4
- package/dist/{FabMenu-BqBhZs0S.mjs → FabMenu-JJzhFdJP.mjs} +5 -5
- package/dist/FabMenu.cjs +1 -1
- package/dist/FabMenu.mjs +1 -1
- package/dist/Fade.cjs +1 -1
- package/dist/Fade.d.cts +3 -4
- package/dist/Fade.d.mts +3 -4
- package/dist/Fade.mjs +1 -1
- package/dist/Flex.cjs +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.d.cts +2 -3
- package/dist/FocusTrap.d.mts +2 -3
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +1 -1
- package/dist/Form.d.cts +5 -6
- package/dist/Form.d.mts +5 -6
- package/dist/Form.mjs +1 -1
- package/dist/FormControl.cjs +3 -3
- package/dist/FormControl.d.cts +8 -9
- package/dist/FormControl.d.mts +8 -9
- package/dist/FormControl.mjs +3 -3
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +3 -4
- package/dist/FormHelperText.d.mts +3 -4
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +3 -4
- package/dist/FormLabel.d.mts +3 -4
- package/dist/FormLabel.mjs +1 -1
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.d.cts +5 -6
- package/dist/Grid.d.mts +5 -6
- package/dist/Grid.mjs +1 -1
- package/dist/Grow.cjs +1 -1
- package/dist/Grow.d.cts +3 -4
- package/dist/Grow.d.mts +3 -4
- package/dist/Grow.mjs +1 -1
- package/dist/{Icon-C5Iz5ekp.cjs → Icon-C4QMiNHJ.cjs} +1 -1
- package/dist/{Icon-XpXU-SuF.mjs → Icon-gVHlFgdH.mjs} +2 -2
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +1 -1
- package/dist/Image.d.cts +3 -4
- package/dist/Image.d.mts +3 -4
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +7 -8
- package/dist/LinearProgress.d.mts +7 -8
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +2 -2
- package/dist/Link.d.cts +4 -5
- package/dist/Link.d.mts +4 -5
- package/dist/Link.mjs +3 -3
- package/dist/Menu/ContextMenu.cjs +3 -3
- package/dist/Menu/ContextMenu.d.cts +9 -9
- package/dist/Menu/ContextMenu.d.mts +9 -9
- package/dist/Menu/ContextMenu.mjs +4 -4
- package/dist/Menu/Menu.cjs +1 -1
- package/dist/Menu/Menu.d.cts +1 -1
- package/dist/Menu/Menu.d.mts +1 -1
- package/dist/Menu/Menu.mjs +1 -1
- package/dist/Menu/MenuDivider.cjs +1 -1
- package/dist/Menu/MenuDivider.d.cts +2 -3
- package/dist/Menu/MenuDivider.d.mts +2 -3
- package/dist/Menu/MenuDivider.mjs +1 -1
- package/dist/Menu/MenuItems.cjs +1 -1
- package/dist/Menu/MenuItems.d.cts +32 -2
- package/dist/Menu/MenuItems.d.mts +1 -1
- package/dist/Menu/MenuItems.mjs +1 -1
- package/dist/Menu/MenuList.cjs +1 -1
- package/dist/Menu/MenuList.d.cts +44 -3
- package/dist/Menu/MenuList.d.mts +2 -2
- package/dist/Menu/MenuList.mjs +1 -1
- package/dist/{Menu-ULMXG0BP.mjs → Menu-31GXflmP.mjs} +5 -5
- package/dist/{Menu-DiBVHD7B.cjs → Menu-CTqplttU.cjs} +4 -4
- package/dist/Menu.cjs +2 -2
- package/dist/Menu.d.cts +4 -4
- package/dist/Menu.d.mts +4 -4
- package/dist/Menu.mjs +2 -2
- package/dist/{MenuItem-BChqYIsh.cjs → MenuItem-Be4xFEww.cjs} +5 -5
- package/dist/{MenuItem-Kvciwc9F.mjs → MenuItem-DfS3Q2Ha.mjs} +6 -6
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.d.cts +73 -2
- package/dist/MenuItem.d.mts +1 -1
- package/dist/MenuItem.mjs +1 -1
- package/dist/{MenuList-BUTy11DW.mjs → MenuList-CoLoldE2.mjs} +2 -2
- package/dist/{MenuList-CpPmRGzw.cjs → MenuList-Cr9L4x9N.cjs} +1 -1
- package/dist/{MenuListContext-BN1VV12-.d.mts → MenuListContext-BIcjLUEc.d.cts} +2 -2
- package/dist/{MenuListContext-BkQzp2DA.d.cts → MenuListContext-D976fSth.d.mts} +2 -2
- package/dist/{Modal-gQcAJAKH.cjs → Modal-6SWc5gG5.cjs} +1 -1
- package/dist/{Modal-DR4TRQSH.mjs → Modal-EH6RduGc.mjs} +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +91 -2
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +4 -4
- package/dist/NativeSelect.d.cts +10 -11
- package/dist/NativeSelect.d.mts +10 -11
- package/dist/NativeSelect.mjs +5 -5
- package/dist/NavTree/NavGroup.cjs +1 -1
- package/dist/NavTree/NavGroup.d.cts +2 -3
- package/dist/NavTree/NavGroup.d.mts +2 -3
- package/dist/NavTree/NavGroup.mjs +1 -1
- package/dist/NavTree/NavLink.cjs +2 -2
- package/dist/NavTree/NavLink.d.cts +3 -4
- package/dist/NavTree/NavLink.d.mts +3 -4
- package/dist/NavTree/NavLink.mjs +2 -2
- package/dist/NavTree/NavTree.cjs +1 -1
- package/dist/NavTree/NavTree.d.cts +3 -4
- package/dist/NavTree/NavTree.d.mts +3 -4
- package/dist/NavTree/NavTree.mjs +1 -1
- package/dist/NavTree.d.cts +1 -1
- package/dist/NavTree.d.mts +1 -1
- package/dist/NumberInput.cjs +6 -6
- package/dist/NumberInput.d.cts +5 -6
- package/dist/NumberInput.d.mts +5 -6
- package/dist/NumberInput.mjs +7 -7
- package/dist/Pagination/PaginationItem.cjs +2 -2
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +2 -2
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.d.cts +22 -3
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +1 -1
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.d.cts +1 -2
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +3 -3
- package/dist/{Popover-BniabG7D.cjs → Popover-CPB9wIFY.cjs} +3 -3
- package/dist/{Popover-Dnmeo0Av.mjs → Popover-JCnuplk4.mjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +7 -7
- package/dist/Popover.d.mts +7 -7
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.d.cts +15 -2
- package/dist/Pressable.cjs +3 -3
- package/dist/Pressable.d.cts +46 -2
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +3 -3
- package/dist/Quote.cjs +1 -1
- package/dist/Quote.d.cts +5 -6
- package/dist/Quote.d.mts +5 -6
- package/dist/Quote.mjs +1 -1
- package/dist/Radio.cjs +2 -2
- package/dist/Radio.d.cts +5 -6
- package/dist/Radio.d.mts +5 -6
- package/dist/Radio.mjs +2 -2
- package/dist/RangeInput.cjs +3 -3
- package/dist/RangeInput.d.cts +7 -7
- package/dist/RangeInput.d.mts +7 -7
- package/dist/RangeInput.mjs +4 -4
- package/dist/Rating.cjs +5 -5
- package/dist/Rating.d.cts +3 -4
- package/dist/Rating.d.mts +3 -4
- package/dist/Rating.mjs +6 -6
- package/dist/ScrollArea.cjs +1 -1
- package/dist/ScrollArea.d.cts +5 -5
- package/dist/ScrollArea.d.mts +5 -5
- package/dist/ScrollArea.mjs +2 -2
- package/dist/Select.cjs +6 -6
- package/dist/Select.d.cts +10 -10
- package/dist/Select.d.mts +10 -10
- package/dist/Select.mjs +6 -6
- package/dist/Sidebar/Sidebar.cjs +1 -1
- package/dist/Sidebar/Sidebar.d.cts +3 -4
- package/dist/Sidebar/Sidebar.d.mts +3 -4
- package/dist/Sidebar/Sidebar.mjs +1 -1
- package/dist/Sidebar/SidebarItem.cjs +4 -4
- package/dist/Sidebar/SidebarItem.d.cts +6 -7
- package/dist/Sidebar/SidebarItem.d.mts +6 -7
- package/dist/Sidebar/SidebarItem.mjs +4 -4
- package/dist/Sidebar.d.cts +1 -1
- package/dist/Sidebar.d.mts +1 -1
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +6 -7
- package/dist/Skeleton.d.mts +6 -7
- package/dist/Skeleton.mjs +1 -1
- package/dist/Slide.cjs +1 -1
- package/dist/Slide.d.cts +4 -5
- package/dist/Slide.d.mts +4 -5
- package/dist/Slide.mjs +1 -1
- package/dist/Snackbar.cjs +3 -3
- package/dist/Snackbar.d.cts +8 -9
- package/dist/Snackbar.d.mts +7 -8
- package/dist/Snackbar.mjs +4 -4
- package/dist/Switch.cjs +3 -3
- package/dist/Switch.d.cts +7 -8
- package/dist/Switch.d.mts +7 -8
- package/dist/Switch.mjs +3 -3
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.d.cts +8 -9
- package/dist/Table/Table.d.mts +8 -9
- package/dist/Table/Table.mjs +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +6 -7
- package/dist/Table/TableBody.d.mts +6 -7
- package/dist/Table/TableBody.mjs +1 -1
- package/dist/Table/TableCell.cjs +2 -2
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableCell.mjs +2 -2
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableContainer.d.cts +4 -5
- package/dist/Table/TableContainer.d.mts +4 -5
- package/dist/Table/TableContainer.mjs +1 -1
- package/dist/Table/TableControl.d.cts +3 -4
- package/dist/Table/TableControl.d.mts +3 -4
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +6 -7
- package/dist/Table/TableFooter.d.mts +6 -7
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +6 -7
- package/dist/Table/TableHead.d.mts +6 -7
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +2 -2
- package/dist/Table/TablePagination.d.cts +5 -6
- package/dist/Table/TablePagination.d.mts +5 -6
- package/dist/Table/TablePagination.mjs +2 -2
- package/dist/Table/TablePaginationActions.cjs +2 -2
- package/dist/Table/TablePaginationActions.d.cts +28 -2
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +3 -3
- package/dist/Table/TableRow.cjs +2 -2
- package/dist/Table/TableRow.d.cts +6 -7
- package/dist/Table/TableRow.d.mts +6 -7
- package/dist/Table/TableRow.mjs +2 -2
- package/dist/Table/TableSortLabel.cjs +2 -2
- package/dist/Table/TableSortLabel.d.cts +22 -2
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +2 -2
- package/dist/Table/hooks.d.cts +6 -6
- package/dist/Table/hooks.d.mts +6 -6
- package/dist/Table.d.cts +6 -6
- package/dist/Table.d.mts +6 -6
- package/dist/{TableContext-BNwokJ3f.d.cts → TableContext-BsJpQ-9A.d.cts} +1 -1
- package/dist/{TableContext-jOlk5jxs.d.mts → TableContext-rP21CNyq.d.mts} +1 -1
- package/dist/Tabs/Tab.cjs +4 -4
- package/dist/Tabs/Tab.d.cts +5 -6
- package/dist/Tabs/Tab.d.mts +5 -6
- package/dist/Tabs/Tab.mjs +5 -5
- package/dist/Tabs/TabContext.d.cts +3 -4
- package/dist/Tabs/TabContext.d.mts +3 -4
- package/dist/Tabs/TabList.cjs +1 -1
- package/dist/Tabs/TabList.d.cts +3 -4
- package/dist/Tabs/TabList.d.mts +3 -4
- package/dist/Tabs/TabList.mjs +1 -1
- package/dist/Tabs/TabPanel.cjs +2 -2
- package/dist/Tabs/TabPanel.d.cts +4 -5
- package/dist/Tabs/TabPanel.d.mts +4 -5
- package/dist/Tabs/TabPanel.mjs +3 -3
- package/dist/Tabs/TabScrollButton.cjs +3 -3
- package/dist/Tabs/TabScrollButton.d.cts +31 -2
- package/dist/Tabs/TabScrollButton.d.mts +1 -1
- package/dist/Tabs/TabScrollButton.mjs +4 -4
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.d.cts +104 -3
- package/dist/Tabs/Tabs.d.mts +2 -2
- package/dist/Tabs/Tabs.mjs +1 -1
- package/dist/{Tabs-t2KrGCQo.mjs → Tabs-DPCVKt9p.mjs} +9 -9
- package/dist/{Tabs-BqYnn6OV.cjs → Tabs-DipA7I2c.cjs} +8 -8
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.d.cts +3 -3
- package/dist/Tabs.d.mts +3 -3
- package/dist/Tabs.mjs +1 -1
- package/dist/{TabsContext-D5E7s9i5.d.mts → TabsContext-DkPIvEhN.d.cts} +1 -1
- package/dist/{TabsContext-i57cha5W.d.cts → TabsContext-cm-4w5HV.d.mts} +1 -1
- package/dist/TextInput.cjs +4 -4
- package/dist/TextInput.d.cts +8 -9
- package/dist/TextInput.d.mts +8 -9
- package/dist/TextInput.mjs +5 -5
- package/dist/ToggleButton/ToggleButton.cjs +5 -5
- package/dist/ToggleButton/ToggleButton.d.cts +3 -4
- package/dist/ToggleButton/ToggleButton.d.mts +3 -4
- package/dist/ToggleButton/ToggleButton.mjs +6 -6
- package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +3 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +3 -4
- package/dist/ToggleButton/ToggleButtonGroup.mjs +4 -4
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/{Tooltip-rkGm1HnP.cjs → Tooltip-Bzt4mirM.cjs} +3 -3
- package/dist/{Tooltip-Cx4ez9vY.mjs → Tooltip-CqGB8Pgm.mjs} +4 -4
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.d.cts +9 -9
- package/dist/Tooltip.d.mts +9 -9
- package/dist/Tooltip.mjs +1 -1
- package/dist/TransferList.cjs +5 -5
- package/dist/TransferList.d.cts +4 -4
- package/dist/TransferList.d.mts +4 -4
- package/dist/TransferList.mjs +6 -6
- package/dist/Typography.cjs +1 -1
- package/dist/Typography.d.cts +25 -3
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -2
- package/dist/View.cjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/Zoom.cjs +1 -1
- package/dist/Zoom.d.cts +3 -4
- package/dist/Zoom.d.mts +3 -4
- package/dist/Zoom.mjs +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.d.cts +3 -3
- package/dist/catalog.d.mts +3 -3
- package/dist/catalog.mjs +1 -1
- package/dist/{dividerLine-DFuLn1zU.cjs → dividerLine-BL7qyMS7.cjs} +1 -1
- package/dist/{dividerLine-BC8E38Ed.mjs → dividerLine-CjHOunP8.mjs} +1 -1
- package/dist/emotion-b3mnJPXZ.mjs +5 -0
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +5 -5
- package/dist/engine.d.mts +4 -4
- package/dist/engine.mjs +1 -1
- package/dist/{index-C_K0hsEr.d.mts → index-2yg1ycx-.d.mts} +1 -1
- package/dist/{index-DXUVsHux.d.mts → index-B4rMxnAI.d.mts} +1 -1
- package/dist/{index-CZofj6vc.d.cts → index-BX05FTzq.d.mts} +3 -3
- package/dist/index-BzWmnUjW.d.mts +1 -0
- package/dist/{index-DPCh-ols.d.mts → index-CCA5pNXc.d.mts} +2 -2
- package/dist/{index-vls8Jhdl.d.cts → index-CF6cynkC.d.mts} +1 -1
- package/dist/{index-BJIqJbF4.d.mts → index-CR-3ET8R.d.mts} +2 -2
- package/dist/{index-C9jnQ-mQ.d.mts → index-CRopLcd3.d.mts} +1 -1
- package/dist/{index-F81TdZtB.d.mts → index-C_6hDoX5.d.mts} +5 -5
- package/dist/{index-C6uLwNRF.d.cts → index-CgZujUBc.d.mts} +5 -5
- package/dist/{index-CLTH0nFB.d.cts → index-CjIlieUz.d.cts} +2 -2
- package/dist/{index-CwWM6Xfz.d.cts → index-Ck1kZGKo.d.cts} +1 -1
- package/dist/{index-xhbtDtsc.d.mts → index-DA-h_wfm.d.mts} +1 -1
- package/dist/{index-CPmemva9.d.mts → index-DW6ItSg9.d.mts} +5 -5
- package/dist/{index-CRbfhyQ6.d.mts → index-DWPBIj3Q.d.mts} +2 -2
- package/dist/{index-CGlDeiGk.d.cts → index-DXpsn7vq.d.mts} +2 -2
- package/dist/{index-Cf2D7Y1b.d.cts → index-DuW9P_vU.d.mts} +2 -2
- package/dist/{index-BDVi1DNs.d.mts → index-Dv-JacXL.d.mts} +2 -2
- package/dist/{index-CK-uaK5U.d.cts → index-MipJMh6w.d.cts} +7 -7
- package/dist/{index-DA3M2w5w.d.cts → index-UdCNBn1j.d.cts} +6 -5
- package/dist/{index-ClTo3BEJ.d.mts → index-WepMprJw.d.cts} +3 -3
- package/dist/{index-DOimZ1Wo.d.mts → index-fbOIRIGi.d.mts} +2 -2
- package/dist/{index-BhWBXIkH.d.cts → index-fiGzE2_0.d.mts} +3 -3
- package/dist/{index-d5jm3kxO.d.cts → index-goQ0P1tj.d.mts} +2 -2
- package/dist/{index-BwFPSXSw.d.mts → index-m7brCUK5.d.mts} +1 -1
- package/dist/{index-B-1sp9oV.d.mts → index-nw0pvCoK.d.mts} +9 -9
- package/dist/{index-DOnYRzqY.d.cts → index-uxQ6yoYo.d.mts} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{inputVariantStyles-DCGRUY9c.mjs → inputVariantStyles-GEyyFeaq.mjs} +1 -1
- package/dist/{inputVariantStyles-DhClkDHY.cjs → inputVariantStyles-GsJaknFt.cjs} +1 -1
- package/dist/{rolldown-runtime-CiKaZLfC.cjs → rolldown-runtime-C_Pgydhf.cjs} +4 -4
- package/dist/{src-yC1f5WR2.cjs → src-B1PmaZ-2.cjs} +2 -2
- package/dist/{src-B-rNjHIL.mjs → src-BSo7bM2g.mjs} +8 -8
- package/dist/style.d.cts +8 -8
- package/dist/style.d.mts +8 -8
- package/dist/style.mjs +2 -2
- package/dist/{surfaceSystem-DI6bqK5F.cjs → surfaceSystem-BeGFjViA.cjs} +1 -1
- package/dist/{surfaceSystem-4XDqbvf4.mjs → surfaceSystem-Bsd7LqgB.mjs} +1 -1
- package/dist/testing.d.cts +1 -2
- package/dist/testing.d.mts +1 -2
- package/dist/{theme-DyyZQFzQ.mjs → theme-B6LFWZ98.mjs} +2 -2
- package/dist/theme.d.cts +59 -3
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +2 -2
- package/dist/{themes-D-knykK0.mjs → themes-D3yxQwT9.mjs} +10 -10
- package/dist/{useTablePagination-DOLl6Ba7.d.cts → useTablePagination-Be__hayI.d.mts} +1 -1
- package/dist/{useTablePagination-bZTeweJ_.d.mts → useTableSort-DQWSd9Rf.d.cts} +23 -23
- package/dist/{useTransition-DnOAXNav.d.cts → useTransition-CdObuV2M.d.cts} +1 -1
- package/dist/{useTransition-Dk84FQFT.d.mts → useTransition-DwlKWjUJ.d.mts} +1 -1
- package/dist/{useTransitionChild-CFhlMm65.mjs → useTransitionChild-De79LIB9.mjs} +2 -2
- package/dist/utils.d.cts +4 -5
- package/dist/utils.d.mts +4 -5
- package/package.json +15 -15
- package/dist/emotion-E3pBNlXd.mjs +0 -5
- package/dist/index-3-LXZL7g.d.mts +0 -39
- package/dist/index-BMeqk34D.d.mts +0 -47
- package/dist/index-BYg-l1_n.d.cts +0 -23
- package/dist/index-BbWQZ2Wj.d.mts +0 -104
- package/dist/index-Bwry7fNj.d.mts +0 -22
- package/dist/index-C3D70-3U.d.mts +0 -74
- package/dist/index-COGZ6LV4.d.mts +0 -91
- package/dist/index-C_n4ZPpQ.d.mts +0 -1
- package/dist/index-Cc7Yhn7-.d.cts +0 -47
- package/dist/index-CoHM1HQY.d.cts +0 -30
- package/dist/index-Cp96BUYc.d.cts +0 -25
- package/dist/index-CvV0TCBK.d.cts +0 -59
- package/dist/index-CykbbqeN.d.cts +0 -33
- package/dist/index-Dh_9qMhj.d.mts +0 -34
- package/dist/index-DiQHPHUv.d.cts +0 -44
- package/dist/index-UloRwym_.d.cts +0 -16
- package/dist/index-YxsjfTkO.d.cts +0 -29
- package/dist/index-fwRQcB91.d.cts +0 -1
- package/dist/index-qgFJF8n2.d.cts +0 -32
- package/dist/{useTransitionChild-COlRozbU.cjs → useTransitionChild-B2W_GM3m.cjs} +1 -1
package/README.md
CHANGED
|
@@ -24,17 +24,26 @@ npm i @soroush.tech/design-system
|
|
|
24
24
|
|
|
25
25
|
## Use it with AI tools
|
|
26
26
|
|
|
27
|
+
Two skills teach a coding agent how to build with this library: a house-style skill, and a
|
|
28
|
+
WCAG 2.2 AA skill for contrast, labels, landmarks and accessibility tests. Both install for
|
|
29
|
+
whichever agents you use:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npx skills add soroush-tech/design-system
|
|
33
|
+
```
|
|
34
|
+
|
|
27
35
|
An MCP server serves this library's component inventory, every component's props
|
|
28
36
|
reference, and the live token contract, so an AI assistant writes against the real API
|
|
29
|
-
instead of guessing
|
|
37
|
+
instead of guessing. Add the hosted server, `https://mcp.soroush.design/mcp`, to any MCP
|
|
38
|
+
client; in Claude Code:
|
|
30
39
|
|
|
31
40
|
```sh
|
|
32
41
|
claude mcp add --transport http soroush https://mcp.soroush.design/mcp
|
|
33
42
|
```
|
|
34
43
|
|
|
35
44
|
It also runs locally over stdio (`npx -y @soroush.design/mcp`). Claude Code users can
|
|
36
|
-
install the plugin instead, which
|
|
37
|
-
|
|
45
|
+
install the plugin instead, which brings the skills, the server and a UI review agent in
|
|
46
|
+
one step:
|
|
38
47
|
|
|
39
48
|
```sh
|
|
40
49
|
claude plugin marketplace add soroush-tech/design-system
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
4
4
|
const require_themeDefault = require("../themeDefault-DbPHBbNO.cjs");
|
|
5
5
|
const require_getSurfaceRadius = require("../getSurfaceRadius-DwOn3ALC.cjs");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import {
|
|
1
|
+
import { nt as Theme } from "../index-MipJMh6w.cjs";
|
|
2
|
+
import { CollapseProps } from "../Collapse.cjs";
|
|
3
3
|
import { ComponentType, ReactNode, SyntheticEvent } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
/** What an `Accordion` hands the transition that opens and closes its region. */
|
|
6
|
-
type AccordionTransitionProps = Pick<CollapseProps, 'isShown' | 'children' | 'shouldAppear' | 'shouldMountOnEnter' | 'shouldUnmountOnExit' | 'timeout' | 'easing'>;
|
|
7
|
-
interface AccordionProps extends SpaceProps<Theme> {
|
|
6
|
+
export type AccordionTransitionProps = Pick<CollapseProps, 'isShown' | 'children' | 'shouldAppear' | 'shouldMountOnEnter' | 'shouldUnmountOnExit' | 'timeout' | 'easing'>;
|
|
7
|
+
export interface AccordionProps extends SpaceProps<Theme> {
|
|
8
8
|
/** An `AccordionSummary`, then what it opens - `AccordionDetails`, `AccordionActions`. */
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
/** Whether it is open. Controlled with `onChange`. */
|
|
@@ -35,5 +35,4 @@ interface AccordionProps extends SpaceProps<Theme> {
|
|
|
35
35
|
* Open or closed it owns, until `isExpanded` takes it over. In an `AccordionGroup` the arrows,
|
|
36
36
|
* Home and End move between the summaries, and the group may keep one open at a time.
|
|
37
37
|
*/
|
|
38
|
-
declare function Accordion({ children, isExpanded: isExpandedProp, defaultExpanded, onChange, disabled, hasGutters: hasGuttersProp, borderRadius: borderRadiusProp, bg: bgProp, textColor: textColorProp, transition: Transition, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionProps>): import("react").JSX.Element;
|
|
39
|
-
export { Accordion, AccordionProps, AccordionTransitionProps };
|
|
38
|
+
export declare function Accordion({ children, isExpanded: isExpandedProp, defaultExpanded, onChange, disabled, hasGutters: hasGuttersProp, borderRadius: borderRadiusProp, bg: bgProp, textColor: textColorProp, transition: Transition, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionProps>): import("react").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
2
|
-
import { r as CollapseProps } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-nw0pvCoK.mjs";
|
|
2
|
+
import { r as CollapseProps } from "../index-DXpsn7vq.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ComponentType, ReactNode, SyntheticEvent } from "react";
|
|
5
5
|
/** What an `Accordion` hands the transition that opens and closes its region. */
|
|
6
|
-
type AccordionTransitionProps = Pick<CollapseProps, 'isShown' | 'children' | 'shouldAppear' | 'shouldMountOnEnter' | 'shouldUnmountOnExit' | 'timeout' | 'easing'>;
|
|
7
|
-
interface AccordionProps extends SpaceProps<Theme> {
|
|
6
|
+
export type AccordionTransitionProps = Pick<CollapseProps, 'isShown' | 'children' | 'shouldAppear' | 'shouldMountOnEnter' | 'shouldUnmountOnExit' | 'timeout' | 'easing'>;
|
|
7
|
+
export interface AccordionProps extends SpaceProps<Theme> {
|
|
8
8
|
/** An `AccordionSummary`, then what it opens - `AccordionDetails`, `AccordionActions`. */
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
/** Whether it is open. Controlled with `onChange`. */
|
|
@@ -35,5 +35,4 @@ interface AccordionProps extends SpaceProps<Theme> {
|
|
|
35
35
|
* Open or closed it owns, until `isExpanded` takes it over. In an `AccordionGroup` the arrows,
|
|
36
36
|
* Home and End move between the summaries, and the group may keep one open at a time.
|
|
37
37
|
*/
|
|
38
|
-
declare function Accordion({ children, isExpanded: isExpandedProp, defaultExpanded, onChange, disabled, hasGutters: hasGuttersProp, borderRadius: borderRadiusProp, bg: bgProp, textColor: textColorProp, transition: Transition, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionProps>): import("react").JSX.Element;
|
|
39
|
-
export { Accordion, AccordionProps, AccordionTransitionProps };
|
|
38
|
+
export declare function Accordion({ children, isExpanded: isExpandedProp, defaultExpanded, onChange, disabled, hasGutters: hasGuttersProp, borderRadius: borderRadiusProp, bg: bgProp, textColor: textColorProp, transition: Transition, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionProps>): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-
|
|
2
|
-
import { n as useDefaultProps } from "../theme-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps } from "../theme-B6LFWZ98.mjs";
|
|
3
3
|
import { t as themeDefault } from "../themeDefault-BeZJzqJj.mjs";
|
|
4
4
|
import { t as getSurfaceRadius } from "../getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
5
|
import { Collapse } from "../Collapse.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_AccordionContext = require("../AccordionContext-CpSLhcF6.cjs");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AccordionActionsProps {
|
|
2
|
+
export interface AccordionActionsProps {
|
|
3
3
|
/** The buttons at the foot of the region. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description The foot of an `Accordion` region: its buttons, at the end of a row. */
|
|
9
|
-
declare function AccordionActions({ children, className, 'data-testid': dataTestid }: Readonly<AccordionActionsProps>): import("react").JSX.Element;
|
|
10
|
-
export { AccordionActions, AccordionActionsProps };
|
|
9
|
+
export declare function AccordionActions({ children, className, 'data-testid': dataTestid }: Readonly<AccordionActionsProps>): import("react").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AccordionActionsProps {
|
|
2
|
+
export interface AccordionActionsProps {
|
|
3
3
|
/** The buttons at the foot of the region. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description The foot of an `Accordion` region: its buttons, at the end of a row. */
|
|
9
|
-
declare function AccordionActions({ children, className, 'data-testid': dataTestid }: Readonly<AccordionActionsProps>): import("react").JSX.Element;
|
|
10
|
-
export { AccordionActions, AccordionActionsProps };
|
|
9
|
+
export declare function AccordionActions({ children, className, 'data-testid': dataTestid }: Readonly<AccordionActionsProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as styled, t as createShouldForwardProp } from "../src-
|
|
1
|
+
import { o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
2
|
import { a as useAccordion } from "../AccordionContext-CBiu9CIa.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/Accordion/AccordionActions/AccordionActions.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_AccordionContext = require("../AccordionContext-CpSLhcF6.cjs");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AccordionDetailsProps {
|
|
2
|
+
export interface AccordionDetailsProps {
|
|
3
3
|
/** What the accordion opens. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description What an `Accordion` opens: the padded body of its region. */
|
|
9
|
-
declare function AccordionDetails({ children, className, 'data-testid': dataTestid }: Readonly<AccordionDetailsProps>): import("react").JSX.Element;
|
|
10
|
-
export { AccordionDetails, AccordionDetailsProps };
|
|
9
|
+
export declare function AccordionDetails({ children, className, 'data-testid': dataTestid }: Readonly<AccordionDetailsProps>): import("react").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AccordionDetailsProps {
|
|
2
|
+
export interface AccordionDetailsProps {
|
|
3
3
|
/** What the accordion opens. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description What an `Accordion` opens: the padded body of its region. */
|
|
9
|
-
declare function AccordionDetails({ children, className, 'data-testid': dataTestid }: Readonly<AccordionDetailsProps>): import("react").JSX.Element;
|
|
10
|
-
export { AccordionDetails, AccordionDetailsProps };
|
|
9
|
+
export declare function AccordionDetails({ children, className, 'data-testid': dataTestid }: Readonly<AccordionDetailsProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as styled, t as createShouldForwardProp } from "../src-
|
|
1
|
+
import { o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
2
|
import { a as useAccordion } from "../AccordionContext-CBiu9CIa.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/Accordion/AccordionDetails/AccordionDetails.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
4
4
|
const require_AccordionContext = require("../AccordionContext-CpSLhcF6.cjs");
|
|
5
5
|
let react = require("react");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-MipJMh6w.cjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
|
-
type AccordionGroupVariant = 'separated' | 'attached';
|
|
5
|
-
interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
4
|
+
export type AccordionGroupVariant = 'separated' | 'attached';
|
|
5
|
+
export interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
6
6
|
/** The accordions. */
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
/** Opening one closes the others. Default: `false`. */
|
|
@@ -18,5 +18,4 @@ interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
|
18
18
|
* `isExclusive`, keep one open at a time. A summary that is off is skipped. An accordion given
|
|
19
19
|
* `isExpanded` is its owner's, and the group leaves it alone.
|
|
20
20
|
*/
|
|
21
|
-
declare function AccordionGroup({ children, isExclusive: isExclusiveProp, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionGroupProps>): import("react").JSX.Element;
|
|
22
|
-
export { AccordionGroup, AccordionGroupProps, AccordionGroupVariant };
|
|
21
|
+
export declare function AccordionGroup({ children, isExclusive: isExclusiveProp, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionGroupProps>): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-nw0pvCoK.mjs";
|
|
2
2
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
type AccordionGroupVariant = 'separated' | 'attached';
|
|
5
|
-
interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
4
|
+
export type AccordionGroupVariant = 'separated' | 'attached';
|
|
5
|
+
export interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
6
6
|
/** The accordions. */
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
/** Opening one closes the others. Default: `false`. */
|
|
@@ -18,5 +18,4 @@ interface AccordionGroupProps extends SpaceProps<Theme> {
|
|
|
18
18
|
* `isExclusive`, keep one open at a time. A summary that is off is skipped. An accordion given
|
|
19
19
|
* `isExpanded` is its owner's, and the group leaves it alone.
|
|
20
20
|
*/
|
|
21
|
-
declare function AccordionGroup({ children, isExclusive: isExclusiveProp, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionGroupProps>): import("react").JSX.Element;
|
|
22
|
-
export { AccordionGroup, AccordionGroupProps, AccordionGroupVariant };
|
|
21
|
+
export declare function AccordionGroup({ children, isExclusive: isExclusiveProp, variant: variantProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AccordionGroupProps>): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-
|
|
2
|
-
import { n as useDefaultProps } from "../theme-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps } from "../theme-B6LFWZ98.mjs";
|
|
3
3
|
import { n as AccordionGroupContext } from "../AccordionContext-CBiu9CIa.mjs";
|
|
4
4
|
import { useMemo, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
4
|
+
const require_Icon = require("../Icon-C4QMiNHJ.cjs");
|
|
4
5
|
const require_AccordionContext = require("../AccordionContext-CpSLhcF6.cjs");
|
|
5
|
-
const require_Icon = require("../Icon-C5Iz5ekp.cjs");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
8
8
|
// src/Accordion/AccordionSummary/AccordionSummary.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
type AccordionHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
-
interface AccordionSummaryProps {
|
|
2
|
+
export type AccordionHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export interface AccordionSummaryProps {
|
|
4
4
|
/** What the header says. */
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
/** The icon that turns as it opens. Default: the `expand_more` icon. */
|
|
@@ -15,5 +15,4 @@ interface AccordionSummaryProps {
|
|
|
15
15
|
* `aria-expanded` and `aria-controls` for its region. Enter and Space press it, as they press any
|
|
16
16
|
* button; in an `AccordionGroup` the arrows, Home and End move between summaries.
|
|
17
17
|
*/
|
|
18
|
-
declare function AccordionSummary({ children, expandIcon, headingLevel: headingLevelProp, className, 'data-testid': dataTestid }: Readonly<AccordionSummaryProps>): import("react").JSX.Element;
|
|
19
|
-
export { AccordionHeadingLevel, AccordionSummary, AccordionSummaryProps };
|
|
18
|
+
export declare function AccordionSummary({ children, expandIcon, headingLevel: headingLevelProp, className, 'data-testid': dataTestid }: Readonly<AccordionSummaryProps>): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
type AccordionHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
-
interface AccordionSummaryProps {
|
|
2
|
+
export type AccordionHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export interface AccordionSummaryProps {
|
|
4
4
|
/** What the header says. */
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
/** The icon that turns as it opens. Default: the `expand_more` icon. */
|
|
@@ -15,5 +15,4 @@ interface AccordionSummaryProps {
|
|
|
15
15
|
* `aria-expanded` and `aria-controls` for its region. Enter and Space press it, as they press any
|
|
16
16
|
* button; in an `AccordionGroup` the arrows, Home and End move between summaries.
|
|
17
17
|
*/
|
|
18
|
-
declare function AccordionSummary({ children, expandIcon, headingLevel: headingLevelProp, className, 'data-testid': dataTestid }: Readonly<AccordionSummaryProps>): import("react").JSX.Element;
|
|
19
|
-
export { AccordionHeadingLevel, AccordionSummary, AccordionSummaryProps };
|
|
18
|
+
export declare function AccordionSummary({ children, expandIcon, headingLevel: headingLevelProp, className, 'data-testid': dataTestid }: Readonly<AccordionSummaryProps>): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as src_exports, o as styled, t as createShouldForwardProp } from "../src-
|
|
2
|
-
import { n as useDefaultProps } from "../theme-
|
|
1
|
+
import { a as src_exports, o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps } from "../theme-B6LFWZ98.mjs";
|
|
3
|
+
import { t as Icon } from "../Icon-gVHlFgdH.mjs";
|
|
3
4
|
import { a as useAccordion, i as getSummaryId, r as getRegionId } from "../AccordionContext-CBiu9CIa.mjs";
|
|
4
|
-
import { t as Icon } from "../Icon-XpXU-SuF.mjs";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/Accordion/AccordionSummary/AccordionSummary.tsx
|
|
7
7
|
const SummaryHeading = styled("div", {
|
package/dist/Alert/Alert.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
3
|
-
const require_utils = require("../utils.cjs");
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
4
3
|
const require_theme = require("../theme-XJvMdOnY.cjs");
|
|
5
4
|
const require_getSurfaceRadius = require("../getSurfaceRadius-DwOn3ALC.cjs");
|
|
6
|
-
const require_Icon = require("../Icon-
|
|
5
|
+
const require_Icon = require("../Icon-C4QMiNHJ.cjs");
|
|
6
|
+
const require_utils = require("../utils.cjs");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
9
9
|
// src/Alert/Alert/Alert.tsx
|
package/dist/Alert/Alert.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-MipJMh6w.cjs";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
|
-
type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
5
|
-
type AlertVariant = 'standard' | 'contained' | 'outlined';
|
|
6
|
-
interface AlertProps extends SpaceProps<Theme> {
|
|
4
|
+
export type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
5
|
+
export type AlertVariant = 'standard' | 'contained' | 'outlined';
|
|
6
|
+
export interface AlertProps extends SpaceProps<Theme> {
|
|
7
7
|
/** The message. An `AlertTitle` may come first. */
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
/** Picks the icon and the palette color. Default: `'info'`. */
|
|
@@ -31,5 +31,4 @@ interface AlertProps extends SpaceProps<Theme> {
|
|
|
31
31
|
* and outlined, its text is the theme's text on a surface, so its contrast is the theme's; filled,
|
|
32
32
|
* it is the severity color's `contrastText`.
|
|
33
33
|
*/
|
|
34
|
-
declare function Alert({ children, severity: severityProp, variant: variantProp, icon, action, onClose, closeLabel: closeLabelProp, role: roleProp, borderRadius: borderRadiusProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AlertProps>): import("react").JSX.Element;
|
|
35
|
-
export { Alert, AlertProps, AlertSeverity, AlertVariant };
|
|
34
|
+
export declare function Alert({ children, severity: severityProp, variant: variantProp, icon, action, onClose, closeLabel: closeLabelProp, role: roleProp, borderRadius: borderRadiusProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AlertProps>): import("react").JSX.Element;
|
package/dist/Alert/Alert.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { nt as Theme } from "../index-
|
|
1
|
+
import { nt as Theme } from "../index-nw0pvCoK.mjs";
|
|
2
2
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { MouseEvent, ReactNode } from "react";
|
|
4
|
-
type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
5
|
-
type AlertVariant = 'standard' | 'contained' | 'outlined';
|
|
6
|
-
interface AlertProps extends SpaceProps<Theme> {
|
|
4
|
+
export type AlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
5
|
+
export type AlertVariant = 'standard' | 'contained' | 'outlined';
|
|
6
|
+
export interface AlertProps extends SpaceProps<Theme> {
|
|
7
7
|
/** The message. An `AlertTitle` may come first. */
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
/** Picks the icon and the palette color. Default: `'info'`. */
|
|
@@ -31,5 +31,4 @@ interface AlertProps extends SpaceProps<Theme> {
|
|
|
31
31
|
* and outlined, its text is the theme's text on a surface, so its contrast is the theme's; filled,
|
|
32
32
|
* it is the severity color's `contrastText`.
|
|
33
33
|
*/
|
|
34
|
-
declare function Alert({ children, severity: severityProp, variant: variantProp, icon, action, onClose, closeLabel: closeLabelProp, role: roleProp, borderRadius: borderRadiusProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AlertProps>): import("react").JSX.Element;
|
|
35
|
-
export { Alert, AlertProps, AlertSeverity, AlertVariant };
|
|
34
|
+
export declare function Alert({ children, severity: severityProp, variant: variantProp, icon, action, onClose, closeLabel: closeLabelProp, role: roleProp, borderRadius: borderRadiusProp, className, 'data-testid': dataTestid, ...spaceProps }: Readonly<AlertProps>): import("react").JSX.Element;
|
package/dist/Alert/Alert.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-
|
|
2
|
-
import {
|
|
3
|
-
import { n as useDefaultProps } from "../theme-DyyZQFzQ.mjs";
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "../src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps } from "../theme-B6LFWZ98.mjs";
|
|
4
3
|
import { t as getSurfaceRadius } from "../getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
|
-
import { t as Icon } from "../Icon-
|
|
4
|
+
import { t as Icon } from "../Icon-gVHlFgdH.mjs";
|
|
5
|
+
import { alpha } from "../utils.mjs";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/Alert/Alert/Alert.tsx
|
|
8
8
|
const SEVERITY_ICONS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-B1PmaZ-2.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
// src/Alert/AlertTitle/AlertTitle.tsx
|
|
5
5
|
const AlertTitleRoot = require_src.styled("div", {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AlertTitleProps {
|
|
2
|
+
export interface AlertTitleProps {
|
|
3
3
|
/** The title. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description The title of an `Alert`: its first line of the message, in a heavier weight. */
|
|
9
|
-
declare function AlertTitle({ children, className, 'data-testid': dataTestid }: Readonly<AlertTitleProps>): import("react").JSX.Element;
|
|
10
|
-
export { AlertTitle, AlertTitleProps };
|
|
9
|
+
export declare function AlertTitle({ children, className, 'data-testid': dataTestid }: Readonly<AlertTitleProps>): import("react").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface AlertTitleProps {
|
|
2
|
+
export interface AlertTitleProps {
|
|
3
3
|
/** The title. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
}
|
|
8
8
|
/** @description The title of an `Alert`: its first line of the message, in a heavier weight. */
|
|
9
|
-
declare function AlertTitle({ children, className, 'data-testid': dataTestid }: Readonly<AlertTitleProps>): import("react").JSX.Element;
|
|
10
|
-
export { AlertTitle, AlertTitleProps };
|
|
9
|
+
export declare function AlertTitle({ children, className, 'data-testid': dataTestid }: Readonly<AlertTitleProps>): import("react").JSX.Element;
|
package/dist/AppBar.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
2
|
+
const require_src = require("./src-B1PmaZ-2.cjs");
|
|
4
3
|
const require_Flex = require("./Flex.cjs");
|
|
4
|
+
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
7
7
|
// src/AppBar/AppBar.tsx
|
package/dist/AppBar.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-MipJMh6w.cjs";
|
|
2
2
|
/** Valid values for the color prop - derived from theme.background keys. */
|
|
3
|
-
type AppBarColor = keyof Theme['background'];
|
|
4
|
-
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
3
|
+
export type AppBarColor = keyof Theme['background'];
|
|
4
|
+
export type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
5
5
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
6
|
-
type AppBarSize = keyof Theme['sizes'];
|
|
7
|
-
interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
6
|
+
export type AppBarSize = keyof Theme['sizes'];
|
|
7
|
+
export interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
8
8
|
/** Resolves against theme.background - sets the AppBar background color. */
|
|
9
9
|
color?: AppBarColor;
|
|
10
10
|
/** CSS position value for layout placement. Default: browser default (static). */
|
|
@@ -16,5 +16,4 @@ interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
|
16
16
|
/** Applies backdrop-filter: blur(theme.blur) + webkit prefix for frosted-glass effect. */
|
|
17
17
|
blur?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare function AppBar({ elevation, size, ...rest }: Readonly<AppBarProps>): import("react").JSX.Element;
|
|
20
|
-
export { AppBar, AppBarColor, AppBarPosition, AppBarProps, AppBarSize };
|
|
19
|
+
export declare function AppBar({ elevation, size, ...rest }: Readonly<AppBarProps>): import("react").JSX.Element;
|
package/dist/AppBar.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { dn as FlexProps, nt as Theme } from "./index-
|
|
1
|
+
import { dn as FlexProps, nt as Theme } from "./index-nw0pvCoK.mjs";
|
|
2
2
|
/** Valid values for the color prop - derived from theme.background keys. */
|
|
3
|
-
type AppBarColor = keyof Theme['background'];
|
|
4
|
-
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
3
|
+
export type AppBarColor = keyof Theme['background'];
|
|
4
|
+
export type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
5
5
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
6
|
-
type AppBarSize = keyof Theme['sizes'];
|
|
7
|
-
interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
6
|
+
export type AppBarSize = keyof Theme['sizes'];
|
|
7
|
+
export interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
8
8
|
/** Resolves against theme.background - sets the AppBar background color. */
|
|
9
9
|
color?: AppBarColor;
|
|
10
10
|
/** CSS position value for layout placement. Default: browser default (static). */
|
|
@@ -16,5 +16,4 @@ interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
|
16
16
|
/** Applies backdrop-filter: blur(theme.blur) + webkit prefix for frosted-glass effect. */
|
|
17
17
|
blur?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare function AppBar({ elevation, size, ...rest }: Readonly<AppBarProps>): import("react").JSX.Element;
|
|
20
|
-
export { AppBar, AppBarColor, AppBarPosition, AppBarProps, AppBarSize };
|
|
19
|
+
export declare function AppBar({ elevation, size, ...rest }: Readonly<AppBarProps>): import("react").JSX.Element;
|
package/dist/AppBar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
2
|
-
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BSo7bM2g.mjs";
|
|
3
2
|
import { Flex } from "./Flex.mjs";
|
|
3
|
+
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/AppBar/AppBar.tsx
|
|
6
6
|
const shouldForwardProp = createShouldForwardProp([
|
package/dist/Autocomplete.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-B1PmaZ-2.cjs");
|
|
3
3
|
const require_theme = require("./theme-XJvMdOnY.cjs");
|
|
4
|
-
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
5
4
|
const require_getSurfaceRadius = require("./getSurfaceRadius-DwOn3ALC.cjs");
|
|
6
|
-
const
|
|
7
|
-
const require_Icon = require("./Icon-C5Iz5ekp.cjs");
|
|
8
|
-
const require_inputVariantStyles = require("./inputVariantStyles-DhClkDHY.cjs");
|
|
9
|
-
const require_FormControlContext = require("./FormControlContext-DvEyxrdM.cjs");
|
|
5
|
+
const require_inputVariantStyles = require("./inputVariantStyles-GsJaknFt.cjs");
|
|
10
6
|
const require_FormControl = require("./FormControl.cjs");
|
|
7
|
+
const require_FormControlContext = require("./FormControlContext-DvEyxrdM.cjs");
|
|
11
8
|
const require_Chip = require("./Chip.cjs");
|
|
9
|
+
const require_Icon = require("./Icon-C4QMiNHJ.cjs");
|
|
12
10
|
const require_Portal = require("./Portal.cjs");
|
|
11
|
+
const require_themeDefault = require("./themeDefault-DbPHBbNO.cjs");
|
|
13
12
|
const require_useAnchoredPlacement = require("./useAnchoredPlacement-BSfjNMut.cjs");
|
|
13
|
+
const require_useControlled = require("./useControlled-CzCxM4J3.cjs");
|
|
14
14
|
let react = require("react");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
package/dist/Autocomplete.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { nt as Theme } from "./index-MipJMh6w.cjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
/** One value for a single field, a list for `multiple`. */
|
|
5
5
|
type AutocompleteValue<T, Multiple extends boolean | undefined> = Multiple extends true ? T[] : T | null;
|
|
@@ -7,8 +7,8 @@ type AutocompleteValue<T, Multiple extends boolean | undefined> = Multiple exten
|
|
|
7
7
|
type AutocompleteChangeReason = 'selectOption' | 'removeOption' | 'createOption' | 'clear';
|
|
8
8
|
/** Why the text changes: it was typed, set to match a choice, or emptied. */
|
|
9
9
|
type AutocompleteInputReason = 'input' | 'reset' | 'clear';
|
|
10
|
-
type AutocompleteVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
11
|
-
interface AutocompleteProps<T = string, Multiple extends boolean | undefined = false> extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
10
|
+
export type AutocompleteVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
11
|
+
export interface AutocompleteProps<T = string, Multiple extends boolean | undefined = false> extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
12
12
|
/** What can be chosen - strings, or anything `getOptionLabel` can say. */
|
|
13
13
|
options: readonly T[];
|
|
14
14
|
/** The chosen option - `null` for none - or, with `multiple`, the chosen list. Controlled with `onChange`. */
|
|
@@ -89,5 +89,5 @@ interface AutocompleteProps<T = string, Multiple extends boolean | undefined = f
|
|
|
89
89
|
* the empty field takes the last off; `shouldAllowFreeText` takes what is typed as a value. In a
|
|
90
90
|
* `FormControl` its `FormLabel` names it, and its size, color, error and disabled state apply.
|
|
91
91
|
*/
|
|
92
|
-
declare function Autocomplete<T = string, Multiple extends boolean | undefined = false>({ options, value, defaultValue, onChange, inputValue: inputValueProp, onInputChange, multiple, shouldAllowFreeText: shouldAllowFreeTextProp, getOptionLabel, isOptionEqualToValue, filterOptions, groupBy, renderOption, isLoading, loadingText: loadingTextProp, noOptionsText: noOptionsTextProp, clearLabel: clearLabelProp, openLabel: openLabelProp, closeLabel: closeLabelProp, getRemoveLabel, placeholder, variant: variantProp, size: sizeProp, color: colorProp, textColor: textColorProp, borderRadius: borderRadiusProp, bg: bgProp, disabled: disabledProp, error: errorProp, required: requiredProp, fullWidth: fullWidthProp, name, id: idProp, layer: layerProp, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<AutocompleteProps<T, Multiple>>): import("react").JSX.Element;
|
|
93
|
-
export {
|
|
92
|
+
export declare function Autocomplete<T = string, Multiple extends boolean | undefined = false>({ options, value, defaultValue, onChange, inputValue: inputValueProp, onInputChange, multiple, shouldAllowFreeText: shouldAllowFreeTextProp, getOptionLabel, isOptionEqualToValue, filterOptions, groupBy, renderOption, isLoading, loadingText: loadingTextProp, noOptionsText: noOptionsTextProp, clearLabel: clearLabelProp, openLabel: openLabelProp, closeLabel: closeLabelProp, getRemoveLabel, placeholder, variant: variantProp, size: sizeProp, color: colorProp, textColor: textColorProp, borderRadius: borderRadiusProp, bg: bgProp, disabled: disabledProp, error: errorProp, required: requiredProp, fullWidth: fullWidthProp, name, id: idProp, layer: layerProp, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<AutocompleteProps<T, Multiple>>): import("react").JSX.Element;
|
|
93
|
+
export type { AutocompleteChangeReason, AutocompleteInputReason, AutocompleteValue };
|
package/dist/Autocomplete.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { nt as Theme } from "./index-
|
|
1
|
+
import { nt as Theme } from "./index-nw0pvCoK.mjs";
|
|
2
2
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
|
-
import {
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
4
|
/** One value for a single field, a list for `multiple`. */
|
|
5
5
|
type AutocompleteValue<T, Multiple extends boolean | undefined> = Multiple extends true ? T[] : T | null;
|
|
6
6
|
/** Why the value changes. */
|
|
7
7
|
type AutocompleteChangeReason = 'selectOption' | 'removeOption' | 'createOption' | 'clear';
|
|
8
8
|
/** Why the text changes: it was typed, set to match a choice, or emptied. */
|
|
9
9
|
type AutocompleteInputReason = 'input' | 'reset' | 'clear';
|
|
10
|
-
type AutocompleteVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
11
|
-
interface AutocompleteProps<T = string, Multiple extends boolean | undefined = false> extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
10
|
+
export type AutocompleteVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
11
|
+
export interface AutocompleteProps<T = string, Multiple extends boolean | undefined = false> extends SpaceProps<Theme>, Pick<LayoutProps<Theme>, 'width' | 'minWidth' | 'maxWidth'> {
|
|
12
12
|
/** What can be chosen - strings, or anything `getOptionLabel` can say. */
|
|
13
13
|
options: readonly T[];
|
|
14
14
|
/** The chosen option - `null` for none - or, with `multiple`, the chosen list. Controlled with `onChange`. */
|
|
@@ -89,5 +89,5 @@ interface AutocompleteProps<T = string, Multiple extends boolean | undefined = f
|
|
|
89
89
|
* the empty field takes the last off; `shouldAllowFreeText` takes what is typed as a value. In a
|
|
90
90
|
* `FormControl` its `FormLabel` names it, and its size, color, error and disabled state apply.
|
|
91
91
|
*/
|
|
92
|
-
declare function Autocomplete<T = string, Multiple extends boolean | undefined = false>({ options, value, defaultValue, onChange, inputValue: inputValueProp, onInputChange, multiple, shouldAllowFreeText: shouldAllowFreeTextProp, getOptionLabel, isOptionEqualToValue, filterOptions, groupBy, renderOption, isLoading, loadingText: loadingTextProp, noOptionsText: noOptionsTextProp, clearLabel: clearLabelProp, openLabel: openLabelProp, closeLabel: closeLabelProp, getRemoveLabel, placeholder, variant: variantProp, size: sizeProp, color: colorProp, textColor: textColorProp, borderRadius: borderRadiusProp, bg: bgProp, disabled: disabledProp, error: errorProp, required: requiredProp, fullWidth: fullWidthProp, name, id: idProp, layer: layerProp, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<AutocompleteProps<T, Multiple>>): import("react").JSX.Element;
|
|
93
|
-
export {
|
|
92
|
+
export declare function Autocomplete<T = string, Multiple extends boolean | undefined = false>({ options, value, defaultValue, onChange, inputValue: inputValueProp, onInputChange, multiple, shouldAllowFreeText: shouldAllowFreeTextProp, getOptionLabel, isOptionEqualToValue, filterOptions, groupBy, renderOption, isLoading, loadingText: loadingTextProp, noOptionsText: noOptionsTextProp, clearLabel: clearLabelProp, openLabel: openLabelProp, closeLabel: closeLabelProp, getRemoveLabel, placeholder, variant: variantProp, size: sizeProp, color: colorProp, textColor: textColorProp, borderRadius: borderRadiusProp, bg: bgProp, disabled: disabledProp, error: errorProp, required: requiredProp, fullWidth: fullWidthProp, name, id: idProp, layer: layerProp, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'data-testid': dataTestid, ...spaceProps }: Readonly<AutocompleteProps<T, Multiple>>): import("react").JSX.Element;
|
|
93
|
+
export type { AutocompleteChangeReason, AutocompleteInputReason, AutocompleteValue };
|
package/dist/Autocomplete.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
2
|
-
import { n as useDefaultProps, r as useTheme } from "./theme-
|
|
3
|
-
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-BSo7bM2g.mjs";
|
|
2
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-B6LFWZ98.mjs";
|
|
4
3
|
import { t as getSurfaceRadius } from "./getSurfaceRadius-B1QE_VLa.mjs";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as Icon } from "./Icon-XpXU-SuF.mjs";
|
|
7
|
-
import { n as getFocusRing, r as getInputMinWidth, t as inputVariantStyles } from "./inputVariantStyles-DCGRUY9c.mjs";
|
|
8
|
-
import { t as FormControlContext } from "./FormControlContext-Dg_ommiF.mjs";
|
|
4
|
+
import { n as getFocusRing, r as getInputMinWidth, t as inputVariantStyles } from "./inputVariantStyles-GEyyFeaq.mjs";
|
|
9
5
|
import { useFormControl } from "./FormControl.mjs";
|
|
6
|
+
import { t as FormControlContext } from "./FormControlContext-Dg_ommiF.mjs";
|
|
10
7
|
import { Chip } from "./Chip.mjs";
|
|
8
|
+
import { t as Icon } from "./Icon-gVHlFgdH.mjs";
|
|
11
9
|
import { Portal } from "./Portal.mjs";
|
|
10
|
+
import { t as themeDefault } from "./themeDefault-BeZJzqJj.mjs";
|
|
12
11
|
import { t as useAnchoredPlacement } from "./useAnchoredPlacement-txSaWzfk.mjs";
|
|
12
|
+
import { t as useControlled } from "./useControlled-B4uQ9Bj6.mjs";
|
|
13
13
|
import { Fragment, useCallback, useContext, useEffect, useId, useRef, useState } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
// src/Autocomplete/hooks/useAutocomplete.ts
|