@mui/material 5.14.12 → 5.14.14

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 (165) hide show
  1. package/Alert/Alert.d.ts +1 -1
  2. package/Alert/Alert.js +1 -1
  3. package/AppBar/AppBar.d.ts +5 -2
  4. package/AppBar/AppBar.js +2 -2
  5. package/AppBar/appBarClasses.d.ts +8 -0
  6. package/AppBar/appBarClasses.js +1 -1
  7. package/AvatarGroup/AvatarGroup.d.ts +6 -0
  8. package/AvatarGroup/AvatarGroup.js +12 -3
  9. package/Badge/Badge.d.ts +1 -1
  10. package/Badge/Badge.js +1 -1
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js +1 -1
  13. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  14. package/ButtonGroup/ButtonGroup.js +1 -1
  15. package/CHANGELOG.md +139 -0
  16. package/Checkbox/Checkbox.d.ts +1 -1
  17. package/Checkbox/Checkbox.js +2 -2
  18. package/Chip/Chip.d.ts +1 -1
  19. package/Chip/Chip.js +7 -1
  20. package/CircularProgress/CircularProgress.d.ts +1 -1
  21. package/CircularProgress/CircularProgress.js +1 -1
  22. package/Fab/Fab.d.ts +1 -1
  23. package/Fab/Fab.js +1 -1
  24. package/FilledInput/FilledInput.js +1 -1
  25. package/FormControl/FormControl.d.ts +1 -1
  26. package/FormControl/FormControl.js +1 -1
  27. package/FormLabel/FormLabel.d.ts +1 -1
  28. package/FormLabel/FormLabel.js +1 -1
  29. package/Icon/Icon.d.ts +1 -1
  30. package/Icon/Icon.js +1 -1
  31. package/IconButton/IconButton.d.ts +1 -1
  32. package/IconButton/IconButton.js +1 -1
  33. package/Input/Input.js +1 -1
  34. package/InputBase/InputBase.d.ts +1 -1
  35. package/InputBase/InputBase.js +1 -1
  36. package/InputLabel/InputLabel.js +1 -1
  37. package/LinearProgress/LinearProgress.d.ts +1 -1
  38. package/LinearProgress/LinearProgress.js +1 -1
  39. package/OutlinedInput/OutlinedInput.js +1 -1
  40. package/Pagination/Pagination.d.ts +4 -7
  41. package/Pagination/Pagination.js +2 -2
  42. package/PaginationItem/PaginationItem.d.ts +1 -1
  43. package/PaginationItem/PaginationItem.js +3 -3
  44. package/Radio/Radio.d.ts +1 -1
  45. package/Radio/Radio.js +1 -1
  46. package/Slider/Slider.d.ts +5 -2
  47. package/Slider/Slider.js +2 -2
  48. package/Slider/sliderClasses.d.ts +16 -0
  49. package/Slider/sliderClasses.js +1 -1
  50. package/SvgIcon/SvgIcon.d.ts +1 -1
  51. package/SvgIcon/SvgIcon.js +1 -1
  52. package/Switch/Switch.d.ts +1 -1
  53. package/Switch/Switch.js +1 -1
  54. package/Tabs/Tabs.js +30 -5
  55. package/TextField/TextField.d.ts +1 -1
  56. package/TextField/TextField.js +1 -1
  57. package/ToggleButton/ToggleButton.d.ts +1 -1
  58. package/ToggleButton/ToggleButton.js +1 -1
  59. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  60. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  61. package/index.js +1 -1
  62. package/legacy/Alert/Alert.js +1 -1
  63. package/legacy/AppBar/AppBar.js +2 -2
  64. package/legacy/AppBar/appBarClasses.js +1 -1
  65. package/legacy/AvatarGroup/AvatarGroup.js +12 -3
  66. package/legacy/Badge/Badge.js +1 -1
  67. package/legacy/Button/Button.js +1 -1
  68. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  69. package/legacy/Checkbox/Checkbox.js +2 -2
  70. package/legacy/Chip/Chip.js +7 -1
  71. package/legacy/CircularProgress/CircularProgress.js +1 -1
  72. package/legacy/Fab/Fab.js +1 -1
  73. package/legacy/FilledInput/FilledInput.js +1 -1
  74. package/legacy/FormControl/FormControl.js +1 -1
  75. package/legacy/FormLabel/FormLabel.js +1 -1
  76. package/legacy/Icon/Icon.js +1 -1
  77. package/legacy/IconButton/IconButton.js +1 -1
  78. package/legacy/Input/Input.js +1 -1
  79. package/legacy/InputBase/InputBase.js +1 -1
  80. package/legacy/InputLabel/InputLabel.js +1 -1
  81. package/legacy/LinearProgress/LinearProgress.js +1 -1
  82. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  83. package/legacy/Pagination/Pagination.js +2 -2
  84. package/legacy/PaginationItem/PaginationItem.js +3 -3
  85. package/legacy/Radio/Radio.js +1 -1
  86. package/legacy/Slider/Slider.js +2 -2
  87. package/legacy/Slider/sliderClasses.js +1 -1
  88. package/legacy/SvgIcon/SvgIcon.js +1 -1
  89. package/legacy/Switch/Switch.js +1 -1
  90. package/legacy/Tabs/Tabs.js +30 -5
  91. package/legacy/TextField/TextField.js +1 -1
  92. package/legacy/ToggleButton/ToggleButton.js +1 -1
  93. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  94. package/legacy/index.js +1 -1
  95. package/modern/Alert/Alert.js +1 -1
  96. package/modern/AppBar/AppBar.js +2 -2
  97. package/modern/AppBar/appBarClasses.js +1 -1
  98. package/modern/AvatarGroup/AvatarGroup.js +12 -3
  99. package/modern/Badge/Badge.js +1 -1
  100. package/modern/Button/Button.js +1 -1
  101. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  102. package/modern/Checkbox/Checkbox.js +2 -2
  103. package/modern/Chip/Chip.js +7 -1
  104. package/modern/CircularProgress/CircularProgress.js +1 -1
  105. package/modern/Fab/Fab.js +1 -1
  106. package/modern/FilledInput/FilledInput.js +1 -1
  107. package/modern/FormControl/FormControl.js +1 -1
  108. package/modern/FormLabel/FormLabel.js +1 -1
  109. package/modern/Icon/Icon.js +1 -1
  110. package/modern/IconButton/IconButton.js +1 -1
  111. package/modern/Input/Input.js +1 -1
  112. package/modern/InputBase/InputBase.js +1 -1
  113. package/modern/InputLabel/InputLabel.js +1 -1
  114. package/modern/LinearProgress/LinearProgress.js +1 -1
  115. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  116. package/modern/Pagination/Pagination.js +2 -2
  117. package/modern/PaginationItem/PaginationItem.js +3 -3
  118. package/modern/Radio/Radio.js +1 -1
  119. package/modern/Slider/Slider.js +2 -2
  120. package/modern/Slider/sliderClasses.js +1 -1
  121. package/modern/SvgIcon/SvgIcon.js +1 -1
  122. package/modern/Switch/Switch.js +1 -1
  123. package/modern/Tabs/Tabs.js +27 -5
  124. package/modern/TextField/TextField.js +1 -1
  125. package/modern/ToggleButton/ToggleButton.js +1 -1
  126. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  127. package/modern/index.js +1 -1
  128. package/node/Alert/Alert.js +1 -1
  129. package/node/AppBar/AppBar.js +2 -2
  130. package/node/AppBar/appBarClasses.js +1 -1
  131. package/node/AvatarGroup/AvatarGroup.js +11 -3
  132. package/node/Badge/Badge.js +1 -1
  133. package/node/Button/Button.js +1 -1
  134. package/node/ButtonGroup/ButtonGroup.js +1 -1
  135. package/node/Checkbox/Checkbox.js +2 -2
  136. package/node/Chip/Chip.js +7 -1
  137. package/node/CircularProgress/CircularProgress.js +1 -1
  138. package/node/Fab/Fab.js +1 -1
  139. package/node/FilledInput/FilledInput.js +1 -1
  140. package/node/FormControl/FormControl.js +1 -1
  141. package/node/FormLabel/FormLabel.js +1 -1
  142. package/node/Icon/Icon.js +1 -1
  143. package/node/IconButton/IconButton.js +1 -1
  144. package/node/Input/Input.js +1 -1
  145. package/node/InputBase/InputBase.js +1 -1
  146. package/node/InputLabel/InputLabel.js +1 -1
  147. package/node/LinearProgress/LinearProgress.js +1 -1
  148. package/node/OutlinedInput/OutlinedInput.js +1 -1
  149. package/node/Pagination/Pagination.js +2 -2
  150. package/node/PaginationItem/PaginationItem.js +3 -3
  151. package/node/Radio/Radio.js +1 -1
  152. package/node/Slider/Slider.js +2 -2
  153. package/node/Slider/sliderClasses.js +1 -1
  154. package/node/SvgIcon/SvgIcon.js +1 -1
  155. package/node/Switch/Switch.js +1 -1
  156. package/node/Tabs/Tabs.js +30 -5
  157. package/node/TextField/TextField.js +1 -1
  158. package/node/ToggleButton/ToggleButton.js +1 -1
  159. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  160. package/node/index.js +1 -1
  161. package/package.json +7 -7
  162. package/styles/components.d.ts +1 -0
  163. package/styles/overrides.d.ts +2 -0
  164. package/umd/material-ui.development.js +86 -45
  165. package/umd/material-ui.production.min.js +4 -4
