@mui/material 5.13.5 → 5.13.6

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.
Files changed (181) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +58 -58
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/TouchRipple.js +4 -2
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +83 -0
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/chipClasses.d.ts +96 -96
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +42 -42
  46. package/FormControl/FormControlContext.d.ts +17 -17
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControl/useFormControl.d.ts +2 -2
  49. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  50. package/FormGroup/formGroupClasses.d.ts +12 -12
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +34 -34
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/inputClasses.d.ts +38 -38
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +46 -46
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/Modal/Modal.js +8 -0
  78. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  79. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +65 -65
  85. package/Radio/radioClasses.d.ts +16 -16
  86. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  87. package/RadioGroup/useRadioGroup.d.ts +4 -4
  88. package/Rating/ratingClasses.d.ts +40 -40
  89. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  90. package/Select/selectClasses.d.ts +32 -32
  91. package/Skeleton/skeletonClasses.d.ts +26 -26
  92. package/Slider/SliderValueLabel.d.ts +15 -15
  93. package/Slider/SliderValueLabel.types.d.ts +24 -24
  94. package/Slider/sliderClasses.d.ts +58 -58
  95. package/Snackbar/snackbarClasses.d.ts +20 -20
  96. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  97. package/SpeedDial/speedDialClasses.d.ts +22 -22
  98. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  99. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  100. package/Stack/stackClasses.d.ts +6 -6
  101. package/Step/StepContext.d.ts +20 -20
  102. package/Step/stepClasses.d.ts +16 -16
  103. package/StepButton/stepButtonClasses.d.ts +14 -14
  104. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  105. package/StepContent/stepContentClasses.d.ts +12 -12
  106. package/StepIcon/stepIconClasses.d.ts +16 -16
  107. package/StepLabel/stepLabelClasses.d.ts +28 -28
  108. package/Stepper/StepperContext.d.ts +18 -18
  109. package/Stepper/stepperClasses.d.ts +14 -14
  110. package/SvgIcon/SvgIcon.js +8 -4
  111. package/SvgIcon/svgIconClasses.d.ts +26 -26
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/textFieldClasses.d.ts +8 -8
  126. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  127. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  128. package/Toolbar/toolbarClasses.d.ts +14 -14
  129. package/Tooltip/Tooltip.d.ts +2 -2
  130. package/Tooltip/Tooltip.js +6 -1
  131. package/Tooltip/tooltipClasses.d.ts +30 -30
  132. package/Typography/typographyClasses.d.ts +50 -50
  133. package/Unstable_Grid2/Grid2.d.ts +4 -4
  134. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  135. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  136. package/Unstable_Grid2/index.d.ts +4 -4
  137. package/className/index.d.ts +1 -1
  138. package/darkScrollbar/index.d.ts +28 -28
  139. package/generateUtilityClass/index.d.ts +2 -2
  140. package/generateUtilityClasses/index.d.ts +1 -1
  141. package/index.js +1 -1
  142. package/internal/switchBaseClasses.d.ts +12 -12
  143. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  144. package/legacy/ButtonBase/TouchRipple.js +4 -2
  145. package/legacy/Modal/Modal.js +8 -0
  146. package/legacy/SvgIcon/SvgIcon.js +8 -4
  147. package/legacy/Tooltip/Tooltip.js +5 -2
  148. package/legacy/index.js +1 -1
  149. package/locale/index.d.ts +80 -80
  150. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  151. package/modern/ButtonBase/TouchRipple.js +4 -2
  152. package/modern/Modal/Modal.js +8 -0
  153. package/modern/SvgIcon/SvgIcon.js +8 -4
  154. package/modern/Tooltip/Tooltip.js +6 -1
  155. package/modern/index.js +1 -1
  156. package/node/BottomNavigation/BottomNavigation.js +0 -0
  157. package/node/ButtonBase/TouchRipple.js +4 -2
  158. package/node/Modal/Modal.js +8 -0
  159. package/node/SvgIcon/SvgIcon.js +8 -4
  160. package/node/Tooltip/Tooltip.js +6 -1
  161. package/node/index.js +1 -1
  162. package/package.json +5 -5
  163. package/styles/CssVarsProvider.d.ts +20 -20
  164. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  165. package/styles/experimental_extendTheme.d.ts +1 -0
  166. package/styles/getOverlayAlpha.d.ts +2 -2
  167. package/styles/identifier.d.ts +2 -2
  168. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  169. package/transitions/index.d.ts +1 -1
  170. package/transitions/transition.d.ts +13 -13
  171. package/transitions/utils.d.ts +23 -23
  172. package/types/OverridableComponentAugmentation.d.ts +31 -31
  173. package/umd/material-ui.development.js +51 -19
  174. package/umd/material-ui.production.min.js +4 -4
  175. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  176. package/useTouchRipple/index.d.ts +1 -1
  177. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  178. package/utils/getScrollbarSize.d.ts +2 -2
  179. package/utils/ownerDocument.d.ts +2 -2
  180. package/utils/ownerWindow.d.ts +2 -2
  181. package/utils/setRef.d.ts +2 -2
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,31 +1,31 @@
1
- import * as React from 'react';
2
- import { DistributiveOmit } from '@mui/types';
3
- declare module '@mui/material/OverridableComponent' {
4
- /**
5
- * A component whose root component can be controlled via a `component` prop.
6
- *
7
- * Adjusts valid props based on the type of `component`.
8
- */
9
- interface OverridableComponent<M extends OverridableTypeMap> {
10
- <C extends React.ElementType>(props: {
11
- /**
12
- * The component used for the root node.
13
- * Either a string to use a HTML element or a component.
14
- */
15
- component: C;
16
- } & OverridePropsVer2<M, C>): JSX.Element;
17
- (props: DefaultComponentPropsVer2<M>): JSX.Element;
18
- }
19
- /**
20
- * Props of the component if `component={Component}` is used.
21
- */
22
- type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
23
- ref?: React.Ref<Element>;
24
- });
25
- /**
26
- * Props if `component={Component}` is NOT used.
27
- */
28
- type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
29
- ref?: React.Ref<Element>;
30
- };
31
- }
1
+ import * as React from 'react';
2
+ import { DistributiveOmit } from '@mui/types';
3
+ declare module '@mui/material/OverridableComponent' {
4
+ /**
5
+ * A component whose root component can be controlled via a `component` prop.
6
+ *
7
+ * Adjusts valid props based on the type of `component`.
8
+ */
9
+ interface OverridableComponent<M extends OverridableTypeMap> {
10
+ <C extends React.ElementType>(props: {
11
+ /**
12
+ * The component used for the root node.
13
+ * Either a string to use a HTML element or a component.
14
+ */
15
+ component: C;
16
+ } & OverridePropsVer2<M, C>): JSX.Element;
17
+ (props: DefaultComponentPropsVer2<M>): JSX.Element;
18
+ }
19
+ /**
20
+ * Props of the component if `component={Component}` is used.
21
+ */
22
+ type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
23
+ ref?: React.Ref<Element>;
24
+ });
25
+ /**
26
+ * Props if `component={Component}` is NOT used.
27
+ */
28
+ type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
29
+ ref?: React.Ref<Element>;
30
+ };
31
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.13.5
2
+ * @mui/material v5.13.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1968,6 +1968,7 @@
1968
1968
  let timeout;
