@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
|
@@ -130,7 +130,7 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
130
130
|
if (listItemRef.current) {
|
|
131
131
|
listItemRef.current.focus();
|
|
132
132
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
133
|
-
console.error('
|
|
133
|
+
console.error('MUI: Unable to set focus to a ListItemButton whose component has not been rendered.');
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}, [autoFocus]);
|
|
@@ -24,10 +24,10 @@ export interface ListItemIconProps extends StandardProps<React.HTMLAttributes<HT
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Lists](https://
|
|
27
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [ListItemIcon API](https://
|
|
31
|
+
* - [ListItemIcon API](https://mui.com/api/list-item-icon/)
|
|
32
32
|
*/
|
|
33
33
|
export default function ListItemIcon(props: ListItemIconProps): JSX.Element;
|
|
@@ -24,11 +24,11 @@ export interface ListItemSecondaryActionProps
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Lists](https://
|
|
27
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [ListItemSecondaryAction API](https://
|
|
31
|
+
* - [ListItemSecondaryAction API](https://mui.com/api/list-item-secondary-action/)
|
|
32
32
|
*/
|
|
33
33
|
declare const ListItemSecondaryAction: ((props: ListItemSecondaryActionProps) => JSX.Element) & {
|
|
34
34
|
muiName: string;
|
|
@@ -64,11 +64,11 @@ export interface ListItemTextProps<
|
|
|
64
64
|
*
|
|
65
65
|
* Demos:
|
|
66
66
|
*
|
|
67
|
-
* - [Lists](https://
|
|
67
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
68
68
|
*
|
|
69
69
|
* API:
|
|
70
70
|
*
|
|
71
|
-
* - [ListItemText API](https://
|
|
71
|
+
* - [ListItemText API](https://mui.com/api/list-item-text/)
|
|
72
72
|
*/
|
|
73
73
|
export default function ListItemText<
|
|
74
74
|
PrimaryTypographyComponent extends React.ElementType = 'span',
|
|
@@ -46,11 +46,11 @@ export interface ListSubheaderTypeMap<P = {}, D extends React.ElementType = 'li'
|
|
|
46
46
|
*
|
|
47
47
|
* Demos:
|
|
48
48
|
*
|
|
49
|
-
* - [Lists](https://
|
|
49
|
+
* - [Lists](https://mui.com/components/lists/)
|
|
50
50
|
*
|
|
51
51
|
* API:
|
|
52
52
|
*
|
|
53
|
-
* - [ListSubheader API](https://
|
|
53
|
+
* - [ListSubheader API](https://mui.com/api/list-subheader/)
|
|
54
54
|
*/
|
|
55
55
|
declare const ListSubheader: OverridableComponent<ListSubheaderTypeMap>;
|
|
56
56
|
|
package/Menu/Menu.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export interface MenuProps extends StandardProps<PopoverProps> {
|
|
|
68
68
|
transitionDuration?: TransitionProps['timeout'] | 'auto';
|
|
69
69
|
/**
|
|
70
70
|
* Props applied to the transition element.
|
|
71
|
-
* By default, the element is based on this [`Transition`](
|
|
71
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
72
72
|
* @default {}
|
|
73
73
|
*/
|
|
74
74
|
TransitionProps?: TransitionProps;
|
|
@@ -83,12 +83,12 @@ export interface MenuProps extends StandardProps<PopoverProps> {
|
|
|
83
83
|
*
|
|
84
84
|
* Demos:
|
|
85
85
|
*
|
|
86
|
-
* - [App Bar](https://
|
|
87
|
-
* - [Menus](https://
|
|
86
|
+
* - [App Bar](https://mui.com/components/app-bar/)
|
|
87
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
88
88
|
*
|
|
89
89
|
* API:
|
|
90
90
|
*
|
|
91
|
-
* - [Menu API](https://
|
|
92
|
-
* - inherits [Popover API](https://
|
|
91
|
+
* - [Menu API](https://mui.com/api/menu/)
|
|
92
|
+
* - inherits [Popover API](https://mui.com/api/popover/)
|
|
93
93
|
*/
|
|
94
94
|
export default function Menu(props: MenuProps): JSX.Element;
|
package/Menu/Menu.js
CHANGED
|
@@ -142,7 +142,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
142
142
|
|
|
143
143
|
if (process.env.NODE_ENV !== 'production') {
|
|
144
144
|
if (isFragment(child)) {
|
|
145
|
-
console.error(["
|
|
145
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -280,7 +280,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes
|
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* Props applied to the transition element.
|
|
283
|
-
* By default, the element is based on this [`Transition`](
|
|
283
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
284
284
|
* @default {}
|
|
285
285
|
*/
|
|
286
286
|
TransitionProps: PropTypes.object,
|
package/MenuItem/MenuItem.d.ts
CHANGED
|
@@ -54,12 +54,12 @@ export type MenuItemTypeMap<P = {}, D extends React.ElementType = 'li'> = Extend
|
|
|
54
54
|
*
|
|
55
55
|
* Demos:
|
|
56
56
|
*
|
|
57
|
-
* - [Menus](https://
|
|
57
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
58
58
|
*
|
|
59
59
|
* API:
|
|
60
60
|
*
|
|
61
|
-
* - [MenuItem API](https://
|
|
62
|
-
* - inherits [ButtonBase API](https://
|
|
61
|
+
* - [MenuItem API](https://mui.com/api/menu-item/)
|
|
62
|
+
* - inherits [ButtonBase API](https://mui.com/api/button-base/)
|
|
63
63
|
*/
|
|
64
64
|
declare const MenuItem: ExtendButtonBase<MenuItemTypeMap>;
|
|
65
65
|
|
package/MenuItem/MenuItem.js
CHANGED
|
@@ -150,7 +150,7 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
150
150
|
if (menuItemRef.current) {
|
|
151
151
|
menuItemRef.current.focus();
|
|
152
152
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
153
|
-
console.error('
|
|
153
|
+
console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}, [autoFocus]);
|
package/MenuList/MenuList.d.ts
CHANGED
|
@@ -39,17 +39,17 @@ export type MenuListClassKey = keyof NonNullable<MenuListProps['classes']>;
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
|
|
42
|
-
* It's exposed to help customization of the [`Menu`](https://
|
|
42
|
+
* It's exposed to help customization of the [`Menu`](https://mui.com/api/menu/) component if you
|
|
43
43
|
* use it separately you need to move focus into the component manually. Once
|
|
44
44
|
* the focus is placed inside the component it is fully keyboard accessible.
|
|
45
45
|
*
|
|
46
46
|
* Demos:
|
|
47
47
|
*
|
|
48
|
-
* - [Menus](https://
|
|
48
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
49
49
|
*
|
|
50
50
|
* API:
|
|
51
51
|
*
|
|
52
|
-
* - [MenuList API](https://
|
|
53
|
-
* - inherits [List API](https://
|
|
52
|
+
* - [MenuList API](https://mui.com/api/menu-list/)
|
|
53
|
+
* - inherits [List API](https://mui.com/api/list/)
|
|
54
54
|
*/
|
|
55
55
|
export default function MenuList(props: MenuListProps): JSX.Element;
|
package/MenuList/MenuList.js
CHANGED
|
@@ -215,7 +215,7 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
215
215
|
|
|
216
216
|
if (process.env.NODE_ENV !== 'production') {
|
|
217
217
|
if (isFragment(child)) {
|
|
218
|
-
console.error(["
|
|
218
|
+
console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -52,11 +52,11 @@ export interface MobileStepperProps extends StandardProps<PaperProps, 'children'
|
|
|
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
|
-
* - [MobileStepper API](https://
|
|
60
|
-
* - inherits [Paper API](https://
|
|
59
|
+
* - [MobileStepper API](https://mui.com/api/mobile-stepper/)
|
|
60
|
+
* - inherits [Paper API](https://mui.com/api/paper/)
|
|
61
61
|
*/
|
|
62
62
|
export default function MobileStepper(props: MobileStepperProps): JSX.Element;
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -41,23 +41,23 @@ export type ModalClassKey = keyof NonNullable<ModalTypeMap['props']['classes']>;
|
|
|
41
41
|
/**
|
|
42
42
|
* Modal is a lower-level construct that is leveraged by the following components:
|
|
43
43
|
*
|
|
44
|
-
* * [Dialog](https://
|
|
45
|
-
* * [Drawer](https://
|
|
46
|
-
* * [Menu](https://
|
|
47
|
-
* * [Popover](https://
|
|
44
|
+
* * [Dialog](https://mui.com/api/dialog/)
|
|
45
|
+
* * [Drawer](https://mui.com/api/drawer/)
|
|
46
|
+
* * [Menu](https://mui.com/api/menu/)
|
|
47
|
+
* * [Popover](https://mui.com/api/popover/)
|
|
48
48
|
*
|
|
49
|
-
* If you are creating a modal dialog, you probably want to use the [Dialog](https://
|
|
49
|
+
* If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/api/dialog/) component
|
|
50
50
|
* rather than directly using Modal.
|
|
51
51
|
*
|
|
52
52
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Modal](https://
|
|
56
|
+
* - [Modal](https://mui.com/components/modal/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [Modal API](https://
|
|
60
|
+
* - [Modal API](https://mui.com/api/modal/)
|
|
61
61
|
*/
|
|
62
62
|
declare const Modal: ExtendModalUnstyled<ModalTypeMap>;
|
|
63
63
|
|
|
@@ -57,12 +57,12 @@ export interface NativeSelectProps
|
|
|
57
57
|
*
|
|
58
58
|
* Demos:
|
|
59
59
|
*
|
|
60
|
-
* - [Selects](https://
|
|
60
|
+
* - [Selects](https://mui.com/components/selects/)
|
|
61
61
|
*
|
|
62
62
|
* API:
|
|
63
63
|
*
|
|
64
|
-
* - [NativeSelect API](https://
|
|
65
|
-
* - inherits [Input API](https://
|
|
64
|
+
* - [NativeSelect API](https://mui.com/api/native-select/)
|
|
65
|
+
* - inherits [Input API](https://mui.com/api/input/)
|
|
66
66
|
*/
|
|
67
67
|
declare const NativeSelect: ((props: NativeSelectProps) => JSX.Element) & { muiName: string };
|
|
68
68
|
|
|
@@ -28,12 +28,12 @@ export interface OutlinedInputProps extends StandardProps<InputBaseProps> {
|
|
|
28
28
|
*
|
|
29
29
|
* Demos:
|
|
30
30
|
*
|
|
31
|
-
* - [Text Fields](https://
|
|
31
|
+
* - [Text Fields](https://mui.com/components/text-fields/)
|
|
32
32
|
*
|
|
33
33
|
* API:
|
|
34
34
|
*
|
|
35
|
-
* - [OutlinedInput API](https://
|
|
36
|
-
* - inherits [InputBase API](https://
|
|
35
|
+
* - [OutlinedInput API](https://mui.com/api/outlined-input/)
|
|
36
|
+
* - inherits [InputBase API](https://mui.com/api/input-base/)
|
|
37
37
|
*/
|
|
38
38
|
declare const OutlinedInput: ((props: OutlinedInputProps) => JSX.Element) & { muiName: string };
|
|
39
39
|
|
|
@@ -81,10 +81,10 @@ export interface PaginationProps
|
|
|
81
81
|
*
|
|
82
82
|
* Demos:
|
|
83
83
|
*
|
|
84
|
-
* - [Pagination](https://
|
|
84
|
+
* - [Pagination](https://mui.com/components/pagination/)
|
|
85
85
|
*
|
|
86
86
|
* API:
|
|
87
87
|
*
|
|
88
|
-
* - [Pagination API](https://
|
|
88
|
+
* - [Pagination API](https://mui.com/api/pagination/)
|
|
89
89
|
*/
|
|
90
90
|
export default function Pagination(props: PaginationProps): JSX.Element;
|
|
@@ -72,11 +72,11 @@ export interface PaginationItemTypeMap<P = {}, D extends React.ElementType = 'di
|
|
|
72
72
|
*
|
|
73
73
|
* Demos:
|
|
74
74
|
*
|
|
75
|
-
* - [Pagination](https://
|
|
75
|
+
* - [Pagination](https://mui.com/components/pagination/)
|
|
76
76
|
*
|
|
77
77
|
* API:
|
|
78
78
|
*
|
|
79
|
-
* - [PaginationItem API](https://
|
|
79
|
+
* - [PaginationItem API](https://mui.com/api/pagination-item/)
|
|
80
80
|
*/
|
|
81
81
|
declare const PaginationItem: OverridableComponent<PaginationItemTypeMap>;
|
|
82
82
|
|
package/Paper/Paper.d.ts
CHANGED
|
@@ -45,12 +45,12 @@ export interface PaperTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
45
45
|
*
|
|
46
46
|
* Demos:
|
|
47
47
|
*
|
|
48
|
-
* - [Cards](https://
|
|
49
|
-
* - [Paper](https://
|
|
48
|
+
* - [Cards](https://mui.com/components/cards/)
|
|
49
|
+
* - [Paper](https://mui.com/components/paper/)
|
|
50
50
|
*
|
|
51
51
|
* API:
|
|
52
52
|
*
|
|
53
|
-
* - [Paper API](https://
|
|
53
|
+
* - [Paper API](https://mui.com/api/paper/)
|
|
54
54
|
*/
|
|
55
55
|
declare const Paper: OverridableComponent<PaperTypeMap>;
|
|
56
56
|
|
package/Paper/Paper.js
CHANGED
|
@@ -93,7 +93,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
93
93
|
const theme = useTheme();
|
|
94
94
|
|
|
95
95
|
if (theme.shadows[elevation] === undefined) {
|
|
96
|
-
console.error([`
|
|
96
|
+
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes
|
|
|
145
145
|
} = props;
|
|
146
146
|
|
|
147
147
|
if (elevation > 0 && variant === 'outlined') {
|
|
148
|
-
return new Error(`
|
|
148
|
+
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
return null;
|
package/Popover/Popover.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export interface PopoverProps extends StandardProps<ModalProps, 'children'> {
|
|
|
123
123
|
transitionDuration?: TransitionProps['timeout'] | 'auto';
|
|
124
124
|
/**
|
|
125
125
|
* Props applied to the transition element.
|
|
126
|
-
* By default, the element is based on this [`Transition`](
|
|
126
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
127
127
|
* @default {}
|
|
128
128
|
*/
|
|
129
129
|
TransitionProps?: TransitionProps;
|
|
@@ -137,12 +137,12 @@ export interface PopoverActions {
|
|
|
137
137
|
*
|
|
138
138
|
* Demos:
|
|
139
139
|
*
|
|
140
|
-
* - [Menus](https://
|
|
141
|
-
* - [Popover](https://
|
|
140
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
141
|
+
* - [Popover](https://mui.com/components/popover/)
|
|
142
142
|
*
|
|
143
143
|
* API:
|
|
144
144
|
*
|
|
145
|
-
* - [Popover API](https://
|
|
146
|
-
* - inherits [Modal API](https://
|
|
145
|
+
* - [Popover API](https://mui.com/api/popover/)
|
|
146
|
+
* - inherits [Modal API](https://mui.com/api/modal/)
|
|
147
147
|
*/
|
|
148
148
|
export default function Popover(props: PopoverProps): JSX.Element;
|
package/Popover/Popover.js
CHANGED
|
@@ -143,7 +143,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
143
143
|
if (anchorReference === 'anchorPosition') {
|
|
144
144
|
if (process.env.NODE_ENV !== 'production') {
|
|
145
145
|
if (!anchorPosition) {
|
|
146
|
-
console.error('
|
|
146
|
+
console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference="anchorPosition" />.');
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -159,7 +159,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
159
159
|
const box = anchorElement.getBoundingClientRect();
|
|
160
160
|
|
|
161
161
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
162
|
-
console.warn(['
|
|
162
|
+
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -216,7 +216,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
216
216
|
|
|
217
217
|
if (process.env.NODE_ENV !== 'production') {
|
|
218
218
|
if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {
|
|
219
|
-
console.error(['
|
|
219
|
+
console.error(['MUI: The popover component is too tall.', `Some part of it can not be seen on the screen (${elemRect.height - heightThreshold}px).`, 'Please consider adding a `max-height` to improve the user-experience.'].join('\n'));
|
|
220
220
|
}
|
|
221
221
|
} // Check if the horizontal axis needs shifting
|
|
222
222
|
|
|
@@ -352,10 +352,10 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
352
352
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
353
353
|
|
|
354
354
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
355
|
-
return new Error(['
|
|
355
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
356
356
|
}
|
|
357
357
|
} else {
|
|
358
|
-
return new Error(['
|
|
358
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
|
|
@@ -496,7 +496,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
|
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
498
|
* Props applied to the transition element.
|
|
499
|
-
* By default, the element is based on this [`Transition`](
|
|
499
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
500
500
|
* @default {}
|
|
501
501
|
*/
|
|
502
502
|
TransitionProps: PropTypes.object
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -86,12 +86,12 @@ export interface PopperProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
86
86
|
*
|
|
87
87
|
* Demos:
|
|
88
88
|
*
|
|
89
|
-
* - [Autocomplete](https://
|
|
90
|
-
* - [Menus](https://
|
|
91
|
-
* - [Popper](https://
|
|
89
|
+
* - [Autocomplete](https://mui.com/components/autocomplete/)
|
|
90
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
91
|
+
* - [Popper](https://mui.com/components/popper/)
|
|
92
92
|
*
|
|
93
93
|
* API:
|
|
94
94
|
*
|
|
95
|
-
* - [Popper API](https://
|
|
95
|
+
* - [Popper API](https://mui.com/api/popper/)
|
|
96
96
|
*/
|
|
97
97
|
export default function Popper(props: PopperProps): JSX.Element;
|
package/Popper/Popper.js
CHANGED
|
@@ -97,7 +97,7 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
97
97
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
98
98
|
|
|
99
99
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
100
|
-
console.warn(['
|
|
100
|
+
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -250,10 +250,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
250
250
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
251
251
|
|
|
252
252
|
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
253
|
-
return new Error(['
|
|
253
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
254
254
|
}
|
|
255
255
|
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
256
|
-
return new Error(['
|
|
256
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\n'));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://
|
|
2
|
+
<a href="https://mui.com/" rel="noopener" target="_blank"><img width="150" src="https://mui.com/static/logo.svg" alt="MUI logo"></a></p>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">
|
|
5
|
+
<h1 align="center">MUI</h1>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
|
-
Quickly build beautiful [React](https://reactjs.org/) apps.
|
|
9
|
+
Quickly build beautiful [React](https://reactjs.org/) apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with [Material Design](https://material.io/design/introduction/).
|
|
10
10
|
|
|
11
11
|
[](https://github.com/mui-org/material-ui/blob/master/LICENSE)
|
|
12
12
|
[](https://www.npmjs.com/package/@mui/material)
|
|
@@ -17,48 +17,37 @@ Quickly build beautiful [React](https://reactjs.org/) apps. Material-UI is a sim
|
|
|
17
17
|
[](https://twitter.com/MaterialUI)
|
|
18
18
|
[](https://github.com/mui-org/material-ui/issues/27062)
|
|
19
19
|
[](https://isitmaintained.com/project/mui-org/material-ui 'Average time to resolve an issue')
|
|
20
|
-
[](https://translate.
|
|
20
|
+
[](https://translate.mui.com/project/material-ui-docs)
|
|
21
21
|
[](https://opencollective.com/material-ui)
|
|
22
22
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
MUI is available as an [npm package](https://www.npmjs.com/package/@mui/material).
|
|
28
28
|
|
|
29
|
-
**[Stable channel
|
|
29
|
+
**[Stable channel v5](https://mui.com/)**
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
32
|
// with npm
|
|
33
|
-
npm install @mui/material
|
|
33
|
+
npm install @mui/material @emotion/react @emotion/styled
|
|
34
34
|
|
|
35
35
|
// with yarn
|
|
36
|
-
yarn add @mui/material
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
⚠️ All ongoing work has moved to v5. The development of v4 is limited to important bug fixes, security patches and easing the upgrade path to v5.
|
|
40
|
-
|
|
41
|
-
**[Alpha channel v5](https://next.material-ui.com/)**
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
// with npm
|
|
45
|
-
npm install @mui/material@next @emotion/react @emotion/styled
|
|
46
|
-
|
|
47
|
-
// with yarn
|
|
48
|
-
yarn add @mui/material@next @emotion/react @emotion/styled
|
|
36
|
+
yarn add @mui/material @emotion/react @emotion/styled
|
|
49
37
|
```
|
|
50
38
|
|
|
51
39
|
<details>
|
|
52
40
|
<summary>Older versions</summary>
|
|
53
41
|
|
|
54
|
-
- **[
|
|
55
|
-
- **[
|
|
42
|
+
- **[v4.x](https://v4.mui.com/)** ([Migration from v4 to v5](https://mui.com/guides/migration-v4/))
|
|
43
|
+
- **[v3.x](https://v3.mui.com/)** ([Migration from v3 to v4](https://mui.com/guides/migration-v3/))
|
|
44
|
+
- **[v0.x](https://v0.mui.com/)** ([Migration to v1](https://mui.com/guides/migration-v0x/))
|
|
56
45
|
|
|
57
46
|
</details>
|
|
58
47
|
|
|
59
48
|
Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
|
|
60
49
|
|
|
61
|
-
## Who sponsors
|
|
50
|
+
## Who sponsors MUI?
|
|
62
51
|
|
|
63
52
|
### Diamond 💎
|
|
64
53
|
|
|
@@ -67,14 +56,14 @@ Please note that `@next` will only point to pre-releases; to get the latest stab
|
|
|
67
56
|
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="doit-intl" href="https://www.doit-intl.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/8424863?s=256" alt="doit-intl" title="Management Platform for Google Cloud and AWS" loading="lazy" /></a>
|
|
68
57
|
</p>
|
|
69
58
|
|
|
70
|
-
Diamond Sponsors are those who have pledged \$1,500/month or more to
|
|
59
|
+
Diamond Sponsors are those who have pledged \$1,500/month or more to MUI.
|
|
71
60
|
|
|
72
61
|
### Gold 🏆
|
|
73
62
|
|
|
74
63
|
via [Patreon](https://www.patreon.com/oliviertassinari)
|
|
75
64
|
|
|
76
65
|
<p style="display: flex; justify-content: center;">
|
|
77
|
-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=192" alt="tidelift" title="Enterprise-ready open
|
|
66
|
+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=192" alt="tidelift" title="Enterprise-ready open-source software" loading="lazy" /></a>
|
|
78
67
|
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=192" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
|
|
79
68
|
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="movavi" href="https://spicefactory.co/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://avatars.githubusercontent.com/u/13365608?s=192" alt="Next gen digital product studio." loading="lazy" /></a>
|
|
80
69
|
</p>
|
|
@@ -90,14 +79,14 @@ via [OpenCollective](https://opencollective.com/material-ui)
|
|
|
90
79
|
Direct
|
|
91
80
|
|
|
92
81
|
<p style="display: flex; justify-content: center; flex-wrap: wrap;">
|
|
93
|
-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="elevator" href="https://www.elevatormag.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://
|
|
82
|
+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="elevator" href="https://www.elevatormag.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://mui.com/static/sponsors/elevator.png" alt="elevator" title="The dopest new hip hop, upcoming artists, music news, culture, and style" height="57" width="191" loading="lazy"></a>
|
|
94
83
|
</p>
|
|
95
84
|
|
|
96
|
-
Gold Sponsors are those who have pledged \$500/month or more to
|
|
85
|
+
Gold Sponsors are those who have pledged \$500/month or more to MUI.
|
|
97
86
|
|
|
98
87
|
### There is more!
|
|
99
88
|
|
|
100
|
-
See the full list of [our backers](https://
|
|
89
|
+
See the full list of [our backers](https://mui.com/discover-more/backers/).
|
|
101
90
|
|
|
102
91
|
## Usage
|
|
103
92
|
|
|
@@ -128,22 +117,22 @@ There is a StackOverflow tag called "material-ui" that you can use to tag your q
|
|
|
128
117
|
## Examples
|
|
129
118
|
|
|
130
119
|
Are you looking for an example project to get started?
|
|
131
|
-
[We host some](https://
|
|
120
|
+
[We host some](https://mui.com/getting-started/example-projects/).
|
|
132
121
|
|
|
133
122
|
## Documentation
|
|
134
123
|
|
|
135
|
-
Check out our [documentation website](https://
|
|
124
|
+
Check out our [documentation website](https://mui.com/).
|
|
136
125
|
|
|
137
126
|
## Premium Themes
|
|
138
127
|
|
|
139
|
-
You can find complete templates & themes in the [
|
|
128
|
+
You can find complete templates & themes in the [MUI store](https://material-ui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=readme-store).
|
|
140
129
|
|
|
141
130
|
## Contributing
|
|
142
131
|
|
|
143
|
-
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to
|
|
132
|
+
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to MUI.
|
|
144
133
|
|
|
145
134
|
Notice that contributions go far beyond pull requests and commits.
|
|
146
|
-
Although we love giving you the opportunity to put your stamp on
|
|
135
|
+
Although we love giving you the opportunity to put your stamp on MUI, we also are thrilled to receive a variety of [other contributions](https://mui.com/getting-started/faq/#material-ui-is-awesome-how-can-i-support-the-project).
|
|
147
136
|
|
|
148
137
|
## Changelog
|
|
149
138
|
|
|
@@ -151,7 +140,7 @@ If you have recently updated, please read the [changelog](https://github.com/mui
|
|
|
151
140
|
|
|
152
141
|
## Roadmap
|
|
153
142
|
|
|
154
|
-
The future plans and high priority features and enhancements can be found in the [roadmap](https://
|
|
143
|
+
The future plans and high priority features and enhancements can be found in the [roadmap](https://mui.com/discover-more/roadmap/) file.
|
|
155
144
|
|
|
156
145
|
## License
|
|
157
146
|
|
|
@@ -160,7 +149,7 @@ This project is licensed under the terms of the
|
|
|
160
149
|
|
|
161
150
|
## Sponsoring services
|
|
162
151
|
|
|
163
|
-
These great services sponsor
|
|
152
|
+
These great services sponsor MUI's core infrastructure:
|
|
164
153
|
|
|
165
154
|
[<img loading="lazy" alt="GitHub" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" height="25">](https://github.com/)
|
|
166
155
|
|