@mui/material 5.15.20 → 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.d.ts +1 -1
- 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 +58 -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 +6 -4
- package/Stepper/stepperClasses.d.ts +2 -0
- package/Stepper/stepperClasses.js +1 -1
- 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 +6 -4
- package/legacy/Stepper/stepperClasses.js +1 -1
- 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 +6 -4
- package/modern/Stepper/stepperClasses.js +1 -1
- 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 +6 -4
- package/node/Stepper/stepperClasses.js +1 -1
- 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 +245 -158
- package/umd/material-ui.production.min.js +2 -2
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import Typography from '../Typography';
|
|
13
13
|
import { getDialogContentTextUtilityClass } from './dialogContentTextClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -29,7 +29,7 @@ const DialogContentTextRoot = styled(Typography, {
|
|
|
29
29
|
overridesResolver: (props, styles) => styles.root
|
|
30
30
|
})({});
|
|
31
31
|
const DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentText(inProps, ref) {
|
|
32
|
-
const props =
|
|
32
|
+
const props = useDefaultProps({
|
|
33
33
|
props: inProps,
|
|
34
34
|
name: 'MuiDialogContentText'
|
|
35
35
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Typography from '../Typography';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getDialogTitleUtilityClass } from './dialogTitleClasses';
|
|
14
14
|
import DialogContext from '../Dialog/DialogContext';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -31,7 +31,7 @@ const DialogTitleRoot = styled(Typography, {
|
|
|
31
31
|
flex: '0 0 auto'
|
|
32
32
|
});
|
|
33
33
|
const DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {
|
|
34
|
-
const props =
|
|
34
|
+
const props = useDefaultProps({
|
|
35
35
|
props: inProps,
|
|
36
36
|
name: 'MuiDialogTitle'
|
|
37
37
|
});
|
|
@@ -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 styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getDividerUtilityClass } from './dividerClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
@@ -137,7 +137,7 @@ const DividerWrapper = styled('span', {
|
|
|
137
137
|
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
|
|
138
138
|
}));
|
|
139
139
|
const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
140
|
-
const props =
|
|
140
|
+
const props = useDefaultProps({
|
|
141
141
|
props: inProps,
|
|
142
142
|
name: 'MuiDivider'
|
|
143
143
|
});
|
package/modern/Drawer/Drawer.js
CHANGED
|
@@ -15,7 +15,7 @@ import Slide from '../Slide';
|
|
|
15
15
|
import Paper from '../Paper';
|
|
16
16
|
import capitalize from '../utils/capitalize';
|
|
17
17
|
import useTheme from '../styles/useTheme';
|
|
18
|
-
import
|
|
18
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
19
19
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
20
20
|
import { getDrawerUtilityClass } from './drawerClasses';
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -131,7 +131,7 @@ export function getAnchor({
|
|
|
131
131
|
* when `variant="temporary"` is set.
|
|
132
132
|
*/
|
|
133
133
|
const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
134
|
-
const props =
|
|
134
|
+
const props = useDefaultProps({
|
|
135
135
|
props: inProps,
|
|
136
136
|
name: 'MuiDrawer'
|
|
137
137
|
});
|
package/modern/Fab/Fab.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 fabClasses, { getFabUtilityClass } from './fabClasses';
|
|
14
14
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -117,7 +117,7 @@ const FabRoot = styled(ButtonBase, {
|
|
|
117
117
|
}
|
|
118
118
|
}));
|
|
119
119
|
const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
|
|
120
|
-
const props =
|
|
120
|
+
const props = useDefaultProps({
|
|
121
121
|
props: inProps,
|
|
122
122
|
name: 'MuiFab'
|
|
123
123
|
});
|
|
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import InputBase from '../InputBase';
|
|
12
12
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import filledInputClasses, { getFilledInputUtilityClass } from './filledInputClasses';
|
|
15
15
|
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -181,7 +181,7 @@ const FilledInputInput = styled(InputBaseInput, {
|
|
|
181
181
|
paddingRight: 0
|
|
182
182
|
}));
|
|
183
183
|
const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {
|
|
184
|
-
const props =
|
|
184
|
+
const props = useDefaultProps({
|
|
185
185
|
props: inProps,
|
|
186
186
|
name: 'MuiFilledInput'
|
|
187
187
|
});
|
|
@@ -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 { isFilled, isAdornedStart } from '../InputBase/utils';
|
|
13
13
|
import capitalize from '../utils/capitalize';
|
|
@@ -81,7 +81,7 @@ const FormControlRoot = styled('div', {
|
|
|
81
81
|
* For instance, only one input can be focused at the same time, the state shouldn't be shared.
|
|
82
82
|
*/
|
|
83
83
|
const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps, ref) {
|
|
84
|
-
const props =
|
|
84
|
+
const props = useDefaultProps({
|
|
85
85
|
props: inProps,
|
|
86
86
|
name: 'MuiFormControl'
|
|
87
87
|
});
|
|
@@ -13,7 +13,7 @@ import Stack from '../Stack';
|
|
|
13
13
|
import Typography from '../Typography';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import formControlLabelClasses, { getFormControlLabelUtilityClasses } from './formControlLabelClasses';
|
|
18
18
|
import formControlState from '../FormControl/formControlState';
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -95,7 +95,7 @@ const AsteriskComponent = styled('span', {
|
|
|
95
95
|
* Use this component if you want to display an extra label.
|
|
96
96
|
*/
|
|
97
97
|
const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {
|
|
98
|
-
const props =
|
|
98
|
+
const props = useDefaultProps({
|
|
99
99
|
props: inProps,
|
|
100
100
|
name: 'MuiFormControlLabel'
|
|
101
101
|
});
|
|
@@ -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 { getFormGroupUtilityClass } from './formGroupClasses';
|
|
13
13
|
import useFormControl from '../FormControl/useFormControl';
|
|
14
14
|
import formControlState from '../FormControl/formControlState';
|
|
@@ -49,7 +49,7 @@ const FormGroupRoot = styled('div', {
|
|
|
49
49
|
* For the `Radio`, you should be using the `RadioGroup` component instead of this one.
|
|
50
50
|
*/
|
|
51
51
|
const FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {
|
|
52
|
-
const props =
|
|
52
|
+
const props = useDefaultProps({
|
|
53
53
|
props: inProps,
|
|
54
54
|
name: 'MuiFormGroup'
|
|
55
55
|
});
|
|
@@ -13,7 +13,7 @@ import useFormControl from '../FormControl/useFormControl';
|
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import formHelperTextClasses, { getFormHelperTextUtilityClasses } from './formHelperTextClasses';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
const useUtilityClasses = ownerState => {
|
|
19
19
|
const {
|
|
@@ -64,7 +64,7 @@ const FormHelperTextRoot = styled('p', {
|
|
|
64
64
|
marginRight: 14
|
|
65
65
|
}));
|
|
66
66
|
const FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inProps, ref) {
|
|
67
|
-
const props =
|
|
67
|
+
const props = useDefaultProps({
|
|
68
68
|
props: inProps,
|
|
69
69
|
name: 'MuiFormHelperText'
|
|
70
70
|
});
|
|
@@ -10,7 +10,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import formControlState from '../FormControl/formControlState';
|
|
11
11
|
import useFormControl from '../FormControl/useFormControl';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
15
|
import formLabelClasses, { getFormLabelUtilityClasses } from './formLabelClasses';
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -69,7 +69,7 @@ const AsteriskComponent = styled('span', {
|
|
|
69
69
|
}
|
|
70
70
|
}));
|
|
71
71
|
const FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
|
|
72
|
-
const props =
|
|
72
|
+
const props = useDefaultProps({
|
|
73
73
|
props: inProps,
|
|
74
74
|
name: 'MuiFormLabel'
|
|
75
75
|
});
|
package/modern/Grid/Grid.js
CHANGED
|
@@ -21,7 +21,7 @@ import { extendSxProp } from '@mui/system/styleFunctionSx';
|
|
|
21
21
|
import composeClasses from '@mui/utils/composeClasses';
|
|
22
22
|
import requirePropFactory from '../utils/requirePropFactory';
|
|
23
23
|
import styled from '../styles/styled';
|
|
24
|
-
import
|
|
24
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
25
25
|
import useTheme from '../styles/useTheme';
|
|
26
26
|
import GridContext from './GridContext';
|
|
27
27
|
import gridClasses, { getGridUtilityClass } from './gridClasses';
|
|
@@ -362,7 +362,7 @@ const useUtilityClasses = ownerState => {
|
|
|
362
362
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
363
363
|
};
|
|
364
364
|
const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
365
|
-
const themeProps =
|
|
365
|
+
const themeProps = useDefaultProps({
|
|
366
366
|
props: inProps,
|
|
367
367
|
name: 'MuiGrid'
|
|
368
368
|
});
|
package/modern/Icon/Icon.js
CHANGED
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import { getIconUtilityClass } from './iconClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -67,7 +67,7 @@ const IconRoot = styled('span', {
|
|
|
67
67
|
}[ownerState.color]
|
|
68
68
|
}));
|
|
69
69
|
const Icon = /*#__PURE__*/React.forwardRef(function Icon(inProps, ref) {
|
|
70
|
-
const props =
|
|
70
|
+
const props = useDefaultProps({
|
|
71
71
|
props: inProps,
|
|
72
72
|
name: 'MuiIcon'
|
|
73
73
|
});
|
|
@@ -10,7 +10,7 @@ import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { alpha } from '@mui/system/colorManipulator';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import ButtonBase from '../ButtonBase';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import iconButtonClasses, { getIconButtonUtilityClass } from './iconButtonClasses';
|
|
@@ -101,7 +101,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
101
101
|
* regarding the available icon options.
|
|
102
102
|
*/
|
|
103
103
|
const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {
|
|
104
|
-
const props =
|
|
104
|
+
const props = useDefaultProps({
|
|
105
105
|
props: inProps,
|
|
106
106
|
name: 'MuiIconButton'
|
|
107
107
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getImageListUtilityClass } from './imageListClasses';
|
|
14
14
|
import ImageListContext from './ImageListContext';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -47,7 +47,7 @@ const ImageListRoot = styled('ul', {
|
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {
|
|
50
|
-
const props =
|
|
50
|
+
const props = useDefaultProps({
|
|
51
51
|
props: inProps,
|
|
52
52
|
name: 'MuiImageList'
|
|
53
53
|
});
|
|
@@ -11,7 +11,7 @@ import * as React from 'react';
|
|
|
11
11
|
import { isFragment } from 'react-is';
|
|
12
12
|
import ImageListContext from '../ImageList/ImageListContext';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import isMuiElement from '../utils/isMuiElement';
|
|
16
16
|
import imageListItemClasses, { getImageListItemUtilityClass } from './imageListItemClasses';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -64,7 +64,7 @@ const ImageListItemRoot = styled('li', {
|
|
|
64
64
|
})
|
|
65
65
|
}));
|
|
66
66
|
const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps, ref) {
|
|
67
|
-
const props =
|
|
67
|
+
const props = useDefaultProps({
|
|
68
68
|
props: inProps,
|
|
69
69
|
name: 'MuiImageListItem'
|
|
70
70
|
});
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import { getImageListItemBarUtilityClass } from './imageListItemBarClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -134,7 +134,7 @@ const ImageListItemBarActionIcon = styled('div', {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
const ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(inProps, ref) {
|
|
137
|
-
const props =
|
|
137
|
+
const props = useDefaultProps({
|
|
138
138
|
props: inProps,
|
|
139
139
|
name: 'MuiImageListItemBar'
|
|
140
140
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import SystemInitColorSchemeScript from '@mui/system/InitColorSchemeScript';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const defaultConfig = {
|
|
6
|
+
attribute: 'data-mui-color-scheme',
|
|
7
|
+
colorSchemeStorageKey: 'mui-color-scheme',
|
|
8
|
+
defaultLightColorScheme: 'light',
|
|
9
|
+
defaultDarkColorScheme: 'dark',
|
|
10
|
+
modeStorageKey: 'mui-mode'
|
|
11
|
+
};
|
|
12
|
+
export default (function InitColorSchemeScript(props) {
|
|
13
|
+
return /*#__PURE__*/_jsx(SystemInitColorSchemeScript, _extends({}, defaultConfig, props));
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InitColorSchemeScript';
|
package/modern/Input/Input.js
CHANGED
|
@@ -10,7 +10,7 @@ import deepmerge from '@mui/utils/deepmerge';
|
|
|
10
10
|
import refType from '@mui/utils/refType';
|
|
11
11
|
import InputBase from '../InputBase';
|
|
12
12
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import inputClasses, { getInputUtilityClass } from './inputClasses';
|
|
15
15
|
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -108,7 +108,7 @@ const InputInput = styled(InputBaseInput, {
|
|
|
108
108
|
overridesResolver: inputBaseInputOverridesResolver
|
|
109
109
|
})({});
|
|
110
110
|
const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
111
|
-
const props =
|
|
111
|
+
const props = useDefaultProps({
|
|
112
112
|
props: inProps,
|
|
113
113
|
name: 'MuiInput'
|
|
114
114
|
});
|
|
@@ -14,7 +14,7 @@ import FormControlContext from '../FormControl/FormControlContext';
|
|
|
14
14
|
import useFormControl from '../FormControl/useFormControl';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
16
|
import inputAdornmentClasses, { getInputAdornmentUtilityClass } from './inputAdornmentClasses';
|
|
17
|
-
import
|
|
17
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
const overridesResolver = (props, styles) => {
|
|
@@ -68,7 +68,7 @@ const InputAdornmentRoot = styled('div', {
|
|
|
68
68
|
pointerEvents: 'none'
|
|
69
69
|
}));
|
|
70
70
|
const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {
|
|
71
|
-
const props =
|
|
71
|
+
const props = useDefaultProps({
|
|
72
72
|
props: inProps,
|
|
73
73
|
name: 'MuiInputAdornment'
|
|
74
74
|
});
|
|
@@ -16,7 +16,7 @@ import formControlState from '../FormControl/formControlState';
|
|
|
16
16
|
import FormControlContext from '../FormControl/FormControlContext';
|
|
17
17
|
import useFormControl from '../FormControl/useFormControl';
|
|
18
18
|
import styled from '../styles/styled';
|
|
19
|
-
import
|
|
19
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
20
20
|
import capitalize from '../utils/capitalize';
|
|
21
21
|
import useForkRef from '../utils/useForkRef';
|
|
22
22
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
@@ -212,7 +212,7 @@ const inputGlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {
|
|
|
212
212
|
* It contains a load of style reset and some state logic.
|
|
213
213
|
*/
|
|
214
214
|
const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
215
|
-
const props =
|
|
215
|
+
const props = useDefaultProps({
|
|
216
216
|
props: inProps,
|
|
217
217
|
name: 'MuiInputBase'
|
|
218
218
|
});
|
|
@@ -10,7 +10,7 @@ import clsx from 'clsx';
|
|
|
10
10
|
import formControlState from '../FormControl/formControlState';
|
|
11
11
|
import useFormControl from '../FormControl/useFormControl';
|
|
12
12
|
import FormLabel, { formLabelClasses } from '../FormLabel';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
16
16
|
import { getInputLabelUtilityClasses } from './inputLabelClasses';
|
|
@@ -107,7 +107,7 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
107
107
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
108
108
|
})));
|
|
109
109
|
const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
110
|
-
const props =
|
|
110
|
+
const props = useDefaultProps({
|
|
111
111
|
name: 'MuiInputLabel',
|
|
112
112
|
props: inProps
|
|
113
113
|
});
|
|
@@ -12,7 +12,7 @@ import { darken, lighten } from '@mui/system/colorManipulator';
|
|
|
12
12
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
13
13
|
import capitalize from '../utils/capitalize';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import { getLinearProgressUtilityClass } from './linearProgressClasses';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -231,7 +231,7 @@ const LinearProgressBar2 = styled('span', {
|
|
|
231
231
|
* attribute to `true` on that region until it has finished loading.
|
|
232
232
|
*/
|
|
233
233
|
const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {
|
|
234
|
-
const props =
|
|
234
|
+
const props = useDefaultProps({
|
|
235
235
|
props: inProps,
|
|
236
236
|
name: 'MuiLinearProgress'
|
|
237
237
|
});
|
package/modern/Link/Link.js
CHANGED
|
@@ -10,7 +10,7 @@ import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
|
-
import
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
14
14
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
15
15
|
import useForkRef from '../utils/useForkRef';
|
|
16
16
|
import Typography from '../Typography';
|
|
@@ -89,7 +89,7 @@ const LinkRoot = styled(Typography, {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
92
|
-
const props =
|
|
92
|
+
const props = useDefaultProps({
|
|
93
93
|
props: inProps,
|
|
94
94
|
name: 'MuiLink'
|
|
95
95
|
});
|
package/modern/List/List.js
CHANGED
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import ListContext from './ListContext';
|
|
13
13
|
import { getListUtilityClass } from './listClasses';
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -48,7 +48,7 @@ const ListRoot = styled('ul', {
|
|
|
48
48
|
paddingTop: 0
|
|
49
49
|
}));
|
|
50
50
|
const List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {
|
|
51
|
-
const props =
|
|
51
|
+
const props = useDefaultProps({
|
|
52
52
|
props: inProps,
|
|
53
53
|
name: 'MuiList'
|
|
54
54
|
});
|
|
@@ -13,7 +13,7 @@ import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
|
13
13
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
14
14
|
import { alpha } from '@mui/system/colorManipulator';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import ButtonBase from '../ButtonBase';
|
|
18
18
|
import isMuiElement from '../utils/isMuiElement';
|
|
19
19
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
@@ -136,7 +136,7 @@ const ListItemContainer = styled('li', {
|
|
|
136
136
|
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
|
137
137
|
*/
|
|
138
138
|
const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
139
|
-
const props =
|
|
139
|
+
const props = useDefaultProps({
|
|
140
140
|
props: inProps,
|
|
141
141
|
name: 'MuiListItem'
|
|
142
142
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import ListContext from '../List/ListContext';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import { getListItemAvatarUtilityClass } from './listItemAvatarClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
@@ -44,7 +44,7 @@ const ListItemAvatarRoot = styled('div', {
|
|
|
44
44
|
* A simple wrapper to apply `List` styles to an `Avatar`.
|
|
45
45
|
*/
|
|
46
46
|
const ListItemAvatar = /*#__PURE__*/React.forwardRef(function ListItemAvatar(inProps, ref) {
|
|
47
|
-
const props =
|
|
47
|
+
const props = useDefaultProps({
|
|
48
48
|
props: inProps,
|
|
49
49
|
name: 'MuiListItemAvatar'
|
|
50
50
|
});
|
|
@@ -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 styled, { rootShouldForwardProp } from '../styles/styled';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import ButtonBase from '../ButtonBase';
|
|
14
14
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
15
15
|
import useForkRef from '../utils/useForkRef';
|
|
@@ -101,7 +101,7 @@ const ListItemButtonRoot = styled(ButtonBase, {
|
|
|
101
101
|
paddingBottom: 4
|
|
102
102
|
}));
|
|
103
103
|
const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inProps, ref) {
|
|
104
|
-
const props =
|
|
104
|
+
const props = useDefaultProps({
|
|
105
105
|
props: inProps,
|
|
106
106
|
name: 'MuiListItemButton'
|
|
107
107
|
});
|
|
@@ -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 { getListItemIconUtilityClass } from './listItemIconClasses';
|
|
13
13
|
import ListContext from '../List/ListContext';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -47,7 +47,7 @@ const ListItemIconRoot = styled('div', {
|
|
|
47
47
|
* A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
|
|
48
48
|
*/
|
|
49
49
|
const ListItemIcon = /*#__PURE__*/React.forwardRef(function ListItemIcon(inProps, ref) {
|
|
50
|
-
const props =
|
|
50
|
+
const props = useDefaultProps({
|
|
51
51
|
props: inProps,
|
|
52
52
|
name: 'MuiListItemIcon'
|
|
53
53
|
});
|
|
@@ -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 ListContext from '../List/ListContext';
|
|
13
13
|
import { getListItemSecondaryActionClassesUtilityClass } from './listItemSecondaryActionClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -46,7 +46,7 @@ const ListItemSecondaryActionRoot = styled('div', {
|
|
|
46
46
|
* Must be used as the last child of ListItem to function properly.
|
|
47
47
|
*/
|
|
48
48
|
const ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {
|
|
49
|
-
const props =
|
|
49
|
+
const props = useDefaultProps({
|
|
50
50
|
props: inProps,
|
|
51
51
|
name: 'MuiListItemSecondaryAction'
|
|
52
52
|
});
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Typography from '../Typography';
|
|
11
11
|
import ListContext from '../List/ListContext';
|
|
12
|
-
import
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import listItemTextClasses, { getListItemTextUtilityClass } from './listItemTextClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -56,7 +56,7 @@ const ListItemTextRoot = styled('div', {
|
|
|
56
56
|
paddingLeft: 56
|
|
57
57
|
}));
|
|
58
58
|
const ListItemText = /*#__PURE__*/React.forwardRef(function ListItemText(inProps, ref) {
|
|
59
|
-
const props =
|
|
59
|
+
const props = useDefaultProps({
|
|
60
60
|
props: inProps,
|
|
61
61
|
name: 'MuiListItemText'
|
|
62
62
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import { getListSubheaderUtilityClass } from './listSubheaderClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -61,7 +61,7 @@ const ListSubheaderRoot = styled('li', {
|
|
|
61
61
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
62
62
|
}));
|
|
63
63
|
const ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {
|
|
64
|
-
const props =
|
|
64
|
+
const props = useDefaultProps({
|
|
65
65
|
props: inProps,
|
|
66
66
|
name: 'MuiListSubheader'
|
|
67
67
|
});
|
package/modern/Menu/Menu.js
CHANGED
|
@@ -15,7 +15,7 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
15
15
|
import MenuList from '../MenuList';
|
|
16
16
|
import Popover, { PopoverPaper } from '../Popover';
|
|
17
17
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
18
|
-
import
|
|
18
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
19
19
|
import { getMenuUtilityClass } from './menuClasses';
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
const RTL_ORIGIN = {
|
|
@@ -64,7 +64,7 @@ const MenuMenuList = styled(MenuList, {
|
|
|
64
64
|
outline: 0
|
|
65
65
|
});
|
|
66
66
|
const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
67
|
-
const props =
|
|
67
|
+
const props = useDefaultProps({
|
|
68
68
|
props: inProps,
|
|
69
69
|
name: 'MuiMenu'
|
|
70
70
|
});
|