@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
package/Radio/Radio.d.ts
CHANGED
|
@@ -53,11 +53,11 @@ export interface RadioProps
|
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Radio Buttons](https://
|
|
56
|
+
* - [Radio Buttons](https://mui.com/components/radio-buttons/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [Radio API](https://
|
|
61
|
-
* - inherits [ButtonBase API](https://
|
|
60
|
+
* - [Radio API](https://mui.com/api/radio/)
|
|
61
|
+
* - inherits [ButtonBase API](https://mui.com/api/button-base/)
|
|
62
62
|
*/
|
|
63
63
|
export default function Radio(props: RadioProps): JSX.Element;
|
|
@@ -31,11 +31,11 @@ export type RadioGroupClassKey = keyof NonNullable<RadioGroupProps['classes']>;
|
|
|
31
31
|
*
|
|
32
32
|
* Demos:
|
|
33
33
|
*
|
|
34
|
-
* - [Radio Buttons](https://
|
|
34
|
+
* - [Radio Buttons](https://mui.com/components/radio-buttons/)
|
|
35
35
|
*
|
|
36
36
|
* API:
|
|
37
37
|
*
|
|
38
|
-
* - [RadioGroup API](https://
|
|
39
|
-
* - inherits [FormGroup API](https://
|
|
38
|
+
* - [RadioGroup API](https://mui.com/api/radio-group/)
|
|
39
|
+
* - inherits [FormGroup API](https://mui.com/api/form-group/)
|
|
40
40
|
*/
|
|
41
41
|
export default function RadioGroup(props: RadioGroupProps): JSX.Element;
|
package/Rating/Rating.d.ts
CHANGED
|
@@ -118,10 +118,10 @@ export interface RatingProps
|
|
|
118
118
|
*
|
|
119
119
|
* Demos:
|
|
120
120
|
*
|
|
121
|
-
* - [Rating](https://
|
|
121
|
+
* - [Rating](https://mui.com/components/rating/)
|
|
122
122
|
*
|
|
123
123
|
* API:
|
|
124
124
|
*
|
|
125
|
-
* - [Rating API](https://
|
|
125
|
+
* - [Rating API](https://mui.com/api/rating/)
|
|
126
126
|
*/
|
|
127
127
|
export default function Rating(props: RatingProps): JSX.Element;
|
package/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;
|
|
@@ -19,11 +19,11 @@ export interface ScopedCssBaselineTypeMap<P = {}, D extends React.ElementType =
|
|
|
19
19
|
*
|
|
20
20
|
* Demos:
|
|
21
21
|
*
|
|
22
|
-
* - [Css Baseline](https://
|
|
22
|
+
* - [Css Baseline](https://mui.com/components/css-baseline/)
|
|
23
23
|
*
|
|
24
24
|
* API:
|
|
25
25
|
*
|
|
26
|
-
* - [ScopedCssBaseline API](https://
|
|
26
|
+
* - [ScopedCssBaseline API](https://mui.com/api/scoped-css-baseline/)
|
|
27
27
|
*/
|
|
28
28
|
declare const ScopedCssBaseline: OverridableComponent<ScopedCssBaselineTypeMap>;
|
|
29
29
|
|
|
@@ -36,10 +36,10 @@ export type ScopedCssBaselineProps<
|
|
|
36
36
|
*
|
|
37
37
|
* Demos:
|
|
38
38
|
*
|
|
39
|
-
* - [Css Baseline](https://
|
|
39
|
+
* - [Css Baseline](https://mui.com/components/css-baseline/)
|
|
40
40
|
*
|
|
41
41
|
* API:
|
|
42
42
|
*
|
|
43
|
-
* - [ScopedCssBaseline API](https://
|
|
43
|
+
* - [ScopedCssBaseline API](https://mui.com/api/scoped-css-baseline/)
|
|
44
44
|
*/
|
|
45
45
|
export default ScopedCssBaseline;
|
package/Select/Select.d.ts
CHANGED
|
@@ -148,12 +148,12 @@ export interface SelectProps<T = unknown>
|
|
|
148
148
|
*
|
|
149
149
|
* Demos:
|
|
150
150
|
*
|
|
151
|
-
* - [Selects](https://
|
|
151
|
+
* - [Selects](https://mui.com/components/selects/)
|
|
152
152
|
*
|
|
153
153
|
* API:
|
|
154
154
|
*
|
|
155
|
-
* - [Select API](https://
|
|
156
|
-
* - inherits [OutlinedInput API](https://
|
|
155
|
+
* - [Select API](https://mui.com/api/select/)
|
|
156
|
+
* - inherits [OutlinedInput API](https://mui.com/api/outlined-input/)
|
|
157
157
|
*/
|
|
158
158
|
declare const Select: (<T>(props: SelectProps<T>) => JSX.Element) & { muiName: string };
|
|
159
159
|
|
package/Select/SelectInput.js
CHANGED
|
@@ -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/Skeleton/Skeleton.d.ts
CHANGED
|
@@ -53,11 +53,11 @@ export interface SkeletonTypeMap<P = {}, D extends React.ElementType = 'span'> {
|
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Skeleton](https://
|
|
56
|
+
* - [Skeleton](https://mui.com/components/skeleton/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [Skeleton API](https://
|
|
60
|
+
* - [Skeleton API](https://mui.com/api/skeleton/)
|
|
61
61
|
*/
|
|
62
62
|
declare const Skeleton: OverridableComponent<SkeletonTypeMap>;
|
|
63
63
|
|
package/Slide/Slide.d.ts
CHANGED
|
@@ -48,17 +48,17 @@ export interface SlideProps extends TransitionProps {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* The Slide transition is used by the [Drawer](https://
|
|
51
|
+
* The Slide transition is used by the [Drawer](https://mui.com/components/drawers/) component.
|
|
52
52
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Dialogs](https://
|
|
57
|
-
* - [Transitions](https://
|
|
56
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
57
|
+
* - [Transitions](https://mui.com/components/transitions/)
|
|
58
58
|
*
|
|
59
59
|
* API:
|
|
60
60
|
*
|
|
61
|
-
* - [Slide API](https://
|
|
61
|
+
* - [Slide API](https://mui.com/api/slide/)
|
|
62
62
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props)
|
|
63
63
|
*/
|
|
64
64
|
export default function Slide(props: SlideProps): JSX.Element;
|
package/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/Slider/Slider.d.ts
CHANGED
|
@@ -73,12 +73,12 @@ export const SliderValueLabel: React.FC<SliderValueLabelProps>;
|
|
|
73
73
|
*
|
|
74
74
|
* Demos:
|
|
75
75
|
*
|
|
76
|
-
* - [Slider](https://
|
|
76
|
+
* - [Slider](https://mui.com/components/slider/)
|
|
77
77
|
*
|
|
78
78
|
* API:
|
|
79
79
|
*
|
|
80
|
-
* - [Slider API](https://
|
|
81
|
-
* - inherits [SliderUnstyled API](https://
|
|
80
|
+
* - [Slider API](https://mui.com/api/slider/)
|
|
81
|
+
* - inherits [SliderUnstyled API](https://mui.com/api/slider-unstyled/)
|
|
82
82
|
*/
|
|
83
83
|
declare const Slider: ExtendSliderUnstyled<SliderTypeMap>;
|
|
84
84
|
|
package/Slider/Slider.js
CHANGED
|
@@ -450,7 +450,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
450
450
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
451
451
|
|
|
452
452
|
if (range && props['aria-label'] != null) {
|
|
453
|
-
return new Error('
|
|
453
|
+
return new Error('MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.');
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
return null;
|
|
@@ -468,7 +468,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
468
468
|
const range = Array.isArray(props.value || props.defaultValue);
|
|
469
469
|
|
|
470
470
|
if (range && props['aria-valuetext'] != null) {
|
|
471
|
-
return new Error('
|
|
471
|
+
return new Error('MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.');
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
return null;
|
package/Snackbar/Snackbar.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
111
111
|
transitionDuration?: TransitionProps['timeout'];
|
|
112
112
|
/**
|
|
113
113
|
* Props applied to the transition element.
|
|
114
|
-
* By default, the element is based on this [`Transition`](
|
|
114
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
115
115
|
* @default {}
|
|
116
116
|
*/
|
|
117
117
|
TransitionProps?: TransitionProps;
|
|
@@ -121,10 +121,10 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
121
121
|
*
|
|
122
122
|
* Demos:
|
|
123
123
|
*
|
|
124
|
-
* - [Snackbars](https://
|
|
124
|
+
* - [Snackbars](https://mui.com/components/snackbars/)
|
|
125
125
|
*
|
|
126
126
|
* API:
|
|
127
127
|
*
|
|
128
|
-
* - [Snackbar API](https://
|
|
128
|
+
* - [Snackbar API](https://mui.com/api/snackbar/)
|
|
129
129
|
*/
|
|
130
130
|
export default function Snackbar(props: SnackbarProps): JSX.Element;
|
package/Snackbar/Snackbar.js
CHANGED
|
@@ -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
|
|
@@ -33,11 +33,11 @@ export interface SnackbarContentProps extends StandardProps<PaperProps, 'childre
|
|
|
33
33
|
*
|
|
34
34
|
* Demos:
|
|
35
35
|
*
|
|
36
|
-
* - [Snackbars](https://
|
|
36
|
+
* - [Snackbars](https://mui.com/components/snackbars/)
|
|
37
37
|
*
|
|
38
38
|
* API:
|
|
39
39
|
*
|
|
40
|
-
* - [SnackbarContent API](https://
|
|
41
|
-
* - inherits [Paper API](https://
|
|
40
|
+
* - [SnackbarContent API](https://mui.com/api/snackbar-content/)
|
|
41
|
+
* - inherits [Paper API](https://mui.com/api/paper/)
|
|
42
42
|
*/
|
|
43
43
|
export default function SnackbarContent(props: SnackbarContentProps): JSX.Element;
|
package/SpeedDial/SpeedDial.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface SpeedDialProps
|
|
|
87
87
|
transitionDuration?: TransitionProps['timeout'];
|
|
88
88
|
/**
|
|
89
89
|
* Props applied to the transition element.
|
|
90
|
-
* By default, the element is based on this [`Transition`](
|
|
90
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
91
91
|
*/
|
|
92
92
|
TransitionProps?: TransitionProps;
|
|
93
93
|
}
|
|
@@ -96,10 +96,10 @@ export interface SpeedDialProps
|
|
|
96
96
|
*
|
|
97
97
|
* Demos:
|
|
98
98
|
*
|
|
99
|
-
* - [Speed Dial](https://
|
|
99
|
+
* - [Speed Dial](https://mui.com/components/speed-dial/)
|
|
100
100
|
*
|
|
101
101
|
* API:
|
|
102
102
|
*
|
|
103
|
-
* - [SpeedDial API](https://
|
|
103
|
+
* - [SpeedDial API](https://mui.com/api/speed-dial/)
|
|
104
104
|
*/
|
|
105
105
|
export default function SpeedDial(props: SpeedDialProps): JSX.Element;
|
package/SpeedDial/SpeedDial.js
CHANGED
|
@@ -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;
|
|
@@ -53,11 +53,11 @@ export interface SpeedDialActionProps extends StandardProps<Partial<TooltipProps
|
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Speed Dial](https://
|
|
56
|
+
* - [Speed Dial](https://mui.com/components/speed-dial/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [SpeedDialAction API](https://
|
|
61
|
-
* - inherits [Tooltip API](https://
|
|
60
|
+
* - [SpeedDialAction API](https://mui.com/api/speed-dial-action/)
|
|
61
|
+
* - inherits [Tooltip API](https://mui.com/api/tooltip/)
|
|
62
62
|
*/
|
|
63
63
|
export default function SpeedDialAction(props: SpeedDialActionProps): JSX.Element;
|
|
@@ -33,11 +33,11 @@ export interface SpeedDialIconProps
|
|
|
33
33
|
*
|
|
34
34
|
* Demos:
|
|
35
35
|
*
|
|
36
|
-
* - [Speed Dial](https://
|
|
36
|
+
* - [Speed Dial](https://mui.com/components/speed-dial/)
|
|
37
37
|
*
|
|
38
38
|
* API:
|
|
39
39
|
*
|
|
40
|
-
* - [SpeedDialIcon API](https://
|
|
40
|
+
* - [SpeedDialIcon API](https://mui.com/api/speed-dial-icon/)
|
|
41
41
|
*/
|
|
42
42
|
declare const SpeedDialIcon: ((props: SpeedDialIconProps) => JSX.Element) & { muiName: string };
|
|
43
43
|
|
package/Stack/Stack.d.ts
CHANGED
|
@@ -37,11 +37,11 @@ export interface StackTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
37
37
|
*
|
|
38
38
|
* Demos:
|
|
39
39
|
*
|
|
40
|
-
* - [Stack](https://
|
|
40
|
+
* - [Stack](https://mui.com/components/stack/)
|
|
41
41
|
*
|
|
42
42
|
* API:
|
|
43
43
|
*
|
|
44
|
-
* - [Stack API](https://
|
|
44
|
+
* - [Stack API](https://mui.com/api/stack/)
|
|
45
45
|
*/
|
|
46
46
|
declare const Stack: OverridableComponent<StackTypeMap>;
|
|
47
47
|
|
package/Step/Step.d.ts
CHANGED
|
@@ -52,10 +52,10 @@ export type StepClasskey = keyof NonNullable<StepProps['classes']>;
|
|
|
52
52
|
*
|
|
53
53
|
* Demos:
|
|
54
54
|
*
|
|
55
|
-
* - [Steppers](https://
|
|
55
|
+
* - [Steppers](https://mui.com/components/steppers/)
|
|
56
56
|
*
|
|
57
57
|
* API:
|
|
58
58
|
*
|
|
59
|
-
* - [Step API](https://
|
|
59
|
+
* - [Step API](https://mui.com/api/step/)
|
|
60
60
|
*/
|
|
61
61
|
export default function Step(props: StepProps): JSX.Element;
|
|
@@ -42,12 +42,12 @@ export type StepButtonTypeMap<P, D extends React.ElementType> = ExtendButtonBase
|
|
|
42
42
|
*
|
|
43
43
|
* Demos:
|
|
44
44
|
*
|
|
45
|
-
* - [Steppers](https://
|
|
45
|
+
* - [Steppers](https://mui.com/components/steppers/)
|
|
46
46
|
*
|
|
47
47
|
* API:
|
|
48
48
|
*
|
|
49
|
-
* - [StepButton API](https://
|
|
50
|
-
* - inherits [ButtonBase API](https://
|
|
49
|
+
* - [StepButton API](https://mui.com/api/step-button/)
|
|
50
|
+
* - inherits [ButtonBase API](https://mui.com/api/button-base/)
|
|
51
51
|
*/
|
|
52
52
|
declare const StepButton: ExtendButtonBase<
|
|
53
53
|
StepButtonTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>
|
|
@@ -24,10 +24,10 @@ export type StepConnectorClasskey = keyof NonNullable<StepConnectorProps['classe
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Steppers](https://
|
|
27
|
+
* - [Steppers](https://mui.com/components/steppers/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [StepConnector API](https://
|
|
31
|
+
* - [StepConnector API](https://mui.com/api/step-connector/)
|
|
32
32
|
*/
|
|
33
33
|
export default function StepConnector(props: StepConnectorProps): JSX.Element;
|
|
@@ -34,7 +34,7 @@ export interface StepContentProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
34
34
|
transitionDuration?: TransitionProps['timeout'] | 'auto';
|
|
35
35
|
/**
|
|
36
36
|
* Props applied to the transition element.
|
|
37
|
-
* By default, the element is based on this [`Transition`](
|
|
37
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
38
38
|
*/
|
|
39
39
|
TransitionProps?: TransitionProps;
|
|
40
40
|
}
|
|
@@ -45,10 +45,10 @@ export type StepContentClasskey = keyof NonNullable<StepContentProps['classes']>
|
|
|
45
45
|
*
|
|
46
46
|
* Demos:
|
|
47
47
|
*
|
|
48
|
-
* - [Steppers](https://
|
|
48
|
+
* - [Steppers](https://mui.com/components/steppers/)
|
|
49
49
|
*
|
|
50
50
|
* API:
|
|
51
51
|
*
|
|
52
|
-
* - [StepContent API](https://
|
|
52
|
+
* - [StepContent API](https://mui.com/api/step-content/)
|
|
53
53
|
*/
|
|
54
54
|
export default function StepContent(props: StepContentProps): JSX.Element;
|
|
@@ -84,7 +84,7 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
84
84
|
|
|
85
85
|
if (process.env.NODE_ENV !== 'production') {
|
|
86
86
|
if (orientation !== 'vertical') {
|
|
87
|
-
console.error('
|
|
87
|
+
console.error('MUI: <StepContent /> is only designed for use with the vertical stepper.');
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -161,7 +161,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Props applied to the transition element.
|
|
164
|
-
* By default, the element is based on this [`Transition`](
|
|
164
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
165
165
|
*/
|
|
166
166
|
TransitionProps: PropTypes.object
|
|
167
167
|
} : void 0;
|
package/StepIcon/StepIcon.d.ts
CHANGED
|
@@ -41,10 +41,10 @@ export type StepIconClasskey = keyof NonNullable<StepIconProps['classes']>;
|
|
|
41
41
|
*
|
|
42
42
|
* Demos:
|
|
43
43
|
*
|
|
44
|
-
* - [Steppers](https://
|
|
44
|
+
* - [Steppers](https://mui.com/components/steppers/)
|
|
45
45
|
*
|
|
46
46
|
* API:
|
|
47
47
|
*
|
|
48
|
-
* - [StepIcon API](https://
|
|
48
|
+
* - [StepIcon API](https://mui.com/api/step-icon/)
|
|
49
49
|
*/
|
|
50
50
|
export default function StepIcon(props: StepIconProps): JSX.Element;
|