package/node/Tabs/Tabs.js CHANGED
@@ -508,23 +508,48 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
508
508
  updateIndicatorState();
509
509
  }
510
510
  });
511
+ let resizeObserver;
512
+
513
+ /**
514
+ * @type {MutationCallback}
515
+ */
516
+ const handleMutation = records => {
517
+ records.forEach(record => {
518
+ record.removedNodes.forEach(item => {
519
+ var _resizeObserver;
520
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
521
+ });
522
+ record.addedNodes.forEach(item => {
523
+ var _resizeObserver2;
524
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
525
+ });
526
+ });
527
+ handleResize();
528
+ updateScrollButtonState();
529
+ };
511
530
  const win = (0, _ownerWindow.default)(tabsRef.current);
512
531
  win.addEventListener('resize', handleResize);
513
- let resizeObserver;
532
+ let mutationObserver;
514
533
  if (typeof ResizeObserver !== 'undefined') {
515
534
  resizeObserver = new ResizeObserver(handleResize);
516
535
  Array.from(tabListRef.current.children).forEach(child => {
517
536
  resizeObserver.observe(child);
518
537
  });
519
538
  }
539
+ if (typeof MutationObserver !== 'undefined') {
540
+ mutationObserver = new MutationObserver(handleMutation);
541
+ mutationObserver.observe(tabListRef.current, {
542
+ childList: true
543
+ });
544
+ }
520
545
  return () => {
546
+ var _mutationObserver, _resizeObserver3;
521
547
  handleResize.clear();
522
548
  win.removeEventListener('resize', handleResize);
523
- if (resizeObserver) {
524
- resizeObserver.disconnect();
525
- }
549
+ (_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
550
+ (_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
526
551
  };
527
- }, [updateIndicatorState]);
552
+ }, [updateIndicatorState, updateScrollButtonState]);
528
553
 
