@mui/material 5.0.6 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -1
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.js +1 -1
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +4 -1
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.js +1 -1
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.js +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/Box/Box.d.ts +18 -2
- package/Box/Box.js +4 -1
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Button/Button.js +40 -9
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonGroup/ButtonGroup.js +23 -27
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -0
- package/ButtonGroup/ButtonGroupContext.js +12 -0
- package/CHANGELOG.md +107 -0
- package/Card/Card.js +1 -1
- package/CardActionArea/CardActionArea.js +1 -1
- package/CardActions/CardActions.js +1 -1
- package/CardContent/CardContent.js +1 -1
- package/CardHeader/CardHeader.js +1 -1
- package/CardMedia/CardMedia.js +1 -1
- package/Checkbox/Checkbox.js +1 -1
- package/Chip/Chip.js +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Collapse/Collapse.js +1 -1
- package/Container/Container.js +1 -1
- package/CssBaseline/CssBaseline.d.ts +7 -0
- package/CssBaseline/CssBaseline.js +20 -12
- package/Dialog/Dialog.js +1 -1
- package/DialogActions/DialogActions.js +1 -1
- package/DialogContent/DialogContent.js +1 -1
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +1 -1
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +2 -2
- package/FormControlLabel/FormControlLabel.js +3 -3
- package/FormGroup/FormGroup.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/Grid/Grid.d.ts +31 -11
- package/Grid/Grid.js +56 -24
- package/Icon/Icon.js +1 -1
- package/IconButton/IconButton.js +1 -1
- package/ImageList/ImageList.js +1 -1
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/Input/Input.js +1 -1
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.js +3 -4
- package/InputLabel/InputLabel.js +1 -1
- package/LICENSE +21 -21
- package/LinearProgress/LinearProgress.js +1 -1
- package/Link/Link.js +1 -1
- package/List/List.js +1 -1
- package/ListItem/ListItem.d.ts +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemButton/ListItemButton.d.ts +1 -1
- package/ListItemButton/ListItemButton.js +1 -1
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemText/ListItemText.js +1 -1
- package/ListSubheader/ListSubheader.js +1 -1
- package/Menu/Menu.js +1 -1
- package/MenuItem/MenuItem.js +1 -1
- package/MobileStepper/MobileStepper.js +1 -1
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/OutlinedInput/NotchedOutline.js +6 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +15 -0
- package/PaginationItem/PaginationItem.js +32 -10
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.js +1 -1
- package/Radio/Radio.js +1 -1
- package/RadioGroup/RadioGroupContext.d.ts +11 -0
- package/RadioGroup/RadioGroupContext.js +2 -2
- package/RadioGroup/useRadioGroup.d.ts +4 -5
- package/Rating/Rating.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/Select/Select.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.js +1 -1
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/Stack/Stack.js +5 -2
- package/Step/Step.js +1 -1
- package/StepButton/StepButton.js +1 -1
- package/StepConnector/StepConnector.js +1 -1
- package/StepContent/StepContent.js +1 -1
- package/StepIcon/StepIcon.js +1 -1
- package/StepLabel/StepLabel.js +1 -1
- package/Stepper/Stepper.js +1 -1
- package/SvgIcon/SvgIcon.js +1 -1
- package/Switch/Switch.js +1 -1
- package/Tab/Tab.js +1 -1
- package/TabScrollButton/TabScrollButton.js +1 -1
- package/Table/Table.js +1 -1
- package/TableBody/TableBody.js +1 -1
- package/TableCell/TableCell.js +1 -1
- package/TableContainer/TableContainer.js +1 -1
- package/TableFooter/TableFooter.js +1 -1
- package/TableHead/TableHead.js +1 -1
- package/TablePagination/TablePagination.js +1 -1
- package/TableRow/TableRow.js +1 -1
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/Tabs/Tabs.js +1 -1
- package/TextField/TextField.js +1 -1
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Tooltip/Tooltip.d.ts +3 -1
- package/Tooltip/Tooltip.js +4 -2
- package/Typography/Typography.js +1 -1
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +1 -1
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +4 -2
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +1 -1
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/legacy/Box/Box.js +4 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +40 -16
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +25 -27
- package/legacy/ButtonGroup/ButtonGroupContext.js +12 -0
- package/legacy/Card/Card.js +1 -1
- package/legacy/CardActionArea/CardActionArea.js +1 -1
- package/legacy/CardActions/CardActions.js +1 -1
- package/legacy/CardContent/CardContent.js +1 -1
- package/legacy/CardHeader/CardHeader.js +1 -1
- package/legacy/CardMedia/CardMedia.js +1 -1
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/Chip/Chip.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Collapse/Collapse.js +1 -1
- package/legacy/Container/Container.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +38 -20
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +1 -1
- package/legacy/DialogContentText/DialogContentText.js +1 -1
- package/legacy/DialogTitle/DialogTitle.js +1 -1
- package/legacy/Divider/Divider.js +1 -1
- package/legacy/Drawer/Drawer.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -3
- package/legacy/FormGroup/FormGroup.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +1 -1
- package/legacy/FormLabel/FormLabel.js +1 -1
- package/legacy/Grid/Grid.js +57 -24
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/ImageList/ImageList.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +1 -1
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +3 -4
- package/legacy/InputLabel/InputLabel.js +1 -1
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/Link/Link.js +1 -1
- package/legacy/List/List.js +1 -1
- package/legacy/ListItem/ListItem.js +1 -1
- package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
- package/legacy/ListItemButton/ListItemButton.js +1 -1
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/legacy/ListItemText/ListItemText.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +1 -1
- package/legacy/Menu/Menu.js +1 -1
- package/legacy/MenuItem/MenuItem.js +1 -1
- package/legacy/MobileStepper/MobileStepper.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/NativeSelect/NativeSelect.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +6 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +33 -10
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/RadioGroup/RadioGroupContext.js +2 -2
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +13 -4
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/Stack/Stack.js +5 -2
- package/legacy/Step/Step.js +1 -1
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepConnector/StepConnector.js +1 -1
- package/legacy/StepContent/StepContent.js +1 -1
- package/legacy/StepIcon/StepIcon.js +1 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/Stepper/Stepper.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/Switch/Switch.js +1 -1
- package/legacy/Tab/Tab.js +1 -1
- package/legacy/TabScrollButton/TabScrollButton.js +1 -1
- package/legacy/Table/Table.js +1 -1
- package/legacy/TableBody/TableBody.js +1 -1
- package/legacy/TableCell/TableCell.js +1 -1
- package/legacy/TableContainer/TableContainer.js +1 -1
- package/legacy/TableFooter/TableFooter.js +1 -1
- package/legacy/TableHead/TableHead.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +1 -1
- package/legacy/TableSortLabel/TableSortLabel.js +1 -1
- package/legacy/Tabs/Tabs.js +1 -1
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +4 -2
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/createPalette.js +1 -1
- package/modern/Accordion/Accordion.js +1 -1
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +4 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/modern/Box/Box.js +4 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +40 -9
- package/modern/ButtonBase/ButtonBase.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +23 -27
- package/modern/ButtonGroup/ButtonGroupContext.js +12 -0
- package/modern/Card/Card.js +1 -1
- package/modern/CardActionArea/CardActionArea.js +1 -1
- package/modern/CardActions/CardActions.js +1 -1
- package/modern/CardContent/CardContent.js +1 -1
- package/modern/CardHeader/CardHeader.js +1 -1
- package/modern/CardMedia/CardMedia.js +1 -1
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Chip/Chip.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Collapse/Collapse.js +1 -1
- package/modern/Container/Container.js +1 -1
- package/modern/CssBaseline/CssBaseline.js +20 -12
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +1 -1
- package/modern/DialogContentText/DialogContentText.js +1 -1
- package/modern/DialogTitle/DialogTitle.js +1 -1
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -3
- package/modern/FormGroup/FormGroup.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +1 -1
- package/modern/FormLabel/FormLabel.js +1 -1
- package/modern/Grid/Grid.js +56 -24
- package/modern/Icon/Icon.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/ImageList/ImageList.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +1 -1
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +3 -4
- package/modern/InputLabel/InputLabel.js +1 -1
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/Link/Link.js +1 -1
- package/modern/List/List.js +1 -1
- package/modern/ListItem/ListItem.js +1 -1
- package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
- package/modern/ListItemButton/ListItemButton.js +1 -1
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/modern/ListItemText/ListItemText.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +1 -1
- package/modern/Menu/Menu.js +1 -1
- package/modern/MenuItem/MenuItem.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/NativeSelect/NativeSelect.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +6 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +32 -10
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/RadioGroup/RadioGroupContext.js +2 -2
- package/modern/Rating/Rating.js +1 -1
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/Stack/Stack.js +5 -2
- package/modern/Step/Step.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/StepConnector/StepConnector.js +1 -1
- package/modern/StepContent/StepContent.js +1 -1
- package/modern/StepIcon/StepIcon.js +1 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/Stepper/Stepper.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/Switch/Switch.js +1 -1
- package/modern/Tab/Tab.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +1 -1
- package/modern/Table/Table.js +1 -1
- package/modern/TableBody/TableBody.js +1 -1
- package/modern/TableCell/TableCell.js +1 -1
- package/modern/TableContainer/TableContainer.js +1 -1
- package/modern/TableFooter/TableFooter.js +1 -1
- package/modern/TableHead/TableHead.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +1 -1
- package/modern/TableSortLabel/TableSortLabel.js +1 -1
- package/modern/Tabs/Tabs.js +1 -1
- package/modern/TextField/TextField.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +4 -2
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createPalette.js +1 -1
- package/node/Accordion/Accordion.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +4 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/Box/Box.js +5 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Button/Button.js +40 -9
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +24 -28
- package/node/ButtonGroup/ButtonGroupContext.js +24 -0
- package/node/Card/Card.js +1 -1
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardHeader/CardHeader.js +1 -1
- package/node/CardMedia/CardMedia.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Chip/Chip.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Container/Container.js +1 -1
- package/node/CssBaseline/CssBaseline.js +22 -12
- package/node/Dialog/Dialog.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +3 -3
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/Grid/Grid.js +56 -22
- package/node/Icon/Icon.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +3 -4
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/List/List.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +6 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +32 -10
- package/node/Paper/Paper.js +1 -1
- package/node/Popover/Popover.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/node/Select/Select.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/Stack/Stack.js +5 -2
- package/node/Step/Step.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Tooltip/Tooltip.js +4 -2
- package/node/Typography/Typography.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/createPalette.js +1 -1
- package/package.json +7 -6
- package/styles/createPalette.js +1 -1
- package/umd/material-ui.development.js +443 -258
- package/umd/material-ui.production.min.js +18 -18
package/Accordion/Accordion.js
CHANGED
|
@@ -261,7 +261,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes
|
|
|
261
261
|
/**
|
|
262
262
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
263
263
|
*/
|
|
264
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
264
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* The component used for the transition.
|
|
@@ -97,6 +97,6 @@ process.env.NODE_ENV !== "production" ? AccordionActions.propTypes
|
|
|
97
97
|
/**
|
|
98
98
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
99
99
|
*/
|
|
100
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
100
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
101
101
|
} : void 0;
|
|
102
102
|
export default AccordionActions;
|
|
@@ -74,6 +74,6 @@ process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes
|
|
|
74
74
|
/**
|
|
75
75
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
76
76
|
*/
|
|
77
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
77
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
78
78
|
} : void 0;
|
|
79
79
|
export default AccordionDetails;
|
|
@@ -204,6 +204,6 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
|
|
|
204
204
|
/**
|
|
205
205
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
206
206
|
*/
|
|
207
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
207
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
208
208
|
} : void 0;
|
|
209
209
|
export default AccordionSummary;
|
package/Alert/Alert.js
CHANGED
|
@@ -269,7 +269,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
|
|
|
269
269
|
/**
|
|
270
270
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
271
271
|
*/
|
|
272
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
272
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* The variant to use.
|
package/AlertTitle/AlertTitle.js
CHANGED
|
@@ -80,6 +80,6 @@ process.env.NODE_ENV !== "production" ? AlertTitle.propTypes
|
|
|
80
80
|
/**
|
|
81
81
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
82
82
|
*/
|
|
83
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
83
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
84
84
|
} : void 0;
|
|
85
85
|
export default AlertTitle;
|
package/AppBar/AppBar.js
CHANGED
|
@@ -168,6 +168,6 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes
|
|
|
168
168
|
/**
|
|
169
169
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
170
170
|
*/
|
|
171
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
171
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
172
172
|
} : void 0;
|
|
173
173
|
export default AppBar;
|
|
@@ -176,6 +176,9 @@ const AutocompleteRoot = styled('div', {
|
|
|
176
176
|
padding: '2.5px 4px'
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
|
+
[`& .${inputBaseClasses.hiddenLabel}`]: {
|
|
180
|
+
paddingTop: 8
|
|
181
|
+
},
|
|
179
182
|
[`& .${autocompleteClasses.input}`]: _extends({
|
|
180
183
|
flexGrow: 1,
|
|
181
184
|
textOverflow: 'ellipsis',
|
|
@@ -1043,7 +1046,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1043
1046
|
/**
|
|
1044
1047
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1045
1048
|
*/
|
|
1046
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1049
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
1047
1050
|
|
|
1048
1051
|
/**
|
|
1049
1052
|
* The value of the autocomplete.
|
package/Avatar/Avatar.js
CHANGED
|
@@ -255,7 +255,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes
|
|
|
255
255
|
/**
|
|
256
256
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
257
257
|
*/
|
|
258
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
258
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* The shape of the avatar.
|
|
@@ -165,7 +165,7 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
|
|
|
165
165
|
/**
|
|
166
166
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
167
167
|
*/
|
|
168
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
168
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* The variant to use.
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -143,7 +143,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
|
143
143
|
/**
|
|
144
144
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
145
145
|
*/
|
|
146
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
146
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The duration for the transition, in milliseconds.
|
package/Badge/Badge.js
CHANGED
|
@@ -298,7 +298,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
298
298
|
/**
|
|
299
299
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
300
300
|
*/
|
|
301
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
301
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* The variant to use.
|
|
@@ -129,7 +129,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes
|
|
|
129
129
|
/**
|
|
130
130
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
131
131
|
*/
|
|
132
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
132
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* The value of the currently selected `BottomNavigationAction`.
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes
|
|
|
176
176
|
/**
|
|
177
177
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
178
178
|
*/
|
|
179
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
179
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
package/Box/Box.d.ts
CHANGED
|
@@ -20,7 +20,15 @@ export interface BoxTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
20
20
|
*
|
|
21
21
|
* API:
|
|
22
22
|
*
|
|
23
|
-
* - [Box API](https://mui.com/
|
|
23
|
+
* - [Box API](https://mui.com/components/box/#api)
|
|
24
|
+
* NOTE - As a CSS utility component, Box also supports all system props.
|
|
25
|
+
* You can use them as props directly on the component.
|
|
26
|
+
* Props use same syntax as `sx`. Not all props are listed in the API section.
|
|
27
|
+
*
|
|
28
|
+
* Example:
|
|
29
|
+
*
|
|
30
|
+
* // For instance, a Box with margin-top:
|
|
31
|
+
* <Box mt={2}>
|
|
24
32
|
*/
|
|
25
33
|
declare const Box: OverridableComponent<BoxTypeMap>;
|
|
26
34
|
|
|
@@ -37,6 +45,14 @@ export type BoxProps<
|
|
|
37
45
|
*
|
|
38
46
|
* API:
|
|
39
47
|
*
|
|
40
|
-
* - [Box API](https://mui.com/
|
|
48
|
+
* - [Box API](https://mui.com/components/box/#api)
|
|
49
|
+
* NOTE - As a CSS utility component, Box also supports all system props.
|
|
50
|
+
* You can use them as props directly on the component.
|
|
51
|
+
* Props use same syntax as `sx`. Not all props are listed in the API section.
|
|
52
|
+
*
|
|
53
|
+
* Example:
|
|
54
|
+
*
|
|
55
|
+
* // For instance, a Box with margin-top:
|
|
56
|
+
* <Box mt={2}>
|
|
41
57
|
*/
|
|
42
58
|
export default Box;
|
package/Box/Box.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createBox } from '@mui/system';
|
|
2
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../utils';
|
|
2
3
|
import { createTheme } from '../styles';
|
|
3
4
|
const defaultTheme = createTheme();
|
|
4
5
|
/**
|
|
@@ -6,6 +7,8 @@ const defaultTheme = createTheme();
|
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const Box = createBox({
|
|
9
|
-
defaultTheme
|
|
10
|
+
defaultTheme,
|
|
11
|
+
defaultClassName: 'MuiBox-root',
|
|
12
|
+
generateClassName: ClassNameGenerator.generate
|
|
10
13
|
});
|
|
11
14
|
export default Box;
|
|
@@ -232,6 +232,6 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes
|
|
|
232
232
|
/**
|
|
233
233
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
234
234
|
*/
|
|
235
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
235
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
236
236
|
} : void 0;
|
|
237
237
|
export default Breadcrumbs;
|
package/Button/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
3
|
+
const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -11,6 +11,7 @@ import useThemeProps from '../styles/useThemeProps';
|
|
|
11
11
|
import ButtonBase from '../ButtonBase';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import buttonClasses, { getButtonUtilityClass } from './buttonClasses';
|
|
14
|
+
import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
|
|
@@ -217,24 +218,47 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
217
218
|
props: inProps,
|
|
218
219
|
name: 'MuiButton'
|
|
219
220
|
});
|
|
221
|
+
const {
|
|
222
|
+
className: classNameContext,
|
|
223
|
+
color: colorContext,
|
|
224
|
+
disabled: disabledContext,
|
|
225
|
+
disableElevation: disableElevationContext,
|
|
226
|
+
disableFocusRipple: disableFocusRippleContext,
|
|
227
|
+
disableRipple: disableRippleContext,
|
|
228
|
+
fullWidth: fullWidthContext,
|
|
229
|
+
size: sizeContext,
|
|
230
|
+
variant: variantContext
|
|
231
|
+
} = React.useContext(ButtonGroupContext);
|
|
220
232
|
|
|
221
233
|
const {
|
|
222
234
|
children,
|
|
223
|
-
|
|
235
|
+
className,
|
|
236
|
+
color: colorProp,
|
|
224
237
|
component = 'button',
|
|
225
|
-
disabled
|
|
226
|
-
disableElevation
|
|
227
|
-
disableFocusRipple
|
|
238
|
+
disabled: disabledProp,
|
|
239
|
+
disableElevation: disableElevationProp,
|
|
240
|
+
disableFocusRipple: disableFocusRippleProp,
|
|
241
|
+
disableRipple: disableRippleProp,
|
|
228
242
|
endIcon: endIconProp,
|
|
229
243
|
focusVisibleClassName,
|
|
230
|
-
fullWidth
|
|
231
|
-
size
|
|
244
|
+
fullWidth: fullWidthProp,
|
|
245
|
+
size: sizeProp,
|
|
232
246
|
startIcon: startIconProp,
|
|
233
247
|
type,
|
|
234
|
-
variant
|
|
248
|
+
variant: variantProp
|
|
235
249
|
} = props,
|
|
236
250
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
237
251
|
|
|
252
|
+
const color = colorProp || colorContext || 'primary'; // TODO v6: Use nullish coalescing (??) instead of OR operator for these boolean props so that these boolean props for Button with ButtonGroup context take priority. See conversation from https://github.com/mui-org/material-ui/pull/28645#discussion_r738380902.
|
|
253
|
+
|
|
254
|
+
const disabled = disabledProp || disabledContext || false;
|
|
255
|
+
const disableElevation = disableElevationProp || disableElevationContext || false;
|
|
256
|
+
const disableFocusRipple = disableFocusRippleProp || disableFocusRippleContext || false;
|
|
257
|
+
const fullWidth = fullWidthProp || fullWidthContext || false;
|
|
258
|
+
const size = sizeProp || sizeContext || 'medium';
|
|
259
|
+
const variant = variantProp || variantContext || 'text';
|
|
260
|
+
const disableRipple = disableRippleProp || disableRippleContext || false;
|
|
261
|
+
|
|
238
262
|
const ownerState = _extends({}, props, {
|
|
239
263
|
color,
|
|
240
264
|
component,
|
|
@@ -263,8 +287,10 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
263
287
|
|
|
264
288
|
return /*#__PURE__*/_jsxs(ButtonRoot, _extends({
|
|
265
289
|
ownerState: ownerState,
|
|
290
|
+
className: clsx(className, classNameContext),
|
|
266
291
|
component: component,
|
|
267
292
|
disabled: disabled,
|
|
293
|
+
disableRipple: disableRipple,
|
|
268
294
|
focusRipple: !disableFocusRipple,
|
|
269
295
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
270
296
|
ref: ref,
|
|
@@ -292,6 +318,11 @@ process.env.NODE_ENV !== "production" ? Button.propTypes
|
|
|
292
318
|
*/
|
|
293
319
|
classes: PropTypes.object,
|
|
294
320
|
|
|
321
|
+
/**
|
|
322
|
+
* @ignore
|
|
323
|
+
*/
|
|
324
|
+
className: PropTypes.string,
|
|
325
|
+
|
|
295
326
|
/**
|
|
296
327
|
* The color of the component. It supports those theme colors that make sense for this component.
|
|
297
328
|
* @default 'primary'
|
|
@@ -372,7 +403,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes
|
|
|
372
403
|
/**
|
|
373
404
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
374
405
|
*/
|
|
375
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
406
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
376
407
|
|
|
377
408
|
/**
|
|
378
409
|
* @ignore
|
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
|
|
|
514
514
|
/**
|
|
515
515
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
516
516
|
*/
|
|
517
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
517
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
518
518
|
|
|
519
519
|
/**
|
|
520
520
|
* @default 0
|
|
@@ -2,7 +2,6 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { isFragment } from 'react-is';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import clsx from 'clsx';
|
|
8
7
|
import { unstable_composeClasses as composeClasses } from '@mui/core';
|
|
@@ -11,6 +10,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
10
|
import styled from '../styles/styled';
|
|
12
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
12
|
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
|
13
|
+
import ButtonGroupContext from './ButtonGroupContext';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
const overridesResolver = (props, styles) => {
|
|
@@ -107,10 +107,14 @@ const ButtonGroupRoot = styled('div', {
|
|
|
107
107
|
}
|
|
108
108
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
109
109
|
borderColor: theme.palette[ownerState.color].dark
|
|
110
|
+
}, {
|
|
111
|
+
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
112
|
+
borderRightColor: 'currentColor'
|
|
113
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
114
|
+
borderBottomColor: 'currentColor'
|
|
115
|
+
})
|
|
110
116
|
}),
|
|
111
|
-
'&:hover': _extends({}, ownerState.variant === '
|
|
112
|
-
borderColor: theme.palette[ownerState.color].main
|
|
113
|
-
}, ownerState.variant === 'contained' && {
|
|
117
|
+
'&:hover': _extends({}, ownerState.variant === 'contained' && {
|
|
114
118
|
boxShadow: 'none'
|
|
115
119
|
})
|
|
116
120
|
}, ownerState.variant === 'contained' && {
|
|
@@ -153,6 +157,17 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
153
157
|
});
|
|
154
158
|
|
|
155
159
|
const classes = useUtilityClasses(ownerState);
|
|
160
|
+
const context = React.useMemo(() => ({
|
|
161
|
+
className: classes.grouped,
|
|
162
|
+
color,
|
|
163
|
+
disabled,
|
|
164
|
+
disableElevation,
|
|
165
|
+
disableFocusRipple,
|
|
166
|
+
disableRipple,
|
|
167
|
+
fullWidth,
|
|
168
|
+
size,
|
|
169
|
+
variant
|
|
170
|
+
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
156
171
|
return /*#__PURE__*/_jsx(ButtonGroupRoot, _extends({
|
|
157
172
|
as: component,
|
|
158
173
|
role: "group",
|
|
@@ -160,28 +175,9 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
160
175
|
ref: ref,
|
|
161
176
|
ownerState: ownerState
|
|
162
177
|
}, other, {
|
|
163
|
-
children:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
169
|
-
if (isFragment(child)) {
|
|
170
|
-
console.error(["MUI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
175
|
-
className: clsx(classes.grouped, child.props.className),
|
|
176
|
-
color: child.props.color || color,
|
|
177
|
-
disabled: child.props.disabled || disabled,
|
|
178
|
-
disableElevation: child.props.disableElevation || disableElevation,
|
|
179
|
-
disableFocusRipple,
|
|
180
|
-
disableRipple,
|
|
181
|
-
fullWidth,
|
|
182
|
-
size: child.props.size || size,
|
|
183
|
-
variant: child.props.variant || variant
|
|
184
|
-
});
|
|
178
|
+
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
179
|
+
value: context,
|
|
180
|
+
children: children
|
|
185
181
|
})
|
|
186
182
|
}));
|
|
187
183
|
});
|
|
@@ -270,7 +266,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes
|
|
|
270
266
|
/**
|
|
271
267
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
272
268
|
*/
|
|
273
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
269
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
274
270
|
|
|
275
271
|
/**
|
|
276
272
|
* The variant to use.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
interface IButtonGroupContext {
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: ButtonGroupProps['color'];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
disabledElevation?: boolean;
|
|
8
|
+
disableFocusRipple?: boolean;
|
|
9
|
+
disableRipple?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
size?: ButtonGroupProps['size'];
|
|
12
|
+
variant?: ButtonGroupProps['variant'];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @ignore - internal component.
|
|
16
|
+
*/
|
|
17
|
+
declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
|
|
18
|
+
export default ButtonGroupContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ignore - internal component.
|
|
5
|
+
*/
|
|
6
|
+
const ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
|
7
|
+
|
|
8
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9
|
+
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ButtonGroupContext;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,112 @@
|
|
|
1
1
|
### [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.0.6..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 8, 2021_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🎉 Support custom elements under `ButtonGroup` (#28645) @ZeeshanTamboli
|
|
12
|
+
- 🛠 Add support for arrays in the `sx` prop (#29297) @siriwatknp
|
|
13
|
+
- And many more 🐛 bug fixes and 📚 improvements.
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.1.0`
|
|
16
|
+
|
|
17
|
+
- ​<!-- 68 -->[Autocomplete] Fix `hiddenLabel` prop of `TextField variant={filled}` inside Autocomplete (#29234) @jatinsandilya
|
|
18
|
+
- ​<!-- 67 -->[Box] Support generateClassName and defaultClassName (#29347) @siriwatknp
|
|
19
|
+
- ​<!-- 66 -->[ButtonGroup] Fix variant outlined always has primary color borders on hover (#29487) @ZeeshanTamboli
|
|
20
|
+
- ​<!-- 65 -->[ButtonGroup] Support different elements under ButtonGroup (#28645) @ZeeshanTamboli
|
|
21
|
+
- ​<!-- 62 -->[CssBaseline] Add `enableColorScheme` prop so enable using `color-scheme` property to deal with dark mode (#29454) @alexfauquette
|
|
22
|
+
- ​<!-- 29 -->[FormControlLabel] Narrow the label type (#29324) @michaldudak
|
|
23
|
+
- ​<!-- 28 -->[Grid] Fix usage when columns > 12 (#29196) @tanay123456789
|
|
24
|
+
- ​<!-- 27 -->[InputBase] Do not repeat the same classname (#29353) @hbjORbj
|
|
25
|
+
- ​<!-- 30 -->[InputBase] Remove WebkitAppearance from search type (#29383) @nicbarajas
|
|
26
|
+
- ​<!-- 25 -->[ListItem] Add missing exports (#29571) @robcaldecott
|
|
27
|
+
- ​<!-- 22 -->[Pagination] Allow customization of icons (#29336) @mbeltramin
|
|
28
|
+
- ​<!-- 11 -->[TextField] Fix bootstrap, normalize.css, sanitize.css conflicts (#28674) @ChrisClaude
|
|
29
|
+
- ​<!-- 10 -->[TextField] Fix invisible wrap within notched inputs (#29088) @DASPRiD
|
|
30
|
+
- ​<!-- 09 -->[Tooltip] `open` prop in `componentsProps.popper` can be optional (#29370) @ZeeshanTamboli
|
|
31
|
+
- ​<!-- 08 -->[Tooltip] Fix `className` not getting applied from PopperProps (#29023) @ZeeshanTamboli
|
|
32
|
+
- ​<!-- 07 -->[useRadioGroup] Convert to TypeScript (#29326) @eps1lon
|
|
33
|
+
|
|
34
|
+
### `@mui/system@5.1.0`
|
|
35
|
+
|
|
36
|
+
- ​<!-- 21 -->[system] Introduce `mode` to CssVarsProvider (#29418) @siriwatknp
|
|
37
|
+
- ​<!-- 20 -->[system] Improve breakpoints resolver function (#29300) @hbjORbj
|
|
38
|
+
- ​<!-- 19 -->[system] Add array support for `sx` prop (#29297) @siriwatknp
|
|
39
|
+
|
|
40
|
+
### `@mui/codemod@5.1.0`
|
|
41
|
+
|
|
42
|
+
- ​<!-- 64 -->[codemod] Add codemod parser flag (#29059) (#29229) @ElonVolo
|
|
43
|
+
|
|
44
|
+
### `@mui/lab@5.0.0-alpha.54`
|
|
45
|
+
|
|
46
|
+
- ​<!-- 52 -->[DatePicker] Fix disabled/readOnly for view components (#28815) @adamfitzgibbon
|
|
47
|
+
- ​<!-- 24 -->[Masonry] Fix crash on unmount when using React 18 (#29358) @eps1lon
|
|
48
|
+
- ​<!-- 23 -->[Masonry] Improve height computation and detect changes in `children` (#29351) @hbjORbj
|
|
49
|
+
|
|
50
|
+
### `@mui/joy@5.0.0-alpha.0`
|
|
51
|
+
|
|
52
|
+
- ​<!-- 28 -->[Joy] Update default theme (#29478) @siriwatknp
|
|
53
|
+
- ​<!-- 26 -->[Joy] Export CssVarsProvider with default theme (#29150) @siriwatknp
|
|
54
|
+
- ​<!-- 25 -->[Joy] Remove `private` to leverage CodeSandbox (#29280) @siriwatknp
|
|
55
|
+
|
|
56
|
+
### Docs
|
|
57
|
+
|
|
58
|
+
- ​<!-- 51 -->[docs] Add differences between styled and sx (#28685) @eric-burel
|
|
59
|
+
- ​<!-- 50 -->[docs] Track usage of dark mode in Google Analytics (#29419) @oliviertassinari
|
|
60
|
+
- ​<!-- 49 -->[docs] Remove create-mui-theme as it is no longer working (#29472) @IPJT
|
|
61
|
+
- ​<!-- 48 -->[docs] Fix warnings in AppSearch (#29459) @eps1lon
|
|
62
|
+
- ​<!-- 47 -->[docs] Add framework example for ClassNameGenerator (#29453) @siriwatknp
|
|
63
|
+
- ​<!-- 46 -->[docs] Fix layout shift when scrolling (#29436) @oliviertassinari
|
|
64
|
+
- ​<!-- 45 -->[docs] Fix layout-shift on id='main-content' (#29425) @oliviertassinari
|
|
65
|
+
- ​<!-- 44 -->[docs] Remove usage of `process.browser` (#29438) @oliviertassinari
|
|
66
|
+
- ​<!-- 43 -->[docs] Add instruction on how to use the child selector API with emotion (#29350) @mnajdova
|
|
67
|
+
- ​<!-- 42 -->[docs] Fix small typos (#29424) @oliviertassinari
|
|
68
|
+
- ​<!-- 41 -->[docs] Fix TOC highlighting logic (#29435) @oliviertassinari
|
|
69
|
+
- ​<!-- 40 -->[docs] Fix about page flags (#29314) @mbrookes
|
|
70
|
+
- ​<!-- 39 -->[docs] Fix Box JS docs (#29282) @Pablion
|
|
71
|
+
- ​<!-- 38 -->[docs] Update storybook section in migration to v5 docs (#28800) @siriwatknp
|
|
72
|
+
- ​<!-- 37 -->[docs] Document how to enable color on dark mode (#29340) @Wimukti
|
|
73
|
+
- ​<!-- 36 -->[docs] Display search functionality in all viewports (#28819) @eps1lon
|
|
74
|
+
- ​<!-- 35 -->[docs] Query heading for ToC on demand (#29204) @eps1lon
|
|
75
|
+
- ​<!-- 34 -->[docs] Add next.js styled-component guide and update links to example (#29118) @Jareechang
|
|
76
|
+
- ​<!-- 33 -->[docs] Fix overriding `MuiTextField`'s default props in the migration guide (#29174) @tm1000
|
|
77
|
+
- ​<!-- 32 -->[docs] Fix "clickable" and "deletable" typos (#28702) @jacklaurencegaray
|
|
78
|
+
- ​<!-- 31 -->[docs] Update migration-v4 docs for wrong import path (#29042) @busches
|
|
79
|
+
- ​<!-- 30 -->[docs] Add GitHub icon change to "Migration from v4 to v5" guide (#29182) @dan-mba
|
|
80
|
+
- ​<!-- 06 -->[website] Benny Joo joining MUI (#29499) @mnajdova
|
|
81
|
+
- ​<!-- 05 -->[website] Update the `Print export` feature info on the pricing page (#29484) @DanailH
|
|
82
|
+
- ​<!-- 04 -->[website] Improve the dev rel role description (#29477) @oliviertassinari
|
|
83
|
+
- ​<!-- 03 -->[website] Add customers section on Design Kits and Templates marketing pages (#29168) @danilo-leal
|
|
84
|
+
- ​<!-- 02 -->[website] Improvements to the /core product page @danilo-leal
|
|
85
|
+
- ​<!-- 01 -->[website] Fix typo on the About Page (#29286) @gssakash
|
|
86
|
+
|
|
87
|
+
### Core
|
|
88
|
+
|
|
89
|
+
- ​<!-- 63 -->[core] Handle RecordType and FieldType in generatePropDescription.ts (#29467) @flaviendelangle
|
|
90
|
+
- ​<!-- 61 -->[core] Convert a named color to lowercase (#29465) @ainatenhi
|
|
91
|
+
- ​<!-- 60 -->[core] Allow to reuse functions from `docs:api` (#28828) @m4theushw
|
|
92
|
+
- ​<!-- 59 -->[core] Commit new nextjs 12 tsconfig (#29458) @eps1lon
|
|
93
|
+
- ​<!-- 58 -->[core] Settle on MUI X for the official name (#29420) @oliviertassinari
|
|
94
|
+
- ​<!-- 57 -->[core] Add mui as a npm keyword (#29427) @oliviertassinari
|
|
95
|
+
- ​<!-- 56 -->[core] Fix issue template redirection (#29432) @oliviertassinari
|
|
96
|
+
- ​<!-- 55 -->[core] Remove unecessary destructuration (#29354) @oliviertassinari
|
|
97
|
+
- ​<!-- 54 -->[core] Use cross-env to set env variables in material-icons scripts (#29327) @michaldudak
|
|
98
|
+
- ​<!-- 53 -->[core] Don't bump peer dependency ranges on dependency updates (#29303) @eps1lon
|
|
99
|
+
- ​<!-- 18 -->[test] Fix browser tests (#29505) @eps1lon
|
|
100
|
+
- ​<!-- 69 -->[test] Fix missing act warnings in latest React 18 alpha (#29357) @eps1lon
|
|
101
|
+
- ​<!-- 17 -->[test] Replace `createClientRender` with new `createRenderer` API (#29471) @eps1lon
|
|
102
|
+
- ​<!-- 16 -->[test] Fix possible "missing act" warning (#29463) @eps1lon
|
|
103
|
+
- ​<!-- 15 -->[test] Remove render#baseElement (#29462) @eps1lon
|
|
104
|
+
- ​<!-- 14 -->[test] Expose `AbortController` on global (#29360) @eps1lon
|
|
105
|
+
- ​<!-- 13 -->[test] Add internal test for uniqe `name` in `Rating` (#29329) @eps1lon
|
|
106
|
+
- ​<!-- 12 -->[test] Fix browser tests (#29305) @eps1lon
|
|
107
|
+
|
|
108
|
+
All contributors of this release in alphabetical order: @adamfitzgibbon, @ainatenhi, @alexfauquette, @busches, @ChrisClaude, @dan-mba, @DanailH, @danilo-leal, @DASPRiD, @ElonVolo, @eps1lon, @eric-burel, @flaviendelangle, @gssakash, @hbjORbj, @IPJT, @jacklaurencegaray, @Jareechang, @jatinsandilya, @m4theushw, @mbeltramin, @mbrookes, @michaldudak, @mnajdova, @nicbarajas, @oliviertassinari, @Pablion, @robcaldecott, @siriwatknp, @tanay123456789, @tm1000, @Wimukti, @ZeeshanTamboli
|
|
109
|
+
|
|
3
110
|
## 5.0.6
|
|
4
111
|
|
|
5
112
|
<!-- generated comparing v5.0.5..master -->
|
package/Card/Card.js
CHANGED
|
@@ -93,6 +93,6 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
93
93
|
/**
|
|
94
94
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
95
95
|
*/
|
|
96
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
96
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
97
97
|
} : void 0;
|
|
98
98
|
export default Card;
|
|
@@ -122,6 +122,6 @@ process.env.NODE_ENV !== "production" ? CardActionArea.propTypes
|
|
|
122
122
|
/**
|
|
123
123
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
124
124
|
*/
|
|
125
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
125
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
126
126
|
} : void 0;
|
|
127
127
|
export default CardActionArea;
|
|
@@ -96,6 +96,6 @@ process.env.NODE_ENV !== "production" ? CardActions.propTypes
|
|
|
96
96
|
/**
|
|
97
97
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
98
98
|
*/
|
|
99
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
99
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
100
100
|
} : void 0;
|
|
101
101
|
export default CardActions;
|
|
@@ -88,6 +88,6 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes
|
|
|
88
88
|
/**
|
|
89
89
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
90
90
|
*/
|
|
91
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
91
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
92
92
|
} : void 0;
|
|
93
93
|
export default CardContent;
|
package/CardHeader/CardHeader.js
CHANGED
|
@@ -203,7 +203,7 @@ process.env.NODE_ENV !== "production" ? CardHeader.propTypes
|
|
|
203
203
|
/**
|
|
204
204
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
205
205
|
*/
|
|
206
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
206
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* The content of the component.
|
package/CardMedia/CardMedia.js
CHANGED
|
@@ -148,6 +148,6 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
148
148
|
/**
|
|
149
149
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
150
150
|
*/
|
|
151
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
151
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
152
152
|
} : void 0;
|
|
153
153
|
export default CardMedia;
|
package/Checkbox/Checkbox.js
CHANGED
|
@@ -221,7 +221,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
221
221
|
/**
|
|
222
222
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
223
223
|
*/
|
|
224
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
224
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* The value of the component. The DOM API casts this to a string.
|
package/Chip/Chip.js
CHANGED
|
@@ -515,7 +515,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes
|
|
|
515
515
|
/**
|
|
516
516
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
517
517
|
*/
|
|
518
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
518
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
521
|
* The variant to use.
|