@mui/material 9.0.0-beta.1 → 9.0.1
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.mts +3 -3
- package/Accordion/Accordion.d.ts +3 -3
- package/AccordionActions/AccordionActions.d.mts +2 -2
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.mts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.mts +3 -3
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.mts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.mts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.mts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.mts +2 -2
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Autocomplete/Autocomplete.js +65 -11
- package/Autocomplete/Autocomplete.mjs +65 -11
- package/Avatar/Avatar.d.mts +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/Avatar/Avatar.js +4 -0
- package/Avatar/Avatar.mjs +4 -0
- package/AvatarGroup/AvatarGroup.d.mts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.mts +3 -3
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.mts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/Badge/Badge.js +3 -0
- package/Badge/Badge.mjs +3 -0
- package/BottomNavigation/BottomNavigation.d.mts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.mts +3 -3
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.mts +3 -3
- package/Box/Box.d.ts +3 -3
- package/Breadcrumbs/Breadcrumbs.d.mts +3 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.mts +6 -6
- package/Button/Button.d.ts +6 -6
- package/Button/Button.js +19 -2
- package/Button/Button.mjs +19 -2
- package/ButtonBase/ButtonBase.d.mts +9 -2
- package/ButtonBase/ButtonBase.d.ts +9 -2
- package/ButtonBase/ButtonBase.js +5 -2
- package/ButtonBase/ButtonBase.mjs +5 -2
- package/ButtonGroup/ButtonGroup.d.mts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +160 -1245
- package/Card/Card.d.mts +3 -3
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.mts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.mts +2 -2
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.mts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.mts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.mts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.mts +4 -4
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Checkbox/Checkbox.js +2 -1
- package/Checkbox/Checkbox.mjs +2 -1
- package/Chip/Chip.d.mts +2 -2
- package/Chip/Chip.d.ts +2 -2
- package/CircularProgress/CircularProgress.d.mts +14 -4
- package/CircularProgress/CircularProgress.d.ts +14 -4
- package/CircularProgress/CircularProgress.js +33 -6
- package/CircularProgress/CircularProgress.mjs +33 -6
- package/ClickAwayListener/ClickAwayListener.d.mts +3 -3
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +6 -9
- package/ClickAwayListener/ClickAwayListener.mjs +6 -9
- package/Collapse/Collapse.d.mts +5 -5
- package/Collapse/Collapse.d.ts +5 -5
- package/Collapse/Collapse.js +6 -18
- package/Collapse/Collapse.mjs +7 -19
- package/Container/Container.d.mts +2 -2
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.mts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.mts +3 -3
- package/Dialog/Dialog.d.ts +3 -3
- package/Dialog/Dialog.js +11 -6
- package/Dialog/Dialog.mjs +11 -6
- package/DialogActions/DialogActions.d.mts +2 -2
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.mts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.mts +3 -3
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.mts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.mts +4 -4
- package/Divider/Divider.d.ts +4 -4
- package/Drawer/Drawer.d.mts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Drawer/Drawer.js +19 -8
- package/Drawer/Drawer.mjs +19 -8
- package/Fab/Fab.d.mts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fab/Fab.js +7 -1
- package/Fab/Fab.mjs +7 -1
- package/Fade/Fade.d.mts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/Fade/Fade.js +28 -32
- package/Fade/Fade.mjs +29 -33
- package/FilledInput/FilledInput.d.mts +7 -3
- package/FilledInput/FilledInput.d.ts +7 -3
- package/FilledInput/FilledInput.js +18 -20
- package/FilledInput/FilledInput.mjs +18 -20
- package/FormControl/FormControl.d.mts +7 -7
- package/FormControl/FormControl.d.ts +7 -7
- package/FormControl/useFormControl.d.mts +12 -2
- package/FormControl/useFormControl.d.ts +12 -2
- package/FormControl/useFormControl.js +13 -0
- package/FormControl/useFormControl.mjs +12 -0
- package/FormControlLabel/FormControlLabel.d.mts +4 -4
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormControlLabel/FormControlLabel.js +5 -8
- package/FormControlLabel/FormControlLabel.mjs +5 -8
- package/FormGroup/FormGroup.d.mts +3 -3
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormGroup/FormGroup.js +2 -5
- package/FormGroup/FormGroup.mjs +2 -5
- package/FormHelperText/FormHelperText.d.mts +3 -3
- package/FormHelperText/FormHelperText.d.ts +3 -3
- package/FormHelperText/FormHelperText.js +2 -5
- package/FormHelperText/FormHelperText.mjs +2 -5
- package/FormLabel/FormLabel.d.mts +5 -5
- package/FormLabel/FormLabel.d.ts +5 -5
- package/FormLabel/FormLabel.js +2 -5
- package/FormLabel/FormLabel.mjs +2 -5
- package/GlobalStyles/GlobalStyles.d.mts +2 -2
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.mts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grid/Grid.js +2 -2
- package/Grid/Grid.mjs +2 -2
- package/Grow/Grow.d.mts +5 -5
- package/Grow/Grow.d.ts +5 -5
- package/Grow/Grow.js +30 -38
- package/Grow/Grow.mjs +31 -39
- package/Icon/Icon.d.mts +3 -3
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.mts +5 -5
- package/IconButton/IconButton.d.ts +5 -5
- package/IconButton/IconButton.js +1 -8
- package/IconButton/IconButton.mjs +1 -8
- package/ImageList/ImageList.d.mts +2 -2
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.mts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.mts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.mts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.js +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.mjs +2 -2
- package/Input/Input.d.mts +7 -3
- package/Input/Input.d.ts +7 -3
- package/Input/Input.js +6 -0
- package/Input/Input.mjs +6 -0
- package/InputAdornment/InputAdornment.d.mts +2 -2
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputBase/InputBase.d.mts +4 -3
- package/InputBase/InputBase.d.ts +4 -3
- package/InputBase/InputBase.js +50 -15
- package/InputBase/InputBase.mjs +50 -15
- package/InputLabel/InputLabel.d.mts +4 -4
- package/InputLabel/InputLabel.d.ts +4 -4
- package/InputLabel/InputLabel.js +5 -8
- package/InputLabel/InputLabel.mjs +5 -8
- package/LinearProgress/LinearProgress.d.mts +14 -4
- package/LinearProgress/LinearProgress.d.ts +14 -4
- package/LinearProgress/LinearProgress.js +42 -10
- package/LinearProgress/LinearProgress.mjs +42 -10
- package/Link/Link.d.mts +4 -4
- package/Link/Link.d.ts +4 -4
- package/List/List.d.mts +4 -4
- package/List/List.d.ts +4 -4
- package/List/List.js +2 -1
- package/List/List.mjs +2 -1
- package/ListItem/ListItem.d.mts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItem/ListItem.js +1 -2
- package/ListItem/ListItem.mjs +1 -2
- package/ListItemAvatar/ListItemAvatar.d.mts +2 -2
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.mts +4 -4
- package/ListItemButton/ListItemButton.d.ts +4 -4
- package/ListItemButton/ListItemButton.js +7 -1
- package/ListItemButton/ListItemButton.mjs +7 -1
- package/ListItemIcon/ListItemIcon.d.mts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +3 -3
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.mts +3 -3
- package/ListItemText/ListItemText.d.ts +3 -3
- package/ListSubheader/ListSubheader.d.mts +3 -3
- package/ListSubheader/ListSubheader.d.ts +3 -3
- package/Menu/Menu.d.mts +4 -4
- package/Menu/Menu.d.ts +4 -4
- package/MenuItem/MenuItem.d.mts +3 -3
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuItem/MenuItem.js +7 -1
- package/MenuItem/MenuItem.mjs +7 -1
- package/MenuList/MenuList.d.mts +4 -4
- package/MenuList/MenuList.d.ts +4 -4
- package/MenuList/MenuList.js +2 -1
- package/MenuList/MenuList.mjs +2 -1
- package/MobileStepper/MobileStepper.d.mts +3 -3
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.mts +7 -7
- package/Modal/Modal.d.ts +7 -7
- package/NativeSelect/NativeSelect.d.mts +3 -3
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NativeSelect/NativeSelect.js +2 -5
- package/NativeSelect/NativeSelect.mjs +2 -5
- package/NoSsr/NoSsr.d.mts +2 -2
- package/NoSsr/NoSsr.d.ts +2 -2
- package/NoSsr/NoSsr.js +2 -2
- package/NoSsr/NoSsr.mjs +2 -2
- package/OutlinedInput/OutlinedInput.d.mts +4 -4
- package/OutlinedInput/OutlinedInput.d.ts +4 -4
- package/OutlinedInput/OutlinedInput.js +13 -23
- package/OutlinedInput/OutlinedInput.mjs +13 -23
- package/Pagination/Pagination.d.mts +2 -2
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.mts +3 -3
- package/PaginationItem/PaginationItem.d.ts +3 -3
- package/Paper/Paper.d.mts +4 -4
- package/Paper/Paper.d.ts +4 -4
- package/PigmentContainer/PigmentContainer.d.mts +2 -2
- package/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/PigmentContainer/PigmentContainer.js +2 -3
- package/PigmentContainer/PigmentContainer.mjs +2 -3
- package/PigmentGrid/PigmentGrid.d.mts +2 -2
- package/PigmentGrid/PigmentGrid.d.ts +2 -2
- package/PigmentGrid/PigmentGrid.js +2 -2
- package/PigmentGrid/PigmentGrid.mjs +2 -2
- package/PigmentStack/PigmentStack.d.mts +2 -2
- package/PigmentStack/PigmentStack.d.ts +2 -2
- package/PigmentStack/PigmentStack.js +2 -2
- package/PigmentStack/PigmentStack.mjs +2 -2
- package/Popover/Popover.d.mts +4 -4
- package/Popover/Popover.d.ts +4 -4
- package/Popper/BasePopper.js +23 -1
- package/Popper/BasePopper.mjs +23 -1
- package/Popper/Popper.d.mts +4 -4
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Popper/Popper.mjs +4 -4
- package/Portal/Portal.d.mts +2 -2
- package/Portal/Portal.d.ts +2 -2
- package/Portal/Portal.js +2 -2
- package/Portal/Portal.mjs +2 -2
- package/README.md +3 -3
- package/Radio/Radio.d.mts +3 -3
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.mts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.mts +2 -2
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.mts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.mts +3 -3
- package/Select/Select.d.ts +3 -3
- package/Select/Select.js +2 -5
- package/Select/Select.mjs +2 -5
- package/Select/SelectInput.js +164 -2
- package/Select/SelectInput.mjs +164 -2
- package/Skeleton/Skeleton.d.mts +2 -2
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.mts +4 -4
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +73 -50
- package/Slide/Slide.mjs +74 -52
- package/Slider/Slider.d.mts +4 -4
- package/Slider/Slider.d.ts +4 -4
- package/Slider/Slider.js +11 -2
- package/Slider/Slider.mjs +11 -2
- package/Slider/useSlider.d.mts +1 -1
- package/Slider/useSlider.d.ts +1 -1
- package/Slider/useSlider.js +236 -209
- package/Slider/useSlider.mjs +236 -209
- package/Slider/useSlider.types.d.mts +2 -2
- package/Slider/useSlider.types.d.ts +2 -2
- package/Snackbar/Snackbar.d.mts +2 -2
- package/Snackbar/Snackbar.d.ts +2 -2
- package/SnackbarContent/SnackbarContent.d.mts +3 -3
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.mts +2 -2
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.mts +3 -3
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.mts +2 -2
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.mts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.mts +3 -3
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.mts +2 -2
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepConnector/StepConnector.js +1 -2
- package/StepConnector/StepConnector.mjs +1 -2
- package/StepContent/StepContent.d.mts +2 -2
- package/StepContent/StepContent.d.ts +2 -2
- package/StepIcon/StepIcon.d.mts +3 -3
- package/StepIcon/StepIcon.d.ts +3 -3
- package/StepLabel/StepLabel.d.mts +2 -2
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.mts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.mts +3 -3
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.mts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.js +7 -6
- package/SwipeableDrawer/SwipeableDrawer.mjs +7 -6
- package/Switch/Switch.d.mts +4 -4
- package/Switch/Switch.d.ts +4 -4
- package/Switch/Switch.js +9 -4
- package/Switch/Switch.mjs +9 -4
- package/Tab/Tab.d.mts +3 -3
- package/Tab/Tab.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.d.mts +2 -2
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.mts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.mts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.mts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.mts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.mts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.mts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.mts +4 -4
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TablePaginationActions/TablePaginationActions.d.mts +2 -2
- package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/TableRow/TableRow.d.mts +2 -2
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.mts +3 -3
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/TableSortLabel/TableSortLabel.js +1 -2
- package/TableSortLabel/TableSortLabel.mjs +1 -2
- package/Tabs/ScrollbarSize.js +2 -1
- package/Tabs/ScrollbarSize.mjs +2 -1
- package/Tabs/Tabs.d.mts +2 -2
- package/Tabs/Tabs.d.ts +2 -2
- package/Tabs/Tabs.js +2 -1
- package/Tabs/Tabs.mjs +2 -1
- package/TextField/TextField.d.mts +10 -10
- package/TextField/TextField.d.ts +10 -10
- package/TextareaAutosize/TextareaAutosize.d.mts +2 -2
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +2 -2
- package/TextareaAutosize/TextareaAutosize.mjs +2 -2
- package/ToggleButton/ToggleButton.d.mts +3 -3
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.mts +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.mts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.mts +2 -2
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +26 -108
- package/Tooltip/Tooltip.mjs +26 -108
- package/Typography/Typography.d.mts +4 -4
- package/Typography/Typography.d.ts +4 -4
- package/Unstable_TrapFocus/FocusTrap.js +18 -14
- package/Unstable_TrapFocus/FocusTrap.mjs +18 -14
- package/Zoom/Zoom.d.mts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/Zoom/Zoom.js +24 -30
- package/Zoom/Zoom.mjs +25 -31
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +7 -7
- package/styles/createThemeNoVars.js +1 -1
- package/styles/createThemeNoVars.mjs +1 -1
- package/styles/responsiveFontSizes.js +19 -8
- package/styles/responsiveFontSizes.mjs +19 -8
- package/styles/useThemeProps.d.mts +3 -3
- package/styles/useThemeProps.d.ts +3 -3
- package/transitions/utils.d.mts +24 -0
- package/transitions/utils.d.ts +24 -0
- package/transitions/utils.js +91 -0
- package/transitions/utils.mjs +88 -0
- package/useAutocomplete/useAutocomplete.d.mts +4 -5
- package/useAutocomplete/useAutocomplete.d.ts +4 -5
- package/useAutocomplete/useAutocomplete.js +166 -53
- package/useAutocomplete/useAutocomplete.mjs +166 -53
- package/utils/contains.d.mts +2 -0
- package/utils/contains.d.ts +2 -0
- package/utils/contains.js +9 -0
- package/utils/contains.mjs +2 -0
- package/utils/focusable.d.mts +7 -0
- package/utils/focusable.d.ts +7 -0
- package/utils/focusable.js +20 -0
- package/utils/focusable.mjs +13 -0
- package/utils/getEventTarget.d.mts +2 -0
- package/utils/getEventTarget.d.ts +2 -0
- package/utils/getEventTarget.js +9 -0
- package/utils/getEventTarget.mjs +2 -0
- package/utils/mergeSlotProps.js +2 -8
- package/utils/mergeSlotProps.mjs +1 -8
- package/version/index.js +3 -3
- package/version/index.mjs +3 -3
- package/FormControl/formControlState.js +0 -21
- package/FormControl/formControlState.mjs +0 -15
package/Collapse/Collapse.d.mts
CHANGED
|
@@ -84,18 +84,18 @@ export interface CollapseOwnerState extends CollapseProps {
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The Collapse transition is used by the
|
|
87
|
-
* [Vertical Stepper](https://
|
|
87
|
+
* [Vertical Stepper](https://mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
|
|
88
88
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
89
89
|
*
|
|
90
90
|
* Demos:
|
|
91
91
|
*
|
|
92
|
-
* - [Card](https://
|
|
93
|
-
* - [Lists](https://
|
|
94
|
-
* - [Transitions](https://
|
|
92
|
+
* - [Card](https://mui.com/material-ui/react-card/)
|
|
93
|
+
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
94
|
+
* - [Transitions](https://mui.com/material-ui/transitions/)
|
|
95
95
|
*
|
|
96
96
|
* API:
|
|
97
97
|
*
|
|
98
|
-
* - [Collapse API](https://
|
|
98
|
+
* - [Collapse API](https://mui.com/material-ui/api/collapse/)
|
|
99
99
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
|
|
100
100
|
*/
|
|
101
101
|
|
package/Collapse/Collapse.d.ts
CHANGED
|
@@ -84,18 +84,18 @@ export interface CollapseOwnerState extends CollapseProps {
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The Collapse transition is used by the
|
|
87
|
-
* [Vertical Stepper](https://
|
|
87
|
+
* [Vertical Stepper](https://mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
|
|
88
88
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
89
89
|
*
|
|
90
90
|
* Demos:
|
|
91
91
|
*
|
|
92
|
-
* - [Card](https://
|
|
93
|
-
* - [Lists](https://
|
|
94
|
-
* - [Transitions](https://
|
|
92
|
+
* - [Card](https://mui.com/material-ui/react-card/)
|
|
93
|
+
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
94
|
+
* - [Transitions](https://mui.com/material-ui/transitions/)
|
|
95
95
|
*
|
|
96
96
|
* API:
|
|
97
97
|
*
|
|
98
|
-
* - [Collapse API](https://
|
|
98
|
+
* - [Collapse API](https://mui.com/material-ui/api/collapse/)
|
|
99
99
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
|
|
100
100
|
*/
|
|
101
101
|
|
package/Collapse/Collapse.js
CHANGED
|
@@ -167,20 +167,8 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
167
167
|
const size = isHorizontal ? 'width' : 'height';
|
|
168
168
|
const nodeRef = React.useRef(null);
|
|
169
169
|
const handleRef = (0, _utils2.useForkRef)(ref, nodeRef);
|
|
170
|
-
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
171
|
-
if (callback) {
|
|
172
|
-
const node = nodeRef.current;
|
|
173
|
-
|
|
174
|
-
// onEnterXxx and onExitXxx callbacks have a different arguments.length value.
|
|
175
|
-
if (maybeIsAppearing === undefined) {
|
|
176
|
-
callback(node);
|
|
177
|
-
} else {
|
|
178
|
-
callback(node, maybeIsAppearing);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
170
|
const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
|
|
183
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
171
|
+
const handleEnter = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
|
|
184
172
|
if (wrapperRef.current && isHorizontal) {
|
|
185
173
|
// Set absolute position to get the size of collapsed content
|
|
186
174
|
wrapperRef.current.style.position = 'absolute';
|
|
@@ -190,7 +178,7 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
190
178
|
onEnter(node, isAppearing);
|
|
191
179
|
}
|
|
192
180
|
});
|
|
193
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
181
|
+
const handleEntering = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
|
|
194
182
|
const wrapperSize = getWrapperSize();
|
|
195
183
|
if (wrapperRef.current && isHorizontal) {
|
|
196
184
|
// After the size is read reset the position back to default
|
|
@@ -219,20 +207,20 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
219
207
|
onEntering(node, isAppearing);
|
|
220
208
|
}
|
|
221
209
|
});
|
|
222
|
-
const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
|
|
210
|
+
const handleEntered = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
|
|
223
211
|
node.style[size] = 'auto';
|
|
224
212
|
if (onEntered) {
|
|
225
213
|
onEntered(node, isAppearing);
|
|
226
214
|
}
|
|
227
215
|
});
|
|
228
|
-
const handleExit = normalizedTransitionCallback(node => {
|
|
216
|
+
const handleExit = (0, _utils.normalizedTransitionCallback)(nodeRef, node => {
|
|
229
217
|
node.style[size] = `${getWrapperSize()}px`;
|
|
230
218
|
if (onExit) {
|
|
231
219
|
onExit(node);
|
|
232
220
|
}
|
|
233
221
|
});
|
|
234
|
-
const handleExited = normalizedTransitionCallback(onExited);
|
|
235
|
-
const handleExiting = normalizedTransitionCallback(node => {
|
|
222
|
+
const handleExited = (0, _utils.normalizedTransitionCallback)(nodeRef, onExited);
|
|
223
|
+
const handleExiting = (0, _utils.normalizedTransitionCallback)(nodeRef, node => {
|
|
236
224
|
const wrapperSize = getWrapperSize();
|
|
237
225
|
const {
|
|
238
226
|
duration: transitionDuration,
|
package/Collapse/Collapse.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { styled, useTheme } from "../zero-styled/index.mjs";
|
|
|
11
11
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
12
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
13
13
|
import { duration } from "../styles/createTransitions.mjs";
|
|
14
|
-
import { getTransitionProps } from "../transitions/utils.mjs";
|
|
14
|
+
import { normalizedTransitionCallback, getTransitionProps } from "../transitions/utils.mjs";
|
|
15
15
|
import { useForkRef } from "../utils/index.mjs";
|
|
16
16
|
import useSlot from "../utils/useSlot.mjs";
|
|
17
17
|
import { getCollapseUtilityClass } from "./collapseClasses.mjs";
|
|
@@ -160,20 +160,8 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
160
160
|
const size = isHorizontal ? 'width' : 'height';
|
|
161
161
|
const nodeRef = React.useRef(null);
|
|
162
162
|
const handleRef = useForkRef(ref, nodeRef);
|
|
163
|
-
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
164
|
-
if (callback) {
|
|
165
|
-
const node = nodeRef.current;
|
|
166
|
-
|
|
167
|
-
// onEnterXxx and onExitXxx callbacks have a different arguments.length value.
|
|
168
|
-
if (maybeIsAppearing === undefined) {
|
|
169
|
-
callback(node);
|
|
170
|
-
} else {
|
|
171
|
-
callback(node, maybeIsAppearing);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
163
|
const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
|
|
176
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
164
|
+
const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
|
177
165
|
if (wrapperRef.current && isHorizontal) {
|
|
178
166
|
// Set absolute position to get the size of collapsed content
|
|
179
167
|
wrapperRef.current.style.position = 'absolute';
|
|
@@ -183,7 +171,7 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
183
171
|
onEnter(node, isAppearing);
|
|
184
172
|
}
|
|
185
173
|
});
|
|
186
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
174
|
+
const handleEntering = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
|
187
175
|
const wrapperSize = getWrapperSize();
|
|
188
176
|
if (wrapperRef.current && isHorizontal) {
|
|
189
177
|
// After the size is read reset the position back to default
|
|
@@ -212,20 +200,20 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
212
200
|
onEntering(node, isAppearing);
|
|
213
201
|
}
|
|
214
202
|
});
|
|
215
|
-
const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
|
|
203
|
+
const handleEntered = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
|
216
204
|
node.style[size] = 'auto';
|
|
217
205
|
if (onEntered) {
|
|
218
206
|
onEntered(node, isAppearing);
|
|
219
207
|
}
|
|
220
208
|
});
|
|
221
|
-
const handleExit = normalizedTransitionCallback(node => {
|
|
209
|
+
const handleExit = normalizedTransitionCallback(nodeRef, node => {
|
|
222
210
|
node.style[size] = `${getWrapperSize()}px`;
|
|
223
211
|
if (onExit) {
|
|
224
212
|
onExit(node);
|
|
225
213
|
}
|
|
226
214
|
});
|
|
227
|
-
const handleExited = normalizedTransitionCallback(onExited);
|
|
228
|
-
const handleExiting = normalizedTransitionCallback(node => {
|
|
215
|
+
const handleExited = normalizedTransitionCallback(nodeRef, onExited);
|
|
216
|
+
const handleExiting = normalizedTransitionCallback(nodeRef, node => {
|
|
229
217
|
const wrapperSize = getWrapperSize();
|
|
230
218
|
const {
|
|
231
219
|
duration: transitionDuration,
|
|
@@ -42,11 +42,11 @@ export interface ContainerTypeMap<AdditionalProps = {}, RootComponent extends Re
|
|
|
42
42
|
*
|
|
43
43
|
* Demos:
|
|
44
44
|
*
|
|
45
|
-
* - [Container](https://
|
|
45
|
+
* - [Container](https://mui.com/material-ui/react-container/)
|
|
46
46
|
*
|
|
47
47
|
* API:
|
|
48
48
|
*
|
|
49
|
-
* - [Container API](https://
|
|
49
|
+
* - [Container API](https://mui.com/material-ui/api/container/)
|
|
50
50
|
*/
|
|
51
51
|
declare const Container: OverridableComponent<ContainerTypeMap>;
|
|
52
52
|
export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
package/Container/Container.d.ts
CHANGED
|
@@ -42,11 +42,11 @@ export interface ContainerTypeMap<AdditionalProps = {}, RootComponent extends Re
|
|
|
42
42
|
*
|
|
43
43
|
* Demos:
|
|
44
44
|
*
|
|
45
|
-
* - [Container](https://
|
|
45
|
+
* - [Container](https://mui.com/material-ui/react-container/)
|
|
46
46
|
*
|
|
47
47
|
* API:
|
|
48
48
|
*
|
|
49
|
-
* - [Container API](https://
|
|
49
|
+
* - [Container API](https://mui.com/material-ui/api/container/)
|
|
50
50
|
*/
|
|
51
51
|
declare const Container: OverridableComponent<ContainerTypeMap>;
|
|
52
52
|
export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
@@ -19,10 +19,10 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
|
|
|
19
19
|
*
|
|
20
20
|
* Demos:
|
|
21
21
|
*
|
|
22
|
-
* - [CSS Baseline](https://
|
|
22
|
+
* - [CSS Baseline](https://mui.com/material-ui/react-css-baseline/)
|
|
23
23
|
*
|
|
24
24
|
* API:
|
|
25
25
|
*
|
|
26
|
-
* - [CssBaseline API](https://
|
|
26
|
+
* - [CssBaseline API](https://mui.com/material-ui/api/css-baseline/)
|
|
27
27
|
*/
|
|
28
28
|
export default function CssBaseline(props: CssBaselineProps): React.JSX.Element;
|
|
@@ -19,10 +19,10 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
|
|
|
19
19
|
*
|
|
20
20
|
* Demos:
|
|
21
21
|
*
|
|
22
|
-
* - [CSS Baseline](https://
|
|
22
|
+
* - [CSS Baseline](https://mui.com/material-ui/react-css-baseline/)
|
|
23
23
|
*
|
|
24
24
|
* API:
|
|
25
25
|
*
|
|
26
|
-
* - [CssBaseline API](https://
|
|
26
|
+
* - [CssBaseline API](https://mui.com/material-ui/api/css-baseline/)
|
|
27
27
|
*/
|
|
28
28
|
export default function CssBaseline(props: CssBaselineProps): React.JSX.Element;
|
package/Dialog/Dialog.d.mts
CHANGED
|
@@ -155,12 +155,12 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
|
|
|
155
155
|
*
|
|
156
156
|
* Demos:
|
|
157
157
|
*
|
|
158
|
-
* - [Dialog](https://
|
|
158
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
159
159
|
*
|
|
160
160
|
* API:
|
|
161
161
|
*
|
|
162
|
-
* - [Dialog API](https://
|
|
163
|
-
* - inherits [Modal API](https://
|
|
162
|
+
* - [Dialog API](https://mui.com/material-ui/api/dialog/)
|
|
163
|
+
* - inherits [Modal API](https://mui.com/material-ui/api/modal/)
|
|
164
164
|
*/
|
|
165
165
|
export default function Dialog(props: DialogProps): React.JSX.Element;
|
|
166
166
|
export interface DialogOwnerState extends Omit<DialogProps, 'slots' | 'slotProps'> {}
|
package/Dialog/Dialog.d.ts
CHANGED
|
@@ -155,12 +155,12 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
|
|
|
155
155
|
*
|
|
156
156
|
* Demos:
|
|
157
157
|
*
|
|
158
|
-
* - [Dialog](https://
|
|
158
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
159
159
|
*
|
|
160
160
|
* API:
|
|
161
161
|
*
|
|
162
|
-
* - [Dialog API](https://
|
|
163
|
-
* - inherits [Modal API](https://
|
|
162
|
+
* - [Dialog API](https://mui.com/material-ui/api/dialog/)
|
|
163
|
+
* - inherits [Modal API](https://mui.com/material-ui/api/modal/)
|
|
164
164
|
*/
|
|
165
165
|
export default function Dialog(props: DialogProps): React.JSX.Element;
|
|
166
166
|
export interface DialogOwnerState extends Omit<DialogProps, 'slots' | 'slotProps'> {}
|
package/Dialog/Dialog.js
CHANGED
|
@@ -23,6 +23,7 @@ var _zeroStyled = require("../zero-styled");
|
|
|
23
23
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
24
24
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
25
25
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
26
|
+
var _focusable = require("../utils/focusable");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
const DialogBackdrop = (0, _zeroStyled.styled)(_Backdrop.default, {
|
|
28
29
|
name: 'MuiDialog',
|
|
@@ -298,7 +299,16 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
298
299
|
shouldForwardComponentProp: true,
|
|
299
300
|
externalForwardedProps,
|
|
300
301
|
ownerState,
|
|
301
|
-
className: classes.paper
|
|
302
|
+
className: classes.paper,
|
|
303
|
+
additionalProps: {
|
|
304
|
+
elevation: 24,
|
|
305
|
+
role,
|
|
306
|
+
'aria-describedby': ariaDescribedby,
|
|
307
|
+
'aria-labelledby': ariaLabelledby,
|
|
308
|
+
'aria-modal': ariaModal,
|
|
309
|
+
tabIndex: -1,
|
|
310
|
+
[_focusable.FOCUSABLE_ATTRIBUTE]: ''
|
|
311
|
+
}
|
|
302
312
|
});
|
|
303
313
|
const [ContainerSlot, containerSlotProps] = (0, _useSlot.default)('container', {
|
|
304
314
|
elementType: DialogContainer,
|
|
@@ -340,11 +350,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
340
350
|
...containerSlotProps,
|
|
341
351
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {
|
|
342
352
|
as: PaperComponent,
|
|
343
|
-
elevation: 24,
|
|
344
|
-
role: role,
|
|
345
|
-
"aria-describedby": ariaDescribedby,
|
|
346
|
-
"aria-labelledby": ariaLabelledby,
|
|
347
|
-
"aria-modal": ariaModal,
|
|
348
353
|
...paperSlotProps,
|
|
349
354
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DialogContext.default.Provider, {
|
|
350
355
|
value: dialogContextValue,
|
package/Dialog/Dialog.mjs
CHANGED
|
@@ -16,6 +16,7 @@ import { styled, useTheme } from "../zero-styled/index.mjs";
|
|
|
16
16
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
17
17
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
18
18
|
import useSlot from "../utils/useSlot.mjs";
|
|
19
|
+
import { FOCUSABLE_ATTRIBUTE } from "../utils/focusable.mjs";
|
|
19
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
21
|
const DialogBackdrop = styled(Backdrop, {
|
|
21
22
|
name: 'MuiDialog',
|
|
@@ -291,7 +292,16 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
291
292
|
shouldForwardComponentProp: true,
|
|
292
293
|
externalForwardedProps,
|
|
293
294
|
ownerState,
|
|
294
|
-
className: classes.paper
|
|
295
|
+
className: classes.paper,
|
|
296
|
+
additionalProps: {
|
|
297
|
+
elevation: 24,
|
|
298
|
+
role,
|
|
299
|
+
'aria-describedby': ariaDescribedby,
|
|
300
|
+
'aria-labelledby': ariaLabelledby,
|
|
301
|
+
'aria-modal': ariaModal,
|
|
302
|
+
tabIndex: -1,
|
|
303
|
+
[FOCUSABLE_ATTRIBUTE]: ''
|
|
304
|
+
}
|
|
295
305
|
});
|
|
296
306
|
const [ContainerSlot, containerSlotProps] = useSlot('container', {
|
|
297
307
|
elementType: DialogContainer,
|
|
@@ -333,11 +343,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
333
343
|
...containerSlotProps,
|
|
334
344
|
children: /*#__PURE__*/_jsx(PaperSlot, {
|
|
335
345
|
as: PaperComponent,
|
|
336
|
-
elevation: 24,
|
|
337
|
-
role: role,
|
|
338
|
-
"aria-describedby": ariaDescribedby,
|
|
339
|
-
"aria-labelledby": ariaLabelledby,
|
|
340
|
-
"aria-modal": ariaModal,
|
|
341
346
|
...paperSlotProps,
|
|
342
347
|
children: /*#__PURE__*/_jsx(DialogContext.Provider, {
|
|
343
348
|
value: dialogContextValue,
|
|
@@ -27,10 +27,10 @@ export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogActions API](https://
|
|
34
|
+
* - [DialogActions API](https://mui.com/material-ui/api/dialog-actions/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogActions(props: DialogActionsProps): React.JSX.Element;
|
|
@@ -27,10 +27,10 @@ export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogActions API](https://
|
|
34
|
+
* - [DialogActions API](https://mui.com/material-ui/api/dialog-actions/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogActions(props: DialogActionsProps): React.JSX.Element;
|
|
@@ -27,10 +27,10 @@ export interface DialogContentProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogContent API](https://
|
|
34
|
+
* - [DialogContent API](https://mui.com/material-ui/api/dialog-content/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogContent(props: DialogContentProps): React.JSX.Element;
|
|
@@ -27,10 +27,10 @@ export interface DialogContentProps extends StandardProps<React.HTMLAttributes<H
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogContent API](https://
|
|
34
|
+
* - [DialogContent API](https://mui.com/material-ui/api/dialog-content/)
|
|
35
35
|
*/
|
|
36
36
|
export default function DialogContent(props: DialogContentProps): React.JSX.Element;
|
|
@@ -23,12 +23,12 @@ export interface DialogContentTextTypeMap<AdditionalProps = {}, RootComponent ex
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Dialog](https://
|
|
26
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [DialogContentText API](https://
|
|
31
|
-
* - inherits [Typography API](https://
|
|
30
|
+
* - [DialogContentText API](https://mui.com/material-ui/api/dialog-content-text/)
|
|
31
|
+
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
32
32
|
*/
|
|
33
33
|
declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
|
|
34
34
|
export type DialogContentTextProps<RootComponent extends React.ElementType = DialogContentTextTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DialogContentTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
@@ -23,12 +23,12 @@ export interface DialogContentTextTypeMap<AdditionalProps = {}, RootComponent ex
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Dialog](https://
|
|
26
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [DialogContentText API](https://
|
|
31
|
-
* - inherits [Typography API](https://
|
|
30
|
+
* - [DialogContentText API](https://mui.com/material-ui/api/dialog-content-text/)
|
|
31
|
+
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
32
32
|
*/
|
|
33
33
|
declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
|
|
34
34
|
export type DialogContentTextProps<RootComponent extends React.ElementType = DialogContentTextTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DialogContentTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
@@ -27,12 +27,12 @@ export interface DialogTitleTypeMap<AdditionalProps = {}, RootComponent extends
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogTitle API](https://
|
|
35
|
-
* - inherits [Typography API](https://
|
|
34
|
+
* - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
|
|
35
|
+
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
36
36
|
*/
|
|
37
37
|
declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
|
|
38
38
|
export type DialogTitleProps<RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'], AdditionalProps = {
|
|
@@ -27,12 +27,12 @@ export interface DialogTitleTypeMap<AdditionalProps = {}, RootComponent extends
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Dialog](https://
|
|
30
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [DialogTitle API](https://
|
|
35
|
-
* - inherits [Typography API](https://
|
|
34
|
+
* - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
|
|
35
|
+
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
36
36
|
*/
|
|
37
37
|
declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
|
|
38
38
|
export type DialogTitleProps<RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'], AdditionalProps = {
|
package/Divider/Divider.d.mts
CHANGED
|
@@ -54,13 +54,13 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
|
|
|
54
54
|
*
|
|
55
55
|
* Demos:
|
|
56
56
|
*
|
|
57
|
-
* - [Divider](https://
|
|
58
|
-
* - [Lists](https://
|
|
59
|
-
* - [Menubar](https://
|
|
57
|
+
* - [Divider](https://mui.com/material-ui/react-divider/)
|
|
58
|
+
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
59
|
+
* - [Menubar](https://mui.com/material-ui/react-menubar/)
|
|
60
60
|
*
|
|
61
61
|
* API:
|
|
62
62
|
*
|
|
63
|
-
* - [Divider API](https://
|
|
63
|
+
* - [Divider API](https://mui.com/material-ui/api/divider/)
|
|
64
64
|
*/
|
|
65
65
|
declare const Divider: OverridableComponent<DividerTypeMap>;
|
|
66
66
|
export type DividerProps<RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -54,13 +54,13 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
|
|
|
54
54
|
*
|
|
55
55
|
* Demos:
|
|
56
56
|
*
|
|
57
|
-
* - [Divider](https://
|
|
58
|
-
* - [Lists](https://
|
|
59
|
-
* - [Menubar](https://
|
|
57
|
+
* - [Divider](https://mui.com/material-ui/react-divider/)
|
|
58
|
+
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
59
|
+
* - [Menubar](https://mui.com/material-ui/react-menubar/)
|
|
60
60
|
*
|
|
61
61
|
* API:
|
|
62
62
|
*
|
|
63
|
-
* - [Divider API](https://
|
|
63
|
+
* - [Divider API](https://mui.com/material-ui/api/divider/)
|
|
64
64
|
*/
|
|
65
65
|
declare const Divider: OverridableComponent<DividerTypeMap>;
|
|
66
66
|
export type DividerProps<RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
package/Drawer/Drawer.d.mts
CHANGED
|
@@ -129,15 +129,15 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
129
129
|
export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The props of the [Modal](https://
|
|
132
|
+
* The props of the [Modal](https://mui.com/material-ui/api/modal/) component are available
|
|
133
133
|
* when `variant="temporary"` is set.
|
|
134
134
|
*
|
|
135
135
|
* Demos:
|
|
136
136
|
*
|
|
137
|
-
* - [Drawer](https://
|
|
137
|
+
* - [Drawer](https://mui.com/material-ui/react-drawer/)
|
|
138
138
|
*
|
|
139
139
|
* API:
|
|
140
140
|
*
|
|
141
|
-
* - [Drawer API](https://
|
|
141
|
+
* - [Drawer API](https://mui.com/material-ui/api/drawer/)
|
|
142
142
|
*/
|
|
143
143
|
export default function Drawer(props: DrawerProps): React.JSX.Element;
|
package/Drawer/Drawer.d.ts
CHANGED
|
@@ -129,15 +129,15 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
129
129
|
export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The props of the [Modal](https://
|
|
132
|
+
* The props of the [Modal](https://mui.com/material-ui/api/modal/) component are available
|
|
133
133
|
* when `variant="temporary"` is set.
|
|
134
134
|
*
|
|
135
135
|
* Demos:
|
|
136
136
|
*
|
|
137
|
-
* - [Drawer](https://
|
|
137
|
+
* - [Drawer](https://mui.com/material-ui/react-drawer/)
|
|
138
138
|
*
|
|
139
139
|
* API:
|
|
140
140
|
*
|
|
141
|
-
* - [Drawer API](https://
|
|
141
|
+
* - [Drawer API](https://mui.com/material-ui/api/drawer/)
|
|
142
142
|
*/
|
|
143
143
|
export default function Drawer(props: DrawerProps): React.JSX.Element;
|
package/Drawer/Drawer.js
CHANGED
|
@@ -23,8 +23,10 @@ var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShoul
|
|
|
23
23
|
var _zeroStyled = require("../zero-styled");
|
|
24
24
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
25
25
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
26
|
+
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
26
27
|
var _drawerClasses = require("./drawerClasses");
|
|
27
28
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
29
|
+
var _focusable = require("../utils/focusable");
|
|
28
30
|
var _utils = require("../utils");
|
|
29
31
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
32
|
const overridesResolver = (props, styles) => {
|
|
@@ -67,10 +69,7 @@ const DrawerDockedRoot = (0, _zeroStyled.styled)('div', {
|
|
|
67
69
|
});
|
|
68
70
|
const DrawerPaper = (0, _zeroStyled.styled)(_Paper.default, {
|
|
69
71
|
name: 'MuiDrawer',
|
|
70
|
-
slot: 'Paper'
|
|
71
|
-
overridesResolver: (props, styles) => {
|
|
72
|
-
return [styles.paper];
|
|
73
|
-
}
|
|
72
|
+
slot: 'Paper'
|
|
74
73
|
})((0, _memoTheme.default)(({
|
|
75
74
|
theme
|
|
76
75
|
}) => ({
|
|
@@ -206,9 +205,15 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
206
205
|
// We use this state is order to skip the appear transition during the
|
|
207
206
|
// initial mount of the component.
|
|
208
207
|
const mounted = React.useRef(false);
|
|
208
|
+
const rootRef = React.useRef(null);
|
|
209
|
+
const handleRef = (0, _useForkRef.default)(ref, rootRef);
|
|
209
210
|
React.useEffect(() => {
|
|
210
211
|
mounted.current = true;
|
|
211
212
|
}, []);
|
|
213
|
+
|
|
214
|
+
// Resolve the container lazily so Slide reads the mounted modal root
|
|
215
|
+
// after refs are assigned, rather than the initial null ref during render.
|
|
216
|
+
const resolveSlideContainer = React.useCallback(() => rootRef.current, []);
|
|
212
217
|
const anchorInvariant = getAnchor({
|
|
213
218
|
direction: isRtl ? 'rtl' : 'ltr'
|
|
214
219
|
}, anchorProp);
|
|
@@ -232,7 +237,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
232
237
|
}
|
|
233
238
|
};
|
|
234
239
|
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
|
235
|
-
ref,
|
|
240
|
+
ref: handleRef,
|
|
236
241
|
elementType: DrawerRoot,
|
|
237
242
|
className: (0, _clsx.default)(classes.root, classes.modal, className),
|
|
238
243
|
shouldForwardComponentProp: true,
|
|
@@ -243,6 +248,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
243
248
|
...ModalProps
|
|
244
249
|
},
|
|
245
250
|
additionalProps: {
|
|
251
|
+
closeAfterTransition: true,
|
|
246
252
|
open,
|
|
247
253
|
onClose,
|
|
248
254
|
hideBackdrop,
|
|
@@ -265,13 +271,15 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
265
271
|
square: true,
|
|
266
272
|
...(variant === 'temporary' && {
|
|
267
273
|
role: 'dialog',
|
|
268
|
-
'aria-modal': 'true'
|
|
274
|
+
'aria-modal': 'true',
|
|
275
|
+
[_focusable.FOCUSABLE_ATTRIBUTE]: '',
|
|
276
|
+
tabIndex: -1
|
|
269
277
|
})
|
|
270
278
|
}
|
|
271
279
|
});
|
|
272
280
|
const [DockedSlot, dockedSlotProps] = (0, _useSlot.default)('docked', {
|
|
273
281
|
elementType: DrawerDockedRoot,
|
|
274
|
-
ref,
|
|
282
|
+
ref: handleRef,
|
|
275
283
|
className: (0, _clsx.default)(classes.root, classes.docked, className),
|
|
276
284
|
ownerState,
|
|
277
285
|
externalForwardedProps,
|
|
@@ -285,7 +293,10 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
285
293
|
in: open,
|
|
286
294
|
direction: oppositeDirection[anchorInvariant],
|
|
287
295
|
timeout: transitionDuration,
|
|
288
|
-
appear: mounted.current
|
|
296
|
+
appear: mounted.current,
|
|
297
|
+
...(variant === 'temporary' && (slots.transition == null || slots.transition === _Slide.default) && {
|
|
298
|
+
container: resolveSlideContainer
|
|
299
|
+
})
|
|
289
300
|
}
|
|
290
301
|
});
|
|
291
302
|
const drawer = /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {
|