529
554
  /**
530
555
  * Toggle visibility of start and end scroll buttons
@@ -237,7 +237,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
237
237
  /**
238
238
  * The color of the component.
239
239
  * It supports both default and custom theme colors, which can be added as shown in the
240
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
240
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
241
241
  * @default 'primary'
242
242
  */
243
243
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -167,7 +167,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptyp
167
167
  /**
168
168
  * The color of the button when it is in an active state.
169
169
  * It supports both default and custom theme colors, which can be added as shown in the
170
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
170
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
171
171
  * @default 'standard'
172
172
  */
173
173
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-pr
183
183
  /**
184
184
  * The color of the button when it is selected.
185
185
  * It supports both default and custom theme colors, which can be added as shown in the
186
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
186
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
187
187
  * @default 'standard'
188
188
  */
189
189
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.12
2
+ * @mui/material v5.14.14
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.14.12",
3
+ "version": "5.14.14",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.23.1",
31
- "@mui/base": "5.0.0-beta.18",
32
- "@mui/core-downloads-tracker": "^5.14.12",
33
- "@mui/system": "^5.14.12",
34
- "@mui/types": "^7.2.5",
35
- "@mui/utils": "^5.14.12",
36
- "@types/react-transition-group": "^4.4.6",
31
+ "@mui/base": "5.0.0-beta.20",
32
+ "@mui/core-downloads-tracker": "^5.14.14",
33
+ "@mui/system": "^5.14.14",
34
+ "@mui/types": "^7.2.6",
35
+ "@mui/utils": "^5.14.13",
36
+ "@types/react-transition-group": "^4.4.7",
37
37
  "clsx": "^2.0.0",
