@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
|
@@ -158,7 +158,7 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, re
|
|
|
158
158
|
|
|
159
159
|
if (process.env.NODE_ENV !== 'production') {
|
|
160
160
|
if (isFragment(child)) {
|
|
161
|
-
console.error(["
|
|
161
|
+
console.error(["MUI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
package/legacy/Card/Card.js
CHANGED
|
@@ -82,7 +82,7 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
82
82
|
*/
|
|
83
83
|
raised: chainPropTypes(PropTypes.bool, function (props) {
|
|
84
84
|
if (props.raised && props.variant === 'outlined') {
|
|
85
|
-
return new Error('
|
|
85
|
+
return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
return null;
|
|
@@ -97,7 +97,7 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
97
97
|
*/
|
|
98
98
|
children: chainPropTypes(PropTypes.node, function (props) {
|
|
99
99
|
if (!props.children && !props.image && !props.src && !props.component) {
|
|
100
|
-
return new Error('
|
|
100
|
+
return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
return null;
|
|
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
145
145
|
*/
|
|
146
146
|
color: PropTypes
|
|
147
147
|
/* @typescript-to-proptypes-ignore */
|
|
148
|
-
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', '
|
|
148
|
+
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* The default checked state. Use when the component is not controlled.
|
package/legacy/Chip/Chip.js
CHANGED
|
@@ -341,7 +341,7 @@ var Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
341
341
|
|
|
342
342
|
if (process.env.NODE_ENV !== 'production') {
|
|
343
343
|
if (avatar && icon) {
|
|
344
|
-
console.error('
|
|
344
|
+
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
|
|
@@ -199,7 +199,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
199
199
|
*/
|
|
200
200
|
disableShrink: chainPropTypes(PropTypes.bool, function (props) {
|
|
201
201
|
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
|
202
|
-
return new Error('
|
|
202
|
+
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
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
|
var children = props.children,
|
package/legacy/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;
|
|
@@ -186,7 +186,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps, re
|
|
|
186
186
|
|
|
187
187
|
registerEffect = function registerEffect() {
|
|
188
188
|
if (registeredInput.current) {
|
|
189
|
-
console.error(['
|
|
189
|
+
console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\n'));
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
registeredInput.current = true;
|
|
@@ -71,7 +71,7 @@ function HiddenCss(props) {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
if (unknownProps.length > 0) {
|
|
74
|
-
console.error("
|
|
74
|
+
console.error("MUI: Unsupported props received by `<Hidden implementation=\"css\" />`: ".concat(unknownProps.join(', '), ". Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?"));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -147,7 +147,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
|
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
if (found) {
|
|
150
|
-
return new Error(['
|
|
150
|
+
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'));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
return null;
|
|
@@ -72,7 +72,7 @@ var ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {
|
|
|
72
72
|
if (process.env.NODE_ENV !== 'production') {
|
|
73
73
|
// Detect Internet Explorer 8+
|
|
74
74
|
if (document !== undefined && 'objectFit' in document.documentElement.style === false) {
|
|
75
|
-
console.error(['
|
|
75
|
+
console.error(['MUI: ImageList v5+ no longer natively supports Internet Explorer.', 'Use v4 of this component instead, or polyfill CSS object-fit.'].join('\n'));
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}, []);
|
|
@@ -168,8 +168,6 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
168
168
|
* The variant to use.
|
|
169
169
|
* @default 'standard'
|
|
170
170
|
*/
|
|
171
|
-
variant: PropTypes
|
|
172
|
-
/* @typescript-to-proptypes-ignore */
|
|
173
|
-
.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])
|
|
171
|
+
variant: PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven'])
|
|
174
172
|
} : void 0;
|
|
175
173
|
export default ImageList;
|
|
@@ -116,7 +116,7 @@ var ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps
|
|
|
116
116
|
|
|
117
117
|
if (process.env.NODE_ENV !== 'production') {
|
|
118
118
|
if (isFragment(child)) {
|
|
119
|
-
console.error(["
|
|
119
|
+
console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -85,7 +85,7 @@ var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inPro
|
|
|
85
85
|
if (variantProp && muiFormControl.variant) {
|
|
86
86
|
if (process.env.NODE_ENV !== 'production') {
|
|
87
87
|
if (variantProp === muiFormControl.variant) {
|
|
88
|
-
console.error('
|
|
88
|
+
console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -259,7 +259,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
259
259
|
var handleInputRefWarning = React.useCallback(function (instance) {
|
|
260
260
|
if (process.env.NODE_ENV !== 'production') {
|
|
261
261
|
if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {
|
|
262
|
-
console.error(['
|
|
262
|
+
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'));
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
}, []);
|
|
@@ -364,7 +364,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
364
364
|
var element = event.target || inputRef.current;
|
|
365
365
|
|
|
366
366
|
if (element == null) {
|
|
367
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "
|
|
367
|
+
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));
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
checkDirty({
|
|
@@ -409,7 +409,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
409
409
|
if (rows) {
|
|
410
410
|
if (process.env.NODE_ENV !== 'production') {
|
|
411
411
|
if (minRows || maxRows) {
|
|
412
|
-
console.warn('
|
|
412
|
+
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
|
|
@@ -214,7 +214,7 @@ var LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inPro
|
|
|
214
214
|
|
|
215
215
|
inlineStyles.bar1.transform = "translateX(".concat(transform, "%)");
|
|
216
216
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
217
|
-
console.error('
|
|
217
|
+
console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -228,7 +228,7 @@ var LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inPro
|
|
|
228
228
|
|
|
229
229
|
inlineStyles.bar2.transform = "translateX(".concat(_transform, "%)");
|
|
230
230
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
231
|
-
console.error('
|
|
231
|
+
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -178,7 +178,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
178
178
|
if (listItemRef.current) {
|
|
179
179
|
listItemRef.current.focus();
|
|
180
180
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
181
|
-
console.error('
|
|
181
|
+
console.error('MUI: Unable to set focus to a ListItem whose component has not been rendered.');
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}, [autoFocus]);
|
|
@@ -313,7 +313,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
|
|
|
313
313
|
|
|
314
314
|
|
|
315
315
|
if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {
|
|
316
|
-
return new Error('
|
|
316
|
+
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.');
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
return null;
|
|
@@ -131,7 +131,7 @@ var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inPro
|
|
|
131
131
|
if (listItemRef.current) {
|
|
132
132
|
listItemRef.current.focus();
|
|
133
133
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
134
|
-
console.error('
|
|
134
|
+
console.error('MUI: Unable to set focus to a ListItemButton whose component has not been rendered.');
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}, [autoFocus]);
|
package/legacy/Menu/Menu.js
CHANGED
|
@@ -150,7 +150,7 @@ var Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
150
150
|
|
|
151
151
|
if (process.env.NODE_ENV !== 'production') {
|
|
152
152
|
if (isFragment(child)) {
|
|
153
|
-
console.error(["
|
|
153
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -288,7 +288,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes
|
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* Props applied to the transition element.
|
|
291
|
-
* By default, the element is based on this [`Transition`](
|
|
291
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
292
292
|
* @default {}
|
|
293
293
|
*/
|
|
294
294
|
TransitionProps: PropTypes.object,
|
|
@@ -141,7 +141,7 @@ var MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
141
141
|
if (menuItemRef.current) {
|
|
142
142
|
menuItemRef.current.focus();
|
|
143
143
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
144
|
-
console.error('
|
|
144
|
+
console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}, [autoFocus]);
|
|
@@ -217,7 +217,7 @@ var MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
217
217
|
|
|
218
218
|
if (process.env.NODE_ENV !== 'production') {
|
|
219
219
|
if (isFragment(child)) {
|
|
220
|
-
console.error(["
|
|
220
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
package/legacy/Paper/Paper.js
CHANGED
|
@@ -91,7 +91,7 @@ var Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
91
91
|
var theme = useTheme();
|
|
92
92
|
|
|
93
93
|
if (theme.shadows[elevation] === undefined) {
|
|
94
|
-
console.error(["
|
|
94
|
+
console.error(["MUI: The elevation provided <Paper elevation={".concat(elevation, "}> is not available in the theme."), "Please make sure that `theme.shadows[".concat(elevation, "]` is defined.")].join('\n'));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -141,7 +141,7 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes
|
|
|
141
141
|
variant = props.variant;
|
|
142
142
|
|
|
143
143
|
if (elevation > 0 && variant === 'outlined') {
|
|
144
|
-
return new Error("
|
|
144
|
+
return new Error("MUI: Combining `elevation={".concat(elevation, "}` with `variant=\"").concat(variant, "\"` has no effect. Either use `elevation={0}` or use a different `variant`."));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
return null;
|
|
@@ -151,7 +151,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
151
151
|
if (anchorReference === 'anchorPosition') {
|
|
152
152
|
if (process.env.NODE_ENV !== 'production') {
|
|
153
153
|
if (!anchorPosition) {
|
|
154
|
-
console.error('
|
|
154
|
+
console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference="anchorPosition" />.');
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -167,7 +167,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
167
167
|
var box = anchorElement.getBoundingClientRect();
|
|
168
168
|
|
|
169
169
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
170
|
-
console.warn(['
|
|
170
|
+
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'));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -225,7 +225,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
225
225
|
|
|
226
226
|
if (process.env.NODE_ENV !== 'production') {
|
|
227
227
|
if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {
|
|
228
|
-
console.error(['
|
|
228
|
+
console.error(['MUI: The popover component is too tall.', "Some part of it can not be seen on the screen (".concat(elemRect.height - heightThreshold, "px)."), 'Please consider adding a `max-height` to improve the user-experience.'].join('\n'));
|
|
229
229
|
}
|
|
230
230
|
} // Check if the horizontal axis needs shifting
|
|
231
231
|
|
|
@@ -365,10 +365,10 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
365
365
|
var box = resolvedAnchorEl.getBoundingClientRect();
|
|
366
366
|
|
|
367
367
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
368
|
-
return new Error(['
|
|
368
|
+
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'));
|
|
369
369
|
}
|
|
370
370
|
} else {
|
|
371
|
-
return new Error(['
|
|
371
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', "It should be an Element instance but it's `".concat(resolvedAnchorEl, "` instead.")].join('\n'));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -509,7 +509,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
509
509
|
|
|
510
510
|
/**
|
|
511
511
|
* Props applied to the transition element.
|
|
512
|
-
* By default, the element is based on this [`Transition`](
|
|
512
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
513
513
|
* @default {}
|
|
514
514
|
*/
|
|
515
515
|
TransitionProps: PropTypes.object
|
package/legacy/Popper/Popper.js
CHANGED
|
@@ -98,7 +98,7 @@ var PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props,
|
|
|
98
98
|
var box = resolvedAnchorEl.getBoundingClientRect();
|
|
99
99
|
|
|
100
100
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
101
|
-
console.warn(['
|
|
101
|
+
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'));
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -255,10 +255,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
255
255
|
var box = resolvedAnchorEl.getBoundingClientRect();
|
|
256
256
|
|
|
257
257
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
258
|
-
return new Error(['
|
|
258
|
+
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'));
|
|
259
259
|
}
|
|
260
260
|
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
261
|
-
return new Error(['
|
|
261
|
+
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'));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -718,7 +718,7 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes
|
|
|
718
718
|
*/
|
|
719
719
|
precision: chainPropTypes(PropTypes.number, function (props) {
|
|
720
720
|
if (props.precision < 0.1) {
|
|
721
|
-
return new Error(['
|
|
721
|
+
return new Error(['MUI: The prop `precision` should be above 0.1.', 'A value below this limit has an imperceptible impact.'].join('\n'));
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
return null;
|
|
@@ -352,7 +352,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
352
352
|
|
|
353
353
|
if (process.env.NODE_ENV !== 'production') {
|
|
354
354
|
if (isFragment(child)) {
|
|
355
|
-
console.error(["
|
|
355
|
+
console.error(["MUI: The Select component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -360,7 +360,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
360
360
|
|
|
361
361
|
if (multiple) {
|
|
362
362
|
if (!Array.isArray(value)) {
|
|
363
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "
|
|
363
|
+
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));
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
selected = value.some(function (v) {
|
|
@@ -413,7 +413,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
413
413
|
var values = childrenArray.map(function (child) {
|
|
414
414
|
return child.props.value;
|
|
415
415
|
});
|
|
416
|
-
console.warn(["
|
|
416
|
+
console.warn(["MUI: You have provided an out-of-range value `".concat(value, "` for the select ").concat(name ? "(name=\"".concat(name, "\") ") : '', "component."), "Consider providing a value that matches one of the available options or ''.", "The available values are ".concat(values.filter(function (x) {
|
|
417
417
|
return x != null;
|
|
418
418
|
}).map(function (x) {
|
|
419
419
|
return "`".concat(x, "`");
|
package/legacy/Slide/Slide.js
CHANGED
|
@@ -271,10 +271,10 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
271
271
|
var box = resolvedContainer.getBoundingClientRect();
|
|
272
272
|
|
|
273
273
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
274
|
-
return new Error(['
|
|
274
|
+
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'));
|
|
275
275
|
}
|
|
276
276
|
} else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {
|
|
277
|
-
return new Error(['
|
|
277
|
+
return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\n'));
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -466,7 +466,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
466
466
|
var range = Array.isArray(props.value || props.defaultValue);
|
|
467
467
|
|
|
468
468
|
if (range && props['aria-label'] != null) {
|
|
469
|
-
return new Error('
|
|
469
|
+
return new Error('MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.');
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
return null;
|
|
@@ -484,7 +484,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
484
484
|
var range = Array.isArray(props.value || props.defaultValue);
|
|
485
485
|
|
|
486
486
|
if (range && props['aria-valuetext'] != null) {
|
|
487
|
-
return new Error('
|
|
487
|
+
return new Error('MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.');
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
return null;
|
|
@@ -403,7 +403,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
|
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Props applied to the transition element.
|
|
406
|
-
* By default, the element is based on this [`Transition`](
|
|
406
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
407
407
|
* @default {}
|
|
408
408
|
*/
|
|
409
409
|
TransitionProps: PropTypes.object
|
|
@@ -354,7 +354,7 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
|
354
354
|
var allItems = React.Children.toArray(childrenProp).filter(function (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
|
|
|
@@ -553,7 +553,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
|
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
555
|
* Props applied to the transition element.
|
|
556
|
-
* By default, the element is based on this [`Transition`](
|
|
556
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
557
557
|
*/
|
|
558
558
|
TransitionProps: PropTypes.object
|
|
559
559
|
} : void 0;
|