@mui/material 5.15.3 → 5.15.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/Accordion/Accordion.d.ts +30 -2
- package/Accordion/Accordion.js +43 -10
- package/AccordionActions/AccordionActions.js +4 -4
- package/AccordionDetails/AccordionDetails.js +4 -4
- package/AccordionSummary/AccordionSummary.js +4 -4
- package/AccordionSummary/accordionSummaryClasses.d.ts +4 -1
- package/Alert/Alert.d.ts +4 -2
- package/Alert/Alert.js +5 -5
- package/AlertTitle/AlertTitle.js +4 -4
- package/AppBar/AppBar.js +4 -4
- package/Autocomplete/Autocomplete.js +4 -4
- package/Avatar/Avatar.js +4 -4
- package/AvatarGroup/AvatarGroup.js +4 -4
- package/Backdrop/Backdrop.js +4 -4
- package/Badge/Badge.js +5 -5
- package/BottomNavigation/BottomNavigation.js +4 -4
- package/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/Box/Box.js +4 -4
- package/Breadcrumbs/Breadcrumbs.js +4 -4
- package/Button/Button.js +4 -4
- package/ButtonBase/ButtonBase.js +4 -4
- package/ButtonGroup/ButtonGroup.js +4 -4
- package/ButtonGroup/ButtonGroupContext.d.ts +2 -2
- package/CHANGELOG.md +184 -1
- package/Card/Card.js +4 -4
- package/CardActionArea/CardActionArea.js +4 -4
- package/CardActions/CardActions.js +4 -4
- package/CardContent/CardContent.js +4 -4
- package/CardHeader/CardHeader.js +4 -4
- package/CardMedia/CardMedia.js +4 -4
- package/Checkbox/Checkbox.js +4 -4
- package/Chip/Chip.js +4 -4
- package/CircularProgress/CircularProgress.js +4 -4
- package/ClickAwayListener/index.d.ts +2 -1
- package/Collapse/Collapse.js +4 -4
- package/Container/Container.js +4 -4
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/Dialog.js +4 -4
- package/DialogActions/DialogActions.js +4 -4
- package/DialogContent/DialogContent.js +4 -4
- package/DialogContentText/DialogContentText.js +4 -4
- package/DialogTitle/DialogTitle.js +4 -4
- package/Divider/Divider.d.ts +1 -0
- package/Divider/Divider.js +5 -4
- package/Divider/dividerClasses.d.ts +6 -2
- package/Drawer/Drawer.js +4 -4
- package/Fab/Fab.js +4 -4
- package/Fade/Fade.js +4 -4
- package/FilledInput/FilledInput.js +4 -4
- package/FormControl/FormControl.d.ts +1 -1
- package/FormControl/FormControl.js +4 -4
- package/FormControlLabel/FormControlLabel.js +4 -4
- package/FormGroup/FormGroup.js +4 -4
- package/FormHelperText/FormHelperText.js +4 -4
- package/FormLabel/FormLabel.d.ts +1 -1
- package/FormLabel/FormLabel.js +4 -4
- package/GlobalStyles/GlobalStyles.js +4 -4
- package/Grid/Grid.js +4 -4
- package/Grow/Grow.js +4 -4
- package/Hidden/Hidden.js +4 -4
- package/Icon/Icon.js +4 -4
- package/IconButton/IconButton.js +4 -4
- package/ImageList/ImageList.js +4 -4
- package/ImageListItem/ImageListItem.js +4 -4
- package/ImageListItemBar/ImageListItemBar.js +4 -4
- package/Input/Input.js +4 -4
- package/InputAdornment/InputAdornment.js +4 -4
- package/InputBase/InputBase.js +4 -4
- package/InputLabel/InputLabel.d.ts +1 -5
- package/InputLabel/InputLabel.js +4 -4
- package/LinearProgress/LinearProgress.js +4 -4
- package/Link/Link.js +4 -4
- package/List/List.js +4 -4
- package/ListItem/ListItem.js +4 -4
- package/ListItemAvatar/ListItemAvatar.js +4 -4
- package/ListItemButton/ListItemButton.js +4 -4
- package/ListItemIcon/ListItemIcon.js +4 -4
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/ListItemText/ListItemText.js +4 -4
- package/ListSubheader/ListSubheader.js +4 -4
- package/Menu/Menu.js +4 -4
- package/MenuItem/MenuItem.js +4 -4
- package/MenuList/MenuList.js +4 -4
- package/MobileStepper/MobileStepper.js +4 -4
- package/Modal/Modal.js +4 -4
- package/NativeSelect/NativeSelect.js +4 -4
- package/OutlinedInput/OutlinedInput.js +4 -4
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/Paper/Paper.js +4 -4
- package/Popover/Popover.js +4 -4
- package/Popper/Popper.js +4 -4
- package/Radio/Radio.js +4 -4
- package/RadioGroup/RadioGroup.js +4 -4
- package/Rating/Rating.js +5 -14
- package/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/Select/Select.js +4 -4
- package/Skeleton/Skeleton.js +4 -4
- package/Slide/Slide.js +4 -4
- package/Slider/Slider.js +4 -4
- package/Snackbar/Snackbar.js +4 -4
- package/SnackbarContent/SnackbarContent.js +4 -4
- package/SpeedDial/SpeedDial.js +5 -13
- package/SpeedDialAction/SpeedDialAction.js +4 -4
- package/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/Stack/Stack.js +4 -4
- package/Step/Step.js +4 -4
- package/StepButton/StepButton.js +4 -4
- package/StepConnector/StepConnector.js +4 -4
- package/StepContent/StepContent.js +4 -4
- package/StepIcon/StepIcon.js +4 -4
- package/StepLabel/StepLabel.js +4 -4
- package/Stepper/Stepper.js +4 -4
- package/SvgIcon/SvgIcon.js +4 -4
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Switch/Switch.js +4 -4
- package/Tab/Tab.js +4 -4
- package/TabScrollButton/TabScrollButton.js +4 -4
- package/Table/Table.js +4 -4
- package/TableBody/TableBody.js +4 -4
- package/TableCell/TableCell.js +4 -4
- package/TableContainer/TableContainer.js +4 -4
- package/TableFooter/TableFooter.js +4 -4
- package/TableHead/TableHead.js +4 -4
- package/TablePagination/TablePagination.js +4 -4
- package/TableRow/TableRow.js +4 -4
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/Tabs/Tabs.js +4 -4
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +4 -4
- package/ToggleButton/ToggleButton.js +24 -8
- package/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/ToggleButtonGroup/ToggleButtonGroupButtonContext.d.ts +6 -0
- package/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +16 -0
- package/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +6 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/Toolbar/Toolbar.js +4 -4
- package/Tooltip/Tooltip.js +4 -4
- package/Typography/Typography.js +4 -4
- package/Unstable_Grid2/Grid2.js +4 -4
- package/Zoom/Zoom.js +4 -4
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +48 -11
- package/legacy/AccordionActions/AccordionActions.js +4 -4
- package/legacy/AccordionDetails/AccordionDetails.js +4 -4
- package/legacy/AccordionSummary/AccordionSummary.js +4 -4
- package/legacy/Alert/Alert.js +5 -5
- package/legacy/AlertTitle/AlertTitle.js +4 -4
- package/legacy/AppBar/AppBar.js +4 -4
- package/legacy/Autocomplete/Autocomplete.js +4 -4
- package/legacy/Avatar/Avatar.js +4 -4
- package/legacy/AvatarGroup/AvatarGroup.js +4 -4
- package/legacy/Backdrop/Backdrop.js +4 -4
- package/legacy/Badge/Badge.js +5 -5
- package/legacy/BottomNavigation/BottomNavigation.js +4 -4
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/legacy/Box/Box.js +4 -4
- package/legacy/Breadcrumbs/Breadcrumbs.js +4 -4
- package/legacy/Button/Button.js +4 -4
- package/legacy/ButtonBase/ButtonBase.js +4 -4
- package/legacy/ButtonGroup/ButtonGroup.js +4 -4
- package/legacy/Card/Card.js +4 -4
- package/legacy/CardActionArea/CardActionArea.js +4 -4
- package/legacy/CardActions/CardActions.js +4 -4
- package/legacy/CardContent/CardContent.js +4 -4
- package/legacy/CardHeader/CardHeader.js +4 -4
- package/legacy/CardMedia/CardMedia.js +4 -4
- package/legacy/Checkbox/Checkbox.js +4 -4
- package/legacy/Chip/Chip.js +4 -4
- package/legacy/CircularProgress/CircularProgress.js +4 -4
- package/legacy/Collapse/Collapse.js +4 -4
- package/legacy/Container/Container.js +4 -4
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/Dialog/Dialog.js +4 -4
- package/legacy/DialogActions/DialogActions.js +4 -4
- package/legacy/DialogContent/DialogContent.js +4 -4
- package/legacy/DialogContentText/DialogContentText.js +4 -4
- package/legacy/DialogTitle/DialogTitle.js +4 -4
- package/legacy/Divider/Divider.js +5 -4
- package/legacy/Drawer/Drawer.js +4 -4
- package/legacy/Fab/Fab.js +4 -4
- package/legacy/Fade/Fade.js +4 -4
- package/legacy/FilledInput/FilledInput.js +4 -4
- package/legacy/FormControl/FormControl.js +4 -4
- package/legacy/FormControlLabel/FormControlLabel.js +4 -4
- package/legacy/FormGroup/FormGroup.js +4 -4
- package/legacy/FormHelperText/FormHelperText.js +4 -4
- package/legacy/FormLabel/FormLabel.js +4 -4
- package/legacy/GlobalStyles/GlobalStyles.js +4 -4
- package/legacy/Grid/Grid.js +4 -4
- package/legacy/Grow/Grow.js +4 -4
- package/legacy/Hidden/Hidden.js +4 -4
- package/legacy/Icon/Icon.js +4 -4
- package/legacy/IconButton/IconButton.js +4 -4
- package/legacy/ImageList/ImageList.js +4 -4
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/ImageListItemBar/ImageListItemBar.js +4 -4
- package/legacy/Input/Input.js +4 -4
- package/legacy/InputAdornment/InputAdornment.js +4 -4
- package/legacy/InputBase/InputBase.js +4 -4
- package/legacy/InputLabel/InputLabel.js +4 -4
- package/legacy/LinearProgress/LinearProgress.js +4 -4
- package/legacy/Link/Link.js +4 -4
- package/legacy/List/List.js +4 -4
- package/legacy/ListItem/ListItem.js +4 -4
- package/legacy/ListItemAvatar/ListItemAvatar.js +4 -4
- package/legacy/ListItemButton/ListItemButton.js +4 -4
- package/legacy/ListItemIcon/ListItemIcon.js +4 -4
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/legacy/ListItemText/ListItemText.js +4 -4
- package/legacy/ListSubheader/ListSubheader.js +4 -4
- package/legacy/Menu/Menu.js +4 -4
- package/legacy/MenuItem/MenuItem.js +4 -4
- package/legacy/MenuList/MenuList.js +4 -4
- package/legacy/MobileStepper/MobileStepper.js +4 -4
- package/legacy/Modal/Modal.js +4 -4
- package/legacy/NativeSelect/NativeSelect.js +4 -4
- package/legacy/OutlinedInput/OutlinedInput.js +4 -4
- package/legacy/Pagination/Pagination.js +4 -4
- package/legacy/PaginationItem/PaginationItem.js +4 -4
- package/legacy/Paper/Paper.js +4 -4
- package/legacy/Popover/Popover.js +4 -4
- package/legacy/Popper/Popper.js +4 -4
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/RadioGroup/RadioGroup.js +4 -4
- package/legacy/Rating/Rating.js +5 -14
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/legacy/Select/Select.js +4 -4
- package/legacy/Skeleton/Skeleton.js +4 -4
- package/legacy/Slide/Slide.js +4 -4
- package/legacy/Slider/Slider.js +4 -4
- package/legacy/Snackbar/Snackbar.js +4 -4
- package/legacy/SnackbarContent/SnackbarContent.js +4 -4
- package/legacy/SpeedDial/SpeedDial.js +5 -13
- package/legacy/SpeedDialAction/SpeedDialAction.js +4 -4
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/legacy/Stack/Stack.js +4 -4
- package/legacy/Step/Step.js +4 -4
- package/legacy/StepButton/StepButton.js +4 -4
- package/legacy/StepConnector/StepConnector.js +4 -4
- package/legacy/StepContent/StepContent.js +4 -4
- package/legacy/StepIcon/StepIcon.js +4 -4
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/Stepper.js +4 -4
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/Switch/Switch.js +4 -4
- package/legacy/Tab/Tab.js +4 -4
- package/legacy/TabScrollButton/TabScrollButton.js +4 -4
- package/legacy/Table/Table.js +4 -4
- package/legacy/TableBody/TableBody.js +4 -4
- package/legacy/TableCell/TableCell.js +4 -4
- package/legacy/TableContainer/TableContainer.js +4 -4
- package/legacy/TableFooter/TableFooter.js +4 -4
- package/legacy/TableHead/TableHead.js +4 -4
- package/legacy/TablePagination/TablePagination.js +4 -4
- package/legacy/TableRow/TableRow.js +4 -4
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/TextField/TextField.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +19 -6
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +81 -55
- package/legacy/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/legacy/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/legacy/Toolbar/Toolbar.js +4 -4
- package/legacy/Tooltip/Tooltip.js +4 -4
- package/legacy/Typography/Typography.js +4 -4
- package/legacy/Unstable_Grid2/Grid2.js +4 -4
- package/legacy/Zoom/Zoom.js +4 -4
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -0
- package/legacy/utils/types.js +1 -0
- package/legacy/utils/useSlot.js +71 -0
- package/legacy/zero-styled/index.js +2 -0
- package/modern/Accordion/Accordion.js +43 -10
- package/modern/AccordionActions/AccordionActions.js +4 -4
- package/modern/AccordionDetails/AccordionDetails.js +4 -4
- package/modern/AccordionSummary/AccordionSummary.js +4 -4
- package/modern/Alert/Alert.js +5 -5
- package/modern/AlertTitle/AlertTitle.js +4 -4
- package/modern/AppBar/AppBar.js +4 -4
- package/modern/Autocomplete/Autocomplete.js +4 -4
- package/modern/Avatar/Avatar.js +4 -4
- package/modern/AvatarGroup/AvatarGroup.js +4 -4
- package/modern/Backdrop/Backdrop.js +4 -4
- package/modern/Badge/Badge.js +5 -5
- package/modern/BottomNavigation/BottomNavigation.js +4 -4
- package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/modern/Box/Box.js +4 -4
- package/modern/Breadcrumbs/Breadcrumbs.js +4 -4
- package/modern/Button/Button.js +4 -4
- package/modern/ButtonBase/ButtonBase.js +4 -4
- package/modern/ButtonGroup/ButtonGroup.js +4 -4
- package/modern/Card/Card.js +4 -4
- package/modern/CardActionArea/CardActionArea.js +4 -4
- package/modern/CardActions/CardActions.js +4 -4
- package/modern/CardContent/CardContent.js +4 -4
- package/modern/CardHeader/CardHeader.js +4 -4
- package/modern/CardMedia/CardMedia.js +4 -4
- package/modern/Checkbox/Checkbox.js +4 -4
- package/modern/Chip/Chip.js +4 -4
- package/modern/CircularProgress/CircularProgress.js +4 -4
- package/modern/Collapse/Collapse.js +4 -4
- package/modern/Container/Container.js +4 -4
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/Dialog/Dialog.js +4 -4
- package/modern/DialogActions/DialogActions.js +4 -4
- package/modern/DialogContent/DialogContent.js +4 -4
- package/modern/DialogContentText/DialogContentText.js +4 -4
- package/modern/DialogTitle/DialogTitle.js +4 -4
- package/modern/Divider/Divider.js +5 -4
- package/modern/Drawer/Drawer.js +4 -4
- package/modern/Fab/Fab.js +4 -4
- package/modern/Fade/Fade.js +4 -4
- package/modern/FilledInput/FilledInput.js +4 -4
- package/modern/FormControl/FormControl.js +4 -4
- package/modern/FormControlLabel/FormControlLabel.js +4 -4
- package/modern/FormGroup/FormGroup.js +4 -4
- package/modern/FormHelperText/FormHelperText.js +4 -4
- package/modern/FormLabel/FormLabel.js +4 -4
- package/modern/GlobalStyles/GlobalStyles.js +4 -4
- package/modern/Grid/Grid.js +4 -4
- package/modern/Grow/Grow.js +4 -4
- package/modern/Hidden/Hidden.js +4 -4
- package/modern/Icon/Icon.js +4 -4
- package/modern/IconButton/IconButton.js +4 -4
- package/modern/ImageList/ImageList.js +4 -4
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/ImageListItemBar/ImageListItemBar.js +4 -4
- package/modern/Input/Input.js +4 -4
- package/modern/InputAdornment/InputAdornment.js +4 -4
- package/modern/InputBase/InputBase.js +4 -4
- package/modern/InputLabel/InputLabel.js +4 -4
- package/modern/LinearProgress/LinearProgress.js +4 -4
- package/modern/Link/Link.js +4 -4
- package/modern/List/List.js +4 -4
- package/modern/ListItem/ListItem.js +4 -4
- package/modern/ListItemAvatar/ListItemAvatar.js +4 -4
- package/modern/ListItemButton/ListItemButton.js +4 -4
- package/modern/ListItemIcon/ListItemIcon.js +4 -4
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/modern/ListItemText/ListItemText.js +4 -4
- package/modern/ListSubheader/ListSubheader.js +4 -4
- package/modern/Menu/Menu.js +4 -4
- package/modern/MenuItem/MenuItem.js +4 -4
- package/modern/MenuList/MenuList.js +4 -4
- package/modern/MobileStepper/MobileStepper.js +4 -4
- package/modern/Modal/Modal.js +4 -4
- package/modern/NativeSelect/NativeSelect.js +4 -4
- package/modern/OutlinedInput/OutlinedInput.js +4 -4
- package/modern/Pagination/Pagination.js +4 -4
- package/modern/PaginationItem/PaginationItem.js +4 -4
- package/modern/Paper/Paper.js +4 -4
- package/modern/Popover/Popover.js +4 -4
- package/modern/Popper/Popper.js +4 -4
- package/modern/Radio/Radio.js +4 -4
- package/modern/RadioGroup/RadioGroup.js +4 -4
- package/modern/Rating/Rating.js +5 -14
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/modern/Select/Select.js +4 -4
- package/modern/Skeleton/Skeleton.js +4 -4
- package/modern/Slide/Slide.js +4 -4
- package/modern/Slider/Slider.js +4 -4
- package/modern/Snackbar/Snackbar.js +4 -4
- package/modern/SnackbarContent/SnackbarContent.js +4 -4
- package/modern/SpeedDial/SpeedDial.js +5 -13
- package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
- package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/modern/Stack/Stack.js +4 -4
- package/modern/Step/Step.js +4 -4
- package/modern/StepButton/StepButton.js +4 -4
- package/modern/StepConnector/StepConnector.js +4 -4
- package/modern/StepContent/StepContent.js +4 -4
- package/modern/StepIcon/StepIcon.js +4 -4
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/Stepper.js +4 -4
- package/modern/SvgIcon/SvgIcon.js +4 -4
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/Switch/Switch.js +4 -4
- package/modern/Tab/Tab.js +4 -4
- package/modern/TabScrollButton/TabScrollButton.js +4 -4
- package/modern/Table/Table.js +4 -4
- package/modern/TableBody/TableBody.js +4 -4
- package/modern/TableCell/TableCell.js +4 -4
- package/modern/TableContainer/TableContainer.js +4 -4
- package/modern/TableFooter/TableFooter.js +4 -4
- package/modern/TableHead/TableHead.js +4 -4
- package/modern/TablePagination/TablePagination.js +4 -4
- package/modern/TableRow/TableRow.js +4 -4
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/TextField/TextField.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +24 -8
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/modern/Toolbar/Toolbar.js +4 -4
- package/modern/Tooltip/Tooltip.js +4 -4
- package/modern/Typography/Typography.js +4 -4
- package/modern/Unstable_Grid2/Grid2.js +4 -4
- package/modern/Zoom/Zoom.js +4 -4
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -0
- package/modern/utils/types.js +1 -0
- package/modern/utils/useSlot.js +82 -0
- package/modern/zero-styled/index.js +2 -0
- package/node/Accordion/Accordion.js +43 -10
- package/node/AccordionActions/AccordionActions.js +4 -4
- package/node/AccordionDetails/AccordionDetails.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +4 -4
- package/node/Alert/Alert.js +5 -5
- package/node/AlertTitle/AlertTitle.js +4 -4
- package/node/AppBar/AppBar.js +4 -4
- package/node/Autocomplete/Autocomplete.js +4 -4
- package/node/Avatar/Avatar.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +4 -4
- package/node/Backdrop/Backdrop.js +4 -4
- package/node/Badge/Badge.js +7 -7
- package/node/BottomNavigation/BottomNavigation.js +4 -4
- package/node/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/node/Box/Box.js +4 -4
- package/node/Breadcrumbs/Breadcrumbs.js +4 -4
- package/node/Button/Button.js +4 -4
- package/node/ButtonBase/ButtonBase.js +4 -4
- package/node/ButtonGroup/ButtonGroup.js +4 -4
- package/node/Card/Card.js +4 -4
- package/node/CardActionArea/CardActionArea.js +4 -4
- package/node/CardActions/CardActions.js +4 -4
- package/node/CardContent/CardContent.js +4 -4
- package/node/CardHeader/CardHeader.js +4 -4
- package/node/CardMedia/CardMedia.js +4 -4
- package/node/Checkbox/Checkbox.js +4 -4
- package/node/Chip/Chip.js +4 -4
- package/node/CircularProgress/CircularProgress.js +4 -4
- package/node/Collapse/Collapse.js +4 -4
- package/node/Container/Container.js +4 -4
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/Dialog/Dialog.js +4 -4
- package/node/DialogActions/DialogActions.js +4 -4
- package/node/DialogContent/DialogContent.js +4 -4
- package/node/DialogContentText/DialogContentText.js +4 -4
- package/node/DialogTitle/DialogTitle.js +4 -4
- package/node/Divider/Divider.js +5 -4
- package/node/Drawer/Drawer.js +4 -4
- package/node/Fab/Fab.js +4 -4
- package/node/Fade/Fade.js +4 -4
- package/node/FilledInput/FilledInput.js +4 -4
- package/node/FormControl/FormControl.js +4 -4
- package/node/FormControlLabel/FormControlLabel.js +4 -4
- package/node/FormGroup/FormGroup.js +4 -4
- package/node/FormHelperText/FormHelperText.js +4 -4
- package/node/FormLabel/FormLabel.js +4 -4
- package/node/GlobalStyles/GlobalStyles.js +4 -4
- package/node/Grid/Grid.js +4 -4
- package/node/Grow/Grow.js +4 -4
- package/node/Hidden/Hidden.js +4 -4
- package/node/Icon/Icon.js +4 -4
- package/node/IconButton/IconButton.js +4 -4
- package/node/ImageList/ImageList.js +4 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/ImageListItemBar/ImageListItemBar.js +4 -4
- package/node/Input/Input.js +4 -4
- package/node/InputAdornment/InputAdornment.js +4 -4
- package/node/InputBase/InputBase.js +4 -4
- package/node/InputLabel/InputLabel.js +4 -4
- package/node/LinearProgress/LinearProgress.js +4 -4
- package/node/Link/Link.js +4 -4
- package/node/List/List.js +4 -4
- package/node/ListItem/ListItem.js +4 -4
- package/node/ListItemAvatar/ListItemAvatar.js +4 -4
- package/node/ListItemButton/ListItemButton.js +4 -4
- package/node/ListItemIcon/ListItemIcon.js +4 -4
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/node/ListItemText/ListItemText.js +4 -4
- package/node/ListSubheader/ListSubheader.js +4 -4
- package/node/Menu/Menu.js +4 -4
- package/node/MenuItem/MenuItem.js +4 -4
- package/node/MenuList/MenuList.js +4 -4
- package/node/MobileStepper/MobileStepper.js +4 -4
- package/node/Modal/Modal.js +4 -4
- package/node/NativeSelect/NativeSelect.js +4 -4
- package/node/OutlinedInput/OutlinedInput.js +4 -4
- package/node/Pagination/Pagination.js +4 -4
- package/node/PaginationItem/PaginationItem.js +4 -4
- package/node/Paper/Paper.js +4 -4
- package/node/Popover/Popover.js +4 -4
- package/node/Popper/Popper.js +4 -4
- package/node/Radio/Radio.js +4 -4
- package/node/RadioGroup/RadioGroup.js +4 -4
- package/node/Rating/Rating.js +5 -14
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/node/Select/Select.js +4 -4
- package/node/Skeleton/Skeleton.js +4 -4
- package/node/Slide/Slide.js +4 -4
- package/node/Slider/Slider.js +4 -4
- package/node/Snackbar/Snackbar.js +4 -4
- package/node/SnackbarContent/SnackbarContent.js +4 -4
- package/node/SpeedDial/SpeedDial.js +6 -14
- package/node/SpeedDialAction/SpeedDialAction.js +4 -4
- package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/node/Stack/Stack.js +4 -4
- package/node/Step/Step.js +4 -4
- package/node/StepButton/StepButton.js +4 -4
- package/node/StepConnector/StepConnector.js +4 -4
- package/node/StepContent/StepContent.js +4 -4
- package/node/StepIcon/StepIcon.js +4 -4
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/Stepper.js +4 -4
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/Switch/Switch.js +4 -4
- package/node/Tab/Tab.js +4 -4
- package/node/TabScrollButton/TabScrollButton.js +4 -4
- package/node/Table/Table.js +4 -4
- package/node/TableBody/TableBody.js +4 -4
- package/node/TableCell/TableCell.js +4 -4
- package/node/TableContainer/TableContainer.js +4 -4
- package/node/TableFooter/TableFooter.js +4 -4
- package/node/TableHead/TableHead.js +4 -4
- package/node/TablePagination/TablePagination.js +4 -4
- package/node/TableRow/TableRow.js +4 -4
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +4 -4
- package/node/TextField/TextField.js +4 -4
- package/node/ToggleButton/ToggleButton.js +24 -8
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +17 -0
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +17 -0
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +4 -4
- package/node/Tooltip/Tooltip.js +4 -4
- package/node/Typography/Typography.js +4 -4
- package/node/Unstable_Grid2/Grid2.js +4 -4
- package/node/Zoom/Zoom.js +4 -4
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -0
- package/node/utils/types.js +5 -0
- package/node/utils/useSlot.js +88 -0
- package/node/zero-styled/index.js +13 -0
- package/package.json +11 -10
- package/styles/CssVarsProvider.d.ts +3 -3
- package/styles/CssVarsProvider.js +3 -0
- package/umd/material-ui.development.js +15848 -15745
- package/umd/material-ui.production.min.js +4 -207
- package/utils/types.d.ts +27 -0
- package/utils/types.js +1 -0
- package/utils/useSlot.d.ts +84 -0
- package/utils/useSlot.js +82 -0
- package/zero-styled/index.d.ts +2 -0
- package/zero-styled/index.js +2 -0
- package/zero-styled/package.json +6 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"],
|
|
6
|
+
_excluded2 = ["component", "slots", "slotProps"],
|
|
7
|
+
_excluded3 = ["component"];
|
|
8
|
+
import { unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
9
|
+
import { appendOwnerState, resolveComponentProps, mergeSlotProps } from '@mui/base/utils';
|
|
10
|
+
/**
|
|
11
|
+
* An internal function to create a Material UI slot.
|
|
12
|
+
*
|
|
13
|
+
* This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop
|
|
14
|
+
* while Base UI does not need to support leaf component customization.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} name: name of the slot
|
|
17
|
+
* @param {object} parameters
|
|
18
|
+
* @returns {[Slot, slotProps]} The slot's React component and the slot's props
|
|
19
|
+
*
|
|
20
|
+
* Note: the returned slot's props
|
|
21
|
+
* - will never contain `component` prop.
|
|
22
|
+
* - might contain `as` prop.
|
|
23
|
+
*/
|
|
24
|
+
export default function useSlot(
|
|
25
|
+
/**
|
|
26
|
+
* The slot's name. All Material UI components should have `root` slot.
|
|
27
|
+
*
|
|
28
|
+
* If the name is `root`, the logic behaves differently from other slots,
|
|
29
|
+
* e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.
|
|
30
|
+
*/
|
|
31
|
+
name, parameters) {
|
|
32
|
+
const {
|
|
33
|
+
className,
|
|
34
|
+
elementType: initialElementType,
|
|
35
|
+
ownerState,
|
|
36
|
+
externalForwardedProps,
|
|
37
|
+
getSlotOwnerState,
|
|
38
|
+
internalForwardedProps
|
|
39
|
+
} = parameters,
|
|
40
|
+
useSlotPropsParams = _objectWithoutPropertiesLoose(parameters, _excluded);
|
|
41
|
+
const {
|
|
42
|
+
component: rootComponent,
|
|
43
|
+
slots = {
|
|
44
|
+
[name]: undefined
|
|
45
|
+
},
|
|
46
|
+
slotProps = {
|
|
47
|
+
[name]: undefined
|
|
48
|
+
}
|
|
49
|
+
} = externalForwardedProps,
|
|
50
|
+
other = _objectWithoutPropertiesLoose(externalForwardedProps, _excluded2);
|
|
51
|
+
const elementType = slots[name] || initialElementType;
|
|
52
|
+
|
|
53
|
+
// `slotProps[name]` can be a callback that receives the component's ownerState.
|
|
54
|
+
// `resolvedComponentsProps` is always a plain object.
|
|
55
|
+
const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);
|
|
56
|
+
const _mergeSlotProps = mergeSlotProps(_extends({
|
|
57
|
+
className
|
|
58
|
+
}, useSlotPropsParams, {
|
|
59
|
+
externalForwardedProps: name === 'root' ? other : undefined,
|
|
60
|
+
externalSlotProps: resolvedComponentsProps
|
|
61
|
+
})),
|
|
62
|
+
{
|
|
63
|
+
props: {
|
|
64
|
+
component: slotComponent
|
|
65
|
+
},
|
|
66
|
+
internalRef
|
|
67
|
+
} = _mergeSlotProps,
|
|
68
|
+
mergedProps = _objectWithoutPropertiesLoose(_mergeSlotProps.props, _excluded3);
|
|
69
|
+
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
|
70
|
+
const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};
|
|
71
|
+
const finalOwnerState = _extends({}, ownerState, slotOwnerState);
|
|
72
|
+
const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;
|
|
73
|
+
const props = appendOwnerState(elementType, _extends({}, name === 'root' && !rootComponent && !slots[name] && internalForwardedProps, name !== 'root' && !slots[name] && internalForwardedProps, mergedProps, LeafComponent && {
|
|
74
|
+
as: LeafComponent
|
|
75
|
+
}, {
|
|
76
|
+
ref
|
|
77
|
+
}), finalOwnerState);
|
|
78
|
+
Object.keys(slotOwnerState).forEach(propName => {
|
|
79
|
+
delete props[propName];
|
|
80
|
+
});
|
|
81
|
+
return [elementType, props];
|
|
82
|
+
}
|
|
@@ -20,9 +20,10 @@ var _Collapse = _interopRequireDefault(require("../Collapse"));
|
|
|
20
20
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
21
21
|
var _AccordionContext = _interopRequireDefault(require("./AccordionContext"));
|
|
22
22
|
var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
|
|
23
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
23
24
|
var _accordionClasses = _interopRequireWildcard(require("./accordionClasses"));
|
|
24
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
|
|
26
|
+
const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"];
|
|
26
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
29
|
const useUtilityClasses = ownerState => {
|
|
@@ -134,8 +135,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
134
135
|
expanded: expandedProp,
|
|
135
136
|
onChange,
|
|
136
137
|
square = false,
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
slots = {},
|
|
139
|
+
slotProps = {},
|
|
140
|
+
TransitionComponent: TransitionComponentProp,
|
|
141
|
+
TransitionProps: TransitionPropsProp
|
|
139
142
|
} = props,
|
|
140
143
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
141
144
|
const [expanded, setExpandedState] = (0, _useControlled.default)({
|
|
@@ -164,6 +167,21 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
164
167
|
expanded
|
|
165
168
|
});
|
|
166
169
|
const classes = useUtilityClasses(ownerState);
|
|
170
|
+
const backwardCompatibleSlots = (0, _extends2.default)({
|
|
171
|
+
transition: TransitionComponentProp
|
|
172
|
+
}, slots);
|
|
173
|
+
const backwardCompatibleSlotProps = (0, _extends2.default)({
|
|
174
|
+
transition: TransitionPropsProp
|
|
175
|
+
}, slotProps);
|
|
176
|
+
const [TransitionSlot, transitionProps] = (0, _useSlot.default)('transition', {
|
|
177
|
+
elementType: _Collapse.default,
|
|
178
|
+
externalForwardedProps: {
|
|
179
|
+
slots: backwardCompatibleSlots,
|
|
180
|
+
slotProps: backwardCompatibleSlotProps
|
|
181
|
+
},
|
|
182
|
+
ownerState
|
|
183
|
+
});
|
|
184
|
+
delete transitionProps.ownerState;
|
|
167
185
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AccordionRoot, (0, _extends2.default)({
|
|
168
186
|
className: (0, _clsx.default)(classes.root, className),
|
|
169
187
|
ref: ref,
|
|
@@ -173,10 +191,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
173
191
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AccordionContext.default.Provider, {
|
|
174
192
|
value: contextValue,
|
|
175
193
|
children: summary
|
|
176
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
194
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, (0, _extends2.default)({
|
|
177
195
|
in: expanded,
|
|
178
196
|
timeout: "auto"
|
|
179
|
-
},
|
|
197
|
+
}, transitionProps, {
|
|
180
198
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
181
199
|
"aria-labelledby": summary.props.id,
|
|
182
200
|
id: summary.props['aria-controls'],
|
|
@@ -188,10 +206,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
188
206
|
}));
|
|
189
207
|
});
|
|
190
208
|
process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes */ = {
|
|
191
|
-
//
|
|
192
|
-
//
|
|
193
|
-
//
|
|
194
|
-
//
|
|
209
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
210
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
211
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
212
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
195
213
|
/**
|
|
196
214
|
* The content of the component.
|
|
197
215
|
*/
|
|
@@ -240,6 +258,20 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
240
258
|
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
241
259
|
*/
|
|
242
260
|
onChange: _propTypes.default.func,
|
|
261
|
+
/**
|
|
262
|
+
* The props used for each slot inside.
|
|
263
|
+
* @default {}
|
|
264
|
+
*/
|
|
265
|
+
slotProps: _propTypes.default.shape({
|
|
266
|
+
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
267
|
+
}),
|
|
268
|
+
/**
|
|
269
|
+
* The components used for each slot inside.
|
|
270
|
+
* @default {}
|
|
271
|
+
*/
|
|
272
|
+
slots: _propTypes.default.shape({
|
|
273
|
+
transition: _propTypes.default.elementType
|
|
274
|
+
}),
|
|
243
275
|
/**
|
|
244
276
|
* If `true`, rounded corners are disabled.
|
|
245
277
|
* @default false
|
|
@@ -252,12 +284,13 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
252
284
|
/**
|
|
253
285
|
* The component used for the transition.
|
|
254
286
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
255
|
-
* @
|
|
287
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7.
|
|
256
288
|
*/
|
|
257
289
|
TransitionComponent: _propTypes.default.elementType,
|
|
258
290
|
/**
|
|
259
291
|
* Props applied to the transition element.
|
|
260
292
|
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
293
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7.
|
|
261
294
|
*/
|
|
262
295
|
TransitionProps: _propTypes.default.object
|
|
263
296
|
} : void 0;
|
|
@@ -71,10 +71,10 @@ const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions
|
|
|
71
71
|
}, other));
|
|
72
72
|
});
|
|
73
73
|
process.env.NODE_ENV !== "production" ? AccordionActions.propTypes /* remove-proptypes */ = {
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
74
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
75
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
76
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
77
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
78
78
|
/**
|
|
79
79
|
* The content of the component.
|
|
80
80
|
*/
|
|
@@ -55,10 +55,10 @@ const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails
|
|
|
55
55
|
}, other));
|
|
56
56
|
});
|
|
57
57
|
process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes /* remove-proptypes */ = {
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
58
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
59
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
60
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
61
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
62
62
|
/**
|
|
63
63
|
* The content of the component.
|
|
64
64
|
*/
|
|
@@ -160,10 +160,10 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
160
160
|
}));
|
|
161
161
|
});
|
|
162
162
|
process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes /* remove-proptypes */ = {
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
163
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
164
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
165
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
166
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
167
167
|
/**
|
|
168
168
|
* The content of the component.
|
|
169
169
|
*/
|
package/node/Alert/Alert.js
CHANGED
|
@@ -205,10 +205,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
205
205
|
}));
|
|
206
206
|
});
|
|
207
207
|
process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ = {
|
|
208
|
-
//
|
|
209
|
-
//
|
|
210
|
-
//
|
|
211
|
-
//
|
|
208
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
209
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
210
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
211
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
212
212
|
/**
|
|
213
213
|
* The action to display. It renders after the message, at the end of the alert.
|
|
214
214
|
*/
|
|
@@ -296,7 +296,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
296
296
|
* The severity of the alert. This defines the color and icon used.
|
|
297
297
|
* @default 'success'
|
|
298
298
|
*/
|
|
299
|
-
severity: _propTypes.default.oneOf(['error', 'info', 'success', 'warning']),
|
|
299
|
+
severity: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
300
300
|
/**
|
|
301
301
|
* The extra props for the slot components.
|
|
302
302
|
* You can override the existing props or add new ones.
|
|
@@ -61,10 +61,10 @@ const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, re
|
|
|
61
61
|
}, other));
|
|
62
62
|
});
|
|
63
63
|
process.env.NODE_ENV !== "production" ? AlertTitle.propTypes /* remove-proptypes */ = {
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
64
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
65
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
66
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
67
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
68
68
|
/**
|
|
69
69
|
* The content of the component.
|
|
70
70
|
*/
|
package/node/AppBar/AppBar.js
CHANGED
|
@@ -143,10 +143,10 @@ const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
|
|
143
143
|
}, other));
|
|
144
144
|
});
|
|
145
145
|
process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */ = {
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
146
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
147
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
148
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
149
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
150
150
|
/**
|
|
151
151
|
* The content of the component.
|
|
152
152
|
*/
|
|
@@ -667,10 +667,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
|
|
670
|
-
//
|
|
671
|
-
//
|
|
672
|
-
//
|
|
673
|
-
//
|
|
670
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
671
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
672
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
673
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
674
674
|
/**
|
|
675
675
|
* If `true`, the portion of the selected suggestion that the user hasn't typed,
|
|
676
676
|
* known as the completion string, appears inline after the input cursor in the textbox.
|
package/node/Avatar/Avatar.js
CHANGED
|
@@ -192,10 +192,10 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
194
194
|
process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
//
|
|
198
|
-
//
|
|
195
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
196
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
197
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
198
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
199
199
|
/**
|
|
200
200
|
* Used in combination with `src` or `srcSet` to
|
|
201
201
|
* provide an alt attribute for the rendered `img` element.
|
|
@@ -144,10 +144,10 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
144
144
|
}));
|
|
145
145
|
});
|
|
146
146
|
process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptypes */ = {
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
147
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
148
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
149
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
150
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
151
151
|
/**
|
|
152
152
|
* The avatars to stack.
|
|
153
153
|
*/
|
|
@@ -98,10 +98,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
98
98
|
}));
|
|
99
99
|
});
|
|
100
100
|
process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes */ = {
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
101
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
102
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
103
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
104
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
105
105
|
/**
|
|
106
106
|
* The content of the component.
|
|
107
107
|
*/
|
package/node/Badge/Badge.js
CHANGED
|
@@ -15,7 +15,7 @@ var _utils = require("@mui/utils");
|
|
|
15
15
|
var _composeClasses = require("@mui/base/composeClasses");
|
|
16
16
|
var _useBadge = require("@mui/base/useBadge");
|
|
17
17
|
var _base = require("@mui/base");
|
|
18
|
-
var
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
20
20
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
21
21
|
var _badgeClasses = _interopRequireWildcard(require("./badgeClasses"));
|
|
@@ -40,7 +40,7 @@ const useUtilityClasses = ownerState => {
|
|
|
40
40
|
};
|
|
41
41
|
return (0, _composeClasses.unstable_composeClasses)(slots, _badgeClasses.getBadgeUtilityClass, classes);
|
|
42
42
|
};
|
|
43
|
-
const BadgeRoot = (0,
|
|
43
|
+
const BadgeRoot = (0, _zeroStyled.styled)('span', {
|
|
44
44
|
name: 'MuiBadge',
|
|
45
45
|
slot: 'Root',
|
|
46
46
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -51,7 +51,7 @@ const BadgeRoot = (0, _styled.default)('span', {
|
|
|
51
51
|
verticalAlign: 'middle',
|
|
52
52
|
flexShrink: 0
|
|
53
53
|
});
|
|
54
|
-
const BadgeBadge = (0,
|
|
54
|
+
const BadgeBadge = (0, _zeroStyled.styled)('span', {
|
|
55
55
|
name: 'MuiBadge',
|
|
56
56
|
slot: 'Badge',
|
|
57
57
|
overridesResolver: (props, styles) => {
|
|
@@ -320,10 +320,10 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
320
320
|
}));
|
|
321
321
|
});
|
|
322
322
|
process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ = {
|
|
323
|
-
//
|
|
324
|
-
//
|
|
325
|
-
//
|
|
326
|
-
//
|
|
323
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
324
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
325
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
326
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
327
327
|
/**
|
|
328
328
|
* The anchor of the badge.
|
|
329
329
|
* @default {
|
|
@@ -86,10 +86,10 @@ const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation
|
|
|
86
86
|
}));
|
|
87
87
|
});
|
|
88
88
|
process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes /* remove-proptypes */ = {
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
89
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
90
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
91
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
92
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
93
93
|
/**
|
|
94
94
|
* The content of the component.
|
|
95
95
|
*/
|
|
@@ -127,10 +127,10 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
|
|
|
127
127
|
}));
|
|
128
128
|
});
|
|
129
129
|
process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes /* remove-proptypes */ = {
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
//
|
|
130
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
133
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
134
134
|
/**
|
|
135
135
|
* This prop isn't supported.
|
|
136
136
|
* Use the `component` prop if you need to change the children structure.
|
package/node/Box/Box.js
CHANGED
|
@@ -20,10 +20,10 @@ const Box = (0, _system.createBox)({
|
|
|
20
20
|
generateClassName: _className.unstable_ClassNameGenerator.generate
|
|
21
21
|
});
|
|
22
22
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
23
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
24
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
25
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
26
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
27
27
|
/**
|
|
28
28
|
* @ignore
|
|
29
29
|
*/
|
|
@@ -176,10 +176,10 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps,
|
|
|
176
176
|
}));
|
|
177
177
|
});
|
|
178
178
|
process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes /* remove-proptypes */ = {
|
|
179
|
-
//
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
//
|
|
179
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
180
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
181
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
182
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
183
183
|
/**
|
|
184
184
|
* The content of the component.
|
|
185
185
|
*/
|
package/node/Button/Button.js
CHANGED
|
@@ -290,10 +290,10 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
290
290
|
}));
|
|
291
291
|
});
|
|
292
292
|
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
|
293
|
-
//
|
|
294
|
-
//
|
|
295
|
-
//
|
|
296
|
-
//
|
|
293
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
294
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
295
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
296
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
297
297
|
/**
|
|
298
298
|
* The content of the component.
|
|
299
299
|
*/
|
|
@@ -323,10 +323,10 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
323
323
|
}));
|
|
324
324
|
});
|
|
325
325
|
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes /* remove-proptypes */ = {
|
|
326
|
-
//
|
|
327
|
-
//
|
|
328
|
-
//
|
|
329
|
-
//
|
|
326
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
327
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
328
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
329
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
330
330
|
/**
|
|
331
331
|
* A ref for imperative actions.
|
|
332
332
|
* It currently only supports `focusVisible()` action.
|
|
@@ -224,10 +224,10 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
226
|
process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes /* remove-proptypes */ = {
|
|
227
|
-
//
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
227
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
228
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
229
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
230
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
231
231
|
/**
|
|
232
232
|
* The content of the component.
|
|
233
233
|
*/
|
package/node/Card/Card.js
CHANGED
|
@@ -61,10 +61,10 @@ const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
|
|
61
61
|
}, other));
|
|
62
62
|
});
|
|
63
63
|
process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
64
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
65
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
66
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
67
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
68
68
|
/**
|
|
69
69
|
* The content of the component.
|
|
70
70
|
*/
|
|
@@ -99,10 +99,10 @@ const CardActionArea = /*#__PURE__*/React.forwardRef(function CardActionArea(inP
|
|
|
99
99
|
}));
|
|
100
100
|
});
|
|
101
101
|
process.env.NODE_ENV !== "production" ? CardActionArea.propTypes /* remove-proptypes */ = {
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
102
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
103
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
104
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
105
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
106
106
|
/**
|
|
107
107
|
* The content of the component.
|
|
108
108
|
*/
|
|
@@ -70,10 +70,10 @@ const CardActions = /*#__PURE__*/React.forwardRef(function CardActions(inProps,
|
|
|
70
70
|
}, other));
|
|
71
71
|
});
|
|
72
72
|
process.env.NODE_ENV !== "production" ? CardActions.propTypes /* remove-proptypes */ = {
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
73
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
74
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
75
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
76
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
77
77
|
/**
|
|
78
78
|
* The content of the component.
|
|
79
79
|
*/
|
|
@@ -62,10 +62,10 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps,
|
|
|
62
62
|
}, other));
|
|
63
63
|
});
|
|
64
64
|
process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptypes */ = {
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
//
|
|
65
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
66
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
67
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
68
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
69
69
|
/**
|
|
70
70
|
* The content of the component.
|
|
71
71
|
*/
|