@mui/material 6.4.4 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +3 -3
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.ts +4 -4
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +24 -2272
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Chip/Chip.d.ts +2 -2
- package/CircularProgress/CircularProgress.d.ts +3 -7
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +3 -3
- package/Collapse/Collapse.d.ts +5 -5
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.ts +3 -3
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.ts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormLabel/FormLabel.d.ts +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grid2/Grid2.d.ts +2 -2
- package/Grid2/Grid2.js +2 -2
- package/Grow/Grow.d.ts +5 -5
- package/Hidden/Hidden.d.ts +2 -2
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputLabel/InputLabel.d.ts +3 -3
- package/LinearProgress/LinearProgress.d.ts +3 -7
- package/Link/Link.d.ts +4 -4
- package/List/List.d.ts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +4 -4
- package/Menu/Menu.js +6 -2
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +4 -72
- package/MobileStepper/MobileStepper.js +18 -76
- package/Modal/Modal.d.ts +7 -7
- package/Modal/Modal.js +9 -10
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NoSsr/NoSsr.d.ts +2 -2
- package/NoSsr/NoSsr.js +2 -2
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Paper/Paper.d.ts +3 -3
- package/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/PigmentContainer/PigmentContainer.js +2 -2
- package/PigmentGrid/PigmentGrid.d.ts +2 -2
- package/PigmentGrid/PigmentGrid.js +2 -2
- package/PigmentHidden/PigmentHidden.d.ts +2 -2
- package/PigmentHidden/PigmentHidden.js +2 -2
- package/PigmentStack/PigmentStack.d.ts +2 -2
- package/PigmentStack/PigmentStack.js +2 -2
- package/Popover/Popover.d.ts +64 -10
- package/Popover/Popover.js +78 -51
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Portal/Portal.d.ts +2 -2
- package/Portal/Portal.js +2 -2
- package/README.md +4 -3
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.ts +4 -4
- package/Slider/Slider.d.ts +20 -11
- package/Slider/Slider.js +2 -2
- package/Slider/sliderClasses.d.ts +7 -21
- package/Snackbar/Snackbar.d.ts +80 -3
- package/Snackbar/Snackbar.js +122 -32
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +2 -2
- package/StepIcon/StepIcon.d.ts +3 -3
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Tab/Tab.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/Tabs/Tabs.d.ts +2 -2
- package/TextField/TextField.d.ts +10 -10
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +2 -2
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +33 -1
- package/internal/SwitchBase.js +84 -30
- package/modern/ClickAwayListener/ClickAwayListener.js +3 -3
- package/modern/Grid2/Grid2.js +2 -2
- package/modern/Menu/Menu.js +6 -2
- package/modern/MobileStepper/MobileStepper.js +18 -76
- package/modern/Modal/Modal.js +9 -10
- package/modern/NoSsr/NoSsr.js +2 -2
- package/modern/PigmentContainer/PigmentContainer.js +2 -2
- package/modern/PigmentGrid/PigmentGrid.js +2 -2
- package/modern/PigmentHidden/PigmentHidden.js +2 -2
- package/modern/PigmentStack/PigmentStack.js +2 -2
- package/modern/Popover/Popover.js +78 -51
- package/modern/Popper/Popper.js +4 -4
- package/modern/Portal/Portal.js +2 -2
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +122 -32
- package/modern/TextareaAutosize/TextareaAutosize.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +84 -30
- package/modern/version/index.js +5 -5
- package/node/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node/Grid2/Grid2.js +2 -2
- package/node/Menu/Menu.js +6 -2
- package/node/MobileStepper/MobileStepper.js +18 -76
- package/node/Modal/Modal.js +9 -10
- package/node/NoSsr/NoSsr.js +2 -2
- package/node/PigmentContainer/PigmentContainer.js +2 -2
- package/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node/PigmentHidden/PigmentHidden.js +2 -2
- package/node/PigmentStack/PigmentStack.js +2 -2
- package/node/Popover/Popover.js +78 -51
- package/node/Popper/Popper.js +4 -4
- package/node/Portal/Portal.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +122 -32
- package/node/TextareaAutosize/TextareaAutosize.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +84 -30
- package/node/version/index.js +5 -5
- package/package.json +7 -7
- package/version/index.js +5 -5
package/Modal/Modal.d.ts
CHANGED
|
@@ -211,23 +211,23 @@ export declare const ModalRoot: React.FC<ModalRootProps>;
|
|
|
211
211
|
/**
|
|
212
212
|
* Modal is a lower-level construct that is leveraged by the following components:
|
|
213
213
|
*
|
|
214
|
-
* * [Dialog](https://mui.com/material-ui/api/dialog/)
|
|
215
|
-
* * [Drawer](https://mui.com/material-ui/api/drawer/)
|
|
216
|
-
* * [Menu](https://mui.com/material-ui/api/menu/)
|
|
217
|
-
* * [Popover](https://mui.com/material-ui/api/popover/)
|
|
214
|
+
* * [Dialog](https://next.mui.com/material-ui/api/dialog/)
|
|
215
|
+
* * [Drawer](https://next.mui.com/material-ui/api/drawer/)
|
|
216
|
+
* * [Menu](https://next.mui.com/material-ui/api/menu/)
|
|
217
|
+
* * [Popover](https://next.mui.com/material-ui/api/popover/)
|
|
218
218
|
*
|
|
219
|
-
* If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/material-ui/api/dialog/) component
|
|
219
|
+
* If you are creating a modal dialog, you probably want to use the [Dialog](https://next.mui.com/material-ui/api/dialog/) component
|
|
220
220
|
* rather than directly using Modal.
|
|
221
221
|
*
|
|
222
222
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
|
223
223
|
*
|
|
224
224
|
* Demos:
|
|
225
225
|
*
|
|
226
|
-
* - [Modal](https://mui.com/material-ui/react-modal/)
|
|
226
|
+
* - [Modal](https://next.mui.com/material-ui/react-modal/)
|
|
227
227
|
*
|
|
228
228
|
* API:
|
|
229
229
|
*
|
|
230
|
-
* - [Modal API](https://mui.com/material-ui/api/modal/)
|
|
230
|
+
* - [Modal API](https://next.mui.com/material-ui/api/modal/)
|
|
231
231
|
*/
|
|
232
232
|
declare const Modal: OverridableComponent<ModalTypeMap>;
|
|
233
233
|
|
package/Modal/Modal.js
CHANGED
|
@@ -15,7 +15,6 @@ import Backdrop from "../Backdrop/index.js";
|
|
|
15
15
|
import useModal from "./useModal.js";
|
|
16
16
|
import { getModalUtilityClass } from "./modalClasses.js";
|
|
17
17
|
import useSlot from "../utils/useSlot.js";
|
|
18
|
-
import { useForkRef } from "../utils/index.js";
|
|
19
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
const useUtilityClasses = ownerState => {
|
|
21
20
|
const {
|
|
@@ -158,7 +157,6 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
158
157
|
childProps.onExited = onExited;
|
|
159
158
|
}
|
|
160
159
|
const externalForwardedProps = {
|
|
161
|
-
...other,
|
|
162
160
|
slots: {
|
|
163
161
|
root: components.Root,
|
|
164
162
|
backdrop: components.Backdrop,
|
|
@@ -170,19 +168,22 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
170
168
|
}
|
|
171
169
|
};
|
|
172
170
|
const [RootSlot, rootProps] = useSlot('root', {
|
|
171
|
+
ref,
|
|
173
172
|
elementType: ModalRoot,
|
|
174
|
-
externalForwardedProps
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
as: component
|
|
173
|
+
externalForwardedProps: {
|
|
174
|
+
...externalForwardedProps,
|
|
175
|
+
...other,
|
|
176
|
+
component
|
|
179
177
|
},
|
|
178
|
+
getSlotProps: getRootProps,
|
|
180
179
|
ownerState,
|
|
181
180
|
className: clsx(className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)
|
|
182
181
|
});
|
|
183
182
|
const [BackdropSlot, backdropProps] = useSlot('backdrop', {
|
|
183
|
+
ref: BackdropProps?.ref,
|
|
184
184
|
elementType: BackdropComponent,
|
|
185
185
|
externalForwardedProps,
|
|
186
|
+
shouldForwardComponentProp: true,
|
|
186
187
|
additionalProps: BackdropProps,
|
|
187
188
|
getSlotProps: otherHandlers => {
|
|
188
189
|
return getBackdropProps({
|
|
@@ -200,7 +201,6 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
200
201
|
className: clsx(BackdropProps?.className, classes?.backdrop),
|
|
201
202
|
ownerState
|
|
202
203
|
});
|
|
203
|
-
const backdropRef = useForkRef(BackdropProps?.ref, backdropProps.ref);
|
|
204
204
|
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
@@ -211,8 +211,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
211
211
|
children: /*#__PURE__*/_jsxs(RootSlot, {
|
|
212
212
|
...rootProps,
|
|
213
213
|
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/_jsx(BackdropSlot, {
|
|
214
|
-
...backdropProps
|
|
215
|
-
ref: backdropRef
|
|
214
|
+
...backdropProps
|
|
216
215
|
}) : null, /*#__PURE__*/_jsx(FocusTrap, {
|
|
217
216
|
disableEnforceFocus: disableEnforceFocus,
|
|
218
217
|
disableAutoFocus: disableAutoFocus,
|
|
@@ -57,12 +57,12 @@ export interface NativeSelectProps
|
|
|
57
57
|
*
|
|
58
58
|
* Demos:
|
|
59
59
|
*
|
|
60
|
-
* - [Select](https://mui.com/material-ui/react-select/)
|
|
60
|
+
* - [Select](https://next.mui.com/material-ui/react-select/)
|
|
61
61
|
*
|
|
62
62
|
* API:
|
|
63
63
|
*
|
|
64
|
-
* - [NativeSelect API](https://mui.com/material-ui/api/native-select/)
|
|
65
|
-
* - inherits [Input API](https://mui.com/material-ui/api/input/)
|
|
64
|
+
* - [NativeSelect API](https://next.mui.com/material-ui/api/native-select/)
|
|
65
|
+
* - inherits [Input API](https://next.mui.com/material-ui/api/input/)
|
|
66
66
|
*/
|
|
67
67
|
declare const NativeSelect: ((props: NativeSelectProps) => React.JSX.Element) & { muiName: string };
|
|
68
68
|
|
package/NoSsr/NoSsr.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ import { NoSsrProps } from './NoSsr.types';
|
|
|
12
12
|
*
|
|
13
13
|
* Demos:
|
|
14
14
|
*
|
|
15
|
-
* - [No SSR](https://mui.com/material-ui/react-no-ssr/)
|
|
15
|
+
* - [No SSR](https://next.mui.com/material-ui/react-no-ssr/)
|
|
16
16
|
*
|
|
17
17
|
* API:
|
|
18
18
|
*
|
|
19
|
-
* - [NoSsr API](https://mui.com/material-ui/api/no-ssr/)
|
|
19
|
+
* - [NoSsr API](https://next.mui.com/material-ui/api/no-ssr/)
|
|
20
20
|
*/
|
|
21
21
|
declare function NoSsr(props: NoSsrProps): React.JSX.Element;
|
|
22
22
|
declare namespace NoSsr {
|
package/NoSsr/NoSsr.js
CHANGED
|
@@ -15,11 +15,11 @@ import { exactProp, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui
|
|
|
15
15
|
*
|
|
16
16
|
* Demos:
|
|
17
17
|
*
|
|
18
|
-
* - [No SSR](https://mui.com/material-ui/react-no-ssr/)
|
|
18
|
+
* - [No SSR](https://next.mui.com/material-ui/react-no-ssr/)
|
|
19
19
|
*
|
|
20
20
|
* API:
|
|
21
21
|
*
|
|
22
|
-
* - [NoSsr API](https://mui.com/material-ui/api/no-ssr/)
|
|
22
|
+
* - [NoSsr API](https://next.mui.com/material-ui/api/no-ssr/)
|
|
23
23
|
*/
|
|
24
24
|
function NoSsr(props) {
|
|
25
25
|
const {
|
|
@@ -28,12 +28,12 @@ export interface OutlinedInputProps extends StandardProps<InputBaseProps> {
|
|
|
28
28
|
*
|
|
29
29
|
* Demos:
|
|
30
30
|
*
|
|
31
|
-
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
31
|
+
* - [Text Field](https://next.mui.com/material-ui/react-text-field/)
|
|
32
32
|
*
|
|
33
33
|
* API:
|
|
34
34
|
*
|
|
35
|
-
* - [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
|
|
36
|
-
* - inherits [InputBase API](https://mui.com/material-ui/api/input-base/)
|
|
35
|
+
* - [OutlinedInput API](https://next.mui.com/material-ui/api/outlined-input/)
|
|
36
|
+
* - inherits [InputBase API](https://next.mui.com/material-ui/api/input-base/)
|
|
37
37
|
*/
|
|
38
38
|
declare const OutlinedInput: ((props: OutlinedInputProps) => React.JSX.Element) & {
|
|
39
39
|
muiName: string;
|
|
@@ -84,10 +84,10 @@ export interface PaginationProps
|
|
|
84
84
|
*
|
|
85
85
|
* Demos:
|
|
86
86
|
*
|
|
87
|
-
* - [Pagination](https://mui.com/material-ui/react-pagination/)
|
|
87
|
+
* - [Pagination](https://next.mui.com/material-ui/react-pagination/)
|
|
88
88
|
*
|
|
89
89
|
* API:
|
|
90
90
|
*
|
|
91
|
-
* - [Pagination API](https://mui.com/material-ui/api/pagination/)
|
|
91
|
+
* - [Pagination API](https://next.mui.com/material-ui/api/pagination/)
|
|
92
92
|
*/
|
|
93
93
|
export default function Pagination(props: PaginationProps): React.JSX.Element;
|
|
@@ -118,11 +118,11 @@ export interface PaginationItemTypeMap<
|
|
|
118
118
|
*
|
|
119
119
|
* Demos:
|
|
120
120
|
*
|
|
121
|
-
* - [Pagination](https://mui.com/material-ui/react-pagination/)
|
|
121
|
+
* - [Pagination](https://next.mui.com/material-ui/react-pagination/)
|
|
122
122
|
*
|
|
123
123
|
* API:
|
|
124
124
|
*
|
|
125
|
-
* - [PaginationItem API](https://mui.com/material-ui/api/pagination-item/)
|
|
125
|
+
* - [PaginationItem API](https://next.mui.com/material-ui/api/pagination-item/)
|
|
126
126
|
*/
|
|
127
127
|
declare const PaginationItem: OverridableComponent<PaginationItemTypeMap>;
|
|
128
128
|
|
package/Paper/Paper.d.ts
CHANGED
|
@@ -50,12 +50,12 @@ export interface PaperTypeMap<
|
|
|
50
50
|
*
|
|
51
51
|
* Demos:
|
|
52
52
|
*
|
|
53
|
-
* - [Card](https://mui.com/material-ui/react-card/)
|
|
54
|
-
* - [Paper](https://mui.com/material-ui/react-paper/)
|
|
53
|
+
* - [Card](https://next.mui.com/material-ui/react-card/)
|
|
54
|
+
* - [Paper](https://next.mui.com/material-ui/react-paper/)
|
|
55
55
|
*
|
|
56
56
|
* API:
|
|
57
57
|
*
|
|
58
|
-
* - [Paper API](https://mui.com/material-ui/api/paper/)
|
|
58
|
+
* - [Paper API](https://next.mui.com/material-ui/api/paper/)
|
|
59
59
|
*/
|
|
60
60
|
declare const Paper: OverridableComponent<PaperTypeMap>;
|
|
61
61
|
|
|
@@ -45,11 +45,11 @@ export type PigmentContainerProps<RootComponent extends React.ElementType = Pigm
|
|
|
45
45
|
*
|
|
46
46
|
* Demos:
|
|
47
47
|
*
|
|
48
|
-
* - [Container](https://mui.com/material-ui/react-container/)
|
|
48
|
+
* - [Container](https://next.mui.com/material-ui/react-container/)
|
|
49
49
|
*
|
|
50
50
|
* API:
|
|
51
51
|
*
|
|
52
|
-
* - [PigmentContainer API](https://mui.com/material-ui/api/pigment-container/)
|
|
52
|
+
* - [PigmentContainer API](https://next.mui.com/material-ui/api/pigment-container/)
|
|
53
53
|
*/
|
|
54
54
|
declare const PigmentContainer: OverridableComponent<PigmentContainerTypeMap>;
|
|
55
55
|
export default PigmentContainer;
|
|
@@ -23,11 +23,11 @@ const useUtilityClasses = ownerState => {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Container](https://mui.com/material-ui/react-container/)
|
|
26
|
+
* - [Container](https://next.mui.com/material-ui/react-container/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [PigmentContainer API](https://mui.com/material-ui/api/pigment-container/)
|
|
30
|
+
* - [PigmentContainer API](https://next.mui.com/material-ui/api/pigment-container/)
|
|
31
31
|
*/
|
|
32
32
|
const PigmentContainer = /*#__PURE__*/React.forwardRef(function PigmentContainer({
|
|
33
33
|
className,
|
|
@@ -75,11 +75,11 @@ export type GridProps<RootComponent extends React.ElementType = GridTypeMap['def
|
|
|
75
75
|
*
|
|
76
76
|
* Demos:
|
|
77
77
|
*
|
|
78
|
-
* - [Grid version 2](https://mui.com/material-ui/react-grid2/)
|
|
78
|
+
* - [Grid version 2](https://next.mui.com/material-ui/react-grid2/)
|
|
79
79
|
*
|
|
80
80
|
* API:
|
|
81
81
|
*
|
|
82
|
-
* - [PigmentGrid API](https://mui.com/material-ui/api/pigment-grid/)
|
|
82
|
+
* - [PigmentGrid API](https://next.mui.com/material-ui/api/pigment-grid/)
|
|
83
83
|
*/
|
|
84
84
|
declare const PigmentGrid: OverridableComponent<GridTypeMap>;
|
|
85
85
|
export default PigmentGrid;
|
|
@@ -37,11 +37,11 @@ const useUtilityClasses = ownerState => {
|
|
|
37
37
|
*
|
|
38
38
|
* Demos:
|
|
39
39
|
*
|
|
40
|
-
* - [Grid version 2](https://mui.com/material-ui/react-grid2/)
|
|
40
|
+
* - [Grid version 2](https://next.mui.com/material-ui/react-grid2/)
|
|
41
41
|
*
|
|
42
42
|
* API:
|
|
43
43
|
*
|
|
44
|
-
* - [PigmentGrid API](https://mui.com/material-ui/api/pigment-grid/)
|
|
44
|
+
* - [PigmentGrid API](https://next.mui.com/material-ui/api/pigment-grid/)
|
|
45
45
|
*/
|
|
46
46
|
const PigmentGrid = /*#__PURE__*/React.forwardRef(function PigmentGrid(props, ref) {
|
|
47
47
|
const {
|
|
@@ -82,11 +82,11 @@ export interface HiddenProps {
|
|
|
82
82
|
*
|
|
83
83
|
* Demos:
|
|
84
84
|
*
|
|
85
|
-
* - [Hidden](https://mui.com/material-ui/react-hidden/)
|
|
85
|
+
* - [Hidden](https://next.mui.com/material-ui/react-hidden/)
|
|
86
86
|
*
|
|
87
87
|
* API:
|
|
88
88
|
*
|
|
89
|
-
* - [PigmentHidden API](https://mui.com/material-ui/api/pigment-hidden/)
|
|
89
|
+
* - [PigmentHidden API](https://next.mui.com/material-ui/api/pigment-hidden/)
|
|
90
90
|
*/
|
|
91
91
|
declare function PigmentHidden({ implementation, ...props }: HiddenProps & {
|
|
92
92
|
className?: string;
|
|
@@ -171,11 +171,11 @@ process.env.NODE_ENV !== "production" ? HiddenCss.propTypes /* remove-proptypes
|
|
|
171
171
|
*
|
|
172
172
|
* Demos:
|
|
173
173
|
*
|
|
174
|
-
* - [Hidden](https://mui.com/material-ui/react-hidden/)
|
|
174
|
+
* - [Hidden](https://next.mui.com/material-ui/react-hidden/)
|
|
175
175
|
*
|
|
176
176
|
* API:
|
|
177
177
|
*
|
|
178
|
-
* - [PigmentHidden API](https://mui.com/material-ui/api/pigment-hidden/)
|
|
178
|
+
* - [PigmentHidden API](https://next.mui.com/material-ui/api/pigment-hidden/)
|
|
179
179
|
*/
|
|
180
180
|
function PigmentHidden({
|
|
181
181
|
implementation = 'js',
|
|
@@ -41,11 +41,11 @@ export type PigmentStackProps<RootComponent extends React.ElementType = PigmentS
|
|
|
41
41
|
*
|
|
42
42
|
* Demos:
|
|
43
43
|
*
|
|
44
|
-
* - [Stack](https://mui.com/material-ui/react-stack/)
|
|
44
|
+
* - [Stack](https://next.mui.com/material-ui/react-stack/)
|
|
45
45
|
*
|
|
46
46
|
* API:
|
|
47
47
|
*
|
|
48
|
-
* - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
|
|
48
|
+
* - [PigmentStack API](https://next.mui.com/material-ui/api/pigment-stack/)
|
|
49
49
|
*/
|
|
50
50
|
declare const PigmentStack: OverridableComponent<PigmentStackTypeMap>;
|
|
51
51
|
export default PigmentStack;
|
|
@@ -16,11 +16,11 @@ const useUtilityClasses = () => {
|
|
|
16
16
|
*
|
|
17
17
|
* Demos:
|
|
18
18
|
*
|
|
19
|
-
* - [Stack](https://mui.com/material-ui/react-stack/)
|
|
19
|
+
* - [Stack](https://next.mui.com/material-ui/react-stack/)
|
|
20
20
|
*
|
|
21
21
|
* API:
|
|
22
22
|
*
|
|
23
|
-
* - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
|
|
23
|
+
* - [PigmentStack API](https://next.mui.com/material-ui/api/pigment-stack/)
|
|
24
24
|
*/
|
|
25
25
|
const PigmentStack = /*#__PURE__*/React.forwardRef(function PigmentStack({
|
|
26
26
|
className,
|
package/Popover/Popover.d.ts
CHANGED
|
@@ -1,23 +1,74 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
4
|
import { BackdropProps, InternalStandardProps as StandardProps } from '..';
|
|
4
5
|
import Paper, { PaperProps } from '../Paper';
|
|
5
|
-
import Modal, {
|
|
6
|
+
import Modal, { ModalProps } from '../Modal';
|
|
6
7
|
import { Theme } from '../styles';
|
|
7
8
|
import { TransitionProps } from '../transitions/transition';
|
|
8
9
|
import { PopoverClasses } from './popoverClasses';
|
|
9
10
|
import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
|
|
10
11
|
|
|
11
12
|
export interface PopoverSlots {
|
|
13
|
+
/**
|
|
14
|
+
* The component used for the root slot.
|
|
15
|
+
* @default Modal
|
|
16
|
+
*/
|
|
12
17
|
root: React.ElementType;
|
|
18
|
+
/**
|
|
19
|
+
* The component used for the paper slot.
|
|
20
|
+
* @default Paper
|
|
21
|
+
*/
|
|
13
22
|
paper: React.ElementType;
|
|
23
|
+
/**
|
|
24
|
+
* The component used for the transition slot.
|
|
25
|
+
* @default Grow
|
|
26
|
+
*/
|
|
27
|
+
transition: React.ElementType;
|
|
28
|
+
/**
|
|
29
|
+
* The component used for the backdrop slot.
|
|
30
|
+
* @default Backdrop
|
|
31
|
+
*/
|
|
32
|
+
backdrop: React.ElementType;
|
|
14
33
|
}
|
|
15
34
|
|
|
35
|
+
export interface PopoverRootSlotPropsOverrides {}
|
|
36
|
+
export interface PopoverPaperSlotPropsOverrides {}
|
|
37
|
+
export interface PopoverTransitionSlotPropsOverrides {}
|
|
38
|
+
export interface PopoverBackdropSlotPropsOverrides {}
|
|
39
|
+
|
|
16
40
|
export type PopoverSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
17
41
|
PopoverSlots,
|
|
18
42
|
{
|
|
19
|
-
|
|
20
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Props forwarded to the root slot.
|
|
45
|
+
* By default, the avaible props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
46
|
+
*/
|
|
47
|
+
root: SlotProps<typeof Modal, PopoverRootSlotPropsOverrides, PopoverOwnerState>;
|
|
48
|
+
/**
|
|
49
|
+
* Props forwarded to the paper slot.
|
|
50
|
+
* By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
51
|
+
*/
|
|
52
|
+
paper: SlotProps<typeof Paper, PopoverPaperSlotPropsOverrides, PopoverOwnerState>;
|
|
53
|
+
/**
|
|
54
|
+
* Props forwarded to the transition slot.
|
|
55
|
+
* By default, the avaible props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
56
|
+
*/
|
|
57
|
+
transition: SlotComponentProps<
|
|
58
|
+
// use SlotComponentProps because transition slot does not support `component` and `sx` prop
|
|
59
|
+
React.ElementType<TransitionProps>,
|
|
60
|
+
PopoverTransitionSlotPropsOverrides,
|
|
61
|
+
PopoverOwnerState
|
|
62
|
+
>;
|
|
63
|
+
/**
|
|
64
|
+
* Props forwarded to the backdrop slot.
|
|
65
|
+
* By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
66
|
+
*/
|
|
67
|
+
backdrop: SlotProps<
|
|
68
|
+
React.ElementType<BackdropProps>,
|
|
69
|
+
PopoverBackdropSlotPropsOverrides,
|
|
70
|
+
PopoverOwnerState
|
|
71
|
+
>;
|
|
21
72
|
}
|
|
22
73
|
>;
|
|
23
74
|
|
|
@@ -87,8 +138,7 @@ export interface PopoverProps
|
|
|
87
138
|
anchorReference?: PopoverReference;
|
|
88
139
|
/**
|
|
89
140
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
90
|
-
* @deprecated Use `
|
|
91
|
-
* Use the `slotProps.root.slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
141
|
+
* @deprecated Use `slots.backdrop` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
92
142
|
* @default styled(Backdrop, {
|
|
93
143
|
* name: 'MuiModal',
|
|
94
144
|
* slot: 'Backdrop',
|
|
@@ -102,7 +152,7 @@ export interface PopoverProps
|
|
|
102
152
|
BackdropComponent?: React.ElementType<BackdropProps>;
|
|
103
153
|
/**
|
|
104
154
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
105
|
-
* @deprecated Use `slotProps.
|
|
155
|
+
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
106
156
|
*/
|
|
107
157
|
BackdropProps?: Partial<BackdropProps>;
|
|
108
158
|
/**
|
|
@@ -166,6 +216,7 @@ export interface PopoverProps
|
|
|
166
216
|
/**
|
|
167
217
|
* The component used for the transition.
|
|
168
218
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
219
|
+
* @deprecated use the `slots.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
169
220
|
* @default Grow
|
|
170
221
|
*/
|
|
171
222
|
TransitionComponent?: React.JSXElementConstructor<
|
|
@@ -179,11 +230,14 @@ export interface PopoverProps
|
|
|
179
230
|
/**
|
|
180
231
|
* Props applied to the transition element.
|
|
181
232
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
233
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
182
234
|
* @default {}
|
|
183
235
|
*/
|
|
184
236
|
TransitionProps?: TransitionProps;
|
|
185
237
|
}
|
|
186
238
|
|
|
239
|
+
export interface PopoverOwnerState extends Omit<PopoverProps, 'slots' | 'slotProps'> {}
|
|
240
|
+
|
|
187
241
|
export interface PopoverActions {
|
|
188
242
|
updatePosition(): void;
|
|
189
243
|
}
|
|
@@ -205,12 +259,12 @@ export declare const PopoverPaper: React.FC<PopoverPaperProps>;
|
|
|
205
259
|
*
|
|
206
260
|
* Demos:
|
|
207
261
|
*
|
|
208
|
-
* - [Menu](https://mui.com/material-ui/react-menu/)
|
|
209
|
-
* - [Popover](https://mui.com/material-ui/react-popover/)
|
|
262
|
+
* - [Menu](https://next.mui.com/material-ui/react-menu/)
|
|
263
|
+
* - [Popover](https://next.mui.com/material-ui/react-popover/)
|
|
210
264
|
*
|
|
211
265
|
* API:
|
|
212
266
|
*
|
|
213
|
-
* - [Popover API](https://mui.com/material-ui/api/popover/)
|
|
214
|
-
* - inherits [Modal API](https://mui.com/material-ui/api/modal/)
|
|
267
|
+
* - [Popover API](https://next.mui.com/material-ui/api/popover/)
|
|
268
|
+
* - inherits [Modal API](https://next.mui.com/material-ui/api/modal/)
|
|
215
269
|
*/
|
|
216
270
|
export default function Popover(props: PopoverProps): React.JSX.Element;
|