@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
|
@@ -24,12 +24,12 @@ export interface SpeedDialSlots {
|
|
|
24
24
|
export type SpeedDialSlotsAndSlotProps = CreateSlotsAndSlotProps<SpeedDialSlots, {
|
|
25
25
|
/**
|
|
26
26
|
* Props forwarded to the root slot.
|
|
27
|
-
* By default, the
|
|
27
|
+
* By default, the available props are based on div element.
|
|
28
28
|
*/
|
|
29
29
|
root: SlotComponentProps<'div', React.HTMLAttributes<HTMLDivElement>, SpeedDialOwnerState>;
|
|
30
30
|
/**
|
|
31
31
|
* Props forwarded to the transition slot.
|
|
32
|
-
* By default, the
|
|
32
|
+
* By default, the available props are based on the [Zoom](https://mui.com/material-ui/api/zoom/#props) component.
|
|
33
33
|
*/
|
|
34
34
|
transition: SlotComponentProps<React.ElementType, TransitionProps, SpeedDialOwnerState>;
|
|
35
35
|
}>;
|
|
@@ -35,22 +35,22 @@ export interface SpeedDialActionStaticTooltipLabelSlotPropsOverrides {}
|
|
|
35
35
|
export type SpeedDialActionSlotsAndSlotProps = CreateSlotsAndSlotProps<SpeedDialActionSlots, {
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the fab slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the [Fab](https://mui.com/material-ui/api/fab/#props) component.
|
|
39
39
|
*/
|
|
40
40
|
fab: SlotProps<React.ElementType<FabProps>, SpeedDialActionFabSlotPropsOverrides, SpeedDialActionOwnerState>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the tooltip slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [Tooltip](https://mui.com/material-ui/api/tooltip/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
tooltip: SlotProps<React.ElementType<TooltipProps>, SpeedDialActionTooltipSlotPropsOverrides, SpeedDialActionOwnerState>;
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the static tooltip slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on a span element.
|
|
49
49
|
*/
|
|
50
50
|
staticTooltip: SlotProps<'span', SpeedDialActionStaticTooltipSlotPropsOverrides, SpeedDialActionOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the static tooltip label slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on a span element.
|
|
54
54
|
*/
|
|
55
55
|
staticTooltipLabel: SlotProps<'span', SpeedDialActionStaticTooltipLabelSlotPropsOverrides, SpeedDialActionOwnerState>;
|
|
56
56
|
}>;
|
|
@@ -18,7 +18,7 @@ export interface StepContentSlots {
|
|
|
18
18
|
}
|
|
19
19
|
export type StepContentSlotsAndSlotProps = CreateSlotsAndSlotProps<StepContentSlots, {
|
|
20
20
|
/**
|
|
21
|
-
* Props
|
|
21
|
+
* Props forwarded to the transition slot.
|
|
22
22
|
* By default, the available props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component
|
|
23
23
|
*/
|
|
24
24
|
transition: SlotComponentProps<React.ElementType, CollapseProps, StepContentOwnerState>;
|
|
@@ -24,17 +24,17 @@ export interface StepLabelSlots {
|
|
|
24
24
|
export type StepLabelSlotsAndSlotProps = CreateSlotsAndSlotProps<StepLabelSlots, {
|
|
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', {}, StepLabelOwnerState>;
|
|
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
|
label: SlotProps<'span', {}, StepLabelOwnerState>;
|
|
35
35
|
/**
|
|
36
36
|
* Props forwarded to the stepIcon slot.
|
|
37
|
-
* By default, the
|
|
37
|
+
* By default, the available props are based on the div element.
|
|
38
38
|
*/
|
|
39
39
|
stepIcon: SlotProps<React.ElementType<StepIconProps>, {}, StepLabelOwnerState>;
|
|
40
40
|
}>;
|
|
@@ -12,7 +12,7 @@ export interface SwipeableDrawerSlots {
|
|
|
12
12
|
type SwipeableDrawerSlotsAndSlotProps = DrawerSlotsAndSlotProps & CreateSlotsAndSlotProps<SwipeableDrawerSlots, {
|
|
13
13
|
/**
|
|
14
14
|
* Props forwarded to the docked slot.
|
|
15
|
-
* By default, the
|
|
15
|
+
* By default, the available props are based on a div element.
|
|
16
16
|
*/
|
|
17
17
|
swipeArea: SlotProps<'div', SwipeableDrawerSwipeAreaSlotPropsOverrides, DrawerOwnerState>;
|
|
18
18
|
}>;
|
package/esm/Switch/Switch.d.ts
CHANGED
|
@@ -43,27 +43,27 @@ export interface SwitchSlots {
|
|
|
43
43
|
export type SwitchSlotsAndSlotProps = CreateSlotsAndSlotProps<SwitchSlots, {
|
|
44
44
|
/**
|
|
45
45
|
* Props forwarded to the root slot.
|
|
46
|
-
* By default, the
|
|
46
|
+
* By default, the available props are based on the span element.
|
|
47
47
|
*/
|
|
48
48
|
root: SlotProps<'span', SwitchRootSlotPropsOverrides, SwitchOwnerState>;
|
|
49
49
|
/**
|
|
50
50
|
* Props forwarded to the track slot.
|
|
51
|
-
* By default, the
|
|
51
|
+
* By default, the available props are based on the span element.
|
|
52
52
|
*/
|
|
53
53
|
track: SlotProps<'span', SwitchTrackSlotPropsOverrides, SwitchOwnerState>;
|
|
54
54
|
/**
|
|
55
55
|
* Props forwarded to the thumb slot.
|
|
56
|
-
* By default, the
|
|
56
|
+
* By default, the available props are based on the span element.
|
|
57
57
|
*/
|
|
58
58
|
thumb: SlotProps<'span', SwitchThumbSlotPropsOverrides, SwitchOwnerState>;
|
|
59
59
|
/**
|
|
60
60
|
* Props forwarded to the switchBase slot.
|
|
61
|
-
* By default, the
|
|
61
|
+
* By default, the available props are based on the internal SwitchBase component.
|
|
62
62
|
*/
|
|
63
63
|
switchBase: SlotProps<React.ElementType<SwitchBaseProps>, SwitchSwitchBaseSlotPropsOverrides, SwitchOwnerState>;
|
|
64
64
|
/**
|
|
65
65
|
* Props forwarded to the input slot.
|
|
66
|
-
* By default, the
|
|
66
|
+
* By default, the available props are based on the input element.
|
|
67
67
|
*/
|
|
68
68
|
input: SlotProps<'input', SwitchInputSlotPropsOverrides, SwitchOwnerState>;
|
|
69
69
|
}>;
|
|
@@ -72,37 +72,37 @@ export interface TablePaginationSlots {
|
|
|
72
72
|
export type TablePaginationSlotsAndSlotProps = CreateSlotsAndSlotProps<TablePaginationSlots, {
|
|
73
73
|
/**
|
|
74
74
|
* Props forwarded to the root slot.
|
|
75
|
-
* By default, the
|
|
75
|
+
* By default, the available props are based on the [TableCell](https://mui.com/material-ui/api/table-cell/#props) component.
|
|
76
76
|
*/
|
|
77
77
|
root: SlotProps<React.ElementType<TableCellProps>, TablePaginationRootSlotPropsOverrides, TablePaginationOwnerState>;
|
|
78
78
|
/**
|
|
79
79
|
* Props forwarded to the toolbar slot.
|
|
80
|
-
* By default, the
|
|
80
|
+
* By default, the available props are based on the [Toolbar](https://mui.com/material-ui/api/toolbar/#props) component.
|
|
81
81
|
*/
|
|
82
82
|
toolbar: SlotProps<React.ElementType<ToolbarProps>, TablePaginationToolbarSlotPropsOverrides, TablePaginationOwnerState>;
|
|
83
83
|
/**
|
|
84
84
|
* Props forwarded to the spacer slot.
|
|
85
|
-
* By default, the
|
|
85
|
+
* By default, the available props are based on the div element.
|
|
86
86
|
*/
|
|
87
87
|
spacer: SlotProps<'div', TablePaginationSpacerSlotPropsOverrides, TablePaginationOwnerState>;
|
|
88
88
|
/**
|
|
89
89
|
* Props forwarded to the selectLabel slot.
|
|
90
|
-
* By default, the
|
|
90
|
+
* By default, the available props are based on the paragraph element.
|
|
91
91
|
*/
|
|
92
92
|
selectLabel: SlotProps<'p', TablePaginationSelectLabelSlotPropsOverrides, TablePaginationOwnerState>;
|
|
93
93
|
/**
|
|
94
94
|
* Props forwarded to the select slot.
|
|
95
|
-
* By default, the
|
|
95
|
+
* By default, the available props are based on the [Select](https://mui.com/material-ui/api/select/#props) component.
|
|
96
96
|
*/
|
|
97
97
|
select: Partial<SelectProps> & TablePaginationSelectSlotPropsOverrides;
|
|
98
98
|
/**
|
|
99
99
|
* Props forwarded to the menuItem slot.
|
|
100
|
-
* By default, the
|
|
100
|
+
* By default, the available props are based on the [MenuItem](https://mui.com/material-ui/api/menu-item/#props) component.
|
|
101
101
|
*/
|
|
102
102
|
menuItem: SlotProps<React.ElementType<MenuItemProps>, TablePaginationMenuItemSlotPropsOverrides, TablePaginationOwnerState>;
|
|
103
103
|
/**
|
|
104
104
|
* Props forwarded to the displayedRows slot.
|
|
105
|
-
* By default, the
|
|
105
|
+
* By default, the available props are based on the paragraph element.
|
|
106
106
|
*/
|
|
107
107
|
displayedRows: SlotProps<'p', TablePaginationDisplayedRowsSlotPropsOverrides, TablePaginationOwnerState>;
|
|
108
108
|
/**
|
|
@@ -125,7 +125,7 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
|
|
|
125
125
|
/**
|
|
126
126
|
* Props applied to the back arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) component.
|
|
127
127
|
*
|
|
128
|
-
* This prop is an alias for `slotProps.actions.previousButton` and will be
|
|
128
|
+
* This prop is an alias for `slotProps.actions.previousButton` and will be overridden by it if both are used.
|
|
129
129
|
* @deprecated Use `slotProps.actions.previousButton` instead.
|
|
130
130
|
*/
|
|
131
131
|
backIconButtonProps?: Partial<IconButtonProps>;
|
|
@@ -176,7 +176,7 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
|
|
|
176
176
|
/**
|
|
177
177
|
* Props applied to the next arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) element.
|
|
178
178
|
*
|
|
179
|
-
* This prop is an alias for `slotProps.actions.nextButton` and will be
|
|
179
|
+
* This prop is an alias for `slotProps.actions.nextButton` and will be overridden by it if both are used.
|
|
180
180
|
* @deprecated Use `slotProps.actions.nextButton` instead.
|
|
181
181
|
*/
|
|
182
182
|
nextIconButtonProps?: Partial<IconButtonProps>;
|
|
@@ -216,7 +216,7 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
|
|
|
216
216
|
/**
|
|
217
217
|
* Props applied to the rows per page [`Select`](https://mui.com/material-ui/api/select/) element.
|
|
218
218
|
*
|
|
219
|
-
* This prop is an alias for `slotProps.select` and will be
|
|
219
|
+
* This prop is an alias for `slotProps.select` and will be overridden by it if both are used.
|
|
220
220
|
* @deprecated Use `slotProps.select` instead.
|
|
221
221
|
*
|
|
222
222
|
* @default {}
|
|
@@ -316,7 +316,7 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
316
316
|
/**
|
|
317
317
|
* Props applied to the back arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) component.
|
|
318
318
|
*
|
|
319
|
-
* This prop is an alias for `slotProps.actions.previousButton` and will be
|
|
319
|
+
* This prop is an alias for `slotProps.actions.previousButton` and will be overridden by it if both are used.
|
|
320
320
|
* @deprecated Use `slotProps.actions.previousButton` instead.
|
|
321
321
|
*/
|
|
322
322
|
backIconButtonProps: PropTypes.object,
|
|
@@ -376,7 +376,7 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
376
376
|
/**
|
|
377
377
|
* Props applied to the next arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) element.
|
|
378
378
|
*
|
|
379
|
-
* This prop is an alias for `slotProps.actions.nextButton` and will be
|
|
379
|
+
* This prop is an alias for `slotProps.actions.nextButton` and will be overridden by it if both are used.
|
|
380
380
|
* @deprecated Use `slotProps.actions.nextButton` instead.
|
|
381
381
|
*/
|
|
382
382
|
nextIconButtonProps: PropTypes.object,
|
|
@@ -430,7 +430,7 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
430
430
|
/**
|
|
431
431
|
* Props applied to the rows per page [`Select`](https://mui.com/material-ui/api/select/) element.
|
|
432
432
|
*
|
|
433
|
-
* This prop is an alias for `slotProps.select` and will be
|
|
433
|
+
* This prop is an alias for `slotProps.select` and will be overridden by it if both are used.
|
|
434
434
|
* @deprecated Use `slotProps.select` instead.
|
|
435
435
|
*
|
|
436
436
|
* @default {}
|
|
@@ -3,7 +3,7 @@ import { IconButtonProps } from "../IconButton/IconButton.js";
|
|
|
3
3
|
import { SvgIconProps } from "../SvgIcon/index.js";
|
|
4
4
|
export interface TablePaginationActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
|
-
* This prop is an alias for `slotProps.previousButton` and will be
|
|
6
|
+
* This prop is an alias for `slotProps.previousButton` and will be overridden by it if both are used.
|
|
7
7
|
* @deprecated Use `slotProps.previousButton` instead.
|
|
8
8
|
*/
|
|
9
9
|
backIconButtonProps?: Partial<IconButtonProps>;
|
|
@@ -28,7 +28,7 @@ export interface TablePaginationActionsProps extends React.HTMLAttributes<HTMLDi
|
|
|
28
28
|
*/
|
|
29
29
|
getItemAriaLabel: (type: 'first' | 'last' | 'next' | 'previous') => string;
|
|
30
30
|
/**
|
|
31
|
-
* This prop is an alias for `slotProps.nextButton` and will be
|
|
31
|
+
* This prop is an alias for `slotProps.nextButton` and will be overridden by it if both are used.
|
|
32
32
|
* @deprecated Use `slotProps.nextButton` instead.
|
|
33
33
|
*/
|
|
34
34
|
nextIconButtonProps?: Partial<IconButtonProps>;
|
|
@@ -138,7 +138,7 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
138
138
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
139
139
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
140
140
|
/**
|
|
141
|
-
* This prop is an alias for `slotProps.previousButton` and will be
|
|
141
|
+
* This prop is an alias for `slotProps.previousButton` and will be overridden by it if both are used.
|
|
142
142
|
* @deprecated Use `slotProps.previousButton` instead.
|
|
143
143
|
*/
|
|
144
144
|
backIconButtonProps: PropTypes.object,
|
|
@@ -173,7 +173,7 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
173
173
|
*/
|
|
174
174
|
getItemAriaLabel: PropTypes.func.isRequired,
|
|
175
175
|
/**
|
|
176
|
-
* This prop is an alias for `slotProps.nextButton` and will be
|
|
176
|
+
* This prop is an alias for `slotProps.nextButton` and will be overridden by it if both are used.
|
|
177
177
|
* @deprecated Use `slotProps.nextButton` instead.
|
|
178
178
|
*/
|
|
179
179
|
nextIconButtonProps: PropTypes.object,
|
package/esm/Tabs/Tabs.d.ts
CHANGED
|
@@ -61,44 +61,44 @@ export interface TabsSlots {
|
|
|
61
61
|
export type TabsSlotsAndSlotProps = CreateSlotsAndSlotProps<TabsSlots, {
|
|
62
62
|
/**
|
|
63
63
|
* Props forwarded to the root slot.
|
|
64
|
-
* By default, the
|
|
64
|
+
* By default, the available props are based on the div element.
|
|
65
65
|
*/
|
|
66
66
|
root: SlotProps<'div', TabsRootSlotPropsOverrides, TabsOwnerState>;
|
|
67
67
|
/**
|
|
68
68
|
* Props forwarded to the scroller slot.
|
|
69
|
-
* By default, the
|
|
69
|
+
* By default, the available props are based on the div element.
|
|
70
70
|
*/
|
|
71
71
|
scroller: SlotProps<'div', TabsScrollerSlotPropsOverrides, TabsOwnerState>;
|
|
72
72
|
/**
|
|
73
73
|
* Props forwarded to the list slot.
|
|
74
|
-
* By default, the
|
|
74
|
+
* By default, the available props are based on the div element.
|
|
75
75
|
*/
|
|
76
76
|
list: SlotProps<'div', TabsListSlotPropsOverrides, TabsOwnerState>;
|
|
77
77
|
/**
|
|
78
78
|
* Props forwarded to the scrollbar slot.
|
|
79
|
-
* By default, the
|
|
79
|
+
* By default, the available props are based on the div element.
|
|
80
80
|
*/
|
|
81
81
|
scrollbar: SlotProps<'div', {
|
|
82
82
|
onChange?: (scrollbarWidth: undefined | number) => void;
|
|
83
83
|
} & TabsScrollbarSlotPropsOverrides, TabsOwnerState>;
|
|
84
84
|
/**
|
|
85
85
|
* Props forwarded to the indicator slot.
|
|
86
|
-
* By default, the
|
|
86
|
+
* By default, the available props are based on the span element.
|
|
87
87
|
*/
|
|
88
88
|
indicator: SlotProps<'span', TabsIndicatorSlotPropsOverrides, TabsOwnerState>;
|
|
89
89
|
/**
|
|
90
90
|
* Props forwarded to the scrollButton slot.
|
|
91
|
-
* By default, the
|
|
91
|
+
* By default, the available props are based on the [TabScrollButton](https://mui.com/material-ui/api/tab-scroll-button/#props) component.
|
|
92
92
|
*/
|
|
93
93
|
scrollButtons: SlotProps<typeof TabScrollButton, TabsScrollButtonsSlotPropsOverrides, TabsOwnerState>;
|
|
94
94
|
/**
|
|
95
95
|
* Props forwarded to the startScrollButtonIcon slot.
|
|
96
|
-
* By default, the
|
|
96
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
97
97
|
*/
|
|
98
98
|
startScrollButtonIcon: SlotProps<typeof SvgIcon, TabsStartScrollButtonIconSlotPropsOverrides, TabsOwnerState>;
|
|
99
99
|
/**
|
|
100
100
|
* Props forwarded to the endScrollButtonIcon slot.
|
|
101
|
-
* By default, the
|
|
101
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
102
102
|
*/
|
|
103
103
|
endScrollButtonIcon: SlotProps<typeof SvgIcon, TabsEndScrollButtonIconSlotPropsOverrides, TabsOwnerState>;
|
|
104
104
|
}> & {
|
|
@@ -50,32 +50,32 @@ export interface TextFieldSlots {
|
|
|
50
50
|
export type TextFieldSlotsAndSlotProps<InputPropsType> = CreateSlotsAndSlotProps<TextFieldSlots, {
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the root slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the [FormControl](https://mui.com/material-ui/api/form-control/#props) component.
|
|
54
54
|
*/
|
|
55
55
|
root: SlotProps<React.ElementType<FormControlProps>, {}, TextFieldOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the input slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on the [Input](https://mui.com/material-ui/api/input/#props) component.
|
|
59
59
|
*/
|
|
60
60
|
input: SlotProps<React.ElementType<InputPropsType>, {}, TextFieldOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the input label slot.
|
|
63
|
-
* By default, the
|
|
63
|
+
* By default, the available props are based on the [InputLabel](https://mui.com/material-ui/api/input-label/#props) component.
|
|
64
64
|
*/
|
|
65
65
|
inputLabel: SlotProps<React.ElementType<InputLabelProps>, {}, TextFieldOwnerState>;
|
|
66
66
|
/**
|
|
67
67
|
* Props forwarded to the html input slot.
|
|
68
|
-
* By default, the
|
|
68
|
+
* By default, the available props are based on the html input element.
|
|
69
69
|
*/
|
|
70
70
|
htmlInput: SlotProps<React.ElementType<InputBaseProps['inputProps']>, {}, TextFieldOwnerState>;
|
|
71
71
|
/**
|
|
72
72
|
* Props forwarded to the form helper text slot.
|
|
73
|
-
* By default, the
|
|
73
|
+
* By default, the available props are based on the [FormHelperText](https://mui.com/material-ui/api/form-helper-text/#props) component.
|
|
74
74
|
*/
|
|
75
75
|
formHelperText: SlotProps<React.ElementType<FormHelperTextProps>, {}, TextFieldOwnerState>;
|
|
76
76
|
/**
|
|
77
77
|
* Props forwarded to the select slot.
|
|
78
|
-
* By default, the
|
|
78
|
+
* By default, the available props are based on the [Select](https://mui.com/material-ui/api/select/#props) component.
|
|
79
79
|
*/
|
|
80
80
|
select: SlotProps<React.ElementType<SelectProps>, {}, TextFieldOwnerState>;
|
|
81
81
|
}>;
|
package/esm/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -35,22 +35,22 @@ export interface TooltipSlots {
|
|
|
35
35
|
export type TooltipSlotsAndSlotProps = CreateSlotsAndSlotProps<TooltipSlots, {
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the popper slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the [Popper](https://mui.com/material-ui/api/popper/#props) component.
|
|
39
39
|
*/
|
|
40
40
|
popper: SlotProps<React.ElementType<PopperProps>, TooltipPopperSlotPropsOverrides, TooltipOwnerState>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the transition slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
transition: SlotProps<React.ElementType, TransitionProps & TooltipTransitionSlotPropsOverrides, TooltipOwnerState>;
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the tooltip slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the div element.
|
|
49
49
|
*/
|
|
50
50
|
tooltip: SlotProps<'div', TooltipTooltipSlotPropsOverrides, TooltipOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the tooltip slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the span element.
|
|
54
54
|
*/
|
|
55
55
|
arrow: SlotProps<'span', TooltipArrowSlotPropsOverrides, TooltipOwnerState>;
|
|
56
56
|
}>;
|
package/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ interface SwitchBaseSlots {
|
|
|
18
18
|
type SwitchBaseSlotsAndSlotProps = CreateSlotsAndSlotProps<SwitchBaseSlots, {
|
|
19
19
|
/**
|
|
20
20
|
* Props forwarded to the root slot.
|
|
21
|
-
* By default, the
|
|
21
|
+
* By default, the available props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
|
|
22
22
|
*/
|
|
23
23
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, SwitchBaseOwnerState>;
|
|
24
24
|
/**
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "7.3.
|
|
1
|
+
export const version = "7.3.2";
|
|
2
2
|
export const major = Number("7");
|
|
3
3
|
export const minor = Number("3");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("2");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/index.js
CHANGED
package/internal/SwitchBase.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface SwitchBaseSlots {
|
|
|
18
18
|
type SwitchBaseSlotsAndSlotProps = CreateSlotsAndSlotProps<SwitchBaseSlots, {
|
|
19
19
|
/**
|
|
20
20
|
* Props forwarded to the root slot.
|
|
21
|
-
* By default, the
|
|
21
|
+
* By default, the available props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
|
|
22
22
|
*/
|
|
23
23
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, SwitchBaseOwnerState>;
|
|
24
24
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://opencollective.com/mui-org"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.28.
|
|
29
|
+
"@babel/runtime": "^7.28.3",
|
|
30
30
|
"@popperjs/core": "^2.11.8",
|
|
31
31
|
"@types/react-transition-group": "^4.4.12",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"react-is": "^19.1.1",
|
|
36
36
|
"react-transition-group": "^4.4.5",
|
|
37
|
-
"@mui/system": "^7.3.
|
|
38
|
-
"@mui/
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/
|
|
37
|
+
"@mui/system": "^7.3.2",
|
|
38
|
+
"@mui/utils": "^7.3.2",
|
|
39
|
+
"@mui/types": "^7.4.6",
|
|
40
|
+
"@mui/core-downloads-tracker": "^7.3.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.5.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
|
-
"@mui/material-pigment-css": "^7.3.
|
|
48
|
+
"@mui/material-pigment-css": "^7.3.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@types/react": {
|
|
@@ -68,6 +68,20 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=14.0.0"
|
|
70
70
|
},
|
|
71
|
+
"pigment-css": {
|
|
72
|
+
"vite": {
|
|
73
|
+
"include": [
|
|
74
|
+
"prop-types",
|
|
75
|
+
"react-is",
|
|
76
|
+
"hoist-non-react-statics",
|
|
77
|
+
"react",
|
|
78
|
+
"react-dom",
|
|
79
|
+
"@emotion/react"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"type": "commonjs",
|
|
84
|
+
"types": "./index.d.ts",
|
|
71
85
|
"exports": {
|
|
72
86
|
"./package.json": "./package.json",
|
|
73
87
|
".": {
|
|
@@ -75,46 +89,31 @@
|
|
|
75
89
|
"types": "./index.d.ts",
|
|
76
90
|
"default": "./index.js"
|
|
77
91
|
},
|
|
78
|
-
"
|
|
92
|
+
"default": {
|
|
79
93
|
"types": "./esm/index.d.ts",
|
|
80
94
|
"default": "./esm/index.js"
|
|
81
95
|
}
|
|
82
96
|
},
|
|
97
|
+
"./ButtonBase/TouchRipple": {
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./ButtonBase/TouchRipple.d.ts",
|
|
100
|
+
"default": "./ButtonBase/TouchRipple.js"
|
|
101
|
+
},
|
|
102
|
+
"default": {
|
|
103
|
+
"types": "./esm/ButtonBase/TouchRipple.d.ts",
|
|
104
|
+
"default": "./esm/ButtonBase/TouchRipple.js"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
83
107
|
"./*": {
|
|
84
108
|
"require": {
|
|
85
109
|
"types": "./*/index.d.ts",
|
|
86
110
|
"default": "./*/index.js"
|
|
87
111
|
},
|
|
88
|
-
"
|
|
112
|
+
"default": {
|
|
89
113
|
"types": "./esm/*/index.d.ts",
|
|
90
114
|
"default": "./esm/*/index.js"
|
|
91
115
|
}
|
|
92
116
|
},
|
|
93
|
-
"./esm": null
|
|
94
|
-
|
|
95
|
-
"./ButtonBase/TouchRipple": {
|
|
96
|
-
"require": {
|
|
97
|
-
"types": "./ButtonBase/TouchRipple.d.ts",
|
|
98
|
-
"default": "./ButtonBase/TouchRipple.js"
|
|
99
|
-
},
|
|
100
|
-
"import": {
|
|
101
|
-
"types": "./esm/ButtonBase/TouchRipple.d.ts",
|
|
102
|
-
"default": "./esm/ButtonBase/TouchRipple.js"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"pigment-css": {
|
|
107
|
-
"vite": {
|
|
108
|
-
"include": [
|
|
109
|
-
"prop-types",
|
|
110
|
-
"react-is",
|
|
111
|
-
"hoist-non-react-statics",
|
|
112
|
-
"react",
|
|
113
|
-
"react-dom",
|
|
114
|
-
"@emotion/react"
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"private": false,
|
|
119
|
-
"types": "./index.d.ts"
|
|
117
|
+
"./esm": null
|
|
118
|
+
}
|
|
120
119
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _isHostComponent = _interopRequireDefault(require("
|
|
8
|
+
var _isHostComponent = _interopRequireDefault(require("@mui/utils/isHostComponent"));
|
|
9
9
|
const shouldSpreadAdditionalProps = Slot => {
|
|
10
10
|
return !Slot || !(0, _isHostComponent.default)(Slot);
|
|
11
11
|
};
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "7.3.
|
|
7
|
+
const version = exports.version = "7.3.2";
|
|
8
8
|
const major = exports.major = Number("7");
|
|
9
9
|
const minor = exports.minor = Number("3");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("2");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
4
|
-
*/
|
|
5
|
-
declare function isHostComponent(element: React.ElementType): element is "symbol" | "object" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "clipPath" | "filter" | "menuitem" | "mask" | "marker" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view";
|
|
6
|
-
export default isHostComponent;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
4
|
-
*/
|
|
5
|
-
declare function isHostComponent(element: React.ElementType): element is "symbol" | "object" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "clipPath" | "filter" | "menuitem" | "mask" | "marker" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view";
|
|
6
|
-
export default isHostComponent;
|
package/utils/isHostComponent.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
9
|
-
*/
|
|
10
|
-
function isHostComponent(element) {
|
|
11
|
-
return typeof element === 'string';
|
|
12
|
-
}
|
|
13
|
-
var _default = exports.default = isHostComponent;
|