@mui/material 5.15.15 → 6.0.0-alpha.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 +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +119 -69
- package/Autocomplete/Autocomplete.js +11 -16
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.d.ts +2 -4
- package/Badge/Badge.js +158 -168
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +221 -134
- package/ButtonBase/ButtonBase.js +3 -4
- package/ButtonBase/Ripple.js +1 -1
- package/ButtonBase/TouchRipple.js +37 -43
- package/ButtonGroup/ButtonGroup.js +168 -71
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +169 -3
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +5 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +185 -203
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/Table/Table.d.ts +0 -2
- package/Table/Table.js +0 -2
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AppBar/AppBar.js +124 -64
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +3 -6
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +219 -125
- package/legacy/ButtonBase/ButtonBase.js +3 -4
- package/legacy/ButtonBase/Ripple.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +3 -4
- package/legacy/ButtonGroup/ButtonGroup.js +164 -69
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/Grid/Grid.js +3 -0
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +25 -26
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/Table/Table.js +0 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +50 -9
- package/legacy/zero-styled/index.js +1 -0
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/AppBar/AppBar.js +118 -68
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +3 -6
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +221 -133
- package/modern/ButtonBase/ButtonBase.js +3 -4
- package/modern/ButtonBase/Ripple.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +3 -4
- package/modern/ButtonGroup/ButtonGroup.js +168 -71
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/Grid/Grid.js +3 -0
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +23 -24
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/Table/Table.js +0 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +45 -10
- package/modern/zero-styled/index.js +1 -0
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +126 -67
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +3 -5
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +225 -136
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +5 -5
- package/node/ButtonBase/Ripple.js +2 -2
- package/node/ButtonBase/TouchRipple.js +10 -11
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +171 -74
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +4 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/index.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +26 -26
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -3
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +46 -11
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/node/zero-styled/index.js +7 -0
- package/package.json +6 -6
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +25 -5
- package/styles/experimental_extendTheme.js +52 -18
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1718 -1047
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
- package/zero-styled/index.d.ts +1 -0
- package/zero-styled/index.js +1 -0
package/Accordion/Accordion.js
CHANGED
|
@@ -16,8 +16,7 @@ import AccordionContext from './AccordionContext';
|
|
|
16
16
|
import useControlled from '../utils/useControlled';
|
|
17
17
|
import useSlot from '../utils/useSlot';
|
|
18
18
|
import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useThemeProps = createUseThemeProps('MuiAccordion');
|
|
22
21
|
const useUtilityClasses = ownerState => {
|
|
23
22
|
const {
|
|
@@ -11,8 +11,7 @@ import { styled, createUseThemeProps } from '../zero-styled';
|
|
|
11
11
|
import ButtonBase from '../ButtonBase';
|
|
12
12
|
import AccordionContext from '../Accordion/AccordionContext';
|
|
13
13
|
import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const useThemeProps = createUseThemeProps('MuiAccordionSummary');
|
|
17
16
|
const useUtilityClasses = ownerState => {
|
|
18
17
|
const {
|
package/Alert/Alert.js
CHANGED
|
@@ -19,8 +19,7 @@ import ReportProblemOutlinedIcon from '../internal/svg-icons/ReportProblemOutlin
|
|
|
19
19
|
import ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline';
|
|
20
20
|
import InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';
|
|
21
21
|
import CloseIcon from '../internal/svg-icons/Close';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const useThemeProps = createUseThemeProps('MuiAlert');
|
|
25
24
|
const useUtilityClasses = ownerState => {
|
|
26
25
|
const {
|
package/AppBar/AppBar.js
CHANGED
|
@@ -7,12 +7,12 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import styled from '../
|
|
11
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import capitalize from '../utils/capitalize';
|
|
13
12
|
import Paper from '../Paper';
|
|
14
13
|
import { getAppBarUtilityClass } from './appBarClasses';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiAppBar');
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
color,
|
|
@@ -27,7 +27,7 @@ const useUtilityClasses = ownerState => {
|
|
|
27
27
|
|
|
28
28
|
// var2 is the fallback.
|
|
29
29
|
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
|
30
|
-
const joinVars = (var1, var2) => var1 ? `${var1
|
|
30
|
+
const joinVars = (var1, var2) => var1 ? `${var1?.replace(')', '')}, ${var2})` : var2;
|
|
31
31
|
const AppBarRoot = styled(Paper, {
|
|
32
32
|
name: 'MuiAppBar',
|
|
33
33
|
slot: 'Root',
|
|
@@ -38,75 +38,125 @@ const AppBarRoot = styled(Paper, {
|
|
|
38
38
|
return [styles.root, styles[`position${capitalize(ownerState.position)}`], styles[`color${capitalize(ownerState.color)}`]];
|
|
39
39
|
}
|
|
40
40
|
})(({
|
|
41
|
-
theme
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
theme
|
|
42
|
+
}) => ({
|
|
43
|
+
display: 'flex',
|
|
44
|
+
flexDirection: 'column',
|
|
45
|
+
width: '100%',
|
|
46
|
+
boxSizing: 'border-box',
|
|
47
|
+
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
|
48
|
+
flexShrink: 0,
|
|
49
|
+
variants: [{
|
|
50
|
+
props: {
|
|
51
|
+
position: 'fixed'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
position: 'fixed',
|
|
55
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
56
|
+
top: 0,
|
|
57
|
+
left: 'auto',
|
|
58
|
+
right: 0,
|
|
59
|
+
'@media print': {
|
|
60
|
+
// Prevent the app bar to be visible on each printed page.
|
|
61
|
+
position: 'absolute'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
props: {
|
|
60
66
|
position: 'absolute'
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
71
|
+
top: 0,
|
|
72
|
+
left: 'auto',
|
|
73
|
+
right: 0
|
|
61
74
|
}
|
|
62
|
-
}, ownerState.position === 'absolute' && {
|
|
63
|
-
position: 'absolute',
|
|
64
|
-
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
65
|
-
top: 0,
|
|
66
|
-
left: 'auto',
|
|
67
|
-
right: 0
|
|
68
|
-
}, ownerState.position === 'sticky' && {
|
|
69
|
-
// ⚠️ sticky is not supported by IE11.
|
|
70
|
-
position: 'sticky',
|
|
71
|
-
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
72
|
-
top: 0,
|
|
73
|
-
left: 'auto',
|
|
74
|
-
right: 0
|
|
75
|
-
}, ownerState.position === 'static' && {
|
|
76
|
-
position: 'static'
|
|
77
|
-
}, ownerState.position === 'relative' && {
|
|
78
|
-
position: 'relative'
|
|
79
|
-
}, !theme.vars && _extends({}, ownerState.color === 'default' && {
|
|
80
|
-
backgroundColor: backgroundColorDefault,
|
|
81
|
-
color: theme.palette.getContrastText(backgroundColorDefault)
|
|
82
|
-
}, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
|
|
83
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
84
|
-
color: theme.palette[ownerState.color].contrastText
|
|
85
|
-
}, ownerState.color === 'inherit' && {
|
|
86
|
-
color: 'inherit'
|
|
87
|
-
}, theme.palette.mode === 'dark' && !ownerState.enableColorOnDark && {
|
|
88
|
-
backgroundColor: null,
|
|
89
|
-
color: null
|
|
90
|
-
}, ownerState.color === 'transparent' && _extends({
|
|
91
|
-
backgroundColor: 'transparent',
|
|
92
|
-
color: 'inherit'
|
|
93
|
-
}, theme.palette.mode === 'dark' && {
|
|
94
|
-
backgroundImage: 'none'
|
|
95
|
-
})), theme.vars && _extends({}, ownerState.color === 'default' && {
|
|
96
|
-
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
|
|
97
|
-
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
|
|
98
|
-
}, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
|
|
99
|
-
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
|
|
100
|
-
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
|
|
101
75
|
}, {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
76
|
+
props: {
|
|
77
|
+
position: 'sticky'
|
|
78
|
+
},
|
|
79
|
+
style: {
|
|
80
|
+
// ⚠️ sticky is not supported by IE11.
|
|
81
|
+
position: 'sticky',
|
|
82
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
83
|
+
top: 0,
|
|
84
|
+
left: 'auto',
|
|
85
|
+
right: 0
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
props: {
|
|
89
|
+
position: 'static'
|
|
90
|
+
},
|
|
91
|
+
style: {
|
|
92
|
+
position: 'static'
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
props: {
|
|
96
|
+
position: 'relative'
|
|
97
|
+
},
|
|
98
|
+
style: {
|
|
99
|
+
position: 'relative'
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
props: {
|
|
103
|
+
color: 'inherit'
|
|
104
|
+
},
|
|
105
|
+
style: {
|
|
106
|
+
'--AppBar-color': 'inherit'
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
props: {
|
|
110
|
+
color: 'default'
|
|
111
|
+
},
|
|
112
|
+
style: _extends({
|
|
113
|
+
'--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],
|
|
114
|
+
'--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100])
|
|
115
|
+
}, theme.applyStyles('dark', {
|
|
116
|
+
'--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],
|
|
117
|
+
'--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])
|
|
118
|
+
}))
|
|
119
|
+
}, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main && (theme.vars ?? theme).palette[key].contrastText).map(color => ({
|
|
120
|
+
props: {
|
|
121
|
+
color
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
'--AppBar-background': (theme.vars ?? theme).palette[color].main,
|
|
125
|
+
'--AppBar-color': (theme.vars ?? theme).palette[color].contrastText
|
|
126
|
+
}
|
|
127
|
+
})), {
|
|
128
|
+
props: {
|
|
129
|
+
enableColorOnDark: true
|
|
130
|
+
},
|
|
131
|
+
style: {
|
|
132
|
+
backgroundColor: 'var(--AppBar-background)',
|
|
133
|
+
color: 'var(--AppBar-color)'
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
props: {
|
|
137
|
+
enableColorOnDark: false
|
|
138
|
+
},
|
|
139
|
+
style: _extends({
|
|
140
|
+
backgroundColor: 'var(--AppBar-background)',
|
|
141
|
+
color: 'var(--AppBar-color)'
|
|
142
|
+
}, theme.applyStyles('dark', {
|
|
143
|
+
backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, 'var(--AppBar-background)') : null,
|
|
144
|
+
color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, 'var(--AppBar-color)') : null
|
|
145
|
+
}))
|
|
146
|
+
}, {
|
|
147
|
+
props: {
|
|
148
|
+
color: 'transparent'
|
|
149
|
+
},
|
|
150
|
+
style: _extends({
|
|
151
|
+
'--AppBar-background': 'transparent',
|
|
152
|
+
'--AppBar-color': 'inherit',
|
|
153
|
+
backgroundColor: 'var(--AppBar-background)',
|
|
154
|
+
color: 'var(--AppBar-color)'
|
|
155
|
+
}, theme.applyStyles('dark', {
|
|
156
|
+
backgroundImage: 'none'
|
|
157
|
+
}))
|
|
158
|
+
}]
|
|
159
|
+
}));
|
|
110
160
|
const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
|
111
161
|
const props = useThemeProps({
|
|
112
162
|
props: inProps,
|
|
@@ -28,8 +28,7 @@ import { styled, createUseThemeProps } from '../zero-styled';
|
|
|
28
28
|
import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
|
|
29
29
|
import capitalize from '../utils/capitalize';
|
|
30
30
|
import useForkRef from '../utils/useForkRef';
|
|
31
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
32
|
import { createElement as _createElement } from "react";
|
|
34
33
|
const useThemeProps = createUseThemeProps('MuiAutocomplete');
|
|
35
34
|
const useUtilityClasses = ownerState => {
|
|
@@ -397,7 +396,6 @@ const AutocompleteGroupUl = styled('ul', {
|
|
|
397
396
|
});
|
|
398
397
|
export { createFilterOptions };
|
|
399
398
|
const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
|
|
400
|
-
var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
|
|
401
399
|
const props = useThemeProps({
|
|
402
400
|
props: inProps,
|
|
403
401
|
name: 'MuiAutocomplete'
|
|
@@ -489,17 +487,14 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
489
487
|
} = getInputProps();
|
|
490
488
|
const {
|
|
491
489
|
ref: externalListboxRef
|
|
492
|
-
} = ListboxProps
|
|
490
|
+
} = ListboxProps ?? {};
|
|
493
491
|
const _getListboxProps = getListboxProps(),
|
|
494
492
|
{
|
|
495
493
|
ref: listboxRef
|
|
496
494
|
} = _getListboxProps,
|
|
497
495
|
otherListboxProps = _objectWithoutPropertiesLoose(_getListboxProps, _excluded2);
|
|
498
496
|
const combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
499
|
-
const defaultGetOptionLabel = option =>
|
|
500
|
-
var _option$label;
|
|
501
|
-
return (_option$label = option.label) != null ? _option$label : option;
|
|
502
|
-
};
|
|
497
|
+
const defaultGetOptionLabel = option => option.label ?? option;
|
|
503
498
|
const getOptionLabel = getOptionLabelProp || defaultGetOptionLabel;
|
|
504
499
|
|
|
505
500
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
@@ -576,10 +571,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
576
571
|
inputValue
|
|
577
572
|
}, ownerState);
|
|
578
573
|
};
|
|
579
|
-
const clearIndicatorSlotProps =
|
|
580
|
-
const paperSlotProps =
|
|
581
|
-
const popperSlotProps =
|
|
582
|
-
const popupIndicatorSlotProps =
|
|
574
|
+
const clearIndicatorSlotProps = slotProps.clearIndicator ?? componentsProps.clearIndicator;
|
|
575
|
+
const paperSlotProps = slotProps.paper ?? componentsProps.paper;
|
|
576
|
+
const popperSlotProps = slotProps.popper ?? componentsProps.popper;
|
|
577
|
+
const popupIndicatorSlotProps = slotProps.popupIndicator ?? componentsProps.popupIndicator;
|
|
583
578
|
const renderAutocompletePopperChildren = children => /*#__PURE__*/_jsx(AutocompletePopper, _extends({
|
|
584
579
|
as: PopperComponent,
|
|
585
580
|
disablePortal: disablePortal,
|
|
@@ -591,12 +586,12 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
591
586
|
anchorEl: anchorEl,
|
|
592
587
|
open: popupOpen
|
|
593
588
|
}, popperSlotProps, {
|
|
594
|
-
className: clsx(classes.popper, popperSlotProps
|
|
589
|
+
className: clsx(classes.popper, popperSlotProps?.className),
|
|
595
590
|
children: /*#__PURE__*/_jsx(AutocompletePaper, _extends({
|
|
596
591
|
ownerState: ownerState,
|
|
597
592
|
as: PaperComponent
|
|
598
593
|
}, paperSlotProps, {
|
|
599
|
-
className: clsx(classes.paper, paperSlotProps
|
|
594
|
+
className: clsx(classes.paper, paperSlotProps?.className),
|
|
600
595
|
children: children
|
|
601
596
|
}))
|
|
602
597
|
}));
|
|
@@ -667,7 +662,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
667
662
|
title: clearText,
|
|
668
663
|
ownerState: ownerState
|
|
669
664
|
}, clearIndicatorSlotProps, {
|
|
670
|
-
className: clsx(classes.clearIndicator, clearIndicatorSlotProps
|
|
665
|
+
className: clsx(classes.clearIndicator, clearIndicatorSlotProps?.className),
|
|
671
666
|
children: clearIcon
|
|
672
667
|
})) : null, hasPopupIcon ? /*#__PURE__*/_jsx(AutocompletePopupIndicator, _extends({}, getPopupIndicatorProps(), {
|
|
673
668
|
disabled: disabled,
|
|
@@ -675,7 +670,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
675
670
|
title: popupOpen ? closeText : openText,
|
|
676
671
|
ownerState: ownerState
|
|
677
672
|
}, popupIndicatorSlotProps, {
|
|
678
|
-
className: clsx(classes.popupIndicator, popupIndicatorSlotProps
|
|
673
|
+
className: clsx(classes.popupIndicator, popupIndicatorSlotProps?.className),
|
|
679
674
|
children: popupIcon
|
|
680
675
|
})) : null]
|
|
681
676
|
})
|
|
@@ -9,16 +9,15 @@ import { isFragment } from 'react-is';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
|
-
import styled from '../
|
|
13
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
13
|
import Avatar, { avatarClasses } from '../Avatar';
|
|
15
14
|
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
16
|
const SPACINGS = {
|
|
19
17
|
small: -16,
|
|
20
|
-
medium:
|
|
18
|
+
medium: -8
|
|
21
19
|
};
|
|
20
|
+
const useThemeProps = createUseThemeProps('MuiAlert');
|
|
22
21
|
const useUtilityClasses = ownerState => {
|
|
23
22
|
const {
|
|
24
23
|
classes
|
|
@@ -36,25 +35,20 @@ const AvatarGroupRoot = styled('div', {
|
|
|
36
35
|
[`& .${avatarGroupClasses.avatar}`]: styles.avatar
|
|
37
36
|
}, styles.root)
|
|
38
37
|
})(({
|
|
39
|
-
theme
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
display: 'flex',
|
|
53
|
-
flexDirection: 'row-reverse'
|
|
54
|
-
};
|
|
55
|
-
});
|
|
38
|
+
theme
|
|
39
|
+
}) => ({
|
|
40
|
+
display: 'flex',
|
|
41
|
+
flexDirection: 'row-reverse',
|
|
42
|
+
[`& .${avatarClasses.root}`]: {
|
|
43
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
44
|
+
boxSizing: 'content-box',
|
|
45
|
+
marginLeft: 'var(--AvatarGroup-spacing, -8px)',
|
|
46
|
+
'&:last-child': {
|
|
47
|
+
marginLeft: 0
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
56
51
|
const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {
|
|
57
|
-
var _slotProps$additional;
|
|
58
52
|
const props = useThemeProps({
|
|
59
53
|
props: inProps,
|
|
60
54
|
name: 'MuiAvatarGroup'
|
|
@@ -96,7 +90,8 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
96
90
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
97
91
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
98
92
|
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
99
|
-
const additionalAvatarSlotProps =
|
|
93
|
+
const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
|
|
94
|
+
const marginValue = ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined ? SPACINGS[ownerState.spacing] : -ownerState.spacing || -8;
|
|
100
95
|
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
|
101
96
|
as: component,
|
|
102
97
|
ownerState: ownerState,
|
|
@@ -106,7 +101,10 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
106
101
|
children: [extraAvatars ? /*#__PURE__*/_jsx(Avatar, _extends({
|
|
107
102
|
variant: variant
|
|
108
103
|
}, additionalAvatarSlotProps, {
|
|
109
|
-
className: clsx(classes.avatar, additionalAvatarSlotProps
|
|
104
|
+
className: clsx(classes.avatar, additionalAvatarSlotProps?.className),
|
|
105
|
+
style: _extends({
|
|
106
|
+
'--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined
|
|
107
|
+
}, other.style),
|
|
110
108
|
children: extraAvatarsElement
|
|
111
109
|
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
112
110
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -182,6 +180,10 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
182
180
|
* @default 'medium'
|
|
183
181
|
*/
|
|
184
182
|
spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]),
|
|
183
|
+
/**
|
|
184
|
+
* @ignore
|
|
185
|
+
*/
|
|
186
|
+
style: PropTypes.object,
|
|
185
187
|
/**
|
|
186
188
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
187
189
|
*/
|
package/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -5,10 +5,46 @@ import { TransitionProps } from '../transitions/transition';
|
|
|
5
5
|
import { Theme } from '../styles';
|
|
6
6
|
import { BackdropClasses } from './backdropClasses';
|
|
7
7
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
8
|
+
import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
|
|
8
9
|
|
|
10
|
+
export interface BackdropSlots {
|
|
11
|
+
/**
|
|
12
|
+
* The component that renders the root.
|
|
13
|
+
* @default 'div'
|
|
14
|
+
*/
|
|
15
|
+
root?: React.ElementType;
|
|
16
|
+
/**
|
|
17
|
+
* The component that renders the transition.
|
|
18
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
19
|
+
* @default Fade
|
|
20
|
+
*/
|
|
21
|
+
transition?: React.JSXElementConstructor<
|
|
22
|
+
TransitionProps & { children: React.ReactElement<any, any> }
|
|
23
|
+
>;
|
|
24
|
+
}
|
|
9
25
|
export interface BackdropComponentsPropsOverrides {}
|
|
10
26
|
|
|
11
|
-
export interface
|
|
27
|
+
export interface BackdropTransitionSlotPropsOverrides {}
|
|
28
|
+
|
|
29
|
+
export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
30
|
+
BackdropSlots,
|
|
31
|
+
{
|
|
32
|
+
root: SlotProps<
|
|
33
|
+
React.ElementType<HTMLDivElement>,
|
|
34
|
+
BackdropComponentsPropsOverrides,
|
|
35
|
+
BackdropOwnerState
|
|
36
|
+
>;
|
|
37
|
+
transition: SlotProps<
|
|
38
|
+
React.JSXElementConstructor<TransitionProps>,
|
|
39
|
+
BackdropTransitionSlotPropsOverrides,
|
|
40
|
+
BackdropOwnerState
|
|
41
|
+
>;
|
|
42
|
+
}
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export interface BackdropOwnProps
|
|
46
|
+
extends Partial<Omit<FadeProps, 'children'>>,
|
|
47
|
+
BackdropSlotsAndSlotProps {
|
|
12
48
|
/**
|
|
13
49
|
* The content of the component.
|
|
14
50
|
*/
|
|
@@ -50,27 +86,6 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>> {
|
|
|
50
86
|
* If `true`, the component is shown.
|
|
51
87
|
*/
|
|
52
88
|
open: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* The extra props for the slot components.
|
|
55
|
-
* You can override the existing props or add new ones.
|
|
56
|
-
*
|
|
57
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
58
|
-
*
|
|
59
|
-
* @default {}
|
|
60
|
-
*/
|
|
61
|
-
slotProps?: {
|
|
62
|
-
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The components used for each slot inside.
|
|
66
|
-
*
|
|
67
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
68
|
-
*
|
|
69
|
-
* @default {}
|
|
70
|
-
*/
|
|
71
|
-
slots?: {
|
|
72
|
-
root?: React.ElementType;
|
|
73
|
-
};
|
|
74
89
|
/**
|
|
75
90
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
76
91
|
*/
|
|
@@ -84,6 +99,7 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>> {
|
|
|
84
99
|
* The component used for the transition.
|
|
85
100
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
86
101
|
* @default Fade
|
|
102
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
87
103
|
*/
|
|
88
104
|
TransitionComponent?: React.JSXElementConstructor<
|
|
89
105
|
TransitionProps & {
|
|
@@ -124,4 +140,6 @@ export type BackdropProps<
|
|
|
124
140
|
component?: React.ElementType;
|
|
125
141
|
};
|
|
126
142
|
|
|
143
|
+
export interface BackdropOwnerState extends BackdropProps {}
|
|
144
|
+
|
|
127
145
|
export default Backdrop;
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["children", "className", "component", "invisible", "open", "components", "componentsProps", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import styled from '../
|
|
11
|
-
import
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
11
|
+
import useSlot from '../utils/useSlot';
|
|
12
12
|
import Fade from '../Fade';
|
|
13
13
|
import { getBackdropUtilityClass } from './backdropClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiBackdrop');
|
|
15
16
|
const useUtilityClasses = ownerState => {
|
|
16
17
|
const {
|
|
17
18
|
classes,
|
|
@@ -31,9 +32,7 @@ const BackdropRoot = styled('div', {
|
|
|
31
32
|
} = props;
|
|
32
33
|
return [styles.root, ownerState.invisible && styles.invisible];
|
|
33
34
|
}
|
|
34
|
-
})(
|
|
35
|
-
ownerState
|
|
36
|
-
}) => _extends({
|
|
35
|
+
})({
|
|
37
36
|
position: 'fixed',
|
|
38
37
|
display: 'flex',
|
|
39
38
|
alignItems: 'center',
|
|
@@ -43,12 +42,17 @@ const BackdropRoot = styled('div', {
|
|
|
43
42
|
top: 0,
|
|
44
43
|
left: 0,
|
|
45
44
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
46
|
-
WebkitTapHighlightColor: 'transparent'
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
WebkitTapHighlightColor: 'transparent',
|
|
46
|
+
variants: [{
|
|
47
|
+
props: {
|
|
48
|
+
invisible: true
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
backgroundColor: 'transparent'
|
|
52
|
+
}
|
|
53
|
+
}]
|
|
54
|
+
});
|
|
50
55
|
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
51
|
-
var _slotProps$root, _ref, _slots$root;
|
|
52
56
|
const props = useThemeProps({
|
|
53
57
|
props: inProps,
|
|
54
58
|
name: 'MuiBackdrop'
|
|
@@ -57,13 +61,13 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
57
61
|
children,
|
|
58
62
|
className,
|
|
59
63
|
component = 'div',
|
|
60
|
-
components = {},
|
|
61
|
-
componentsProps = {},
|
|
62
64
|
invisible = false,
|
|
63
65
|
open,
|
|
66
|
+
components = {},
|
|
67
|
+
componentsProps = {},
|
|
64
68
|
slotProps = {},
|
|
65
69
|
slots = {},
|
|
66
|
-
TransitionComponent
|
|
70
|
+
TransitionComponent: TransitionComponentProp,
|
|
67
71
|
transitionDuration
|
|
68
72
|
} = props,
|
|
69
73
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
@@ -72,17 +76,34 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
72
76
|
invisible
|
|
73
77
|
});
|
|
74
78
|
const classes = useUtilityClasses(ownerState);
|
|
75
|
-
const
|
|
76
|
-
|
|
79
|
+
const backwardCompatibleSlots = _extends({
|
|
80
|
+
transition: TransitionComponentProp,
|
|
81
|
+
root: components.Root
|
|
82
|
+
}, slots);
|
|
83
|
+
const backwardCompatibleSlotProps = _extends({}, componentsProps, slotProps);
|
|
84
|
+
const externalForwardedProps = {
|
|
85
|
+
slots: backwardCompatibleSlots,
|
|
86
|
+
slotProps: backwardCompatibleSlotProps
|
|
87
|
+
};
|
|
88
|
+
const [RootSlot, rootProps] = useSlot('root', {
|
|
89
|
+
elementType: BackdropRoot,
|
|
90
|
+
externalForwardedProps,
|
|
91
|
+
className: clsx(classes.root, className),
|
|
92
|
+
ownerState
|
|
93
|
+
});
|
|
94
|
+
const [TransitionSlot, transitionProps] = useSlot('transition', {
|
|
95
|
+
elementType: Fade,
|
|
96
|
+
externalForwardedProps,
|
|
97
|
+
ownerState
|
|
98
|
+
});
|
|
99
|
+
delete transitionProps.ownerState;
|
|
100
|
+
return /*#__PURE__*/_jsx(TransitionSlot, _extends({
|
|
77
101
|
in: open,
|
|
78
102
|
timeout: transitionDuration
|
|
79
|
-
}, other, {
|
|
80
|
-
children: /*#__PURE__*/_jsx(
|
|
103
|
+
}, other, transitionProps, {
|
|
104
|
+
children: /*#__PURE__*/_jsx(RootSlot, _extends({
|
|
81
105
|
"aria-hidden": true
|
|
82
|
-
},
|
|
83
|
-
as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,
|
|
84
|
-
className: clsx(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
|
|
85
|
-
ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
106
|
+
}, rootProps, {
|
|
86
107
|
classes: classes,
|
|
87
108
|
ref: ref,
|
|
88
109
|
children: children
|
|
@@ -145,25 +166,20 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
145
166
|
*/
|
|
146
167
|
open: PropTypes.bool.isRequired,
|
|
147
168
|
/**
|
|
148
|
-
* The
|
|
149
|
-
* You can override the existing props or add new ones.
|
|
150
|
-
*
|
|
151
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
152
|
-
*
|
|
169
|
+
* The props used for each slot inside.
|
|
153
170
|
* @default {}
|
|
154
171
|
*/
|
|
155
172
|
slotProps: PropTypes.shape({
|
|
156
|
-
root: PropTypes.object
|
|
173
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
174
|
+
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
157
175
|
}),
|
|
158
176
|
/**
|
|
159
177
|
* The components used for each slot inside.
|
|
160
|
-
*
|
|
161
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
162
|
-
*
|
|
163
178
|
* @default {}
|
|
164
179
|
*/
|
|
165
180
|
slots: PropTypes.shape({
|
|
166
|
-
root: PropTypes.elementType
|
|
181
|
+
root: PropTypes.elementType,
|
|
182
|
+
transition: PropTypes.elementType
|
|
167
183
|
}),
|
|
168
184
|
/**
|
|
169
185
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -173,6 +189,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
173
189
|
* The component used for the transition.
|
|
174
190
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
175
191
|
* @default Fade
|
|
192
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
176
193
|
*/
|
|
177
194
|
TransitionComponent: PropTypes.elementType,
|
|
178
195
|
/**
|