38
38
  "csstype": "^3.1.2",
39
39
  "prop-types": "^15.8.1",
@@ -380,6 +380,7 @@ export interface Components<Theme = unknown> {
380
380
  };
381
381
  MuiPopper?: {
382
382
  defaultProps?: ComponentsProps['MuiPopper'];
383
+ styleOverrides?: ComponentsOverrides<Theme>['MuiPopper'];
383
384
  };
384
385
  MuiPopover?: {
385
386
  defaultProps?: ComponentsProps['MuiPopover'];
@@ -1,4 +1,5 @@
1
1
  import { CSSObject, CSSInterpolation } from '@mui/system';
2
+ import { PopperClassKey } from '@mui/base/Popper';
2
3
  import { ComponentsPropsList } from './props';
3
4
  import { AccordionActionsClassKey } from '../AccordionActions';
4
5
  import { AccordionClassKey } from '../Accordion';
@@ -215,6 +216,7 @@ export interface ComponentNameToClassKey {
215
216
  MuiPaginationItem: PaginationItemClassKey;
216
217
  MuiPaper: PaperClassKey;
217
218
  MuiPopover: PopoverClassKey;
219
+ MuiPopper: PopperClassKey;
218
220
  MuiRadio: RadioClassKey;
219
221
  MuiRating: RatingClassKey;
220
222
  MuiScopedCssBaseline: ScopedCssBaselineClassKey;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.12
2
+ * @mui/material v5.14.14
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -11334,7 +11334,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11334
11334
  /**
11335
11335
  * The color of the component.
11336
11336
  * It supports both default and custom theme colors, which can be added as shown in the
11337
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
11337
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
11338
11338
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
11339
11339
  * @default 'inherit'
11340
11340
  */
@@ -14555,7 +14555,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14555
14555
  /**
14556
14556
  * The color of the component.
14557
14557
  * It supports both default and custom theme colors, which can be added as shown in the
14558
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
14558
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
14559
14559
  * @default 'default'
14560
14560
  */
14561
14561
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -14826,7 +14826,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14826
14826
  /**
14827
14827
  * The color of the component. Unless provided, the value is taken from the `severity` prop.
14828
14828
  * It supports both default and custom theme colors, which can be added as shown in the
14829
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
14829
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
14830
14830
  */
14831
14831
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
14832
14832
  /**
@@ -15188,7 +15188,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15188
15188
  function getAppBarUtilityClass(slot) {
15189
15189
  return generateUtilityClass('MuiAppBar', slot);
15190
15190
  }
15191
- const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
15191
+ const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
15192
15192
  var appBarClasses$1 = appBarClasses;
15193
15193
 
15194
15194
  const _excluded$1V = ["className", "color", "enableColorOnDark", "position"];
@@ -15333,10 +15333,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15333
15333
  /**
15334
15334
  * The color of the component.
15335
15335
  * It supports both default and custom theme colors, which can be added as shown in the
15336
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
15336
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
15337
15337
  * @default 'primary'
15338
15338
  */
15339
- color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), PropTypes.string]),
15339
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
15340
15340
  /**
15341
15341
  * If true, the `color` prop is applied in dark mode.
15342
15342
  * @default false
@@ -20728,10 +20728,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20728
20728
  }),
20729
20729
  getClearProps: () => ({
20730
20730
  tabIndex: -1,
20731
+ type: 'button',
20731
20732
  onClick: handleClear
20732
20733
  }),
20733
20734
  getPopupIndicatorProps: () => ({
20734
20735
  tabIndex: -1,
20736
+ type: 'button',
20735
20737
  onClick: handlePopupIndicator
20736
20738
  }),
20737
20739
  getTagProps: ({
@@ -21369,9 +21371,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21369
21371
  paddingLeft: 12,
21370
21372
  paddingRight: 12,
21371
21373
  whiteSpace: 'nowrap'
21374
+ }, ownerState.variant === 'outlined' && {
21375
+ paddingLeft: 11,
21376
+ paddingRight: 11
21372
21377
  }, ownerState.size === 'small' && {
21373
21378
  paddingLeft: 8,
21374
21379
  paddingRight: 8
21380
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
21381
+ paddingLeft: 7,
21382
+ paddingRight: 7
21375
21383
  }));
21376
21384
  function isDeleteKeyboardEvent(keyboardEvent) {
21377
21385
  return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
@@ -21536,7 +21544,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21536
21544
  /**
21537
21545
  * The color of the component.
21538
21546
  * It supports both default and custom theme colors, which can be added as shown in the
21539
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
21547
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
21540
21548
  * @default 'default'
21541
21549
  */
