@mui/material 6.4.7 → 6.4.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 +20 -5
- package/Accordion/Accordion.js +18 -6
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +62 -7
- package/AccordionSummary/AccordionSummary.js +67 -16
- 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/Autocomplete/Autocomplete.js +1 -1
- 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 +78 -4
- 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 +2 -2
- 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 +2 -2
- 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 +12 -2
- package/ListItemText/ListItemText.js +14 -5
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +4 -4
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.ts +7 -7
- 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 +4 -4
- 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 -2
- 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 +2 -2
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +7 -1
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +12 -2
- package/SpeedDial/SpeedDial.js +40 -11
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- 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 +21 -3
- package/StepLabel/StepLabel.js +14 -5
- 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 +78 -5
- package/Switch/Switch.js +71 -9
- 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/Tabs/Tabs.js +4 -0
- package/TextField/TextField.d.ts +40 -10
- package/TextField/TextField.js +22 -11
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +28 -17
- 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 +3 -15
- package/Tooltip/Tooltip.js +1 -1
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/index.js +1 -1
- package/modern/Accordion/Accordion.js +18 -6
- package/modern/AccordionSummary/AccordionSummary.js +67 -16
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/ClickAwayListener/ClickAwayListener.js +3 -3
- package/modern/Grid2/Grid2.js +2 -2
- package/modern/ListItemText/ListItemText.js +14 -5
- 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/Popper/Popper.js +4 -4
- package/modern/Portal/Portal.js +2 -2
- package/modern/Snackbar/Snackbar.js +7 -1
- package/modern/SpeedDial/SpeedDial.js +40 -11
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/StepLabel/StepLabel.js +14 -5
- package/modern/Switch/Switch.js +71 -9
- package/modern/Tabs/Tabs.js +4 -0
- package/modern/TextField/TextField.js +22 -11
- package/modern/TextareaAutosize/TextareaAutosize.js +28 -17
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/ThemeProvider.js +11 -0
- package/modern/styles/createThemeNoVars.js +1 -3
- package/modern/useAutocomplete/useAutocomplete.js +3 -3
- package/modern/useScrollTrigger/useScrollTrigger.js +3 -0
- package/modern/version/index.js +2 -2
- package/node/Accordion/Accordion.js +18 -6
- package/node/AccordionSummary/AccordionSummary.js +67 -16
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node/Grid2/Grid2.js +2 -2
- package/node/ListItemText/ListItemText.js +14 -5
- 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/Popper/Popper.js +4 -4
- package/node/Portal/Portal.js +2 -2
- package/node/Snackbar/Snackbar.js +7 -1
- package/node/SpeedDial/SpeedDial.js +40 -11
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/StepLabel/StepLabel.js +14 -5
- package/node/Switch/Switch.js +71 -9
- package/node/Tabs/Tabs.js +4 -0
- package/node/TextField/TextField.js +22 -11
- package/node/TextareaAutosize/TextareaAutosize.js +27 -16
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/ThemeProvider.js +11 -0
- package/node/styles/createThemeNoVars.js +1 -3
- package/node/useAutocomplete/useAutocomplete.js +3 -3
- package/node/useScrollTrigger/useScrollTrigger.js +3 -0
- package/node/version/index.js +2 -2
- package/package.json +6 -6
- package/styles/ThemeProvider.js +11 -0
- package/styles/createThemeNoVars.js +1 -3
- package/useAutocomplete/useAutocomplete.d.ts +2 -2
- package/useAutocomplete/useAutocomplete.js +3 -3
- package/useScrollTrigger/useScrollTrigger.d.ts +1 -1
- package/useScrollTrigger/useScrollTrigger.js +3 -0
- package/version/index.js +2 -2
package/Accordion/Accordion.d.ts
CHANGED
|
@@ -4,10 +4,15 @@ import { Theme } from '..';
|
|
|
4
4
|
import { TransitionProps } from '../transitions/transition';
|
|
5
5
|
import { AccordionClasses } from './accordionClasses';
|
|
6
6
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
7
|
-
import { ExtendPaperTypeMap } from '../Paper/Paper';
|
|
7
|
+
import { ExtendPaperTypeMap, PaperProps } from '../Paper/Paper';
|
|
8
8
|
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from '../utils/types';
|
|
9
9
|
|
|
10
10
|
export interface AccordionSlots {
|
|
11
|
+
/**
|
|
12
|
+
* The component that renders the root.
|
|
13
|
+
* @default Paper
|
|
14
|
+
*/
|
|
15
|
+
root: React.ElementType;
|
|
11
16
|
/**
|
|
12
17
|
* The component that renders the heading.
|
|
13
18
|
* @default 'h3'
|
|
@@ -21,12 +26,22 @@ export interface AccordionSlots {
|
|
|
21
26
|
transition: React.ElementType;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
export interface
|
|
29
|
+
export interface AccordionRootSlotPropsOverrides {}
|
|
25
30
|
export interface AccordionHeadingSlotPropsOverrides {}
|
|
31
|
+
export interface AccordionTransitionSlotPropsOverrides {}
|
|
26
32
|
|
|
27
33
|
export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
28
34
|
AccordionSlots,
|
|
29
35
|
{
|
|
36
|
+
/**
|
|
37
|
+
* Props forwarded to the root slot.
|
|
38
|
+
* By default, the avaible props are based on the Paper element.
|
|
39
|
+
*/
|
|
40
|
+
root: SlotProps<
|
|
41
|
+
React.ElementType<PaperProps>,
|
|
42
|
+
AccordionRootSlotPropsOverrides,
|
|
43
|
+
AccordionOwnerState
|
|
44
|
+
>;
|
|
30
45
|
/**
|
|
31
46
|
* Props forwarded to the heading slot.
|
|
32
47
|
* By default, the avaible props are based on the h3 element.
|
|
@@ -113,12 +128,12 @@ export type AccordionTypeMap<
|
|
|
113
128
|
*
|
|
114
129
|
* Demos:
|
|
115
130
|
*
|
|
116
|
-
* - [Accordion](https://mui.com/material-ui/react-accordion/)
|
|
131
|
+
* - [Accordion](https://v6.mui.com/material-ui/react-accordion/)
|
|
117
132
|
*
|
|
118
133
|
* API:
|
|
119
134
|
*
|
|
120
|
-
* - [Accordion API](https://mui.com/material-ui/api/accordion/)
|
|
121
|
-
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
|
|
135
|
+
* - [Accordion API](https://v6.mui.com/material-ui/api/accordion/)
|
|
136
|
+
* - inherits [Paper API](https://v6.mui.com/material-ui/api/paper/)
|
|
122
137
|
*/
|
|
123
138
|
declare const Accordion: OverridableComponent<AccordionTypeMap>;
|
|
124
139
|
|
package/Accordion/Accordion.js
CHANGED
|
@@ -185,6 +185,20 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
185
185
|
slots: backwardCompatibleSlots,
|
|
186
186
|
slotProps: backwardCompatibleSlotProps
|
|
187
187
|
};
|
|
188
|
+
const [RootSlot, rootProps] = useSlot('root', {
|
|
189
|
+
elementType: AccordionRoot,
|
|
190
|
+
externalForwardedProps: {
|
|
191
|
+
...externalForwardedProps,
|
|
192
|
+
...other
|
|
193
|
+
},
|
|
194
|
+
className: clsx(classes.root, className),
|
|
195
|
+
shouldForwardComponentProp: true,
|
|
196
|
+
ownerState,
|
|
197
|
+
ref,
|
|
198
|
+
additionalProps: {
|
|
199
|
+
square
|
|
200
|
+
}
|
|
201
|
+
});
|
|
188
202
|
const [AccordionHeadingSlot, accordionProps] = useSlot('heading', {
|
|
189
203
|
elementType: AccordionHeading,
|
|
190
204
|
externalForwardedProps,
|
|
@@ -196,12 +210,8 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
196
210
|
externalForwardedProps,
|
|
197
211
|
ownerState
|
|
198
212
|
});
|
|
199
|
-
return /*#__PURE__*/_jsxs(
|
|
200
|
-
|
|
201
|
-
ref: ref,
|
|
202
|
-
ownerState: ownerState,
|
|
203
|
-
square: square,
|
|
204
|
-
...other,
|
|
213
|
+
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
214
|
+
...rootProps,
|
|
205
215
|
children: [/*#__PURE__*/_jsx(AccordionHeadingSlot, {
|
|
206
216
|
...accordionProps,
|
|
207
217
|
children: /*#__PURE__*/_jsx(AccordionContext.Provider, {
|
|
@@ -281,6 +291,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
281
291
|
*/
|
|
282
292
|
slotProps: PropTypes.shape({
|
|
283
293
|
heading: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
294
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
284
295
|
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
285
296
|
}),
|
|
286
297
|
/**
|
|
@@ -289,6 +300,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
289
300
|
*/
|
|
290
301
|
slots: PropTypes.shape({
|
|
291
302
|
heading: PropTypes.elementType,
|
|
303
|
+
root: PropTypes.elementType,
|
|
292
304
|
transition: PropTypes.elementType
|
|
293
305
|
}),
|
|
294
306
|
/**
|
|
@@ -27,10 +27,10 @@ export interface AccordionActionsProps extends StandardProps<React.HTMLAttribute
|
|
|
27
27
|
*
|
|
28
28
|
* Demos:
|
|
29
29
|
*
|
|
30
|
-
* - [Accordion](https://mui.com/material-ui/react-accordion/)
|
|
30
|
+
* - [Accordion](https://v6.mui.com/material-ui/react-accordion/)
|
|
31
31
|
*
|
|
32
32
|
* API:
|
|
33
33
|
*
|
|
34
|
-
* - [AccordionActions API](https://mui.com/material-ui/api/accordion-actions/)
|
|
34
|
+
* - [AccordionActions API](https://v6.mui.com/material-ui/api/accordion-actions/)
|
|
35
35
|
*/
|
|
36
36
|
export default function AccordionActions(props: AccordionActionsProps): React.JSX.Element;
|
|
@@ -22,10 +22,10 @@ export interface AccordionDetailsProps extends StandardProps<React.HTMLAttribute
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Accordion](https://mui.com/material-ui/react-accordion/)
|
|
25
|
+
* - [Accordion](https://v6.mui.com/material-ui/react-accordion/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [AccordionDetails API](https://mui.com/material-ui/api/accordion-details/)
|
|
29
|
+
* - [AccordionDetails API](https://v6.mui.com/material-ui/api/accordion-details/)
|
|
30
30
|
*/
|
|
31
31
|
export default function AccordionDetails(props: AccordionDetailsProps): React.JSX.Element;
|
|
@@ -1,14 +1,66 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
|
3
|
+
import { ButtonBaseProps, ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
|
4
4
|
import { OverrideProps } from '../OverridableComponent';
|
|
5
|
-
import { Theme } from '..';
|
|
5
|
+
import { CreateSlotsAndSlotProps, SlotProps, Theme } from '..';
|
|
6
6
|
import { AccordionSummaryClasses } from './accordionSummaryClasses';
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface AccordionSummarySlots {
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The component that renders the root slot.
|
|
11
|
+
* @default ButtonBase
|
|
11
12
|
*/
|
|
13
|
+
root: React.ElementType;
|
|
14
|
+
/**
|
|
15
|
+
* The component that renders the content slot.
|
|
16
|
+
* @default div
|
|
17
|
+
*/
|
|
18
|
+
content: React.ElementType;
|
|
19
|
+
/**
|
|
20
|
+
* The component that renders the expand icon wrapper slot.
|
|
21
|
+
* @default div
|
|
22
|
+
*/
|
|
23
|
+
expandIconWrapper: React.ElementType;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface AccordionSummaryRootSlotPropsOverrides {}
|
|
27
|
+
export interface AccordionSummaryContentSlotPropsOverrides {}
|
|
28
|
+
export interface AccordionSummaryExpandIconWrapperSlotPropsOverrides {}
|
|
29
|
+
|
|
30
|
+
export type AccordionSummarySlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
31
|
+
AccordionSummarySlots,
|
|
32
|
+
{
|
|
33
|
+
/**
|
|
34
|
+
* Props forwarded to the root slot.
|
|
35
|
+
* By default, the avaible props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
|
|
36
|
+
*/
|
|
37
|
+
root: SlotProps<
|
|
38
|
+
React.ElementType<ButtonBaseProps>,
|
|
39
|
+
AccordionSummaryRootSlotPropsOverrides,
|
|
40
|
+
AccordionSummaryOwnerState
|
|
41
|
+
>;
|
|
42
|
+
/**
|
|
43
|
+
* Props forwarded to the content slot.
|
|
44
|
+
* By default, the avaible props are based on a div element.
|
|
45
|
+
*/
|
|
46
|
+
content: SlotProps<
|
|
47
|
+
'div',
|
|
48
|
+
AccordionSummaryContentSlotPropsOverrides,
|
|
49
|
+
AccordionSummaryOwnerState
|
|
50
|
+
>;
|
|
51
|
+
/**
|
|
52
|
+
* Props forwarded to the expand icon wrapper slot.
|
|
53
|
+
* By default, the avaible props are based on a div element.
|
|
54
|
+
*/
|
|
55
|
+
expandIconWrapper: SlotProps<
|
|
56
|
+
'div',
|
|
57
|
+
AccordionSummaryExpandIconWrapperSlotPropsOverrides,
|
|
58
|
+
AccordionSummaryOwnerState
|
|
59
|
+
>;
|
|
60
|
+
}
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
export interface AccordionSummaryOwnProps extends AccordionSummarySlotsAndSlotProps {
|
|
12
64
|
children?: React.ReactNode;
|
|
13
65
|
/**
|
|
14
66
|
* Override or extend the styles applied to the component.
|
|
@@ -32,16 +84,19 @@ export type AccordionSummaryTypeMap<
|
|
|
32
84
|
defaultComponent: RootComponent;
|
|
33
85
|
}>;
|
|
34
86
|
|
|
87
|
+
export interface AccordionSummaryOwnerState
|
|
88
|
+
extends Omit<AccordionSummaryProps, 'slots' | 'slotProps'> {}
|
|
89
|
+
|
|
35
90
|
/**
|
|
36
91
|
*
|
|
37
92
|
* Demos:
|
|
38
93
|
*
|
|
39
|
-
* - [Accordion](https://mui.com/material-ui/react-accordion/)
|
|
94
|
+
* - [Accordion](https://v6.mui.com/material-ui/react-accordion/)
|
|
40
95
|
*
|
|
41
96
|
* API:
|
|
42
97
|
*
|
|
43
|
-
* - [AccordionSummary API](https://mui.com/material-ui/api/accordion-summary/)
|
|
44
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
98
|
+
* - [AccordionSummary API](https://v6.mui.com/material-ui/api/accordion-summary/)
|
|
99
|
+
* - inherits [ButtonBase API](https://v6.mui.com/material-ui/api/button-base/)
|
|
45
100
|
*/
|
|
46
101
|
declare const AccordionSummary: ExtendButtonBase<AccordionSummaryTypeMap>;
|
|
47
102
|
|
|
@@ -10,6 +10,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
|
10
10
|
import ButtonBase from "../ButtonBase/index.js";
|
|
11
11
|
import AccordionContext from "../Accordion/AccordionContext.js";
|
|
12
12
|
import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from "./accordionSummaryClasses.js";
|
|
13
|
+
import useSlot from "../utils/useSlot.js";
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
const useUtilityClasses = ownerState => {
|
|
15
16
|
const {
|
|
@@ -112,6 +113,8 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
112
113
|
expandIcon,
|
|
113
114
|
focusVisibleClassName,
|
|
114
115
|
onClick,
|
|
116
|
+
slots,
|
|
117
|
+
slotProps,
|
|
115
118
|
...other
|
|
116
119
|
} = props;
|
|
117
120
|
const {
|
|
@@ -135,24 +138,54 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
135
138
|
disableGutters
|
|
136
139
|
};
|
|
137
140
|
const classes = useUtilityClasses(ownerState);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
const externalForwardedProps = {
|
|
142
|
+
slots,
|
|
143
|
+
slotProps
|
|
144
|
+
};
|
|
145
|
+
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
146
|
+
ref,
|
|
147
|
+
shouldForwardComponentProp: true,
|
|
143
148
|
className: clsx(classes.root, className),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
elementType: AccordionSummaryRoot,
|
|
150
|
+
externalForwardedProps: {
|
|
151
|
+
...externalForwardedProps,
|
|
152
|
+
...other
|
|
153
|
+
},
|
|
154
|
+
ownerState,
|
|
155
|
+
additionalProps: {
|
|
156
|
+
focusRipple: false,
|
|
157
|
+
disableRipple: true,
|
|
158
|
+
disabled,
|
|
159
|
+
'aria-expanded': expanded,
|
|
160
|
+
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName)
|
|
161
|
+
},
|
|
162
|
+
getSlotProps: handlers => ({
|
|
163
|
+
...handlers,
|
|
164
|
+
onClick: event => {
|
|
165
|
+
handlers.onClick?.(event);
|
|
166
|
+
handleChange(event);
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
const [ContentSlot, contentSlotProps] = useSlot('content', {
|
|
171
|
+
className: classes.content,
|
|
172
|
+
elementType: AccordionSummaryContent,
|
|
173
|
+
externalForwardedProps,
|
|
174
|
+
ownerState
|
|
175
|
+
});
|
|
176
|
+
const [ExpandIconWrapperSlot, expandIconWrapperSlotProps] = useSlot('expandIconWrapper', {
|
|
177
|
+
className: classes.expandIconWrapper,
|
|
178
|
+
elementType: AccordionSummaryExpandIconWrapper,
|
|
179
|
+
externalForwardedProps,
|
|
180
|
+
ownerState
|
|
181
|
+
});
|
|
182
|
+
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
183
|
+
...rootSlotProps,
|
|
184
|
+
children: [/*#__PURE__*/_jsx(ContentSlot, {
|
|
185
|
+
...contentSlotProps,
|
|
152
186
|
children: children
|
|
153
|
-
}), expandIcon && /*#__PURE__*/_jsx(
|
|
154
|
-
|
|
155
|
-
ownerState: ownerState,
|
|
187
|
+
}), expandIcon && /*#__PURE__*/_jsx(ExpandIconWrapperSlot, {
|
|
188
|
+
...expandIconWrapperSlotProps,
|
|
156
189
|
children: expandIcon
|
|
157
190
|
})]
|
|
158
191
|
});
|
|
@@ -191,6 +224,24 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes /* remove-pro
|
|
|
191
224
|
* @ignore
|
|
192
225
|
*/
|
|
193
226
|
onClick: PropTypes.func,
|
|
227
|
+
/**
|
|
228
|
+
* The props used for each slot inside.
|
|
229
|
+
* @default {}
|
|
230
|
+
*/
|
|
231
|
+
slotProps: PropTypes.shape({
|
|
232
|
+
content: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
233
|
+
expandIconWrapper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
234
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
235
|
+
}),
|
|
236
|
+
/**
|
|
237
|
+
* The components used for each slot inside.
|
|
238
|
+
* @default {}
|
|
239
|
+
*/
|
|
240
|
+
slots: PropTypes.shape({
|
|
241
|
+
content: PropTypes.elementType,
|
|
242
|
+
expandIconWrapper: PropTypes.elementType,
|
|
243
|
+
root: PropTypes.elementType
|
|
244
|
+
}),
|
|
194
245
|
/**
|
|
195
246
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
196
247
|
*/
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -192,11 +192,11 @@ export interface AlertOwnerState extends AlertProps {}
|
|
|
192
192
|
*
|
|
193
193
|
* Demos:
|
|
194
194
|
*
|
|
195
|
-
* - [Alert](https://mui.com/material-ui/react-alert/)
|
|
195
|
+
* - [Alert](https://v6.mui.com/material-ui/react-alert/)
|
|
196
196
|
*
|
|
197
197
|
* API:
|
|
198
198
|
*
|
|
199
|
-
* - [Alert API](https://mui.com/material-ui/api/alert/)
|
|
200
|
-
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
|
|
199
|
+
* - [Alert API](https://v6.mui.com/material-ui/api/alert/)
|
|
200
|
+
* - inherits [Paper API](https://v6.mui.com/material-ui/api/paper/)
|
|
201
201
|
*/
|
|
202
202
|
export default function Alert(props: AlertProps): React.JSX.Element;
|
|
@@ -22,11 +22,11 @@ export interface AlertTitleProps extends TypographyProps<'div'> {
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Alert](https://mui.com/material-ui/react-alert/)
|
|
25
|
+
* - [Alert](https://v6.mui.com/material-ui/react-alert/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [AlertTitle API](https://mui.com/material-ui/api/alert-title/)
|
|
30
|
-
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
29
|
+
* - [AlertTitle API](https://v6.mui.com/material-ui/api/alert-title/)
|
|
30
|
+
* - inherits [Typography API](https://v6.mui.com/material-ui/api/typography/)
|
|
31
31
|
*/
|
|
32
32
|
export default function AlertTitle(props: AlertTitleProps): React.JSX.Element;
|
package/AppBar/AppBar.d.ts
CHANGED
|
@@ -56,12 +56,12 @@ export type AppBarTypeMap<
|
|
|
56
56
|
*
|
|
57
57
|
* Demos:
|
|
58
58
|
*
|
|
59
|
-
* - [App Bar](https://mui.com/material-ui/react-app-bar/)
|
|
59
|
+
* - [App Bar](https://v6.mui.com/material-ui/react-app-bar/)
|
|
60
60
|
*
|
|
61
61
|
* API:
|
|
62
62
|
*
|
|
63
|
-
* - [AppBar API](https://mui.com/material-ui/api/app-bar/)
|
|
64
|
-
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
|
|
63
|
+
* - [AppBar API](https://v6.mui.com/material-ui/api/app-bar/)
|
|
64
|
+
* - inherits [Paper API](https://v6.mui.com/material-ui/api/paper/)
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
67
|
declare const AppBar: OverridableComponent<AppBarTypeMap>;
|
|
@@ -360,11 +360,11 @@ export interface AutocompleteProps<
|
|
|
360
360
|
*
|
|
361
361
|
* Demos:
|
|
362
362
|
*
|
|
363
|
-
* - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
|
|
363
|
+
* - [Autocomplete](https://v6.mui.com/material-ui/react-autocomplete/)
|
|
364
364
|
*
|
|
365
365
|
* API:
|
|
366
366
|
*
|
|
367
|
-
* - [Autocomplete API](https://mui.com/material-ui/api/autocomplete/)
|
|
367
|
+
* - [Autocomplete API](https://v6.mui.com/material-ui/api/autocomplete/)
|
|
368
368
|
*/
|
|
369
369
|
export default function Autocomplete<
|
|
370
370
|
Value,
|
|
@@ -1037,7 +1037,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1037
1037
|
*
|
|
1038
1038
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1039
1039
|
* @param {Value} option The highlighted option.
|
|
1040
|
-
* @param {string} reason Can be: `"keyboard"`, `"
|
|
1040
|
+
* @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
|
|
1041
1041
|
*/
|
|
1042
1042
|
onHighlightChange: PropTypes.func,
|
|
1043
1043
|
/**
|
package/Avatar/Avatar.d.ts
CHANGED
|
@@ -87,11 +87,11 @@ export interface AvatarTypeMap<
|
|
|
87
87
|
*
|
|
88
88
|
* Demos:
|
|
89
89
|
*
|
|
90
|
-
* - [Avatar](https://mui.com/material-ui/react-avatar/)
|
|
90
|
+
* - [Avatar](https://v6.mui.com/material-ui/react-avatar/)
|
|
91
91
|
*
|
|
92
92
|
* API:
|
|
93
93
|
*
|
|
94
|
-
* - [Avatar API](https://mui.com/material-ui/api/avatar/)
|
|
94
|
+
* - [Avatar API](https://v6.mui.com/material-ui/api/avatar/)
|
|
95
95
|
*/
|
|
96
96
|
declare const Avatar: OverridableComponent<AvatarTypeMap>;
|
|
97
97
|
|
|
@@ -107,11 +107,11 @@ export interface AvatarGroupTypeMap<
|
|
|
107
107
|
*
|
|
108
108
|
* Demos:
|
|
109
109
|
*
|
|
110
|
-
* - [Avatar](https://mui.com/material-ui/react-avatar/)
|
|
110
|
+
* - [Avatar](https://v6.mui.com/material-ui/react-avatar/)
|
|
111
111
|
*
|
|
112
112
|
* API:
|
|
113
113
|
*
|
|
114
|
-
* - [AvatarGroup API](https://mui.com/material-ui/api/avatar-group/)
|
|
114
|
+
* - [AvatarGroup API](https://v6.mui.com/material-ui/api/avatar-group/)
|
|
115
115
|
*/
|
|
116
116
|
declare const AvatarGroup: OverridableComponent<AvatarGroupTypeMap>;
|
|
117
117
|
|
package/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -124,12 +124,12 @@ export declare const BackdropRoot: React.FC<BackdropRootProps>;
|
|
|
124
124
|
*
|
|
125
125
|
* Demos:
|
|
126
126
|
*
|
|
127
|
-
* - [Backdrop](https://mui.com/material-ui/react-backdrop/)
|
|
127
|
+
* - [Backdrop](https://v6.mui.com/material-ui/react-backdrop/)
|
|
128
128
|
*
|
|
129
129
|
* API:
|
|
130
130
|
*
|
|
131
|
-
* - [Backdrop API](https://mui.com/material-ui/api/backdrop/)
|
|
132
|
-
* - inherits [Fade API](https://mui.com/material-ui/api/fade/)
|
|
131
|
+
* - [Backdrop API](https://v6.mui.com/material-ui/api/backdrop/)
|
|
132
|
+
* - inherits [Fade API](https://v6.mui.com/material-ui/api/fade/)
|
|
133
133
|
*/
|
|
134
134
|
declare const Backdrop: OverridableComponent<BackdropTypeMap>;
|
|
135
135
|
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -162,12 +162,12 @@ export declare const BadgeMark: React.FC<BadgeBadgeProps>;
|
|
|
162
162
|
*
|
|
163
163
|
* Demos:
|
|
164
164
|
*
|
|
165
|
-
* - [Avatar](https://mui.com/material-ui/react-avatar/)
|
|
166
|
-
* - [Badge](https://mui.com/material-ui/react-badge/)
|
|
165
|
+
* - [Avatar](https://v6.mui.com/material-ui/react-avatar/)
|
|
166
|
+
* - [Badge](https://v6.mui.com/material-ui/react-badge/)
|
|
167
167
|
*
|
|
168
168
|
* API:
|
|
169
169
|
*
|
|
170
|
-
* - [Badge API](https://mui.com/material-ui/api/badge/)
|
|
170
|
+
* - [Badge API](https://v6.mui.com/material-ui/api/badge/)
|
|
171
171
|
*/
|
|
172
172
|
declare const Badge: OverridableComponent<BadgeTypeMap>;
|
|
173
173
|
|
|
@@ -47,11 +47,11 @@ export interface BottomNavigationTypeMap<
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Bottom Navigation](https://mui.com/material-ui/react-bottom-navigation/)
|
|
50
|
+
* - [Bottom Navigation](https://v6.mui.com/material-ui/react-bottom-navigation/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [BottomNavigation API](https://mui.com/material-ui/api/bottom-navigation/)
|
|
54
|
+
* - [BottomNavigation API](https://v6.mui.com/material-ui/api/bottom-navigation/)
|
|
55
55
|
*/
|
|
56
56
|
declare const BottomNavigation: OverridableComponent<BottomNavigationTypeMap>;
|
|
57
57
|
|
|
@@ -53,12 +53,12 @@ export type BottomNavigationActionTypeMap<
|
|
|
53
53
|
*
|
|
54
54
|
* Demos:
|
|
55
55
|
*
|
|
56
|
-
* - [Bottom Navigation](https://mui.com/material-ui/react-bottom-navigation/)
|
|
56
|
+
* - [Bottom Navigation](https://v6.mui.com/material-ui/react-bottom-navigation/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [BottomNavigationAction API](https://mui.com/material-ui/api/bottom-navigation-action/)
|
|
61
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
60
|
+
* - [BottomNavigationAction API](https://v6.mui.com/material-ui/api/bottom-navigation-action/)
|
|
61
|
+
* - inherits [ButtonBase API](https://v6.mui.com/material-ui/api/button-base/)
|
|
62
62
|
*/
|
|
63
63
|
declare const BottomNavigationAction: ExtendButtonBase<
|
|
64
64
|
BottomNavigationActionTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>
|
package/Box/Box.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ import { Theme as MaterialTheme } from '../styles';
|
|
|
7
7
|
*
|
|
8
8
|
* Demos:
|
|
9
9
|
*
|
|
10
|
-
* - [Box](https://mui.com/material-ui/react-box/)
|
|
10
|
+
* - [Box](https://v6.mui.com/material-ui/react-box/)
|
|
11
11
|
*
|
|
12
12
|
* API:
|
|
13
13
|
*
|
|
14
|
-
* - [Box API](https://mui.com/material-ui/api/box/)
|
|
14
|
+
* - [Box API](https://v6.mui.com/material-ui/api/box/)
|
|
15
15
|
*/
|
|
16
16
|
declare const Box: OverridableComponent<BoxTypeMap<{}, 'div', MaterialTheme>>;
|
|
17
17
|
|
|
@@ -91,12 +91,12 @@ export interface BreadcrumbsTypeMap<
|
|
|
91
91
|
*
|
|
92
92
|
* Demos:
|
|
93
93
|
*
|
|
94
|
-
* - [Breadcrumbs](https://mui.com/material-ui/react-breadcrumbs/)
|
|
94
|
+
* - [Breadcrumbs](https://v6.mui.com/material-ui/react-breadcrumbs/)
|
|
95
95
|
*
|
|
96
96
|
* API:
|
|
97
97
|
*
|
|
98
|
-
* - [Breadcrumbs API](https://mui.com/material-ui/api/breadcrumbs/)
|
|
99
|
-
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
98
|
+
* - [Breadcrumbs API](https://v6.mui.com/material-ui/api/breadcrumbs/)
|
|
99
|
+
* - inherits [Typography API](https://v6.mui.com/material-ui/api/typography/)
|
|
100
100
|
*/
|
|
101
101
|
declare const Breadcrumbs: OverridableComponent<BreadcrumbsTypeMap>;
|
|
102
102
|
|
package/Button/Button.d.ts
CHANGED
|
@@ -129,13 +129,13 @@ export type ExtendButton<TypeMap extends OverridableTypeMap> = ((
|
|
|
129
129
|
*
|
|
130
130
|
* Demos:
|
|
131
131
|
*
|
|
132
|
-
* - [Button Group](https://mui.com/material-ui/react-button-group/)
|
|
133
|
-
* - [Button](https://mui.com/material-ui/react-button/)
|
|
132
|
+
* - [Button Group](https://v6.mui.com/material-ui/react-button-group/)
|
|
133
|
+
* - [Button](https://v6.mui.com/material-ui/react-button/)
|
|
134
134
|
*
|
|
135
135
|
* API:
|
|
136
136
|
*
|
|
137
|
-
* - [Button API](https://mui.com/material-ui/api/button/)
|
|
138
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
137
|
+
* - [Button API](https://v6.mui.com/material-ui/api/button/)
|
|
138
|
+
* - inherits [ButtonBase API](https://v6.mui.com/material-ui/api/button-base/)
|
|
139
139
|
*/
|
|
140
140
|
declare const Button: ExtendButtonBase<ButtonTypeMap>;
|
|
141
141
|
|
|
@@ -117,11 +117,11 @@ export type ExtendButtonBase<TypeMap extends OverridableTypeMap> = ((
|
|
|
117
117
|
*
|
|
118
118
|
* Demos:
|
|
119
119
|
*
|
|
120
|
-
* - [Button](https://mui.com/material-ui/react-button/)
|
|
120
|
+
* - [Button](https://v6.mui.com/material-ui/react-button/)
|
|
121
121
|
*
|
|
122
122
|
* API:
|
|
123
123
|
*
|
|
124
|
-
* - [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
124
|
+
* - [ButtonBase API](https://v6.mui.com/material-ui/api/button-base/)
|
|
125
125
|
*/
|
|
126
126
|
declare const ButtonBase: ExtendButtonBase<ButtonBaseTypeMap>;
|
|
127
127
|
|
|
@@ -90,11 +90,11 @@ export interface ButtonGroupTypeMap<
|
|
|
90
90
|
*
|
|
91
91
|
* Demos:
|
|
92
92
|
*
|
|
93
|
-
* - [Button Group](https://mui.com/material-ui/react-button-group/)
|
|
93
|
+
* - [Button Group](https://v6.mui.com/material-ui/react-button-group/)
|
|
94
94
|
*
|
|
95
95
|
* API:
|
|
96
96
|
*
|
|
97
|
-
* - [ButtonGroup API](https://mui.com/material-ui/api/button-group/)
|
|
97
|
+
* - [ButtonGroup API](https://v6.mui.com/material-ui/api/button-group/)
|
|
98
98
|
*/
|
|
99
99
|
declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
|
100
100
|
|