@mui/material 5.2.1 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.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.d.ts +1 -1
- 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 +17 -4
- 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.d.ts +1 -1
- 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 +279 -1
- 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/CssBaseline/CssBaseline.d.ts +2 -2
- package/CssBaseline/CssBaseline.js +1 -1
- 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/GlobalStyles/GlobalStyles.d.ts +2 -1
- package/Grid/Grid.js +98 -69
- 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.d.ts +6 -0
- package/InputBase/InputBase.js +11 -3
- 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.d.ts +12 -2
- package/List/List.js +1 -1
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -2
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +47 -36
- 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 +15 -2
- 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 +9 -13
- 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/ScopedCssBaseline.d.ts +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.js +1 -1
- package/Select/SelectInput.js +13 -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 +5 -5
- package/Snackbar/Snackbar.js +62 -6
- 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.d.ts +1 -1
- package/Tabs/Tabs.js +1 -1
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.js +6 -12
- 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 +19 -5
- 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/CssBaseline/CssBaseline.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 +109 -81
- 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 +11 -3
- 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 +15 -2
- 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/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Select/SelectInput.js +13 -3
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +62 -6
- 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 +6 -12
- 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/legacy/locale/index.js +175 -92
- package/legacy/styles/adaptV4Theme.js +1 -1
- package/legacy/styles/responsiveFontSizes.js +1 -1
- package/locale/index.d.ts +67 -66
- package/locale/index.js +80 -0
- 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 +17 -4
- 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/CssBaseline/CssBaseline.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 +98 -69
- 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 +11 -3
- 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 +15 -2
- 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/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Select/SelectInput.js +13 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +62 -6
- 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 +6 -10
- 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/modern/locale/index.js +80 -0
- package/modern/styles/adaptV4Theme.js +1 -1
- package/modern/styles/responsiveFontSizes.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 +17 -4
- 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/CssBaseline/CssBaseline.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 +101 -68
- 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 +11 -3
- 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 +16 -2
- 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/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +13 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +62 -6
- 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 +4 -10
- 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/node/locale/index.js +82 -1
- package/node/styles/adaptV4Theme.js +1 -1
- package/node/styles/responsiveFontSizes.js +1 -1
- package/package.json +5 -5
- package/styles/adaptV4Theme.js +1 -1
- package/styles/createTheme.d.ts +1 -1
- package/styles/cssUtils.d.ts +32 -0
- package/styles/index.d.ts +3 -1
- package/styles/responsiveFontSizes.js +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -14
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +1065 -938
- package/umd/material-ui.production.min.js +21 -21
- 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.5
|
|
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.
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
return StyleSheet;
|
|
662
662
|
}();
|
|
663
663
|
|
|
664
|
-
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function
|
|
664
|
+
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;var g=Object.assign;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function x$1(e){return e.trim()}function y(e,r){return (e=r.exec(e))?e[0]:e}function j(e,r,a){return e.replace(r,a)}function C(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function A(e,r,a){return e.slice(r,a)}function O(e){return e.length}function M(e){return e.length}function S(e,r){return r.push(e),e}function q(e,r){return e.map(r).join("")}var B=1;var D=1;var E=0;var F=0;var G=0;var H="";function I(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:B,column:D,length:s,return:""}}function J(e,r){return g(I("",null,null,"",null,null,0),e,{length:-e.length},r)}function K(){return G}function L(){G=F>0?z(H,--F):0;if(D--,G===10)D=1,B--;return G}function N(){G=F<E?z(H,F++):0;if(D++,G===10)D=1,B++;return G}function P(){return z(H,F)}function Q(){return F}function R(e,r){return A(H,e,r)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(e){return B=D=1,E=O(H=e),F=0,[]}function V(e){return H="",e}function W(e){return x$1(R(F-1,ee(e===91?e+2:e===40?e+1:e)))}function Y(e){while(G=P())if(G<33)N();else break;return T(e)>2||T(G)>3?"":" "}function _$4(e,r){while(--r&&N())if(G<48||G>102||G>57&&G<65||G>70&&G<97)break;return R(e,Q()+(r<6&&P()==32&&N()==32))}function ee(e){while(N())switch(G){case e:return F;case 34:case 39:if(e!==34&&e!==39)ee(G);break;case 40:if(e===41)ee(e);break;case 92:N();break}return F}function re(e,r){while(N())if(e+G===47+10)break;else if(e+G===42+42&&P()===47)break;return "/*"+R(r,F-1)+"*"+d(e===47?e:N())}function ae(e){while(!T(P()))N();return R(e,F)}function ce(e){return V(ne("",null,null,null,[""],e=U(e),0,[0],e))}function ne(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var g="";var m=n;var x=t;var y=c;var z=g;while(w)switch(p=k,k=N()){case 40:if(p!=108&&z.charCodeAt(l-1)==58){if(C(z+=j(W(k),"&","&\f"),"&\f")!=-1)$=-1;break}case 34:case 39:case 91:z+=W(k);break;case 9:case 10:case 13:case 32:z+=Y(p);break;case 92:z+=_$4(Q()-1,7);continue;case 47:switch(P()){case 42:case 47:S(se(re(N(),Q()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=O(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&O(z)-l)S(h>32?ue(z+";",c,a,l-1):ue(j(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:S(y=te(z,r,a,f,o,n,u,g,m=[],x=[],l),t);if(k===123)if(o===0)ne(z,r,y,y,m,t,l,u,x);else switch(v){case 100:case 109:case 115:ne(e,y,y,c&&S(te(e,y,y,0,0,n,u,g,n,m=[],l),x),n,x,l,u,c?m:x);break;default:ne(z,y,y,y,[""],x,0,u,x);}}f=o=h=0,b=$=1,g=z="",l=s;break;case 58:l=1+O(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&L()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(O(z)-1)*$,$=1;break;case 64:if(P()===45)z+=W(N());v=P(),o=l=O(g=z+=ae(Q())),k++;break;case 45:if(p===45&&O(z)==2)b=0;}}return t}function te(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,g=A(e,v+1,v=k(w=u[b])),m=e;d<p;++d)if(m=x$1(w>0?h[d]+" "+g:j(g,/&\f/g,h[d])))f[$++]=m;return I(e,r,a,t===0?n:i,f,o,l)}function se(e,r,a){return I(e,r,a,c,d(K()),A(e,2,-2),0)}function ue(e,r,a,c){return I(e,r,a,t,A(e,0,c),A(e,c+1,-1),c)}function ie(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+j(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+j(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+j(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+j(c,"shrink","negative")+c;case 5292:return a+c+e+j(c,"basis","preferred-size")+c;case 6060:return a+"box-"+j(c,"-grow","")+a+c+e+j(c,"grow","positive")+c;case 4554:return a+j(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return j(j(j(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return j(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return j(j(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return j(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return j(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~C(c,"stretch")?ie(j(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,O(c)-3-(~C(c,"!important")&&10))){case 107:return j(c,":",":"+a)+c;case 101:return j(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function fe(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function oe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case p:return e.return=e.value+"{"+fe(e.children,s)+"}";case n:e.value=e.props.join(",");}return O(a=fe(e.children,s))?e.return=e.value+"{"+a+"}":""}function le(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function he(c,s,u,i){if(c.length>-1)if(!c.return)switch(c.type){case t:c.return=ie(c.value,c.length);break;case p:return fe([J(c,{value:j(c.value,"@","@"+a)})],i);case n:if(c.length)return q(c.props,(function(n){switch(y(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([J(c,{props:[j(n,/:(read-\w+)/,":"+r+"$1")]})],i);case"::placeholder":return fe([J(c,{props:[j(n,/:(plac\w+)/,":"+a+"input-$1")]}),J(c,{props:[j(n,/:(plac\w+)/,":"+r+"$1")]}),J(c,{props:[j(n,/:(plac\w+)/,e+"input-$1")]})],i)}return ""}))}}
|
|
665
665
|
|
|
666
666
|
var weakMemoize = function weakMemoize(func) {
|
|
667
667
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
@@ -689,20 +689,20 @@
|
|
|
689
689
|
|
|
690
690
|
while (true) {
|
|
691
691
|
previous = character;
|
|
692
|
-
character =
|
|
692
|
+
character = P(); // &\f
|
|
693
693
|
|
|
694
694
|
if (previous === 38 && character === 12) {
|
|
695
695
|
points[index] = 1;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
if (
|
|
698
|
+
if (T(character)) {
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
-
|
|
702
|
+
N();
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
-
return
|
|
705
|
+
return R(begin, F);
|
|
706
706
|
};
|
|
707
707
|
|
|
708
708
|
var toRules = function toRules(parsed, points) {
|
|
@@ -711,10 +711,10 @@
|
|
|
711
711
|
var character = 44;
|
|
712
712
|
|
|
713
713
|
do {
|
|
714
|
-
switch (
|
|
714
|
+
switch (T(character)) {
|
|
715
715
|
case 0:
|
|
716
716
|
// &\f
|
|
717
|
-
if (character === 38 &&
|
|
717
|
+
if (character === 38 && P() === 12) {
|
|
718
718
|
// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
|
|
719
719
|
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
|
|
720
720
|
// and when it should just concatenate the outer and inner selectors
|
|
@@ -722,18 +722,18 @@
|
|
|
722
722
|
points[index] = 1;
|
|
723
723
|
}
|
|
724
724
|
|
|
725
|
-
parsed[index] += identifierWithPointTracking(
|
|
725
|
+
parsed[index] += identifierWithPointTracking(F - 1, points, index);
|
|
726
726
|
break;
|
|
727
727
|
|
|
728
728
|
case 2:
|
|
729
|
-
parsed[index] +=
|
|
729
|
+
parsed[index] += W(character);
|
|
730
730
|
break;
|
|
731
731
|
|
|
732
732
|
case 4:
|
|
733
733
|
// comma
|
|
734
734
|
if (character === 44) {
|
|
735
735
|
// colon
|
|
736
|
-
parsed[++index] =
|
|
736
|
+
parsed[++index] = P() === 58 ? '&\f' : '';
|
|
737
737
|
points[index] = parsed[index].length;
|
|
738
738
|
break;
|
|
739
739
|
}
|
|
@@ -743,13 +743,13 @@
|
|
|
743
743
|
default:
|
|
744
744
|
parsed[index] += d(character);
|
|
745
745
|
}
|
|
746
|
-
} while (character =
|
|
746
|
+
} while (character = N());
|
|
747
747
|
|
|
748
748
|
return parsed;
|
|
749
749
|
};
|
|
750
750
|
|
|
751
751
|
var getRules = function getRules(value, points) {
|
|
752
|
-
return
|
|
752
|
+
return V(toRules(U(value), points));
|
|
753
753
|
}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
|
|
754
754
|
|
|
755
755
|
|
|
@@ -879,7 +879,7 @@
|
|
|
879
879
|
};
|
|
880
880
|
});
|
|
881
881
|
});
|
|
882
|
-
var defaultStylisPlugins = [
|
|
882
|
+
var defaultStylisPlugins = [he];
|
|
883
883
|
|
|
884
884
|
var createCache = function createCache(options) {
|
|
885
885
|
var key = options.key;
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
|
|
956
956
|
if (isBrowser$4) {
|
|
957
957
|
var currentSheet;
|
|
958
|
-
var finalizingPlugins = [
|
|
958
|
+
var finalizingPlugins = [oe, function (element) {
|
|
959
959
|
if (!element.root) {
|
|
960
960
|
if (element["return"]) {
|
|
961
961
|
currentSheet.insert(element["return"]);
|
|
@@ -966,10 +966,10 @@
|
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
} ];
|
|
969
|
-
var serializer =
|
|
969
|
+
var serializer = le(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
970
970
|
|
|
971
971
|
var stylis = function stylis(styles) {
|
|
972
|
-
return
|
|
972
|
+
return fe(ce(styles), serializer);
|
|
973
973
|
};
|
|
974
974
|
|
|
975
975
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
@@ -990,12 +990,12 @@
|
|
|
990
990
|
}
|
|
991
991
|
};
|
|
992
992
|
} else {
|
|
993
|
-
var _finalizingPlugins = [
|
|
993
|
+
var _finalizingPlugins = [oe];
|
|
994
994
|
|
|
995
|
-
var _serializer =
|
|
995
|
+
var _serializer = le(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
996
996
|
|
|
997
997
|
var _stylis = function _stylis(styles) {
|
|
998
|
-
return
|
|
998
|
+
return fe(ce(styles), _serializer);
|
|
999
999
|
}; // $FlowFixMe
|
|
1000
1000
|
|
|
1001
1001
|
|
|
@@ -2008,7 +2008,7 @@
|
|
|
2008
2008
|
|
|
2009
2009
|
var pkg = {
|
|
2010
2010
|
name: "@emotion/react",
|
|
2011
|
-
version: "11.
|
|
2011
|
+
version: "11.7.0",
|
|
2012
2012
|
main: "dist/emotion-react.cjs.js",
|
|
2013
2013
|
module: "dist/emotion-react.esm.js",
|
|
2014
2014
|
browser: {
|
|
@@ -4998,15 +4998,18 @@
|
|
|
4998
4998
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
4999
4999
|
var useEnhancedEffect$1 = useEnhancedEffect;
|
|
5000
5000
|
|
|
5001
|
+
let globalId = 0;
|
|
5001
5002
|
function useId(idOverride) {
|
|
5002
5003
|
const [defaultId, setDefaultId] = React__namespace.useState(idOverride);
|
|
5003
5004
|
const id = idOverride || defaultId;
|
|
5004
5005
|
React__namespace.useEffect(() => {
|
|
5005
5006
|
if (defaultId == null) {
|
|
5006
5007
|
// Fallback to this default id when possible.
|
|
5007
|
-
// Use the
|
|
5008
|
+
// Use the incrementing value for client-side rendering only.
|
|
5008
5009
|
// We can't use it server-side.
|
|
5009
|
-
|
|
5010
|
+
// If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem
|
|
5011
|
+
globalId += 1;
|
|
5012
|
+
setDefaultId(`mui-${globalId}`);
|
|
5010
5013
|
}
|
|
5011
5014
|
}, [defaultId]);
|
|
5012
5015
|
return id;
|
|
@@ -5095,7 +5098,7 @@
|
|
|
5095
5098
|
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
|
|
5096
5099
|
let hadKeyboardEvent = true;
|
|
5097
5100
|
let hadFocusVisibleRecently = false;
|
|
5098
|
-
let hadFocusVisibleRecentlyTimeout
|
|
5101
|
+
let hadFocusVisibleRecentlyTimeout;
|
|
5099
5102
|
const inputTypesWhitelist = {
|
|
5100
5103
|
text: true,
|
|
5101
5104
|
search: true,
|
|
@@ -5431,6 +5434,23 @@
|
|
|
5431
5434
|
validator.isRequired = requiredInteger;
|
|
5432
5435
|
var integerPropType = validator;
|
|
5433
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
|
+
|
|
5434
5454
|
function merge(acc, item) {
|
|
5435
5455
|
if (!item) {
|
|
5436
5456
|
return acc;
|
|
@@ -6443,6 +6463,21 @@
|
|
|
6443
6463
|
return up(key);
|
|
6444
6464
|
}
|
|
6445
6465
|
|
|
6466
|
+
function not(key) {
|
|
6467
|
+
// handle first and last key separately, for better readability
|
|
6468
|
+
const keyIndex = keys.indexOf(key);
|
|
6469
|
+
|
|
6470
|
+
if (keyIndex === 0) {
|
|
6471
|
+
return up(keys[1]);
|
|
6472
|
+
}
|
|
6473
|
+
|
|
6474
|
+
if (keyIndex === keys.length - 1) {
|
|
6475
|
+
return down(keys[keyIndex]);
|
|
6476
|
+
}
|
|
6477
|
+
|
|
6478
|
+
return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
|
|
6479
|
+
}
|
|
6480
|
+
|
|
6446
6481
|
return _extends({
|
|
6447
6482
|
keys,
|
|
6448
6483
|
values,
|
|
@@ -6450,6 +6485,7 @@
|
|
|
6450
6485
|
down,
|
|
6451
6486
|
between,
|
|
6452
6487
|
only,
|
|
6488
|
+
not,
|
|
6453
6489
|
unit
|
|
6454
6490
|
}, other);
|
|
6455
6491
|
}
|
|
@@ -6903,7 +6939,6 @@
|
|
|
6903
6939
|
};
|
|
6904
6940
|
}
|
|
6905
6941
|
|
|
6906
|
-
/* eslint-disable no-restricted-syntax */
|
|
6907
6942
|
function getThemeProps(params) {
|
|
6908
6943
|
const {
|
|
6909
6944
|
theme,
|
|
@@ -6915,20 +6950,7 @@
|
|
|
6915
6950
|
return props;
|
|
6916
6951
|
}
|
|
6917
6952
|
|
|
6918
|
-
|
|
6919
|
-
// https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
const defaultProps = theme.components[name].defaultProps;
|
|
6923
|
-
let propName;
|
|
6924
|
-
|
|
6925
|
-
for (propName in defaultProps) {
|
|
6926
|
-
if (output[propName] === undefined) {
|
|
6927
|
-
output[propName] = defaultProps[propName];
|
|
6928
|
-
}
|
|
6929
|
-
}
|
|
6930
|
-
|
|
6931
|
-
return output;
|
|
6953
|
+
return resolveProps(theme.components[name].defaultProps, props);
|
|
6932
6954
|
}
|
|
6933
6955
|
|
|
6934
6956
|
function useThemeProps$1({
|
|
@@ -7317,7 +7339,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7317
7339
|
const componentValue = theme.components[component] || {};
|
|
7318
7340
|
componentValue.defaultProps = props[component];
|
|
7319
7341
|
theme.components[component] = componentValue;
|
|
7320
|
-
}); //
|
|
7342
|
+
}); // CSS overrides
|
|
7321
7343
|
|
|
7322
7344
|
Object.keys(styleOverrides).forEach(component => {
|
|
7323
7345
|
const componentValue = theme.components[component] || {};
|
|
@@ -7366,6 +7388,49 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7366
7388
|
return theme;
|
|
7367
7389
|
}
|
|
7368
7390
|
|
|
7391
|
+
/**
|
|
7392
|
+
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
7393
|
+
*/
|
|
7394
|
+
function isHostComponent(element) {
|
|
7395
|
+
return typeof element === 'string';
|
|
7396
|
+
}
|
|
7397
|
+
|
|
7398
|
+
/**
|
|
7399
|
+
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
7400
|
+
*
|
|
7401
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` are not applied.
|
|
7402
|
+
* @param existingProps Props of the element.
|
|
7403
|
+
* @param ownerState
|
|
7404
|
+
*/
|
|
7405
|
+
|
|
7406
|
+
function appendOwnerState(elementType, existingProps = {}, ownerState) {
|
|
7407
|
+
if (isHostComponent(elementType)) {
|
|
7408
|
+
return existingProps;
|
|
7409
|
+
}
|
|
7410
|
+
|
|
7411
|
+
return _extends({}, existingProps, {
|
|
7412
|
+
ownerState: _extends({}, existingProps.ownerState, ownerState)
|
|
7413
|
+
});
|
|
7414
|
+
}
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* Extracts event handlers from a given object.
|
|
7418
|
+
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
|
7419
|
+
*
|
|
7420
|
+
* @param object An object to extract event handlers from.
|
|
7421
|
+
*/
|
|
7422
|
+
function extractEventHandlers(object, excludeKeys = []) {
|
|
7423
|
+
if (object === undefined) {
|
|
7424
|
+
return {};
|
|
7425
|
+
}
|
|
7426
|
+
|
|
7427
|
+
const result = {};
|
|
7428
|
+
Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
|
|
7429
|
+
result[prop] = object[prop];
|
|
7430
|
+
});
|
|
7431
|
+
return result;
|
|
7432
|
+
}
|
|
7433
|
+
|
|
7369
7434
|
// Give up on IE11 support for this feature
|
|
7370
7435
|
|
|
7371
7436
|
function stripDiacritics(string) {
|
|
@@ -8411,13 +8476,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8411
8476
|
return output;
|
|
8412
8477
|
}
|
|
8413
8478
|
|
|
8414
|
-
/**
|
|
8415
|
-
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
8416
|
-
*/
|
|
8417
|
-
function isHostComponent(element) {
|
|
8418
|
-
return typeof element === 'string';
|
|
8419
|
-
}
|
|
8420
|
-
|
|
8421
8479
|
const defaultGenerator = componentName => componentName;
|
|
8422
8480
|
|
|
8423
8481
|
const createClassNameGenerator = () => {
|
|
@@ -8603,7 +8661,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8603
8661
|
},
|
|
8604
8662
|
classes: classesProp,
|
|
8605
8663
|
badgeContent: badgeContentProp,
|
|
8606
|
-
component
|
|
8664
|
+
component,
|
|
8607
8665
|
children,
|
|
8608
8666
|
className,
|
|
8609
8667
|
components = {},
|
|
@@ -8612,10 +8670,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8612
8670
|
max: maxProp = 99,
|
|
8613
8671
|
overlap: overlapProp = 'rectangular',
|
|
8614
8672
|
showZero = false,
|
|
8615
|
-
variant: variantProp = 'standard'
|
|
8616
|
-
|
|
8617
|
-
/* eslint-disable react/prop-types */
|
|
8618
|
-
theme
|
|
8673
|
+
variant: variantProp = 'standard'
|
|
8619
8674
|
} = props,
|
|
8620
8675
|
other = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
8621
8676
|
|
|
@@ -8657,22 +8712,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8657
8712
|
}
|
|
8658
8713
|
|
|
8659
8714
|
const classes = useUtilityClasses$1S(ownerState);
|
|
8660
|
-
const Root = components.Root ||
|
|
8661
|
-
const rootProps = componentsProps.root
|
|
8715
|
+
const Root = component || components.Root || 'span';
|
|
8716
|
+
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
|
|
8662
8717
|
const Badge = components.Badge || 'span';
|
|
8663
|
-
const badgeProps = componentsProps.badge
|
|
8664
|
-
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps,
|
|
8665
|
-
as: component,
|
|
8666
|
-
ownerState: _extends({}, ownerState, rootProps.ownerState),
|
|
8667
|
-
theme
|
|
8668
|
-
}, {
|
|
8718
|
+
const badgeProps = appendOwnerState(Badge, componentsProps.badge, ownerState);
|
|
8719
|
+
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
8669
8720
|
ref: ref
|
|
8670
8721
|
}, other, {
|
|
8671
8722
|
className: clsx(classes.root, rootProps.className, className),
|
|
8672
|
-
children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps,
|
|
8673
|
-
ownerState: _extends({}, ownerState, badgeProps.ownerState),
|
|
8674
|
-
theme
|
|
8675
|
-
}, {
|
|
8723
|
+
children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
|
|
8676
8724
|
className: clsx(classes.badge, badgeProps.className),
|
|
8677
8725
|
children: displayValue
|
|
8678
8726
|
}))]
|
|
@@ -8777,24 +8825,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8777
8825
|
const buttonUnstyledClasses = generateUtilityClasses('ButtonUnstyled', ['root', 'active', 'disabled', 'focusVisible']);
|
|
8778
8826
|
var buttonUnstyledClasses$1 = buttonUnstyledClasses;
|
|
8779
8827
|
|
|
8780
|
-
/**
|
|
8781
|
-
* Extracts event handlers from a given object.
|
|
8782
|
-
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
|
8783
|
-
*
|
|
8784
|
-
* @param object An object to extract event handlers from.
|
|
8785
|
-
*/
|
|
8786
|
-
function extractEventHandlers(object, excludeKeys = []) {
|
|
8787
|
-
if (object === undefined) {
|
|
8788
|
-
return {};
|
|
8789
|
-
}
|
|
8790
|
-
|
|
8791
|
-
const result = {};
|
|
8792
|
-
Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
|
|
8793
|
-
result[prop] = object[prop];
|
|
8794
|
-
});
|
|
8795
|
-
return result;
|
|
8796
|
-
}
|
|
8797
|
-
|
|
8798
8828
|
function useButton(props) {
|
|
8799
8829
|
var _ref;
|
|
8800
8830
|
|
|
@@ -8996,24 +9026,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8996
9026
|
};
|
|
8997
9027
|
}
|
|
8998
9028
|
|
|
8999
|
-
/**
|
|
9000
|
-
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
9001
|
-
*
|
|
9002
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` are not applied.
|
|
9003
|
-
* @param existingProps Props of the element.
|
|
9004
|
-
* @param ownerState
|
|
9005
|
-
*/
|
|
9006
|
-
|
|
9007
|
-
function appendOwnerState(elementType, existingProps, ownerState) {
|
|
9008
|
-
if (isHostComponent(elementType)) {
|
|
9009
|
-
return existingProps;
|
|
9010
|
-
}
|
|
9011
|
-
|
|
9012
|
-
return _extends({}, existingProps, {
|
|
9013
|
-
ownerState: _extends({}, existingProps.ownerState, ownerState)
|
|
9014
|
-
});
|
|
9015
|
-
}
|
|
9016
|
-
|
|
9017
9029
|
const _excluded$2k = ["className", "component", "components", "componentsProps", "children", "disabled", "action", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseLeave"];
|
|
9018
9030
|
|
|
9019
9031
|
const useUtilityClasses$1R = ownerState => {
|
|
@@ -9150,6 +9162,192 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9150
9162
|
} ;
|
|
9151
9163
|
var ButtonUnstyled$1 = ButtonUnstyled;
|
|
9152
9164
|
|
|
9165
|
+
function mapEventPropToEvent(eventProp) {
|
|
9166
|
+
return eventProp.substring(2).toLowerCase();
|
|
9167
|
+
}
|
|
9168
|
+
|
|
9169
|
+
function clickedRootScrollbar(event, doc) {
|
|
9170
|
+
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
/**
|
|
9174
|
+
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
9175
|
+
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
9176
|
+
*
|
|
9177
|
+
* Demos:
|
|
9178
|
+
*
|
|
9179
|
+
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
9180
|
+
* - [Menus](https://mui.com/components/menus/)
|
|
9181
|
+
*
|
|
9182
|
+
* API:
|
|
9183
|
+
*
|
|
9184
|
+
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
9185
|
+
*/
|
|
9186
|
+
function ClickAwayListener(props) {
|
|
9187
|
+
const {
|
|
9188
|
+
children,
|
|
9189
|
+
disableReactTree = false,
|
|
9190
|
+
mouseEvent = 'onClick',
|
|
9191
|
+
onClickAway,
|
|
9192
|
+
touchEvent = 'onTouchEnd'
|
|
9193
|
+
} = props;
|
|
9194
|
+
const movedRef = React__namespace.useRef(false);
|
|
9195
|
+
const nodeRef = React__namespace.useRef(null);
|
|
9196
|
+
const activatedRef = React__namespace.useRef(false);
|
|
9197
|
+
const syntheticEventRef = React__namespace.useRef(false);
|
|
9198
|
+
React__namespace.useEffect(() => {
|
|
9199
|
+
// Ensure that this component is not "activated" synchronously.
|
|
9200
|
+
// https://github.com/facebook/react/issues/20074
|
|
9201
|
+
setTimeout(() => {
|
|
9202
|
+
activatedRef.current = true;
|
|
9203
|
+
}, 0);
|
|
9204
|
+
return () => {
|
|
9205
|
+
activatedRef.current = false;
|
|
9206
|
+
};
|
|
9207
|
+
}, []);
|
|
9208
|
+
const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
|
|
9209
|
+
children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
|
|
9210
|
+
//
|
|
9211
|
+
// event.preventDefault() is meant to stop default behaviors like
|
|
9212
|
+
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
9213
|
+
// and hitting left arrow to move the cursor in a text input etc.
|
|
9214
|
+
// Only special HTML elements have these default behaviors.
|
|
9215
|
+
|
|
9216
|
+
const handleClickAway = useEventCallback(event => {
|
|
9217
|
+
// Given developers can stop the propagation of the synthetic event,
|
|
9218
|
+
// we can only be confident with a positive value.
|
|
9219
|
+
const insideReactTree = syntheticEventRef.current;
|
|
9220
|
+
syntheticEventRef.current = false;
|
|
9221
|
+
const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
|
|
9222
|
+
// 2. The child might render null.
|
|
9223
|
+
// 3. Behave like a blur listener.
|
|
9224
|
+
|
|
9225
|
+
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
|
9226
|
+
return;
|
|
9227
|
+
} // Do not act if user performed touchmove
|
|
9228
|
+
|
|
9229
|
+
|
|
9230
|
+
if (movedRef.current) {
|
|
9231
|
+
movedRef.current = false;
|
|
9232
|
+
return;
|
|
9233
|
+
}
|
|
9234
|
+
|
|
9235
|
+
let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
|
9236
|
+
|
|
9237
|
+
if (event.composedPath) {
|
|
9238
|
+
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
|
9239
|
+
} else {
|
|
9240
|
+
insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
9241
|
+
event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
9242
|
+
event.target);
|
|
9243
|
+
}
|
|
9244
|
+
|
|
9245
|
+
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
9246
|
+
onClickAway(event);
|
|
9247
|
+
}
|
|
9248
|
+
}); // Keep track of mouse/touch events that bubbled up through the portal.
|
|
9249
|
+
|
|
9250
|
+
const createHandleSynthetic = handlerName => event => {
|
|
9251
|
+
syntheticEventRef.current = true;
|
|
9252
|
+
const childrenPropsHandler = children.props[handlerName];
|
|
9253
|
+
|
|
9254
|
+
if (childrenPropsHandler) {
|
|
9255
|
+
childrenPropsHandler(event);
|
|
9256
|
+
}
|
|
9257
|
+
};
|
|
9258
|
+
|
|
9259
|
+
const childrenProps = {
|
|
9260
|
+
ref: handleRef
|
|
9261
|
+
};
|
|
9262
|
+
|
|
9263
|
+
if (touchEvent !== false) {
|
|
9264
|
+
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
9265
|
+
}
|
|
9266
|
+
|
|
9267
|
+
React__namespace.useEffect(() => {
|
|
9268
|
+
if (touchEvent !== false) {
|
|
9269
|
+
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
9270
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9271
|
+
|
|
9272
|
+
const handleTouchMove = () => {
|
|
9273
|
+
movedRef.current = true;
|
|
9274
|
+
};
|
|
9275
|
+
|
|
9276
|
+
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
9277
|
+
doc.addEventListener('touchmove', handleTouchMove);
|
|
9278
|
+
return () => {
|
|
9279
|
+
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
9280
|
+
doc.removeEventListener('touchmove', handleTouchMove);
|
|
9281
|
+
};
|
|
9282
|
+
}
|
|
9283
|
+
|
|
9284
|
+
return undefined;
|
|
9285
|
+
}, [handleClickAway, touchEvent]);
|
|
9286
|
+
|
|
9287
|
+
if (mouseEvent !== false) {
|
|
9288
|
+
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
9289
|
+
}
|
|
9290
|
+
|
|
9291
|
+
React__namespace.useEffect(() => {
|
|
9292
|
+
if (mouseEvent !== false) {
|
|
9293
|
+
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
9294
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9295
|
+
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
9296
|
+
return () => {
|
|
9297
|
+
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
9298
|
+
};
|
|
9299
|
+
}
|
|
9300
|
+
|
|
9301
|
+
return undefined;
|
|
9302
|
+
}, [handleClickAway, mouseEvent]);
|
|
9303
|
+
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
9304
|
+
children: /*#__PURE__*/React__namespace.cloneElement(children, childrenProps)
|
|
9305
|
+
});
|
|
9306
|
+
}
|
|
9307
|
+
|
|
9308
|
+
ClickAwayListener.propTypes
|
|
9309
|
+
/* remove-proptypes */
|
|
9310
|
+
= {
|
|
9311
|
+
// ----------------------------- Warning --------------------------------
|
|
9312
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
9313
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
9314
|
+
// ----------------------------------------------------------------------
|
|
9315
|
+
|
|
9316
|
+
/**
|
|
9317
|
+
* The wrapped element.
|
|
9318
|
+
*/
|
|
9319
|
+
children: elementAcceptingRef$1.isRequired,
|
|
9320
|
+
|
|
9321
|
+
/**
|
|
9322
|
+
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
9323
|
+
* This prop changes how portaled elements are handled.
|
|
9324
|
+
* @default false
|
|
9325
|
+
*/
|
|
9326
|
+
disableReactTree: propTypes.bool,
|
|
9327
|
+
|
|
9328
|
+
/**
|
|
9329
|
+
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
9330
|
+
* @default 'onClick'
|
|
9331
|
+
*/
|
|
9332
|
+
mouseEvent: propTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
|
|
9333
|
+
|
|
9334
|
+
/**
|
|
9335
|
+
* Callback fired when a "click away" event is detected.
|
|
9336
|
+
*/
|
|
9337
|
+
onClickAway: propTypes.func.isRequired,
|
|
9338
|
+
|
|
9339
|
+
/**
|
|
9340
|
+
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
9341
|
+
* @default 'onTouchEnd'
|
|
9342
|
+
*/
|
|
9343
|
+
touchEvent: propTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
|
9344
|
+
} ;
|
|
9345
|
+
|
|
9346
|
+
{
|
|
9347
|
+
// eslint-disable-next-line
|
|
9348
|
+
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
9349
|
+
}
|
|
9350
|
+
|
|
9153
9351
|
/**
|
|
9154
9352
|
* @ignore - internal component.
|
|
9155
9353
|
*/
|
|
@@ -14553,220 +14751,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14553
14751
|
} ;
|
|
14554
14752
|
var SwitchUnstyled$1 = SwitchUnstyled;
|
|
14555
14753
|
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
function getStyleValue(computedStyle, property) {
|
|
14559
|
-
return parseInt(computedStyle[property], 10) || 0;
|
|
14754
|
+
function getTabPanelUnstyledUtilityClass(slot) {
|
|
14755
|
+
return generateUtilityClass('TabPanelUnstyled', slot);
|
|
14560
14756
|
}
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
shadow: {
|
|
14564
|
-
// Visibility needed to hide the extra text area on iPads
|
|
14565
|
-
visibility: 'hidden',
|
|
14566
|
-
// Remove from the content flow
|
|
14567
|
-
position: 'absolute',
|
|
14568
|
-
// Ignore the scrollbar width
|
|
14569
|
-
overflow: 'hidden',
|
|
14570
|
-
height: 0,
|
|
14571
|
-
top: 0,
|
|
14572
|
-
left: 0,
|
|
14573
|
-
// Create a new layer, increase the isolation of the computed values
|
|
14574
|
-
transform: 'translateZ(0)'
|
|
14575
|
-
}
|
|
14576
|
-
};
|
|
14577
|
-
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
14578
|
-
const {
|
|
14579
|
-
onChange,
|
|
14580
|
-
maxRows,
|
|
14581
|
-
minRows = 1,
|
|
14582
|
-
style,
|
|
14583
|
-
value
|
|
14584
|
-
} = props,
|
|
14585
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14586
|
-
|
|
14587
|
-
const {
|
|
14588
|
-
current: isControlled
|
|
14589
|
-
} = React__namespace.useRef(value != null);
|
|
14590
|
-
const inputRef = React__namespace.useRef(null);
|
|
14591
|
-
const handleRef = useForkRef(ref, inputRef);
|
|
14592
|
-
const shadowRef = React__namespace.useRef(null);
|
|
14593
|
-
const renders = React__namespace.useRef(0);
|
|
14594
|
-
const [state, setState] = React__namespace.useState({});
|
|
14595
|
-
const syncHeight = React__namespace.useCallback(() => {
|
|
14596
|
-
const input = inputRef.current;
|
|
14597
|
-
const containerWindow = ownerWindow(input);
|
|
14598
|
-
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
14599
|
-
|
|
14600
|
-
if (computedStyle.width === '0px') {
|
|
14601
|
-
return;
|
|
14602
|
-
}
|
|
14603
|
-
|
|
14604
|
-
const inputShallow = shadowRef.current;
|
|
14605
|
-
inputShallow.style.width = computedStyle.width;
|
|
14606
|
-
inputShallow.value = input.value || props.placeholder || 'x';
|
|
14607
|
-
|
|
14608
|
-
if (inputShallow.value.slice(-1) === '\n') {
|
|
14609
|
-
// Certain fonts which overflow the line height will cause the textarea
|
|
14610
|
-
// to report a different scrollHeight depending on whether the last line
|
|
14611
|
-
// is empty. Make it non-empty to avoid this issue.
|
|
14612
|
-
inputShallow.value += ' ';
|
|
14613
|
-
}
|
|
14614
|
-
|
|
14615
|
-
const boxSizing = computedStyle['box-sizing'];
|
|
14616
|
-
const padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
|
|
14617
|
-
const border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
|
|
14618
|
-
|
|
14619
|
-
const innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
|
|
14620
|
-
|
|
14621
|
-
inputShallow.value = 'x';
|
|
14622
|
-
const singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
|
|
14623
|
-
|
|
14624
|
-
let outerHeight = innerHeight;
|
|
14625
|
-
|
|
14626
|
-
if (minRows) {
|
|
14627
|
-
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
14628
|
-
}
|
|
14629
|
-
|
|
14630
|
-
if (maxRows) {
|
|
14631
|
-
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
14632
|
-
}
|
|
14633
|
-
|
|
14634
|
-
outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
|
|
14635
|
-
|
|
14636
|
-
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
14637
|
-
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
14638
|
-
setState(prevState => {
|
|
14639
|
-
// Need a large enough difference to update the height.
|
|
14640
|
-
// This prevents infinite rendering loop.
|
|
14641
|
-
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
14642
|
-
renders.current += 1;
|
|
14643
|
-
return {
|
|
14644
|
-
overflow,
|
|
14645
|
-
outerHeightStyle
|
|
14646
|
-
};
|
|
14647
|
-
}
|
|
14648
|
-
|
|
14649
|
-
{
|
|
14650
|
-
if (renders.current === 20) {
|
|
14651
|
-
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
14652
|
-
}
|
|
14653
|
-
}
|
|
14654
|
-
|
|
14655
|
-
return prevState;
|
|
14656
|
-
});
|
|
14657
|
-
}, [maxRows, minRows, props.placeholder]);
|
|
14658
|
-
React__namespace.useEffect(() => {
|
|
14659
|
-
const handleResize = debounce$1(() => {
|
|
14660
|
-
renders.current = 0;
|
|
14661
|
-
syncHeight();
|
|
14662
|
-
});
|
|
14663
|
-
const containerWindow = ownerWindow(inputRef.current);
|
|
14664
|
-
containerWindow.addEventListener('resize', handleResize);
|
|
14665
|
-
let resizeObserver;
|
|
14666
|
-
|
|
14667
|
-
if (typeof ResizeObserver !== 'undefined') {
|
|
14668
|
-
resizeObserver = new ResizeObserver(handleResize);
|
|
14669
|
-
resizeObserver.observe(inputRef.current);
|
|
14670
|
-
}
|
|
14671
|
-
|
|
14672
|
-
return () => {
|
|
14673
|
-
handleResize.clear();
|
|
14674
|
-
containerWindow.removeEventListener('resize', handleResize);
|
|
14675
|
-
|
|
14676
|
-
if (resizeObserver) {
|
|
14677
|
-
resizeObserver.disconnect();
|
|
14678
|
-
}
|
|
14679
|
-
};
|
|
14680
|
-
}, [syncHeight]);
|
|
14681
|
-
useEnhancedEffect$1(() => {
|
|
14682
|
-
syncHeight();
|
|
14683
|
-
});
|
|
14684
|
-
React__namespace.useEffect(() => {
|
|
14685
|
-
renders.current = 0;
|
|
14686
|
-
}, [value]);
|
|
14687
|
-
|
|
14688
|
-
const handleChange = event => {
|
|
14689
|
-
renders.current = 0;
|
|
14690
|
-
|
|
14691
|
-
if (!isControlled) {
|
|
14692
|
-
syncHeight();
|
|
14693
|
-
}
|
|
14694
|
-
|
|
14695
|
-
if (onChange) {
|
|
14696
|
-
onChange(event);
|
|
14697
|
-
}
|
|
14698
|
-
};
|
|
14699
|
-
|
|
14700
|
-
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
14701
|
-
children: [/*#__PURE__*/jsxRuntime_1("textarea", _extends({
|
|
14702
|
-
value: value,
|
|
14703
|
-
onChange: handleChange,
|
|
14704
|
-
ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
|
|
14705
|
-
,
|
|
14706
|
-
rows: minRows,
|
|
14707
|
-
style: _extends({
|
|
14708
|
-
height: state.outerHeightStyle,
|
|
14709
|
-
// Need a large enough difference to allow scrolling.
|
|
14710
|
-
// This prevents infinite rendering loop.
|
|
14711
|
-
overflow: state.overflow ? 'hidden' : null
|
|
14712
|
-
}, style)
|
|
14713
|
-
}, other)), /*#__PURE__*/jsxRuntime_1("textarea", {
|
|
14714
|
-
"aria-hidden": true,
|
|
14715
|
-
className: props.className,
|
|
14716
|
-
readOnly: true,
|
|
14717
|
-
ref: shadowRef,
|
|
14718
|
-
tabIndex: -1,
|
|
14719
|
-
style: _extends({}, styles$5.shadow, style, {
|
|
14720
|
-
padding: 0
|
|
14721
|
-
})
|
|
14722
|
-
})]
|
|
14723
|
-
});
|
|
14724
|
-
});
|
|
14725
|
-
TextareaAutosize.propTypes
|
|
14726
|
-
/* remove-proptypes */
|
|
14727
|
-
= {
|
|
14728
|
-
// ----------------------------- Warning --------------------------------
|
|
14729
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14730
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
14731
|
-
// ----------------------------------------------------------------------
|
|
14732
|
-
|
|
14733
|
-
/**
|
|
14734
|
-
* @ignore
|
|
14735
|
-
*/
|
|
14736
|
-
className: propTypes.string,
|
|
14737
|
-
|
|
14738
|
-
/**
|
|
14739
|
-
* Maximum number of rows to display.
|
|
14740
|
-
*/
|
|
14741
|
-
maxRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
14742
|
-
|
|
14743
|
-
/**
|
|
14744
|
-
* Minimum number of rows to display.
|
|
14745
|
-
* @default 1
|
|
14746
|
-
*/
|
|
14747
|
-
minRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
14748
|
-
|
|
14749
|
-
/**
|
|
14750
|
-
* @ignore
|
|
14751
|
-
*/
|
|
14752
|
-
onChange: propTypes.func,
|
|
14753
|
-
|
|
14754
|
-
/**
|
|
14755
|
-
* @ignore
|
|
14756
|
-
*/
|
|
14757
|
-
placeholder: propTypes.string,
|
|
14758
|
-
|
|
14759
|
-
/**
|
|
14760
|
-
* @ignore
|
|
14761
|
-
*/
|
|
14762
|
-
style: propTypes.object,
|
|
14763
|
-
|
|
14764
|
-
/**
|
|
14765
|
-
* @ignore
|
|
14766
|
-
*/
|
|
14767
|
-
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.string), propTypes.number, propTypes.string])
|
|
14768
|
-
} ;
|
|
14769
|
-
var TextareaAutosize$1 = TextareaAutosize;
|
|
14757
|
+
const tabPanelUnstyledClasses = generateUtilityClasses('TabPanelUnstyled', ['root', 'hidden']);
|
|
14758
|
+
var tabPanelUnstyledClasses$1 = tabPanelUnstyledClasses;
|
|
14770
14759
|
|
|
14771
14760
|
function getTabsUnstyledUtilityClass(slot) {
|
|
14772
14761
|
return generateUtilityClass('TabsUnstyled', slot);
|
|
@@ -14860,7 +14849,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14860
14849
|
}
|
|
14861
14850
|
var Context$1 = Context;
|
|
14862
14851
|
|
|
14863
|
-
const _excluded$
|
|
14852
|
+
const _excluded$2d = ["children", "className", "value", "defaultValue", "orientation", "direction", "component", "components", "componentsProps", "onChange", "selectionFollowsFocus"];
|
|
14864
14853
|
|
|
14865
14854
|
const useUtilityClasses$1O = ownerState => {
|
|
14866
14855
|
const {
|
|
@@ -14895,7 +14884,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14895
14884
|
components = {},
|
|
14896
14885
|
componentsProps = {}
|
|
14897
14886
|
} = props,
|
|
14898
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14887
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14899
14888
|
|
|
14900
14889
|
const {
|
|
14901
14890
|
tabsContextValue,
|
|
@@ -14994,101 +14983,46 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14994
14983
|
} ;
|
|
14995
14984
|
var TabsUnstyled$1 = TabsUnstyled;
|
|
14996
14985
|
|
|
14997
|
-
|
|
14998
|
-
return generateUtilityClass('TabUnstyled', slot);
|
|
14999
|
-
}
|
|
15000
|
-
const tabUnstyledClasses = generateUtilityClasses('TabUnstyled', ['root', 'selected', 'disabled']);
|
|
15001
|
-
var tabUnstyledClasses$1 = tabUnstyledClasses;
|
|
15002
|
-
|
|
15003
|
-
const _excluded$2b = ["getRootProps"];
|
|
15004
|
-
|
|
15005
|
-
const useTab = props => {
|
|
14986
|
+
const useTabPanel = props => {
|
|
15006
14987
|
const {
|
|
15007
|
-
value
|
|
15008
|
-
onChange,
|
|
15009
|
-
onClick,
|
|
15010
|
-
onFocus
|
|
14988
|
+
value
|
|
15011
14989
|
} = props;
|
|
15012
|
-
|
|
15013
|
-
const _useButton = useButton(props),
|
|
15014
|
-
{
|
|
15015
|
-
getRootProps: getRootPropsButton
|
|
15016
|
-
} = _useButton,
|
|
15017
|
-
otherButtonProps = _objectWithoutPropertiesLoose(_useButton, _excluded$2b);
|
|
15018
|
-
|
|
15019
14990
|
const context = useTabContext();
|
|
15020
14991
|
|
|
15021
14992
|
if (context === null) {
|
|
15022
14993
|
throw new Error('No TabContext provided');
|
|
15023
14994
|
}
|
|
15024
14995
|
|
|
15025
|
-
const
|
|
15026
|
-
const
|
|
15027
|
-
const
|
|
15028
|
-
const a11yAttributes = {
|
|
15029
|
-
role: 'tab',
|
|
15030
|
-
'aria-controls': getPanelId(context, value),
|
|
15031
|
-
id: getTabId(context, value),
|
|
15032
|
-
'aria-selected': selected,
|
|
15033
|
-
disabled: otherButtonProps.disabled
|
|
15034
|
-
};
|
|
15035
|
-
|
|
15036
|
-
const handleFocus = event => {
|
|
15037
|
-
if (selectionFollowsFocus && !selected) {
|
|
15038
|
-
if (onChange) {
|
|
15039
|
-
onChange(event, value);
|
|
15040
|
-
}
|
|
15041
|
-
|
|
15042
|
-
context.onSelected(event, value);
|
|
15043
|
-
}
|
|
15044
|
-
|
|
15045
|
-
if (onFocus) {
|
|
15046
|
-
onFocus(event);
|
|
15047
|
-
}
|
|
15048
|
-
};
|
|
15049
|
-
|
|
15050
|
-
const handleClick = event => {
|
|
15051
|
-
if (!selected) {
|
|
15052
|
-
if (onChange) {
|
|
15053
|
-
onChange(event, value);
|
|
15054
|
-
}
|
|
15055
|
-
|
|
15056
|
-
context.onSelected(event, value);
|
|
15057
|
-
}
|
|
15058
|
-
|
|
15059
|
-
if (onClick) {
|
|
15060
|
-
onClick(event);
|
|
15061
|
-
}
|
|
15062
|
-
};
|
|
14996
|
+
const hidden = value !== context.value;
|
|
14997
|
+
const id = getPanelId(context, value);
|
|
14998
|
+
const tabId = getTabId(context, value);
|
|
15063
14999
|
|
|
15064
|
-
const getRootProps =
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15000
|
+
const getRootProps = () => {
|
|
15001
|
+
return {
|
|
15002
|
+
'aria-labelledby': tabId,
|
|
15003
|
+
hidden,
|
|
15004
|
+
id
|
|
15005
|
+
};
|
|
15070
15006
|
};
|
|
15071
15007
|
|
|
15072
|
-
return
|
|
15008
|
+
return {
|
|
15009
|
+
hidden,
|
|
15073
15010
|
getRootProps
|
|
15074
|
-
}
|
|
15075
|
-
selected
|
|
15076
|
-
});
|
|
15011
|
+
};
|
|
15077
15012
|
};
|
|
15078
15013
|
|
|
15079
|
-
var
|
|
15014
|
+
var useTabPanel$1 = useTabPanel;
|
|
15080
15015
|
|
|
15081
|
-
const _excluded$
|
|
15016
|
+
const _excluded$2c = ["children", "className", "value", "components", "componentsProps", "component"];
|
|
15082
15017
|
|
|
15083
15018
|
const useUtilityClasses$1N = ownerState => {
|
|
15084
15019
|
const {
|
|
15085
|
-
|
|
15086
|
-
disabled
|
|
15020
|
+
hidden
|
|
15087
15021
|
} = ownerState;
|
|
15088
15022
|
const slots = {
|
|
15089
|
-
root: ['root',
|
|
15023
|
+
root: ['root', hidden && 'hidden']
|
|
15090
15024
|
};
|
|
15091
|
-
return composeClasses(slots,
|
|
15025
|
+
return composeClasses(slots, getTabPanelUnstyledUtilityClass, {});
|
|
15092
15026
|
};
|
|
15093
15027
|
/**
|
|
15094
15028
|
*
|
|
@@ -15098,59 +15032,43 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15098
15032
|
*
|
|
15099
15033
|
* API:
|
|
15100
15034
|
*
|
|
15101
|
-
* - [
|
|
15035
|
+
* - [TabPanelUnstyled API](https://mui.com/api/tab-panel-unstyled/)
|
|
15102
15036
|
*/
|
|
15103
15037
|
|
|
15104
15038
|
|
|
15105
|
-
const
|
|
15039
|
+
const TabPanelUnstyled = /*#__PURE__*/React__namespace.forwardRef(function TabPanelUnstyled(props, ref) {
|
|
15106
15040
|
var _ref, _componentsProps$root;
|
|
15107
15041
|
|
|
15108
15042
|
const {
|
|
15109
|
-
action,
|
|
15110
15043
|
children,
|
|
15111
15044
|
className,
|
|
15112
|
-
disabled = false,
|
|
15113
|
-
component,
|
|
15114
15045
|
components = {},
|
|
15115
|
-
componentsProps = {}
|
|
15046
|
+
componentsProps = {},
|
|
15047
|
+
component
|
|
15116
15048
|
} = props,
|
|
15117
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15049
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
15118
15050
|
|
|
15119
|
-
const tabRef = React__namespace.useRef();
|
|
15120
|
-
const handleRef = useForkRef(tabRef, ref);
|
|
15121
15051
|
const {
|
|
15122
|
-
|
|
15123
|
-
focusVisible,
|
|
15124
|
-
setFocusVisible,
|
|
15125
|
-
selected,
|
|
15052
|
+
hidden,
|
|
15126
15053
|
getRootProps
|
|
15127
|
-
} =
|
|
15128
|
-
ref: handleRef
|
|
15129
|
-
}));
|
|
15130
|
-
React__namespace.useImperativeHandle(action, () => ({
|
|
15131
|
-
focusVisible: () => {
|
|
15132
|
-
setFocusVisible(true);
|
|
15133
|
-
tabRef.current.focus();
|
|
15134
|
-
}
|
|
15135
|
-
}), [setFocusVisible]);
|
|
15054
|
+
} = useTabPanel$1(props);
|
|
15136
15055
|
|
|
15137
15056
|
const ownerState = _extends({}, props, {
|
|
15138
|
-
|
|
15139
|
-
focusVisible,
|
|
15140
|
-
disabled,
|
|
15141
|
-
selected
|
|
15057
|
+
hidden
|
|
15142
15058
|
});
|
|
15143
15059
|
|
|
15144
15060
|
const classes = useUtilityClasses$1N(ownerState);
|
|
15145
|
-
const
|
|
15146
|
-
const
|
|
15147
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
15148
|
-
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15061
|
+
const TabPanelRoot = (_ref = component != null ? component : components.Root) != null ? _ref : 'div';
|
|
15062
|
+
const tabPanelRootProps = appendOwnerState(TabPanelRoot, _extends({}, other, componentsProps.root), ownerState);
|
|
15063
|
+
return /*#__PURE__*/jsxRuntime_1(TabPanelRoot, _extends({}, getRootProps(), {
|
|
15149
15064
|
ref: ref,
|
|
15150
|
-
|
|
15065
|
+
role: "tabpanel"
|
|
15066
|
+
}, tabPanelRootProps, {
|
|
15067
|
+
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15068
|
+
children: !hidden && children
|
|
15151
15069
|
}));
|
|
15152
15070
|
});
|
|
15153
|
-
|
|
15071
|
+
TabPanelUnstyled.propTypes
|
|
15154
15072
|
/* remove-proptypes */
|
|
15155
15073
|
= {
|
|
15156
15074
|
// ----------------------------- Warning --------------------------------
|
|
@@ -15159,16 +15077,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15159
15077
|
// ----------------------------------------------------------------------
|
|
15160
15078
|
|
|
15161
15079
|
/**
|
|
15162
|
-
*
|
|
15163
|
-
*/
|
|
15164
|
-
action: propTypes.oneOfType([propTypes.func, propTypes.shape({
|
|
15165
|
-
current: propTypes.shape({
|
|
15166
|
-
focusVisible: propTypes.func.isRequired
|
|
15167
|
-
})
|
|
15168
|
-
})]),
|
|
15169
|
-
|
|
15170
|
-
/**
|
|
15171
|
-
* @ignore
|
|
15080
|
+
* The content of the component.
|
|
15172
15081
|
*/
|
|
15173
15082
|
children: propTypes.node,
|
|
15174
15083
|
|
|
@@ -15184,7 +15093,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15184
15093
|
component: propTypes.elementType,
|
|
15185
15094
|
|
|
15186
15095
|
/**
|
|
15187
|
-
* The components used for each slot inside the
|
|
15096
|
+
* The components used for each slot inside the TabPanel.
|
|
15188
15097
|
* Either a string to use a HTML element or a component.
|
|
15189
15098
|
* @default {}
|
|
15190
15099
|
*/
|
|
@@ -15193,38 +15102,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15193
15102
|
}),
|
|
15194
15103
|
|
|
15195
15104
|
/**
|
|
15196
|
-
* The props used for each slot inside the
|
|
15105
|
+
* The props used for each slot inside the TabPanel.
|
|
15197
15106
|
* @default {}
|
|
15198
15107
|
*/
|
|
15199
15108
|
componentsProps: propTypes.object,
|
|
15200
15109
|
|
|
15201
15110
|
/**
|
|
15202
|
-
*
|
|
15203
|
-
* @default false
|
|
15204
|
-
*/
|
|
15205
|
-
disabled: propTypes.bool,
|
|
15206
|
-
|
|
15207
|
-
/**
|
|
15208
|
-
* Callback invoked when new value is being set.
|
|
15209
|
-
*/
|
|
15210
|
-
onChange: propTypes.func,
|
|
15211
|
-
|
|
15212
|
-
/**
|
|
15213
|
-
* @ignore
|
|
15214
|
-
*/
|
|
15215
|
-
onClick: propTypes.func,
|
|
15216
|
-
|
|
15217
|
-
/**
|
|
15218
|
-
* @ignore
|
|
15219
|
-
*/
|
|
15220
|
-
onFocus: propTypes.func,
|
|
15221
|
-
|
|
15222
|
-
/**
|
|
15223
|
-
* You can provide your own value. Otherwise, we fall back to the child position index.
|
|
15111
|
+
* The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
|
|
15224
15112
|
*/
|
|
15225
|
-
value: propTypes.oneOfType([propTypes.number, propTypes.string])
|
|
15113
|
+
value: propTypes.oneOfType([propTypes.number, propTypes.string]).isRequired
|
|
15226
15114
|
} ;
|
|
15227
|
-
var
|
|
15115
|
+
var TabPanelUnstyled$1 = TabPanelUnstyled;
|
|
15228
15116
|
|
|
15229
15117
|
function getTabsListUnstyledUtilityClass(slot) {
|
|
15230
15118
|
return generateUtilityClass('TabsListUnstyled', slot);
|
|
@@ -15422,7 +15310,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15422
15310
|
|
|
15423
15311
|
var useTabsList$1 = useTabsList;
|
|
15424
15312
|
|
|
15425
|
-
const _excluded$
|
|
15313
|
+
const _excluded$2b = ["className", "children", "component", "components", "componentsProps"];
|
|
15426
15314
|
|
|
15427
15315
|
const useUtilityClasses$1M = ownerState => {
|
|
15428
15316
|
const {
|
|
@@ -15454,7 +15342,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15454
15342
|
components = {},
|
|
15455
15343
|
componentsProps = {}
|
|
15456
15344
|
} = props,
|
|
15457
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15345
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2b);
|
|
15458
15346
|
|
|
15459
15347
|
const {
|
|
15460
15348
|
isRtl,
|
|
@@ -15520,52 +15408,101 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15520
15408
|
} ;
|
|
15521
15409
|
var TabsListUnstyled$1 = TabsListUnstyled;
|
|
15522
15410
|
|
|
15523
|
-
function
|
|
15524
|
-
return generateUtilityClass('
|
|
15411
|
+
function getTabUnstyledUtilityClass(slot) {
|
|
15412
|
+
return generateUtilityClass('TabUnstyled', slot);
|
|
15525
15413
|
}
|
|
15526
|
-
const
|
|
15527
|
-
var
|
|
15414
|
+
const tabUnstyledClasses = generateUtilityClasses('TabUnstyled', ['root', 'selected', 'disabled']);
|
|
15415
|
+
var tabUnstyledClasses$1 = tabUnstyledClasses;
|
|
15528
15416
|
|
|
15529
|
-
const
|
|
15417
|
+
const _excluded$2a = ["getRootProps"];
|
|
15418
|
+
|
|
15419
|
+
const useTab = props => {
|
|
15530
15420
|
const {
|
|
15531
|
-
value
|
|
15421
|
+
value: valueProp,
|
|
15422
|
+
onChange,
|
|
15423
|
+
onClick,
|
|
15424
|
+
onFocus
|
|
15532
15425
|
} = props;
|
|
15426
|
+
|
|
15427
|
+
const _useButton = useButton(props),
|
|
15428
|
+
{
|
|
15429
|
+
getRootProps: getRootPropsButton
|
|
15430
|
+
} = _useButton,
|
|
15431
|
+
otherButtonProps = _objectWithoutPropertiesLoose(_useButton, _excluded$2a);
|
|
15432
|
+
|
|
15533
15433
|
const context = useTabContext();
|
|
15534
15434
|
|
|
15535
15435
|
if (context === null) {
|
|
15536
15436
|
throw new Error('No TabContext provided');
|
|
15537
15437
|
}
|
|
15538
15438
|
|
|
15539
|
-
const
|
|
15540
|
-
const
|
|
15541
|
-
const
|
|
15439
|
+
const value = valueProp != null ? valueProp : 0;
|
|
15440
|
+
const selected = context.value === value;
|
|
15441
|
+
const selectionFollowsFocus = context.selectionFollowsFocus;
|
|
15442
|
+
const a11yAttributes = {
|
|
15443
|
+
role: 'tab',
|
|
15444
|
+
'aria-controls': getPanelId(context, value),
|
|
15445
|
+
id: getTabId(context, value),
|
|
15446
|
+
'aria-selected': selected,
|
|
15447
|
+
disabled: otherButtonProps.disabled
|
|
15448
|
+
};
|
|
15542
15449
|
|
|
15543
|
-
const
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15450
|
+
const handleFocus = event => {
|
|
15451
|
+
if (selectionFollowsFocus && !selected) {
|
|
15452
|
+
if (onChange) {
|
|
15453
|
+
onChange(event, value);
|
|
15454
|
+
}
|
|
15455
|
+
|
|
15456
|
+
context.onSelected(event, value);
|
|
15457
|
+
}
|
|
15458
|
+
|
|
15459
|
+
if (onFocus) {
|
|
15460
|
+
onFocus(event);
|
|
15461
|
+
}
|
|
15549
15462
|
};
|
|
15550
15463
|
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15464
|
+
const handleClick = event => {
|
|
15465
|
+
if (!selected) {
|
|
15466
|
+
if (onChange) {
|
|
15467
|
+
onChange(event, value);
|
|
15468
|
+
}
|
|
15469
|
+
|
|
15470
|
+
context.onSelected(event, value);
|
|
15471
|
+
}
|
|
15472
|
+
|
|
15473
|
+
if (onClick) {
|
|
15474
|
+
onClick(event);
|
|
15475
|
+
}
|
|
15476
|
+
};
|
|
15477
|
+
|
|
15478
|
+
const getRootProps = otherHandlers => {
|
|
15479
|
+
const buttonResolvedProps = getRootPropsButton(_extends({
|
|
15480
|
+
onClick: handleClick,
|
|
15481
|
+
onFocus: handleFocus
|
|
15482
|
+
}, otherHandlers));
|
|
15483
|
+
return _extends({}, buttonResolvedProps, a11yAttributes);
|
|
15554
15484
|
};
|
|
15485
|
+
|
|
15486
|
+
return _extends({
|
|
15487
|
+
getRootProps
|
|
15488
|
+
}, otherButtonProps, {
|
|
15489
|
+
selected
|
|
15490
|
+
});
|
|
15555
15491
|
};
|
|
15556
15492
|
|
|
15557
|
-
var
|
|
15493
|
+
var useTab$1 = useTab;
|
|
15558
15494
|
|
|
15559
|
-
const _excluded$
|
|
15495
|
+
const _excluded$29 = ["action", "children", "value", "className", "disabled", "onChange", "onClick", "onFocus", "component", "components", "componentsProps"];
|
|
15560
15496
|
|
|
15561
15497
|
const useUtilityClasses$1L = ownerState => {
|
|
15562
15498
|
const {
|
|
15563
|
-
|
|
15499
|
+
selected,
|
|
15500
|
+
disabled
|
|
15564
15501
|
} = ownerState;
|
|
15565
15502
|
const slots = {
|
|
15566
|
-
root: ['root',
|
|
15503
|
+
root: ['root', selected && 'selected', disabled && 'disabled']
|
|
15567
15504
|
};
|
|
15568
|
-
return composeClasses(slots,
|
|
15505
|
+
return composeClasses(slots, getTabUnstyledUtilityClass, {});
|
|
15569
15506
|
};
|
|
15570
15507
|
/**
|
|
15571
15508
|
*
|
|
@@ -15575,43 +15512,59 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15575
15512
|
*
|
|
15576
15513
|
* API:
|
|
15577
15514
|
*
|
|
15578
|
-
* - [
|
|
15515
|
+
* - [TabUnstyled API](https://mui.com/api/tab-unstyled/)
|
|
15579
15516
|
*/
|
|
15580
15517
|
|
|
15581
15518
|
|
|
15582
|
-
const
|
|
15519
|
+
const TabUnstyled = /*#__PURE__*/React__namespace.forwardRef(function TabUnstyled(props, ref) {
|
|
15583
15520
|
var _ref, _componentsProps$root;
|
|
15584
15521
|
|
|
15585
15522
|
const {
|
|
15523
|
+
action,
|
|
15586
15524
|
children,
|
|
15587
15525
|
className,
|
|
15526
|
+
disabled = false,
|
|
15527
|
+
component,
|
|
15588
15528
|
components = {},
|
|
15589
|
-
componentsProps = {}
|
|
15590
|
-
component
|
|
15529
|
+
componentsProps = {}
|
|
15591
15530
|
} = props,
|
|
15592
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15531
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
15593
15532
|
|
|
15533
|
+
const tabRef = React__namespace.useRef();
|
|
15534
|
+
const handleRef = useForkRef(tabRef, ref);
|
|
15594
15535
|
const {
|
|
15595
|
-
|
|
15536
|
+
active,
|
|
15537
|
+
focusVisible,
|
|
15538
|
+
setFocusVisible,
|
|
15539
|
+
selected,
|
|
15596
15540
|
getRootProps
|
|
15597
|
-
} =
|
|
15541
|
+
} = useTab$1(_extends({}, props, {
|
|
15542
|
+
ref: handleRef
|
|
15543
|
+
}));
|
|
15544
|
+
React__namespace.useImperativeHandle(action, () => ({
|
|
15545
|
+
focusVisible: () => {
|
|
15546
|
+
setFocusVisible(true);
|
|
15547
|
+
tabRef.current.focus();
|
|
15548
|
+
}
|
|
15549
|
+
}), [setFocusVisible]);
|
|
15598
15550
|
|
|
15599
15551
|
const ownerState = _extends({}, props, {
|
|
15600
|
-
|
|
15552
|
+
active,
|
|
15553
|
+
focusVisible,
|
|
15554
|
+
disabled,
|
|
15555
|
+
selected
|
|
15601
15556
|
});
|
|
15602
15557
|
|
|
15603
15558
|
const classes = useUtilityClasses$1L(ownerState);
|
|
15604
|
-
const
|
|
15605
|
-
const
|
|
15606
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
15607
|
-
ref: ref,
|
|
15608
|
-
role: "tabpanel"
|
|
15609
|
-
}, tabPanelRootProps, {
|
|
15559
|
+
const TabRoot = (_ref = component != null ? component : components.Root) != null ? _ref : 'button';
|
|
15560
|
+
const tabRootProps = appendOwnerState(TabRoot, _extends({}, other, componentsProps.root), ownerState);
|
|
15561
|
+
return /*#__PURE__*/jsxRuntime_1(TabRoot, _extends({}, getRootProps(), tabRootProps, {
|
|
15610
15562
|
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className),
|
|
15611
|
-
|
|
15563
|
+
ref: ref,
|
|
15564
|
+
children: children
|
|
15612
15565
|
}));
|
|
15613
15566
|
});
|
|
15614
|
-
|
|
15567
|
+
TabUnstyled.propTypes
|
|
15615
15568
|
/* remove-proptypes */
|
|
15616
15569
|
= {
|
|
15617
15570
|
// ----------------------------- Warning --------------------------------
|
|
@@ -15620,7 +15573,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15620
15573
|
// ----------------------------------------------------------------------
|
|
15621
15574
|
|
|
15622
15575
|
/**
|
|
15623
|
-
*
|
|
15576
|
+
* A ref for imperative actions. It currently only supports `focusVisible()` action.
|
|
15577
|
+
*/
|
|
15578
|
+
action: propTypes.oneOfType([propTypes.func, propTypes.shape({
|
|
15579
|
+
current: propTypes.shape({
|
|
15580
|
+
focusVisible: propTypes.func.isRequired
|
|
15581
|
+
})
|
|
15582
|
+
})]),
|
|
15583
|
+
|
|
15584
|
+
/**
|
|
15585
|
+
* @ignore
|
|
15624
15586
|
*/
|
|
15625
15587
|
children: propTypes.node,
|
|
15626
15588
|
|
|
@@ -15636,7 +15598,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15636
15598
|
component: propTypes.elementType,
|
|
15637
15599
|
|
|
15638
15600
|
/**
|
|
15639
|
-
* The components used for each slot inside the
|
|
15601
|
+
* The components used for each slot inside the Tab.
|
|
15640
15602
|
* Either a string to use a HTML element or a component.
|
|
15641
15603
|
* @default {}
|
|
15642
15604
|
*/
|
|
@@ -15645,17 +15607,253 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15645
15607
|
}),
|
|
15646
15608
|
|
|
15647
15609
|
/**
|
|
15648
|
-
* The props used for each slot inside the
|
|
15610
|
+
* The props used for each slot inside the Tab.
|
|
15649
15611
|
* @default {}
|
|
15650
15612
|
*/
|
|
15651
15613
|
componentsProps: propTypes.object,
|
|
15652
15614
|
|
|
15653
15615
|
/**
|
|
15654
|
-
*
|
|
15616
|
+
* If `true`, the component is disabled.
|
|
15617
|
+
* @default false
|
|
15655
15618
|
*/
|
|
15656
|
-
|
|
15619
|
+
disabled: propTypes.bool,
|
|
15620
|
+
|
|
15621
|
+
/**
|
|
15622
|
+
* Callback invoked when new value is being set.
|
|
15623
|
+
*/
|
|
15624
|
+
onChange: propTypes.func,
|
|
15625
|
+
|
|
15626
|
+
/**
|
|
15627
|
+
* @ignore
|
|
15628
|
+
*/
|
|
15629
|
+
onClick: propTypes.func,
|
|
15630
|
+
|
|
15631
|
+
/**
|
|
15632
|
+
* @ignore
|
|
15633
|
+
*/
|
|
15634
|
+
onFocus: propTypes.func,
|
|
15635
|
+
|
|
15636
|
+
/**
|
|
15637
|
+
* You can provide your own value. Otherwise, we fall back to the child position index.
|
|
15638
|
+
*/
|
|
15639
|
+
value: propTypes.oneOfType([propTypes.number, propTypes.string])
|
|
15657
15640
|
} ;
|
|
15658
|
-
var
|
|
15641
|
+
var TabUnstyled$1 = TabUnstyled;
|
|
15642
|
+
|
|
15643
|
+
const _excluded$28 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15644
|
+
|
|
15645
|
+
function getStyleValue(computedStyle, property) {
|
|
15646
|
+
return parseInt(computedStyle[property], 10) || 0;
|
|
15647
|
+
}
|
|
15648
|
+
|
|
15649
|
+
const styles$5 = {
|
|
15650
|
+
shadow: {
|
|
15651
|
+
// Visibility needed to hide the extra text area on iPads
|
|
15652
|
+
visibility: 'hidden',
|
|
15653
|
+
// Remove from the content flow
|
|
15654
|
+
position: 'absolute',
|
|
15655
|
+
// Ignore the scrollbar width
|
|
15656
|
+
overflow: 'hidden',
|
|
15657
|
+
height: 0,
|
|
15658
|
+
top: 0,
|
|
15659
|
+
left: 0,
|
|
15660
|
+
// Create a new layer, increase the isolation of the computed values
|
|
15661
|
+
transform: 'translateZ(0)'
|
|
15662
|
+
}
|
|
15663
|
+
};
|
|
15664
|
+
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
15665
|
+
const {
|
|
15666
|
+
onChange,
|
|
15667
|
+
maxRows,
|
|
15668
|
+
minRows = 1,
|
|
15669
|
+
style,
|
|
15670
|
+
value
|
|
15671
|
+
} = props,
|
|
15672
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
15673
|
+
|
|
15674
|
+
const {
|
|
15675
|
+
current: isControlled
|
|
15676
|
+
} = React__namespace.useRef(value != null);
|
|
15677
|
+
const inputRef = React__namespace.useRef(null);
|
|
15678
|
+
const handleRef = useForkRef(ref, inputRef);
|
|
15679
|
+
const shadowRef = React__namespace.useRef(null);
|
|
15680
|
+
const renders = React__namespace.useRef(0);
|
|
15681
|
+
const [state, setState] = React__namespace.useState({});
|
|
15682
|
+
const syncHeight = React__namespace.useCallback(() => {
|
|
15683
|
+
const input = inputRef.current;
|
|
15684
|
+
const containerWindow = ownerWindow(input);
|
|
15685
|
+
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
15686
|
+
|
|
15687
|
+
if (computedStyle.width === '0px') {
|
|
15688
|
+
return;
|
|
15689
|
+
}
|
|
15690
|
+
|
|
15691
|
+
const inputShallow = shadowRef.current;
|
|
15692
|
+
inputShallow.style.width = computedStyle.width;
|
|
15693
|
+
inputShallow.value = input.value || props.placeholder || 'x';
|
|
15694
|
+
|
|
15695
|
+
if (inputShallow.value.slice(-1) === '\n') {
|
|
15696
|
+
// Certain fonts which overflow the line height will cause the textarea
|
|
15697
|
+
// to report a different scrollHeight depending on whether the last line
|
|
15698
|
+
// is empty. Make it non-empty to avoid this issue.
|
|
15699
|
+
inputShallow.value += ' ';
|
|
15700
|
+
}
|
|
15701
|
+
|
|
15702
|
+
const boxSizing = computedStyle['box-sizing'];
|
|
15703
|
+
const padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
|
|
15704
|
+
const border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
|
|
15705
|
+
|
|
15706
|
+
const innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
|
|
15707
|
+
|
|
15708
|
+
inputShallow.value = 'x';
|
|
15709
|
+
const singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
|
|
15710
|
+
|
|
15711
|
+
let outerHeight = innerHeight;
|
|
15712
|
+
|
|
15713
|
+
if (minRows) {
|
|
15714
|
+
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
15715
|
+
}
|
|
15716
|
+
|
|
15717
|
+
if (maxRows) {
|
|
15718
|
+
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
15719
|
+
}
|
|
15720
|
+
|
|
15721
|
+
outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
|
|
15722
|
+
|
|
15723
|
+
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
15724
|
+
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
15725
|
+
setState(prevState => {
|
|
15726
|
+
// Need a large enough difference to update the height.
|
|
15727
|
+
// This prevents infinite rendering loop.
|
|
15728
|
+
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
15729
|
+
renders.current += 1;
|
|
15730
|
+
return {
|
|
15731
|
+
overflow,
|
|
15732
|
+
outerHeightStyle
|
|
15733
|
+
};
|
|
15734
|
+
}
|
|
15735
|
+
|
|
15736
|
+
{
|
|
15737
|
+
if (renders.current === 20) {
|
|
15738
|
+
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
15739
|
+
}
|
|
15740
|
+
}
|
|
15741
|
+
|
|
15742
|
+
return prevState;
|
|
15743
|
+
});
|
|
15744
|
+
}, [maxRows, minRows, props.placeholder]);
|
|
15745
|
+
React__namespace.useEffect(() => {
|
|
15746
|
+
const handleResize = debounce$1(() => {
|
|
15747
|
+
renders.current = 0;
|
|
15748
|
+
syncHeight();
|
|
15749
|
+
});
|
|
15750
|
+
const containerWindow = ownerWindow(inputRef.current);
|
|
15751
|
+
containerWindow.addEventListener('resize', handleResize);
|
|
15752
|
+
let resizeObserver;
|
|
15753
|
+
|
|
15754
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
15755
|
+
resizeObserver = new ResizeObserver(handleResize);
|
|
15756
|
+
resizeObserver.observe(inputRef.current);
|
|
15757
|
+
}
|
|
15758
|
+
|
|
15759
|
+
return () => {
|
|
15760
|
+
handleResize.clear();
|
|
15761
|
+
containerWindow.removeEventListener('resize', handleResize);
|
|
15762
|
+
|
|
15763
|
+
if (resizeObserver) {
|
|
15764
|
+
resizeObserver.disconnect();
|
|
15765
|
+
}
|
|
15766
|
+
};
|
|
15767
|
+
}, [syncHeight]);
|
|
15768
|
+
useEnhancedEffect$1(() => {
|
|
15769
|
+
syncHeight();
|
|
15770
|
+
});
|
|
15771
|
+
React__namespace.useEffect(() => {
|
|
15772
|
+
renders.current = 0;
|
|
15773
|
+
}, [value]);
|
|
15774
|
+
|
|
15775
|
+
const handleChange = event => {
|
|
15776
|
+
renders.current = 0;
|
|
15777
|
+
|
|
15778
|
+
if (!isControlled) {
|
|
15779
|
+
syncHeight();
|
|
15780
|
+
}
|
|
15781
|
+
|
|
15782
|
+
if (onChange) {
|
|
15783
|
+
onChange(event);
|
|
15784
|
+
}
|
|
15785
|
+
};
|
|
15786
|
+
|
|
15787
|
+
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
15788
|
+
children: [/*#__PURE__*/jsxRuntime_1("textarea", _extends({
|
|
15789
|
+
value: value,
|
|
15790
|
+
onChange: handleChange,
|
|
15791
|
+
ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
|
|
15792
|
+
,
|
|
15793
|
+
rows: minRows,
|
|
15794
|
+
style: _extends({
|
|
15795
|
+
height: state.outerHeightStyle,
|
|
15796
|
+
// Need a large enough difference to allow scrolling.
|
|
15797
|
+
// This prevents infinite rendering loop.
|
|
15798
|
+
overflow: state.overflow ? 'hidden' : null
|
|
15799
|
+
}, style)
|
|
15800
|
+
}, other)), /*#__PURE__*/jsxRuntime_1("textarea", {
|
|
15801
|
+
"aria-hidden": true,
|
|
15802
|
+
className: props.className,
|
|
15803
|
+
readOnly: true,
|
|
15804
|
+
ref: shadowRef,
|
|
15805
|
+
tabIndex: -1,
|
|
15806
|
+
style: _extends({}, styles$5.shadow, style, {
|
|
15807
|
+
padding: 0
|
|
15808
|
+
})
|
|
15809
|
+
})]
|
|
15810
|
+
});
|
|
15811
|
+
});
|
|
15812
|
+
TextareaAutosize.propTypes
|
|
15813
|
+
/* remove-proptypes */
|
|
15814
|
+
= {
|
|
15815
|
+
// ----------------------------- Warning --------------------------------
|
|
15816
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15817
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
15818
|
+
// ----------------------------------------------------------------------
|
|
15819
|
+
|
|
15820
|
+
/**
|
|
15821
|
+
* @ignore
|
|
15822
|
+
*/
|
|
15823
|
+
className: propTypes.string,
|
|
15824
|
+
|
|
15825
|
+
/**
|
|
15826
|
+
* Maximum number of rows to display.
|
|
15827
|
+
*/
|
|
15828
|
+
maxRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
15829
|
+
|
|
15830
|
+
/**
|
|
15831
|
+
* Minimum number of rows to display.
|
|
15832
|
+
* @default 1
|
|
15833
|
+
*/
|
|
15834
|
+
minRows: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
15835
|
+
|
|
15836
|
+
/**
|
|
15837
|
+
* @ignore
|
|
15838
|
+
*/
|
|
15839
|
+
onChange: propTypes.func,
|
|
15840
|
+
|
|
15841
|
+
/**
|
|
15842
|
+
* @ignore
|
|
15843
|
+
*/
|
|
15844
|
+
placeholder: propTypes.string,
|
|
15845
|
+
|
|
15846
|
+
/**
|
|
15847
|
+
* @ignore
|
|
15848
|
+
*/
|
|
15849
|
+
style: propTypes.object,
|
|
15850
|
+
|
|
15851
|
+
/**
|
|
15852
|
+
* @ignore
|
|
15853
|
+
*/
|
|
15854
|
+
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.string), propTypes.number, propTypes.string])
|
|
15855
|
+
} ;
|
|
15856
|
+
var TextareaAutosize$1 = TextareaAutosize;
|
|
15659
15857
|
|
|
15660
15858
|
function createMixins(breakpoints, spacing, mixins) {
|
|
15661
15859
|
return _extends({
|
|
@@ -16430,7 +16628,7 @@ const theme2 = createTheme({ palette: {
|
|
|
16430
16628
|
const theme = _extends({}, themeInput);
|
|
16431
16629
|
|
|
16432
16630
|
theme.typography = _extends({}, theme.typography);
|
|
16433
|
-
const typography = theme.typography; // Convert between
|
|
16631
|
+
const typography = theme.typography; // Convert between CSS lengths e.g. em->px or px->rem
|
|
16434
16632
|
// Set the baseFontSize for your project. Defaults to 16px (also the browser default).
|
|
16435
16633
|
|
|
16436
16634
|
const convert = convertLength(typography.htmlFontSize);
|
|
@@ -16697,7 +16895,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16697
16895
|
/**
|
|
16698
16896
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
16699
16897
|
*/
|
|
16700
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
16898
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
16701
16899
|
|
|
16702
16900
|
/**
|
|
16703
16901
|
* Provides a human-readable title for the element that contains it.
|
|
@@ -18121,7 +18319,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18121
18319
|
/**
|
|
18122
18320
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18123
18321
|
*/
|
|
18124
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18322
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18125
18323
|
|
|
18126
18324
|
/**
|
|
18127
18325
|
* The duration for the transition, in milliseconds.
|
|
@@ -18293,7 +18491,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18293
18491
|
/**
|
|
18294
18492
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18295
18493
|
*/
|
|
18296
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18494
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18297
18495
|
|
|
18298
18496
|
/**
|
|
18299
18497
|
* The variant to use.
|
|
@@ -18570,7 +18768,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18570
18768
|
/**
|
|
18571
18769
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18572
18770
|
*/
|
|
18573
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
18771
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
18574
18772
|
|
|
18575
18773
|
/**
|
|
18576
18774
|
* The component used for the transition.
|
|
@@ -18581,7 +18779,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18581
18779
|
|
|
18582
18780
|
/**
|
|
18583
18781
|
* Props applied to the transition element.
|
|
18584
|
-
* By default, the element is based on this [`Transition`](
|
|
18782
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
18585
18783
|
*/
|
|
18586
18784
|
TransitionProps: propTypes.object
|
|
18587
18785
|
} ;
|
|
@@ -18682,7 +18880,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18682
18880
|
/**
|
|
18683
18881
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18684
18882
|
*/
|
|
18685
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
18883
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
18686
18884
|
} ;
|
|
18687
18885
|
var AccordionActions$1 = AccordionActions;
|
|
18688
18886
|
|
|
@@ -18758,7 +18956,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
18758
18956
|
/**
|
|
18759
18957
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18760
18958
|
*/
|
|
18761
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
18959
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
18762
18960
|
} ;
|
|
18763
18961
|
var AccordionDetails$1 = AccordionDetails;
|
|
18764
18962
|
|
|
@@ -19604,7 +19802,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19604
19802
|
* This prop can help identify which element has keyboard focus.
|
|
19605
19803
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
19606
19804
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
19607
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
19805
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
19608
19806
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
19609
19807
|
* if needed.
|
|
19610
19808
|
*/
|
|
@@ -19697,7 +19895,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19697
19895
|
/**
|
|
19698
19896
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19699
19897
|
*/
|
|
19700
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
19898
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
19701
19899
|
|
|
19702
19900
|
/**
|
|
19703
19901
|
* @default 0
|
|
@@ -19901,7 +20099,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19901
20099
|
* This prop can help identify which element has keyboard focus.
|
|
19902
20100
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
19903
20101
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
19904
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
20102
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
19905
20103
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
19906
20104
|
* if needed.
|
|
19907
20105
|
*/
|
|
@@ -19915,7 +20113,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
19915
20113
|
/**
|
|
19916
20114
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19917
20115
|
*/
|
|
19918
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20116
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
19919
20117
|
} ;
|
|
19920
20118
|
var AccordionSummary$1 = AccordionSummary;
|
|
19921
20119
|
|
|
@@ -20133,7 +20331,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20133
20331
|
/**
|
|
20134
20332
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20135
20333
|
*/
|
|
20136
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20334
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20137
20335
|
} ;
|
|
20138
20336
|
var IconButton$1 = IconButton;
|
|
20139
20337
|
|
|
@@ -20194,7 +20392,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20194
20392
|
const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
|
|
20195
20393
|
const color = ownerState.color || ownerState.severity;
|
|
20196
20394
|
return _extends({}, theme.typography.body2, {
|
|
20197
|
-
borderRadius: theme.shape.borderRadius,
|
|
20198
20395
|
backgroundColor: 'transparent',
|
|
20199
20396
|
display: 'flex',
|
|
20200
20397
|
padding: '6px 16px'
|
|
@@ -20289,7 +20486,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20289
20486
|
const classes = useUtilityClasses$1B(ownerState);
|
|
20290
20487
|
return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
|
|
20291
20488
|
role: role,
|
|
20292
|
-
square: true,
|
|
20293
20489
|
elevation: 0,
|
|
20294
20490
|
ownerState: ownerState,
|
|
20295
20491
|
className: clsx(classes.root, className),
|
|
@@ -20407,7 +20603,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20407
20603
|
/**
|
|
20408
20604
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20409
20605
|
*/
|
|
20410
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
20606
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
20411
20607
|
|
|
20412
20608
|
/**
|
|
20413
20609
|
* The variant to use.
|
|
@@ -20595,7 +20791,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20595
20791
|
/**
|
|
20596
20792
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20597
20793
|
*/
|
|
20598
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
20794
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
20599
20795
|
|
|
20600
20796
|
/**
|
|
20601
20797
|
* Applies the theme typography styles.
|
|
@@ -20707,7 +20903,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20707
20903
|
/**
|
|
20708
20904
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20709
20905
|
*/
|
|
20710
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
20906
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20711
20907
|
} ;
|
|
20712
20908
|
var AlertTitle$1 = AlertTitle;
|
|
20713
20909
|
|
|
@@ -20875,7 +21071,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
20875
21071
|
/**
|
|
20876
21072
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20877
21073
|
*/
|
|
20878
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
21074
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
20879
21075
|
} ;
|
|
20880
21076
|
var AppBar$1 = AppBar;
|
|
20881
21077
|
|
|
@@ -21150,7 +21346,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21150
21346
|
/**
|
|
21151
21347
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
21152
21348
|
*/
|
|
21153
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
21349
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
21154
21350
|
} ;
|
|
21155
21351
|
var ListSubheader$1 = ListSubheader;
|
|
21156
21352
|
|
|
@@ -21664,7 +21860,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21664
21860
|
/**
|
|
21665
21861
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
21666
21862
|
*/
|
|
21667
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
21863
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
21668
21864
|
|
|
21669
21865
|
/**
|
|
21670
21866
|
* The variant to use.
|
|
@@ -22731,7 +22927,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22731
22927
|
/**
|
|
22732
22928
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22733
22929
|
*/
|
|
22734
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
22930
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
22735
22931
|
|
|
22736
22932
|
/**
|
|
22737
22933
|
* The value of the autocomplete.
|
|
@@ -23005,7 +23201,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23005
23201
|
/**
|
|
23006
23202
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23007
23203
|
*/
|
|
23008
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23204
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23009
23205
|
|
|
23010
23206
|
/**
|
|
23011
23207
|
* The shape of the avatar.
|
|
@@ -23023,7 +23219,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23023
23219
|
const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
|
|
23024
23220
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23025
23221
|
|
|
23026
|
-
const _excluded$1N = ["children", "className", "max", "spacing", "variant"];
|
|
23222
|
+
const _excluded$1N = ["children", "className", "max", "spacing", "total", "variant"];
|
|
23027
23223
|
const SPACINGS$1 = {
|
|
23028
23224
|
small: -16,
|
|
23029
23225
|
medium: null
|
|
@@ -23085,11 +23281,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23085
23281
|
className,
|
|
23086
23282
|
max = 5,
|
|
23087
23283
|
spacing = 'medium',
|
|
23284
|
+
total,
|
|
23088
23285
|
variant = 'circular'
|
|
23089
23286
|
} = props,
|
|
23090
23287
|
other = _objectWithoutPropertiesLoose(props, _excluded$1N);
|
|
23091
23288
|
|
|
23092
|
-
|
|
23289
|
+
let clampedMax = max < 2 ? 2 : max;
|
|
23093
23290
|
|
|
23094
23291
|
const ownerState = _extends({}, props, {
|
|
23095
23292
|
max,
|
|
@@ -23107,7 +23304,15 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23107
23304
|
|
|
23108
23305
|
return /*#__PURE__*/React__namespace.isValidElement(child);
|
|
23109
23306
|
});
|
|
23110
|
-
const
|
|
23307
|
+
const totalAvatars = total || children.length;
|
|
23308
|
+
|
|
23309
|
+
if (totalAvatars === clampedMax) {
|
|
23310
|
+
clampedMax += 1;
|
|
23311
|
+
}
|
|
23312
|
+
|
|
23313
|
+
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23314
|
+
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23315
|
+
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23111
23316
|
const marginLeft = spacing && SPACINGS$1[spacing] !== undefined ? SPACINGS$1[spacing] : -spacing;
|
|
23112
23317
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
23113
23318
|
ownerState: ownerState,
|
|
@@ -23122,7 +23327,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23122
23327
|
},
|
|
23123
23328
|
variant: variant,
|
|
23124
23329
|
children: ["+", extraAvatars]
|
|
23125
|
-
}) : null, children.slice(0,
|
|
23330
|
+
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
23126
23331
|
return /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
23127
23332
|
className: clsx(child.props.className, classes.avatar),
|
|
23128
23333
|
style: _extends({
|
|
@@ -23177,7 +23382,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23177
23382
|
/**
|
|
23178
23383
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23179
23384
|
*/
|
|
23180
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23385
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23386
|
+
|
|
23387
|
+
/**
|
|
23388
|
+
* The total number of avatars. Used for calculating the number of extra avatars.
|
|
23389
|
+
* @default children.length
|
|
23390
|
+
*/
|
|
23391
|
+
total: propTypes.number,
|
|
23181
23392
|
|
|
23182
23393
|
/**
|
|
23183
23394
|
* The variant to use.
|
|
@@ -23539,7 +23750,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23539
23750
|
/**
|
|
23540
23751
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23541
23752
|
*/
|
|
23542
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
23753
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23543
23754
|
|
|
23544
23755
|
/**
|
|
23545
23756
|
* The duration for the transition, in milliseconds.
|
|
@@ -23553,7 +23764,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23553
23764
|
} ;
|
|
23554
23765
|
var Backdrop$1 = Backdrop;
|
|
23555
23766
|
|
|
23556
|
-
const _excluded$1K = ["components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
23767
|
+
const _excluded$1K = ["component", "components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
23557
23768
|
const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning']));
|
|
23558
23769
|
const RADIUS_STANDARD = 10;
|
|
23559
23770
|
const RADIUS_DOT = 4;
|
|
@@ -23692,6 +23903,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23692
23903
|
duration: theme.transitions.duration.leavingScreen
|
|
23693
23904
|
})
|
|
23694
23905
|
}));
|
|
23906
|
+
|
|
23907
|
+
const shouldSpreadAdditionalProps = Slot => {
|
|
23908
|
+
return !Slot || !isHostComponent(Slot);
|
|
23909
|
+
};
|
|
23910
|
+
|
|
23695
23911
|
const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
|
|
23696
23912
|
var _componentsProps$root, _componentsProps$badg;
|
|
23697
23913
|
|
|
@@ -23701,6 +23917,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23701
23917
|
});
|
|
23702
23918
|
|
|
23703
23919
|
const {
|
|
23920
|
+
component = 'span',
|
|
23704
23921
|
components = {},
|
|
23705
23922
|
componentsProps = {},
|
|
23706
23923
|
color: colorProp = 'default',
|
|
@@ -23741,12 +23958,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23741
23958
|
Badge: BadgeBadge
|
|
23742
23959
|
}, components),
|
|
23743
23960
|
componentsProps: {
|
|
23744
|
-
root: _extends({}, componentsProps.root, (
|
|
23961
|
+
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
|
|
23962
|
+
as: component,
|
|
23745
23963
|
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
|
|
23746
23964
|
color
|
|
23747
23965
|
})
|
|
23748
23966
|
}),
|
|
23749
|
-
badge: _extends({}, componentsProps.badge, (
|
|
23967
|
+
badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
|
|
23750
23968
|
ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
|
|
23751
23969
|
color
|
|
23752
23970
|
})
|
|
@@ -23799,6 +24017,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23799
24017
|
/* @typescript-to-proptypes-ignore */
|
|
23800
24018
|
.oneOfType([propTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), propTypes.string]),
|
|
23801
24019
|
|
|
24020
|
+
/**
|
|
24021
|
+
* The component used for the root node.
|
|
24022
|
+
* Either a string to use a HTML element or a component.
|
|
24023
|
+
*/
|
|
24024
|
+
component: propTypes.elementType,
|
|
24025
|
+
|
|
23802
24026
|
/**
|
|
23803
24027
|
* The components used for each slot inside the Badge.
|
|
23804
24028
|
* Either a string to use a HTML element or a component.
|
|
@@ -23841,7 +24065,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23841
24065
|
/**
|
|
23842
24066
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23843
24067
|
*/
|
|
23844
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24068
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23845
24069
|
|
|
23846
24070
|
/**
|
|
23847
24071
|
* The variant to use.
|
|
@@ -23979,7 +24203,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23979
24203
|
/**
|
|
23980
24204
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23981
24205
|
*/
|
|
23982
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24206
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
23983
24207
|
|
|
23984
24208
|
/**
|
|
23985
24209
|
* The value of the currently selected `BottomNavigationAction`.
|
|
@@ -24159,7 +24383,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24159
24383
|
/**
|
|
24160
24384
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24161
24385
|
*/
|
|
24162
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
24386
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
24163
24387
|
|
|
24164
24388
|
/**
|
|
24165
24389
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
@@ -24468,7 +24692,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24468
24692
|
/**
|
|
24469
24693
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24470
24694
|
*/
|
|
24471
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
24695
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
24472
24696
|
} ;
|
|
24473
24697
|
var Breadcrumbs$1 = Breadcrumbs;
|
|
24474
24698
|
|
|
@@ -24489,7 +24713,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24489
24713
|
|
|
24490
24714
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
24491
24715
|
|
|
24492
|
-
const _excluded$1G = ["children", "
|
|
24716
|
+
const _excluded$1G = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
24493
24717
|
|
|
24494
24718
|
const useUtilityClasses$1p = ownerState => {
|
|
24495
24719
|
const {
|
|
@@ -24690,51 +24914,32 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24690
24914
|
marginRight: -2
|
|
24691
24915
|
}, commonIconStyles(ownerState)));
|
|
24692
24916
|
const Button = /*#__PURE__*/React__namespace.forwardRef(function Button(inProps, ref) {
|
|
24917
|
+
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
24918
|
+
const contextProps = React__namespace.useContext(ButtonGroupContext$1);
|
|
24919
|
+
const resolvedProps = resolveProps(contextProps, inProps);
|
|
24693
24920
|
const props = useThemeProps({
|
|
24694
|
-
props:
|
|
24921
|
+
props: resolvedProps,
|
|
24695
24922
|
name: 'MuiButton'
|
|
24696
24923
|
});
|
|
24697
|
-
const {
|
|
24698
|
-
className: classNameContext,
|
|
24699
|
-
color: colorContext,
|
|
24700
|
-
disabled: disabledContext,
|
|
24701
|
-
disableElevation: disableElevationContext,
|
|
24702
|
-
disableFocusRipple: disableFocusRippleContext,
|
|
24703
|
-
disableRipple: disableRippleContext,
|
|
24704
|
-
fullWidth: fullWidthContext,
|
|
24705
|
-
size: sizeContext,
|
|
24706
|
-
variant: variantContext
|
|
24707
|
-
} = React__namespace.useContext(ButtonGroupContext$1);
|
|
24708
24924
|
|
|
24709
24925
|
const {
|
|
24710
24926
|
children,
|
|
24711
|
-
|
|
24712
|
-
color: colorProp,
|
|
24927
|
+
color = 'primary',
|
|
24713
24928
|
component = 'button',
|
|
24714
|
-
|
|
24715
|
-
|
|
24716
|
-
|
|
24717
|
-
|
|
24929
|
+
className,
|
|
24930
|
+
disabled = false,
|
|
24931
|
+
disableElevation = false,
|
|
24932
|
+
disableFocusRipple = false,
|
|
24718
24933
|
endIcon: endIconProp,
|
|
24719
24934
|
focusVisibleClassName,
|
|
24720
|
-
fullWidth
|
|
24721
|
-
size
|
|
24935
|
+
fullWidth = false,
|
|
24936
|
+
size = 'medium',
|
|
24722
24937
|
startIcon: startIconProp,
|
|
24723
24938
|
type,
|
|
24724
|
-
variant
|
|
24939
|
+
variant = 'text'
|
|
24725
24940
|
} = props,
|
|
24726
24941
|
other = _objectWithoutPropertiesLoose(props, _excluded$1G);
|
|
24727
24942
|
|
|
24728
|
-
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.
|
|
24729
|
-
|
|
24730
|
-
const disabled = disabledProp || disabledContext || false;
|
|
24731
|
-
const disableElevation = disableElevationProp || disableElevationContext || false;
|
|
24732
|
-
const disableFocusRipple = disableFocusRippleProp || disableFocusRippleContext || false;
|
|
24733
|
-
const fullWidth = fullWidthProp || fullWidthContext || false;
|
|
24734
|
-
const size = sizeProp || sizeContext || 'medium';
|
|
24735
|
-
const variant = variantProp || variantContext || 'text';
|
|
24736
|
-
const disableRipple = disableRippleProp || disableRippleContext || false;
|
|
24737
|
-
|
|
24738
24943
|
const ownerState = _extends({}, props, {
|
|
24739
24944
|
color,
|
|
24740
24945
|
component,
|
|
@@ -24763,10 +24968,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24763
24968
|
|
|
24764
24969
|
return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
|
|
24765
24970
|
ownerState: ownerState,
|
|
24766
|
-
className: clsx(className,
|
|
24971
|
+
className: clsx(className, contextProps.className),
|
|
24767
24972
|
component: component,
|
|
24768
24973
|
disabled: disabled,
|
|
24769
|
-
disableRipple: disableRipple,
|
|
24770
24974
|
focusRipple: !disableFocusRipple,
|
|
24771
24975
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
24772
24976
|
ref: ref,
|
|
@@ -24879,7 +25083,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24879
25083
|
/**
|
|
24880
25084
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24881
25085
|
*/
|
|
24882
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25086
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
24883
25087
|
|
|
24884
25088
|
/**
|
|
24885
25089
|
* @ignore
|
|
@@ -25157,7 +25361,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25157
25361
|
/**
|
|
25158
25362
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25159
25363
|
*/
|
|
25160
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25364
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
25161
25365
|
|
|
25162
25366
|
/**
|
|
25163
25367
|
* The variant to use.
|
|
@@ -25258,7 +25462,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25258
25462
|
/**
|
|
25259
25463
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25260
25464
|
*/
|
|
25261
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25465
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25262
25466
|
} ;
|
|
25263
25467
|
var Card$1 = Card;
|
|
25264
25468
|
|
|
@@ -25380,7 +25584,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25380
25584
|
/**
|
|
25381
25585
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25382
25586
|
*/
|
|
25383
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25587
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25384
25588
|
} ;
|
|
25385
25589
|
var CardActionArea$1 = CardActionArea;
|
|
25386
25590
|
|
|
@@ -25478,7 +25682,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25478
25682
|
/**
|
|
25479
25683
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25480
25684
|
*/
|
|
25481
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25685
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25482
25686
|
} ;
|
|
25483
25687
|
var CardActions$1 = CardActions;
|
|
25484
25688
|
|
|
@@ -25568,7 +25772,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25568
25772
|
/**
|
|
25569
25773
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25570
25774
|
*/
|
|
25571
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
25775
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25572
25776
|
} ;
|
|
25573
25777
|
var CardContent$1 = CardContent;
|
|
25574
25778
|
|
|
@@ -25771,7 +25975,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25771
25975
|
/**
|
|
25772
25976
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25773
25977
|
*/
|
|
25774
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
25978
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
25775
25979
|
|
|
25776
25980
|
/**
|
|
25777
25981
|
* The content of the component.
|
|
@@ -25931,7 +26135,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25931
26135
|
/**
|
|
25932
26136
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
25933
26137
|
*/
|
|
25934
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
26138
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
25935
26139
|
} ;
|
|
25936
26140
|
var CardMedia$1 = CardMedia;
|
|
25937
26141
|
|
|
@@ -26477,7 +26681,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26477
26681
|
/**
|
|
26478
26682
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26479
26683
|
*/
|
|
26480
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
26684
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
26481
26685
|
|
|
26482
26686
|
/**
|
|
26483
26687
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -26729,7 +26933,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26729
26933
|
/**
|
|
26730
26934
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26731
26935
|
*/
|
|
26732
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
26936
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
26733
26937
|
|
|
26734
26938
|
/**
|
|
26735
26939
|
* The thickness of the circle.
|
|
@@ -26753,192 +26957,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
26753
26957
|
} ;
|
|
26754
26958
|
var CircularProgress$1 = CircularProgress;
|
|
26755
26959
|
|
|
26756
|
-
function mapEventPropToEvent(eventProp) {
|
|
26757
|
-
return eventProp.substring(2).toLowerCase();
|
|
26758
|
-
}
|
|
26759
|
-
|
|
26760
|
-
function clickedRootScrollbar(event, doc) {
|
|
26761
|
-
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
26762
|
-
}
|
|
26763
|
-
|
|
26764
|
-
/**
|
|
26765
|
-
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
|
26766
|
-
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
|
26767
|
-
*
|
|
26768
|
-
* Demos:
|
|
26769
|
-
*
|
|
26770
|
-
* - [Click Away Listener](https://mui.com/components/click-away-listener/)
|
|
26771
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
26772
|
-
*
|
|
26773
|
-
* API:
|
|
26774
|
-
*
|
|
26775
|
-
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
26776
|
-
*/
|
|
26777
|
-
function ClickAwayListener(props) {
|
|
26778
|
-
const {
|
|
26779
|
-
children,
|
|
26780
|
-
disableReactTree = false,
|
|
26781
|
-
mouseEvent = 'onClick',
|
|
26782
|
-
onClickAway,
|
|
26783
|
-
touchEvent = 'onTouchEnd'
|
|
26784
|
-
} = props;
|
|
26785
|
-
const movedRef = React__namespace.useRef(false);
|
|
26786
|
-
const nodeRef = React__namespace.useRef(null);
|
|
26787
|
-
const activatedRef = React__namespace.useRef(false);
|
|
26788
|
-
const syntheticEventRef = React__namespace.useRef(false);
|
|
26789
|
-
React__namespace.useEffect(() => {
|
|
26790
|
-
// Ensure that this component is not "activated" synchronously.
|
|
26791
|
-
// https://github.com/facebook/react/issues/20074
|
|
26792
|
-
setTimeout(() => {
|
|
26793
|
-
activatedRef.current = true;
|
|
26794
|
-
}, 0);
|
|
26795
|
-
return () => {
|
|
26796
|
-
activatedRef.current = false;
|
|
26797
|
-
};
|
|
26798
|
-
}, []);
|
|
26799
|
-
const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
|
|
26800
|
-
children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
|
|
26801
|
-
//
|
|
26802
|
-
// event.preventDefault() is meant to stop default behaviors like
|
|
26803
|
-
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
26804
|
-
// and hitting left arrow to move the cursor in a text input etc.
|
|
26805
|
-
// Only special HTML elements have these default behaviors.
|
|
26806
|
-
|
|
26807
|
-
const handleClickAway = useEventCallback(event => {
|
|
26808
|
-
// Given developers can stop the propagation of the synthetic event,
|
|
26809
|
-
// we can only be confident with a positive value.
|
|
26810
|
-
const insideReactTree = syntheticEventRef.current;
|
|
26811
|
-
syntheticEventRef.current = false;
|
|
26812
|
-
const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
|
|
26813
|
-
// 2. The child might render null.
|
|
26814
|
-
// 3. Behave like a blur listener.
|
|
26815
|
-
|
|
26816
|
-
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
|
26817
|
-
return;
|
|
26818
|
-
} // Do not act if user performed touchmove
|
|
26819
|
-
|
|
26820
|
-
|
|
26821
|
-
if (movedRef.current) {
|
|
26822
|
-
movedRef.current = false;
|
|
26823
|
-
return;
|
|
26824
|
-
}
|
|
26825
|
-
|
|
26826
|
-
let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
|
26827
|
-
|
|
26828
|
-
if (event.composedPath) {
|
|
26829
|
-
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
|
26830
|
-
} else {
|
|
26831
|
-
insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
26832
|
-
event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
26833
|
-
event.target);
|
|
26834
|
-
}
|
|
26835
|
-
|
|
26836
|
-
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
26837
|
-
onClickAway(event);
|
|
26838
|
-
}
|
|
26839
|
-
}); // Keep track of mouse/touch events that bubbled up through the portal.
|
|
26840
|
-
|
|
26841
|
-
const createHandleSynthetic = handlerName => event => {
|
|
26842
|
-
syntheticEventRef.current = true;
|
|
26843
|
-
const childrenPropsHandler = children.props[handlerName];
|
|
26844
|
-
|
|
26845
|
-
if (childrenPropsHandler) {
|
|
26846
|
-
childrenPropsHandler(event);
|
|
26847
|
-
}
|
|
26848
|
-
};
|
|
26849
|
-
|
|
26850
|
-
const childrenProps = {
|
|
26851
|
-
ref: handleRef
|
|
26852
|
-
};
|
|
26853
|
-
|
|
26854
|
-
if (touchEvent !== false) {
|
|
26855
|
-
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
26856
|
-
}
|
|
26857
|
-
|
|
26858
|
-
React__namespace.useEffect(() => {
|
|
26859
|
-
if (touchEvent !== false) {
|
|
26860
|
-
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
26861
|
-
const doc = ownerDocument(nodeRef.current);
|
|
26862
|
-
|
|
26863
|
-
const handleTouchMove = () => {
|
|
26864
|
-
movedRef.current = true;
|
|
26865
|
-
};
|
|
26866
|
-
|
|
26867
|
-
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
26868
|
-
doc.addEventListener('touchmove', handleTouchMove);
|
|
26869
|
-
return () => {
|
|
26870
|
-
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
26871
|
-
doc.removeEventListener('touchmove', handleTouchMove);
|
|
26872
|
-
};
|
|
26873
|
-
}
|
|
26874
|
-
|
|
26875
|
-
return undefined;
|
|
26876
|
-
}, [handleClickAway, touchEvent]);
|
|
26877
|
-
|
|
26878
|
-
if (mouseEvent !== false) {
|
|
26879
|
-
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
26880
|
-
}
|
|
26881
|
-
|
|
26882
|
-
React__namespace.useEffect(() => {
|
|
26883
|
-
if (mouseEvent !== false) {
|
|
26884
|
-
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
26885
|
-
const doc = ownerDocument(nodeRef.current);
|
|
26886
|
-
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
26887
|
-
return () => {
|
|
26888
|
-
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
26889
|
-
};
|
|
26890
|
-
}
|
|
26891
|
-
|
|
26892
|
-
return undefined;
|
|
26893
|
-
}, [handleClickAway, mouseEvent]);
|
|
26894
|
-
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
26895
|
-
children: /*#__PURE__*/React__namespace.cloneElement(children, childrenProps)
|
|
26896
|
-
});
|
|
26897
|
-
}
|
|
26898
|
-
|
|
26899
|
-
ClickAwayListener.propTypes
|
|
26900
|
-
/* remove-proptypes */
|
|
26901
|
-
= {
|
|
26902
|
-
// ----------------------------- Warning --------------------------------
|
|
26903
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
26904
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26905
|
-
// ----------------------------------------------------------------------
|
|
26906
|
-
|
|
26907
|
-
/**
|
|
26908
|
-
* The wrapped element.
|
|
26909
|
-
*/
|
|
26910
|
-
children: elementAcceptingRef$1.isRequired,
|
|
26911
|
-
|
|
26912
|
-
/**
|
|
26913
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
26914
|
-
* This prop changes how portaled elements are handled.
|
|
26915
|
-
* @default false
|
|
26916
|
-
*/
|
|
26917
|
-
disableReactTree: propTypes.bool,
|
|
26918
|
-
|
|
26919
|
-
/**
|
|
26920
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
26921
|
-
* @default 'onClick'
|
|
26922
|
-
*/
|
|
26923
|
-
mouseEvent: propTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
|
|
26924
|
-
|
|
26925
|
-
/**
|
|
26926
|
-
* Callback fired when a "click away" event is detected.
|
|
26927
|
-
*/
|
|
26928
|
-
onClickAway: propTypes.func.isRequired,
|
|
26929
|
-
|
|
26930
|
-
/**
|
|
26931
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
26932
|
-
* @default 'onTouchEnd'
|
|
26933
|
-
*/
|
|
26934
|
-
touchEvent: propTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
|
26935
|
-
} ;
|
|
26936
|
-
|
|
26937
|
-
{
|
|
26938
|
-
// eslint-disable-next-line
|
|
26939
|
-
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
26940
|
-
}
|
|
26941
|
-
|
|
26942
26960
|
function getContainerUtilityClass(slot) {
|
|
26943
26961
|
return generateUtilityClass('MuiContainer', slot);
|
|
26944
26962
|
}
|
|
@@ -27097,7 +27115,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27097
27115
|
/**
|
|
27098
27116
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27099
27117
|
*/
|
|
27100
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
27118
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
27101
27119
|
} ;
|
|
27102
27120
|
var Container$1 = Container;
|
|
27103
27121
|
|
|
@@ -27208,7 +27226,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27208
27226
|
children: propTypes.node,
|
|
27209
27227
|
|
|
27210
27228
|
/**
|
|
27211
|
-
* Enable `color-scheme`
|
|
27229
|
+
* Enable `color-scheme` CSS property to use `theme.palette.mode`.
|
|
27212
27230
|
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
27213
27231
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
27214
27232
|
* @default false
|
|
@@ -27513,7 +27531,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27513
27531
|
/**
|
|
27514
27532
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27515
27533
|
*/
|
|
27516
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
27534
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
27517
27535
|
} ;
|
|
27518
27536
|
var Modal$1 = Modal;
|
|
27519
27537
|
|
|
@@ -27902,7 +27920,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27902
27920
|
/**
|
|
27903
27921
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27904
27922
|
*/
|
|
27905
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
27923
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
27906
27924
|
|
|
27907
27925
|
/**
|
|
27908
27926
|
* The component used for the transition.
|
|
@@ -27924,7 +27942,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27924
27942
|
|
|
27925
27943
|
/**
|
|
27926
27944
|
* Props applied to the transition element.
|
|
27927
|
-
* By default, the element is based on this [`Transition`](
|
|
27945
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
27928
27946
|
*/
|
|
27929
27947
|
TransitionProps: propTypes.object
|
|
27930
27948
|
} ;
|
|
@@ -28026,7 +28044,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28026
28044
|
/**
|
|
28027
28045
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28028
28046
|
*/
|
|
28029
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28047
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28030
28048
|
} ;
|
|
28031
28049
|
var DialogActions$1 = DialogActions;
|
|
28032
28050
|
|
|
@@ -28137,7 +28155,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28137
28155
|
/**
|
|
28138
28156
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28139
28157
|
*/
|
|
28140
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28158
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28141
28159
|
} ;
|
|
28142
28160
|
var DialogContent$1 = DialogContent;
|
|
28143
28161
|
|
|
@@ -28206,7 +28224,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28206
28224
|
/**
|
|
28207
28225
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28208
28226
|
*/
|
|
28209
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28227
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28210
28228
|
} ;
|
|
28211
28229
|
var DialogContentText$1 = DialogContentText;
|
|
28212
28230
|
|
|
@@ -28287,7 +28305,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28287
28305
|
/**
|
|
28288
28306
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28289
28307
|
*/
|
|
28290
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
28308
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
28291
28309
|
} ;
|
|
28292
28310
|
var DialogTitle$1 = DialogTitle;
|
|
28293
28311
|
|
|
@@ -28535,7 +28553,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
28535
28553
|
/**
|
|
28536
28554
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28537
28555
|
*/
|
|
28538
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
28556
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
28539
28557
|
|
|
28540
28558
|
/**
|
|
28541
28559
|
* The text alignment.
|
|
@@ -29214,7 +29232,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29214
29232
|
/**
|
|
29215
29233
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
29216
29234
|
*/
|
|
29217
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
29235
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
29218
29236
|
|
|
29219
29237
|
/**
|
|
29220
29238
|
* The duration for the transition, in milliseconds.
|
|
@@ -29469,7 +29487,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29469
29487
|
/**
|
|
29470
29488
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
29471
29489
|
*/
|
|
29472
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
29490
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
29473
29491
|
|
|
29474
29492
|
/**
|
|
29475
29493
|
* The variant to use.
|
|
@@ -29528,7 +29546,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29528
29546
|
return obj.startAdornment;
|
|
29529
29547
|
}
|
|
29530
29548
|
|
|
29531
|
-
const _excluded$1k = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
|
|
29549
|
+
const _excluded$1k = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
|
|
29532
29550
|
const rootOverridesResolver = (props, styles) => {
|
|
29533
29551
|
const {
|
|
29534
29552
|
ownerState
|
|
@@ -29729,6 +29747,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29729
29747
|
componentsProps = {},
|
|
29730
29748
|
defaultValue,
|
|
29731
29749
|
disabled,
|
|
29750
|
+
disableInjectingGlobalStyles,
|
|
29732
29751
|
endAdornment,
|
|
29733
29752
|
fullWidth = false,
|
|
29734
29753
|
id,
|
|
@@ -29959,7 +29978,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
29959
29978
|
const Input = components.Input || InputBaseComponent;
|
|
29960
29979
|
inputProps = _extends({}, inputProps, componentsProps.input);
|
|
29961
29980
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
29962
|
-
children: [inputGlobalStyles, /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
|
|
29981
|
+
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
|
|
29963
29982
|
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
|
29964
29983
|
}, {
|
|
29965
29984
|
ref: ref,
|
|
@@ -30073,6 +30092,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30073
30092
|
*/
|
|
30074
30093
|
disabled: propTypes.bool,
|
|
30075
30094
|
|
|
30095
|
+
/**
|
|
30096
|
+
* If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
|
|
30097
|
+
* This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
|
|
30098
|
+
* @default false
|
|
30099
|
+
*/
|
|
30100
|
+
disableInjectingGlobalStyles: propTypes.bool,
|
|
30101
|
+
|
|
30076
30102
|
/**
|
|
30077
30103
|
* End `InputAdornment` for this component.
|
|
30078
30104
|
*/
|
|
@@ -30218,7 +30244,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30218
30244
|
/**
|
|
30219
30245
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30220
30246
|
*/
|
|
30221
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30247
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30222
30248
|
|
|
30223
30249
|
/**
|
|
30224
30250
|
* 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).
|
|
@@ -30612,7 +30638,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30612
30638
|
/**
|
|
30613
30639
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30614
30640
|
*/
|
|
30615
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30641
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30616
30642
|
|
|
30617
30643
|
/**
|
|
30618
30644
|
* 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).
|
|
@@ -30936,7 +30962,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30936
30962
|
/**
|
|
30937
30963
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30938
30964
|
*/
|
|
30939
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
30965
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
30940
30966
|
|
|
30941
30967
|
/**
|
|
30942
30968
|
* The variant to use.
|
|
@@ -31150,7 +31176,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31150
31176
|
/**
|
|
31151
31177
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31152
31178
|
*/
|
|
31153
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
31179
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
31154
31180
|
|
|
31155
31181
|
/**
|
|
31156
31182
|
* The value of the component.
|
|
@@ -31257,7 +31283,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31257
31283
|
/**
|
|
31258
31284
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31259
31285
|
*/
|
|
31260
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
31286
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
31261
31287
|
} ;
|
|
31262
31288
|
var FormGroup$1 = FormGroup;
|
|
31263
31289
|
|
|
@@ -31434,7 +31460,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31434
31460
|
/**
|
|
31435
31461
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31436
31462
|
*/
|
|
31437
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
31463
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
31438
31464
|
|
|
31439
31465
|
/**
|
|
31440
31466
|
* The variant to use.
|
|
@@ -31615,7 +31641,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31615
31641
|
/**
|
|
31616
31642
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31617
31643
|
*/
|
|
31618
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
31644
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
31619
31645
|
} ;
|
|
31620
31646
|
var FormLabel$1 = FormLabel;
|
|
31621
31647
|
|
|
@@ -31652,69 +31678,84 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31652
31678
|
return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
|
|
31653
31679
|
}
|
|
31654
31680
|
|
|
31655
|
-
function generateGrid(
|
|
31656
|
-
|
|
31681
|
+
function generateGrid({
|
|
31682
|
+
theme,
|
|
31683
|
+
ownerState
|
|
31684
|
+
}) {
|
|
31685
|
+
let size;
|
|
31686
|
+
return theme.breakpoints.keys.reduce((globalStyles, breakpoint) => {
|
|
31687
|
+
// Use side effect over immutability for better performance.
|
|
31688
|
+
let styles = {};
|
|
31657
31689
|
|
|
31658
|
-
|
|
31659
|
-
|
|
31660
|
-
|
|
31690
|
+
if (ownerState[breakpoint]) {
|
|
31691
|
+
size = ownerState[breakpoint];
|
|
31692
|
+
}
|
|
31661
31693
|
|
|
31662
|
-
|
|
31694
|
+
if (!size) {
|
|
31695
|
+
return globalStyles;
|
|
31696
|
+
}
|
|
31663
31697
|
|
|
31664
|
-
|
|
31665
|
-
|
|
31666
|
-
|
|
31667
|
-
|
|
31668
|
-
|
|
31669
|
-
|
|
31670
|
-
|
|
31671
|
-
|
|
31672
|
-
|
|
31673
|
-
|
|
31674
|
-
|
|
31675
|
-
|
|
31676
|
-
|
|
31677
|
-
|
|
31678
|
-
|
|
31679
|
-
|
|
31680
|
-
|
|
31681
|
-
|
|
31682
|
-
|
|
31683
|
-
|
|
31684
|
-
|
|
31698
|
+
if (size === true) {
|
|
31699
|
+
// For the auto layouting
|
|
31700
|
+
styles = {
|
|
31701
|
+
flexBasis: 0,
|
|
31702
|
+
flexGrow: 1,
|
|
31703
|
+
maxWidth: '100%'
|
|
31704
|
+
};
|
|
31705
|
+
} else if (size === 'auto') {
|
|
31706
|
+
styles = {
|
|
31707
|
+
flexBasis: 'auto',
|
|
31708
|
+
flexGrow: 0,
|
|
31709
|
+
flexShrink: 0,
|
|
31710
|
+
maxWidth: 'none',
|
|
31711
|
+
width: 'auto'
|
|
31712
|
+
};
|
|
31713
|
+
} else {
|
|
31714
|
+
const columnsBreakpointValues = resolveBreakpointValues({
|
|
31715
|
+
values: ownerState.columns,
|
|
31716
|
+
breakpoints: theme.breakpoints.values
|
|
31717
|
+
});
|
|
31718
|
+
const columnValue = typeof columnsBreakpointValues === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues;
|
|
31685
31719
|
|
|
31686
|
-
|
|
31687
|
-
|
|
31720
|
+
if (columnValue === undefined || columnValue === null) {
|
|
31721
|
+
return globalStyles;
|
|
31722
|
+
} // Keep 7 significant numbers.
|
|
31688
31723
|
|
|
31689
|
-
if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
|
|
31690
|
-
const themeSpacing = theme.spacing(ownerState.columnSpacing);
|
|
31691
31724
|
|
|
31692
|
-
|
|
31693
|
-
|
|
31694
|
-
more = {
|
|
31695
|
-
flexBasis: fullWidth,
|
|
31696
|
-
maxWidth: fullWidth
|
|
31697
|
-
};
|
|
31698
|
-
}
|
|
31699
|
-
} // Close to the bootstrap implementation:
|
|
31700
|
-
// https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
|
|
31725
|
+
const width = `${Math.round(size / columnValue * 10e7) / 10e5}%`;
|
|
31726
|
+
let more = {};
|
|
31701
31727
|
|
|
31728
|
+
if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
|
|
31729
|
+
const themeSpacing = theme.spacing(ownerState.columnSpacing);
|
|
31702
31730
|
|
|
31703
|
-
|
|
31704
|
-
|
|
31705
|
-
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31731
|
+
if (themeSpacing !== '0px') {
|
|
31732
|
+
const fullWidth = `calc(${width} + ${getOffset(themeSpacing)})`;
|
|
31733
|
+
more = {
|
|
31734
|
+
flexBasis: fullWidth,
|
|
31735
|
+
maxWidth: fullWidth
|
|
31736
|
+
};
|
|
31737
|
+
}
|
|
31738
|
+
} // Close to the bootstrap implementation:
|
|
31739
|
+
// https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
|
|
31709
31740
|
|
|
31710
31741
|
|
|
31711
|
-
|
|
31712
|
-
|
|
31713
|
-
|
|
31714
|
-
|
|
31715
|
-
|
|
31716
|
-
|
|
31742
|
+
styles = _extends({
|
|
31743
|
+
flexBasis: width,
|
|
31744
|
+
flexGrow: 0,
|
|
31745
|
+
maxWidth: width
|
|
31746
|
+
}, more);
|
|
31747
|
+
} // No need for a media query for the first size.
|
|
31748
|
+
|
|
31717
31749
|
|
|
31750
|
+
if (theme.breakpoints.values[breakpoint] === 0) {
|
|
31751
|
+
Object.assign(globalStyles, styles);
|
|
31752
|
+
} else {
|
|
31753
|
+
globalStyles[theme.breakpoints.up(breakpoint)] = styles;
|
|
31754
|
+
}
|
|
31755
|
+
|
|
31756
|
+
return globalStyles;
|
|
31757
|
+
}, {});
|
|
31758
|
+
}
|
|
31718
31759
|
function generateDirection({
|
|
31719
31760
|
theme,
|
|
31720
31761
|
ownerState
|
|
@@ -31809,6 +31850,27 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31809
31850
|
}
|
|
31810
31851
|
|
|
31811
31852
|
return styles;
|
|
31853
|
+
}
|
|
31854
|
+
function resolveSpacingClasses(spacing, container, styles = {}) {
|
|
31855
|
+
// in case of grid item or undefined/null or `spacing` <= 0
|
|
31856
|
+
if (!container || !spacing || spacing <= 0) {
|
|
31857
|
+
return [];
|
|
31858
|
+
} // in case of string/number `spacing`
|
|
31859
|
+
|
|
31860
|
+
|
|
31861
|
+
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31862
|
+
return [styles[`spacing-xs-${String(spacing)}`] || `spacing-xs-${String(spacing)}`];
|
|
31863
|
+
} // in case of object `spacing`
|
|
31864
|
+
|
|
31865
|
+
|
|
31866
|
+
const {
|
|
31867
|
+
xs,
|
|
31868
|
+
sm,
|
|
31869
|
+
md,
|
|
31870
|
+
lg,
|
|
31871
|
+
xl
|
|
31872
|
+
} = spacing;
|
|
31873
|
+
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)}`)];
|
|
31812
31874
|
} // Default CSS values
|
|
31813
31875
|
// flex: '0 1 auto',
|
|
31814
31876
|
// flexDirection: 'row',
|
|
@@ -31833,7 +31895,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31833
31895
|
xs,
|
|
31834
31896
|
zeroMinWidth
|
|
31835
31897
|
} = props.ownerState;
|
|
31836
|
-
return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth,
|
|
31898
|
+
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)}`]];
|
|
31837
31899
|
}
|
|
31838
31900
|
})(({
|
|
31839
31901
|
ownerState
|
|
@@ -31852,14 +31914,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31852
31914
|
flexWrap: 'nowrap'
|
|
31853
31915
|
}, ownerState.wrap === 'reverse' && {
|
|
31854
31916
|
flexWrap: 'wrap-reverse'
|
|
31855
|
-
}), generateDirection, generateRowGap, generateColumnGap,
|
|
31856
|
-
theme,
|
|
31857
|
-
ownerState
|
|
31858
|
-
}) => theme.breakpoints.keys.reduce((globalStyles, breakpoint) => {
|
|
31859
|
-
// Use side effect over immutability for better performance.
|
|
31860
|
-
generateGrid(globalStyles, theme, breakpoint, ownerState);
|
|
31861
|
-
return globalStyles;
|
|
31862
|
-
}, {}));
|
|
31917
|
+
}), generateDirection, generateRowGap, generateColumnGap, generateGrid);
|
|
31863
31918
|
|
|
31864
31919
|
const useUtilityClasses$_ = ownerState => {
|
|
31865
31920
|
const {
|
|
@@ -31877,7 +31932,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31877
31932
|
zeroMinWidth
|
|
31878
31933
|
} = ownerState;
|
|
31879
31934
|
const slots = {
|
|
31880
|
-
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth',
|
|
31935
|
+
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)}`]
|
|
31881
31936
|
};
|
|
31882
31937
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
31883
31938
|
};
|
|
@@ -32057,7 +32112,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
32057
32112
|
/**
|
|
32058
32113
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
32059
32114
|
*/
|
|
32060
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
32115
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
32061
32116
|
|
|
32062
32117
|
/**
|
|
32063
32118
|
* Defines the `flex-wrap` style property.
|
|
@@ -33218,7 +33273,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33218
33273
|
/**
|
|
33219
33274
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33220
33275
|
*/
|
|
33221
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
33276
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
33222
33277
|
} ;
|
|
33223
33278
|
Icon.muiName = 'Icon';
|
|
33224
33279
|
var Icon$1 = Icon;
|
|
@@ -33395,7 +33450,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33395
33450
|
/**
|
|
33396
33451
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33397
33452
|
*/
|
|
33398
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
33453
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
33399
33454
|
|
|
33400
33455
|
/**
|
|
33401
33456
|
* The variant to use.
|
|
@@ -33583,7 +33638,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33583
33638
|
/**
|
|
33584
33639
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33585
33640
|
*/
|
|
33586
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
33641
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
33587
33642
|
} ;
|
|
33588
33643
|
var ImageListItem$1 = ImageListItem;
|
|
33589
33644
|
|
|
@@ -33809,7 +33864,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
33809
33864
|
/**
|
|
33810
33865
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33811
33866
|
*/
|
|
33812
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
33867
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
33813
33868
|
|
|
33814
33869
|
/**
|
|
33815
33870
|
* Title to be displayed.
|
|
@@ -34124,7 +34179,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34124
34179
|
/**
|
|
34125
34180
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34126
34181
|
*/
|
|
34127
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34182
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34128
34183
|
|
|
34129
34184
|
/**
|
|
34130
34185
|
* 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).
|
|
@@ -34319,7 +34374,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34319
34374
|
/**
|
|
34320
34375
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34321
34376
|
*/
|
|
34322
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34377
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34323
34378
|
|
|
34324
34379
|
/**
|
|
34325
34380
|
* The variant to use.
|
|
@@ -34532,7 +34587,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34532
34587
|
/**
|
|
34533
34588
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34534
34589
|
*/
|
|
34535
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34590
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34536
34591
|
|
|
34537
34592
|
/**
|
|
34538
34593
|
* The variant to use.
|
|
@@ -34881,7 +34936,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34881
34936
|
/**
|
|
34882
34937
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
34883
34938
|
*/
|
|
34884
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
34939
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
34885
34940
|
|
|
34886
34941
|
/**
|
|
34887
34942
|
* The value of the progress indicator for the determinate and buffer variants.
|
|
@@ -35114,7 +35169,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35114
35169
|
/**
|
|
35115
35170
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35116
35171
|
*/
|
|
35117
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
35172
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
35118
35173
|
|
|
35119
35174
|
/**
|
|
35120
35175
|
* `classes` prop applied to the [`Typography`](/api/typography/) element.
|
|
@@ -35282,7 +35337,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35282
35337
|
/**
|
|
35283
35338
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35284
35339
|
*/
|
|
35285
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35340
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35286
35341
|
} ;
|
|
35287
35342
|
var List$1 = List;
|
|
35288
35343
|
|
|
@@ -35510,7 +35565,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35510
35565
|
* This prop can help identify which element has keyboard focus.
|
|
35511
35566
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
35512
35567
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
35513
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
35568
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
35514
35569
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
35515
35570
|
* if needed.
|
|
35516
35571
|
*/
|
|
@@ -35525,7 +35580,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35525
35580
|
/**
|
|
35526
35581
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35527
35582
|
*/
|
|
35528
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35583
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35529
35584
|
} ;
|
|
35530
35585
|
var ListItemButton$1 = ListItemButton;
|
|
35531
35586
|
|
|
@@ -35621,7 +35676,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
35621
35676
|
/**
|
|
35622
35677
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35623
35678
|
*/
|
|
35624
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
35679
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
35625
35680
|
} ;
|
|
35626
35681
|
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
|
35627
35682
|
var ListItemSecondaryAction$1 = ListItemSecondaryAction;
|
|
@@ -36022,7 +36077,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36022
36077
|
/**
|
|
36023
36078
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36024
36079
|
*/
|
|
36025
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36080
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36026
36081
|
} ;
|
|
36027
36082
|
var ListItem$1 = ListItem;
|
|
36028
36083
|
|
|
@@ -36116,7 +36171,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36116
36171
|
/**
|
|
36117
36172
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36118
36173
|
*/
|
|
36119
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36174
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36120
36175
|
} ;
|
|
36121
36176
|
var ListItemAvatar$1 = ListItemAvatar;
|
|
36122
36177
|
|
|
@@ -36214,7 +36269,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36214
36269
|
/**
|
|
36215
36270
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36216
36271
|
*/
|
|
36217
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36272
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36218
36273
|
} ;
|
|
36219
36274
|
var ListItemIcon$1 = ListItemIcon;
|
|
36220
36275
|
|
|
@@ -36396,7 +36451,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36396
36451
|
/**
|
|
36397
36452
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36398
36453
|
*/
|
|
36399
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
36454
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
36400
36455
|
} ;
|
|
36401
36456
|
var ListItemText$1 = ListItemText;
|
|
36402
36457
|
|
|
@@ -37150,7 +37205,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37150
37205
|
/**
|
|
37151
37206
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37152
37207
|
*/
|
|
37153
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37208
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37154
37209
|
|
|
37155
37210
|
/**
|
|
37156
37211
|
* This is the point on the popover which
|
|
@@ -37188,7 +37243,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37188
37243
|
|
|
37189
37244
|
/**
|
|
37190
37245
|
* Props applied to the transition element.
|
|
37191
|
-
* By default, the element is based on this [`Transition`](
|
|
37246
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
37192
37247
|
* @default {}
|
|
37193
37248
|
*/
|
|
37194
37249
|
TransitionProps: propTypes.object
|
|
@@ -37453,7 +37508,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37453
37508
|
/**
|
|
37454
37509
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37455
37510
|
*/
|
|
37456
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37511
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37457
37512
|
|
|
37458
37513
|
/**
|
|
37459
37514
|
* The length of the transition in `ms`, or 'auto'
|
|
@@ -37467,7 +37522,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37467
37522
|
|
|
37468
37523
|
/**
|
|
37469
37524
|
* Props applied to the transition element.
|
|
37470
|
-
* By default, the element is based on this [`Transition`](
|
|
37525
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
37471
37526
|
* @default {}
|
|
37472
37527
|
*/
|
|
37473
37528
|
TransitionProps: propTypes.object,
|
|
@@ -37715,7 +37770,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37715
37770
|
* This prop can help identify which element has keyboard focus.
|
|
37716
37771
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
37717
37772
|
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
37718
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/
|
|
37773
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
37719
37774
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
37720
37775
|
* if needed.
|
|
37721
37776
|
*/
|
|
@@ -37736,7 +37791,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37736
37791
|
/**
|
|
37737
37792
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37738
37793
|
*/
|
|
37739
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
37794
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37740
37795
|
|
|
37741
37796
|
/**
|
|
37742
37797
|
* @default 0
|
|
@@ -37949,7 +38004,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
37949
38004
|
/**
|
|
37950
38005
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37951
38006
|
*/
|
|
37952
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
38007
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
37953
38008
|
|
|
37954
38009
|
/**
|
|
37955
38010
|
* The variant to use.
|
|
@@ -38297,7 +38352,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38297
38352
|
/**
|
|
38298
38353
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38299
38354
|
*/
|
|
38300
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
38355
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
38301
38356
|
|
|
38302
38357
|
/**
|
|
38303
38358
|
* The `input` value. The DOM API casts this to a string.
|
|
@@ -38536,6 +38591,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38536
38591
|
paddingRight: 0
|
|
38537
38592
|
}));
|
|
38538
38593
|
const OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
|
|
38594
|
+
var _React$Fragment;
|
|
38595
|
+
|
|
38539
38596
|
const props = useThemeProps({
|
|
38540
38597
|
props: inProps,
|
|
38541
38598
|
name: 'MuiOutlinedInput'
|
|
@@ -38553,6 +38610,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38553
38610
|
other = _objectWithoutPropertiesLoose(props, _excluded$M);
|
|
38554
38611
|
|
|
38555
38612
|
const classes = useUtilityClasses$C(props);
|
|
38613
|
+
const muiFormControl = useFormControl();
|
|
38614
|
+
const fcs = formControlState({
|
|
38615
|
+
props,
|
|
38616
|
+
muiFormControl,
|
|
38617
|
+
states: ['required']
|
|
38618
|
+
});
|
|
38556
38619
|
return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
|
|
38557
38620
|
components: _extends({
|
|
38558
38621
|
Root: OutlinedInputRoot,
|
|
@@ -38560,7 +38623,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38560
38623
|
}, components),
|
|
38561
38624
|
renderSuffix: state => /*#__PURE__*/jsxRuntime_1(NotchedOutlineRoot, {
|
|
38562
38625
|
className: classes.notchedOutline,
|
|
38563
|
-
label: label,
|
|
38626
|
+
label: label && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
38627
|
+
children: [label, "\xA0", '*']
|
|
38628
|
+
})) : label,
|
|
38564
38629
|
notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)
|
|
38565
38630
|
}),
|
|
38566
38631
|
fullWidth: fullWidth,
|
|
@@ -38745,7 +38810,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38745
38810
|
/**
|
|
38746
38811
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38747
38812
|
*/
|
|
38748
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
38813
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
38749
38814
|
|
|
38750
38815
|
/**
|
|
38751
38816
|
* 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).
|
|
@@ -39242,7 +39307,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39242
39307
|
/**
|
|
39243
39308
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39244
39309
|
*/
|
|
39245
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39310
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39246
39311
|
|
|
39247
39312
|
/**
|
|
39248
39313
|
* The type of pagination item.
|
|
@@ -39508,7 +39573,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39508
39573
|
/**
|
|
39509
39574
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39510
39575
|
*/
|
|
39511
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39576
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39512
39577
|
|
|
39513
39578
|
/**
|
|
39514
39579
|
* The variant to use.
|
|
@@ -39838,7 +39903,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39838
39903
|
/**
|
|
39839
39904
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39840
39905
|
*/
|
|
39841
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
39906
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
39842
39907
|
|
|
39843
39908
|
/**
|
|
39844
39909
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -40655,7 +40720,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40655
40720
|
/**
|
|
40656
40721
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
40657
40722
|
*/
|
|
40658
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
40723
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
40659
40724
|
|
|
40660
40725
|
/**
|
|
40661
40726
|
* The rating value.
|
|
@@ -40753,7 +40818,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40753
40818
|
component: propTypes.elementType,
|
|
40754
40819
|
|
|
40755
40820
|
/**
|
|
40756
|
-
* Enable `color-scheme`
|
|
40821
|
+
* Enable `color-scheme` CSS property to use `theme.palette.mode`.
|
|
40757
40822
|
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
40758
40823
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
40759
40824
|
*/
|
|
@@ -41154,7 +41219,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41154
41219
|
|
|
41155
41220
|
if (computeDisplay) {
|
|
41156
41221
|
if (multiple) {
|
|
41157
|
-
|
|
41222
|
+
if (displayMultiple.length === 0) {
|
|
41223
|
+
display = null;
|
|
41224
|
+
} else {
|
|
41225
|
+
display = displayMultiple.reduce((output, child, index) => {
|
|
41226
|
+
output.push(child);
|
|
41227
|
+
|
|
41228
|
+
if (index < displayMultiple.length - 1) {
|
|
41229
|
+
output.push(', ');
|
|
41230
|
+
}
|
|
41231
|
+
|
|
41232
|
+
return output;
|
|
41233
|
+
}, []);
|
|
41234
|
+
}
|
|
41158
41235
|
} else {
|
|
41159
41236
|
display = displaySingle;
|
|
41160
41237
|
}
|
|
@@ -41671,7 +41748,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41671
41748
|
/**
|
|
41672
41749
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41673
41750
|
*/
|
|
41674
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
41751
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
41675
41752
|
|
|
41676
41753
|
/**
|
|
41677
41754
|
* The `input` value. Providing an empty string will select no options.
|
|
@@ -41901,7 +41978,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41901
41978
|
/**
|
|
41902
41979
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41903
41980
|
*/
|
|
41904
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
41981
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
41905
41982
|
|
|
41906
41983
|
/**
|
|
41907
41984
|
* The type of content that will be rendered.
|
|
@@ -42540,7 +42617,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42540
42617
|
/**
|
|
42541
42618
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42542
42619
|
*/
|
|
42543
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
42620
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
42544
42621
|
|
|
42545
42622
|
/**
|
|
42546
42623
|
* Tab index attribute of the hidden `input` element.
|
|
@@ -42722,7 +42799,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42722
42799
|
/**
|
|
42723
42800
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42724
42801
|
*/
|
|
42725
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
42802
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
42726
42803
|
} ;
|
|
42727
42804
|
var SnackbarContent$1 = SnackbarContent;
|
|
42728
42805
|
|
|
@@ -42733,7 +42810,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42733
42810
|
var snackbarClasses$1 = snackbarClasses;
|
|
42734
42811
|
|
|
42735
42812
|
const _excluded$z = ["onEnter", "onExited"],
|
|
42736
|
-
_excluded2$2 = ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onClose", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
42813
|
+
_excluded2$2 = ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
42737
42814
|
|
|
42738
42815
|
const useUtilityClasses$s = ownerState => {
|
|
42739
42816
|
const {
|
|
@@ -42827,7 +42904,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42827
42904
|
ContentProps,
|
|
42828
42905
|
disableWindowBlurListener = false,
|
|
42829
42906
|
message,
|
|
42907
|
+
onBlur,
|
|
42830
42908
|
onClose,
|
|
42909
|
+
onFocus,
|
|
42831
42910
|
onMouseEnter,
|
|
42832
42911
|
onMouseLeave,
|
|
42833
42912
|
open,
|
|
@@ -42897,6 +42976,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42897
42976
|
}
|
|
42898
42977
|
}, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);
|
|
42899
42978
|
|
|
42979
|
+
const handleFocus = event => {
|
|
42980
|
+
if (onFocus) {
|
|
42981
|
+
onFocus(event);
|
|
42982
|
+
}
|
|
42983
|
+
|
|
42984
|
+
handlePause();
|
|
42985
|
+
};
|
|
42986
|
+
|
|
42900
42987
|
const handleMouseEnter = event => {
|
|
42901
42988
|
if (onMouseEnter) {
|
|
42902
42989
|
onMouseEnter(event);
|
|
@@ -42905,6 +42992,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42905
42992
|
handlePause();
|
|
42906
42993
|
};
|
|
42907
42994
|
|
|
42995
|
+
const handleBlur = event => {
|
|
42996
|
+
if (onBlur) {
|
|
42997
|
+
onBlur(event);
|
|
42998
|
+
}
|
|
42999
|
+
|
|
43000
|
+
handleResume();
|
|
43001
|
+
};
|
|
43002
|
+
|
|
42908
43003
|
const handleMouseLeave = event => {
|
|
42909
43004
|
if (onMouseLeave) {
|
|
42910
43005
|
onMouseLeave(event);
|
|
@@ -42947,7 +43042,33 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42947
43042
|
}
|
|
42948
43043
|
|
|
42949
43044
|
return undefined;
|
|
42950
|
-
}, [disableWindowBlurListener, handleResume, open]);
|
|
43045
|
+
}, [disableWindowBlurListener, handleResume, open]);
|
|
43046
|
+
React__namespace.useEffect(() => {
|
|
43047
|
+
if (!open) {
|
|
43048
|
+
return undefined;
|
|
43049
|
+
}
|
|
43050
|
+
/**
|
|
43051
|
+
* @param {KeyboardEvent} nativeEvent
|
|
43052
|
+
*/
|
|
43053
|
+
|
|
43054
|
+
|
|
43055
|
+
function handleKeyDown(nativeEvent) {
|
|
43056
|
+
if (!nativeEvent.defaultPrevented) {
|
|
43057
|
+
// IE11, Edge (prior to using Bink?) use 'Esc'
|
|
43058
|
+
if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {
|
|
43059
|
+
// not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar
|
|
43060
|
+
if (onClose) {
|
|
43061
|
+
onClose(nativeEvent, 'escapeKeyDown');
|
|
43062
|
+
}
|
|
43063
|
+
}
|
|
43064
|
+
}
|
|
43065
|
+
}
|
|
43066
|
+
|
|
43067
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
43068
|
+
return () => {
|
|
43069
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
43070
|
+
};
|
|
43071
|
+
}, [exited, open, onClose]); // So we only render active snackbars.
|
|
42951
43072
|
|
|
42952
43073
|
if (!open && exited) {
|
|
42953
43074
|
return null;
|
|
@@ -42958,6 +43079,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42958
43079
|
}, ClickAwayListenerProps, {
|
|
42959
43080
|
children: /*#__PURE__*/jsxRuntime_1(SnackbarRoot, _extends({
|
|
42960
43081
|
className: clsx(classes.root, className),
|
|
43082
|
+
onBlur: handleBlur,
|
|
43083
|
+
onFocus: handleFocus,
|
|
42961
43084
|
onMouseEnter: handleMouseEnter,
|
|
42962
43085
|
onMouseLeave: handleMouseLeave,
|
|
42963
43086
|
ownerState: ownerState,
|
|
@@ -43056,6 +43179,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43056
43179
|
*/
|
|
43057
43180
|
message: propTypes.node,
|
|
43058
43181
|
|
|
43182
|
+
/**
|
|
43183
|
+
* @ignore
|
|
43184
|
+
*/
|
|
43185
|
+
onBlur: propTypes.func,
|
|
43186
|
+
|
|
43059
43187
|
/**
|
|
43060
43188
|
* Callback fired when the component requests to be closed.
|
|
43061
43189
|
* Typically `onClose` is used to set state in the parent component,
|
|
@@ -43063,11 +43191,16 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43063
43191
|
* The `reason` parameter can optionally be used to control the response to `onClose`,
|
|
43064
43192
|
* for example ignoring `clickaway`.
|
|
43065
43193
|
*
|
|
43066
|
-
* @param {React.SyntheticEvent<any>} event The event source of the callback.
|
|
43067
|
-
* @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`.
|
|
43194
|
+
* @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
|
|
43195
|
+
* @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
|
|
43068
43196
|
*/
|
|
43069
43197
|
onClose: propTypes.func,
|
|
43070
43198
|
|
|
43199
|
+
/**
|
|
43200
|
+
* @ignore
|
|
43201
|
+
*/
|
|
43202
|
+
onFocus: propTypes.func,
|
|
43203
|
+
|
|
43071
43204
|
/**
|
|
43072
43205
|
* @ignore
|
|
43073
43206
|
*/
|
|
@@ -43094,7 +43227,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43094
43227
|
/**
|
|
43095
43228
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43096
43229
|
*/
|
|
43097
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
43230
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
43098
43231
|
|
|
43099
43232
|
/**
|
|
43100
43233
|
* The component used for the transition.
|
|
@@ -43119,7 +43252,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43119
43252
|
|
|
43120
43253
|
/**
|
|
43121
43254
|
* Props applied to the transition element.
|
|
43122
|
-
* By default, the element is based on this [`Transition`](
|
|
43255
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
43123
43256
|
* @default {}
|
|
43124
43257
|
*/
|
|
43125
43258
|
TransitionProps: propTypes.object
|
|
@@ -43860,7 +43993,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43860
43993
|
/**
|
|
43861
43994
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43862
43995
|
*/
|
|
43863
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
43996
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
43864
43997
|
|
|
43865
43998
|
/**
|
|
43866
43999
|
* The component used for the transition.
|
|
@@ -43885,7 +44018,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
43885
44018
|
|
|
43886
44019
|
/**
|
|
43887
44020
|
* Props applied to the transition element.
|
|
43888
|
-
* By default, the element is based on this [`Transition`](
|
|
44021
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
43889
44022
|
*/
|
|
43890
44023
|
TransitionProps: propTypes.object
|
|
43891
44024
|
} ;
|
|
@@ -44672,7 +44805,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44672
44805
|
/**
|
|
44673
44806
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
44674
44807
|
*/
|
|
44675
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
44808
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
44676
44809
|
|
|
44677
44810
|
/**
|
|
44678
44811
|
* Tooltip title. Zero-length titles string are never displayed.
|
|
@@ -44690,7 +44823,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44690
44823
|
|
|
44691
44824
|
/**
|
|
44692
44825
|
* Props applied to the transition element.
|
|
44693
|
-
* By default, the element is based on this [`Transition`](
|
|
44826
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
44694
44827
|
*/
|
|
44695
44828
|
TransitionProps: propTypes.object
|
|
44696
44829
|
} ;
|
|
@@ -44931,7 +45064,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44931
45064
|
/**
|
|
44932
45065
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
44933
45066
|
*/
|
|
44934
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
45067
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
44935
45068
|
|
|
44936
45069
|
/**
|
|
44937
45070
|
* `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
|
|
@@ -45101,7 +45234,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45101
45234
|
/**
|
|
45102
45235
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45103
45236
|
*/
|
|
45104
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45237
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45105
45238
|
} ;
|
|
45106
45239
|
SpeedDialIcon.muiName = 'SpeedDialIcon';
|
|
45107
45240
|
var SpeedDialIcon$1 = SpeedDialIcon;
|
|
@@ -45256,7 +45389,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45256
45389
|
/**
|
|
45257
45390
|
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
45258
45391
|
*/
|
|
45259
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45392
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45260
45393
|
} ;
|
|
45261
45394
|
var Stack$1 = Stack;
|
|
45262
45395
|
|
|
@@ -45454,7 +45587,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45454
45587
|
/**
|
|
45455
45588
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45456
45589
|
*/
|
|
45457
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45590
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45458
45591
|
} ;
|
|
45459
45592
|
var Step$1 = Step;
|
|
45460
45593
|
|
|
@@ -45633,7 +45766,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45633
45766
|
/**
|
|
45634
45767
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45635
45768
|
*/
|
|
45636
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
45769
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45637
45770
|
} ;
|
|
45638
45771
|
var StepIcon$1 = StepIcon;
|
|
45639
45772
|
|
|
@@ -45867,7 +46000,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45867
46000
|
/**
|
|
45868
46001
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45869
46002
|
*/
|
|
45870
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46003
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
45871
46004
|
} ;
|
|
45872
46005
|
StepLabel.muiName = 'StepLabel';
|
|
45873
46006
|
var StepLabel$1 = StepLabel;
|
|
@@ -46001,7 +46134,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46001
46134
|
/**
|
|
46002
46135
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46003
46136
|
*/
|
|
46004
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46137
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46005
46138
|
} ;
|
|
46006
46139
|
var StepButton$1 = StepButton;
|
|
46007
46140
|
|
|
@@ -46136,7 +46269,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46136
46269
|
/**
|
|
46137
46270
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46138
46271
|
*/
|
|
46139
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46272
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46140
46273
|
} ;
|
|
46141
46274
|
var StepConnector$1 = StepConnector;
|
|
46142
46275
|
|
|
@@ -46272,7 +46405,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46272
46405
|
/**
|
|
46273
46406
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46274
46407
|
*/
|
|
46275
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
46408
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
46276
46409
|
|
|
46277
46410
|
/**
|
|
46278
46411
|
* The component used for the transition.
|
|
@@ -46296,7 +46429,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46296
46429
|
|
|
46297
46430
|
/**
|
|
46298
46431
|
* Props applied to the transition element.
|
|
46299
|
-
* By default, the element is based on this [`Transition`](
|
|
46432
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
46300
46433
|
*/
|
|
46301
46434
|
TransitionProps: propTypes.object
|
|
46302
46435
|
} ;
|
|
@@ -46452,7 +46585,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
46452
46585
|
/**
|
|
46453
46586
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46454
46587
|
*/
|
|
46455
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
46588
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
46456
46589
|
} ;
|
|
46457
46590
|
var Stepper$1 = Stepper;
|
|
46458
46591
|
|
|
@@ -47463,7 +47596,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47463
47596
|
/**
|
|
47464
47597
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47465
47598
|
*/
|
|
47466
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
47599
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
47467
47600
|
|
|
47468
47601
|
/**
|
|
47469
47602
|
* The value of the component. The DOM API casts this to a string.
|
|
@@ -47738,7 +47871,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47738
47871
|
/**
|
|
47739
47872
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47740
47873
|
*/
|
|
47741
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
47874
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
47742
47875
|
|
|
47743
47876
|
/**
|
|
47744
47877
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
@@ -47905,7 +48038,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
47905
48038
|
/**
|
|
47906
48039
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47907
48040
|
*/
|
|
47908
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48041
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
47909
48042
|
} ;
|
|
47910
48043
|
var Table$1 = Table;
|
|
47911
48044
|
|
|
@@ -48010,7 +48143,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48010
48143
|
/**
|
|
48011
48144
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48012
48145
|
*/
|
|
48013
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48146
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48014
48147
|
} ;
|
|
48015
48148
|
var TableBody$1 = TableBody;
|
|
48016
48149
|
|
|
@@ -48230,7 +48363,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48230
48363
|
/**
|
|
48231
48364
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48232
48365
|
*/
|
|
48233
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
48366
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
48234
48367
|
|
|
48235
48368
|
/**
|
|
48236
48369
|
* Specify the cell type.
|
|
@@ -48322,7 +48455,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48322
48455
|
/**
|
|
48323
48456
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48324
48457
|
*/
|
|
48325
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48458
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48326
48459
|
} ;
|
|
48327
48460
|
var TableContainer$1 = TableContainer;
|
|
48328
48461
|
|
|
@@ -48415,7 +48548,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48415
48548
|
/**
|
|
48416
48549
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48417
48550
|
*/
|
|
48418
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48551
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48419
48552
|
} ;
|
|
48420
48553
|
var TableFooter$1 = TableFooter;
|
|
48421
48554
|
|
|
@@ -48508,7 +48641,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48508
48641
|
/**
|
|
48509
48642
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48510
48643
|
*/
|
|
48511
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
48644
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
48512
48645
|
} ;
|
|
48513
48646
|
var TableHead$1 = TableHead;
|
|
48514
48647
|
|
|
@@ -48628,7 +48761,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48628
48761
|
/**
|
|
48629
48762
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48630
48763
|
*/
|
|
48631
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
48764
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
48632
48765
|
|
|
48633
48766
|
/**
|
|
48634
48767
|
* The variant to use.
|
|
@@ -49178,7 +49311,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49178
49311
|
/**
|
|
49179
49312
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49180
49313
|
*/
|
|
49181
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49314
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49182
49315
|
} ;
|
|
49183
49316
|
var TablePagination$1 = TablePagination;
|
|
49184
49317
|
|
|
@@ -49314,7 +49447,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49314
49447
|
/**
|
|
49315
49448
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49316
49449
|
*/
|
|
49317
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49450
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49318
49451
|
} ;
|
|
49319
49452
|
var TableRow$1 = TableRow;
|
|
49320
49453
|
|
|
@@ -49495,7 +49628,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49495
49628
|
/**
|
|
49496
49629
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49497
49630
|
*/
|
|
49498
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49631
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49499
49632
|
} ;
|
|
49500
49633
|
var TableSortLabel$1 = TableSortLabel;
|
|
49501
49634
|
|
|
@@ -49728,7 +49861,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
49728
49861
|
/**
|
|
49729
49862
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49730
49863
|
*/
|
|
49731
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object])
|
|
49864
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object])
|
|
49732
49865
|
} ;
|
|
49733
49866
|
var TabScrollButton$1 = TabScrollButton;
|
|
49734
49867
|
|
|
@@ -50522,7 +50655,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50522
50655
|
/**
|
|
50523
50656
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50524
50657
|
*/
|
|
50525
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
50658
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
50526
50659
|
|
|
50527
50660
|
/**
|
|
50528
50661
|
* Props applied to the tab indicator element.
|
|
@@ -50648,7 +50781,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50648
50781
|
FormHelperTextProps,
|
|
50649
50782
|
fullWidth = false,
|
|
50650
50783
|
helperText,
|
|
50651
|
-
id,
|
|
50784
|
+
id: idOverride,
|
|
50652
50785
|
InputLabelProps,
|
|
50653
50786
|
inputProps,
|
|
50654
50787
|
InputProps,
|
|
@@ -50699,14 +50832,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50699
50832
|
InputMore.notched = InputLabelProps.shrink;
|
|
50700
50833
|
}
|
|
50701
50834
|
|
|
50702
|
-
|
|
50703
|
-
var _InputLabelProps$requ;
|
|
50704
|
-
|
|
50705
|
-
const displayRequired = (_InputLabelProps$requ = InputLabelProps == null ? void 0 : InputLabelProps.required) != null ? _InputLabelProps$requ : required;
|
|
50706
|
-
InputMore.label = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
50707
|
-
children: [label, displayRequired && '\u00a0*']
|
|
50708
|
-
});
|
|
50709
|
-
}
|
|
50835
|
+
InputMore.label = label;
|
|
50710
50836
|
}
|
|
50711
50837
|
|
|
50712
50838
|
if (select) {
|
|
@@ -50718,6 +50844,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50718
50844
|
InputMore['aria-describedby'] = undefined;
|
|
50719
50845
|
}
|
|
50720
50846
|
|
|
50847
|
+
const id = useId(idOverride);
|
|
50721
50848
|
const helperTextId = helperText && id ? `${id}-helper-text` : undefined;
|
|
50722
50849
|
const inputLabelId = label && id ? `${id}-label` : undefined;
|
|
50723
50850
|
const InputComponent = variantComponent[variant];
|
|
@@ -50969,7 +51096,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50969
51096
|
/**
|
|
50970
51097
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50971
51098
|
*/
|
|
50972
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51099
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
50973
51100
|
|
|
50974
51101
|
/**
|
|
50975
51102
|
* 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).
|
|
@@ -51211,7 +51338,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51211
51338
|
/**
|
|
51212
51339
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51213
51340
|
*/
|
|
51214
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51341
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
51215
51342
|
|
|
51216
51343
|
/**
|
|
51217
51344
|
* The value to associate with the button when selected in a
|
|
@@ -51473,7 +51600,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51473
51600
|
/**
|
|
51474
51601
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51475
51602
|
*/
|
|
51476
|
-
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object])), propTypes.func, propTypes.object]),
|
|
51603
|
+
sx: propTypes.oneOfType([propTypes.arrayOf(propTypes.oneOfType([propTypes.func, propTypes.object, propTypes.bool])), propTypes.func, propTypes.object]),
|
|
51477
51604
|
|
|
51478
51605
|
/**
|
|
51479
51606
|
* The currently selected value within the group or an array of selected
|