@mui/material 5.15.21 → 5.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +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 +2 -2
- 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 +28 -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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +240 -155
- package/umd/material-ui.production.min.js +2 -2
|
@@ -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 { useRtl } from '@mui/system/RtlProvider';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import paginationItemClasses, { getPaginationItemUtilityClass } from './paginationItemClasses';
|
|
14
14
|
import ButtonBase from '../ButtonBase';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
@@ -206,7 +206,7 @@ const PaginationItemPageIcon = styled('div', {
|
|
|
206
206
|
fontSize: theme.typography.pxToRem(22)
|
|
207
207
|
}));
|
|
208
208
|
const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inProps, ref) {
|
|
209
|
-
const props =
|
|
209
|
+
const props = useDefaultProps({
|
|
210
210
|
props: inProps,
|
|
211
211
|
name: 'MuiPaginationItem'
|
|
212
212
|
});
|
package/modern/Paper/Paper.js
CHANGED
|
@@ -12,7 +12,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
12
12
|
import { alpha } from '@mui/system/colorManipulator';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import getOverlayAlpha from '../styles/getOverlayAlpha';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import useTheme from '../styles/useTheme';
|
|
17
17
|
import { getPaperUtilityClass } from './paperClasses';
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -56,7 +56,7 @@ const PaperRoot = styled('div', {
|
|
|
56
56
|
backgroundImage: theme.vars.overlays?.[ownerState.elevation]
|
|
57
57
|
})));
|
|
58
58
|
const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
59
|
-
const props =
|
|
59
|
+
const props = useDefaultProps({
|
|
60
60
|
props: inProps,
|
|
61
61
|
name: 'MuiPaper'
|
|
62
62
|
});
|
|
@@ -16,7 +16,7 @@ import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
|
16
16
|
import integerPropType from '@mui/utils/integerPropType';
|
|
17
17
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
18
18
|
import styled from '../styles/styled';
|
|
19
|
-
import
|
|
19
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
20
20
|
import debounce from '../utils/debounce';
|
|
21
21
|
import ownerDocument from '../utils/ownerDocument';
|
|
22
22
|
import ownerWindow from '../utils/ownerWindow';
|
|
@@ -87,7 +87,7 @@ export const PopoverPaper = styled(PaperBase, {
|
|
|
87
87
|
outline: 0
|
|
88
88
|
});
|
|
89
89
|
const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
90
|
-
const props =
|
|
90
|
+
const props = useDefaultProps({
|
|
91
91
|
props: inProps,
|
|
92
92
|
name: 'MuiPopover'
|
|
93
93
|
});
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -9,7 +9,8 @@ import refType from '@mui/utils/refType';
|
|
|
9
9
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import * as React from 'react';
|
|
12
|
-
import { styled
|
|
12
|
+
import { styled } from '../styles';
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
15
|
const PopperRoot = styled(BasePopper, {
|
|
15
16
|
name: 'MuiPopper',
|
|
@@ -31,7 +32,7 @@ const PopperRoot = styled(BasePopper, {
|
|
|
31
32
|
*/
|
|
32
33
|
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
33
34
|
const theme = useTheme();
|
|
34
|
-
const props =
|
|
35
|
+
const props = useDefaultProps({
|
|
35
36
|
props: inProps,
|
|
36
37
|
name: 'MuiPopper'
|
|
37
38
|
});
|
package/modern/Radio/Radio.js
CHANGED
|
@@ -10,7 +10,7 @@ import refType from '@mui/utils/refType';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { alpha } from '@mui/system/colorManipulator';
|
|
12
12
|
import SwitchBase from '../internal/SwitchBase';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import RadioButtonIcon from './RadioButtonIcon';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import createChainedFunction from '../utils/createChainedFunction';
|
|
@@ -74,7 +74,7 @@ const defaultCheckedIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {
|
|
|
74
74
|
});
|
|
75
75
|
const defaultIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {});
|
|
76
76
|
const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
77
|
-
const props =
|
|
77
|
+
const props = useDefaultProps({
|
|
78
78
|
props: inProps,
|
|
79
79
|
name: 'MuiRadio'
|
|
80
80
|
});
|
package/modern/Rating/Rating.js
CHANGED
|
@@ -15,7 +15,7 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
15
15
|
import { capitalize, useForkRef, useIsFocusVisible, useControlled, unstable_useId as useId } from '../utils';
|
|
16
16
|
import Star from '../internal/svg-icons/Star';
|
|
17
17
|
import StarBorder from '../internal/svg-icons/StarBorder';
|
|
18
|
-
import
|
|
18
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
19
19
|
import styled, { slotShouldForwardProp } from '../styles/styled';
|
|
20
20
|
import ratingClasses, { getRatingUtilityClass } from './ratingClasses';
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -267,7 +267,7 @@ function defaultLabelText(value) {
|
|
|
267
267
|
return `${value} Star${value !== 1 ? 's' : ''}`;
|
|
268
268
|
}
|
|
269
269
|
const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
270
|
-
const props =
|
|
270
|
+
const props = useDefaultProps({
|
|
271
271
|
name: 'MuiRating',
|
|
272
272
|
props: inProps
|
|
273
273
|
});
|
|
@@ -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 { html, body } from '../CssBaseline/CssBaseline';
|
|
13
13
|
import { getScopedCssBaselineUtilityClass } from './scopedCssBaselineClasses';
|
|
@@ -47,7 +47,7 @@ const ScopedCssBaselineRoot = styled('div', {
|
|
|
47
47
|
}, colorSchemeStyles);
|
|
48
48
|
});
|
|
49
49
|
const ScopedCssBaseline = /*#__PURE__*/React.forwardRef(function ScopedCssBaseline(inProps, ref) {
|
|
50
|
-
const props =
|
|
50
|
+
const props = useDefaultProps({
|
|
51
51
|
props: inProps,
|
|
52
52
|
name: 'MuiScopedCssBaseline'
|
|
53
53
|
});
|
package/modern/Select/Select.js
CHANGED
|
@@ -16,7 +16,7 @@ import Input from '../Input';
|
|
|
16
16
|
import NativeSelectInput from '../NativeSelect/NativeSelectInput';
|
|
17
17
|
import FilledInput from '../FilledInput';
|
|
18
18
|
import OutlinedInput from '../OutlinedInput';
|
|
19
|
-
import
|
|
19
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
20
20
|
import useForkRef from '../utils/useForkRef';
|
|
21
21
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -36,7 +36,7 @@ const StyledInput = styled(Input, styledRootConfig)('');
|
|
|
36
36
|
const StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');
|
|
37
37
|
const StyledFilledInput = styled(FilledInput, styledRootConfig)('');
|
|
38
38
|
const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
39
|
-
const props =
|
|
39
|
+
const props = useDefaultProps({
|
|
40
40
|
name: 'MuiSelect',
|
|
41
41
|
props: inProps
|
|
42
42
|
});
|
|
@@ -10,7 +10,7 @@ import { keyframes, css } from '@mui/system';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { alpha, unstable_getUnit as getUnit, unstable_toUnitless as toUnitless } from '../styles';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import { getSkeletonUtilityClass } from './skeletonClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
@@ -129,7 +129,7 @@ const SkeletonRoot = styled('span', {
|
|
|
129
129
|
}
|
|
130
130
|
`);
|
|
131
131
|
const Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(inProps, ref) {
|
|
132
|
-
const props =
|
|
132
|
+
const props = useDefaultProps({
|
|
133
133
|
props: inProps,
|
|
134
134
|
name: 'MuiSkeleton'
|
|
135
135
|
});
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -12,7 +12,8 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
12
12
|
import { useSlider, valueToPercent } from '@mui/base/useSlider';
|
|
13
13
|
import { alpha, lighten, darken } from '@mui/system/colorManipulator';
|
|
14
14
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
15
|
-
import { styled
|
|
15
|
+
import { styled } from '../zero-styled';
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
17
|
import slotShouldForwardProp from '../styles/slotShouldForwardProp';
|
|
17
18
|
import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
|
|
18
19
|
import capitalize from '../utils/capitalize';
|
|
@@ -20,7 +21,6 @@ import BaseSliderValueLabel from './SliderValueLabel';
|
|
|
20
21
|
import sliderClasses, { getSliderUtilityClass } from './sliderClasses';
|
|
21
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
const useThemeProps = createUseThemeProps('MuiSlider');
|
|
24
24
|
function Identity(x) {
|
|
25
25
|
return x;
|
|
26
26
|
}
|
|
@@ -531,7 +531,7 @@ const Forward = ({
|
|
|
531
531
|
children
|
|
532
532
|
}) => children;
|
|
533
533
|
const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
534
|
-
const props =
|
|
534
|
+
const props = useDefaultProps({
|
|
535
535
|
props: inputProps,
|
|
536
536
|
name: 'MuiSlider'
|
|
537
537
|
});
|
|
@@ -12,7 +12,7 @@ import { ClickAwayListener } from '@mui/base/ClickAwayListener';
|
|
|
12
12
|
import { useSnackbar } from '@mui/base/useSnackbar';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import useTheme from '../styles/useTheme';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import capitalize from '../utils/capitalize';
|
|
17
17
|
import Grow from '../Grow';
|
|
18
18
|
import SnackbarContent from '../SnackbarContent';
|
|
@@ -77,7 +77,7 @@ const SnackbarRoot = styled('div', {
|
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
80
|
-
const props =
|
|
80
|
+
const props = useDefaultProps({
|
|
81
81
|
props: inProps,
|
|
82
82
|
name: 'MuiSnackbar'
|
|
83
83
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { emphasize } from '@mui/system/colorManipulator';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import Paper from '../Paper';
|
|
14
14
|
import { getSnackbarContentUtilityClass } from './snackbarContentClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -68,7 +68,7 @@ const SnackbarContentAction = styled('div', {
|
|
|
68
68
|
marginRight: -8
|
|
69
69
|
});
|
|
70
70
|
const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(inProps, ref) {
|
|
71
|
-
const props =
|
|
71
|
+
const props = useDefaultProps({
|
|
72
72
|
props: inProps,
|
|
73
73
|
name: 'MuiSnackbarContent'
|
|
74
74
|
});
|
|
@@ -13,7 +13,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
13
13
|
import useTimeout from '@mui/utils/useTimeout';
|
|
14
14
|
import clamp from '@mui/utils/clamp';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import useTheme from '../styles/useTheme';
|
|
18
18
|
import Zoom from '../Zoom';
|
|
19
19
|
import Fab from '../Fab';
|
|
@@ -120,7 +120,7 @@ const SpeedDialActions = styled('div', {
|
|
|
120
120
|
pointerEvents: 'none'
|
|
121
121
|
}));
|
|
122
122
|
const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
123
|
-
const props =
|
|
123
|
+
const props = useDefaultProps({
|
|
124
124
|
props: inProps,
|
|
125
125
|
name: 'MuiSpeedDial'
|
|
126
126
|
});
|
|
@@ -10,7 +10,7 @@ import clsx from 'clsx';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { emphasize } from '@mui/system/colorManipulator';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import Fab from '../Fab';
|
|
15
15
|
import Tooltip from '../Tooltip';
|
|
16
16
|
import capitalize from '../utils/capitalize';
|
|
@@ -109,7 +109,7 @@ const SpeedDialActionStaticTooltipLabel = styled('span', {
|
|
|
109
109
|
wordBreak: 'keep-all'
|
|
110
110
|
}));
|
|
111
111
|
const SpeedDialAction = /*#__PURE__*/React.forwardRef(function SpeedDialAction(inProps, ref) {
|
|
112
|
-
const props =
|
|
112
|
+
const props = useDefaultProps({
|
|
113
113
|
props: inProps,
|
|
114
114
|
name: 'MuiSpeedDialAction'
|
|
115
115
|
});
|
|
@@ -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 AddIcon from '../internal/svg-icons/Add';
|
|
13
13
|
import speedDialIconClasses, { getSpeedDialIconUtilityClass } from './speedDialIconClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -72,7 +72,7 @@ const SpeedDialIconRoot = styled('span', {
|
|
|
72
72
|
})
|
|
73
73
|
}));
|
|
74
74
|
const SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
|
|
75
|
-
const props =
|
|
75
|
+
const props = useDefaultProps({
|
|
76
76
|
props: inProps,
|
|
77
77
|
name: 'MuiSpeedDialIcon'
|
|
78
78
|
});
|
package/modern/Stack/Stack.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { createStack } from '@mui/system';
|
|
5
5
|
import styled from '../styles/styled';
|
|
6
|
-
import
|
|
6
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
7
7
|
const Stack = createStack({
|
|
8
8
|
createStyledComponent: styled('div', {
|
|
9
9
|
name: 'MuiStack',
|
|
10
10
|
slot: 'Root',
|
|
11
11
|
overridesResolver: (props, styles) => styles.root
|
|
12
12
|
}),
|
|
13
|
-
useThemeProps: inProps =>
|
|
13
|
+
useThemeProps: inProps => useDefaultProps({
|
|
14
14
|
props: inProps,
|
|
15
15
|
name: 'MuiStack'
|
|
16
16
|
})
|
package/modern/Step/Step.js
CHANGED
|
@@ -10,7 +10,7 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import StepperContext from '../Stepper/StepperContext';
|
|
12
12
|
import StepContext from './StepContext';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
15
|
import { getStepUtilityClass } from './stepClasses';
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -46,7 +46,7 @@ const StepRoot = styled('div', {
|
|
|
46
46
|
position: 'relative'
|
|
47
47
|
}));
|
|
48
48
|
const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
|
|
49
|
-
const props =
|
|
49
|
+
const props = useDefaultProps({
|
|
50
50
|
props: inProps,
|
|
51
51
|
name: 'MuiStep'
|
|
52
52
|
});
|
|
@@ -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 StepLabel from '../StepLabel';
|
|
14
14
|
import isMuiElement from '../utils/isMuiElement';
|
|
@@ -55,7 +55,7 @@ const StepButtonRoot = styled(ButtonBase, {
|
|
|
55
55
|
}
|
|
56
56
|
}));
|
|
57
57
|
const StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref) {
|
|
58
|
-
const props =
|
|
58
|
+
const props = useDefaultProps({
|
|
59
59
|
props: inProps,
|
|
60
60
|
name: 'MuiStepButton'
|
|
61
61
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import capitalize from '../utils/capitalize';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import StepperContext from '../Stepper/StepperContext';
|
|
14
14
|
import StepContext from '../Step/StepContext';
|
|
15
15
|
import { getStepConnectorUtilityClass } from './stepConnectorClasses';
|
|
@@ -77,7 +77,7 @@ const StepConnectorLine = styled('span', {
|
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
const StepConnector = /*#__PURE__*/React.forwardRef(function StepConnector(inProps, ref) {
|
|
80
|
-
const props =
|
|
80
|
+
const props = useDefaultProps({
|
|
81
81
|
props: inProps,
|
|
82
82
|
name: 'MuiStepConnector'
|
|
83
83
|
});
|
|
@@ -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 Collapse from '../Collapse';
|
|
13
13
|
import StepperContext from '../Stepper/StepperContext';
|
|
14
14
|
import StepContext from '../Step/StepContext';
|
|
@@ -53,7 +53,7 @@ const StepContentTransition = styled(Collapse, {
|
|
|
53
53
|
overridesResolver: (props, styles) => styles.transition
|
|
54
54
|
})({});
|
|
55
55
|
const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps, ref) {
|
|
56
|
-
const props =
|
|
56
|
+
const props = useDefaultProps({
|
|
57
57
|
props: inProps,
|
|
58
58
|
name: 'MuiStepContent'
|
|
59
59
|
});
|
|
@@ -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 CheckCircle from '../internal/svg-icons/CheckCircle';
|
|
14
14
|
import Warning from '../internal/svg-icons/Warning';
|
|
15
15
|
import SvgIcon from '../SvgIcon';
|
|
@@ -63,7 +63,7 @@ const StepIconText = styled('text', {
|
|
|
63
63
|
fontFamily: theme.typography.fontFamily
|
|
64
64
|
}));
|
|
65
65
|
const StepIcon = /*#__PURE__*/React.forwardRef(function StepIcon(inProps, ref) {
|
|
66
|
-
const props =
|
|
66
|
+
const props = useDefaultProps({
|
|
67
67
|
props: inProps,
|
|
68
68
|
name: 'MuiStepIcon'
|
|
69
69
|
});
|
|
@@ -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 StepIcon from '../StepIcon';
|
|
13
13
|
import StepperContext from '../Stepper/StepperContext';
|
|
14
14
|
import StepContext from '../Step/StepContext';
|
|
@@ -110,7 +110,7 @@ const StepLabelLabelContainer = styled('span', {
|
|
|
110
110
|
}
|
|
111
111
|
}));
|
|
112
112
|
const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
113
|
-
const props =
|
|
113
|
+
const props = useDefaultProps({
|
|
114
114
|
props: inProps,
|
|
115
115
|
name: 'MuiStepLabel'
|
|
116
116
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import integerPropType from '@mui/utils/integerPropType';
|
|
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 { getStepperUtilityClass } from './stepperClasses';
|
|
14
14
|
import StepConnector from '../StepConnector';
|
|
@@ -49,7 +49,7 @@ const StepperRoot = styled('div', {
|
|
|
49
49
|
}));
|
|
50
50
|
const defaultConnector = /*#__PURE__*/_jsx(StepConnector, {});
|
|
51
51
|
const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
|
|
52
|
-
const props =
|
|
52
|
+
const props = useDefaultProps({
|
|
53
53
|
props: inProps,
|
|
54
54
|
name: 'MuiStepper'
|
|
55
55
|
});
|
|
@@ -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 capitalize from '../utils/capitalize';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getSvgIconUtilityClass } from './svgIconClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -62,7 +62,7 @@ const SvgIconRoot = styled('svg', {
|
|
|
62
62
|
}[ownerState.color]
|
|
63
63
|
}));
|
|
64
64
|
const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
65
|
-
const props =
|
|
65
|
+
const props = useDefaultProps({
|
|
66
66
|
props: inProps,
|
|
67
67
|
name: 'MuiSvgIcon'
|
|
68
68
|
});
|
|
@@ -8,8 +8,8 @@ import * as React from 'react';
|
|
|
8
8
|
import * as ReactDOM from 'react-dom';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
11
|
-
import useThemeProps from '@mui/system/useThemeProps';
|
|
12
11
|
import { NoSsr } from '@mui/base';
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
|
|
14
14
|
import useForkRef from '../utils/useForkRef';
|
|
15
15
|
import ownerDocument from '../utils/ownerDocument';
|
|
@@ -119,7 +119,7 @@ function computeHasNativeHandler({
|
|
|
119
119
|
}
|
|
120
120
|
const iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
121
121
|
const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {
|
|
122
|
-
const props =
|
|
122
|
+
const props = useDefaultProps({
|
|
123
123
|
name: 'MuiSwipeableDrawer',
|
|
124
124
|
props: inProps
|
|
125
125
|
});
|
package/modern/Switch/Switch.js
CHANGED
|
@@ -12,11 +12,11 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
12
12
|
import { alpha, darken, lighten } from '@mui/system/colorManipulator';
|
|
13
13
|
import capitalize from '../utils/capitalize';
|
|
14
14
|
import SwitchBase from '../internal/SwitchBase';
|
|
15
|
-
import { styled
|
|
15
|
+
import { styled } from '../zero-styled';
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
17
|
import switchClasses, { getSwitchUtilityClass } from './switchClasses';
|
|
17
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
const useThemeProps = createUseThemeProps('MuiSwitch');
|
|
20
20
|
const useUtilityClasses = ownerState => {
|
|
21
21
|
const {
|
|
22
22
|
classes,
|
|
@@ -200,7 +200,7 @@ const SwitchThumb = styled('span', {
|
|
|
200
200
|
borderRadius: '50%'
|
|
201
201
|
}));
|
|
202
202
|
const Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {
|
|
203
|
-
const props =
|
|
203
|
+
const props = useDefaultProps({
|
|
204
204
|
props: inProps,
|
|
205
205
|
name: 'MuiSwitch'
|
|
206
206
|
});
|
package/modern/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';
|
|
@@ -107,7 +107,7 @@ const TabRoot = styled(ButtonBase, {
|
|
|
107
107
|
fontSize: theme.typography.pxToRem(12)
|
|
108
108
|
}));
|
|
109
109
|
const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
110
|
-
const props =
|
|
110
|
+
const props = useDefaultProps({
|
|
111
111
|
props: inProps,
|
|
112
112
|
name: 'MuiTab'
|
|
113
113
|
});
|
|
@@ -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";
|
|
@@ -54,7 +54,7 @@ const TabScrollButtonRoot = styled(ButtonBase, {
|
|
|
54
54
|
}
|
|
55
55
|
}));
|
|
56
56
|
const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
57
|
-
const props =
|
|
57
|
+
const props = useDefaultProps({
|
|
58
58
|
props: inProps,
|
|
59
59
|
name: 'MuiTabScrollButton'
|
|
60
60
|
});
|
package/modern/Table/Table.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 TableContext from './TableContext';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getTableUtilityClass } from './tableClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -50,7 +50,7 @@ const TableRoot = styled('table', {
|
|
|
50
50
|
}));
|
|
51
51
|
const defaultComponent = 'table';
|
|
52
52
|
const Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {
|
|
53
|
-
const props =
|
|
53
|
+
const props = useDefaultProps({
|
|
54
54
|
props: inProps,
|
|
55
55
|
name: 'MuiTable'
|
|
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 Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getTableBodyUtilityClass } from './tableBodyClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ const tablelvl2 = {
|
|
|
33
33
|
};
|
|
34
34
|
const defaultComponent = 'tbody';
|
|
35
35
|
const TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {
|
|
36
|
-
const props =
|
|
36
|
+
const props = useDefaultProps({
|
|
37
37
|
props: inProps,
|
|
38
38
|
name: 'MuiTableBody'
|
|
39
39
|
});
|
|
@@ -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";
|
|
@@ -97,7 +97,7 @@ const TableCellRoot = styled('td', {
|
|
|
97
97
|
* or otherwise a `<td>` element.
|
|
98
98
|
*/
|
|
99
99
|
const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {
|
|
100
|
-
const props =
|
|
100
|
+
const props = useDefaultProps({
|
|
101
101
|
props: inProps,
|
|
102
102
|
name: 'MuiTableCell'
|
|
103
103
|
});
|
|
@@ -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 { getTableContainerUtilityClass } from './tableContainerClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -29,7 +29,7 @@ const TableContainerRoot = styled('div', {
|
|
|
29
29
|
overflowX: 'auto'
|
|
30
30
|
});
|
|
31
31
|
const TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(inProps, ref) {
|
|
32
|
-
const props =
|
|
32
|
+
const props = useDefaultProps({
|
|
33
33
|
props: inProps,
|
|
34
34
|
name: 'MuiTableContainer'
|
|
35
35
|
});
|
|
@@ -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 Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getTableFooterUtilityClass } from './tableFooterClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ const tablelvl2 = {
|
|
|
33
33
|
};
|
|
34
34
|
const defaultComponent = 'tfoot';
|
|
35
35
|
const TableFooter = /*#__PURE__*/React.forwardRef(function TableFooter(inProps, ref) {
|
|
36
|
-
const props =
|
|
36
|
+
const props = useDefaultProps({
|
|
37
37
|
props: inProps,
|
|
38
38
|
name: 'MuiTableFooter'
|
|
39
39
|
});
|