@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
package/SvgIcon/SvgIcon.js
CHANGED
|
@@ -11,8 +11,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import styled from '../styles/styled';
|
|
13
13
|
import { getSvgIconUtilityClass } from './svgIconClasses';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const useUtilityClasses = ownerState => {
|
|
17
16
|
const {
|
|
18
17
|
color,
|
|
@@ -36,34 +35,31 @@ const SvgIconRoot = styled('svg', {
|
|
|
36
35
|
})(({
|
|
37
36
|
theme,
|
|
38
37
|
ownerState
|
|
39
|
-
}) => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}[ownerState.color]
|
|
65
|
-
};
|
|
66
|
-
});
|
|
38
|
+
}) => ({
|
|
39
|
+
userSelect: 'none',
|
|
40
|
+
width: '1em',
|
|
41
|
+
height: '1em',
|
|
42
|
+
display: 'inline-block',
|
|
43
|
+
// the <svg> will define the property that has `currentColor`
|
|
44
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
45
|
+
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
transition: theme.transitions?.create?.('fill', {
|
|
48
|
+
duration: theme.transitions?.duration?.shorter
|
|
49
|
+
}),
|
|
50
|
+
fontSize: {
|
|
51
|
+
inherit: 'inherit',
|
|
52
|
+
small: theme.typography?.pxToRem?.(20) || '1.25rem',
|
|
53
|
+
medium: theme.typography?.pxToRem?.(24) || '1.5rem',
|
|
54
|
+
large: theme.typography?.pxToRem?.(35) || '2.1875rem'
|
|
55
|
+
}[ownerState.fontSize],
|
|
56
|
+
// TODO v5 deprecate, v6 remove for sx
|
|
57
|
+
color: (theme.vars || theme).palette?.[ownerState.color]?.main ?? {
|
|
58
|
+
action: (theme.vars || theme).palette?.action?.active,
|
|
59
|
+
disabled: (theme.vars || theme).palette?.action?.disabled,
|
|
60
|
+
inherit: undefined
|
|
61
|
+
}[ownerState.color]
|
|
62
|
+
}));
|
|
67
63
|
const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
68
64
|
const props = useThemeProps({
|
|
69
65
|
props: inProps,
|
|
@@ -22,8 +22,7 @@ import SwipeArea from './SwipeArea';
|
|
|
22
22
|
|
|
23
23
|
// This value is closed to what browsers are using internally to
|
|
24
24
|
// trigger a native scroll.
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const UNCERTAINTY_THRESHOLD = 3; // px
|
|
28
27
|
|
|
29
28
|
// This is the part of the drawer displayed on touch start.
|
|
@@ -400,12 +399,11 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
400
399
|
const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));
|
|
401
400
|
const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));
|
|
402
401
|
if (!open) {
|
|
403
|
-
var _paperRef$current;
|
|
404
402
|
// logic for if swipe should be ignored:
|
|
405
403
|
// if disableSwipeToOpen
|
|
406
404
|
// if target != swipeArea, and target is not a child of paper ref
|
|
407
405
|
// if is a child of paper ref, and `allowSwipeInChildren` does not allow it
|
|
408
|
-
if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current ||
|
|
406
|
+
if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || paperRef.current?.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {
|
|
409
407
|
return;
|
|
410
408
|
}
|
|
411
409
|
if (horizontalSwipe) {
|
package/Switch/Switch.js
CHANGED
|
@@ -14,8 +14,7 @@ import capitalize from '../utils/capitalize';
|
|
|
14
14
|
import SwitchBase from '../internal/SwitchBase';
|
|
15
15
|
import { styled, createUseThemeProps } from '../zero-styled';
|
|
16
16
|
import switchClasses, { getSwitchUtilityClass } from './switchClasses';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
const useThemeProps = createUseThemeProps('MuiSwitch');
|
|
20
19
|
const useUtilityClasses = ownerState => {
|
|
21
20
|
const {
|
|
@@ -54,7 +54,6 @@ const TabScrollButtonRoot = styled(ButtonBase, {
|
|
|
54
54
|
}
|
|
55
55
|
}));
|
|
56
56
|
const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
57
|
-
var _slots$StartScrollBut, _slots$EndScrollButto;
|
|
58
57
|
const props = useThemeProps({
|
|
59
58
|
props: inProps,
|
|
60
59
|
name: 'MuiTabScrollButton'
|
|
@@ -71,8 +70,8 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
|
|
|
71
70
|
isRtl
|
|
72
71
|
}, props);
|
|
73
72
|
const classes = useUtilityClasses(ownerState);
|
|
74
|
-
const StartButtonIcon =
|
|
75
|
-
const EndButtonIcon =
|
|
73
|
+
const StartButtonIcon = slots.StartScrollButtonIcon ?? KeyboardArrowLeft;
|
|
74
|
+
const EndButtonIcon = slots.EndScrollButtonIcon ?? KeyboardArrowRight;
|
|
76
75
|
const startButtonIconProps = useSlotProps({
|
|
77
76
|
elementType: StartButtonIcon,
|
|
78
77
|
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
@@ -21,9 +21,8 @@ import Toolbar from '../Toolbar';
|
|
|
21
21
|
import TablePaginationActions from './TablePaginationActions';
|
|
22
22
|
import useId from '../utils/useId';
|
|
23
23
|
import tablePaginationClasses, { getTablePaginationUtilityClass } from './tablePaginationClasses';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { createElement as _createElement } from "react";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const TablePaginationRoot = styled(TableCell, {
|
|
28
27
|
name: 'MuiTablePagination',
|
|
29
28
|
slot: 'Root',
|
|
@@ -145,7 +144,6 @@ const useUtilityClasses = ownerState => {
|
|
|
145
144
|
* A `TableCell` based component for placing inside `TableFooter` for pagination.
|
|
146
145
|
*/
|
|
147
146
|
const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(inProps, ref) {
|
|
148
|
-
var _slotProps$select;
|
|
149
147
|
const props = useThemeProps({
|
|
150
148
|
props: inProps,
|
|
151
149
|
name: 'MuiTablePagination'
|
|
@@ -176,7 +174,7 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
176
174
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
177
175
|
const ownerState = props;
|
|
178
176
|
const classes = useUtilityClasses(ownerState);
|
|
179
|
-
const selectProps =
|
|
177
|
+
const selectProps = slotProps?.select ?? SelectProps;
|
|
180
178
|
const MenuItemComponent = selectProps.native ? 'option' : TablePaginationMenuItem;
|
|
181
179
|
let colSpan;
|
|
182
180
|
if (component === TableCell || component === 'td') {
|
|
@@ -15,10 +15,8 @@ import FirstPageIconDefault from '../internal/svg-icons/FirstPage';
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - internal component.
|
|
17
17
|
*/
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePaginationActions(props, ref) {
|
|
21
|
-
var _slots$firstButton, _slots$lastButton, _slots$nextButton, _slots$previousButton, _slots$firstButtonIco, _slots$lastButtonIcon, _slots$nextButtonIcon, _slots$previousButton2;
|
|
22
20
|
const {
|
|
23
21
|
backIconButtonProps,
|
|
24
22
|
count,
|
|
@@ -47,14 +45,14 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
47
45
|
const handleLastPageButtonClick = event => {
|
|
48
46
|
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
|
|
49
47
|
};
|
|
50
|
-
const FirstButton =
|
|
51
|
-
const LastButton =
|
|
52
|
-
const NextButton =
|
|
53
|
-
const PreviousButton =
|
|
54
|
-
const FirstButtonIcon =
|
|
55
|
-
const LastButtonIcon =
|
|
56
|
-
const NextButtonIcon =
|
|
57
|
-
const PreviousButtonIcon =
|
|
48
|
+
const FirstButton = slots.firstButton ?? IconButton;
|
|
49
|
+
const LastButton = slots.lastButton ?? IconButton;
|
|
50
|
+
const NextButton = slots.nextButton ?? IconButton;
|
|
51
|
+
const PreviousButton = slots.previousButton ?? IconButton;
|
|
52
|
+
const FirstButtonIcon = slots.firstButtonIcon ?? FirstPageIconDefault;
|
|
53
|
+
const LastButtonIcon = slots.lastButtonIcon ?? LastPageIconDefault;
|
|
54
|
+
const NextButtonIcon = slots.nextButtonIcon ?? KeyboardArrowRight;
|
|
55
|
+
const PreviousButtonIcon = slots.previousButtonIcon ?? KeyboardArrowLeft;
|
|
58
56
|
const FirstButtonSlot = isRtl ? LastButton : FirstButton;
|
|
59
57
|
const PreviousButtonSlot = isRtl ? NextButton : PreviousButton;
|
|
60
58
|
const NextButtonSlot = isRtl ? PreviousButton : NextButton;
|
|
@@ -79,7 +77,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
79
77
|
color: "inherit",
|
|
80
78
|
"aria-label": getItemAriaLabel('previous', page),
|
|
81
79
|
title: getItemAriaLabel('previous', page)
|
|
82
|
-
}, previousButtonSlotProps
|
|
80
|
+
}, previousButtonSlotProps ?? backIconButtonProps, {
|
|
83
81
|
children: isRtl ? /*#__PURE__*/_jsx(NextButtonIcon, _extends({}, slotProps.nextButtonIcon)) : /*#__PURE__*/_jsx(PreviousButtonIcon, _extends({}, slotProps.previousButtonIcon))
|
|
84
82
|
})), /*#__PURE__*/_jsx(NextButtonSlot, _extends({
|
|
85
83
|
onClick: handleNextButtonClick,
|
|
@@ -87,7 +85,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
87
85
|
color: "inherit",
|
|
88
86
|
"aria-label": getItemAriaLabel('next', page),
|
|
89
87
|
title: getItemAriaLabel('next', page)
|
|
90
|
-
}, nextButtonSlotProps
|
|
88
|
+
}, nextButtonSlotProps ?? nextIconButtonProps, {
|
|
91
89
|
children: isRtl ? /*#__PURE__*/_jsx(PreviousButtonIcon, _extends({}, slotProps.previousButtonIcon)) : /*#__PURE__*/_jsx(NextButtonIcon, _extends({}, slotProps.nextButtonIcon))
|
|
92
90
|
})), showLastButton && /*#__PURE__*/_jsx(LastButtonSlot, _extends({
|
|
93
91
|
onClick: handleLastPageButtonClick,
|
|
@@ -13,8 +13,7 @@ import styled from '../styles/styled';
|
|
|
13
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import tableSortLabelClasses, { getTableSortLabelUtilityClass } from './tableSortLabelClasses';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
const useUtilityClasses = ownerState => {
|
|
19
18
|
const {
|
|
20
19
|
classes,
|
package/Tabs/Tabs.js
CHANGED
|
@@ -23,8 +23,7 @@ import useEventCallback from '../utils/useEventCallback';
|
|
|
23
23
|
import tabsClasses, { getTabsUtilityClass } from './tabsClasses';
|
|
24
24
|
import ownerDocument from '../utils/ownerDocument';
|
|
25
25
|
import ownerWindow from '../utils/ownerWindow';
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const nextItem = (list, item) => {
|
|
29
28
|
if (list === item) {
|
|
30
29
|
return list.firstChild;
|
|
@@ -510,12 +509,10 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
510
509
|
const handleMutation = records => {
|
|
511
510
|
records.forEach(record => {
|
|
512
511
|
record.removedNodes.forEach(item => {
|
|
513
|
-
|
|
514
|
-
(_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
|
|
512
|
+
resizeObserver?.unobserve(item);
|
|
515
513
|
});
|
|
516
514
|
record.addedNodes.forEach(item => {
|
|
517
|
-
|
|
518
|
-
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
|
|
515
|
+
resizeObserver?.observe(item);
|
|
519
516
|
});
|
|
520
517
|
});
|
|
521
518
|
handleResize();
|
|
@@ -537,11 +534,10 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
537
534
|
});
|
|
538
535
|
}
|
|
539
536
|
return () => {
|
|
540
|
-
var _mutationObserver, _resizeObserver3;
|
|
541
537
|
handleResize.clear();
|
|
542
538
|
win.removeEventListener('resize', handleResize);
|
|
543
|
-
|
|
544
|
-
|
|
539
|
+
mutationObserver?.disconnect();
|
|
540
|
+
resizeObserver?.disconnect();
|
|
545
541
|
};
|
|
546
542
|
}, [updateIndicatorState, updateScrollButtonState]);
|
|
547
543
|
|
|
@@ -575,7 +571,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
575
571
|
};
|
|
576
572
|
}
|
|
577
573
|
return undefined;
|
|
578
|
-
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp
|
|
574
|
+
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp?.length]);
|
|
579
575
|
React.useEffect(() => {
|
|
580
576
|
setMounted(true);
|
|
581
577
|
}, []);
|
package/TextField/TextField.js
CHANGED
|
@@ -19,8 +19,7 @@ import FormControl from '../FormControl';
|
|
|
19
19
|
import FormHelperText from '../FormHelperText';
|
|
20
20
|
import Select from '../Select';
|
|
21
21
|
import { getTextFieldUtilityClass } from './textFieldClasses';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const variantComponent = {
|
|
25
24
|
standard: Input,
|
|
26
25
|
filled: FilledInput,
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -24,8 +24,7 @@ import useId from '../utils/useId';
|
|
|
24
24
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
25
25
|
import useControlled from '../utils/useControlled';
|
|
26
26
|
import tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
28
|
function round(value) {
|
|
30
29
|
return Math.round(value * 1e5) / 1e5;
|
|
31
30
|
}
|
|
@@ -217,7 +216,6 @@ function composeEventHandler(handler, eventHandler) {
|
|
|
217
216
|
|
|
218
217
|
// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
|
|
219
218
|
const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
220
|
-
var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;
|
|
221
219
|
const props = useThemeProps({
|
|
222
220
|
props: inProps,
|
|
223
221
|
name: 'MuiTooltip'
|
|
@@ -503,7 +501,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
503
501
|
}
|
|
504
502
|
}
|
|
505
503
|
const popperOptions = React.useMemo(() => {
|
|
506
|
-
var _PopperProps$popperOp;
|
|
507
504
|
let tooltipModifiers = [{
|
|
508
505
|
name: 'arrow',
|
|
509
506
|
enabled: Boolean(arrowRef),
|
|
@@ -512,7 +509,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
512
509
|
padding: 4
|
|
513
510
|
}
|
|
514
511
|
}];
|
|
515
|
-
if (
|
|
512
|
+
if (PopperProps.popperOptions?.modifiers) {
|
|
516
513
|
tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);
|
|
517
514
|
}
|
|
518
515
|
return _extends({}, PopperProps.popperOptions, {
|
|
@@ -528,23 +525,23 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
528
525
|
touch: ignoreNonTouchEvents.current
|
|
529
526
|
});
|
|
530
527
|
const classes = useUtilityClasses(ownerState);
|
|
531
|
-
const PopperComponent =
|
|
532
|
-
const TransitionComponent =
|
|
533
|
-
const TooltipComponent =
|
|
534
|
-
const ArrowComponent =
|
|
535
|
-
const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps,
|
|
536
|
-
className: clsx(classes.popper, PopperProps
|
|
528
|
+
const PopperComponent = slots.popper ?? components.Popper ?? TooltipPopper;
|
|
529
|
+
const TransitionComponent = slots.transition ?? components.Transition ?? TransitionComponentProp ?? Grow;
|
|
530
|
+
const TooltipComponent = slots.tooltip ?? components.Tooltip ?? TooltipTooltip;
|
|
531
|
+
const ArrowComponent = slots.arrow ?? components.Arrow ?? TooltipArrow;
|
|
532
|
+
const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, slotProps.popper ?? componentsProps.popper, {
|
|
533
|
+
className: clsx(classes.popper, PopperProps?.className, (slotProps.popper ?? componentsProps.popper)?.className)
|
|
537
534
|
}), ownerState);
|
|
538
|
-
const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps,
|
|
539
|
-
const tooltipProps = appendOwnerState(TooltipComponent, _extends({},
|
|
540
|
-
className: clsx(classes.tooltip, (
|
|
535
|
+
const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, slotProps.transition ?? componentsProps.transition), ownerState);
|
|
536
|
+
const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, slotProps.tooltip ?? componentsProps.tooltip, {
|
|
537
|
+
className: clsx(classes.tooltip, (slotProps.tooltip ?? componentsProps.tooltip)?.className)
|
|
541
538
|
}), ownerState);
|
|
542
|
-
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({},
|
|
543
|
-
className: clsx(classes.arrow, (
|
|
539
|
+
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, slotProps.arrow ?? componentsProps.arrow, {
|
|
540
|
+
className: clsx(classes.arrow, (slotProps.arrow ?? componentsProps.arrow)?.className)
|
|
544
541
|
}), ownerState);
|
|
545
542
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
546
543
|
children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({
|
|
547
|
-
as: PopperComponentProp
|
|
544
|
+
as: PopperComponentProp ?? Popper,
|
|
548
545
|
placement: placement,
|
|
549
546
|
anchorEl: followCursor ? {
|
|
550
547
|
getBoundingClientRect: () => ({
|
package/index.js
CHANGED
package/internal/SwitchBase.js
CHANGED
|
@@ -14,8 +14,7 @@ import useControlled from '../utils/useControlled';
|
|
|
14
14
|
import useFormControl from '../FormControl/useFormControl';
|
|
15
15
|
import ButtonBase from '../ButtonBase';
|
|
16
16
|
import { getSwitchBaseUtilityClass } from './switchBaseClasses';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
const useUtilityClasses = ownerState => {
|
|
20
19
|
const {
|
|
21
20
|
classes,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
4
|
import _toArray from "@babel/runtime/helpers/esm/toArray";
|
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { isFragment } from 'react-is';
|
|
@@ -11,16 +11,15 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
13
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
14
|
-
import styled from '../
|
|
15
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
14
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
16
15
|
import Collapse from '../Collapse';
|
|
17
16
|
import Paper from '../Paper';
|
|
18
17
|
import AccordionContext from './AccordionContext';
|
|
19
18
|
import useControlled from '../utils/useControlled';
|
|
20
19
|
import useSlot from '../utils/useSlot';
|
|
21
20
|
import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
var useThemeProps = createUseThemeProps('MuiAccordion');
|
|
24
23
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
25
24
|
var classes = ownerState.classes,
|
|
26
25
|
square = ownerState.square,
|
|
@@ -85,26 +84,37 @@ var AccordionRoot = styled(Paper, {
|
|
|
85
84
|
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
86
85
|
});
|
|
87
86
|
}, function (_ref4) {
|
|
88
|
-
var theme = _ref4.theme
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
var theme = _ref4.theme;
|
|
88
|
+
return {
|
|
89
|
+
variants: [{
|
|
90
|
+
props: function props(_props) {
|
|
91
|
+
return !_props.square;
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
borderRadius: 0,
|
|
95
|
+
'&:first-of-type': {
|
|
96
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
97
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius
|
|
98
|
+
},
|
|
99
|
+
'&:last-of-type': {
|
|
100
|
+
borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
101
|
+
borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
102
|
+
// Fix a rendering issue on Edge
|
|
103
|
+
'@supports (-ms-ime-align: auto)': {
|
|
104
|
+
borderBottomLeftRadius: 0,
|
|
105
|
+
borderBottomRightRadius: 0
|
|
106
|
+
}
|
|
107
|
+
}
|
|
103
108
|
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
}, {
|
|
110
|
+
props: function props(_props2) {
|
|
111
|
+
return !_props2.disableGutters;
|
|
112
|
+
},
|
|
113
|
+
style: _defineProperty({}, "&.".concat(accordionClasses.expanded), {
|
|
114
|
+
margin: '16px 0'
|
|
115
|
+
})
|
|
116
|
+
}]
|
|
117
|
+
};
|
|
108
118
|
});
|
|
109
119
|
var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
|
110
120
|
var props = useThemeProps({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import styled from '../
|
|
10
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
9
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
11
10
|
import { getAccordionActionsUtilityClass } from './accordionActionsClasses';
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var useThemeProps = createUseThemeProps('MuiAccordionActions');
|
|
13
13
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
14
14
|
var classes = ownerState.classes,
|
|
15
15
|
disableSpacing = ownerState.disableSpacing;
|
|
@@ -25,18 +25,21 @@ var AccordionActionsRoot = styled('div', {
|
|
|
25
25
|
var ownerState = props.ownerState;
|
|
26
26
|
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
|
27
27
|
}
|
|
28
|
-
})(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
})({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
padding: 8,
|
|
32
|
+
justifyContent: 'flex-end',
|
|
33
|
+
variants: [{
|
|
34
|
+
props: function props(_props) {
|
|
35
|
+
return !_props.disableSpacing;
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
'& > :not(style) ~ :not(style)': {
|
|
39
|
+
marginLeft: 8
|
|
40
|
+
}
|
|
38
41
|
}
|
|
39
|
-
}
|
|
42
|
+
}]
|
|
40
43
|
});
|
|
41
44
|
var AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(inProps, ref) {
|
|
42
45
|
var props = useThemeProps({
|
|
@@ -6,10 +6,10 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import styled from '../
|
|
10
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
9
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
11
10
|
import { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var useThemeProps = createUseThemeProps('MuiAccordionDetails');
|
|
13
13
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
14
14
|
var classes = ownerState.classes;
|
|
15
15
|
var slots = {
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
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 AccordionContext from '../Accordion/AccordionContext';
|
|
14
13
|
import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var useThemeProps = createUseThemeProps('MuiAccordionSummary');
|
|
17
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
18
17
|
var classes = ownerState.classes,
|
|
19
18
|
expanded = ownerState.expanded,
|
|
@@ -34,12 +33,11 @@ var AccordionSummaryRoot = styled(ButtonBase, {
|
|
|
34
33
|
return styles.root;
|
|
35
34
|
}
|
|
36
35
|
})(function (_ref) {
|
|
37
|
-
var theme = _ref.theme
|
|
38
|
-
ownerState = _ref.ownerState;
|
|
36
|
+
var theme = _ref.theme;
|
|
39
37
|
var transition = {
|
|
40
38
|
duration: theme.transitions.duration.shortest
|
|
41
39
|
};
|
|
42
|
-
return
|
|
40
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
43
41
|
display: 'flex',
|
|
44
42
|
minHeight: 48,
|
|
45
43
|
padding: theme.spacing(0, 2),
|
|
@@ -50,9 +48,14 @@ var AccordionSummaryRoot = styled(ButtonBase, {
|
|
|
50
48
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
51
49
|
}), "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
|
|
52
50
|
cursor: 'pointer'
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
}), "variants", [{
|
|
52
|
+
props: function props(_props) {
|
|
53
|
+
return !_props.disableGutters;
|
|
54
|
+
},
|
|
55
|
+
style: _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
|
|
56
|
+
minHeight: 64
|
|
57
|
+
})
|
|
58
|
+
}]);
|
|
56
59
|
});
|
|
57
60
|
var AccordionSummaryContent = styled('div', {
|
|
58
61
|
name: 'MuiAccordionSummary',
|
|
@@ -61,19 +64,24 @@ var AccordionSummaryContent = styled('div', {
|
|
|
61
64
|
return styles.content;
|
|
62
65
|
}
|
|
63
66
|
})(function (_ref3) {
|
|
64
|
-
var theme = _ref3.theme
|
|
65
|
-
|
|
66
|
-
return _extends({
|
|
67
|
+
var theme = _ref3.theme;
|
|
68
|
+
return {
|
|
67
69
|
display: 'flex',
|
|
68
70
|
flexGrow: 1,
|
|
69
|
-
margin: '12px 0'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
margin: '12px 0',
|
|
72
|
+
variants: [{
|
|
73
|
+
props: function props(_props2) {
|
|
74
|
+
return !_props2.disableGutters;
|
|
75
|
+
},
|
|
76
|
+
style: _defineProperty({
|
|
77
|
+
transition: theme.transitions.create(['margin'], {
|
|
78
|
+
duration: theme.transitions.duration.shortest
|
|
79
|
+
})
|
|
80
|
+
}, "&.".concat(accordionSummaryClasses.expanded), {
|
|
81
|
+
margin: '20px 0'
|
|
82
|
+
})
|
|
83
|
+
}]
|
|
84
|
+
};
|
|
77
85
|
});
|
|
78
86
|
var AccordionSummaryExpandIconWrapper = styled('div', {
|
|
79
87
|
name: 'MuiAccordionSummary',
|
|
@@ -81,8 +89,8 @@ var AccordionSummaryExpandIconWrapper = styled('div', {
|
|
|
81
89
|
overridesResolver: function overridesResolver(props, styles) {
|
|
82
90
|
return styles.expandIconWrapper;
|
|
83
91
|
}
|
|
84
|
-
})(function (
|
|
85
|
-
var theme =
|
|
92
|
+
})(function (_ref4) {
|
|
93
|
+
var theme = _ref4.theme;
|
|
86
94
|
return _defineProperty({
|
|
87
95
|
display: 'flex',
|
|
88
96
|
color: (theme.vars || theme).palette.action.active,
|