@mui/material 5.15.15 β†’ 5.15.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.15.16
4
+
5
+ <!-- generated comparing v5.15.15..master -->
6
+
7
+ _May 1, 2024_
8
+
9
+ A big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
10
+ This release was mostly about πŸ› bug fixes and πŸ“š documentation improvements.
11
+
12
+ ### `@mui/material@5.15.16`
13
+
14
+ - [material-ui][Dialog] Prevent onClick on the root element from being overwritten (@ryanburr) (#41914) @github-actions[bot]
15
+ - [material-ui][Select] Fix `muiName` property TypeScript error (@EyaOuenniche) (#41786) @github-actions[bot]
16
+ - β€”>[material-ui][l10n] Fix typo in is-IS locale (@magnimarels) (#41815) @github-actions[bot]
17
+
18
+ ### Docs
19
+
20
+ - Fix small SEO issues @oliviertassinari
21
+ - Fix 301 Toolpad links @oliviertassinari
22
+ - Fix 301 Toolpad links @oliviertassinari
23
+ - Fix 301 image redirections @oliviertassinari
24
+ - Fix small SEO issues @oliviertassinari
25
+ - Fix 301 redirection @oliviertassinari
26
+ - Fix format git diff regression (#41882) @oliviertassinari
27
+ - Fix 301 links @oliviertassinari
28
+ - [material-ui] Fix import statement in migration guide (@sai6855) (#41864) @github-actions[bot]
29
+ - [material-ui] Update Figma plugin name (@danilo-leal) (#42057) @github-actions[bot]
30
+ - [material-ui] Fix minor spelling error in the "About the lab" page (@ryanhartwig) (#42075) @github-actions[bot]
31
+ - [material-ui] Add missing backticks to HTML tag in the installation page (@Miguelrom) (#42009) @github-actions[bot]
32
+ - [material-ui] Add Connect-related content (@danilo-leal) (#41924) @DiegoAndai
33
+ - [material-ui] Fix Material 3 message typo (@aarongarciah) (#41822) @github-actions[bot]
34
+ - [material-ui] Remove Data Grid v7 beta callout (@cherniavskii) (#41842) @github-actions[bot]
35
+ - [material-ui][templates] Fix input props attributes in Landing Page template (@5-tom) (#42034) @github-actions[bot]
36
+ - [system] Update typo on the sx prop page (@bricker) (#42078) @github-actions[bot]
37
+
38
+ ### Core
39
+
40
+ - [blog] Add post to introduce the Connect plugin (@danilo-leal) (#41929) @DiegoAndai
41
+ - [core] Automate cherry-pick of PRs from `next` -> `master` (#41742) @aarongarciah
42
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
43
+ - [docs-infra] Use edge function for card generation (#41188) @alexfauquette
44
+ - [docs-infra] Fix drawer performances (#41807) (#41820) @alexfauquette
45
+ - [docs-infra] Fix analytics about inline ads (#41474) @alexfauquette
46
+ - [website] Sync career roles (@oliviertassinari) (#42059) @github-actions[bot]
47
+ - [website] Add content about the Sync plugin in the MaterialΒ UI page (@danilo-leal) (#42074) @github-actions[bot]
48
+ - [website] Add Nadja on the about page (#42054) @mnajdova
49
+ - [website] Close the `Design Engineer - X` role (#42014) @DanailH
50
+ - [website] Remove customer support agent role from website (@rluzists1) (#41996) @github-actions[bot]
51
+ - [website] Add Jose to About Us (#41759) @JCQuintas
52
+
53
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @DanailH, @DiegoAndai, @github-actions[bot], @JCQuintas, @mnajdova, @oliviertassinari
54
+
3
55
  ## v5.15.15
4
56
 
5
57
  <!-- generated comparing v5.15.14..master -->
@@ -7962,7 +8014,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
7962
8014
 
7963
8015
  <a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
7964
8016
 
7965
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8017
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
7966
8018
 
7967
8019
  - πŸŽ‰ We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
7968
8020
 
@@ -9432,7 +9484,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9432
9484
 
9433
9485
  <a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
9434
9486
 
9435
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
9487
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9436
9488
 
9437
9489
  - πŸ’„ We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9438
9490
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
package/Dialog/Dialog.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
5
+ const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
@@ -171,6 +171,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
171
171
  fullWidth = false,
172
172
  maxWidth = 'sm',
173
173
  onBackdropClick,
174
+ onClick,
174
175
  onClose,
175
176
  open,
176
177
  PaperComponent = Paper,
@@ -196,6 +197,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
196
197
  backdropClick.current = event.target === event.currentTarget;
197
198
  };
198
199
  const handleBackdropClick = event => {
200
+ if (onClick) {
201
+ onClick(event);
202
+ }
203
+
199
204
  // Ignore the events not coming from the "backdrop".
200
205
  if (!backdropClick.current) {
201
206
  return;
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
334
339
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
335
340
  */
336
341
  onBackdropClick: PropTypes.func,
342
+ /**
343
+ * @ignore
344
+ */
345
+ onClick: PropTypes.func,
337
346
  /**
338
347
  * Callback fired when the component requests to be closed.
339
348
  *
@@ -151,7 +151,8 @@ export interface BaseSelectProps<Value = unknown>
151
151
  variant?: SelectVariants;
152
152
  }
153
153
 
154
- export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onChange'> {
154
+ export interface FilledSelectProps
155
+ extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
155
156
  /**
156
157
  * The variant to use.
157
158
  * @default 'outlined'
@@ -159,7 +160,8 @@ export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onC
159
160
  variant: 'filled';
160
161
  }
161
162
 
162
- export interface StandardSelectProps extends Omit<InputProps, 'value' | 'onChange'> {
163
+ export interface StandardSelectProps
164
+ extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
163
165
  /**
164
166
  * The variant to use.
165
167
  * @default 'outlined'
@@ -167,7 +169,8 @@ export interface StandardSelectProps extends Omit<InputProps, 'value' | 'onChang
167
169
  variant: 'standard';
168
170
  }
169
171
 
170
- export interface OutlinedSelectProps extends Omit<OutlinedInputProps, 'value' | 'onChange'> {
172
+ export interface OutlinedSelectProps
173
+ extends Omit<OutlinedInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
171
174
  /**
172
175
  * The variant to use.
173
176
  * @default 'outlined'
@@ -193,8 +196,8 @@ export type SelectProps<Value = unknown> =
193
196
  * - [Select API](https://mui.com/material-ui/api/select/)
194
197
  * - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
195
198
  */
196
- export default function Select<Value = unknown>(
197
- props: SelectProps<Value>,
198
- ): JSX.Element & {
199
+ declare const Select: (<Value = unknown>(props: SelectProps<Value>) => JSX.Element) & {
199
200
  muiName: string;
200
201
  };
202
+
203
+ export default Select;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.16
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -167,6 +167,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
167
167
  _props$maxWidth = props.maxWidth,
168
168
  maxWidth = _props$maxWidth === void 0 ? 'sm' : _props$maxWidth,
169
169
  onBackdropClick = props.onBackdropClick,
170
+ onClick = props.onClick,
170
171
  onClose = props.onClose,
171
172
  open = props.open,
172
173
  _props$PaperComponent = props.PaperComponent,
@@ -180,7 +181,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
180
181
  _props$transitionDura = props.transitionDuration,
181
182
  transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
182
183
  TransitionProps = props.TransitionProps,
183
- other = _objectWithoutProperties(props, ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"]);
184
+ 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"]);
184
185
  var ownerState = _extends({}, props, {
185
186
  disableEscapeKeyDown: disableEscapeKeyDown,
186
187
  fullScreen: fullScreen,
@@ -196,6 +197,10 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
196
197
  backdropClick.current = event.target === event.currentTarget;
197
198
  };
198
199
  var handleBackdropClick = function handleBackdropClick(event) {
200
+ if (onClick) {
201
+ onClick(event);
202
+ }
203
+
199
204
  // Ignore the events not coming from the "backdrop".
200
205
  if (!backdropClick.current) {
201
206
  return;
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
334
339
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
335
340
  */
336
341
  onBackdropClick: PropTypes.func,
342
+ /**
343
+ * @ignore
344
+ */
345
+ onClick: PropTypes.func,
337
346
  /**
338
347
  * Callback fired when the component requests to be closed.
339
348
  *
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.16
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1922,7 +1922,7 @@ export var isIS = {
1922
1922
  var from = _ref19.from,
1923
1923
  to = _ref19.to,
1924
1924
  count = _ref19.count;
1925
- return "".concat(from, "\u2013").concat(to, " af ").concat(count !== -1 ? count : "fleiri enn ".concat(to));
1925
+ return "".concat(from, "\u2013").concat(to, " af ").concat(count !== -1 ? count : "fleiri en ".concat(to));
1926
1926
  }
1927
1927
  }
1928
1928
  },
package/locale/index.js CHANGED
@@ -1864,7 +1864,7 @@ export const isIS = {
1864
1864
  from,
1865
1865
  to,
1866
1866
  count
1867
- }) => `${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`
1867
+ }) => `${from}–${to} af ${count !== -1 ? count : `fleiri en ${to}`}`
1868
1868
  }
1869
1869
  },
1870
1870
  MuiRating: {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
5
+ const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
@@ -171,6 +171,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
171
171
  fullWidth = false,
172
172
  maxWidth = 'sm',
173
173
  onBackdropClick,
174
+ onClick,
174
175
  onClose,
175
176
  open,
176
177
  PaperComponent = Paper,
@@ -196,6 +197,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
196
197
  backdropClick.current = event.target === event.currentTarget;
197
198
  };
198
199
  const handleBackdropClick = event => {
200
+ if (onClick) {
201
+ onClick(event);
202
+ }
203
+
199
204
  // Ignore the events not coming from the "backdrop".
200
205
  if (!backdropClick.current) {
201
206
  return;
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
334
339
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
335
340
  */
336
341
  onBackdropClick: PropTypes.func,
342
+ /**
343
+ * @ignore
344
+ */
345
+ onClick: PropTypes.func,
337
346
  /**
338
347
  * Callback fired when the component requests to be closed.
339
348
  *
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.16
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1864,7 +1864,7 @@ export const isIS = {
1864
1864
  from,
1865
1865
  to,
1866
1866
  count
1867
- }) => `${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`
1867
+ }) => `${from}–${to} af ${count !== -1 ? count : `fleiri en ${to}`}`
1868
1868
  }
1869
1869
  },
1870
1870
  MuiRating: {
@@ -24,7 +24,7 @@ var _DialogContext = _interopRequireDefault(require("./DialogContext"));
24
24
  var _Backdrop = _interopRequireDefault(require("../Backdrop"));
25
25
  var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
26
26
  var _jsxRuntime = require("react/jsx-runtime");
27
- const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
27
+ const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
28
28
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
29
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
30
  const DialogBackdrop = (0, _styled.default)(_Backdrop.default, {
@@ -179,6 +179,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
179
179
  fullWidth = false,
180
180
  maxWidth = 'sm',
181
181
  onBackdropClick,
182
+ onClick,
182
183
  onClose,
183
184
  open,
184
185
  PaperComponent = _Paper.default,
@@ -204,6 +205,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
204
205
  backdropClick.current = event.target === event.currentTarget;
205
206
  };
206
207
  const handleBackdropClick = event => {
208
+ if (onClick) {
209
+ onClick(event);
210
+ }
211
+
207
212
  // Ignore the events not coming from the "backdrop".
208
213
  if (!backdropClick.current) {
209
214
  return;
@@ -342,6 +347,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
342
347
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
343
348
  */
344
349
  onBackdropClick: _propTypes.default.func,
350
+ /**
351
+ * @ignore
352
+ */
353
+ onClick: _propTypes.default.func,
345
354
  /**
346
355
  * Callback fired when the component requests to be closed.
347
356
  *
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.16
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1870,7 +1870,7 @@ const isIS = exports.isIS = {
1870
1870
  from,
1871
1871
  to,
1872
1872
  count
1873
- }) => `${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`
1873
+ }) => `${from}–${to} af ${count !== -1 ? count : `fleiri en ${to}`}`
1874
1874
  }
1875
1875
  },
1876
1876
  MuiRating: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.15.15",
3
+ "version": "5.15.16",
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.",
@@ -34,11 +34,11 @@
34
34
  "prop-types": "^15.8.1",
35
35
  "react-is": "^18.2.0",
36
36
  "react-transition-group": "^4.4.5",
37
- "@mui/base": "5.0.0-beta.40",
38
37
  "@mui/utils": "^5.15.14",
39
- "@mui/core-downloads-tracker": "^5.15.15",
40
- "@mui/system": "^5.15.15",
41
- "@mui/types": "^7.2.14"
38
+ "@mui/core-downloads-tracker": "^5.15.16",
39
+ "@mui/types": "^7.2.14",
40
+ "@mui/base": "5.0.0-beta.40",
41
+ "@mui/system": "^5.15.15"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.5.0",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v5.15.16
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
  *