1969
1969
  function debounced(...args) {
1970
1970
  const later = () => {
1971
+ // @ts-ignore
1971
1972
  func.apply(this, args);
1972
1973
  };
1973
1974
  clearTimeout(timeout);
@@ -4270,7 +4271,7 @@
4270
4271
 
4271
4272
  var pkg = {
4272
4273
  name: "@emotion/react",
4273
- version: "11.11.0",
4274
+ version: "11.11.1",
4274
4275
  main: "dist/emotion-react.cjs.js",
4275
4276
  module: "dist/emotion-react.esm.js",
4276
4277
  browser: {
@@ -14616,6 +14617,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14616
14617
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
14617
14618
  */
14618
14619
  onClose: PropTypes.func,
14620
+ /**
14621
+ * A function called when a transition enters.
14622
+ */
14623
+ onTransitionEnter: PropTypes.func,
14624
+ /**
14625
+ * A function called when a transition has exited.
14626
+ */
14627
+ onTransitionExited: PropTypes.func,
14619
14628
  /**
14620
14629
  * If `true`, the component is shown.
14621
14630
  */
@@ -14980,13 +14989,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14980
14989
  // @ts-ignore
14981
14990
  let newValue = event.target.valueAsNumber;
14982
14991
  if (marks && step == null) {
14983
- newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
14992
+ const maxMarksValue = marksValues[marksValues.length - 1];
14993
+ if (newValue > maxMarksValue) {
14994
+ newValue = maxMarksValue;
14995
+ } else if (newValue < marksValues[0]) {
14996
+ newValue = marksValues[0];
14997
+ } else {
14998
+ newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
14999
+ }
14984
15000
  }
14985
15001
  newValue = clamp$2(newValue, min, max);
14986
- if (marks && step == null) {
14987
- const currentMarkIndex = marksValues.indexOf(values[index]);
14988
- newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
14989
- }
14990
15002
  if (range) {
14991
15003
  // Bound the new value to the thumb's neighbours.
14992
15004
  if (disableSwap) {
@@ -15292,7 +15304,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15292
15304
  type: 'range',
15293
15305
  min: parameters.min,
15294
15306
  max: parameters.max,
15295
- step: (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
15307
+ step: parameters.step === null && parameters.marks ? 'any' : (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
15296
15308
  disabled
15297
15309
  }, mergedEventHandlers, {
15298
15310
  style: _extends({}, visuallyHidden$1, {
@@ -15888,7 +15900,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15888
15900
  }) : [];
15889
15901
  const previousProps = usePreviousProps$1({
15890
15902
  filteredOptions,
15891
- value
15903
+ value,
15904
+ inputValue
15892
15905
  });
15893
15906
  React__namespace.useEffect(() => {
15894
15907
  const valueChange = value !== previousProps.value;
@@ -16081,7 +16094,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16081
16094
  const label2 = value2 ? getOptionLabel(value2) : '';
16082
16095
  return label1 === label2;
16083
16096
  };
16084
- if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
16097
+ if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && previousProps.inputValue === inputValue && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
16085
16098
  const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
16086
16099
  if (previousHighlightedOption) {
16087
16100
  const previousHighlightedOptionExists = filteredOptions.some(option => {
@@ -16099,8 +16112,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16099
16112
  return;
16100
16113
  }
16101
16114
 
16102
- // Check if the previously highlighted option still exists in the updated filtered options list and if the value hasn't changed
16103
- // If it exists and the value hasn't changed, return, otherwise continue execution
16115
+ // Check if the previously highlighted option still exists in the updated filtered options list and if the value and inputValue haven't changed
16116
+ // If it exists and the value and the inputValue haven't changed, return, otherwise continue execution
16104
16117
  if (checkHighlightedOptionExists()) {
16105
16118
  return;
16106
16119
  }
@@ -16717,7 +16730,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16717
16730
  width: '1em',
16718
16731
  height: '1em',
16719
16732
  display: 'inline-block',
16720
- fill: 'currentColor',
16733
+ // the <svg> will define the property that has `currentColor`
16734
+ // e.g. heroicons uses fill="none" and stroke="currentColor"
16735
+ fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
16721
16736
  flexShrink: 0,
16722
16737
  transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
16723
16738
  duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
@@ -16753,13 +16768,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16753
16768
  viewBox = '0 0 24 24'
16754
16769
  } = props,
16755
16770
  other = _objectWithoutPropertiesLoose(props, _excluded$23);
16771
+ const hasSvgAsChild = /*#__PURE__*/React__namespace.isValidElement(children) && children.type === 'svg';
16756
16772
  const ownerState = _extends({}, props, {
16757
16773
  color,
16758
16774
  component,
16759
16775
  fontSize,
16760
16776
  instanceFontSize: inProps.fontSize,
16761
16777
  inheritViewBox,
16762
- viewBox
16778
+ viewBox,
16779
+ hasSvgAsChild
16763
16780
  });
16764
16781
  const more = {};
16765
16782
  if (!inheritViewBox) {
@@ -16774,9 +16791,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16774
16791
  "aria-hidden": titleAccess ? undefined : true,
16775
16792
  role: titleAccess ? 'img' : undefined,
16776
16793
  ref: ref
16777
- }, more, other, {
16794
+ }, more, other, hasSvgAsChild && children.props, {
16778
16795
  ownerState: ownerState,
16779
- children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
16796
+ children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
16780
16797
  children: titleAccess
16781
16798
  }) : null]
16782
16799
  }));
@@ -19029,14 +19046,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19029
19046
  const ignoringMouseDown = React__namespace.useRef(false);
19030
19047
  // We use a timer in order to only show the ripples for touch "click" like events.
19031
19048
  // We don't want to display the ripple for touch scroll events.
19032
- const startTimer = React__namespace.useRef(null);
19049
+ const startTimer = React__namespace.useRef(0);
19033
19050
 
19034
19051
  // This is the hook called once the previous timeout is ready.
19035
19052
  const startTimerCommit = React__namespace.useRef(null);
19036
19053
  const container = React__namespace.useRef(null);
19037
19054
  React__namespace.useEffect(() => {
19038
19055
  return () => {
19039
- clearTimeout(startTimer.current);
19056
+ if (startTimer.current) {
19057
+ clearTimeout(startTimer.current);
19058
+ }
19040
19059
  };
19041
19060
  }, []);
19042
19061
  const startCommit = React__namespace.useCallback(params => {
@@ -27759,6 +27778,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27759
27778
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
27760
27779
  */
27761
27780
  onClose: PropTypes.func,
27781
+ /**
27782
+ * A function called when a transition enters.
27783
+ */
27784
+ onTransitionEnter: PropTypes.func,
27785
+ /**
27786
+ * A function called when a transition has exited.
27787
+ */
27788
+ onTransitionExited: PropTypes.func,
27762
27789
  /**
27763
27790
  * If `true`, the component is shown.
27764
27791
  */
@@ -43012,7 +43039,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43012
43039
  });
43013
43040
  const {
43014
43041
  arrow = false,
43015
- children,
43042
+ children: childrenProp,
43016
43043
  components = {},
43017
43044
  componentsProps = {},
43018
43045
  describeChild = false,
@@ -43040,6 +43067,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43040
43067
  TransitionProps
43041
43068
  } = props,
43042
43069
  other = _objectWithoutPropertiesLoose(props, _excluded$v);
43070
+
43071
+ // to prevent runtime errors, developers will need to provide a child as a React element anyway.
43072
+ const children = /*#__PURE__*/React__namespace.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntime_1("span", {
43073
+ children: childrenProp
43074
+ });
43043
43075
  const theme = useTheme();
43044
43076
  const isRtl = theme.direction === 'rtl';
43045
43077
  const [childNode, setChildNode] = React__namespace.useState();