@mui/material 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionSummary/AccordionSummary.js +4 -3
- package/Autocomplete/Autocomplete.js +1 -1
- package/Backdrop/Backdrop.js +1 -9
- package/CHANGELOG.md +41 -0
- package/Collapse/Collapse.js +5 -4
- package/Fade/Fade.js +5 -2
- package/FilledInput/FilledInput.js +1 -3
- package/Grow/Grow.js +5 -2
- package/Icon/Icon.js +1 -3
- package/Input/Input.js +1 -3
- package/OutlinedInput/OutlinedInput.js +1 -3
- package/Slide/Slide.js +5 -2
- package/StepContent/StepContent.d.ts +31 -2
- package/StepContent/StepContent.js +39 -7
- package/StepLabel/StepLabel.js +1 -3
- package/SvgIcon/SvgIcon.js +1 -3
- package/TablePagination/TablePagination.d.ts +134 -18
- package/TablePagination/TablePagination.js +89 -33
- package/Zoom/Zoom.js +5 -2
- package/index.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +4 -3
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -9
- package/modern/Collapse/Collapse.js +5 -4
- package/modern/Fade/Fade.js +5 -2
- package/modern/FilledInput/FilledInput.js +1 -3
- package/modern/Grow/Grow.js +5 -2
- package/modern/Icon/Icon.js +1 -3
- package/modern/Input/Input.js +1 -3
- package/modern/OutlinedInput/OutlinedInput.js +1 -3
- package/modern/Slide/Slide.js +5 -2
- package/modern/StepContent/StepContent.js +39 -7
- package/modern/StepLabel/StepLabel.js +1 -3
- package/modern/SvgIcon/SvgIcon.js +1 -3
- package/modern/TablePagination/TablePagination.js +89 -33
- package/modern/Zoom/Zoom.js +5 -2
- package/modern/index.js +1 -1
- package/modern/version/index.js +3 -3
- package/node/AccordionSummary/AccordionSummary.js +4 -3
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -9
- package/node/Collapse/Collapse.js +5 -4
- package/node/Fade/Fade.js +5 -2
- package/node/FilledInput/FilledInput.js +1 -3
- package/node/Grow/Grow.js +5 -2
- package/node/Icon/Icon.js +1 -3
- package/node/Input/Input.js +1 -3
- package/node/OutlinedInput/OutlinedInput.js +1 -3
- package/node/Slide/Slide.js +5 -2
- package/node/StepContent/StepContent.js +39 -7
- package/node/StepLabel/StepLabel.js +1 -3
- package/node/SvgIcon/SvgIcon.js +1 -3
- package/node/TablePagination/TablePagination.js +89 -33
- package/node/Zoom/Zoom.js +5 -2
- package/node/index.js +1 -1
- package/node/version/index.js +3 -3
- package/package.json +5 -5
- package/useAutocomplete/useAutocomplete.d.ts +20 -5
- package/version/index.js +3 -3
|
@@ -7,7 +7,6 @@ import clsx from 'clsx';
|
|
|
7
7
|
import integerPropType from '@mui/utils/integerPropType';
|
|
8
8
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import isHostComponent from "../utils/isHostComponent.js";
|
|
11
10
|
import { styled } from "../zero-styled/index.js";
|
|
12
11
|
import memoTheme from "../utils/memoTheme.js";
|
|
13
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -19,6 +18,7 @@ import Toolbar from "../Toolbar/index.js";
|
|
|
19
18
|
import TablePaginationActions from "./TablePaginationActions.js";
|
|
20
19
|
import useId from "../utils/useId.js";
|
|
21
20
|
import tablePaginationClasses, { getTablePaginationUtilityClass } from "./tablePaginationClasses.js";
|
|
21
|
+
import useSlot from "../utils/useSlot.js";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
import { createElement as _createElement } from "react";
|
|
24
24
|
const TablePaginationRoot = styled(TableCell, {
|
|
@@ -154,7 +154,6 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
154
154
|
const {
|
|
155
155
|
ActionsComponent = TablePaginationActions,
|
|
156
156
|
backIconButtonProps,
|
|
157
|
-
className,
|
|
158
157
|
colSpan: colSpanProp,
|
|
159
158
|
component = TableCell,
|
|
160
159
|
count,
|
|
@@ -191,22 +190,73 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
191
190
|
}
|
|
192
191
|
return rowsPerPage === -1 ? count : Math.min(count, (page + 1) * rowsPerPage);
|
|
193
192
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
193
|
+
const externalForwardedProps = {
|
|
194
|
+
slots,
|
|
195
|
+
slotProps
|
|
196
|
+
};
|
|
197
|
+
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
198
|
+
ref,
|
|
199
|
+
className: classes.root,
|
|
200
|
+
elementType: TablePaginationRoot,
|
|
201
|
+
externalForwardedProps: {
|
|
202
|
+
...externalForwardedProps,
|
|
203
|
+
component,
|
|
204
|
+
...other
|
|
205
|
+
},
|
|
206
|
+
ownerState,
|
|
207
|
+
additionalProps: {
|
|
208
|
+
colSpan
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
const [ToolbarSlot, toolbarSlotProps] = useSlot('toolbar', {
|
|
212
|
+
className: classes.toolbar,
|
|
213
|
+
elementType: TablePaginationToolbar,
|
|
214
|
+
externalForwardedProps,
|
|
215
|
+
ownerState
|
|
216
|
+
});
|
|
217
|
+
const [SpacerSlot, spacerSlotProps] = useSlot('spacer', {
|
|
218
|
+
className: classes.spacer,
|
|
219
|
+
elementType: TablePaginationSpacer,
|
|
220
|
+
externalForwardedProps,
|
|
221
|
+
ownerState
|
|
222
|
+
});
|
|
223
|
+
const [SelectLabelSlot, selectLabelSlotProps] = useSlot('selectLabel', {
|
|
224
|
+
className: classes.selectLabel,
|
|
225
|
+
elementType: TablePaginationSelectLabel,
|
|
226
|
+
externalForwardedProps,
|
|
227
|
+
ownerState,
|
|
228
|
+
additionalProps: {
|
|
229
|
+
id: labelId
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
const [SelectSlot, selectSlotProps] = useSlot('select', {
|
|
233
|
+
className: classes.select,
|
|
234
|
+
elementType: TablePaginationSelect,
|
|
235
|
+
externalForwardedProps,
|
|
236
|
+
ownerState
|
|
237
|
+
});
|
|
238
|
+
const [MenuItemSlot, menuItemSlotProps] = useSlot('menuItem', {
|
|
239
|
+
className: classes.menuItem,
|
|
240
|
+
elementType: MenuItemComponent,
|
|
241
|
+
externalForwardedProps,
|
|
242
|
+
ownerState
|
|
243
|
+
});
|
|
244
|
+
const [DisplayedRows, displayedRowsProps] = useSlot('displayedRows', {
|
|
245
|
+
className: classes.displayedRows,
|
|
246
|
+
elementType: TablePaginationDisplayedRows,
|
|
247
|
+
externalForwardedProps,
|
|
248
|
+
ownerState
|
|
249
|
+
});
|
|
250
|
+
return /*#__PURE__*/_jsx(RootSlot, {
|
|
251
|
+
...rootSlotProps,
|
|
252
|
+
children: /*#__PURE__*/_jsxs(ToolbarSlot, {
|
|
253
|
+
...toolbarSlotProps,
|
|
254
|
+
children: [/*#__PURE__*/_jsx(SpacerSlot, {
|
|
255
|
+
...spacerSlotProps
|
|
256
|
+
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectLabelSlot, {
|
|
257
|
+
...selectLabelSlotProps,
|
|
208
258
|
children: labelRowsPerPage
|
|
209
|
-
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(
|
|
259
|
+
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectSlot, {
|
|
210
260
|
variant: "standard",
|
|
211
261
|
...(!selectProps.variant && {
|
|
212
262
|
input: _InputBase || (_InputBase = /*#__PURE__*/_jsx(InputBase, {}))
|
|
@@ -225,16 +275,14 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
225
275
|
icon: clsx(classes.selectIcon, (selectProps.classes || {}).icon)
|
|
226
276
|
},
|
|
227
277
|
disabled: disabled,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}),
|
|
232
|
-
className: classes.menuItem,
|
|
278
|
+
...selectSlotProps,
|
|
279
|
+
children: rowsPerPageOptions.map(rowsPerPageOption => /*#__PURE__*/_createElement(MenuItemSlot, {
|
|
280
|
+
...menuItemSlotProps,
|
|
233
281
|
key: rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption,
|
|
234
282
|
value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption
|
|
235
283
|
}, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption))
|
|
236
|
-
}), /*#__PURE__*/_jsx(
|
|
237
|
-
|
|
284
|
+
}), /*#__PURE__*/_jsx(DisplayedRows, {
|
|
285
|
+
...displayedRowsProps,
|
|
238
286
|
children: labelDisplayedRows({
|
|
239
287
|
from: count === 0 ? 0 : page * rowsPerPage + 1,
|
|
240
288
|
to: getLabelDisplayedRowsTo(),
|
|
@@ -281,10 +329,6 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
281
329
|
* Override or extend the styles applied to the component.
|
|
282
330
|
*/
|
|
283
331
|
classes: PropTypes.object,
|
|
284
|
-
/**
|
|
285
|
-
* @ignore
|
|
286
|
-
*/
|
|
287
|
-
className: PropTypes.string,
|
|
288
332
|
/**
|
|
289
333
|
* @ignore
|
|
290
334
|
*/
|
|
@@ -408,7 +452,7 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
408
452
|
*/
|
|
409
453
|
showLastButton: PropTypes.bool,
|
|
410
454
|
/**
|
|
411
|
-
* The props used for each slot inside
|
|
455
|
+
* The props used for each slot inside.
|
|
412
456
|
* @default {}
|
|
413
457
|
*/
|
|
414
458
|
slotProps: PropTypes.shape({
|
|
@@ -422,11 +466,16 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
422
466
|
previousButton: PropTypes.object,
|
|
423
467
|
previousButtonIcon: PropTypes.object
|
|
424
468
|
}),
|
|
425
|
-
|
|
469
|
+
displayedRows: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
470
|
+
menuItem: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
471
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
472
|
+
select: PropTypes.object,
|
|
473
|
+
selectLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
474
|
+
spacer: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
475
|
+
toolbar: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
426
476
|
}),
|
|
427
477
|
/**
|
|
428
|
-
* The components used for each slot inside
|
|
429
|
-
* Either a string to use a HTML element or a component.
|
|
478
|
+
* The components used for each slot inside.
|
|
430
479
|
* @default {}
|
|
431
480
|
*/
|
|
432
481
|
slots: PropTypes.shape({
|
|
@@ -439,7 +488,14 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
439
488
|
nextButtonIcon: PropTypes.elementType,
|
|
440
489
|
previousButton: PropTypes.elementType,
|
|
441
490
|
previousButtonIcon: PropTypes.elementType
|
|
442
|
-
})
|
|
491
|
+
}),
|
|
492
|
+
displayedRows: PropTypes.elementType,
|
|
493
|
+
menuItem: PropTypes.elementType,
|
|
494
|
+
root: PropTypes.elementType,
|
|
495
|
+
select: PropTypes.elementType,
|
|
496
|
+
selectLabel: PropTypes.elementType,
|
|
497
|
+
spacer: PropTypes.elementType,
|
|
498
|
+
toolbar: PropTypes.elementType
|
|
443
499
|
}),
|
|
444
500
|
/**
|
|
445
501
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
package/modern/Zoom/Zoom.js
CHANGED
|
@@ -114,7 +114,10 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
|
|
|
114
114
|
addEndListener: handleAddEndListener,
|
|
115
115
|
timeout: timeout,
|
|
116
116
|
...other,
|
|
117
|
-
children: (state,
|
|
117
|
+
children: (state, {
|
|
118
|
+
ownerState,
|
|
119
|
+
...restChildProps
|
|
120
|
+
}) => {
|
|
118
121
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
119
122
|
style: {
|
|
120
123
|
transform: 'scale(0)',
|
|
@@ -124,7 +127,7 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
|
|
|
124
127
|
...children.props.style
|
|
125
128
|
},
|
|
126
129
|
ref: handleRef,
|
|
127
|
-
...
|
|
130
|
+
...restChildProps
|
|
128
131
|
});
|
|
129
132
|
}
|
|
130
133
|
});
|
package/modern/index.js
CHANGED
package/modern/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.
|
|
1
|
+
export const version = "6.3.0";
|
|
2
2
|
export const major = Number("6");
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
3
|
+
export const minor = Number("3");
|
|
4
|
+
export const patch = Number("0");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
|
@@ -45,6 +45,7 @@ const AccordionSummaryRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
45
45
|
};
|
|
46
46
|
return {
|
|
47
47
|
display: 'flex',
|
|
48
|
+
width: '100%',
|
|
48
49
|
minHeight: 48,
|
|
49
50
|
padding: theme.spacing(0, 2),
|
|
50
51
|
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
|
@@ -67,7 +68,7 @@ const AccordionSummaryRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
67
68
|
}]
|
|
68
69
|
};
|
|
69
70
|
}));
|
|
70
|
-
const AccordionSummaryContent = (0, _zeroStyled.styled)('
|
|
71
|
+
const AccordionSummaryContent = (0, _zeroStyled.styled)('span', {
|
|
71
72
|
name: 'MuiAccordionSummary',
|
|
72
73
|
slot: 'Content',
|
|
73
74
|
overridesResolver: (props, styles) => styles.content
|
|
@@ -75,6 +76,7 @@ const AccordionSummaryContent = (0, _zeroStyled.styled)('div', {
|
|
|
75
76
|
theme
|
|
76
77
|
}) => ({
|
|
77
78
|
display: 'flex',
|
|
79
|
+
textAlign: 'start',
|
|
78
80
|
flexGrow: 1,
|
|
79
81
|
margin: '12px 0',
|
|
80
82
|
variants: [{
|
|
@@ -89,7 +91,7 @@ const AccordionSummaryContent = (0, _zeroStyled.styled)('div', {
|
|
|
89
91
|
}
|
|
90
92
|
}]
|
|
91
93
|
})));
|
|
92
|
-
const AccordionSummaryExpandIconWrapper = (0, _zeroStyled.styled)('
|
|
94
|
+
const AccordionSummaryExpandIconWrapper = (0, _zeroStyled.styled)('span', {
|
|
93
95
|
name: 'MuiAccordionSummary',
|
|
94
96
|
slot: 'ExpandIconWrapper',
|
|
95
97
|
overridesResolver: (props, styles) => styles.expandIconWrapper
|
|
@@ -144,7 +146,6 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
144
146
|
focusRipple: false,
|
|
145
147
|
disableRipple: true,
|
|
146
148
|
disabled: disabled,
|
|
147
|
-
component: "div",
|
|
148
149
|
"aria-expanded": expanded,
|
|
149
150
|
className: (0, _clsx.default)(classes.root, className),
|
|
150
151
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
@@ -964,7 +964,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
964
964
|
* If provided, the options will be grouped under the returned string.
|
|
965
965
|
* The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
|
|
966
966
|
*
|
|
967
|
-
* @param {Value}
|
|
967
|
+
* @param {Value} option The Autocomplete option.
|
|
968
968
|
* @returns {string}
|
|
969
969
|
*/
|
|
970
970
|
groupBy: _propTypes.default.func,
|
|
@@ -17,13 +17,6 @@ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
|
17
17
|
var _Fade = _interopRequireDefault(require("../Fade"));
|
|
18
18
|
var _backdropClasses = require("./backdropClasses");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const removeOwnerState = props => {
|
|
21
|
-
const {
|
|
22
|
-
ownerState,
|
|
23
|
-
...rest
|
|
24
|
-
} = props;
|
|
25
|
-
return rest;
|
|
26
|
-
};
|
|
27
20
|
const useUtilityClasses = ownerState => {
|
|
28
21
|
const {
|
|
29
22
|
classes,
|
|
@@ -112,12 +105,11 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
112
105
|
externalForwardedProps,
|
|
113
106
|
ownerState
|
|
114
107
|
});
|
|
115
|
-
const transitionPropsRemoved = removeOwnerState(transitionProps);
|
|
116
108
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
|
117
109
|
in: open,
|
|
118
110
|
timeout: transitionDuration,
|
|
119
111
|
...other,
|
|
120
|
-
...
|
|
112
|
+
...transitionProps,
|
|
121
113
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(RootSlot, {
|
|
122
114
|
"aria-hidden": true,
|
|
123
115
|
...rootProps,
|
|
@@ -279,7 +279,10 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
279
279
|
nodeRef: nodeRef,
|
|
280
280
|
timeout: timeout === 'auto' ? null : timeout,
|
|
281
281
|
...other,
|
|
282
|
-
children: (state,
|
|
282
|
+
children: (state, {
|
|
283
|
+
ownerState: incomingOwnerState,
|
|
284
|
+
...restChildProps
|
|
285
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(CollapseRoot, {
|
|
283
286
|
as: component,
|
|
284
287
|
className: (0, _clsx.default)(classes.root, className, {
|
|
285
288
|
'entered': classes.entered,
|
|
@@ -290,13 +293,11 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
290
293
|
...style
|
|
291
294
|
},
|
|
292
295
|
ref: handleRef,
|
|
293
|
-
...childProps,
|
|
294
|
-
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
295
|
-
// that might have been forwarded from the Transition component.
|
|
296
296
|
ownerState: {
|
|
297
297
|
...ownerState,
|
|
298
298
|
state
|
|
299
299
|
},
|
|
300
|
+
...restChildProps,
|
|
300
301
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CollapseWrapper, {
|
|
301
302
|
ownerState: {
|
|
302
303
|
...ownerState,
|
package/node/Fade/Fade.js
CHANGED
|
@@ -121,7 +121,10 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
121
121
|
addEndListener: handleAddEndListener,
|
|
122
122
|
timeout: timeout,
|
|
123
123
|
...other,
|
|
124
|
-
children: (state,
|
|
124
|
+
children: (state, {
|
|
125
|
+
ownerState,
|
|
126
|
+
...restChildProps
|
|
127
|
+
}) => {
|
|
125
128
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
126
129
|
style: {
|
|
127
130
|
opacity: 0,
|
|
@@ -131,7 +134,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
131
134
|
...children.props.style
|
|
132
135
|
},
|
|
133
136
|
ref: handleRef,
|
|
134
|
-
...
|
|
137
|
+
...restChildProps
|
|
135
138
|
});
|
|
136
139
|
}
|
|
137
140
|
});
|
|
@@ -519,7 +519,5 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
519
519
|
*/
|
|
520
520
|
value: _propTypes.default.any
|
|
521
521
|
} : void 0;
|
|
522
|
-
|
|
523
|
-
FilledInput.muiName = 'Input';
|
|
524
|
-
}
|
|
522
|
+
FilledInput.muiName = 'Input';
|
|
525
523
|
var _default = exports.default = FilledInput;
|
package/node/Grow/Grow.js
CHANGED
|
@@ -170,7 +170,10 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
|
170
170
|
addEndListener: handleAddEndListener,
|
|
171
171
|
timeout: timeout === 'auto' ? null : timeout,
|
|
172
172
|
...other,
|
|
173
|
-
children: (state,
|
|
173
|
+
children: (state, {
|
|
174
|
+
ownerState,
|
|
175
|
+
...restChildProps
|
|
176
|
+
}) => {
|
|
174
177
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
175
178
|
style: {
|
|
176
179
|
opacity: 0,
|
|
@@ -181,7 +184,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
|
181
184
|
...children.props.style
|
|
182
185
|
},
|
|
183
186
|
ref: handleRef,
|
|
184
|
-
...
|
|
187
|
+
...restChildProps
|
|
185
188
|
});
|
|
186
189
|
}
|
|
187
190
|
});
|
package/node/Icon/Icon.js
CHANGED
|
@@ -188,7 +188,5 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
|
|
|
188
188
|
*/
|
|
189
189
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
190
190
|
} : void 0;
|
|
191
|
-
|
|
192
|
-
Icon.muiName = 'Icon';
|
|
193
|
-
}
|
|
191
|
+
Icon.muiName = 'Icon';
|
|
194
192
|
var _default = exports.default = Icon;
|
package/node/Input/Input.js
CHANGED
|
@@ -364,7 +364,5 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
364
364
|
*/
|
|
365
365
|
value: _propTypes.default.any
|
|
366
366
|
} : void 0;
|
|
367
|
-
|
|
368
|
-
Input.muiName = 'Input';
|
|
369
|
-
}
|
|
367
|
+
Input.muiName = 'Input';
|
|
370
368
|
var _default = exports.default = Input;
|
|
@@ -413,7 +413,5 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
413
413
|
*/
|
|
414
414
|
value: _propTypes.default.any
|
|
415
415
|
} : void 0;
|
|
416
|
-
|
|
417
|
-
OutlinedInput.muiName = 'Input';
|
|
418
|
-
}
|
|
416
|
+
OutlinedInput.muiName = 'Input';
|
|
419
417
|
var _default = exports.default = OutlinedInput;
|
package/node/Slide/Slide.js
CHANGED
|
@@ -224,7 +224,10 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
224
224
|
in: inProp,
|
|
225
225
|
timeout: timeout,
|
|
226
226
|
...other,
|
|
227
|
-
children: (state,
|
|
227
|
+
children: (state, {
|
|
228
|
+
ownerState,
|
|
229
|
+
...restChildProps
|
|
230
|
+
}) => {
|
|
228
231
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
229
232
|
ref: handleRef,
|
|
230
233
|
style: {
|
|
@@ -232,7 +235,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
232
235
|
...style,
|
|
233
236
|
...children.props.style
|
|
234
237
|
},
|
|
235
|
-
...
|
|
238
|
+
...restChildProps
|
|
236
239
|
});
|
|
237
240
|
}
|
|
238
241
|
});
|
|
@@ -18,6 +18,7 @@ var _Collapse = _interopRequireDefault(require("../Collapse"));
|
|
|
18
18
|
var _StepperContext = _interopRequireDefault(require("../Stepper/StepperContext"));
|
|
19
19
|
var _StepContext = _interopRequireDefault(require("../Step/StepContext"));
|
|
20
20
|
var _stepContentClasses = require("./stepContentClasses");
|
|
21
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
21
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
23
|
const useUtilityClasses = ownerState => {
|
|
23
24
|
const {
|
|
@@ -73,6 +74,8 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
73
74
|
TransitionComponent = _Collapse.default,
|
|
74
75
|
transitionDuration: transitionDurationProp = 'auto',
|
|
75
76
|
TransitionProps,
|
|
77
|
+
slots = {},
|
|
78
|
+
slotProps = {},
|
|
76
79
|
...other
|
|
77
80
|
} = props;
|
|
78
81
|
const {
|
|
@@ -97,19 +100,32 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
97
100
|
if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {
|
|
98
101
|
transitionDuration = undefined;
|
|
99
102
|
}
|
|
103
|
+
const externalForwardedProps = {
|
|
104
|
+
slots,
|
|
105
|
+
slotProps: {
|
|
106
|
+
transition: TransitionProps,
|
|
107
|
+
...slotProps
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const [TransitionSlot, transitionProps] = (0, _useSlot.default)('transition', {
|
|
111
|
+
elementType: StepContentTransition,
|
|
112
|
+
externalForwardedProps,
|
|
113
|
+
ownerState,
|
|
114
|
+
className: classes.transition,
|
|
115
|
+
additionalProps: {
|
|
116
|
+
in: active || expanded,
|
|
117
|
+
timeout: transitionDuration,
|
|
118
|
+
unmountOnExit: true
|
|
119
|
+
}
|
|
120
|
+
});
|
|
100
121
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StepContentRoot, {
|
|
101
122
|
className: (0, _clsx.default)(classes.root, className),
|
|
102
123
|
ref: ref,
|
|
103
124
|
ownerState: ownerState,
|
|
104
125
|
...other,
|
|
105
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
126
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
|
106
127
|
as: TransitionComponent,
|
|
107
|
-
|
|
108
|
-
className: classes.transition,
|
|
109
|
-
ownerState: ownerState,
|
|
110
|
-
timeout: transitionDuration,
|
|
111
|
-
unmountOnExit: true,
|
|
112
|
-
...TransitionProps,
|
|
128
|
+
...transitionProps,
|
|
113
129
|
children: children
|
|
114
130
|
})
|
|
115
131
|
});
|
|
@@ -131,6 +147,20 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes /* remove-proptype
|
|
|
131
147
|
* @ignore
|
|
132
148
|
*/
|
|
133
149
|
className: _propTypes.default.string,
|
|
150
|
+
/**
|
|
151
|
+
* The props used for each slot inside.
|
|
152
|
+
* @default {}
|
|
153
|
+
*/
|
|
154
|
+
slotProps: _propTypes.default.shape({
|
|
155
|
+
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
156
|
+
}),
|
|
157
|
+
/**
|
|
158
|
+
* The components used for each slot inside.
|
|
159
|
+
* @default {}
|
|
160
|
+
*/
|
|
161
|
+
slots: _propTypes.default.shape({
|
|
162
|
+
transition: _propTypes.default.elementType
|
|
163
|
+
}),
|
|
134
164
|
/**
|
|
135
165
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
136
166
|
*/
|
|
@@ -139,6 +169,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes /* remove-proptype
|
|
|
139
169
|
* The component used for the transition.
|
|
140
170
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
141
171
|
* @default Collapse
|
|
172
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
142
173
|
*/
|
|
143
174
|
TransitionComponent: _propTypes.default.elementType,
|
|
144
175
|
/**
|
|
@@ -156,6 +187,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes /* remove-proptype
|
|
|
156
187
|
/**
|
|
157
188
|
* Props applied to the transition element.
|
|
158
189
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
190
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
159
191
|
*/
|
|
160
192
|
TransitionProps: _propTypes.default.object
|
|
161
193
|
} : void 0;
|
|
@@ -274,7 +274,5 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
274
274
|
*/
|
|
275
275
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
276
276
|
} : void 0;
|
|
277
|
-
|
|
278
|
-
StepLabel.muiName = 'StepLabel';
|
|
279
|
-
}
|
|
277
|
+
StepLabel.muiName = 'StepLabel';
|
|
280
278
|
var _default = exports.default = StepLabel;
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -237,7 +237,5 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
|
237
237
|
*/
|
|
238
238
|
viewBox: _propTypes.default.string
|
|
239
239
|
} : void 0;
|
|
240
|
-
|
|
241
|
-
SvgIcon.muiName = 'SvgIcon';
|
|
242
|
-
}
|
|
240
|
+
SvgIcon.muiName = 'SvgIcon';
|
|
243
241
|
var _default = exports.default = SvgIcon;
|