@mui/material 5.0.3 → 5.1.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.js +1 -1
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.js +1 -1
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +18 -11
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.js +3 -3
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.js +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/Box/Box.d.ts +18 -2
- package/Box/Box.js +4 -1
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Button/Button.js +40 -9
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonGroup/ButtonGroup.js +23 -27
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -0
- package/ButtonGroup/ButtonGroupContext.js +12 -0
- package/CHANGELOG.md +274 -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 +2 -2
- package/Checkbox/Checkbox.js +1 -1
- package/Chip/Chip.js +6 -5
- package/CircularProgress/CircularProgress.js +1 -1
- package/ClickAwayListener/index.d.ts +2 -2
- package/ClickAwayListener/index.js +2 -2
- package/Collapse/Collapse.js +1 -1
- package/Container/Container.js +1 -1
- package/CssBaseline/CssBaseline.d.ts +7 -0
- package/CssBaseline/CssBaseline.js +20 -12
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/Dialog.js +1 -1
- package/DialogActions/DialogActions.js +1 -1
- package/DialogContent/DialogContent.js +3 -2
- 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/Fade/Fade.js +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +2 -2
- package/FormControlLabel/FormControlLabel.js +3 -3
- package/FormGroup/FormGroup.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/Grid/Grid.d.ts +31 -11
- package/Grid/Grid.js +61 -26
- package/Grow/Grow.d.ts +1 -1
- package/Grow/Grow.js +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.js +6 -12
- 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 +1 -1
- 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.js +1 -1
- package/MenuItem/MenuItem.js +5 -2
- package/MobileStepper/MobileStepper.js +1 -1
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/OutlinedInput/NotchedOutline.js +6 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +15 -0
- package/PaginationItem/PaginationItem.js +35 -14
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +1 -1
- package/Popper/index.d.ts +2 -2
- package/Popper/index.js +1 -1
- package/Radio/Radio.js +1 -1
- package/RadioGroup/RadioGroupContext.d.ts +11 -0
- package/RadioGroup/RadioGroupContext.js +2 -2
- package/RadioGroup/useRadioGroup.d.ts +4 -5
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/Select/Select.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slide/Slide.js +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +2 -2
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/Stack/Stack.js +5 -2
- package/Step/Step.js +1 -1
- package/StepButton/StepButton.js +1 -1
- package/StepConnector/StepConnector.js +1 -1
- package/StepContent/StepContent.js +1 -1
- 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.d.ts +6 -0
- package/Tab/Tab.js +34 -10
- package/Tab/tabClasses.d.ts +2 -0
- package/Tab/tabClasses.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.js +1 -1
- package/TextField/TextField.js +1 -1
- package/TextareaAutosize/index.d.ts +2 -2
- package/TextareaAutosize/index.js +1 -1
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Tooltip/Tooltip.d.ts +5 -3
- package/Tooltip/Tooltip.js +7 -5
- package/Typography/Typography.js +1 -1
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +1 -1
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +1 -1
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +35 -32
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +3 -3
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/legacy/Box/Box.js +4 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +40 -16
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +25 -27
- package/legacy/ButtonGroup/ButtonGroupContext.js +12 -0
- 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 +2 -2
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/Chip/Chip.js +6 -5
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ClickAwayListener/index.js +2 -2
- package/legacy/Collapse/Collapse.js +1 -1
- package/legacy/Container/Container.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +38 -20
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +6 -6
- 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/Fade/Fade.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -3
- 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 +62 -27
- package/legacy/Grow/Grow.js +1 -1
- 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 +6 -12
- 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 +1 -1
- 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 +1 -1
- package/legacy/MenuItem/MenuItem.js +5 -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/NotchedOutline.js +6 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +36 -14
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +1 -1
- package/legacy/Popper/index.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/RadioGroup/RadioGroupContext.js +2 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +13 -4
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slide/Slide.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 +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/Stack/Stack.js +5 -2
- 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 +1 -1
- 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 +35 -10
- package/legacy/Tab/tabClasses.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 +1 -1
- package/legacy/TextareaAutosize/index.js +1 -1
- 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 +7 -5
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/Zoom/Zoom.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/createPalette.js +1 -1
- package/legacy/styles/index.js +1 -1
- package/legacy/utils/index.js +2 -1
- package/modern/Accordion/Accordion.js +1 -1
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +18 -11
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +3 -3
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/modern/Box/Box.js +4 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +40 -9
- package/modern/ButtonBase/ButtonBase.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +23 -27
- package/modern/ButtonGroup/ButtonGroupContext.js +12 -0
- 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 +2 -2
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Chip/Chip.js +6 -5
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ClickAwayListener/index.js +2 -2
- package/modern/Collapse/Collapse.js +1 -1
- package/modern/Container/Container.js +1 -1
- package/modern/CssBaseline/CssBaseline.js +20 -12
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +3 -2
- 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/Fade/Fade.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -3
- 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 +61 -26
- package/modern/Grow/Grow.js +1 -1
- 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 +6 -12
- 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 +1 -1
- 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 +1 -1
- package/modern/MenuItem/MenuItem.js +5 -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/NotchedOutline.js +6 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +35 -14
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +1 -1
- package/modern/Popper/index.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/RadioGroup/RadioGroupContext.js +2 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slide/Slide.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 +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/Stack/Stack.js +5 -2
- 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 +1 -1
- 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 +34 -10
- package/modern/Tab/tabClasses.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 +1 -1
- package/modern/TextareaAutosize/index.js +1 -1
- 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 +6 -4
- package/modern/Typography/Typography.js +1 -1
- package/modern/Zoom/Zoom.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createPalette.js +1 -1
- package/modern/styles/index.js +1 -1
- package/modern/utils/index.js +2 -1
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/accordionClasses.js +1 -1
- package/node/Accordion/index.js +4 -4
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/accordionActionsClasses.js +1 -1
- package/node/AccordionActions/index.js +4 -4
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/accordionDetailsClasses.js +1 -1
- package/node/AccordionDetails/index.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/node/AccordionSummary/index.js +4 -4
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/alertClasses.js +1 -1
- package/node/Alert/index.js +4 -4
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/alertTitleClasses.js +1 -1
- package/node/AlertTitle/index.js +4 -4
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AppBar/index.js +4 -4
- package/node/Autocomplete/Autocomplete.js +22 -11
- package/node/Autocomplete/autocompleteClasses.js +1 -1
- package/node/Autocomplete/index.js +4 -4
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/avatarClasses.js +1 -1
- package/node/Avatar/index.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +3 -3
- package/node/AvatarGroup/avatarGroupClasses.js +1 -1
- package/node/AvatarGroup/index.js +4 -4
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigation/bottomNavigationClasses.js +1 -1
- package/node/BottomNavigation/index.js +4 -4
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -1
- package/node/BottomNavigationAction/index.js +4 -4
- package/node/Box/Box.js +5 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Breadcrumbs/breadcrumbsClasses.js +1 -1
- package/node/Breadcrumbs/index.js +4 -4
- package/node/Button/Button.js +40 -9
- package/node/Button/buttonClasses.js +1 -1
- package/node/Button/index.js +4 -4
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/buttonBaseClasses.js +1 -1
- package/node/ButtonBase/index.js +4 -4
- package/node/ButtonBase/touchRippleClasses.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +24 -28
- package/node/ButtonGroup/ButtonGroupContext.js +24 -0
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +4 -4
- package/node/Card/Card.js +1 -1
- package/node/Card/cardClasses.js +1 -1
- package/node/Card/index.js +4 -4
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActionArea/cardActionAreaClasses.js +1 -1
- package/node/CardActionArea/index.js +4 -4
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardActions/cardActionsClasses.js +1 -1
- package/node/CardActions/index.js +4 -4
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardContent/cardContentClasses.js +1 -1
- package/node/CardContent/index.js +4 -4
- package/node/CardHeader/CardHeader.js +1 -1
- package/node/CardHeader/cardHeaderClasses.js +1 -1
- package/node/CardHeader/index.js +4 -4
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/CardMedia/cardMediaClasses.js +1 -1
- package/node/CardMedia/index.js +4 -4
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/checkboxClasses.js +1 -1
- package/node/Checkbox/index.js +4 -4
- package/node/Chip/Chip.js +6 -5
- package/node/Chip/chipClasses.js +1 -1
- package/node/Chip/index.js +4 -4
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/circularProgressClasses.js +1 -1
- package/node/CircularProgress/index.js +4 -4
- package/node/ClickAwayListener/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/collapseClasses.js +1 -1
- package/node/Collapse/index.js +4 -4
- package/node/Container/Container.js +1 -1
- package/node/Container/containerClasses.js +1 -1
- package/node/Container/index.js +4 -4
- package/node/CssBaseline/CssBaseline.js +23 -13
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/dialogClasses.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/dialogActionsClasses.js +1 -1
- package/node/DialogContent/DialogContent.js +4 -2
- package/node/DialogContent/dialogContentClasses.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/dialogContentTextClasses.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/dialogTitleClasses.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Divider/dividerClasses.js +1 -1
- package/node/Drawer/Drawer.js +3 -3
- package/node/Drawer/drawerClasses.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/fabClasses.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/filledInputClasses.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControl/formControlClasses.js +1 -1
- package/node/FormControl/index.js +4 -4
- package/node/FormControlLabel/FormControlLabel.js +3 -3
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/formHelperTextClasses.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/formLabelClasses.js +1 -1
- package/node/Grid/Grid.js +63 -26
- package/node/Grid/gridClasses.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/hiddenCssClasses.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/iconClasses.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/iconButtonClasses.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/imageListClasses.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/imageListItemClasses.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/inputClasses.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/inputAdornmentClasses.js +1 -1
- package/node/InputBase/InputBase.js +7 -15
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/InputBase/utils.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/inputLabelClasses.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/linearProgressClasses.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/linkClasses.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/listClasses.js +1 -1
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItem/listItemClasses.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/listItemAvatarClasses.js +1 -1
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemButton/listItemButtonClasses.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/listItemIconClasses.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/listItemTextClasses.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/listSubheaderClasses.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/menuClasses.js +1 -1
- package/node/MenuItem/MenuItem.js +6 -3
- package/node/MenuItem/menuItemClasses.js +1 -1
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/MobileStepper/mobileStepperClasses.js +1 -1
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/nativeSelectClasses.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +6 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/outlinedInputClasses.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/paginationClasses.js +1 -1
- package/node/PaginationItem/PaginationItem.js +35 -14
- package/node/PaginationItem/paginationItemClasses.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/paperClasses.js +1 -1
- package/node/Popover/Popover.js +3 -3
- package/node/Popover/popoverClasses.js +1 -1
- package/node/Popper/index.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/radioClasses.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/Rating/Rating.js +1 -2
- package/node/Rating/ratingClasses.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/selectClasses.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +3 -3
- package/node/Snackbar/snackbarClasses.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/snackbarContentClasses.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/speedDialClasses.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/speedDialActionClasses.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/speedDialIconClasses.js +1 -1
- package/node/Stack/Stack.js +6 -3
- package/node/Step/Step.js +1 -1
- package/node/Step/stepClasses.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepButton/stepButtonClasses.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepConnector/stepConnectorClasses.js +1 -1
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepContent/stepContentClasses.js +1 -1
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepIcon/stepIconClasses.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/StepLabel/stepLabelClasses.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/svgIconClasses.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/switchClasses.js +1 -1
- package/node/Tab/Tab.js +34 -10
- package/node/Tab/tabClasses.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/tabScrollButtonClasses.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/tableClasses.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/tableBodyClasses.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/tableCellClasses.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/tableContainerClasses.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/tableFooterClasses.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/tableHeadClasses.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/tablePaginationClasses.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/tableRowClasses.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/tabsClasses.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/textFieldClasses.js +1 -1
- package/node/TextareaAutosize/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/toggleButtonClasses.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/toolbarClasses.js +1 -1
- package/node/Tooltip/Tooltip.js +8 -6
- package/node/Tooltip/tooltipClasses.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/typographyClasses.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/colors/index.js +40 -40
- package/node/index.js +32 -32
- package/node/internal/switchBaseClasses.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createPalette.js +3 -2
- package/node/styles/createTransitions.js +1 -1
- package/node/styles/cssUtils.js +4 -4
- package/node/styles/index.js +66 -54
- package/node/styles/styled.js +1 -1
- package/node/useAutocomplete/index.js +4 -4
- package/node/utils/index.js +9 -1
- package/package.json +9 -9
- package/styles/components.d.ts +0 -3
- package/styles/createPalette.js +1 -1
- package/styles/index.d.ts +4 -0
- package/styles/index.js +1 -1
- package/umd/material-ui.development.js +9065 -8295
- package/umd/material-ui.production.min.js +21 -21
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -1
- package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
- package/ClickAwayListener/ClickAwayListener.js +0 -196
- package/Popper/Popper.d.ts +0 -97
- package/Popper/Popper.js +0 -354
- package/TextareaAutosize/TextareaAutosize.d.ts +0 -27
- package/TextareaAutosize/TextareaAutosize.js +0 -224
- package/legacy/ClickAwayListener/ClickAwayListener.js +0 -199
- package/legacy/Popper/Popper.js +0 -359
- package/legacy/TextareaAutosize/TextareaAutosize.js +0 -226
- package/modern/ClickAwayListener/ClickAwayListener.js +0 -196
- package/modern/Popper/Popper.js +0 -354
- package/modern/TextareaAutosize/TextareaAutosize.js +0 -224
- package/node/ClickAwayListener/ClickAwayListener.js +0 -216
- package/node/Popper/Popper.js +0 -378
- package/node/TextareaAutosize/TextareaAutosize.js +0 -245
|
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes
|
|
|
314
314
|
/**
|
|
315
315
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
316
316
|
*/
|
|
317
|
-
sx: PropTypes.object,
|
|
317
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
320
|
* The variant to use.
|
|
@@ -43,9 +43,9 @@ export interface FormControlLabelProps
|
|
|
43
43
|
*/
|
|
44
44
|
inputRef?: React.Ref<any>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* A text or an element to be used in an enclosing label element.
|
|
47
47
|
*/
|
|
48
|
-
label: React.
|
|
48
|
+
label: string | number | React.ReactElement;
|
|
49
49
|
/**
|
|
50
50
|
* The position of the label.
|
|
51
51
|
* @default 'end'
|
|
@@ -185,9 +185,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
|
|
|
185
185
|
inputRef: refType,
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* A text or an element to be used in an enclosing label element.
|
|
189
189
|
*/
|
|
190
|
-
label: PropTypes.
|
|
190
|
+
label: PropTypes.oneOfType([PropTypes.element, PropTypes.number, PropTypes.string]).isRequired,
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* The position of the label.
|
|
@@ -211,7 +211,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
|
|
|
211
211
|
/**
|
|
212
212
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
213
213
|
*/
|
|
214
|
-
sx: PropTypes.object,
|
|
214
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* The value of the component.
|
package/FormGroup/FormGroup.js
CHANGED
|
@@ -100,6 +100,6 @@ process.env.NODE_ENV !== "production" ? FormGroup.propTypes
|
|
|
100
100
|
/**
|
|
101
101
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
102
102
|
*/
|
|
103
|
-
sx: PropTypes.object
|
|
103
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
104
104
|
} : void 0;
|
|
105
105
|
export default FormGroup;
|
|
@@ -178,7 +178,7 @@ process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
|
|
|
178
178
|
/**
|
|
179
179
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
180
180
|
*/
|
|
181
|
-
sx: PropTypes.object,
|
|
181
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* The variant to use.
|
package/FormLabel/FormLabel.js
CHANGED
|
@@ -177,6 +177,6 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes
|
|
|
177
177
|
/**
|
|
178
178
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
179
179
|
*/
|
|
180
|
-
sx: PropTypes.object
|
|
180
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
181
181
|
} : void 0;
|
|
182
182
|
export default FormLabel;
|
package/Grid/Grid.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type GridSpacing = number | string;
|
|
|
10
10
|
|
|
11
11
|
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
12
12
|
|
|
13
|
-
export type GridSize = 'auto' |
|
|
13
|
+
export type GridSize = 'auto' | number;
|
|
14
14
|
|
|
15
15
|
export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
16
16
|
props: P &
|
|
@@ -52,14 +52,22 @@ export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
52
52
|
*/
|
|
53
53
|
item?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* It'
|
|
55
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
56
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
57
|
+
* If 'auto', the grid item's width matches its content.
|
|
58
|
+
* If false, the prop is ignored.
|
|
59
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
60
|
+
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
57
61
|
* @default false
|
|
58
62
|
*/
|
|
59
63
|
lg?: boolean | GridSize;
|
|
60
64
|
/**
|
|
61
|
-
*
|
|
62
|
-
* It'
|
|
65
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
66
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
67
|
+
* If 'auto', the grid item's width matches its content.
|
|
68
|
+
* If false, the prop is ignored.
|
|
69
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
70
|
+
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
63
71
|
* @default false
|
|
64
72
|
*/
|
|
65
73
|
md?: boolean | GridSize;
|
|
@@ -69,8 +77,12 @@ export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
69
77
|
*/
|
|
70
78
|
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
71
79
|
/**
|
|
72
|
-
*
|
|
73
|
-
* It'
|
|
80
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
81
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
82
|
+
* If 'auto', the grid item's width matches its content.
|
|
83
|
+
* If false, the prop is ignored.
|
|
84
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
85
|
+
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
74
86
|
* @default false
|
|
75
87
|
*/
|
|
76
88
|
sm?: boolean | GridSize;
|
|
@@ -91,14 +103,22 @@ export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
91
103
|
*/
|
|
92
104
|
wrap?: GridWrap;
|
|
93
105
|
/**
|
|
94
|
-
*
|
|
95
|
-
* It'
|
|
106
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
107
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
108
|
+
* If 'auto', the grid item's width matches its content.
|
|
109
|
+
* If false, the prop is ignored.
|
|
110
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
111
|
+
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
96
112
|
* @default false
|
|
97
113
|
*/
|
|
98
114
|
xl?: boolean | GridSize;
|
|
99
115
|
/**
|
|
100
|
-
*
|
|
101
|
-
* It'
|
|
116
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
117
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
118
|
+
* If 'auto', the grid item's width matches its content.
|
|
119
|
+
* If false, the prop is ignored.
|
|
120
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
121
|
+
* The value is applied for all the screen sizes with the lowest priority.
|
|
102
122
|
* @default false
|
|
103
123
|
*/
|
|
104
124
|
xs?: boolean | GridSize;
|
package/Grid/Grid.js
CHANGED
|
@@ -55,10 +55,11 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
|
|
|
55
55
|
} else {
|
|
56
56
|
const columnsBreakpointValues = resolveBreakpointValues({
|
|
57
57
|
values: ownerState.columns,
|
|
58
|
-
|
|
59
|
-
});
|
|
58
|
+
breakpoints: theme.breakpoints.values
|
|
59
|
+
});
|
|
60
|
+
const columnValue = typeof columnsBreakpointValues === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues; // Keep 7 significant numbers.
|
|
60
61
|
|
|
61
|
-
const width = `${Math.round(size /
|
|
62
|
+
const width = `${Math.round(size / columnValue * 10e7) / 10e5}%`;
|
|
62
63
|
let more = {};
|
|
63
64
|
|
|
64
65
|
if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
|
|
@@ -90,13 +91,17 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
function generateDirection({
|
|
94
|
+
export function generateDirection({
|
|
94
95
|
theme,
|
|
95
96
|
ownerState
|
|
96
97
|
}) {
|
|
98
|
+
const directionValues = resolveBreakpointValues({
|
|
99
|
+
values: ownerState.direction,
|
|
100
|
+
breakpoints: theme.breakpoints.values
|
|
101
|
+
});
|
|
97
102
|
return handleBreakpoints({
|
|
98
103
|
theme
|
|
99
|
-
},
|
|
104
|
+
}, directionValues, propValue => {
|
|
100
105
|
const output = {
|
|
101
106
|
flexDirection: propValue
|
|
102
107
|
};
|
|
@@ -110,7 +115,6 @@ function generateDirection({
|
|
|
110
115
|
return output;
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
|
-
|
|
114
118
|
export function generateRowGap({
|
|
115
119
|
theme,
|
|
116
120
|
ownerState
|
|
@@ -122,9 +126,13 @@ export function generateRowGap({
|
|
|
122
126
|
let styles = {};
|
|
123
127
|
|
|
124
128
|
if (container && rowSpacing !== 0) {
|
|
129
|
+
const rowSpacingValues = resolveBreakpointValues({
|
|
130
|
+
values: rowSpacing,
|
|
131
|
+
breakpoints: theme.breakpoints.values
|
|
132
|
+
});
|
|
125
133
|
styles = handleBreakpoints({
|
|
126
134
|
theme
|
|
127
|
-
},
|
|
135
|
+
}, rowSpacingValues, propValue => {
|
|
128
136
|
const themeSpacing = theme.spacing(propValue);
|
|
129
137
|
|
|
130
138
|
if (themeSpacing !== '0px') {
|
|
@@ -153,9 +161,13 @@ export function generateColumnGap({
|
|
|
153
161
|
let styles = {};
|
|
154
162
|
|
|
155
163
|
if (container && columnSpacing !== 0) {
|
|
164
|
+
const columnSpacingValues = resolveBreakpointValues({
|
|
165
|
+
values: columnSpacing,
|
|
166
|
+
breakpoints: theme.breakpoints.values
|
|
167
|
+
});
|
|
156
168
|
styles = handleBreakpoints({
|
|
157
169
|
theme
|
|
158
|
-
},
|
|
170
|
+
}, columnSpacingValues, propValue => {
|
|
159
171
|
const themeSpacing = theme.spacing(propValue);
|
|
160
172
|
|
|
161
173
|
if (themeSpacing !== '0px') {
|
|
@@ -255,7 +267,7 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
255
267
|
|
|
256
268
|
const {
|
|
257
269
|
className,
|
|
258
|
-
columns: columnsProp
|
|
270
|
+
columns: columnsProp,
|
|
259
271
|
columnSpacing: columnSpacingProp,
|
|
260
272
|
component = 'div',
|
|
261
273
|
container = false,
|
|
@@ -275,7 +287,10 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
275
287
|
|
|
276
288
|
const rowSpacing = rowSpacingProp || spacing;
|
|
277
289
|
const columnSpacing = columnSpacingProp || spacing;
|
|
278
|
-
const
|
|
290
|
+
const columnsContext = React.useContext(GridContext); // setting prop before context to accomodate nesting
|
|
291
|
+
// colums set with default breakpoint unit of 12
|
|
292
|
+
|
|
293
|
+
const columns = columnsProp || columnsContext || 12;
|
|
279
294
|
|
|
280
295
|
const ownerState = _extends({}, props, {
|
|
281
296
|
columns,
|
|
@@ -370,18 +385,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
370
385
|
item: PropTypes.bool,
|
|
371
386
|
|
|
372
387
|
/**
|
|
373
|
-
*
|
|
374
|
-
* It'
|
|
388
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
389
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
390
|
+
* If 'auto', the grid item's width matches its content.
|
|
391
|
+
* If false, the prop is ignored.
|
|
392
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
393
|
+
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
375
394
|
* @default false
|
|
376
395
|
*/
|
|
377
|
-
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
396
|
+
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
378
397
|
|
|
379
398
|
/**
|
|
380
|
-
*
|
|
381
|
-
* It'
|
|
399
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
400
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
401
|
+
* If 'auto', the grid item's width matches its content.
|
|
402
|
+
* If false, the prop is ignored.
|
|
403
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
404
|
+
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
382
405
|
* @default false
|
|
383
406
|
*/
|
|
384
|
-
md: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
407
|
+
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
385
408
|
|
|
386
409
|
/**
|
|
387
410
|
* Defines the vertical space between the type `item` components.
|
|
@@ -390,11 +413,15 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
390
413
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
391
414
|
|
|
392
415
|
/**
|
|
393
|
-
*
|
|
394
|
-
* It'
|
|
416
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
417
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
418
|
+
* If 'auto', the grid item's width matches its content.
|
|
419
|
+
* If false, the prop is ignored.
|
|
420
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
421
|
+
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
395
422
|
* @default false
|
|
396
423
|
*/
|
|
397
|
-
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
424
|
+
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
398
425
|
|
|
399
426
|
/**
|
|
400
427
|
* Defines the space between the type `item` components.
|
|
@@ -406,7 +433,7 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
406
433
|
/**
|
|
407
434
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
408
435
|
*/
|
|
409
|
-
sx: PropTypes.object,
|
|
436
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
410
437
|
|
|
411
438
|
/**
|
|
412
439
|
* Defines the `flex-wrap` style property.
|
|
@@ -416,18 +443,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
416
443
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
417
444
|
|
|
418
445
|
/**
|
|
419
|
-
*
|
|
420
|
-
* It'
|
|
446
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
447
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
448
|
+
* If 'auto', the grid item's width matches its content.
|
|
449
|
+
* If false, the prop is ignored.
|
|
450
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
451
|
+
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
421
452
|
* @default false
|
|
422
453
|
*/
|
|
423
|
-
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
454
|
+
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
424
455
|
|
|
425
456
|
/**
|
|
426
|
-
*
|
|
427
|
-
* It'
|
|
457
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
458
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
459
|
+
* If 'auto', the grid item's width matches its content.
|
|
460
|
+
* If false, the prop is ignored.
|
|
461
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
462
|
+
* The value is applied for all the screen sizes with the lowest priority.
|
|
428
463
|
* @default false
|
|
429
464
|
*/
|
|
430
|
-
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
465
|
+
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
431
466
|
|
|
432
467
|
/**
|
|
433
468
|
* If `true`, it sets `min-width: 0` on the item.
|
package/Grow/Grow.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface GrowProps extends Omit<TransitionProps, 'timeout'> {
|
|
|
11
11
|
/**
|
|
12
12
|
* A single child content element.
|
|
13
13
|
*/
|
|
14
|
-
children
|
|
14
|
+
children: React.ReactElement<any, any>;
|
|
15
15
|
/**
|
|
16
16
|
* The transition timing function.
|
|
17
17
|
* You may specify a single easing or a object containing enter and exit values.
|
package/Grow/Grow.js
CHANGED
package/Icon/Icon.js
CHANGED
|
@@ -154,7 +154,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes
|
|
|
154
154
|
/**
|
|
155
155
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
156
156
|
*/
|
|
157
|
-
sx: PropTypes.object
|
|
157
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
158
158
|
} : void 0;
|
|
159
159
|
Icon.muiName = 'Icon';
|
|
160
160
|
export default Icon;
|
package/IconButton/IconButton.js
CHANGED
|
@@ -212,6 +212,6 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
|
|
|
212
212
|
/**
|
|
213
213
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
214
214
|
*/
|
|
215
|
-
sx: PropTypes.object
|
|
215
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
216
216
|
} : void 0;
|
|
217
217
|
export default IconButton;
|
package/ImageList/ImageList.js
CHANGED
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
165
165
|
*/
|
|
166
|
-
sx: PropTypes.object,
|
|
166
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
169
|
* The variant to use.
|
|
@@ -184,6 +184,6 @@ process.env.NODE_ENV !== "production" ? ImageListItem.propTypes
|
|
|
184
184
|
/**
|
|
185
185
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
186
186
|
*/
|
|
187
|
-
sx: PropTypes.object
|
|
187
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
188
188
|
} : void 0;
|
|
189
189
|
export default ImageListItem;
|
|
@@ -226,7 +226,7 @@ process.env.NODE_ENV !== "production" ? ImageListItemBar.propTypes
|
|
|
226
226
|
/**
|
|
227
227
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
228
228
|
*/
|
|
229
|
-
sx: PropTypes.object,
|
|
229
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* Title to be displayed.
|
package/Input/Input.js
CHANGED
|
@@ -316,7 +316,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
316
316
|
/**
|
|
317
317
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
318
318
|
*/
|
|
319
|
-
sx: PropTypes.object,
|
|
319
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? InputAdornment.propTypes
|
|
|
186
186
|
/**
|
|
187
187
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
188
188
|
*/
|
|
189
|
-
sx: PropTypes.object,
|
|
189
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* The variant to use.
|
package/InputBase/InputBase.js
CHANGED
|
@@ -6,17 +6,15 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { refType, elementTypeAcceptingRef } from '@mui/utils';
|
|
9
|
-
import { unstable_composeClasses as composeClasses, isHostComponent } from '@mui/core';
|
|
9
|
+
import { unstable_composeClasses as composeClasses, isHostComponent, TextareaAutosize } from '@mui/core';
|
|
10
10
|
import formControlState from '../FormControl/formControlState';
|
|
11
11
|
import FormControlContext from '../FormControl/FormControlContext';
|
|
12
12
|
import useFormControl from '../FormControl/useFormControl';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import useThemeProps from '../styles/useThemeProps';
|
|
15
|
-
import useTheme from '../styles/useTheme';
|
|
16
15
|
import capitalize from '../utils/capitalize';
|
|
17
16
|
import useForkRef from '../utils/useForkRef';
|
|
18
17
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
19
|
-
import TextareaAutosize from '../TextareaAutosize';
|
|
20
18
|
import GlobalStyles from '../GlobalStyles';
|
|
21
19
|
import { isFilled } from './utils';
|
|
22
20
|
import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses';
|
|
@@ -182,8 +180,7 @@ export const InputBaseComponent = styled('input', {
|
|
|
182
180
|
paddingTop: 0
|
|
183
181
|
}, ownerState.type === 'search' && {
|
|
184
182
|
// Improve type search style.
|
|
185
|
-
MozAppearance: 'textfield'
|
|
186
|
-
WebkitAppearance: 'textfield'
|
|
183
|
+
MozAppearance: 'textfield'
|
|
187
184
|
});
|
|
188
185
|
});
|
|
189
186
|
|
|
@@ -249,7 +246,6 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
249
246
|
} = props,
|
|
250
247
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
251
248
|
|
|
252
|
-
const theme = useTheme();
|
|
253
249
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
254
250
|
const {
|
|
255
251
|
current: isControlled
|
|
@@ -455,8 +451,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
455
451
|
inputProps = _extends({}, inputProps, componentsProps.input);
|
|
456
452
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
457
453
|
children: [inputGlobalStyles, /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, !isHostComponent(Root) && {
|
|
458
|
-
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
|
459
|
-
theme
|
|
454
|
+
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
|
460
455
|
}, {
|
|
461
456
|
ref: ref,
|
|
462
457
|
onClick: handleClick
|
|
@@ -485,11 +480,10 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
485
480
|
type: type
|
|
486
481
|
}, inputProps, !isHostComponent(Input) && {
|
|
487
482
|
as: InputComponent,
|
|
488
|
-
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
489
|
-
theme
|
|
483
|
+
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
490
484
|
}, {
|
|
491
485
|
ref: handleInputRef,
|
|
492
|
-
className: clsx(classes.input, inputProps.className
|
|
486
|
+
className: clsx(classes.input, inputProps.className),
|
|
493
487
|
onBlur: handleBlur,
|
|
494
488
|
onChange: handleChange,
|
|
495
489
|
onFocus: handleFocus
|
|
@@ -715,7 +709,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
|
|
|
715
709
|
/**
|
|
716
710
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
717
711
|
*/
|
|
718
|
-
sx: PropTypes.object,
|
|
712
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
719
713
|
|
|
720
714
|
/**
|
|
721
715
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
package/InputLabel/InputLabel.js
CHANGED
|
@@ -206,7 +206,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
|
|
|
206
206
|
/**
|
|
207
207
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
208
208
|
*/
|
|
209
|
-
sx: PropTypes.object,
|
|
209
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* The variant to use.
|
|
@@ -347,7 +347,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes
|
|
|
347
347
|
/**
|
|
348
348
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
349
349
|
*/
|
|
350
|
-
sx: PropTypes.object,
|
|
350
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
353
|
* The value of the progress indicator for the determinate and buffer variants.
|
package/Link/Link.js
CHANGED
|
@@ -218,7 +218,7 @@ process.env.NODE_ENV !== "production" ? Link.propTypes
|
|
|
218
218
|
/**
|
|
219
219
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
220
220
|
*/
|
|
221
|
-
sx: PropTypes.object,
|
|
221
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* `classes` prop applied to the [`Typography`](/api/typography/) element.
|
package/List/List.js
CHANGED
|
@@ -137,6 +137,6 @@ process.env.NODE_ENV !== "production" ? List.propTypes
|
|
|
137
137
|
/**
|
|
138
138
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
139
139
|
*/
|
|
140
|
-
sx: PropTypes.object
|
|
140
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
141
141
|
} : void 0;
|
|
142
142
|
export default List;
|
package/ListItem/ListItem.d.ts
CHANGED
package/ListItem/ListItem.js
CHANGED
|
@@ -414,6 +414,6 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
|
|
|
414
414
|
/**
|
|
415
415
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
416
416
|
*/
|
|
417
|
-
sx: PropTypes.object
|
|
417
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
418
418
|
} : void 0;
|
|
419
419
|
export default ListItem;
|
|
@@ -93,6 +93,6 @@ process.env.NODE_ENV !== "production" ? ListItemAvatar.propTypes
|
|
|
93
93
|
/**
|
|
94
94
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
95
95
|
*/
|
|
96
|
-
sx: PropTypes.object
|
|
96
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
97
97
|
} : void 0;
|
|
98
98
|
export default ListItemAvatar;
|
|
@@ -5,7 +5,7 @@ import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
|
|
5
5
|
import { OverrideProps } from '../OverridableComponent';
|
|
6
6
|
import { ListItemButtonClasses } from './listItemButtonClasses';
|
|
7
7
|
|
|
8
|
-
interface ListItemButtonBaseProps {
|
|
8
|
+
export interface ListItemButtonBaseProps {
|
|
9
9
|
/**
|
|
10
10
|
* Defines the `align-items` style property.
|
|
11
11
|
* @default 'center'
|
|
@@ -240,6 +240,6 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
|
|
|
240
240
|
/**
|
|
241
241
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
242
242
|
*/
|
|
243
|
-
sx: PropTypes.object
|
|
243
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
244
244
|
} : void 0;
|
|
245
245
|
export default ListItemButton;
|
|
@@ -97,6 +97,6 @@ process.env.NODE_ENV !== "production" ? ListItemIcon.propTypes
|
|
|
97
97
|
/**
|
|
98
98
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
99
99
|
*/
|
|
100
|
-
sx: PropTypes.object
|
|
100
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
101
101
|
} : void 0;
|
|
102
102
|
export default ListItemIcon;
|
|
@@ -95,7 +95,7 @@ process.env.NODE_ENV !== "production" ? ListItemSecondaryAction.propTypes
|
|
|
95
95
|
/**
|
|
96
96
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
97
97
|
*/
|
|
98
|
-
sx: PropTypes.object
|
|
98
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
99
99
|
} : void 0;
|
|
100
100
|
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
|
101
101
|
export default ListItemSecondaryAction;
|
|
@@ -183,6 +183,6 @@ process.env.NODE_ENV !== "production" ? ListItemText.propTypes
|
|
|
183
183
|
/**
|
|
184
184
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
185
185
|
*/
|
|
186
|
-
sx: PropTypes.object
|
|
186
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
187
187
|
} : void 0;
|
|
188
188
|
export default ListItemText;
|
|
@@ -148,6 +148,6 @@ process.env.NODE_ENV !== "production" ? ListSubheader.propTypes
|
|
|
148
148
|
/**
|
|
149
149
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
150
150
|
*/
|
|
151
|
-
sx: PropTypes.object
|
|
151
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
152
152
|
} : void 0;
|
|
153
153
|
export default ListSubheader;
|
package/Menu/Menu.js
CHANGED
|
@@ -266,7 +266,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes
|
|
|
266
266
|
/**
|
|
267
267
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
268
268
|
*/
|
|
269
|
-
sx: PropTypes.object,
|
|
269
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* The length of the transition in `ms`, or 'auto'
|