@mui/material 5.0.0-rc.1 → 5.0.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.d.ts +4 -4
- package/Accordion/Accordion.js +3 -3
- package/Accordion/AccordionContext.js +1 -1
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.ts +2 -2
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Autocomplete/Autocomplete.js +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.ts +4 -4
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.ts +4 -4
- package/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.d.ts +4 -4
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonBase/ButtonBase.js +200 -30
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/CHANGELOG.md +119 -39
- package/Card/Card.d.ts +3 -3
- package/Card/Card.js +1 -1
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/CardMedia/CardMedia.js +1 -1
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Checkbox/Checkbox.js +1 -1
- package/Chip/Chip.d.ts +2 -2
- package/Chip/Chip.js +1 -1
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/CircularProgress/CircularProgress.js +1 -1
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +3 -3
- package/Collapse/Collapse.d.ts +5 -5
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.ts +4 -4
- package/Dialog/Dialog.js +1 -1
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +2 -2
- package/Divider/Divider.d.ts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormLabel/FormLabel.d.ts +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grow/Grow.d.ts +5 -5
- package/Hidden/Hidden.d.ts +2 -2
- package/Hidden/HiddenCss.js +1 -1
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/IconButton/IconButton.js +1 -1
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageList/ImageList.js +2 -4
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.d.ts +2 -2
- package/InputBase/InputBase.js +3 -3
- package/InputLabel/InputLabel.d.ts +3 -3
- package/LinearProgress/LinearProgress.d.ts +2 -2
- package/LinearProgress/LinearProgress.js +2 -2
- package/Link/Link.d.ts +4 -4
- package/List/List.d.ts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemButton/ListItemButton.js +1 -1
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +5 -5
- package/Menu/Menu.js +2 -2
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuItem/MenuItem.js +1 -1
- package/MenuList/MenuList.d.ts +4 -4
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.ts +7 -7
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Paper/Paper.d.ts +3 -3
- package/Paper/Paper.js +2 -2
- package/Popover/Popover.d.ts +5 -5
- package/Popover/Popover.js +6 -6
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +3 -3
- package/README.md +24 -35
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/Rating/Rating.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +4 -4
- package/Select/Select.d.ts +3 -3
- package/Select/SelectInput.js +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +2 -2
- package/Slider/Slider.d.ts +3 -3
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.d.ts +3 -3
- package/Snackbar/Snackbar.js +1 -1
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +3 -3
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +3 -3
- package/StepContent/StepContent.js +2 -2
- package/StepIcon/StepIcon.d.ts +2 -2
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Tab/Tab.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.ts +3 -3
- package/TablePagination/TablePagination.js +1 -1
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/Tabs/Tabs.d.ts +2 -2
- package/Tabs/Tabs.js +4 -4
- package/TextField/TextField.d.ts +11 -11
- package/TextField/TextField.js +4 -2
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +3 -3
- package/Tooltip/Tooltip.js +5 -5
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/colors/amber.d.ts +15 -15
- package/colors/blue.d.ts +15 -15
- package/colors/blueGrey.d.ts +15 -15
- package/colors/brown.d.ts +15 -15
- package/colors/common.d.ts +3 -3
- package/colors/cyan.d.ts +15 -15
- package/colors/deepOrange.d.ts +15 -15
- package/colors/deepPurple.d.ts +15 -15
- package/colors/green.d.ts +15 -15
- package/colors/grey.d.ts +15 -15
- package/colors/indigo.d.ts +15 -15
- package/colors/lightBlue.d.ts +15 -15
- package/colors/lightGreen.d.ts +15 -15
- package/colors/lime.d.ts +15 -15
- package/colors/orange.d.ts +15 -15
- package/colors/pink.d.ts +15 -15
- package/colors/purple.d.ts +15 -15
- package/colors/red.d.ts +15 -15
- package/colors/teal.d.ts +15 -15
- package/colors/yellow.d.ts +15 -15
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +3 -3
- package/legacy/Accordion/AccordionContext.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +2 -2
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/ButtonBase/ButtonBase.js +191 -28
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/Card/Card.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/ClickAwayListener/ClickAwayListener.js +3 -3
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/Hidden/HiddenCss.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/ImageList/ImageList.js +2 -4
- package/legacy/ImageListItem/ImageListItem.js +1 -1
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +3 -3
- package/legacy/LinearProgress/LinearProgress.js +2 -2
- package/legacy/ListItem/ListItem.js +2 -2
- package/legacy/ListItemButton/ListItemButton.js +1 -1
- package/legacy/Menu/Menu.js +2 -2
- package/legacy/MenuItem/MenuItem.js +1 -1
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/Paper/Paper.js +2 -2
- package/legacy/Popover/Popover.js +6 -6
- package/legacy/Popper/Popper.js +3 -3
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/SelectInput.js +3 -3
- package/legacy/Slide/Slide.js +2 -2
- package/legacy/Slider/Slider.js +2 -2
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +2 -2
- package/legacy/StepContent/StepContent.js +2 -2
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/TextField/TextField.js +4 -2
- package/legacy/TextareaAutosize/TextareaAutosize.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/index.js +1 -1
- package/legacy/styles/adaptV4Theme.js +1 -1
- package/legacy/styles/createPalette.js +4 -4
- package/legacy/styles/createStyles.js +1 -1
- package/legacy/styles/createTheme.js +3 -3
- package/legacy/styles/createTransitions.js +5 -5
- package/legacy/styles/createTypography.js +2 -2
- package/legacy/styles/makeStyles.js +1 -1
- package/legacy/styles/responsiveFontSizes.js +1 -1
- package/legacy/styles/withStyles.js +1 -1
- package/legacy/styles/withTheme.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +2 -2
- package/modern/Accordion/Accordion.js +3 -3
- package/modern/Accordion/AccordionContext.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +2 -2
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/ButtonBase/ButtonBase.js +200 -30
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/Card/Card.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/ClickAwayListener/ClickAwayListener.js +3 -3
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/Hidden/HiddenCss.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/ImageList/ImageList.js +2 -4
- package/modern/ImageListItem/ImageListItem.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +3 -3
- package/modern/LinearProgress/LinearProgress.js +2 -2
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +1 -1
- package/modern/Menu/Menu.js +2 -2
- package/modern/MenuItem/MenuItem.js +1 -1
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/Paper/Paper.js +2 -2
- package/modern/Popover/Popover.js +6 -6
- package/modern/Popper/Popper.js +3 -3
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/SelectInput.js +3 -3
- package/modern/Slide/Slide.js +2 -2
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +2 -2
- package/modern/StepContent/StepContent.js +2 -2
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/TextField/TextField.js +4 -2
- package/modern/TextareaAutosize/TextareaAutosize.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/index.js +1 -1
- package/modern/styles/adaptV4Theme.js +1 -1
- package/modern/styles/createPalette.js +4 -4
- package/modern/styles/createStyles.js +1 -1
- package/modern/styles/createTheme.js +3 -3
- package/modern/styles/createTransitions.js +5 -5
- package/modern/styles/createTypography.js +3 -3
- package/modern/styles/makeStyles.js +2 -2
- package/modern/styles/responsiveFontSizes.js +1 -1
- package/modern/styles/withStyles.js +2 -2
- package/modern/styles/withTheme.js +2 -2
- package/modern/useMediaQuery/useMediaQuery.js +2 -2
- package/node/Accordion/Accordion.js +3 -3
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/ButtonBase/ButtonBase.js +202 -32
- package/node/ButtonGroup/ButtonGroup.js +1 -1
- package/node/Card/Card.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/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node/Dialog/Dialog.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/ImageList/ImageList.js +2 -4
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +3 -3
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/Menu/Menu.js +2 -2
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/Paper/Paper.js +2 -2
- package/node/Popover/Popover.js +6 -6
- package/node/Popper/Popper.js +3 -3
- package/node/Rating/Rating.js +1 -1
- package/node/Select/SelectInput.js +3 -3
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/Tabs/Tabs.js +4 -4
- package/node/TextField/TextField.js +4 -2
- package/node/TextareaAutosize/TextareaAutosize.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/index.js +1 -1
- package/node/styles/adaptV4Theme.js +1 -1
- package/node/styles/createPalette.js +4 -4
- package/node/styles/createStyles.js +1 -1
- package/node/styles/createTheme.js +3 -3
- package/node/styles/createTransitions.js +5 -5
- package/node/styles/createTypography.js +3 -3
- package/node/styles/makeStyles.js +2 -2
- package/node/styles/responsiveFontSizes.js +1 -1
- package/node/styles/withStyles.js +2 -2
- package/node/styles/withTheme.js +2 -2
- package/node/useMediaQuery/useMediaQuery.js +2 -2
- package/package.json +10 -10
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/adaptV4Theme.d.ts +2 -2
- package/styles/adaptV4Theme.js +1 -1
- package/styles/createPalette.js +4 -4
- package/styles/createStyles.js +1 -1
- package/styles/createTheme.d.ts +2 -2
- package/styles/createTheme.js +3 -3
- package/styles/createTransitions.js +5 -5
- package/styles/createTypography.js +3 -3
- package/styles/makeStyles.js +2 -2
- package/styles/responsiveFontSizes.js +1 -1
- package/styles/withStyles.js +2 -2
- package/styles/withTheme.js +2 -2
- package/umd/material-ui.development.js +787 -364
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.js +2 -2
|
@@ -167,7 +167,7 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
167
167
|
|
|
168
168
|
if (process.env.NODE_ENV !== 'production') {
|
|
169
169
|
if (isFragment(child)) {
|
|
170
|
-
console.error(["
|
|
170
|
+
console.error(["MUI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
package/modern/Card/Card.js
CHANGED
|
@@ -84,7 +84,7 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
84
84
|
*/
|
|
85
85
|
raised: chainPropTypes(PropTypes.bool, props => {
|
|
86
86
|
if (props.raised && props.variant === 'outlined') {
|
|
87
|
-
return new Error('
|
|
87
|
+
return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
return null;
|
|
@@ -104,7 +104,7 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
104
104
|
*/
|
|
105
105
|
children: chainPropTypes(PropTypes.node, props => {
|
|
106
106
|
if (!props.children && !props.image && !props.src && !props.component) {
|
|
107
|
-
return new Error('
|
|
107
|
+
return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
return null;
|
|
@@ -141,7 +141,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
141
141
|
*/
|
|
142
142
|
color: PropTypes
|
|
143
143
|
/* @typescript-to-proptypes-ignore */
|
|
144
|
-
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', '
|
|
144
|
+
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* The default checked state. Use when the component is not controlled.
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -387,7 +387,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
387
387
|
|
|
388
388
|
if (process.env.NODE_ENV !== 'production') {
|
|
389
389
|
if (avatar && icon) {
|
|
390
|
-
console.error('
|
|
390
|
+
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -219,7 +219,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
219
219
|
*/
|
|
220
220
|
disableShrink: chainPropTypes(PropTypes.bool, props => {
|
|
221
221
|
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
|
222
|
-
return new Error('
|
|
222
|
+
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
return null;
|
|
@@ -21,12 +21,12 @@ function clickedRootScrollbar(event, doc) {
|
|
|
21
21
|
*
|
|
22
22
|
* Demos:
|
|
23
23
|
*
|
|
24
|
-
* - [Click Away Listener](https://
|
|
25
|
-
* - [Menus](https://
|
|
24
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
25
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [ClickAwayListener API](https://
|
|
29
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
30
30
|
*/
|
|
31
31
|
function ClickAwayListener(props) {
|
|
32
32
|
const {
|
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -409,7 +409,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
411
|
* Props applied to the transition element.
|
|
412
|
-
* By default, the element is based on this [`Transition`](
|
|
412
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
413
413
|
*/
|
|
414
414
|
TransitionProps: PropTypes.object
|
|
415
415
|
} : void 0;
|
|
@@ -172,7 +172,7 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
172
172
|
|
|
173
173
|
registerEffect = () => {
|
|
174
174
|
if (registeredInput.current) {
|
|
175
|
-
console.error(['
|
|
175
|
+
console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\n'));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
registeredInput.current = true;
|
|
@@ -82,7 +82,7 @@ function HiddenCss(props) {
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
if (unknownProps.length > 0) {
|
|
85
|
-
console.error(`
|
|
85
|
+
console.error(`MUI: Unsupported props received by \`<Hidden implementation="css" />\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -146,7 +146,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
|
|
|
146
146
|
const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);
|
|
147
147
|
|
|
148
148
|
if (found) {
|
|
149
|
-
return new Error(['
|
|
149
|
+
return new Error(['MUI: You are providing an onClick event listener to a child of a button element.', 'Prefer applying it to the IconButton directly.', 'This guarantees that the whole <button> will be responsive to click events.'].join('\n'));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
return null;
|
|
@@ -73,7 +73,7 @@ const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref)
|
|
|
73
73
|
if (process.env.NODE_ENV !== 'production') {
|
|
74
74
|
// Detect Internet Explorer 8+
|
|
75
75
|
if (document !== undefined && 'objectFit' in document.documentElement.style === false) {
|
|
76
|
-
console.error(['
|
|
76
|
+
console.error(['MUI: ImageList v5+ no longer natively supports Internet Explorer.', 'Use v4 of this component instead, or polyfill CSS object-fit.'].join('\n'));
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}, []);
|
|
@@ -169,8 +169,6 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
169
169
|
* The variant to use.
|
|
170
170
|
* @default 'standard'
|
|
171
171
|
*/
|
|
172
|
-
variant: PropTypes
|
|
173
|
-
/* @typescript-to-proptypes-ignore */
|
|
174
|
-
.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])
|
|
172
|
+
variant: PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven'])
|
|
175
173
|
} : void 0;
|
|
176
174
|
export default ImageList;
|
|
@@ -121,7 +121,7 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
|
|
|
121
121
|
|
|
122
122
|
if (process.env.NODE_ENV !== 'production') {
|
|
123
123
|
if (isFragment(child)) {
|
|
124
|
-
console.error(["
|
|
124
|
+
console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -90,7 +90,7 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
90
90
|
if (variantProp && muiFormControl.variant) {
|
|
91
91
|
if (process.env.NODE_ENV !== 'production') {
|
|
92
92
|
if (variantProp === muiFormControl.variant) {
|
|
93
|
-
console.error('
|
|
93
|
+
console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -258,7 +258,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
258
258
|
const handleInputRefWarning = React.useCallback(instance => {
|
|
259
259
|
if (process.env.NODE_ENV !== 'production') {
|
|
260
260
|
if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {
|
|
261
|
-
console.error(['
|
|
261
|
+
console.error(['MUI: You have provided a `inputComponent` to the input component', 'that does not correctly handle the `ref` prop.', 'Make sure the `ref` prop is called with a HTMLInputElement.'].join('\n'));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}, []);
|
|
@@ -359,7 +359,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
359
359
|
const element = event.target || inputRef.current;
|
|
360
360
|
|
|
361
361
|
if (element == null) {
|
|
362
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `
|
|
362
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Expected valid input target. Did you use a custom \`inputComponent\` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.` : _formatMuiErrorMessage(1));
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
checkDirty({
|
|
@@ -400,7 +400,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
400
400
|
if (rows) {
|
|
401
401
|
if (process.env.NODE_ENV !== 'production') {
|
|
402
402
|
if (minRows || maxRows) {
|
|
403
|
-
console.warn('
|
|
403
|
+
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
|
|
@@ -270,7 +270,7 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
|
270
270
|
|
|
271
271
|
inlineStyles.bar1.transform = `translateX(${transform}%)`;
|
|
272
272
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
273
|
-
console.error('
|
|
273
|
+
console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -284,7 +284,7 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
|
284
284
|
|
|
285
285
|
inlineStyles.bar2.transform = `translateX(${transform}%)`;
|
|
286
286
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
287
|
-
console.error('
|
|
287
|
+
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -176,7 +176,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
176
176
|
if (listItemRef.current) {
|
|
177
177
|
listItemRef.current.focus();
|
|
178
178
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
179
|
-
console.error('
|
|
179
|
+
console.error('MUI: Unable to set focus to a ListItem whose component has not been rendered.');
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}, [autoFocus]);
|
|
@@ -311,7 +311,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
|
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {
|
|
314
|
-
return new Error('
|
|
314
|
+
return new Error('MUI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
return null;
|
|
@@ -130,7 +130,7 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
130
130
|
if (listItemRef.current) {
|
|
131
131
|
listItemRef.current.focus();
|
|
132
132
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
133
|
-
console.error('
|
|
133
|
+
console.error('MUI: Unable to set focus to a ListItemButton whose component has not been rendered.');
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}, [autoFocus]);
|
package/modern/Menu/Menu.js
CHANGED
|
@@ -142,7 +142,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
142
142
|
|
|
143
143
|
if (process.env.NODE_ENV !== 'production') {
|
|
144
144
|
if (isFragment(child)) {
|
|
145
|
-
console.error(["
|
|
145
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -280,7 +280,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes
|
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* Props applied to the transition element.
|
|
283
|
-
* By default, the element is based on this [`Transition`](
|
|
283
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
284
284
|
* @default {}
|
|
285
285
|
*/
|
|
286
286
|
TransitionProps: PropTypes.object,
|
|
@@ -150,7 +150,7 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
150
150
|
if (menuItemRef.current) {
|
|
151
151
|
menuItemRef.current.focus();
|
|
152
152
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
153
|
-
console.error('
|
|
153
|
+
console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}, [autoFocus]);
|
|
@@ -215,7 +215,7 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
215
215
|
|
|
216
216
|
if (process.env.NODE_ENV !== 'production') {
|
|
217
217
|
if (isFragment(child)) {
|
|
218
|
-
console.error(["
|
|
218
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
|
package/modern/Paper/Paper.js
CHANGED
|
@@ -93,7 +93,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
93
93
|
const theme = useTheme();
|
|
94
94
|
|
|
95
95
|
if (theme.shadows[elevation] === undefined) {
|
|
96
|
-
console.error([`
|
|
96
|
+
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes
|
|
|
145
145
|
} = props;
|
|
146
146
|
|
|
147
147
|
if (elevation > 0 && variant === 'outlined') {
|
|
148
|
-
return new Error(`
|
|
148
|
+
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
return null;
|
|
@@ -143,7 +143,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
143
143
|
if (anchorReference === 'anchorPosition') {
|
|
144
144
|
if (process.env.NODE_ENV !== 'production') {
|
|
145
145
|
if (!anchorPosition) {
|
|
146
|
-
console.error('
|
|
146
|
+
console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference="anchorPosition" />.');
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -159,7 +159,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
159
159
|
const box = anchorElement.getBoundingClientRect();
|
|
160
160
|
|
|
161
161
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
162
|
-
console.warn(['
|
|
162
|
+
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -216,7 +216,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
216
216
|
|
|
217
217
|
if (process.env.NODE_ENV !== 'production') {
|
|
218
218
|
if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {
|
|
219
|
-
console.error(['
|
|
219
|
+
console.error(['MUI: The popover component is too tall.', `Some part of it can not be seen on the screen (${elemRect.height - heightThreshold}px).`, 'Please consider adding a `max-height` to improve the user-experience.'].join('\n'));
|
|
220
220
|
}
|
|
221
221
|
} // Check if the horizontal axis needs shifting
|
|
222
222
|
|
|
@@ -352,10 +352,10 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
352
352
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
353
353
|
|
|
354
354
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
355
|
-
return new Error(['
|
|
355
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
356
356
|
}
|
|
357
357
|
} else {
|
|
358
|
-
return new Error(['
|
|
358
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
|
|
@@ -496,7 +496,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
498
|
* Props applied to the transition element.
|
|
499
|
-
* By default, the element is based on this [`Transition`](
|
|
499
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
500
500
|
* @default {}
|
|
501
501
|
*/
|
|
502
502
|
TransitionProps: PropTypes.object
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -97,7 +97,7 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
97
97
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
98
98
|
|
|
99
99
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
100
|
-
console.warn(['
|
|
100
|
+
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -250,10 +250,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
250
250
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
251
251
|
|
|
252
252
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
253
|
-
return new Error(['
|
|
253
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
254
254
|
}
|
|
255
255
|
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
256
|
-
return new Error(['
|
|
256
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\n'));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
package/modern/Rating/Rating.js
CHANGED
|
@@ -688,7 +688,7 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes
|
|
|
688
688
|
*/
|
|
689
689
|
precision: chainPropTypes(PropTypes.number, props => {
|
|
690
690
|
if (props.precision < 0.1) {
|
|
691
|
-
return new Error(['
|
|
691
|
+
return new Error(['MUI: The prop `precision` should be above 0.1.', 'A value below this limit has an imperceptible impact.'].join('\n'));
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
return null;
|
|
@@ -337,7 +337,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
337
337
|
|
|
338
338
|
if (process.env.NODE_ENV !== 'production') {
|
|
339
339
|
if (isFragment(child)) {
|
|
340
|
-
console.error(["
|
|
340
|
+
console.error(["MUI: The Select component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
|
|
@@ -345,7 +345,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
345
345
|
|
|
346
346
|
if (multiple) {
|
|
347
347
|
if (!Array.isArray(value)) {
|
|
348
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `
|
|
348
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`value\` prop must be an array when using the \`Select\` component with \`multiple\`.` : _formatMuiErrorMessage(2));
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
selected = value.some(v => areEqualValues(v, child.props.value));
|
|
@@ -394,7 +394,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
394
394
|
React.useEffect(() => {
|
|
395
395
|
if (!foundMatch && !multiple && value !== '') {
|
|
396
396
|
const values = childrenArray.map(child => child.props.value);
|
|
397
|
-
console.warn([`
|
|
397
|
+
console.warn([`MUI: You have provided an out-of-range value \`${value}\` for the select ${name ? `(name="${name}") ` : ''}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${values.filter(x => x != null).map(x => `\`${x}\``).join(', ') || '""'}.`].join('\n'));
|
|
398
398
|
}
|
|
399
399
|
}, [foundMatch, childrenArray, multiple, name, value]);
|
|
400
400
|
}
|
package/modern/Slide/Slide.js
CHANGED
|
@@ -268,10 +268,10 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
268
268
|
const box = resolvedContainer.getBoundingClientRect();
|
|
269
269
|
|
|
270
270
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
271
|
-
return new Error(['
|
|
271
|
+
return new Error(['MUI: The `container` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
272
272
|
}
|
|
273
273
|
} else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {
|
|
274
|
-
return new Error(['
|
|
274
|
+
return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\n'));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -448,7 +448,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
448
448
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
449
449
|
|
|
450
450
|
if (range && props['aria-label'] != null) {
|
|
451
|
-
return new Error('
|
|
451
|
+
return new Error('MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.');
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
return null;
|
|
@@ -466,7 +466,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
466
466
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
467
467
|
|
|
468
468
|
if (range && props['aria-valuetext'] != null) {
|
|
469
|
-
return new Error('
|
|
469
|
+
return new Error('MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.');
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
return null;
|
|
@@ -402,7 +402,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
|
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
404
|
* Props applied to the transition element.
|
|
405
|
-
* By default, the element is based on this [`Transition`](
|
|
405
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
406
406
|
* @default {}
|
|
407
407
|
*/
|
|
408
408
|
TransitionProps: PropTypes.object
|
|
@@ -354,7 +354,7 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
|
|
|
354
354
|
const allItems = React.Children.toArray(childrenProp).filter(child => {
|
|
355
355
|
if (process.env.NODE_ENV !== 'production') {
|
|
356
356
|
if (isFragment(child)) {
|
|
357
|
-
console.error(["
|
|
357
|
+
console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
|
|
@@ -554,7 +554,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
|
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* Props applied to the transition element.
|
|
557
|
-
* By default, the element is based on this [`Transition`](
|
|
557
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
558
558
|
*/
|
|
559
559
|
TransitionProps: PropTypes.object
|
|
560
560
|
} : void 0;
|