@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
|
@@ -2,7 +2,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { isFragment } from 'react-is';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import clsx from 'clsx';
|
|
8
7
|
import { unstable_composeClasses as composeClasses } from '@mui/core';
|
|
@@ -11,6 +10,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
10
|
import styled from '../styles/styled';
|
|
12
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
12
|
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
|
13
|
+
import ButtonGroupContext from './ButtonGroupContext';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
var overridesResolver = function overridesResolver(props, styles) {
|
|
@@ -90,10 +90,14 @@ var ButtonGroupRoot = styled('div', {
|
|
|
90
90
|
borderBottom: "1px solid ".concat(theme.palette.action.disabled)
|
|
91
91
|
}), ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
92
92
|
borderColor: theme.palette[ownerState.color].dark
|
|
93
|
+
}, {
|
|
94
|
+
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
95
|
+
borderRightColor: 'currentColor'
|
|
96
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
97
|
+
borderBottomColor: 'currentColor'
|
|
98
|
+
})
|
|
93
99
|
}),
|
|
94
|
-
'&:hover': _extends({}, ownerState.variant === '
|
|
95
|
-
borderColor: theme.palette[ownerState.color].main
|
|
96
|
-
}, ownerState.variant === 'contained' && {
|
|
100
|
+
'&:hover': _extends({}, ownerState.variant === 'contained' && {
|
|
97
101
|
boxShadow: 'none'
|
|
98
102
|
})
|
|
99
103
|
}, ownerState.variant === 'contained' && {
|
|
@@ -144,6 +148,19 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, re
|
|
|
144
148
|
});
|
|
145
149
|
|
|
146
150
|
var classes = useUtilityClasses(ownerState);
|
|
151
|
+
var context = React.useMemo(function () {
|
|
152
|
+
return {
|
|
153
|
+
className: classes.grouped,
|
|
154
|
+
color: color,
|
|
155
|
+
disabled: disabled,
|
|
156
|
+
disableElevation: disableElevation,
|
|
157
|
+
disableFocusRipple: disableFocusRipple,
|
|
158
|
+
disableRipple: disableRipple,
|
|
159
|
+
fullWidth: fullWidth,
|
|
160
|
+
size: size,
|
|
161
|
+
variant: variant
|
|
162
|
+
};
|
|
163
|
+
}, [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
147
164
|
return /*#__PURE__*/_jsx(ButtonGroupRoot, _extends({
|
|
148
165
|
as: component,
|
|
149
166
|
role: "group",
|
|
@@ -151,28 +168,9 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, re
|
|
|
151
168
|
ref: ref,
|
|
152
169
|
ownerState: ownerState
|
|
153
170
|
}, other, {
|
|
154
|
-
children:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
160
|
-
if (isFragment(child)) {
|
|
161
|
-
console.error(["MUI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
166
|
-
className: clsx(classes.grouped, child.props.className),
|
|
167
|
-
color: child.props.color || color,
|
|
168
|
-
disabled: child.props.disabled || disabled,
|
|
169
|
-
disableElevation: child.props.disableElevation || disableElevation,
|
|
170
|
-
disableFocusRipple: disableFocusRipple,
|
|
171
|
-
disableRipple: disableRipple,
|
|
172
|
-
fullWidth: fullWidth,
|
|
173
|
-
size: child.props.size || size,
|
|
174
|
-
variant: child.props.variant || variant
|
|
175
|
-
});
|
|
171
|
+
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
172
|
+
value: context,
|
|
173
|
+
children: children
|
|
176
174
|
})
|
|
177
175
|
}));
|
|
178
176
|
});
|
|
@@ -261,7 +259,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes
|
|
|
261
259
|
/**
|
|
262
260
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
263
261
|
*/
|
|
264
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
262
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
265
263
|
|
|
266
264
|
/**
|
|
267
265
|
* The variant to use.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ignore - internal component.
|
|
5
|
+
*/
|
|
6
|
+
var ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
|
7
|
+
|
|
8
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9
|
+
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ButtonGroupContext;
|
package/legacy/Card/Card.js
CHANGED
|
@@ -91,6 +91,6 @@ process.env.NODE_ENV !== "production" ? Card.propTypes
|
|
|
91
91
|
/**
|
|
92
92
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
93
93
|
*/
|
|
94
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
94
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
95
95
|
} : void 0;
|
|
96
96
|
export default Card;
|
|
@@ -124,6 +124,6 @@ process.env.NODE_ENV !== "production" ? CardActionArea.propTypes
|
|
|
124
124
|
/**
|
|
125
125
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
126
126
|
*/
|
|
127
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
127
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
128
128
|
} : void 0;
|
|
129
129
|
export default CardActionArea;
|
|
@@ -91,6 +91,6 @@ process.env.NODE_ENV !== "production" ? CardActions.propTypes
|
|
|
91
91
|
/**
|
|
92
92
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
93
93
|
*/
|
|
94
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
94
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
95
95
|
} : void 0;
|
|
96
96
|
export default CardActions;
|
|
@@ -86,6 +86,6 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes
|
|
|
86
86
|
/**
|
|
87
87
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
88
88
|
*/
|
|
89
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
89
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
90
90
|
} : void 0;
|
|
91
91
|
export default CardContent;
|
|
@@ -208,7 +208,7 @@ process.env.NODE_ENV !== "production" ? CardHeader.propTypes
|
|
|
208
208
|
/**
|
|
209
209
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
210
210
|
*/
|
|
211
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
211
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* The content of the component.
|
|
@@ -141,6 +141,6 @@ process.env.NODE_ENV !== "production" ? CardMedia.propTypes
|
|
|
141
141
|
/**
|
|
142
142
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
143
143
|
*/
|
|
144
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
144
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
145
145
|
} : void 0;
|
|
146
146
|
export default CardMedia;
|
|
@@ -223,7 +223,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
223
223
|
/**
|
|
224
224
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
225
225
|
*/
|
|
226
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
226
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* The value of the component. The DOM API casts this to a string.
|
package/legacy/Chip/Chip.js
CHANGED
|
@@ -469,7 +469,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes
|
|
|
469
469
|
/**
|
|
470
470
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
471
471
|
*/
|
|
472
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
472
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
475
|
* The variant to use.
|
|
@@ -221,7 +221,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
|
|
|
221
221
|
/**
|
|
222
222
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
223
223
|
*/
|
|
224
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
224
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* The thickness of the circle.
|
|
@@ -407,7 +407,7 @@ process.env.NODE_ENV !== "production" ? Collapse.propTypes
|
|
|
407
407
|
/**
|
|
408
408
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
409
409
|
*/
|
|
410
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
410
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* The duration for the transition, in milliseconds.
|
|
@@ -157,6 +157,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
|
|
|
157
157
|
/**
|
|
158
158
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
159
159
|
*/
|
|
160
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
160
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
161
161
|
} : void 0;
|
|
162
162
|
export default Container;
|
|
@@ -1,23 +1,24 @@
|
|
|
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 var html = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
export var html = function html(theme, enableColorScheme) {
|
|
9
|
+
return _extends({
|
|
10
|
+
WebkitFontSmoothing: 'antialiased',
|
|
11
|
+
// Antialiasing.
|
|
12
|
+
MozOsxFontSmoothing: 'grayscale',
|
|
13
|
+
// Antialiasing.
|
|
14
|
+
// Change from `box-sizing: content-box` so that `width`
|
|
15
|
+
// is not affected by `padding` or `border`.
|
|
16
|
+
boxSizing: 'border-box',
|
|
17
|
+
// Fix font resize problem in iOS
|
|
18
|
+
WebkitTextSizeAdjust: '100%'
|
|
19
|
+
}, enableColorScheme && {
|
|
20
|
+
colorScheme: theme.palette.mode
|
|
21
|
+
});
|
|
21
22
|
};
|
|
22
23
|
export var body = function body(theme) {
|
|
23
24
|
return _extends({
|
|
@@ -30,11 +31,13 @@ export var body = function body(theme) {
|
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
var _styles = function styles(theme) {
|
|
34
36
|
var _theme$components, _theme$components$Mui;
|
|
35
37
|
|
|
38
|
+
var enableColorScheme = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
36
39
|
var defaultStyles = {
|
|
37
|
-
html: html,
|
|
40
|
+
html: html(theme, enableColorScheme),
|
|
38
41
|
'*, *::before, *::after': {
|
|
39
42
|
boxSizing: 'inherit'
|
|
40
43
|
},
|
|
@@ -63,16 +66,23 @@ export var styles = function styles(theme) {
|
|
|
63
66
|
* Kickstart an elegant, consistent, and simple baseline to build upon.
|
|
64
67
|
*/
|
|
65
68
|
|
|
69
|
+
|
|
70
|
+
export { _styles as styles };
|
|
71
|
+
|
|
66
72
|
function CssBaseline(inProps) {
|
|
67
73
|
var props = useThemeProps({
|
|
68
74
|
props: inProps,
|
|
69
75
|
name: 'MuiCssBaseline'
|
|
70
76
|
});
|
|
71
|
-
var children = props.children
|
|
77
|
+
var children = props.children,
|
|
78
|
+
_props$enableColorSch = props.enableColorScheme,
|
|
79
|
+
enableColorScheme = _props$enableColorSch === void 0 ? false : _props$enableColorSch;
|
|
72
80
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
73
|
-
children: [
|
|
74
|
-
styles: styles
|
|
75
|
-
|
|
81
|
+
children: [/*#__PURE__*/_jsx(GlobalStyles, {
|
|
82
|
+
styles: function styles(theme) {
|
|
83
|
+
return _styles(theme, enableColorScheme);
|
|
84
|
+
}
|
|
85
|
+
}), children]
|
|
76
86
|
});
|
|
77
87
|
}
|
|
78
88
|
|
|
@@ -87,6 +97,14 @@ process.env.NODE_ENV !== "production" ? CssBaseline.propTypes
|
|
|
87
97
|
/**
|
|
88
98
|
* You can wrap a node.
|
|
89
99
|
*/
|
|
90
|
-
children: PropTypes.node
|
|
100
|
+
children: PropTypes.node,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Enable `color-scheme` css property to use `theme.palette.mode`.
|
|
104
|
+
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
105
|
+
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
enableColorScheme: PropTypes.bool
|
|
91
109
|
} : void 0;
|
|
92
110
|
export default CssBaseline;
|
package/legacy/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.
|
|
@@ -93,6 +93,6 @@ process.env.NODE_ENV !== "production" ? DialogActions.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 DialogActions;
|
|
@@ -98,6 +98,6 @@ process.env.NODE_ENV !== "production" ? DialogContent.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 DialogContent;
|
|
@@ -69,6 +69,6 @@ process.env.NODE_ENV !== "production" ? DialogContentText.propTypes
|
|
|
69
69
|
/**
|
|
70
70
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
71
71
|
*/
|
|
72
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
72
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
73
73
|
} : void 0;
|
|
74
74
|
export default DialogContentText;
|
|
@@ -86,6 +86,6 @@ process.env.NODE_ENV !== "production" ? DialogTitle.propTypes
|
|
|
86
86
|
/**
|
|
87
87
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
88
88
|
*/
|
|
89
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
89
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
90
90
|
} : void 0;
|
|
91
91
|
export default DialogTitle;
|
|
@@ -251,7 +251,7 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes
|
|
|
251
251
|
/**
|
|
252
252
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
253
253
|
*/
|
|
254
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
254
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* The text alignment.
|
package/legacy/Drawer/Drawer.js
CHANGED
|
@@ -312,7 +312,7 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes
|
|
|
312
312
|
/**
|
|
313
313
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
314
314
|
*/
|
|
315
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
315
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
316
316
|
|
|
317
317
|
/**
|
|
318
318
|
* The duration for the transition, in milliseconds.
|
package/legacy/Fab/Fab.js
CHANGED
|
@@ -240,7 +240,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
|
|
|
240
240
|
/**
|
|
241
241
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
242
242
|
*/
|
|
243
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
243
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* The variant to use.
|
|
@@ -387,7 +387,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.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
|
* 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).
|
|
@@ -328,7 +328,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes
|
|
|
328
328
|
/**
|
|
329
329
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
330
330
|
*/
|
|
331
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
331
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* The variant to use.
|
|
@@ -179,9 +179,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
|
|
|
179
179
|
inputRef: refType,
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* A text or an element to be used in an enclosing label element.
|
|
183
183
|
*/
|
|
184
|
-
label: PropTypes.
|
|
184
|
+
label: PropTypes.oneOfType([PropTypes.element, PropTypes.number, PropTypes.string]).isRequired,
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* The position of the label.
|
|
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
|
|
|
205
205
|
/**
|
|
206
206
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
207
207
|
*/
|
|
208
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
208
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* The value of the component.
|
|
@@ -95,6 +95,6 @@ process.env.NODE_ENV !== "production" ? FormGroup.propTypes
|
|
|
95
95
|
/**
|
|
96
96
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
97
97
|
*/
|
|
98
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
98
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
99
99
|
} : void 0;
|
|
100
100
|
export default FormGroup;
|
|
@@ -181,7 +181,7 @@ process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
|
|
|
181
181
|
/**
|
|
182
182
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
183
183
|
*/
|
|
184
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
184
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* The variant to use.
|
|
@@ -180,6 +180,6 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes
|
|
|
180
180
|
/**
|
|
181
181
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
182
182
|
*/
|
|
183
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
183
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
184
184
|
} : void 0;
|
|
185
185
|
export default FormLabel;
|
package/legacy/Grid/Grid.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
5
|
// A grid component using the following libs as inspiration.
|
|
5
6
|
//
|
|
6
7
|
// For the implementation:
|
|
@@ -55,10 +56,11 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
|
|
|
55
56
|
} else {
|
|
56
57
|
var columnsBreakpointValues = resolveBreakpointValues({
|
|
57
58
|
values: ownerState.columns,
|
|
58
|
-
|
|
59
|
-
});
|
|
59
|
+
breakpoints: theme.breakpoints.values
|
|
60
|
+
});
|
|
61
|
+
var columnValue = _typeof(columnsBreakpointValues) === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues; // Keep 7 significant numbers.
|
|
60
62
|
|
|
61
|
-
var width = "".concat(Math.round(size /
|
|
63
|
+
var width = "".concat(Math.round(size / columnValue * 10e7) / 10e5, "%");
|
|
62
64
|
var more = {};
|
|
63
65
|
|
|
64
66
|
if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
|
|
@@ -90,12 +92,16 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
function generateDirection(_ref) {
|
|
95
|
+
export function generateDirection(_ref) {
|
|
94
96
|
var theme = _ref.theme,
|
|
95
97
|
ownerState = _ref.ownerState;
|
|
98
|
+
var directionValues = resolveBreakpointValues({
|
|
99
|
+
values: ownerState.direction,
|
|
100
|
+
breakpoints: theme.breakpoints.values
|
|
101
|
+
});
|
|
96
102
|
return handleBreakpoints({
|
|
97
103
|
theme: theme
|
|
98
|
-
},
|
|
104
|
+
}, directionValues, function (propValue) {
|
|
99
105
|
var output = {
|
|
100
106
|
flexDirection: propValue
|
|
101
107
|
};
|
|
@@ -109,7 +115,6 @@ function generateDirection(_ref) {
|
|
|
109
115
|
return output;
|
|
110
116
|
});
|
|
111
117
|
}
|
|
112
|
-
|
|
113
118
|
export function generateRowGap(_ref2) {
|
|
114
119
|
var theme = _ref2.theme,
|
|
115
120
|
ownerState = _ref2.ownerState;
|
|
@@ -118,9 +123,13 @@ export function generateRowGap(_ref2) {
|
|
|
118
123
|
var styles = {};
|
|
119
124
|
|
|
120
125
|
if (container && rowSpacing !== 0) {
|
|
126
|
+
var rowSpacingValues = resolveBreakpointValues({
|
|
127
|
+
values: rowSpacing,
|
|
128
|
+
breakpoints: theme.breakpoints.values
|
|
129
|
+
});
|
|
121
130
|
styles = handleBreakpoints({
|
|
122
131
|
theme: theme
|
|
123
|
-
},
|
|
132
|
+
}, rowSpacingValues, function (propValue) {
|
|
124
133
|
var themeSpacing = theme.spacing(propValue);
|
|
125
134
|
|
|
126
135
|
if (themeSpacing !== '0px') {
|
|
@@ -145,9 +154,13 @@ export function generateColumnGap(_ref4) {
|
|
|
145
154
|
var styles = {};
|
|
146
155
|
|
|
147
156
|
if (container && columnSpacing !== 0) {
|
|
157
|
+
var columnSpacingValues = resolveBreakpointValues({
|
|
158
|
+
values: columnSpacing,
|
|
159
|
+
breakpoints: theme.breakpoints.values
|
|
160
|
+
});
|
|
148
161
|
styles = handleBreakpoints({
|
|
149
162
|
theme: theme
|
|
150
|
-
},
|
|
163
|
+
}, columnSpacingValues, function (propValue) {
|
|
151
164
|
var themeSpacing = theme.spacing(propValue);
|
|
152
165
|
|
|
153
166
|
if (themeSpacing !== '0px') {
|
|
@@ -375,18 +388,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
375
388
|
item: PropTypes.bool,
|
|
376
389
|
|
|
377
390
|
/**
|
|
378
|
-
*
|
|
379
|
-
* It'
|
|
391
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
392
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
393
|
+
* If 'auto', the grid item's width matches its content.
|
|
394
|
+
* If false, the prop is ignored.
|
|
395
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
396
|
+
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
380
397
|
* @default false
|
|
381
398
|
*/
|
|
382
|
-
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
399
|
+
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
383
400
|
|
|
384
401
|
/**
|
|
385
|
-
*
|
|
386
|
-
* It'
|
|
402
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
403
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
404
|
+
* If 'auto', the grid item's width matches its content.
|
|
405
|
+
* If false, the prop is ignored.
|
|
406
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
407
|
+
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
387
408
|
* @default false
|
|
388
409
|
*/
|
|
389
|
-
md: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
410
|
+
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
390
411
|
|
|
391
412
|
/**
|
|
392
413
|
* Defines the vertical space between the type `item` components.
|
|
@@ -395,11 +416,15 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
395
416
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
396
417
|
|
|
397
418
|
/**
|
|
398
|
-
*
|
|
399
|
-
* It'
|
|
419
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
420
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
421
|
+
* If 'auto', the grid item's width matches its content.
|
|
422
|
+
* If false, the prop is ignored.
|
|
423
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
424
|
+
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
400
425
|
* @default false
|
|
401
426
|
*/
|
|
402
|
-
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
427
|
+
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
403
428
|
|
|
404
429
|
/**
|
|
405
430
|
* Defines the space between the type `item` components.
|
|
@@ -411,7 +436,7 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
411
436
|
/**
|
|
412
437
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
413
438
|
*/
|
|
414
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
439
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
415
440
|
|
|
416
441
|
/**
|
|
417
442
|
* Defines the `flex-wrap` style property.
|
|
@@ -421,18 +446,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
|
421
446
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
422
447
|
|
|
423
448
|
/**
|
|
424
|
-
*
|
|
425
|
-
* It'
|
|
449
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
450
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
451
|
+
* If 'auto', the grid item's width matches its content.
|
|
452
|
+
* If false, the prop is ignored.
|
|
453
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
454
|
+
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
426
455
|
* @default false
|
|
427
456
|
*/
|
|
428
|
-
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
457
|
+
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
429
458
|
|
|
430
459
|
/**
|
|
431
|
-
*
|
|
432
|
-
* It'
|
|
460
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
461
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
462
|
+
* If 'auto', the grid item's width matches its content.
|
|
463
|
+
* If false, the prop is ignored.
|
|
464
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
465
|
+
* The value is applied for all the screen sizes with the lowest priority.
|
|
433
466
|
* @default false
|
|
434
467
|
*/
|
|
435
|
-
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto'
|
|
468
|
+
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
436
469
|
|
|
437
470
|
/**
|
|
438
471
|
* If `true`, it sets `min-width: 0` on the item.
|
package/legacy/Icon/Icon.js
CHANGED
|
@@ -152,7 +152,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes
|
|
|
152
152
|
/**
|
|
153
153
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
154
154
|
*/
|
|
155
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
155
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
156
156
|
} : void 0;
|
|
157
157
|
Icon.muiName = 'Icon';
|
|
158
158
|
export default Icon;
|