@mui/material 5.15.21 → 5.16.1
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 +3 -3
- package/AccordionActions/AccordionActions.js +3 -3
- package/AccordionDetails/AccordionDetails.js +3 -3
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/Alert/Alert.d.ts +12 -3
- package/Alert/Alert.js +3 -3
- package/AlertTitle/AlertTitle.js +3 -3
- package/AppBar/AppBar.js +4 -3
- package/Autocomplete/Autocomplete.js +3 -3
- package/Avatar/Avatar.js +3 -3
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/Backdrop/Backdrop.js +2 -2
- package/Badge/Badge.js +3 -3
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -2
- package/ButtonBase/ButtonBase.js +2 -2
- package/ButtonBase/TouchRipple.js +2 -2
- package/ButtonGroup/ButtonGroup.js +2 -2
- package/CHANGELOG.md +63 -0
- package/Card/Card.js +2 -2
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActions/CardActions.js +2 -2
- package/CardContent/CardContent.js +2 -2
- package/CardHeader/CardHeader.js +2 -2
- package/CardMedia/CardMedia.js +2 -2
- package/Checkbox/Checkbox.js +2 -2
- package/Chip/Chip.js +2 -2
- package/CircularProgress/CircularProgress.js +2 -2
- package/Collapse/Collapse.js +2 -2
- package/Container/Container.js +2 -2
- package/CssBaseline/CssBaseline.js +2 -2
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
- package/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +1 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/Dialog/Dialog.js +2 -2
- package/DialogActions/DialogActions.js +2 -2
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContentText/DialogContentText.js +2 -2
- package/DialogTitle/DialogTitle.js +2 -2
- package/Divider/Divider.js +2 -2
- package/Drawer/Drawer.js +2 -2
- package/Fab/Fab.js +2 -2
- package/FilledInput/FilledInput.js +2 -2
- package/FormControl/FormControl.js +2 -2
- package/FormControlLabel/FormControlLabel.js +2 -2
- package/FormGroup/FormGroup.js +2 -2
- package/FormHelperText/FormHelperText.js +2 -2
- package/FormLabel/FormLabel.js +2 -2
- package/Grid/Grid.js +2 -2
- package/Icon/Icon.js +2 -2
- package/IconButton/IconButton.js +2 -2
- package/ImageList/ImageList.js +2 -2
- package/ImageListItem/ImageListItem.js +2 -2
- package/ImageListItemBar/ImageListItemBar.js +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +10 -0
- package/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/InitColorSchemeScript/index.d.ts +1 -0
- package/InitColorSchemeScript/index.js +1 -0
- package/InitColorSchemeScript/package.json +6 -0
- package/Input/Input.js +2 -2
- package/InputAdornment/InputAdornment.js +2 -2
- package/InputBase/InputBase.js +2 -2
- package/InputLabel/InputLabel.js +2 -2
- package/LinearProgress/LinearProgress.js +2 -2
- package/Link/Link.js +2 -2
- package/List/List.js +2 -2
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.js +2 -2
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemIcon/ListItemIcon.js +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/ListSubheader/ListSubheader.js +2 -2
- package/Menu/Menu.js +2 -2
- package/MenuItem/MenuItem.js +2 -2
- package/MobileStepper/MobileStepper.js +2 -2
- package/Modal/Modal.js +2 -2
- package/NativeSelect/NativeSelect.js +2 -2
- package/OutlinedInput/OutlinedInput.js +2 -2
- package/Pagination/Pagination.js +2 -2
- package/PaginationItem/PaginationItem.js +2 -2
- package/Paper/Paper.js +2 -2
- package/Popover/Popover.js +2 -2
- package/Popper/Popper.js +3 -2
- package/Radio/Radio.js +2 -2
- package/Rating/Rating.js +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/Select/Select.js +2 -2
- package/Skeleton/Skeleton.js +2 -2
- package/Slider/Slider.js +3 -3
- package/Snackbar/Snackbar.js +2 -2
- package/SnackbarContent/SnackbarContent.js +2 -2
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDialAction/SpeedDialAction.js +2 -2
- package/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/Stack/Stack.js +2 -2
- package/Step/Step.js +2 -2
- package/StepButton/StepButton.js +2 -2
- package/StepConnector/StepConnector.js +2 -2
- package/StepContent/StepContent.js +2 -2
- package/StepIcon/StepIcon.js +2 -2
- package/StepLabel/StepLabel.js +2 -2
- package/Stepper/Stepper.js +2 -2
- package/SvgIcon/SvgIcon.js +2 -2
- package/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/Switch/Switch.js +3 -3
- package/Tab/Tab.js +2 -2
- package/TabScrollButton/TabScrollButton.js +2 -2
- package/Table/Table.js +2 -2
- package/TableBody/TableBody.js +2 -2
- package/TableCell/TableCell.js +2 -2
- package/TableContainer/TableContainer.js +2 -2
- package/TableFooter/TableFooter.js +2 -2
- package/TableHead/TableHead.js +2 -2
- package/TablePagination/TablePagination.js +2 -2
- package/TableRow/TableRow.js +2 -2
- package/TableSortLabel/TableSortLabel.js +2 -2
- package/Tabs/Tabs.js +2 -2
- package/TextField/TextField.js +2 -2
- package/ToggleButton/ToggleButton.js +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/Toolbar/Toolbar.js +2 -2
- package/Tooltip/Tooltip.js +2 -2
- package/Typography/Typography.js +2 -2
- package/Unstable_Grid2/Grid2.js +3 -2
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +3 -3
- package/legacy/AccordionActions/AccordionActions.js +3 -3
- package/legacy/AccordionDetails/AccordionDetails.js +3 -3
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Alert/Alert.js +3 -3
- package/legacy/AlertTitle/AlertTitle.js +3 -3
- package/legacy/AppBar/AppBar.js +4 -3
- package/legacy/Autocomplete/Autocomplete.js +3 -3
- package/legacy/Avatar/Avatar.js +3 -3
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Backdrop/Backdrop.js +2 -2
- package/legacy/Badge/Badge.js +3 -3
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +2 -2
- package/legacy/ButtonBase/ButtonBase.js +2 -2
- package/legacy/ButtonBase/TouchRipple.js +2 -2
- package/legacy/ButtonGroup/ButtonGroup.js +2 -2
- package/legacy/Card/Card.js +2 -2
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CardActions/CardActions.js +2 -2
- package/legacy/CardContent/CardContent.js +2 -2
- package/legacy/CardHeader/CardHeader.js +2 -2
- package/legacy/CardMedia/CardMedia.js +2 -2
- package/legacy/Checkbox/Checkbox.js +2 -2
- package/legacy/Chip/Chip.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +2 -2
- package/legacy/Collapse/Collapse.js +2 -2
- package/legacy/Container/Container.js +2 -2
- package/legacy/CssBaseline/CssBaseline.js +2 -2
- package/legacy/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/legacy/DefaultPropsProvider/index.js +1 -0
- package/legacy/Dialog/Dialog.js +2 -2
- package/legacy/DialogActions/DialogActions.js +2 -2
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/DialogContentText/DialogContentText.js +2 -2
- package/legacy/DialogTitle/DialogTitle.js +2 -2
- package/legacy/Divider/Divider.js +2 -2
- package/legacy/Drawer/Drawer.js +2 -2
- package/legacy/Fab/Fab.js +2 -2
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/FormControl/FormControl.js +2 -2
- package/legacy/FormControlLabel/FormControlLabel.js +2 -2
- package/legacy/FormGroup/FormGroup.js +2 -2
- package/legacy/FormHelperText/FormHelperText.js +2 -2
- package/legacy/FormLabel/FormLabel.js +2 -2
- package/legacy/Grid/Grid.js +2 -2
- package/legacy/Icon/Icon.js +2 -2
- package/legacy/IconButton/IconButton.js +2 -2
- package/legacy/ImageList/ImageList.js +2 -2
- package/legacy/ImageListItem/ImageListItem.js +2 -2
- package/legacy/ImageListItemBar/ImageListItemBar.js +2 -2
- package/legacy/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/legacy/InitColorSchemeScript/index.js +1 -0
- package/legacy/Input/Input.js +2 -2
- package/legacy/InputAdornment/InputAdornment.js +2 -2
- package/legacy/InputBase/InputBase.js +2 -2
- package/legacy/InputLabel/InputLabel.js +2 -2
- package/legacy/LinearProgress/LinearProgress.js +2 -2
- package/legacy/Link/Link.js +2 -2
- package/legacy/List/List.js +2 -2
- package/legacy/ListItem/ListItem.js +2 -2
- package/legacy/ListItemAvatar/ListItemAvatar.js +2 -2
- package/legacy/ListItemButton/ListItemButton.js +2 -2
- package/legacy/ListItemIcon/ListItemIcon.js +2 -2
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/legacy/ListItemText/ListItemText.js +2 -2
- package/legacy/ListSubheader/ListSubheader.js +2 -2
- package/legacy/Menu/Menu.js +2 -2
- package/legacy/MenuItem/MenuItem.js +2 -2
- package/legacy/MobileStepper/MobileStepper.js +2 -2
- package/legacy/Modal/Modal.js +2 -2
- package/legacy/NativeSelect/NativeSelect.js +2 -2
- package/legacy/OutlinedInput/OutlinedInput.js +2 -2
- package/legacy/Pagination/Pagination.js +2 -2
- package/legacy/PaginationItem/PaginationItem.js +2 -2
- package/legacy/Paper/Paper.js +2 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Popper/Popper.js +3 -2
- package/legacy/Radio/Radio.js +2 -2
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/legacy/Select/Select.js +2 -2
- package/legacy/Skeleton/Skeleton.js +2 -2
- package/legacy/Slider/Slider.js +3 -3
- package/legacy/Snackbar/Snackbar.js +2 -2
- package/legacy/SnackbarContent/SnackbarContent.js +2 -2
- package/legacy/SpeedDial/SpeedDial.js +2 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +2 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/legacy/Stack/Stack.js +2 -2
- package/legacy/Step/Step.js +2 -2
- package/legacy/StepButton/StepButton.js +2 -2
- package/legacy/StepConnector/StepConnector.js +2 -2
- package/legacy/StepContent/StepContent.js +2 -2
- package/legacy/StepIcon/StepIcon.js +2 -2
- package/legacy/StepLabel/StepLabel.js +2 -2
- package/legacy/Stepper/Stepper.js +2 -2
- package/legacy/SvgIcon/SvgIcon.js +2 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/legacy/Switch/Switch.js +3 -3
- package/legacy/Tab/Tab.js +2 -2
- package/legacy/TabScrollButton/TabScrollButton.js +2 -2
- package/legacy/Table/Table.js +2 -2
- package/legacy/TableBody/TableBody.js +2 -2
- package/legacy/TableCell/TableCell.js +2 -2
- package/legacy/TableContainer/TableContainer.js +2 -2
- package/legacy/TableFooter/TableFooter.js +2 -2
- package/legacy/TableHead/TableHead.js +2 -2
- package/legacy/TablePagination/TablePagination.js +2 -2
- package/legacy/TableRow/TableRow.js +2 -2
- package/legacy/TableSortLabel/TableSortLabel.js +2 -2
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/TextField/TextField.js +2 -2
- package/legacy/ToggleButton/ToggleButton.js +2 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/legacy/Toolbar/Toolbar.js +2 -2
- package/legacy/Tooltip/Tooltip.js +2 -2
- package/legacy/Typography/Typography.js +2 -2
- package/legacy/Unstable_Grid2/Grid2.js +3 -2
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +19 -7
- package/modern/Accordion/Accordion.js +3 -3
- package/modern/AccordionActions/AccordionActions.js +3 -3
- package/modern/AccordionDetails/AccordionDetails.js +3 -3
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Alert/Alert.js +3 -3
- package/modern/AlertTitle/AlertTitle.js +3 -3
- package/modern/AppBar/AppBar.js +4 -3
- package/modern/Autocomplete/Autocomplete.js +3 -3
- package/modern/Avatar/Avatar.js +3 -3
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Backdrop/Backdrop.js +2 -2
- package/modern/Badge/Badge.js +3 -3
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +2 -2
- package/modern/ButtonBase/ButtonBase.js +2 -2
- package/modern/ButtonBase/TouchRipple.js +2 -2
- package/modern/ButtonGroup/ButtonGroup.js +2 -2
- package/modern/Card/Card.js +2 -2
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CardActions/CardActions.js +2 -2
- package/modern/CardContent/CardContent.js +2 -2
- package/modern/CardHeader/CardHeader.js +2 -2
- package/modern/CardMedia/CardMedia.js +2 -2
- package/modern/Checkbox/Checkbox.js +2 -2
- package/modern/Chip/Chip.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +2 -2
- package/modern/Collapse/Collapse.js +2 -2
- package/modern/Container/Container.js +2 -2
- package/modern/CssBaseline/CssBaseline.js +2 -2
- package/modern/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/Dialog/Dialog.js +2 -2
- package/modern/DialogActions/DialogActions.js +2 -2
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/DialogContentText/DialogContentText.js +2 -2
- package/modern/DialogTitle/DialogTitle.js +2 -2
- package/modern/Divider/Divider.js +2 -2
- package/modern/Drawer/Drawer.js +2 -2
- package/modern/Fab/Fab.js +2 -2
- package/modern/FilledInput/FilledInput.js +2 -2
- package/modern/FormControl/FormControl.js +2 -2
- package/modern/FormControlLabel/FormControlLabel.js +2 -2
- package/modern/FormGroup/FormGroup.js +2 -2
- package/modern/FormHelperText/FormHelperText.js +2 -2
- package/modern/FormLabel/FormLabel.js +2 -2
- package/modern/Grid/Grid.js +2 -2
- package/modern/Icon/Icon.js +2 -2
- package/modern/IconButton/IconButton.js +2 -2
- package/modern/ImageList/ImageList.js +2 -2
- package/modern/ImageListItem/ImageListItem.js +2 -2
- package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/Input/Input.js +2 -2
- package/modern/InputAdornment/InputAdornment.js +2 -2
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/InputLabel/InputLabel.js +2 -2
- package/modern/LinearProgress/LinearProgress.js +2 -2
- package/modern/Link/Link.js +2 -2
- package/modern/List/List.js +2 -2
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +2 -2
- package/modern/ListItemIcon/ListItemIcon.js +2 -2
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/ListSubheader/ListSubheader.js +2 -2
- package/modern/Menu/Menu.js +2 -2
- package/modern/MenuItem/MenuItem.js +2 -2
- package/modern/MobileStepper/MobileStepper.js +2 -2
- package/modern/Modal/Modal.js +2 -2
- package/modern/NativeSelect/NativeSelect.js +2 -2
- package/modern/OutlinedInput/OutlinedInput.js +2 -2
- package/modern/Pagination/Pagination.js +2 -2
- package/modern/PaginationItem/PaginationItem.js +2 -2
- package/modern/Paper/Paper.js +2 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Popper/Popper.js +3 -2
- package/modern/Radio/Radio.js +2 -2
- package/modern/Rating/Rating.js +2 -2
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/modern/Select/Select.js +2 -2
- package/modern/Skeleton/Skeleton.js +2 -2
- package/modern/Slider/Slider.js +3 -3
- package/modern/Snackbar/Snackbar.js +2 -2
- package/modern/SnackbarContent/SnackbarContent.js +2 -2
- package/modern/SpeedDial/SpeedDial.js +2 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +2 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/modern/Stack/Stack.js +2 -2
- package/modern/Step/Step.js +2 -2
- package/modern/StepButton/StepButton.js +2 -2
- package/modern/StepConnector/StepConnector.js +2 -2
- package/modern/StepContent/StepContent.js +2 -2
- package/modern/StepIcon/StepIcon.js +2 -2
- package/modern/StepLabel/StepLabel.js +2 -2
- package/modern/Stepper/Stepper.js +2 -2
- package/modern/SvgIcon/SvgIcon.js +2 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/modern/Switch/Switch.js +3 -3
- package/modern/Tab/Tab.js +2 -2
- package/modern/TabScrollButton/TabScrollButton.js +2 -2
- package/modern/Table/Table.js +2 -2
- package/modern/TableBody/TableBody.js +2 -2
- package/modern/TableCell/TableCell.js +2 -2
- package/modern/TableContainer/TableContainer.js +2 -2
- package/modern/TableFooter/TableFooter.js +2 -2
- package/modern/TableHead/TableHead.js +2 -2
- package/modern/TablePagination/TablePagination.js +2 -2
- package/modern/TableRow/TableRow.js +2 -2
- package/modern/TableSortLabel/TableSortLabel.js +2 -2
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/TextField/TextField.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +2 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/modern/Toolbar/Toolbar.js +2 -2
- package/modern/Tooltip/Tooltip.js +2 -2
- package/modern/Typography/Typography.js +2 -2
- package/modern/Unstable_Grid2/Grid2.js +3 -2
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +20 -7
- package/node/Accordion/Accordion.js +2 -2
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AppBar/AppBar.js +4 -3
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Avatar/Avatar.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Backdrop/Backdrop.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/Checkbox/Checkbox.js +2 -2
- package/node/Chip/Chip.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/Collapse/Collapse.js +2 -2
- package/node/Container/Container.js +2 -2
- package/node/CssBaseline/CssBaseline.js +2 -2
- package/node/DefaultPropsProvider/DefaultPropsProvider.js +37 -0
- package/node/DefaultPropsProvider/index.js +20 -0
- package/node/Dialog/Dialog.js +2 -2
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Drawer/Drawer.js +2 -2
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +2 -2
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/Grid/Grid.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/IconButton/IconButton.js +2 -2
- package/node/ImageList/ImageList.js +2 -2
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/InitColorSchemeScript/InitColorSchemeScript.js +23 -0
- package/node/InitColorSchemeScript/index.js +13 -0
- package/node/Input/Input.js +2 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputBase/InputBase.js +2 -2
- package/node/InputLabel/InputLabel.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/Link/Link.js +2 -2
- package/node/List/List.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/Menu/Menu.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +2 -2
- package/node/OutlinedInput/OutlinedInput.js +2 -2
- package/node/Pagination/Pagination.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/Paper/Paper.js +2 -2
- package/node/Popover/Popover.js +2 -2
- package/node/Popper/Popper.js +2 -1
- package/node/Radio/Radio.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/node/Select/Select.js +2 -2
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/Stack/Stack.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -2
- package/node/Stepper/Stepper.js +2 -2
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/node/Switch/Switch.js +2 -2
- package/node/Tab/Tab.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +2 -2
- package/node/Tabs/Tabs.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Typography/Typography.js +2 -2
- package/node/Unstable_Grid2/Grid2.js +2 -1
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +20 -8
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +13 -2
- package/styles/CssVarsProvider.js +20 -7
- package/styles/responsiveFontSizes.d.ts +3 -4
- package/umd/material-ui.development.js +261 -156
- package/umd/material-ui.production.min.js +2 -2
package/modern/AppBar/AppBar.js
CHANGED
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import Paper from '../Paper';
|
|
14
14
|
import { getAppBarUtilityClass } from './appBarClasses';
|
|
@@ -98,8 +98,9 @@ const AppBarRoot = styled(Paper, {
|
|
|
98
98
|
}, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
|
|
99
99
|
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
|
|
100
100
|
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
|
|
101
|
+
}, !['inherit', 'transparent'].includes(ownerState.color) && {
|
|
102
|
+
backgroundColor: 'var(--AppBar-background)'
|
|
101
103
|
}, {
|
|
102
|
-
backgroundColor: 'var(--AppBar-background)',
|
|
103
104
|
color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
|
|
104
105
|
}, ownerState.color === 'transparent' && {
|
|
105
106
|
backgroundImage: 'none',
|
|
@@ -108,7 +109,7 @@ const AppBarRoot = styled(Paper, {
|
|
|
108
109
|
}));
|
|
109
110
|
});
|
|
110
111
|
const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
|
111
|
-
const props =
|
|
112
|
+
const props = useDefaultProps({
|
|
112
113
|
props: inProps,
|
|
113
114
|
name: 'MuiAppBar'
|
|
114
115
|
});
|
|
@@ -26,13 +26,13 @@ import outlinedInputClasses from '../OutlinedInput/outlinedInputClasses';
|
|
|
26
26
|
import filledInputClasses from '../FilledInput/filledInputClasses';
|
|
27
27
|
import ClearIcon from '../internal/svg-icons/Close';
|
|
28
28
|
import ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown';
|
|
29
|
-
import { styled
|
|
29
|
+
import { styled } from '../zero-styled';
|
|
30
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
30
31
|
import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
|
|
31
32
|
import capitalize from '../utils/capitalize';
|
|
32
33
|
import useForkRef from '../utils/useForkRef';
|
|
33
34
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
35
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
|
-
const useThemeProps = createUseThemeProps('MuiAutocomplete');
|
|
36
36
|
const useUtilityClasses = ownerState => {
|
|
37
37
|
const {
|
|
38
38
|
classes,
|
|
@@ -406,7 +406,7 @@ const AutocompleteGroupUl = styled('ul', {
|
|
|
406
406
|
});
|
|
407
407
|
export { createFilterOptions };
|
|
408
408
|
const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
|
|
409
|
-
const props =
|
|
409
|
+
const props = useDefaultProps({
|
|
410
410
|
props: inProps,
|
|
411
411
|
name: 'MuiAutocomplete'
|
|
412
412
|
});
|
package/modern/Avatar/Avatar.js
CHANGED
|
@@ -7,12 +7,12 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import { styled
|
|
10
|
+
import { styled } from '../zero-styled';
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
12
|
import Person from '../internal/svg-icons/Person';
|
|
12
13
|
import { getAvatarUtilityClass } from './avatarClasses';
|
|
13
14
|
import useSlot from '../utils/useSlot';
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
const useThemeProps = createUseThemeProps('MuiAvatar');
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
classes,
|
|
@@ -142,7 +142,7 @@ function useLoaded({
|
|
|
142
142
|
return loaded;
|
|
143
143
|
}
|
|
144
144
|
const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
145
|
-
const props =
|
|
145
|
+
const props = useDefaultProps({
|
|
146
146
|
props: inProps,
|
|
147
147
|
name: 'MuiAvatar'
|
|
148
148
|
});
|
|
@@ -10,7 +10,7 @@ import clsx from 'clsx';
|
|
|
10
10
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import Avatar, { avatarClasses } from '../Avatar';
|
|
15
15
|
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -54,7 +54,7 @@ const AvatarGroupRoot = styled('div', {
|
|
|
54
54
|
};
|
|
55
55
|
});
|
|
56
56
|
const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {
|
|
57
|
-
const props =
|
|
57
|
+
const props = useDefaultProps({
|
|
58
58
|
props: inProps,
|
|
59
59
|
name: 'MuiAvatarGroup'
|
|
60
60
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import Fade from '../Fade';
|
|
13
13
|
import { getBackdropUtilityClass } from './backdropClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -48,7 +48,7 @@ const BackdropRoot = styled('div', {
|
|
|
48
48
|
backgroundColor: 'transparent'
|
|
49
49
|
}));
|
|
50
50
|
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
51
|
-
const props =
|
|
51
|
+
const props = useDefaultProps({
|
|
52
52
|
props: inProps,
|
|
53
53
|
name: 'MuiBackdrop'
|
|
54
54
|
});
|
package/modern/Badge/Badge.js
CHANGED
|
@@ -10,14 +10,14 @@ import usePreviousProps from '@mui/utils/usePreviousProps';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { useBadge } from '@mui/base/useBadge';
|
|
12
12
|
import { useSlotProps } from '@mui/base/utils';
|
|
13
|
-
import { styled
|
|
13
|
+
import { styled } from '../zero-styled';
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
15
|
import capitalize from '../utils/capitalize';
|
|
15
16
|
import badgeClasses, { getBadgeUtilityClass } from './badgeClasses';
|
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
19
|
const RADIUS_STANDARD = 10;
|
|
19
20
|
const RADIUS_DOT = 4;
|
|
20
|
-
const useThemeProps = createUseThemeProps('MuiBadge');
|
|
21
21
|
const useUtilityClasses = ownerState => {
|
|
22
22
|
const {
|
|
23
23
|
color,
|
|
@@ -213,7 +213,7 @@ const BadgeBadge = styled('span', {
|
|
|
213
213
|
}]
|
|
214
214
|
}));
|
|
215
215
|
const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
216
|
-
const props =
|
|
216
|
+
const props = useDefaultProps({
|
|
217
217
|
props: inProps,
|
|
218
218
|
name: 'MuiBadge'
|
|
219
219
|
});
|
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getBottomNavigationUtilityClass } from './bottomNavigationClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
@@ -34,7 +34,7 @@ const BottomNavigationRoot = styled('div', {
|
|
|
34
34
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
35
35
|
}));
|
|
36
36
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
37
|
-
const props =
|
|
37
|
+
const props = useDefaultProps({
|
|
38
38
|
props: inProps,
|
|
39
39
|
name: 'MuiBottomNavigation'
|
|
40
40
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import ButtonBase from '../ButtonBase';
|
|
13
13
|
import unsupportedProp from '../utils/unsupportedProp';
|
|
14
14
|
import bottomNavigationActionClasses, { getBottomNavigationActionUtilityClass } from './bottomNavigationActionClasses';
|
|
@@ -79,7 +79,7 @@ const BottomNavigationActionLabel = styled('span', {
|
|
|
79
79
|
}
|
|
80
80
|
}));
|
|
81
81
|
const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(inProps, ref) {
|
|
82
|
-
const props =
|
|
82
|
+
const props = useDefaultProps({
|
|
83
83
|
props: inProps,
|
|
84
84
|
name: 'MuiBottomNavigationAction'
|
|
85
85
|
});
|
|
@@ -11,7 +11,7 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
11
11
|
import { useSlotProps } from '@mui/base/utils';
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import Typography from '../Typography';
|
|
16
16
|
import BreadcrumbCollapsed from './BreadcrumbCollapsed';
|
|
17
17
|
import breadcrumbsClasses, { getBreadcrumbsUtilityClass } from './breadcrumbsClasses';
|
|
@@ -75,7 +75,7 @@ function insertSeparators(items, className, separator, ownerState) {
|
|
|
75
75
|
}, []);
|
|
76
76
|
}
|
|
77
77
|
const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, ref) {
|
|
78
|
-
const props =
|
|
78
|
+
const props = useDefaultProps({
|
|
79
79
|
props: inProps,
|
|
80
80
|
name: 'MuiBreadcrumbs'
|
|
81
81
|
});
|
package/modern/Button/Button.js
CHANGED
|
@@ -10,7 +10,7 @@ import resolveProps from '@mui/utils/resolveProps';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { alpha } from '@mui/system/colorManipulator';
|
|
12
12
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import ButtonBase from '../ButtonBase';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import buttonClasses, { getButtonUtilityClass } from './buttonClasses';
|
|
@@ -223,7 +223,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
223
223
|
const contextProps = React.useContext(ButtonGroupContext);
|
|
224
224
|
const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);
|
|
225
225
|
const resolvedProps = resolveProps(contextProps, inProps);
|
|
226
|
-
const props =
|
|
226
|
+
const props = useDefaultProps({
|
|
227
227
|
props: resolvedProps,
|
|
228
228
|
name: 'MuiButton'
|
|
229
229
|
});
|
|
@@ -10,7 +10,7 @@ import refType from '@mui/utils/refType';
|
|
|
10
10
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import useForkRef from '../utils/useForkRef';
|
|
15
15
|
import useEventCallback from '../utils/useEventCallback';
|
|
16
16
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
@@ -84,7 +84,7 @@ export const ButtonBaseRoot = styled('button', {
|
|
|
84
84
|
* It contains a load of style reset and some focus/ripple logic.
|
|
85
85
|
*/
|
|
86
86
|
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {
|
|
87
|
-
const props =
|
|
87
|
+
const props = useDefaultProps({
|
|
88
88
|
props: inProps,
|
|
89
89
|
name: 'MuiButtonBase'
|
|
90
90
|
});
|
|
@@ -10,7 +10,7 @@ import clsx from 'clsx';
|
|
|
10
10
|
import { keyframes } from '@mui/system';
|
|
11
11
|
import useTimeout from '@mui/utils/useTimeout';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import Ripple from './Ripple';
|
|
15
15
|
import touchRippleClasses from './touchRippleClasses';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -128,7 +128,7 @@ export const TouchRippleRipple = styled(Ripple, {
|
|
|
128
128
|
* TODO v5: Make private
|
|
129
129
|
*/
|
|
130
130
|
const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {
|
|
131
|
-
const props =
|
|
131
|
+
const props = useDefaultProps({
|
|
132
132
|
props: inProps,
|
|
133
133
|
name: 'MuiTouchRipple'
|
|
134
134
|
});
|
|
@@ -11,7 +11,7 @@ import { alpha } from '@mui/system/colorManipulator';
|
|
|
11
11
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
|
16
16
|
import ButtonGroupContext from './ButtonGroupContext';
|
|
17
17
|
import ButtonGroupButtonContext from './ButtonGroupButtonContext';
|
|
@@ -138,7 +138,7 @@ const ButtonGroupRoot = styled('div', {
|
|
|
138
138
|
})
|
|
139
139
|
}));
|
|
140
140
|
const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
|
|
141
|
-
const props =
|
|
141
|
+
const props = useDefaultProps({
|
|
142
142
|
props: inProps,
|
|
143
143
|
name: 'MuiButtonGroup'
|
|
144
144
|
});
|
package/modern/Card/Card.js
CHANGED
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import Paper from '../Paper';
|
|
14
14
|
import { getCardUtilityClass } from './cardClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ const CardRoot = styled(Paper, {
|
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
|
35
|
-
const props =
|
|
35
|
+
const props = useDefaultProps({
|
|
36
36
|
props: inProps,
|
|
37
37
|
name: 'MuiCard'
|
|
38
38
|
});
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import cardActionAreaClasses, { getCardActionAreaUtilityClass } from './cardActionAreaClasses';
|
|
13
13
|
import ButtonBase from '../ButtonBase';
|
|
@@ -67,7 +67,7 @@ const CardActionAreaFocusHighlight = styled('span', {
|
|
|
67
67
|
})
|
|
68
68
|
}));
|
|
69
69
|
const CardActionArea = /*#__PURE__*/React.forwardRef(function CardActionArea(inProps, ref) {
|
|
70
|
-
const props =
|
|
70
|
+
const props = useDefaultProps({
|
|
71
71
|
props: inProps,
|
|
72
72
|
name: 'MuiCardActionArea'
|
|
73
73
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getCardActionsUtilityClass } from './cardActionsClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
@@ -42,7 +42,7 @@ const CardActionsRoot = styled('div', {
|
|
|
42
42
|
}
|
|
43
43
|
}));
|
|
44
44
|
const CardActions = /*#__PURE__*/React.forwardRef(function CardActions(inProps, ref) {
|
|
45
|
-
const props =
|
|
45
|
+
const props = useDefaultProps({
|
|
46
46
|
props: inProps,
|
|
47
47
|
name: 'MuiCardActions'
|
|
48
48
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getCardContentUtilityClass } from './cardContentClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
@@ -33,7 +33,7 @@ const CardContentRoot = styled('div', {
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {
|
|
36
|
-
const props =
|
|
36
|
+
const props = useDefaultProps({
|
|
37
37
|
props: inProps,
|
|
38
38
|
name: 'MuiCardContent'
|
|
39
39
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Typography from '../Typography';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import cardHeaderClasses, { getCardHeaderUtilityClass } from './cardHeaderClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -67,7 +67,7 @@ const CardHeaderContent = styled('div', {
|
|
|
67
67
|
flex: '1 1 auto'
|
|
68
68
|
});
|
|
69
69
|
const CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(inProps, ref) {
|
|
70
|
-
const props =
|
|
70
|
+
const props = useDefaultProps({
|
|
71
71
|
props: inProps,
|
|
72
72
|
name: 'MuiCardHeader'
|
|
73
73
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getCardMediaUtilityClass } from './cardMediaClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -52,7 +52,7 @@ const CardMediaRoot = styled('div', {
|
|
|
52
52
|
const MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
|
|
53
53
|
const IMAGE_COMPONENTS = ['picture', 'img'];
|
|
54
54
|
const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(inProps, ref) {
|
|
55
|
-
const props =
|
|
55
|
+
const props = useDefaultProps({
|
|
56
56
|
props: inProps,
|
|
57
57
|
name: 'MuiCardMedia'
|
|
58
58
|
});
|
|
@@ -14,7 +14,7 @@ import CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank
|
|
|
14
14
|
import CheckBoxIcon from '../internal/svg-icons/CheckBox';
|
|
15
15
|
import IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckBox';
|
|
16
16
|
import capitalize from '../utils/capitalize';
|
|
17
|
-
import
|
|
17
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
18
18
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
19
19
|
import checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses';
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -66,7 +66,7 @@ const defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});
|
|
|
66
66
|
const defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});
|
|
67
67
|
const defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});
|
|
68
68
|
const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
69
|
-
const props =
|
|
69
|
+
const props = useDefaultProps({
|
|
70
70
|
props: inProps,
|
|
71
71
|
name: 'MuiCheckbox'
|
|
72
72
|
});
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -13,7 +13,7 @@ import useForkRef from '../utils/useForkRef';
|
|
|
13
13
|
import unsupportedProp from '../utils/unsupportedProp';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import ButtonBase from '../ButtonBase';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import styled from '../styles/styled';
|
|
18
18
|
import chipClasses, { getChipUtilityClass } from './chipClasses';
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -280,7 +280,7 @@ function isDeleteKeyboardEvent(keyboardEvent) {
|
|
|
280
280
|
* Chips represent complex entities in small blocks, such as a contact.
|
|
281
281
|
*/
|
|
282
282
|
const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
283
|
-
const props =
|
|
283
|
+
const props = useDefaultProps({
|
|
284
284
|
props: inProps,
|
|
285
285
|
name: 'MuiChip'
|
|
286
286
|
});
|
|
@@ -10,7 +10,7 @@ import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { keyframes, css } from '@mui/system';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
15
|
import { getCircularProgressUtilityClass } from './circularProgressClasses';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -118,7 +118,7 @@ const CircularProgressCircle = styled('circle', {
|
|
|
118
118
|
* attribute to `true` on that region until it has finished loading.
|
|
119
119
|
*/
|
|
120
120
|
const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {
|
|
121
|
-
const props =
|
|
121
|
+
const props = useDefaultProps({
|
|
122
122
|
props: inProps,
|
|
123
123
|
name: 'MuiCircularProgress'
|
|
124
124
|
});
|
|
@@ -11,7 +11,7 @@ import useTimeout from '@mui/utils/useTimeout';
|
|
|
11
11
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import { duration } from '../styles/createTransitions';
|
|
16
16
|
import { getTransitionProps } from '../transitions/utils';
|
|
17
17
|
import useTheme from '../styles/useTheme';
|
|
@@ -93,7 +93,7 @@ const CollapseWrapperInner = styled('div', {
|
|
|
93
93
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
94
94
|
*/
|
|
95
95
|
const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
96
|
-
const props =
|
|
96
|
+
const props = useDefaultProps({
|
|
97
97
|
props: inProps,
|
|
98
98
|
name: 'MuiCollapse'
|
|
99
99
|
});
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { createContainer } from '@mui/system';
|
|
5
5
|
import capitalize from '../utils/capitalize';
|
|
6
6
|
import styled from '../styles/styled';
|
|
7
|
-
import
|
|
7
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
8
8
|
const Container = createContainer({
|
|
9
9
|
createStyledComponent: styled('div', {
|
|
10
10
|
name: 'MuiContainer',
|
|
@@ -16,7 +16,7 @@ const Container = createContainer({
|
|
|
16
16
|
return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
|
17
17
|
}
|
|
18
18
|
}),
|
|
19
|
-
useThemeProps: inProps =>
|
|
19
|
+
useThemeProps: inProps => useDefaultProps({
|
|
20
20
|
props: inProps,
|
|
21
21
|
name: 'MuiContainer'
|
|
22
22
|
})
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import
|
|
6
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
7
7
|
import GlobalStyles from '../GlobalStyles';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -67,7 +67,7 @@ export const styles = (theme, enableColorScheme = false) => {
|
|
|
67
67
|
* Kickstart an elegant, consistent, and simple baseline to build upon.
|
|
68
68
|
*/
|
|
69
69
|
function CssBaseline(inProps) {
|
|
70
|
-
const props =
|
|
70
|
+
const props = useDefaultProps({
|
|
71
71
|
props: inProps,
|
|
72
72
|
name: 'MuiCssBaseline'
|
|
73
73
|
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function DefaultPropsProvider(props) {
|
|
9
|
+
return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, _extends({}, props));
|
|
10
|
+
}
|
|
11
|
+
process.env.NODE_ENV !== "production" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {
|
|
12
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
13
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
14
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
15
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
children: PropTypes.node,
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
value: PropTypes.object.isRequired
|
|
24
|
+
} : void 0;
|
|
25
|
+
export default DefaultPropsProvider;
|
|
26
|
+
export function useDefaultProps(params) {
|
|
27
|
+
return useSystemDefaultProps(params);
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, useDefaultProps } from './DefaultPropsProvider';
|
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -12,7 +12,7 @@ import capitalize from '../utils/capitalize';
|
|
|
12
12
|
import Modal from '../Modal';
|
|
13
13
|
import Fade from '../Fade';
|
|
14
14
|
import Paper from '../Paper';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import styled from '../styles/styled';
|
|
17
17
|
import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
|
|
18
18
|
import DialogContext from './DialogContext';
|
|
@@ -150,7 +150,7 @@ const DialogPaper = styled(Paper, {
|
|
|
150
150
|
* Dialogs are overlaid modal paper based components with a backdrop.
|
|
151
151
|
*/
|
|
152
152
|
const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
153
|
-
const props =
|
|
153
|
+
const props = useDefaultProps({
|
|
154
154
|
props: inProps,
|
|
155
155
|
name: 'MuiDialog'
|
|
156
156
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getDialogActionsUtilityClass } from './dialogActionsClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
@@ -44,7 +44,7 @@ const DialogActionsRoot = styled('div', {
|
|
|
44
44
|
}
|
|
45
45
|
}));
|
|
46
46
|
const DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {
|
|
47
|
-
const props =
|
|
47
|
+
const props = useDefaultProps({
|
|
48
48
|
props: inProps,
|
|
49
49
|
name: 'MuiDialogActions'
|
|
50
50
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getDialogContentUtilityClass } from './dialogContentClasses';
|
|
13
13
|
import dialogTitleClasses from '../DialogTitle/dialogTitleClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -50,7 +50,7 @@ const DialogContentRoot = styled('div', {
|
|
|
50
50
|
}
|
|
51
51
|
}));
|
|
52
52
|
const DialogContent = /*#__PURE__*/React.forwardRef(function DialogContent(inProps, ref) {
|
|
53
|
-
const props =
|
|
53
|
+
const props = useDefaultProps({
|
|
54
54
|
props: inProps,
|
|
55
55
|
name: 'MuiDialogContent'
|
|
56
56
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import Typography from '../Typography';
|
|
13
13
|
import { getDialogContentTextUtilityClass } from './dialogContentTextClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -29,7 +29,7 @@ const DialogContentTextRoot = styled(Typography, {
|
|
|
29
29
|
overridesResolver: (props, styles) => styles.root
|
|
30
30
|
})({});
|
|
31
31
|
const DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentText(inProps, ref) {
|
|
32
|
-
const props =
|
|
32
|
+
const props = useDefaultProps({
|
|
33
33
|
props: inProps,
|
|
34
34
|
name: 'MuiDialogContentText'
|
|
35
35
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Typography from '../Typography';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getDialogTitleUtilityClass } from './dialogTitleClasses';
|
|
14
14
|
import DialogContext from '../Dialog/DialogContext';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -31,7 +31,7 @@ const DialogTitleRoot = styled(Typography, {
|
|
|
31
31
|
flex: '0 0 auto'
|
|
32
32
|
});
|
|
33
33
|
const DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {
|
|
34
|
-
const props =
|
|
34
|
+
const props = useDefaultProps({
|
|
35
35
|
props: inProps,
|
|
36
36
|
name: 'MuiDialogTitle'
|
|
37
37
|
});
|