@mui/material 5.15.21 → 5.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +3 -3
- package/AccordionActions/AccordionActions.js +3 -3
- package/AccordionDetails/AccordionDetails.js +3 -3
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/Alert/Alert.d.ts +12 -3
- package/Alert/Alert.js +3 -3
- package/AlertTitle/AlertTitle.js +3 -3
- package/AppBar/AppBar.js +4 -3
- package/Autocomplete/Autocomplete.js +3 -3
- package/Avatar/Avatar.js +3 -3
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/Backdrop/Backdrop.js +2 -2
- package/Badge/Badge.js +3 -3
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -2
- package/ButtonBase/ButtonBase.js +2 -2
- package/ButtonBase/TouchRipple.js +2 -2
- package/ButtonGroup/ButtonGroup.js +2 -2
- package/CHANGELOG.md +63 -0
- package/Card/Card.js +2 -2
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActions/CardActions.js +2 -2
- package/CardContent/CardContent.js +2 -2
- package/CardHeader/CardHeader.js +2 -2
- package/CardMedia/CardMedia.js +2 -2
- package/Checkbox/Checkbox.js +2 -2
- package/Chip/Chip.js +2 -2
- package/CircularProgress/CircularProgress.js +2 -2
- package/Collapse/Collapse.js +2 -2
- package/Container/Container.js +2 -2
- package/CssBaseline/CssBaseline.js +2 -2
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
- package/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +1 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/Dialog/Dialog.js +2 -2
- package/DialogActions/DialogActions.js +2 -2
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContentText/DialogContentText.js +2 -2
- package/DialogTitle/DialogTitle.js +2 -2
- package/Divider/Divider.js +2 -2
- package/Drawer/Drawer.js +2 -2
- package/Fab/Fab.js +2 -2
- package/FilledInput/FilledInput.js +2 -2
- package/FormControl/FormControl.js +2 -2
- package/FormControlLabel/FormControlLabel.js +2 -2
- package/FormGroup/FormGroup.js +2 -2
- package/FormHelperText/FormHelperText.js +2 -2
- package/FormLabel/FormLabel.js +2 -2
- package/Grid/Grid.js +2 -2
- package/Icon/Icon.js +2 -2
- package/IconButton/IconButton.js +2 -2
- package/ImageList/ImageList.js +2 -2
- package/ImageListItem/ImageListItem.js +2 -2
- package/ImageListItemBar/ImageListItemBar.js +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +10 -0
- package/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/InitColorSchemeScript/index.d.ts +1 -0
- package/InitColorSchemeScript/index.js +1 -0
- package/InitColorSchemeScript/package.json +6 -0
- package/Input/Input.js +2 -2
- package/InputAdornment/InputAdornment.js +2 -2
- package/InputBase/InputBase.js +2 -2
- package/InputLabel/InputLabel.js +2 -2
- package/LinearProgress/LinearProgress.js +2 -2
- package/Link/Link.js +2 -2
- package/List/List.js +2 -2
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.js +2 -2
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemIcon/ListItemIcon.js +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/ListSubheader/ListSubheader.js +2 -2
- package/Menu/Menu.js +2 -2
- package/MenuItem/MenuItem.js +2 -2
- package/MobileStepper/MobileStepper.js +2 -2
- package/Modal/Modal.js +2 -2
- package/NativeSelect/NativeSelect.js +2 -2
- package/OutlinedInput/OutlinedInput.js +2 -2
- package/Pagination/Pagination.js +2 -2
- package/PaginationItem/PaginationItem.js +2 -2
- package/Paper/Paper.js +2 -2
- package/Popover/Popover.js +2 -2
- package/Popper/Popper.js +3 -2
- package/Radio/Radio.js +2 -2
- package/Rating/Rating.js +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/Select/Select.js +2 -2
- package/Skeleton/Skeleton.js +2 -2
- package/Slider/Slider.js +3 -3
- package/Snackbar/Snackbar.js +2 -2
- package/SnackbarContent/SnackbarContent.js +2 -2
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDialAction/SpeedDialAction.js +2 -2
- package/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/Stack/Stack.js +2 -2
- package/Step/Step.js +2 -2
- package/StepButton/StepButton.js +2 -2
- package/StepConnector/StepConnector.js +2 -2
- package/StepContent/StepContent.js +2 -2
- package/StepIcon/StepIcon.js +2 -2
- package/StepLabel/StepLabel.js +2 -2
- package/Stepper/Stepper.js +2 -2
- package/SvgIcon/SvgIcon.js +2 -2
- package/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/Switch/Switch.js +3 -3
- package/Tab/Tab.js +2 -2
- package/TabScrollButton/TabScrollButton.js +2 -2
- package/Table/Table.js +2 -2
- package/TableBody/TableBody.js +2 -2
- package/TableCell/TableCell.js +2 -2
- package/TableContainer/TableContainer.js +2 -2
- package/TableFooter/TableFooter.js +2 -2
- package/TableHead/TableHead.js +2 -2
- package/TablePagination/TablePagination.js +2 -2
- package/TableRow/TableRow.js +2 -2
- package/TableSortLabel/TableSortLabel.js +2 -2
- package/Tabs/Tabs.js +2 -2
- package/TextField/TextField.js +2 -2
- package/ToggleButton/ToggleButton.js +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/Toolbar/Toolbar.js +2 -2
- package/Tooltip/Tooltip.js +2 -2
- package/Typography/Typography.js +2 -2
- package/Unstable_Grid2/Grid2.js +3 -2
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +3 -3
- package/legacy/AccordionActions/AccordionActions.js +3 -3
- package/legacy/AccordionDetails/AccordionDetails.js +3 -3
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Alert/Alert.js +3 -3
- package/legacy/AlertTitle/AlertTitle.js +3 -3
- package/legacy/AppBar/AppBar.js +4 -3
- package/legacy/Autocomplete/Autocomplete.js +3 -3
- package/legacy/Avatar/Avatar.js +3 -3
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Backdrop/Backdrop.js +2 -2
- package/legacy/Badge/Badge.js +3 -3
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +2 -2
- package/legacy/ButtonBase/ButtonBase.js +2 -2
- package/legacy/ButtonBase/TouchRipple.js +2 -2
- package/legacy/ButtonGroup/ButtonGroup.js +2 -2
- package/legacy/Card/Card.js +2 -2
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CardActions/CardActions.js +2 -2
- package/legacy/CardContent/CardContent.js +2 -2
- package/legacy/CardHeader/CardHeader.js +2 -2
- package/legacy/CardMedia/CardMedia.js +2 -2
- package/legacy/Checkbox/Checkbox.js +2 -2
- package/legacy/Chip/Chip.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +2 -2
- package/legacy/Collapse/Collapse.js +2 -2
- package/legacy/Container/Container.js +2 -2
- package/legacy/CssBaseline/CssBaseline.js +2 -2
- package/legacy/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/legacy/DefaultPropsProvider/index.js +1 -0
- package/legacy/Dialog/Dialog.js +2 -2
- package/legacy/DialogActions/DialogActions.js +2 -2
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/DialogContentText/DialogContentText.js +2 -2
- package/legacy/DialogTitle/DialogTitle.js +2 -2
- package/legacy/Divider/Divider.js +2 -2
- package/legacy/Drawer/Drawer.js +2 -2
- package/legacy/Fab/Fab.js +2 -2
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/FormControl/FormControl.js +2 -2
- package/legacy/FormControlLabel/FormControlLabel.js +2 -2
- package/legacy/FormGroup/FormGroup.js +2 -2
- package/legacy/FormHelperText/FormHelperText.js +2 -2
- package/legacy/FormLabel/FormLabel.js +2 -2
- package/legacy/Grid/Grid.js +2 -2
- package/legacy/Icon/Icon.js +2 -2
- package/legacy/IconButton/IconButton.js +2 -2
- package/legacy/ImageList/ImageList.js +2 -2
- package/legacy/ImageListItem/ImageListItem.js +2 -2
- package/legacy/ImageListItemBar/ImageListItemBar.js +2 -2
- package/legacy/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/legacy/InitColorSchemeScript/index.js +1 -0
- package/legacy/Input/Input.js +2 -2
- package/legacy/InputAdornment/InputAdornment.js +2 -2
- package/legacy/InputBase/InputBase.js +2 -2
- package/legacy/InputLabel/InputLabel.js +2 -2
- package/legacy/LinearProgress/LinearProgress.js +2 -2
- package/legacy/Link/Link.js +2 -2
- package/legacy/List/List.js +2 -2
- package/legacy/ListItem/ListItem.js +2 -2
- package/legacy/ListItemAvatar/ListItemAvatar.js +2 -2
- package/legacy/ListItemButton/ListItemButton.js +2 -2
- package/legacy/ListItemIcon/ListItemIcon.js +2 -2
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/legacy/ListItemText/ListItemText.js +2 -2
- package/legacy/ListSubheader/ListSubheader.js +2 -2
- package/legacy/Menu/Menu.js +2 -2
- package/legacy/MenuItem/MenuItem.js +2 -2
- package/legacy/MobileStepper/MobileStepper.js +2 -2
- package/legacy/Modal/Modal.js +2 -2
- package/legacy/NativeSelect/NativeSelect.js +2 -2
- package/legacy/OutlinedInput/OutlinedInput.js +2 -2
- package/legacy/Pagination/Pagination.js +2 -2
- package/legacy/PaginationItem/PaginationItem.js +2 -2
- package/legacy/Paper/Paper.js +2 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Popper/Popper.js +3 -2
- package/legacy/Radio/Radio.js +2 -2
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/legacy/Select/Select.js +2 -2
- package/legacy/Skeleton/Skeleton.js +2 -2
- package/legacy/Slider/Slider.js +3 -3
- package/legacy/Snackbar/Snackbar.js +2 -2
- package/legacy/SnackbarContent/SnackbarContent.js +2 -2
- package/legacy/SpeedDial/SpeedDial.js +2 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +2 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/legacy/Stack/Stack.js +2 -2
- package/legacy/Step/Step.js +2 -2
- package/legacy/StepButton/StepButton.js +2 -2
- package/legacy/StepConnector/StepConnector.js +2 -2
- package/legacy/StepContent/StepContent.js +2 -2
- package/legacy/StepIcon/StepIcon.js +2 -2
- package/legacy/StepLabel/StepLabel.js +2 -2
- package/legacy/Stepper/Stepper.js +2 -2
- package/legacy/SvgIcon/SvgIcon.js +2 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/legacy/Switch/Switch.js +3 -3
- package/legacy/Tab/Tab.js +2 -2
- package/legacy/TabScrollButton/TabScrollButton.js +2 -2
- package/legacy/Table/Table.js +2 -2
- package/legacy/TableBody/TableBody.js +2 -2
- package/legacy/TableCell/TableCell.js +2 -2
- package/legacy/TableContainer/TableContainer.js +2 -2
- package/legacy/TableFooter/TableFooter.js +2 -2
- package/legacy/TableHead/TableHead.js +2 -2
- package/legacy/TablePagination/TablePagination.js +2 -2
- package/legacy/TableRow/TableRow.js +2 -2
- package/legacy/TableSortLabel/TableSortLabel.js +2 -2
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/TextField/TextField.js +2 -2
- package/legacy/ToggleButton/ToggleButton.js +2 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/legacy/Toolbar/Toolbar.js +2 -2
- package/legacy/Tooltip/Tooltip.js +2 -2
- package/legacy/Typography/Typography.js +2 -2
- package/legacy/Unstable_Grid2/Grid2.js +3 -2
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +19 -7
- package/modern/Accordion/Accordion.js +3 -3
- package/modern/AccordionActions/AccordionActions.js +3 -3
- package/modern/AccordionDetails/AccordionDetails.js +3 -3
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Alert/Alert.js +3 -3
- package/modern/AlertTitle/AlertTitle.js +3 -3
- package/modern/AppBar/AppBar.js +4 -3
- package/modern/Autocomplete/Autocomplete.js +3 -3
- package/modern/Avatar/Avatar.js +3 -3
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Backdrop/Backdrop.js +2 -2
- package/modern/Badge/Badge.js +3 -3
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +2 -2
- package/modern/ButtonBase/ButtonBase.js +2 -2
- package/modern/ButtonBase/TouchRipple.js +2 -2
- package/modern/ButtonGroup/ButtonGroup.js +2 -2
- package/modern/Card/Card.js +2 -2
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CardActions/CardActions.js +2 -2
- package/modern/CardContent/CardContent.js +2 -2
- package/modern/CardHeader/CardHeader.js +2 -2
- package/modern/CardMedia/CardMedia.js +2 -2
- package/modern/Checkbox/Checkbox.js +2 -2
- package/modern/Chip/Chip.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +2 -2
- package/modern/Collapse/Collapse.js +2 -2
- package/modern/Container/Container.js +2 -2
- package/modern/CssBaseline/CssBaseline.js +2 -2
- package/modern/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/Dialog/Dialog.js +2 -2
- package/modern/DialogActions/DialogActions.js +2 -2
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/DialogContentText/DialogContentText.js +2 -2
- package/modern/DialogTitle/DialogTitle.js +2 -2
- package/modern/Divider/Divider.js +2 -2
- package/modern/Drawer/Drawer.js +2 -2
- package/modern/Fab/Fab.js +2 -2
- package/modern/FilledInput/FilledInput.js +2 -2
- package/modern/FormControl/FormControl.js +2 -2
- package/modern/FormControlLabel/FormControlLabel.js +2 -2
- package/modern/FormGroup/FormGroup.js +2 -2
- package/modern/FormHelperText/FormHelperText.js +2 -2
- package/modern/FormLabel/FormLabel.js +2 -2
- package/modern/Grid/Grid.js +2 -2
- package/modern/Icon/Icon.js +2 -2
- package/modern/IconButton/IconButton.js +2 -2
- package/modern/ImageList/ImageList.js +2 -2
- package/modern/ImageListItem/ImageListItem.js +2 -2
- package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +14 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/Input/Input.js +2 -2
- package/modern/InputAdornment/InputAdornment.js +2 -2
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/InputLabel/InputLabel.js +2 -2
- package/modern/LinearProgress/LinearProgress.js +2 -2
- package/modern/Link/Link.js +2 -2
- package/modern/List/List.js +2 -2
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +2 -2
- package/modern/ListItemIcon/ListItemIcon.js +2 -2
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/ListSubheader/ListSubheader.js +2 -2
- package/modern/Menu/Menu.js +2 -2
- package/modern/MenuItem/MenuItem.js +2 -2
- package/modern/MobileStepper/MobileStepper.js +2 -2
- package/modern/Modal/Modal.js +2 -2
- package/modern/NativeSelect/NativeSelect.js +2 -2
- package/modern/OutlinedInput/OutlinedInput.js +2 -2
- package/modern/Pagination/Pagination.js +2 -2
- package/modern/PaginationItem/PaginationItem.js +2 -2
- package/modern/Paper/Paper.js +2 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Popper/Popper.js +3 -2
- package/modern/Radio/Radio.js +2 -2
- package/modern/Rating/Rating.js +2 -2
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/modern/Select/Select.js +2 -2
- package/modern/Skeleton/Skeleton.js +2 -2
- package/modern/Slider/Slider.js +3 -3
- package/modern/Snackbar/Snackbar.js +2 -2
- package/modern/SnackbarContent/SnackbarContent.js +2 -2
- package/modern/SpeedDial/SpeedDial.js +2 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +2 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/modern/Stack/Stack.js +2 -2
- package/modern/Step/Step.js +2 -2
- package/modern/StepButton/StepButton.js +2 -2
- package/modern/StepConnector/StepConnector.js +2 -2
- package/modern/StepContent/StepContent.js +2 -2
- package/modern/StepIcon/StepIcon.js +2 -2
- package/modern/StepLabel/StepLabel.js +2 -2
- package/modern/Stepper/Stepper.js +2 -2
- package/modern/SvgIcon/SvgIcon.js +2 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/modern/Switch/Switch.js +3 -3
- package/modern/Tab/Tab.js +2 -2
- package/modern/TabScrollButton/TabScrollButton.js +2 -2
- package/modern/Table/Table.js +2 -2
- package/modern/TableBody/TableBody.js +2 -2
- package/modern/TableCell/TableCell.js +2 -2
- package/modern/TableContainer/TableContainer.js +2 -2
- package/modern/TableFooter/TableFooter.js +2 -2
- package/modern/TableHead/TableHead.js +2 -2
- package/modern/TablePagination/TablePagination.js +2 -2
- package/modern/TableRow/TableRow.js +2 -2
- package/modern/TableSortLabel/TableSortLabel.js +2 -2
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/TextField/TextField.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +2 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/modern/Toolbar/Toolbar.js +2 -2
- package/modern/Tooltip/Tooltip.js +2 -2
- package/modern/Typography/Typography.js +2 -2
- package/modern/Unstable_Grid2/Grid2.js +3 -2
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +20 -7
- package/node/Accordion/Accordion.js +2 -2
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AppBar/AppBar.js +4 -3
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Avatar/Avatar.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Backdrop/Backdrop.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/Checkbox/Checkbox.js +2 -2
- package/node/Chip/Chip.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/Collapse/Collapse.js +2 -2
- package/node/Container/Container.js +2 -2
- package/node/CssBaseline/CssBaseline.js +2 -2
- package/node/DefaultPropsProvider/DefaultPropsProvider.js +37 -0
- package/node/DefaultPropsProvider/index.js +20 -0
- package/node/Dialog/Dialog.js +2 -2
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Drawer/Drawer.js +2 -2
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +2 -2
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/Grid/Grid.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/IconButton/IconButton.js +2 -2
- package/node/ImageList/ImageList.js +2 -2
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/InitColorSchemeScript/InitColorSchemeScript.js +23 -0
- package/node/InitColorSchemeScript/index.js +13 -0
- package/node/Input/Input.js +2 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputBase/InputBase.js +2 -2
- package/node/InputLabel/InputLabel.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/Link/Link.js +2 -2
- package/node/List/List.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/Menu/Menu.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +2 -2
- package/node/OutlinedInput/OutlinedInput.js +2 -2
- package/node/Pagination/Pagination.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/Paper/Paper.js +2 -2
- package/node/Popover/Popover.js +2 -2
- package/node/Popper/Popper.js +2 -1
- package/node/Radio/Radio.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/node/Select/Select.js +2 -2
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/Stack/Stack.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -2
- package/node/Stepper/Stepper.js +2 -2
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/node/Switch/Switch.js +2 -2
- package/node/Tab/Tab.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +2 -2
- package/node/Tabs/Tabs.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Typography/Typography.js +2 -2
- package/node/Unstable_Grid2/Grid2.js +2 -1
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +20 -8
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +13 -2
- package/styles/CssVarsProvider.js +20 -7
- package/styles/responsiveFontSizes.d.ts +3 -4
- package/umd/material-ui.development.js +261 -156
- package/umd/material-ui.production.min.js +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function DefaultPropsProvider(props) {
|
|
9
|
+
return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, _extends({}, props));
|
|
10
|
+
}
|
|
11
|
+
process.env.NODE_ENV !== "production" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {
|
|
12
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
13
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
14
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
15
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
children: PropTypes.node,
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
value: PropTypes.object.isRequired
|
|
24
|
+
} : void 0;
|
|
25
|
+
export default DefaultPropsProvider;
|
|
26
|
+
export function useDefaultProps(params) {
|
|
27
|
+
return useSystemDefaultProps(params);
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, useDefaultProps } from './DefaultPropsProvider';
|
package/legacy/Dialog/Dialog.js
CHANGED
|
@@ -12,7 +12,7 @@ import capitalize from '../utils/capitalize';
|
|
|
12
12
|
import Modal from '../Modal';
|
|
13
13
|
import Fade from '../Fade';
|
|
14
14
|
import Paper from '../Paper';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import styled from '../styles/styled';
|
|
17
17
|
import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
|
|
18
18
|
import DialogContext from './DialogContext';
|
|
@@ -143,7 +143,7 @@ var DialogPaper = styled(Paper, {
|
|
|
143
143
|
* Dialogs are overlaid modal paper based components with a backdrop.
|
|
144
144
|
*/
|
|
145
145
|
var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
146
|
-
var props =
|
|
146
|
+
var props = useDefaultProps({
|
|
147
147
|
props: inProps,
|
|
148
148
|
name: 'MuiDialog'
|
|
149
149
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import { getDialogActionsUtilityClass } from './dialogActionsClasses';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -40,7 +40,7 @@ var DialogActionsRoot = styled('div', {
|
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
var DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {
|
|
43
|
-
var props =
|
|
43
|
+
var props = useDefaultProps({
|
|
44
44
|
props: inProps,
|
|
45
45
|
name: 'MuiDialogActions'
|
|
46
46
|
});
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getDialogContentUtilityClass } from './dialogContentClasses';
|
|
13
13
|
import dialogTitleClasses from '../DialogTitle/dialogTitleClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var DialogContentRoot = styled('div', {
|
|
|
45
45
|
}));
|
|
46
46
|
});
|
|
47
47
|
var DialogContent = /*#__PURE__*/React.forwardRef(function DialogContent(inProps, ref) {
|
|
48
|
-
var props =
|
|
48
|
+
var props = useDefaultProps({
|
|
49
49
|
props: inProps,
|
|
50
50
|
name: 'MuiDialogContent'
|
|
51
51
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import Typography from '../Typography';
|
|
12
12
|
import { getDialogContentTextUtilityClass } from './dialogContentTextClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -30,7 +30,7 @@ var DialogContentTextRoot = styled(Typography, {
|
|
|
30
30
|
}
|
|
31
31
|
})({});
|
|
32
32
|
var DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentText(inProps, ref) {
|
|
33
|
-
var props =
|
|
33
|
+
var props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiDialogContentText'
|
|
36
36
|
});
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import Typography from '../Typography';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getDialogTitleUtilityClass } from './dialogTitleClasses';
|
|
13
13
|
import DialogContext from '../Dialog/DialogContext';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -30,7 +30,7 @@ var DialogTitleRoot = styled(Typography, {
|
|
|
30
30
|
flex: '0 0 auto'
|
|
31
31
|
});
|
|
32
32
|
var DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {
|
|
33
|
-
var props =
|
|
33
|
+
var props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiDialogTitle'
|
|
36
36
|
});
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { alpha } from '@mui/system/colorManipulator';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getDividerUtilityClass } from './dividerClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -136,7 +136,7 @@ var DividerWrapper = styled('span', {
|
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
var Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
139
|
-
var props =
|
|
139
|
+
var props = useDefaultProps({
|
|
140
140
|
props: inProps,
|
|
141
141
|
name: 'MuiDivider'
|
|
142
142
|
});
|
package/legacy/Drawer/Drawer.js
CHANGED
|
@@ -13,7 +13,7 @@ import Slide from '../Slide';
|
|
|
13
13
|
import Paper from '../Paper';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import useTheme from '../styles/useTheme';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
18
18
|
import { getDrawerUtilityClass } from './drawerClasses';
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -124,7 +124,7 @@ export function getAnchor(_ref3, anchor) {
|
|
|
124
124
|
* when `variant="temporary"` is set.
|
|
125
125
|
*/
|
|
126
126
|
var Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
127
|
-
var props =
|
|
127
|
+
var props = useDefaultProps({
|
|
128
128
|
props: inProps,
|
|
129
129
|
name: 'MuiDrawer'
|
|
130
130
|
});
|
package/legacy/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";
|
|
@@ -116,7 +116,7 @@ var FabRoot = styled(ButtonBase, {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
var Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
|
|
119
|
-
var props =
|
|
119
|
+
var props = useDefaultProps({
|
|
120
120
|
props: inProps,
|
|
121
121
|
name: 'MuiFab'
|
|
122
122
|
});
|
|
@@ -11,7 +11,7 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
12
|
import InputBase from '../InputBase';
|
|
13
13
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import filledInputClasses, { getFilledInputUtilityClass } from './filledInputClasses';
|
|
16
16
|
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -174,7 +174,7 @@ var FilledInputInput = styled(InputBaseInput, {
|
|
|
174
174
|
});
|
|
175
175
|
var FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {
|
|
176
176
|
var _ref5, _slots$root, _ref6, _slots$input;
|
|
177
|
-
var props =
|
|
177
|
+
var props = useDefaultProps({
|
|
178
178
|
props: inProps,
|
|
179
179
|
name: 'MuiFilledInput'
|
|
180
180
|
});
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
11
|
import { isFilled, isAdornedStart } from '../InputBase/utils';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
@@ -78,7 +78,7 @@ var FormControlRoot = styled('div', {
|
|
|
78
78
|
* For instance, only one input can be focused at the same time, the state shouldn't be shared.
|
|
79
79
|
*/
|
|
80
80
|
var FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps, ref) {
|
|
81
|
-
var props =
|
|
81
|
+
var props = useDefaultProps({
|
|
82
82
|
props: inProps,
|
|
83
83
|
name: 'MuiFormControl'
|
|
84
84
|
});
|
|
@@ -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";
|
|
@@ -86,7 +86,7 @@ var AsteriskComponent = styled('span', {
|
|
|
86
86
|
*/
|
|
87
87
|
var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {
|
|
88
88
|
var _ref5, _slotProps$typography;
|
|
89
|
-
var props =
|
|
89
|
+
var props = useDefaultProps({
|
|
90
90
|
props: inProps,
|
|
91
91
|
name: 'MuiFormControlLabel'
|
|
92
92
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import { getFormGroupUtilityClass } from './formGroupClasses';
|
|
12
12
|
import useFormControl from '../FormControl/useFormControl';
|
|
13
13
|
import formControlState from '../FormControl/formControlState';
|
|
@@ -45,7 +45,7 @@ var FormGroupRoot = styled('div', {
|
|
|
45
45
|
* For the `Radio`, you should be using the `RadioGroup` component instead of this one.
|
|
46
46
|
*/
|
|
47
47
|
var FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {
|
|
48
|
-
var props =
|
|
48
|
+
var props = useDefaultProps({
|
|
49
49
|
props: inProps,
|
|
50
50
|
name: 'MuiFormGroup'
|
|
51
51
|
});
|
|
@@ -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
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
19
19
|
var classes = ownerState.classes,
|
|
@@ -59,7 +59,7 @@ var FormHelperTextRoot = styled('p', {
|
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
var FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inProps, ref) {
|
|
62
|
-
var props =
|
|
62
|
+
var props = useDefaultProps({
|
|
63
63
|
props: inProps,
|
|
64
64
|
name: 'MuiFormHelperText'
|
|
65
65
|
});
|
|
@@ -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";
|
|
@@ -65,7 +65,7 @@ var AsteriskComponent = styled('span', {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
var FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
|
|
68
|
-
var props =
|
|
68
|
+
var props = useDefaultProps({
|
|
69
69
|
props: inProps,
|
|
70
70
|
name: 'MuiFormLabel'
|
|
71
71
|
});
|
package/legacy/Grid/Grid.js
CHANGED
|
@@ -23,7 +23,7 @@ import { extendSxProp } from '@mui/system/styleFunctionSx';
|
|
|
23
23
|
import composeClasses from '@mui/utils/composeClasses';
|
|
24
24
|
import requirePropFactory from '../utils/requirePropFactory';
|
|
25
25
|
import styled from '../styles/styled';
|
|
26
|
-
import
|
|
26
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
27
27
|
import useTheme from '../styles/useTheme';
|
|
28
28
|
import GridContext from './GridContext';
|
|
29
29
|
import gridClasses, { getGridUtilityClass } from './gridClasses';
|
|
@@ -349,7 +349,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
349
349
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
350
350
|
};
|
|
351
351
|
var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
352
|
-
var themeProps =
|
|
352
|
+
var themeProps = useDefaultProps({
|
|
353
353
|
props: inProps,
|
|
354
354
|
name: 'MuiGrid'
|
|
355
355
|
});
|
package/legacy/Icon/Icon.js
CHANGED
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import { getIconUtilityClass } from './iconClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -63,7 +63,7 @@ var IconRoot = styled('span', {
|
|
|
63
63
|
};
|
|
64
64
|
});
|
|
65
65
|
var Icon = /*#__PURE__*/React.forwardRef(function Icon(inProps, ref) {
|
|
66
|
-
var props =
|
|
66
|
+
var props = useDefaultProps({
|
|
67
67
|
props: inProps,
|
|
68
68
|
name: 'MuiIcon'
|
|
69
69
|
});
|
|
@@ -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';
|
|
@@ -96,7 +96,7 @@ var IconButtonRoot = styled(ButtonBase, {
|
|
|
96
96
|
* regarding the available icon options.
|
|
97
97
|
*/
|
|
98
98
|
var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {
|
|
99
|
-
var props =
|
|
99
|
+
var props = useDefaultProps({
|
|
100
100
|
props: inProps,
|
|
101
101
|
name: 'MuiIconButton'
|
|
102
102
|
});
|
|
@@ -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 { getImageListUtilityClass } from './imageListClasses';
|
|
13
13
|
import ImageListContext from './ImageListContext';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -41,7 +41,7 @@ var ImageListRoot = styled('ul', {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
var ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {
|
|
44
|
-
var props =
|
|
44
|
+
var props = useDefaultProps({
|
|
45
45
|
props: inProps,
|
|
46
46
|
name: 'MuiImageList'
|
|
47
47
|
});
|
|
@@ -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";
|
|
@@ -57,7 +57,7 @@ var ImageListItemRoot = styled('li', {
|
|
|
57
57
|
})));
|
|
58
58
|
});
|
|
59
59
|
var ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps, ref) {
|
|
60
|
-
var props =
|
|
60
|
+
var props = useDefaultProps({
|
|
61
61
|
props: inProps,
|
|
62
62
|
name: 'MuiImageListItem'
|
|
63
63
|
});
|
|
@@ -7,7 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import { getImageListItemBarUtilityClass } from './imageListItemBarClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -124,7 +124,7 @@ var ImageListItemBarActionIcon = styled('div', {
|
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
126
|
var ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(inProps, ref) {
|
|
127
|
-
var props =
|
|
127
|
+
var props = useDefaultProps({
|
|
128
128
|
props: inProps,
|
|
129
129
|
name: 'MuiImageListItemBar'
|
|
130
130
|
});
|
|
@@ -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 var 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/legacy/Input/Input.js
CHANGED
|
@@ -11,7 +11,7 @@ import deepmerge from '@mui/utils/deepmerge';
|
|
|
11
11
|
import refType from '@mui/utils/refType';
|
|
12
12
|
import InputBase from '../InputBase';
|
|
13
13
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import inputClasses, { getInputUtilityClass } from './inputClasses';
|
|
16
16
|
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -102,7 +102,7 @@ var InputInput = styled(InputBaseInput, {
|
|
|
102
102
|
})({});
|
|
103
103
|
var Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
104
104
|
var _ref3, _slots$root, _ref4, _slots$input;
|
|
105
|
-
var props =
|
|
105
|
+
var props = useDefaultProps({
|
|
106
106
|
props: inProps,
|
|
107
107
|
name: 'MuiInput'
|
|
108
108
|
});
|
|
@@ -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
|
var overridesResolver = function overridesResolver(props, styles) {
|
|
@@ -62,7 +62,7 @@ var InputAdornmentRoot = styled('div', {
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {
|
|
65
|
-
var props =
|
|
65
|
+
var props = useDefaultProps({
|
|
66
66
|
props: inProps,
|
|
67
67
|
name: 'MuiInputAdornment'
|
|
68
68
|
});
|
|
@@ -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';
|
|
@@ -202,7 +202,7 @@ var inputGlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {
|
|
|
202
202
|
*/
|
|
203
203
|
var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
204
204
|
var _slotProps$input;
|
|
205
|
-
var props =
|
|
205
|
+
var props = useDefaultProps({
|
|
206
206
|
props: inProps,
|
|
207
207
|
name: 'MuiInputBase'
|
|
208
208
|
});
|
|
@@ -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';
|
|
@@ -104,7 +104,7 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
104
104
|
}));
|
|
105
105
|
});
|
|
106
106
|
var InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
107
|
-
var props =
|
|
107
|
+
var props = useDefaultProps({
|
|
108
108
|
name: 'MuiInputLabel',
|
|
109
109
|
props: inProps
|
|
110
110
|
});
|
|
@@ -13,7 +13,7 @@ import { darken, lighten } from '@mui/system/colorManipulator';
|
|
|
13
13
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
|
-
import
|
|
16
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
17
17
|
import { getLinearProgressUtilityClass } from './linearProgressClasses';
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -173,7 +173,7 @@ var LinearProgressBar2 = styled('span', {
|
|
|
173
173
|
* attribute to `true` on that region until it has finished loading.
|
|
174
174
|
*/
|
|
175
175
|
var LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {
|
|
176
|
-
var props =
|
|
176
|
+
var props = useDefaultProps({
|
|
177
177
|
props: inProps,
|
|
178
178
|
name: 'MuiLinearProgress'
|
|
179
179
|
});
|
package/legacy/Link/Link.js
CHANGED
|
@@ -11,7 +11,7 @@ import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
|
-
import
|
|
14
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
15
15
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
16
16
|
import useForkRef from '../utils/useForkRef';
|
|
17
17
|
import Typography from '../Typography';
|
|
@@ -84,7 +84,7 @@ var LinkRoot = styled(Typography, {
|
|
|
84
84
|
}));
|
|
85
85
|
});
|
|
86
86
|
var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
87
|
-
var props =
|
|
87
|
+
var props = useDefaultProps({
|
|
88
88
|
props: inProps,
|
|
89
89
|
name: 'MuiLink'
|
|
90
90
|
});
|
package/legacy/List/List.js
CHANGED
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import ListContext from './ListContext';
|
|
12
12
|
import { getListUtilityClass } from './listClasses';
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -44,7 +44,7 @@ var ListRoot = styled('ul', {
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
var List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {
|
|
47
|
-
var props =
|
|
47
|
+
var props = useDefaultProps({
|
|
48
48
|
props: inProps,
|
|
49
49
|
name: 'MuiList'
|
|
50
50
|
});
|
|
@@ -12,7 +12,7 @@ import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
|
12
12
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
13
13
|
import { alpha } from '@mui/system/colorManipulator';
|
|
14
14
|
import styled from '../styles/styled';
|
|
15
|
-
import
|
|
15
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
16
16
|
import ButtonBase from '../ButtonBase';
|
|
17
17
|
import isMuiElement from '../utils/isMuiElement';
|
|
18
18
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
@@ -126,7 +126,7 @@ var ListItemContainer = styled('li', {
|
|
|
126
126
|
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
|
127
127
|
*/
|
|
128
128
|
var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
129
|
-
var props =
|
|
129
|
+
var props = useDefaultProps({
|
|
130
130
|
props: inProps,
|
|
131
131
|
name: 'MuiListItem'
|
|
132
132
|
});
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import ListContext from '../List/ListContext';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
-
import
|
|
11
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
12
|
import { getListItemAvatarUtilityClass } from './listItemAvatarClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -40,7 +40,7 @@ var ListItemAvatarRoot = styled('div', {
|
|
|
40
40
|
* A simple wrapper to apply `List` styles to an `Avatar`.
|
|
41
41
|
*/
|
|
42
42
|
var ListItemAvatar = /*#__PURE__*/React.forwardRef(function ListItemAvatar(inProps, ref) {
|
|
43
|
-
var props =
|
|
43
|
+
var props = useDefaultProps({
|
|
44
44
|
props: inProps,
|
|
45
45
|
name: 'MuiListItemAvatar'
|
|
46
46
|
});
|
|
@@ -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';
|
|
@@ -95,7 +95,7 @@ var ListItemButtonRoot = styled(ButtonBase, {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inProps, ref) {
|
|
98
|
-
var props =
|
|
98
|
+
var props = useDefaultProps({
|
|
99
99
|
props: inProps,
|
|
100
100
|
name: 'MuiListItemButton'
|
|
101
101
|
});
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import styled from '../styles/styled';
|
|
10
|
-
import
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
11
11
|
import { getListItemIconUtilityClass } from './listItemIconClasses';
|
|
12
12
|
import ListContext from '../List/ListContext';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -43,7 +43,7 @@ var ListItemIconRoot = styled('div', {
|
|
|
43
43
|
* A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
|
|
44
44
|
*/
|
|
45
45
|
var ListItemIcon = /*#__PURE__*/React.forwardRef(function ListItemIcon(inProps, ref) {
|
|
46
|
-
var props =
|
|
46
|
+
var props = useDefaultProps({
|
|
47
47
|
props: inProps,
|
|
48
48
|
name: 'MuiListItemIcon'
|
|
49
49
|
});
|