@mui/material 5.15.13 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +31 -25
- package/AccordionActions/AccordionActions.js +14 -12
- package/AccordionDetails/AccordionDetails.js +2 -2
- package/AccordionSummary/AccordionSummary.js +30 -25
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +71 -50
- package/Autocomplete/autocompleteClasses.d.ts +3 -3
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.js +156 -164
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -4
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonBase/TouchRipple.js +34 -39
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +195 -60
- 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.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +11 -16
- 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 +2 -4
- package/Icon/Icon.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- 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/OverridableComponent.d.ts +1 -1
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.d.ts +3 -26
- package/Popper/Popper.js +3 -4
- package/README.md +5 -3
- 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/Select.d.ts +8 -20
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +358 -195
- 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/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 +34 -24
- package/legacy/AccordionActions/AccordionActions.js +17 -14
- package/legacy/AccordionDetails/AccordionDetails.js +2 -2
- package/legacy/AccordionSummary/AccordionSummary.js +32 -24
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +134 -116
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +1 -2
- 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 +1 -2
- package/legacy/ButtonBase/ButtonBase.js +1 -2
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- 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/CircularProgress/CircularProgress.js +1 -1
- 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/Icon/Icon.js +1 -1
- 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 +374 -193
- 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 +2 -3
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -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 +27 -8
- package/legacy/styles/rootShouldForwardProp.js +5 -0
- package/legacy/styles/slotShouldForwardProp.js +5 -0
- package/legacy/styles/styled.js +4 -5
- package/legacy/usePagination/usePagination.js +1 -1
- package/modern/Accordion/Accordion.js +31 -25
- package/modern/AccordionActions/AccordionActions.js +14 -12
- package/modern/AccordionDetails/AccordionDetails.js +2 -2
- package/modern/AccordionSummary/AccordionSummary.js +30 -25
- package/modern/Alert/Alert.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +61 -36
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +1 -2
- 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 +1 -2
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- 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/CircularProgress/CircularProgress.js +1 -1
- 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/Icon/Icon.js +1 -1
- 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 +338 -174
- 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 +2 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -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 +22 -9
- package/modern/styles/rootShouldForwardProp.js +3 -0
- package/modern/styles/slotShouldForwardProp.js +5 -0
- package/modern/styles/styled.js +4 -3
- package/modern/usePagination/usePagination.js +1 -1
- package/node/Accordion/Accordion.js +33 -26
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +17 -15
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +5 -5
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +34 -28
- 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 +1 -1
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +73 -47
- 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 +1 -1
- 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 +1 -1
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/Ripple.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- 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 +2 -2
- 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 +1 -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 +2 -2
- 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/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 +415 -234
- 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 +2 -2
- 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 -1
- 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 +23 -10
- package/node/styles/index.js +1 -1
- package/node/styles/rootShouldForwardProp.js +10 -0
- package/node/styles/slotShouldForwardProp.js +11 -0
- package/node/styles/styled.js +17 -8
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/usePagination/usePagination.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/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 +23 -5
- package/styles/experimental_extendTheme.js +29 -17
- package/styles/rootShouldForwardProp.d.ts +2 -0
- package/styles/rootShouldForwardProp.js +3 -0
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/styles/slotShouldForwardProp.d.ts +2 -0
- package/styles/slotShouldForwardProp.js +5 -0
- package/styles/styled.d.ts +2 -3
- package/styles/styled.js +4 -3
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1819 -1179
- package/umd/material-ui.production.min.js +4 -4
- package/usePagination/usePagination.js +1 -1
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
|
@@ -1,19 +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";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"];
|
|
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 useThemeProps from '../styles/useThemeProps';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import ButtonBase from '../ButtonBase';
|
|
13
12
|
import unsupportedProp from '../utils/unsupportedProp';
|
|
14
13
|
import bottomNavigationActionClasses, { getBottomNavigationActionUtilityClass } from './bottomNavigationActionClasses';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiBottomNavigationAction');
|
|
17
16
|
const useUtilityClasses = ownerState => {
|
|
18
17
|
const {
|
|
19
18
|
classes,
|
|
@@ -36,9 +35,8 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
|
|
|
36
35
|
return [styles.root, !ownerState.showLabel && !ownerState.selected && styles.iconOnly];
|
|
37
36
|
}
|
|
38
37
|
})(({
|
|
39
|
-
theme
|
|
40
|
-
|
|
41
|
-
}) => _extends({
|
|
38
|
+
theme
|
|
39
|
+
}) => ({
|
|
42
40
|
transition: theme.transitions.create(['color', 'padding-top'], {
|
|
43
41
|
duration: theme.transitions.duration.short
|
|
44
42
|
}),
|
|
@@ -47,36 +45,54 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
|
|
|
47
45
|
maxWidth: 168,
|
|
48
46
|
color: (theme.vars || theme).palette.text.secondary,
|
|
49
47
|
flexDirection: 'column',
|
|
50
|
-
flex: '1'
|
|
51
|
-
}, !ownerState.showLabel && !ownerState.selected && {
|
|
52
|
-
paddingTop: 14
|
|
53
|
-
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
|
54
|
-
paddingTop: 0
|
|
55
|
-
}, {
|
|
48
|
+
flex: '1',
|
|
56
49
|
[`&.${bottomNavigationActionClasses.selected}`]: {
|
|
57
50
|
color: (theme.vars || theme).palette.primary.main
|
|
58
|
-
}
|
|
51
|
+
},
|
|
52
|
+
variants: [{
|
|
53
|
+
props: ({
|
|
54
|
+
showLabel,
|
|
55
|
+
selected
|
|
56
|
+
}) => !showLabel && !selected,
|
|
57
|
+
style: {
|
|
58
|
+
paddingTop: 14
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
props: ({
|
|
62
|
+
showLabel,
|
|
63
|
+
selected,
|
|
64
|
+
label
|
|
65
|
+
}) => !showLabel && !selected && !label,
|
|
66
|
+
style: {
|
|
67
|
+
paddingTop: 0
|
|
68
|
+
}
|
|
69
|
+
}]
|
|
59
70
|
}));
|
|
60
71
|
const BottomNavigationActionLabel = styled('span', {
|
|
61
72
|
name: 'MuiBottomNavigationAction',
|
|
62
73
|
slot: 'Label',
|
|
63
74
|
overridesResolver: (props, styles) => styles.label
|
|
64
75
|
})(({
|
|
65
|
-
theme
|
|
66
|
-
|
|
67
|
-
}) => _extends({
|
|
76
|
+
theme
|
|
77
|
+
}) => ({
|
|
68
78
|
fontFamily: theme.typography.fontFamily,
|
|
69
79
|
fontSize: theme.typography.pxToRem(12),
|
|
70
80
|
opacity: 1,
|
|
71
81
|
transition: 'font-size 0.2s, opacity 0.2s',
|
|
72
|
-
transitionDelay: '0.1s'
|
|
73
|
-
}, !ownerState.showLabel && !ownerState.selected && {
|
|
74
|
-
opacity: 0,
|
|
75
|
-
transitionDelay: '0s'
|
|
76
|
-
}, {
|
|
82
|
+
transitionDelay: '0.1s',
|
|
77
83
|
[`&.${bottomNavigationActionClasses.selected}`]: {
|
|
78
84
|
fontSize: theme.typography.pxToRem(14)
|
|
79
|
-
}
|
|
85
|
+
},
|
|
86
|
+
variants: [{
|
|
87
|
+
props: ({
|
|
88
|
+
showLabel,
|
|
89
|
+
selected
|
|
90
|
+
}) => !showLabel && !selected,
|
|
91
|
+
style: {
|
|
92
|
+
opacity: 0,
|
|
93
|
+
transitionDelay: '0s'
|
|
94
|
+
}
|
|
95
|
+
}]
|
|
80
96
|
}));
|
|
81
97
|
const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(inProps, ref) {
|
|
82
98
|
const props = useThemeProps({
|
|
@@ -10,12 +10,12 @@ import clsx from 'clsx';
|
|
|
10
10
|
import integerPropType from '@mui/utils/integerPropType';
|
|
11
11
|
import { useSlotProps } from '@mui/base/utils';
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
|
-
import styled from '../
|
|
14
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
14
|
import Typography from '../Typography';
|
|
16
15
|
import BreadcrumbCollapsed from './BreadcrumbCollapsed';
|
|
17
16
|
import breadcrumbsClasses, { getBreadcrumbsUtilityClass } from './breadcrumbsClasses';
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
const useThemeProps = createUseThemeProps('MuiBreadcrumbs');
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes
|
package/Button/Button.js
CHANGED
|
@@ -16,8 +16,7 @@ import capitalize from '../utils/capitalize';
|
|
|
16
16
|
import buttonClasses, { getButtonUtilityClass } from './buttonClasses';
|
|
17
17
|
import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';
|
|
18
18
|
import ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext';
|
|
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 useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
color,
|
|
@@ -63,7 +62,6 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
63
62
|
theme,
|
|
64
63
|
ownerState
|
|
65
64
|
}) => {
|
|
66
|
-
var _theme$palette$getCon, _theme$palette;
|
|
67
65
|
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
68
66
|
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
69
67
|
return _extends({}, theme.typography.button, {
|
|
@@ -136,7 +134,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
136
134
|
}, ownerState.variant === 'contained' && {
|
|
137
135
|
color: theme.vars ?
|
|
138
136
|
// this is safe because grey does not change between default light/dark mode
|
|
139
|
-
theme.vars.palette.text.primary :
|
|
137
|
+
theme.vars.palette.text.primary : theme.palette.getContrastText?.(theme.palette.grey[300]),
|
|
140
138
|
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
141
139
|
boxShadow: (theme.vars || theme).shadows[2]
|
|
142
140
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -16,8 +16,7 @@ import useEventCallback from '../utils/useEventCallback';
|
|
|
16
16
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
17
17
|
import TouchRipple from './TouchRipple';
|
|
18
18
|
import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';
|
|
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 useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
disabled,
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["center", "classes", "className"];
|
|
6
|
-
let _ = t => t,
|
|
7
|
-
_t,
|
|
8
|
-
_t2,
|
|
9
|
-
_t3,
|
|
10
|
-
_t4;
|
|
11
6
|
import * as React from 'react';
|
|
12
7
|
import PropTypes from 'prop-types';
|
|
13
8
|
import { TransitionGroup } from 'react-transition-group';
|
|
@@ -21,7 +16,7 @@ import touchRippleClasses from './touchRippleClasses';
|
|
|
21
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
17
|
const DURATION = 550;
|
|
23
18
|
export const DELAY_RIPPLE = 80;
|
|
24
|
-
const enterKeyframe = keyframes
|
|
19
|
+
const enterKeyframe = keyframes`
|
|
25
20
|
0% {
|
|
26
21
|
transform: scale(0);
|
|
27
22
|
opacity: 0.1;
|
|
@@ -31,8 +26,8 @@ const enterKeyframe = keyframes(_t || (_t = _`
|
|
|
31
26
|
transform: scale(1);
|
|
32
27
|
opacity: 0.3;
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
const exitKeyframe = keyframes
|
|
29
|
+
`;
|
|
30
|
+
const exitKeyframe = keyframes`
|
|
36
31
|
0% {
|
|
37
32
|
opacity: 1;
|
|
38
33
|
}
|
|
@@ -40,8 +35,8 @@ const exitKeyframe = keyframes(_t2 || (_t2 = _`
|
|
|
40
35
|
100% {
|
|
41
36
|
opacity: 0;
|
|
42
37
|
}
|
|
43
|
-
|
|
44
|
-
const pulsateKeyframe = keyframes
|
|
38
|
+
`;
|
|
39
|
+
const pulsateKeyframe = keyframes`
|
|
45
40
|
0% {
|
|
46
41
|
transform: scale(1);
|
|
47
42
|
}
|
|
@@ -53,7 +48,7 @@ const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
|
|
|
53
48
|
100% {
|
|
54
49
|
transform: scale(1);
|
|
55
50
|
}
|
|
56
|
-
|
|
51
|
+
`;
|
|
57
52
|
export const TouchRippleRoot = styled('span', {
|
|
58
53
|
name: 'MuiTouchRipple',
|
|
59
54
|
slot: 'Root'
|
|
@@ -74,23 +69,27 @@ export const TouchRippleRoot = styled('span', {
|
|
|
74
69
|
export const TouchRippleRipple = styled(Ripple, {
|
|
75
70
|
name: 'MuiTouchRipple',
|
|
76
71
|
slot: 'Ripple'
|
|
77
|
-
})
|
|
72
|
+
})`
|
|
78
73
|
opacity: 0;
|
|
79
74
|
position: absolute;
|
|
80
75
|
|
|
81
|
-
&.${
|
|
76
|
+
&.${touchRippleClasses.rippleVisible} {
|
|
82
77
|
opacity: 0.3;
|
|
83
78
|
transform: scale(1);
|
|
84
|
-
animation-name: ${
|
|
85
|
-
animation-duration: ${
|
|
86
|
-
animation-timing-function: ${
|
|
79
|
+
animation-name: ${enterKeyframe};
|
|
80
|
+
animation-duration: ${DURATION}ms;
|
|
81
|
+
animation-timing-function: ${({
|
|
82
|
+
theme
|
|
83
|
+
}) => theme.transitions.easing.easeInOut};
|
|
87
84
|
}
|
|
88
85
|
|
|
89
|
-
&.${
|
|
90
|
-
animation-duration: ${
|
|
86
|
+
&.${touchRippleClasses.ripplePulsate} {
|
|
87
|
+
animation-duration: ${({
|
|
88
|
+
theme
|
|
89
|
+
}) => theme.transitions.duration.shorter}ms;
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
& .${
|
|
92
|
+
& .${touchRippleClasses.child} {
|
|
94
93
|
opacity: 1;
|
|
95
94
|
display: block;
|
|
96
95
|
width: 100%;
|
|
@@ -99,33 +98,29 @@ export const TouchRippleRipple = styled(Ripple, {
|
|
|
99
98
|
background-color: currentColor;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
|
-
& .${
|
|
101
|
+
& .${touchRippleClasses.childLeaving} {
|
|
103
102
|
opacity: 0;
|
|
104
|
-
animation-name: ${
|
|
105
|
-
animation-duration: ${
|
|
106
|
-
animation-timing-function: ${
|
|
103
|
+
animation-name: ${exitKeyframe};
|
|
104
|
+
animation-duration: ${DURATION}ms;
|
|
105
|
+
animation-timing-function: ${({
|
|
106
|
+
theme
|
|
107
|
+
}) => theme.transitions.easing.easeInOut};
|
|
107
108
|
}
|
|
108
109
|
|
|
109
|
-
& .${
|
|
110
|
+
& .${touchRippleClasses.childPulsate} {
|
|
110
111
|
position: absolute;
|
|
111
112
|
/* @noflip */
|
|
112
113
|
left: 0px;
|
|
113
114
|
top: 0;
|
|
114
|
-
animation-name: ${
|
|
115
|
+
animation-name: ${pulsateKeyframe};
|
|
115
116
|
animation-duration: 2500ms;
|
|
116
|
-
animation-timing-function: ${
|
|
117
|
+
animation-timing-function: ${({
|
|
118
|
+
theme
|
|
119
|
+
}) => theme.transitions.easing.easeInOut};
|
|
117
120
|
animation-iteration-count: infinite;
|
|
118
121
|
animation-delay: 200ms;
|
|
119
122
|
}
|
|
120
|
-
|
|
121
|
-
theme
|
|
122
|
-
}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({
|
|
123
|
-
theme
|
|
124
|
-
}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({
|
|
125
|
-
theme
|
|
126
|
-
}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({
|
|
127
|
-
theme
|
|
128
|
-
}) => theme.transitions.easing.easeInOut);
|
|
123
|
+
`;
|
|
129
124
|
|
|
130
125
|
/**
|
|
131
126
|
* @ignore - internal component.
|
|
@@ -194,11 +189,11 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
194
189
|
center = centerProp || options.pulsate,
|
|
195
190
|
fakeElement = false // For test purposes
|
|
196
191
|
} = options;
|
|
197
|
-
if (
|
|
192
|
+
if (event?.type === 'mousedown' && ignoringMouseDown.current) {
|
|
198
193
|
ignoringMouseDown.current = false;
|
|
199
194
|
return;
|
|
200
195
|
}
|
|
201
|
-
if (
|
|
196
|
+
if (event?.type === 'touchstart') {
|
|
202
197
|
ignoringMouseDown.current = true;
|
|
203
198
|
}
|
|
204
199
|
const element = fakeElement ? null : container.current;
|
|
@@ -238,7 +233,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
238
233
|
}
|
|
239
234
|
|
|
240
235
|
// Touche devices
|
|
241
|
-
if (event
|
|
236
|
+
if (event?.touches) {
|
|
242
237
|
// check that this isn't another touchstart due to multitouch
|
|
243
238
|
// otherwise we will only clear a single timer when unmounting while two
|
|
244
239
|
// are running
|
|
@@ -282,7 +277,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
282
277
|
|
|
283
278
|
// The touch interaction occurs too quickly.
|
|
284
279
|
// We still want to show ripple effect.
|
|
285
|
-
if (
|
|
280
|
+
if (event?.type === 'touchend' && startTimerCommit.current) {
|
|
286
281
|
startTimerCommit.current();
|
|
287
282
|
startTimerCommit.current = null;
|
|
288
283
|
startTimer.start(0, () => {
|
|
@@ -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'],
|
|
@@ -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;
|