@mui/material 6.1.7 → 6.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +2 -0
- package/Accordion/Accordion.js +2 -0
- package/Autocomplete/Autocomplete.d.ts +5 -0
- package/Autocomplete/Autocomplete.js +6 -1
- package/Avatar/Avatar.d.ts +1 -0
- package/Avatar/Avatar.js +1 -0
- package/Backdrop/Backdrop.d.ts +1 -0
- package/Backdrop/Backdrop.js +1 -0
- package/CHANGELOG.md +99 -0
- package/Grid2/Grid2.d.ts +0 -1
- package/Grid2/grid2Classes.d.ts +8 -3
- package/Grid2/grid2Classes.js +1 -1
- package/Select/Select.d.ts +10 -4
- package/SpeedDial/SpeedDial.d.ts +2 -0
- package/SpeedDial/SpeedDial.js +2 -0
- package/StepIcon/StepIcon.d.ts +5 -2
- package/StepLabel/StepLabel.d.ts +2 -0
- package/StepLabel/StepLabel.js +2 -0
- package/Tooltip/Tooltip.d.ts +69 -36
- package/Tooltip/Tooltip.js +84 -58
- package/index.js +1 -1
- package/modern/Accordion/Accordion.js +2 -0
- package/modern/Autocomplete/Autocomplete.js +6 -1
- package/modern/Avatar/Avatar.js +1 -0
- package/modern/Backdrop/Backdrop.js +1 -0
- package/modern/Grid2/grid2Classes.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +2 -0
- package/modern/StepLabel/StepLabel.js +2 -0
- package/modern/Tooltip/Tooltip.js +84 -58
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/node/Accordion/Accordion.js +2 -0
- package/node/Autocomplete/Autocomplete.js +6 -1
- package/node/Avatar/Avatar.js +1 -0
- package/node/Backdrop/Backdrop.js +1 -0
- package/node/Grid2/grid2Classes.js +1 -1
- package/node/SpeedDial/SpeedDial.js +2 -0
- package/node/StepLabel/StepLabel.js +2 -0
- package/node/Tooltip/Tooltip.js +84 -58
- package/node/index.js +1 -1
- package/node/version/index.js +2 -2
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -0
- package/styles/overrides.d.ts +2 -2
- package/useMediaQuery/index.d.ts +3 -2
- package/version/index.js +2 -2
|
@@ -336,7 +336,7 @@ const AutocompleteNoOptions = (0, _zeroStyled.styled)('div', {
|
|
|
336
336
|
color: (theme.vars || theme).palette.text.secondary,
|
|
337
337
|
padding: '14px 16px'
|
|
338
338
|
})));
|
|
339
|
-
const AutocompleteListbox = (0, _zeroStyled.styled)('
|
|
339
|
+
const AutocompleteListbox = (0, _zeroStyled.styled)('ul', {
|
|
340
340
|
name: 'MuiAutocomplete',
|
|
341
341
|
slot: 'Listbox',
|
|
342
342
|
overridesResolver: (props, styles) => styles.listbox
|
|
@@ -804,6 +804,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
804
804
|
blurOnSelect: _propTypes.default.oneOfType([_propTypes.default.oneOf(['mouse', 'touch']), _propTypes.default.bool]),
|
|
805
805
|
/**
|
|
806
806
|
* Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
|
|
807
|
+
* @deprecated Use `slotProps.chip` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
807
808
|
*/
|
|
808
809
|
ChipProps: _propTypes.default.object,
|
|
809
810
|
/**
|
|
@@ -1006,10 +1007,12 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1006
1007
|
/**
|
|
1007
1008
|
* The component used to render the listbox.
|
|
1008
1009
|
* @default 'ul'
|
|
1010
|
+
* @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1009
1011
|
*/
|
|
1010
1012
|
ListboxComponent: _propTypes.default.elementType,
|
|
1011
1013
|
/**
|
|
1012
1014
|
* Props applied to the Listbox element.
|
|
1015
|
+
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1013
1016
|
*/
|
|
1014
1017
|
ListboxProps: _propTypes.default.object,
|
|
1015
1018
|
/**
|
|
@@ -1104,11 +1107,13 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1104
1107
|
/**
|
|
1105
1108
|
* The component used to render the body of the popup.
|
|
1106
1109
|
* @default Paper
|
|
1110
|
+
* @deprecated Use `slots.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1107
1111
|
*/
|
|
1108
1112
|
PaperComponent: _propTypes.default.elementType,
|
|
1109
1113
|
/**
|
|
1110
1114
|
* The component used to position the popup.
|
|
1111
1115
|
* @default Popper
|
|
1116
|
+
* @deprecated Use `slots.popper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1112
1117
|
*/
|
|
1113
1118
|
PopperComponent: _propTypes.default.elementType,
|
|
1114
1119
|
/**
|
package/node/Avatar/Avatar.js
CHANGED
|
@@ -262,6 +262,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */
|
|
|
262
262
|
/**
|
|
263
263
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
264
264
|
* It can be used to listen for the loading error event.
|
|
265
|
+
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
265
266
|
*/
|
|
266
267
|
imgProps: _propTypes.default.object,
|
|
267
268
|
/**
|
|
@@ -204,6 +204,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
204
204
|
* The component used for the transition.
|
|
205
205
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
206
206
|
* @default Fade
|
|
207
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
207
208
|
*/
|
|
208
209
|
TransitionComponent: _propTypes.default.elementType,
|
|
209
210
|
/**
|
|
@@ -15,7 +15,7 @@ const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
|
15
15
|
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
16
16
|
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
17
17
|
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
18
|
-
const grid2Classes = (0, _generateUtilityClasses.default)('MuiGrid2', ['root', 'container',
|
|
18
|
+
const grid2Classes = (0, _generateUtilityClasses.default)('MuiGrid2', ['root', 'container',
|
|
19
19
|
// spacings
|
|
20
20
|
...SPACINGS.map(spacing => `spacing-xs-${spacing}`),
|
|
21
21
|
// direction values
|
|
@@ -531,6 +531,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
|
|
|
531
531
|
* The component used for the transition.
|
|
532
532
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
533
533
|
* @default Zoom
|
|
534
|
+
* * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
534
535
|
*/
|
|
535
536
|
TransitionComponent: _propTypes.default.elementType,
|
|
536
537
|
/**
|
|
@@ -549,6 +550,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
|
|
|
549
550
|
/**
|
|
550
551
|
* Props applied to the transition element.
|
|
551
552
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
553
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
552
554
|
*/
|
|
553
555
|
TransitionProps: _propTypes.default.object
|
|
554
556
|
} : void 0;
|
|
@@ -261,10 +261,12 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
261
261
|
}),
|
|
262
262
|
/**
|
|
263
263
|
* The component to render in place of the [`StepIcon`](https://mui.com/material-ui/api/step-icon/).
|
|
264
|
+
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
264
265
|
*/
|
|
265
266
|
StepIconComponent: _propTypes.default.elementType,
|
|
266
267
|
/**
|
|
267
268
|
* Props applied to the [`StepIcon`](https://mui.com/material-ui/api/step-icon/) element.
|
|
269
|
+
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
268
270
|
*/
|
|
269
271
|
StepIconProps: _propTypes.default.object,
|
|
270
272
|
/**
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -17,7 +17,6 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
17
17
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
18
18
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
19
19
|
var _isFocusVisible = _interopRequireDefault(require("@mui/utils/isFocusVisible"));
|
|
20
|
-
var _appendOwnerState = _interopRequireDefault(require("@mui/utils/appendOwnerState"));
|
|
21
20
|
var _getReactElementRef = _interopRequireDefault(require("@mui/utils/getReactElementRef"));
|
|
22
21
|
var _zeroStyled = require("../zero-styled");
|
|
23
22
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
@@ -29,6 +28,7 @@ var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallbac
|
|
|
29
28
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
30
29
|
var _useId = _interopRequireDefault(require("../utils/useId"));
|
|
31
30
|
var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
|
|
31
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
32
32
|
var _tooltipClasses = _interopRequireWildcard(require("./tooltipClasses"));
|
|
33
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
34
|
function round(value) {
|
|
@@ -350,7 +350,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
350
350
|
slotProps = {},
|
|
351
351
|
slots = {},
|
|
352
352
|
title,
|
|
353
|
-
TransitionComponent: TransitionComponentProp
|
|
353
|
+
TransitionComponent: TransitionComponentProp,
|
|
354
354
|
TransitionProps,
|
|
355
355
|
...other
|
|
356
356
|
} = props;
|
|
@@ -600,6 +600,16 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
600
600
|
console.error(['MUI: You have provided a `title` prop to the child of <Tooltip />.', `Remove this title prop \`${children.props.title}\` or the Tooltip component.`].join('\n'));
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
+
const ownerState = {
|
|
604
|
+
...props,
|
|
605
|
+
isRtl,
|
|
606
|
+
arrow,
|
|
607
|
+
disableInteractive,
|
|
608
|
+
placement,
|
|
609
|
+
PopperComponentProp,
|
|
610
|
+
touch: ignoreNonTouchEvents.current
|
|
611
|
+
};
|
|
612
|
+
const resolvedPopperProps = typeof slotProps.popper === 'function' ? slotProps.popper(ownerState) : slotProps.popper;
|
|
603
613
|
const popperOptions = React.useMemo(() => {
|
|
604
614
|
let tooltipModifiers = [{
|
|
605
615
|
name: 'arrow',
|
|
@@ -612,44 +622,65 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
612
622
|
if (PopperProps.popperOptions?.modifiers) {
|
|
613
623
|
tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);
|
|
614
624
|
}
|
|
625
|
+
if (resolvedPopperProps?.popperOptions?.modifiers) {
|
|
626
|
+
tooltipModifiers = tooltipModifiers.concat(resolvedPopperProps.popperOptions.modifiers);
|
|
627
|
+
}
|
|
615
628
|
return {
|
|
616
629
|
...PopperProps.popperOptions,
|
|
630
|
+
...resolvedPopperProps?.popperOptions,
|
|
617
631
|
modifiers: tooltipModifiers
|
|
618
632
|
};
|
|
619
|
-
}, [arrowRef, PopperProps]);
|
|
620
|
-
const ownerState = {
|
|
621
|
-
...props,
|
|
622
|
-
isRtl,
|
|
623
|
-
arrow,
|
|
624
|
-
disableInteractive,
|
|
625
|
-
placement,
|
|
626
|
-
PopperComponentProp,
|
|
627
|
-
touch: ignoreNonTouchEvents.current
|
|
628
|
-
};
|
|
633
|
+
}, [arrowRef, PopperProps.popperOptions, resolvedPopperProps?.popperOptions]);
|
|
629
634
|
const classes = useUtilityClasses(ownerState);
|
|
630
|
-
const
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
635
|
+
const resolvedTransitionProps = typeof slotProps.transition === 'function' ? slotProps.transition(ownerState) : slotProps.transition;
|
|
636
|
+
const externalForwardedProps = {
|
|
637
|
+
slots: {
|
|
638
|
+
popper: components.Popper,
|
|
639
|
+
transition: components.Transition ?? TransitionComponentProp,
|
|
640
|
+
tooltip: components.Tooltip,
|
|
641
|
+
arrow: components.Arrow,
|
|
642
|
+
...slots
|
|
643
|
+
},
|
|
644
|
+
slotProps: {
|
|
645
|
+
arrow: slotProps.arrow ?? componentsProps.arrow,
|
|
646
|
+
popper: {
|
|
647
|
+
...PopperProps,
|
|
648
|
+
...(resolvedPopperProps ?? componentsProps.popper)
|
|
649
|
+
},
|
|
650
|
+
// resolvedPopperProps can be spread because it's already an object
|
|
651
|
+
tooltip: slotProps.tooltip ?? componentsProps.tooltip,
|
|
652
|
+
transition: {
|
|
653
|
+
...TransitionProps,
|
|
654
|
+
...(resolvedTransitionProps ?? componentsProps.transition)
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
const [PopperSlot, popperSlotProps] = (0, _useSlot.default)('popper', {
|
|
659
|
+
elementType: TooltipPopper,
|
|
660
|
+
externalForwardedProps,
|
|
661
|
+
ownerState,
|
|
662
|
+
className: (0, _clsx.default)(classes.popper, PopperProps?.className)
|
|
663
|
+
});
|
|
664
|
+
const [TransitionSlot, transitionSlotProps] = (0, _useSlot.default)('transition', {
|
|
665
|
+
elementType: _Grow.default,
|
|
666
|
+
externalForwardedProps,
|
|
667
|
+
ownerState
|
|
668
|
+
});
|
|
669
|
+
const [TooltipSlot, tooltipSlotProps] = (0, _useSlot.default)('tooltip', {
|
|
670
|
+
elementType: TooltipTooltip,
|
|
671
|
+
className: classes.tooltip,
|
|
672
|
+
externalForwardedProps,
|
|
673
|
+
ownerState
|
|
674
|
+
});
|
|
675
|
+
const [ArrowSlot, arrowSlotProps] = (0, _useSlot.default)('arrow', {
|
|
676
|
+
elementType: TooltipArrow,
|
|
677
|
+
className: classes.arrow,
|
|
678
|
+
externalForwardedProps,
|
|
679
|
+
ownerState,
|
|
680
|
+
ref: setArrowRef
|
|
681
|
+
});
|
|
651
682
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
652
|
-
children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
683
|
+
children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperSlot, {
|
|
653
684
|
as: PopperComponentProp ?? _Popper.default,
|
|
654
685
|
placement: placement,
|
|
655
686
|
anchorEl: followCursor ? {
|
|
@@ -667,19 +698,18 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
667
698
|
id: id,
|
|
668
699
|
transition: true,
|
|
669
700
|
...interactiveWrapperListeners,
|
|
670
|
-
...
|
|
701
|
+
...popperSlotProps,
|
|
671
702
|
popperOptions: popperOptions,
|
|
672
703
|
children: ({
|
|
673
704
|
TransitionProps: TransitionPropsInner
|
|
674
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
705
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
|
675
706
|
timeout: theme.transitions.duration.shorter,
|
|
676
707
|
...TransitionPropsInner,
|
|
677
|
-
...
|
|
678
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
679
|
-
...
|
|
680
|
-
children: [title, arrow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
681
|
-
...
|
|
682
|
-
ref: setArrowRef
|
|
708
|
+
...transitionSlotProps,
|
|
709
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(TooltipSlot, {
|
|
710
|
+
...tooltipSlotProps,
|
|
711
|
+
children: [title, arrow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ArrowSlot, {
|
|
712
|
+
...arrowSlotProps
|
|
683
713
|
}) : null]
|
|
684
714
|
})
|
|
685
715
|
})
|
|
@@ -711,7 +741,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
711
741
|
/**
|
|
712
742
|
* The components used for each slot inside.
|
|
713
743
|
*
|
|
714
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [
|
|
744
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
715
745
|
*
|
|
716
746
|
* @default {}
|
|
717
747
|
*/
|
|
@@ -725,7 +755,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
725
755
|
* The extra props for the slot components.
|
|
726
756
|
* You can override the existing props or add new ones.
|
|
727
757
|
*
|
|
728
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [
|
|
758
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
729
759
|
*
|
|
730
760
|
* @default {}
|
|
731
761
|
*/
|
|
@@ -822,33 +852,27 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
822
852
|
placement: _propTypes.default.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
823
853
|
/**
|
|
824
854
|
* The component used for the popper.
|
|
825
|
-
* @
|
|
855
|
+
* @deprecated use the `slots.popper` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
826
856
|
*/
|
|
827
857
|
PopperComponent: _propTypes.default.elementType,
|
|
828
858
|
/**
|
|
829
859
|
* Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
|
|
860
|
+
* @deprecated use the `slotProps.popper` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
830
861
|
* @default {}
|
|
831
862
|
*/
|
|
832
863
|
PopperProps: _propTypes.default.object,
|
|
833
864
|
/**
|
|
834
|
-
* The
|
|
835
|
-
* You can override the existing props or add new ones.
|
|
836
|
-
*
|
|
837
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
838
|
-
*
|
|
865
|
+
* The props used for each slot inside.
|
|
839
866
|
* @default {}
|
|
840
867
|
*/
|
|
841
868
|
slotProps: _propTypes.default.shape({
|
|
842
|
-
arrow: _propTypes.default.object,
|
|
843
|
-
popper: _propTypes.default.object,
|
|
844
|
-
tooltip: _propTypes.default.object,
|
|
845
|
-
transition: _propTypes.default.object
|
|
869
|
+
arrow: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
870
|
+
popper: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
871
|
+
tooltip: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
872
|
+
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
846
873
|
}),
|
|
847
874
|
/**
|
|
848
875
|
* The components used for each slot inside.
|
|
849
|
-
*
|
|
850
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
851
|
-
*
|
|
852
876
|
* @default {}
|
|
853
877
|
*/
|
|
854
878
|
slots: _propTypes.default.shape({
|
|
@@ -868,12 +892,14 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
868
892
|
/**
|
|
869
893
|
* The component used for the transition.
|
|
870
894
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
871
|
-
* @
|
|
895
|
+
* @deprecated use the `slots.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
872
896
|
*/
|
|
873
897
|
TransitionComponent: _propTypes.default.elementType,
|
|
874
898
|
/**
|
|
875
899
|
* Props applied to the transition element.
|
|
876
900
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
901
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
902
|
+
* @default {}
|
|
877
903
|
*/
|
|
878
904
|
TransitionProps: _propTypes.default.object
|
|
879
905
|
} : void 0;
|
package/node/index.js
CHANGED
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 = "6.1.
|
|
7
|
+
const version = exports.version = "6.1.9";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
9
|
const minor = exports.minor = Number("1");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("9");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.9",
|
|
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.",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react-is": "^18.3.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/core-downloads-tracker": "^6.1.7",
|
|
39
|
-
"@mui/system": "^6.1.7",
|
|
40
38
|
"@mui/types": "^7.2.19",
|
|
41
|
-
"@mui/
|
|
39
|
+
"@mui/system": "^6.1.9",
|
|
40
|
+
"@mui/utils": "^6.1.9",
|
|
41
|
+
"@mui/core-downloads-tracker": "^6.1.9"
|
|
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": "^6.1.
|
|
49
|
+
"@mui/material-pigment-css": "^6.1.9"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@types/react": {
|
|
@@ -50,6 +50,7 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
|
|
|
50
50
|
* @default 'mui-color-scheme'
|
|
51
51
|
*/
|
|
52
52
|
colorSchemeStorageKey?: string;
|
|
53
|
+
noSsr?: boolean;
|
|
53
54
|
/**
|
|
54
55
|
* Disable CSS transitions when switching between modes or color schemes
|
|
55
56
|
* @default false
|
package/styles/overrides.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { FormGroupClassKey } from '../FormGroup';
|
|
|
45
45
|
import { FormHelperTextClassKey } from '../FormHelperText';
|
|
46
46
|
import { FormLabelClassKey } from '../FormLabel';
|
|
47
47
|
import { GridClassKey } from '../Grid';
|
|
48
|
-
import {
|
|
48
|
+
import { Grid2ClassKey } from '../Grid2';
|
|
49
49
|
import { IconButtonClassKey } from '../IconButton';
|
|
50
50
|
import { IconClassKey } from '../Icon';
|
|
51
51
|
import { ImageListClassKey } from '../ImageList';
|
|
@@ -190,7 +190,7 @@ export interface ComponentNameToClassKey {
|
|
|
190
190
|
MuiFormHelperText: FormHelperTextClassKey;
|
|
191
191
|
MuiFormLabel: FormLabelClassKey;
|
|
192
192
|
MuiGrid: GridClassKey;
|
|
193
|
-
MuiGrid2:
|
|
193
|
+
MuiGrid2: Grid2ClassKey;
|
|
194
194
|
MuiIcon: IconClassKey;
|
|
195
195
|
MuiIconButton: IconButtonClassKey;
|
|
196
196
|
MuiImageList: ImageListClassKey;
|
package/useMediaQuery/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { Theme } from '../styles/createTheme';
|
|
|
3
3
|
|
|
4
4
|
export * from '@mui/system/useMediaQuery';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// TODO v7: remove the generic. It's only used to prevent a breaking change in v6 from system's useMediaQuery in https://github.com/mui/material-ui/pull/44339.
|
|
7
|
+
declare function useMediaQuery<T = Theme>(
|
|
8
|
+
queryInput: string | ((theme: T) => string),
|
|
8
9
|
options?: UseMediaQueryOptions,
|
|
9
10
|
): boolean;
|
|
10
11
|
|
package/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.1.
|
|
1
|
+
export const version = "6.1.9";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("1");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("9");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|