@mui/material 5.15.14 → 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 +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +12 -17
- 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 +80 -1
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +2 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +187 -205
- 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 +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +2 -3
- 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/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/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 +1 -2
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/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 +26 -7
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +2 -3
- 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/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/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 +1 -2
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/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 +21 -8
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- 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 +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +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 +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/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 +1 -1
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -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 +22 -9
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/package.json +4 -4
- 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 +28 -16
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1136 -736
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
package/legacy/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
|
var decimalPart = num.toString().split('.')[1];
|
|
25
24
|
return decimalPart ? decimalPart.length : 0;
|
|
@@ -23,8 +23,7 @@ import styled, { slotShouldForwardProp } from '../styles/styled';
|
|
|
23
23
|
import useForkRef from '../utils/useForkRef';
|
|
24
24
|
import useControlled from '../utils/useControlled';
|
|
25
25
|
import selectClasses, { getSelectUtilityClasses } from './selectClasses';
|
|
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
|
var SelectSelect = styled('div', {
|
|
29
28
|
name: 'MuiSelect',
|
|
30
29
|
slot: 'Select',
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -19,8 +19,7 @@ import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
|
|
|
19
19
|
import capitalize from '../utils/capitalize';
|
|
20
20
|
import BaseSliderValueLabel from './SliderValueLabel';
|
|
21
21
|
import sliderClasses, { getSliderUtilityClass } from './sliderClasses';
|
|
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
|
var useThemeProps = createUseThemeProps('MuiSlider');
|
|
25
24
|
function Identity(x) {
|
|
26
25
|
return x;
|
|
@@ -4,8 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import sliderClasses from './sliderClasses';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
var useValueLabelClasses = function useValueLabelClasses(props) {
|
|
10
9
|
var open = props.open;
|
|
11
10
|
var utilityClasses = {
|
|
@@ -12,8 +12,7 @@ import styled from '../styles/styled';
|
|
|
12
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
13
|
import Paper from '../Paper';
|
|
14
14
|
import { getSnackbarContentUtilityClass } from './snackbarContentClasses';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
18
17
|
var classes = ownerState.classes;
|
|
19
18
|
var slots = {
|
|
@@ -21,8 +21,7 @@ import isMuiElement from '../utils/isMuiElement';
|
|
|
21
21
|
import useForkRef from '../utils/useForkRef';
|
|
22
22
|
import useControlled from '../utils/useControlled';
|
|
23
23
|
import speedDialClasses, { getSpeedDialUtilityClass } from './speedDialClasses';
|
|
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
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
27
26
|
var classes = ownerState.classes,
|
|
28
27
|
open = ownerState.open,
|
|
@@ -15,8 +15,7 @@ import Fab from '../Fab';
|
|
|
15
15
|
import Tooltip from '../Tooltip';
|
|
16
16
|
import capitalize from '../utils/capitalize';
|
|
17
17
|
import speedDialActionClasses, { getSpeedDialActionUtilityClass } from './speedDialActionClasses';
|
|
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
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
21
20
|
var open = ownerState.open,
|
|
22
21
|
tooltipPlacement = ownerState.tooltipPlacement,
|
|
@@ -11,8 +11,7 @@ import styled from '../styles/styled';
|
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import AddIcon from '../internal/svg-icons/Add';
|
|
13
13
|
import speedDialIconClasses, { getSpeedDialIconUtilityClass } from './speedDialIconClasses';
|
|
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
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
16
|
var classes = ownerState.classes,
|
|
18
17
|
open = ownerState.open,
|
package/legacy/Step/Step.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
@@ -9,11 +9,10 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import StepperContext from '../Stepper/StepperContext';
|
|
11
11
|
import StepContext from './StepContext';
|
|
12
|
-
import
|
|
13
|
-
import styled from '../styles/styled';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
13
|
import { getStepUtilityClass } from './stepClasses';
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
|
|
14
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var useThemeProps = createUseThemeProps('MuiStep');
|
|
17
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
18
17
|
var classes = ownerState.classes,
|
|
19
18
|
orientation = ownerState.orientation,
|
|
@@ -31,15 +30,24 @@ var StepRoot = styled('div', {
|
|
|
31
30
|
var ownerState = props.ownerState;
|
|
32
31
|
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
|
|
33
32
|
}
|
|
34
|
-
})(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
})({
|
|
34
|
+
variants: [{
|
|
35
|
+
props: {
|
|
36
|
+
orientation: 'horizontal'
|
|
37
|
+
},
|
|
38
|
+
style: {
|
|
39
|
+
paddingLeft: 8,
|
|
40
|
+
paddingRight: 8
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
props: {
|
|
44
|
+
alternativeLabel: true
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
position: 'relative'
|
|
49
|
+
}
|
|
50
|
+
}]
|
|
43
51
|
});
|
|
44
52
|
var Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
|
|
45
53
|
var props = useThemeProps({
|
|
@@ -1,14 +1,13 @@
|
|
|
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 _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
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 StepLabel from '../StepLabel';
|
|
14
13
|
import isMuiElement from '../utils/isMuiElement';
|
|
@@ -16,6 +15,7 @@ import StepperContext from '../Stepper/StepperContext';
|
|
|
16
15
|
import StepContext from '../Step/StepContext';
|
|
17
16
|
import stepButtonClasses, { getStepButtonUtilityClass } from './stepButtonClasses';
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
var useThemeProps = createUseThemeProps('MuiStepButton');
|
|
19
19
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
20
20
|
var classes = ownerState.classes,
|
|
21
21
|
orientation = ownerState.orientation;
|
|
@@ -32,21 +32,23 @@ var StepButtonRoot = styled(ButtonBase, {
|
|
|
32
32
|
var ownerState = props.ownerState;
|
|
33
33
|
return [_defineProperty({}, "& .".concat(stepButtonClasses.touchRipple), styles.touchRipple), styles.root, styles[ownerState.orientation]];
|
|
34
34
|
}
|
|
35
|
-
})(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
})(_defineProperty(_defineProperty({
|
|
36
|
+
width: '100%',
|
|
37
|
+
padding: '24px 16px',
|
|
38
|
+
margin: '-24px -16px',
|
|
39
|
+
boxSizing: 'content-box'
|
|
40
|
+
}, "& .".concat(stepButtonClasses.touchRipple), {
|
|
41
|
+
color: 'rgba(0, 0, 0, 0.3)'
|
|
42
|
+
}), "variants", [{
|
|
43
|
+
props: {
|
|
44
|
+
orientation: 'vertical'
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
43
47
|
justifyContent: 'flex-start',
|
|
44
48
|
padding: '8px',
|
|
45
49
|
margin: '-8px'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
}));
|
|
49
|
-
});
|
|
50
|
+
}
|
|
51
|
+
}]));
|
|
50
52
|
var StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref) {
|
|
51
53
|
var props = useThemeProps({
|
|
52
54
|
props: inProps,
|
|
@@ -1,18 +1,18 @@
|
|
|
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
9
|
import capitalize from '../utils/capitalize';
|
|
10
|
-
import styled from '../
|
|
11
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import StepperContext from '../Stepper/StepperContext';
|
|
13
12
|
import StepContext from '../Step/StepContext';
|
|
14
13
|
import { getStepConnectorUtilityClass } from './stepConnectorClasses';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var useThemeProps = createUseThemeProps('MuiStepConnector');
|
|
16
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
17
|
var classes = ownerState.classes,
|
|
18
18
|
orientation = ownerState.orientation,
|
|
@@ -33,18 +33,26 @@ var StepConnectorRoot = styled('div', {
|
|
|
33
33
|
var ownerState = props.ownerState;
|
|
34
34
|
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
|
|
35
35
|
}
|
|
36
|
-
})(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
})({
|
|
37
|
+
flex: '1 1 auto',
|
|
38
|
+
variants: [{
|
|
39
|
+
props: {
|
|
40
|
+
orientation: 'vertical'
|
|
41
|
+
},
|
|
42
|
+
style: {
|
|
43
|
+
marginLeft: 12 // half icon
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
props: {
|
|
47
|
+
alternativeLabel: true
|
|
48
|
+
},
|
|
49
|
+
style: {
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
top: 8 + 4,
|
|
52
|
+
left: 'calc(-50% + 20px)',
|
|
53
|
+
right: 'calc(50% + 20px)'
|
|
54
|
+
}
|
|
55
|
+
}]
|
|
48
56
|
});
|
|
49
57
|
var StepConnectorLine = styled('span', {
|
|
50
58
|
name: 'MuiStepConnector',
|
|
@@ -53,21 +61,31 @@ var StepConnectorLine = styled('span', {
|
|
|
53
61
|
var ownerState = props.ownerState;
|
|
54
62
|
return [styles.line, styles["line".concat(capitalize(ownerState.orientation))]];
|
|
55
63
|
}
|
|
56
|
-
})(function (
|
|
57
|
-
var
|
|
58
|
-
theme = _ref2.theme;
|
|
64
|
+
})(function (_ref) {
|
|
65
|
+
var theme = _ref.theme;
|
|
59
66
|
var borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
|
|
60
|
-
return
|
|
67
|
+
return {
|
|
61
68
|
display: 'block',
|
|
62
|
-
borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor,
|
|
70
|
+
variants: [{
|
|
71
|
+
props: {
|
|
72
|
+
orientation: 'horizontal'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
borderTopStyle: 'solid',
|
|
76
|
+
borderTopWidth: 1
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
props: {
|
|
80
|
+
orientation: 'vertical'
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
borderLeftStyle: 'solid',
|
|
84
|
+
borderLeftWidth: 1,
|
|
85
|
+
minHeight: 24
|
|
86
|
+
}
|
|
87
|
+
}]
|
|
88
|
+
};
|
|
71
89
|
});
|
|
72
90
|
var StepConnector = /*#__PURE__*/React.forwardRef(function StepConnector(inProps, ref) {
|
|
73
91
|
var props = useThemeProps({
|
|
@@ -1,18 +1,18 @@
|
|
|
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 Collapse from '../Collapse';
|
|
12
11
|
import StepperContext from '../Stepper/StepperContext';
|
|
13
12
|
import StepContext from '../Step/StepContext';
|
|
14
13
|
import { getStepContentUtilityClass } from './stepContentClasses';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var useThemeProps = createUseThemeProps('MuiStepContent');
|
|
16
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
17
|
var classes = ownerState.classes,
|
|
18
18
|
last = ownerState.last;
|
|
@@ -30,18 +30,23 @@ var StepContentRoot = styled('div', {
|
|
|
30
30
|
return [styles.root, ownerState.last && styles.last];
|
|
31
31
|
}
|
|
32
32
|
})(function (_ref) {
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
return _extends({
|
|
33
|
+
var theme = _ref.theme;
|
|
34
|
+
return {
|
|
36
35
|
marginLeft: 12,
|
|
37
36
|
// half icon
|
|
38
37
|
paddingLeft: 8 + 12,
|
|
39
38
|
// margin + half icon
|
|
40
39
|
paddingRight: 8,
|
|
41
|
-
borderLeft: theme.vars ? "1px solid ".concat(theme.vars.palette.StepContent.border) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600])
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
borderLeft: theme.vars ? "1px solid ".concat(theme.vars.palette.StepContent.border) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]),
|
|
41
|
+
variants: [{
|
|
42
|
+
props: {
|
|
43
|
+
last: true
|
|
44
|
+
},
|
|
45
|
+
style: {
|
|
46
|
+
borderLeft: 'none'
|
|
47
|
+
}
|
|
48
|
+
}]
|
|
49
|
+
};
|
|
45
50
|
});
|
|
46
51
|
var StepContentTransition = styled(Collapse, {
|
|
47
52
|
name: 'MuiStepContent',
|
|
@@ -8,14 +8,13 @@ import * as React from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import styled from '../
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import CheckCircle from '../internal/svg-icons/CheckCircle';
|
|
14
13
|
import Warning from '../internal/svg-icons/Warning';
|
|
15
14
|
import SvgIcon from '../SvgIcon';
|
|
16
15
|
import stepIconClasses, { getStepIconUtilityClass } from './stepIconClasses';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
var useThemeProps = createUseThemeProps('MuiStepIcon');
|
|
19
18
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
20
19
|
var classes = ownerState.classes,
|
|
21
20
|
active = ownerState.active,
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
5
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
6
|
-
import
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
import clsx from 'clsx';
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import StepContext from '../Step/StepContext';
|
|
12
12
|
import StepIcon from '../StepIcon';
|
|
13
13
|
import StepperContext from '../Stepper/StepperContext';
|
|
14
|
-
import
|
|
14
|
+
import { createUseThemeProps, styled } from '../zero-styled';
|
|
15
15
|
import stepLabelClasses, { getStepLabelUtilityClass } from './stepLabelClasses';
|
|
16
|
-
import
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import useSlot from '../utils/useSlot';
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
var useThemeProps = createUseThemeProps('MuiStepLabel');
|
|
18
19
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
19
20
|
var classes = ownerState.classes,
|
|
20
21
|
orientation = ownerState.orientation,
|
|
@@ -38,28 +39,30 @@ var StepLabelRoot = styled('span', {
|
|
|
38
39
|
var ownerState = props.ownerState;
|
|
39
40
|
return [styles.root, styles[ownerState.orientation]];
|
|
40
41
|
}
|
|
41
|
-
})(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
})(_defineProperty(_defineProperty(_defineProperty({
|
|
43
|
+
display: 'flex',
|
|
44
|
+
alignItems: 'center'
|
|
45
|
+
}, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
46
|
+
flexDirection: 'column'
|
|
47
|
+
}), "&.".concat(stepLabelClasses.disabled), {
|
|
48
|
+
cursor: 'default'
|
|
49
|
+
}), "variants", [{
|
|
50
|
+
props: {
|
|
51
|
+
orientation: 'vertical'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
51
54
|
textAlign: 'left',
|
|
52
55
|
padding: '8px 0'
|
|
53
|
-
}
|
|
54
|
-
});
|
|
56
|
+
}
|
|
57
|
+
}]));
|
|
55
58
|
var StepLabelLabel = styled('span', {
|
|
56
59
|
name: 'MuiStepLabel',
|
|
57
60
|
slot: 'Label',
|
|
58
61
|
overridesResolver: function overridesResolver(props, styles) {
|
|
59
62
|
return styles.label;
|
|
60
63
|
}
|
|
61
|
-
})(function (
|
|
62
|
-
var theme =
|
|
64
|
+
})(function (_ref) {
|
|
65
|
+
var theme = _ref.theme;
|
|
63
66
|
return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
64
67
|
display: 'block',
|
|
65
68
|
transition: theme.transitions.create('color', {
|
|
@@ -83,24 +86,22 @@ var StepLabelIconContainer = styled('span', {
|
|
|
83
86
|
overridesResolver: function overridesResolver(props, styles) {
|
|
84
87
|
return styles.iconContainer;
|
|
85
88
|
}
|
|
86
|
-
})(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
});
|
|
95
|
-
});
|
|
89
|
+
})(_defineProperty({
|
|
90
|
+
flexShrink: 0,
|
|
91
|
+
// Fix IE11 issue
|
|
92
|
+
display: 'flex',
|
|
93
|
+
paddingRight: 8
|
|
94
|
+
}, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
95
|
+
paddingRight: 0
|
|
96
|
+
}));
|
|
96
97
|
var StepLabelLabelContainer = styled('span', {
|
|
97
98
|
name: 'MuiStepLabel',
|
|
98
99
|
slot: 'LabelContainer',
|
|
99
100
|
overridesResolver: function overridesResolver(props, styles) {
|
|
100
101
|
return styles.labelContainer;
|
|
101
102
|
}
|
|
102
|
-
})(function (
|
|
103
|
-
var theme =
|
|
103
|
+
})(function (_ref2) {
|
|
104
|
+
var theme = _ref2.theme;
|
|
104
105
|
return _defineProperty({
|
|
105
106
|
width: '100%',
|
|
106
107
|
color: (theme.vars || theme).palette.text.secondary
|
|
@@ -109,7 +110,6 @@ var StepLabelLabelContainer = styled('span', {
|
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
112
|
var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
112
|
-
var _slotProps$label;
|
|
113
113
|
var props = useThemeProps({
|
|
114
114
|
props: inProps,
|
|
115
115
|
name: 'MuiStepLabel'
|
|
@@ -122,11 +122,13 @@ var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
|
122
122
|
error = _props$error === void 0 ? false : _props$error,
|
|
123
123
|
iconProp = props.icon,
|
|
124
124
|
optional = props.optional,
|
|
125
|
+
_props$slots = props.slots,
|
|
126
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
125
127
|
_props$slotProps = props.slotProps,
|
|
126
128
|
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
127
129
|
StepIconComponentProp = props.StepIconComponent,
|
|
128
130
|
StepIconProps = props.StepIconProps,
|
|
129
|
-
other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slotProps", "StepIconComponent", "StepIconProps"]);
|
|
131
|
+
other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slots", "slotProps", "StepIconComponent", "StepIconProps"]);
|
|
130
132
|
var _React$useContext = React.useContext(StepperContext),
|
|
131
133
|
alternativeLabel = _React$useContext.alternativeLabel,
|
|
132
134
|
orientation = _React$useContext.orientation;
|
|
@@ -149,7 +151,18 @@ var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
|
149
151
|
orientation: orientation
|
|
150
152
|
});
|
|
151
153
|
var classes = useUtilityClasses(ownerState);
|
|
152
|
-
var
|
|
154
|
+
var externalForwardedProps = {
|
|
155
|
+
slots: slots,
|
|
156
|
+
slotProps: _extends({}, componentsProps, slotProps)
|
|
157
|
+
};
|
|
158
|
+
var _useSlot = useSlot('label', {
|
|
159
|
+
elementType: StepLabelLabel,
|
|
160
|
+
externalForwardedProps: externalForwardedProps,
|
|
161
|
+
ownerState: ownerState
|
|
162
|
+
}),
|
|
163
|
+
_useSlot2 = _slicedToArray(_useSlot, 2),
|
|
164
|
+
LabelSlot = _useSlot2[0],
|
|
165
|
+
labelProps = _useSlot2[1];
|
|
153
166
|
return /*#__PURE__*/_jsxs(StepLabelRoot, _extends({
|
|
154
167
|
className: clsx(classes.root, className),
|
|
155
168
|
ref: ref,
|
|
@@ -167,10 +180,8 @@ var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
|
167
180
|
}) : null, /*#__PURE__*/_jsxs(StepLabelLabelContainer, {
|
|
168
181
|
className: classes.labelContainer,
|
|
169
182
|
ownerState: ownerState,
|
|
170
|
-
children: [children ? /*#__PURE__*/_jsx(
|
|
171
|
-
|
|
172
|
-
}, labelSlotProps, {
|
|
173
|
-
className: clsx(classes.label, labelSlotProps == null ? void 0 : labelSlotProps.className),
|
|
183
|
+
children: [children ? /*#__PURE__*/_jsx(LabelSlot, _extends({}, labelProps, {
|
|
184
|
+
className: clsx(classes.label, labelProps == null ? void 0 : labelProps.className),
|
|
174
185
|
children: children
|
|
175
186
|
})) : null, optional]
|
|
176
187
|
})]
|
|
@@ -196,6 +207,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
196
207
|
/**
|
|
197
208
|
* The props used for each slot inside.
|
|
198
209
|
* @default {}
|
|
210
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
199
211
|
*/
|
|
200
212
|
componentsProps: PropTypes.shape({
|
|
201
213
|
label: PropTypes.object
|
|
@@ -218,7 +230,14 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
218
230
|
* @default {}
|
|
219
231
|
*/
|
|
220
232
|
slotProps: PropTypes.shape({
|
|
221
|
-
label: PropTypes.object
|
|
233
|
+
label: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
234
|
+
}),
|
|
235
|
+
/**
|
|
236
|
+
* The components used for each slot inside.
|
|
237
|
+
* @default {}
|
|
238
|
+
*/
|
|
239
|
+
slots: PropTypes.shape({
|
|
240
|
+
label: PropTypes.elementType
|
|
222
241
|
}),
|
|
223
242
|
/**
|
|
224
243
|
* The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
|
|
@@ -233,5 +252,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
233
252
|
*/
|
|
234
253
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
235
254
|
} : void 0;
|
|
236
|
-
StepLabel
|
|
255
|
+
if (StepLabel) {
|
|
256
|
+
StepLabel.muiName = 'StepLabel';
|
|
257
|
+
}
|
|
237
258
|
export default StepLabel;
|
|
@@ -1,18 +1,18 @@
|
|
|
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 integerPropType from '@mui/utils/integerPropType';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
11
|
-
import styled from '../styles/styled';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import { getStepperUtilityClass } from './stepperClasses';
|
|
13
12
|
import StepConnector from '../StepConnector';
|
|
14
13
|
import StepperContext from './StepperContext';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var useThemeProps = createUseThemeProps('MuiStepper');
|
|
16
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
17
|
var orientation = ownerState.orientation,
|
|
18
18
|
alternativeLabel = ownerState.alternativeLabel,
|
|
@@ -29,18 +29,31 @@ var StepperRoot = styled('div', {
|
|
|
29
29
|
var ownerState = props.ownerState;
|
|
30
30
|
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
|
|
31
31
|
}
|
|
32
|
-
})(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
})({
|
|
33
|
+
display: 'flex',
|
|
34
|
+
variants: [{
|
|
35
|
+
props: {
|
|
36
|
+
orientation: 'horizontal'
|
|
37
|
+
},
|
|
38
|
+
style: {
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
alignItems: 'center'
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
props: {
|
|
44
|
+
orientation: 'vertical'
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
flexDirection: 'column'
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
props: {
|
|
51
|
+
alternativeLabel: true
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
alignItems: 'flex-start'
|
|
55
|
+
}
|
|
56
|
+
}]
|
|
44
57
|
});
|
|
45
58
|
var defaultConnector = /*#__PURE__*/_jsx(StepConnector, {});
|
|
46
59
|
var Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
|