@mui/material 5.0.3 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +1 -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.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +18 -11
- 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/Box/Box.d.ts +18 -2
- package/Box/Box.js +4 -1
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Button/Button.js +40 -9
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonGroup/ButtonGroup.js +23 -27
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -0
- package/ButtonGroup/ButtonGroupContext.js +12 -0
- package/CHANGELOG.md +274 -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 +6 -5
- 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/CssBaseline/CssBaseline.d.ts +7 -0
- package/CssBaseline/CssBaseline.js +20 -12
- package/Dialog/Dialog.d.ts +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/Fade/Fade.d.ts +1 -1
- package/Fade/Fade.js +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +2 -2
- package/FormControlLabel/FormControlLabel.js +3 -3
- package/FormGroup/FormGroup.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/Grid/Grid.d.ts +31 -11
- package/Grid/Grid.js +61 -26
- package/Grow/Grow.d.ts +1 -1
- package/Grow/Grow.js +1 -1
- 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 +6 -12
- 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.d.ts +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemButton/ListItemButton.d.ts +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/NotchedOutline.js +6 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +15 -0
- package/PaginationItem/PaginationItem.js +35 -14
- package/Paper/Paper.js +1 -1
- package/Popover/Popover.d.ts +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/RadioGroup/RadioGroupContext.d.ts +11 -0
- package/RadioGroup/RadioGroupContext.js +2 -2
- package/RadioGroup/useRadioGroup.d.ts +4 -5
- package/Rating/Rating.js +1 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/Select/Select.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slide/Slide.js +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- 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 +5 -2
- 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 +34 -10
- package/Tab/tabClasses.d.ts +2 -0
- package/Tab/tabClasses.js +1 -1
- 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 +5 -3
- package/Tooltip/Tooltip.js +7 -5
- package/Typography/Typography.js +1 -1
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +1 -1
- package/index.d.ts +3 -0
- 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 +35 -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/Box/Box.js +4 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +40 -16
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +25 -27
- package/legacy/ButtonGroup/ButtonGroupContext.js +12 -0
- 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 +6 -5
- 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/CssBaseline/CssBaseline.js +38 -20
- 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/Fade/Fade.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -3
- 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 +62 -27
- package/legacy/Grow/Grow.js +1 -1
- 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 +6 -12
- 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/NotchedOutline.js +6 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +36 -14
- 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/RadioGroup/RadioGroupContext.js +2 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +13 -4
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slide/Slide.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 +5 -2
- 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 +35 -10
- package/legacy/Tab/tabClasses.js +1 -1
- 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 +7 -5
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/Zoom/Zoom.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/createPalette.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 +18 -11
- 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/Box/Box.js +4 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +40 -9
- package/modern/ButtonBase/ButtonBase.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +23 -27
- package/modern/ButtonGroup/ButtonGroupContext.js +12 -0
- 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 +6 -5
- 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/CssBaseline/CssBaseline.js +20 -12
- 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/Fade/Fade.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -3
- 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 +61 -26
- package/modern/Grow/Grow.js +1 -1
- 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 +6 -12
- 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/NotchedOutline.js +6 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +35 -14
- 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/RadioGroup/RadioGroupContext.js +2 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slide/Slide.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 +5 -2
- 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 +34 -10
- package/modern/Tab/tabClasses.js +1 -1
- 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 +6 -4
- package/modern/Typography/Typography.js +1 -1
- package/modern/Zoom/Zoom.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createPalette.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/Accordion/accordionClasses.js +1 -1
- package/node/Accordion/index.js +4 -4
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/accordionActionsClasses.js +1 -1
- package/node/AccordionActions/index.js +4 -4
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/accordionDetailsClasses.js +1 -1
- package/node/AccordionDetails/index.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/node/AccordionSummary/index.js +4 -4
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/alertClasses.js +1 -1
- package/node/Alert/index.js +4 -4
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/alertTitleClasses.js +1 -1
- package/node/AlertTitle/index.js +4 -4
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AppBar/index.js +4 -4
- package/node/Autocomplete/Autocomplete.js +22 -11
- package/node/Autocomplete/autocompleteClasses.js +1 -1
- package/node/Autocomplete/index.js +4 -4
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/avatarClasses.js +1 -1
- package/node/Avatar/index.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +3 -3
- package/node/AvatarGroup/avatarGroupClasses.js +1 -1
- package/node/AvatarGroup/index.js +4 -4
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigation/bottomNavigationClasses.js +1 -1
- package/node/BottomNavigation/index.js +4 -4
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -1
- package/node/BottomNavigationAction/index.js +4 -4
- package/node/Box/Box.js +5 -1
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Breadcrumbs/breadcrumbsClasses.js +1 -1
- package/node/Breadcrumbs/index.js +4 -4
- package/node/Button/Button.js +40 -9
- package/node/Button/buttonClasses.js +1 -1
- package/node/Button/index.js +4 -4
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/buttonBaseClasses.js +1 -1
- package/node/ButtonBase/index.js +4 -4
- package/node/ButtonBase/touchRippleClasses.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +24 -28
- package/node/ButtonGroup/ButtonGroupContext.js +24 -0
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +4 -4
- package/node/Card/Card.js +1 -1
- package/node/Card/cardClasses.js +1 -1
- package/node/Card/index.js +4 -4
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActionArea/cardActionAreaClasses.js +1 -1
- package/node/CardActionArea/index.js +4 -4
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardActions/cardActionsClasses.js +1 -1
- package/node/CardActions/index.js +4 -4
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardContent/cardContentClasses.js +1 -1
- package/node/CardContent/index.js +4 -4
- package/node/CardHeader/CardHeader.js +1 -1
- package/node/CardHeader/cardHeaderClasses.js +1 -1
- package/node/CardHeader/index.js +4 -4
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/CardMedia/cardMediaClasses.js +1 -1
- package/node/CardMedia/index.js +4 -4
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/checkboxClasses.js +1 -1
- package/node/Checkbox/index.js +4 -4
- package/node/Chip/Chip.js +6 -5
- package/node/Chip/chipClasses.js +1 -1
- package/node/Chip/index.js +4 -4
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/circularProgressClasses.js +1 -1
- package/node/CircularProgress/index.js +4 -4
- package/node/ClickAwayListener/index.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Collapse/collapseClasses.js +1 -1
- package/node/Collapse/index.js +4 -4
- package/node/Container/Container.js +1 -1
- package/node/Container/containerClasses.js +1 -1
- package/node/Container/index.js +4 -4
- package/node/CssBaseline/CssBaseline.js +23 -13
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/dialogClasses.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/dialogActionsClasses.js +1 -1
- package/node/DialogContent/DialogContent.js +4 -2
- package/node/DialogContent/dialogContentClasses.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/dialogContentTextClasses.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/dialogTitleClasses.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Divider/dividerClasses.js +1 -1
- package/node/Drawer/Drawer.js +3 -3
- package/node/Drawer/drawerClasses.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/fabClasses.js +1 -1
- package/node/Fade/Fade.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/filledInputClasses.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControl/formControlClasses.js +1 -1
- package/node/FormControl/index.js +4 -4
- package/node/FormControlLabel/FormControlLabel.js +3 -3
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/formHelperTextClasses.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/formLabelClasses.js +1 -1
- package/node/Grid/Grid.js +63 -26
- package/node/Grid/gridClasses.js +1 -1
- package/node/Grow/Grow.js +1 -1
- package/node/Hidden/hiddenCssClasses.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/iconClasses.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/iconButtonClasses.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/imageListClasses.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/imageListItemClasses.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/inputClasses.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/inputAdornmentClasses.js +1 -1
- package/node/InputBase/InputBase.js +7 -15
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/InputBase/utils.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/InputLabel/inputLabelClasses.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/linearProgressClasses.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/linkClasses.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/listClasses.js +1 -1
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItem/listItemClasses.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/listItemAvatarClasses.js +1 -1
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemButton/listItemButtonClasses.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/listItemIconClasses.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/listItemTextClasses.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/listSubheaderClasses.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/menuClasses.js +1 -1
- package/node/MenuItem/MenuItem.js +6 -3
- package/node/MenuItem/menuItemClasses.js +1 -1
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/MobileStepper/mobileStepperClasses.js +1 -1
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/nativeSelectClasses.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +6 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/outlinedInputClasses.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/paginationClasses.js +1 -1
- package/node/PaginationItem/PaginationItem.js +35 -14
- package/node/PaginationItem/paginationItemClasses.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/paperClasses.js +1 -1
- package/node/Popover/Popover.js +3 -3
- package/node/Popover/popoverClasses.js +1 -1
- package/node/Popper/index.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/radioClasses.js +1 -1
- package/node/RadioGroup/RadioGroupContext.js +1 -1
- package/node/Rating/Rating.js +1 -2
- package/node/Rating/ratingClasses.js +1 -1
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
- package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/selectClasses.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +3 -3
- package/node/Snackbar/snackbarClasses.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/snackbarContentClasses.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/speedDialClasses.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/speedDialActionClasses.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/speedDialIconClasses.js +1 -1
- package/node/Stack/Stack.js +6 -3
- package/node/Step/Step.js +1 -1
- package/node/Step/stepClasses.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepButton/stepButtonClasses.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepConnector/stepConnectorClasses.js +1 -1
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepContent/stepContentClasses.js +1 -1
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepIcon/stepIconClasses.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/StepLabel/stepLabelClasses.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/svgIconClasses.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/switchClasses.js +1 -1
- package/node/Tab/Tab.js +34 -10
- package/node/Tab/tabClasses.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/tabScrollButtonClasses.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/tableClasses.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/tableBodyClasses.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/tableCellClasses.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/tableContainerClasses.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/tableFooterClasses.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/tableHeadClasses.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/tablePaginationClasses.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/tableRowClasses.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/tabsClasses.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/textFieldClasses.js +1 -1
- package/node/TextareaAutosize/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/toggleButtonClasses.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/toolbarClasses.js +1 -1
- package/node/Tooltip/Tooltip.js +8 -6
- package/node/Tooltip/tooltipClasses.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/typographyClasses.js +1 -1
- package/node/Zoom/Zoom.js +1 -1
- package/node/colors/index.js +40 -40
- package/node/index.js +32 -32
- package/node/internal/switchBaseClasses.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createPalette.js +3 -2
- package/node/styles/createTransitions.js +1 -1
- package/node/styles/cssUtils.js +4 -4
- package/node/styles/index.js +66 -54
- package/node/styles/styled.js +1 -1
- package/node/useAutocomplete/index.js +4 -4
- package/node/utils/index.js +9 -1
- package/package.json +9 -9
- package/styles/components.d.ts +0 -3
- package/styles/createPalette.js +1 -1
- package/styles/index.d.ts +4 -0
- package/styles/index.js +1 -1
- package/umd/material-ui.development.js +9065 -8295
- 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/Popper/Popper.js
DELETED
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["anchorEl", "children", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "TransitionProps"],
|
|
4
|
-
_excluded2 = ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { createPopper } from '@popperjs/core';
|
|
8
|
-
import { chainPropTypes, refType, HTMLElementType } from '@mui/utils';
|
|
9
|
-
import { useThemeWithoutDefault as useTheme } from '@mui/system';
|
|
10
|
-
import Portal from '../Portal';
|
|
11
|
-
import ownerDocument from '../utils/ownerDocument';
|
|
12
|
-
import useForkRef from '../utils/useForkRef';
|
|
13
|
-
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
|
-
function flipPlacement(placement, theme) {
|
|
17
|
-
const direction = theme && theme.direction || 'ltr';
|
|
18
|
-
|
|
19
|
-
if (direction === 'ltr') {
|
|
20
|
-
return placement;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
switch (placement) {
|
|
24
|
-
case 'bottom-end':
|
|
25
|
-
return 'bottom-start';
|
|
26
|
-
|
|
27
|
-
case 'bottom-start':
|
|
28
|
-
return 'bottom-end';
|
|
29
|
-
|
|
30
|
-
case 'top-end':
|
|
31
|
-
return 'top-start';
|
|
32
|
-
|
|
33
|
-
case 'top-start':
|
|
34
|
-
return 'top-end';
|
|
35
|
-
|
|
36
|
-
default:
|
|
37
|
-
return placement;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function resolveAnchorEl(anchorEl) {
|
|
42
|
-
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const defaultPopperOptions = {};
|
|
46
|
-
/* eslint-disable react/prop-types */
|
|
47
|
-
|
|
48
|
-
const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, ref) {
|
|
49
|
-
const {
|
|
50
|
-
anchorEl,
|
|
51
|
-
children,
|
|
52
|
-
disablePortal,
|
|
53
|
-
modifiers,
|
|
54
|
-
open,
|
|
55
|
-
placement: initialPlacement,
|
|
56
|
-
popperOptions,
|
|
57
|
-
popperRef: popperRefProp,
|
|
58
|
-
TransitionProps
|
|
59
|
-
} = props,
|
|
60
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
61
|
-
|
|
62
|
-
const tooltipRef = React.useRef(null);
|
|
63
|
-
const ownRef = useForkRef(tooltipRef, ref);
|
|
64
|
-
const popperRef = React.useRef(null);
|
|
65
|
-
const handlePopperRef = useForkRef(popperRef, popperRefProp);
|
|
66
|
-
const handlePopperRefRef = React.useRef(handlePopperRef);
|
|
67
|
-
useEnhancedEffect(() => {
|
|
68
|
-
handlePopperRefRef.current = handlePopperRef;
|
|
69
|
-
}, [handlePopperRef]);
|
|
70
|
-
React.useImperativeHandle(popperRefProp, () => popperRef.current, []);
|
|
71
|
-
const theme = useTheme();
|
|
72
|
-
const rtlPlacement = flipPlacement(initialPlacement, theme);
|
|
73
|
-
/**
|
|
74
|
-
* placement initialized from prop but can change during lifetime if modifiers.flip.
|
|
75
|
-
* modifiers.flip is essentially a flip for controlled/uncontrolled behavior
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
const [placement, setPlacement] = React.useState(rtlPlacement);
|
|
79
|
-
React.useEffect(() => {
|
|
80
|
-
if (popperRef.current) {
|
|
81
|
-
popperRef.current.forceUpdate();
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
useEnhancedEffect(() => {
|
|
85
|
-
if (!anchorEl || !open) {
|
|
86
|
-
return undefined;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const handlePopperUpdate = data => {
|
|
90
|
-
setPlacement(data.placement);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const resolvedAnchorEl = resolveAnchorEl(anchorEl);
|
|
94
|
-
|
|
95
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
96
|
-
if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
|
|
97
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
98
|
-
|
|
99
|
-
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
100
|
-
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
let popperModifiers = [{
|
|
106
|
-
name: 'preventOverflow',
|
|
107
|
-
options: {
|
|
108
|
-
altBoundary: disablePortal
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
name: 'flip',
|
|
112
|
-
options: {
|
|
113
|
-
altBoundary: disablePortal
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
name: 'onUpdate',
|
|
117
|
-
enabled: true,
|
|
118
|
-
phase: 'afterWrite',
|
|
119
|
-
fn: ({
|
|
120
|
-
state
|
|
121
|
-
}) => {
|
|
122
|
-
handlePopperUpdate(state);
|
|
123
|
-
}
|
|
124
|
-
}];
|
|
125
|
-
|
|
126
|
-
if (modifiers != null) {
|
|
127
|
-
popperModifiers = popperModifiers.concat(modifiers);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (popperOptions && popperOptions.modifiers != null) {
|
|
131
|
-
popperModifiers = popperModifiers.concat(popperOptions.modifiers);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const popper = createPopper(resolveAnchorEl(anchorEl), tooltipRef.current, _extends({
|
|
135
|
-
placement: rtlPlacement
|
|
136
|
-
}, popperOptions, {
|
|
137
|
-
modifiers: popperModifiers
|
|
138
|
-
}));
|
|
139
|
-
handlePopperRefRef.current(popper);
|
|
140
|
-
return () => {
|
|
141
|
-
popper.destroy();
|
|
142
|
-
handlePopperRefRef.current(null);
|
|
143
|
-
};
|
|
144
|
-
}, [anchorEl, disablePortal, modifiers, open, popperOptions, rtlPlacement]);
|
|
145
|
-
const childProps = {
|
|
146
|
-
placement
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
if (TransitionProps !== null) {
|
|
150
|
-
childProps.TransitionProps = TransitionProps;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return /*#__PURE__*/_jsx("div", _extends({
|
|
154
|
-
ref: ownRef,
|
|
155
|
-
role: "tooltip"
|
|
156
|
-
}, other, {
|
|
157
|
-
children: typeof children === 'function' ? children(childProps) : children
|
|
158
|
-
}));
|
|
159
|
-
});
|
|
160
|
-
/* eslint-enable react/prop-types */
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
const Popper = /*#__PURE__*/React.forwardRef(function Popper(props, ref) {
|
|
167
|
-
const {
|
|
168
|
-
anchorEl,
|
|
169
|
-
children,
|
|
170
|
-
container: containerProp,
|
|
171
|
-
disablePortal = false,
|
|
172
|
-
keepMounted = false,
|
|
173
|
-
modifiers,
|
|
174
|
-
open,
|
|
175
|
-
placement = 'bottom',
|
|
176
|
-
popperOptions = defaultPopperOptions,
|
|
177
|
-
popperRef,
|
|
178
|
-
style,
|
|
179
|
-
transition = false
|
|
180
|
-
} = props,
|
|
181
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
182
|
-
|
|
183
|
-
const [exited, setExited] = React.useState(true);
|
|
184
|
-
|
|
185
|
-
const handleEnter = () => {
|
|
186
|
-
setExited(false);
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
const handleExited = () => {
|
|
190
|
-
setExited(true);
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
if (!keepMounted && !open && (!transition || exited)) {
|
|
194
|
-
return null;
|
|
195
|
-
} // If the container prop is provided, use that
|
|
196
|
-
// If the anchorEl prop is provided, use its parent body element as the container
|
|
197
|
-
// If neither are provided let the Modal take care of choosing the container
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);
|
|
201
|
-
return /*#__PURE__*/_jsx(Portal, {
|
|
202
|
-
disablePortal: disablePortal,
|
|
203
|
-
container: container,
|
|
204
|
-
children: /*#__PURE__*/_jsx(PopperTooltip, _extends({
|
|
205
|
-
anchorEl: anchorEl,
|
|
206
|
-
disablePortal: disablePortal,
|
|
207
|
-
modifiers: modifiers,
|
|
208
|
-
ref: ref,
|
|
209
|
-
open: transition ? !exited : open,
|
|
210
|
-
placement: placement,
|
|
211
|
-
popperOptions: popperOptions,
|
|
212
|
-
popperRef: popperRef
|
|
213
|
-
}, other, {
|
|
214
|
-
style: _extends({
|
|
215
|
-
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
216
|
-
position: 'fixed',
|
|
217
|
-
// Fix Popper.js display issue
|
|
218
|
-
top: 0,
|
|
219
|
-
left: 0,
|
|
220
|
-
display: !open && keepMounted && !transition ? 'none' : null
|
|
221
|
-
}, style),
|
|
222
|
-
TransitionProps: transition ? {
|
|
223
|
-
in: open,
|
|
224
|
-
onEnter: handleEnter,
|
|
225
|
-
onExited: handleExited
|
|
226
|
-
} : null,
|
|
227
|
-
children: children
|
|
228
|
-
}))
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
232
|
-
/* remove-proptypes */
|
|
233
|
-
= {
|
|
234
|
-
// ----------------------------- Warning --------------------------------
|
|
235
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
236
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
237
|
-
// ----------------------------------------------------------------------
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
241
|
-
* or a function that returns either.
|
|
242
|
-
* It's used to set the position of the popper.
|
|
243
|
-
* The return value will passed as the reference object of the Popper instance.
|
|
244
|
-
*/
|
|
245
|
-
anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {
|
|
246
|
-
if (props.open) {
|
|
247
|
-
const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);
|
|
248
|
-
|
|
249
|
-
if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
|
|
250
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
251
|
-
|
|
252
|
-
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
253
|
-
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
254
|
-
}
|
|
255
|
-
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
256
|
-
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\n'));
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
return null;
|
|
261
|
-
}),
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Popper render function or node.
|
|
265
|
-
*/
|
|
266
|
-
children: PropTypes
|
|
267
|
-
/* @typescript-to-proptypes-ignore */
|
|
268
|
-
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* An HTML element or function that returns one.
|
|
272
|
-
* The `container` will have the portal children appended to it.
|
|
273
|
-
*
|
|
274
|
-
* By default, it uses the body of the top-level document object,
|
|
275
|
-
* so it's simply `document.body` most of the time.
|
|
276
|
-
*/
|
|
277
|
-
container: PropTypes
|
|
278
|
-
/* @typescript-to-proptypes-ignore */
|
|
279
|
-
.oneOfType([HTMLElementType, PropTypes.func]),
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
283
|
-
* @default false
|
|
284
|
-
*/
|
|
285
|
-
disablePortal: PropTypes.bool,
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Always keep the children in the DOM.
|
|
289
|
-
* This prop can be useful in SEO situation or
|
|
290
|
-
* when you want to maximize the responsiveness of the Popper.
|
|
291
|
-
* @default false
|
|
292
|
-
*/
|
|
293
|
-
keepMounted: PropTypes.bool,
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Popper.js is based on a "plugin-like" architecture,
|
|
297
|
-
* most of its features are fully encapsulated "modifiers".
|
|
298
|
-
*
|
|
299
|
-
* A modifier is a function that is called each time Popper.js needs to
|
|
300
|
-
* compute the position of the popper.
|
|
301
|
-
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
302
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
303
|
-
*/
|
|
304
|
-
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
305
|
-
data: PropTypes.object,
|
|
306
|
-
effect: PropTypes.func,
|
|
307
|
-
enabled: PropTypes.bool,
|
|
308
|
-
fn: PropTypes.func,
|
|
309
|
-
name: PropTypes.any.isRequired,
|
|
310
|
-
options: PropTypes.object,
|
|
311
|
-
phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
|
|
312
|
-
requires: PropTypes.arrayOf(PropTypes.string),
|
|
313
|
-
requiresIfExists: PropTypes.arrayOf(PropTypes.string)
|
|
314
|
-
})),
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* If `true`, the component is shown.
|
|
318
|
-
*/
|
|
319
|
-
open: PropTypes.bool.isRequired,
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Popper placement.
|
|
323
|
-
* @default 'bottom'
|
|
324
|
-
*/
|
|
325
|
-
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
329
|
-
* @default {}
|
|
330
|
-
*/
|
|
331
|
-
popperOptions: PropTypes.shape({
|
|
332
|
-
modifiers: PropTypes.array,
|
|
333
|
-
onFirstUpdate: PropTypes.func,
|
|
334
|
-
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
335
|
-
strategy: PropTypes.oneOf(['absolute', 'fixed'])
|
|
336
|
-
}),
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* A ref that points to the used popper instance.
|
|
340
|
-
*/
|
|
341
|
-
popperRef: refType,
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @ignore
|
|
345
|
-
*/
|
|
346
|
-
style: PropTypes.object,
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Help supporting a react-transition-group/Transition component.
|
|
350
|
-
* @default false
|
|
351
|
-
*/
|
|
352
|
-
transition: PropTypes.bool
|
|
353
|
-
} : void 0;
|
|
354
|
-
export default Popper;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface TextareaAutosizeProps
|
|
4
|
-
extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'> {
|
|
5
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
6
|
-
/**
|
|
7
|
-
* Maximum number of rows to display.
|
|
8
|
-
*/
|
|
9
|
-
maxRows?: string | number;
|
|
10
|
-
/**
|
|
11
|
-
* Minimum number of rows to display.
|
|
12
|
-
* @default 1
|
|
13
|
-
*/
|
|
14
|
-
minRows?: string | number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* Demos:
|
|
20
|
-
*
|
|
21
|
-
* - [Textarea Autosize](https://mui.com/components/textarea-autosize/)
|
|
22
|
-
*
|
|
23
|
-
* API:
|
|
24
|
-
*
|
|
25
|
-
* - [TextareaAutosize API](https://mui.com/api/textarea-autosize/)
|
|
26
|
-
*/
|
|
27
|
-
export default function TextareaAutosize(props: TextareaAutosizeProps): JSX.Element;
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import debounce from '../utils/debounce';
|
|
7
|
-
import useForkRef from '../utils/useForkRef';
|
|
8
|
-
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
9
|
-
import ownerWindow from '../utils/ownerWindow';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
function getStyleValue(computedStyle, property) {
|
|
14
|
-
return parseInt(computedStyle[property], 10) || 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const styles = {
|
|
18
|
-
shadow: {
|
|
19
|
-
// Visibility needed to hide the extra text area on iPads
|
|
20
|
-
visibility: 'hidden',
|
|
21
|
-
// Remove from the content flow
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
// Ignore the scrollbar width
|
|
24
|
-
overflow: 'hidden',
|
|
25
|
-
height: 0,
|
|
26
|
-
top: 0,
|
|
27
|
-
left: 0,
|
|
28
|
-
// Create a new layer, increase the isolation of the computed values
|
|
29
|
-
transform: 'translateZ(0)'
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, ref) {
|
|
33
|
-
const {
|
|
34
|
-
onChange,
|
|
35
|
-
maxRows,
|
|
36
|
-
minRows = 1,
|
|
37
|
-
style,
|
|
38
|
-
value
|
|
39
|
-
} = props,
|
|
40
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
41
|
-
|
|
42
|
-
const {
|
|
43
|
-
current: isControlled
|
|
44
|
-
} = React.useRef(value != null);
|
|
45
|
-
const inputRef = React.useRef(null);
|
|
46
|
-
const handleRef = useForkRef(ref, inputRef);
|
|
47
|
-
const shadowRef = React.useRef(null);
|
|
48
|
-
const renders = React.useRef(0);
|
|
49
|
-
const [state, setState] = React.useState({});
|
|
50
|
-
const syncHeight = React.useCallback(() => {
|
|
51
|
-
const input = inputRef.current;
|
|
52
|
-
const containerWindow = ownerWindow(input);
|
|
53
|
-
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
54
|
-
|
|
55
|
-
if (computedStyle.width === '0px') {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const inputShallow = shadowRef.current;
|
|
60
|
-
inputShallow.style.width = computedStyle.width;
|
|
61
|
-
inputShallow.value = input.value || props.placeholder || 'x';
|
|
62
|
-
|
|
63
|
-
if (inputShallow.value.slice(-1) === '\n') {
|
|
64
|
-
// Certain fonts which overflow the line height will cause the textarea
|
|
65
|
-
// to report a different scrollHeight depending on whether the last line
|
|
66
|
-
// is empty. Make it non-empty to avoid this issue.
|
|
67
|
-
inputShallow.value += ' ';
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const boxSizing = computedStyle['box-sizing'];
|
|
71
|
-
const padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
|
|
72
|
-
const border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
|
|
73
|
-
|
|
74
|
-
const innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
|
|
75
|
-
|
|
76
|
-
inputShallow.value = 'x';
|
|
77
|
-
const singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
|
|
78
|
-
|
|
79
|
-
let outerHeight = innerHeight;
|
|
80
|
-
|
|
81
|
-
if (minRows) {
|
|
82
|
-
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (maxRows) {
|
|
86
|
-
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
|
|
90
|
-
|
|
91
|
-
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
92
|
-
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
93
|
-
setState(prevState => {
|
|
94
|
-
// Need a large enough difference to update the height.
|
|
95
|
-
// This prevents infinite rendering loop.
|
|
96
|
-
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
97
|
-
renders.current += 1;
|
|
98
|
-
return {
|
|
99
|
-
overflow,
|
|
100
|
-
outerHeightStyle
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
105
|
-
if (renders.current === 20) {
|
|
106
|
-
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return prevState;
|
|
111
|
-
});
|
|
112
|
-
}, [maxRows, minRows, props.placeholder]);
|
|
113
|
-
React.useEffect(() => {
|
|
114
|
-
const handleResize = debounce(() => {
|
|
115
|
-
renders.current = 0;
|
|
116
|
-
syncHeight();
|
|
117
|
-
});
|
|
118
|
-
const containerWindow = ownerWindow(inputRef.current);
|
|
119
|
-
containerWindow.addEventListener('resize', handleResize);
|
|
120
|
-
let resizeObserver;
|
|
121
|
-
|
|
122
|
-
if (typeof ResizeObserver !== 'undefined') {
|
|
123
|
-
resizeObserver = new ResizeObserver(handleResize);
|
|
124
|
-
resizeObserver.observe(inputRef.current);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return () => {
|
|
128
|
-
handleResize.clear();
|
|
129
|
-
containerWindow.removeEventListener('resize', handleResize);
|
|
130
|
-
|
|
131
|
-
if (resizeObserver) {
|
|
132
|
-
resizeObserver.disconnect();
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
}, [syncHeight]);
|
|
136
|
-
useEnhancedEffect(() => {
|
|
137
|
-
syncHeight();
|
|
138
|
-
});
|
|
139
|
-
React.useEffect(() => {
|
|
140
|
-
renders.current = 0;
|
|
141
|
-
}, [value]);
|
|
142
|
-
|
|
143
|
-
const handleChange = event => {
|
|
144
|
-
renders.current = 0;
|
|
145
|
-
|
|
146
|
-
if (!isControlled) {
|
|
147
|
-
syncHeight();
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (onChange) {
|
|
151
|
-
onChange(event);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
156
|
-
children: [/*#__PURE__*/_jsx("textarea", _extends({
|
|
157
|
-
value: value,
|
|
158
|
-
onChange: handleChange,
|
|
159
|
-
ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
|
|
160
|
-
,
|
|
161
|
-
rows: minRows,
|
|
162
|
-
style: _extends({
|
|
163
|
-
height: state.outerHeightStyle,
|
|
164
|
-
// Need a large enough difference to allow scrolling.
|
|
165
|
-
// This prevents infinite rendering loop.
|
|
166
|
-
overflow: state.overflow ? 'hidden' : null
|
|
167
|
-
}, style)
|
|
168
|
-
}, other)), /*#__PURE__*/_jsx("textarea", {
|
|
169
|
-
"aria-hidden": true,
|
|
170
|
-
className: props.className,
|
|
171
|
-
readOnly: true,
|
|
172
|
-
ref: shadowRef,
|
|
173
|
-
tabIndex: -1,
|
|
174
|
-
style: _extends({}, styles.shadow, style, {
|
|
175
|
-
padding: 0
|
|
176
|
-
})
|
|
177
|
-
})]
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
process.env.NODE_ENV !== "production" ? TextareaAutosize.propTypes
|
|
181
|
-
/* remove-proptypes */
|
|
182
|
-
= {
|
|
183
|
-
// ----------------------------- Warning --------------------------------
|
|
184
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
185
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
186
|
-
// ----------------------------------------------------------------------
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @ignore
|
|
190
|
-
*/
|
|
191
|
-
className: PropTypes.string,
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Maximum number of rows to display.
|
|
195
|
-
*/
|
|
196
|
-
maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Minimum number of rows to display.
|
|
200
|
-
* @default 1
|
|
201
|
-
*/
|
|
202
|
-
minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @ignore
|
|
206
|
-
*/
|
|
207
|
-
onChange: PropTypes.func,
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @ignore
|
|
211
|
-
*/
|
|
212
|
-
placeholder: PropTypes.string,
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* @ignore
|
|
216
|
-
*/
|
|
217
|
-
style: PropTypes.object,
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string])
|
|
223
|
-
} : void 0;
|
|
224
|
-
export default TextareaAutosize;
|