@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
|
@@ -190,7 +190,7 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
190
190
|
|
|
191
191
|
if (process.env.NODE_ENV !== 'production') {
|
|
192
192
|
if ((0, _reactIs.isFragment)(child)) {
|
|
193
|
-
console.error(["
|
|
193
|
+
console.error(["MUI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
package/node/Card/Card.js
CHANGED
|
@@ -106,7 +106,7 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
106
106
|
*/
|
|
107
107
|
raised: (0, _utils.chainPropTypes)(_propTypes.default.bool, props => {
|
|
108
108
|
if (props.raised && props.variant === 'outlined') {
|
|
109
|
-
return new Error('
|
|
109
|
+
return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
return null;
|
|
@@ -124,7 +124,7 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
124
124
|
*/
|
|
125
125
|
children: (0, _utils.chainPropTypes)(_propTypes.default.node, props => {
|
|
126
126
|
if (!props.children && !props.image && !props.src && !props.component) {
|
|
127
|
-
return new Error('
|
|
127
|
+
return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
return null;
|
|
@@ -164,7 +164,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
164
164
|
*/
|
|
165
165
|
color: _propTypes.default
|
|
166
166
|
/* @typescript-to-proptypes-ignore */
|
|
167
|
-
.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', '
|
|
167
|
+
.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* The default checked state. Use when the component is not controlled.
|
package/node/Chip/Chip.js
CHANGED
|
@@ -411,7 +411,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
411
411
|
|
|
412
412
|
if (process.env.NODE_ENV !== 'production') {
|
|
413
413
|
if (avatar && icon) {
|
|
414
|
-
console.error('
|
|
414
|
+
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
|
|
@@ -243,7 +243,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
243
243
|
*/
|
|
244
244
|
disableShrink: (0, _utils.chainPropTypes)(_propTypes.default.bool, props => {
|
|
245
245
|
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
|
246
|
-
return new Error('
|
|
246
|
+
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
return null;
|
|
@@ -40,12 +40,12 @@ function clickedRootScrollbar(event, doc) {
|
|
|
40
40
|
*
|
|
41
41
|
* Demos:
|
|
42
42
|
*
|
|
43
|
-
* - [Click Away Listener](https://
|
|
44
|
-
* - [Menus](https://
|
|
43
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
44
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
45
45
|
*
|
|
46
46
|
* API:
|
|
47
47
|
*
|
|
48
|
-
* - [ClickAwayListener API](https://
|
|
48
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
49
49
|
*/
|
|
50
50
|
function ClickAwayListener(props) {
|
|
51
51
|
const {
|
package/node/Dialog/Dialog.js
CHANGED
|
@@ -438,7 +438,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* Props applied to the transition element.
|
|
441
|
-
* By default, the element is based on this [`Transition`](
|
|
441
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
442
442
|
*/
|
|
443
443
|
TransitionProps: _propTypes.default.object
|
|
444
444
|
} : void 0;
|
|
@@ -196,7 +196,7 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
196
196
|
|
|
197
197
|
registerEffect = () => {
|
|
198
198
|
if (registeredInput.current) {
|
|
199
|
-
console.error(['
|
|
199
|
+
console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\n'));
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
registeredInput.current = true;
|
package/node/Hidden/HiddenCss.js
CHANGED
|
@@ -105,7 +105,7 @@ function HiddenCss(props) {
|
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
if (unknownProps.length > 0) {
|
|
108
|
-
console.error(`
|
|
108
|
+
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?`);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -170,7 +170,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
|
|
|
170
170
|
const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);
|
|
171
171
|
|
|
172
172
|
if (found) {
|
|
173
|
-
return new Error(['
|
|
173
|
+
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'));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
return null;
|
|
@@ -96,7 +96,7 @@ const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref)
|
|
|
96
96
|
if (process.env.NODE_ENV !== 'production') {
|
|
97
97
|
// Detect Internet Explorer 8+
|
|
98
98
|
if (document !== undefined && 'objectFit' in document.documentElement.style === false) {
|
|
99
|
-
console.error(['
|
|
99
|
+
console.error(['MUI: ImageList v5+ no longer natively supports Internet Explorer.', 'Use v4 of this component instead, or polyfill CSS object-fit.'].join('\n'));
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}, []);
|
|
@@ -190,9 +190,7 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
190
190
|
* The variant to use.
|
|
191
191
|
* @default 'standard'
|
|
192
192
|
*/
|
|
193
|
-
variant: _propTypes.default
|
|
194
|
-
/* @typescript-to-proptypes-ignore */
|
|
195
|
-
.oneOfType([_propTypes.default.oneOf(['masonry', 'quilted', 'standard', 'woven']), _propTypes.default.string])
|
|
193
|
+
variant: _propTypes.default.oneOf(['masonry', 'quilted', 'standard', 'woven'])
|
|
196
194
|
} : void 0;
|
|
197
195
|
var _default = ImageList;
|
|
198
196
|
exports.default = _default;
|
|
@@ -146,7 +146,7 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
|
|
|
146
146
|
|
|
147
147
|
if (process.env.NODE_ENV !== 'production') {
|
|
148
148
|
if ((0, _reactIs.isFragment)(child)) {
|
|
149
|
-
console.error(["
|
|
149
|
+
console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -114,7 +114,7 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
114
114
|
if (variantProp && muiFormControl.variant) {
|
|
115
115
|
if (process.env.NODE_ENV !== 'production') {
|
|
116
116
|
if (variantProp === muiFormControl.variant) {
|
|
117
|
-
console.error('
|
|
117
|
+
console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -294,7 +294,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
294
294
|
const handleInputRefWarning = React.useCallback(instance => {
|
|
295
295
|
if (process.env.NODE_ENV !== 'production') {
|
|
296
296
|
if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {
|
|
297
|
-
console.error(['
|
|
297
|
+
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'));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
}, []);
|
|
@@ -395,7 +395,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
395
395
|
const element = event.target || inputRef.current;
|
|
396
396
|
|
|
397
397
|
if (element == null) {
|
|
398
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `
|
|
398
|
+
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.` : (0, _utils.formatMuiErrorMessage)(1));
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
checkDirty({
|
|
@@ -436,7 +436,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
436
436
|
if (rows) {
|
|
437
437
|
if (process.env.NODE_ENV !== 'production') {
|
|
438
438
|
if (minRows || maxRows) {
|
|
439
|
-
console.warn('
|
|
439
|
+
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
|
|
@@ -293,7 +293,7 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
|
293
293
|
|
|
294
294
|
inlineStyles.bar1.transform = `translateX(${transform}%)`;
|
|
295
295
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
296
|
-
console.error('
|
|
296
|
+
console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
|
|
@@ -307,7 +307,7 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
|
307
307
|
|
|
308
308
|
inlineStyles.bar2.transform = `translateX(${transform}%)`;
|
|
309
309
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
310
|
-
console.error('
|
|
310
|
+
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
@@ -209,7 +209,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
209
209
|
if (listItemRef.current) {
|
|
210
210
|
listItemRef.current.focus();
|
|
211
211
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
212
|
-
console.error('
|
|
212
|
+
console.error('MUI: Unable to set focus to a ListItem whose component has not been rendered.');
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}, [autoFocus]);
|
|
@@ -340,7 +340,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
|
|
|
340
340
|
|
|
341
341
|
|
|
342
342
|
if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {
|
|
343
|
-
return new Error('
|
|
343
|
+
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.');
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
return null;
|
|
@@ -159,7 +159,7 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
159
159
|
if (listItemRef.current) {
|
|
160
160
|
listItemRef.current.focus();
|
|
161
161
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
162
|
-
console.error('
|
|
162
|
+
console.error('MUI: Unable to set focus to a ListItemButton whose component has not been rendered.');
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}, [autoFocus]);
|
package/node/Menu/Menu.js
CHANGED
|
@@ -168,7 +168,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
168
168
|
|
|
169
169
|
if (process.env.NODE_ENV !== 'production') {
|
|
170
170
|
if ((0, _reactIs.isFragment)(child)) {
|
|
171
|
-
console.error(["
|
|
171
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
@@ -306,7 +306,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes
|
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
308
|
* Props applied to the transition element.
|
|
309
|
-
* By default, the element is based on this [`Transition`](
|
|
309
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
310
310
|
* @default {}
|
|
311
311
|
*/
|
|
312
312
|
TransitionProps: _propTypes.default.object,
|
|
@@ -182,7 +182,7 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
182
182
|
if (menuItemRef.current) {
|
|
183
183
|
menuItemRef.current.focus();
|
|
184
184
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
185
|
-
console.error('
|
|
185
|
+
console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
}, [autoFocus]);
|
|
@@ -238,7 +238,7 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
238
238
|
|
|
239
239
|
if (process.env.NODE_ENV !== 'production') {
|
|
240
240
|
if ((0, _reactIs.isFragment)(child)) {
|
|
241
|
-
console.error(["
|
|
241
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
|
package/node/Paper/Paper.js
CHANGED
|
@@ -116,7 +116,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
116
116
|
const theme = (0, _useTheme.default)();
|
|
117
117
|
|
|
118
118
|
if (theme.shadows[elevation] === undefined) {
|
|
119
|
-
console.error([`
|
|
119
|
+
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'));
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -168,7 +168,7 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes
|
|
|
168
168
|
} = props;
|
|
169
169
|
|
|
170
170
|
if (elevation > 0 && variant === 'outlined') {
|
|
171
|
-
return new Error(`
|
|
171
|
+
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
return null;
|
package/node/Popover/Popover.js
CHANGED
|
@@ -174,7 +174,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
174
174
|
if (anchorReference === 'anchorPosition') {
|
|
175
175
|
if (process.env.NODE_ENV !== 'production') {
|
|
176
176
|
if (!anchorPosition) {
|
|
177
|
-
console.error('
|
|
177
|
+
console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference="anchorPosition" />.');
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -190,7 +190,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
190
190
|
const box = anchorElement.getBoundingClientRect();
|
|
191
191
|
|
|
192
192
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
193
|
-
console.warn(['
|
|
193
|
+
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'));
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -247,7 +247,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
247
247
|
|
|
248
248
|
if (process.env.NODE_ENV !== 'production') {
|
|
249
249
|
if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {
|
|
250
|
-
console.error(['
|
|
250
|
+
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'));
|
|
251
251
|
}
|
|
252
252
|
} // Check if the horizontal axis needs shifting
|
|
253
253
|
|
|
@@ -383,10 +383,10 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
383
383
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
384
384
|
|
|
385
385
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
386
|
-
return new Error(['
|
|
386
|
+
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'));
|
|
387
387
|
}
|
|
388
388
|
} else {
|
|
389
|
-
return new Error(['
|
|
389
|
+
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'));
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
@@ -527,7 +527,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* Props applied to the transition element.
|
|
530
|
-
* By default, the element is based on this [`Transition`](
|
|
530
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
531
531
|
* @default {}
|
|
532
532
|
*/
|
|
533
533
|
TransitionProps: _propTypes.default.object
|
package/node/Popper/Popper.js
CHANGED
|
@@ -121,7 +121,7 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
121
121
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
122
122
|
|
|
123
123
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
124
|
-
console.warn(['
|
|
124
|
+
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'));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -273,10 +273,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
273
273
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
274
274
|
|
|
275
275
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
276
|
-
return new Error(['
|
|
276
|
+
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'));
|
|
277
277
|
}
|
|
278
278
|
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
279
|
-
return new Error(['
|
|
279
|
+
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'));
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
package/node/Rating/Rating.js
CHANGED
|
@@ -707,7 +707,7 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes
|
|
|
707
707
|
*/
|
|
708
708
|
precision: (0, _utils.chainPropTypes)(_propTypes.default.number, props => {
|
|
709
709
|
if (props.precision < 0.1) {
|
|
710
|
-
return new Error(['
|
|
710
|
+
return new Error(['MUI: The prop `precision` should be above 0.1.', 'A value below this limit has an imperceptible impact.'].join('\n'));
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
return null;
|
|
@@ -366,7 +366,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
366
366
|
|
|
367
367
|
if (process.env.NODE_ENV !== 'production') {
|
|
368
368
|
if ((0, _reactIs.isFragment)(child)) {
|
|
369
|
-
console.error(["
|
|
369
|
+
console.error(["MUI: The Select component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -374,7 +374,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
374
374
|
|
|
375
375
|
if (multiple) {
|
|
376
376
|
if (!Array.isArray(value)) {
|
|
377
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `
|
|
377
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`value\` prop must be an array when using the \`Select\` component with \`multiple\`.` : (0, _utils.formatMuiErrorMessage)(2));
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
selected = value.some(v => areEqualValues(v, child.props.value));
|
|
@@ -423,7 +423,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
423
423
|
React.useEffect(() => {
|
|
424
424
|
if (!foundMatch && !multiple && value !== '') {
|
|
425
425
|
const values = childrenArray.map(child => child.props.value);
|
|
426
|
-
console.warn([`
|
|
426
|
+
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'));
|
|
427
427
|
}
|
|
428
428
|
}, [foundMatch, childrenArray, multiple, name, value]);
|
|
429
429
|
}
|
package/node/Slide/Slide.js
CHANGED
|
@@ -295,10 +295,10 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
295
295
|
const box = resolvedContainer.getBoundingClientRect();
|
|
296
296
|
|
|
297
297
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
298
|
-
return new Error(['
|
|
298
|
+
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'));
|
|
299
299
|
}
|
|
300
300
|
} else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {
|
|
301
|
-
return new Error(['
|
|
301
|
+
return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\n'));
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
package/node/Slider/Slider.js
CHANGED
|
@@ -483,7 +483,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
483
483
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
484
484
|
|
|
485
485
|
if (range && props['aria-label'] != null) {
|
|
486
|
-
return new Error('
|
|
486
|
+
return new Error('MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.');
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
return null;
|
|
@@ -501,7 +501,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
501
501
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
502
502
|
|
|
503
503
|
if (range && props['aria-valuetext'] != null) {
|
|
504
|
-
return new Error('
|
|
504
|
+
return new Error('MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.');
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
return null;
|
|
@@ -427,7 +427,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
|
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* Props applied to the transition element.
|
|
430
|
-
* By default, the element is based on this [`Transition`](
|
|
430
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
431
431
|
* @default {}
|
|
432
432
|
*/
|
|
433
433
|
TransitionProps: _propTypes.default.object
|
|
@@ -380,7 +380,7 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
|
|
|
380
380
|
const allItems = React.Children.toArray(childrenProp).filter(child => {
|
|
381
381
|
if (process.env.NODE_ENV !== 'production') {
|
|
382
382
|
if ((0, _reactIs.isFragment)(child)) {
|
|
383
|
-
console.error(["
|
|
383
|
+
console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -579,7 +579,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
|
|
|
579
579
|
|
|
580
580
|
/**
|
|
581
581
|
* Props applied to the transition element.
|
|
582
|
-
* By default, the element is based on this [`Transition`](
|
|
582
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
583
583
|
*/
|
|
584
584
|
TransitionProps: _propTypes.default.object
|
|
585
585
|
} : void 0;
|