@mui/material 5.0.6 → 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.js +4 -1
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.js +1 -1
- 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 +107 -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.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.js +1 -1
- 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/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 +56 -24
- 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 +3 -4
- package/InputLabel/InputLabel.js +1 -1
- package/LICENSE +21 -21
- 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 +1 -1
- 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 +32 -10
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.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 -1
- 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/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.js +1 -1
- 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.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/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Tooltip/Tooltip.d.ts +3 -1
- package/Tooltip/Tooltip.js +4 -2
- package/Typography/Typography.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 +4 -2
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +1 -1
- 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 +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/CssBaseline/CssBaseline.js +38 -20
- package/legacy/Dialog/Dialog.js +1 -1
- 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 +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 +57 -24
- 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 +3 -4
- 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 +1 -1
- 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 +33 -10
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/RadioGroup/RadioGroupContext.js +2 -2
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +13 -4
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +1 -1
- 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 +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/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +4 -2
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/createPalette.js +1 -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 +4 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- 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 +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/CssBaseline/CssBaseline.js +20 -12
- package/modern/Dialog/Dialog.js +1 -1
- 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 +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 +56 -24
- 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 +3 -4
- 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 +1 -1
- 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 +32 -10
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/RadioGroup/RadioGroupContext.js +2 -2
- package/modern/Rating/Rating.js +1 -1
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +1 -1
- 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 +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/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +4 -2
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createPalette.js +1 -1
- package/node/Accordion/Accordion.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +4 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/Box/Box.js +5 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Button/Button.js +40 -9
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +24 -28
- package/node/ButtonGroup/ButtonGroupContext.js +24 -0
- 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/CssBaseline/CssBaseline.js +22 -12
- package/node/Dialog/Dialog.js +1 -1
- 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 +3 -3
- 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 +56 -22
- 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 +3 -4
- 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 +1 -1
- 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 +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +6 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +32 -10
- package/node/Paper/Paper.js +1 -1
- package/node/Popover/Popover.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/node/Select/Select.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/Stack/Stack.js +5 -2
- 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 +1 -1
- 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 +1 -1
- 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 +4 -2
- package/node/Typography/Typography.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/createPalette.js +1 -1
- package/package.json +7 -6
- package/styles/createPalette.js +1 -1
- package/umd/material-ui.development.js +443 -258
- package/umd/material-ui.production.min.js +18 -18
package/modern/Card/Card.js
CHANGED
|
@@ -93,6 +93,6 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
93
93
|
/**
|
|
94
94
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
95
95
|
*/
|
|
96
|
-
sx: PropTypes.oneOfType([PropTypes.func, 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 Card;
|
|
@@ -122,6 +122,6 @@ process.env.NODE_ENV !== "production" ? CardActionArea.propTypes
|
|
|
122
122
|
/**
|
|
123
123
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
124
124
|
*/
|
|
125
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
125
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
126
126
|
} : void 0;
|
|
127
127
|
export default CardActionArea;
|
|
@@ -96,6 +96,6 @@ process.env.NODE_ENV !== "production" ? CardActions.propTypes
|
|
|
96
96
|
/**
|
|
97
97
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
98
98
|
*/
|
|
99
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
99
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
100
100
|
} : void 0;
|
|
101
101
|
export default CardActions;
|
|
@@ -88,6 +88,6 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes
|
|
|
88
88
|
/**
|
|
89
89
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
90
90
|
*/
|
|
91
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
91
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
92
92
|
} : void 0;
|
|
93
93
|
export default CardContent;
|
|
@@ -203,7 +203,7 @@ process.env.NODE_ENV !== "production" ? CardHeader.propTypes
|
|
|
203
203
|
/**
|
|
204
204
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
205
205
|
*/
|
|
206
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
206
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* The content of the component.
|
|
@@ -148,6 +148,6 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
148
148
|
/**
|
|
149
149
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
150
150
|
*/
|
|
151
|
-
sx: PropTypes.oneOfType([PropTypes.func, 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 CardMedia;
|
|
@@ -219,7 +219,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
219
219
|
/**
|
|
220
220
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
221
221
|
*/
|
|
222
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
222
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* The value of the component. The DOM API casts this to a string.
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -515,7 +515,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes
|
|
|
515
515
|
/**
|
|
516
516
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
517
517
|
*/
|
|
518
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
518
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
521
|
* The variant to use.
|
|
@@ -241,7 +241,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
241
241
|
/**
|
|
242
242
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
243
243
|
*/
|
|
244
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
244
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
247
|
* The thickness of the circle.
|
|
@@ -400,7 +400,7 @@ process.env.NODE_ENV !== "production" ? Collapse.propTypes
|
|
|
400
400
|
/**
|
|
401
401
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
402
402
|
*/
|
|
403
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
403
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
404
404
|
|
|
405
405
|
/**
|
|
406
406
|
* The duration for the transition, in milliseconds.
|
|
@@ -161,6 +161,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
|
|
|
161
161
|
/**
|
|
162
162
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
163
163
|
*/
|
|
164
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
164
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
165
165
|
} : void 0;
|
|
166
166
|
export default Container;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
|
|
3
|
-
var _GlobalStyles;
|
|
4
|
-
|
|
5
2
|
import * as React from 'react';
|
|
6
3
|
import PropTypes from 'prop-types';
|
|
7
4
|
import useThemeProps from '../styles/useThemeProps';
|
|
8
5
|
import GlobalStyles from '../GlobalStyles';
|
|
9
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const html = {
|
|
8
|
+
export const html = (theme, enableColorScheme) => _extends({
|
|
12
9
|
WebkitFontSmoothing: 'antialiased',
|
|
13
10
|
// Antialiasing.
|
|
14
11
|
MozOsxFontSmoothing: 'grayscale',
|
|
@@ -18,7 +15,9 @@ export const html = {
|
|
|
18
15
|
boxSizing: 'border-box',
|
|
19
16
|
// Fix font resize problem in iOS
|
|
20
17
|
WebkitTextSizeAdjust: '100%'
|
|
21
|
-
}
|
|
18
|
+
}, enableColorScheme && {
|
|
19
|
+
colorScheme: theme.palette.mode
|
|
20
|
+
});
|
|
22
21
|
export const body = theme => _extends({
|
|
23
22
|
color: theme.palette.text.primary
|
|
24
23
|
}, theme.typography.body1, {
|
|
@@ -28,9 +27,9 @@ export const body = theme => _extends({
|
|
|
28
27
|
backgroundColor: theme.palette.common.white
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
|
-
export const styles = theme => {
|
|
30
|
+
export const styles = (theme, enableColorScheme = false) => {
|
|
32
31
|
let defaultStyles = {
|
|
33
|
-
html,
|
|
32
|
+
html: html(theme, enableColorScheme),
|
|
34
33
|
'*, *::before, *::after': {
|
|
35
34
|
boxSizing: 'inherit'
|
|
36
35
|
},
|
|
@@ -65,12 +64,13 @@ function CssBaseline(inProps) {
|
|
|
65
64
|
name: 'MuiCssBaseline'
|
|
66
65
|
});
|
|
67
66
|
const {
|
|
68
|
-
children
|
|
67
|
+
children,
|
|
68
|
+
enableColorScheme = false
|
|
69
69
|
} = props;
|
|
70
70
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
71
|
-
children: [
|
|
72
|
-
styles: styles
|
|
73
|
-
})
|
|
71
|
+
children: [/*#__PURE__*/_jsx(GlobalStyles, {
|
|
72
|
+
styles: theme => styles(theme, enableColorScheme)
|
|
73
|
+
}), children]
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -85,6 +85,14 @@ process.env.NODE_ENV !== "production" ? CssBaseline.propTypes
|
|
|
85
85
|
/**
|
|
86
86
|
* You can wrap a node.
|
|
87
87
|
*/
|
|
88
|
-
children: PropTypes.node
|
|
88
|
+
children: PropTypes.node,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Enable `color-scheme` css property to use `theme.palette.mode`.
|
|
92
|
+
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
93
|
+
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
enableColorScheme: PropTypes.bool
|
|
89
97
|
} : void 0;
|
|
90
98
|
export default CssBaseline;
|
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -387,7 +387,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
387
387
|
/**
|
|
388
388
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
389
389
|
*/
|
|
390
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
390
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* The component used for the transition.
|
|
@@ -98,6 +98,6 @@ process.env.NODE_ENV !== "production" ? DialogActions.propTypes
|
|
|
98
98
|
/**
|
|
99
99
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
100
100
|
*/
|
|
101
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
101
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
102
102
|
} : void 0;
|
|
103
103
|
export default DialogActions;
|
|
@@ -104,6 +104,6 @@ process.env.NODE_ENV !== "production" ? DialogContent.propTypes
|
|
|
104
104
|
/**
|
|
105
105
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
106
106
|
*/
|
|
107
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
107
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
108
108
|
} : void 0;
|
|
109
109
|
export default DialogContent;
|
|
@@ -67,6 +67,6 @@ process.env.NODE_ENV !== "production" ? DialogContentText.propTypes
|
|
|
67
67
|
/**
|
|
68
68
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
69
69
|
*/
|
|
70
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
70
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
71
71
|
} : void 0;
|
|
72
72
|
export default DialogContentText;
|
|
@@ -87,6 +87,6 @@ process.env.NODE_ENV !== "production" ? DialogTitle.propTypes
|
|
|
87
87
|
/**
|
|
88
88
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
89
89
|
*/
|
|
90
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
90
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
91
91
|
} : void 0;
|
|
92
92
|
export default DialogTitle;
|
|
@@ -247,7 +247,7 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes
|
|
|
247
247
|
/**
|
|
248
248
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
249
249
|
*/
|
|
250
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
250
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* The text alignment.
|
package/modern/Drawer/Drawer.js
CHANGED
|
@@ -313,7 +313,7 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes
|
|
|
313
313
|
/**
|
|
314
314
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
315
315
|
*/
|
|
316
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
316
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
* The duration for the transition, in milliseconds.
|
package/modern/Fab/Fab.js
CHANGED
|
@@ -238,7 +238,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
|
|
|
238
238
|
/**
|
|
239
239
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
240
240
|
*/
|
|
241
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
241
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* The variant to use.
|
|
@@ -389,7 +389,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
|
|
|
389
389
|
/**
|
|
390
390
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
391
391
|
*/
|
|
392
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
392
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* 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).
|
|
@@ -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.oneOfType([PropTypes.func, 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.
|
|
@@ -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.oneOfType([PropTypes.func, 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.
|
|
@@ -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.oneOfType([PropTypes.func, 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.oneOfType([PropTypes.func, 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.
|
|
@@ -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.oneOfType([PropTypes.func, 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/modern/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') {
|
|
@@ -373,18 +385,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
373
385
|
item: PropTypes.bool,
|
|
374
386
|
|
|
375
387
|
/**
|
|
376
|
-
*
|
|
377
|
-
* 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.
|
|
378
394
|
* @default false
|
|
379
395
|
*/
|
|
380
|
-
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
396
|
+
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
381
397
|
|
|
382
398
|
/**
|
|
383
|
-
*
|
|
384
|
-
* 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.
|
|
385
405
|
* @default false
|
|
386
406
|
*/
|
|
387
|
-
md: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
407
|
+
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
388
408
|
|
|
389
409
|
/**
|
|
390
410
|
* Defines the vertical space between the type `item` components.
|
|
@@ -393,11 +413,15 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
393
413
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
394
414
|
|
|
395
415
|
/**
|
|
396
|
-
*
|
|
397
|
-
* 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.
|
|
398
422
|
* @default false
|
|
399
423
|
*/
|
|
400
|
-
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
424
|
+
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
401
425
|
|
|
402
426
|
/**
|
|
403
427
|
* Defines the space between the type `item` components.
|
|
@@ -409,7 +433,7 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
409
433
|
/**
|
|
410
434
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
411
435
|
*/
|
|
412
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
436
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
413
437
|
|
|
414
438
|
/**
|
|
415
439
|
* Defines the `flex-wrap` style property.
|
|
@@ -419,18 +443,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
419
443
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
420
444
|
|
|
421
445
|
/**
|
|
422
|
-
*
|
|
423
|
-
* 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.
|
|
424
452
|
* @default false
|
|
425
453
|
*/
|
|
426
|
-
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
454
|
+
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
427
455
|
|
|
428
456
|
/**
|
|
429
|
-
*
|
|
430
|
-
* 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.
|
|
431
463
|
* @default false
|
|
432
464
|
*/
|
|
433
|
-
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
465
|
+
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
434
466
|
|
|
435
467
|
/**
|
|
436
468
|
* If `true`, it sets `min-width: 0` on the item.
|
package/modern/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.oneOfType([PropTypes.func, 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;
|
|
@@ -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.oneOfType([PropTypes.func, 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;
|
|
@@ -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.oneOfType([PropTypes.func, 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.oneOfType([PropTypes.func, 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.oneOfType([PropTypes.func, 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/modern/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.oneOfType([PropTypes.func, 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.oneOfType([PropTypes.func, 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.
|
|
@@ -180,8 +180,7 @@ export const InputBaseComponent = styled('input', {
|
|
|
180
180
|
paddingTop: 0
|
|
181
181
|
}, ownerState.type === 'search' && {
|
|
182
182
|
// Improve type search style.
|
|
183
|
-
MozAppearance: 'textfield'
|
|
184
|
-
WebkitAppearance: 'textfield'
|
|
183
|
+
MozAppearance: 'textfield'
|
|
185
184
|
});
|
|
186
185
|
});
|
|
187
186
|
|
|
@@ -484,7 +483,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
484
483
|
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
485
484
|
}, {
|
|
486
485
|
ref: handleInputRef,
|
|
487
|
-
className: clsx(classes.input, inputProps.className
|
|
486
|
+
className: clsx(classes.input, inputProps.className),
|
|
488
487
|
onBlur: handleBlur,
|
|
489
488
|
onChange: handleChange,
|
|
490
489
|
onFocus: handleFocus
|
|
@@ -710,7 +709,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
|
|
|
710
709
|
/**
|
|
711
710
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
712
711
|
*/
|
|
713
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
712
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
714
713
|
|
|
715
714
|
/**
|
|
716
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).
|
|
@@ -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.oneOfType([PropTypes.func, 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.
|
|
@@ -338,7 +338,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes
|
|
|
338
338
|
/**
|
|
339
339
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
340
340
|
*/
|
|
341
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
341
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
344
|
* The value of the progress indicator for the determinate and buffer variants.
|
package/modern/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.oneOfType([PropTypes.func, 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/modern/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.oneOfType([PropTypes.func, 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;
|