@mui/material 5.15.2 → 5.15.4
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 +4 -4
- package/AccordionActions/AccordionActions.js +4 -4
- package/AccordionDetails/AccordionDetails.js +4 -4
- package/AccordionSummary/AccordionSummary.js +4 -4
- package/Alert/Alert.js +4 -4
- package/AlertTitle/AlertTitle.js +4 -4
- package/AppBar/AppBar.js +4 -4
- package/Autocomplete/Autocomplete.js +4 -4
- package/Avatar/Avatar.js +4 -4
- package/AvatarGroup/AvatarGroup.js +4 -4
- package/Backdrop/Backdrop.js +4 -4
- package/Badge/Badge.js +4 -4
- package/BottomNavigation/BottomNavigation.js +4 -4
- package/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/Box/Box.js +4 -4
- package/Breadcrumbs/Breadcrumbs.js +4 -4
- package/Button/Button.js +4 -4
- package/ButtonBase/ButtonBase.js +4 -4
- package/ButtonGroup/ButtonGroup.js +4 -4
- package/ButtonGroup/ButtonGroupContext.d.ts +2 -2
- package/CHANGELOG.md +161 -6
- package/Card/Card.js +4 -4
- package/CardActionArea/CardActionArea.js +4 -4
- package/CardActions/CardActions.js +4 -4
- package/CardContent/CardContent.js +4 -4
- package/CardHeader/CardHeader.js +4 -4
- package/CardMedia/CardMedia.js +4 -4
- package/Checkbox/Checkbox.js +4 -4
- package/Chip/Chip.js +4 -4
- package/CircularProgress/CircularProgress.js +4 -4
- package/ClickAwayListener/index.d.ts +2 -1
- package/Collapse/Collapse.js +4 -4
- package/Container/Container.js +4 -4
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/Dialog.js +4 -4
- package/DialogActions/DialogActions.js +4 -4
- package/DialogContent/DialogContent.js +4 -4
- package/DialogContentText/DialogContentText.js +4 -4
- package/DialogTitle/DialogTitle.js +4 -4
- package/Divider/Divider.js +4 -4
- package/Drawer/Drawer.js +4 -4
- package/Fab/Fab.js +4 -4
- package/Fade/Fade.js +4 -4
- package/FilledInput/FilledInput.js +4 -4
- package/FormControl/FormControl.d.ts +1 -1
- package/FormControl/FormControl.js +4 -4
- package/FormControlLabel/FormControlLabel.js +4 -4
- package/FormGroup/FormGroup.js +4 -4
- package/FormHelperText/FormHelperText.js +4 -4
- package/FormLabel/FormLabel.d.ts +1 -1
- package/FormLabel/FormLabel.js +4 -4
- package/GlobalStyles/GlobalStyles.js +4 -4
- package/Grid/Grid.js +4 -4
- package/Grow/Grow.js +4 -4
- package/Hidden/Hidden.js +4 -4
- package/Icon/Icon.js +4 -4
- package/IconButton/IconButton.js +4 -4
- package/ImageList/ImageList.js +4 -4
- package/ImageListItem/ImageListItem.js +4 -4
- package/ImageListItemBar/ImageListItemBar.js +4 -4
- package/Input/Input.js +4 -4
- package/InputAdornment/InputAdornment.js +4 -4
- package/InputBase/InputBase.js +4 -4
- package/InputLabel/InputLabel.d.ts +1 -5
- package/InputLabel/InputLabel.js +4 -4
- package/LinearProgress/LinearProgress.js +4 -4
- package/Link/Link.js +4 -4
- package/List/List.js +4 -4
- package/ListItem/ListItem.js +4 -4
- package/ListItemAvatar/ListItemAvatar.js +4 -4
- package/ListItemButton/ListItemButton.js +4 -4
- package/ListItemIcon/ListItemIcon.js +4 -4
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/ListItemText/ListItemText.js +4 -4
- package/ListSubheader/ListSubheader.js +4 -4
- package/Menu/Menu.js +4 -4
- package/MenuItem/MenuItem.js +4 -4
- package/MenuList/MenuList.js +4 -4
- package/MobileStepper/MobileStepper.js +4 -4
- package/Modal/Modal.js +4 -4
- package/NativeSelect/NativeSelect.js +4 -4
- package/OutlinedInput/OutlinedInput.js +4 -4
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/Paper/Paper.js +4 -4
- package/Popover/Popover.js +4 -4
- package/Popper/Popper.d.ts +2 -2
- package/Popper/Popper.js +4 -4
- package/Radio/Radio.js +4 -4
- package/RadioGroup/RadioGroup.js +4 -4
- package/Rating/Rating.js +4 -4
- package/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/Select/Select.js +4 -4
- package/Skeleton/Skeleton.js +4 -4
- package/Slide/Slide.js +4 -4
- package/Slider/Slider.js +4 -4
- package/Snackbar/Snackbar.js +4 -4
- package/SnackbarContent/SnackbarContent.js +4 -4
- package/SpeedDial/SpeedDial.js +4 -4
- package/SpeedDialAction/SpeedDialAction.js +4 -4
- package/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/Stack/Stack.js +4 -4
- package/Step/Step.js +4 -4
- package/StepButton/StepButton.js +4 -4
- package/StepConnector/StepConnector.js +4 -4
- package/StepContent/StepContent.js +4 -4
- package/StepIcon/StepIcon.js +4 -4
- package/StepLabel/StepLabel.js +4 -4
- package/Stepper/Stepper.js +4 -4
- package/SvgIcon/SvgIcon.js +4 -4
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Switch/Switch.js +4 -4
- package/Tab/Tab.js +4 -4
- package/TabScrollButton/TabScrollButton.js +4 -4
- package/Table/Table.js +4 -4
- package/TableBody/TableBody.js +4 -4
- package/TableCell/TableCell.js +4 -4
- package/TableContainer/TableContainer.js +4 -4
- package/TableFooter/TableFooter.js +4 -4
- package/TableHead/TableHead.js +4 -4
- package/TablePagination/TablePagination.js +4 -4
- package/TableRow/TableRow.js +4 -4
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/Tabs/Tabs.js +4 -4
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +4 -4
- package/ToggleButton/ToggleButton.js +24 -8
- package/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/ToggleButtonGroup/ToggleButtonGroupButtonContext.d.ts +6 -0
- package/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +16 -0
- package/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +6 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/Toolbar/Toolbar.js +4 -4
- package/Tooltip/Tooltip.js +4 -4
- package/Typography/Typography.js +4 -4
- package/Unstable_Grid2/Grid2.js +4 -4
- package/Zoom/Zoom.js +4 -4
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +4 -4
- package/legacy/AccordionActions/AccordionActions.js +4 -4
- package/legacy/AccordionDetails/AccordionDetails.js +4 -4
- package/legacy/AccordionSummary/AccordionSummary.js +4 -4
- package/legacy/Alert/Alert.js +4 -4
- package/legacy/AlertTitle/AlertTitle.js +4 -4
- package/legacy/AppBar/AppBar.js +4 -4
- package/legacy/Autocomplete/Autocomplete.js +4 -4
- package/legacy/Avatar/Avatar.js +4 -4
- package/legacy/AvatarGroup/AvatarGroup.js +4 -4
- package/legacy/Backdrop/Backdrop.js +4 -4
- package/legacy/Badge/Badge.js +4 -4
- package/legacy/BottomNavigation/BottomNavigation.js +4 -4
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/legacy/Box/Box.js +4 -4
- package/legacy/Breadcrumbs/Breadcrumbs.js +4 -4
- package/legacy/Button/Button.js +4 -4
- package/legacy/ButtonBase/ButtonBase.js +4 -4
- package/legacy/ButtonGroup/ButtonGroup.js +4 -4
- package/legacy/Card/Card.js +4 -4
- package/legacy/CardActionArea/CardActionArea.js +4 -4
- package/legacy/CardActions/CardActions.js +4 -4
- package/legacy/CardContent/CardContent.js +4 -4
- package/legacy/CardHeader/CardHeader.js +4 -4
- package/legacy/CardMedia/CardMedia.js +4 -4
- package/legacy/Checkbox/Checkbox.js +4 -4
- package/legacy/Chip/Chip.js +4 -4
- package/legacy/CircularProgress/CircularProgress.js +4 -4
- package/legacy/Collapse/Collapse.js +4 -4
- package/legacy/Container/Container.js +4 -4
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/Dialog/Dialog.js +4 -4
- package/legacy/DialogActions/DialogActions.js +4 -4
- package/legacy/DialogContent/DialogContent.js +4 -4
- package/legacy/DialogContentText/DialogContentText.js +4 -4
- package/legacy/DialogTitle/DialogTitle.js +4 -4
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +4 -4
- package/legacy/Fab/Fab.js +4 -4
- package/legacy/Fade/Fade.js +4 -4
- package/legacy/FilledInput/FilledInput.js +4 -4
- package/legacy/FormControl/FormControl.js +4 -4
- package/legacy/FormControlLabel/FormControlLabel.js +4 -4
- package/legacy/FormGroup/FormGroup.js +4 -4
- package/legacy/FormHelperText/FormHelperText.js +4 -4
- package/legacy/FormLabel/FormLabel.js +4 -4
- package/legacy/GlobalStyles/GlobalStyles.js +4 -4
- package/legacy/Grid/Grid.js +4 -4
- package/legacy/Grow/Grow.js +4 -4
- package/legacy/Hidden/Hidden.js +4 -4
- package/legacy/Icon/Icon.js +4 -4
- package/legacy/IconButton/IconButton.js +4 -4
- package/legacy/ImageList/ImageList.js +4 -4
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/ImageListItemBar/ImageListItemBar.js +4 -4
- package/legacy/Input/Input.js +4 -4
- package/legacy/InputAdornment/InputAdornment.js +4 -4
- package/legacy/InputBase/InputBase.js +4 -4
- package/legacy/InputLabel/InputLabel.js +4 -4
- package/legacy/LinearProgress/LinearProgress.js +4 -4
- package/legacy/Link/Link.js +4 -4
- package/legacy/List/List.js +4 -4
- package/legacy/ListItem/ListItem.js +4 -4
- package/legacy/ListItemAvatar/ListItemAvatar.js +4 -4
- package/legacy/ListItemButton/ListItemButton.js +4 -4
- package/legacy/ListItemIcon/ListItemIcon.js +4 -4
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/legacy/ListItemText/ListItemText.js +4 -4
- package/legacy/ListSubheader/ListSubheader.js +4 -4
- package/legacy/Menu/Menu.js +4 -4
- package/legacy/MenuItem/MenuItem.js +4 -4
- package/legacy/MenuList/MenuList.js +4 -4
- package/legacy/MobileStepper/MobileStepper.js +4 -4
- package/legacy/Modal/Modal.js +4 -4
- package/legacy/NativeSelect/NativeSelect.js +4 -4
- package/legacy/OutlinedInput/OutlinedInput.js +4 -4
- package/legacy/Pagination/Pagination.js +4 -4
- package/legacy/PaginationItem/PaginationItem.js +4 -4
- package/legacy/Paper/Paper.js +4 -4
- package/legacy/Popover/Popover.js +4 -4
- package/legacy/Popper/Popper.js +4 -4
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/RadioGroup/RadioGroup.js +4 -4
- package/legacy/Rating/Rating.js +4 -4
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/legacy/Select/Select.js +4 -4
- package/legacy/Skeleton/Skeleton.js +4 -4
- package/legacy/Slide/Slide.js +4 -4
- package/legacy/Slider/Slider.js +4 -4
- package/legacy/Snackbar/Snackbar.js +4 -4
- package/legacy/SnackbarContent/SnackbarContent.js +4 -4
- package/legacy/SpeedDial/SpeedDial.js +4 -4
- package/legacy/SpeedDialAction/SpeedDialAction.js +4 -4
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/legacy/Stack/Stack.js +4 -4
- package/legacy/Step/Step.js +4 -4
- package/legacy/StepButton/StepButton.js +4 -4
- package/legacy/StepConnector/StepConnector.js +4 -4
- package/legacy/StepContent/StepContent.js +4 -4
- package/legacy/StepIcon/StepIcon.js +4 -4
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/Stepper.js +4 -4
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/Switch/Switch.js +4 -4
- package/legacy/Tab/Tab.js +4 -4
- package/legacy/TabScrollButton/TabScrollButton.js +4 -4
- package/legacy/Table/Table.js +4 -4
- package/legacy/TableBody/TableBody.js +4 -4
- package/legacy/TableCell/TableCell.js +4 -4
- package/legacy/TableContainer/TableContainer.js +4 -4
- package/legacy/TableFooter/TableFooter.js +4 -4
- package/legacy/TableHead/TableHead.js +4 -4
- package/legacy/TablePagination/TablePagination.js +4 -4
- package/legacy/TableRow/TableRow.js +4 -4
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/TextField/TextField.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +19 -6
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +81 -55
- package/legacy/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/legacy/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/legacy/Toolbar/Toolbar.js +4 -4
- package/legacy/Tooltip/Tooltip.js +4 -4
- package/legacy/Typography/Typography.js +4 -4
- package/legacy/Unstable_Grid2/Grid2.js +4 -4
- package/legacy/Zoom/Zoom.js +4 -4
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -0
- package/legacy/styles/index.js +1 -0
- package/modern/Accordion/Accordion.js +4 -4
- package/modern/AccordionActions/AccordionActions.js +4 -4
- package/modern/AccordionDetails/AccordionDetails.js +4 -4
- package/modern/AccordionSummary/AccordionSummary.js +4 -4
- package/modern/Alert/Alert.js +4 -4
- package/modern/AlertTitle/AlertTitle.js +4 -4
- package/modern/AppBar/AppBar.js +4 -4
- package/modern/Autocomplete/Autocomplete.js +4 -4
- package/modern/Avatar/Avatar.js +4 -4
- package/modern/AvatarGroup/AvatarGroup.js +4 -4
- package/modern/Backdrop/Backdrop.js +4 -4
- package/modern/Badge/Badge.js +4 -4
- package/modern/BottomNavigation/BottomNavigation.js +4 -4
- package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/modern/Box/Box.js +4 -4
- package/modern/Breadcrumbs/Breadcrumbs.js +4 -4
- package/modern/Button/Button.js +4 -4
- package/modern/ButtonBase/ButtonBase.js +4 -4
- package/modern/ButtonGroup/ButtonGroup.js +4 -4
- package/modern/Card/Card.js +4 -4
- package/modern/CardActionArea/CardActionArea.js +4 -4
- package/modern/CardActions/CardActions.js +4 -4
- package/modern/CardContent/CardContent.js +4 -4
- package/modern/CardHeader/CardHeader.js +4 -4
- package/modern/CardMedia/CardMedia.js +4 -4
- package/modern/Checkbox/Checkbox.js +4 -4
- package/modern/Chip/Chip.js +4 -4
- package/modern/CircularProgress/CircularProgress.js +4 -4
- package/modern/Collapse/Collapse.js +4 -4
- package/modern/Container/Container.js +4 -4
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/Dialog/Dialog.js +4 -4
- package/modern/DialogActions/DialogActions.js +4 -4
- package/modern/DialogContent/DialogContent.js +4 -4
- package/modern/DialogContentText/DialogContentText.js +4 -4
- package/modern/DialogTitle/DialogTitle.js +4 -4
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +4 -4
- package/modern/Fab/Fab.js +4 -4
- package/modern/Fade/Fade.js +4 -4
- package/modern/FilledInput/FilledInput.js +4 -4
- package/modern/FormControl/FormControl.js +4 -4
- package/modern/FormControlLabel/FormControlLabel.js +4 -4
- package/modern/FormGroup/FormGroup.js +4 -4
- package/modern/FormHelperText/FormHelperText.js +4 -4
- package/modern/FormLabel/FormLabel.js +4 -4
- package/modern/GlobalStyles/GlobalStyles.js +4 -4
- package/modern/Grid/Grid.js +4 -4
- package/modern/Grow/Grow.js +4 -4
- package/modern/Hidden/Hidden.js +4 -4
- package/modern/Icon/Icon.js +4 -4
- package/modern/IconButton/IconButton.js +4 -4
- package/modern/ImageList/ImageList.js +4 -4
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/ImageListItemBar/ImageListItemBar.js +4 -4
- package/modern/Input/Input.js +4 -4
- package/modern/InputAdornment/InputAdornment.js +4 -4
- package/modern/InputBase/InputBase.js +4 -4
- package/modern/InputLabel/InputLabel.js +4 -4
- package/modern/LinearProgress/LinearProgress.js +4 -4
- package/modern/Link/Link.js +4 -4
- package/modern/List/List.js +4 -4
- package/modern/ListItem/ListItem.js +4 -4
- package/modern/ListItemAvatar/ListItemAvatar.js +4 -4
- package/modern/ListItemButton/ListItemButton.js +4 -4
- package/modern/ListItemIcon/ListItemIcon.js +4 -4
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/modern/ListItemText/ListItemText.js +4 -4
- package/modern/ListSubheader/ListSubheader.js +4 -4
- package/modern/Menu/Menu.js +4 -4
- package/modern/MenuItem/MenuItem.js +4 -4
- package/modern/MenuList/MenuList.js +4 -4
- package/modern/MobileStepper/MobileStepper.js +4 -4
- package/modern/Modal/Modal.js +4 -4
- package/modern/NativeSelect/NativeSelect.js +4 -4
- package/modern/OutlinedInput/OutlinedInput.js +4 -4
- package/modern/Pagination/Pagination.js +4 -4
- package/modern/PaginationItem/PaginationItem.js +4 -4
- package/modern/Paper/Paper.js +4 -4
- package/modern/Popover/Popover.js +4 -4
- package/modern/Popper/Popper.js +4 -4
- package/modern/Radio/Radio.js +4 -4
- package/modern/RadioGroup/RadioGroup.js +4 -4
- package/modern/Rating/Rating.js +4 -4
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/modern/Select/Select.js +4 -4
- package/modern/Skeleton/Skeleton.js +4 -4
- package/modern/Slide/Slide.js +4 -4
- package/modern/Slider/Slider.js +4 -4
- package/modern/Snackbar/Snackbar.js +4 -4
- package/modern/SnackbarContent/SnackbarContent.js +4 -4
- package/modern/SpeedDial/SpeedDial.js +4 -4
- package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
- package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/modern/Stack/Stack.js +4 -4
- package/modern/Step/Step.js +4 -4
- package/modern/StepButton/StepButton.js +4 -4
- package/modern/StepConnector/StepConnector.js +4 -4
- package/modern/StepContent/StepContent.js +4 -4
- package/modern/StepIcon/StepIcon.js +4 -4
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/Stepper.js +4 -4
- package/modern/SvgIcon/SvgIcon.js +4 -4
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/Switch/Switch.js +4 -4
- package/modern/Tab/Tab.js +4 -4
- package/modern/TabScrollButton/TabScrollButton.js +4 -4
- package/modern/Table/Table.js +4 -4
- package/modern/TableBody/TableBody.js +4 -4
- package/modern/TableCell/TableCell.js +4 -4
- package/modern/TableContainer/TableContainer.js +4 -4
- package/modern/TableFooter/TableFooter.js +4 -4
- package/modern/TableHead/TableHead.js +4 -4
- package/modern/TablePagination/TablePagination.js +4 -4
- package/modern/TableRow/TableRow.js +4 -4
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/TextField/TextField.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +24 -8
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
- package/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
- package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/modern/Toolbar/Toolbar.js +4 -4
- package/modern/Tooltip/Tooltip.js +4 -4
- package/modern/Typography/Typography.js +4 -4
- package/modern/Unstable_Grid2/Grid2.js +4 -4
- package/modern/Zoom/Zoom.js +4 -4
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -0
- package/modern/styles/index.js +1 -0
- package/node/Accordion/Accordion.js +4 -4
- package/node/AccordionActions/AccordionActions.js +4 -4
- package/node/AccordionDetails/AccordionDetails.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +4 -4
- package/node/Alert/Alert.js +4 -4
- package/node/AlertTitle/AlertTitle.js +4 -4
- package/node/AppBar/AppBar.js +4 -4
- package/node/Autocomplete/Autocomplete.js +4 -4
- package/node/Avatar/Avatar.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +4 -4
- package/node/Backdrop/Backdrop.js +4 -4
- package/node/Badge/Badge.js +4 -4
- package/node/BottomNavigation/BottomNavigation.js +4 -4
- package/node/BottomNavigationAction/BottomNavigationAction.js +4 -4
- package/node/Box/Box.js +4 -4
- package/node/Breadcrumbs/Breadcrumbs.js +4 -4
- package/node/Button/Button.js +4 -4
- package/node/ButtonBase/ButtonBase.js +4 -4
- package/node/ButtonGroup/ButtonGroup.js +4 -4
- package/node/Card/Card.js +4 -4
- package/node/CardActionArea/CardActionArea.js +4 -4
- package/node/CardActions/CardActions.js +4 -4
- package/node/CardContent/CardContent.js +4 -4
- package/node/CardHeader/CardHeader.js +4 -4
- package/node/CardMedia/CardMedia.js +4 -4
- package/node/Checkbox/Checkbox.js +4 -4
- package/node/Chip/Chip.js +4 -4
- package/node/CircularProgress/CircularProgress.js +4 -4
- package/node/Collapse/Collapse.js +4 -4
- package/node/Container/Container.js +4 -4
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/Dialog/Dialog.js +4 -4
- package/node/DialogActions/DialogActions.js +4 -4
- package/node/DialogContent/DialogContent.js +4 -4
- package/node/DialogContentText/DialogContentText.js +4 -4
- package/node/DialogTitle/DialogTitle.js +4 -4
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +4 -4
- package/node/Fab/Fab.js +4 -4
- package/node/Fade/Fade.js +4 -4
- package/node/FilledInput/FilledInput.js +4 -4
- package/node/FormControl/FormControl.js +4 -4
- package/node/FormControlLabel/FormControlLabel.js +4 -4
- package/node/FormGroup/FormGroup.js +4 -4
- package/node/FormHelperText/FormHelperText.js +4 -4
- package/node/FormLabel/FormLabel.js +4 -4
- package/node/GlobalStyles/GlobalStyles.js +4 -4
- package/node/Grid/Grid.js +4 -4
- package/node/Grow/Grow.js +4 -4
- package/node/Hidden/Hidden.js +4 -4
- package/node/Icon/Icon.js +4 -4
- package/node/IconButton/IconButton.js +4 -4
- package/node/ImageList/ImageList.js +4 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/ImageListItemBar/ImageListItemBar.js +4 -4
- package/node/Input/Input.js +4 -4
- package/node/InputAdornment/InputAdornment.js +4 -4
- package/node/InputBase/InputBase.js +4 -4
- package/node/InputLabel/InputLabel.js +4 -4
- package/node/LinearProgress/LinearProgress.js +4 -4
- package/node/Link/Link.js +4 -4
- package/node/List/List.js +4 -4
- package/node/ListItem/ListItem.js +4 -4
- package/node/ListItemAvatar/ListItemAvatar.js +4 -4
- package/node/ListItemButton/ListItemButton.js +4 -4
- package/node/ListItemIcon/ListItemIcon.js +4 -4
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/node/ListItemText/ListItemText.js +4 -4
- package/node/ListSubheader/ListSubheader.js +4 -4
- package/node/Menu/Menu.js +4 -4
- package/node/MenuItem/MenuItem.js +4 -4
- package/node/MenuList/MenuList.js +4 -4
- package/node/MobileStepper/MobileStepper.js +4 -4
- package/node/Modal/Modal.js +4 -4
- package/node/NativeSelect/NativeSelect.js +4 -4
- package/node/OutlinedInput/OutlinedInput.js +4 -4
- package/node/Pagination/Pagination.js +4 -4
- package/node/PaginationItem/PaginationItem.js +4 -4
- package/node/Paper/Paper.js +4 -4
- package/node/Popover/Popover.js +4 -4
- package/node/Popper/Popper.js +4 -4
- package/node/Radio/Radio.js +4 -4
- package/node/RadioGroup/RadioGroup.js +4 -4
- package/node/Rating/Rating.js +4 -4
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
- package/node/Select/Select.js +4 -4
- package/node/Skeleton/Skeleton.js +4 -4
- package/node/Slide/Slide.js +4 -4
- package/node/Slider/Slider.js +4 -4
- package/node/Snackbar/Snackbar.js +4 -4
- package/node/SnackbarContent/SnackbarContent.js +4 -4
- package/node/SpeedDial/SpeedDial.js +4 -4
- package/node/SpeedDialAction/SpeedDialAction.js +4 -4
- package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/node/Stack/Stack.js +4 -4
- package/node/Step/Step.js +4 -4
- package/node/StepButton/StepButton.js +4 -4
- package/node/StepConnector/StepConnector.js +4 -4
- package/node/StepContent/StepContent.js +4 -4
- package/node/StepIcon/StepIcon.js +4 -4
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/Stepper.js +4 -4
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/Switch/Switch.js +4 -4
- package/node/Tab/Tab.js +4 -4
- package/node/TabScrollButton/TabScrollButton.js +4 -4
- package/node/Table/Table.js +4 -4
- package/node/TableBody/TableBody.js +4 -4
- package/node/TableCell/TableCell.js +4 -4
- package/node/TableContainer/TableContainer.js +4 -4
- package/node/TableFooter/TableFooter.js +4 -4
- package/node/TableHead/TableHead.js +4 -4
- package/node/TablePagination/TablePagination.js +4 -4
- package/node/TableRow/TableRow.js +4 -4
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +4 -4
- package/node/TextField/TextField.js +4 -4
- package/node/ToggleButton/ToggleButton.js +24 -8
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
- package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +17 -0
- package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +17 -0
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +4 -4
- package/node/Tooltip/Tooltip.js +4 -4
- package/node/Typography/Typography.js +4 -4
- package/node/Unstable_Grid2/Grid2.js +4 -4
- package/node/Zoom/Zoom.js +4 -4
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -0
- package/node/styles/index.js +8 -0
- package/package.json +11 -10
- package/styles/CssVarsProvider.d.ts +3 -3
- package/styles/CssVarsProvider.js +3 -0
- package/styles/index.js +1 -0
- package/umd/material-ui.development.js +15440 -15434
- package/umd/material-ui.production.min.js +4 -207
|
@@ -200,10 +200,10 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
|
|
|
200
200
|
}));
|
|
201
201
|
});
|
|
202
202
|
process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes */ = {
|
|
203
|
-
//
|
|
204
|
-
//
|
|
205
|
-
//
|
|
206
|
-
//
|
|
203
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
204
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
205
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
206
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
207
207
|
/**
|
|
208
208
|
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
209
209
|
* The name can be confusing, as it's more like an autofill.
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
// @inheritedComponent ButtonBase
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
6
|
-
const _excluded = ["
|
|
6
|
+
const _excluded = ["value"],
|
|
7
|
+
_excluded2 = ["children", "className", "color", "disabled", "disableFocusRipple", "fullWidth", "onChange", "onClick", "selected", "size", "value"];
|
|
7
8
|
import * as React from 'react';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
10
|
import clsx from 'clsx';
|
|
11
|
+
import { internal_resolveProps as resolveProps } from '@mui/utils';
|
|
10
12
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
11
13
|
import { alpha } from '../styles';
|
|
12
14
|
import ButtonBase from '../ButtonBase';
|
|
@@ -14,6 +16,9 @@ import capitalize from '../utils/capitalize';
|
|
|
14
16
|
import useThemeProps from '../styles/useThemeProps';
|
|
15
17
|
import styled from '../styles/styled';
|
|
16
18
|
import toggleButtonClasses, { getToggleButtonUtilityClass } from './toggleButtonClasses';
|
|
19
|
+
import ToggleButtonGroupContext from '../ToggleButtonGroup/ToggleButtonGroupContext';
|
|
20
|
+
import ToggleButtonGroupButtonContext from '../ToggleButtonGroup/ToggleButtonGroupButtonContext';
|
|
21
|
+
import isValueSelected from '../ToggleButtonGroup/isValueSelected';
|
|
17
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
23
|
const useUtilityClasses = ownerState => {
|
|
19
24
|
const {
|
|
@@ -88,8 +93,18 @@ const ToggleButtonRoot = styled(ButtonBase, {
|
|
|
88
93
|
});
|
|
89
94
|
});
|
|
90
95
|
const ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps, ref) {
|
|
96
|
+
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
97
|
+
const _React$useContext = React.useContext(ToggleButtonGroupContext),
|
|
98
|
+
{
|
|
99
|
+
value: contextValue
|
|
100
|
+
} = _React$useContext,
|
|
101
|
+
contextProps = _objectWithoutPropertiesLoose(_React$useContext, _excluded);
|
|
102
|
+
const toggleButtonGroupButtonContextPositionClassName = React.useContext(ToggleButtonGroupButtonContext);
|
|
103
|
+
const resolvedProps = resolveProps(_extends({}, contextProps, {
|
|
104
|
+
selected: isValueSelected(inProps.value, contextValue)
|
|
105
|
+
}), inProps);
|
|
91
106
|
const props = useThemeProps({
|
|
92
|
-
props:
|
|
107
|
+
props: resolvedProps,
|
|
93
108
|
name: 'MuiToggleButton'
|
|
94
109
|
});
|
|
95
110
|
const {
|
|
@@ -105,7 +120,7 @@ const ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps
|
|
|
105
120
|
size = 'medium',
|
|
106
121
|
value
|
|
107
122
|
} = props,
|
|
108
|
-
other = _objectWithoutPropertiesLoose(props,
|
|
123
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
109
124
|
const ownerState = _extends({}, props, {
|
|
110
125
|
color,
|
|
111
126
|
disabled,
|
|
@@ -125,8 +140,9 @@ const ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps
|
|
|
125
140
|
onChange(event, value);
|
|
126
141
|
}
|
|
127
142
|
};
|
|
143
|
+
const positionClassName = toggleButtonGroupButtonContextPositionClassName || '';
|
|
128
144
|
return /*#__PURE__*/_jsx(ToggleButtonRoot, _extends({
|
|
129
|
-
className: clsx(classes.root, className),
|
|
145
|
+
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
|
130
146
|
disabled: disabled,
|
|
131
147
|
focusRipple: !disableFocusRipple,
|
|
132
148
|
ref: ref,
|
|
@@ -140,10 +156,10 @@ const ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps
|
|
|
140
156
|
}));
|
|
141
157
|
});
|
|
142
158
|
process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptypes */ = {
|
|
143
|
-
//
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
//
|
|
159
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
160
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
161
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
162
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
147
163
|
/**
|
|
148
164
|
* The content of the component.
|
|
149
165
|
*/
|
|
@@ -8,11 +8,14 @@ import { isFragment } from 'react-is';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
11
|
+
import { getValidReactChildren } from '@mui/utils';
|
|
11
12
|
import styled from '../styles/styled';
|
|
12
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
14
|
import capitalize from '../utils/capitalize';
|
|
14
|
-
import isValueSelected from './isValueSelected';
|
|
15
15
|
import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from './toggleButtonGroupClasses';
|
|
16
|
+
import ToggleButtonGroupContext from './ToggleButtonGroupContext';
|
|
17
|
+
import ToggleButtonGroupButtonContext from './ToggleButtonGroupButtonContext';
|
|
18
|
+
import toggleButtonClasses from '../ToggleButton/toggleButtonClasses';
|
|
16
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
20
|
const useUtilityClasses = ownerState => {
|
|
18
21
|
const {
|
|
@@ -23,7 +26,10 @@ const useUtilityClasses = ownerState => {
|
|
|
23
26
|
} = ownerState;
|
|
24
27
|
const slots = {
|
|
25
28
|
root: ['root', orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth'],
|
|
26
|
-
grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled']
|
|
29
|
+
grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled'],
|
|
30
|
+
firstButton: ['firstButton'],
|
|
31
|
+
lastButton: ['lastButton'],
|
|
32
|
+
middleButton: ['middleButton']
|
|
27
33
|
};
|
|
28
34
|
return composeClasses(slots, getToggleButtonGroupUtilityClass, classes);
|
|
29
35
|
};
|
|
@@ -38,6 +44,12 @@ const ToggleButtonGroupRoot = styled('div', {
|
|
|
38
44
|
[`& .${toggleButtonGroupClasses.grouped}`]: styles.grouped
|
|
39
45
|
}, {
|
|
40
46
|
[`& .${toggleButtonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
|
|
47
|
+
}, {
|
|
48
|
+
[`& .${toggleButtonGroupClasses.firstButton}`]: styles.firstButton
|
|
49
|
+
}, {
|
|
50
|
+
[`& .${toggleButtonGroupClasses.lastButton}`]: styles.lastButton
|
|
51
|
+
}, {
|
|
52
|
+
[`& .${toggleButtonGroupClasses.middleButton}`]: styles.middleButton
|
|
41
53
|
}, styles.root, ownerState.orientation === 'vertical' && styles.vertical, ownerState.fullWidth && styles.fullWidth];
|
|
42
54
|
}
|
|
43
55
|
})(({
|
|
@@ -52,36 +64,46 @@ const ToggleButtonGroupRoot = styled('div', {
|
|
|
52
64
|
width: '100%'
|
|
53
65
|
}, {
|
|
54
66
|
[`& .${toggleButtonGroupClasses.grouped}`]: _extends({}, ownerState.orientation === 'horizontal' ? {
|
|
55
|
-
'&:not(:first-of-type)': {
|
|
56
|
-
marginLeft: -1,
|
|
57
|
-
borderLeft: '1px solid transparent',
|
|
58
|
-
borderTopLeftRadius: 0,
|
|
59
|
-
borderBottomLeftRadius: 0
|
|
60
|
-
},
|
|
61
|
-
'&:not(:last-of-type)': {
|
|
62
|
-
borderTopRightRadius: 0,
|
|
63
|
-
borderBottomRightRadius: 0
|
|
64
|
-
},
|
|
65
67
|
[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {
|
|
66
68
|
borderLeft: 0,
|
|
67
69
|
marginLeft: 0
|
|
68
70
|
}
|
|
69
71
|
} : {
|
|
70
|
-
'&:not(:first-of-type)': {
|
|
71
|
-
marginTop: -1,
|
|
72
|
-
borderTop: '1px solid transparent',
|
|
73
|
-
borderTopLeftRadius: 0,
|
|
74
|
-
borderTopRightRadius: 0
|
|
75
|
-
},
|
|
76
|
-
'&:not(:last-of-type)': {
|
|
77
|
-
borderBottomLeftRadius: 0,
|
|
78
|
-
borderBottomRightRadius: 0
|
|
79
|
-
},
|
|
80
72
|
[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {
|
|
81
73
|
borderTop: 0,
|
|
82
74
|
marginTop: 0
|
|
83
75
|
}
|
|
84
76
|
})
|
|
77
|
+
}, ownerState.orientation === 'horizontal' ? {
|
|
78
|
+
[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {
|
|
79
|
+
borderTopRightRadius: 0,
|
|
80
|
+
borderBottomRightRadius: 0
|
|
81
|
+
},
|
|
82
|
+
[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {
|
|
83
|
+
marginLeft: -1,
|
|
84
|
+
borderLeft: '1px solid transparent',
|
|
85
|
+
borderTopLeftRadius: 0,
|
|
86
|
+
borderBottomLeftRadius: 0
|
|
87
|
+
}
|
|
88
|
+
} : {
|
|
89
|
+
[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {
|
|
90
|
+
borderBottomLeftRadius: 0,
|
|
91
|
+
borderBottomRightRadius: 0
|
|
92
|
+
},
|
|
93
|
+
[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {
|
|
94
|
+
marginTop: -1,
|
|
95
|
+
borderTop: '1px solid transparent',
|
|
96
|
+
borderTopLeftRadius: 0,
|
|
97
|
+
borderTopRightRadius: 0
|
|
98
|
+
}
|
|
99
|
+
}, ownerState.orientation === 'horizontal' ? {
|
|
100
|
+
[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {
|
|
101
|
+
borderLeft: '1px solid transparent'
|
|
102
|
+
}
|
|
103
|
+
} : {
|
|
104
|
+
[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {
|
|
105
|
+
borderTop: '1px solid transparent'
|
|
106
|
+
}
|
|
85
107
|
}));
|
|
86
108
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGroup(inProps, ref) {
|
|
87
109
|
const props = useThemeProps({
|
|
@@ -108,7 +130,7 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
|
|
|
108
130
|
size
|
|
109
131
|
});
|
|
110
132
|
const classes = useUtilityClasses(ownerState);
|
|
111
|
-
const handleChange = (event, buttonValue) => {
|
|
133
|
+
const handleChange = React.useCallback((event, buttonValue) => {
|
|
112
134
|
if (!onChange) {
|
|
113
135
|
return;
|
|
114
136
|
}
|
|
@@ -121,12 +143,37 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
|
|
|
121
143
|
newValue = value ? value.concat(buttonValue) : [buttonValue];
|
|
122
144
|
}
|
|
123
145
|
onChange(event, newValue);
|
|
124
|
-
};
|
|
125
|
-
const handleExclusiveChange = (event, buttonValue) => {
|
|
146
|
+
}, [onChange, value]);
|
|
147
|
+
const handleExclusiveChange = React.useCallback((event, buttonValue) => {
|
|
126
148
|
if (!onChange) {
|
|
127
149
|
return;
|
|
128
150
|
}
|
|
129
151
|
onChange(event, value === buttonValue ? null : buttonValue);
|
|
152
|
+
}, [onChange, value]);
|
|
153
|
+
const context = React.useMemo(() => ({
|
|
154
|
+
className: classes.grouped,
|
|
155
|
+
onChange: exclusive ? handleExclusiveChange : handleChange,
|
|
156
|
+
value,
|
|
157
|
+
size,
|
|
158
|
+
fullWidth,
|
|
159
|
+
color,
|
|
160
|
+
disabled
|
|
161
|
+
}), [classes.grouped, exclusive, handleExclusiveChange, handleChange, value, size, fullWidth, color, disabled]);
|
|
162
|
+
const validChildren = getValidReactChildren(children);
|
|
163
|
+
const childrenCount = validChildren.length;
|
|
164
|
+
const getButtonPositionClassName = index => {
|
|
165
|
+
const isFirstButton = index === 0;
|
|
166
|
+
const isLastButton = index === childrenCount - 1;
|
|
167
|
+
if (isFirstButton && isLastButton) {
|
|
168
|
+
return '';
|
|
169
|
+
}
|
|
170
|
+
if (isFirstButton) {
|
|
171
|
+
return classes.firstButton;
|
|
172
|
+
}
|
|
173
|
+
if (isLastButton) {
|
|
174
|
+
return classes.lastButton;
|
|
175
|
+
}
|
|
176
|
+
return classes.middleButton;
|
|
130
177
|
};
|
|
131
178
|
return /*#__PURE__*/_jsx(ToggleButtonGroupRoot, _extends({
|
|
132
179
|
role: "group",
|
|
@@ -134,32 +181,27 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
|
|
|
134
181
|
ref: ref,
|
|
135
182
|
ownerState: ownerState
|
|
136
183
|
}, other, {
|
|
137
|
-
children:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
184
|
+
children: /*#__PURE__*/_jsx(ToggleButtonGroupContext.Provider, {
|
|
185
|
+
value: context,
|
|
186
|
+
children: validChildren.map((child, index) => {
|
|
187
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
188
|
+
if (isFragment(child)) {
|
|
189
|
+
console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
190
|
+
}
|
|
144
191
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
size: child.props.size || size,
|
|
151
|
-
fullWidth,
|
|
152
|
-
color: child.props.color || color,
|
|
153
|
-
disabled: child.props.disabled || disabled
|
|
154
|
-
});
|
|
192
|
+
return /*#__PURE__*/_jsx(ToggleButtonGroupButtonContext.Provider, {
|
|
193
|
+
value: getButtonPositionClassName(index),
|
|
194
|
+
children: child
|
|
195
|
+
}, index);
|
|
196
|
+
})
|
|
155
197
|
})
|
|
156
198
|
}));
|
|
157
199
|
});
|
|
158
200
|
process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-proptypes */ = {
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
//
|
|
162
|
-
//
|
|
201
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
202
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
203
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
204
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
163
205
|
/**
|
|
164
206
|
* The content of the component.
|
|
165
207
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @ignore - internal component.
|
|
4
|
+
*/
|
|
5
|
+
const ToggleButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);
|
|
6
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7
|
+
ToggleButtonGroupButtonContext.displayName = 'ToggleButtonGroupButtonContext';
|
|
8
|
+
}
|
|
9
|
+
export default ToggleButtonGroupButtonContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @ignore - internal component.
|
|
4
|
+
*/
|
|
5
|
+
const ToggleButtonGroupContext = /*#__PURE__*/React.createContext({});
|
|
6
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7
|
+
ToggleButtonGroupContext.displayName = 'ToggleButtonGroupContext';
|
|
8
|
+
}
|
|
9
|
+
export default ToggleButtonGroupContext;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getToggleButtonGroupUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiToggleButtonGroup', slot);
|
|
5
5
|
}
|
|
6
|
-
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth']);
|
|
6
|
+
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
|
|
7
7
|
export default toggleButtonGroupClasses;
|
|
@@ -77,10 +77,10 @@ const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
|
77
77
|
}, other));
|
|
78
78
|
});
|
|
79
79
|
process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */ = {
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
//
|
|
80
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
81
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
82
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
83
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
84
84
|
/**
|
|
85
85
|
* The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
|
|
86
86
|
* The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.
|
|
@@ -584,10 +584,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */ = {
|
|
587
|
-
//
|
|
588
|
-
//
|
|
589
|
-
//
|
|
590
|
-
//
|
|
587
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
588
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
589
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
590
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
591
591
|
/**
|
|
592
592
|
* If `true`, adds an arrow to the tooltip.
|
|
593
593
|
* @default false
|
|
@@ -121,10 +121,10 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
121
121
|
}, other));
|
|
122
122
|
});
|
|
123
123
|
process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes */ = {
|
|
124
|
-
//
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
124
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
125
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
126
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
127
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
128
128
|
/**
|
|
129
129
|
* Set the text-align on the component.
|
|
130
130
|
* @default 'inherit'
|
|
@@ -16,10 +16,10 @@ const Grid2 = createGrid2({
|
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
process.env.NODE_ENV !== "production" ? Grid2.propTypes /* remove-proptypes */ = {
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
19
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
20
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
21
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
22
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
23
23
|
/**
|
|
24
24
|
* The content of the component.
|
|
25
25
|
*/
|
package/modern/Zoom/Zoom.js
CHANGED
|
@@ -128,10 +128,10 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
|
|
|
128
128
|
}));
|
|
129
129
|
});
|
|
130
130
|
process.env.NODE_ENV !== "production" ? Zoom.propTypes /* remove-proptypes */ = {
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
//
|
|
134
|
-
//
|
|
131
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
132
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
133
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
134
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
135
135
|
/**
|
|
136
136
|
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
137
137
|
* node and a done callback. Allows for more fine grained transition end
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
// do not remove the following import (https://github.com/microsoft/TypeScript/issues/29808#issuecomment-1320713018)
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
// @ts-ignore
|
|
3
6
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
7
|
import { unstable_createCssVarsProvider as createCssVarsProvider, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';
|
|
5
8
|
import experimental_extendTheme from './experimental_extendTheme';
|
package/modern/styles/index.js
CHANGED
|
@@ -33,4 +33,5 @@ export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar';
|
|
|
33
33
|
|
|
34
34
|
// Private methods for creating parts of the theme
|
|
35
35
|
export { default as private_createTypography } from './createTypography';
|
|
36
|
+
export { default as private_createMixins } from './createMixins';
|
|
36
37
|
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
|
@@ -188,10 +188,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
188
188
|
}));
|
|
189
189
|
});
|
|
190
190
|
process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes */ = {
|
|
191
|
-
//
|
|
192
|
-
//
|
|
193
|
-
//
|
|
194
|
-
//
|
|
191
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
192
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
193
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
194
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
195
195
|
/**
|
|
196
196
|
* The content of the component.
|
|
197
197
|
*/
|
|
@@ -71,10 +71,10 @@ const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions
|
|
|
71
71
|
}, other));
|
|
72
72
|
});
|
|
73
73
|
process.env.NODE_ENV !== "production" ? AccordionActions.propTypes /* remove-proptypes */ = {
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
74
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
75
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
76
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
77
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
78
78
|
/**
|
|
79
79
|
* The content of the component.
|
|
80
80
|
*/
|
|
@@ -55,10 +55,10 @@ const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails
|
|
|
55
55
|
}, other));
|
|
56
56
|
});
|
|
57
57
|
process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes /* remove-proptypes */ = {
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
58
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
59
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
60
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
61
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
62
62
|
/**
|
|
63
63
|
* The content of the component.
|
|
64
64
|
*/
|
|
@@ -160,10 +160,10 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
160
160
|
}));
|
|
161
161
|
});
|
|
162
162
|
process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes /* remove-proptypes */ = {
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
163
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
164
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
165
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
166
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
167
167
|
/**
|
|
168
168
|
* The content of the component.
|
|
169
169
|
*/
|
package/node/Alert/Alert.js
CHANGED
|
@@ -205,10 +205,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
205
205
|
}));
|
|
206
206
|
});
|
|
207
207
|
process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ = {
|
|
208
|
-
//
|
|
209
|
-
//
|
|
210
|
-
//
|
|
211
|
-
//
|
|
208
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
209
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
210
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
211
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
212
212
|
/**
|
|
213
213
|
* The action to display. It renders after the message, at the end of the alert.
|
|
214
214
|
*/
|
|
@@ -61,10 +61,10 @@ const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, re
|
|
|
61
61
|
}, other));
|
|
62
62
|
});
|
|
63
63
|
process.env.NODE_ENV !== "production" ? AlertTitle.propTypes /* remove-proptypes */ = {
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
64
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
65
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
66
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
67
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
68
68
|
/**
|
|
69
69
|
* The content of the component.
|
|
70
70
|
*/
|
package/node/AppBar/AppBar.js
CHANGED
|
@@ -143,10 +143,10 @@ const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
|
|
143
143
|
}, other));
|
|
144
144
|
});
|
|
145
145
|
process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */ = {
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
146
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
147
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
148
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
149
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
150
150
|
/**
|
|
151
151
|
* The content of the component.
|
|
152
152
|
*/
|
|
@@ -667,10 +667,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
|
|
670
|
-
//
|
|
671
|
-
//
|
|
672
|
-
//
|
|
673
|
-
//
|
|
670
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
671
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
672
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
673
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
674
674
|
/**
|
|
675
675
|
* If `true`, the portion of the selected suggestion that the user hasn't typed,
|
|
676
676
|
* known as the completion string, appears inline after the input cursor in the textbox.
|
package/node/Avatar/Avatar.js
CHANGED
|
@@ -192,10 +192,10 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
194
194
|
process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
//
|
|
198
|
-
//
|
|
195
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
196
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
197
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
198
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
199
199
|
/**
|
|
200
200
|
* Used in combination with `src` or `srcSet` to
|
|
201
201
|
* provide an alt attribute for the rendered `img` element.
|
|
@@ -144,10 +144,10 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
144
144
|
}));
|
|
145
145
|
});
|
|
146
146
|
process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptypes */ = {
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
147
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
148
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
149
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
150
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
151
151
|
/**
|
|
152
152
|
* The avatars to stack.
|
|
153
153
|
*/
|
|
@@ -98,10 +98,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
98
98
|
}));
|
|
99
99
|
});
|
|
100
100
|
process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes */ = {
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
101
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
102
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
103
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
104
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
105
105
|
/**
|
|
106
106
|
* The content of the component.
|
|
107
107
|
*/
|