@mui/material 7.3.1 → 7.3.2
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/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +6 -6
- package/Avatar/Avatar.d.ts +3 -3
- package/Backdrop/Backdrop.d.ts +2 -2
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
- package/CHANGELOG.md +92 -4
- package/CardActionArea/CardActionArea.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +6 -6
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Chip/Chip.d.ts +2 -2
- package/Chip/Chip.js +2 -2
- package/Dialog/Dialog.d.ts +5 -5
- package/Drawer/Drawer.d.ts +6 -6
- package/Drawer/Drawer.js +5 -1
- package/InputBase/InputBase.js +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemText/ListItemText.d.ts +2 -2
- package/Menu/Menu.d.ts +5 -5
- package/MobileStepper/MobileStepper.d.ts +4 -4
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +36 -4
- package/Popover/Popover.d.ts +5 -5
- package/Popover/Popover.js +2 -2
- package/Radio/Radio.d.ts +2 -2
- package/Rating/Rating.d.ts +5 -5
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +4 -4
- package/StepContent/StepContent.d.ts +1 -1
- package/StepLabel/StepLabel.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/Switch/Switch.d.ts +5 -5
- package/TablePagination/TablePagination.d.ts +10 -10
- package/TablePagination/TablePagination.js +3 -3
- package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/TablePaginationActions/TablePaginationActions.js +2 -2
- package/Tabs/Tabs.d.ts +8 -8
- package/TextField/TextField.d.ts +6 -6
- package/Tooltip/Tooltip.d.ts +4 -4
- package/esm/Accordion/Accordion.d.ts +3 -3
- package/esm/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/esm/Alert/Alert.d.ts +6 -6
- package/esm/Avatar/Avatar.d.ts +3 -3
- package/esm/Backdrop/Backdrop.d.ts +2 -2
- package/esm/Badge/Badge.d.ts +2 -2
- package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
- package/esm/CardActionArea/CardActionArea.d.ts +2 -2
- package/esm/CardHeader/CardHeader.d.ts +6 -6
- package/esm/Checkbox/Checkbox.d.ts +2 -2
- package/esm/Chip/Chip.d.ts +2 -2
- package/esm/Chip/Chip.js +2 -2
- package/esm/Dialog/Dialog.d.ts +5 -5
- package/esm/Drawer/Drawer.d.ts +6 -6
- package/esm/Drawer/Drawer.js +5 -1
- package/esm/InputBase/InputBase.js +1 -1
- package/esm/ListItem/ListItem.js +1 -1
- package/esm/ListItemText/ListItemText.d.ts +2 -2
- package/esm/Menu/Menu.d.ts +5 -5
- package/esm/MobileStepper/MobileStepper.d.ts +4 -4
- package/esm/OutlinedInput/OutlinedInput.js +1 -1
- package/esm/PaginationItem/PaginationItem.d.ts +36 -4
- package/esm/Popover/Popover.d.ts +5 -5
- package/esm/Popover/Popover.js +2 -2
- package/esm/Radio/Radio.d.ts +2 -2
- package/esm/Rating/Rating.d.ts +5 -5
- package/esm/Slider/Slider.js +1 -1
- package/esm/Snackbar/Snackbar.d.ts +3 -3
- package/esm/SpeedDial/SpeedDial.d.ts +2 -2
- package/esm/SpeedDialAction/SpeedDialAction.d.ts +4 -4
- package/esm/StepContent/StepContent.d.ts +1 -1
- package/esm/StepLabel/StepLabel.d.ts +3 -3
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/esm/Switch/Switch.d.ts +5 -5
- package/esm/TablePagination/TablePagination.d.ts +10 -10
- package/esm/TablePagination/TablePagination.js +3 -3
- package/esm/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/esm/TablePaginationActions/TablePaginationActions.js +2 -2
- package/esm/Tabs/Tabs.d.ts +8 -8
- package/esm/TextField/TextField.d.ts +6 -6
- package/esm/Tooltip/Tooltip.d.ts +4 -4
- package/esm/index.js +1 -1
- package/esm/internal/SwitchBase.d.ts +1 -1
- package/esm/utils/shouldSpreadAdditionalProps.js +1 -1
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +1 -1
- package/package.json +35 -36
- package/utils/shouldSpreadAdditionalProps.js +1 -1
- package/version/index.js +2 -2
- package/esm/utils/isHostComponent.d.ts +0 -6
- package/esm/utils/isHostComponent.js +0 -7
- package/utils/isHostComponent.d.ts +0 -6
- package/utils/isHostComponent.js +0 -13
package/esm/Alert/Alert.d.ts
CHANGED
|
@@ -52,32 +52,32 @@ export interface AlertSlots {
|
|
|
52
52
|
export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps<AlertSlots, {
|
|
53
53
|
/**
|
|
54
54
|
* Props forwarded to the root slot.
|
|
55
|
-
* By default, the
|
|
55
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
56
56
|
*/
|
|
57
57
|
root: SlotProps<React.ElementType<PaperProps>, AlertRootSlotPropsOverrides, AlertOwnerState>;
|
|
58
58
|
/**
|
|
59
59
|
* Props forwarded to the icon slot.
|
|
60
|
-
* By default, the
|
|
60
|
+
* By default, the available props are based on a div element.
|
|
61
61
|
*/
|
|
62
62
|
icon: SlotProps<'div', AlertIconSlotPropsOverrides, AlertOwnerState>;
|
|
63
63
|
/**
|
|
64
64
|
* Props forwarded to the message slot.
|
|
65
|
-
* By default, the
|
|
65
|
+
* By default, the available props are based on a div element.
|
|
66
66
|
*/
|
|
67
67
|
message: SlotProps<'div', AlertMessageSlotPropsOverrides, AlertOwnerState>;
|
|
68
68
|
/**
|
|
69
69
|
* Props forwarded to the action slot.
|
|
70
|
-
* By default, the
|
|
70
|
+
* By default, the available props are based on a div element.
|
|
71
71
|
*/
|
|
72
72
|
action: SlotProps<'div', AlertActionSlotPropsOverrides, AlertOwnerState>;
|
|
73
73
|
/**
|
|
74
74
|
* Props forwarded to the closeButton slot.
|
|
75
|
-
* By default, the
|
|
75
|
+
* By default, the available props are based on the [IconButton](https://mui.com/material-ui/api/icon-button/#props) component.
|
|
76
76
|
*/
|
|
77
77
|
closeButton: SlotProps<React.ElementType<IconButtonProps>, AlertCloseButtonSlotPropsOverrides, AlertOwnerState>;
|
|
78
78
|
/**
|
|
79
79
|
* Props forwarded to the closeIcon slot.
|
|
80
|
-
* By default, the
|
|
80
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
81
81
|
*/
|
|
82
82
|
closeIcon: SlotProps<React.ElementType<SvgIconProps>, AlertCloseIconSlotPropsOverrides, AlertOwnerState>;
|
|
83
83
|
}>;
|
package/esm/Avatar/Avatar.d.ts
CHANGED
|
@@ -30,17 +30,17 @@ export interface AvatarFallbackSlotPropsOverrides {}
|
|
|
30
30
|
export type AvatarSlotsAndSlotProps = CreateSlotsAndSlotProps<AvatarSlots, {
|
|
31
31
|
/**
|
|
32
32
|
* Props forwarded to the root slot.
|
|
33
|
-
* By default, the
|
|
33
|
+
* By default, the available props are based on the div element.
|
|
34
34
|
*/
|
|
35
35
|
root: SlotProps<'div', AvatarRootSlotPropsOverrides, AvatarOwnProps>;
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the img slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the img element.
|
|
39
39
|
*/
|
|
40
40
|
img: SlotProps<'img', AvatarImgSlotPropsOverrides, AvatarOwnProps>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the fallback slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
fallback: SlotProps<React.ElementType<SvgIconProps>, AvatarFallbackSlotPropsOverrides, AvatarOwnProps>;
|
|
46
46
|
}>;
|
|
@@ -24,12 +24,12 @@ export interface BackdropTransitionSlotPropsOverrides {}
|
|
|
24
24
|
export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<BackdropSlots, {
|
|
25
25
|
/**
|
|
26
26
|
* Props forwarded to the transition slot.
|
|
27
|
-
* By default, the
|
|
27
|
+
* By default, the available props are based on the div element.
|
|
28
28
|
*/
|
|
29
29
|
root: SlotProps<'div', BackdropComponentsPropsOverrides, BackdropOwnerState>;
|
|
30
30
|
/**
|
|
31
31
|
* Props forwarded to the transition slot.
|
|
32
|
-
* By default, the
|
|
32
|
+
* By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
33
33
|
*/
|
|
34
34
|
transition: SlotComponentProps<React.ElementType, TransitionProps & BackdropTransitionSlotPropsOverrides, BackdropOwnerState>;
|
|
35
35
|
}>;
|
package/esm/Badge/Badge.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export interface BadgeSlots {
|
|
|
24
24
|
export type BadgeSlotsAndSlotProps = CreateSlotsAndSlotProps<BadgeSlots, {
|
|
25
25
|
/**
|
|
26
26
|
* Props forwarded to the root slot.
|
|
27
|
-
* By default, the
|
|
27
|
+
* By default, the available props are based on the span element.
|
|
28
28
|
*/
|
|
29
29
|
root: SlotProps<'span', BadgeRootSlotPropsOverrides, BadgeOwnerState>;
|
|
30
30
|
/**
|
|
31
31
|
* Props forwarded to the label slot.
|
|
32
|
-
* By default, the
|
|
32
|
+
* By default, the available props are based on the span element.
|
|
33
33
|
*/
|
|
34
34
|
badge: SlotProps<'span', BadgeBadgeSlotPropsOverrides, BadgeOwnerState>;
|
|
35
35
|
}>;
|
|
@@ -20,12 +20,12 @@ export interface BottomNavigationActionSlots {
|
|
|
20
20
|
export type BottomNavigationActionSlotsAndSlotProps = CreateSlotsAndSlotProps<BottomNavigationActionSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the ButtonBase element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, BottomNavigationActionOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the label slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
label: SlotProps<'span', {}, BottomNavigationActionOwnerState>;
|
|
31
31
|
}>;
|
|
@@ -20,12 +20,12 @@ export interface CardActionAreaSlots {
|
|
|
20
20
|
export type CardActionAreaSlotsAndSlotProps = CreateSlotsAndSlotProps<CardActionAreaSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the span element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, CardActionAreaOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the focusHighlight slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
focusHighlight: SlotProps<'span', {}, CardActionAreaOwnerState>;
|
|
31
31
|
}>;
|
|
@@ -48,32 +48,32 @@ export interface CardHeaderSlots {
|
|
|
48
48
|
export type CardHeaderSlotsAndSlotProps = CreateSlotsAndSlotProps<CardHeaderSlots, {
|
|
49
49
|
/**
|
|
50
50
|
* Props forwarded to the root slot.
|
|
51
|
-
* By default, the
|
|
51
|
+
* By default, the available props are based on the div element.
|
|
52
52
|
*/
|
|
53
53
|
root: SlotProps<'div', CardHeaderRootSlotPropsOverrides, CardHeaderOwnerState>;
|
|
54
54
|
/**
|
|
55
55
|
* Props forwarded to the avatar slot.
|
|
56
|
-
* By default, the
|
|
56
|
+
* By default, the available props are based on the div element.
|
|
57
57
|
*/
|
|
58
58
|
avatar: SlotProps<'div', CardHeaderAvatarSlotPropsOverrides, CardHeaderOwnerState>;
|
|
59
59
|
/**
|
|
60
60
|
* Props forwarded to the action slot.
|
|
61
|
-
* By default, the
|
|
61
|
+
* By default, the available props are based on the div element.
|
|
62
62
|
*/
|
|
63
63
|
action: SlotProps<'div', CardHeaderActionSlotPropsOverrides, CardHeaderOwnerState>;
|
|
64
64
|
/**
|
|
65
65
|
* Props forwarded to the content slot.
|
|
66
|
-
* By default, the
|
|
66
|
+
* By default, the available props are based on the div element.
|
|
67
67
|
*/
|
|
68
68
|
content: SlotProps<'div', CardHeaderContentSlotPropsOverrides, CardHeaderOwnerState>;
|
|
69
69
|
/**
|
|
70
70
|
* Props forwarded to the title slot (as long as disableTypography is not `true`).
|
|
71
|
-
* By default, the
|
|
71
|
+
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
|
|
72
72
|
*/
|
|
73
73
|
title: SlotProps<React.ElementType<TypographyProps>, CardHeaderTitleSlotPropsOverrides, CardHeaderOwnerState>;
|
|
74
74
|
/**
|
|
75
75
|
* Props forwarded to the subheader slot (as long as disableTypography is not `true`).
|
|
76
|
-
* By default, the
|
|
76
|
+
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
|
|
77
77
|
*/
|
|
78
78
|
subheader: SlotProps<React.ElementType<TypographyProps>, CardHeaderSubheaderSlotPropsOverrides, CardHeaderOwnerState>;
|
|
79
79
|
}>;
|
|
@@ -25,12 +25,12 @@ export interface CheckboxSlots {
|
|
|
25
25
|
export type CheckboxSlotsAndSlotProps = CreateSlotsAndSlotProps<CheckboxSlots, {
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the root slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the div element.
|
|
29
29
|
*/
|
|
30
30
|
root: SlotProps<React.ElementType<SwitchBaseProps>, CheckboxRootSlotPropsOverrides, CheckboxOwnerState>;
|
|
31
31
|
/**
|
|
32
32
|
* Props forwarded to the input slot.
|
|
33
|
-
* By default, the
|
|
33
|
+
* By default, the available props are based on the input element.
|
|
34
34
|
*/
|
|
35
35
|
input: SlotProps<'input', CheckboxInputSlotPropsOverrides, CheckboxOwnerState>;
|
|
36
36
|
}>;
|
package/esm/Chip/Chip.d.ts
CHANGED
|
@@ -20,12 +20,12 @@ export interface ChipSlots {
|
|
|
20
20
|
export type ChipSlotsAndSlotProps = CreateSlotsAndSlotProps<ChipSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the div element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<'div', {}, ChipOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the label slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
label: SlotProps<'span', {}, ChipOwnerState>;
|
|
31
31
|
}>;
|
package/esm/Chip/Chip.js
CHANGED
|
@@ -483,11 +483,11 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
483
483
|
},
|
|
484
484
|
onKeyDown: event => {
|
|
485
485
|
handlers.onKeyDown?.(event);
|
|
486
|
-
handleKeyDown
|
|
486
|
+
handleKeyDown(event);
|
|
487
487
|
},
|
|
488
488
|
onKeyUp: event => {
|
|
489
489
|
handlers.onKeyUp?.(event);
|
|
490
|
-
handleKeyUp
|
|
490
|
+
handleKeyUp(event);
|
|
491
491
|
}
|
|
492
492
|
})
|
|
493
493
|
});
|
package/esm/Dialog/Dialog.d.ts
CHANGED
|
@@ -41,27 +41,27 @@ export interface DialogRootSlotPropsOverrides {}
|
|
|
41
41
|
export type DialogSlotsAndSlotProps = CreateSlotsAndSlotProps<DialogSlots, {
|
|
42
42
|
/**
|
|
43
43
|
* Props forwarded to the root slot.
|
|
44
|
-
* By default, the
|
|
44
|
+
* By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
45
45
|
*/
|
|
46
46
|
root: SlotProps<React.ElementType<ModalProps>, DialogRootSlotPropsOverrides, DialogOwnerState>;
|
|
47
47
|
/**
|
|
48
48
|
* Props forwarded to the backdrop slot.
|
|
49
|
-
* By default, the
|
|
49
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
50
50
|
*/
|
|
51
51
|
backdrop: SlotProps<React.ElementType<BackdropProps>, DialogBackdropSlotPropsOverrides, DialogOwnerState>;
|
|
52
52
|
/**
|
|
53
53
|
* Props forwarded to the container slot.
|
|
54
|
-
* By default, the
|
|
54
|
+
* By default, the available props are based on a div element.
|
|
55
55
|
*/
|
|
56
56
|
container: SlotProps<'div', DialogContainerSlotPropsOverrides, DialogOwnerState>;
|
|
57
57
|
/**
|
|
58
58
|
* Props forwarded to the transition slot.
|
|
59
|
-
* By default, the
|
|
59
|
+
* By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
60
60
|
*/
|
|
61
61
|
transition: SlotComponentProps<React.ElementType, TransitionProps & DialogTransitionSlotPropsOverrides, DialogOwnerState>;
|
|
62
62
|
/**
|
|
63
63
|
* Props forwarded to the paper slot.
|
|
64
|
-
* By default, the
|
|
64
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
65
65
|
*/
|
|
66
66
|
paper: SlotProps<React.ElementType<PaperProps>, DialogPaperSlotPropsOverrides, DialogOwnerState>;
|
|
67
67
|
}>;
|
package/esm/Drawer/Drawer.d.ts
CHANGED
|
@@ -45,27 +45,27 @@ export interface DrawerSlots {
|
|
|
45
45
|
export type DrawerSlotsAndSlotProps = CreateSlotsAndSlotProps<DrawerSlots, {
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the root slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
49
49
|
*/
|
|
50
50
|
root: SlotProps<React.ElementType<ModalProps>, DrawerRootSlotPropsOverrides, DrawerOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the backdrop slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
54
54
|
*/
|
|
55
55
|
backdrop: SlotProps<React.ElementType<BackdropProps>, DrawerBackdropSlotPropsOverrides, DrawerOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the docked slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on a div element.
|
|
59
59
|
*/
|
|
60
60
|
docked: SlotProps<'div', DrawerDockedSlotPropsOverrides, DrawerOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the paper slot.
|
|
63
|
-
* By default, the
|
|
63
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
64
64
|
*/
|
|
65
65
|
paper: SlotProps<React.ElementType<PaperProps>, DrawerPaperSlotPropsOverrides, DrawerOwnerState>;
|
|
66
66
|
/**
|
|
67
67
|
* Props forwarded to the transition slot.
|
|
68
|
-
* By default, the
|
|
68
|
+
* By default, the available props are based on the [Slide](https://mui.com/material-ui/api/slide/#props) component.
|
|
69
69
|
*/
|
|
70
70
|
transition: SlotProps<React.ElementType, TransitionProps & DrawerTransitionSlotPropsOverrides, DrawerOwnerState>;
|
|
71
71
|
}>;
|
|
@@ -137,7 +137,7 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
137
137
|
variant?: 'permanent' | 'persistent' | 'temporary';
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// omit `slots` and `slotProps` to prevent
|
|
140
|
+
// omit `slots` and `slotProps` to prevent recursion
|
|
141
141
|
export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
|
|
142
142
|
|
|
143
143
|
/**
|
package/esm/Drawer/Drawer.js
CHANGED
|
@@ -272,7 +272,11 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
272
272
|
externalForwardedProps,
|
|
273
273
|
additionalProps: {
|
|
274
274
|
elevation: variant === 'temporary' ? elevation : 0,
|
|
275
|
-
square: true
|
|
275
|
+
square: true,
|
|
276
|
+
...(variant === 'temporary' && {
|
|
277
|
+
role: 'dialog',
|
|
278
|
+
'aria-modal': 'true'
|
|
279
|
+
})
|
|
276
280
|
}
|
|
277
281
|
});
|
|
278
282
|
const [DockedSlot, dockedSlotProps] = useSlot('docked', {
|
|
@@ -8,8 +8,8 @@ import clsx from 'clsx';
|
|
|
8
8
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
9
9
|
import refType from '@mui/utils/refType';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
+
import isHostComponent from '@mui/utils/isHostComponent';
|
|
11
12
|
import TextareaAutosize from "../TextareaAutosize/index.js";
|
|
12
|
-
import isHostComponent from "../utils/isHostComponent.js";
|
|
13
13
|
import formControlState from "../FormControl/formControlState.js";
|
|
14
14
|
import FormControlContext from "../FormControl/FormControlContext.js";
|
|
15
15
|
import useFormControl from "../FormControl/useFormControl.js";
|
package/esm/ListItem/ListItem.js
CHANGED
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
8
8
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
9
|
-
import isHostComponent from
|
|
9
|
+
import isHostComponent from '@mui/utils/isHostComponent';
|
|
10
10
|
import { styled } from "../zero-styled/index.js";
|
|
11
11
|
import memoTheme from "../utils/memoTheme.js";
|
|
12
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -24,12 +24,12 @@ export interface ListItemTextSlots {
|
|
|
24
24
|
}
|
|
25
25
|
export type ListItemTextSlotsAndSlotProps = CreateSlotsAndSlotProps<ListItemTextSlots, {
|
|
26
26
|
/**
|
|
27
|
-
* Props
|
|
27
|
+
* Props forwarded to the root slot.
|
|
28
28
|
* By default, the available props are based on `div` element.
|
|
29
29
|
*/
|
|
30
30
|
root: SlotProps<'div', {}, ListItemTextOwnerState>;
|
|
31
31
|
/**
|
|
32
|
-
* Props
|
|
32
|
+
* Props forwarded to the primary slot (as long as disableTypography is not `true`)
|
|
33
33
|
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component
|
|
34
34
|
*/
|
|
35
35
|
primary: SlotProps<React.ElementType<TypographyProps>, {}, ListItemTextOwnerState>;
|
package/esm/Menu/Menu.d.ts
CHANGED
|
@@ -45,29 +45,29 @@ export interface MenuSlots {
|
|
|
45
45
|
export type MenuSlotsAndSlotProps = CreateSlotsAndSlotProps<MenuSlots, {
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the root slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the [Popover](https://mui.com/material-ui/api/popover/#props) component.
|
|
49
49
|
*/
|
|
50
50
|
root: SlotProps<React.ElementType<ModalProps>, MenuRootSlotPropsOverrides, MenuOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the paper slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
54
54
|
*/
|
|
55
55
|
paper: SlotProps<React.ElementType<PaperProps>, MenuPaperSlotPropsOverrides, MenuOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the list slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on the [MenuList](https://mui.com/material-ui/api/menu-list/#props) component.
|
|
59
59
|
*/
|
|
60
60
|
list: SlotProps<React.ElementType<MenuListProps>, MenuListSlotPropsOverrides, MenuOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the transition slot.
|
|
63
|
-
* By default, the
|
|
63
|
+
* By default, the available props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
64
64
|
*/
|
|
65
65
|
transition: SlotComponentProps<
|
|
66
66
|
// use SlotComponentProps because transition slot does not support `component` and `sx` prop
|
|
67
67
|
React.ElementType, TransitionProps & MenuTransitionSlotPropsOverrides, MenuOwnerState>;
|
|
68
68
|
/**
|
|
69
69
|
* Props forwarded to the backdrop slot.
|
|
70
|
-
* By default, the
|
|
70
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
71
71
|
*/
|
|
72
72
|
backdrop: SlotProps<React.ElementType<BackdropProps>, MenuBackdropSlotPropsOverrides, MenuOwnerState>;
|
|
73
73
|
}>;
|
|
@@ -35,22 +35,22 @@ export interface MobileStepperDotSlotPropsOverrides {}
|
|
|
35
35
|
export type MobileStepperSlotsAndSlotProps = CreateSlotsAndSlotProps<MobileStepperSlots, {
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the root slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
39
39
|
*/
|
|
40
40
|
root: SlotProps<React.ElementType<PaperProps>, MobileStepperRootSlotPropsOverrides, MobileStepperOwnerState>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the progress slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
progress: SlotProps<React.ElementType<LinearProgressProps>, MobileStepperProgressSlotPropsOverrides, MobileStepperOwnerState>;
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the dots slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the div element.
|
|
49
49
|
*/
|
|
50
50
|
dots: SlotProps<'div', MobileStepperDotsSlotPropsOverrides, MobileStepperOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the dot slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the div element.
|
|
54
54
|
*/
|
|
55
55
|
dot: SlotProps<'div', MobileStepperDotSlotPropsOverrides, MobileStepperOwnerState>;
|
|
56
56
|
}>;
|
|
@@ -67,7 +67,7 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
67
67
|
}
|
|
68
68
|
})), {
|
|
69
69
|
props: {},
|
|
70
|
-
// to
|
|
70
|
+
// to override the above style
|
|
71
71
|
style: {
|
|
72
72
|
[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
|
|
73
73
|
borderColor: (theme.vars || theme).palette.error.main
|
|
@@ -9,17 +9,49 @@ import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
|
9
9
|
export interface PaginationItemPropsVariantOverrides {}
|
|
10
10
|
export interface PaginationItemPropsSizeOverrides {}
|
|
11
11
|
export interface PaginationItemPropsColorOverrides {}
|
|
12
|
+
export interface PaginationItemFirstSlotPropsOverrides {}
|
|
13
|
+
export interface PaginationItemLastSlotPropsOverrides {}
|
|
14
|
+
export interface PaginationItemNextSlotPropsOverrides {}
|
|
15
|
+
export interface PaginationItemPreviousSlotPropsOverrides {}
|
|
12
16
|
export interface PaginationItemSlots {
|
|
17
|
+
/**
|
|
18
|
+
* The component that renders the first page slot.
|
|
19
|
+
* @default FirstPageIcon
|
|
20
|
+
*/
|
|
13
21
|
first: React.ElementType;
|
|
22
|
+
/**
|
|
23
|
+
* The component that renders the last page slot.
|
|
24
|
+
* @default LastPageIcon
|
|
25
|
+
*/
|
|
14
26
|
last: React.ElementType;
|
|
27
|
+
/**
|
|
28
|
+
* The component that renders the next page slot.
|
|
29
|
+
* @default NavigateNextIcon
|
|
30
|
+
*/
|
|
15
31
|
next: React.ElementType;
|
|
32
|
+
/**
|
|
33
|
+
* The component that renders the previous page slot.
|
|
34
|
+
* @default NavigateBeforeIcon
|
|
35
|
+
*/
|
|
16
36
|
previous: React.ElementType;
|
|
17
37
|
}
|
|
18
38
|
export type PaginationItemSlotsAndSlotProps = CreateSlotsAndSlotProps<PaginationItemSlots, {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Props forwarded to the first page slot.
|
|
41
|
+
*/
|
|
42
|
+
first: SlotProps<React.ElementType<React.HTMLProps<HTMLElement>>, PaginationItemFirstSlotPropsOverrides, PaginationItemOwnerState>;
|
|
43
|
+
/**
|
|
44
|
+
* Props forwarded to the last page slot.
|
|
45
|
+
*/
|
|
46
|
+
last: SlotProps<React.ElementType<React.HTMLProps<HTMLElement>>, PaginationItemLastSlotPropsOverrides, PaginationItemOwnerState>;
|
|
47
|
+
/**
|
|
48
|
+
* Props forwarded to the next page slot.
|
|
49
|
+
*/
|
|
50
|
+
next: SlotProps<React.ElementType<React.HTMLProps<HTMLElement>>, PaginationItemNextSlotPropsOverrides, PaginationItemOwnerState>;
|
|
51
|
+
/**
|
|
52
|
+
* Props forwarded to the previous page slot.
|
|
53
|
+
*/
|
|
54
|
+
previous: SlotProps<React.ElementType<React.HTMLProps<HTMLElement>>, PaginationItemPreviousSlotPropsOverrides, PaginationItemOwnerState>;
|
|
23
55
|
}>;
|
|
24
56
|
export interface PaginationItemOwnerState extends PaginationItemProps {}
|
|
25
57
|
export interface PaginationItemOwnProps extends PaginationItemSlotsAndSlotProps {
|
package/esm/Popover/Popover.d.ts
CHANGED
|
@@ -38,24 +38,24 @@ export interface PopoverBackdropSlotPropsOverrides {}
|
|
|
38
38
|
export type PopoverSlotsAndSlotProps = CreateSlotsAndSlotProps<PopoverSlots, {
|
|
39
39
|
/**
|
|
40
40
|
* Props forwarded to the root slot.
|
|
41
|
-
* By default, the
|
|
41
|
+
* By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
42
42
|
*/
|
|
43
43
|
root: SlotProps<typeof Modal, PopoverRootSlotPropsOverrides, PopoverOwnerState>;
|
|
44
44
|
/**
|
|
45
45
|
* Props forwarded to the paper slot.
|
|
46
|
-
* By default, the
|
|
46
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
47
47
|
*/
|
|
48
48
|
paper: SlotProps<typeof Paper, PopoverPaperSlotPropsOverrides, PopoverOwnerState>;
|
|
49
49
|
/**
|
|
50
50
|
* Props forwarded to the transition slot.
|
|
51
|
-
* By default, the
|
|
51
|
+
* By default, the available props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
52
52
|
*/
|
|
53
53
|
transition: SlotComponentProps<
|
|
54
54
|
// use SlotComponentProps because transition slot does not support `component` and `sx` prop
|
|
55
55
|
React.ElementType, TransitionProps & PopoverTransitionSlotPropsOverrides, PopoverOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the backdrop slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
59
59
|
*/
|
|
60
60
|
backdrop: SlotProps<React.ElementType<BackdropProps>, PopoverBackdropSlotPropsOverrides, PopoverOwnerState>;
|
|
61
61
|
}>;
|
|
@@ -163,7 +163,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
165
165
|
*
|
|
166
|
-
* This prop is an alias for `slotProps.paper` and will be
|
|
166
|
+
* This prop is an alias for `slotProps.paper` and will be overridden by it if both are used.
|
|
167
167
|
* @deprecated Use `slotProps.paper` instead.
|
|
168
168
|
*
|
|
169
169
|
* @default {}
|
package/esm/Popover/Popover.js
CHANGED
|
@@ -9,7 +9,7 @@ import refType from '@mui/utils/refType';
|
|
|
9
9
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
10
10
|
import integerPropType from '@mui/utils/integerPropType';
|
|
11
11
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
12
|
-
import isHostComponent from
|
|
12
|
+
import isHostComponent from '@mui/utils/isHostComponent';
|
|
13
13
|
import { styled } from "../zero-styled/index.js";
|
|
14
14
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
15
15
|
import debounce from "../utils/debounce.js";
|
|
@@ -506,7 +506,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
506
506
|
/**
|
|
507
507
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
508
508
|
*
|
|
509
|
-
* This prop is an alias for `slotProps.paper` and will be
|
|
509
|
+
* This prop is an alias for `slotProps.paper` and will be overridden by it if both are used.
|
|
510
510
|
* @deprecated Use `slotProps.paper` instead.
|
|
511
511
|
*
|
|
512
512
|
* @default {}
|
package/esm/Radio/Radio.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export interface RadioSlots {
|
|
|
25
25
|
export type RadioSlotsAndSlotProps = CreateSlotsAndSlotProps<RadioSlots, {
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the root slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
root: SlotProps<React.ElementType<SwitchBaseProps>, RadioRootSlotPropsOverrides, RadioOwnerState>;
|
|
31
31
|
/**
|
|
32
32
|
* Props forwarded to the input slot.
|
|
33
|
-
* By default, the
|
|
33
|
+
* By default, the available props are based on the input element.
|
|
34
34
|
*/
|
|
35
35
|
input: SlotProps<'input', RadioInputSlotPropsOverrides, RadioOwnerState>;
|
|
36
36
|
}>;
|
package/esm/Rating/Rating.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface RatingSlots {
|
|
|
30
30
|
*/
|
|
31
31
|
icon: React.ElementType;
|
|
32
32
|
/**
|
|
33
|
-
* The component used
|
|
33
|
+
* The component used for the decimal slot.
|
|
34
34
|
* @default 'span'
|
|
35
35
|
*/
|
|
36
36
|
decimal: React.ElementType;
|
|
@@ -38,22 +38,22 @@ export interface RatingSlots {
|
|
|
38
38
|
export type RatingSlotsAndSlotProps = CreateSlotsAndSlotProps<RatingSlots, {
|
|
39
39
|
/**
|
|
40
40
|
* Props forwarded to the root slot.
|
|
41
|
-
* By default, the
|
|
41
|
+
* By default, the available props are based on the span element.
|
|
42
42
|
*/
|
|
43
43
|
root: SlotProps<'span', RatingRootSlotPropsOverrides, RatingOwnerState>;
|
|
44
44
|
/**
|
|
45
45
|
* Props forwarded to the label slot.
|
|
46
|
-
* By default, the
|
|
46
|
+
* By default, the available props are based on the label element.
|
|
47
47
|
*/
|
|
48
48
|
label: SlotProps<'label', RatingLabelSlotPropsOverrides, RatingOwnerState>;
|
|
49
49
|
/**
|
|
50
50
|
* Props forwarded to the icon slot.
|
|
51
|
-
* By default, the
|
|
51
|
+
* By default, the available props are based on the span element.
|
|
52
52
|
*/
|
|
53
53
|
icon: SlotProps<'span', RatingIconSlotPropsOverrides, RatingOwnerState>;
|
|
54
54
|
/**
|
|
55
55
|
* Props forwarded to the decimal slot.
|
|
56
|
-
* By default, the
|
|
56
|
+
* By default, the available props are based on the span element.
|
|
57
57
|
*/
|
|
58
58
|
decimal: SlotProps<'span', RatingDecimalSlotPropsOverrides, RatingOwnerState>;
|
|
59
59
|
}>;
|
package/esm/Slider/Slider.js
CHANGED
|
@@ -7,8 +7,8 @@ import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
9
9
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
10
|
+
import isHostComponent from '@mui/utils/isHostComponent';
|
|
10
11
|
import { useSlider, valueToPercent } from "./useSlider.js";
|
|
11
|
-
import isHostComponent from "../utils/isHostComponent.js";
|
|
12
12
|
import { styled } from "../zero-styled/index.js";
|
|
13
13
|
import memoTheme from "../utils/memoTheme.js";
|
|
14
14
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -37,17 +37,17 @@ export interface SnackbarTransitionSlotPropsOverrides {}
|
|
|
37
37
|
export type SnackbarSlotsAndSlotProps = CreateSlotsAndSlotProps<SnackbarSlots, {
|
|
38
38
|
/**
|
|
39
39
|
* Props forwarded to the root slot.
|
|
40
|
-
* By default, the
|
|
40
|
+
* By default, the available props are based on the div element.
|
|
41
41
|
*/
|
|
42
42
|
root: SlotProps<'div', SnackbarRootSlotPropsOverrides, SnackbarOwnerState>;
|
|
43
43
|
/**
|
|
44
44
|
* Props forwarded to the content slot.
|
|
45
|
-
* By default, the
|
|
45
|
+
* By default, the available props are based on the [SnackbarContent](https://mui.com/material-ui/api/snackbar-content/#props) component.
|
|
46
46
|
*/
|
|
47
47
|
content: SlotProps<React.ElementType<SnackbarContentProps>, SnackbarContentSlotPropsOverrides, SnackbarOwnerState>;
|
|
48
48
|
/**
|
|
49
49
|
* Props forwarded to the clickAwayListener slot.
|
|
50
|
-
* By default, the
|
|
50
|
+
* By default, the available props are based on the [ClickAwayListener](https://mui.com/material-ui/api/click-away-listener/#props) component.
|
|
51
51
|
*/
|
|
52
52
|
clickAwayListener: SlotComponentProps<typeof ClickAwayListener, SnackbarClickAwayListenerSlotPropsOverrides, SnackbarOwnerState>;
|
|
53
53
|
/**
|