@mui/material 5.15.19 → 5.15.21
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/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +9 -17
- package/CHANGELOG.md +73 -2
- package/Stepper/Stepper.js +4 -2
- package/Stepper/stepperClasses.d.ts +2 -0
- package/Stepper/stepperClasses.js +1 -1
- package/Tab/Tab.js +3 -1
- package/Tab/tabClasses.d.ts +1 -1
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +5 -9
- package/legacy/Stepper/Stepper.js +4 -2
- package/legacy/Stepper/stepperClasses.js +1 -1
- package/legacy/Tab/Tab.js +5 -5
- package/legacy/index.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +9 -17
- package/modern/Stepper/Stepper.js +4 -2
- package/modern/Stepper/stepperClasses.js +1 -1
- package/modern/Tab/Tab.js +3 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +9 -17
- package/node/Stepper/Stepper.js +4 -2
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/Tab/Tab.js +3 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +18 -22
- package/umd/material-ui.production.min.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.15.
|
|
2
|
+
* @mui/material v5.15.21
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -5065,11 +5065,9 @@
|
|
|
5065
5065
|
var output = options.clone ? _extends({}, target) : target;
|
|
5066
5066
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
5067
5067
|
Object.keys(source).forEach(function (key) {
|
|
5068
|
+
if (isPlainObject(source[key]) &&
|
|
5068
5069
|
// Avoid prototype pollution
|
|
5069
|
-
|
|
5070
|
-
return;
|
|
5071
|
-
}
|
|
5072
|
-
if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
|
|
5070
|
+
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
|
|
5073
5071
|
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
|
|
5074
5072
|
output[key] = deepmerge(target[key], source[key], options);
|
|
5075
5073
|
} else if (options.clone) {
|
|
@@ -7978,7 +7976,7 @@
|
|
|
7978
7976
|
var _React$useRef2 = React__namespace.useRef(defaultProp),
|
|
7979
7977
|
defaultValue = _React$useRef2.current;
|
|
7980
7978
|
React__namespace.useEffect(function () {
|
|
7981
|
-
if (!isControlled && defaultValue
|
|
7979
|
+
if (!isControlled && !Object.is(defaultValue, defaultProp)) {
|
|
7982
7980
|
console.error(["MUI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n'));
|
|
7983
7981
|
}
|
|
7984
7982
|
}, [JSON.stringify(defaultProp)]);
|
|
@@ -23048,7 +23046,11 @@
|
|
|
23048
23046
|
size = ownerState.size;
|
|
23049
23047
|
return [_defineProperty({}, "& .".concat(autocompleteClasses$1.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses$1.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses$1.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses$1.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses$1.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
|
|
23050
23048
|
}
|
|
23051
|
-
})((_styled = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "
|
|
23049
|
+
})((_styled = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "&.".concat(autocompleteClasses$1.focused, " .").concat(autocompleteClasses$1.clearIndicator), {
|
|
23050
|
+
visibility: 'visible'
|
|
23051
|
+
}), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23052
|
+
visibility: 'visible'
|
|
23053
|
+
})), "& .".concat(autocompleteClasses$1.tag), {
|
|
23052
23054
|
margin: 3,
|
|
23053
23055
|
maxWidth: 'calc(100% - 6px)'
|
|
23054
23056
|
}), "& .".concat(autocompleteClasses$1.inputRoot), _defineProperty(_defineProperty(_defineProperty({}, ".".concat(autocompleteClasses$1.hasPopupIcon, "&, .").concat(autocompleteClasses$1.hasClearIcon, "&"), {
|
|
@@ -23058,14 +23060,6 @@
|
|
|
23058
23060
|
}), "& .".concat(autocompleteClasses$1.input), {
|
|
23059
23061
|
width: 0,
|
|
23060
23062
|
minWidth: 30
|
|
23061
|
-
})), "&.".concat(autocompleteClasses$1.focused), _defineProperty(_defineProperty({}, "& .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23062
|
-
visibility: 'visible'
|
|
23063
|
-
}), "& .".concat(autocompleteClasses$1.input), {
|
|
23064
|
-
minWidth: 0
|
|
23065
|
-
})), '@media (pointer: fine)', _defineProperty(_defineProperty({}, "&:hover .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23066
|
-
visibility: 'visible'
|
|
23067
|
-
}), "&:hover .".concat(autocompleteClasses$1.input), {
|
|
23068
|
-
minWidth: 0
|
|
23069
23063
|
})), "& .".concat(inputClasses$1.root), {
|
|
23070
23064
|
paddingBottom: 1,
|
|
23071
23065
|
'& .MuiInput-input': {
|
|
@@ -45690,15 +45684,16 @@
|
|
|
45690
45684
|
function getStepperUtilityClass(slot) {
|
|
45691
45685
|
return generateUtilityClass$1('MuiStepper', slot);
|
|
45692
45686
|
}
|
|
45693
|
-
var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
|
|
45687
|
+
var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
|
|
45694
45688
|
var stepperClasses$1 = stepperClasses;
|
|
45695
45689
|
|
|
45696
45690
|
var useUtilityClasses$h = function useUtilityClasses(ownerState) {
|
|
45697
45691
|
var orientation = ownerState.orientation,
|
|
45692
|
+
nonLinear = ownerState.nonLinear,
|
|
45698
45693
|
alternativeLabel = ownerState.alternativeLabel,
|
|
45699
45694
|
classes = ownerState.classes;
|
|
45700
45695
|
var slots = {
|
|
45701
|
-
root: ['root', orientation, alternativeLabel && 'alternativeLabel']
|
|
45696
|
+
root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
|
|
45702
45697
|
};
|
|
45703
45698
|
return composeClasses(slots, getStepperUtilityClass, classes);
|
|
45704
45699
|
};
|
|
@@ -45707,7 +45702,7 @@
|
|
|
45707
45702
|
slot: 'Root',
|
|
45708
45703
|
overridesResolver: function overridesResolver(props, styles) {
|
|
45709
45704
|
var ownerState = props.ownerState;
|
|
45710
|
-
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
|
|
45705
|
+
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
|
|
45711
45706
|
}
|
|
45712
45707
|
})(function (_ref) {
|
|
45713
45708
|
var ownerState = _ref.ownerState;
|
|
@@ -45744,6 +45739,7 @@
|
|
|
45744
45739
|
orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
|
|
45745
45740
|
other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"]);
|
|
45746
45741
|
var ownerState = _extends({}, props, {
|
|
45742
|
+
nonLinear: nonLinear,
|
|
45747
45743
|
alternativeLabel: alternativeLabel,
|
|
45748
45744
|
orientation: orientation,
|
|
45749
45745
|
component: component
|
|
@@ -46846,11 +46842,11 @@
|
|
|
46846
46842
|
slot: 'Root',
|
|
46847
46843
|
overridesResolver: function overridesResolver(props, styles) {
|
|
46848
46844
|
var ownerState = props.ownerState;
|
|
46849
|
-
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles["textColor".concat(capitalize(ownerState.textColor))], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
|
|
46845
|
+
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles["textColor".concat(capitalize(ownerState.textColor))], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, _defineProperty({}, "& .".concat(tabClasses$1.iconWrapper), styles.iconWrapper)];
|
|
46850
46846
|
}
|
|
46851
|
-
})(function (
|
|
46852
|
-
var theme =
|
|
46853
|
-
ownerState =
|
|
46847
|
+
})(function (_ref2) {
|
|
46848
|
+
var theme = _ref2.theme,
|
|
46849
|
+
ownerState = _ref2.ownerState;
|
|
46854
46850
|
return _extends({}, theme.typography.button, {
|
|
46855
46851
|
maxWidth: 360,
|
|
46856
46852
|
minWidth: 90,
|