@mui/material 5.2.2 → 5.2.3
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.d.ts +1 -1
- package/Accordion/Accordion.js +2 -2
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +2 -2
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +1 -3
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/AlertTitle.js +1 -1
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +1 -1
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.js +1 -1
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.d.ts +5 -0
- package/AvatarGroup/AvatarGroup.js +20 -5
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.js +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.js +16 -35
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +2 -2
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +84 -0
- package/Card/Card.js +1 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +1 -1
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/CardActions.js +1 -1
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/CardContent.js +1 -1
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/CardHeader.js +1 -1
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/CardMedia.js +1 -1
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/Checkbox.js +1 -1
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +1 -1
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/CircularProgress.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/Collapse.d.ts +1 -1
- package/Collapse/Collapse.js +1 -1
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.js +1 -1
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/Dialog.js +2 -2
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/DialogActions.js +1 -1
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +1 -1
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.js +1 -1
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +1 -1
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +1 -1
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +1 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/Fade/Fade.d.ts +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.js +1 -1
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/FormGroup.js +1 -1
- package/FormGroup/formGroupClasses.d.ts +10 -10
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +1 -1
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.js +24 -3
- package/Grid/gridClasses.d.ts +48 -48
- package/Grow/Grow.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +1 -1
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/ImageList.js +1 -1
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +1 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/LinearProgress.js +1 -1
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +1 -1
- package/Link/linkClasses.d.ts +18 -18
- package/List/List.js +1 -1
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +1 -1
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/ListItemText.js +1 -1
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +1 -1
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +2 -2
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +2 -2
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/MobileStepper.js +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/Pagination.js +1 -1
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +1 -1
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +2 -2
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +17 -17
- package/README.md +7 -7
- package/Radio/Radio.js +1 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +1 -1
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.js +1 -1
- package/Select/SelectInput.js +5 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/Skeleton.js +1 -1
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slide/Slide.d.ts +1 -1
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbar/Snackbar.js +2 -2
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/Stack.js +1 -1
- package/Step/Step.js +1 -1
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.js +1 -1
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/StepConnector.js +1 -1
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.d.ts +1 -1
- package/StepContent/StepContent.js +2 -2
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +1 -1
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +1 -1
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/Stepper.js +1 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +1 -1
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/Switch.js +1 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +1 -1
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/TabScrollButton.js +1 -1
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/TableBody.js +1 -1
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/TableCell.js +1 -1
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/TableContainer.js +1 -1
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/TableFooter.js +1 -1
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/TableHead.js +1 -1
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +1 -1
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +1 -1
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.js +1 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +2 -2
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/Typography.js +1 -1
- package/Typography/typographyClasses.d.ts +50 -50
- package/Zoom/Zoom.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +2 -2
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +2 -2
- package/legacy/Alert/Alert.js +1 -3
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -1
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +19 -4
- 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 +23 -35
- package/legacy/ButtonBase/ButtonBase.js +2 -2
- 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 +1 -1
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/Chip/Chip.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Collapse/Collapse.js +1 -1
- package/legacy/Container/Container.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -2
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +1 -1
- 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 +25 -3
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/legacy/MenuItem/MenuItem.js +2 -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 +2 -2
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Select/SelectInput.js +7 -3
- 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 +2 -2
- 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 +2 -2
- 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 +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/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +2 -2
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +66 -66
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +2 -2
- package/modern/Alert/Alert.js +1 -3
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +20 -5
- 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 +16 -35
- package/modern/ButtonBase/ButtonBase.js +2 -2
- 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 +1 -1
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Chip/Chip.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Collapse/Collapse.js +1 -1
- package/modern/Container/Container.js +1 -1
- package/modern/Dialog/Dialog.js +2 -2
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +1 -1
- 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 +24 -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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/modern/MenuItem/MenuItem.js +2 -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 +2 -2
- package/modern/Radio/Radio.js +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Select/SelectInput.js +5 -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 +2 -2
- 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 +2 -2
- 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 +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/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +2 -2
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/node/Accordion/Accordion.js +2 -2
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +1 -3
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +20 -5
- 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 +17 -34
- package/node/ButtonBase/ButtonBase.js +2 -2
- 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 +1 -1
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Chip/Chip.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Collapse/Collapse.js +1 -1
- package/node/Container/Container.js +1 -1
- package/node/Dialog/Dialog.js +2 -2
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogContent/DialogContent.js +1 -1
- 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 +26 -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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/node/MenuItem/MenuItem.js +2 -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 +2 -2
- package/node/Radio/Radio.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +5 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SpeedDial/SpeedDial.js +2 -2
- 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 +2 -2
- 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 +1 -1
- 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/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Typography/Typography.js +1 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/styles/cssUtils.d.ts +32 -0
- package/styles/index.d.ts +1 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +14 -14
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +836 -815
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.2.
|
|
1
|
+
/** @license MUI v5.2.3
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5434,6 +5434,23 @@
|
|
|
5434
5434
|
validator.isRequired = requiredInteger;
|
|
5435
5435
|
var integerPropType = validator;
|
|
5436
5436
|
|
|
5437
|
+
/**
|
|
5438
|
+
* Add keys, values of `defaultProps` that does not exist in `props`
|
|
5439
|
+
* @param {object} defaultProps
|
|
5440
|
+
* @param {object} props
|
|
5441
|
+
* @returns {object} resolved props
|
|
5442
|
+
*/
|
|
5443
|
+
function resolveProps(defaultProps, props) {
|
|
5444
|
+
const output = _extends({}, props);
|
|
5445
|
+
|
|
5446
|
+
Object.keys(defaultProps).forEach(propName => {
|
|
5447
|
+
if (output[propName] === undefined) {
|
|
5448
|
+
output[propName] = defaultProps[propName];
|
|
5449
|
+
}
|
|
5450
|
+
});
|
|
5451
|
+
return output;
|
|
5452
|
+
}
|
|
5453
|
+
|
|
5437
5454
|
function merge(acc, item) {
|
|
5438
5455
|
if (!item) {
|
|
5439
5456
|
return acc;
|
|
@@ -6906,7 +6923,6 @@
|
|
|
6906
6923
|
};
|
|
6907
6924
|
}
|
|
6908
6925
|
|
|
6909
|
-
/* eslint-disable no-restricted-syntax */
|
|
6910
6926
|
function getThemeProps(params) {
|
|
6911
6927
|
const {
|
|
6912
6928
|
theme,
|
|
@@ -6918,20 +6934,7 @@
|
|
|
6918
6934
|
return props;
|
|
6919
6935
|
}
|
|
6920
6936
|
|
|
6921
|
-
|
|
6922
|
-
// https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
const defaultProps = theme.components[name].defaultProps;
|
|
6926
|
-
let propName;
|
|
6927
|
-
|
|
6928
|
-
for (propName in defaultProps) {
|
|
6929
|
-
if (output[propName] === undefined) {
|
|
6930
|
-
output[propName] = defaultProps[propName];
|
|
6931
|
-
}
|
|
6932
|
-
}
|
|
6933
|
-
|
|
6934
|
-
return output;
|
|
6937
|
+
return resolveProps(theme.components[name].defaultProps, props);
|
|
6935
6938
|
}
|
|
6936
6939
|
|
|
6937
6940
|
function useThemeProps$1({
|
|
@@ -7369,6 +7372,49 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7369
7372
|
return theme;
|
|
7370
7373
|
}
|
|
7371
7374
|
|
|
7375
|
+
/**
|
|
7376
|
+
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
7377
|
+
*/
|
|
7378
|
+
function isHostComponent(element) {
|
|
7379
|
+
return typeof element === 'string';
|
|
7380
|
+
}
|
|
7381
|
+
|
|
7382
|
+
/**
|
|
7383
|
+
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
7384
|
+
*
|
|
7385
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` are not applied.
|
|
7386
|
+
* @param existingProps Props of the element.
|
|
7387
|
+
* @param ownerState
|
|
7388
|
+
*/
|
|
7389
|
+
|
|
7390
|
+
function appendOwnerState(elementType, existingProps = {}, ownerState) {
|
|
7391
|
+
if (isHostComponent(elementType)) {
|
|
7392
|
+
return existingProps;
|
|
7393
|
+
}
|
|
7394
|
+
|
|
7395
|
+
return _extends({}, existingProps, {
|
|
7396
|
+
ownerState: _extends({}, existingProps.ownerState, ownerState)
|
|
7397
|
+
});
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
/**
|
|
7401
|
+
* Extracts event handlers from a given object.
|
|
7402
|
+
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
|
7403
|
+
*
|
|
7404
|
+
* @param object An object to extract event handlers from.
|
|
7405
|
+
*/
|
|
7406
|
+
function extractEventHandlers(object, excludeKeys = []) {
|
|
7407
|
+
if (object === undefined) {
|
|
7408
|
+
return {};
|
|
7409
|
+
}
|
|
7410
|
+
|
|
7411
|
+
const result = {};
|
|
7412
|
+
Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
|
|
7413
|
+
result[prop] = object[prop];
|
|
7414
|
+
});
|
|
7415
|
+
return result;
|
|
7416
|
+
}
|
|
7417
|
+
|
|
7372
7418
|
// Give up on IE11 support for this feature
|
|
7373
7419
|
|
|
7374
7420
|
function stripDiacritics(string) {
|
|
@@ -8414,13 +8460,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8414
8460
|
return output;
|
|
8415
8461
|
}
|
|
8416
8462
|
|
|
8417
|
-
/**
|
|
8418
|
-
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
8419
|
-
*/
|
|
8420
|
-
function isHostComponent(element) {
|
|
8421
|
-
return typeof element === 'string';
|
|
8422
|
-
}
|
|
8423
|
-
|
|
8424
8463
|
const defaultGenerator = componentName => componentName;
|
|
8425
8464
|
|
|
8426
8465
|
const createClassNameGenerator = () => {
|
|
@@ -8780,24 +8819,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8780
8819
|
const buttonUnstyledClasses = generateUtilityClasses('ButtonUnstyled', ['root', 'active', 'disabled', 'focusVisible']);
|
|
8781
8820
|
var buttonUnstyledClasses$1 = buttonUnstyledClasses;
|
|
8782
8821
|
|
|
8783
|
-
/**
|
|
8784
|
-
* Extracts event handlers from a given object.
|
|
8785
|
-
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
|
8786
|
-
*
|
|
8787
|
-
* @param object An object to extract event handlers from.
|
|
8788
|
-
*/
|
|
8789
|
-
function extractEventHandlers(object, excludeKeys = []) {
|
|
8790
|
-
if (object === undefined) {
|
|
8791
|
-
return {};
|
|
8792
|
-
}
|
|
8793
|
-
|
|
8794
|
-
const result = {};
|
|
8795
|
-
Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
|
|
8796
|
-
result[prop] = object[prop];
|
|
8797
|
-
});
|
|
8798
|
-
return result;
|
|
8799
|
-
}
|
|
8800
|
-
|
|
8801
8822
|
function useButton(props) {
|
|
8802
8823
|
var _ref;
|
|
8803
8824
|
|
|
@@ -8999,24 +9020,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8999
9020
|
};
|
|
9000
9021
|
}
|
|
9001
9022
|
|
|
9002
|
-
/**
|
|
9003
|
-
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
9004
|
-
*
|
|
9005
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` are not applied.
|
|
9006
|
-
* @param existingProps Props of the element.
|
|
9007
|
-
* @param ownerState
|
|
9008
|
-
*/
|
|
9009
|
-
|
|
9010
|
-
function appendOwnerState(elementType, existingProps, ownerState) {
|
|
9011
|
-
if (isHostComponent(elementType)) {
|
|
9012
|
-
return existingProps;
|
|
9013
|
-
}
|
|
9014
|
-
|
|
9015
|
-
return _extends({}, existingProps, {
|
|
9016
|
-
ownerState: _extends({}, existingProps.ownerState, ownerState)
|
|
9017
|
-
});
|
|
9018
|
-
}
|
|
9019
|
-
|
|
9020
9023
|
const _excluded$2k = ["className", "component", "components", "componentsProps", "children", "disabled", "action", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseLeave"];
|
|
9021
9024
|
|
|
9022
9025
|
const useUtilityClasses$1R = ownerState => {
|
|
@@ -9153,6 +9156,192 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9153
9156
|
} ;
|
|
9154
9157
|
var ButtonUnstyled$1 = ButtonUnstyled;
|
|
9155
9158
|
|
|
9159
|
+
function mapEventPropToEvent(eventProp) {
|
|
9160
|
+
return eventProp.substring(2).toLowerCase();
|
|
9161
|
+
}
|
|
9162
|
+
|
|
9163
|
+
function clickedRootScrollbar(event, doc) {
|
|
9164
|
+
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
9165
|
+
}
|
|
9166
|
+
|
|
9167
|
+
/**
|
|
9168
|
+
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
9169
|
+
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
9170
|
+
*
|
|
9171
|
+
* Demos:
|
|
9172
|
+
*
|
|
9173
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
9174
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
9175
|
+
*
|
|
9176
|
+
* API:
|
|
9177
|
+
*
|
|
9178
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
9179
|
+
*/
|
|
9180
|
+
function ClickAwayListener(props) {
|
|
9181
|
+
const {
|
|
9182
|
+
children,
|
|
9183
|
+
disableReactTree = false,
|
|
9184
|
+
mouseEvent = 'onClick',
|
|
9185
|
+
onClickAway,
|
|
9186
|
+
touchEvent = 'onTouchEnd'
|
|
9187
|
+
} = props;
|
|
9188
|
+
const movedRef = React__namespace.useRef(false);
|
|
9189
|
+
const nodeRef = React__namespace.useRef(null);
|
|
9190
|
+
const activatedRef = React__namespace.useRef(false);
|
|
9191
|
+
const syntheticEventRef = React__namespace.useRef(false);
|
|
9192
|
+
React__namespace.useEffect(() => {
|
|
9193
|
+
// Ensure that this component is not "activated" synchronously.
|
|
9194
|
+
// https://github.com/facebook/react/issues/20074
|
|
9195
|
+
setTimeout(() => {
|
|
9196
|
+
activatedRef.current = true;
|
|
9197
|
+
}, 0);
|
|
9198
|
+
return () => {
|
|
9199
|
+
activatedRef.current = false;
|
|
9200
|
+
};
|
|
9201
|
+
}, []);
|
|
9202
|
+
const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
|
|
9203
|
+
children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
|
|
9204
|
+
//
|
|
9205
|
+
// event.preventDefault() is meant to stop default behaviors like
|
|
9206
|
+
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
9207
|
+
// and hitting left arrow to move the cursor in a text input etc.
|
|
9208
|
+
// Only special HTML elements have these default behaviors.
|
|
9209
|
+
|
|
9210
|
+
const handleClickAway = useEventCallback(event => {
|
|
9211
|
+
// Given developers can stop the propagation of the synthetic event,
|
|
9212
|
+
// we can only be confident with a positive value.
|
|
9213
|
+
const insideReactTree = syntheticEventRef.current;
|
|
9214
|
+
syntheticEventRef.current = false;
|
|
9215
|
+
const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
|
|
9216
|
+
// 2. The child might render null.
|
|
9217
|
+
// 3. Behave like a blur listener.
|
|
9218
|
+
|
|
9219
|
+
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
|
9220
|
+
return;
|
|
9221
|
+
} // Do not act if user performed touchmove
|
|
9222
|
+
|
|
9223
|
+
|
|
9224
|
+
if (movedRef.current) {
|
|
9225
|
+
movedRef.current = false;
|
|
9226
|
+
return;
|
|
9227
|
+
}
|
|
9228
|
+
|
|
9229
|
+
let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
|
9230
|
+
|
|
9231
|
+
if (event.composedPath) {
|
|
9232
|
+
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
|
9233
|
+
} else {
|
|
9234
|
+
insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
9235
|
+
event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
9236
|
+
event.target);
|
|
9237
|
+
}
|
|
9238
|
+
|
|
9239
|
+
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
9240
|
+
onClickAway(event);
|
|
9241
|
+
}
|
|
9242
|
+
}); // Keep track of mouse/touch events that bubbled up through the portal.
|
|
9243
|
+
|
|
9244
|
+
const createHandleSynthetic = handlerName => event => {
|
|
9245
|
+
syntheticEventRef.current = true;
|
|
9246
|
+
const childrenPropsHandler = children.props[handlerName];
|
|
9247
|
+
|
|
9248
|
+
if (childrenPropsHandler) {
|
|
9249
|
+
childrenPropsHandler(event);
|
|
9250
|
+
}
|
|
9251
|
+
};
|
|
9252
|
+
|
|
9253
|
+
const childrenProps = {
|
|
9254
|
+
ref: handleRef
|
|
9255
|
+
};
|
|
9256
|
+
|
|
9257
|
+
if (touchEvent !== false) {
|
|
9258
|
+
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9261
|
+
React__namespace.useEffect(() => {
|
|
9262
|
+
if (touchEvent !== false) {
|
|
9263
|
+
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
9264
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9265
|
+
|
|
9266
|
+
const handleTouchMove = () => {
|
|
9267
|
+
movedRef.current = true;
|
|
9268
|
+
};
|
|
9269
|
+
|
|
9270
|
+
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
9271
|
+
doc.addEventListener('touchmove', handleTouchMove);
|
|
9272
|
+
return () => {
|
|
9273
|
+
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
9274
|
+
doc.removeEventListener('touchmove', handleTouchMove);
|
|
9275
|
+
};
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
return undefined;
|
|
9279
|
+
}, [handleClickAway, touchEvent]);
|
|
9280
|
+
|
|
9281
|
+
if (mouseEvent !== false) {
|
|
9282
|
+
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
9283
|
+
}
|
|
9284
|
+
|
|
9285
|
+
React__namespace.useEffect(() => {
|
|
9286
|
+
if (mouseEvent !== false) {
|
|
9287
|
+
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
9288
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9289
|
+
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
9290
|
+
return () => {
|
|
9291
|
+
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
9292
|
+
};
|
|
9293
|
+
}
|
|
9294
|
+
|
|
9295
|
+
return undefined;
|
|
9296
|
+
}, [handleClickAway, mouseEvent]);
|
|
9297
|
+
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
9298
|
+
children: /*#__PURE__*/React__namespace.cloneElement(children, childrenProps)
|
|
9299
|
+
});
|
|
9300
|
+
}
|
|
9301
|
+
|
|
9302
|
+
ClickAwayListener.propTypes
|
|
9303
|
+
/* remove-proptypes */
|
|
9304
|
+
= {
|
|
9305
|
+
// ----------------------------- Warning --------------------------------
|
|
9306
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
9307
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
9308
|
+
// ----------------------------------------------------------------------
|
|
9309
|
+
|
|
9310
|
+
/**
|
|
9311
|
+
* The wrapped element.
|
|
9312
|
+
*/
|
|
9313
|
+
children: elementAcceptingRef$1.isRequired,
|
|
9314
|
+
|
|
9315
|
+
/**
|
|
9316
|
+
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
9317
|
+
* This prop changes how portaled elements are handled.
|
|
9318
|
+
* @default false
|
|
9319
|
+
*/
|
|
9320
|
+
disableReactTree: propTypes.bool,
|
|
9321
|
+
|
|
9322
|
+
/**
|
|
9323
|
+
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
9324
|
+
* @default 'onClick'
|
|
9325
|
+
*/
|
|
9326
|
+
mouseEvent: propTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
|
|
9327
|
+
|
|
9328
|
+
/**
|
|
9329
|
+
* Callback fired when a "click away" event is detected.
|
|
9330
|
+
*/
|
|
9331
|
+
onClickAway: propTypes.func.isRequired,
|
|
9332
|
+
|
|
9333
|
+
/**
|
|
9334
|
+
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
9335
|
+
* @default 'onTouchEnd'
|
|
9336
|
+
*/
|
|
9337
|
+
touchEvent: propTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
|
9338
|
+
} ;
|
|
9339
|
+
|
|
9340
|
+
{
|
|
9341
|
+
// eslint-disable-next-line
|
|
9342
|
+
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9156
9345
|
/**
|
|
9157
9346
|
* @ignore - internal component.
|
|
9158
9347
|
*/
|
|
@@ -14556,220 +14745,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14556
14745
|
} ;
|
|
14557
14746
|
var SwitchUnstyled$1 = SwitchUnstyled;
|
|
14558
14747
|
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
function getStyleValue(computedStyle, property) {
|
|
14562
|
-
return parseInt(computedStyle[property], 10) || 0;
|
|
14748
|
+
function getTabPanelUnstyledUtilityClass(slot) {
|
|
14749
|
+
return generateUtilityClass('TabPanelUnstyled', slot);
|
|
14563
14750
|
}
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
shadow: {
|
|
14567
|
-
// Visibility needed to hide the extra text area on iPads
|
|
14568
|
-
visibility: 'hidden',
|
|
14569
|
-
// Remove from the content flow
|
|
14570
|
-
position: 'absolute',
|
|
14571
|
-
// Ignore the scrollbar width
|
|
14572
|
-
overflow: 'hidden',
|
|
14573
|
-
height: 0,
|
|
14574
|
-
top: 0,
|
|
14575
|
-
left: 0,
|
|
14576
|
-
// Create a new layer, increase the isolation of the computed values
|
|
14577
|
-
transform: 'translateZ(0)'
|
|
14578
|
-
}
|
|
14579
|
-
};
|
|
14580
|
-
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
14581
|
-
const {
|
|
14582
|
-
onChange,
|
|
14583
|
-
maxRows,
|
|
14584
|
-
minRows = 1,
|
|
14585
|
-
style,
|
|
14586
|
-
value
|
|
14587
|
-
} = props,
|
|
14588
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14589
|
-
|
|
14590
|
-
const {
|
|
14591
|
-
current: isControlled
|
|
14592
|
-
} = React__namespace.useRef(value != null);
|
|
14593
|
-
const inputRef = React__namespace.useRef(null);
|
|
14594
|
-
const handleRef = useForkRef(ref, inputRef);
|
|
14595
|
-
const shadowRef = React__namespace.useRef(null);
|
|
14596
|
-
const renders = React__namespace.useRef(0);
|
|
14597
|
-
const [state, setState] = React__namespace.useState({});
|
|
14598
|
-
const syncHeight = React__namespace.useCallback(() => {
|
|
14599
|
-
const input = inputRef.current;
|
|
14600
|
-
const containerWindow = ownerWindow(input);
|
|
14601
|
-
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
14602
|
-
|
|
14603
|
-
if (computedStyle.width === '0px') {
|
|
14604
|
-
return;
|
|
14605
|
-
}
|
|
14606
|
-
|
|
14607
|
-
const inputShallow = shadowRef.current;
|
|
14608
|
-
inputShallow.style.width = computedStyle.width;
|
|
14609
|
-
inputShallow.value = input.value || props.placeholder || 'x';
|
|
14610
|
-
|
|
14611
|
-
if (inputShallow.value.slice(-1) === '\n') {
|
|
14612
|
-
// Certain fonts which overflow the line height will cause the textarea
|
|
14613
|
-
// to report a different scrollHeight depending on whether the last line
|
|
14614
|
-
// is empty. Make it non-empty to avoid this issue.
|
|
14615
|
-
inputShallow.value += ' ';
|
|
14616
|
-
}
|
|
14617
|
-
|
|
14618
|
-
const boxSizing = computedStyle['box-sizing'];
|
|
14619
|
-
const padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
|
|
14620
|
-
const border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
|
|
14621
|
-
|
|
14622
|
-
const innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
|
|
14623
|
-
|
|
14624
|
-
inputShallow.value = 'x';
|
|
14625
|
-
const singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
|
|
14626
|
-
|
|
14627
|
-
let outerHeight = innerHeight;
|
|
14628
|
-
|
|
14629
|
-
if (minRows) {
|
|
14630
|
-
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
14631
|
-
}
|
|
14632
|
-
|
|
14633
|
-
if (maxRows) {
|
|
14634
|
-
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
14635
|
-
}
|
|
14636
|
-
|
|
14637
|
-
outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
|
|
14638
|
-
|
|
14639
|
-
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
14640
|
-
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
14641
|
-
setState(prevState => {
|
|
14642
|
-
// Need a large enough difference to update the height.
|
|
14643
|
-
// This prevents infinite rendering loop.
|
|
14644
|
-
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
14645
|
-
renders.current += 1;
|
|
14646
|
-
return {
|
|
14647
|
-
overflow,
|
|
14648
|
-
outerHeightStyle
|
|
14649
|
-
};
|
|
14650
|
-
}
|
|
14651
|
-
|
|
14652
|
-
{
|
|
14653
|
-
if (renders.current === 20) {
|
|
14654
|
-
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
14655
|
-
}
|
|
14656
|
-
}
|
|
14657
|
-
|
|
14658
|
-
return prevState;
|
|
14659
|
-
});
|
|
14660
|
-
}, [maxRows, minRows, props.placeholder]);
|
|
14661
|
-
React__namespace.useEffect(() => {
|
|
14662
|
-
const handleResize = debounce$1(() => {
|
|
14663
|
-
renders.current = 0;
|
|
14664
|
-
syncHeight();
|
|
14665
|
-
});
|
|
14666
|
-
const containerWindow = ownerWindow(inputRef.current);
|
|
14667
|
-
containerWindow.addEventListener('resize', handleResize);
|
|
14668
|
-
let resizeObserver;
|
|
14669
|
-
|
|
14670
|
-
if (typeof ResizeObserver !== 'undefined') {
|
|
14671
|
-
resizeObserver = new ResizeObserver(handleResize);
|
|
14672
|
-
resizeObserver.observe(inputRef.current);
|
|
14673
|
-
}
|
|
14674
|
-
|
|
14675
|
-
return () => {
|
|
14676
|
-
handleResize.clear();
|
|
14677
|
-
containerWindow.removeEventListener('resize', handleResize);
|
|
14678
|
-
|
|
14679
|
-
if (resizeObserver) {
|
|
14680
|
-
resizeObserver.disconnect();
|
|
14681
|
-
}
|
|
14682
|
-
};
|
|
14683
|
-
}, [syncHeight]);
|
|
14684
|
-
useEnhancedEffect$1(() => {
|
|
14685
|
-
syncHeight();
|
|
14686
|
-
});
|
|
14687
|
-
React__namespace.useEffect(() => {
|
|
14688
|
-
renders.current = 0;
|
|
14689
|
-
}, [value]);
|
|
14690
|
-
|
|
14691
|
-
const handleChange = event => {
|
|
14692
|
-
renders.current = 0;
|
|
14693
|
-
|
|
14694
|
-
if (!isControlled) {
|
|
14695
|
-
syncHeight();
|
|
14696
|
-
}
|
|
14697
|
-
|
|
14698
|
-
if (onChange) {
|
|
14699
|
-
onChange(event);
|
|
14700
|
-
}
|
|
14701
|
-
};
|
|
14702
|
-
|
|
14703
|
-
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
14704
|
-
children: [/*#__PURE__*/jsxRuntime_1("textarea", _extends({
|
|
14705
|
-
value: value,
|
|
14706
|
-
onChange: handleChange,
|
|
14707
|
-
ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
|
|
14708
|
-
,
|
|
14709
|
-
rows: minRows,
|
|
14710
|
-
style: _extends({
|
|
14711
|
-
height: state.outerHeightStyle,
|
|
14712
|
-
// Need a large enough difference to allow scrolling.
|
|
14713
|
-
// This prevents infinite rendering loop.
|
|
14714
|
-
overflow: state.overflow ? 'hidden' : null
|
|
14715
|
-
}, style)
|
|
14716
|
-
}, other)), /*#__PURE__*/jsxRuntime_1("textarea", {
|
|
14717
|
-
"aria-hidden": true,
|
|
14718
|
-
className: props.className,
|
|
14719
|
-
readOnly: true,
|
|
14720
|
-
ref: shadowRef,
|
|
14721
|
-
tabIndex: -1,
|
|
14722
|
-
style: _extends({}, styles$5.shadow, style, {
|
|
14723
|
-
padding: 0
|
|
14724
|
-
})
|
|
14725
|
-
})]
|
|
14726
|
-
});
|
|
14727
|
-
});
|
|
14728
|
-
TextareaAutosize.propTypes
|
|
14729
|
-
/* remove-proptypes */
|
|
14730
|
-
= {
|
|
14731
|
-
// ----------------------------- Warning --------------------------------
|
|
14732
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14733
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
14734
|
-
// ----------------------------------------------------------------------
|
|
14735
|
-
|
|
14736
|
-
/**
|
|
14737
|
-
* @ignore
|
|
14738
|
-
*/
|
|
14739
|
-
className: propTypes.string,
|
|
14740
|
-
|
|
14741
|
-
/**
|
|
14742
|
-
* Maximum number of rows to display.
|
|
14743
|
-
*/
|
|
14744
|
-
maxRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
14745
|
-
|
|
14746
|
-
/**
|
|
14747
|
-
* Minimum number of rows to display.
|
|
14748
|
-
* @default 1
|
|
14749
|
-
*/
|
|
14750
|
-
minRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
14751
|
-
|
|
14752
|
-
/**
|
|
14753
|
-
* @ignore
|
|
14754
|
-
*/
|
|
14755
|
-
onChange: propTypes.func,
|
|
14756
|
-
|
|
14757
|
-
/**
|
|
14758
|
-
* @ignore
|
|
14759
|
-
*/
|
|
14760
|
-
placeholder: propTypes.string,
|
|
14761
|
-
|
|
14762
|
-
/**
|
|
14763
|
-
* @ignore
|
|
14764
|
-
*/
|
|
14765
|
-
style: propTypes.object,
|
|
14766
|
-
|
|
14767
|
-
/**
|
|
14768
|
-
* @ignore
|
|
14769
|
-
*/
|
|
14770
|
-
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.string), propTypes.number, propTypes.string])
|
|
14771
|
-
} ;
|
|
14772
|
-
var TextareaAutosize$1 = TextareaAutosize;
|
|
14751
|
+
const tabPanelUnstyledClasses = generateUtilityClasses('TabPanelUnstyled', ['root', 'hidden']);
|
|
14752
|
+
var tabPanelUnstyledClasses$1 = tabPanelUnstyledClasses;
|
|
14773
14753
|
|
|
14774
14754
|
function getTabsUnstyledUtilityClass(slot) {
|
|
14775
14755
|
return generateUtilityClass('TabsUnstyled', slot);
|
|
@@ -14863,7 +14843,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14863
14843
|
}
|
|
14864
14844
|
var Context$1 = Context;
|
|
14865
14845
|
|
|
14866
|
-
const _excluded$
|
|
14846
|
+
const _excluded$2d = ["children", "className", "value", "defaultValue", "orientation", "direction", "component", "components", "componentsProps", "onChange", "selectionFollowsFocus"];
|
|
14867
14847
|
|
|
14868
14848
|
const useUtilityClasses$1O = ownerState => {
|
|
14869
14849
|
const {
|
|
@@ -14898,7 +14878,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14898
14878
|
components = {},
|
|
14899
14879
|
componentsProps = {}
|
|
14900
14880
|
} = props,
|
|
14901
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14881
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14902
14882
|
|
|
14903
14883
|
const {
|
|
14904
14884
|
tabsContextValue,
|
|
@@ -14997,101 +14977,46 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14997
14977
|
} ;
|
|
14998
14978
|
var TabsUnstyled$1 = TabsUnstyled;
|
|
14999
14979
|
|
|
15000
|
-
|
|
15001
|
-
return generateUtilityClass('TabUnstyled', slot);
|
|
15002
|
-
}
|
|
15003
|
-
const tabUnstyledClasses = generateUtilityClasses('TabUnstyled', ['root', 'selected', 'disabled']);
|
|
15004
|
-
var tabUnstyledClasses$1 = tabUnstyledClasses;
|
|
15005
|
-
|
|
15006
|
-
const _excluded$2b = ["getRootProps"];
|
|
15007
|
-
|
|
15008
|
-
const useTab = props => {
|
|
14980
|
+
const useTabPanel = props => {
|
|
15009
14981
|
const {
|
|
15010
|
-
value
|
|
15011
|
-
onChange,
|
|
15012
|
-
onClick,
|
|
15013
|
-
onFocus
|
|
14982
|
+
value
|
|
15014
14983
|
} = props;
|
|
15015
|
-
|
|
15016
|
-
const _useButton = useButton(props),
|
|
15017
|
-
{
|
|
15018
|
-
getRootProps: getRootPropsButton
|
|
15019
|
-
} = _useButton,
|
|
15020
|
-
otherButtonProps = _objectWithoutPropertiesLoose(_useButton, _excluded$2b);
|
|
15021
|
-
|
|
15022
14984
|
const context = useTabContext();
|
|
15023
14985
|
|
|
15024
14986
|
if (context === null) {
|
|
15025
14987
|
throw new Error('No TabContext provided');
|
|
15026
14988
|
}
|
|
15027
14989
|
|
|
15028
|
-
const
|
|
15029
|
-
const
|
|
15030
|
-
const
|
|
15031
|
-
const a11yAttributes = {
|
|
15032
|
-
role: 'tab',
|
|
15033
|
-
'aria-controls': getPanelId(context, value),
|
|
15034
|
-
id: getTabId(context, value),
|
|
15035
|
-
'aria-selected': selected,
|
|
15036
|
-
disabled: otherButtonProps.disabled
|
|
15037
|
-
};
|
|
15038
|
-
|
|
15039
|
-
const handleFocus = event => {
|
|
15040
|
-
if (selectionFollowsFocus && !selected) {
|
|
15041
|
-
if (onChange) {
|
|
15042
|
-
onChange(event, value);
|
|
15043
|
-
}
|
|
15044
|
-
|
|
15045
|
-
context.onSelected(event, value);
|
|
15046
|
-
}
|
|
15047
|
-
|
|
15048
|
-
if (onFocus) {
|
|
15049
|
-
onFocus(event);
|
|
15050
|
-
}
|
|
15051
|
-
};
|
|
15052
|
-
|
|
15053
|
-
const handleClick = event => {
|
|
15054
|
-
if (!selected) {
|
|
15055
|
-
if (onChange) {
|
|
15056
|
-
onChange(event, value);
|
|
15057
|
-
}
|
|
15058
|
-
|
|
15059
|
-
context.onSelected(event, value);
|
|
15060
|
-
}
|
|
15061
|
-
|
|
15062
|
-
if (onClick) {
|
|
15063
|
-
onClick(event);
|
|
15064
|
-
}
|
|
15065
|
-
};
|
|
14990
|
+
const hidden = value !== context.value;
|
|
14991
|
+
const id = getPanelId(context, value);
|
|
14992
|
+
const tabId = getTabId(context, value);
|
|
15066
14993
|
|
|
15067
|
-
const getRootProps =
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
14994
|
+
const getRootProps = () => {
|
|
14995
|
+
return {
|
|
14996
|
+
'aria-labelledby': tabId,
|
|
14997
|
+
hidden,
|
|
14998
|
+
id
|
|
14999
|
+
};
|
|
15073
15000
|
};
|
|
15074
15001
|
|
|
15075
|
-
return
|
|
15002
|
+
return {
|
|
15003
|
+
hidden,
|
|
15076
15004
|
getRootProps
|
|
15077
|
-
}
|
|
15078
|
-
selected
|
|
15079
|
-
});
|
|
15005
|
+
};
|
|
15080
15006
|
};
|
|
15081
15007
|
|
|
15082
|
-
var
|
|
15008
|
+
var useTabPanel$1 = useTabPanel;
|
|
15083
15009
|
|
|
15084
|
-
const _excluded$
|
|
15010
|
+
const _excluded$2c = ["children", "className", "value", "components", "componentsProps", "component"];
|
|
15085
15011
|
|
|
15086
15012
|
const useUtilityClasses$1N = ownerState => {
|
|
15087
15013
|
const {
|
|
15088
|
-
|
|
15089
|
-
disabled
|
|
15014
|
+
hidden
|
|
15090
15015
|
} = ownerState;
|
|
15091
15016
|
const slots = {
|
|
15092
|
-
root: ['root',
|
|
15017
|
+
root: ['root', hidden && 'hidden']
|
|
15093
15018
|
};
|
|
15094
|
-
return composeClasses(slots,
|
|
15019
|
+
return composeClasses(slots, getTabPanelUnstyledUtilityClass, {});
|
|
15095
15020
|
};
|
|
15096
15021
|
/**
|
|
15097
15022
|
*
|
|
@@ -15101,59 +15026,43 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15101
15026
|
*
|
|
15102
15027
|
* API:
|
|
15103
15028
|
*
|
|
15104
|
-
* - [
|
|
15029
|
+
* - [TabPanelUnstyled API](https://mui.com/api/tab-panel-unstyled/)
|
|
15105
15030
|
*/
|
|
15106
15031
|
|
|
15107
15032
|
|
|
15108
|
-
const
|
|
15033
|
+
const TabPanelUnstyled = /*#__PURE__*/React__namespace.forwardRef(function TabPanelUnstyled(props, ref) {
|
|
15109
15034
|
var _ref, _componentsProps$root;
|
|
15110
15035
|
|
|
15111
15036
|
const {
|
|
15112
|
-
action,
|
|
15113
15037
|
children,
|
|
15114
15038
|
className,
|
|
15115
|
-
disabled = false,
|
|
15116
|
-
component,
|
|
15117
15039
|
components = {},
|
|
15118
|
-
componentsProps = {}
|
|
15040
|
+
componentsProps = {},
|
|
15041
|
+
component
|
|
15119
15042
|
} = props,
|
|
15120
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15043
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
15121
15044
|
|
|
15122
|
-
const tabRef = React__namespace.useRef();
|
|
15123
|
-
const handleRef = useForkRef(tabRef, ref);
|
|
15124
15045
|
const {
|
|
15125
|
-
|
|
15126
|
-
focusVisible,
|
|
15127
|
-
setFocusVisible,
|
|
15128
|
-
selected,
|
|
15046
|
+
hidden,
|
|
15129
15047
|
getRootProps
|
|
15130
|
-
} =
|
|
15131
|
-
ref: handleRef
|
|
15132
|
-
}));
|
|
15133
|
-
React__namespace.useImperativeHandle(action, () => ({
|
|
15134
|
-
focusVisible: () => {
|
|
15135
|
-
setFocusVisible(true);
|
|
15136
|
-
tabRef.current.focus();
|
|
15137
|
-
}
|
|
15138
|
-
}), [setFocusVisible]);
|
|
15048
|
+
} = useTabPanel$1(props);
|
|
15139
15049
|
|
|
15140
15050
|
const ownerState = _extends({}, props, {
|
|
15141
|
-
|
|
15142
|
-
focusVisible,
|
|
15143
|
-
disabled,
|
|
15144
|
-
selected
|
|
15051
|
+
hidden
|
|
15145
15052
|
});
|
|
15146
15053
|
|
|
15147
15054
|
const classes = useUtilityClasses$1N(ownerState);
|
|
15148
|
-
const
|
|
15149
|
-
const
|
|
15150
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
15151
|
-
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15055
|
+
const TabPanelRoot = (_ref = component != null ? component : components.Root) != null ? _ref : 'div';
|
|
15056
|
+
const tabPanelRootProps = appendOwnerState(TabPanelRoot, _extends({}, other, componentsProps.root), ownerState);
|
|
15057
|
+
return /*#__PURE__*/jsxRuntime_1(TabPanelRoot, _extends({}, getRootProps(), {
|
|
15152
15058
|
ref: ref,
|
|
15153
|
-
|
|
15059
|
+
role: "tabpanel"
|
|
15060
|
+
}, tabPanelRootProps, {
|
|
15061
|
+
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15062
|
+
children: !hidden && children
|
|
15154
15063
|
}));
|
|
15155
15064
|
});
|
|
15156
|
-
|
|
15065
|
+
TabPanelUnstyled.propTypes
|
|
15157
15066
|
/* remove-proptypes */
|
|
15158
15067
|
= {
|
|
15159
15068
|
// ----------------------------- Warning --------------------------------
|
|
@@ -15162,16 +15071,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15162
15071
|
// ----------------------------------------------------------------------
|
|
15163
15072
|
|
|
15164
15073
|
/**
|
|
15165
|
-
*
|
|
15166
|
-
*/
|
|
15167
|
-
action: propTypes.oneOfType([propTypes.func, propTypes.shape({
|
|
15168
|
-
current: propTypes.shape({
|
|
15169
|
-
focusVisible: propTypes.func.isRequired
|
|
15170
|
-
})
|
|
15171
|
-
})]),
|
|
15172
|
-
|
|
15173
|
-
/**
|
|
15174
|
-
* @ignore
|
|
15074
|
+
* The content of the component.
|
|
15175
15075
|
*/
|
|
15176
15076
|
children: propTypes.node,
|
|
15177
15077
|
|
|
@@ -15187,7 +15087,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15187
15087
|
component: propTypes.elementType,
|
|
15188
15088
|
|
|
15189
15089
|
/**
|
|
15190
|
-
* The components used for each slot inside the
|
|
15090
|
+
* The components used for each slot inside the TabPanel.
|
|
15191
15091
|
* Either a string to use a HTML element or a component.
|
|
15192
15092
|
* @default {}
|
|
15193
15093
|
*/
|
|
@@ -15196,38 +15096,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15196
15096
|
}),
|
|
15197
15097
|
|
|
15198
15098
|
/**
|
|
15199
|
-
* The props used for each slot inside the
|
|
15099
|
+
* The props used for each slot inside the TabPanel.
|
|
15200
15100
|
* @default {}
|
|
15201
15101
|
*/
|
|
15202
15102
|
componentsProps: propTypes.object,
|
|
15203
15103
|
|
|
15204
15104
|
/**
|
|
15205
|
-
*
|
|
15206
|
-
* @default false
|
|
15207
|
-
*/
|
|
15208
|
-
disabled: propTypes.bool,
|
|
15209
|
-
|
|
15210
|
-
/**
|
|
15211
|
-
* Callback invoked when new value is being set.
|
|
15212
|
-
*/
|
|
15213
|
-
onChange: propTypes.func,
|
|
15214
|
-
|
|
15215
|
-
/**
|
|
15216
|
-
* @ignore
|
|
15217
|
-
*/
|
|
15218
|
-
onClick: propTypes.func,
|
|
15219
|
-
|
|
15220
|
-
/**
|
|
15221
|
-
* @ignore
|
|
15222
|
-
*/
|
|
15223
|
-
onFocus: propTypes.func,
|
|
15224
|
-
|
|
15225
|
-
/**
|
|
15226
|
-
* You can provide your own value. Otherwise, we fall back to the child position index.
|
|
15105
|
+
* The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
|
|
15227
15106
|
*/
|
|
15228
|
-
value: propTypes.oneOfType([propTypes.number, propTypes.string])
|
|
15107
|
+
value: propTypes.oneOfType([propTypes.number, propTypes.string]).isRequired
|
|
15229
15108
|
} ;
|
|
15230
|
-
var
|
|
15109
|
+
var TabPanelUnstyled$1 = TabPanelUnstyled;
|
|
15231
15110
|
|
|
15232
15111
|
function getTabsListUnstyledUtilityClass(slot) {
|
|
15233
15112
|
return generateUtilityClass('TabsListUnstyled', slot);
|
|
@@ -15425,7 +15304,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15425
15304
|
|
|
15426
15305
|
var useTabsList$1 = useTabsList;
|
|
15427
15306
|
|
|
15428
|
-
const _excluded$
|
|
15307
|
+
const _excluded$2b = ["className", "children", "component", "components", "componentsProps"];
|
|
15429
15308
|
|
|
15430
15309
|
const useUtilityClasses$1M = ownerState => {
|
|
15431
15310
|
const {
|
|
@@ -15457,7 +15336,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15457
15336
|
components = {},
|
|
15458
15337
|
componentsProps = {}
|
|
15459
15338
|
} = props,
|
|
15460
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15339
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2b);
|
|
15461
15340
|
|
|
15462
15341
|
const {
|
|
15463
15342
|
isRtl,
|
|
@@ -15523,52 +15402,101 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15523
15402
|
} ;
|
|
15524
15403
|
var TabsListUnstyled$1 = TabsListUnstyled;
|
|
15525
15404
|
|
|
15526
|
-
function
|
|
15527
|
-
return generateUtilityClass('
|
|
15405
|
+
function getTabUnstyledUtilityClass(slot) {
|
|
15406
|
+
return generateUtilityClass('TabUnstyled', slot);
|
|
15528
15407
|
}
|
|
15529
|
-
const
|
|
15530
|
-
var
|
|
15408
|
+
const tabUnstyledClasses = generateUtilityClasses('TabUnstyled', ['root', 'selected', 'disabled']);
|
|
15409
|
+
var tabUnstyledClasses$1 = tabUnstyledClasses;
|
|
15531
15410
|
|
|
15532
|
-
const
|
|
15411
|
+
const _excluded$2a = ["getRootProps"];
|
|
15412
|
+
|
|
15413
|
+
const useTab = props => {
|
|
15533
15414
|
const {
|
|
15534
|
-
value
|
|
15415
|
+
value: valueProp,
|
|
15416
|
+
onChange,
|
|
15417
|
+
onClick,
|
|
15418
|
+
onFocus
|
|
15535
15419
|
} = props;
|
|
15420
|
+
|
|
15421
|
+
const _useButton = useButton(props),
|
|
15422
|
+
{
|
|
15423
|
+
getRootProps: getRootPropsButton
|
|
15424
|
+
} = _useButton,
|
|
15425
|
+
otherButtonProps = _objectWithoutPropertiesLoose(_useButton, _excluded$2a);
|
|
15426
|
+
|
|
15536
15427
|
const context = useTabContext();
|
|
15537
15428
|
|
|
15538
15429
|
if (context === null) {
|
|
15539
15430
|
throw new Error('No TabContext provided');
|
|
15540
15431
|
}
|
|
15541
15432
|
|
|
15542
|
-
const
|
|
15543
|
-
const
|
|
15544
|
-
const
|
|
15433
|
+
const value = valueProp != null ? valueProp : 0;
|
|
15434
|
+
const selected = context.value === value;
|
|
15435
|
+
const selectionFollowsFocus = context.selectionFollowsFocus;
|
|
15436
|
+
const a11yAttributes = {
|
|
15437
|
+
role: 'tab',
|
|
15438
|
+
'aria-controls': getPanelId(context, value),
|
|
15439
|
+
id: getTabId(context, value),
|
|
15440
|
+
'aria-selected': selected,
|
|
15441
|
+
disabled: otherButtonProps.disabled
|
|
15442
|
+
};
|
|
15545
15443
|
|
|
15546
|
-
const
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15444
|
+
const handleFocus = event => {
|
|
15445
|
+
if (selectionFollowsFocus && !selected) {
|
|
15446
|
+
if (onChange) {
|
|
15447
|
+
onChange(event, value);
|
|
15448
|
+
}
|
|
15449
|
+
|
|
15450
|
+
context.onSelected(event, value);
|
|
15451
|
+
}
|
|
15452
|
+
|
|
15453
|
+
if (onFocus) {
|
|
15454
|
+
onFocus(event);
|
|
15455
|
+
}
|
|
15552
15456
|
};
|
|
15553
15457
|
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15458
|
+
const handleClick = event => {
|
|
15459
|
+
if (!selected) {
|
|
15460
|
+
if (onChange) {
|
|
15461
|
+
onChange(event, value);
|
|
15462
|
+
}
|
|
15463
|
+
|
|
15464
|
+
context.onSelected(event, value);
|
|
15465
|
+
}
|
|
15466
|
+
|
|
15467
|
+
if (onClick) {
|
|
15468
|
+
onClick(event);
|
|
15469
|
+
}
|
|
15470
|
+
};
|
|
15471
|
+
|
|
15472
|
+
const getRootProps = otherHandlers => {
|
|
15473
|
+
const buttonResolvedProps = getRootPropsButton(_extends({
|
|
15474
|
+
onClick: handleClick,
|
|
15475
|
+
onFocus: handleFocus
|
|
15476
|
+
}, otherHandlers));
|
|
15477
|
+
return _extends({}, buttonResolvedProps, a11yAttributes);
|
|
15557
15478
|
};
|
|
15479
|
+
|
|
15480
|
+
return _extends({
|
|
15481
|
+
getRootProps
|
|
15482
|
+
}, otherButtonProps, {
|
|
15483
|
+
selected
|
|
15484
|
+
});
|
|
15558
15485
|
};
|
|
15559
15486
|
|
|
15560
|
-
var
|
|
15487
|
+
var useTab$1 = useTab;
|
|
15561
15488
|
|
|
15562
|
-
const _excluded$
|
|
15489
|
+
const _excluded$29 = ["action", "children", "value", "className", "disabled", "onChange", "onClick", "onFocus", "component", "components", "componentsProps"];
|
|
15563
15490
|
|
|
15564
15491
|
const useUtilityClasses$1L = ownerState => {
|
|
15565
15492
|
const {
|
|
15566
|
-
|
|
15493
|
+
selected,
|
|
15494
|
+
disabled
|
|
15567
15495
|
} = ownerState;
|
|
15568
15496
|
const slots = {
|
|
15569
|
-
root: ['root',
|
|
15497
|
+
root: ['root', selected && 'selected', disabled && 'disabled']
|
|
15570
15498
|
};
|
|
15571
|
-
return composeClasses(slots,
|
|
15499
|
+
return composeClasses(slots, getTabUnstyledUtilityClass, {});
|
|
15572
15500
|
};
|
|
15573
15501
|
/**
|
|
15574
15502
|
*
|
|
@@ -15578,43 +15506,59 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15578
15506
|
*
|
|
15579
15507
|
* API:
|
|
15580
15508
|
*
|
|
15581
|
-
* - [
|
|
15509
|
+
* - [TabUnstyled API](https://mui.com/api/tab-unstyled/)
|
|
15582
15510
|
*/
|
|
15583
15511
|
|
|
15584
15512
|
|
|
15585
|
-
const
|
|
15513
|
+
const TabUnstyled = /*#__PURE__*/React__namespace.forwardRef(function TabUnstyled(props, ref) {
|
|
15586
15514
|
var _ref, _componentsProps$root;
|
|
15587
15515
|
|
|
15588
15516
|
const {
|
|
15517
|
+
action,
|
|
15589
15518
|
children,
|
|
15590
15519
|
className,
|
|
15520
|
+
disabled = false,
|
|
15521
|
+
component,
|
|
15591
15522
|
components = {},
|
|
15592
|
-
componentsProps = {}
|
|
15593
|
-
component
|
|
15523
|
+
componentsProps = {}
|
|
15594
15524
|
} = props,
|
|
15595
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15525
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
15596
15526
|
|
|
15527
|
+
const tabRef = React__namespace.useRef();
|
|
15528
|
+
const handleRef = useForkRef(tabRef, ref);
|
|
15597
15529
|
const {
|
|
15598
|
-
|
|
15530
|
+
active,
|
|
15531
|
+
focusVisible,
|
|
15532
|
+
setFocusVisible,
|
|
15533
|
+
selected,
|
|
15599
15534
|
getRootProps
|
|
15600
|
-
} =
|
|
15535
|
+
} = useTab$1(_extends({}, props, {
|
|
15536
|
+
ref: handleRef
|
|
15537
|
+
}));
|
|
15538
|
+
React__namespace.useImperativeHandle(action, () => ({
|
|
15539
|
+
focusVisible: () => {
|
|
15540
|
+
setFocusVisible(true);
|
|
15541
|
+
tabRef.current.focus();
|
|
15542
|
+
}
|
|
15543
|
+
}), [setFocusVisible]);
|
|
15601
15544
|
|
|
15602
15545
|
const ownerState = _extends({}, props, {
|
|
15603
|
-
|
|
15546
|
+
active,
|
|
15547
|
+
focusVisible,
|
|
15548
|
+
disabled,
|
|
15549
|
+
selected
|
|
15604
15550
|
});
|
|
15605
15551
|
|
|
15606
15552
|
const classes = useUtilityClasses$1L(ownerState);
|
|
15607
|
-
const
|
|
15608
|
-
const
|
|
15609
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
15610
|
-
ref: ref,
|
|
15611
|
-
role: "tabpanel"
|
|
15612
|
-
}, tabPanelRootProps, {
|
|
15553
|
+
const TabRoot = (_ref = component != null ? component : components.Root) != null ? _ref : 'button';
|
|
15554
|
+
const tabRootProps = appendOwnerState(TabRoot, _extends({}, other, componentsProps.root), ownerState);
|
|
15555
|
+
return /*#__PURE__*/jsxRuntime_1(TabRoot, _extends({}, getRootProps(), tabRootProps, {
|
|
15613
15556
|
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15614
|
-
|
|
15557
|
+
ref: ref,
|
|
15558
|
+
children: children
|
|
15615
15559
|
}));
|
|
15616
15560
|
});
|
|
15617
|
-
|
|
15561
|
+
TabUnstyled.propTypes
|
|
15618
15562
|
/* remove-proptypes */
|
|
15619
15563
|
= {
|
|
15620
15564
|
// ----------------------------- Warning --------------------------------
|
|
@@ -15623,7 +15567,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15623
15567
|
// ----------------------------------------------------------------------
|
|
15624
15568
|
|
|
15625
15569
|
/**
|
|
15626
|
-
*
|
|
15570
|
+
* A ref for imperative actions. It currently only supports `focusVisible()` action.
|
|
15571
|
+
*/
|
|
15572
|
+
action: propTypes.oneOfType([propTypes.func, propTypes.shape({
|
|
15573
|
+
current: propTypes.shape({
|
|
15574
|
+
focusVisible: propTypes.func.isRequired
|
|
15575
|
+
})
|
|
15576
|
+
})]),
|
|
15577
|
+
|
|
15578
|
+
/**
|
|
15579
|
+
* @ignore
|
|
15627
15580
|
*/
|
|
15628
15581
|
children: propTypes.node,
|
|
15629
15582
|
|
|
@@ -15639,7 +15592,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15639
15592
|
component: propTypes.elementType,
|
|
15640
15593
|
|
|
15641
15594
|
/**
|
|
15642
|
-
* The components used for each slot inside the
|
|
15595
|
+
* The components used for each slot inside the Tab.
|
|
15643
15596
|
* Either a string to use a HTML element or a component.
|
|
15644
15597
|
* @default {}
|
|
15645
15598
|
*/
|
|
@@ -15648,17 +15601,253 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15648
15601
|
}),
|
|
15649
15602
|
|
|
15650
15603
|
/**
|
|
15651
|
-
* The props used for each slot inside the
|
|
15604
|
+
* The props used for each slot inside the Tab.
|
|
15652
15605
|
* @default {}
|
|
15653
15606
|
*/
|
|
15654
15607
|
componentsProps: propTypes.object,
|
|
15655
15608
|
|
|
15656
15609
|
/**
|
|
15657
|
-
*
|
|
15610
|
+
* If `true`, the component is disabled.
|
|
15611
|
+
* @default false
|
|
15658
15612
|
*/
|
|
15659
|
-
|
|
15613
|
+
disabled: propTypes.bool,
|
|
15614
|
+
|
|
15615
|
+
/**
|
|
15616
|
+
* Callback invoked when new value is being set.
|
|
15617
|
+
*/
|
|
15618
|
+
onChange: propTypes.func,
|
|
15619
|
+
|
|
15620
|
+
/**
|
|
15621
|
+
* @ignore
|
|
15622
|
+
*/
|
|
15623
|
+
onClick: propTypes.func,
|
|
15624
|
+
|
|
15625
|
+
/**
|
|
15626
|
+
* @ignore
|
|
15627
|
+
*/
|
|
15628
|
+
onFocus: propTypes.func,
|
|
15629
|
+
|
|
15630
|
+
/**
|
|
15631
|
+
* You can provide your own value. Otherwise, we fall back to the child position index.
|
|
15632
|
+
*/
|
|
15633
|
+
value: propTypes.oneOfType([propTypes.number, propTypes.string])
|
|
15660
15634
|
} ;
|
|
15661
|
-
var
|
|
15635
|
+
var TabUnstyled$1 = TabUnstyled;
|
|
15636
|
+
|
|
15637
|
+
const _excluded$28 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15638
|
+
|
|
15639
|
+
function getStyleValue(computedStyle, property) {
|
|
15640
|
+
return parseInt(computedStyle[property], 10) || 0;
|
|
15641
|
+
}
|
|
15642
|
+
|
|
15643
|
+
const styles$5 = {
|
|
15644
|
+
shadow: {
|
|
15645
|
+
// Visibility needed to hide the extra text area on iPads
|
|
15646
|
+
visibility: 'hidden',
|
|
15647
|
+
// Remove from the content flow
|
|
15648
|
+
position: 'absolute',
|
|
15649
|
+
// Ignore the scrollbar width
|
|
15650
|
+
overflow: 'hidden',
|
|
15651
|
+
height: 0,
|
|
15652
|
+
top: 0,
|
|
15653
|
+
left: 0,
|
|
15654
|
+
// Create a new layer, increase the isolation of the computed values
|
|
15655
|
+
transform: 'translateZ(0)'
|
|
15656
|
+
}
|
|
15657
|
+
};
|
|
15658
|
+
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
15659
|
+
const {
|
|
15660
|
+
onChange,
|
|
15661
|
+
maxRows,
|
|
15662
|
+
minRows = 1,
|
|
15663
|
+
style,
|
|
15664
|
+
value
|
|
15665
|
+
} = props,
|
|
15666
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
15667
|
+
|
|
15668
|
+
const {
|
|
15669
|
+
current: isControlled
|
|
15670
|
+
} = React__namespace.useRef(value != null);
|
|
15671
|
+
const inputRef = React__namespace.useRef(null);
|
|
15672
|
+
const handleRef = useForkRef(ref, inputRef);
|
|
15673
|
+
const shadowRef = React__namespace.useRef(null);
|
|
15674
|
+
const renders = React__namespace.useRef(0);
|
|
15675
|
+
const [state, setState] = React__namespace.useState({});
|
|
15676
|
+
const syncHeight = React__namespace.useCallback(() => {
|
|
15677
|
+
const input = inputRef.current;
|
|
15678
|
+
const containerWindow = ownerWindow(input);
|
|
15679
|
+
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
15680
|
+
|
|
15681
|
+
if (computedStyle.width === '0px') {
|
|
15682
|
+
return;
|
|
15683
|
+
}
|
|
15684
|
+
|
|
15685
|
+
const inputShallow = shadowRef.current;
|
|
15686
|
+
inputShallow.style.width = computedStyle.width;
|
|
15687
|
+
inputShallow.value = input.value || props.placeholder || 'x';
|
|
15688
|
+
|
|
15689
|
+
if (inputShallow.value.slice(-1) === '\n') {
|
|
15690
|
+
// Certain fonts which overflow the line height will cause the textarea
|
|
15691
|
+
// to report a different scrollHeight depending on whether the last line
|
|
15692
|
+
// is empty. Make it non-empty to avoid this issue.
|
|
15693
|
+
inputShallow.value += ' ';
|
|
15694
|
+
}
|
|
15695
|
+
|
|
15696
|
+
const boxSizing = computedStyle['box-sizing'];
|
|
15697
|
+
const padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
|
|
15698
|
+
const border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
|
|
15699
|
+
|
|
15700
|
+
const innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
|
|
15701
|
+
|
|
15702
|
+
inputShallow.value = 'x';
|
|
15703
|
+
const singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
|
|
15704
|
+
|
|
15705
|
+
let outerHeight = innerHeight;
|
|
15706
|
+
|
|
15707
|
+
if (minRows) {
|
|
15708
|
+
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
15709
|
+
}
|
|
15710
|
+
|
|
15711
|
+
if (maxRows) {
|
|
15712
|
+
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
15713
|
+
}
|
|
15714
|
+
|
|
15715
|
+
outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
|
|
15716
|
+
|
|
15717
|
+
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
15718
|
+
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
15719
|
+
setState(prevState => {
|
|
15720
|
+
// Need a large enough difference to update the height.
|
|
15721
|
+
// This prevents infinite rendering loop.
|
|
15722
|
+
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
15723
|
+
renders.current += 1;
|
|
15724
|
+
return {
|
|
15725
|
+
overflow,
|
|
15726
|
+
outerHeightStyle
|
|
15727
|
+
};
|
|
15728
|
+
}
|
|
15729
|
+
|
|
15730
|
+
{
|
|
15731
|
+
if (renders.current === 20) {
|
|
15732
|
+
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
15733
|
+
}
|
|
15734
|
+
}
|
|
15735
|
+
|
|
15736
|
+
return prevState;
|
|
15737
|
+
});
|
|
15738
|
+
}, [maxRows, minRows, props.placeholder]);
|
|
15739
|
+
React__namespace.useEffect(() => {
|
|
15740
|
+
const handleResize = debounce$1(() => {
|
|
15741
|
+
renders.current = 0;
|
|
15742
|
+
syncHeight();
|
|
15743
|
+
});
|
|
15744
|
+
const containerWindow = ownerWindow(inputRef.current);
|
|
15745
|
+
containerWindow.addEventListener('resize', handleResize);
|
|
15746
|
+
let resizeObserver;
|
|
15747
|
+
|
|
15748
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
15749
|
+
resizeObserver = new ResizeObserver(handleResize);
|
|
15750
|
+
resizeObserver.observe(inputRef.current);
|
|
15751
|
+
}
|
|
15752
|
+
|
|
15753
|
+
return () => {
|
|
15754
|
+
handleResize.clear();
|
|
15755
|
+
containerWindow.removeEventListener('resize', handleResize);
|
|
15756
|
+
|
|
15757
|
+
if (resizeObserver) {
|
|
15758
|
+
resizeObserver.disconnect();
|
|
15759
|
+
}
|
|
15760
|
+
};
|
|
15761
|
+
}, [syncHeight]);
|
|
15762
|
+
useEnhancedEffect$1(() => {
|
|
15763
|
+
syncHeight();
|
|
15764
|
+
});
|
|
15765
|
+
React__namespace.useEffect(() => {
|
|
15766
|
+
renders.current = 0;
|
|
15767
|
+
}, [value]);
|
|
15768
|
+
|
|
15769
|
+
const handleChange = event => {
|
|
15770
|
+
renders.current = 0;
|
|
15771
|
+
|
|
15772
|
+
if (!isControlled) {
|
|
15773
|
+
syncHeight();
|
|
15774
|
+
}
|
|
15775
|
+
|
|
15776
|
+
if (onChange) {
|
|
15777
|
+
onChange(event);
|
|
15778
|
+
}
|
|
15779
|
+
};
|
|
15780
|
+
|
|
15781
|
+
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
15782
|
+
children: [/*#__PURE__*/jsxRuntime_1("textarea", _extends({
|
|
15783
|
+
value: value,
|
|
15784
|
+
onChange: handleChange,
|
|
15785
|
+
ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
|
|
15786
|
+
,
|
|
15787
|
+
rows: minRows,
|
|
15788
|
+
style: _extends({
|
|
15789
|
+
height: state.outerHeightStyle,
|
|
15790
|
+
// Need a large enough difference to allow scrolling.
|
|
15791
|
+
// This prevents infinite rendering loop.
|
|
15792
|
+
overflow: state.overflow ? 'hidden' : null
|
|
15793
|
+
}, style)
|
|
15794
|
+
}, other)), /*#__PURE__*/jsxRuntime_1("textarea", {
|
|
15795
|
+
"aria-hidden": true,
|
|
15796
|
+
className: props.className,
|
|
15797
|
+
readOnly: true,
|
|
15798
|
+
ref: shadowRef,
|
|
15799
|
+
tabIndex: -1,
|
|
15800
|
+
style: _extends({}, styles$5.shadow, style, {
|
|
15801
|
+
padding: 0
|
|
15802
|
+
})
|
|
15803
|
+
})]
|
|
15804
|
+
});
|
|
15805
|
+
});
|
|
15806
|
+
TextareaAutosize.propTypes
|
|
15807
|
+
/* remove-proptypes */
|
|
15808
|
+
= {
|
|
15809
|
+
// ----------------------------- Warning --------------------------------
|
|
15810
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15811
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
15812
|
+
// ----------------------------------------------------------------------
|
|
15813
|
+
|
|
15814
|
+
/**
|
|
15815
|
+
* @ignore
|
|
15816
|
+
*/
|
|
15817
|
+
className: propTypes.string,
|
|
15818
|
+
|
|
15819
|
+
/**
|
|
15820
|
+
* Maximum number of rows to display.
|
|
15821
|
+
*/
|
|
15822
|
+
maxRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
15823
|
+
|
|
15824
|
+
/**
|
|
15825
|
+
* Minimum number of rows to display.
|
|
15826
|
+
* @default 1
|
|
15827
|
+
*/
|
|
15828
|
+
minRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
15829
|
+
|
|
15830
|
+
/**
|
|
15831
|
+
* @ignore
|
|
15832
|
+
*/
|
|
15833
|
+
onChange: propTypes.func,
|
|
15834
|
+
|
|
15835
|
+
/**
|
|
15836
|
+
* @ignore
|
|
15837
|
+
*/
|
|
15838
|
+
placeholder: propTypes.string,
|
|
15839
|
+
|
|
15840
|
+
/**
|
|
15841
|
+
* @ignore
|
|
15842
|
+
*/
|
|
15843
|
+
style: propTypes.object,
|
|
15844
|
+
|
|
15845
|
+
/**
|
|
15846
|
+
* @ignore
|
|
15847
|
+
*/
|
|
15848
|
+
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.string), propTypes.number, propTypes.string])
|
|
15849
|
+
} ;
|
|
15850
|
+
var TextareaAutosize$1 = TextareaAutosize;
|
|
15662
15851
|
|
|
15663
15852
|
function createMixins(breakpoints, spacing, mixins) {
|
|
15664
15853
|
return _extends({
|
|
@@ -16700,7 +16889,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16700
16889
|
/**
|
|
16701
16890
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
16702
16891
|
*/
|
|
16703
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
16892
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
16704
16893
|
|
|
16705
16894
|
/**
|
|
16706
16895
|
* Provides a human-readable title for the element that contains it.
|
|
@@ -18124,7 +18313,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18124
18313
|
/**
|
|
18125
18314
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18126
18315
|
*/
|
|
18127
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18316
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18128
18317
|
|
|
18129
18318
|
/**
|
|
18130
18319
|
* The duration for the transition, in milliseconds.
|
|
@@ -18296,7 +18485,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18296
18485
|
/**
|
|
18297
18486
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18298
18487
|
*/
|
|
18299
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18488
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18300
18489
|
|
|
18301
18490
|
/**
|
|
18302
18491
|
* The variant to use.
|
|
@@ -18573,7 +18762,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18573
18762
|
/**
|
|
18574
18763
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18575
18764
|
*/
|
|
18576
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18765
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18577
18766
|
|
|
18578
18767
|
/**
|
|
18579
18768
|
* The component used for the transition.
|
|
@@ -18584,7 +18773,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18584
18773
|
|
|
18585
18774
|
/**
|
|
18586
18775
|
* Props applied to the transition element.
|
|
18587
|
-
* By default, the element is based on this [`Transition`](
|
|
18776
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
18588
18777
|
*/
|
|
18589
18778
|
TransitionProps: propTypes.object
|
|
18590
18779
|
} ;
|
|
@@ -18685,7 +18874,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18685
18874
|
/**
|
|
18686
18875
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18687
18876
|
*/
|
|
18688
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
18877
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
18689
18878
|
} ;
|
|
18690
18879
|
var AccordionActions$1 = AccordionActions;
|
|
18691
18880
|
|
|
@@ -18761,7 +18950,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18761
18950
|
/**
|
|
18762
18951
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18763
18952
|
*/
|
|
18764
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
18953
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
18765
18954
|
} ;
|
|
18766
18955
|
var AccordionDetails$1 = AccordionDetails;
|
|
18767
18956
|
|
|
@@ -19607,7 +19796,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19607
19796
|
* This prop can help identify which element has keyboard focus.
|
|
19608
19797
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
19609
19798
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
19610
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
19799
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
19611
19800
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
19612
19801
|
* if needed.
|
|
19613
19802
|
*/
|
|
@@ -19700,7 +19889,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19700
19889
|
/**
|
|
19701
19890
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19702
19891
|
*/
|
|
19703
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
19892
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
19704
19893
|
|
|
19705
19894
|
/**
|
|
19706
19895
|
* @default 0
|
|
@@ -19904,7 +20093,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19904
20093
|
* This prop can help identify which element has keyboard focus.
|
|
19905
20094
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
19906
20095
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
19907
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
20096
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
19908
20097
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
19909
20098
|
* if needed.
|
|
19910
20099
|
*/
|
|
@@ -19918,7 +20107,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19918
20107
|
/**
|
|
19919
20108
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19920
20109
|
*/
|
|
19921
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20110
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
19922
20111
|
} ;
|
|
19923
20112
|
var AccordionSummary$1 = AccordionSummary;
|
|
19924
20113
|
|
|
@@ -20136,7 +20325,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20136
20325
|
/**
|
|
20137
20326
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20138
20327
|
*/
|
|
20139
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20328
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20140
20329
|
} ;
|
|
20141
20330
|
var IconButton$1 = IconButton;
|
|
20142
20331
|
|
|
@@ -20197,7 +20386,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20197
20386
|
const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
|
|
20198
20387
|
const color = ownerState.color || ownerState.severity;
|
|
20199
20388
|
return _extends({}, theme.typography.body2, {
|
|
20200
|
-
borderRadius: theme.shape.borderRadius,
|
|
20201
20389
|
backgroundColor: 'transparent',
|
|
20202
20390
|
display: 'flex',
|
|
20203
20391
|
padding: '6px 16px'
|
|
@@ -20292,7 +20480,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20292
20480
|
const classes = useUtilityClasses$1B(ownerState);
|
|
20293
20481
|
return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
|
|
20294
20482
|
role: role,
|
|
20295
|
-
square: true,
|
|
20296
20483
|
elevation: 0,
|
|
20297
20484
|
ownerState: ownerState,
|
|
20298
20485
|
className: clsx(classes.root, className),
|
|
@@ -20410,7 +20597,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20410
20597
|
/**
|
|
20411
20598
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20412
20599
|
*/
|
|
20413
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
20600
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
20414
20601
|
|
|
20415
20602
|
/**
|
|
20416
20603
|
* The variant to use.
|
|
@@ -20598,7 +20785,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20598
20785
|
/**
|
|
20599
20786
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20600
20787
|
*/
|
|
20601
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
20788
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
20602
20789
|
|
|
20603
20790
|
/**
|
|
20604
20791
|
* Applies the theme typography styles.
|
|
@@ -20710,7 +20897,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20710
20897
|
/**
|
|
20711
20898
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20712
20899
|
*/
|
|
20713
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20900
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20714
20901
|
} ;
|
|
20715
20902
|
var AlertTitle$1 = AlertTitle;
|
|
20716
20903
|
|
|
@@ -20878,7 +21065,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20878
21065
|
/**
|
|
20879
21066
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20880
21067
|
*/
|
|
20881
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
21068
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20882
21069
|
} ;
|
|
20883
21070
|
var AppBar$1 = AppBar;
|
|
20884
21071
|
|
|
@@ -21153,7 +21340,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21153
21340
|
/**
|
|
21154
21341
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
21155
21342
|
*/
|
|
21156
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
21343
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
21157
21344
|
} ;
|
|
21158
21345
|
var ListSubheader$1 = ListSubheader;
|
|
21159
21346
|
|
|
@@ -21667,7 +21854,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21667
21854
|
/**
|
|
21668
21855
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
21669
21856
|
*/
|
|
21670
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
21857
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
21671
21858
|
|
|
21672
21859
|
/**
|
|
21673
21860
|
* The variant to use.
|
|
@@ -22734,7 +22921,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22734
22921
|
/**
|
|
22735
22922
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22736
22923
|
*/
|
|
22737
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
22924
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
22738
22925
|
|
|
22739
22926
|
/**
|
|
22740
22927
|
* The value of the autocomplete.
|
|
@@ -23008,7 +23195,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23008
23195
|
/**
|
|
23009
23196
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23010
23197
|
*/
|
|
23011
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23198
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23012
23199
|
|
|
23013
23200
|
/**
|
|
23014
23201
|
* The shape of the avatar.
|
|
@@ -23026,7 +23213,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23026
23213
|
const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
|
|
23027
23214
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23028
23215
|
|
|
23029
|
-
const _excluded$1N = ["children", "className", "max", "spacing", "variant"];
|
|
23216
|
+
const _excluded$1N = ["children", "className", "max", "spacing", "total", "variant"];
|
|
23030
23217
|
const SPACINGS$1 = {
|
|
23031
23218
|
small: -16,
|
|
23032
23219
|
medium: null
|
|
@@ -23088,11 +23275,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23088
23275
|
className,
|
|
23089
23276
|
max = 5,
|
|
23090
23277
|
spacing = 'medium',
|
|
23278
|
+
total,
|
|
23091
23279
|
variant = 'circular'
|
|
23092
23280
|
} = props,
|
|
23093
23281
|
other = _objectWithoutPropertiesLoose(props, _excluded$1N);
|
|
23094
23282
|
|
|
23095
|
-
|
|
23283
|
+
let clampedMax = max < 2 ? 2 : max;
|
|
23096
23284
|
|
|
23097
23285
|
const ownerState = _extends({}, props, {
|
|
23098
23286
|
max,
|
|
@@ -23110,7 +23298,15 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23110
23298
|
|
|
23111
23299
|
return /*#__PURE__*/React__namespace.isValidElement(child);
|
|
23112
23300
|
});
|
|
23113
|
-
const
|
|
23301
|
+
const totalAvatars = total || children.length;
|
|
23302
|
+
|
|
23303
|
+
if (totalAvatars === clampedMax) {
|
|
23304
|
+
clampedMax += 1;
|
|
23305
|
+
}
|
|
23306
|
+
|
|
23307
|
+
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23308
|
+
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23309
|
+
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23114
23310
|
const marginLeft = spacing && SPACINGS$1[spacing] !== undefined ? SPACINGS$1[spacing] : -spacing;
|
|
23115
23311
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
23116
23312
|
ownerState: ownerState,
|
|
@@ -23125,7 +23321,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23125
23321
|
},
|
|
23126
23322
|
variant: variant,
|
|
23127
23323
|
children: ["+", extraAvatars]
|
|
23128
|
-
}) : null, children.slice(0,
|
|
23324
|
+
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
23129
23325
|
return /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
23130
23326
|
className: clsx(child.props.className, classes.avatar),
|
|
23131
23327
|
style: _extends({
|
|
@@ -23180,7 +23376,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23180
23376
|
/**
|
|
23181
23377
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23182
23378
|
*/
|
|
23183
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23379
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23380
|
+
|
|
23381
|
+
/**
|
|
23382
|
+
* The total number of avatars. Used for calculating the number of extra avatars.
|
|
23383
|
+
* @default children.length
|
|
23384
|
+
*/
|
|
23385
|
+
total: propTypes.number,
|
|
23184
23386
|
|
|
23185
23387
|
/**
|
|
23186
23388
|
* The variant to use.
|
|
@@ -23542,7 +23744,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23542
23744
|
/**
|
|
23543
23745
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23544
23746
|
*/
|
|
23545
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23747
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23546
23748
|
|
|
23547
23749
|
/**
|
|
23548
23750
|
* The duration for the transition, in milliseconds.
|
|
@@ -23844,7 +24046,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23844
24046
|
/**
|
|
23845
24047
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23846
24048
|
*/
|
|
23847
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24049
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23848
24050
|
|
|
23849
24051
|
/**
|
|
23850
24052
|
* The variant to use.
|
|
@@ -23982,7 +24184,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23982
24184
|
/**
|
|
23983
24185
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23984
24186
|
*/
|
|
23985
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24187
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23986
24188
|
|
|
23987
24189
|
/**
|
|
23988
24190
|
* The value of the currently selected `BottomNavigationAction`.
|
|
@@ -24162,7 +24364,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24162
24364
|
/**
|
|
24163
24365
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24164
24366
|
*/
|
|
24165
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24367
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
24166
24368
|
|
|
24167
24369
|
/**
|
|
24168
24370
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
@@ -24471,7 +24673,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24471
24673
|
/**
|
|
24472
24674
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24473
24675
|
*/
|
|
24474
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
24676
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
24475
24677
|
} ;
|
|
24476
24678
|
var Breadcrumbs$1 = Breadcrumbs;
|
|
24477
24679
|
|
|
@@ -24492,7 +24694,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24492
24694
|
|
|
24493
24695
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
24494
24696
|
|
|
24495
|
-
const _excluded$1G = ["children", "
|
|
24697
|
+
const _excluded$1G = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
24496
24698
|
|
|
24497
24699
|
const useUtilityClasses$1p = ownerState => {
|
|
24498
24700
|
const {
|
|
@@ -24693,51 +24895,32 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24693
24895
|
marginRight: -2
|
|
24694
24896
|
}, commonIconStyles(ownerState)));
|
|
24695
24897
|
const Button = /*#__PURE__*/React__namespace.forwardRef(function Button(inProps, ref) {
|
|
24898
|
+
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
24899
|
+
const contextProps = React__namespace.useContext(ButtonGroupContext$1);
|
|
24900
|
+
const resolvedProps = resolveProps(contextProps, inProps);
|
|
24696
24901
|
const props = useThemeProps({
|
|
24697
|
-
props:
|
|
24902
|
+
props: resolvedProps,
|
|
24698
24903
|
name: 'MuiButton'
|
|
24699
24904
|
});
|
|
24700
|
-
const {
|
|
24701
|
-
className: classNameContext,
|
|
24702
|
-
color: colorContext,
|
|
24703
|
-
disabled: disabledContext,
|
|
24704
|
-
disableElevation: disableElevationContext,
|
|
24705
|
-
disableFocusRipple: disableFocusRippleContext,
|
|
24706
|
-
disableRipple: disableRippleContext,
|
|
24707
|
-
fullWidth: fullWidthContext,
|
|
24708
|
-
size: sizeContext,
|
|
24709
|
-
variant: variantContext
|
|
24710
|
-
} = React__namespace.useContext(ButtonGroupContext$1);
|
|
24711
24905
|
|
|
24712
24906
|
const {
|
|
24713
24907
|
children,
|
|
24714
|
-
|
|
24715
|
-
color: colorProp,
|
|
24908
|
+
color = 'primary',
|
|
24716
24909
|
component = 'button',
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24910
|
+
className,
|
|
24911
|
+
disabled = false,
|
|
24912
|
+
disableElevation = false,
|
|
24913
|
+
disableFocusRipple = false,
|
|
24721
24914
|
endIcon: endIconProp,
|
|
24722
24915
|
focusVisibleClassName,
|
|
24723
|
-
fullWidth
|
|
24724
|
-
size
|
|
24916
|
+
fullWidth = false,
|
|
24917
|
+
size = 'medium',
|
|
24725
24918
|
startIcon: startIconProp,
|
|
24726
24919
|
type,
|
|
24727
|
-
variant
|
|
24920
|
+
variant = 'text'
|
|
24728
24921
|
} = props,
|
|
24729
24922
|
other = _objectWithoutPropertiesLoose(props, _excluded$1G);
|
|
24730
24923
|
|
|
24731
|
-
const color = colorProp || colorContext || 'primary'; // TODO v6: Use nullish coalescing (??) instead of OR operator for these boolean props so that these boolean props for Button with ButtonGroup context take priority. See conversation from https://github.com/mui-org/material-ui/pull/28645#discussion_r738380902.
|
|
24732
|
-
|
|
24733
|
-
const disabled = disabledProp || disabledContext || false;
|
|
24734
|
-
const disableElevation = disableElevationProp || disableElevationContext || false;
|
|
24735
|
-
const disableFocusRipple = disableFocusRippleProp || disableFocusRippleContext || false;
|
|
24736
|
-
const fullWidth = fullWidthProp || fullWidthContext || false;
|
|
24737
|
-
const size = sizeProp || sizeContext || 'medium';
|
|
24738
|
-
const variant = variantProp || variantContext || 'text';
|
|
24739
|
-
const disableRipple = disableRippleProp || disableRippleContext || false;
|
|
24740
|
-
|
|
24741
24924
|
const ownerState = _extends({}, props, {
|
|
24742
24925
|
color,
|
|
24743
24926
|
component,
|
|
@@ -24766,10 +24949,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24766
24949
|
|
|
24767
24950
|
return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
|
|
24768
24951
|
ownerState: ownerState,
|
|
24769
|
-
className: clsx(className,
|
|
24952
|
+
className: clsx(className, contextProps.className),
|
|
24770
24953
|
component: component,
|
|
24771
24954
|
disabled: disabled,
|
|
24772
|
-
disableRipple: disableRipple,
|
|
24773
24955
|
focusRipple: !disableFocusRipple,
|
|
24774
24956
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
24775
24957
|
ref: ref,
|
|
@@ -24882,7 +25064,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24882
25064
|
/**
|
|
24883
25065
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24884
25066
|
*/
|
|
24885
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25067
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
24886
25068
|
|
|
24887
25069
|
/**
|
|
24888
25070
|
* @ignore
|
|
@@ -25160,7 +25342,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25160
25342
|
/**
|
|
25161
25343
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25162
25344
|
*/
|
|
25163
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25345
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
25164
25346
|
|
|
25165
25347
|
/**
|
|
25166
25348
|
* The variant to use.
|
|
@@ -25261,7 +25443,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25261
25443
|
/**
|
|
25262
25444
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25263
25445
|
*/
|
|
25264
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25446
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25265
25447
|
} ;
|
|
25266
25448
|
var Card$1 = Card;
|
|
25267
25449
|
|
|
@@ -25383,7 +25565,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25383
25565
|
/**
|
|
25384
25566
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25385
25567
|
*/
|
|
25386
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25568
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25387
25569
|
} ;
|
|
25388
25570
|
var CardActionArea$1 = CardActionArea;
|
|
25389
25571
|
|
|
@@ -25481,7 +25663,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25481
25663
|
/**
|
|
25482
25664
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25483
25665
|
*/
|
|
25484
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25666
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25485
25667
|
} ;
|
|
25486
25668
|
var CardActions$1 = CardActions;
|
|
25487
25669
|
|
|
@@ -25571,7 +25753,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25571
25753
|
/**
|
|
25572
25754
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25573
25755
|
*/
|
|
25574
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25756
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25575
25757
|
} ;
|
|
25576
25758
|
var CardContent$1 = CardContent;
|
|
25577
25759
|
|
|
@@ -25774,7 +25956,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25774
25956
|
/**
|
|
25775
25957
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25776
25958
|
*/
|
|
25777
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25959
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
25778
25960
|
|
|
25779
25961
|
/**
|
|
25780
25962
|
* The content of the component.
|
|
@@ -25934,7 +26116,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25934
26116
|
/**
|
|
25935
26117
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25936
26118
|
*/
|
|
25937
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
26119
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25938
26120
|
} ;
|
|
25939
26121
|
var CardMedia$1 = CardMedia;
|
|
25940
26122
|
|
|
@@ -26480,7 +26662,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26480
26662
|
/**
|
|
26481
26663
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26482
26664
|
*/
|
|
26483
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
26665
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
26484
26666
|
|
|
26485
26667
|
/**
|
|
26486
26668
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -26732,7 +26914,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26732
26914
|
/**
|
|
26733
26915
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26734
26916
|
*/
|
|
26735
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
26917
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
26736
26918
|
|
|
26737
26919
|
/**
|
|
26738
26920
|
* The thickness of the circle.
|
|
@@ -26756,192 +26938,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26756
26938
|
} ;
|
|
26757
26939
|
var CircularProgress$1 = CircularProgress;
|
|
26758
26940
|
|
|
26759
|
-
function mapEventPropToEvent(eventProp) {
|
|
26760
|
-
return eventProp.substring(2).toLowerCase();
|
|
26761
|
-
}
|
|
26762
|
-
|
|
26763
|
-
function clickedRootScrollbar(event, doc) {
|
|
26764
|
-
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
26765
|
-
}
|
|
26766
|
-
|
|
26767
|
-
/**
|
|
26768
|
-
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
26769
|
-
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
26770
|
-
*
|
|
26771
|
-
* Demos:
|
|
26772
|
-
*
|
|
26773
|
-
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
26774
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
26775
|
-
*
|
|
26776
|
-
* API:
|
|
26777
|
-
*
|
|
26778
|
-
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
26779
|
-
*/
|
|
26780
|
-
function ClickAwayListener(props) {
|
|
26781
|
-
const {
|
|
26782
|
-
children,
|
|
26783
|
-
disableReactTree = false,
|
|
26784
|
-
mouseEvent = 'onClick',
|
|
26785
|
-
onClickAway,
|
|
26786
|
-
touchEvent = 'onTouchEnd'
|
|
26787
|
-
} = props;
|
|
26788
|
-
const movedRef = React__namespace.useRef(false);
|
|
26789
|
-
const nodeRef = React__namespace.useRef(null);
|
|
26790
|
-
const activatedRef = React__namespace.useRef(false);
|
|
26791
|
-
const syntheticEventRef = React__namespace.useRef(false);
|
|
26792
|
-
React__namespace.useEffect(() => {
|
|
26793
|
-
// Ensure that this component is not "activated" synchronously.
|
|
26794
|
-
// https://github.com/facebook/react/issues/20074
|
|
26795
|
-
setTimeout(() => {
|
|
26796
|
-
activatedRef.current = true;
|
|
26797
|
-
}, 0);
|
|
26798
|
-
return () => {
|
|
26799
|
-
activatedRef.current = false;
|
|
26800
|
-
};
|
|
26801
|
-
}, []);
|
|
26802
|
-
const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
|
|
26803
|
-
children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
|
|
26804
|
-
//
|
|
26805
|
-
// event.preventDefault() is meant to stop default behaviors like
|
|
26806
|
-
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
26807
|
-
// and hitting left arrow to move the cursor in a text input etc.
|
|
26808
|
-
// Only special HTML elements have these default behaviors.
|
|
26809
|
-
|
|
26810
|
-
const handleClickAway = useEventCallback(event => {
|
|
26811
|
-
// Given developers can stop the propagation of the synthetic event,
|
|
26812
|
-
// we can only be confident with a positive value.
|
|
26813
|
-
const insideReactTree = syntheticEventRef.current;
|
|
26814
|
-
syntheticEventRef.current = false;
|
|
26815
|
-
const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
|
|
26816
|
-
// 2. The child might render null.
|
|
26817
|
-
// 3. Behave like a blur listener.
|
|
26818
|
-
|
|
26819
|
-
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
|
26820
|
-
return;
|
|
26821
|
-
} // Do not act if user performed touchmove
|
|
26822
|
-
|
|
26823
|
-
|
|
26824
|
-
if (movedRef.current) {
|
|
26825
|
-
movedRef.current = false;
|
|
26826
|
-
return;
|
|
26827
|
-
}
|
|
26828
|
-
|
|
26829
|
-
let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
|
26830
|
-
|
|
26831
|
-
if (event.composedPath) {
|
|
26832
|
-
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
|
26833
|
-
} else {
|
|
26834
|
-
insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
26835
|
-
event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
26836
|
-
event.target);
|
|
26837
|
-
}
|
|
26838
|
-
|
|
26839
|
-
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
26840
|
-
onClickAway(event);
|
|
26841
|
-
}
|
|
26842
|
-
}); // Keep track of mouse/touch events that bubbled up through the portal.
|
|
26843
|
-
|
|
26844
|
-
const createHandleSynthetic = handlerName => event => {
|
|
26845
|
-
syntheticEventRef.current = true;
|
|
26846
|
-
const childrenPropsHandler = children.props[handlerName];
|
|
26847
|
-
|
|
26848
|
-
if (childrenPropsHandler) {
|
|
26849
|
-
childrenPropsHandler(event);
|
|
26850
|
-
}
|
|
26851
|
-
};
|
|
26852
|
-
|
|
26853
|
-
const childrenProps = {
|
|
26854
|
-
ref: handleRef
|
|
26855
|
-
};
|
|
26856
|
-
|
|
26857
|
-
if (touchEvent !== false) {
|
|
26858
|
-
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
26859
|
-
}
|
|
26860
|
-
|
|
26861
|
-
React__namespace.useEffect(() => {
|
|
26862
|
-
if (touchEvent !== false) {
|
|
26863
|
-
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
26864
|
-
const doc = ownerDocument(nodeRef.current);
|
|
26865
|
-
|
|
26866
|
-
const handleTouchMove = () => {
|
|
26867
|
-
movedRef.current = true;
|
|
26868
|
-
};
|
|
26869
|
-
|
|
26870
|
-
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
26871
|
-
doc.addEventListener('touchmove', handleTouchMove);
|
|
26872
|
-
return () => {
|
|
26873
|
-
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
26874
|
-
doc.removeEventListener('touchmove', handleTouchMove);
|
|
26875
|
-
};
|
|
26876
|
-
}
|
|
26877
|
-
|
|
26878
|
-
return undefined;
|
|
26879
|
-
}, [handleClickAway, touchEvent]);
|
|
26880
|
-
|
|
26881
|
-
if (mouseEvent !== false) {
|
|
26882
|
-
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
26883
|
-
}
|
|
26884
|
-
|
|
26885
|
-
React__namespace.useEffect(() => {
|
|
26886
|
-
if (mouseEvent !== false) {
|
|
26887
|
-
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
26888
|
-
const doc = ownerDocument(nodeRef.current);
|
|
26889
|
-
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
26890
|
-
return () => {
|
|
26891
|
-
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
26892
|
-
};
|
|
26893
|
-
}
|
|
26894
|
-
|
|
26895
|
-
return undefined;
|
|
26896
|
-
}, [handleClickAway, mouseEvent]);
|
|
26897
|
-
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
26898
|
-
children: /*#__PURE__*/React__namespace.cloneElement(children, childrenProps)
|
|
26899
|
-
});
|
|
26900
|
-
}
|
|
26901
|
-
|
|
26902
|
-
ClickAwayListener.propTypes
|
|
26903
|
-
/* remove-proptypes */
|
|
26904
|
-
= {
|
|
26905
|
-
// ----------------------------- Warning --------------------------------
|
|
26906
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
26907
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26908
|
-
// ----------------------------------------------------------------------
|
|
26909
|
-
|
|
26910
|
-
/**
|
|
26911
|
-
* The wrapped element.
|
|
26912
|
-
*/
|
|
26913
|
-
children: elementAcceptingRef$1.isRequired,
|
|
26914
|
-
|
|
26915
|
-
/**
|
|
26916
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
26917
|
-
* This prop changes how portaled elements are handled.
|
|
26918
|
-
* @default false
|
|
26919
|
-
*/
|
|
26920
|
-
disableReactTree: propTypes.bool,
|
|
26921
|
-
|
|
26922
|
-
/**
|
|
26923
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
26924
|
-
* @default 'onClick'
|
|
26925
|
-
*/
|
|
26926
|
-
mouseEvent: propTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
|
|
26927
|
-
|
|
26928
|
-
/**
|
|
26929
|
-
* Callback fired when a "click away" event is detected.
|
|
26930
|
-
*/
|
|
26931
|
-
onClickAway: propTypes.func.isRequired,
|
|
26932
|
-
|
|
26933
|
-
/**
|
|
26934
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
26935
|
-
* @default 'onTouchEnd'
|
|
26936
|
-
*/
|
|
26937
|
-
touchEvent: propTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
|
26938
|
-
} ;
|
|
26939
|
-
|
|
26940
|
-
{
|
|
26941
|
-
// eslint-disable-next-line
|
|
26942
|
-
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
26943
|
-
}
|
|
26944
|
-
|
|
26945
26941
|
function getContainerUtilityClass(slot) {
|
|
26946
26942
|
return generateUtilityClass('MuiContainer', slot);
|
|
26947
26943
|
}
|
|
@@ -27100,7 +27096,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27100
27096
|
/**
|
|
27101
27097
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27102
27098
|
*/
|
|
27103
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
27099
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
27104
27100
|
} ;
|
|
27105
27101
|
var Container$1 = Container;
|
|
27106
27102
|
|
|
@@ -27516,7 +27512,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27516
27512
|
/**
|
|
27517
27513
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27518
27514
|
*/
|
|
27519
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
27515
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
27520
27516
|
} ;
|
|
27521
27517
|
var Modal$1 = Modal;
|
|
27522
27518
|
|
|
@@ -27905,7 +27901,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27905
27901
|
/**
|
|
27906
27902
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27907
27903
|
*/
|
|
27908
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
27904
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
27909
27905
|
|
|
27910
27906
|
/**
|
|
27911
27907
|
* The component used for the transition.
|
|
@@ -27927,7 +27923,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27927
27923
|
|
|
27928
27924
|
/**
|
|
27929
27925
|
* Props applied to the transition element.
|
|
27930
|
-
* By default, the element is based on this [`Transition`](
|
|
27926
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
27931
27927
|
*/
|
|
27932
27928
|
TransitionProps: propTypes.object
|
|
27933
27929
|
} ;
|
|
@@ -28029,7 +28025,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28029
28025
|
/**
|
|
28030
28026
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28031
28027
|
*/
|
|
28032
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28028
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28033
28029
|
} ;
|
|
28034
28030
|
var DialogActions$1 = DialogActions;
|
|
28035
28031
|
|
|
@@ -28140,7 +28136,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28140
28136
|
/**
|
|
28141
28137
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28142
28138
|
*/
|
|
28143
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28139
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28144
28140
|
} ;
|
|
28145
28141
|
var DialogContent$1 = DialogContent;
|
|
28146
28142
|
|
|
@@ -28209,7 +28205,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28209
28205
|
/**
|
|
28210
28206
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28211
28207
|
*/
|
|
28212
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28208
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28213
28209
|
} ;
|
|
28214
28210
|
var DialogContentText$1 = DialogContentText;
|
|
28215
28211
|
|
|
@@ -28290,7 +28286,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28290
28286
|
/**
|
|
28291
28287
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28292
28288
|
*/
|
|
28293
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28289
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28294
28290
|
} ;
|
|
28295
28291
|
var DialogTitle$1 = DialogTitle;
|
|
28296
28292
|
|
|
@@ -28538,7 +28534,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28538
28534
|
/**
|
|
28539
28535
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28540
28536
|
*/
|
|
28541
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
28537
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
28542
28538
|
|
|
28543
28539
|
/**
|
|
28544
28540
|
* The text alignment.
|
|
@@ -29217,7 +29213,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29217
29213
|
/**
|
|
29218
29214
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
29219
29215
|
*/
|
|
29220
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
29216
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
29221
29217
|
|
|
29222
29218
|
/**
|
|
29223
29219
|
* The duration for the transition, in milliseconds.
|
|
@@ -29472,7 +29468,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29472
29468
|
/**
|
|
29473
29469
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
29474
29470
|
*/
|
|
29475
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
29471
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
29476
29472
|
|
|
29477
29473
|
/**
|
|
29478
29474
|
* The variant to use.
|
|
@@ -30221,7 +30217,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30221
30217
|
/**
|
|
30222
30218
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30223
30219
|
*/
|
|
30224
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30220
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30225
30221
|
|
|
30226
30222
|
/**
|
|
30227
30223
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -30615,7 +30611,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30615
30611
|
/**
|
|
30616
30612
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30617
30613
|
*/
|
|
30618
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30614
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30619
30615
|
|
|
30620
30616
|
/**
|
|
30621
30617
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -30939,7 +30935,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30939
30935
|
/**
|
|
30940
30936
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30941
30937
|
*/
|
|
30942
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30938
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30943
30939
|
|
|
30944
30940
|
/**
|
|
30945
30941
|
* The variant to use.
|
|
@@ -31153,7 +31149,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31153
31149
|
/**
|
|
31154
31150
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31155
31151
|
*/
|
|
31156
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
31152
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
31157
31153
|
|
|
31158
31154
|
/**
|
|
31159
31155
|
* The value of the component.
|
|
@@ -31260,7 +31256,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31260
31256
|
/**
|
|
31261
31257
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31262
31258
|
*/
|
|
31263
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
31259
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
31264
31260
|
} ;
|
|
31265
31261
|
var FormGroup$1 = FormGroup;
|
|
31266
31262
|
|
|
@@ -31437,7 +31433,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31437
31433
|
/**
|
|
31438
31434
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31439
31435
|
*/
|
|
31440
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
31436
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
31441
31437
|
|
|
31442
31438
|
/**
|
|
31443
31439
|
* The variant to use.
|
|
@@ -31618,7 +31614,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31618
31614
|
/**
|
|
31619
31615
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31620
31616
|
*/
|
|
31621
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
31617
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
31622
31618
|
} ;
|
|
31623
31619
|
var FormLabel$1 = FormLabel;
|
|
31624
31620
|
|
|
@@ -31812,6 +31808,27 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31812
31808
|
}
|
|
31813
31809
|
|
|
31814
31810
|
return styles;
|
|
31811
|
+
}
|
|
31812
|
+
function resolveSpacingClasses(spacing, container, styles = {}) {
|
|
31813
|
+
// in case of grid item or undefined/null or `spacing` <= 0
|
|
31814
|
+
if (!container || !spacing || spacing <= 0) {
|
|
31815
|
+
return [];
|
|
31816
|
+
} // in case of string/number `spacing`
|
|
31817
|
+
|
|
31818
|
+
|
|
31819
|
+
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31820
|
+
return [styles[`spacing-xs-${String(spacing)}`] || `spacing-xs-${String(spacing)}`];
|
|
31821
|
+
} // in case of object `spacing`
|
|
31822
|
+
|
|
31823
|
+
|
|
31824
|
+
const {
|
|
31825
|
+
xs,
|
|
31826
|
+
sm,
|
|
31827
|
+
md,
|
|
31828
|
+
lg,
|
|
31829
|
+
xl
|
|
31830
|
+
} = spacing;
|
|
31831
|
+
return [Number(xs) > 0 && (styles[`spacing-xs-${String(xs)}`] || `spacing-xs-${String(xs)}`), Number(sm) > 0 && (styles[`spacing-sm-${String(sm)}`] || `spacing-sm-${String(sm)}`), Number(md) > 0 && (styles[`spacing-md-${String(md)}`] || `spacing-md-${String(md)}`), Number(lg) > 0 && (styles[`spacing-lg-${String(lg)}`] || `spacing-lg-${String(lg)}`), Number(xl) > 0 && (styles[`spacing-xl-${String(xl)}`] || `spacing-xl-${String(xl)}`)];
|
|
31815
31832
|
} // Default CSS values
|
|
31816
31833
|
// flex: '0 1 auto',
|
|
31817
31834
|
// flexDirection: 'row',
|
|
@@ -31836,7 +31853,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31836
31853
|
xs,
|
|
31837
31854
|
zeroMinWidth
|
|
31838
31855
|
} = props.ownerState;
|
|
31839
|
-
return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth,
|
|
31856
|
+
return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth, ...resolveSpacingClasses(spacing, container, styles), direction !== 'row' && styles[`direction-xs-${String(direction)}`], wrap !== 'wrap' && styles[`wrap-xs-${String(wrap)}`], xs !== false && styles[`grid-xs-${String(xs)}`], sm !== false && styles[`grid-sm-${String(sm)}`], md !== false && styles[`grid-md-${String(md)}`], lg !== false && styles[`grid-lg-${String(lg)}`], xl !== false && styles[`grid-xl-${String(xl)}`]];
|
|
31840
31857
|
}
|
|
31841
31858
|
})(({
|
|
31842
31859
|
ownerState
|
|
@@ -31880,7 +31897,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31880
31897
|
zeroMinWidth
|
|
31881
31898
|
} = ownerState;
|
|
31882
31899
|
const slots = {
|
|
31883
|
-
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth',
|
|
31900
|
+
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...resolveSpacingClasses(spacing, container), direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, xs !== false && `grid-xs-${String(xs)}`, sm !== false && `grid-sm-${String(sm)}`, md !== false && `grid-md-${String(md)}`, lg !== false && `grid-lg-${String(lg)}`, xl !== false && `grid-xl-${String(xl)}`]
|
|
31884
31901
|
};
|
|
31885
31902
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
31886
31903
|
};
|
|
@@ -32060,7 +32077,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
32060
32077
|
/**
|
|
32061
32078
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
32062
32079
|
*/
|
|
32063
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
32080
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
32064
32081
|
|
|
32065
32082
|
/**
|
|
32066
32083
|
* Defines the `flex-wrap` style property.
|
|
@@ -33221,7 +33238,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33221
33238
|
/**
|
|
33222
33239
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33223
33240
|
*/
|
|
33224
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
33241
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
33225
33242
|
} ;
|
|
33226
33243
|
Icon.muiName = 'Icon';
|
|
33227
33244
|
var Icon$1 = Icon;
|
|
@@ -33398,7 +33415,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33398
33415
|
/**
|
|
33399
33416
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33400
33417
|
*/
|
|
33401
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
33418
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
33402
33419
|
|
|
33403
33420
|
/**
|
|
33404
33421
|
* The variant to use.
|
|
@@ -33586,7 +33603,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33586
33603
|
/**
|
|
33587
33604
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33588
33605
|
*/
|
|
33589
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
33606
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
33590
33607
|
} ;
|
|
33591
33608
|
var ImageListItem$1 = ImageListItem;
|
|
33592
33609
|
|
|
@@ -33812,7 +33829,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33812
33829
|
/**
|
|
33813
33830
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33814
33831
|
*/
|
|
33815
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
33832
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
33816
33833
|
|
|
33817
33834
|
/**
|
|
33818
33835
|
* Title to be displayed.
|
|
@@ -34127,7 +34144,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34127
34144
|
/**
|
|
34128
34145
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34129
34146
|
*/
|
|
34130
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34147
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34131
34148
|
|
|
34132
34149
|
/**
|
|
34133
34150
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -34322,7 +34339,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34322
34339
|
/**
|
|
34323
34340
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34324
34341
|
*/
|
|
34325
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34342
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34326
34343
|
|
|
34327
34344
|
/**
|
|
34328
34345
|
* The variant to use.
|
|
@@ -34535,7 +34552,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34535
34552
|
/**
|
|
34536
34553
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34537
34554
|
*/
|
|
34538
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34555
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34539
34556
|
|
|
34540
34557
|
/**
|
|
34541
34558
|
* The variant to use.
|
|
@@ -34884,7 +34901,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34884
34901
|
/**
|
|
34885
34902
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34886
34903
|
*/
|
|
34887
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34904
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34888
34905
|
|
|
34889
34906
|
/**
|
|
34890
34907
|
* The value of the progress indicator for the determinate and buffer variants.
|
|
@@ -35117,7 +35134,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35117
35134
|
/**
|
|
35118
35135
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35119
35136
|
*/
|
|
35120
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
35137
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
35121
35138
|
|
|
35122
35139
|
/**
|
|
35123
35140
|
* `classes` prop applied to the [`Typography`](/api/typography/) element.
|
|
@@ -35285,7 +35302,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35285
35302
|
/**
|
|
35286
35303
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35287
35304
|
*/
|
|
35288
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35305
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35289
35306
|
} ;
|
|
35290
35307
|
var List$1 = List;
|
|
35291
35308
|
|
|
@@ -35513,7 +35530,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35513
35530
|
* This prop can help identify which element has keyboard focus.
|
|
35514
35531
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
35515
35532
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
35516
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
35533
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
35517
35534
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
35518
35535
|
* if needed.
|
|
35519
35536
|
*/
|
|
@@ -35528,7 +35545,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35528
35545
|
/**
|
|
35529
35546
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35530
35547
|
*/
|
|
35531
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35548
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35532
35549
|
} ;
|
|
35533
35550
|
var ListItemButton$1 = ListItemButton;
|
|
35534
35551
|
|
|
@@ -35624,7 +35641,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35624
35641
|
/**
|
|
35625
35642
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35626
35643
|
*/
|
|
35627
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35644
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35628
35645
|
} ;
|
|
35629
35646
|
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
|
35630
35647
|
var ListItemSecondaryAction$1 = ListItemSecondaryAction;
|
|
@@ -36025,7 +36042,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36025
36042
|
/**
|
|
36026
36043
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36027
36044
|
*/
|
|
36028
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36045
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36029
36046
|
} ;
|
|
36030
36047
|
var ListItem$1 = ListItem;
|
|
36031
36048
|
|
|
@@ -36119,7 +36136,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36119
36136
|
/**
|
|
36120
36137
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36121
36138
|
*/
|
|
36122
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36139
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36123
36140
|
} ;
|
|
36124
36141
|
var ListItemAvatar$1 = ListItemAvatar;
|
|
36125
36142
|
|
|
@@ -36217,7 +36234,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36217
36234
|
/**
|
|
36218
36235
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36219
36236
|
*/
|
|
36220
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36237
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36221
36238
|
} ;
|
|
36222
36239
|
var ListItemIcon$1 = ListItemIcon;
|
|
36223
36240
|
|
|
@@ -36399,7 +36416,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36399
36416
|
/**
|
|
36400
36417
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36401
36418
|
*/
|
|
36402
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36419
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36403
36420
|
} ;
|
|
36404
36421
|
var ListItemText$1 = ListItemText;
|
|
36405
36422
|
|
|
@@ -37153,7 +37170,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37153
37170
|
/**
|
|
37154
37171
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37155
37172
|
*/
|
|
37156
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37173
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37157
37174
|
|
|
37158
37175
|
/**
|
|
37159
37176
|
* This is the point on the popover which
|
|
@@ -37191,7 +37208,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37191
37208
|
|
|
37192
37209
|
/**
|
|
37193
37210
|
* Props applied to the transition element.
|
|
37194
|
-
* By default, the element is based on this [`Transition`](
|
|
37211
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
37195
37212
|
* @default {}
|
|
37196
37213
|
*/
|
|
37197
37214
|
TransitionProps: propTypes.object
|
|
@@ -37456,7 +37473,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37456
37473
|
/**
|
|
37457
37474
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37458
37475
|
*/
|
|
37459
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37476
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37460
37477
|
|
|
37461
37478
|
/**
|
|
37462
37479
|
* The length of the transition in `ms`, or 'auto'
|
|
@@ -37470,7 +37487,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37470
37487
|
|
|
37471
37488
|
/**
|
|
37472
37489
|
* Props applied to the transition element.
|
|
37473
|
-
* By default, the element is based on this [`Transition`](
|
|
37490
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
37474
37491
|
* @default {}
|
|
37475
37492
|
*/
|
|
37476
37493
|
TransitionProps: propTypes.object,
|
|
@@ -37718,7 +37735,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37718
37735
|
* This prop can help identify which element has keyboard focus.
|
|
37719
37736
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
37720
37737
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
37721
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
37738
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
37722
37739
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
37723
37740
|
* if needed.
|
|
37724
37741
|
*/
|
|
@@ -37739,7 +37756,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37739
37756
|
/**
|
|
37740
37757
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37741
37758
|
*/
|
|
37742
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37759
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37743
37760
|
|
|
37744
37761
|
/**
|
|
37745
37762
|
* @default 0
|
|
@@ -37952,7 +37969,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37952
37969
|
/**
|
|
37953
37970
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37954
37971
|
*/
|
|
37955
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37972
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37956
37973
|
|
|
37957
37974
|
/**
|
|
37958
37975
|
* The variant to use.
|
|
@@ -38300,7 +38317,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38300
38317
|
/**
|
|
38301
38318
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38302
38319
|
*/
|
|
38303
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
38320
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
38304
38321
|
|
|
38305
38322
|
/**
|
|
38306
38323
|
* The `input` value. The DOM API casts this to a string.
|
|
@@ -38748,7 +38765,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38748
38765
|
/**
|
|
38749
38766
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38750
38767
|
*/
|
|
38751
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
38768
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
38752
38769
|
|
|
38753
38770
|
/**
|
|
38754
38771
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -39245,7 +39262,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39245
39262
|
/**
|
|
39246
39263
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39247
39264
|
*/
|
|
39248
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39265
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39249
39266
|
|
|
39250
39267
|
/**
|
|
39251
39268
|
* The type of pagination item.
|
|
@@ -39511,7 +39528,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39511
39528
|
/**
|
|
39512
39529
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39513
39530
|
*/
|
|
39514
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39531
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39515
39532
|
|
|
39516
39533
|
/**
|
|
39517
39534
|
* The variant to use.
|
|
@@ -39841,7 +39858,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39841
39858
|
/**
|
|
39842
39859
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39843
39860
|
*/
|
|
39844
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39861
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39845
39862
|
|
|
39846
39863
|
/**
|
|
39847
39864
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -40658,7 +40675,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40658
40675
|
/**
|
|
40659
40676
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
40660
40677
|
*/
|
|
40661
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
40678
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
40662
40679
|
|
|
40663
40680
|
/**
|
|
40664
40681
|
* The rating value.
|
|
@@ -41157,7 +41174,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41157
41174
|
|
|
41158
41175
|
if (computeDisplay) {
|
|
41159
41176
|
if (multiple) {
|
|
41160
|
-
|
|
41177
|
+
if (value.length === 0) {
|
|
41178
|
+
display = '';
|
|
41179
|
+
} else {
|
|
41180
|
+
display = displayMultiple.reduce((prev, curr) => [prev, ', ', curr]);
|
|
41181
|
+
}
|
|
41161
41182
|
} else {
|
|
41162
41183
|
display = displaySingle;
|
|
41163
41184
|
}
|
|
@@ -41674,7 +41695,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41674
41695
|
/**
|
|
41675
41696
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41676
41697
|
*/
|
|
41677
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
41698
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
41678
41699
|
|
|
41679
41700
|
/**
|
|
41680
41701
|
* The `input` value. Providing an empty string will select no options.
|
|
@@ -41904,7 +41925,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41904
41925
|
/**
|
|
41905
41926
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41906
41927
|
*/
|
|
41907
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
41928
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
41908
41929
|
|
|
41909
41930
|
/**
|
|
41910
41931
|
* The type of content that will be rendered.
|
|
@@ -42543,7 +42564,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42543
42564
|
/**
|
|
42544
42565
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42545
42566
|
*/
|
|
42546
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
42567
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
42547
42568
|
|
|
42548
42569
|
/**
|
|
42549
42570
|
* Tab index attribute of the hidden `input` element.
|
|
@@ -42725,7 +42746,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42725
42746
|
/**
|
|
42726
42747
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42727
42748
|
*/
|
|
42728
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
42749
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
42729
42750
|
} ;
|
|
42730
42751
|
var SnackbarContent$1 = SnackbarContent;
|
|
42731
42752
|
|
|
@@ -43153,7 +43174,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43153
43174
|
/**
|
|
43154
43175
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43155
43176
|
*/
|
|
43156
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
43177
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
43157
43178
|
|
|
43158
43179
|
/**
|
|
43159
43180
|
* The component used for the transition.
|
|
@@ -43178,7 +43199,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43178
43199
|
|
|
43179
43200
|
/**
|
|
43180
43201
|
* Props applied to the transition element.
|
|
43181
|
-
* By default, the element is based on this [`Transition`](
|
|
43202
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
43182
43203
|
* @default {}
|
|
43183
43204
|
*/
|
|
43184
43205
|
TransitionProps: propTypes.object
|
|
@@ -43919,7 +43940,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43919
43940
|
/**
|
|
43920
43941
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43921
43942
|
*/
|
|
43922
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
43943
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
43923
43944
|
|
|
43924
43945
|
/**
|
|
43925
43946
|
* The component used for the transition.
|
|
@@ -43944,7 +43965,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43944
43965
|
|
|
43945
43966
|
/**
|
|
43946
43967
|
* Props applied to the transition element.
|
|
43947
|
-
* By default, the element is based on this [`Transition`](
|
|
43968
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
43948
43969
|
*/
|
|
43949
43970
|
TransitionProps: propTypes.object
|
|
43950
43971
|
} ;
|
|
@@ -44731,7 +44752,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44731
44752
|
/**
|
|
44732
44753
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
44733
44754
|
*/
|
|
44734
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
44755
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
44735
44756
|
|
|
44736
44757
|
/**
|
|
44737
44758
|
* Tooltip title. Zero-length titles string are never displayed.
|
|
@@ -44749,7 +44770,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44749
44770
|
|
|
44750
44771
|
/**
|
|
44751
44772
|
* Props applied to the transition element.
|
|
44752
|
-
* By default, the element is based on this [`Transition`](
|
|
44773
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
44753
44774
|
*/
|
|
44754
44775
|
TransitionProps: propTypes.object
|
|
44755
44776
|
} ;
|
|
@@ -44990,7 +45011,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44990
45011
|
/**
|
|
44991
45012
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
44992
45013
|
*/
|
|
44993
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
45014
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
44994
45015
|
|
|
44995
45016
|
/**
|
|
44996
45017
|
* `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
|
|
@@ -45160,7 +45181,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45160
45181
|
/**
|
|
45161
45182
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45162
45183
|
*/
|
|
45163
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45184
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45164
45185
|
} ;
|
|
45165
45186
|
SpeedDialIcon.muiName = 'SpeedDialIcon';
|
|
45166
45187
|
var SpeedDialIcon$1 = SpeedDialIcon;
|
|
@@ -45315,7 +45336,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45315
45336
|
/**
|
|
45316
45337
|
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
45317
45338
|
*/
|
|
45318
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45339
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45319
45340
|
} ;
|
|
45320
45341
|
var Stack$1 = Stack;
|
|
45321
45342
|
|
|
@@ -45513,7 +45534,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45513
45534
|
/**
|
|
45514
45535
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45515
45536
|
*/
|
|
45516
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45537
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45517
45538
|
} ;
|
|
45518
45539
|
var Step$1 = Step;
|
|
45519
45540
|
|
|
@@ -45692,7 +45713,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45692
45713
|
/**
|
|
45693
45714
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45694
45715
|
*/
|
|
45695
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45716
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45696
45717
|
} ;
|
|
45697
45718
|
var StepIcon$1 = StepIcon;
|
|
45698
45719
|
|
|
@@ -45926,7 +45947,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45926
45947
|
/**
|
|
45927
45948
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45928
45949
|
*/
|
|
45929
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45950
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45930
45951
|
} ;
|
|
45931
45952
|
StepLabel.muiName = 'StepLabel';
|
|
45932
45953
|
var StepLabel$1 = StepLabel;
|
|
@@ -46060,7 +46081,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46060
46081
|
/**
|
|
46061
46082
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46062
46083
|
*/
|
|
46063
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46084
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46064
46085
|
} ;
|
|
46065
46086
|
var StepButton$1 = StepButton;
|
|
46066
46087
|
|
|
@@ -46195,7 +46216,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46195
46216
|
/**
|
|
46196
46217
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46197
46218
|
*/
|
|
46198
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46219
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46199
46220
|
} ;
|
|
46200
46221
|
var StepConnector$1 = StepConnector;
|
|
46201
46222
|
|
|
@@ -46331,7 +46352,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46331
46352
|
/**
|
|
46332
46353
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46333
46354
|
*/
|
|
46334
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
46355
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
46335
46356
|
|
|
46336
46357
|
/**
|
|
46337
46358
|
* The component used for the transition.
|
|
@@ -46355,7 +46376,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46355
46376
|
|
|
46356
46377
|
/**
|
|
46357
46378
|
* Props applied to the transition element.
|
|
46358
|
-
* By default, the element is based on this [`Transition`](
|
|
46379
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
46359
46380
|
*/
|
|
46360
46381
|
TransitionProps: propTypes.object
|
|
46361
46382
|
} ;
|
|
@@ -46511,7 +46532,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46511
46532
|
/**
|
|
46512
46533
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46513
46534
|
*/
|
|
46514
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46535
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46515
46536
|
} ;
|
|
46516
46537
|
var Stepper$1 = Stepper;
|
|
46517
46538
|
|
|
@@ -47522,7 +47543,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47522
47543
|
/**
|
|
47523
47544
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47524
47545
|
*/
|
|
47525
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
47546
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
47526
47547
|
|
|
47527
47548
|
/**
|
|
47528
47549
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -47797,7 +47818,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47797
47818
|
/**
|
|
47798
47819
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47799
47820
|
*/
|
|
47800
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
47821
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
47801
47822
|
|
|
47802
47823
|
/**
|
|
47803
47824
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
@@ -47964,7 +47985,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47964
47985
|
/**
|
|
47965
47986
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47966
47987
|
*/
|
|
47967
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
47988
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
47968
47989
|
} ;
|
|
47969
47990
|
var Table$1 = Table;
|
|
47970
47991
|
|
|
@@ -48069,7 +48090,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48069
48090
|
/**
|
|
48070
48091
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48071
48092
|
*/
|
|
48072
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48093
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48073
48094
|
} ;
|
|
48074
48095
|
var TableBody$1 = TableBody;
|
|
48075
48096
|
|
|
@@ -48289,7 +48310,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48289
48310
|
/**
|
|
48290
48311
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48291
48312
|
*/
|
|
48292
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
48313
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
48293
48314
|
|
|
48294
48315
|
/**
|
|
48295
48316
|
* Specify the cell type.
|
|
@@ -48381,7 +48402,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48381
48402
|
/**
|
|
48382
48403
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48383
48404
|
*/
|
|
48384
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48405
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48385
48406
|
} ;
|
|
48386
48407
|
var TableContainer$1 = TableContainer;
|
|
48387
48408
|
|
|
@@ -48474,7 +48495,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48474
48495
|
/**
|
|
48475
48496
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48476
48497
|
*/
|
|
48477
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48498
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48478
48499
|
} ;
|
|
48479
48500
|
var TableFooter$1 = TableFooter;
|
|
48480
48501
|
|
|
@@ -48567,7 +48588,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48567
48588
|
/**
|
|
48568
48589
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48569
48590
|
*/
|
|
48570
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48591
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48571
48592
|
} ;
|
|
48572
48593
|
var TableHead$1 = TableHead;
|
|
48573
48594
|
|
|
@@ -48687,7 +48708,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48687
48708
|
/**
|
|
48688
48709
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48689
48710
|
*/
|
|
48690
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
48711
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
48691
48712
|
|
|
48692
48713
|
/**
|
|
48693
48714
|
* The variant to use.
|
|
@@ -49237,7 +49258,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49237
49258
|
/**
|
|
49238
49259
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49239
49260
|
*/
|
|
49240
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49261
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49241
49262
|
} ;
|
|
49242
49263
|
var TablePagination$1 = TablePagination;
|
|
49243
49264
|
|
|
@@ -49373,7 +49394,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49373
49394
|
/**
|
|
49374
49395
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49375
49396
|
*/
|
|
49376
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49397
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49377
49398
|
} ;
|
|
49378
49399
|
var TableRow$1 = TableRow;
|
|
49379
49400
|
|
|
@@ -49554,7 +49575,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49554
49575
|
/**
|
|
49555
49576
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49556
49577
|
*/
|
|
49557
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49578
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49558
49579
|
} ;
|
|
49559
49580
|
var TableSortLabel$1 = TableSortLabel;
|
|
49560
49581
|
|
|
@@ -49787,7 +49808,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49787
49808
|
/**
|
|
49788
49809
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49789
49810
|
*/
|
|
49790
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49811
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49791
49812
|
} ;
|
|
49792
49813
|
var TabScrollButton$1 = TabScrollButton;
|
|
49793
49814
|
|
|
@@ -50581,7 +50602,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50581
50602
|
/**
|
|
50582
50603
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50583
50604
|
*/
|
|
50584
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
50605
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
50585
50606
|
|
|
50586
50607
|
/**
|
|
50587
50608
|
* Props applied to the tab indicator element.
|
|
@@ -51029,7 +51050,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51029
51050
|
/**
|
|
51030
51051
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51031
51052
|
*/
|
|
51032
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51053
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
51033
51054
|
|
|
51034
51055
|
/**
|
|
51035
51056
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
@@ -51271,7 +51292,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51271
51292
|
/**
|
|
51272
51293
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51273
51294
|
*/
|
|
51274
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51295
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
51275
51296
|
|
|
51276
51297
|
/**
|
|
51277
51298
|
* The value to associate with the button when selected in a
|
|
@@ -51533,7 +51554,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51533
51554
|
/**
|
|
51534
51555
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51535
51556
|
*/
|
|
51536
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51557
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
51537
51558
|
|
|
51538
51559
|
/**
|
|
51539
51560
|
* The currently selected value within the group or an array of selected
|