21542
21550
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -22174,7 +22182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22174
22182
  /**
22175
22183
  * The color of the component.
22176
22184
  * It supports both default and custom theme colors, which can be added as shown in the
22177
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
22185
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
22178
22186
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
22179
22187
  */
22180
22188
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -23688,7 +23696,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23688
23696
  const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
23689
23697
  var avatarGroupClasses$1 = avatarGroupClasses;
23690
23698
 
23691
- const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
23699
+ const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
23692
23700
  const SPACINGS$2 = {
23693
23701
  small: -16,
23694
23702
  medium: null
@@ -23749,6 +23757,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23749
23757
  component = 'div',
23750
23758
  componentsProps = {},
23751
23759
  max = 5,
23760
+ renderSurplus,
23752
23761
  slotProps = {},
23753
23762
  spacing = 'medium',
23754
23763
  total,
@@ -23778,6 +23787,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23778
23787
  clampedMax = Math.min(totalAvatars + 1, clampedMax);
23779
23788
  const maxAvatars = Math.min(children.length, clampedMax - 1);
23780
23789
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
23790
+ const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
23781
23791
  const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
23782
23792
  const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
23783
23793
  return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
@@ -23786,7 +23796,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23786
23796
  className: clsx(classes.root, className),
23787
23797
  ref: ref
23788
23798
  }, other, {
23789
- children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, _extends({
23799
+ children: [extraAvatars ? /*#__PURE__*/jsxRuntime_1(AvatarGroupAvatar, _extends({
23790
23800
  ownerState: ownerState,
23791
23801
  variant: variant
23792
23802
  }, additionalAvatarSlotProps, {
@@ -23794,7 +23804,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23794
23804
  style: _extends({
23795
23805
  marginLeft
23796
23806
  }, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
23797
- children: ["+", extraAvatars]
23807
+ children: extraAvatarsElement
23798
23808
  })) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
23799
23809
  return /*#__PURE__*/React__namespace.cloneElement(child, {
23800
23810
  className: clsx(child.props.className, classes.avatar),
@@ -23852,6 +23862,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23852
23862
  }
23853
23863
  return null;
23854
23864
  }),
23865
+ /**
23866
+ * custom renderer of extraAvatars
23867
+ * @param {number} surplus number of extra avatars
23868
+ * @returns {React.ReactNode} custom element to display
23869
+ */
23870
+ renderSurplus: PropTypes.func,
23855
23871
  /**
23856
23872
  * The extra props for the slot components.
23857
23873
  * You can override the existing props or add new ones.
@@ -24539,7 +24555,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24539
24555
  /**
24540
24556
  * The color of the component.
24541
24557
  * It supports both default and custom theme colors, which can be added as shown in the
24542
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24558
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
24543
24559
  * @default 'default'
24544
24560
  */
24545
24561
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -25555,7 +25571,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25555
25571
  /**
25556
25572
  * The color of the component.
25557
25573
  * It supports both default and custom theme colors, which can be added as shown in the
25558
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25574
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
25559
25575
  * @default 'primary'
25560
25576
  */
25561
25577
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
@@ -25857,7 +25873,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25857
25873
  /**
25858
25874
  * The color of the component.
25859
25875
  * It supports both default and custom theme colors, which can be added as shown in the
25860
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25876
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
25861
25877
  * @default 'primary'
25862
25878
  */
25863
25879
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -26902,7 +26918,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26902
26918
  color: (theme.vars || theme).palette.text.secondary
26903
26919
  }, !ownerState.disableRipple && {
26904
26920
  '&:hover': {
26905
- backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26921
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26906
26922
  // Reset on touch devices, it doesn't add specificity
26907
26923
  '@media (hover: none)': {
26908
26924
  backgroundColor: 'transparent'
@@ -26987,7 +27003,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26987
27003
  /**
26988
27004
  * The color of the component.
26989
27005
  * It supports both default and custom theme colors, which can be added as shown in the
26990
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
27006
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
26991
27007
  * @default 'primary'
26992
27008
  */
26993
27009
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -27259,7 +27275,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27259
27275
  /**
27260
27276
  * The color of the component.
27261
27277
  * It supports both default and custom theme colors, which can be added as shown in the
27262
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
27278
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
27263
27279
  * @default 'primary'
27264
27280
  */
27265
27281
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -29613,7 +29629,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29613
29629
  /**
29614
29630
  * The color of the component.
29615
29631
  * It supports both default and custom theme colors, which can be added as shown in the
29616
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29632
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
29617
29633
  * @default 'default'
29618
29634
  */
29619
29635
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
@@ -29903,7 +29919,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29903
29919
  /**
29904
29920
  * The color of the component.
29905
29921
  * It supports both default and custom theme colors, which can be added as shown in the
29906
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29922
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
29907
29923
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
29908
29924
  */
29909
29925
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
@@ -30296,7 +30312,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30296
30312
  /**
30297
30313
  * The color of the component.
30298
30314
  * It supports both default and custom theme colors, which can be added as shown in the
30299
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
30315
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
30300
30316
  * @default 'primary'
30301
30317
  */
30302
30318
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -31030,7 +31046,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31030
31046
  /**
31031
31047
  * The color of the component.
31032
31048
  * It supports both default and custom theme colors, which can be added as shown in the
31033
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
31049
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
31034
31050
  */
31035
31051
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
31036
31052
  /**
@@ -32676,7 +32692,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32676
32692
  /**
32677
32693
  * The color of the component.
32678
32694
  * It supports both default and custom theme colors, which can be added as shown in the
32679
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32695
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
32680
32696
  * @default 'inherit'
32681
32697
  */
32682
32698
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -33400,7 +33416,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33400
33416
  /**
33401
33417
  * The color of the component.
33402
33418
  * It supports both default and custom theme colors, which can be added as shown in the
33403
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
33419
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
33404
33420
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
33405
33421
  */
33406
33422
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
@@ -33887,7 +33903,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33887
33903
  /**
33888
33904
  * The color of the component.
33889
33905
  * It supports both default and custom theme colors, which can be added as shown in the
33890
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
33906
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
33891
33907
  */
33892
33908
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
33893
33909
  /**
@@ -34250,7 +34266,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34250
34266
  /**
34251
34267
  * The color of the component.
34252
34268
  * It supports both default and custom theme colors, which can be added as shown in the
34253
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
34269
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
34254
34270
  * @default 'primary'
34255
34271
  */
34256
34272
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
@@ -37856,7 +37872,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37856
37872
  /**
37857
37873
  * The color of the component.
37858
37874
  * It supports both default and custom theme colors, which can be added as shown in the
37859
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37875
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
37860
37876
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
37861
37877
  */
37862
37878
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
@@ -38239,14 +38255,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38239
38255
  [`&.${paginationItemClasses$1.selected}`]: {
38240
38256
  backgroundColor: (theme.vars || theme).palette.action.selected,
38241
38257
  '&:hover': {
38242
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38258
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38243
38259
  // Reset on touch devices, it doesn't add specificity
38244
38260
  '@media (hover: none)': {
38245
38261
  backgroundColor: (theme.vars || theme).palette.action.selected
38246
38262
  }
38247
38263
  },
38248
38264
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38249
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38265
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38250
38266
  },
38251
38267
  [`&.${paginationItemClasses$1.disabled}`]: {
38252
38268
  opacity: 1,
@@ -38410,7 +38426,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38410
38426
  /**
38411
38427
  * The active color.
38412
38428
  * It supports both default and custom theme colors, which can be added as shown in the
38413
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
38429
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
38414
38430
  * @default 'standard'
38415
38431
  */
38416
38432
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
@@ -38619,7 +38635,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38619
38635
  /**
38620
38636
  * The active color.
38621
38637
  * It supports both default and custom theme colors, which can be added as shown in the
38622
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
38638
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
38623
38639
  * @default 'standard'
38624
38640
  */
38625
38641
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
@@ -38643,7 +38659,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38643
38659
  * This is important for screen reader users.
38644
38660
  *
38645
38661
  * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
38646
- * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
38662
+ * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
38647
38663
  * @param {number} page The page number to format.
38648
38664
  * @param {bool} selected If true, the current page is selected.
38649
38665
  * @returns {string}
@@ -38943,7 +38959,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38943
38959
  /**
38944
38960
  * The color of the component.
38945
38961
  * It supports both default and custom theme colors, which can be added as shown in the
38946
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
38962
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
38947
38963
  * @default 'primary'
38948
38964
  */
38949
38965
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -40964,7 +40980,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40964
40980
  function getSliderUtilityClass(slot) {
40965
40981
  return generateUtilityClass('MuiSlider', slot);
40966
40982
  }
40967
- const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
40983
+ const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'thumbColorError', 'thumbColorSuccess', 'thumbColorInfo', 'thumbColorWarning', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
40968
40984
  var sliderClasses$1 = sliderClasses;
40969
40985
 
40970
40986
  const useValueLabelClasses = props => {
@@ -41619,10 +41635,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41619
41635
  /**
41620
41636
  * The color of the component.
41621
41637
  * It supports both default and custom theme colors, which can be added as shown in the
41622
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
41638
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
41623
41639
  * @default 'primary'
41624
41640
  */
41625
- color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
41641
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
41626
41642
  /**
41627
41643
  * The components used for each slot inside.
41628
41644
  *
@@ -46094,7 +46110,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46094
46110
  /**
46095
46111
  * The color of the component.
46096
46112
  * It supports both default and custom theme colors, which can be added as shown in the
46097
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
46113
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
46098
46114
  * @default 'primary'
46099
46115
  */
46100
46116
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -48698,23 +48714,48 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48698
48714
  updateIndicatorState();
48699
48715
  }
48700
48716
  });
48717
+ let resizeObserver;
48718
+
48719
+ /**
48720
+ * @type {MutationCallback}
48721
+ */
48722
+ const handleMutation = records => {
48723
+ records.forEach(record => {
48724
+ record.removedNodes.forEach(item => {
48725
+ var _resizeObserver;
48726
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
48727
+ });
48728
+ record.addedNodes.forEach(item => {
48729
+ var _resizeObserver2;
48730
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
48731
+ });
48732
+ });
48733
+ handleResize();
48734
+ updateScrollButtonState();
48735
+ };
48701
48736
  const win = ownerWindow(tabsRef.current);
48702
48737
  win.addEventListener('resize', handleResize);
48703
- let resizeObserver;
48738
+ let mutationObserver;
48704
48739
  if (typeof ResizeObserver !== 'undefined') {
48705
48740
  resizeObserver = new ResizeObserver(handleResize);
48706
48741
  Array.from(tabListRef.current.children).forEach(child => {
48707
48742
  resizeObserver.observe(child);
48708
48743
  });
48709
48744
  }
48745
+ if (typeof MutationObserver !== 'undefined') {
48746
+ mutationObserver = new MutationObserver(handleMutation);
48747
+ mutationObserver.observe(tabListRef.current, {
48748
+ childList: true
48749
+ });
48750
+ }
48710
48751
  return () => {
48752
+ var _mutationObserver, _resizeObserver3;
48711
48753
  handleResize.clear();
48712
48754
  win.removeEventListener('resize', handleResize);
48713
- if (resizeObserver) {
48714
- resizeObserver.disconnect();
48715
- }
48755
+ (_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
48756
+ (_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
48716
48757
  };
48717
- }, [updateIndicatorState]);
48758
+ }, [updateIndicatorState, updateScrollButtonState]);
48718
48759
 
48719
48760
  /**
48720
48761
  * Toggle visibility of start and end scroll buttons
@@ -49225,7 +49266,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49225
49266
  /**
49226
49267
  * The color of the component.
49227
49268
  * It supports both default and custom theme colors, which can be added as shown in the
49228
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49269
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
49229
49270
  * @default 'primary'
49230
49271
  */
49231
49272
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -49520,7 +49561,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49520
49561
  /**
49521
49562
  * The color of the button when it is in an active state.
49522
49563
  * It supports both default and custom theme colors, which can be added as shown in the
49523
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49564
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
49524
49565
  * @default 'standard'
49525
49566
  */
49526
49567
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -49763,7 +49804,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49763
49804
  /**
49764
49805
  * The color of the button when it is selected.
49765
49806
  * It supports both default and custom theme colors, which can be added as shown in the
49766
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49807
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
49767
49808
  * @default 'standard'
49768
49809
  */
49769
49810
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),