@mui/material 6.4.3 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +3 -3
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.ts +4 -4
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +24 -2242
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Chip/Chip.d.ts +2 -2
- package/CircularProgress/CircularProgress.d.ts +3 -7
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +3 -3
- package/Collapse/Collapse.d.ts +5 -5
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.ts +3 -3
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.ts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormLabel/FormLabel.d.ts +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grid2/Grid2.d.ts +2 -2
- package/Grid2/Grid2.js +2 -2
- package/Grow/Grow.d.ts +5 -5
- package/Hidden/Hidden.d.ts +2 -2
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputLabel/InputLabel.d.ts +3 -3
- package/LinearProgress/LinearProgress.d.ts +3 -7
- package/Link/Link.d.ts +4 -4
- package/List/List.d.ts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +4 -4
- package/Menu/Menu.js +6 -2
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.ts +7 -7
- package/Modal/Modal.js +9 -10
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NoSsr/NoSsr.d.ts +2 -2
- package/NoSsr/NoSsr.js +2 -2
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Paper/Paper.d.ts +3 -3
- package/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/PigmentContainer/PigmentContainer.js +2 -2
- package/PigmentGrid/PigmentGrid.d.ts +2 -2
- package/PigmentGrid/PigmentGrid.js +2 -2
- package/PigmentHidden/PigmentHidden.d.ts +2 -2
- package/PigmentHidden/PigmentHidden.js +2 -2
- package/PigmentStack/PigmentStack.d.ts +2 -2
- package/PigmentStack/PigmentStack.js +2 -2
- package/Popover/Popover.d.ts +64 -10
- package/Popover/Popover.js +78 -51
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Portal/Portal.d.ts +2 -2
- package/Portal/Portal.js +2 -2
- package/README.md +4 -3
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.ts +4 -4
- package/Slider/Slider.d.ts +20 -11
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.d.ts +80 -3
- package/Snackbar/Snackbar.js +122 -32
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +2 -2
- package/StepIcon/StepIcon.d.ts +3 -3
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Tab/Tab.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/Tabs/Tabs.d.ts +2 -2
- package/TextField/TextField.d.ts +10 -10
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +2 -2
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +33 -1
- package/internal/SwitchBase.js +84 -30
- package/modern/ClickAwayListener/ClickAwayListener.js +3 -3
- package/modern/Grid2/Grid2.js +2 -2
- package/modern/Menu/Menu.js +6 -2
- package/modern/Modal/Modal.js +9 -10
- package/modern/NoSsr/NoSsr.js +2 -2
- package/modern/PigmentContainer/PigmentContainer.js +2 -2
- package/modern/PigmentGrid/PigmentGrid.js +2 -2
- package/modern/PigmentHidden/PigmentHidden.js +2 -2
- package/modern/PigmentStack/PigmentStack.js +2 -2
- package/modern/Popover/Popover.js +78 -51
- package/modern/Popper/Popper.js +4 -4
- package/modern/Portal/Portal.js +2 -2
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +122 -32
- package/modern/TextareaAutosize/TextareaAutosize.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +84 -30
- package/modern/utils/mergeSlotProps.js +10 -3
- package/modern/version/index.js +5 -5
- package/node/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node/Grid2/Grid2.js +2 -2
- package/node/Menu/Menu.js +6 -2
- package/node/Modal/Modal.js +9 -10
- package/node/NoSsr/NoSsr.js +2 -2
- package/node/PigmentContainer/PigmentContainer.js +2 -2
- package/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node/PigmentHidden/PigmentHidden.js +2 -2
- package/node/PigmentStack/PigmentStack.js +2 -2
- package/node/Popover/Popover.js +78 -51
- package/node/Popper/Popper.js +4 -4
- package/node/Portal/Portal.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +122 -32
- package/node/TextareaAutosize/TextareaAutosize.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +84 -30
- package/node/utils/mergeSlotProps.js +10 -3
- package/node/version/index.js +5 -5
- package/package.json +7 -7
- package/utils/mergeSlotProps.js +10 -3
- package/version/index.js +5 -5
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
12
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
14
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
14
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
@@ -19,6 +18,7 @@ var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
|
|
|
19
18
|
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
|
20
19
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
21
20
|
var _switchBaseClasses = require("./switchBaseClasses");
|
|
21
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
@@ -93,7 +93,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
93
93
|
autoFocus,
|
|
94
94
|
checked: checkedProp,
|
|
95
95
|
checkedIcon,
|
|
96
|
-
className,
|
|
97
96
|
defaultChecked,
|
|
98
97
|
disabled: disabledProp,
|
|
99
98
|
disableFocusRipple = false,
|
|
@@ -111,6 +110,8 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
111
110
|
tabIndex,
|
|
112
111
|
type,
|
|
113
112
|
value,
|
|
113
|
+
slots = {},
|
|
114
|
+
slotProps = {},
|
|
114
115
|
...other
|
|
115
116
|
} = props;
|
|
116
117
|
const [checked, setCheckedState] = (0, _useControlled.default)({
|
|
@@ -163,38 +164,75 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
163
164
|
edge
|
|
164
165
|
};
|
|
165
166
|
const classes = useUtilityClasses(ownerState);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
167
|
+
const externalForwardedProps = {
|
|
168
|
+
slots,
|
|
169
|
+
slotProps: {
|
|
170
|
+
input: inputProps,
|
|
171
|
+
...slotProps
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
|
175
|
+
ref,
|
|
176
|
+
elementType: SwitchBaseRoot,
|
|
177
|
+
className: classes.root,
|
|
178
|
+
shouldForwardComponentProp: true,
|
|
179
|
+
externalForwardedProps: {
|
|
180
|
+
...externalForwardedProps,
|
|
181
|
+
component: 'span',
|
|
182
|
+
...other
|
|
183
|
+
},
|
|
184
|
+
getSlotProps: handlers => ({
|
|
185
|
+
...handlers,
|
|
186
|
+
onFocus: event => {
|
|
187
|
+
handlers.onFocus?.(event);
|
|
188
|
+
handleFocus(event);
|
|
189
|
+
},
|
|
190
|
+
onBlur: event => {
|
|
191
|
+
handlers.onBlur?.(event);
|
|
192
|
+
handleBlur(event);
|
|
193
|
+
}
|
|
194
|
+
}),
|
|
195
|
+
ownerState,
|
|
196
|
+
additionalProps: {
|
|
197
|
+
centerRipple: true,
|
|
198
|
+
focusRipple: !disableFocusRipple,
|
|
199
|
+
disabled,
|
|
200
|
+
role: undefined,
|
|
201
|
+
tabIndex: null
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
const [InputSlot, inputSlotProps] = (0, _useSlot.default)('input', {
|
|
205
|
+
ref: inputRef,
|
|
206
|
+
elementType: SwitchBaseInput,
|
|
207
|
+
className: classes.input,
|
|
208
|
+
externalForwardedProps,
|
|
209
|
+
getSlotProps: handlers => ({
|
|
210
|
+
onChange: event => {
|
|
211
|
+
handlers.onChange?.(event);
|
|
212
|
+
handleInputChange(event);
|
|
213
|
+
}
|
|
214
|
+
}),
|
|
215
|
+
ownerState,
|
|
216
|
+
additionalProps: {
|
|
217
|
+
autoFocus,
|
|
181
218
|
checked: checkedProp,
|
|
182
|
-
defaultChecked
|
|
183
|
-
|
|
184
|
-
disabled: disabled,
|
|
219
|
+
defaultChecked,
|
|
220
|
+
disabled,
|
|
185
221
|
id: hasLabelFor ? id : undefined,
|
|
186
|
-
name
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
ownerState: ownerState,
|
|
192
|
-
tabIndex: tabIndex,
|
|
193
|
-
type: type,
|
|
222
|
+
name,
|
|
223
|
+
readOnly,
|
|
224
|
+
required,
|
|
225
|
+
tabIndex,
|
|
226
|
+
type,
|
|
194
227
|
...(type === 'checkbox' && value === undefined ? {} : {
|
|
195
228
|
value
|
|
196
|
-
})
|
|
197
|
-
|
|
229
|
+
})
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
233
|
+
...rootSlotProps,
|
|
234
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, {
|
|
235
|
+
...inputSlotProps
|
|
198
236
|
}), checked ? checkedIcon : icon]
|
|
199
237
|
});
|
|
200
238
|
});
|
|
@@ -287,6 +325,22 @@ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
|
|
|
287
325
|
* If `true`, the `input` element is required.
|
|
288
326
|
*/
|
|
289
327
|
required: _propTypes.default.bool,
|
|
328
|
+
/**
|
|
329
|
+
* The props used for each slot inside.
|
|
330
|
+
* @default {}
|
|
331
|
+
*/
|
|
332
|
+
slotProps: _propTypes.default.shape({
|
|
333
|
+
input: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
334
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
335
|
+
}),
|
|
336
|
+
/**
|
|
337
|
+
* The components used for each slot inside.
|
|
338
|
+
* @default {}
|
|
339
|
+
*/
|
|
340
|
+
slots: _propTypes.default.shape({
|
|
341
|
+
input: _propTypes.default.elementType,
|
|
342
|
+
root: _propTypes.default.elementType
|
|
343
|
+
}),
|
|
290
344
|
/**
|
|
291
345
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
292
346
|
*/
|
|
@@ -29,22 +29,29 @@ function mergeSlotProps(externalSlotProps, defaultSlotProps) {
|
|
|
29
29
|
...defaultSlotPropsValue.style,
|
|
30
30
|
...externalSlotPropsValue.style
|
|
31
31
|
}
|
|
32
|
+
}),
|
|
33
|
+
...(defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {
|
|
34
|
+
sx: [...(Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx]), ...(Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx])]
|
|
32
35
|
})
|
|
33
36
|
};
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
|
-
const
|
|
39
|
+
const typedDefaultSlotProps = defaultSlotProps;
|
|
40
|
+
const className = (0, _clsx.default)(typedDefaultSlotProps?.className, externalSlotProps?.className);
|
|
37
41
|
return {
|
|
38
42
|
...defaultSlotProps,
|
|
39
43
|
...externalSlotProps,
|
|
40
44
|
...(!!className && {
|
|
41
45
|
className
|
|
42
46
|
}),
|
|
43
|
-
...(
|
|
47
|
+
...(typedDefaultSlotProps?.style && externalSlotProps?.style && {
|
|
44
48
|
style: {
|
|
45
|
-
...
|
|
49
|
+
...typedDefaultSlotProps.style,
|
|
46
50
|
...externalSlotProps.style
|
|
47
51
|
}
|
|
52
|
+
}),
|
|
53
|
+
...(typedDefaultSlotProps?.sx && externalSlotProps?.sx && {
|
|
54
|
+
sx: [...(Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx]), ...(Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx])]
|
|
48
55
|
})
|
|
49
56
|
};
|
|
50
57
|
}
|
package/node/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 = "
|
|
8
|
-
const major = exports.major = Number("
|
|
9
|
-
const minor = exports.minor = Number("
|
|
10
|
-
const patch = exports.patch = Number("
|
|
11
|
-
const prerelease = exports.prerelease =
|
|
7
|
+
const version = exports.version = "7.0.0-alpha.0";
|
|
8
|
+
const major = exports.major = Number("7");
|
|
9
|
+
const minor = exports.minor = Number("0");
|
|
10
|
+
const patch = exports.patch = Number("0");
|
|
11
|
+
const prerelease = exports.prerelease = "alpha.0";
|
|
12
12
|
var _default = exports.default = version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"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.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://opencollective.com/mui-org"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.26.
|
|
30
|
+
"@babel/runtime": "^7.26.7",
|
|
31
31
|
"@popperjs/core": "^2.11.8",
|
|
32
32
|
"@types/react-transition-group": "^4.4.12",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react-is": "^19.0.0",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/types": "^7.2.
|
|
41
|
-
"@mui/utils": "
|
|
38
|
+
"@mui/core-downloads-tracker": "^7.0.0-alpha.0",
|
|
39
|
+
"@mui/system": "7.0.0-alpha.0",
|
|
40
|
+
"@mui/types": "^7.2.22",
|
|
41
|
+
"@mui/utils": "7.0.0-alpha.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
48
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
49
|
-
"@mui/material-pigment-css": "
|
|
49
|
+
"@mui/material-pigment-css": "7.0.0-alpha.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@types/react": {
|
package/utils/mergeSlotProps.js
CHANGED
|
@@ -22,22 +22,29 @@ export default function mergeSlotProps(externalSlotProps, defaultSlotProps) {
|
|
|
22
22
|
...defaultSlotPropsValue.style,
|
|
23
23
|
...externalSlotPropsValue.style
|
|
24
24
|
}
|
|
25
|
+
}),
|
|
26
|
+
...(defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {
|
|
27
|
+
sx: [...(Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx]), ...(Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx])]
|
|
25
28
|
})
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
|
-
const
|
|
32
|
+
const typedDefaultSlotProps = defaultSlotProps;
|
|
33
|
+
const className = clsx(typedDefaultSlotProps?.className, externalSlotProps?.className);
|
|
30
34
|
return {
|
|
31
35
|
...defaultSlotProps,
|
|
32
36
|
...externalSlotProps,
|
|
33
37
|
...(!!className && {
|
|
34
38
|
className
|
|
35
39
|
}),
|
|
36
|
-
...(
|
|
40
|
+
...(typedDefaultSlotProps?.style && externalSlotProps?.style && {
|
|
37
41
|
style: {
|
|
38
|
-
...
|
|
42
|
+
...typedDefaultSlotProps.style,
|
|
39
43
|
...externalSlotProps.style
|
|
40
44
|
}
|
|
45
|
+
}),
|
|
46
|
+
...(typedDefaultSlotProps?.sx && externalSlotProps?.sx && {
|
|
47
|
+
sx: [...(Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx]), ...(Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx])]
|
|
41
48
|
})
|
|
42
49
|
};
|
|
43
50
|
}
|
package/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "
|
|
2
|
-
export const major = Number("
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
5
|
-
export const prerelease =
|
|
1
|
+
export const version = "7.0.0-alpha.0";
|
|
2
|
+
export const major = Number("7");
|
|
3
|
+
export const minor = Number("0");
|
|
4
|
+
export const patch = Number("0");
|
|
5
|
+
export const prerelease = "alpha.0";
|
|
6
6
|
export default version;
|