@mui/material 5.15.14 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +12 -17
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.js +156 -164
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -4
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonBase/TouchRipple.js +34 -39
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +80 -1
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +2 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +187 -205
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +2 -3
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +1 -2
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +1 -2
- package/legacy/ButtonBase/ButtonBase.js +1 -2
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +1 -2
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +26 -7
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +2 -3
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +1 -2
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +1 -2
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +1 -2
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +21 -8
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/Ripple.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +1 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +22 -9
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +23 -5
- package/styles/experimental_extendTheme.js +28 -16
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1136 -736
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
|
@@ -6,14 +6,14 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import
|
|
10
|
-
import styled from '../styles/styled';
|
|
9
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
11
10
|
import { isFilled, isAdornedStart } from '../InputBase/utils';
|
|
12
11
|
import capitalize from '../utils/capitalize';
|
|
13
12
|
import isMuiElement from '../utils/isMuiElement';
|
|
14
13
|
import FormControlContext from './FormControlContext';
|
|
15
14
|
import { getFormControlUtilityClasses } from './formControlClasses';
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
var useThemeProps = createUseThemeProps('MuiFormControl');
|
|
17
17
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
18
18
|
var classes = ownerState.classes,
|
|
19
19
|
margin = ownerState.margin,
|
|
@@ -30,27 +30,41 @@ var FormControlRoot = styled('div', {
|
|
|
30
30
|
var ownerState = _ref.ownerState;
|
|
31
31
|
return _extends({}, styles.root, styles["margin".concat(capitalize(ownerState.margin))], ownerState.fullWidth && styles.fullWidth);
|
|
32
32
|
}
|
|
33
|
-
})(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
})({
|
|
34
|
+
display: 'inline-flex',
|
|
35
|
+
flexDirection: 'column',
|
|
36
|
+
position: 'relative',
|
|
37
|
+
// Reset fieldset default style.
|
|
38
|
+
minWidth: 0,
|
|
39
|
+
padding: 0,
|
|
40
|
+
margin: 0,
|
|
41
|
+
border: 0,
|
|
42
|
+
verticalAlign: 'top',
|
|
43
|
+
// Fix alignment issue on Safari.
|
|
44
|
+
variants: [{
|
|
45
|
+
props: {
|
|
46
|
+
margin: 'normal'
|
|
47
|
+
},
|
|
48
|
+
style: {
|
|
49
|
+
marginTop: 16,
|
|
50
|
+
marginBottom: 8
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
props: {
|
|
54
|
+
margin: 'dense'
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
marginTop: 8,
|
|
58
|
+
marginBottom: 4
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
props: {
|
|
62
|
+
fullWidth: true
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
width: '100%'
|
|
66
|
+
}
|
|
67
|
+
}]
|
|
54
68
|
});
|
|
55
69
|
|
|
56
70
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -9,15 +9,14 @@ import clsx from 'clsx';
|
|
|
9
9
|
import refType from '@mui/utils/refType';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import { useFormControl } from '../FormControl';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
13
|
import Stack from '../Stack';
|
|
13
14
|
import Typography from '../Typography';
|
|
14
15
|
import capitalize from '../utils/capitalize';
|
|
15
|
-
import styled from '../styles/styled';
|
|
16
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
17
16
|
import formControlLabelClasses, { getFormControlLabelUtilityClasses } from './formControlLabelClasses';
|
|
18
17
|
import formControlState from '../FormControl/formControlState';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
var useThemeProps = createUseThemeProps('MuiFormControlLabel');
|
|
21
20
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
22
21
|
var classes = ownerState.classes,
|
|
23
22
|
disabled = ownerState.disabled,
|
|
@@ -39,9 +38,8 @@ export var FormControlLabelRoot = styled('label', {
|
|
|
39
38
|
return [_defineProperty({}, "& .".concat(formControlLabelClasses.label), styles.label), styles.root, styles["labelPlacement".concat(capitalize(ownerState.labelPlacement))]];
|
|
40
39
|
}
|
|
41
40
|
})(function (_ref2) {
|
|
42
|
-
var theme = _ref2.theme
|
|
43
|
-
|
|
44
|
-
return _extends(_defineProperty({
|
|
41
|
+
var theme = _ref2.theme;
|
|
42
|
+
return _defineProperty(_defineProperty(_defineProperty({
|
|
45
43
|
display: 'inline-flex',
|
|
46
44
|
alignItems: 'center',
|
|
47
45
|
cursor: 'pointer',
|
|
@@ -52,20 +50,39 @@ export var FormControlLabelRoot = styled('label', {
|
|
|
52
50
|
marginRight: 16
|
|
53
51
|
}, "&.".concat(formControlLabelClasses.disabled), {
|
|
54
52
|
cursor: 'default'
|
|
55
|
-
}),
|
|
56
|
-
flexDirection: 'row-reverse',
|
|
57
|
-
marginLeft: 16,
|
|
58
|
-
// used for row presentation of radio/checkbox
|
|
59
|
-
marginRight: -11
|
|
60
|
-
}, ownerState.labelPlacement === 'top' && {
|
|
61
|
-
flexDirection: 'column-reverse',
|
|
62
|
-
marginLeft: 16
|
|
63
|
-
}, ownerState.labelPlacement === 'bottom' && {
|
|
64
|
-
flexDirection: 'column',
|
|
65
|
-
marginLeft: 16
|
|
66
|
-
}, _defineProperty({}, "& .".concat(formControlLabelClasses.label), _defineProperty({}, "&.".concat(formControlLabelClasses.disabled), {
|
|
53
|
+
}), "& .".concat(formControlLabelClasses.label), _defineProperty({}, "&.".concat(formControlLabelClasses.disabled), {
|
|
67
54
|
color: (theme.vars || theme).palette.text.disabled
|
|
68
|
-
}))
|
|
55
|
+
})), "variants", [{
|
|
56
|
+
props: {
|
|
57
|
+
labelPlacement: 'start'
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
flexDirection: 'row-reverse',
|
|
61
|
+
marginRight: -11
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
props: {
|
|
65
|
+
labelPlacement: 'top'
|
|
66
|
+
},
|
|
67
|
+
style: {
|
|
68
|
+
flexDirection: 'column-reverse'
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
labelPlacement: 'bottom'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
flexDirection: 'column'
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: function props(_ref3) {
|
|
79
|
+
var labelPlacement = _ref3.labelPlacement;
|
|
80
|
+
return labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom';
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
marginLeft: 16 // used for row presentation of radio/checkbox
|
|
84
|
+
}
|
|
85
|
+
}]);
|
|
69
86
|
});
|
|
70
87
|
var AsteriskComponent = styled('span', {
|
|
71
88
|
name: 'MuiFormControlLabel',
|
|
@@ -73,8 +90,8 @@ var AsteriskComponent = styled('span', {
|
|
|
73
90
|
overridesResolver: function overridesResolver(props, styles) {
|
|
74
91
|
return styles.asterisk;
|
|
75
92
|
}
|
|
76
|
-
})(function (
|
|
77
|
-
var theme =
|
|
93
|
+
})(function (_ref5) {
|
|
94
|
+
var theme = _ref5.theme;
|
|
78
95
|
return _defineProperty({}, "&.".concat(formControlLabelClasses.error), {
|
|
79
96
|
color: (theme.vars || theme).palette.error.main
|
|
80
97
|
});
|
|
@@ -85,7 +102,7 @@ var AsteriskComponent = styled('span', {
|
|
|
85
102
|
* Use this component if you want to display an extra label.
|
|
86
103
|
*/
|
|
87
104
|
var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {
|
|
88
|
-
var
|
|
105
|
+
var _ref7, _slotProps$typography;
|
|
89
106
|
var props = useThemeProps({
|
|
90
107
|
props: inProps,
|
|
91
108
|
name: 'MuiFormControlLabel'
|
|
@@ -109,7 +126,7 @@ var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(i
|
|
|
109
126
|
value = props.value,
|
|
110
127
|
other = _objectWithoutProperties(props, ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"]);
|
|
111
128
|
var muiFormControl = useFormControl();
|
|
112
|
-
var disabled = (
|
|
129
|
+
var disabled = (_ref7 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref7 : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
113
130
|
var required = requiredProp != null ? requiredProp : control.props.required;
|
|
114
131
|
var controlProps = {
|
|
115
132
|
disabled: disabled,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import styled from '../
|
|
10
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
9
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
11
10
|
import { getFormGroupUtilityClass } from './formGroupClasses';
|
|
12
11
|
import useFormControl from '../FormControl/useFormControl';
|
|
13
12
|
import formControlState from '../FormControl/formControlState';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var useThemeProps = createUseThemeProps('MuiFormGroup');
|
|
15
15
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
16
16
|
var classes = ownerState.classes,
|
|
17
17
|
row = ownerState.row,
|
|
@@ -28,15 +28,18 @@ var FormGroupRoot = styled('div', {
|
|
|
28
28
|
var ownerState = props.ownerState;
|
|
29
29
|
return [styles.root, ownerState.row && styles.row];
|
|
30
30
|
}
|
|
31
|
-
})(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
})({
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexDirection: 'column',
|
|
34
|
+
flexWrap: 'wrap',
|
|
35
|
+
variants: [{
|
|
36
|
+
props: {
|
|
37
|
+
row: true
|
|
38
|
+
},
|
|
39
|
+
style: {
|
|
40
|
+
flexDirection: 'row'
|
|
41
|
+
}
|
|
42
|
+
}]
|
|
40
43
|
});
|
|
41
44
|
|
|
42
45
|
/**
|
|
@@ -10,8 +10,7 @@ import styled from '../styles/styled';
|
|
|
10
10
|
import useThemeProps from '../styles/useThemeProps';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import { getImageListItemBarUtilityClass } from './imageListItemBarClasses';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
16
15
|
var classes = ownerState.classes,
|
|
17
16
|
position = ownerState.position,
|
|
@@ -15,8 +15,7 @@ import useFormControl from '../FormControl/useFormControl';
|
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
16
|
import inputAdornmentClasses, { getInputAdornmentUtilityClass } from './inputAdornmentClasses';
|
|
17
17
|
import useThemeProps from '../styles/useThemeProps';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
var overridesResolver = function overridesResolver(props, styles) {
|
|
21
20
|
var ownerState = props.ownerState;
|
|
22
21
|
return [styles.root, styles["position".concat(capitalize(ownerState.position))], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];
|
|
@@ -23,8 +23,7 @@ import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
|
23
23
|
import GlobalStyles from '../GlobalStyles';
|
|
24
24
|
import { isFilled } from './utils';
|
|
25
25
|
import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses';
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
export var rootOverridesResolver = function rootOverridesResolver(props, styles) {
|
|
29
28
|
var ownerState = props.ownerState;
|
|
30
29
|
return [styles.root, ownerState.formControl && styles.formControl, ownerState.startAdornment && styles.adornedStart, ownerState.endAdornment && styles.adornedEnd, ownerState.error && styles.error, ownerState.size === 'small' && styles.sizeSmall, ownerState.multiline && styles.multiline, ownerState.color && styles["color".concat(capitalize(ownerState.color))], ownerState.fullWidth && styles.fullWidth, ownerState.hiddenLabel && styles.hiddenLabel];
|
|
@@ -15,8 +15,7 @@ import capitalize from '../utils/capitalize';
|
|
|
15
15
|
import styled from '../styles/styled';
|
|
16
16
|
import useThemeProps from '../styles/useThemeProps';
|
|
17
17
|
import { getLinearProgressUtilityClass } from './linearProgressClasses';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
var TRANSITION_DURATION = 4; // seconds
|
|
21
20
|
var indeterminate1Keyframe = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])));
|
|
22
21
|
var indeterminate2Keyframe = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])));
|
package/legacy/List/List.js
CHANGED
|
@@ -10,8 +10,7 @@ import styled from '../styles/styled';
|
|
|
10
10
|
import useThemeProps from '../styles/useThemeProps';
|
|
11
11
|
import ListContext from './ListContext';
|
|
12
12
|
import { getListUtilityClass } from './listClasses';
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
15
14
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
16
15
|
var classes = ownerState.classes,
|
|
17
16
|
disablePadding = ownerState.disablePadding,
|
|
@@ -21,8 +21,7 @@ import ListContext from '../List/ListContext';
|
|
|
21
21
|
import listItemClasses, { getListItemUtilityClass } from './listItemClasses';
|
|
22
22
|
import { listItemButtonClasses } from '../ListItemButton';
|
|
23
23
|
import ListItemSecondaryAction from '../ListItemSecondaryAction';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
export var overridesResolver = function overridesResolver(props, styles) {
|
|
27
26
|
var ownerState = props.ownerState;
|
|
28
27
|
return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters, !ownerState.disablePadding && styles.padding, ownerState.button && styles.button, ownerState.hasSecondaryAction && styles.secondaryAction];
|
|
@@ -12,8 +12,7 @@ import ListContext from '../List/ListContext';
|
|
|
12
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
13
|
import styled from '../styles/styled';
|
|
14
14
|
import listItemTextClasses, { getListItemTextUtilityClass } from './listItemTextClasses';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
18
17
|
var classes = ownerState.classes,
|
|
19
18
|
inset = ownerState.inset,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -11,11 +11,11 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
11
11
|
import Paper from '../Paper';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
13
|
import LinearProgress from '../LinearProgress';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
|
+
import slotShouldForwardProp from '../styles/slotShouldForwardProp';
|
|
16
16
|
import { getMobileStepperUtilityClass } from './mobileStepperClasses';
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
|
|
17
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
var useThemeProps = createUseThemeProps('MuiMobileStepper');
|
|
19
19
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
20
20
|
var classes = ownerState.classes,
|
|
21
21
|
position = ownerState.position;
|
|
@@ -36,28 +36,41 @@ var MobileStepperRoot = styled(Paper, {
|
|
|
36
36
|
return [styles.root, styles["position".concat(capitalize(ownerState.position))]];
|
|
37
37
|
}
|
|
38
38
|
})(function (_ref) {
|
|
39
|
-
var theme = _ref.theme
|
|
40
|
-
|
|
41
|
-
return _extends({
|
|
39
|
+
var theme = _ref.theme;
|
|
40
|
+
return {
|
|
42
41
|
display: 'flex',
|
|
43
42
|
flexDirection: 'row',
|
|
44
43
|
justifyContent: 'space-between',
|
|
45
44
|
alignItems: 'center',
|
|
46
45
|
background: (theme.vars || theme).palette.background.default,
|
|
47
|
-
padding: 8
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
padding: 8,
|
|
47
|
+
variants: [{
|
|
48
|
+
props: function props(_ref2) {
|
|
49
|
+
var position = _ref2.position;
|
|
50
|
+
return position === 'top' || position === 'bottom';
|
|
51
|
+
},
|
|
52
|
+
style: {
|
|
53
|
+
position: 'fixed',
|
|
54
|
+
left: 0,
|
|
55
|
+
right: 0,
|
|
56
|
+
zIndex: (theme.vars || theme).zIndex.mobileStepper
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
props: {
|
|
60
|
+
position: 'top'
|
|
61
|
+
},
|
|
62
|
+
style: {
|
|
63
|
+
top: 0
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
props: {
|
|
67
|
+
position: 'bottom'
|
|
68
|
+
},
|
|
69
|
+
style: {
|
|
70
|
+
bottom: 0
|
|
71
|
+
}
|
|
72
|
+
}]
|
|
73
|
+
};
|
|
61
74
|
});
|
|
62
75
|
var MobileStepperDots = styled('div', {
|
|
63
76
|
name: 'MuiMobileStepper',
|
|
@@ -65,12 +78,16 @@ var MobileStepperDots = styled('div', {
|
|
|
65
78
|
overridesResolver: function overridesResolver(props, styles) {
|
|
66
79
|
return styles.dots;
|
|
67
80
|
}
|
|
68
|
-
})(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
})({
|
|
82
|
+
variants: [{
|
|
83
|
+
props: {
|
|
84
|
+
variant: 'dots'
|
|
85
|
+
},
|
|
86
|
+
style: {
|
|
87
|
+
display: 'flex',
|
|
88
|
+
flexDirection: 'row'
|
|
89
|
+
}
|
|
90
|
+
}]
|
|
74
91
|
});
|
|
75
92
|
var MobileStepperDot = styled('div', {
|
|
76
93
|
name: 'MuiMobileStepper',
|
|
@@ -83,21 +100,32 @@ var MobileStepperDot = styled('div', {
|
|
|
83
100
|
return [styles.dot, dotActive && styles.dotActive];
|
|
84
101
|
}
|
|
85
102
|
})(function (_ref3) {
|
|
86
|
-
var theme = _ref3.theme
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
var theme = _ref3.theme;
|
|
104
|
+
return {
|
|
105
|
+
variants: [{
|
|
106
|
+
props: {
|
|
107
|
+
variant: 'dots'
|
|
108
|
+
},
|
|
109
|
+
style: {
|
|
110
|
+
transition: theme.transitions.create('background-color', {
|
|
111
|
+
duration: theme.transitions.duration.shortest
|
|
112
|
+
}),
|
|
113
|
+
backgroundColor: (theme.vars || theme).palette.action.disabled,
|
|
114
|
+
borderRadius: '50%',
|
|
115
|
+
width: 8,
|
|
116
|
+
height: 8,
|
|
117
|
+
margin: '0 2px'
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
variant: 'dots',
|
|
122
|
+
dotActive: true
|
|
123
|
+
},
|
|
124
|
+
style: {
|
|
125
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
126
|
+
}
|
|
127
|
+
}]
|
|
128
|
+
};
|
|
101
129
|
});
|
|
102
130
|
var MobileStepperProgress = styled(LinearProgress, {
|
|
103
131
|
name: 'MuiMobileStepper',
|
|
@@ -105,11 +133,15 @@ var MobileStepperProgress = styled(LinearProgress, {
|
|
|
105
133
|
overridesResolver: function overridesResolver(props, styles) {
|
|
106
134
|
return styles.progress;
|
|
107
135
|
}
|
|
108
|
-
})(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
136
|
+
})({
|
|
137
|
+
variants: [{
|
|
138
|
+
props: {
|
|
139
|
+
variant: 'progress'
|
|
140
|
+
},
|
|
141
|
+
style: {
|
|
142
|
+
width: '50%'
|
|
143
|
+
}
|
|
144
|
+
}]
|
|
113
145
|
});
|
|
114
146
|
var MobileStepper = /*#__PURE__*/React.forwardRef(function MobileStepper(inProps, ref) {
|
|
115
147
|
var props = useThemeProps({
|
package/legacy/Modal/Modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -12,12 +12,11 @@ import { unstable_useModal as useModal } from '@mui/base/unstable_useModal';
|
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
13
|
import FocusTrap from '../Unstable_TrapFocus';
|
|
14
14
|
import Portal from '../Portal';
|
|
15
|
-
import styled from '../
|
|
16
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
15
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
17
16
|
import Backdrop from '../Backdrop';
|
|
18
17
|
import { getModalUtilityClass } from './modalClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
var useThemeProps = createUseThemeProps('MuiModal');
|
|
21
20
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
22
21
|
var open = ownerState.open,
|
|
23
22
|
exited = ownerState.exited,
|
|
@@ -36,18 +35,24 @@ var ModalRoot = styled('div', {
|
|
|
36
35
|
return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];
|
|
37
36
|
}
|
|
38
37
|
})(function (_ref) {
|
|
39
|
-
var theme = _ref.theme
|
|
40
|
-
|
|
41
|
-
return _extends({
|
|
38
|
+
var theme = _ref.theme;
|
|
39
|
+
return {
|
|
42
40
|
position: 'fixed',
|
|
43
41
|
zIndex: (theme.vars || theme).zIndex.modal,
|
|
44
42
|
right: 0,
|
|
45
43
|
bottom: 0,
|
|
46
44
|
top: 0,
|
|
47
|
-
left: 0
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
left: 0,
|
|
46
|
+
variants: [{
|
|
47
|
+
props: function props(_ref2) {
|
|
48
|
+
var ownerState = _ref2.ownerState;
|
|
49
|
+
return !ownerState.open && ownerState.exited;
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
visibility: 'hidden'
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
};
|
|
51
56
|
});
|
|
52
57
|
var ModalBackdrop = styled(Backdrop, {
|
|
53
58
|
name: 'MuiModal',
|
|
@@ -73,7 +78,7 @@ var ModalBackdrop = styled(Backdrop, {
|
|
|
73
78
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
|
74
79
|
*/
|
|
75
80
|
var Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
76
|
-
var
|
|
81
|
+
var _ref3, _slots$root, _ref4, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
|
|
77
82
|
var props = useThemeProps({
|
|
78
83
|
name: 'MuiModal',
|
|
79
84
|
props: inProps
|
|
@@ -155,8 +160,8 @@ var Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
155
160
|
childProps.onEnter = onEnter;
|
|
156
161
|
childProps.onExited = onExited;
|
|
157
162
|
}
|
|
158
|
-
var RootSlot = (
|
|
159
|
-
var BackdropSlot = (
|
|
163
|
+
var RootSlot = (_ref3 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref3 : ModalRoot;
|
|
164
|
+
var BackdropSlot = (_ref4 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref4 : BackdropComponent;
|
|
160
165
|
var rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
161
166
|
var backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;
|
|
162
167
|
var rootProps = useSlotProps({
|
|
@@ -11,8 +11,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import nativeSelectClasses, { getNativeSelectUtilityClasses } from './nativeSelectClasses';
|
|
13
13
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
16
|
var classes = ownerState.classes,
|
|
18
17
|
variant = ownerState.variant,
|
|
@@ -14,8 +14,7 @@ import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
|
14
14
|
import outlinedInputClasses, { getOutlinedInputUtilityClass } from './outlinedInputClasses';
|
|
15
15
|
import InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';
|
|
16
16
|
import useThemeProps from '../styles/useThemeProps';
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
19
18
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
20
19
|
var classes = ownerState.classes;
|
|
21
20
|
var slots = {
|
|
@@ -18,8 +18,7 @@ import LastPageIcon from '../internal/svg-icons/LastPage';
|
|
|
18
18
|
import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';
|
|
19
19
|
import NavigateNextIcon from '../internal/svg-icons/NavigateNext';
|
|
20
20
|
import styled from '../styles/styled';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
var overridesResolver = function overridesResolver(props, styles) {
|
|
24
23
|
var ownerState = props.ownerState;
|
|
25
24
|
return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.variant === 'text' && styles["text".concat(capitalize(ownerState.color))], ownerState.variant === 'outlined' && styles["outlined".concat(capitalize(ownerState.color))], ownerState.shape === 'rounded' && styles.rounded, ownerState.type === 'page' && styles.page, (ownerState.type === 'start-ellipsis' || ownerState.type === 'end-ellipsis') && styles.ellipsis, (ownerState.type === 'previous' || ownerState.type === 'next') && styles.previousNext, (ownerState.type === 'first' || ownerState.type === 'last') && styles.firstLast];
|
|
@@ -12,8 +12,7 @@ import refType from '@mui/utils/refType';
|
|
|
12
12
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
13
13
|
import integerPropType from '@mui/utils/integerPropType';
|
|
14
14
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
15
|
-
import styled from '../
|
|
16
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
15
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
17
16
|
import debounce from '../utils/debounce';
|
|
18
17
|
import ownerDocument from '../utils/ownerDocument';
|
|
19
18
|
import ownerWindow from '../utils/ownerWindow';
|
|
@@ -23,6 +22,7 @@ import Modal from '../Modal';
|
|
|
23
22
|
import PaperBase from '../Paper';
|
|
24
23
|
import { getPopoverUtilityClass } from './popoverClasses';
|
|
25
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
var useThemeProps = createUseThemeProps('MuiPopover');
|
|
26
26
|
export function getOffsetTop(rect, vertical) {
|
|
27
27
|
var offset = 0;
|
|
28
28
|
if (typeof vertical === 'number') {
|
|
@@ -6,8 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';
|
|
7
7
|
import RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';
|
|
8
8
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var RadioButtonIconRoot = styled('span', {
|
|
12
11
|
shouldForwardProp: rootShouldForwardProp
|
|
13
12
|
})({
|