@mui/material 5.15.15 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -2
- package/AccordionSummary/AccordionSummary.js +1 -2
- package/Alert/Alert.js +1 -2
- package/AppBar/AppBar.js +119 -69
- package/Autocomplete/Autocomplete.js +11 -16
- package/AvatarGroup/AvatarGroup.js +27 -25
- package/Backdrop/Backdrop.d.ts +40 -22
- package/Backdrop/Backdrop.js +50 -33
- package/Badge/Badge.d.ts +2 -4
- package/Badge/Badge.js +158 -168
- package/BottomNavigation/BottomNavigation.js +2 -2
- package/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/Button/Button.js +221 -134
- package/ButtonBase/ButtonBase.js +3 -4
- package/ButtonBase/Ripple.js +1 -1
- package/ButtonBase/TouchRipple.js +37 -43
- package/ButtonGroup/ButtonGroup.js +168 -71
- package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +169 -3
- package/Card/Card.js +4 -6
- package/CardActionArea/CardActionArea.js +3 -4
- package/CardActions/CardActions.js +16 -12
- package/CardContent/CardContent.js +7 -9
- package/CardHeader/CardHeader.js +3 -4
- package/CardMedia/CardMedia.js +22 -13
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +191 -122
- package/CircularProgress/CircularProgress.js +10 -15
- package/CssBaseline/CssBaseline.js +3 -6
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +140 -81
- package/Fab/Fab.js +55 -58
- package/FilledInput/FilledInput.js +4 -6
- package/FormControl/FormControl.js +30 -15
- package/FormControlLabel/FormControlLabel.js +42 -27
- package/FormGroup/FormGroup.js +14 -10
- package/Grid/Grid.js +5 -4
- package/IconButton/IconButton.js +2 -3
- package/ImageListItemBar/ImageListItemBar.js +1 -2
- package/Input/Input.js +3 -4
- package/InputAdornment/InputAdornment.js +1 -2
- package/InputBase/InputBase.js +2 -4
- package/LinearProgress/LinearProgress.js +16 -24
- package/List/List.js +1 -2
- package/ListItem/ListItem.js +1 -2
- package/ListItemText/ListItemText.js +2 -3
- package/Menu/Menu.js +2 -3
- package/MobileStepper/MobileStepper.js +80 -47
- package/Modal/Modal.js +22 -19
- package/NativeSelect/NativeSelectInput.js +1 -2
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/PaginationItem/PaginationItem.js +1 -2
- package/Paper/Paper.js +15 -18
- package/Popover/Popover.js +7 -8
- package/Popper/Popper.js +3 -4
- package/README.md +3 -1
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +1 -2
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/Select/SelectInput.js +3 -5
- package/Skeleton/Skeleton.js +11 -16
- package/Slider/Slider.js +185 -203
- package/Slider/SliderValueLabel.js +1 -2
- package/SnackbarContent/SnackbarContent.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/Step/Step.js +23 -14
- package/StepButton/StepButton.js +17 -14
- package/StepConnector/StepConnector.js +45 -26
- package/StepContent/StepContent.js +13 -8
- package/StepIcon/StepIcon.js +3 -4
- package/StepLabel/StepLabel.d.ts +25 -13
- package/StepLabel/StepLabel.js +47 -27
- package/Stepper/Stepper.js +29 -15
- package/SvgIcon/SvgIcon.js +26 -30
- package/SwipeableDrawer/SwipeableDrawer.js +2 -4
- package/Switch/Switch.js +1 -2
- package/TabScrollButton/TabScrollButton.js +2 -3
- package/Table/Table.d.ts +0 -2
- package/Table/Table.js +0 -2
- package/TablePagination/TablePagination.js +2 -4
- package/TablePagination/TablePaginationActions.js +11 -13
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/Tabs/Tabs.js +6 -10
- package/TextField/TextField.js +1 -2
- package/Tooltip/Tooltip.js +14 -17
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -2
- package/legacy/Accordion/Accordion.js +1 -2
- package/legacy/AccordionSummary/AccordionSummary.js +1 -2
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AppBar/AppBar.js +124 -64
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +19 -11
- package/legacy/Backdrop/Backdrop.js +66 -44
- package/legacy/Badge/Badge.js +3 -6
- package/legacy/BottomNavigation/BottomNavigation.js +2 -2
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
- package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
- package/legacy/Button/Button.js +219 -125
- package/legacy/ButtonBase/ButtonBase.js +3 -4
- package/legacy/ButtonBase/Ripple.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +3 -4
- package/legacy/ButtonGroup/ButtonGroup.js +164 -69
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/Card/Card.js +4 -6
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +16 -13
- package/legacy/CardContent/CardContent.js +7 -9
- package/legacy/CardHeader/CardHeader.js +3 -4
- package/legacy/CardMedia/CardMedia.js +24 -16
- package/legacy/Chip/Chip.js +199 -107
- package/legacy/CssBaseline/CssBaseline.js +1 -2
- package/legacy/Divider/Divider.js +148 -88
- package/legacy/FormControl/FormControl.js +37 -23
- package/legacy/FormControlLabel/FormControlLabel.js +42 -25
- package/legacy/FormGroup/FormGroup.js +15 -12
- package/legacy/Grid/Grid.js +3 -0
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
- package/legacy/InputAdornment/InputAdornment.js +1 -2
- package/legacy/InputBase/InputBase.js +1 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -2
- package/legacy/List/List.js +1 -2
- package/legacy/ListItem/ListItem.js +1 -2
- package/legacy/ListItemText/ListItemText.js +1 -2
- package/legacy/MobileStepper/MobileStepper.js +80 -48
- package/legacy/Modal/Modal.js +20 -15
- package/legacy/NativeSelect/NativeSelectInput.js +1 -2
- package/legacy/OutlinedInput/OutlinedInput.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/Popover/Popover.js +2 -2
- package/legacy/Radio/RadioButtonIcon.js +1 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/SelectInput.js +1 -2
- package/legacy/Slider/Slider.js +25 -26
- package/legacy/Slider/SliderValueLabel.js +1 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/Step/Step.js +22 -14
- package/legacy/StepButton/StepButton.js +17 -15
- package/legacy/StepConnector/StepConnector.js +46 -28
- package/legacy/StepContent/StepContent.js +15 -10
- package/legacy/StepIcon/StepIcon.js +3 -4
- package/legacy/StepLabel/StepLabel.js +65 -44
- package/legacy/Stepper/Stepper.js +28 -15
- package/legacy/SvgIcon/SvgIcon.js +1 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/legacy/Switch/Switch.js +1 -2
- package/legacy/Table/Table.js +0 -2
- package/legacy/TablePagination/TablePagination.js +1 -2
- package/legacy/TablePagination/TablePaginationActions.js +1 -2
- package/legacy/TableSortLabel/TableSortLabel.js +1 -2
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/TextField/TextField.js +1 -2
- package/legacy/Tooltip/Tooltip.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -2
- package/legacy/styles/CssVarsProvider.js +1 -3
- package/legacy/styles/createGetSelector.js +21 -0
- package/legacy/styles/experimental_extendTheme.js +50 -9
- package/legacy/zero-styled/index.js +1 -0
- package/modern/Accordion/Accordion.js +1 -2
- package/modern/AccordionSummary/AccordionSummary.js +1 -2
- package/modern/Alert/Alert.js +1 -2
- package/modern/AppBar/AppBar.js +118 -68
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +25 -22
- package/modern/Backdrop/Backdrop.js +50 -32
- package/modern/Badge/Badge.js +3 -6
- package/modern/BottomNavigation/BottomNavigation.js +2 -2
- package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
- package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
- package/modern/Button/Button.js +221 -133
- package/modern/ButtonBase/ButtonBase.js +3 -4
- package/modern/ButtonBase/Ripple.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +3 -4
- package/modern/ButtonGroup/ButtonGroup.js +168 -71
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/Card/Card.js +4 -6
- package/modern/CardActionArea/CardActionArea.js +3 -4
- package/modern/CardActions/CardActions.js +16 -12
- package/modern/CardContent/CardContent.js +7 -9
- package/modern/CardHeader/CardHeader.js +3 -4
- package/modern/CardMedia/CardMedia.js +22 -13
- package/modern/Chip/Chip.js +191 -122
- package/modern/CssBaseline/CssBaseline.js +1 -2
- package/modern/Divider/Divider.js +140 -81
- package/modern/FormControl/FormControl.js +30 -15
- package/modern/FormControlLabel/FormControlLabel.js +38 -22
- package/modern/FormGroup/FormGroup.js +14 -10
- package/modern/Grid/Grid.js +3 -0
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +1 -2
- package/modern/InputBase/InputBase.js +1 -2
- package/modern/LinearProgress/LinearProgress.js +1 -2
- package/modern/List/List.js +1 -2
- package/modern/ListItem/ListItem.js +1 -2
- package/modern/ListItemText/ListItemText.js +1 -2
- package/modern/MobileStepper/MobileStepper.js +80 -47
- package/modern/Modal/Modal.js +15 -11
- package/modern/NativeSelect/NativeSelectInput.js +1 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/Popover/Popover.js +2 -2
- package/modern/Radio/RadioButtonIcon.js +1 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/SelectInput.js +1 -2
- package/modern/Slider/Slider.js +23 -24
- package/modern/Slider/SliderValueLabel.js +1 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/Step/Step.js +23 -14
- package/modern/StepButton/StepButton.js +17 -14
- package/modern/StepConnector/StepConnector.js +45 -26
- package/modern/StepContent/StepContent.js +13 -8
- package/modern/StepIcon/StepIcon.js +3 -4
- package/modern/StepLabel/StepLabel.js +47 -26
- package/modern/Stepper/Stepper.js +29 -15
- package/modern/SvgIcon/SvgIcon.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/modern/Switch/Switch.js +1 -2
- package/modern/Table/Table.js +0 -2
- package/modern/TablePagination/TablePagination.js +1 -2
- package/modern/TablePagination/TablePaginationActions.js +1 -2
- package/modern/TableSortLabel/TableSortLabel.js +1 -2
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/TextField/TextField.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -2
- package/modern/styles/CssVarsProvider.js +1 -3
- package/modern/styles/createGetSelector.js +21 -0
- package/modern/styles/experimental_extendTheme.js +45 -10
- package/modern/zero-styled/index.js +1 -0
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/AccordionContext.js +1 -1
- package/node/Accordion/index.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/index.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/index.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/index.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/index.js +1 -1
- package/node/AppBar/AppBar.js +126 -67
- package/node/AppBar/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Autocomplete/index.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/index.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +27 -23
- package/node/AvatarGroup/index.js +1 -1
- package/node/Backdrop/Backdrop.js +53 -36
- package/node/Backdrop/index.js +1 -1
- package/node/Badge/Badge.js +3 -5
- package/node/Badge/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +5 -5
- package/node/BottomNavigation/index.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
- package/node/BottomNavigationAction/index.js +1 -1
- package/node/Box/index.js +1 -1
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +7 -7
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Button/Button.js +225 -136
- package/node/Button/index.js +1 -1
- package/node/ButtonBase/ButtonBase.js +5 -5
- package/node/ButtonBase/Ripple.js +2 -2
- package/node/ButtonBase/TouchRipple.js +10 -11
- package/node/ButtonBase/index.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +171 -74
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
- package/node/ButtonGroup/ButtonGroupContext.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +1 -1
- package/node/Card/Card.js +7 -9
- package/node/Card/index.js +1 -1
- package/node/CardActionArea/CardActionArea.js +6 -6
- package/node/CardActionArea/index.js +1 -1
- package/node/CardActions/CardActions.js +19 -15
- package/node/CardActions/index.js +1 -1
- package/node/CardContent/CardContent.js +10 -12
- package/node/CardContent/index.js +1 -1
- package/node/CardHeader/CardHeader.js +8 -8
- package/node/CardHeader/index.js +1 -1
- package/node/CardMedia/CardMedia.js +25 -16
- package/node/CardMedia/index.js +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/index.js +1 -1
- package/node/Chip/Chip.js +194 -124
- package/node/Chip/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/index.js +1 -1
- package/node/Container/index.js +1 -1
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/DialogContext.js +1 -1
- package/node/Dialog/index.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/index.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- package/node/DialogContent/index.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/index.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/index.js +1 -1
- package/node/Divider/Divider.js +144 -85
- package/node/Divider/index.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Drawer/index.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/index.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/index.js +1 -1
- package/node/FormControl/FormControl.js +33 -18
- package/node/FormControl/FormControlContext.js +1 -1
- package/node/FormControl/index.js +1 -1
- package/node/FormControl/useFormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +41 -24
- package/node/FormControlLabel/index.js +1 -1
- package/node/FormGroup/FormGroup.js +17 -13
- package/node/FormGroup/index.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/index.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/index.js +1 -1
- package/node/GlobalStyles/GlobalStyles.js +1 -1
- package/node/Grid/Grid.js +4 -1
- package/node/Grid/GridContext.js +1 -1
- package/node/Grid/index.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/Hidden.js +1 -1
- package/node/Hidden/HiddenCss.js +1 -1
- package/node/Hidden/HiddenJs.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/index.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/index.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/ImageListContext.js +1 -1
- package/node/ImageList/index.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/index.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/index.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/index.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/index.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputBase/index.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/index.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/index.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/index.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/ListContext.js +1 -1
- package/node/List/index.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItem/index.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/index.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemButton/index.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/index.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/index.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/index.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/index.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/MenuItem/index.js +1 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +86 -52
- package/node/MobileStepper/index.js +1 -1
- package/node/Modal/Modal.js +18 -13
- package/node/Modal/index.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/index.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/index.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/index.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/index.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/index.js +1 -1
- package/node/Popover/Popover.js +6 -6
- package/node/Popover/index.js +1 -1
- package/node/Popper/Popper.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/RadioButtonIcon.js +1 -1
- package/node/Radio/index.js +1 -1
- package/node/RadioGroup/RadioGroup.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/RadioGroup/index.js +1 -1
- package/node/RadioGroup/useRadioGroup.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Rating/index.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/ScopedCssBaseline/index.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Select/index.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/index.js +1 -1
- package/node/Slide/Slide.js +1 -1
- package/node/Slider/Slider.js +26 -26
- package/node/Slider/SliderValueLabel.js +1 -1
- package/node/Slider/index.js +1 -1
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/Snackbar/index.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/index.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/index.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/index.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/index.js +1 -1
- package/node/Step/Step.js +25 -15
- package/node/Step/StepContext.js +1 -1
- package/node/Step/index.js +1 -1
- package/node/StepButton/StepButton.js +20 -17
- package/node/StepButton/index.js +1 -1
- package/node/StepConnector/StepConnector.js +49 -30
- package/node/StepConnector/index.js +1 -1
- package/node/StepContent/StepContent.js +17 -12
- package/node/StepContent/index.js +1 -1
- package/node/StepIcon/StepIcon.js +6 -6
- package/node/StepIcon/index.js +1 -1
- package/node/StepLabel/StepLabel.js +52 -31
- package/node/StepLabel/index.js +1 -1
- package/node/Stepper/Stepper.js +32 -18
- package/node/Stepper/StepperContext.js +1 -1
- package/node/Stepper/index.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/index.js +1 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/index.js +1 -1
- package/node/Tab/Tab.js +1 -1
- package/node/Tab/index.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/index.js +1 -1
- package/node/Table/Table.js +1 -3
- package/node/Table/TableContext.js +1 -1
- package/node/Table/Tablelvl2Context.js +1 -1
- package/node/Table/index.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/index.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/index.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/index.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/index.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/index.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/TablePaginationActions.js +1 -1
- package/node/TablePagination/index.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/index.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/index.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/index.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/index.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
- package/node/ToggleButtonGroup/index.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/index.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/Tooltip/index.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/index.js +1 -1
- package/node/Unstable_Grid2/index.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/index.js +2 -2
- package/node/internal/SwitchBase.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/CssVarsProvider.js +1 -3
- package/node/styles/ThemeProvider.js +1 -1
- package/node/styles/createGetSelector.js +29 -0
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +46 -11
- package/node/styles/index.js +1 -1
- package/node/styles/useTheme.js +1 -1
- package/node/useAutocomplete/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/node/utils/createSvgIcon.js +1 -1
- package/node/zero-styled/index.js +7 -0
- package/package.json +6 -6
- package/styles/CssVarsProvider.js +1 -3
- package/styles/createGetSelector.d.ts +10 -0
- package/styles/createGetSelector.js +21 -0
- package/styles/createTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +25 -5
- package/styles/experimental_extendTheme.js +52 -18
- package/styles/shouldSkipGeneratingVar.js +1 -2
- package/transitions/utils.js +2 -3
- package/umd/material-ui.development.js +1718 -1047
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +4 -8
- package/utils/useSlot.js +1 -1
- package/zero-styled/index.d.ts +1 -0
- package/zero-styled/index.js +1 -0
package/node/Button/Button.js
CHANGED
|
@@ -14,8 +14,8 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
16
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
17
|
-
var _styled =
|
|
18
|
-
var
|
|
17
|
+
var _styled = require("../styles/styled");
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
20
20
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
21
21
|
var _buttonClasses = _interopRequireWildcard(require("./buttonClasses"));
|
|
@@ -24,7 +24,8 @@ var _ButtonGroupButtonContext = _interopRequireDefault(require("../ButtonGroup/B
|
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiButton');
|
|
28
29
|
const useUtilityClasses = ownerState => {
|
|
29
30
|
const {
|
|
30
31
|
color,
|
|
@@ -43,20 +44,35 @@ const useUtilityClasses = ownerState => {
|
|
|
43
44
|
const composedClasses = (0, _composeClasses.default)(slots, _buttonClasses.getButtonUtilityClass, classes);
|
|
44
45
|
return (0, _extends2.default)({}, classes, composedClasses);
|
|
45
46
|
};
|
|
46
|
-
const commonIconStyles =
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const commonIconStyles = [{
|
|
48
|
+
props: {
|
|
49
|
+
size: 'small'
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
'& > *:nth-of-type(1)': {
|
|
53
|
+
fontSize: 18
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
}, {
|
|
57
|
+
props: {
|
|
58
|
+
size: 'medium'
|
|
59
|
+
},
|
|
60
|
+
style: {
|
|
61
|
+
'& > *:nth-of-type(1)': {
|
|
62
|
+
fontSize: 20
|
|
63
|
+
}
|
|
53
64
|
}
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
}, {
|
|
66
|
+
props: {
|
|
67
|
+
size: 'large'
|
|
68
|
+
},
|
|
69
|
+
style: {
|
|
70
|
+
'& > *:nth-of-type(1)': {
|
|
71
|
+
fontSize: 22
|
|
72
|
+
}
|
|
57
73
|
}
|
|
58
|
-
}
|
|
59
|
-
const ButtonRoot = (0,
|
|
74
|
+
}];
|
|
75
|
+
const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
60
76
|
shouldForwardProp: prop => (0, _styled.rootShouldForwardProp)(prop) || prop === 'classes',
|
|
61
77
|
name: 'MuiButton',
|
|
62
78
|
slot: 'Root',
|
|
@@ -67,8 +83,7 @@ const ButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
67
83
|
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${(0, _capitalize.default)(ownerState.color)}`], styles[`size${(0, _capitalize.default)(ownerState.size)}`], styles[`${ownerState.variant}Size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
|
68
84
|
}
|
|
69
85
|
})(({
|
|
70
|
-
theme
|
|
71
|
-
ownerState
|
|
86
|
+
theme
|
|
72
87
|
}) => {
|
|
73
88
|
var _theme$palette$getCon, _theme$palette;
|
|
74
89
|
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
@@ -76,121 +91,187 @@ const ButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
76
91
|
return (0, _extends2.default)({}, theme.typography.button, {
|
|
77
92
|
minWidth: 64,
|
|
78
93
|
padding: '6px 16px',
|
|
94
|
+
border: 0,
|
|
79
95
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
80
96
|
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
81
97
|
duration: theme.transitions.duration.short
|
|
82
98
|
}),
|
|
83
|
-
'&:hover':
|
|
84
|
-
textDecoration: 'none'
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
'&:hover': {
|
|
100
|
+
textDecoration: 'none'
|
|
101
|
+
},
|
|
102
|
+
[`&.${_buttonClasses.default.disabled}`]: {
|
|
103
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
104
|
+
},
|
|
105
|
+
variants: [{
|
|
106
|
+
props: {
|
|
107
|
+
variant: 'contained'
|
|
108
|
+
},
|
|
109
|
+
style: {
|
|
110
|
+
color: `var(--variant-containedColor)`,
|
|
111
|
+
backgroundColor: `var(--variant-containedBg)`,
|
|
112
|
+
boxShadow: (theme.vars || theme).shadows[2],
|
|
113
|
+
'&:hover': {
|
|
114
|
+
boxShadow: (theme.vars || theme).shadows[4],
|
|
115
|
+
// Reset on touch devices, it doesn't add specificity
|
|
116
|
+
'@media (hover: none)': {
|
|
117
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
'&:active': {
|
|
121
|
+
boxShadow: (theme.vars || theme).shadows[8]
|
|
122
|
+
},
|
|
123
|
+
[`&.${_buttonClasses.default.focusVisible}`]: {
|
|
124
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
125
|
+
},
|
|
126
|
+
[`&.${_buttonClasses.default.disabled}`]: {
|
|
127
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
128
|
+
boxShadow: (theme.vars || theme).shadows[0],
|
|
129
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
130
|
+
}
|
|
89
131
|
}
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
132
|
+
}, {
|
|
133
|
+
props: {
|
|
134
|
+
variant: 'outlined'
|
|
135
|
+
},
|
|
136
|
+
style: {
|
|
137
|
+
padding: '5px 15px',
|
|
138
|
+
border: '1px solid currentColor',
|
|
139
|
+
borderColor: `var(--variant-outlinedBorder, currentColor)`,
|
|
140
|
+
backgroundColor: `var(--variant-outlinedBg)`,
|
|
141
|
+
color: `var(--variant-outlinedColor)`,
|
|
142
|
+
[`&.${_buttonClasses.default.disabled}`]: {
|
|
143
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
144
|
+
}
|
|
95
145
|
}
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
146
|
+
}, {
|
|
147
|
+
props: {
|
|
148
|
+
variant: 'text'
|
|
149
|
+
},
|
|
150
|
+
style: {
|
|
151
|
+
padding: '6px 8px',
|
|
152
|
+
color: `var(--variant-textColor)`,
|
|
153
|
+
backgroundColor: `var(--variant-textBg)`
|
|
102
154
|
}
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
155
|
+
}, ...Object.entries(theme.palette).filter(([, palette]) => palette.main && palette.dark && palette.contrastText).map(([color]) => ({
|
|
156
|
+
props: {
|
|
157
|
+
color
|
|
158
|
+
},
|
|
159
|
+
style: {
|
|
160
|
+
'--variant-textColor': (theme.vars || theme).palette[color].main,
|
|
161
|
+
'--variant-outlinedColor': (theme.vars || theme).palette[color].main,
|
|
162
|
+
'--variant-outlinedBorder': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : (0, _colorManipulator.alpha)(theme.palette[color].main, 0.5),
|
|
163
|
+
'--variant-containedColor': (theme.vars || theme).palette[color].contrastText,
|
|
164
|
+
'--variant-containedBg': (theme.vars || theme).palette[color].main,
|
|
165
|
+
'@media (hover: hover)': {
|
|
166
|
+
'&:hover': {
|
|
167
|
+
'--variant-containedBg': (theme.vars || theme).palette[color].dark,
|
|
168
|
+
'--variant-textBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _colorManipulator.alpha)(theme.palette[color].main, theme.palette.action.hoverOpacity),
|
|
169
|
+
'--variant-outlinedBorder': (theme.vars || theme).palette[color].main,
|
|
170
|
+
'--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _colorManipulator.alpha)(theme.palette[color].main, theme.palette.action.hoverOpacity)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
110
173
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
174
|
+
})), {
|
|
175
|
+
props: {
|
|
176
|
+
color: 'inherit'
|
|
177
|
+
},
|
|
178
|
+
style: {
|
|
179
|
+
'--variant-containedColor': theme.vars ?
|
|
180
|
+
// this is safe because grey does not change between default light/dark mode
|
|
181
|
+
theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, inheritContainedBackgroundColor),
|
|
182
|
+
'--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
183
|
+
'@media (hover: hover)': {
|
|
184
|
+
'&:hover': {
|
|
185
|
+
'--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
186
|
+
'--variant-textBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _colorManipulator.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
187
|
+
'--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _colorManipulator.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity)
|
|
188
|
+
}
|
|
189
|
+
}
|
|
116
190
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
191
|
+
}, {
|
|
192
|
+
props: {
|
|
193
|
+
size: 'small',
|
|
194
|
+
variant: 'text'
|
|
195
|
+
},
|
|
196
|
+
style: {
|
|
197
|
+
padding: '4px 5px',
|
|
198
|
+
fontSize: theme.typography.pxToRem(13)
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
props: {
|
|
202
|
+
size: 'large',
|
|
203
|
+
variant: 'text'
|
|
204
|
+
},
|
|
205
|
+
style: {
|
|
206
|
+
padding: '8px 11px',
|
|
207
|
+
fontSize: theme.typography.pxToRem(15)
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
props: {
|
|
211
|
+
size: 'small',
|
|
212
|
+
variant: 'outlined'
|
|
213
|
+
},
|
|
214
|
+
style: {
|
|
215
|
+
padding: '3px 9px',
|
|
216
|
+
fontSize: theme.typography.pxToRem(13)
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
props: {
|
|
220
|
+
size: 'large',
|
|
221
|
+
variant: 'outlined'
|
|
222
|
+
},
|
|
223
|
+
style: {
|
|
224
|
+
padding: '7px 21px',
|
|
225
|
+
fontSize: theme.typography.pxToRem(15)
|
|
226
|
+
}
|
|
227
|
+
}, {
|
|
228
|
+
props: {
|
|
229
|
+
size: 'small',
|
|
230
|
+
variant: 'contained'
|
|
231
|
+
},
|
|
232
|
+
style: {
|
|
233
|
+
padding: '4px 10px',
|
|
234
|
+
fontSize: theme.typography.pxToRem(13)
|
|
235
|
+
}
|
|
236
|
+
}, {
|
|
237
|
+
props: {
|
|
238
|
+
size: 'large',
|
|
239
|
+
variant: 'contained'
|
|
240
|
+
},
|
|
241
|
+
style: {
|
|
242
|
+
padding: '8px 22px',
|
|
243
|
+
fontSize: theme.typography.pxToRem(15)
|
|
244
|
+
}
|
|
245
|
+
}, {
|
|
246
|
+
props: {
|
|
247
|
+
disableElevation: true
|
|
248
|
+
},
|
|
249
|
+
style: {
|
|
250
|
+
boxShadow: 'none',
|
|
251
|
+
'&:hover': {
|
|
252
|
+
boxShadow: 'none'
|
|
253
|
+
},
|
|
254
|
+
[`&.${_buttonClasses.default.focusVisible}`]: {
|
|
255
|
+
boxShadow: 'none'
|
|
256
|
+
},
|
|
257
|
+
'&:active': {
|
|
258
|
+
boxShadow: 'none'
|
|
259
|
+
},
|
|
260
|
+
[`&.${_buttonClasses.default.disabled}`]: {
|
|
261
|
+
boxShadow: 'none'
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
props: {
|
|
266
|
+
fullWidth: true
|
|
267
|
+
},
|
|
268
|
+
style: {
|
|
269
|
+
width: '100%'
|
|
270
|
+
}
|
|
271
|
+
}]
|
|
175
272
|
});
|
|
176
|
-
}, ({
|
|
177
|
-
ownerState
|
|
178
|
-
}) => ownerState.disableElevation && {
|
|
179
|
-
boxShadow: 'none',
|
|
180
|
-
'&:hover': {
|
|
181
|
-
boxShadow: 'none'
|
|
182
|
-
},
|
|
183
|
-
[`&.${_buttonClasses.default.focusVisible}`]: {
|
|
184
|
-
boxShadow: 'none'
|
|
185
|
-
},
|
|
186
|
-
'&:active': {
|
|
187
|
-
boxShadow: 'none'
|
|
188
|
-
},
|
|
189
|
-
[`&.${_buttonClasses.default.disabled}`]: {
|
|
190
|
-
boxShadow: 'none'
|
|
191
|
-
}
|
|
192
273
|
});
|
|
193
|
-
const ButtonStartIcon = (0,
|
|
274
|
+
const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
194
275
|
name: 'MuiButton',
|
|
195
276
|
slot: 'StartIcon',
|
|
196
277
|
overridesResolver: (props, styles) => {
|
|
@@ -199,16 +280,20 @@ const ButtonStartIcon = (0, _styled.default)('span', {
|
|
|
199
280
|
} = props;
|
|
200
281
|
return [styles.startIcon, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
201
282
|
}
|
|
202
|
-
})(({
|
|
203
|
-
ownerState
|
|
204
|
-
}) => (0, _extends2.default)({
|
|
283
|
+
})(() => ({
|
|
205
284
|
display: 'inherit',
|
|
206
285
|
marginRight: 8,
|
|
207
|
-
marginLeft: -4
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
286
|
+
marginLeft: -4,
|
|
287
|
+
variants: [{
|
|
288
|
+
props: {
|
|
289
|
+
size: 'small'
|
|
290
|
+
},
|
|
291
|
+
style: {
|
|
292
|
+
marginLeft: -2
|
|
293
|
+
}
|
|
294
|
+
}, ...commonIconStyles]
|
|
295
|
+
}));
|
|
296
|
+
const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
212
297
|
name: 'MuiButton',
|
|
213
298
|
slot: 'EndIcon',
|
|
214
299
|
overridesResolver: (props, styles) => {
|
|
@@ -217,21 +302,25 @@ const ButtonEndIcon = (0, _styled.default)('span', {
|
|
|
217
302
|
} = props;
|
|
218
303
|
return [styles.endIcon, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
219
304
|
}
|
|
220
|
-
})(({
|
|
221
|
-
ownerState
|
|
222
|
-
}) => (0, _extends2.default)({
|
|
305
|
+
})(() => ({
|
|
223
306
|
display: 'inherit',
|
|
224
307
|
marginRight: -4,
|
|
225
|
-
marginLeft: 8
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
308
|
+
marginLeft: 8,
|
|
309
|
+
variants: [{
|
|
310
|
+
props: {
|
|
311
|
+
size: 'small'
|
|
312
|
+
},
|
|
313
|
+
style: {
|
|
314
|
+
marginRight: -2
|
|
315
|
+
}
|
|
316
|
+
}, ...commonIconStyles]
|
|
317
|
+
}));
|
|
229
318
|
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
230
319
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
231
320
|
const contextProps = React.useContext(_ButtonGroupContext.default);
|
|
232
321
|
const buttonGroupButtonContextPositionClassName = React.useContext(_ButtonGroupButtonContext.default);
|
|
233
322
|
const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
|
|
234
|
-
const props = (
|
|
323
|
+
const props = useThemeProps({
|
|
235
324
|
props: resolvedProps,
|
|
236
325
|
name: 'MuiButton'
|
|
237
326
|
});
|
package/node/Button/index.js
CHANGED
|
@@ -34,4 +34,4 @@ Object.keys(_buttonClasses).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -14,8 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
15
15
|
var _elementTypeAcceptingRef = _interopRequireDefault(require("@mui/utils/elementTypeAcceptingRef"));
|
|
16
16
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
|
-
var
|
|
18
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
20
19
|
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
|
|
21
20
|
var _useIsFocusVisible = _interopRequireDefault(require("../utils/useIsFocusVisible"));
|
|
@@ -24,7 +23,8 @@ var _buttonBaseClasses = _interopRequireWildcard(require("./buttonBaseClasses"))
|
|
|
24
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
24
|
const _excluded = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
26
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiButtonBase');
|
|
28
28
|
const useUtilityClasses = ownerState => {
|
|
29
29
|
const {
|
|
30
30
|
disabled,
|
|
@@ -41,7 +41,7 @@ const useUtilityClasses = ownerState => {
|
|
|
41
41
|
}
|
|
42
42
|
return composedClasses;
|
|
43
43
|
};
|
|
44
|
-
const ButtonBaseRoot = exports.ButtonBaseRoot = (0,
|
|
44
|
+
const ButtonBaseRoot = exports.ButtonBaseRoot = (0, _zeroStyled.styled)('button', {
|
|
45
45
|
name: 'MuiButtonBase',
|
|
46
46
|
slot: 'Root',
|
|
47
47
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -91,7 +91,7 @@ const ButtonBaseRoot = exports.ButtonBaseRoot = (0, _styled.default)('button', {
|
|
|
91
91
|
* It contains a load of style reset and some focus/ripple logic.
|
|
92
92
|
*/
|
|
93
93
|
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {
|
|
94
|
-
const props = (
|
|
94
|
+
const props = useThemeProps({
|
|
95
95
|
props: inProps,
|
|
96
96
|
name: 'MuiButtonBase'
|
|
97
97
|
});
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - internal component.
|
|
17
17
|
*/function Ripple(props) {
|
|
@@ -56,7 +56,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
59
|
+
process.env.NODE_ENV !== "production" ? Ripple.propTypes /* remove-proptypes */ = {
|
|
60
60
|
/**
|
|
61
61
|
* Override or extend the styles applied to the component.
|
|
62
62
|
*/
|
|
@@ -12,19 +12,18 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _reactTransitionGroup = require("react-transition-group");
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
|
-
var _system = require("@mui/system");
|
|
16
15
|
var _useTimeout = _interopRequireDefault(require("@mui/utils/useTimeout"));
|
|
17
|
-
var
|
|
18
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
17
|
var _Ripple = _interopRequireDefault(require("./Ripple"));
|
|
20
18
|
var _touchRippleClasses = _interopRequireDefault(require("./touchRippleClasses"));
|
|
21
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
20
|
const _excluded = ["center", "classes", "className"];
|
|
23
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTouchRipple');
|
|
25
24
|
const DURATION = 550;
|
|
26
25
|
const DELAY_RIPPLE = exports.DELAY_RIPPLE = 80;
|
|
27
|
-
const enterKeyframe = (0,
|
|
26
|
+
const enterKeyframe = (0, _zeroStyled.keyframes)`
|
|
28
27
|
0% {
|
|
29
28
|
transform: scale(0);
|
|
30
29
|
opacity: 0.1;
|
|
@@ -35,7 +34,7 @@ const enterKeyframe = (0, _system.keyframes)`
|
|
|
35
34
|
opacity: 0.3;
|
|
36
35
|
}
|
|
37
36
|
`;
|
|
38
|
-
const exitKeyframe = (0,
|
|
37
|
+
const exitKeyframe = (0, _zeroStyled.keyframes)`
|
|
39
38
|
0% {
|
|
40
39
|
opacity: 1;
|
|
41
40
|
}
|
|
@@ -44,7 +43,7 @@ const exitKeyframe = (0, _system.keyframes)`
|
|
|
44
43
|
opacity: 0;
|
|
45
44
|
}
|
|
46
45
|
`;
|
|
47
|
-
const pulsateKeyframe = (0,
|
|
46
|
+
const pulsateKeyframe = (0, _zeroStyled.keyframes)`
|
|
48
47
|
0% {
|
|
49
48
|
transform: scale(1);
|
|
50
49
|
}
|
|
@@ -57,7 +56,7 @@ const pulsateKeyframe = (0, _system.keyframes)`
|
|
|
57
56
|
transform: scale(1);
|
|
58
57
|
}
|
|
59
58
|
`;
|
|
60
|
-
const TouchRippleRoot = exports.TouchRippleRoot = (0,
|
|
59
|
+
const TouchRippleRoot = exports.TouchRippleRoot = (0, _zeroStyled.styled)('span', {
|
|
61
60
|
name: 'MuiTouchRipple',
|
|
62
61
|
slot: 'Root'
|
|
63
62
|
})({
|
|
@@ -74,7 +73,7 @@ const TouchRippleRoot = exports.TouchRippleRoot = (0, _styled.default)('span', {
|
|
|
74
73
|
|
|
75
74
|
// This `styled()` function invokes keyframes. `styled-components` only supports keyframes
|
|
76
75
|
// in string templates. Do not convert these styles in JS object as it will break.
|
|
77
|
-
const TouchRippleRipple = exports.TouchRippleRipple = (0,
|
|
76
|
+
const TouchRippleRipple = exports.TouchRippleRipple = (0, _zeroStyled.styled)(_Ripple.default, {
|
|
78
77
|
name: 'MuiTouchRipple',
|
|
79
78
|
slot: 'Ripple'
|
|
80
79
|
})`
|
|
@@ -136,7 +135,7 @@ const TouchRippleRipple = exports.TouchRippleRipple = (0, _styled.default)(_Ripp
|
|
|
136
135
|
* TODO v5: Make private
|
|
137
136
|
*/
|
|
138
137
|
const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {
|
|
139
|
-
const props = (
|
|
138
|
+
const props = useThemeProps({
|
|
140
139
|
props: inProps,
|
|
141
140
|
name: 'MuiTouchRipple'
|
|
142
141
|
});
|
|
@@ -318,7 +317,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
318
317
|
})
|
|
319
318
|
}));
|
|
320
319
|
});
|
|
321
|
-
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes = {
|
|
320
|
+
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes /* remove-proptypes */ = {
|
|
322
321
|
/**
|
|
323
322
|
* If `true`, the ripple starts at the center of the component
|
|
324
323
|
* rather than at the point of interaction.
|
package/node/ButtonBase/index.js
CHANGED
|
@@ -53,4 +53,4 @@ Object.keys(_touchRippleClasses).forEach(function (key) {
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
56
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
56
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|