@mui/material 5.2.2 → 5.2.6
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 +1 -1
- package/Accordion/Accordion.js +2 -2
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionSummary/AccordionSummary.js +2 -2
- package/Alert/Alert.js +1 -3
- package/AlertTitle/AlertTitle.js +1 -1
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +1 -1
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +5 -0
- package/AvatarGroup/AvatarGroup.js +20 -5
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.d.ts +25 -0
- package/Badge/Badge.js +41 -11
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Button/Button.js +16 -35
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +2 -2
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/CHANGELOG.md +271 -0
- package/Card/Card.js +1 -1
- package/CardActionArea/CardActionArea.js +1 -1
- package/CardActions/CardActions.js +1 -1
- package/CardContent/CardContent.js +1 -1
- package/CardHeader/CardHeader.js +1 -1
- package/CardMedia/CardMedia.js +1 -1
- package/Checkbox/Checkbox.js +1 -1
- package/Chip/Chip.js +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Collapse/Collapse.d.ts +1 -1
- package/Collapse/Collapse.js +1 -1
- package/Container/Container.js +1 -1
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/Dialog.js +2 -2
- package/DialogActions/DialogActions.js +1 -1
- package/DialogContent/DialogContent.js +1 -1
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +1 -1
- package/Fab/Fab.js +1 -1
- package/Fade/Fade.d.ts +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormGroup/FormGroup.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/GlobalStyles/GlobalStyles.d.ts +2 -1
- package/Grid/Grid.js +98 -69
- package/Grow/Grow.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- package/IconButton/IconButton.js +1 -1
- package/ImageList/ImageList.js +1 -1
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/Input/Input.js +1 -1
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.d.ts +6 -0
- package/InputBase/InputBase.js +11 -3
- package/InputLabel/InputLabel.js +1 -1
- package/LinearProgress/LinearProgress.js +1 -1
- package/Link/Link.js +1 -1
- package/List/List.js +1 -1
- package/ListItem/ListItem.d.ts +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemButton/ListItemButton.d.ts +1 -1
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemText/ListItemText.js +1 -1
- package/ListSubheader/ListSubheader.js +1 -1
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +2 -2
- package/MenuItem/MenuItem.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -2
- package/MobileStepper/MobileStepper.js +1 -1
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/OutlinedInput/OutlinedInput.js +15 -2
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +2 -2
- package/README.md +19 -31
- package/Radio/Radio.js +1 -1
- package/Rating/Rating.js +1 -1
- package/Select/Select.js +1 -1
- package/Select/SelectInput.js +13 -1
- package/Skeleton/Skeleton.js +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbar/Snackbar.js +2 -2
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/Stack/Stack.js +1 -1
- package/Step/Step.js +1 -1
- package/StepButton/StepButton.js +1 -1
- package/StepConnector/StepConnector.js +1 -1
- package/StepContent/StepContent.d.ts +1 -1
- package/StepContent/StepContent.js +2 -2
- package/StepIcon/StepIcon.js +1 -1
- package/StepLabel/StepLabel.js +1 -1
- package/Stepper/Stepper.js +1 -1
- package/SvgIcon/SvgIcon.js +1 -1
- package/Switch/Switch.js +1 -1
- package/Tab/Tab.js +1 -1
- package/TabScrollButton/TabScrollButton.js +1 -1
- package/Table/Table.js +1 -1
- package/TableBody/TableBody.js +1 -1
- package/TableCell/TableCell.js +1 -1
- package/TableContainer/TableContainer.js +1 -1
- package/TableFooter/TableFooter.js +1 -1
- package/TableHead/TableHead.js +1 -1
- package/TablePagination/TablePagination.js +1 -1
- package/TableRow/TableRow.js +1 -1
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js +1 -1
- package/TextField/TextField.js +3 -10
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +2 -2
- package/Typography/Typography.js +1 -1
- package/Zoom/Zoom.d.ts +1 -1
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +2 -2
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +2 -2
- package/legacy/Alert/Alert.js +1 -3
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -1
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +19 -4
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +47 -12
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +23 -35
- package/legacy/ButtonBase/ButtonBase.js +2 -2
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/Card/Card.js +1 -1
- package/legacy/CardActionArea/CardActionArea.js +1 -1
- package/legacy/CardActions/CardActions.js +1 -1
- package/legacy/CardContent/CardContent.js +1 -1
- package/legacy/CardHeader/CardHeader.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/Collapse/Collapse.js +1 -1
- package/legacy/Container/Container.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -2
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +1 -1
- package/legacy/DialogContentText/DialogContentText.js +1 -1
- package/legacy/DialogTitle/DialogTitle.js +1 -1
- package/legacy/Divider/Divider.js +1 -1
- package/legacy/Drawer/Drawer.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormGroup/FormGroup.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +1 -1
- package/legacy/FormLabel/FormLabel.js +1 -1
- package/legacy/Grid/Grid.js +109 -81
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/ImageList/ImageList.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +1 -1
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +11 -3
- package/legacy/InputLabel/InputLabel.js +1 -1
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/Link/Link.js +1 -1
- package/legacy/List/List.js +1 -1
- package/legacy/ListItem/ListItem.js +1 -1
- package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
- package/legacy/ListItemButton/ListItemButton.js +2 -2
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/legacy/ListItemText/ListItemText.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +1 -1
- package/legacy/Menu/Menu.js +2 -2
- package/legacy/MenuItem/MenuItem.js +2 -2
- package/legacy/MobileStepper/MobileStepper.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/NativeSelect/NativeSelect.js +1 -1
- package/legacy/OutlinedInput/OutlinedInput.js +15 -2
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Select/SelectInput.js +13 -3
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +2 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +2 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/Stack/Stack.js +1 -1
- package/legacy/Step/Step.js +1 -1
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepConnector/StepConnector.js +1 -1
- package/legacy/StepContent/StepContent.js +2 -2
- package/legacy/StepIcon/StepIcon.js +1 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/Stepper/Stepper.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/Switch/Switch.js +1 -1
- package/legacy/Tab/Tab.js +1 -1
- package/legacy/TabScrollButton/TabScrollButton.js +1 -1
- package/legacy/Table/Table.js +1 -1
- package/legacy/TableBody/TableBody.js +1 -1
- package/legacy/TableCell/TableCell.js +1 -1
- package/legacy/TableContainer/TableContainer.js +1 -1
- package/legacy/TableFooter/TableFooter.js +1 -1
- package/legacy/TableHead/TableHead.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +1 -1
- package/legacy/TableSortLabel/TableSortLabel.js +1 -1
- package/legacy/Tabs/Tabs.js +1 -1
- package/legacy/TextField/TextField.js +3 -10
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +2 -2
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +264 -98
- package/locale/index.d.ts +2 -0
- package/locale/index.js +166 -6
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +2 -2
- package/modern/Alert/Alert.js +1 -3
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +20 -5
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +41 -11
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +16 -35
- package/modern/ButtonBase/ButtonBase.js +2 -2
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/Card/Card.js +1 -1
- package/modern/CardActionArea/CardActionArea.js +1 -1
- package/modern/CardActions/CardActions.js +1 -1
- package/modern/CardContent/CardContent.js +1 -1
- package/modern/CardHeader/CardHeader.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/Collapse/Collapse.js +1 -1
- package/modern/Container/Container.js +1 -1
- package/modern/Dialog/Dialog.js +2 -2
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +1 -1
- package/modern/DialogContentText/DialogContentText.js +1 -1
- package/modern/DialogTitle/DialogTitle.js +1 -1
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormGroup/FormGroup.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +1 -1
- package/modern/FormLabel/FormLabel.js +1 -1
- package/modern/Grid/Grid.js +98 -69
- package/modern/Icon/Icon.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/ImageList/ImageList.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +1 -1
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +11 -3
- package/modern/InputLabel/InputLabel.js +1 -1
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/Link/Link.js +1 -1
- package/modern/List/List.js +1 -1
- package/modern/ListItem/ListItem.js +1 -1
- package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
- package/modern/ListItemButton/ListItemButton.js +2 -2
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/modern/ListItemText/ListItemText.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +1 -1
- package/modern/Menu/Menu.js +2 -2
- package/modern/MenuItem/MenuItem.js +2 -2
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/NativeSelect/NativeSelect.js +1 -1
- package/modern/OutlinedInput/OutlinedInput.js +15 -2
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/Radio.js +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Select/SelectInput.js +13 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +2 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +2 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/Stack/Stack.js +1 -1
- package/modern/Step/Step.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/StepConnector/StepConnector.js +1 -1
- package/modern/StepContent/StepContent.js +2 -2
- package/modern/StepIcon/StepIcon.js +1 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/Stepper/Stepper.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/Switch/Switch.js +1 -1
- package/modern/Tab/Tab.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +1 -1
- package/modern/Table/Table.js +1 -1
- package/modern/TableBody/TableBody.js +1 -1
- package/modern/TableCell/TableCell.js +1 -1
- package/modern/TableContainer/TableContainer.js +1 -1
- package/modern/TableFooter/TableFooter.js +1 -1
- package/modern/TableHead/TableHead.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +1 -1
- package/modern/TableSortLabel/TableSortLabel.js +1 -1
- package/modern/Tabs/Tabs.js +1 -1
- package/modern/TextField/TextField.js +3 -8
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +2 -2
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +166 -6
- package/node/Accordion/Accordion.js +2 -2
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +1 -3
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +20 -5
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +41 -11
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Button/Button.js +17 -34
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +1 -1
- package/node/Card/Card.js +1 -1
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardHeader/CardHeader.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/Collapse/Collapse.js +1 -1
- package/node/Container/Container.js +1 -1
- package/node/Dialog/Dialog.js +2 -2
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/Grid/Grid.js +101 -68
- package/node/Icon/Icon.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +11 -3
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/List/List.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/Menu/Menu.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +16 -2
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Popover/Popover.js +2 -2
- package/node/Radio/Radio.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +13 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/Stack/Stack.js +1 -1
- package/node/Step/Step.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/TextField/TextField.js +2 -9
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Typography/Typography.js +1 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +169 -7
- package/package.json +5 -5
- package/styles/createTheme.d.ts +1 -1
- package/styles/cssUtils.d.ts +32 -0
- package/styles/index.d.ts +1 -0
- package/transitions/transition.d.ts +1 -2
- package/umd/material-ui.development.js +1086 -978
- package/umd/material-ui.production.min.js +21 -21
package/Accordion/Accordion.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface AccordionProps extends StandardProps<PaperProps, 'onChange'> {
|
|
|
55
55
|
>;
|
|
56
56
|
/**
|
|
57
57
|
* Props applied to the transition element.
|
|
58
|
-
* By default, the element is based on this [`Transition`](
|
|
58
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
59
59
|
*/
|
|
60
60
|
TransitionProps?: TransitionProps;
|
|
61
61
|
}
|
package/Accordion/Accordion.js
CHANGED
|
@@ -261,7 +261,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes
|
|
|
261
261
|
/**
|
|
262
262
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
263
263
|
*/
|
|
264
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
264
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* The component used for the transition.
|
|
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes
|
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Props applied to the transition element.
|
|
275
|
-
* By default, the element is based on this [`Transition`](
|
|
275
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
276
276
|
*/
|
|
277
277
|
TransitionProps: PropTypes.object
|
|
278
278
|
} : void 0;
|
|
@@ -97,6 +97,6 @@ process.env.NODE_ENV !== "production" ? AccordionActions.propTypes
|
|
|
97
97
|
/**
|
|
98
98
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
99
99
|
*/
|
|
100
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
100
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
101
101
|
} : void 0;
|
|
102
102
|
export default AccordionActions;
|
|
@@ -74,6 +74,6 @@ process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes
|
|
|
74
74
|
/**
|
|
75
75
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
76
76
|
*/
|
|
77
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
77
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
78
78
|
} : void 0;
|
|
79
79
|
export default AccordionDetails;
|
|
@@ -190,7 +190,7 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
|
|
|
190
190
|
* This prop can help identify which element has keyboard focus.
|
|
191
191
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
192
192
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
193
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
193
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
194
194
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
195
195
|
* if needed.
|
|
196
196
|
*/
|
|
@@ -204,6 +204,6 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
|
|
|
204
204
|
/**
|
|
205
205
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
206
206
|
*/
|
|
207
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
207
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
208
208
|
} : void 0;
|
|
209
209
|
export default AccordionSummary;
|
package/Alert/Alert.js
CHANGED
|
@@ -56,7 +56,6 @@ const AlertRoot = styled(Paper, {
|
|
|
56
56
|
const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
|
|
57
57
|
const color = ownerState.color || ownerState.severity;
|
|
58
58
|
return _extends({}, theme.typography.body2, {
|
|
59
|
-
borderRadius: theme.shape.borderRadius,
|
|
60
59
|
backgroundColor: 'transparent',
|
|
61
60
|
display: 'flex',
|
|
62
61
|
padding: '6px 16px'
|
|
@@ -151,7 +150,6 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
151
150
|
const classes = useUtilityClasses(ownerState);
|
|
152
151
|
return /*#__PURE__*/_jsxs(AlertRoot, _extends({
|
|
153
152
|
role: role,
|
|
154
|
-
square: true,
|
|
155
153
|
elevation: 0,
|
|
156
154
|
ownerState: ownerState,
|
|
157
155
|
className: clsx(classes.root, className),
|
|
@@ -269,7 +267,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
|
|
|
269
267
|
/**
|
|
270
268
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
271
269
|
*/
|
|
272
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
270
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
273
271
|
|
|
274
272
|
/**
|
|
275
273
|
* The variant to use.
|
package/AlertTitle/AlertTitle.js
CHANGED
|
@@ -80,6 +80,6 @@ process.env.NODE_ENV !== "production" ? AlertTitle.propTypes
|
|
|
80
80
|
/**
|
|
81
81
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
82
82
|
*/
|
|
83
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
83
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
84
84
|
} : void 0;
|
|
85
85
|
export default AlertTitle;
|
package/AppBar/AppBar.js
CHANGED
|
@@ -168,6 +168,6 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes
|
|
|
168
168
|
/**
|
|
169
169
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
170
170
|
*/
|
|
171
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
171
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
172
172
|
} : void 0;
|
|
173
173
|
export default AppBar;
|
|
@@ -1046,7 +1046,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1046
1046
|
/**
|
|
1047
1047
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1048
1048
|
*/
|
|
1049
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
1049
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
1052
1052
|
* The value of the autocomplete.
|
package/Avatar/Avatar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from '@mui/material/styles';
|
|
4
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
+
import { Theme } from '../styles';
|
|
5
5
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
6
6
|
import { AvatarClasses } from './avatarClasses';
|
|
7
7
|
|
package/Avatar/Avatar.js
CHANGED
|
@@ -255,7 +255,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes
|
|
|
255
255
|
/**
|
|
256
256
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
257
257
|
*/
|
|
258
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
258
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* The shape of the avatar.
|
|
@@ -29,6 +29,11 @@ export interface AvatarGroupProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
29
29
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30
30
|
*/
|
|
31
31
|
sx?: SxProps<Theme>;
|
|
32
|
+
/**
|
|
33
|
+
* The total number of avatars. Used for calculating the number of extra avatars.
|
|
34
|
+
* @default children.length
|
|
35
|
+
*/
|
|
36
|
+
total?: number;
|
|
32
37
|
/**
|
|
33
38
|
* The variant to use.
|
|
34
39
|
* @default 'circular'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children", "className", "max", "spacing", "variant"];
|
|
3
|
+
const _excluded = ["children", "className", "max", "spacing", "total", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { isFragment } from 'react-is';
|
|
@@ -73,11 +73,12 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
73
73
|
className,
|
|
74
74
|
max = 5,
|
|
75
75
|
spacing = 'medium',
|
|
76
|
+
total,
|
|
76
77
|
variant = 'circular'
|
|
77
78
|
} = props,
|
|
78
79
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
let clampedMax = max < 2 ? 2 : max;
|
|
81
82
|
|
|
82
83
|
const ownerState = _extends({}, props, {
|
|
83
84
|
max,
|
|
@@ -95,7 +96,15 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
95
96
|
|
|
96
97
|
return /*#__PURE__*/React.isValidElement(child);
|
|
97
98
|
});
|
|
98
|
-
const
|
|
99
|
+
const totalAvatars = total || children.length;
|
|
100
|
+
|
|
101
|
+
if (totalAvatars === clampedMax) {
|
|
102
|
+
clampedMax += 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
106
|
+
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
107
|
+
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
99
108
|
const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
|
|
100
109
|
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
|
101
110
|
ownerState: ownerState,
|
|
@@ -110,7 +119,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
110
119
|
},
|
|
111
120
|
variant: variant,
|
|
112
121
|
children: ["+", extraAvatars]
|
|
113
|
-
}) : null, children.slice(0,
|
|
122
|
+
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
114
123
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
115
124
|
className: clsx(child.props.className, classes.avatar),
|
|
116
125
|
style: _extends({
|
|
@@ -165,7 +174,13 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
|
|
|
165
174
|
/**
|
|
166
175
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
167
176
|
*/
|
|
168
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
177
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The total number of avatars. Used for calculating the number of extra avatars.
|
|
181
|
+
* @default children.length
|
|
182
|
+
*/
|
|
183
|
+
total: PropTypes.number,
|
|
169
184
|
|
|
170
185
|
/**
|
|
171
186
|
* The variant to use.
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -143,7 +143,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
|
143
143
|
/**
|
|
144
144
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
145
145
|
*/
|
|
146
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
146
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The duration for the transition, in milliseconds.
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -30,6 +30,26 @@ export type BadgeTypeMap<
|
|
|
30
30
|
colorSuccess?: string;
|
|
31
31
|
/** Styles applied to the badge `span` element if `color="warning"`. */
|
|
32
32
|
colorWarning?: string;
|
|
33
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
|
|
34
|
+
anchorOriginTopRightRectangular: string;
|
|
35
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
|
|
36
|
+
anchorOriginBottomRightRectangular: string;
|
|
37
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
|
|
38
|
+
anchorOriginTopLeftRectangular: string;
|
|
39
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
|
|
40
|
+
anchorOriginBottomLeftRectangular: string;
|
|
41
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
|
|
42
|
+
anchorOriginTopRightCircular: string;
|
|
43
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
|
|
44
|
+
anchorOriginBottomRightCircular: string;
|
|
45
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
|
|
46
|
+
anchorOriginTopLeftCircular: string;
|
|
47
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
|
|
48
|
+
anchorOriginBottomLeftCircular: string;
|
|
49
|
+
/** Class name applied to the badge `span` element if `overlap="rectangular"`. */
|
|
50
|
+
overlapRectangular: string;
|
|
51
|
+
/** Class name applied to the badge `span` element if `overlap="circular"`. */
|
|
52
|
+
overlapCircular: string;
|
|
33
53
|
};
|
|
34
54
|
/**
|
|
35
55
|
* The color of the component. It supports those theme colors that make sense for this component.
|
|
@@ -39,6 +59,11 @@ export type BadgeTypeMap<
|
|
|
39
59
|
'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning',
|
|
40
60
|
BadgePropsColorOverrides
|
|
41
61
|
>;
|
|
62
|
+
/**
|
|
63
|
+
* Wrapped shape the badge should overlap.
|
|
64
|
+
* @default 'rectangular'
|
|
65
|
+
*/
|
|
66
|
+
overlap?: 'rectangular' | 'circular';
|
|
42
67
|
/**
|
|
43
68
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
44
69
|
*/
|
package/Badge/Badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
3
|
+
const _excluded = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -11,17 +11,20 @@ import styled from '../styles/styled';
|
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
export const badgeClasses = _extends({}, badgeUnstyledClasses, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning'
|
|
14
|
+
export const badgeClasses = _extends({}, badgeUnstyledClasses, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
|
|
15
|
+
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
|
|
15
16
|
const RADIUS_STANDARD = 10;
|
|
16
17
|
const RADIUS_DOT = 4;
|
|
17
18
|
|
|
18
19
|
const extendUtilityClasses = ownerState => {
|
|
19
20
|
const {
|
|
20
21
|
color,
|
|
22
|
+
anchorOrigin,
|
|
23
|
+
overlap,
|
|
21
24
|
classes = {}
|
|
22
25
|
} = ownerState;
|
|
23
26
|
return _extends({}, classes, {
|
|
24
|
-
badge: clsx(classes.badge, color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
27
|
+
badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
25
28
|
});
|
|
26
29
|
};
|
|
27
30
|
|
|
@@ -149,6 +152,11 @@ const BadgeBadge = styled('span', {
|
|
|
149
152
|
duration: theme.transitions.duration.leavingScreen
|
|
150
153
|
})
|
|
151
154
|
}));
|
|
155
|
+
|
|
156
|
+
const shouldSpreadAdditionalProps = Slot => {
|
|
157
|
+
return !Slot || !isHostComponent(Slot);
|
|
158
|
+
};
|
|
159
|
+
|
|
152
160
|
const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
153
161
|
var _componentsProps$root, _componentsProps$badg;
|
|
154
162
|
|
|
@@ -158,8 +166,14 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
158
166
|
});
|
|
159
167
|
|
|
160
168
|
const {
|
|
169
|
+
anchorOrigin: anchorOriginProp = {
|
|
170
|
+
vertical: 'top',
|
|
171
|
+
horizontal: 'right'
|
|
172
|
+
},
|
|
173
|
+
component = 'span',
|
|
161
174
|
components = {},
|
|
162
175
|
componentsProps = {},
|
|
176
|
+
overlap: overlapProp = 'rectangular',
|
|
163
177
|
color: colorProp = 'default',
|
|
164
178
|
invisible: invisibleProp,
|
|
165
179
|
badgeContent: badgeContentProp,
|
|
@@ -169,7 +183,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
169
183
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
170
184
|
|
|
171
185
|
const prevProps = usePreviousProps({
|
|
172
|
-
|
|
186
|
+
anchorOrigin: anchorOriginProp,
|
|
187
|
+
color: colorProp,
|
|
188
|
+
overlap: overlapProp
|
|
173
189
|
});
|
|
174
190
|
let invisible = invisibleProp;
|
|
175
191
|
|
|
@@ -178,16 +194,21 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
178
194
|
}
|
|
179
195
|
|
|
180
196
|
const {
|
|
181
|
-
color = colorProp
|
|
197
|
+
color = colorProp,
|
|
198
|
+
overlap = overlapProp,
|
|
199
|
+
anchorOrigin = anchorOriginProp
|
|
182
200
|
} = invisible ? prevProps : props;
|
|
183
201
|
|
|
184
202
|
const ownerState = _extends({}, props, {
|
|
203
|
+
anchorOrigin,
|
|
185
204
|
invisible,
|
|
186
|
-
color
|
|
205
|
+
color,
|
|
206
|
+
overlap
|
|
187
207
|
});
|
|
188
208
|
|
|
189
209
|
const classes = extendUtilityClasses(ownerState);
|
|
190
210
|
return /*#__PURE__*/_jsx(BadgeUnstyled, _extends({
|
|
211
|
+
anchorOrigin: anchorOrigin,
|
|
191
212
|
invisible: invisibleProp,
|
|
192
213
|
badgeContent: badgeContentProp,
|
|
193
214
|
showZero: showZero,
|
|
@@ -198,14 +219,17 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
198
219
|
Badge: BadgeBadge
|
|
199
220
|
}, components),
|
|
200
221
|
componentsProps: {
|
|
201
|
-
root: _extends({}, componentsProps.root, (
|
|
222
|
+
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
|
|
223
|
+
as: component,
|
|
202
224
|
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
|
|
203
|
-
color
|
|
225
|
+
color,
|
|
226
|
+
overlap
|
|
204
227
|
})
|
|
205
228
|
}),
|
|
206
|
-
badge: _extends({}, componentsProps.badge, (
|
|
229
|
+
badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
|
|
207
230
|
ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
|
|
208
|
-
color
|
|
231
|
+
color,
|
|
232
|
+
overlap
|
|
209
233
|
})
|
|
210
234
|
})
|
|
211
235
|
},
|
|
@@ -256,6 +280,12 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
256
280
|
/* @typescript-to-proptypes-ignore */
|
|
257
281
|
.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
258
282
|
|
|
283
|
+
/**
|
|
284
|
+
* The component used for the root node.
|
|
285
|
+
* Either a string to use a HTML element or a component.
|
|
286
|
+
*/
|
|
287
|
+
component: PropTypes.elementType,
|
|
288
|
+
|
|
259
289
|
/**
|
|
260
290
|
* The components used for each slot inside the Badge.
|
|
261
291
|
* Either a string to use a HTML element or a component.
|
|
@@ -298,7 +328,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
298
328
|
/**
|
|
299
329
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
300
330
|
*/
|
|
301
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
331
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
302
332
|
|
|
303
333
|
/**
|
|
304
334
|
* The variant to use.
|
|
@@ -129,7 +129,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes
|
|
|
129
129
|
/**
|
|
130
130
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
131
131
|
*/
|
|
132
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
132
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* The value of the currently selected `BottomNavigationAction`.
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes
|
|
|
176
176
|
/**
|
|
177
177
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
178
178
|
*/
|
|
179
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
179
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../styles';
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { BreadcrumbsClasses } from './breadcrumbsClasses';
|
|
6
6
|
|
|
@@ -232,6 +232,6 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes
|
|
|
232
232
|
/**
|
|
233
233
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
234
234
|
*/
|
|
235
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
235
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
236
236
|
} : void 0;
|
|
237
237
|
export default Breadcrumbs;
|
package/Button/Button.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children", "
|
|
3
|
+
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
+
import { internal_resolveProps as resolveProps } from '@mui/utils';
|
|
7
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
8
9
|
import { alpha } from '@mui/system';
|
|
9
10
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
@@ -214,51 +215,32 @@ const ButtonEndIcon = styled('span', {
|
|
|
214
215
|
marginRight: -2
|
|
215
216
|
}, commonIconStyles(ownerState)));
|
|
216
217
|
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
218
|
+
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
219
|
+
const contextProps = React.useContext(ButtonGroupContext);
|
|
220
|
+
const resolvedProps = resolveProps(contextProps, inProps);
|
|
217
221
|
const props = useThemeProps({
|
|
218
|
-
props:
|
|
222
|
+
props: resolvedProps,
|
|
219
223
|
name: 'MuiButton'
|
|
220
224
|
});
|
|
221
|
-
const {
|
|
222
|
-
className: classNameContext,
|
|
223
|
-
color: colorContext,
|
|
224
|
-
disabled: disabledContext,
|
|
225
|
-
disableElevation: disableElevationContext,
|
|
226
|
-
disableFocusRipple: disableFocusRippleContext,
|
|
227
|
-
disableRipple: disableRippleContext,
|
|
228
|
-
fullWidth: fullWidthContext,
|
|
229
|
-
size: sizeContext,
|
|
230
|
-
variant: variantContext
|
|
231
|
-
} = React.useContext(ButtonGroupContext);
|
|
232
225
|
|
|
233
226
|
const {
|
|
234
227
|
children,
|
|
235
|
-
|
|
236
|
-
color: colorProp,
|
|
228
|
+
color = 'primary',
|
|
237
229
|
component = 'button',
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
230
|
+
className,
|
|
231
|
+
disabled = false,
|
|
232
|
+
disableElevation = false,
|
|
233
|
+
disableFocusRipple = false,
|
|
242
234
|
endIcon: endIconProp,
|
|
243
235
|
focusVisibleClassName,
|
|
244
|
-
fullWidth
|
|
245
|
-
size
|
|
236
|
+
fullWidth = false,
|
|
237
|
+
size = 'medium',
|
|
246
238
|
startIcon: startIconProp,
|
|
247
239
|
type,
|
|
248
|
-
variant
|
|
240
|
+
variant = 'text'
|
|
249
241
|
} = props,
|
|
250
242
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
251
243
|
|
|
252
|
-
const color = colorProp || colorContext || 'primary'; // TODO v6: Use nullish coalescing (??) instead of OR operator for these boolean props so that these boolean props for Button with ButtonGroup context take priority. See conversation from https://github.com/mui-org/material-ui/pull/28645#discussion_r738380902.
|
|
253
|
-
|
|
254
|
-
const disabled = disabledProp || disabledContext || false;
|
|
255
|
-
const disableElevation = disableElevationProp || disableElevationContext || false;
|
|
256
|
-
const disableFocusRipple = disableFocusRippleProp || disableFocusRippleContext || false;
|
|
257
|
-
const fullWidth = fullWidthProp || fullWidthContext || false;
|
|
258
|
-
const size = sizeProp || sizeContext || 'medium';
|
|
259
|
-
const variant = variantProp || variantContext || 'text';
|
|
260
|
-
const disableRipple = disableRippleProp || disableRippleContext || false;
|
|
261
|
-
|
|
262
244
|
const ownerState = _extends({}, props, {
|
|
263
245
|
color,
|
|
264
246
|
component,
|
|
@@ -287,10 +269,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
287
269
|
|
|
288
270
|
return /*#__PURE__*/_jsxs(ButtonRoot, _extends({
|
|
289
271
|
ownerState: ownerState,
|
|
290
|
-
className: clsx(className,
|
|
272
|
+
className: clsx(className, contextProps.className),
|
|
291
273
|
component: component,
|
|
292
274
|
disabled: disabled,
|
|
293
|
-
disableRipple: disableRipple,
|
|
294
275
|
focusRipple: !disableFocusRipple,
|
|
295
276
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
296
277
|
ref: ref,
|
|
@@ -403,7 +384,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes
|
|
|
403
384
|
/**
|
|
404
385
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
405
386
|
*/
|
|
406
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
387
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
407
388
|
|
|
408
389
|
/**
|
|
409
390
|
* @ignore
|
|
@@ -53,7 +53,7 @@ export interface ButtonBaseTypeMap<P = {}, D extends React.ElementType = 'button
|
|
|
53
53
|
* This prop can help identify which element has keyboard focus.
|
|
54
54
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
55
55
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
56
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
56
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
57
57
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
58
58
|
* if needed.
|
|
59
59
|
*/
|
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -421,7 +421,7 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
|
|
|
421
421
|
* This prop can help identify which element has keyboard focus.
|
|
422
422
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
423
423
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
424
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
424
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
425
425
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
426
426
|
* if needed.
|
|
427
427
|
*/
|
|
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
|
|
|
514
514
|
/**
|
|
515
515
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
516
516
|
*/
|
|
517
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
517
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
518
518
|
|
|
519
519
|
/**
|
|
520
520
|
* @default 0
|
|
@@ -266,7 +266,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes
|
|
|
266
266
|
/**
|
|
267
267
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
268
268
|
*/
|
|
269
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
269
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* The variant to use.
|