@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/Modal/Modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -13,12 +13,11 @@ import { unstable_useModal as useModal } from '@mui/base/unstable_useModal';
|
|
|
13
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
14
14
|
import FocusTrap from '../Unstable_TrapFocus';
|
|
15
15
|
import Portal from '../Portal';
|
|
16
|
-
import styled from '../
|
|
17
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
16
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
18
17
|
import Backdrop from '../Backdrop';
|
|
19
18
|
import { getModalUtilityClass } from './modalClasses';
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
const useThemeProps = createUseThemeProps('MuiModal');
|
|
22
21
|
const useUtilityClasses = ownerState => {
|
|
23
22
|
const {
|
|
24
23
|
open,
|
|
@@ -41,17 +40,22 @@ const ModalRoot = styled('div', {
|
|
|
41
40
|
return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];
|
|
42
41
|
}
|
|
43
42
|
})(({
|
|
44
|
-
theme
|
|
45
|
-
|
|
46
|
-
}) => _extends({
|
|
43
|
+
theme
|
|
44
|
+
}) => ({
|
|
47
45
|
position: 'fixed',
|
|
48
46
|
zIndex: (theme.vars || theme).zIndex.modal,
|
|
49
47
|
right: 0,
|
|
50
48
|
bottom: 0,
|
|
51
49
|
top: 0,
|
|
52
|
-
left: 0
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
left: 0,
|
|
51
|
+
variants: [{
|
|
52
|
+
props: ({
|
|
53
|
+
ownerState
|
|
54
|
+
}) => !ownerState.open && ownerState.exited,
|
|
55
|
+
style: {
|
|
56
|
+
visibility: 'hidden'
|
|
57
|
+
}
|
|
58
|
+
}]
|
|
55
59
|
}));
|
|
56
60
|
const ModalBackdrop = styled(Backdrop, {
|
|
57
61
|
name: 'MuiModal',
|
|
@@ -77,7 +81,6 @@ const ModalBackdrop = styled(Backdrop, {
|
|
|
77
81
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
|
78
82
|
*/
|
|
79
83
|
const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
80
|
-
var _ref, _slots$root, _ref2, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
|
|
81
84
|
const props = useThemeProps({
|
|
82
85
|
name: 'MuiModal',
|
|
83
86
|
props: inProps
|
|
@@ -147,10 +150,10 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
147
150
|
childProps.onEnter = onEnter;
|
|
148
151
|
childProps.onExited = onExited;
|
|
149
152
|
}
|
|
150
|
-
const RootSlot =
|
|
151
|
-
const BackdropSlot =
|
|
152
|
-
const rootSlotProps =
|
|
153
|
-
const backdropSlotProps =
|
|
153
|
+
const RootSlot = slots?.root ?? components.Root ?? ModalRoot;
|
|
154
|
+
const BackdropSlot = slots?.backdrop ?? components.Backdrop ?? BackdropComponent;
|
|
155
|
+
const rootSlotProps = slotProps?.root ?? componentsProps.root;
|
|
156
|
+
const backdropSlotProps = slotProps?.backdrop ?? componentsProps.backdrop;
|
|
154
157
|
const rootProps = useSlotProps({
|
|
155
158
|
elementType: RootSlot,
|
|
156
159
|
externalSlotProps: rootSlotProps,
|
|
@@ -161,7 +164,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
161
164
|
as: component
|
|
162
165
|
},
|
|
163
166
|
ownerState,
|
|
164
|
-
className: clsx(className, rootSlotProps
|
|
167
|
+
className: clsx(className, rootSlotProps?.className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)
|
|
165
168
|
});
|
|
166
169
|
const backdropProps = useSlotProps({
|
|
167
170
|
elementType: BackdropSlot,
|
|
@@ -173,13 +176,13 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
173
176
|
if (onBackdropClick) {
|
|
174
177
|
onBackdropClick(e);
|
|
175
178
|
}
|
|
176
|
-
if (otherHandlers
|
|
179
|
+
if (otherHandlers?.onClick) {
|
|
177
180
|
otherHandlers.onClick(e);
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
183
|
}));
|
|
181
184
|
},
|
|
182
|
-
className: clsx(backdropSlotProps
|
|
185
|
+
className: clsx(backdropSlotProps?.className, BackdropProps?.className, classes?.backdrop),
|
|
183
186
|
ownerState
|
|
184
187
|
});
|
|
185
188
|
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
@@ -11,8 +11,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import nativeSelectClasses, { getNativeSelectUtilityClasses } from './nativeSelectClasses';
|
|
13
13
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
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
|
classes,
|
|
@@ -14,8 +14,7 @@ import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
|
14
14
|
import outlinedInputClasses, { getOutlinedInputUtilityClass } from './outlinedInputClasses';
|
|
15
15
|
import InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
16
16
|
import useThemeProps from '../styles/useThemeProps';
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
19
18
|
const useUtilityClasses = ownerState => {
|
|
20
19
|
const {
|
|
21
20
|
classes
|
|
@@ -119,7 +118,7 @@ const OutlinedInputInput = styled(InputBaseInput, {
|
|
|
119
118
|
paddingRight: 0
|
|
120
119
|
}));
|
|
121
120
|
const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {
|
|
122
|
-
var
|
|
121
|
+
var _React$Fragment;
|
|
123
122
|
const props = useThemeProps({
|
|
124
123
|
props: inProps,
|
|
125
124
|
name: 'MuiOutlinedInput'
|
|
@@ -154,8 +153,8 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
154
153
|
size: fcs.size,
|
|
155
154
|
type
|
|
156
155
|
});
|
|
157
|
-
const RootSlot =
|
|
158
|
-
const InputSlot =
|
|
156
|
+
const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;
|
|
157
|
+
const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;
|
|
159
158
|
return /*#__PURE__*/_jsx(InputBase, _extends({
|
|
160
159
|
slots: {
|
|
161
160
|
root: RootSlot,
|
|
@@ -11,7 +11,7 @@ export interface OverridableComponent<TypeMap extends OverridableTypeMap> {
|
|
|
11
11
|
// If you make any changes to this interface, please make sure to update the
|
|
12
12
|
// `OverridableComponent` type in `mui-types/index.d.ts` as well.
|
|
13
13
|
// Also, there are types in Base UI that have a similar shape to this interface
|
|
14
|
-
// (
|
|
14
|
+
// (for example SelectType, OptionType, etc.).
|
|
15
15
|
<RootComponent extends React.ElementType>(
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -18,8 +18,7 @@ import LastPageIcon from '../internal/svg-icons/LastPage';
|
|
|
18
18
|
import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';
|
|
19
19
|
import NavigateNextIcon from '../internal/svg-icons/NavigateNext';
|
|
20
20
|
import styled from '../styles/styled';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
const overridesResolver = (props, styles) => {
|
|
24
23
|
const {
|
|
25
24
|
ownerState
|
package/Paper/Paper.js
CHANGED
|
@@ -40,24 +40,21 @@ const PaperRoot = styled('div', {
|
|
|
40
40
|
})(({
|
|
41
41
|
theme,
|
|
42
42
|
ownerState
|
|
43
|
-
}) => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
59
|
-
}));
|
|
60
|
-
});
|
|
43
|
+
}) => _extends({
|
|
44
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
45
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
46
|
+
transition: theme.transitions.create('box-shadow')
|
|
47
|
+
}, !ownerState.square && {
|
|
48
|
+
borderRadius: theme.shape.borderRadius
|
|
49
|
+
}, ownerState.variant === 'outlined' && {
|
|
50
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
51
|
+
}, ownerState.variant === 'elevation' && _extends({
|
|
52
|
+
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
53
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
54
|
+
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
55
|
+
}, theme.vars && {
|
|
56
|
+
backgroundImage: theme.vars.overlays?.[ownerState.elevation]
|
|
57
|
+
})));
|
|
61
58
|
const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
62
59
|
const props = useThemeProps({
|
|
63
60
|
props: inProps,
|
package/Popover/Popover.js
CHANGED
|
@@ -15,8 +15,7 @@ import refType from '@mui/utils/refType';
|
|
|
15
15
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
16
16
|
import integerPropType from '@mui/utils/integerPropType';
|
|
17
17
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
18
|
-
import styled from '../
|
|
19
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
18
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
20
19
|
import debounce from '../utils/debounce';
|
|
21
20
|
import ownerDocument from '../utils/ownerDocument';
|
|
22
21
|
import ownerWindow from '../utils/ownerWindow';
|
|
@@ -26,6 +25,7 @@ import Modal from '../Modal';
|
|
|
26
25
|
import PaperBase from '../Paper';
|
|
27
26
|
import { getPopoverUtilityClass } from './popoverClasses';
|
|
28
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
+
const useThemeProps = createUseThemeProps('MuiPopover');
|
|
29
29
|
export function getOffsetTop(rect, vertical) {
|
|
30
30
|
let offset = 0;
|
|
31
31
|
if (typeof vertical === 'number') {
|
|
@@ -87,7 +87,6 @@ export const PopoverPaper = styled(PaperBase, {
|
|
|
87
87
|
outline: 0
|
|
88
88
|
});
|
|
89
89
|
const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
90
|
-
var _slotProps$paper, _slots$root, _slots$paper;
|
|
91
90
|
const props = useThemeProps({
|
|
92
91
|
props: inProps,
|
|
93
92
|
name: 'MuiPopover'
|
|
@@ -123,7 +122,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
123
122
|
} = props,
|
|
124
123
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded),
|
|
125
124
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
126
|
-
const externalPaperSlotProps =
|
|
125
|
+
const externalPaperSlotProps = slotProps?.paper ?? PaperPropsProp;
|
|
127
126
|
const paperRef = React.useRef();
|
|
128
127
|
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
129
128
|
const ownerState = _extends({}, props, {
|
|
@@ -302,8 +301,8 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
302
301
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
303
302
|
// If neither are provided let the Modal take care of choosing the container
|
|
304
303
|
const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);
|
|
305
|
-
const RootSlot =
|
|
306
|
-
const PaperSlot =
|
|
304
|
+
const RootSlot = slots?.root ?? PopoverRoot;
|
|
305
|
+
const PaperSlot = slots?.paper ?? PopoverPaper;
|
|
307
306
|
const paperProps = useSlotProps({
|
|
308
307
|
elementType: PaperSlot,
|
|
309
308
|
externalSlotProps: _extends({}, externalPaperSlotProps, {
|
|
@@ -316,11 +315,11 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
316
315
|
ref: handlePaperRef
|
|
317
316
|
},
|
|
318
317
|
ownerState,
|
|
319
|
-
className: clsx(classes.paper, externalPaperSlotProps
|
|
318
|
+
className: clsx(classes.paper, externalPaperSlotProps?.className)
|
|
320
319
|
});
|
|
321
320
|
const _useSlotProps = useSlotProps({
|
|
322
321
|
elementType: RootSlot,
|
|
323
|
-
externalSlotProps:
|
|
322
|
+
externalSlotProps: slotProps?.root || {},
|
|
324
323
|
externalForwardedProps: other,
|
|
325
324
|
additionalProps: {
|
|
326
325
|
ref,
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PopperProps as BasePopperProps } from '@mui/base/Popper';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { Theme } from '../styles';
|
|
5
|
-
export
|
|
5
|
+
export interface PopperProps extends Omit<BasePopperProps, 'direction'> {
|
|
6
6
|
/**
|
|
7
7
|
* The component used for the root node.
|
|
8
8
|
* Either a string to use a HTML element or a component.
|
|
@@ -25,7 +25,7 @@ export type PopperProps = Omit<BasePopperProps, 'direction'> & {
|
|
|
25
25
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26
26
|
*/
|
|
27
27
|
sx?: SxProps<Theme>;
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* Demos:
|
|
@@ -38,28 +38,5 @@ export type PopperProps = Omit<BasePopperProps, 'direction'> & {
|
|
|
38
38
|
*
|
|
39
39
|
* - [Popper API](https://mui.com/material-ui/api/popper/)
|
|
40
40
|
*/
|
|
41
|
-
declare const Popper: React.ForwardRefExoticComponent<
|
|
42
|
-
/**
|
|
43
|
-
* The component used for the root node.
|
|
44
|
-
* Either a string to use a HTML element or a component.
|
|
45
|
-
*/
|
|
46
|
-
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The components used for each slot inside the Popper.
|
|
49
|
-
* Either a string to use a HTML element or a component.
|
|
50
|
-
* @default {}
|
|
51
|
-
*/
|
|
52
|
-
components?: {
|
|
53
|
-
Root?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* The props used for each slot inside the Popper.
|
|
57
|
-
* @default {}
|
|
58
|
-
*/
|
|
59
|
-
componentsProps?: BasePopperProps['slotProps'];
|
|
60
|
-
/**
|
|
61
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
-
*/
|
|
63
|
-
sx?: SxProps<Theme> | undefined;
|
|
64
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
42
|
export default Popper;
|
package/Popper/Popper.js
CHANGED
|
@@ -30,7 +30,6 @@ const PopperRoot = styled(BasePopper, {
|
|
|
30
30
|
* - [Popper API](https://mui.com/material-ui/api/popper/)
|
|
31
31
|
*/
|
|
32
32
|
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
33
|
-
var _slots$root;
|
|
34
33
|
const theme = useTheme();
|
|
35
34
|
const props = useThemeProps({
|
|
36
35
|
props: inProps,
|
|
@@ -54,7 +53,7 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
54
53
|
slotProps
|
|
55
54
|
} = props,
|
|
56
55
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
57
|
-
const RootComponent =
|
|
56
|
+
const RootComponent = slots?.root ?? components?.Root;
|
|
58
57
|
const otherProps = _extends({
|
|
59
58
|
anchorEl,
|
|
60
59
|
container,
|
|
@@ -69,11 +68,11 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
69
68
|
}, other);
|
|
70
69
|
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
71
70
|
as: component,
|
|
72
|
-
direction: theme
|
|
71
|
+
direction: theme?.direction,
|
|
73
72
|
slots: {
|
|
74
73
|
root: RootComponent
|
|
75
74
|
},
|
|
76
|
-
slotProps: slotProps
|
|
75
|
+
slotProps: slotProps ?? componentsProps
|
|
77
76
|
}, otherProps, {
|
|
78
77
|
ref: ref
|
|
79
78
|
}));
|
package/README.md
CHANGED
|
@@ -11,8 +11,10 @@ Material UI is an open-source React component library that implements Google's
|
|
|
11
11
|
|
|
12
12
|
Install the package in your project directory with:
|
|
13
13
|
|
|
14
|
+
<!-- #default-branch-switch -->
|
|
15
|
+
|
|
14
16
|
```bash
|
|
15
|
-
npm install @mui/material @emotion/react @emotion/styled
|
|
17
|
+
npm install @mui/material@next @emotion/react @emotion/styled
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
## Documentation
|
|
@@ -33,7 +35,7 @@ Our documentation features [a collection of example projects using Material UI]
|
|
|
33
35
|
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
|
|
34
36
|
|
|
35
37
|
Contributing to Material UI is about more than just issues and pull requests!
|
|
36
|
-
There are many other ways to [support
|
|
38
|
+
There are many other ways to [support Material UI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
|
|
37
39
|
|
|
38
40
|
## Changelog
|
|
39
41
|
|
|
@@ -41,7 +43,7 @@ The [changelog](https://github.com/mui/material-ui/releases) is regularly update
|
|
|
41
43
|
|
|
42
44
|
## Roadmap
|
|
43
45
|
|
|
44
|
-
Future plans and high-priority features and enhancements can be found in
|
|
46
|
+
Future plans and high-priority features and enhancements can be found in the [roadmap](https://mui.com/material-ui/discover-more/roadmap/).
|
|
45
47
|
|
|
46
48
|
## License
|
|
47
49
|
|
package/Radio/Radio.js
CHANGED
|
@@ -74,7 +74,6 @@ const defaultCheckedIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {
|
|
|
74
74
|
});
|
|
75
75
|
const defaultIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {});
|
|
76
76
|
const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
77
|
-
var _defaultIcon$props$fo, _defaultCheckedIcon$p;
|
|
78
77
|
const props = useThemeProps({
|
|
79
78
|
props: inProps,
|
|
80
79
|
name: 'MuiRadio'
|
|
@@ -110,10 +109,10 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
110
109
|
return /*#__PURE__*/_jsx(RadioRoot, _extends({
|
|
111
110
|
type: "radio",
|
|
112
111
|
icon: /*#__PURE__*/React.cloneElement(icon, {
|
|
113
|
-
fontSize:
|
|
112
|
+
fontSize: defaultIcon.props.fontSize ?? size
|
|
114
113
|
}),
|
|
115
114
|
checkedIcon: /*#__PURE__*/React.cloneElement(checkedIcon, {
|
|
116
|
-
fontSize:
|
|
115
|
+
fontSize: defaultCheckedIcon.props.fontSize ?? size
|
|
117
116
|
}),
|
|
118
117
|
ownerState: ownerState,
|
|
119
118
|
classes: classes,
|
package/Radio/RadioButtonIcon.js
CHANGED
|
@@ -6,8 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';
|
|
7
7
|
import RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';
|
|
8
8
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const RadioButtonIconRoot = styled('span', {
|
|
12
11
|
shouldForwardProp: rootShouldForwardProp
|
|
13
12
|
})({
|
package/Rating/Rating.js
CHANGED
|
@@ -18,8 +18,7 @@ import StarBorder from '../internal/svg-icons/StarBorder';
|
|
|
18
18
|
import useThemeProps from '../styles/useThemeProps';
|
|
19
19
|
import styled, { slotShouldForwardProp } from '../styles/styled';
|
|
20
20
|
import ratingClasses, { getRatingUtilityClass } from './ratingClasses';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
function getDecimalPrecision(num) {
|
|
24
23
|
const decimalPart = num.toString().split('.')[1];
|
|
25
24
|
return decimalPart ? decimalPart.length : 0;
|
|
@@ -32,9 +32,8 @@ const ScopedCssBaselineRoot = styled('div', {
|
|
|
32
32
|
const colorSchemeStyles = {};
|
|
33
33
|
if (ownerState.enableColorScheme && theme.colorSchemes) {
|
|
34
34
|
Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {
|
|
35
|
-
var _scheme$palette;
|
|
36
35
|
colorSchemeStyles[`&${theme.getColorSchemeSelector(key).replace(/\s*&/, '')}`] = {
|
|
37
|
-
colorScheme:
|
|
36
|
+
colorScheme: scheme.palette?.mode
|
|
38
37
|
};
|
|
39
38
|
});
|
|
40
39
|
}
|
package/Select/Select.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ export interface BaseSelectProps<Value = unknown>
|
|
|
148
148
|
* The variant to use.
|
|
149
149
|
* @default 'outlined'
|
|
150
150
|
*/
|
|
151
|
-
variant?:
|
|
151
|
+
variant?: SelectVariants;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onChange'> {
|
|
@@ -172,20 +172,15 @@ export interface OutlinedSelectProps extends Omit<OutlinedInputProps, 'value' |
|
|
|
172
172
|
* The variant to use.
|
|
173
173
|
* @default 'outlined'
|
|
174
174
|
*/
|
|
175
|
-
variant
|
|
175
|
+
variant?: 'outlined';
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
export type SelectVariants = 'outlined' | 'standard' | 'filled';
|
|
179
179
|
|
|
180
|
-
export type SelectProps<
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
(Variant extends 'filled'
|
|
185
|
-
? FilledSelectProps
|
|
186
|
-
: Variant extends 'standard'
|
|
187
|
-
? StandardSelectProps
|
|
188
|
-
: OutlinedSelectProps);
|
|
180
|
+
export type SelectProps<Value = unknown> =
|
|
181
|
+
| (FilledSelectProps & BaseSelectProps<Value>)
|
|
182
|
+
| (StandardSelectProps & BaseSelectProps<Value>)
|
|
183
|
+
| (OutlinedSelectProps & BaseSelectProps<Value>);
|
|
189
184
|
|
|
190
185
|
/**
|
|
191
186
|
*
|
|
@@ -198,15 +193,8 @@ export type SelectProps<
|
|
|
198
193
|
* - [Select API](https://mui.com/material-ui/api/select/)
|
|
199
194
|
* - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
|
|
200
195
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
props: {
|
|
204
|
-
/**
|
|
205
|
-
* The variant to use.
|
|
206
|
-
* @default 'outlined'
|
|
207
|
-
*/
|
|
208
|
-
variant?: Variant;
|
|
209
|
-
} & Omit<SelectProps<Value, Variant>, 'variant'>,
|
|
196
|
+
export default function Select<Value = unknown>(
|
|
197
|
+
props: SelectProps<Value>,
|
|
210
198
|
): JSX.Element & {
|
|
211
199
|
muiName: string;
|
|
212
200
|
};
|
package/Select/SelectInput.js
CHANGED
|
@@ -21,8 +21,7 @@ import styled, { slotShouldForwardProp } from '../styles/styled';
|
|
|
21
21
|
import useForkRef from '../utils/useForkRef';
|
|
22
22
|
import useControlled from '../utils/useControlled';
|
|
23
23
|
import selectClasses, { getSelectUtilityClasses } from './selectClasses';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const SelectSelect = styled('div', {
|
|
27
26
|
name: 'MuiSelect',
|
|
28
27
|
slot: 'Select',
|
|
@@ -110,7 +109,6 @@ const useUtilityClasses = ownerState => {
|
|
|
110
109
|
* @ignore - internal component.
|
|
111
110
|
*/
|
|
112
111
|
const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {
|
|
113
|
-
var _MenuProps$slotProps;
|
|
114
112
|
const {
|
|
115
113
|
'aria-describedby': ariaDescribedby,
|
|
116
114
|
'aria-label': ariaLabel,
|
|
@@ -170,7 +168,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
170
168
|
setDisplayNode(node);
|
|
171
169
|
}
|
|
172
170
|
}, []);
|
|
173
|
-
const anchorElement = displayNode
|
|
171
|
+
const anchorElement = displayNode?.parentNode;
|
|
174
172
|
React.useImperativeHandle(handleRef, () => ({
|
|
175
173
|
focus: () => {
|
|
176
174
|
displayRef.current.focus();
|
|
@@ -433,7 +431,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
433
431
|
error
|
|
434
432
|
});
|
|
435
433
|
const classes = useUtilityClasses(ownerState);
|
|
436
|
-
const paperProps = _extends({}, MenuProps.PaperProps,
|
|
434
|
+
const paperProps = _extends({}, MenuProps.PaperProps, MenuProps.slotProps?.paper);
|
|
437
435
|
const listboxId = useId();
|
|
438
436
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
439
437
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
package/Skeleton/Skeleton.js
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
const _excluded = ["animation", "className", "component", "height", "style", "variant", "width"];
|
|
6
|
-
let _ = t => t,
|
|
7
|
-
_t,
|
|
8
|
-
_t2,
|
|
9
|
-
_t3,
|
|
10
|
-
_t4;
|
|
11
6
|
import * as React from 'react';
|
|
12
7
|
import clsx from 'clsx';
|
|
13
8
|
import PropTypes from 'prop-types';
|
|
@@ -32,7 +27,7 @@ const useUtilityClasses = ownerState => {
|
|
|
32
27
|
};
|
|
33
28
|
return composeClasses(slots, getSkeletonUtilityClass, classes);
|
|
34
29
|
};
|
|
35
|
-
const pulseKeyframe = keyframes
|
|
30
|
+
const pulseKeyframe = keyframes`
|
|
36
31
|
0% {
|
|
37
32
|
opacity: 1;
|
|
38
33
|
}
|
|
@@ -44,8 +39,8 @@ const pulseKeyframe = keyframes(_t || (_t = _`
|
|
|
44
39
|
100% {
|
|
45
40
|
opacity: 1;
|
|
46
41
|
}
|
|
47
|
-
|
|
48
|
-
const waveKeyframe = keyframes
|
|
42
|
+
`;
|
|
43
|
+
const waveKeyframe = keyframes`
|
|
49
44
|
0% {
|
|
50
45
|
transform: translateX(-100%);
|
|
51
46
|
}
|
|
@@ -58,7 +53,7 @@ const waveKeyframe = keyframes(_t2 || (_t2 = _`
|
|
|
58
53
|
100% {
|
|
59
54
|
transform: translateX(100%);
|
|
60
55
|
}
|
|
61
|
-
|
|
56
|
+
`;
|
|
62
57
|
const SkeletonRoot = styled('span', {
|
|
63
58
|
name: 'MuiSkeleton',
|
|
64
59
|
slot: 'Root',
|
|
@@ -104,12 +99,12 @@ const SkeletonRoot = styled('span', {
|
|
|
104
99
|
});
|
|
105
100
|
}, ({
|
|
106
101
|
ownerState
|
|
107
|
-
}) => ownerState.animation === 'pulse' && css
|
|
108
|
-
animation: ${
|
|
109
|
-
|
|
102
|
+
}) => ownerState.animation === 'pulse' && css`
|
|
103
|
+
animation: ${pulseKeyframe} 2s ease-in-out 0.5s infinite;
|
|
104
|
+
`, ({
|
|
110
105
|
ownerState,
|
|
111
106
|
theme
|
|
112
|
-
}) => ownerState.animation === 'wave' && css
|
|
107
|
+
}) => ownerState.animation === 'wave' && css`
|
|
113
108
|
position: relative;
|
|
114
109
|
overflow: hidden;
|
|
115
110
|
|
|
@@ -117,11 +112,11 @@ const SkeletonRoot = styled('span', {
|
|
|
117
112
|
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
118
113
|
|
|
119
114
|
&::after {
|
|
120
|
-
animation: ${
|
|
115
|
+
animation: ${waveKeyframe} 2s linear 0.5s infinite;
|
|
121
116
|
background: linear-gradient(
|
|
122
117
|
90deg,
|
|
123
118
|
transparent,
|
|
124
|
-
${
|
|
119
|
+
${(theme.vars || theme).palette.action.hover},
|
|
125
120
|
transparent
|
|
126
121
|
);
|
|
127
122
|
content: '';
|
|
@@ -132,7 +127,7 @@ const SkeletonRoot = styled('span', {
|
|
|
132
127
|
right: 0;
|
|
133
128
|
top: 0;
|
|
134
129
|
}
|
|
135
|
-
`)
|
|
130
|
+
`);
|
|
136
131
|
const Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(inProps, ref) {
|
|
137
132
|
const props = useThemeProps({
|
|
138
133
|
props: inProps,
|