@mui/material 5.15.13 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +31 -25
- package/AccordionActions/AccordionActions.js +14 -12
- package/AccordionDetails/AccordionDetails.js +2 -2
- package/AccordionSummary/AccordionSummary.js +30 -25
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +71 -50
- package/Autocomplete/autocompleteClasses.d.ts +3 -3
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.js +156 -164
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -4
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonBase/TouchRipple.js +34 -39
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +195 -60
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +11 -16
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +2 -4
- package/Icon/Icon.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/OverridableComponent.d.ts +1 -1
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.d.ts +3 -26
- package/Popper/Popper.js +3 -4
- package/README.md +5 -3
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/Select.d.ts +8 -20
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +358 -195
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +34 -24
- package/legacy/AccordionActions/AccordionActions.js +17 -14
- package/legacy/AccordionDetails/AccordionDetails.js +2 -2
- package/legacy/AccordionSummary/AccordionSummary.js +32 -24
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +134 -116
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +1 -2
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +1 -2
- package/legacy/ButtonBase/ButtonBase.js +1 -2
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +374 -193
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +2 -3
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +27 -8
- package/legacy/styles/rootShouldForwardProp.js +5 -0
- package/legacy/styles/slotShouldForwardProp.js +5 -0
- package/legacy/styles/styled.js +4 -5
- package/legacy/usePagination/usePagination.js +1 -1
- package/modern/Accordion/Accordion.js +31 -25
- package/modern/AccordionActions/AccordionActions.js +14 -12
- package/modern/AccordionDetails/AccordionDetails.js +2 -2
- package/modern/AccordionSummary/AccordionSummary.js +30 -25
- package/modern/Alert/Alert.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +61 -36
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +1 -2
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +1 -2
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/Icon/Icon.js +1 -1
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +338 -174
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +2 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +22 -9
- package/modern/styles/rootShouldForwardProp.js +3 -0
- package/modern/styles/slotShouldForwardProp.js +5 -0
- package/modern/styles/styled.js +4 -3
- package/modern/usePagination/usePagination.js +1 -1
- package/node/Accordion/Accordion.js +33 -26
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +17 -15
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +5 -5
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +34 -28
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +73 -47
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/Ripple.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +1 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +2 -2
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +415 -234
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +23 -10
- package/node/styles/index.js +1 -1
- package/node/styles/rootShouldForwardProp.js +10 -0
- package/node/styles/slotShouldForwardProp.js +11 -0
- package/node/styles/styled.js +17 -8
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/usePagination/usePagination.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/package.json +6 -6
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +23 -5
- package/styles/experimental_extendTheme.js +29 -17
- package/styles/rootShouldForwardProp.d.ts +2 -0
- package/styles/rootShouldForwardProp.js +3 -0
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/styles/slotShouldForwardProp.d.ts +2 -0
- package/styles/slotShouldForwardProp.js +5 -0
- package/styles/styled.d.ts +2 -3
- package/styles/styled.js +4 -3
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1819 -1179
- package/umd/material-ui.production.min.js +4 -4
- package/usePagination/usePagination.js +1 -1
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
|
@@ -34,8 +34,7 @@ var _outlinedInputClasses = _interopRequireDefault(require("../OutlinedInput/out
|
|
|
34
34
|
var _filledInputClasses = _interopRequireDefault(require("../FilledInput/filledInputClasses"));
|
|
35
35
|
var _Close = _interopRequireDefault(require("../internal/svg-icons/Close"));
|
|
36
36
|
var _ArrowDropDown = _interopRequireDefault(require("../internal/svg-icons/ArrowDropDown"));
|
|
37
|
-
var
|
|
38
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
37
|
+
var _zeroStyled = require("../zero-styled");
|
|
39
38
|
var _autocompleteClasses = _interopRequireWildcard(require("./autocompleteClasses"));
|
|
40
39
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
41
40
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
@@ -44,7 +43,8 @@ var _ClearIcon, _ArrowDropDownIcon;
|
|
|
44
43
|
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
45
44
|
_excluded2 = ["ref"];
|
|
46
45
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
47
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
46
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
47
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAutocomplete');
|
|
48
48
|
const useUtilityClasses = ownerState => {
|
|
49
49
|
const {
|
|
50
50
|
classes,
|
|
@@ -77,7 +77,7 @@ const useUtilityClasses = ownerState => {
|
|
|
77
77
|
};
|
|
78
78
|
return (0, _composeClasses.default)(slots, _autocompleteClasses.getAutocompleteUtilityClass, classes);
|
|
79
79
|
};
|
|
80
|
-
const AutocompleteRoot = (0,
|
|
80
|
+
const AutocompleteRoot = (0, _zeroStyled.styled)('div', {
|
|
81
81
|
name: 'MuiAutocomplete',
|
|
82
82
|
slot: 'Root',
|
|
83
83
|
overridesResolver: (props, styles) => {
|
|
@@ -103,9 +103,7 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
103
103
|
[`& .${_autocompleteClasses.default.input}`]: inputFocused && styles.inputFocused
|
|
104
104
|
}, styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
|
|
105
105
|
}
|
|
106
|
-
})(
|
|
107
|
-
ownerState
|
|
108
|
-
}) => (0, _extends2.default)({
|
|
106
|
+
})({
|
|
109
107
|
[`&.${_autocompleteClasses.default.focused} .${_autocompleteClasses.default.clearIndicator}`]: {
|
|
110
108
|
visibility: 'visible'
|
|
111
109
|
},
|
|
@@ -114,17 +112,11 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
114
112
|
[`&:hover .${_autocompleteClasses.default.clearIndicator}`]: {
|
|
115
113
|
visibility: 'visible'
|
|
116
114
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
width: '100%'
|
|
120
|
-
}, {
|
|
121
|
-
[`& .${_autocompleteClasses.default.tag}`]: (0, _extends2.default)({
|
|
115
|
+
},
|
|
116
|
+
[`& .${_autocompleteClasses.default.tag}`]: {
|
|
122
117
|
margin: 3,
|
|
123
118
|
maxWidth: 'calc(100% - 6px)'
|
|
124
|
-
},
|
|
125
|
-
margin: 2,
|
|
126
|
-
maxWidth: 'calc(100% - 4px)'
|
|
127
|
-
}),
|
|
119
|
+
},
|
|
128
120
|
[`& .${_autocompleteClasses.default.inputRoot}`]: {
|
|
129
121
|
flexWrap: 'wrap',
|
|
130
122
|
[`.${_autocompleteClasses.default.hasPopupIcon}&, .${_autocompleteClasses.default.hasClearIcon}&`]: {
|
|
@@ -213,15 +205,40 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
213
205
|
paddingBottom: 9
|
|
214
206
|
}
|
|
215
207
|
},
|
|
216
|
-
[`& .${_autocompleteClasses.default.input}`]:
|
|
208
|
+
[`& .${_autocompleteClasses.default.input}`]: {
|
|
217
209
|
flexGrow: 1,
|
|
218
210
|
textOverflow: 'ellipsis',
|
|
219
211
|
opacity: 0
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
212
|
+
},
|
|
213
|
+
variants: [{
|
|
214
|
+
props: {
|
|
215
|
+
fullWidth: true
|
|
216
|
+
},
|
|
217
|
+
style: {
|
|
218
|
+
width: '100%'
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
props: {
|
|
222
|
+
size: 'small'
|
|
223
|
+
},
|
|
224
|
+
style: {
|
|
225
|
+
[`& .${_autocompleteClasses.default.tag}`]: {
|
|
226
|
+
margin: 2,
|
|
227
|
+
maxWidth: 'calc(100% - 4px)'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}, {
|
|
231
|
+
props: {
|
|
232
|
+
inputFocused: true
|
|
233
|
+
},
|
|
234
|
+
style: {
|
|
235
|
+
[`& .${_autocompleteClasses.default.input}`]: {
|
|
236
|
+
opacity: 1
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}]
|
|
240
|
+
});
|
|
241
|
+
const AutocompleteEndAdornment = (0, _zeroStyled.styled)('div', {
|
|
225
242
|
name: 'MuiAutocomplete',
|
|
226
243
|
slot: 'EndAdornment',
|
|
227
244
|
overridesResolver: (props, styles) => styles.endAdornment
|
|
@@ -232,7 +249,7 @@ const AutocompleteEndAdornment = (0, _styled.default)('div', {
|
|
|
232
249
|
top: '50%',
|
|
233
250
|
transform: 'translate(0, -50%)'
|
|
234
251
|
});
|
|
235
|
-
const AutocompleteClearIndicator = (0,
|
|
252
|
+
const AutocompleteClearIndicator = (0, _zeroStyled.styled)(_IconButton.default, {
|
|
236
253
|
name: 'MuiAutocomplete',
|
|
237
254
|
slot: 'ClearIndicator',
|
|
238
255
|
overridesResolver: (props, styles) => styles.clearIndicator
|
|
@@ -241,21 +258,25 @@ const AutocompleteClearIndicator = (0, _styled.default)(_IconButton.default, {
|
|
|
241
258
|
padding: 4,
|
|
242
259
|
visibility: 'hidden'
|
|
243
260
|
});
|
|
244
|
-
const AutocompletePopupIndicator = (0,
|
|
261
|
+
const AutocompletePopupIndicator = (0, _zeroStyled.styled)(_IconButton.default, {
|
|
245
262
|
name: 'MuiAutocomplete',
|
|
246
263
|
slot: 'PopupIndicator',
|
|
247
264
|
overridesResolver: ({
|
|
248
265
|
ownerState
|
|
249
266
|
}, styles) => (0, _extends2.default)({}, styles.popupIndicator, ownerState.popupOpen && styles.popupIndicatorOpen)
|
|
250
|
-
})(
|
|
251
|
-
ownerState
|
|
252
|
-
}) => (0, _extends2.default)({
|
|
267
|
+
})({
|
|
253
268
|
padding: 2,
|
|
254
|
-
marginRight: -2
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
269
|
+
marginRight: -2,
|
|
270
|
+
variants: [{
|
|
271
|
+
props: {
|
|
272
|
+
popupOpen: true
|
|
273
|
+
},
|
|
274
|
+
style: {
|
|
275
|
+
transform: 'rotate(180deg)'
|
|
276
|
+
}
|
|
277
|
+
}]
|
|
278
|
+
});
|
|
279
|
+
const AutocompletePopper = (0, _zeroStyled.styled)(_Popper.default, {
|
|
259
280
|
name: 'MuiAutocomplete',
|
|
260
281
|
slot: 'Popper',
|
|
261
282
|
overridesResolver: (props, styles) => {
|
|
@@ -267,14 +288,19 @@ const AutocompletePopper = (0, _styled.default)(_Popper.default, {
|
|
|
267
288
|
}, styles.popper, ownerState.disablePortal && styles.popperDisablePortal];
|
|
268
289
|
}
|
|
269
290
|
})(({
|
|
270
|
-
theme
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
291
|
+
theme
|
|
292
|
+
}) => ({
|
|
293
|
+
zIndex: (theme.vars || theme).zIndex.modal,
|
|
294
|
+
variants: [{
|
|
295
|
+
props: {
|
|
296
|
+
disablePortal: true
|
|
297
|
+
},
|
|
298
|
+
style: {
|
|
299
|
+
position: 'absolute'
|
|
300
|
+
}
|
|
301
|
+
}]
|
|
276
302
|
}));
|
|
277
|
-
const AutocompletePaper = (0,
|
|
303
|
+
const AutocompletePaper = (0, _zeroStyled.styled)(_Paper.default, {
|
|
278
304
|
name: 'MuiAutocomplete',
|
|
279
305
|
slot: 'Paper',
|
|
280
306
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -283,7 +309,7 @@ const AutocompletePaper = (0, _styled.default)(_Paper.default, {
|
|
|
283
309
|
}) => (0, _extends2.default)({}, theme.typography.body1, {
|
|
284
310
|
overflow: 'auto'
|
|
285
311
|
}));
|
|
286
|
-
const AutocompleteLoading = (0,
|
|
312
|
+
const AutocompleteLoading = (0, _zeroStyled.styled)('div', {
|
|
287
313
|
name: 'MuiAutocomplete',
|
|
288
314
|
slot: 'Loading',
|
|
289
315
|
overridesResolver: (props, styles) => styles.loading
|
|
@@ -293,7 +319,7 @@ const AutocompleteLoading = (0, _styled.default)('div', {
|
|
|
293
319
|
color: (theme.vars || theme).palette.text.secondary,
|
|
294
320
|
padding: '14px 16px'
|
|
295
321
|
}));
|
|
296
|
-
const AutocompleteNoOptions = (0,
|
|
322
|
+
const AutocompleteNoOptions = (0, _zeroStyled.styled)('div', {
|
|
297
323
|
name: 'MuiAutocomplete',
|
|
298
324
|
slot: 'NoOptions',
|
|
299
325
|
overridesResolver: (props, styles) => styles.noOptions
|
|
@@ -303,7 +329,7 @@ const AutocompleteNoOptions = (0, _styled.default)('div', {
|
|
|
303
329
|
color: (theme.vars || theme).palette.text.secondary,
|
|
304
330
|
padding: '14px 16px'
|
|
305
331
|
}));
|
|
306
|
-
const AutocompleteListbox = (0,
|
|
332
|
+
const AutocompleteListbox = (0, _zeroStyled.styled)('div', {
|
|
307
333
|
name: 'MuiAutocomplete',
|
|
308
334
|
slot: 'Listbox',
|
|
309
335
|
overridesResolver: (props, styles) => styles.listbox
|
|
@@ -362,7 +388,7 @@ const AutocompleteListbox = (0, _styled.default)('div', {
|
|
|
362
388
|
}
|
|
363
389
|
}
|
|
364
390
|
}));
|
|
365
|
-
const AutocompleteGroupLabel = (0,
|
|
391
|
+
const AutocompleteGroupLabel = (0, _zeroStyled.styled)(_ListSubheader.default, {
|
|
366
392
|
name: 'MuiAutocomplete',
|
|
367
393
|
slot: 'GroupLabel',
|
|
368
394
|
overridesResolver: (props, styles) => styles.groupLabel
|
|
@@ -372,7 +398,7 @@ const AutocompleteGroupLabel = (0, _styled.default)(_ListSubheader.default, {
|
|
|
372
398
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
373
399
|
top: -8
|
|
374
400
|
}));
|
|
375
|
-
const AutocompleteGroupUl = (0,
|
|
401
|
+
const AutocompleteGroupUl = (0, _zeroStyled.styled)('ul', {
|
|
376
402
|
name: 'MuiAutocomplete',
|
|
377
403
|
slot: 'GroupUl',
|
|
378
404
|
overridesResolver: (props, styles) => styles.groupUl
|
|
@@ -384,7 +410,7 @@ const AutocompleteGroupUl = (0, _styled.default)('ul', {
|
|
|
384
410
|
});
|
|
385
411
|
const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
|
|
386
412
|
var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
|
|
387
|
-
const props = (
|
|
413
|
+
const props = useThemeProps({
|
|
388
414
|
props: inProps,
|
|
389
415
|
name: 'MuiAutocomplete'
|
|
390
416
|
});
|
|
@@ -587,7 +613,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
587
613
|
}))
|
|
588
614
|
}));
|
|
589
615
|
let autocompletePopper = null;
|
|
590
|
-
if (
|
|
616
|
+
if (groupedOptions.length > 0) {
|
|
591
617
|
autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteListbox, (0, _extends2.default)({
|
|
592
618
|
as: ListboxComponent,
|
|
593
619
|
className: classes.listbox,
|
|
@@ -924,7 +950,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
924
950
|
ListboxProps: _propTypes.default.object,
|
|
925
951
|
/**
|
|
926
952
|
* If `true`, the component is in a loading state.
|
|
927
|
-
* This shows the `loadingText` in place of suggestions (only if there are no suggestions to show,
|
|
953
|
+
* This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).
|
|
928
954
|
* @default false
|
|
929
955
|
*/
|
|
930
956
|
loading: _propTypes.default.bool,
|
|
@@ -40,4 +40,4 @@ Object.keys(_autocompleteClasses).forEach(function (key) {
|
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
43
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
43
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/node/Avatar/Avatar.js
CHANGED
|
@@ -19,7 +19,7 @@ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["alt", "children", "className", "component", "slots", "slotProps", "imgProps", "sizes", "src", "srcSet", "variant"];
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAvatar');
|
|
24
24
|
const useUtilityClasses = ownerState => {
|
|
25
25
|
const {
|
package/node/Avatar/index.js
CHANGED
|
@@ -34,4 +34,4 @@ Object.keys(_avatarClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -14,18 +14,18 @@ var _reactIs = require("react-is");
|
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
16
16
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
|
-
var
|
|
18
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _Avatar = _interopRequireWildcard(require("../Avatar"));
|
|
20
19
|
var _avatarGroupClasses = _interopRequireWildcard(require("./avatarGroupClasses"));
|
|
21
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
21
|
const _excluded = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
|
|
23
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
24
|
const SPACINGS = {
|
|
26
25
|
small: -16,
|
|
27
|
-
medium:
|
|
26
|
+
medium: -8
|
|
28
27
|
};
|
|
28
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAlert');
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
classes
|
|
@@ -36,33 +36,29 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
};
|
|
37
37
|
return (0, _composeClasses.default)(slots, _avatarGroupClasses.getAvatarGroupUtilityClass, classes);
|
|
38
38
|
};
|
|
39
|
-
const AvatarGroupRoot = (0,
|
|
39
|
+
const AvatarGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
40
40
|
name: 'MuiAvatarGroup',
|
|
41
41
|
slot: 'Root',
|
|
42
42
|
overridesResolver: (props, styles) => (0, _extends2.default)({
|
|
43
43
|
[`& .${_avatarGroupClasses.default.avatar}`]: styles.avatar
|
|
44
44
|
}, styles.root)
|
|
45
45
|
})(({
|
|
46
|
-
theme
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
display: 'flex',
|
|
60
|
-
flexDirection: 'row-reverse'
|
|
61
|
-
};
|
|
62
|
-
});
|
|
46
|
+
theme
|
|
47
|
+
}) => ({
|
|
48
|
+
display: 'flex',
|
|
49
|
+
flexDirection: 'row-reverse',
|
|
50
|
+
[`& .${_Avatar.avatarClasses.root}`]: {
|
|
51
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
52
|
+
boxSizing: 'content-box',
|
|
53
|
+
marginLeft: 'var(--AvatarGroup-spacing, -8px)',
|
|
54
|
+
'&:last-child': {
|
|
55
|
+
marginLeft: 0
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
63
59
|
const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {
|
|
64
60
|
var _slotProps$additional;
|
|
65
|
-
const props = (
|
|
61
|
+
const props = useThemeProps({
|
|
66
62
|
props: inProps,
|
|
67
63
|
name: 'MuiAvatarGroup'
|
|
68
64
|
});
|
|
@@ -104,6 +100,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
104
100
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
105
101
|
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
106
102
|
const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
|
|
103
|
+
const marginValue = ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined ? SPACINGS[ownerState.spacing] : -ownerState.spacing || -8;
|
|
107
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupRoot, (0, _extends2.default)({
|
|
108
105
|
as: component,
|
|
109
106
|
ownerState: ownerState,
|
|
@@ -114,6 +111,9 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
114
111
|
variant: variant
|
|
115
112
|
}, additionalAvatarSlotProps, {
|
|
116
113
|
className: (0, _clsx.default)(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
|
|
114
|
+
style: (0, _extends2.default)({
|
|
115
|
+
'--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined
|
|
116
|
+
}, other.style),
|
|
117
117
|
children: extraAvatarsElement
|
|
118
118
|
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
119
119
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -189,6 +189,10 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
189
189
|
* @default 'medium'
|
|
190
190
|
*/
|
|
191
191
|
spacing: _propTypes.default.oneOfType([_propTypes.default.oneOf(['medium', 'small']), _propTypes.default.number]),
|
|
192
|
+
/**
|
|
193
|
+
* @ignore
|
|
194
|
+
*/
|
|
195
|
+
style: _propTypes.default.object,
|
|
192
196
|
/**
|
|
193
197
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
194
198
|
*/
|
|
@@ -34,4 +34,4 @@ Object.keys(_avatarGroupClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -6,20 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var
|
|
16
|
-
var
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
16
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
17
17
|
var _Fade = _interopRequireDefault(require("../Fade"));
|
|
18
18
|
var _backdropClasses = require("./backdropClasses");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const _excluded = ["children", "className", "component", "
|
|
20
|
+
const _excluded = ["children", "className", "component", "invisible", "open", "components", "componentsProps", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiBackdrop');
|
|
23
24
|
const useUtilityClasses = ownerState => {
|
|
24
25
|
const {
|
|
25
26
|
classes,
|
|
@@ -30,7 +31,7 @@ const useUtilityClasses = ownerState => {
|
|
|
30
31
|
};
|
|
31
32
|
return (0, _composeClasses.default)(slots, _backdropClasses.getBackdropUtilityClass, classes);
|
|
32
33
|
};
|
|
33
|
-
const BackdropRoot = (0,
|
|
34
|
+
const BackdropRoot = (0, _zeroStyled.styled)('div', {
|
|
34
35
|
name: 'MuiBackdrop',
|
|
35
36
|
slot: 'Root',
|
|
36
37
|
overridesResolver: (props, styles) => {
|
|
@@ -39,9 +40,7 @@ const BackdropRoot = (0, _styled.default)('div', {
|
|
|
39
40
|
} = props;
|
|
40
41
|
return [styles.root, ownerState.invisible && styles.invisible];
|
|
41
42
|
}
|
|
42
|
-
})(
|
|
43
|
-
ownerState
|
|
44
|
-
}) => (0, _extends2.default)({
|
|
43
|
+
})({
|
|
45
44
|
position: 'fixed',
|
|
46
45
|
display: 'flex',
|
|
47
46
|
alignItems: 'center',
|
|
@@ -51,13 +50,18 @@ const BackdropRoot = (0, _styled.default)('div', {
|
|
|
51
50
|
top: 0,
|
|
52
51
|
left: 0,
|
|
53
52
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
54
|
-
WebkitTapHighlightColor: 'transparent'
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
WebkitTapHighlightColor: 'transparent',
|
|
54
|
+
variants: [{
|
|
55
|
+
props: {
|
|
56
|
+
invisible: true
|
|
57
|
+
},
|
|
58
|
+
style: {
|
|
59
|
+
backgroundColor: 'transparent'
|
|
60
|
+
}
|
|
61
|
+
}]
|
|
62
|
+
});
|
|
58
63
|
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
59
|
-
|
|
60
|
-
const props = (0, _useThemeProps.default)({
|
|
64
|
+
const props = useThemeProps({
|
|
61
65
|
props: inProps,
|
|
62
66
|
name: 'MuiBackdrop'
|
|
63
67
|
});
|
|
@@ -65,13 +69,13 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
65
69
|
children,
|
|
66
70
|
className,
|
|
67
71
|
component = 'div',
|
|
68
|
-
components = {},
|
|
69
|
-
componentsProps = {},
|
|
70
72
|
invisible = false,
|
|
71
73
|
open,
|
|
74
|
+
components = {},
|
|
75
|
+
componentsProps = {},
|
|
72
76
|
slotProps = {},
|
|
73
77
|
slots = {},
|
|
74
|
-
TransitionComponent
|
|
78
|
+
TransitionComponent: TransitionComponentProp,
|
|
75
79
|
transitionDuration
|
|
76
80
|
} = props,
|
|
77
81
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
@@ -80,17 +84,34 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
80
84
|
invisible
|
|
81
85
|
});
|
|
82
86
|
const classes = useUtilityClasses(ownerState);
|
|
83
|
-
const
|
|
84
|
-
|
|
87
|
+
const backwardCompatibleSlots = (0, _extends2.default)({
|
|
88
|
+
transition: TransitionComponentProp,
|
|
89
|
+
root: components.Root
|
|
90
|
+
}, slots);
|
|
91
|
+
const backwardCompatibleSlotProps = (0, _extends2.default)({}, componentsProps, slotProps);
|
|
92
|
+
const externalForwardedProps = {
|
|
93
|
+
slots: backwardCompatibleSlots,
|
|
94
|
+
slotProps: backwardCompatibleSlotProps
|
|
95
|
+
};
|
|
96
|
+
const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
|
|
97
|
+
elementType: BackdropRoot,
|
|
98
|
+
externalForwardedProps,
|
|
99
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
100
|
+
ownerState
|
|
101
|
+
});
|
|
102
|
+
const [TransitionSlot, transitionProps] = (0, _useSlot.default)('transition', {
|
|
103
|
+
elementType: _Fade.default,
|
|
104
|
+
externalForwardedProps,
|
|
105
|
+
ownerState
|
|
106
|
+
});
|
|
107
|
+
delete transitionProps.ownerState;
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, (0, _extends2.default)({
|
|
85
109
|
in: open,
|
|
86
110
|
timeout: transitionDuration
|
|
87
|
-
}, other, {
|
|
88
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
111
|
+
}, other, transitionProps, {
|
|
112
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(RootSlot, (0, _extends2.default)({
|
|
89
113
|
"aria-hidden": true
|
|
90
|
-
},
|
|
91
|
-
as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,
|
|
92
|
-
className: (0, _clsx.default)(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
|
|
93
|
-
ownerState: (0, _extends2.default)({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
114
|
+
}, rootProps, {
|
|
94
115
|
classes: classes,
|
|
95
116
|
ref: ref,
|
|
96
117
|
children: children
|
|
@@ -153,25 +174,20 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
153
174
|
*/
|
|
154
175
|
open: _propTypes.default.bool.isRequired,
|
|
155
176
|
/**
|
|
156
|
-
* The
|
|
157
|
-
* You can override the existing props or add new ones.
|
|
158
|
-
*
|
|
159
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
160
|
-
*
|
|
177
|
+
* The props used for each slot inside.
|
|
161
178
|
* @default {}
|
|
162
179
|
*/
|
|
163
180
|
slotProps: _propTypes.default.shape({
|
|
164
|
-
root: _propTypes.default.object
|
|
181
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
182
|
+
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
165
183
|
}),
|
|
166
184
|
/**
|
|
167
185
|
* The components used for each slot inside.
|
|
168
|
-
*
|
|
169
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
170
|
-
*
|
|
171
186
|
* @default {}
|
|
172
187
|
*/
|
|
173
188
|
slots: _propTypes.default.shape({
|
|
174
|
-
root: _propTypes.default.elementType
|
|
189
|
+
root: _propTypes.default.elementType,
|
|
190
|
+
transition: _propTypes.default.elementType
|
|
175
191
|
}),
|
|
176
192
|
/**
|
|
177
193
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -181,6 +197,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
181
197
|
* The component used for the transition.
|
|
182
198
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
183
199
|
* @default Fade
|
|
200
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
184
201
|
*/
|
|
185
202
|
TransitionComponent: _propTypes.default.elementType,
|
|
186
203
|
/**
|
package/node/Backdrop/index.js
CHANGED
|
@@ -34,4 +34,4 @@ Object.keys(_backdropClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/node/Badge/Badge.js
CHANGED
|
@@ -21,7 +21,7 @@ var _badgeClasses = _interopRequireWildcard(require("./badgeClasses"));
|
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
const _excluded = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
const RADIUS_STANDARD = 10;
|
|
26
26
|
const RADIUS_DOT = 4;
|
|
27
27
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiBadge');
|
package/node/Badge/index.js
CHANGED
|
@@ -34,4 +34,4 @@ Object.keys(_badgeClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -13,13 +13,13 @@ var _reactIs = require("react-is");
|
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
-
var
|
|
17
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _bottomNavigationClasses = require("./bottomNavigationClasses");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["children", "className", "component", "onChange", "showLabels", "value"];
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiBottomNavigation');
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
classes
|
|
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
return (0, _composeClasses.default)(slots, _bottomNavigationClasses.getBottomNavigationUtilityClass, classes);
|
|
31
31
|
};
|
|
32
|
-
const BottomNavigationRoot = (0,
|
|
32
|
+
const BottomNavigationRoot = (0, _zeroStyled.styled)('div', {
|
|
33
33
|
name: 'MuiBottomNavigation',
|
|
34
34
|
slot: 'Root',
|
|
35
35
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -42,7 +42,7 @@ const BottomNavigationRoot = (0, _styled.default)('div', {
|
|
|
42
42
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
43
43
|
}));
|
|
44
44
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
45
|
-
const props = (
|
|
45
|
+
const props = useThemeProps({
|
|
46
46
|
props: inProps,
|
|
47
47
|
name: 'MuiBottomNavigation'
|
|
48
48
|
});
|
|
@@ -34,4 +34,4 @@ Object.keys(_bottomNavigationClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|