@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/CardMedia/CardMedia.js
CHANGED
|
@@ -104,7 +104,7 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
104
104
|
*/
|
|
105
105
|
children: chainPropTypes(PropTypes.node, props => {
|
|
106
106
|
if (!props.children && !props.image && !props.src && !props.component) {
|
|
107
|
-
return new Error('
|
|
107
|
+
return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
return null;
|
package/Checkbox/Checkbox.d.ts
CHANGED
|
@@ -102,12 +102,12 @@ export interface CheckboxProps
|
|
|
102
102
|
*
|
|
103
103
|
* Demos:
|
|
104
104
|
*
|
|
105
|
-
* - [Checkboxes](https://
|
|
106
|
-
* - [Transfer List](https://
|
|
105
|
+
* - [Checkboxes](https://mui.com/components/checkboxes/)
|
|
106
|
+
* - [Transfer List](https://mui.com/components/transfer-list/)
|
|
107
107
|
*
|
|
108
108
|
* API:
|
|
109
109
|
*
|
|
110
|
-
* - [Checkbox API](https://
|
|
111
|
-
* - inherits [ButtonBase API](https://
|
|
110
|
+
* - [Checkbox API](https://mui.com/api/checkbox/)
|
|
111
|
+
* - inherits [ButtonBase API](https://mui.com/api/button-base/)
|
|
112
112
|
*/
|
|
113
113
|
export default function Checkbox(props: CheckboxProps): JSX.Element;
|
package/Checkbox/Checkbox.js
CHANGED
|
@@ -143,7 +143,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
143
143
|
*/
|
|
144
144
|
color: PropTypes
|
|
145
145
|
/* @typescript-to-proptypes-ignore */
|
|
146
|
-
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', '
|
|
146
|
+
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The default checked state. Use when the component is not controlled.
|
package/Chip/Chip.d.ts
CHANGED
|
@@ -88,11 +88,11 @@ export interface ChipTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
88
88
|
*
|
|
89
89
|
* Demos:
|
|
90
90
|
*
|
|
91
|
-
* - [Chips](https://
|
|
91
|
+
* - [Chips](https://mui.com/components/chips/)
|
|
92
92
|
*
|
|
93
93
|
* API:
|
|
94
94
|
*
|
|
95
|
-
* - [Chip API](https://
|
|
95
|
+
* - [Chip API](https://mui.com/api/chip/)
|
|
96
96
|
*/
|
|
97
97
|
declare const Chip: OverridableComponent<ChipTypeMap>;
|
|
98
98
|
|
package/Chip/Chip.js
CHANGED
|
@@ -387,7 +387,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
387
387
|
|
|
388
388
|
if (process.env.NODE_ENV !== 'production') {
|
|
389
389
|
if (avatar && icon) {
|
|
390
|
-
console.error('
|
|
390
|
+
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -65,10 +65,10 @@ export interface CircularProgressProps
|
|
|
65
65
|
*
|
|
66
66
|
* Demos:
|
|
67
67
|
*
|
|
68
|
-
* - [Progress](https://
|
|
68
|
+
* - [Progress](https://mui.com/components/progress/)
|
|
69
69
|
*
|
|
70
70
|
* API:
|
|
71
71
|
*
|
|
72
|
-
* - [CircularProgress API](https://
|
|
72
|
+
* - [CircularProgress API](https://mui.com/api/circular-progress/)
|
|
73
73
|
*/
|
|
74
74
|
export default function CircularProgress(props: CircularProgressProps): JSX.Element;
|
|
@@ -226,7 +226,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
226
226
|
*/
|
|
227
227
|
disableShrink: chainPropTypes(PropTypes.bool, props => {
|
|
228
228
|
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
|
229
|
-
return new Error('
|
|
229
|
+
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
return null;
|
|
@@ -33,12 +33,12 @@ export interface ClickAwayListenerProps {
|
|
|
33
33
|
*
|
|
34
34
|
* Demos:
|
|
35
35
|
*
|
|
36
|
-
* - [Click Away Listener](https://
|
|
37
|
-
* - [Menus](https://
|
|
36
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
37
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
38
38
|
*
|
|
39
39
|
* API:
|
|
40
40
|
*
|
|
41
|
-
* - [ClickAwayListener API](https://
|
|
41
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
42
42
|
*/
|
|
43
43
|
declare function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element;
|
|
44
44
|
declare namespace ClickAwayListener {
|
|
@@ -21,12 +21,12 @@ function clickedRootScrollbar(event, doc) {
|
|
|
21
21
|
*
|
|
22
22
|
* Demos:
|
|
23
23
|
*
|
|
24
|
-
* - [Click Away Listener](https://
|
|
25
|
-
* - [Menus](https://
|
|
24
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
25
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [ClickAwayListener API](https://
|
|
29
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
30
30
|
*/
|
|
31
31
|
function ClickAwayListener(props) {
|
|
32
32
|
const {
|
package/Collapse/Collapse.d.ts
CHANGED
|
@@ -54,18 +54,18 @@ export interface CollapseProps extends StandardProps<TransitionProps, 'timeout'>
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The Collapse transition is used by the
|
|
57
|
-
* [Vertical Stepper](https://
|
|
57
|
+
* [Vertical Stepper](https://mui.com/components/steppers/#vertical-stepper) StepContent component.
|
|
58
58
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
59
59
|
*
|
|
60
60
|
* Demos:
|
|
61
61
|
*
|
|
62
|
-
* - [Cards](https://
|
|
63
|
-
* - [Lists](https://
|
|
64
|
-
* - [Transitions](https://
|
|
62
|
+
* - [Cards](https://mui.com/components/cards/)
|
|
63
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
64
|
+
* - [Transitions](https://mui.com/components/transitions/)
|
|
65
65
|
*
|
|
66
66
|
* API:
|
|
67
67
|
*
|
|
68
|
-
* - [Collapse API](https://
|
|
68
|
+
* - [Collapse API](https://mui.com/api/collapse/)
|
|
69
69
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props)
|
|
70
70
|
*/
|
|
71
71
|
|
package/Container/Container.d.ts
CHANGED
|
@@ -42,11 +42,11 @@ export interface ContainerTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
42
42
|
*
|
|
43
43
|
* Demos:
|
|
44
44
|
*
|
|
45
|
-
* - [Container](https://
|
|
45
|
+
* - [Container](https://mui.com/components/container/)
|
|
46
46
|
*
|
|
47
47
|
* API:
|
|
48
48
|
*
|
|
49
|
-
* - [Container API](https://
|
|
49
|
+
* - [Container API](https://mui.com/api/container/)
|
|
50
50
|
*/
|
|
51
51
|
declare const Container: OverridableComponent<ContainerTypeMap>;
|
|
52
52
|
|
|
@@ -13,10 +13,10 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
|
|
|
13
13
|
*
|
|
14
14
|
* Demos:
|
|
15
15
|
*
|
|
16
|
-
* - [Css Baseline](https://
|
|
16
|
+
* - [Css Baseline](https://mui.com/components/css-baseline/)
|
|
17
17
|
*
|
|
18
18
|
* API:
|
|
19
19
|
*
|
|
20
|
-
* - [CssBaseline API](https://
|
|
20
|
+
* - [CssBaseline API](https://mui.com/api/css-baseline/)
|
|
21
21
|
*/
|
|
22
22
|
export default function CssBaseline(props: CssBaselineProps): JSX.Element;
|
package/Dialog/Dialog.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export interface DialogProps extends StandardProps<ModalProps, 'children'> {
|
|
|
97
97
|
transitionDuration?: TransitionProps['timeout'];
|
|
98
98
|
/**
|
|
99
99
|
* Props applied to the transition element.
|
|
100
|
-
* By default, the element is based on this [`Transition`](
|
|
100
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
101
101
|
*/
|
|
102
102
|
TransitionProps?: TransitionProps;
|
|
103
103
|
}
|
|
@@ -107,11 +107,11 @@ export interface DialogProps extends StandardProps<ModalProps, 'children'> {
|
|
|
107
107
|
*
|
|
108
108
|
* Demos:
|
|
109
109
|
*
|
|
110
|
-
* - [Dialogs](https://
|
|
110
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
111
111
|
*
|
|
112
112
|
* API:
|
|
113
113
|
*
|
|
114
|
-
* - [Dialog API](https://
|
|
115
|
-
* - inherits [Modal API](https://
|
|
114
|
+
* - [Dialog API](https://mui.com/api/dialog/)
|
|
115
|
+
* - inherits [Modal API](https://mui.com/api/modal/)
|
|
116
116
|
*/
|
|
117
117
|
export default function Dialog(props: DialogProps): JSX.Element;
|
package/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;
|
|
@@ -27,10 +27,10 @@ export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialogs](https://
|
|
30
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogActions API](https://
|
|
34
|
+
* - [DialogActions API](https://mui.com/api/dialog-actions/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogActions(props: DialogActionsProps): JSX.Element;
|
|
@@ -27,10 +27,10 @@ export interface DialogContentProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialogs](https://
|
|
30
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogContent API](https://
|
|
34
|
+
* - [DialogContent API](https://mui.com/api/dialog-content/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogContent(props: DialogContentProps): JSX.Element;
|
|
@@ -26,12 +26,12 @@ export interface DialogContentTextTypeMap<
|
|
|
26
26
|
*
|
|
27
27
|
* Demos:
|
|
28
28
|
*
|
|
29
|
-
* - [Dialogs](https://
|
|
29
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
30
30
|
*
|
|
31
31
|
* API:
|
|
32
32
|
*
|
|
33
|
-
* - [DialogContentText API](https://
|
|
34
|
-
* - inherits [Typography API](https://
|
|
33
|
+
* - [DialogContentText API](https://mui.com/api/dialog-content-text/)
|
|
34
|
+
* - inherits [Typography API](https://mui.com/api/typography/)
|
|
35
35
|
*/
|
|
36
36
|
declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
|
|
37
37
|
|
|
@@ -22,10 +22,10 @@ export interface DialogTitleProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Dialogs](https://
|
|
25
|
+
* - [Dialogs](https://mui.com/components/dialogs/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [DialogTitle API](https://
|
|
29
|
+
* - [DialogTitle API](https://mui.com/api/dialog-title/)
|
|
30
30
|
*/
|
|
31
31
|
export default function DialogTitle(props: DialogTitleProps): JSX.Element;
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -63,12 +63,12 @@ export interface DividerTypeMap<P = {}, D extends React.ElementType = 'hr'> {
|
|
|
63
63
|
*
|
|
64
64
|
* Demos:
|
|
65
65
|
*
|
|
66
|
-
* - [Dividers](https://
|
|
67
|
-
* - [Lists](https://
|
|
66
|
+
* - [Dividers](https://mui.com/components/dividers/)
|
|
67
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
68
68
|
*
|
|
69
69
|
* API:
|
|
70
70
|
*
|
|
71
|
-
* - [Divider API](https://
|
|
71
|
+
* - [Divider API](https://mui.com/api/divider/)
|
|
72
72
|
*/
|
|
73
73
|
declare const Divider: OverridableComponent<DividerTypeMap>;
|
|
74
74
|
|
package/Drawer/Drawer.d.ts
CHANGED
|
@@ -69,15 +69,15 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* The props of the [Modal](https://
|
|
72
|
+
* The props of the [Modal](https://mui.com/api/modal/) component are available
|
|
73
73
|
* when `variant="temporary"` is set.
|
|
74
74
|
*
|
|
75
75
|
* Demos:
|
|
76
76
|
*
|
|
77
|
-
* - [Drawers](https://
|
|
77
|
+
* - [Drawers](https://mui.com/components/drawers/)
|
|
78
78
|
*
|
|
79
79
|
* API:
|
|
80
80
|
*
|
|
81
|
-
* - [Drawer API](https://
|
|
81
|
+
* - [Drawer API](https://mui.com/api/drawer/)
|
|
82
82
|
*/
|
|
83
83
|
export default function Drawer(props: DrawerProps): JSX.Element;
|
package/Fab/Fab.d.ts
CHANGED
|
@@ -68,12 +68,12 @@ export type FabTypeMap<P = {}, D extends React.ElementType = 'button'> = ExtendB
|
|
|
68
68
|
*
|
|
69
69
|
* Demos:
|
|
70
70
|
*
|
|
71
|
-
* - [Floating Action Button](https://
|
|
71
|
+
* - [Floating Action Button](https://mui.com/components/floating-action-button/)
|
|
72
72
|
*
|
|
73
73
|
* API:
|
|
74
74
|
*
|
|
75
|
-
* - [Fab API](https://
|
|
76
|
-
* - inherits [ButtonBase API](https://
|
|
75
|
+
* - [Fab API](https://mui.com/api/fab/)
|
|
76
|
+
* - inherits [ButtonBase API](https://mui.com/api/button-base/)
|
|
77
77
|
*/
|
|
78
78
|
declare const Fab: ExtendButtonBase<FabTypeMap>;
|
|
79
79
|
|
package/Fade/Fade.d.ts
CHANGED
|
@@ -34,16 +34,16 @@ export interface FadeProps extends Omit<TransitionProps, 'children'> {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* The Fade transition is used by the [Modal](https://
|
|
37
|
+
* The Fade transition is used by the [Modal](https://mui.com/components/modal/) component.
|
|
38
38
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
39
39
|
*
|
|
40
40
|
* Demos:
|
|
41
41
|
*
|
|
42
|
-
* - [Transitions](https://
|
|
42
|
+
* - [Transitions](https://mui.com/components/transitions/)
|
|
43
43
|
*
|
|
44
44
|
* API:
|
|
45
45
|
*
|
|
46
|
-
* - [Fade API](https://
|
|
46
|
+
* - [Fade API](https://mui.com/api/fade/)
|
|
47
47
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props)
|
|
48
48
|
*/
|
|
49
49
|
export default function Fade(props: FadeProps): JSX.Element;
|
|
@@ -29,12 +29,12 @@ export interface FilledInputProps extends StandardProps<InputBaseProps> {
|
|
|
29
29
|
*
|
|
30
30
|
* Demos:
|
|
31
31
|
*
|
|
32
|
-
* - [Text Fields](https://
|
|
32
|
+
* - [Text Fields](https://mui.com/components/text-fields/)
|
|
33
33
|
*
|
|
34
34
|
* API:
|
|
35
35
|
*
|
|
36
|
-
* - [FilledInput API](https://
|
|
37
|
-
* - inherits [InputBase API](https://
|
|
36
|
+
* - [FilledInput API](https://mui.com/api/filled-input/)
|
|
37
|
+
* - inherits [InputBase API](https://mui.com/api/input-base/)
|
|
38
38
|
*/
|
|
39
39
|
declare const FilledInput: ((props: FilledInputProps) => JSX.Element) & { muiName: string };
|
|
40
40
|
|
|
@@ -91,7 +91,7 @@ export interface FormControlTypeMap<P = {}, D extends React.ElementType = 'div'>
|
|
|
91
91
|
* * Input
|
|
92
92
|
* * InputLabel
|
|
93
93
|
*
|
|
94
|
-
* You can find one composition example below and more going to [the demos](https://
|
|
94
|
+
* You can find one composition example below and more going to [the demos](https://mui.com/components/text-fields/#components).
|
|
95
95
|
*
|
|
96
96
|
* ```jsx
|
|
97
97
|
* <FormControl>
|
|
@@ -106,14 +106,14 @@ export interface FormControlTypeMap<P = {}, D extends React.ElementType = 'div'>
|
|
|
106
106
|
*
|
|
107
107
|
* Demos:
|
|
108
108
|
*
|
|
109
|
-
* - [Checkboxes](https://
|
|
110
|
-
* - [Radio Buttons](https://
|
|
111
|
-
* - [Switches](https://
|
|
112
|
-
* - [Text Fields](https://
|
|
109
|
+
* - [Checkboxes](https://mui.com/components/checkboxes/)
|
|
110
|
+
* - [Radio Buttons](https://mui.com/components/radio-buttons/)
|
|
111
|
+
* - [Switches](https://mui.com/components/switches/)
|
|
112
|
+
* - [Text Fields](https://mui.com/components/text-fields/)
|
|
113
113
|
*
|
|
114
114
|
* API:
|
|
115
115
|
*
|
|
116
|
-
* - [FormControl API](https://
|
|
116
|
+
* - [FormControl API](https://mui.com/api/form-control/)
|
|
117
117
|
*/
|
|
118
118
|
declare const FormControl: OverridableComponent<FormControlTypeMap>;
|
|
119
119
|
|
|
@@ -172,7 +172,7 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
172
172
|
|
|
173
173
|
registerEffect = () => {
|
|
174
174
|
if (registeredInput.current) {
|
|
175
|
-
console.error(['
|
|
175
|
+
console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\n'));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
registeredInput.current = true;
|
|
@@ -75,12 +75,12 @@ export interface FormControlLabelProps
|
|
|
75
75
|
*
|
|
76
76
|
* Demos:
|
|
77
77
|
*
|
|
78
|
-
* - [Checkboxes](https://
|
|
79
|
-
* - [Radio Buttons](https://
|
|
80
|
-
* - [Switches](https://
|
|
78
|
+
* - [Checkboxes](https://mui.com/components/checkboxes/)
|
|
79
|
+
* - [Radio Buttons](https://mui.com/components/radio-buttons/)
|
|
80
|
+
* - [Switches](https://mui.com/components/switches/)
|
|
81
81
|
*
|
|
82
82
|
* API:
|
|
83
83
|
*
|
|
84
|
-
* - [FormControlLabel API](https://
|
|
84
|
+
* - [FormControlLabel API](https://mui.com/api/form-control-label/)
|
|
85
85
|
*/
|
|
86
86
|
export default function FormControlLabel(props: FormControlLabelProps): JSX.Element;
|
package/FormGroup/FormGroup.d.ts
CHANGED
|
@@ -30,11 +30,11 @@ export interface FormGroupProps extends StandardProps<React.HTMLAttributes<HTMLD
|
|
|
30
30
|
*
|
|
31
31
|
* Demos:
|
|
32
32
|
*
|
|
33
|
-
* - [Checkboxes](https://
|
|
34
|
-
* - [Switches](https://
|
|
33
|
+
* - [Checkboxes](https://mui.com/components/checkboxes/)
|
|
34
|
+
* - [Switches](https://mui.com/components/switches/)
|
|
35
35
|
*
|
|
36
36
|
* API:
|
|
37
37
|
*
|
|
38
|
-
* - [FormGroup API](https://
|
|
38
|
+
* - [FormGroup API](https://mui.com/api/form-group/)
|
|
39
39
|
*/
|
|
40
40
|
export default function FormGroup(props: FormGroupProps): JSX.Element;
|
|
@@ -56,11 +56,11 @@ export interface FormHelperTextTypeMap<P = {}, D extends React.ElementType = 'p'
|
|
|
56
56
|
*
|
|
57
57
|
* Demos:
|
|
58
58
|
*
|
|
59
|
-
* - [Text Fields](https://
|
|
59
|
+
* - [Text Fields](https://mui.com/components/text-fields/)
|
|
60
60
|
*
|
|
61
61
|
* API:
|
|
62
62
|
*
|
|
63
|
-
* - [FormHelperText API](https://
|
|
63
|
+
* - [FormHelperText API](https://mui.com/api/form-helper-text/)
|
|
64
64
|
*/
|
|
65
65
|
declare const FormHelperText: OverridableComponent<FormHelperTextTypeMap>;
|
|
66
66
|
|