@mui/material 5.15.15 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +119 -69
- package/Autocomplete/Autocomplete.js +11 -16
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.d.ts +2 -4
- package/Badge/Badge.js +158 -168
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +221 -134
- package/ButtonBase/ButtonBase.js +3 -4
- package/ButtonBase/Ripple.js +1 -1
- package/ButtonBase/TouchRipple.js +37 -43
- package/ButtonGroup/ButtonGroup.js +168 -71
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +169 -3
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +5 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +185 -203
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/Table/Table.d.ts +0 -2
- package/Table/Table.js +0 -2
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AppBar/AppBar.js +124 -64
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +3 -6
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +219 -125
- package/legacy/ButtonBase/ButtonBase.js +3 -4
- package/legacy/ButtonBase/Ripple.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +3 -4
- package/legacy/ButtonGroup/ButtonGroup.js +164 -69
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/Grid/Grid.js +3 -0
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +25 -26
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/Table/Table.js +0 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +50 -9
- package/legacy/zero-styled/index.js +1 -0
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/AppBar/AppBar.js +118 -68
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +3 -6
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +221 -133
- package/modern/ButtonBase/ButtonBase.js +3 -4
- package/modern/ButtonBase/Ripple.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +3 -4
- package/modern/ButtonGroup/ButtonGroup.js +168 -71
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/Grid/Grid.js +3 -0
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +23 -24
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/Table/Table.js +0 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +45 -10
- package/modern/zero-styled/index.js +1 -0
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +126 -67
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +3 -5
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +225 -136
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +5 -5
- package/node/ButtonBase/Ripple.js +2 -2
- package/node/ButtonBase/TouchRipple.js +10 -11
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +171 -74
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +4 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/index.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +26 -26
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -3
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +46 -11
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/node/zero-styled/index.js +7 -0
- package/package.json +6 -6
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +25 -5
- package/styles/experimental_extendTheme.js +52 -18
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1718 -1047
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
- package/zero-styled/index.d.ts +1 -0
- package/zero-styled/index.js +1 -0
package/Slider/Slider.js
CHANGED
|
@@ -18,8 +18,7 @@ import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
|
|
|
18
18
|
import capitalize from '../utils/capitalize';
|
|
19
19
|
import BaseSliderValueLabel from './SliderValueLabel';
|
|
20
20
|
import sliderClasses, { getSliderUtilityClass } from './sliderClasses';
|
|
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 useThemeProps = createUseThemeProps('MuiSlider');
|
|
24
23
|
function Identity(x) {
|
|
25
24
|
return x;
|
|
@@ -35,102 +34,96 @@ export const SliderRoot = styled('span', {
|
|
|
35
34
|
}
|
|
36
35
|
})(({
|
|
37
36
|
theme
|
|
38
|
-
}) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
}) => ({
|
|
38
|
+
borderRadius: 12,
|
|
39
|
+
boxSizing: 'content-box',
|
|
40
|
+
display: 'inline-block',
|
|
41
|
+
position: 'relative',
|
|
42
|
+
cursor: 'pointer',
|
|
43
|
+
touchAction: 'none',
|
|
44
|
+
WebkitTapHighlightColor: 'transparent',
|
|
45
|
+
'@media print': {
|
|
46
|
+
colorAdjust: 'exact'
|
|
47
|
+
},
|
|
48
|
+
[`&.${sliderClasses.disabled}`]: {
|
|
49
|
+
pointerEvents: 'none',
|
|
50
|
+
cursor: 'default',
|
|
51
|
+
color: (theme.vars || theme).palette.grey[400]
|
|
52
|
+
},
|
|
53
|
+
[`&.${sliderClasses.dragging}`]: {
|
|
54
|
+
[`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
|
|
55
|
+
transition: 'none'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
|
|
59
|
+
props: {
|
|
60
|
+
color
|
|
50
61
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
style: {
|
|
63
|
+
color: (theme.vars || theme).palette[color].main
|
|
64
|
+
}
|
|
65
|
+
})), {
|
|
66
|
+
props: {
|
|
67
|
+
orientation: 'horizontal'
|
|
55
68
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
style: {
|
|
70
|
+
height: 4,
|
|
71
|
+
width: '100%',
|
|
72
|
+
padding: '13px 0',
|
|
73
|
+
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
74
|
+
'@media (pointer: coarse)': {
|
|
75
|
+
// Reach 42px touch target, about ~8mm on screen.
|
|
76
|
+
padding: '20px 0'
|
|
59
77
|
}
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: {
|
|
81
|
+
orientation: 'horizontal',
|
|
82
|
+
size: 'small'
|
|
60
83
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
props: {
|
|
87
|
-
orientation: 'horizontal',
|
|
88
|
-
size: 'small'
|
|
89
|
-
},
|
|
90
|
-
style: {
|
|
91
|
-
height: 2
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
props: {
|
|
95
|
-
orientation: 'horizontal',
|
|
96
|
-
marked: true
|
|
97
|
-
},
|
|
98
|
-
style: {
|
|
99
|
-
marginBottom: 20
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
props: {
|
|
103
|
-
orientation: 'vertical'
|
|
104
|
-
},
|
|
105
|
-
style: {
|
|
106
|
-
height: '100%',
|
|
107
|
-
width: 4,
|
|
108
|
-
padding: '0 13px',
|
|
109
|
-
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
110
|
-
'@media (pointer: coarse)': {
|
|
111
|
-
// Reach 42px touch target, about ~8mm on screen.
|
|
112
|
-
padding: '0 20px'
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
props: {
|
|
117
|
-
orientation: 'vertical',
|
|
118
|
-
size: 'small'
|
|
119
|
-
},
|
|
120
|
-
style: {
|
|
121
|
-
width: 2
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
props: {
|
|
125
|
-
orientation: 'vertical',
|
|
126
|
-
marked: true
|
|
127
|
-
},
|
|
128
|
-
style: {
|
|
129
|
-
marginRight: 44
|
|
84
|
+
style: {
|
|
85
|
+
height: 2
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
props: {
|
|
89
|
+
orientation: 'horizontal',
|
|
90
|
+
marked: true
|
|
91
|
+
},
|
|
92
|
+
style: {
|
|
93
|
+
marginBottom: 20
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
props: {
|
|
97
|
+
orientation: 'vertical'
|
|
98
|
+
},
|
|
99
|
+
style: {
|
|
100
|
+
height: '100%',
|
|
101
|
+
width: 4,
|
|
102
|
+
padding: '0 13px',
|
|
103
|
+
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
104
|
+
'@media (pointer: coarse)': {
|
|
105
|
+
// Reach 42px touch target, about ~8mm on screen.
|
|
106
|
+
padding: '0 20px'
|
|
130
107
|
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
props: {
|
|
111
|
+
orientation: 'vertical',
|
|
112
|
+
size: 'small'
|
|
113
|
+
},
|
|
114
|
+
style: {
|
|
115
|
+
width: 2
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
props: {
|
|
119
|
+
orientation: 'vertical',
|
|
120
|
+
marked: true
|
|
121
|
+
},
|
|
122
|
+
style: {
|
|
123
|
+
marginRight: 44
|
|
124
|
+
}
|
|
125
|
+
}]
|
|
126
|
+
}));
|
|
134
127
|
export const SliderRail = styled('span', {
|
|
135
128
|
name: 'MuiSlider',
|
|
136
129
|
slot: 'Rail',
|
|
@@ -177,7 +170,6 @@ export const SliderTrack = styled('span', {
|
|
|
177
170
|
})(({
|
|
178
171
|
theme
|
|
179
172
|
}) => {
|
|
180
|
-
var _theme$vars3;
|
|
181
173
|
return {
|
|
182
174
|
display: 'block',
|
|
183
175
|
position: 'absolute',
|
|
@@ -219,10 +211,7 @@ export const SliderTrack = styled('span', {
|
|
|
219
211
|
style: {
|
|
220
212
|
display: 'none'
|
|
221
213
|
}
|
|
222
|
-
}, ...Object.keys((
|
|
223
|
-
var _theme$vars4;
|
|
224
|
-
return ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette[key].main;
|
|
225
|
-
}).map(color => ({
|
|
214
|
+
}, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
|
|
226
215
|
props: {
|
|
227
216
|
color,
|
|
228
217
|
track: 'inverted'
|
|
@@ -252,99 +241,93 @@ export const SliderThumb = styled('span', {
|
|
|
252
241
|
}
|
|
253
242
|
})(({
|
|
254
243
|
theme
|
|
255
|
-
}) => {
|
|
256
|
-
|
|
257
|
-
|
|
244
|
+
}) => ({
|
|
245
|
+
position: 'absolute',
|
|
246
|
+
width: 20,
|
|
247
|
+
height: 20,
|
|
248
|
+
boxSizing: 'border-box',
|
|
249
|
+
borderRadius: '50%',
|
|
250
|
+
outline: 0,
|
|
251
|
+
backgroundColor: 'currentColor',
|
|
252
|
+
display: 'flex',
|
|
253
|
+
alignItems: 'center',
|
|
254
|
+
justifyContent: 'center',
|
|
255
|
+
transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
|
|
256
|
+
duration: theme.transitions.duration.shortest
|
|
257
|
+
}),
|
|
258
|
+
'&::before': {
|
|
258
259
|
position: 'absolute',
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
content: '""',
|
|
261
|
+
borderRadius: 'inherit',
|
|
262
|
+
width: '100%',
|
|
263
|
+
height: '100%',
|
|
264
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
265
|
+
},
|
|
266
|
+
'&::after': {
|
|
267
|
+
position: 'absolute',
|
|
268
|
+
content: '""',
|
|
262
269
|
borderRadius: '50%',
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
'
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
270
|
+
// 42px is the hit target
|
|
271
|
+
width: 42,
|
|
272
|
+
height: 42,
|
|
273
|
+
top: '50%',
|
|
274
|
+
left: '50%',
|
|
275
|
+
transform: 'translate(-50%, -50%)'
|
|
276
|
+
},
|
|
277
|
+
[`&.${sliderClasses.disabled}`]: {
|
|
278
|
+
'&:hover': {
|
|
279
|
+
boxShadow: 'none'
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
variants: [{
|
|
283
|
+
props: {
|
|
284
|
+
size: 'small'
|
|
278
285
|
},
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
style: {
|
|
287
|
+
width: 12,
|
|
288
|
+
height: 12,
|
|
289
|
+
'&::before': {
|
|
290
|
+
boxShadow: 'none'
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}, {
|
|
294
|
+
props: {
|
|
295
|
+
orientation: 'horizontal'
|
|
296
|
+
},
|
|
297
|
+
style: {
|
|
286
298
|
top: '50%',
|
|
287
|
-
left: '50%',
|
|
288
299
|
transform: 'translate(-50%, -50%)'
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
props: {
|
|
303
|
+
orientation: 'vertical'
|
|
289
304
|
},
|
|
290
|
-
|
|
291
|
-
'
|
|
292
|
-
|
|
293
|
-
|
|
305
|
+
style: {
|
|
306
|
+
left: '50%',
|
|
307
|
+
transform: 'translate(-50%, 50%)'
|
|
308
|
+
}
|
|
309
|
+
}, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
|
|
310
|
+
props: {
|
|
311
|
+
color
|
|
294
312
|
},
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
style: {
|
|
303
|
-
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
304
|
-
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
305
|
-
} : {
|
|
306
|
-
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
307
|
-
}, {
|
|
308
|
-
'@media (hover: none)': {
|
|
309
|
-
boxShadow: 'none'
|
|
310
|
-
}
|
|
311
|
-
}),
|
|
312
|
-
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
313
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
314
|
-
} : {
|
|
315
|
-
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
316
|
-
})
|
|
317
|
-
}
|
|
318
|
-
})), {
|
|
319
|
-
props: {
|
|
320
|
-
size: 'small'
|
|
321
|
-
},
|
|
322
|
-
style: {
|
|
323
|
-
width: 12,
|
|
324
|
-
height: 12,
|
|
325
|
-
'&::before': {
|
|
313
|
+
style: {
|
|
314
|
+
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
315
|
+
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
316
|
+
} : {
|
|
317
|
+
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
318
|
+
}, {
|
|
319
|
+
'@media (hover: none)': {
|
|
326
320
|
boxShadow: 'none'
|
|
327
321
|
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}, {
|
|
338
|
-
props: {
|
|
339
|
-
orientation: 'vertical'
|
|
340
|
-
},
|
|
341
|
-
style: {
|
|
342
|
-
left: '50%',
|
|
343
|
-
transform: 'translate(-50%, 50%)'
|
|
344
|
-
}
|
|
345
|
-
}]
|
|
346
|
-
};
|
|
347
|
-
});
|
|
322
|
+
}),
|
|
323
|
+
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
324
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
325
|
+
} : {
|
|
326
|
+
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
327
|
+
})
|
|
328
|
+
}
|
|
329
|
+
}))]
|
|
330
|
+
}));
|
|
348
331
|
export const SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
349
332
|
name: 'MuiSlider',
|
|
350
333
|
slot: 'ValueLabel',
|
|
@@ -547,7 +530,6 @@ const Forward = ({
|
|
|
547
530
|
children
|
|
548
531
|
}) => children;
|
|
549
532
|
const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
550
|
-
var _ref, _slots$root, _ref2, _slots$rail, _ref3, _slots$track, _ref4, _slots$thumb, _ref5, _slots$valueLabel, _ref6, _slots$mark, _ref7, _slots$markLabel, _ref8, _slots$input, _slotProps$root, _slotProps$rail, _slotProps$track, _slotProps$thumb, _slotProps$valueLabel, _slotProps$mark, _slotProps$markLabel, _slotProps$input;
|
|
551
533
|
const props = useThemeProps({
|
|
552
534
|
props: inputProps,
|
|
553
535
|
name: 'MuiSlider'
|
|
@@ -626,22 +608,22 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
626
608
|
const classes = useUtilityClasses(ownerState);
|
|
627
609
|
|
|
628
610
|
// support both `slots` and `components` for backward compatibility
|
|
629
|
-
const RootSlot =
|
|
630
|
-
const RailSlot =
|
|
631
|
-
const TrackSlot =
|
|
632
|
-
const ThumbSlot =
|
|
633
|
-
const ValueLabelSlot =
|
|
634
|
-
const MarkSlot =
|
|
635
|
-
const MarkLabelSlot =
|
|
636
|
-
const InputSlot =
|
|
637
|
-
const rootSlotProps =
|
|
638
|
-
const railSlotProps =
|
|
639
|
-
const trackSlotProps =
|
|
640
|
-
const thumbSlotProps =
|
|
641
|
-
const valueLabelSlotProps =
|
|
642
|
-
const markSlotProps =
|
|
643
|
-
const markLabelSlotProps =
|
|
644
|
-
const inputSlotProps =
|
|
611
|
+
const RootSlot = slots?.root ?? components.Root ?? SliderRoot;
|
|
612
|
+
const RailSlot = slots?.rail ?? components.Rail ?? SliderRail;
|
|
613
|
+
const TrackSlot = slots?.track ?? components.Track ?? SliderTrack;
|
|
614
|
+
const ThumbSlot = slots?.thumb ?? components.Thumb ?? SliderThumb;
|
|
615
|
+
const ValueLabelSlot = slots?.valueLabel ?? components.ValueLabel ?? SliderValueLabel;
|
|
616
|
+
const MarkSlot = slots?.mark ?? components.Mark ?? SliderMark;
|
|
617
|
+
const MarkLabelSlot = slots?.markLabel ?? components.MarkLabel ?? SliderMarkLabel;
|
|
618
|
+
const InputSlot = slots?.input ?? components.Input ?? 'input';
|
|
619
|
+
const rootSlotProps = slotProps?.root ?? componentsProps.root;
|
|
620
|
+
const railSlotProps = slotProps?.rail ?? componentsProps.rail;
|
|
621
|
+
const trackSlotProps = slotProps?.track ?? componentsProps.track;
|
|
622
|
+
const thumbSlotProps = slotProps?.thumb ?? componentsProps.thumb;
|
|
623
|
+
const valueLabelSlotProps = slotProps?.valueLabel ?? componentsProps.valueLabel;
|
|
624
|
+
const markSlotProps = slotProps?.mark ?? componentsProps.mark;
|
|
625
|
+
const markLabelSlotProps = slotProps?.markLabel ?? componentsProps.markLabel;
|
|
626
|
+
const inputSlotProps = slotProps?.input ?? componentsProps.input;
|
|
645
627
|
const rootProps = useSlotProps({
|
|
646
628
|
elementType: RootSlot,
|
|
647
629
|
getSlotProps: getRootProps,
|
|
@@ -650,7 +632,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
650
632
|
additionalProps: _extends({}, shouldSpreadAdditionalProps(RootSlot) && {
|
|
651
633
|
as: component
|
|
652
634
|
}),
|
|
653
|
-
ownerState: _extends({}, ownerState, rootSlotProps
|
|
635
|
+
ownerState: _extends({}, ownerState, rootSlotProps?.ownerState),
|
|
654
636
|
className: [classes.root, className]
|
|
655
637
|
});
|
|
656
638
|
const railProps = useSlotProps({
|
|
@@ -665,20 +647,20 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
665
647
|
additionalProps: {
|
|
666
648
|
style: _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
|
|
667
649
|
},
|
|
668
|
-
ownerState: _extends({}, ownerState, trackSlotProps
|
|
650
|
+
ownerState: _extends({}, ownerState, trackSlotProps?.ownerState),
|
|
669
651
|
className: classes.track
|
|
670
652
|
});
|
|
671
653
|
const thumbProps = useSlotProps({
|
|
672
654
|
elementType: ThumbSlot,
|
|
673
655
|
getSlotProps: getThumbProps,
|
|
674
656
|
externalSlotProps: thumbSlotProps,
|
|
675
|
-
ownerState: _extends({}, ownerState, thumbSlotProps
|
|
657
|
+
ownerState: _extends({}, ownerState, thumbSlotProps?.ownerState),
|
|
676
658
|
className: classes.thumb
|
|
677
659
|
});
|
|
678
660
|
const valueLabelProps = useSlotProps({
|
|
679
661
|
elementType: ValueLabelSlot,
|
|
680
662
|
externalSlotProps: valueLabelSlotProps,
|
|
681
|
-
ownerState: _extends({}, ownerState, valueLabelSlotProps
|
|
663
|
+
ownerState: _extends({}, ownerState, valueLabelSlotProps?.ownerState),
|
|
682
664
|
className: classes.valueLabel
|
|
683
665
|
});
|
|
684
666
|
const markProps = useSlotProps({
|
|
@@ -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
|
const useValueLabelClasses = props => {
|
|
10
9
|
const {
|
|
11
10
|
open
|
|
@@ -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
|
const useUtilityClasses = ownerState => {
|
|
18
17
|
const {
|
|
19
18
|
classes
|
package/SpeedDial/SpeedDial.js
CHANGED
|
@@ -22,8 +22,7 @@ import isMuiElement from '../utils/isMuiElement';
|
|
|
22
22
|
import useForkRef from '../utils/useForkRef';
|
|
23
23
|
import useControlled from '../utils/useControlled';
|
|
24
24
|
import speedDialClasses, { getSpeedDialUtilityClass } from './speedDialClasses';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const useUtilityClasses = ownerState => {
|
|
28
27
|
const {
|
|
29
28
|
classes,
|
|
@@ -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
|
const useUtilityClasses = ownerState => {
|
|
21
20
|
const {
|
|
22
21
|
open,
|
|
@@ -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
|
const useUtilityClasses = ownerState => {
|
|
17
16
|
const {
|
|
18
17
|
classes,
|
package/Step/Step.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 = ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -10,11 +10,10 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import StepperContext from '../Stepper/StepperContext';
|
|
12
12
|
import StepContext from './StepContext';
|
|
13
|
-
import
|
|
14
|
-
import styled from '../styles/styled';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
14
|
import { getStepUtilityClass } from './stepClasses';
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
15
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
const useThemeProps = createUseThemeProps('MuiStep');
|
|
18
17
|
const useUtilityClasses = ownerState => {
|
|
19
18
|
const {
|
|
20
19
|
classes,
|
|
@@ -36,15 +35,25 @@ const StepRoot = styled('div', {
|
|
|
36
35
|
} = props;
|
|
37
36
|
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
|
|
38
37
|
}
|
|
39
|
-
})(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
38
|
+
})({
|
|
39
|
+
variants: [{
|
|
40
|
+
props: {
|
|
41
|
+
orientation: 'horizontal'
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
paddingLeft: 8,
|
|
45
|
+
paddingRight: 8
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
props: {
|
|
49
|
+
alternativeLabel: true
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
position: 'relative'
|
|
54
|
+
}
|
|
55
|
+
}]
|
|
56
|
+
});
|
|
48
57
|
const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
|
|
49
58
|
const props = useThemeProps({
|
|
50
59
|
props: inProps,
|
package/StepButton/StepButton.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["children", "className", "icon", "optional"];
|
|
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
|
+
const useThemeProps = createUseThemeProps('MuiStepButton');
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes,
|
|
@@ -38,22 +38,25 @@ const StepButtonRoot = styled(ButtonBase, {
|
|
|
38
38
|
[`& .${stepButtonClasses.touchRipple}`]: styles.touchRipple
|
|
39
39
|
}, styles.root, styles[ownerState.orientation]];
|
|
40
40
|
}
|
|
41
|
-
})(
|
|
42
|
-
ownerState
|
|
43
|
-
}) => _extends({
|
|
41
|
+
})({
|
|
44
42
|
width: '100%',
|
|
45
43
|
padding: '24px 16px',
|
|
46
44
|
margin: '-24px -16px',
|
|
47
|
-
boxSizing: 'content-box'
|
|
48
|
-
}, ownerState.orientation === 'vertical' && {
|
|
49
|
-
justifyContent: 'flex-start',
|
|
50
|
-
padding: '8px',
|
|
51
|
-
margin: '-8px'
|
|
52
|
-
}, {
|
|
45
|
+
boxSizing: 'content-box',
|
|
53
46
|
[`& .${stepButtonClasses.touchRipple}`]: {
|
|
54
47
|
color: 'rgba(0, 0, 0, 0.3)'
|
|
55
|
-
}
|
|
56
|
-
|
|
48
|
+
},
|
|
49
|
+
variants: [{
|
|
50
|
+
props: {
|
|
51
|
+
orientation: 'vertical'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
justifyContent: 'flex-start',
|
|
55
|
+
padding: '8px',
|
|
56
|
+
margin: '-8px'
|
|
57
|
+
}
|
|
58
|
+
}]
|
|
59
|
+
});
|
|
57
60
|
const StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref) {
|
|
58
61
|
const props = useThemeProps({
|
|
59
62
|
props: inProps,
|