@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
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import capitalize from '../utils/capitalize';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import { getSvgIconUtilityClass } from './svgIconClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -59,7 +59,7 @@ var SvgIconRoot = styled('svg', {
|
|
|
59
59
|
};
|
|
60
60
|
});
|
|
61
61
|
var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
62
|
-
var props =
|
|
62
|
+
var props = useDefaultProps({
|
|
63
63
|
props: inProps,
|
|
64
64
|
name: 'MuiSvgIcon'
|
|
65
65
|
});
|
|
@@ -6,8 +6,8 @@ import * as React from 'react';
|
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
9
|
-
import useThemeProps from '@mui/system/useThemeProps';
|
|
10
9
|
import { NoSsr } from '@mui/base';
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
|
|
12
12
|
import useForkRef from '../utils/useForkRef';
|
|
13
13
|
import ownerDocument from '../utils/ownerDocument';
|
|
@@ -116,7 +116,7 @@ function computeHasNativeHandler(_ref) {
|
|
|
116
116
|
}
|
|
117
117
|
var iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
118
118
|
var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {
|
|
119
|
-
var props =
|
|
119
|
+
var props = useDefaultProps({
|
|
120
120
|
name: 'MuiSwipeableDrawer',
|
|
121
121
|
props: inProps
|
|
122
122
|
});
|
package/legacy/Switch/Switch.js
CHANGED
|
@@ -14,11 +14,11 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
14
14
|
import { alpha, darken, lighten } from '@mui/system/colorManipulator';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import SwitchBase from '../internal/SwitchBase';
|
|
17
|
-
import { styled
|
|
17
|
+
import { styled } from '../zero-styled';
|
|
18
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
18
19
|
import switchClasses, { getSwitchUtilityClass } from './switchClasses';
|
|
19
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
var useThemeProps = createUseThemeProps('MuiSwitch');
|
|
22
22
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
23
23
|
var classes = ownerState.classes,
|
|
24
24
|
edge = ownerState.edge,
|
|
@@ -198,7 +198,7 @@ var SwitchThumb = styled('span', {
|
|
|
198
198
|
};
|
|
199
199
|
});
|
|
200
200
|
var Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {
|
|
201
|
-
var props =
|
|
201
|
+
var props = useDefaultProps({
|
|
202
202
|
props: inProps,
|
|
203
203
|
name: 'MuiSwitch'
|
|
204
204
|
});
|
package/legacy/Tab/Tab.js
CHANGED
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import unsupportedProp from '../utils/unsupportedProp';
|
|
15
15
|
import tabClasses, { getTabUtilityClass } from './tabClasses';
|
|
@@ -94,7 +94,7 @@ var TabRoot = styled(ButtonBase, {
|
|
|
94
94
|
});
|
|
95
95
|
});
|
|
96
96
|
var Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
97
|
-
var props =
|
|
97
|
+
var props = useDefaultProps({
|
|
98
98
|
props: inProps,
|
|
99
99
|
name: 'MuiTab'
|
|
100
100
|
});
|
|
@@ -13,7 +13,7 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
13
13
|
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
|
|
14
14
|
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
|
|
15
15
|
import ButtonBase from '../ButtonBase';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import styled from '../styles/styled';
|
|
18
18
|
import tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses';
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -51,7 +51,7 @@ var TabScrollButtonRoot = styled(ButtonBase, {
|
|
|
51
51
|
});
|
|
52
52
|
var TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
53
53
|
var _slots$StartScrollBut, _slots$EndScrollButto;
|
|
54
|
-
var props =
|
|
54
|
+
var props = useDefaultProps({
|
|
55
55
|
props: inProps,
|
|
56
56
|
name: 'MuiTabScrollButton'
|
|
57
57
|
});
|
package/legacy/Table/Table.js
CHANGED
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import TableContext from './TableContext';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import { getTableUtilityClass } from './tableClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -46,7 +46,7 @@ var TableRoot = styled('table', {
|
|
|
46
46
|
});
|
|
47
47
|
var defaultComponent = 'table';
|
|
48
48
|
var Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {
|
|
49
|
-
var props =
|
|
49
|
+
var props = useDefaultProps({
|
|
50
50
|
props: inProps,
|
|
51
51
|
name: 'MuiTable'
|
|
52
52
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import { getTableBodyUtilityClass } from './tableBodyClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ var tablelvl2 = {
|
|
|
32
32
|
};
|
|
33
33
|
var defaultComponent = 'tbody';
|
|
34
34
|
var TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {
|
|
35
|
-
var props =
|
|
35
|
+
var props = useDefaultProps({
|
|
36
36
|
props: inProps,
|
|
37
37
|
name: 'MuiTableBody'
|
|
38
38
|
});
|
|
@@ -11,7 +11,7 @@ import { darken, alpha, lighten } from '@mui/system/colorManipulator';
|
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import TableContext from '../Table/TableContext';
|
|
13
13
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
16
|
import tableCellClasses, { getTableCellUtilityClass } from './tableCellClasses';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -92,7 +92,7 @@ var TableCellRoot = styled('td', {
|
|
|
92
92
|
* or otherwise a `<td>` element.
|
|
93
93
|
*/
|
|
94
94
|
var TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {
|
|
95
|
-
var props =
|
|
95
|
+
var props = useDefaultProps({
|
|
96
96
|
props: inProps,
|
|
97
97
|
name: 'MuiTableCell'
|
|
98
98
|
});
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
11
|
import { getTableContainerUtilityClass } from './tableContainerClasses';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -28,7 +28,7 @@ var TableContainerRoot = styled('div', {
|
|
|
28
28
|
overflowX: 'auto'
|
|
29
29
|
});
|
|
30
30
|
var TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(inProps, ref) {
|
|
31
|
-
var props =
|
|
31
|
+
var props = useDefaultProps({
|
|
32
32
|
props: inProps,
|
|
33
33
|
name: 'MuiTableContainer'
|
|
34
34
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import { getTableFooterUtilityClass } from './tableFooterClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ var tablelvl2 = {
|
|
|
32
32
|
};
|
|
33
33
|
var defaultComponent = 'tfoot';
|
|
34
34
|
var TableFooter = /*#__PURE__*/React.forwardRef(function TableFooter(inProps, ref) {
|
|
35
|
-
var props =
|
|
35
|
+
var props = useDefaultProps({
|
|
36
36
|
props: inProps,
|
|
37
37
|
name: 'MuiTableFooter'
|
|
38
38
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import { getTableHeadUtilityClass } from './tableHeadClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ var tablelvl2 = {
|
|
|
32
32
|
};
|
|
33
33
|
var defaultComponent = 'thead';
|
|
34
34
|
var TableHead = /*#__PURE__*/React.forwardRef(function TableHead(inProps, ref) {
|
|
35
|
-
var props =
|
|
35
|
+
var props = useDefaultProps({
|
|
36
36
|
props: inProps,
|
|
37
37
|
name: 'MuiTableHead'
|
|
38
38
|
});
|
|
@@ -12,7 +12,7 @@ import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
|
12
12
|
import { isHostComponent } from '@mui/base/utils';
|
|
13
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import InputBase from '../InputBase';
|
|
17
17
|
import MenuItem from '../MenuItem';
|
|
18
18
|
import Select from '../Select';
|
|
@@ -152,7 +152,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
152
152
|
*/
|
|
153
153
|
var TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(inProps, ref) {
|
|
154
154
|
var _slotProps$select;
|
|
155
|
-
var props =
|
|
155
|
+
var props = useDefaultProps({
|
|
156
156
|
props: inProps,
|
|
157
157
|
name: 'MuiTablePagination'
|
|
158
158
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import tableRowClasses, { getTableRowUtilityClass } from './tableRowClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -54,7 +54,7 @@ var defaultComponent = 'tr';
|
|
|
54
54
|
* based on the material table element parent (head, body, etc).
|
|
55
55
|
*/
|
|
56
56
|
var TableRow = /*#__PURE__*/React.forwardRef(function TableRow(inProps, ref) {
|
|
57
|
-
var props =
|
|
57
|
+
var props = useDefaultProps({
|
|
58
58
|
props: inProps,
|
|
59
59
|
name: 'MuiTableRow'
|
|
60
60
|
});
|
|
@@ -10,7 +10,7 @@ import * as React from 'react';
|
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import tableSortLabelClasses, { getTableSortLabelUtilityClass } from './tableSortLabelClasses';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -85,7 +85,7 @@ var TableSortLabelIcon = styled('span', {
|
|
|
85
85
|
* A button based label for placing inside `TableCell` for column sorting.
|
|
86
86
|
*/
|
|
87
87
|
var TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(inProps, ref) {
|
|
88
|
-
var props =
|
|
88
|
+
var props = useDefaultProps({
|
|
89
89
|
props: inProps,
|
|
90
90
|
name: 'MuiTableSortLabel'
|
|
91
91
|
});
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -12,7 +12,7 @@ import { useSlotProps } from '@mui/base/utils';
|
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
13
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import useTheme from '../styles/useTheme';
|
|
17
17
|
import debounce from '../utils/debounce';
|
|
18
18
|
import { getNormalizedScrollLeft, detectScrollType } from '../utils/scrollLeft';
|
|
@@ -195,7 +195,7 @@ var TabsScrollbarSize = styled(ScrollbarSize)({
|
|
|
195
195
|
var defaultIndicatorStyle = {};
|
|
196
196
|
var warnedOnceTabPresent = false;
|
|
197
197
|
var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
198
|
-
var props =
|
|
198
|
+
var props = useDefaultProps({
|
|
199
199
|
props: inProps,
|
|
200
200
|
name: 'MuiTabs'
|
|
201
201
|
});
|
|
@@ -9,7 +9,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
9
9
|
import useId from '@mui/utils/useId';
|
|
10
10
|
import refType from '@mui/utils/refType';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import Input from '../Input';
|
|
14
14
|
import FilledInput from '../FilledInput';
|
|
15
15
|
import OutlinedInput from '../OutlinedInput';
|
|
@@ -73,7 +73,7 @@ var TextFieldRoot = styled(FormControl, {
|
|
|
73
73
|
* - using the underlying components directly as shown in the demos
|
|
74
74
|
*/
|
|
75
75
|
var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
76
|
-
var props =
|
|
76
|
+
var props = useDefaultProps({
|
|
77
77
|
props: inProps,
|
|
78
78
|
name: 'MuiTextField'
|
|
79
79
|
});
|
|
@@ -12,7 +12,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
12
12
|
import { alpha } from '../styles';
|
|
13
13
|
import ButtonBase from '../ButtonBase';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import styled from '../styles/styled';
|
|
17
17
|
import toggleButtonClasses, { getToggleButtonUtilityClass } from './toggleButtonClasses';
|
|
18
18
|
import ToggleButtonGroupContext from '../ToggleButtonGroup/ToggleButtonGroupContext';
|
|
@@ -91,7 +91,7 @@ var ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps,
|
|
|
91
91
|
var resolvedProps = resolveProps(_extends({}, contextProps, {
|
|
92
92
|
selected: isValueSelected(inProps.value, contextValue)
|
|
93
93
|
}), inProps);
|
|
94
|
-
var props =
|
|
94
|
+
var props = useDefaultProps({
|
|
95
95
|
props: resolvedProps,
|
|
96
96
|
name: 'MuiToggleButton'
|
|
97
97
|
});
|
|
@@ -10,7 +10,7 @@ import clsx from 'clsx';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from './toggleButtonGroupClasses';
|
|
16
16
|
import ToggleButtonGroupContext from './ToggleButtonGroupContext';
|
|
@@ -77,7 +77,7 @@ var ToggleButtonGroupRoot = styled('div', {
|
|
|
77
77
|
}));
|
|
78
78
|
});
|
|
79
79
|
var ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGroup(inProps, ref) {
|
|
80
|
-
var props =
|
|
80
|
+
var props = useDefaultProps({
|
|
81
81
|
props: inProps,
|
|
82
82
|
name: 'MuiToggleButtonGroup'
|
|
83
83
|
});
|
|
@@ -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 { getToolbarUtilityClass } from './toolbarClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -49,7 +49,7 @@ var ToolbarRoot = styled('div', {
|
|
|
49
49
|
return ownerState.variant === 'regular' && theme.mixins.toolbar;
|
|
50
50
|
});
|
|
51
51
|
var Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
52
|
-
var props =
|
|
52
|
+
var props = useDefaultProps({
|
|
53
53
|
props: inProps,
|
|
54
54
|
name: 'MuiToolbar'
|
|
55
55
|
});
|
|
@@ -15,7 +15,7 @@ import { alpha } from '@mui/system/colorManipulator';
|
|
|
15
15
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
16
16
|
import styled from '../styles/styled';
|
|
17
17
|
import useTheme from '../styles/useTheme';
|
|
18
|
-
import
|
|
18
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
19
19
|
import capitalize from '../utils/capitalize';
|
|
20
20
|
import Grow from '../Grow';
|
|
21
21
|
import Popper from '../Popper';
|
|
@@ -211,7 +211,7 @@ function composeEventHandler(handler, eventHandler) {
|
|
|
211
211
|
// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
|
|
212
212
|
var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
213
213
|
var _ref5, _slots$popper, _ref6, _ref7, _slots$transition, _ref8, _slots$tooltip, _ref9, _slots$arrow, _slotProps$popper, _ref10, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref11, _slotProps$tooltip2, _slotProps$arrow, _ref12, _slotProps$arrow2;
|
|
214
|
-
var props =
|
|
214
|
+
var props = useDefaultProps({
|
|
215
215
|
props: inProps,
|
|
216
216
|
name: 'MuiTooltip'
|
|
217
217
|
});
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import { extendSxProp } from '@mui/system/styleFunctionSx';
|
|
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 { getTypographyUtilityClass } from './typographyClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -77,7 +77,7 @@ var transformDeprecatedColors = function transformDeprecatedColors(color) {
|
|
|
77
77
|
return colorTransformations[color] || color;
|
|
78
78
|
};
|
|
79
79
|
var Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
|
|
80
|
-
var themeProps =
|
|
80
|
+
var themeProps = useDefaultProps({
|
|
81
81
|
props: inProps,
|
|
82
82
|
name: 'MuiTypography'
|
|
83
83
|
});
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { createGrid as createGrid2 } from '@mui/system/Unstable_Grid';
|
|
5
|
-
import { styled
|
|
5
|
+
import { styled } from '../styles';
|
|
6
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
6
7
|
var Grid2 = createGrid2({
|
|
7
8
|
createStyledComponent: styled('div', {
|
|
8
9
|
name: 'MuiGrid2',
|
|
@@ -13,7 +14,7 @@ var Grid2 = createGrid2({
|
|
|
13
14
|
}),
|
|
14
15
|
componentName: 'MuiGrid2',
|
|
15
16
|
useThemeProps: function useThemeProps(inProps) {
|
|
16
|
-
return
|
|
17
|
+
return useDefaultProps({
|
|
17
18
|
props: inProps,
|
|
18
19
|
name: 'MuiGrid2'
|
|
19
20
|
});
|
package/legacy/index.js
CHANGED
|
@@ -10,16 +10,17 @@ import experimental_extendTheme from './experimental_extendTheme';
|
|
|
10
10
|
import createTypography from './createTypography';
|
|
11
11
|
import excludeVariablesFromRoot from './excludeVariablesFromRoot';
|
|
12
12
|
import THEME_ID from './identifier';
|
|
13
|
+
import { defaultConfig } from '../InitColorSchemeScript/InitColorSchemeScript';
|
|
13
14
|
var defaultTheme = experimental_extendTheme();
|
|
14
15
|
var _createCssVarsProvide = createCssVarsProvider({
|
|
15
16
|
themeId: THEME_ID,
|
|
16
17
|
theme: defaultTheme,
|
|
17
|
-
attribute:
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
attribute: defaultConfig.attribute,
|
|
19
|
+
colorSchemeStorageKey: defaultConfig.colorSchemeStorageKey,
|
|
20
|
+
modeStorageKey: defaultConfig.modeStorageKey,
|
|
20
21
|
defaultColorScheme: {
|
|
21
|
-
light:
|
|
22
|
-
dark:
|
|
22
|
+
light: defaultConfig.defaultLightColorScheme,
|
|
23
|
+
dark: defaultConfig.defaultDarkColorScheme
|
|
23
24
|
},
|
|
24
25
|
resolveTheme: function resolveTheme(theme) {
|
|
25
26
|
var newTheme = _extends({}, theme, {
|
|
@@ -37,5 +38,16 @@ var _createCssVarsProvide = createCssVarsProvider({
|
|
|
37
38
|
}),
|
|
38
39
|
CssVarsProvider = _createCssVarsProvide.CssVarsProvider,
|
|
39
40
|
useColorScheme = _createCssVarsProvide.useColorScheme,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
getInitColorSchemeScriptSystem = _createCssVarsProvide.getInitColorSchemeScript;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `InitColorSchemeScript` instead
|
|
44
|
+
* ```diff
|
|
45
|
+
* - import { getInitColorSchemeScript } from '@mui/material/styles';
|
|
46
|
+
* + import InitColorSchemeScript from '@mui/material/InitColorSchemeScript';
|
|
47
|
+
*
|
|
48
|
+
* - getInitColorSchemeScript();
|
|
49
|
+
* + <InitColorSchemeScript />;
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export var getInitColorSchemeScript = getInitColorSchemeScriptSystem;
|
|
53
|
+
export { useColorScheme, CssVarsProvider as Experimental_CssVarsProvider };
|
|
@@ -9,7 +9,8 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
|
-
import { styled
|
|
12
|
+
import { styled } from '../zero-styled';
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
14
|
import Collapse from '../Collapse';
|
|
14
15
|
import Paper from '../Paper';
|
|
15
16
|
import AccordionContext from './AccordionContext';
|
|
@@ -18,7 +19,6 @@ import useSlot from '../utils/useSlot';
|
|
|
18
19
|
import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
|
|
19
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
const useThemeProps = createUseThemeProps('MuiAccordion');
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
24
24
|
classes,
|
|
@@ -122,7 +122,7 @@ const AccordionRoot = styled(Paper, {
|
|
|
122
122
|
}]
|
|
123
123
|
}));
|
|
124
124
|
const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
|
125
|
-
const props =
|
|
125
|
+
const props = useDefaultProps({
|
|
126
126
|
props: inProps,
|
|
127
127
|
name: 'MuiAccordion'
|
|
128
128
|
});
|
|
@@ -7,10 +7,10 @@ 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 { getAccordionActionsUtilityClass } from './accordionActionsClasses';
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const useThemeProps = createUseThemeProps('MuiAccordionActions');
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
15
15
|
const {
|
|
16
16
|
classes,
|
|
@@ -45,7 +45,7 @@ const AccordionActionsRoot = styled('div', {
|
|
|
45
45
|
}]
|
|
46
46
|
});
|
|
47
47
|
const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(inProps, ref) {
|
|
48
|
-
const props =
|
|
48
|
+
const props = useDefaultProps({
|
|
49
49
|
props: inProps,
|
|
50
50
|
name: 'MuiAccordionActions'
|
|
51
51
|
});
|
|
@@ -7,10 +7,10 @@ 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 { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const useThemeProps = createUseThemeProps('MuiAccordionDetails');
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
15
15
|
const {
|
|
16
16
|
classes
|
|
@@ -30,7 +30,7 @@ const AccordionDetailsRoot = styled('div', {
|
|
|
30
30
|
padding: theme.spacing(1, 2, 2)
|
|
31
31
|
}));
|
|
32
32
|
const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(inProps, ref) {
|
|
33
|
-
const props =
|
|
33
|
+
const props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiAccordionDetails'
|
|
36
36
|
});
|
|
@@ -7,13 +7,13 @@ 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 ButtonBase from '../ButtonBase';
|
|
12
13
|
import AccordionContext from '../Accordion/AccordionContext';
|
|
13
14
|
import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
const useThemeProps = createUseThemeProps('MuiAccordionSummary');
|
|
17
17
|
const useUtilityClasses = ownerState => {
|
|
18
18
|
const {
|
|
19
19
|
classes,
|
|
@@ -103,7 +103,7 @@ const AccordionSummaryExpandIconWrapper = styled('div', {
|
|
|
103
103
|
}
|
|
104
104
|
}));
|
|
105
105
|
const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(inProps, ref) {
|
|
106
|
-
const props =
|
|
106
|
+
const props = useDefaultProps({
|
|
107
107
|
props: inProps,
|
|
108
108
|
name: 'MuiAccordionSummary'
|
|
109
109
|
});
|
package/modern/Alert/Alert.js
CHANGED
|
@@ -8,7 +8,8 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { darken, lighten } from '@mui/system/colorManipulator';
|
|
11
|
-
import { styled
|
|
11
|
+
import { styled } from '../zero-styled';
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
13
|
import useSlot from '../utils/useSlot';
|
|
13
14
|
import capitalize from '../utils/capitalize';
|
|
14
15
|
import Paper from '../Paper';
|
|
@@ -21,7 +22,6 @@ import InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';
|
|
|
21
22
|
import CloseIcon from '../internal/svg-icons/Close';
|
|
22
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
const useThemeProps = createUseThemeProps('MuiAlert');
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
variant,
|
|
@@ -146,7 +146,7 @@ const defaultIconMapping = {
|
|
|
146
146
|
})
|
|
147
147
|
};
|
|
148
148
|
const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
149
|
-
const props =
|
|
149
|
+
const props = useDefaultProps({
|
|
150
150
|
props: inProps,
|
|
151
151
|
name: 'MuiAlert'
|
|
152
152
|
});
|
|
@@ -7,11 +7,11 @@ 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 Typography from '../Typography';
|
|
12
13
|
import { getAlertTitleUtilityClass } from './alertTitleClasses';
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
const useThemeProps = createUseThemeProps('MuiAlertTitle');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes
|
|
@@ -34,7 +34,7 @@ const AlertTitleRoot = styled(Typography, {
|
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, ref) {
|
|
37
|
-
const props =
|
|
37
|
+
const props = useDefaultProps({
|
|
38
38
|
props: inProps,
|
|
39
39
|
name: 'MuiAlertTitle'
|
|
40
40
|
});
|