@mui/material 5.0.4 → 5.0.5
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 -1
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.js +1 -1
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.js +14 -10
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.js +3 -3
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.js +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Button/Button.js +1 -1
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/CHANGELOG.md +79 -0
- package/Card/Card.js +1 -1
- package/CardActionArea/CardActionArea.js +1 -1
- package/CardActions/CardActions.js +1 -1
- package/CardContent/CardContent.js +1 -1
- package/CardHeader/CardHeader.js +1 -1
- package/CardMedia/CardMedia.js +2 -2
- package/Checkbox/Checkbox.js +1 -1
- package/Chip/Chip.js +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/ClickAwayListener/index.d.ts +2 -2
- package/ClickAwayListener/index.js +2 -2
- package/Collapse/Collapse.js +1 -1
- package/Container/Container.js +1 -1
- package/Dialog/Dialog.js +1 -1
- package/DialogActions/DialogActions.js +1 -1
- package/DialogContent/DialogContent.js +3 -2
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogTitle/DialogTitle.js +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +1 -1
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormGroup/FormGroup.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/Grid/Grid.js +6 -3
- package/Icon/Icon.js +1 -1
- package/IconButton/IconButton.js +1 -1
- package/ImageList/ImageList.js +1 -1
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/Input/Input.js +1 -1
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.js +4 -9
- package/InputLabel/InputLabel.js +1 -1
- package/LinearProgress/LinearProgress.js +1 -1
- package/Link/Link.js +1 -1
- package/List/List.js +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemButton/ListItemButton.js +1 -1
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemText/ListItemText.js +1 -1
- package/ListSubheader/ListSubheader.js +1 -1
- package/Menu/Menu.js +1 -1
- package/MenuItem/MenuItem.js +5 -2
- package/MobileStepper/MobileStepper.js +1 -1
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.js +1 -1
- package/Popper/index.d.ts +2 -2
- package/Popper/index.js +1 -1
- package/Radio/Radio.js +1 -1
- package/Rating/Rating.js +1 -1
- package/Select/Select.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbar/Snackbar.js +2 -2
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/Stack/Stack.js +1 -1
- package/Step/Step.js +1 -1
- package/StepButton/StepButton.js +1 -1
- package/StepConnector/StepConnector.js +1 -1
- package/StepContent/StepContent.js +1 -1
- package/StepIcon/StepIcon.js +1 -1
- package/StepLabel/StepLabel.js +1 -1
- package/Stepper/Stepper.js +1 -1
- package/SvgIcon/SvgIcon.js +1 -1
- package/Switch/Switch.js +1 -1
- package/Tab/Tab.d.ts +6 -0
- package/Tab/Tab.js +27 -7
- package/TabScrollButton/TabScrollButton.js +1 -1
- package/Table/Table.js +1 -1
- package/TableBody/TableBody.js +1 -1
- package/TableCell/TableCell.js +1 -1
- package/TableContainer/TableContainer.js +1 -1
- package/TableFooter/TableFooter.js +1 -1
- package/TableHead/TableHead.js +1 -1
- package/TablePagination/TablePagination.js +1 -1
- package/TableRow/TableRow.js +1 -1
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/Tabs/Tabs.js +1 -1
- package/TextField/TextField.js +1 -1
- package/TextareaAutosize/index.d.ts +2 -2
- package/TextareaAutosize/index.js +1 -1
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +4 -4
- package/Typography/Typography.js +1 -1
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +1 -1
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +33 -32
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +3 -3
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +1 -1
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/Card/Card.js +1 -1
- package/legacy/CardActionArea/CardActionArea.js +1 -1
- package/legacy/CardActions/CardActions.js +1 -1
- package/legacy/CardContent/CardContent.js +1 -1
- package/legacy/CardHeader/CardHeader.js +1 -1
- package/legacy/CardMedia/CardMedia.js +2 -2
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/Chip/Chip.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ClickAwayListener/index.js +2 -2
- package/legacy/Collapse/Collapse.js +1 -1
- package/legacy/Container/Container.js +1 -1
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +6 -6
- package/legacy/DialogContentText/DialogContentText.js +1 -1
- package/legacy/DialogTitle/DialogTitle.js +1 -1
- package/legacy/Divider/Divider.js +1 -1
- package/legacy/Drawer/Drawer.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormGroup/FormGroup.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +1 -1
- package/legacy/FormLabel/FormLabel.js +1 -1
- package/legacy/Grid/Grid.js +6 -4
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/ImageList/ImageList.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +1 -1
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +4 -9
- package/legacy/InputLabel/InputLabel.js +1 -1
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/Link/Link.js +1 -1
- package/legacy/List/List.js +1 -1
- package/legacy/ListItem/ListItem.js +1 -1
- package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
- package/legacy/ListItemButton/ListItemButton.js +1 -1
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/legacy/ListItemText/ListItemText.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +1 -1
- package/legacy/Menu/Menu.js +1 -1
- package/legacy/MenuItem/MenuItem.js +5 -2
- package/legacy/MobileStepper/MobileStepper.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/NativeSelect/NativeSelect.js +1 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +1 -1
- package/legacy/Popper/index.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +2 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/Stack/Stack.js +1 -1
- package/legacy/Step/Step.js +1 -1
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepConnector/StepConnector.js +1 -1
- package/legacy/StepContent/StepContent.js +1 -1
- package/legacy/StepIcon/StepIcon.js +1 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/Stepper/Stepper.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/Switch/Switch.js +1 -1
- package/legacy/Tab/Tab.js +28 -7
- package/legacy/TabScrollButton/TabScrollButton.js +1 -1
- package/legacy/Table/Table.js +1 -1
- package/legacy/TableBody/TableBody.js +1 -1
- package/legacy/TableCell/TableCell.js +1 -1
- package/legacy/TableContainer/TableContainer.js +1 -1
- package/legacy/TableFooter/TableFooter.js +1 -1
- package/legacy/TableHead/TableHead.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +1 -1
- package/legacy/TableSortLabel/TableSortLabel.js +1 -1
- package/legacy/Tabs/Tabs.js +1 -1
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/TextareaAutosize/index.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +4 -4
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/index.js +1 -1
- package/legacy/utils/index.js +2 -1
- package/modern/Accordion/Accordion.js +1 -1
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +14 -10
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +3 -3
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/ButtonBase/ButtonBase.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/Card/Card.js +1 -1
- package/modern/CardActionArea/CardActionArea.js +1 -1
- package/modern/CardActions/CardActions.js +1 -1
- package/modern/CardContent/CardContent.js +1 -1
- package/modern/CardHeader/CardHeader.js +1 -1
- package/modern/CardMedia/CardMedia.js +2 -2
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Chip/Chip.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ClickAwayListener/index.js +2 -2
- package/modern/Collapse/Collapse.js +1 -1
- package/modern/Container/Container.js +1 -1
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +3 -2
- package/modern/DialogContentText/DialogContentText.js +1 -1
- package/modern/DialogTitle/DialogTitle.js +1 -1
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormGroup/FormGroup.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +1 -1
- package/modern/FormLabel/FormLabel.js +1 -1
- package/modern/Grid/Grid.js +6 -3
- package/modern/Icon/Icon.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/ImageList/ImageList.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +1 -1
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +4 -9
- package/modern/InputLabel/InputLabel.js +1 -1
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/Link/Link.js +1 -1
- package/modern/List/List.js +1 -1
- package/modern/ListItem/ListItem.js +1 -1
- package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
- package/modern/ListItemButton/ListItemButton.js +1 -1
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/modern/ListItemText/ListItemText.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +1 -1
- package/modern/Menu/Menu.js +1 -1
- package/modern/MenuItem/MenuItem.js +5 -2
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/NativeSelect/NativeSelect.js +1 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +1 -1
- package/modern/Popper/index.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +2 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/Stack/Stack.js +1 -1
- package/modern/Step/Step.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/StepConnector/StepConnector.js +1 -1
- package/modern/StepContent/StepContent.js +1 -1
- package/modern/StepIcon/StepIcon.js +1 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/Stepper/Stepper.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/Switch/Switch.js +1 -1
- package/modern/Tab/Tab.js +27 -7
- package/modern/TabScrollButton/TabScrollButton.js +1 -1
- package/modern/Table/Table.js +1 -1
- package/modern/TableBody/TableBody.js +1 -1
- package/modern/TableCell/TableCell.js +1 -1
- package/modern/TableContainer/TableContainer.js +1 -1
- package/modern/TableFooter/TableFooter.js +1 -1
- package/modern/TableHead/TableHead.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +1 -1
- package/modern/TableSortLabel/TableSortLabel.js +1 -1
- package/modern/Tabs/Tabs.js +1 -1
- package/modern/TextField/TextField.js +1 -1
- package/modern/TextareaAutosize/index.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +3 -3
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/index.js +1 -1
- package/modern/utils/index.js +2 -1
- package/node/Accordion/Accordion.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +18 -10
- package/node/Avatar/Avatar.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +3 -3
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +1 -1
- package/node/Card/Card.js +1 -1
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardHeader/CardHeader.js +1 -1
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Chip/Chip.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ClickAwayListener/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Container/Container.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogContent/DialogContent.js +4 -2
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/Grid/Grid.js +6 -3
- package/node/Icon/Icon.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +4 -11
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/List/List.js +1 -1
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/MenuItem/MenuItem.js +5 -2
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Popover/Popover.js +1 -1
- package/node/Popper/index.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +3 -3
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/Stack/Stack.js +1 -1
- package/node/Step/Step.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Tab/Tab.js +27 -7
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextareaAutosize/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Tooltip/Tooltip.js +4 -4
- package/node/Typography/Typography.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/index.js +12 -0
- package/node/utils/index.js +9 -1
- package/package.json +5 -6
- package/styles/components.d.ts +0 -3
- package/styles/index.d.ts +4 -0
- package/styles/index.js +1 -1
- package/umd/material-ui.development.js +7835 -7748
- package/umd/material-ui.production.min.js +21 -21
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -1
- package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
- package/ClickAwayListener/ClickAwayListener.js +0 -196
- package/Popper/Popper.d.ts +0 -97
- package/Popper/Popper.js +0 -354
- package/TextareaAutosize/TextareaAutosize.d.ts +0 -27
- package/TextareaAutosize/TextareaAutosize.js +0 -224
- package/legacy/ClickAwayListener/ClickAwayListener.js +0 -199
- package/legacy/Popper/Popper.js +0 -359
- package/legacy/TextareaAutosize/TextareaAutosize.js +0 -226
- package/modern/ClickAwayListener/ClickAwayListener.js +0 -196
- package/modern/Popper/Popper.js +0 -354
- package/modern/TextareaAutosize/TextareaAutosize.js +0 -224
- package/node/ClickAwayListener/ClickAwayListener.js +0 -216
- package/node/Popper/Popper.js +0 -378
- package/node/TextareaAutosize/TextareaAutosize.js +0 -245
package/utils/index.d.ts
CHANGED
|
@@ -15,3 +15,4 @@ export { default as useControlled } from './useControlled';
|
|
|
15
15
|
export { default as useEventCallback } from './useEventCallback';
|
|
16
16
|
export { default as useForkRef } from './useForkRef';
|
|
17
17
|
export { default as useIsFocusVisible } from './useIsFocusVisible';
|
|
18
|
+
export { unstable_ClassNameGenerator } from '@mui/core';
|
package/utils/index.js
CHANGED
|
@@ -14,4 +14,5 @@ export { default as unsupportedProp } from './unsupportedProp';
|
|
|
14
14
|
export { default as useControlled } from './useControlled';
|
|
15
15
|
export { default as useEventCallback } from './useEventCallback';
|
|
16
16
|
export { default as useForkRef } from './useForkRef';
|
|
17
|
-
export { default as useIsFocusVisible } from './useIsFocusVisible';
|
|
17
|
+
export { default as useIsFocusVisible } from './useIsFocusVisible';
|
|
18
|
+
export { unstable_ClassNameGenerator } from '@mui/core';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type ClickAwayMouseEventHandler = 'onClick' | 'onMouseDown' | 'onMouseUp';
|
|
3
|
-
declare type ClickAwayTouchEventHandler = 'onTouchStart' | 'onTouchEnd';
|
|
4
|
-
export interface ClickAwayListenerProps {
|
|
5
|
-
/**
|
|
6
|
-
* The wrapped element.
|
|
7
|
-
*/
|
|
8
|
-
children: React.ReactElement;
|
|
9
|
-
/**
|
|
10
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
11
|
-
* This prop changes how portaled elements are handled.
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
disableReactTree?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
17
|
-
* @default 'onClick'
|
|
18
|
-
*/
|
|
19
|
-
mouseEvent?: ClickAwayMouseEventHandler | false;
|
|
20
|
-
/**
|
|
21
|
-
* Callback fired when a "click away" event is detected.
|
|
22
|
-
*/
|
|
23
|
-
onClickAway: (event: MouseEvent | TouchEvent) => void;
|
|
24
|
-
/**
|
|
25
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
26
|
-
* @default 'onTouchEnd'
|
|
27
|
-
*/
|
|
28
|
-
touchEvent?: ClickAwayTouchEventHandler | false;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
32
|
-
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
33
|
-
*
|
|
34
|
-
* Demos:
|
|
35
|
-
*
|
|
36
|
-
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
37
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
38
|
-
*
|
|
39
|
-
* API:
|
|
40
|
-
*
|
|
41
|
-
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
42
|
-
*/
|
|
43
|
-
declare function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element;
|
|
44
|
-
declare namespace ClickAwayListener {
|
|
45
|
-
var propTypes: any;
|
|
46
|
-
}
|
|
47
|
-
export default ClickAwayListener;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { elementAcceptingRef, exactProp } from '@mui/utils';
|
|
4
|
-
import ownerDocument from '../utils/ownerDocument';
|
|
5
|
-
import useForkRef from '../utils/useForkRef';
|
|
6
|
-
import useEventCallback from '../utils/useEventCallback'; // TODO: return `EventHandlerName extends `on${infer EventName}` ? Lowercase<EventName> : never` once generatePropTypes runs with TS 4.1
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
function mapEventPropToEvent(eventProp) {
|
|
11
|
-
return eventProp.substring(2).toLowerCase();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function clickedRootScrollbar(event, doc) {
|
|
15
|
-
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
20
|
-
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
21
|
-
*
|
|
22
|
-
* Demos:
|
|
23
|
-
*
|
|
24
|
-
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
25
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
26
|
-
*
|
|
27
|
-
* API:
|
|
28
|
-
*
|
|
29
|
-
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
30
|
-
*/
|
|
31
|
-
function ClickAwayListener(props) {
|
|
32
|
-
const {
|
|
33
|
-
children,
|
|
34
|
-
disableReactTree = false,
|
|
35
|
-
mouseEvent = 'onClick',
|
|
36
|
-
onClickAway,
|
|
37
|
-
touchEvent = 'onTouchEnd'
|
|
38
|
-
} = props;
|
|
39
|
-
const movedRef = React.useRef(false);
|
|
40
|
-
const nodeRef = React.useRef(null);
|
|
41
|
-
const activatedRef = React.useRef(false);
|
|
42
|
-
const syntheticEventRef = React.useRef(false);
|
|
43
|
-
React.useEffect(() => {
|
|
44
|
-
// Ensure that this component is not "activated" synchronously.
|
|
45
|
-
// https://github.com/facebook/react/issues/20074
|
|
46
|
-
setTimeout(() => {
|
|
47
|
-
activatedRef.current = true;
|
|
48
|
-
}, 0);
|
|
49
|
-
return () => {
|
|
50
|
-
activatedRef.current = false;
|
|
51
|
-
};
|
|
52
|
-
}, []);
|
|
53
|
-
const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
|
|
54
|
-
children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
|
|
55
|
-
//
|
|
56
|
-
// event.preventDefault() is meant to stop default behaviors like
|
|
57
|
-
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
58
|
-
// and hitting left arrow to move the cursor in a text input etc.
|
|
59
|
-
// Only special HTML elements have these default behaviors.
|
|
60
|
-
|
|
61
|
-
const handleClickAway = useEventCallback(event => {
|
|
62
|
-
// Given developers can stop the propagation of the synthetic event,
|
|
63
|
-
// we can only be confident with a positive value.
|
|
64
|
-
const insideReactTree = syntheticEventRef.current;
|
|
65
|
-
syntheticEventRef.current = false;
|
|
66
|
-
const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
|
|
67
|
-
// 2. The child might render null.
|
|
68
|
-
// 3. Behave like a blur listener.
|
|
69
|
-
|
|
70
|
-
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
|
71
|
-
return;
|
|
72
|
-
} // Do not act if user performed touchmove
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (movedRef.current) {
|
|
76
|
-
movedRef.current = false;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
|
81
|
-
|
|
82
|
-
if (event.composedPath) {
|
|
83
|
-
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
|
84
|
-
} else {
|
|
85
|
-
insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
86
|
-
event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
87
|
-
event.target);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
91
|
-
onClickAway(event);
|
|
92
|
-
}
|
|
93
|
-
}); // Keep track of mouse/touch events that bubbled up through the portal.
|
|
94
|
-
|
|
95
|
-
const createHandleSynthetic = handlerName => event => {
|
|
96
|
-
syntheticEventRef.current = true;
|
|
97
|
-
const childrenPropsHandler = children.props[handlerName];
|
|
98
|
-
|
|
99
|
-
if (childrenPropsHandler) {
|
|
100
|
-
childrenPropsHandler(event);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const childrenProps = {
|
|
105
|
-
ref: handleRef
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
if (touchEvent !== false) {
|
|
109
|
-
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
React.useEffect(() => {
|
|
113
|
-
if (touchEvent !== false) {
|
|
114
|
-
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
115
|
-
const doc = ownerDocument(nodeRef.current);
|
|
116
|
-
|
|
117
|
-
const handleTouchMove = () => {
|
|
118
|
-
movedRef.current = true;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
122
|
-
doc.addEventListener('touchmove', handleTouchMove);
|
|
123
|
-
return () => {
|
|
124
|
-
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
125
|
-
doc.removeEventListener('touchmove', handleTouchMove);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return undefined;
|
|
130
|
-
}, [handleClickAway, touchEvent]);
|
|
131
|
-
|
|
132
|
-
if (mouseEvent !== false) {
|
|
133
|
-
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
React.useEffect(() => {
|
|
137
|
-
if (mouseEvent !== false) {
|
|
138
|
-
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
139
|
-
const doc = ownerDocument(nodeRef.current);
|
|
140
|
-
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
141
|
-
return () => {
|
|
142
|
-
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return undefined;
|
|
147
|
-
}, [handleClickAway, mouseEvent]);
|
|
148
|
-
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
149
|
-
children: /*#__PURE__*/React.cloneElement(children, childrenProps)
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
process.env.NODE_ENV !== "production" ? ClickAwayListener.propTypes
|
|
154
|
-
/* remove-proptypes */
|
|
155
|
-
= {
|
|
156
|
-
// ----------------------------- Warning --------------------------------
|
|
157
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
158
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
159
|
-
// ----------------------------------------------------------------------
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The wrapped element.
|
|
163
|
-
*/
|
|
164
|
-
children: elementAcceptingRef.isRequired,
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
168
|
-
* This prop changes how portaled elements are handled.
|
|
169
|
-
* @default false
|
|
170
|
-
*/
|
|
171
|
-
disableReactTree: PropTypes.bool,
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
175
|
-
* @default 'onClick'
|
|
176
|
-
*/
|
|
177
|
-
mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Callback fired when a "click away" event is detected.
|
|
181
|
-
*/
|
|
182
|
-
onClickAway: PropTypes.func.isRequired,
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
186
|
-
* @default 'onTouchEnd'
|
|
187
|
-
*/
|
|
188
|
-
touchEvent: PropTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
|
189
|
-
} : void 0;
|
|
190
|
-
|
|
191
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
192
|
-
// eslint-disable-next-line
|
|
193
|
-
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export default ClickAwayListener;
|
package/Popper/Popper.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Instance, VirtualElement, Options, OptionsGeneric } from '@popperjs/core';
|
|
3
|
-
import { PortalProps } from '../Portal';
|
|
4
|
-
|
|
5
|
-
export type PopperPlacementType = Options['placement'];
|
|
6
|
-
|
|
7
|
-
export interface PopperProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
-
/**
|
|
10
|
-
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
11
|
-
* or a function that returns either.
|
|
12
|
-
* It's used to set the position of the popper.
|
|
13
|
-
* The return value will passed as the reference object of the Popper instance.
|
|
14
|
-
*/
|
|
15
|
-
anchorEl?: null | VirtualElement | (() => VirtualElement);
|
|
16
|
-
/**
|
|
17
|
-
* Popper render function or node.
|
|
18
|
-
*/
|
|
19
|
-
children?:
|
|
20
|
-
| React.ReactNode
|
|
21
|
-
| ((props: {
|
|
22
|
-
placement: PopperPlacementType;
|
|
23
|
-
TransitionProps?: {
|
|
24
|
-
in: boolean;
|
|
25
|
-
onEnter: () => {};
|
|
26
|
-
onExited: () => {};
|
|
27
|
-
};
|
|
28
|
-
}) => React.ReactNode);
|
|
29
|
-
/**
|
|
30
|
-
* An HTML element or function that returns one.
|
|
31
|
-
* The `container` will have the portal children appended to it.
|
|
32
|
-
*
|
|
33
|
-
* By default, it uses the body of the top-level document object,
|
|
34
|
-
* so it's simply `document.body` most of the time.
|
|
35
|
-
*/
|
|
36
|
-
container?: PortalProps['container'];
|
|
37
|
-
/**
|
|
38
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
disablePortal?: PortalProps['disablePortal'];
|
|
42
|
-
/**
|
|
43
|
-
* Always keep the children in the DOM.
|
|
44
|
-
* This prop can be useful in SEO situation or
|
|
45
|
-
* when you want to maximize the responsiveness of the Popper.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
keepMounted?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Popper.js is based on a "plugin-like" architecture,
|
|
51
|
-
* most of its features are fully encapsulated "modifiers".
|
|
52
|
-
*
|
|
53
|
-
* A modifier is a function that is called each time Popper.js needs to
|
|
54
|
-
* compute the position of the popper.
|
|
55
|
-
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
56
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
57
|
-
*/
|
|
58
|
-
modifiers?: Options['modifiers'];
|
|
59
|
-
/**
|
|
60
|
-
* If `true`, the component is shown.
|
|
61
|
-
*/
|
|
62
|
-
open: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Popper placement.
|
|
65
|
-
* @default 'bottom'
|
|
66
|
-
*/
|
|
67
|
-
placement?: PopperPlacementType;
|
|
68
|
-
/**
|
|
69
|
-
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
70
|
-
* @default {}
|
|
71
|
-
*/
|
|
72
|
-
popperOptions?: Partial<OptionsGeneric<any>>;
|
|
73
|
-
/**
|
|
74
|
-
* A ref that points to the used popper instance.
|
|
75
|
-
*/
|
|
76
|
-
popperRef?: React.Ref<Instance>;
|
|
77
|
-
/**
|
|
78
|
-
* Help supporting a react-transition-group/Transition component.
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
transition?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.
|
|
86
|
-
*
|
|
87
|
-
* Demos:
|
|
88
|
-
*
|
|
89
|
-
* - [Autocomplete](https://mui.com/components/autocomplete/)
|
|
90
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
91
|
-
* - [Popper](https://mui.com/components/popper/)
|
|
92
|
-
*
|
|
93
|
-
* API:
|
|
94
|
-
*
|
|
95
|
-
* - [Popper API](https://mui.com/api/popper/)
|
|
96
|
-
*/
|
|
97
|
-
export default function Popper(props: PopperProps): JSX.Element;
|