@mui/material 7.3.7 → 7.3.9
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 +11 -11
- package/AccordionActions/AccordionActions.d.ts +3 -3
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +15 -15
- package/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.d.ts +2 -2
- package/AppBar/AppBar.d.ts +8 -8
- package/AppBar/AppBar.js +1 -1
- package/Autocomplete/Autocomplete.d.ts +39 -39
- package/Autocomplete/Autocomplete.js +1 -1
- package/Avatar/Avatar.d.ts +11 -11
- package/AvatarGroup/AvatarGroup.d.ts +11 -11
- package/Backdrop/Backdrop.d.ts +10 -10
- package/Badge/Badge.d.ts +17 -17
- package/Badge/Badge.js +23 -104
- package/Badge/useBadge.types.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +5 -5
- package/BottomNavigationAction/BottomNavigationAction.d.ts +4 -4
- package/Box/Box.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +11 -11
- package/Button/Button.d.ts +14 -14
- package/ButtonBase/ButtonBase.d.ts +15 -15
- package/ButtonBase/TouchRipple.d.ts +4 -4
- package/ButtonGroup/ButtonGroup.d.ts +12 -12
- package/ButtonGroup/ButtonGroupContext.d.ts +9 -9
- package/CHANGELOG.md +101 -0
- package/Card/Card.d.ts +4 -4
- package/CardActionArea/CardActionArea.d.ts +4 -4
- package/CardActions/CardActions.d.ts +3 -3
- package/CardContent/CardContent.d.ts +3 -3
- package/CardHeader/CardHeader.d.ts +8 -8
- package/CardHeader/CardHeader.js +1 -4
- package/CardMedia/CardMedia.d.ts +5 -5
- package/Checkbox/Checkbox.d.ts +12 -12
- package/Chip/Chip.d.ts +15 -15
- package/Chip/Chip.js +1 -3
- package/CircularProgress/CircularProgress.d.ts +9 -9
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/Collapse/Collapse.d.ts +12 -12
- package/Collapse/Collapse.js +3 -3
- package/Container/Container.d.ts +6 -6
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/Dialog/Dialog.d.ts +21 -21
- package/Dialog/DialogContext.d.ts +1 -1
- package/DialogActions/DialogActions.d.ts +3 -3
- package/DialogContent/DialogContent.d.ts +3 -3
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +4 -4
- package/Divider/Divider.d.ts +9 -9
- package/Drawer/Drawer.d.ts +11 -11
- package/Drawer/Drawer.js +1 -1
- package/Fab/Fab.d.ts +10 -10
- package/Fade/Fade.d.ts +5 -5
- package/FilledInput/FilledInput.d.ts +4 -4
- package/FormControl/FormControl.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +12 -12
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +10 -10
- package/FormLabel/FormLabel.d.ts +10 -10
- package/Grid/Grid.d.ts +11 -11
- package/GridLegacy/GridLegacy.d.ts +17 -17
- package/GridLegacy/GridLegacy.js +1 -1
- package/Grow/Grow.d.ts +5 -5
- package/Icon/Icon.d.ts +6 -6
- package/IconButton/IconButton.d.ts +9 -9
- package/ImageList/ImageList.d.ts +7 -7
- package/ImageListItem/ImageListItem.d.ts +5 -5
- package/ImageListItemBar/ImageListItemBar.d.ts +4 -4
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +6 -6
- package/InputBase/InputBase.d.ts +55 -55
- package/InputLabel/InputLabel.d.ts +13 -13
- package/LinearProgress/LinearProgress.d.ts +6 -6
- package/Link/Link.d.ts +7 -7
- package/List/List.d.ts +5 -5
- package/List/ListContext.d.ts +1 -1
- package/ListItem/ListItem.d.ts +20 -20
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +10 -10
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +11 -11
- package/ListItemText/ListItemText.js +1 -4
- package/ListSubheader/ListSubheader.d.ts +7 -7
- package/Menu/Menu.d.ts +11 -11
- package/MenuItem/MenuItem.d.ts +9 -9
- package/MenuList/MenuList.d.ts +6 -6
- package/MobileStepper/MobileStepper.d.ts +6 -6
- package/Modal/Modal.d.ts +31 -31
- package/Modal/ModalManager.d.ts +1 -1
- package/Modal/useModal.types.d.ts +13 -13
- package/NativeSelect/NativeSelect.d.ts +7 -7
- package/NativeSelect/NativeSelectInput.d.ts +5 -5
- package/NoSsr/NoSsr.types.d.ts +1 -1
- package/OutlinedInput/NotchedOutline.d.ts +3 -3
- package/OutlinedInput/OutlinedInput.d.ts +5 -5
- package/OverridableComponent/index.d.ts +2 -2
- package/Pagination/Pagination.d.ts +8 -8
- package/PaginationItem/PaginationItem.d.ts +15 -15
- package/Paper/Paper.d.ts +6 -6
- package/PigmentContainer/PigmentContainer.d.ts +6 -6
- package/PigmentContainer/PigmentContainer.js +1 -0
- package/PigmentGrid/PigmentGrid.d.ts +8 -8
- package/PigmentGrid/PigmentGrid.js +1 -0
- package/PigmentStack/PigmentStack.d.ts +4 -4
- package/PigmentStack/PigmentStack.js +1 -0
- package/Popover/Popover.d.ts +18 -18
- package/Popover/Popover.js +6 -3
- package/Popper/BasePopper.js +6 -3
- package/Popper/BasePopper.types.d.ts +17 -17
- package/Popper/Popper.d.ts +5 -5
- package/Portal/Portal.types.d.ts +2 -2
- package/Radio/Radio.d.ts +5 -5
- package/RadioGroup/RadioGroup.d.ts +2 -2
- package/Rating/Rating.d.ts +16 -16
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +4 -4
- package/Select/Select.d.ts +23 -23
- package/Select/SelectInput.d.ts +24 -24
- package/Skeleton/Skeleton.d.ts +7 -7
- package/Slide/Slide.d.ts +7 -7
- package/Slide/Slide.js +5 -2
- package/Slider/Slider.d.ts +65 -65
- package/Slider/SliderValueLabel.d.ts +1 -1
- package/Slider/SliderValueLabel.types.d.ts +5 -5
- package/Slider/useSlider.types.d.ts +26 -26
- package/Snackbar/Snackbar.d.ts +16 -16
- package/Snackbar/useSnackbar.types.d.ts +6 -6
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +11 -11
- package/SpeedDialAction/SpeedDialAction.d.ts +11 -11
- package/SpeedDialIcon/SpeedDialIcon.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.js +4 -10
- package/Stack/Stack.d.ts +5 -5
- package/Step/Step.d.ts +10 -10
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +7 -7
- package/StepIcon/StepIcon.d.ts +5 -5
- package/StepIcon/StepIcon.js +1 -4
- package/StepLabel/StepLabel.d.ts +7 -7
- package/StepLabel/StepLabel.js +1 -5
- package/Stepper/Stepper.d.ts +9 -9
- package/SvgIcon/SvgIcon.d.ts +10 -10
- package/SwipeableDrawer/SwipeableDrawer.d.ts +10 -10
- package/Switch/Switch.d.ts +5 -5
- package/Tab/Tab.d.ts +9 -9
- package/TabScrollButton/TabScrollButton.d.ts +9 -9
- package/Table/Table.d.ts +6 -6
- package/TableBody/TableBody.d.ts +3 -3
- package/TableCell/TableCell.d.ts +9 -9
- package/TableContainer/TableContainer.d.ts +3 -3
- package/TableFooter/TableFooter.d.ts +3 -3
- package/TableHead/TableHead.d.ts +3 -3
- package/TablePagination/TablePagination.d.ts +14 -14
- package/TablePaginationActions/TablePaginationActions.d.ts +23 -23
- package/TableRow/TableRow.d.ts +5 -5
- package/TableSortLabel/TableSortLabel.d.ts +9 -9
- package/Tabs/Tabs.d.ts +26 -25
- package/Tabs/Tabs.js +2 -1
- package/TextField/TextField.d.ts +35 -35
- package/TextareaAutosize/TextareaAutosize.types.d.ts +3 -3
- package/ToggleButton/ToggleButton.d.ts +11 -11
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -9
- package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +7 -7
- package/Toolbar/Toolbar.d.ts +5 -5
- package/Tooltip/Tooltip.d.ts +33 -33
- package/Tooltip/Tooltip.js +19 -2
- package/Typography/Typography.d.ts +10 -10
- package/Unstable_TrapFocus/FocusTrap.types.d.ts +7 -7
- package/Zoom/Zoom.d.ts +5 -5
- package/esm/Accordion/Accordion.d.ts +11 -11
- package/esm/AccordionActions/AccordionActions.d.ts +3 -3
- package/esm/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/esm/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/esm/Alert/Alert.d.ts +15 -15
- package/esm/Alert/Alert.js +1 -1
- package/esm/AlertTitle/AlertTitle.d.ts +2 -2
- package/esm/AppBar/AppBar.d.ts +8 -8
- package/esm/AppBar/AppBar.js +1 -1
- package/esm/Autocomplete/Autocomplete.d.ts +39 -39
- package/esm/Autocomplete/Autocomplete.js +1 -1
- package/esm/Avatar/Avatar.d.ts +11 -11
- package/esm/AvatarGroup/AvatarGroup.d.ts +11 -11
- package/esm/Backdrop/Backdrop.d.ts +10 -10
- package/esm/Badge/Badge.d.ts +17 -17
- package/esm/Badge/Badge.js +23 -104
- package/esm/Badge/useBadge.types.d.ts +3 -3
- package/esm/BottomNavigation/BottomNavigation.d.ts +5 -5
- package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +4 -4
- package/esm/Box/Box.d.ts +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.d.ts +11 -11
- package/esm/Button/Button.d.ts +14 -14
- package/esm/ButtonBase/ButtonBase.d.ts +15 -15
- package/esm/ButtonBase/TouchRipple.d.ts +4 -4
- package/esm/ButtonGroup/ButtonGroup.d.ts +12 -12
- package/esm/ButtonGroup/ButtonGroupContext.d.ts +9 -9
- package/esm/Card/Card.d.ts +4 -4
- package/esm/CardActionArea/CardActionArea.d.ts +4 -4
- package/esm/CardActions/CardActions.d.ts +3 -3
- package/esm/CardContent/CardContent.d.ts +3 -3
- package/esm/CardHeader/CardHeader.d.ts +8 -8
- package/esm/CardHeader/CardHeader.js +1 -4
- package/esm/CardMedia/CardMedia.d.ts +5 -5
- package/esm/Checkbox/Checkbox.d.ts +12 -12
- package/esm/Chip/Chip.d.ts +15 -15
- package/esm/Chip/Chip.js +1 -3
- package/esm/CircularProgress/CircularProgress.d.ts +9 -9
- package/esm/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/esm/Collapse/Collapse.d.ts +12 -12
- package/esm/Collapse/Collapse.js +3 -3
- package/esm/Container/Container.d.ts +6 -6
- package/esm/CssBaseline/CssBaseline.d.ts +1 -1
- package/esm/Dialog/Dialog.d.ts +21 -21
- package/esm/Dialog/DialogContext.d.ts +1 -1
- package/esm/DialogActions/DialogActions.d.ts +3 -3
- package/esm/DialogContent/DialogContent.d.ts +3 -3
- package/esm/DialogContentText/DialogContentText.d.ts +3 -3
- package/esm/DialogTitle/DialogTitle.d.ts +4 -4
- package/esm/Divider/Divider.d.ts +9 -9
- package/esm/Drawer/Drawer.d.ts +11 -11
- package/esm/Drawer/Drawer.js +1 -1
- package/esm/Fab/Fab.d.ts +10 -10
- package/esm/Fade/Fade.d.ts +5 -5
- package/esm/FilledInput/FilledInput.d.ts +4 -4
- package/esm/FormControl/FormControl.d.ts +14 -14
- package/esm/FormControlLabel/FormControlLabel.d.ts +12 -12
- package/esm/FormGroup/FormGroup.d.ts +3 -3
- package/esm/FormHelperText/FormHelperText.d.ts +10 -10
- package/esm/FormLabel/FormLabel.d.ts +10 -10
- package/esm/Grid/Grid.d.ts +11 -11
- package/esm/GridLegacy/GridLegacy.d.ts +17 -17
- package/esm/GridLegacy/GridLegacy.js +1 -1
- package/esm/Grow/Grow.d.ts +5 -5
- package/esm/Icon/Icon.d.ts +6 -6
- package/esm/IconButton/IconButton.d.ts +9 -9
- package/esm/ImageList/ImageList.d.ts +7 -7
- package/esm/ImageListItem/ImageListItem.d.ts +5 -5
- package/esm/ImageListItemBar/ImageListItemBar.d.ts +4 -4
- package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
- package/esm/Input/Input.d.ts +3 -3
- package/esm/InputAdornment/InputAdornment.d.ts +6 -6
- package/esm/InputBase/InputBase.d.ts +55 -55
- package/esm/InputLabel/InputLabel.d.ts +13 -13
- package/esm/LinearProgress/LinearProgress.d.ts +6 -6
- package/esm/Link/Link.d.ts +7 -7
- package/esm/List/List.d.ts +5 -5
- package/esm/List/ListContext.d.ts +1 -1
- package/esm/ListItem/ListItem.d.ts +20 -20
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/esm/ListItemButton/ListItemButton.d.ts +10 -10
- package/esm/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/esm/ListItemText/ListItemText.d.ts +11 -11
- package/esm/ListItemText/ListItemText.js +1 -4
- package/esm/ListSubheader/ListSubheader.d.ts +7 -7
- package/esm/Menu/Menu.d.ts +11 -11
- package/esm/MenuItem/MenuItem.d.ts +9 -9
- package/esm/MenuList/MenuList.d.ts +6 -6
- package/esm/MobileStepper/MobileStepper.d.ts +6 -6
- package/esm/Modal/Modal.d.ts +31 -31
- package/esm/Modal/ModalManager.d.ts +1 -1
- package/esm/Modal/useModal.types.d.ts +13 -13
- package/esm/NativeSelect/NativeSelect.d.ts +7 -7
- package/esm/NativeSelect/NativeSelectInput.d.ts +5 -5
- package/esm/NoSsr/NoSsr.types.d.ts +1 -1
- package/esm/OutlinedInput/NotchedOutline.d.ts +3 -3
- package/esm/OutlinedInput/OutlinedInput.d.ts +5 -5
- package/esm/OverridableComponent/index.d.ts +2 -2
- package/esm/Pagination/Pagination.d.ts +8 -8
- package/esm/PaginationItem/PaginationItem.d.ts +15 -15
- package/esm/Paper/Paper.d.ts +6 -6
- package/esm/PigmentContainer/PigmentContainer.d.ts +6 -6
- package/esm/PigmentContainer/PigmentContainer.js +2 -0
- package/esm/PigmentGrid/PigmentGrid.d.ts +8 -8
- package/esm/PigmentGrid/PigmentGrid.js +2 -0
- package/esm/PigmentStack/PigmentStack.d.ts +4 -4
- package/esm/PigmentStack/PigmentStack.js +2 -0
- package/esm/Popover/Popover.d.ts +18 -18
- package/esm/Popover/Popover.js +6 -3
- package/esm/Popper/BasePopper.js +6 -3
- package/esm/Popper/BasePopper.types.d.ts +17 -17
- package/esm/Popper/Popper.d.ts +5 -5
- package/esm/Portal/Portal.types.d.ts +2 -2
- package/esm/Radio/Radio.d.ts +5 -5
- package/esm/RadioGroup/RadioGroup.d.ts +2 -2
- package/esm/Rating/Rating.d.ts +16 -16
- package/esm/ScopedCssBaseline/ScopedCssBaseline.d.ts +4 -4
- package/esm/Select/Select.d.ts +23 -23
- package/esm/Select/SelectInput.d.ts +24 -24
- package/esm/Skeleton/Skeleton.d.ts +7 -7
- package/esm/Slide/Slide.d.ts +7 -7
- package/esm/Slide/Slide.js +5 -2
- package/esm/Slider/Slider.d.ts +65 -65
- package/esm/Slider/SliderValueLabel.d.ts +1 -1
- package/esm/Slider/SliderValueLabel.types.d.ts +5 -5
- package/esm/Slider/useSlider.types.d.ts +26 -26
- package/esm/Snackbar/Snackbar.d.ts +16 -16
- package/esm/Snackbar/useSnackbar.types.d.ts +6 -6
- package/esm/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/esm/SpeedDial/SpeedDial.d.ts +11 -11
- package/esm/SpeedDialAction/SpeedDialAction.d.ts +11 -11
- package/esm/SpeedDialIcon/SpeedDialIcon.d.ts +3 -3
- package/esm/SpeedDialIcon/SpeedDialIcon.js +4 -10
- package/esm/Stack/Stack.d.ts +5 -5
- package/esm/Step/Step.d.ts +10 -10
- package/esm/StepButton/StepButton.d.ts +3 -3
- package/esm/StepConnector/StepConnector.d.ts +2 -2
- package/esm/StepContent/StepContent.d.ts +7 -7
- package/esm/StepIcon/StepIcon.d.ts +5 -5
- package/esm/StepIcon/StepIcon.js +1 -4
- package/esm/StepLabel/StepLabel.d.ts +7 -7
- package/esm/StepLabel/StepLabel.js +1 -5
- package/esm/Stepper/Stepper.d.ts +9 -9
- package/esm/SvgIcon/SvgIcon.d.ts +10 -10
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +10 -10
- package/esm/Switch/Switch.d.ts +5 -5
- package/esm/Tab/Tab.d.ts +9 -9
- package/esm/TabScrollButton/TabScrollButton.d.ts +9 -9
- package/esm/Table/Table.d.ts +6 -6
- package/esm/TableBody/TableBody.d.ts +3 -3
- package/esm/TableCell/TableCell.d.ts +9 -9
- package/esm/TableContainer/TableContainer.d.ts +3 -3
- package/esm/TableFooter/TableFooter.d.ts +3 -3
- package/esm/TableHead/TableHead.d.ts +3 -3
- package/esm/TablePagination/TablePagination.d.ts +14 -14
- package/esm/TablePaginationActions/TablePaginationActions.d.ts +23 -23
- package/esm/TableRow/TableRow.d.ts +5 -5
- package/esm/TableSortLabel/TableSortLabel.d.ts +9 -9
- package/esm/Tabs/Tabs.d.ts +26 -25
- package/esm/Tabs/Tabs.js +2 -1
- package/esm/TextField/TextField.d.ts +35 -35
- package/esm/TextareaAutosize/TextareaAutosize.types.d.ts +3 -3
- package/esm/ToggleButton/ToggleButton.d.ts +11 -11
- package/esm/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -9
- package/esm/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +7 -7
- package/esm/Toolbar/Toolbar.d.ts +5 -5
- package/esm/Tooltip/Tooltip.d.ts +33 -33
- package/esm/Tooltip/Tooltip.js +19 -2
- package/esm/Typography/Typography.d.ts +10 -10
- package/esm/Unstable_TrapFocus/FocusTrap.types.d.ts +7 -7
- package/esm/Zoom/Zoom.d.ts +5 -5
- package/esm/index.js +1 -1
- package/esm/internal/SwitchBase.d.ts +17 -17
- package/esm/internal/SwitchBase.js +0 -1
- package/esm/internal/index.d.ts +5 -5
- package/esm/locale/utils/LocaleTextApi.d.ts +7 -7
- package/esm/styles/ThemeProvider.d.ts +12 -12
- package/esm/styles/ThemeProviderWithVars.d.ts +13 -13
- package/esm/styles/adaptV4Theme.d.ts +14 -14
- package/esm/styles/components.d.ts +476 -476
- package/esm/styles/createColorScheme.d.ts +1 -1
- package/esm/styles/createGetSelector.d.ts +5 -5
- package/esm/styles/createMixins.d.ts +2 -2
- package/esm/styles/createPalette.d.ts +23 -23
- package/esm/styles/createTheme.d.ts +2 -2
- package/esm/styles/createThemeFoundation.d.ts +30 -30
- package/esm/styles/createThemeNoVars.d.ts +14 -14
- package/esm/styles/createThemeWithVars.d.ts +9 -9
- package/esm/styles/createThemeWithVars.js +60 -60
- package/esm/styles/createTransitions.d.ts +5 -5
- package/esm/styles/createTypography.d.ts +1 -1
- package/esm/styles/cssUtils.d.ts +3 -3
- package/esm/styles/index.d.ts +6 -6
- package/esm/styles/overrides.d.ts +1 -1
- package/esm/styles/responsiveFontSizes.d.ts +4 -4
- package/esm/styles/useThemeProps.d.ts +1 -1
- package/esm/transitions/transition.d.ts +2 -2
- package/esm/transitions/utils.d.ts +4 -4
- package/esm/types/OverridableComponentAugmentation.d.ts +2 -2
- package/esm/useAutocomplete/useAutocomplete.d.ts +46 -46
- package/esm/useAutocomplete/useAutocomplete.js +3 -2
- package/esm/usePagination/usePagination.d.ts +12 -12
- package/esm/useScrollTrigger/useScrollTrigger.d.ts +3 -3
- package/esm/utils/isLayoutSupported.d.ts +1 -0
- package/esm/utils/isLayoutSupported.js +6 -0
- package/esm/utils/types.d.ts +4 -4
- package/esm/utils/useSlot.d.ts +12 -12
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +17 -17
- package/internal/SwitchBase.js +0 -1
- package/internal/index.d.ts +5 -5
- package/locale/utils/LocaleTextApi.d.ts +7 -7
- package/package.json +7 -7
- package/styles/ThemeProvider.d.ts +12 -12
- package/styles/ThemeProviderWithVars.d.ts +13 -13
- package/styles/adaptV4Theme.d.ts +14 -14
- package/styles/components.d.ts +476 -476
- package/styles/createColorScheme.d.ts +1 -1
- package/styles/createGetSelector.d.ts +5 -5
- package/styles/createMixins.d.ts +2 -2
- package/styles/createPalette.d.ts +23 -23
- package/styles/createTheme.d.ts +2 -2
- package/styles/createThemeFoundation.d.ts +30 -30
- package/styles/createThemeNoVars.d.ts +14 -14
- package/styles/createThemeWithVars.d.ts +9 -9
- package/styles/createThemeWithVars.js +60 -60
- package/styles/createTransitions.d.ts +5 -5
- package/styles/createTypography.d.ts +1 -1
- package/styles/cssUtils.d.ts +3 -3
- package/styles/index.d.ts +6 -6
- package/styles/overrides.d.ts +1 -1
- package/styles/responsiveFontSizes.d.ts +4 -4
- package/styles/useThemeProps.d.ts +1 -1
- package/transitions/transition.d.ts +2 -2
- package/transitions/utils.d.ts +4 -4
- package/types/OverridableComponentAugmentation.d.ts +2 -2
- package/useAutocomplete/useAutocomplete.d.ts +46 -46
- package/useAutocomplete/useAutocomplete.js +3 -2
- package/usePagination/usePagination.d.ts +12 -12
- package/useScrollTrigger/useScrollTrigger.d.ts +3 -3
- package/utils/isLayoutSupported.d.ts +1 -0
- package/utils/isLayoutSupported.js +12 -0
- package/utils/types.d.ts +4 -4
- package/utils/useSlot.d.ts +12 -12
- package/version/index.js +2 -2
package/transitions/utils.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const reflow: (node: Element) => number;
|
|
3
3
|
interface ComponentProps {
|
|
4
4
|
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
5
|
+
enter?: string | undefined;
|
|
6
|
+
exit?: string | undefined;
|
|
7
7
|
} | undefined;
|
|
8
8
|
style: React.CSSProperties | undefined;
|
|
9
9
|
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
10
|
+
enter?: number | undefined;
|
|
11
|
+
exit?: number | undefined;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
interface Options {
|
|
@@ -20,12 +20,12 @@ declare module '@mui/material/OverridableComponent' {
|
|
|
20
20
|
* Props of the component if `component={Component}` is used.
|
|
21
21
|
*/
|
|
22
22
|
type OverridePropsVer2<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = (BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<RootComponent>, keyof BaseProps<TypeMap>> & {
|
|
23
|
-
ref?: React.Ref<Element
|
|
23
|
+
ref?: (React.Ref<Element>) | undefined;
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
26
26
|
* Props if `component={Component}` is NOT used.
|
|
27
27
|
*/
|
|
28
28
|
type DefaultComponentPropsVer2<TypeMap extends OverridableTypeMap> = BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<TypeMap['defaultComponent']>, keyof BaseProps<TypeMap>> & {
|
|
29
|
-
ref?: React.Ref<Element
|
|
29
|
+
ref?: (React.Ref<Element>) | undefined;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PartiallyRequired } from '@mui/types';
|
|
3
3
|
export interface CreateFilterOptionsConfig<Value> {
|
|
4
|
-
ignoreAccents?: boolean;
|
|
5
|
-
ignoreCase?: boolean;
|
|
6
|
-
limit?: number;
|
|
7
|
-
matchFrom?: 'any' | 'start';
|
|
8
|
-
stringify?: (option: Value) => string;
|
|
9
|
-
trim?: boolean;
|
|
4
|
+
ignoreAccents?: boolean | undefined;
|
|
5
|
+
ignoreCase?: boolean | undefined;
|
|
6
|
+
limit?: number | undefined;
|
|
7
|
+
matchFrom?: 'any' | 'start' | undefined;
|
|
8
|
+
stringify?: ((option: Value) => string) | undefined;
|
|
9
|
+
trim?: boolean | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface FilterOptionsState<Value> {
|
|
12
12
|
inputValue: string;
|
|
@@ -26,25 +26,25 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
26
26
|
* @internal The prefix of the state class name, temporary for Joy UI
|
|
27
27
|
* @default 'Mui'
|
|
28
28
|
*/
|
|
29
|
-
unstable_classNamePrefix?: string;
|
|
29
|
+
unstable_classNamePrefix?: string | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* @internal
|
|
32
32
|
* Temporary for Joy UI because the parent listbox is the document object
|
|
33
33
|
* TODO v6: Normalize the logic and remove this param.
|
|
34
34
|
*/
|
|
35
|
-
unstable_isActiveElementInListbox?: (listbox: React.RefObject<HTMLElement | null>) => boolean;
|
|
35
|
+
unstable_isActiveElementInListbox?: ((listbox: React.RefObject<HTMLElement | null>) => boolean) | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* If `true`, the portion of the selected suggestion that the user hasn't typed,
|
|
38
38
|
* known as the completion string, appears inline after the input cursor in the textbox.
|
|
39
39
|
* The inline completion string is visually highlighted and has a selected state.
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
|
-
autoComplete?: boolean;
|
|
42
|
+
autoComplete?: boolean | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* If `true`, the first option is automatically highlighted.
|
|
45
45
|
* @default false
|
|
46
46
|
*/
|
|
47
|
-
autoHighlight?: boolean;
|
|
47
|
+
autoHighlight?: boolean | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* If `true`, the selected option becomes the value of the input
|
|
50
50
|
* when the Autocomplete loses focus unless the user chooses
|
|
@@ -54,7 +54,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
54
54
|
* if the Autocomplete loses focus without highlighting an option.
|
|
55
55
|
* @default false
|
|
56
56
|
*/
|
|
57
|
-
autoSelect?: boolean;
|
|
57
|
+
autoSelect?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Control if the input should be blurred when an option is selected:
|
|
60
60
|
*
|
|
@@ -64,7 +64,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
64
64
|
* - `mouse` the input is blurred after a mouse event.
|
|
65
65
|
* @default false
|
|
66
66
|
*/
|
|
67
|
-
blurOnSelect?: 'touch' | 'mouse' | true | false;
|
|
67
|
+
blurOnSelect?: 'touch' | 'mouse' | true | false | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* If `true`, the input's text is cleared on blur if no value is selected.
|
|
70
70
|
*
|
|
@@ -72,46 +72,46 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
72
72
|
* Set it to `false` if you want to help the user resume their search.
|
|
73
73
|
* @default !props.freeSolo
|
|
74
74
|
*/
|
|
75
|
-
clearOnBlur?: boolean;
|
|
75
|
+
clearOnBlur?: boolean | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* If `true`, clear all values when the user presses escape and the popup is closed.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
|
-
clearOnEscape?: boolean;
|
|
80
|
+
clearOnEscape?: boolean | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* The component name that is using this hook. Used for warnings.
|
|
83
83
|
*/
|
|
84
|
-
componentName?: string;
|
|
84
|
+
componentName?: string | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* The default value. Use when the component is not controlled.
|
|
87
87
|
* @default props.multiple ? [] : null
|
|
88
88
|
*/
|
|
89
|
-
defaultValue?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo
|
|
89
|
+
defaultValue?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo> | undefined;
|
|
90
90
|
/**
|
|
91
91
|
* If `true`, the input can't be cleared.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
|
-
disableClearable?: DisableClearable;
|
|
94
|
+
disableClearable?: DisableClearable | undefined;
|
|
95
95
|
/**
|
|
96
96
|
* If `true`, the popup won't close when a value is selected.
|
|
97
97
|
* @default false
|
|
98
98
|
*/
|
|
99
|
-
disableCloseOnSelect?: boolean;
|
|
99
|
+
disableCloseOnSelect?: boolean | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* If `true`, the component is disabled.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
|
-
disabled?: boolean;
|
|
104
|
+
disabled?: boolean | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* If `true`, will allow focus on disabled items.
|
|
107
107
|
* @default false
|
|
108
108
|
*/
|
|
109
|
-
disabledItemsFocusable?: boolean;
|
|
109
|
+
disabledItemsFocusable?: boolean | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* If `true`, the list box in the popup will not wrap focus.
|
|
112
112
|
* @default false
|
|
113
113
|
*/
|
|
114
|
-
disableListWrap?: boolean;
|
|
114
|
+
disableListWrap?: boolean | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* A function that determines the filtered options to be rendered on search.
|
|
117
117
|
*
|
|
@@ -120,17 +120,17 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
120
120
|
* @param {object} state The state of the component.
|
|
121
121
|
* @returns {Value[]}
|
|
122
122
|
*/
|
|
123
|
-
filterOptions?: (options: Value[], state: FilterOptionsState<Value>) => Value[];
|
|
123
|
+
filterOptions?: ((options: Value[], state: FilterOptionsState<Value>) => Value[]) | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* If `true`, hide the selected options from the list box.
|
|
126
126
|
* @default false
|
|
127
127
|
*/
|
|
128
|
-
filterSelectedOptions?: boolean;
|
|
128
|
+
filterSelectedOptions?: boolean | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
|
|
131
131
|
* @default false
|
|
132
132
|
*/
|
|
133
|
-
freeSolo?: FreeSolo;
|
|
133
|
+
freeSolo?: FreeSolo | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* Used to determine the disabled state for a given option.
|
|
136
136
|
*
|
|
@@ -138,7 +138,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
138
138
|
* @template Value The option shape. Will be the same shape as an item of the options.
|
|
139
139
|
* @returns {boolean}
|
|
140
140
|
*/
|
|
141
|
-
getOptionDisabled?: (option: Value) => boolean;
|
|
141
|
+
getOptionDisabled?: ((option: Value) => boolean) | undefined;
|
|
142
142
|
/**
|
|
143
143
|
* Used to determine the key for a given option.
|
|
144
144
|
* This can be useful when the labels of options are not unique (since labels are used as keys by default).
|
|
@@ -146,7 +146,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
146
146
|
* @param {Value} option The option to get the key for.
|
|
147
147
|
* @returns {string | number}
|
|
148
148
|
*/
|
|
149
|
-
getOptionKey?: (option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string | number;
|
|
149
|
+
getOptionKey?: ((option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string | number) | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* Used to determine the string value for a given option.
|
|
152
152
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
|
@@ -157,7 +157,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
157
157
|
* @returns {string}
|
|
158
158
|
* @default (option) => option.label ?? option
|
|
159
159
|
*/
|
|
160
|
-
getOptionLabel?: (option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string;
|
|
160
|
+
getOptionLabel?: ((option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string) | undefined;
|
|
161
161
|
/**
|
|
162
162
|
* If provided, the options will be grouped under the returned string.
|
|
163
163
|
* The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
|
|
@@ -165,28 +165,28 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
165
165
|
* @param {Value} option The Autocomplete option.
|
|
166
166
|
* @returns {string}
|
|
167
167
|
*/
|
|
168
|
-
groupBy?: (option: Value) => string;
|
|
168
|
+
groupBy?: ((option: Value) => string) | undefined;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* If `true`, the component handles the "Home" and "End" keys when the popup is open.
|
|
172
172
|
* It should move focus to the first option and last option, respectively.
|
|
173
173
|
* @default !props.freeSolo
|
|
174
174
|
*/
|
|
175
|
-
handleHomeEndKeys?: boolean;
|
|
175
|
+
handleHomeEndKeys?: boolean | undefined;
|
|
176
176
|
/**
|
|
177
177
|
* This prop is used to help implement the accessibility logic.
|
|
178
178
|
* If you don't provide an id it will fall back to a randomly generated one.
|
|
179
179
|
*/
|
|
180
|
-
id?: string;
|
|
180
|
+
id?: string | undefined;
|
|
181
181
|
/**
|
|
182
182
|
* If `true`, the highlight can move to the input.
|
|
183
183
|
* @default false
|
|
184
184
|
*/
|
|
185
|
-
includeInputInList?: boolean;
|
|
185
|
+
includeInputInList?: boolean | undefined;
|
|
186
186
|
/**
|
|
187
187
|
* The input value.
|
|
188
188
|
*/
|
|
189
|
-
inputValue?: string;
|
|
189
|
+
inputValue?: string | undefined;
|
|
190
190
|
/**
|
|
191
191
|
* Used to determine if the option represents the given value.
|
|
192
192
|
* Uses strict equality by default.
|
|
@@ -196,12 +196,12 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
196
196
|
* @param {Value} value The value to test against.
|
|
197
197
|
* @returns {boolean}
|
|
198
198
|
*/
|
|
199
|
-
isOptionEqualToValue?: (option: Value, value: Value) => boolean;
|
|
199
|
+
isOptionEqualToValue?: ((option: Value, value: Value) => boolean) | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
202
202
|
* @default false
|
|
203
203
|
*/
|
|
204
|
-
multiple?: Multiple;
|
|
204
|
+
multiple?: Multiple | undefined;
|
|
205
205
|
/**
|
|
206
206
|
* Callback fired when the value changes.
|
|
207
207
|
*
|
|
@@ -210,7 +210,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
210
210
|
* @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
|
|
211
211
|
* @param {string} [details]
|
|
212
212
|
*/
|
|
213
|
-
onChange?: (event: React.SyntheticEvent, value: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<Value>) => void;
|
|
213
|
+
onChange?: ((event: React.SyntheticEvent, value: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<Value>) => void) | undefined;
|
|
214
214
|
/**
|
|
215
215
|
* Callback fired when the popup requests to be closed.
|
|
216
216
|
* Use in controlled mode (see open).
|
|
@@ -218,7 +218,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
218
218
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
219
219
|
* @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
|
|
220
220
|
*/
|
|
221
|
-
onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
|
|
221
|
+
onClose?: ((event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void) | undefined;
|
|
222
222
|
/**
|
|
223
223
|
* Callback fired when the highlight option changes.
|
|
224
224
|
*
|
|
@@ -226,7 +226,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
226
226
|
* @param {Value} option The highlighted option.
|
|
227
227
|
* @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
|
|
228
228
|
*/
|
|
229
|
-
onHighlightChange?: (event: React.SyntheticEvent, option: Value | null, reason: AutocompleteHighlightChangeReason) => void;
|
|
229
|
+
onHighlightChange?: ((event: React.SyntheticEvent, option: Value | null, reason: AutocompleteHighlightChangeReason) => void) | undefined;
|
|
230
230
|
/**
|
|
231
231
|
* Callback fired when the input value changes.
|
|
232
232
|
*
|
|
@@ -234,23 +234,23 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
234
234
|
* @param {string} value The new value of the text input.
|
|
235
235
|
* @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`, `"blur"`, `"selectOption"`, `"removeOption"`
|
|
236
236
|
*/
|
|
237
|
-
onInputChange?: (event: React.SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void;
|
|
237
|
+
onInputChange?: ((event: React.SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void) | undefined;
|
|
238
238
|
/**
|
|
239
239
|
* Callback fired when the popup requests to be opened.
|
|
240
240
|
* Use in controlled mode (see open).
|
|
241
241
|
*
|
|
242
242
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
243
243
|
*/
|
|
244
|
-
onOpen?: (event: React.SyntheticEvent) => void;
|
|
244
|
+
onOpen?: ((event: React.SyntheticEvent) => void) | undefined;
|
|
245
245
|
/**
|
|
246
246
|
* If `true`, the component is shown.
|
|
247
247
|
*/
|
|
248
|
-
open?: boolean;
|
|
248
|
+
open?: boolean | undefined;
|
|
249
249
|
/**
|
|
250
250
|
* If `true`, the popup will open on input focus.
|
|
251
251
|
* @default false
|
|
252
252
|
*/
|
|
253
|
-
openOnFocus?: boolean;
|
|
253
|
+
openOnFocus?: boolean | undefined;
|
|
254
254
|
/**
|
|
255
255
|
* A list of options that will be shown in the Autocomplete.
|
|
256
256
|
*/
|
|
@@ -259,20 +259,20 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
259
259
|
* If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
|
|
260
260
|
* @default false
|
|
261
261
|
*/
|
|
262
|
-
readOnly?: boolean;
|
|
262
|
+
readOnly?: boolean | undefined;
|
|
263
263
|
/**
|
|
264
264
|
* If `true`, the input's text is selected on focus.
|
|
265
265
|
* It helps the user clear the selected value.
|
|
266
266
|
* @default !props.freeSolo
|
|
267
267
|
*/
|
|
268
|
-
selectOnFocus?: boolean;
|
|
268
|
+
selectOnFocus?: boolean | undefined;
|
|
269
269
|
/**
|
|
270
270
|
* The value of the autocomplete.
|
|
271
271
|
*
|
|
272
272
|
* The value must have reference equality with the option in order to be selected.
|
|
273
273
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
274
274
|
*/
|
|
275
|
-
value?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo
|
|
275
|
+
value?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo> | undefined;
|
|
276
276
|
}
|
|
277
277
|
export interface UseAutocompleteParameters<Value, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends UseAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo> {}
|
|
278
278
|
export type AutocompleteHighlightChangeReason = 'keyboard' | 'mouse' | 'touch';
|
|
@@ -290,7 +290,7 @@ export type AutocompleteGetItemProps<Multiple extends boolean | undefined> = Mul
|
|
|
290
290
|
tabIndex: -1;
|
|
291
291
|
onDelete: (event: any) => void;
|
|
292
292
|
} : (args?: {
|
|
293
|
-
index?: number;
|
|
293
|
+
index?: number | undefined;
|
|
294
294
|
}) => {
|
|
295
295
|
'data-item-index': number;
|
|
296
296
|
tabIndex: -1;
|
|
@@ -362,7 +362,7 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
362
362
|
* @returns props that should be spread on the li element
|
|
363
363
|
*/
|
|
364
364
|
getOptionProps: (renderedOption: UseAutocompleteRenderedOption<Value>) => React.HTMLAttributes<HTMLLIElement> & {
|
|
365
|
-
key:
|
|
365
|
+
key: React.Key;
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
368
|
* Id for the Autocomplete.
|
|
@@ -494,10 +494,10 @@ function useAutocomplete(props) {
|
|
|
494
494
|
}, [componentName]);
|
|
495
495
|
}
|
|
496
496
|
React.useEffect(() => {
|
|
497
|
-
if (filteredOptionsChanged || popupOpen) {
|
|
497
|
+
if (filteredOptionsChanged || popupOpen && !disableCloseOnSelect) {
|
|
498
498
|
syncHighlightedIndex();
|
|
499
499
|
}
|
|
500
|
-
}, [syncHighlightedIndex, filteredOptionsChanged, popupOpen]);
|
|
500
|
+
}, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
|
|
501
501
|
const handleOpen = event => {
|
|
502
502
|
if (open) {
|
|
503
503
|
return;
|
|
@@ -1051,6 +1051,7 @@ function useAutocomplete(props) {
|
|
|
1051
1051
|
role: 'listbox',
|
|
1052
1052
|
id: `${id}-listbox`,
|
|
1053
1053
|
'aria-labelledby': `${id}-label`,
|
|
1054
|
+
'aria-multiselectable': multiple || undefined,
|
|
1054
1055
|
ref: handleListboxRef,
|
|
1055
1056
|
onMouseDown: event => {
|
|
1056
1057
|
// Prevent blur
|
|
@@ -4,62 +4,62 @@ export interface UsePaginationProps {
|
|
|
4
4
|
* Number of always visible pages at the beginning and end.
|
|
5
5
|
* @default 1
|
|
6
6
|
*/
|
|
7
|
-
boundaryCount?: number;
|
|
7
|
+
boundaryCount?: number | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* The name of the component where this hook is used.
|
|
10
10
|
*/
|
|
11
|
-
componentName?: string;
|
|
11
|
+
componentName?: string | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* The total number of pages.
|
|
14
14
|
* @default 1
|
|
15
15
|
*/
|
|
16
|
-
count?: number;
|
|
16
|
+
count?: number | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* The page selected by default when the component is uncontrolled.
|
|
19
19
|
* @default 1
|
|
20
20
|
*/
|
|
21
|
-
defaultPage?: number;
|
|
21
|
+
defaultPage?: number | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* If `true`, the component is disabled.
|
|
24
24
|
* @default false
|
|
25
25
|
*/
|
|
26
|
-
disabled?: boolean;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* If `true`, hide the next-page button.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
|
-
hideNextButton?: boolean;
|
|
31
|
+
hideNextButton?: boolean | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* If `true`, hide the previous-page button.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
|
-
hidePrevButton?: boolean;
|
|
36
|
+
hidePrevButton?: boolean | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Callback fired when the page is changed.
|
|
39
39
|
*
|
|
40
40
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
41
41
|
* @param {number} page The page selected.
|
|
42
42
|
*/
|
|
43
|
-
onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
|
|
43
|
+
onChange?: ((event: React.ChangeEvent<unknown>, page: number) => void) | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
46
46
|
*/
|
|
47
|
-
page?: number;
|
|
47
|
+
page?: number | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* If `true`, show the first-page button.
|
|
50
50
|
* @default false
|
|
51
51
|
*/
|
|
52
|
-
showFirstButton?: boolean;
|
|
52
|
+
showFirstButton?: boolean | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* If `true`, show the last-page button.
|
|
55
55
|
* @default false
|
|
56
56
|
*/
|
|
57
|
-
showLastButton?: boolean;
|
|
57
|
+
showLastButton?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Number of always visible pages before and after the current page.
|
|
60
60
|
* @default 1
|
|
61
61
|
*/
|
|
62
|
-
siblingCount?: number;
|
|
62
|
+
siblingCount?: number | undefined;
|
|
63
63
|
}
|
|
64
64
|
export interface UsePaginationItem {
|
|
65
65
|
onClick: React.ReactEventHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface UseScrollTriggerOptions {
|
|
2
|
-
disableHysteresis?: boolean;
|
|
3
|
-
target?: Node | Window | null;
|
|
4
|
-
threshold?: number;
|
|
2
|
+
disableHysteresis?: boolean | undefined;
|
|
3
|
+
target?: Node | Window | null | undefined;
|
|
4
|
+
threshold?: number | undefined;
|
|
5
5
|
}
|
|
6
6
|
export default function useScrollTrigger(options?: UseScrollTriggerOptions): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isLayoutSupported(): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = isLayoutSupported;
|
|
7
|
+
function isLayoutSupported() {
|
|
8
|
+
return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) ||
|
|
9
|
+
// TODO(v9): Remove the test environment check
|
|
10
|
+
// eslint-disable-next-line mui/consistent-production-guard
|
|
11
|
+
process.env.NODE_ENV === 'test');
|
|
12
|
+
}
|
package/utils/types.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { SlotComponentProps } from '@mui/utils/types';
|
|
|
3
3
|
import { Theme } from "../styles/index.js";
|
|
4
4
|
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils/types';
|
|
5
5
|
export type SlotCommonProps = {
|
|
6
|
-
component?: React.ElementType;
|
|
7
|
-
sx?: SxProps<Theme
|
|
6
|
+
component?: React.ElementType | undefined;
|
|
7
|
+
sx?: SxProps<Theme> | undefined;
|
|
8
8
|
};
|
|
9
9
|
export type SlotProps<TSlotComponent extends React.ElementType, TOverrides, TOwnerState> = SlotComponentProps<TSlotComponent, SlotCommonProps & TOverrides, TOwnerState>;
|
|
10
10
|
/**
|
|
@@ -17,10 +17,10 @@ export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> =
|
|
|
17
17
|
* The components used for each slot inside.
|
|
18
18
|
* @default {}
|
|
19
19
|
*/
|
|
20
|
-
slots?: Partial<Slots
|
|
20
|
+
slots?: Partial<Slots> | undefined;
|
|
21
21
|
/**
|
|
22
22
|
* The props used for each slot inside.
|
|
23
23
|
* @default {}
|
|
24
24
|
*/
|
|
25
|
-
slotProps?: { [P in keyof K]?: K[P] };
|
|
25
|
+
slotProps?: { [P in keyof K]?: K[P] } | undefined;
|
|
26
26
|
};
|
package/utils/useSlot.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ClassValue } from 'clsx';
|
|
3
3
|
export type WithCommonProps<T> = T & {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
ref?: React.Ref<any
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
style?: React.CSSProperties | undefined;
|
|
6
|
+
ref?: React.Ref<any> | undefined;
|
|
7
7
|
};
|
|
8
8
|
type EventHandlers = Record<string, React.EventHandler<any>>;
|
|
9
9
|
type ExtractComponentProps<P> = P extends infer T | ((ownerState: any) => infer T) ? T : never;
|
|
@@ -22,12 +22,12 @@ type ExtractComponentProps<P> = P extends infer T | ((ownerState: any) => infer
|
|
|
22
22
|
* - might contain `as` prop.
|
|
23
23
|
*/
|
|
24
24
|
export default function useSlot<T extends string, ElementType extends React.ElementType, SlotProps, OwnerState extends {}, ExternalSlotProps extends {
|
|
25
|
-
component?: React.ElementType;
|
|
26
|
-
ref?: React.Ref<any
|
|
25
|
+
component?: React.ElementType | undefined;
|
|
26
|
+
ref?: React.Ref<any> | undefined;
|
|
27
27
|
}, ExternalForwardedProps extends {
|
|
28
|
-
component?: React.ElementType;
|
|
29
|
-
slots?: { [k in T]?: React.ElementType };
|
|
30
|
-
slotProps?: { [k in T]?: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) };
|
|
28
|
+
component?: React.ElementType | undefined;
|
|
29
|
+
slots?: { [k in T]?: React.ElementType } | undefined;
|
|
30
|
+
slotProps?: { [k in T]?: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) } | undefined;
|
|
31
31
|
}, AdditionalProps, SlotOwnerState extends {}>(
|
|
32
32
|
/**
|
|
33
33
|
* The slot's name. All Material UI components should have `root` slot.
|
|
@@ -38,7 +38,7 @@ export default function useSlot<T extends string, ElementType extends React.Elem
|
|
|
38
38
|
name: T, parameters: (T extends 'root' ? {
|
|
39
39
|
ref: React.ForwardedRef<any>;
|
|
40
40
|
} : {
|
|
41
|
-
ref?: React.ForwardedRef<any
|
|
41
|
+
ref?: React.ForwardedRef<any> | undefined;
|
|
42
42
|
}) & {
|
|
43
43
|
/**
|
|
44
44
|
* The slot's className
|
|
@@ -59,8 +59,8 @@ name: T, parameters: (T extends 'root' ? {
|
|
|
59
59
|
* If the slot is not `root`, the rest of the `externalForwardedProps` are neglected.
|
|
60
60
|
*/
|
|
61
61
|
externalForwardedProps: ExternalForwardedProps;
|
|
62
|
-
getSlotProps?: (other: EventHandlers) => WithCommonProps<SlotProps
|
|
63
|
-
additionalProps?: WithCommonProps<AdditionalProps
|
|
62
|
+
getSlotProps?: ((other: EventHandlers) => WithCommonProps<SlotProps>) | undefined;
|
|
63
|
+
additionalProps?: WithCommonProps<AdditionalProps> | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* props forward to `T` only if the `slotProps.*.component` is not provided.
|
|
66
66
|
* e.g. Autocomplete's listbox uses Popper + StyledComponent
|
|
@@ -73,7 +73,7 @@ name: T, parameters: (T extends 'root' ? {
|
|
|
73
73
|
* This flag is used to forward the `component` and `slotProps.root.component` to the Paper component.
|
|
74
74
|
* Otherwise, the `component` prop will be converted to `as` prop which replaces the Paper component (the paper styles are gone).
|
|
75
75
|
*/
|
|
76
|
-
shouldForwardComponentProp?: boolean;
|
|
76
|
+
shouldForwardComponentProp?: boolean | undefined;
|
|
77
77
|
}): [ElementType, {
|
|
78
78
|
className: string;
|
|
79
79
|
ownerState: OwnerState & SlotOwnerState;
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "7.3.
|
|
7
|
+
const version = exports.version = "7.3.9";
|
|
8
8
|
const major = exports.major = Number("7");
|
|
9
9
|
const minor = exports.minor = Number("3");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("9");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|