@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
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -10,12 +10,12 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import styled from '../
|
|
14
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
14
|
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
|
16
15
|
import ButtonGroupContext from './ButtonGroupContext';
|
|
17
16
|
import ButtonGroupButtonContext from './ButtonGroupButtonContext';
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
const useThemeProps = createUseThemeProps('MuiButtonGroup');
|
|
19
19
|
const overridesResolver = (props, styles) => {
|
|
20
20
|
const {
|
|
21
21
|
ownerState
|
|
@@ -49,7 +49,7 @@ const useUtilityClasses = ownerState => {
|
|
|
49
49
|
variant
|
|
50
50
|
} = ownerState;
|
|
51
51
|
const slots = {
|
|
52
|
-
root: ['root', variant, orientation
|
|
52
|
+
root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', `color${capitalize(color)}`],
|
|
53
53
|
grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],
|
|
54
54
|
firstButton: ['firstButton'],
|
|
55
55
|
lastButton: ['lastButton'],
|
|
@@ -62,80 +62,177 @@ const ButtonGroupRoot = styled('div', {
|
|
|
62
62
|
slot: 'Root',
|
|
63
63
|
overridesResolver
|
|
64
64
|
})(({
|
|
65
|
-
theme
|
|
66
|
-
|
|
67
|
-
}) => _extends({
|
|
65
|
+
theme
|
|
66
|
+
}) => ({
|
|
68
67
|
display: 'inline-flex',
|
|
69
|
-
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
69
|
+
variants: [{
|
|
70
|
+
props: {
|
|
71
|
+
variant: 'contained'
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
props: {
|
|
78
|
+
disableElevation: true
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
82
81
|
boxShadow: 'none'
|
|
83
|
-
})
|
|
84
|
-
}, ownerState.variant === 'contained' && {
|
|
85
|
-
boxShadow: 'none'
|
|
86
|
-
}),
|
|
87
|
-
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
|
88
|
-
borderTopRightRadius: 0,
|
|
89
|
-
borderBottomRightRadius: 0
|
|
90
|
-
}, ownerState.orientation === 'vertical' && {
|
|
91
|
-
borderBottomRightRadius: 0,
|
|
92
|
-
borderBottomLeftRadius: 0
|
|
93
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
94
|
-
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
95
|
-
[`&.${buttonGroupClasses.disabled}`]: {
|
|
96
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
97
82
|
}
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
83
|
+
}, {
|
|
84
|
+
props: {
|
|
85
|
+
fullWidth: true
|
|
86
|
+
},
|
|
87
|
+
style: {
|
|
88
|
+
width: '100%'
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
props: {
|
|
92
|
+
orientation: 'vertical'
|
|
93
|
+
},
|
|
94
|
+
style: {
|
|
95
|
+
flexDirection: 'column',
|
|
96
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
97
|
+
borderTopRightRadius: 0,
|
|
98
|
+
borderTopLeftRadius: 0
|
|
99
|
+
},
|
|
100
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
101
|
+
borderBottomRightRadius: 0,
|
|
102
|
+
borderBottomLeftRadius: 0
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
}, {
|
|
106
|
+
props: {
|
|
107
|
+
orientation: 'horizontal'
|
|
108
|
+
},
|
|
109
|
+
style: {
|
|
110
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
111
|
+
borderTopRightRadius: 0,
|
|
112
|
+
borderBottomRightRadius: 0
|
|
113
|
+
},
|
|
114
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
115
|
+
borderTopLeftRadius: 0,
|
|
116
|
+
borderBottomLeftRadius: 0
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
variant: 'text',
|
|
122
|
+
orientation: 'horizontal'
|
|
123
|
+
},
|
|
124
|
+
style: {
|
|
125
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
126
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
127
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
128
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
129
|
+
}
|
|
130
|
+
}
|
|
118
131
|
}
|
|
119
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
120
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
121
132
|
}, {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
props: {
|
|
134
|
+
variant: 'text',
|
|
135
|
+
orientation: 'vertical'
|
|
136
|
+
},
|
|
137
|
+
style: {
|
|
138
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
139
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
140
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
141
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).flatMap(([color]) => [{
|
|
146
|
+
props: {
|
|
147
|
+
variant: 'text',
|
|
148
|
+
color
|
|
149
|
+
},
|
|
150
|
+
style: {
|
|
151
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
152
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}]), {
|
|
156
|
+
props: {
|
|
157
|
+
variant: 'outlined',
|
|
158
|
+
orientation: 'horizontal'
|
|
159
|
+
},
|
|
160
|
+
style: {
|
|
161
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
162
|
+
borderRightColor: 'transparent',
|
|
163
|
+
'&:hover': {
|
|
164
|
+
borderRightColor: 'currentColor'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
168
|
+
marginLeft: -1
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
props: {
|
|
173
|
+
variant: 'outlined',
|
|
174
|
+
orientation: 'vertical'
|
|
175
|
+
},
|
|
176
|
+
style: {
|
|
177
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
178
|
+
borderBottomColor: 'transparent',
|
|
179
|
+
'&:hover': {
|
|
180
|
+
borderBottomColor: 'currentColor'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
184
|
+
marginTop: -1
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
props: {
|
|
189
|
+
variant: 'contained',
|
|
190
|
+
orientation: 'horizontal'
|
|
191
|
+
},
|
|
192
|
+
style: {
|
|
193
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
194
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
195
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
196
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
props: {
|
|
202
|
+
variant: 'contained',
|
|
203
|
+
orientation: 'vertical'
|
|
204
|
+
},
|
|
205
|
+
style: {
|
|
206
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
207
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
208
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
209
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.dark).map(([color]) => ({
|
|
214
|
+
props: {
|
|
215
|
+
variant: 'contained',
|
|
216
|
+
color
|
|
217
|
+
},
|
|
218
|
+
style: {
|
|
219
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
220
|
+
borderColor: (theme.vars || theme).palette[color].dark
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}))],
|
|
224
|
+
[`& .${buttonGroupClasses.grouped}`]: {
|
|
225
|
+
minWidth: 40,
|
|
226
|
+
boxShadow: 'none',
|
|
227
|
+
props: {
|
|
228
|
+
variant: 'contained'
|
|
229
|
+
},
|
|
230
|
+
style: {
|
|
231
|
+
'&:hover': {
|
|
232
|
+
boxShadow: 'none'
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
139
236
|
}));
|
|
140
237
|
const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
|
|
141
238
|
const props = useThemeProps({
|
|
@@ -15,43 +15,83 @@ export interface ButtonGroupClasses {
|
|
|
15
15
|
firstButton: string;
|
|
16
16
|
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
17
17
|
fullWidth: string;
|
|
18
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
19
|
+
horizontal: string;
|
|
18
20
|
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
19
21
|
vertical: string;
|
|
20
22
|
/** Styles applied to the children. */
|
|
21
23
|
grouped: string;
|
|
22
|
-
/** Styles applied to the
|
|
24
|
+
/** Styles applied to the root element if `color="primary"` */
|
|
25
|
+
colorPrimary: string;
|
|
26
|
+
/** Styles applied to the root element if `color="secondary"` */
|
|
27
|
+
colorSecondary: string;
|
|
28
|
+
/** Styles applied to the children if `orientation="horizontal"`.
|
|
29
|
+
* @deprecated Combine the [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
30
|
+
*/
|
|
23
31
|
groupedHorizontal: string;
|
|
24
|
-
/** Styles applied to the children if `orientation="vertical"`.
|
|
32
|
+
/** Styles applied to the children if `orientation="vertical"`.
|
|
33
|
+
* @deprecated Combine the [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
|
+
*/
|
|
25
35
|
groupedVertical: string;
|
|
26
|
-
/** Styles applied to the children if `variant="text"`.
|
|
36
|
+
/** Styles applied to the children if `variant="text"`.
|
|
37
|
+
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
|
+
*/
|
|
27
39
|
groupedText: string;
|
|
28
|
-
/** Styles applied to the children if `variant="text"` and `orientation="horizontal"`.
|
|
40
|
+
/** Styles applied to the children if `variant="text"` and `orientation="horizontal"`.
|
|
41
|
+
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
|
+
*/
|
|
29
43
|
groupedTextHorizontal: string;
|
|
30
|
-
/** Styles applied to the children if `variant="text"` and `orientation="vertical"`.
|
|
44
|
+
/** Styles applied to the children if `variant="text"` and `orientation="vertical"`.
|
|
45
|
+
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
|
+
*/
|
|
31
47
|
groupedTextVertical: string;
|
|
32
|
-
/** Styles applied to the children if `variant="text"` and `color="primary"`.
|
|
48
|
+
/** Styles applied to the children if `variant="text"` and `color="primary"`.
|
|
49
|
+
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
50
|
+
*/
|
|
33
51
|
groupedTextPrimary: string;
|
|
34
|
-
/** Styles applied to the children if `variant="text"` and `color="secondary"`.
|
|
52
|
+
/** Styles applied to the children if `variant="text"` and `color="secondary"`.
|
|
53
|
+
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
54
|
+
*/
|
|
35
55
|
groupedTextSecondary: string;
|
|
36
|
-
/** Styles applied to the children if `variant="outlined"`.
|
|
56
|
+
/** Styles applied to the children if `variant="outlined"`.
|
|
57
|
+
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
58
|
+
*/
|
|
37
59
|
groupedOutlined: string;
|
|
38
|
-
/** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`.
|
|
60
|
+
/** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`.
|
|
61
|
+
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
62
|
+
*/
|
|
39
63
|
groupedOutlinedHorizontal: string;
|
|
40
|
-
/** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`.
|
|
64
|
+
/** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`.
|
|
65
|
+
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
66
|
+
*/
|
|
41
67
|
groupedOutlinedVertical: string;
|
|
42
|
-
/** Styles applied to the children if `variant="outlined"` and `color="primary"`.
|
|
68
|
+
/** Styles applied to the children if `variant="outlined"` and `color="primary"`.
|
|
69
|
+
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
70
|
+
*/
|
|
43
71
|
groupedOutlinedPrimary: string;
|
|
44
|
-
/** Styles applied to the children if `variant="outlined"` and `color="secondary"`.
|
|
72
|
+
/** Styles applied to the children if `variant="outlined"` and `color="secondary"`.
|
|
73
|
+
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
74
|
+
*/
|
|
45
75
|
groupedOutlinedSecondary: string;
|
|
46
|
-
/** Styles applied to the children if `variant="contained"`.
|
|
76
|
+
/** Styles applied to the children if `variant="contained"`.
|
|
77
|
+
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
78
|
+
*/
|
|
47
79
|
groupedContained: string;
|
|
48
|
-
/** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`.
|
|
80
|
+
/** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`.
|
|
81
|
+
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
82
|
+
*/
|
|
49
83
|
groupedContainedHorizontal: string;
|
|
50
|
-
/** Styles applied to the children if `variant="contained"` and `orientation="vertical"`.
|
|
84
|
+
/** Styles applied to the children if `variant="contained"` and `orientation="vertical"`.
|
|
85
|
+
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
86
|
+
*/
|
|
51
87
|
groupedContainedVertical: string;
|
|
52
|
-
/** Styles applied to the children if `variant="contained"` and `color="primary"`.
|
|
88
|
+
/** Styles applied to the children if `variant="contained"` and `color="primary"`.
|
|
89
|
+
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
90
|
+
*/
|
|
53
91
|
groupedContainedPrimary: string;
|
|
54
|
-
/** Styles applied to the children if `variant="contained"` and `color="secondary"`.
|
|
92
|
+
/** Styles applied to the children if `variant="contained"` and `color="secondary"`.
|
|
93
|
+
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
94
|
+
*/
|
|
55
95
|
groupedContainedSecondary: string;
|
|
56
96
|
/** Styles applied to the last button in the button group. */
|
|
57
97
|
lastButton: string;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getButtonGroupUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiButtonGroup', slot);
|
|
5
5
|
}
|
|
6
|
-
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
|
|
6
|
+
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
|
|
7
7
|
export default buttonGroupClasses;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,171 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 5, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
|
|
12
|
+
- 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
|
|
13
|
+
- 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
|
|
14
|
+
|
|
15
|
+
### `@mui/material@6.0.0-alpha.1`
|
|
16
|
+
|
|
17
|
+
- [AppBar] Convert to support CSS extraction (#41247) @mnajdova
|
|
18
|
+
- [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
|
|
19
|
+
- [Button] Convert to support CSS extraction (#41378) @siriwatknp
|
|
20
|
+
- [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
|
|
21
|
+
- [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
|
|
22
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
23
|
+
- Add the `spacing` theme token (#40224) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/system@6.0.0-alpha.1`
|
|
26
|
+
|
|
27
|
+
- Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
|
|
28
|
+
|
|
29
|
+
### `@mui/codemod@6.0.0-alpha.1`
|
|
30
|
+
|
|
31
|
+
- [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
|
|
32
|
+
|
|
33
|
+
### `@mui/lab@6.0.0-alpha.1`
|
|
34
|
+
|
|
35
|
+
- [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
|
|
36
|
+
|
|
37
|
+
### `@mui/joy@5.0.0-beta.34`
|
|
38
|
+
|
|
39
|
+
- Add `spacing` theme token (#40224) @siriwatknp
|
|
40
|
+
|
|
41
|
+
### `@pigment-css/react@0.0.5`
|
|
42
|
+
|
|
43
|
+
- Improve sx prop support (#41589) @brijeshb42
|
|
44
|
+
- Fix Emotion styled error (#41699) @siriwatknp
|
|
45
|
+
- Fix propTypes removal during eval stage (#41695) @brijeshb42
|
|
46
|
+
- Fix props forwarding (#41688) @siriwatknp
|
|
47
|
+
- Fix sx prop transformation on Box (#41705) @brijeshb42
|
|
48
|
+
|
|
49
|
+
### `@pigment-css/vite-plugin@0.0.5`
|
|
50
|
+
|
|
51
|
+
- Use constant filename for pigment styles (#41667) @brijeshb42
|
|
52
|
+
|
|
53
|
+
### `@pigment-css/nextjs-plugin@0.0.5`
|
|
54
|
+
|
|
55
|
+
- Add missing RTL implementation (#41751) @brijeshb42
|
|
56
|
+
|
|
57
|
+
### Docs
|
|
58
|
+
|
|
59
|
+
- [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
|
|
60
|
+
- [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
|
|
61
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
62
|
+
- Stick to one way to write IE 11 @oliviertassinari
|
|
63
|
+
- Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
|
|
64
|
+
- Drop IE 11 official support (#41611) @iammminzzy
|
|
65
|
+
- [material-ui] Fix typo on the Accordion page (#41687) @connorshea
|
|
66
|
+
- [pigment-css] Add small edits on the README (#41646) @danilo-leal
|
|
67
|
+
- [pigment-css] Edit the example app's README files (#41639) @danilo-leal
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
|
|
72
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
|
|
73
|
+
- [core] Update the prettier script to use the next branch (#41637) @mnajdova
|
|
74
|
+
- [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
|
|
75
|
+
- [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
|
|
76
|
+
- [docs-infra] Allows to remove edit button (#41702) @alexfauquette
|
|
77
|
+
- [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
|
|
78
|
+
- [examples] Update MUI's packages to the next version (#41701) @mnajdova
|
|
79
|
+
- [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
|
|
80
|
+
- [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
|
|
81
|
+
- [blog] Refresh the design slightly (#41697) @danilo-leal
|
|
82
|
+
- [website] Use en-US over en-UK for career link @oliviertassinari
|
|
83
|
+
- [website] Add Aarón to About Us (#41736) @aarongarciah
|
|
84
|
+
- [website] Refine button design and other details (#41686) @danilo-leal
|
|
85
|
+
- [website] Improve job og image (#41672) @oliviertassinari
|
|
86
|
+
- [website] Page <title> should have no dots @oliviertassinari
|
|
87
|
+
|
|
88
|
+
All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
|
|
89
|
+
|
|
90
|
+
## v6.0.0-alpha.0
|
|
91
|
+
|
|
92
|
+
<!-- generated comparing v5.15.14..next -->
|
|
93
|
+
|
|
94
|
+
_Mar 26, 2024_
|
|
95
|
+
|
|
96
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
97
|
+
|
|
98
|
+
- 🔥 Converted 10+ Material UI components to support static CSS extraction
|
|
99
|
+
- ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
|
|
100
|
+
|
|
101
|
+
### `@mui/material@6.0.0-alpha.0`
|
|
102
|
+
|
|
103
|
+
- [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
|
|
104
|
+
- [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
|
|
105
|
+
- [Backdrop] Convert to support CSS extraction (#41581) @aacevski
|
|
106
|
+
- [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
|
|
107
|
+
- [Card] Convert to support CSS extraction (#41580) @aacevski
|
|
108
|
+
- [Divider] Convert to support CSS extraction (#41366) @sai6855
|
|
109
|
+
- [FormControl] Convert to support CSS extraction (#41613) @aacevski
|
|
110
|
+
- [FormGroup] Convert to support CSS extraction (#41614) @aacevski
|
|
111
|
+
- [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
|
|
112
|
+
- [Modal] Support CSS extraction (#41483) @sai6855
|
|
113
|
+
- [Popover] Convert to support CSS extraction (#41564) @aacevski
|
|
114
|
+
- [Stepper] Convert to support CSS extraction (#41546) @aacevski
|
|
115
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
|
|
116
|
+
- [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
|
|
117
|
+
- [ButtonGroup] Deprecate composed classes (#41259) @sai6855
|
|
118
|
+
- [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
|
|
119
|
+
- [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
|
|
120
|
+
|
|
121
|
+
### `@pigment-css/react@0.0.4`
|
|
122
|
+
|
|
123
|
+
- Fix evaluation of undefined variables (#41569) @siriwatknp
|
|
124
|
+
- Fix react-modal demos location (#41560) @sai6855
|
|
125
|
+
- [react] RTL Support (#41570) @brijeshb42
|
|
126
|
+
|
|
127
|
+
### `@mui/system@6.0.0-alpha.0`
|
|
128
|
+
|
|
129
|
+
- [core] Standardize index pattern (#41574) @DiegoAndai
|
|
130
|
+
- Fix typo to avoid infinite recursion in function call (#41616) @michael-land
|
|
131
|
+
- Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
|
|
132
|
+
|
|
133
|
+
### Docs
|
|
134
|
+
|
|
135
|
+
- [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
|
|
136
|
+
- [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
|
|
137
|
+
- [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
|
|
138
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
|
|
139
|
+
- [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
|
|
140
|
+
|
|
141
|
+
### Core
|
|
142
|
+
|
|
143
|
+
- [blog] Update the callout (#41645) @cherniavskii
|
|
144
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
|
|
145
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
|
|
146
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
147
|
+
- [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
|
|
148
|
+
- [core] Fix failing CI steps (#41636) @mnajdova
|
|
149
|
+
- [core] Update browser support versions (#41568) @siriwatknp
|
|
150
|
+
- [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
|
|
151
|
+
- [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
|
|
152
|
+
- [core] Init the next branch (#41552) @mnajdova
|
|
153
|
+
- [core] Lower the frequency of no-response action runs (#41553) @michaldudak
|
|
154
|
+
- [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
|
|
155
|
+
- [core] Run pnpm dedupe (#41658) @michaldudak
|
|
156
|
+
- [core] Fix dedupe check (#41657) @Janpot
|
|
157
|
+
- [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
|
|
158
|
+
- [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
|
|
159
|
+
- [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
|
|
160
|
+
- [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
|
|
161
|
+
- [docs] Update the installation guides to use the next tag (#41558) @mnajdova
|
|
162
|
+
- [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
|
|
163
|
+
- [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
164
|
+
- [website] Update pricing table (#41595) @cherniavskii
|
|
165
|
+
- [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
|
|
166
|
+
|
|
167
|
+
All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
|
|
168
|
+
|
|
3
169
|
## v5.15.15
|
|
4
170
|
|
|
5
171
|
<!-- generated comparing v5.15.14..master -->
|
|
@@ -49,7 +215,7 @@ _Mar 18, 2024_
|
|
|
49
215
|
A big thanks to the 15 contributors who made this release possible.
|
|
50
216
|
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
51
217
|
|
|
52
|
-
### `@mui/material@5.15.
|
|
218
|
+
### `@mui/material@5.15.14`
|
|
53
219
|
|
|
54
220
|
- [Accordion] Convert to support CSS extraction (#41221) @mnajdova
|
|
55
221
|
- ​<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
|
|
@@ -854,7 +1020,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
854
1020
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
855
1021
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
856
1022
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
857
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1023
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
858
1024
|
- Fix strange italic style @oliviertassinari
|
|
859
1025
|
- Fix references to ESLint @oliviertassinari
|
|
860
1026
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -13018,7 +13184,7 @@ Here are some highlights ✨:
|
|
|
13018
13184
|
|
|
13019
13185
|
1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
|
|
13020
13186
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
13021
|
-
3. `legacy` (new) which is `stable` +
|
|
13187
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
13022
13188
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
13023
13189
|
|
|
13024
13190
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
package/Card/Card.js
CHANGED
|
@@ -8,11 +8,11 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import styled from '../
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import Paper from '../Paper';
|
|
14
13
|
import { getCardUtilityClass } from './cardClasses';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiCard');
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
classes
|
|
@@ -26,10 +26,8 @@ const CardRoot = styled(Paper, {
|
|
|
26
26
|
name: 'MuiCard',
|
|
27
27
|
slot: 'Root',
|
|
28
28
|
overridesResolver: (props, styles) => styles.root
|
|
29
|
-
})(
|
|
30
|
-
|
|
31
|
-
overflow: 'hidden'
|
|
32
|
-
};
|
|
29
|
+
})({
|
|
30
|
+
overflow: 'hidden'
|
|
33
31
|
});
|
|
34
32
|
const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
|
35
33
|
const props = useThemeProps({
|
|
@@ -7,12 +7,11 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
11
|
-
import styled from '../styles/styled';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import cardActionAreaClasses, { getCardActionAreaUtilityClass } from './cardActionAreaClasses';
|
|
13
12
|
import ButtonBase from '../ButtonBase';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiCardActionArea');
|
|
16
15
|
const useUtilityClasses = ownerState => {
|
|
17
16
|
const {
|
|
18
17
|
classes
|