@mui/material 5.15.14 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +12 -17
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.js +156 -164
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +2 -4
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonBase/TouchRipple.js +34 -39
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +80 -1
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +2 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +187 -205
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +2 -3
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +1 -2
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +1 -2
- package/legacy/ButtonBase/ButtonBase.js +1 -2
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +1 -2
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +26 -7
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +2 -3
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +1 -2
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +1 -2
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +1 -2
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +21 -8
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/Ripple.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +1 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +22 -9
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +23 -5
- package/styles/experimental_extendTheme.js +28 -16
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1136 -736
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
package/Divider/Divider.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
|
-
import styled from '../
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getDividerUtilityClass } from './dividerClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiDivider');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
absolute,
|
|
@@ -39,82 +39,134 @@ const DividerRoot = styled('div', {
|
|
|
39
39
|
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
|
|
40
40
|
}
|
|
41
41
|
})(({
|
|
42
|
-
theme
|
|
43
|
-
|
|
44
|
-
}) => _extends({
|
|
42
|
+
theme
|
|
43
|
+
}) => ({
|
|
45
44
|
margin: 0,
|
|
46
45
|
// Reset browser default style.
|
|
47
46
|
flexShrink: 0,
|
|
48
47
|
borderWidth: 0,
|
|
49
48
|
borderStyle: 'solid',
|
|
50
49
|
borderColor: (theme.vars || theme).palette.divider,
|
|
51
|
-
borderBottomWidth: 'thin'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
50
|
+
borderBottomWidth: 'thin',
|
|
51
|
+
variants: [{
|
|
52
|
+
props: {
|
|
53
|
+
absolute: true
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
position: 'absolute',
|
|
57
|
+
bottom: 0,
|
|
58
|
+
left: 0,
|
|
59
|
+
width: '100%'
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
props: {
|
|
63
|
+
light: true
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
props: {
|
|
70
|
+
variant: 'inset'
|
|
71
|
+
},
|
|
72
|
+
style: {
|
|
73
|
+
marginLeft: 72
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
props: {
|
|
77
|
+
variant: 'middle',
|
|
78
|
+
orientation: 'horizontal'
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
81
|
+
marginLeft: theme.spacing(2),
|
|
82
|
+
marginRight: theme.spacing(2)
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
props: {
|
|
86
|
+
variant: 'middle',
|
|
87
|
+
orientation: 'vertical'
|
|
88
|
+
},
|
|
89
|
+
style: {
|
|
90
|
+
marginTop: theme.spacing(1),
|
|
91
|
+
marginBottom: theme.spacing(1)
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
props: {
|
|
95
|
+
orientation: 'vertical'
|
|
96
|
+
},
|
|
97
|
+
style: {
|
|
98
|
+
height: '100%',
|
|
99
|
+
borderBottomWidth: 0,
|
|
100
|
+
borderRightWidth: 'thin'
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
props: {
|
|
104
|
+
flexItem: true
|
|
105
|
+
},
|
|
106
|
+
style: {
|
|
107
|
+
alignSelf: 'stretch',
|
|
108
|
+
height: 'auto'
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
props: ({
|
|
112
|
+
ownerState
|
|
113
|
+
}) => !!ownerState.children,
|
|
114
|
+
style: {
|
|
115
|
+
display: 'flex',
|
|
116
|
+
whiteSpace: 'nowrap',
|
|
117
|
+
textAlign: 'center',
|
|
118
|
+
border: 0,
|
|
119
|
+
'&::before, &::after': {
|
|
120
|
+
content: '""',
|
|
121
|
+
alignSelf: 'center'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
props: ({
|
|
126
|
+
ownerState
|
|
127
|
+
}) => ownerState.children && ownerState.orientation !== 'vertical',
|
|
128
|
+
style: {
|
|
129
|
+
'&::before, &::after': {
|
|
130
|
+
width: '100%',
|
|
131
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
props: ({
|
|
136
|
+
ownerState
|
|
137
|
+
}) => ownerState.orientation === 'vertical' && ownerState.children,
|
|
138
|
+
style: {
|
|
139
|
+
flexDirection: 'column',
|
|
140
|
+
'&::before, &::after': {
|
|
141
|
+
height: '100%',
|
|
142
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
props: ({
|
|
147
|
+
ownerState
|
|
148
|
+
}) => ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical',
|
|
149
|
+
style: {
|
|
150
|
+
'&::before': {
|
|
151
|
+
width: '90%'
|
|
152
|
+
},
|
|
153
|
+
'&::after': {
|
|
154
|
+
width: '10%'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}, {
|
|
158
|
+
props: ({
|
|
159
|
+
ownerState
|
|
160
|
+
}) => ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical',
|
|
161
|
+
style: {
|
|
162
|
+
'&::before': {
|
|
163
|
+
width: '10%'
|
|
164
|
+
},
|
|
165
|
+
'&::after': {
|
|
166
|
+
width: '90%'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}]
|
|
118
170
|
}));
|
|
119
171
|
const DividerWrapper = styled('span', {
|
|
120
172
|
name: 'MuiDivider',
|
|
@@ -126,15 +178,20 @@ const DividerWrapper = styled('span', {
|
|
|
126
178
|
return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
|
|
127
179
|
}
|
|
128
180
|
})(({
|
|
129
|
-
theme
|
|
130
|
-
|
|
131
|
-
}) => _extends({
|
|
181
|
+
theme
|
|
182
|
+
}) => ({
|
|
132
183
|
display: 'inline-block',
|
|
133
184
|
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
|
134
|
-
paddingRight: `calc(${theme.spacing(1)} * 1.2)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
185
|
+
paddingRight: `calc(${theme.spacing(1)} * 1.2)`,
|
|
186
|
+
variants: [{
|
|
187
|
+
props: {
|
|
188
|
+
orientation: 'vertical'
|
|
189
|
+
},
|
|
190
|
+
style: {
|
|
191
|
+
paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
|
|
192
|
+
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
|
|
193
|
+
}
|
|
194
|
+
}]
|
|
138
195
|
}));
|
|
139
196
|
const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
140
197
|
const props = useThemeProps({
|
|
@@ -184,7 +241,9 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
184
241
|
* The following flag is used to ensure that this component isn't tabbable i.e.
|
|
185
242
|
* does not get highlight/focus inside of MUI List.
|
|
186
243
|
*/
|
|
187
|
-
Divider
|
|
244
|
+
if (Divider) {
|
|
245
|
+
Divider.muiSkipListHighlight = true;
|
|
246
|
+
}
|
|
188
247
|
process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */ = {
|
|
189
248
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
190
249
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
package/Fab/Fab.js
CHANGED
|
@@ -39,65 +39,62 @@ const FabRoot = styled(ButtonBase, {
|
|
|
39
39
|
})(({
|
|
40
40
|
theme,
|
|
41
41
|
ownerState
|
|
42
|
-
}) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
boxShadow: (theme.vars || theme).shadows[
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
backgroundColor: (theme.vars || theme).palette.grey
|
|
61
|
-
'
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'@media (hover: none)': {
|
|
65
|
-
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
66
|
-
},
|
|
67
|
-
textDecoration: 'none'
|
|
42
|
+
}) => _extends({}, theme.typography.button, {
|
|
43
|
+
minHeight: 36,
|
|
44
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
45
|
+
duration: theme.transitions.duration.short
|
|
46
|
+
}),
|
|
47
|
+
borderRadius: '50%',
|
|
48
|
+
padding: 0,
|
|
49
|
+
minWidth: 0,
|
|
50
|
+
width: 56,
|
|
51
|
+
height: 56,
|
|
52
|
+
zIndex: (theme.vars || theme).zIndex.fab,
|
|
53
|
+
boxShadow: (theme.vars || theme).shadows[6],
|
|
54
|
+
'&:active': {
|
|
55
|
+
boxShadow: (theme.vars || theme).shadows[12]
|
|
56
|
+
},
|
|
57
|
+
color: theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText?.(theme.palette.grey[300]),
|
|
58
|
+
backgroundColor: (theme.vars || theme).palette.grey[300],
|
|
59
|
+
'&:hover': {
|
|
60
|
+
backgroundColor: (theme.vars || theme).palette.grey.A100,
|
|
61
|
+
// Reset on touch devices, it doesn't add specificity
|
|
62
|
+
'@media (hover: none)': {
|
|
63
|
+
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
68
64
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
65
|
+
textDecoration: 'none'
|
|
66
|
+
},
|
|
67
|
+
[`&.${fabClasses.focusVisible}`]: {
|
|
68
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
69
|
+
}
|
|
70
|
+
}, ownerState.size === 'small' && {
|
|
71
|
+
width: 40,
|
|
72
|
+
height: 40
|
|
73
|
+
}, ownerState.size === 'medium' && {
|
|
74
|
+
width: 48,
|
|
75
|
+
height: 48
|
|
76
|
+
}, ownerState.variant === 'extended' && {
|
|
77
|
+
borderRadius: 48 / 2,
|
|
78
|
+
padding: '0 16px',
|
|
79
|
+
width: 'auto',
|
|
80
|
+
minHeight: 'auto',
|
|
81
|
+
minWidth: 48,
|
|
82
|
+
height: 48
|
|
83
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'small' && {
|
|
84
|
+
width: 'auto',
|
|
85
|
+
padding: '0 8px',
|
|
86
|
+
borderRadius: 34 / 2,
|
|
87
|
+
minWidth: 34,
|
|
88
|
+
height: 34
|
|
89
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
|
|
90
|
+
width: 'auto',
|
|
91
|
+
padding: '0 16px',
|
|
92
|
+
borderRadius: 40 / 2,
|
|
93
|
+
minWidth: 40,
|
|
94
|
+
height: 40
|
|
95
|
+
}, ownerState.color === 'inherit' && {
|
|
96
|
+
color: 'inherit'
|
|
97
|
+
}), ({
|
|
101
98
|
theme,
|
|
102
99
|
ownerState
|
|
103
100
|
}) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
|
|
@@ -40,7 +40,6 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
40
40
|
theme,
|
|
41
41
|
ownerState
|
|
42
42
|
}) => {
|
|
43
|
-
var _palette;
|
|
44
43
|
const light = theme.palette.mode === 'light';
|
|
45
44
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
46
45
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
@@ -70,7 +69,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
70
69
|
}
|
|
71
70
|
}, !ownerState.disableUnderline && {
|
|
72
71
|
'&::after': {
|
|
73
|
-
borderBottom: `2px solid ${(
|
|
72
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color || 'primary']?.main}`,
|
|
74
73
|
left: 0,
|
|
75
74
|
bottom: 0,
|
|
76
75
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -182,7 +181,6 @@ const FilledInputInput = styled(InputBaseInput, {
|
|
|
182
181
|
paddingRight: 0
|
|
183
182
|
}));
|
|
184
183
|
const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {
|
|
185
|
-
var _ref, _slots$root, _ref2, _slots$input;
|
|
186
184
|
const props = useThemeProps({
|
|
187
185
|
props: inProps,
|
|
188
186
|
name: 'MuiFilledInput'
|
|
@@ -214,9 +212,9 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
214
212
|
ownerState
|
|
215
213
|
}
|
|
216
214
|
};
|
|
217
|
-
const componentsProps =
|
|
218
|
-
const RootSlot =
|
|
219
|
-
const InputSlot =
|
|
215
|
+
const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;
|
|
216
|
+
const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;
|
|
217
|
+
const InputSlot = slots.input ?? components.Input ?? FilledInputInput;
|
|
220
218
|
return /*#__PURE__*/_jsx(InputBase, _extends({
|
|
221
219
|
slots: {
|
|
222
220
|
root: RootSlot,
|
|
@@ -7,14 +7,14 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
11
|
-
import styled from '../styles/styled';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import { isFilled, isAdornedStart } from '../InputBase/utils';
|
|
13
12
|
import capitalize from '../utils/capitalize';
|
|
14
13
|
import isMuiElement from '../utils/isMuiElement';
|
|
15
14
|
import FormControlContext from './FormControlContext';
|
|
16
15
|
import { getFormControlUtilityClasses } from './formControlClasses';
|
|
17
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const useThemeProps = createUseThemeProps('MuiFormControl');
|
|
18
18
|
const useUtilityClasses = ownerState => {
|
|
19
19
|
const {
|
|
20
20
|
classes,
|
|
@@ -34,9 +34,7 @@ const FormControlRoot = styled('div', {
|
|
|
34
34
|
}, styles) => {
|
|
35
35
|
return _extends({}, styles.root, styles[`margin${capitalize(ownerState.margin)}`], ownerState.fullWidth && styles.fullWidth);
|
|
36
36
|
}
|
|
37
|
-
})(
|
|
38
|
-
ownerState
|
|
39
|
-
}) => _extends({
|
|
37
|
+
})({
|
|
40
38
|
display: 'inline-flex',
|
|
41
39
|
flexDirection: 'column',
|
|
42
40
|
position: 'relative',
|
|
@@ -45,16 +43,33 @@ const FormControlRoot = styled('div', {
|
|
|
45
43
|
padding: 0,
|
|
46
44
|
margin: 0,
|
|
47
45
|
border: 0,
|
|
48
|
-
verticalAlign: 'top'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
46
|
+
verticalAlign: 'top',
|
|
47
|
+
// Fix alignment issue on Safari.
|
|
48
|
+
variants: [{
|
|
49
|
+
props: {
|
|
50
|
+
margin: 'normal'
|
|
51
|
+
},
|
|
52
|
+
style: {
|
|
53
|
+
marginTop: 16,
|
|
54
|
+
marginBottom: 8
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
props: {
|
|
58
|
+
margin: 'dense'
|
|
59
|
+
},
|
|
60
|
+
style: {
|
|
61
|
+
marginTop: 8,
|
|
62
|
+
marginBottom: 4
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
props: {
|
|
66
|
+
fullWidth: true
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
width: '100%'
|
|
70
|
+
}
|
|
71
|
+
}]
|
|
72
|
+
});
|
|
58
73
|
|
|
59
74
|
/**
|
|
60
75
|
* Provides context such as filled/focused/error/required for form inputs.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
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
|
+
const useThemeProps = createUseThemeProps('MuiFormControlLabel');
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes,
|
|
@@ -45,9 +44,8 @@ export const FormControlLabelRoot = styled('label', {
|
|
|
45
44
|
}, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];
|
|
46
45
|
}
|
|
47
46
|
})(({
|
|
48
|
-
theme
|
|
49
|
-
|
|
50
|
-
}) => _extends({
|
|
47
|
+
theme
|
|
48
|
+
}) => ({
|
|
51
49
|
display: 'inline-flex',
|
|
52
50
|
alignItems: 'center',
|
|
53
51
|
cursor: 'pointer',
|
|
@@ -59,24 +57,42 @@ export const FormControlLabelRoot = styled('label', {
|
|
|
59
57
|
// used for row presentation of radio/checkbox
|
|
60
58
|
[`&.${formControlLabelClasses.disabled}`]: {
|
|
61
59
|
cursor: 'default'
|
|
62
|
-
}
|
|
63
|
-
}, ownerState.labelPlacement === 'start' && {
|
|
64
|
-
flexDirection: 'row-reverse',
|
|
65
|
-
marginLeft: 16,
|
|
66
|
-
// used for row presentation of radio/checkbox
|
|
67
|
-
marginRight: -11
|
|
68
|
-
}, ownerState.labelPlacement === 'top' && {
|
|
69
|
-
flexDirection: 'column-reverse',
|
|
70
|
-
marginLeft: 16
|
|
71
|
-
}, ownerState.labelPlacement === 'bottom' && {
|
|
72
|
-
flexDirection: 'column',
|
|
73
|
-
marginLeft: 16
|
|
74
|
-
}, {
|
|
60
|
+
},
|
|
75
61
|
[`& .${formControlLabelClasses.label}`]: {
|
|
76
62
|
[`&.${formControlLabelClasses.disabled}`]: {
|
|
77
63
|
color: (theme.vars || theme).palette.text.disabled
|
|
78
64
|
}
|
|
79
|
-
}
|
|
65
|
+
},
|
|
66
|
+
variants: [{
|
|
67
|
+
props: {
|
|
68
|
+
labelPlacement: 'start'
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
flexDirection: 'row-reverse',
|
|
72
|
+
marginRight: -11
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
props: {
|
|
76
|
+
labelPlacement: 'top'
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
flexDirection: 'column-reverse'
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
props: {
|
|
83
|
+
labelPlacement: 'bottom'
|
|
84
|
+
},
|
|
85
|
+
style: {
|
|
86
|
+
flexDirection: 'column'
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
props: ({
|
|
90
|
+
labelPlacement
|
|
91
|
+
}) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',
|
|
92
|
+
style: {
|
|
93
|
+
marginLeft: 16 // used for row presentation of radio/checkbox
|
|
94
|
+
}
|
|
95
|
+
}]
|
|
80
96
|
}));
|
|
81
97
|
const AsteriskComponent = styled('span', {
|
|
82
98
|
name: 'MuiFormControlLabel',
|
|
@@ -95,7 +111,6 @@ const AsteriskComponent = styled('span', {
|
|
|
95
111
|
* Use this component if you want to display an extra label.
|
|
96
112
|
*/
|
|
97
113
|
const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {
|
|
98
|
-
var _ref, _slotProps$typography;
|
|
99
114
|
const props = useThemeProps({
|
|
100
115
|
props: inProps,
|
|
101
116
|
name: 'MuiFormControlLabel'
|
|
@@ -113,8 +128,8 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
113
128
|
} = props,
|
|
114
129
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
115
130
|
const muiFormControl = useFormControl();
|
|
116
|
-
const disabled =
|
|
117
|
-
const required = requiredProp
|
|
131
|
+
const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;
|
|
132
|
+
const required = requiredProp ?? control.props.required;
|
|
118
133
|
const controlProps = {
|
|
119
134
|
disabled,
|
|
120
135
|
required
|
|
@@ -136,13 +151,13 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
136
151
|
error: fcs.error
|
|
137
152
|
});
|
|
138
153
|
const classes = useUtilityClasses(ownerState);
|
|
139
|
-
const typographySlotProps =
|
|
154
|
+
const typographySlotProps = slotProps.typography ?? componentsProps.typography;
|
|
140
155
|
let label = labelProp;
|
|
141
156
|
if (label != null && label.type !== Typography && !disableTypography) {
|
|
142
157
|
label = /*#__PURE__*/_jsx(Typography, _extends({
|
|
143
158
|
component: "span"
|
|
144
159
|
}, typographySlotProps, {
|
|
145
|
-
className: clsx(classes.label, typographySlotProps
|
|
160
|
+
className: clsx(classes.label, typographySlotProps?.className),
|
|
146
161
|
children: label
|
|
147
162
|
}));
|
|
148
163
|
}
|