@mui/material 5.15.15 → 5.15.17

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.17
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -20196,6 +20196,7 @@
20196
20196
  isControlled = _React$useRef.current;
20197
20197
  var inputRef = React__namespace.useRef(null);
20198
20198
  var handleRef = useForkRef(forwardedRef, inputRef);
20199
+ var heightRef = React__namespace.useRef(null);
20199
20200
  var shadowRef = React__namespace.useRef(null);
20200
20201
  var calculateTextareaStyles = React__namespace.useCallback(function () {
20201
20202
  var input = inputRef.current;
@@ -20252,8 +20253,12 @@
20252
20253
  if (isEmpty$1(textareaStyles)) {
20253
20254
  return;
20254
20255
  }
20256
+ var outerHeightStyle = textareaStyles.outerHeightStyle;
20255
20257
  var input = inputRef.current;
20256
- input.style.height = "".concat(textareaStyles.outerHeightStyle, "px");
20258
+ if (heightRef.current !== outerHeightStyle) {
20259
+ heightRef.current = outerHeightStyle;
20260
+ input.style.height = "".concat(outerHeightStyle, "px");
20261
+ }
20257
20262
  input.style.overflow = textareaStyles.overflowing ? 'hidden' : '';
20258
20263
  }, [calculateTextareaStyles]);
20259
20264
  useEnhancedEffect$1(function () {
@@ -28741,6 +28746,7 @@
28741
28746
  _props$maxWidth = props.maxWidth,
28742
28747
  maxWidth = _props$maxWidth === void 0 ? 'sm' : _props$maxWidth,
28743
28748
  onBackdropClick = props.onBackdropClick,
28749
+ onClick = props.onClick,
28744
28750
  onClose = props.onClose,
28745
28751
  open = props.open,
28746
28752
  _props$PaperComponent = props.PaperComponent,
@@ -28754,7 +28760,7 @@
28754
28760
  _props$transitionDura = props.transitionDuration,
28755
28761
  transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
28756
28762
  TransitionProps = props.TransitionProps,
28757
- other = _objectWithoutProperties(props, ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"]);
28763
+ other = _objectWithoutProperties(props, ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"]);
28758
28764
  var ownerState = _extends({}, props, {
28759
28765
  disableEscapeKeyDown: disableEscapeKeyDown,
28760
28766
  fullScreen: fullScreen,
@@ -28770,6 +28776,10 @@
28770
28776
  backdropClick.current = event.target === event.currentTarget;
28771
28777
  };
28772
28778
  var handleBackdropClick = function handleBackdropClick(event) {
28779
+ if (onClick) {
28780
+ onClick(event);
28781
+ }
28782
+
28773
28783
  // Ignore the events not coming from the "backdrop".
28774
28784
  if (!backdropClick.current) {
28775
28785
  return;
@@ -28908,6 +28918,10 @@
28908
28918
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
28909
28919
  */
28910
28920
  onBackdropClick: PropTypes.func,
28921
+ /**
28922
+ * @ignore
28923
+ */
28924
+ onClick: PropTypes.func,
28911
28925
  /**
28912
28926
  * Callback fired when the component requests to be closed.
28913
28927
  *
@@ -41722,29 +41736,7 @@
41722
41736
  '&:hover': {
41723
41737
  boxShadow: 'none'
41724
41738
  }
41725
- }), "variants", [].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
41726
- var _theme$vars6;
41727
- return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
41728
- }).map(function (color) {
41729
- return {
41730
- props: {
41731
- color: color
41732
- },
41733
- style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses$1.focusVisible), _extends({}, theme.vars ? {
41734
- boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
41735
- } : {
41736
- boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
41737
- }, {
41738
- '@media (hover: none)': {
41739
- boxShadow: 'none'
41740
- }
41741
- })), "&.".concat(sliderClasses$1.active), _extends({}, theme.vars ? {
41742
- boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
41743
- } : {
41744
- boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
41745
- }))
41746
- };
41747
- })), [{
41739
+ }), "variants", [{
41748
41740
  props: {
41749
41741
  size: 'small'
41750
41742
  },
@@ -41771,7 +41763,29 @@
41771
41763
  left: '50%',
41772
41764
  transform: 'translate(-50%, 50%)'
41773
41765
  }
41774
- }]));
41766
+ }].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
41767
+ var _theme$vars6;
41768
+ return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
41769
+ }).map(function (color) {
41770
+ return {
41771
+ props: {
41772
+ color: color
41773
+ },
41774
+ style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses$1.focusVisible), _extends({}, theme.vars ? {
41775
+ boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
41776
+ } : {
41777
+ boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
41778
+ }, {
41779
+ '@media (hover: none)': {
41780
+ boxShadow: 'none'
41781
+ }
41782
+ })), "&.".concat(sliderClasses$1.active), _extends({}, theme.vars ? {
41783
+ boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
41784
+ } : {
41785
+ boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
41786
+ }))
41787
+ };
41788
+ }))));
41775
41789
  });
41776
41790
  var SliderValueLabel = styled$1(SliderValueLabel$1, {
41777
41791
  name: 'MuiSlider',