@mui/material 5.9.2 → 5.10.1

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 (222) 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 +54 -54
  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/Badge.js +1 -1
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/Button.js +8 -3
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/TouchRipple.js +1 -1
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +196 -5
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +5 -7
  34. package/Chip/chipClasses.d.ts +88 -80
  35. package/Chip/chipClasses.js +1 -1
  36. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  37. package/ClickAwayListener/index.d.ts +2 -2
  38. package/Collapse/collapseClasses.d.ts +18 -18
  39. package/Container/containerClasses.d.ts +6 -6
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +40 -40
  50. package/FormControl/formControlClasses.d.ts +14 -14
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/Grid.d.ts +1 -1
  56. package/Grid/Grid.js +71 -4
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +26 -26
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +34 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.js +3 -2
  66. package/InputBase/inputBaseClasses.d.ts +46 -44
  67. package/InputBase/inputBaseClasses.js +1 -1
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/getTextDecoration.d.ts +15 -15
  71. package/Link/linkClasses.d.ts +18 -18
  72. package/List/listClasses.d.ts +14 -14
  73. package/ListItem/listItemClasses.d.ts +30 -30
  74. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  75. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  76. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  77. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  78. package/ListItemText/listItemTextClasses.d.ts +18 -18
  79. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  80. package/Menu/menuClasses.d.ts +12 -12
  81. package/MenuItem/menuItemClasses.d.ts +20 -20
  82. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  83. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  84. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  85. package/Pagination/paginationClasses.d.ts +14 -14
  86. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +24 -24
  90. package/README.md +8 -8
  91. package/Radio/radioClasses.d.ts +16 -16
  92. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  93. package/RadioGroup/useRadioGroup.d.ts +4 -4
  94. package/Rating/ratingClasses.d.ts +40 -40
  95. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  96. package/Select/SelectInput.js +1 -1
  97. package/Select/selectClasses.d.ts +30 -30
  98. package/Skeleton/Skeleton.d.ts +1 -1
  99. package/Skeleton/Skeleton.js +3 -1
  100. package/Skeleton/skeletonClasses.d.ts +26 -24
  101. package/Skeleton/skeletonClasses.js +1 -1
  102. package/Snackbar/snackbarClasses.d.ts +20 -20
  103. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  104. package/SpeedDial/speedDialClasses.d.ts +22 -22
  105. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  106. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  107. package/Stack/Stack.js +2 -1
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  112. package/StepContent/stepContentClasses.d.ts +12 -12
  113. package/StepIcon/stepIconClasses.d.ts +16 -16
  114. package/StepLabel/StepLabel.js +1 -1
  115. package/StepLabel/stepLabelClasses.d.ts +28 -28
  116. package/Stepper/StepperContext.d.ts +18 -18
  117. package/Stepper/stepperClasses.d.ts +14 -14
  118. package/SvgIcon/svgIconClasses.d.ts +24 -24
  119. package/Switch/switchClasses.d.ts +32 -32
  120. package/Tab/tabClasses.d.ts +26 -26
  121. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  122. package/Table/tableClasses.d.ts +10 -10
  123. package/TableBody/tableBodyClasses.d.ts +8 -8
  124. package/TableCell/TableCell.d.ts +6 -2
  125. package/TableCell/TableCell.js +6 -2
  126. package/TableCell/tableCellClasses.d.ts +32 -32
  127. package/TableContainer/tableContainerClasses.d.ts +8 -8
  128. package/TableFooter/tableFooterClasses.d.ts +8 -8
  129. package/TableHead/tableHeadClasses.d.ts +8 -8
  130. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  131. package/TableRow/tableRowClasses.d.ts +16 -16
  132. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  133. package/Tabs/tabsClasses.d.ts +32 -32
  134. package/TextField/textFieldClasses.d.ts +8 -8
  135. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  136. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  137. package/Toolbar/toolbarClasses.d.ts +14 -14
  138. package/Tooltip/Tooltip.js +1 -1
  139. package/Tooltip/tooltipClasses.d.ts +30 -30
  140. package/Typography/typographyClasses.d.ts +50 -50
  141. package/Unstable_Grid2/Grid2.d.ts +4 -4
  142. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  143. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  144. package/Unstable_Grid2/index.d.ts +4 -4
  145. package/className/index.d.ts +1 -1
  146. package/darkScrollbar/index.d.ts +28 -28
  147. package/index.js +1 -1
  148. package/internal/switchBaseClasses.d.ts +12 -12
  149. package/legacy/Badge/Badge.js +1 -1
  150. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  151. package/legacy/Button/Button.js +4 -2
  152. package/legacy/ButtonBase/TouchRipple.js +1 -1
  153. package/legacy/Chip/Chip.js +4 -6
  154. package/legacy/Chip/chipClasses.js +1 -1
  155. package/legacy/Grid/Grid.js +76 -12
  156. package/legacy/InputBase/InputBase.js +3 -2
  157. package/legacy/InputBase/inputBaseClasses.js +1 -1
  158. package/legacy/Select/SelectInput.js +1 -1
  159. package/legacy/Skeleton/Skeleton.js +3 -1
  160. package/legacy/Skeleton/skeletonClasses.js +1 -1
  161. package/legacy/Stack/Stack.js +2 -1
  162. package/legacy/StepLabel/StepLabel.js +1 -1
  163. package/legacy/TableCell/TableCell.js +6 -2
  164. package/legacy/Tooltip/Tooltip.js +1 -1
  165. package/legacy/index.js +1 -1
  166. package/legacy/styles/createTheme.js +5 -0
  167. package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
  168. package/locale/index.d.ts +71 -71
  169. package/modern/Badge/Badge.js +1 -1
  170. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  171. package/modern/Button/Button.js +8 -3
  172. package/modern/ButtonBase/TouchRipple.js +1 -1
  173. package/modern/Chip/Chip.js +5 -7
  174. package/modern/Chip/chipClasses.js +1 -1
  175. package/modern/Grid/Grid.js +67 -4
  176. package/modern/InputBase/InputBase.js +3 -2
  177. package/modern/InputBase/inputBaseClasses.js +1 -1
  178. package/modern/Select/SelectInput.js +1 -1
  179. package/modern/Skeleton/Skeleton.js +3 -1
  180. package/modern/Skeleton/skeletonClasses.js +1 -1
  181. package/modern/Stack/Stack.js +2 -1
  182. package/modern/StepLabel/StepLabel.js +1 -1
  183. package/modern/TableCell/TableCell.js +6 -2
  184. package/modern/Tooltip/Tooltip.js +1 -1
  185. package/modern/index.js +1 -1
  186. package/modern/styles/createTheme.js +6 -0
  187. package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
  188. package/node/Badge/Badge.js +1 -1
  189. package/node/BottomNavigation/BottomNavigation.js +0 -0
  190. package/node/Button/Button.js +10 -3
  191. package/node/ButtonBase/TouchRipple.js +1 -1
  192. package/node/Chip/Chip.js +5 -7
  193. package/node/Chip/chipClasses.js +1 -1
  194. package/node/Grid/Grid.js +71 -4
  195. package/node/InputBase/InputBase.js +3 -2
  196. package/node/InputBase/inputBaseClasses.js +1 -1
  197. package/node/Select/SelectInput.js +1 -1
  198. package/node/Skeleton/Skeleton.js +3 -1
  199. package/node/Skeleton/skeletonClasses.js +1 -1
  200. package/node/Stack/Stack.js +1 -0
  201. package/node/StepLabel/StepLabel.js +1 -1
  202. package/node/TableCell/TableCell.js +6 -2
  203. package/node/Tooltip/Tooltip.js +1 -1
  204. package/node/index.js +1 -1
  205. package/node/styles/createTheme.js +6 -0
  206. package/node/useScrollTrigger/useScrollTrigger.js +6 -2
  207. package/package.json +6 -5
  208. package/styles/CssVarsProvider.d.ts +14 -14
  209. package/styles/createTheme.js +6 -0
  210. package/transitions/index.d.ts +1 -1
  211. package/transitions/transition.d.ts +13 -13
  212. package/transitions/utils.d.ts +23 -23
  213. package/umd/material-ui.development.js +245 -104
  214. package/umd/material-ui.production.min.js +20 -20
  215. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  216. package/useScrollTrigger/useScrollTrigger.js +6 -2
  217. package/useTouchRipple/index.d.ts +1 -1
  218. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  219. package/utils/getScrollbarSize.d.ts +2 -2
  220. package/utils/ownerDocument.d.ts +2 -2
  221. package/utils/ownerWindow.d.ts +2 -2
  222. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.2
1
+ /** @license MUI v5.10.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -4738,7 +4738,15 @@
4738
4738
  return stylesFactory(...styles);
4739
4739
  };
4740
4740
  }
4741
- }
4741
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
4742
+
4743
+ const internal_processStyles = (tag, processor) => {
4744
+ // Emotion attaches all the styles as `__emotion_styles`.
4745
+ // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186
4746
+ if (Array.isArray(tag.__emotion_styles)) {
4747
+ tag.__emotion_styles = processor(tag.__emotion_styles);
4748
+ }
4749
+ };
4742
4750
 
4743
4751
  const responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) ;
4744
4752
  var responsivePropType$1 = responsivePropType;
@@ -5575,11 +5583,11 @@
5575
5583
  slot => {
5576
5584
  output[slot] = slots[slot].reduce((acc, key) => {
5577
5585
  if (key) {
5586
+ acc.push(getUtilityClass(key));
5587
+
5578
5588
  if (classes && classes[key]) {
5579
5589
  acc.push(classes[key]);
5580
5590
  }
5581
-
5582
- acc.push(getUtilityClass(key));
5583
5591
  }
5584
5592
 
5585
5593
  return acc;
@@ -5720,6 +5728,11 @@
5720
5728
  return acc;
5721
5729
  }, style);
5722
5730
  }
5731
+ function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
5732
+ const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
5733
+ const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});
5734
+ return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
5735
+ } // compute base for responsive values; e.g.,
5723
5736
  // [1,2,3] => {xs: true, sm: true, md: true}
5724
5737
  // {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
5725
5738
 
@@ -6867,7 +6880,9 @@
6867
6880
  generateClassName,
6868
6881
  styleFunctionSx = defaultStyleFunctionSx
6869
6882
  } = options;
6870
- const BoxRoot = styled$3('div')(styleFunctionSx);
6883
+ const BoxRoot = styled$3('div', {
6884
+ shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
6885
+ })(styleFunctionSx);
6871
6886
  const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
6872
6887
  const theme = useTheme$1(defaultTheme);
6873
6888
 
@@ -6918,11 +6933,19 @@
6918
6933
  }
6919
6934
 
6920
6935
  const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6921
- _excluded2$c = ["theme"],
6936
+ _excluded2$d = ["theme"],
6922
6937
  _excluded3$1 = ["theme"];
6923
6938
 
6924
6939
  function isEmpty$2(obj) {
6925
6940
  return Object.keys(obj).length === 0;
6941
+ } // https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40
6942
+
6943
+
6944
+ function isStringTag(tag) {
6945
+ return typeof tag === 'string' && // 96 is one less than the char code
6946
+ // for "a" so this is checking that
6947
+ // it's a lowercase character
6948
+ tag.charCodeAt(0) > 96;
6926
6949
  }
6927
6950
 
6928
6951
  const getStyleOverrides = (name, theme) => {
@@ -6992,7 +7015,19 @@
6992
7015
  slotShouldForwardProp = shouldForwardProp,
6993
7016
  styleFunctionSx = defaultStyleFunctionSx
6994
7017
  } = input;
7018
+
7019
+ const systemSx = props => {
7020
+ const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
7021
+ return styleFunctionSx(_extends({}, props, {
7022
+ theme
7023
+ }));
7024
+ };
7025
+
7026
+ systemSx.__mui_systemSx = true;
6995
7027
  return (tag, inputOptions = {}) => {
7028
+ // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.
7029
+ internal_processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));
7030
+
6996
7031
  const {
6997
7032
  name: componentName,
6998
7033
  slot: componentSlot,
@@ -7020,6 +7055,9 @@
7020
7055
  } else if (componentSlot) {
7021
7056
  // any other slot specified
7022
7057
  shouldForwardPropOption = slotShouldForwardProp;
7058
+ } else if (isStringTag(tag)) {
7059
+ // for string (html) tag, preserve the behavior in emotion & styled-components.
7060
+ shouldForwardPropOption = undefined;
7023
7061
  }
7024
7062
 
7025
7063
  const defaultStyledResolver = styled$3(tag, _extends({
@@ -7032,12 +7070,11 @@
7032
7070
  // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7033
7071
  // component stays as a function. This condition makes sure that we do not interpolate functions
7034
7072
  // which are basically components used as a selectors.
7035
- // eslint-disable-next-line no-underscore-dangle
7036
7073
  return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? _ref => {
7037
7074
  let {
7038
7075
  theme: themeInput
7039
7076
  } = _ref,
7040
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
7077
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7041
7078
 
7042
7079
  return stylesArg(_extends({
7043
7080
  theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
@@ -7073,12 +7110,7 @@
7073
7110
  }
7074
7111
 
7075
7112
  if (!skipSx) {
7076
- expressionsWithDefaultTheme.push(props => {
7077
- const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
7078
- return styleFunctionSx(_extends({}, props, {
7079
- theme
7080
- }));
7081
- });
7113
+ expressionsWithDefaultTheme.push(systemSx);
7082
7114
  }
7083
7115
 
7084
7116
  const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
@@ -7091,7 +7123,6 @@
7091
7123
  } else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7092
7124
  // component stays as a function. This condition makes sure that we do not interpolate functions
7093
7125
  // which are basically components used as a selectors.
7094
- // eslint-disable-next-line no-underscore-dangle
7095
7126
  styleArg.__emotion_real !== styleArg) {
7096
7127
  // If the type is function, we need to define the default theme.
7097
7128
  transformedStyleArg = _ref2 => {
@@ -8080,7 +8111,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8080
8111
  })();
8081
8112
 
8082
8113
  if (key === resolvedDefaultColorScheme) {
8083
- defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
8114
+ defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
8084
8115
  } else {
8085
8116
  otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8086
8117
  }
@@ -8817,7 +8848,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8817
8848
  }
8818
8849
 
8819
8850
  const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8820
- _excluded2$b = ["type", "mode"];
8851
+ _excluded2$c = ["type", "mode"];
8821
8852
  function adaptV4Theme(inputTheme) {
8822
8853
  {
8823
8854
  console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
@@ -8882,7 +8913,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8882
8913
  type: typeInput,
8883
8914
  mode: modeInput
8884
8915
  } = palette,
8885
- paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
8916
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
8886
8917
 
8887
8918
  const finalMode = modeInput || typeInput || 'light';
8888
8919
  theme.palette = _extends({
@@ -10641,38 +10672,57 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10641
10672
  var min = Math.min;
10642
10673
  var round$2 = Math.round;
10643
10674
 
10644
- function getBoundingClientRect(element, includeScale) {
10675
+ function getUAString() {
10676
+ var uaData = navigator.userAgentData;
10677
+
10678
+ if (uaData != null && uaData.brands) {
10679
+ return uaData.brands.map(function (item) {
10680
+ return item.brand + "/" + item.version;
10681
+ }).join(' ');
10682
+ }
10683
+
10684
+ return navigator.userAgent;
10685
+ }
10686
+
10687
+ function isLayoutViewport() {
10688
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
10689
+ }
10690
+
10691
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
10645
10692
  if (includeScale === void 0) {
10646
10693
  includeScale = false;
10647
10694
  }
10648
10695
 
10649
- var rect = element.getBoundingClientRect();
10696
+ if (isFixedStrategy === void 0) {
10697
+ isFixedStrategy = false;
10698
+ }
10699
+
10700
+ var clientRect = element.getBoundingClientRect();
10650
10701
  var scaleX = 1;
10651
10702
  var scaleY = 1;
10652
10703
 
10653
- if (isHTMLElement(element) && includeScale) {
10654
- var offsetHeight = element.offsetHeight;
10655
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
10656
- // Fallback to 1 in case both values are `0`
10657
-
10658
- if (offsetWidth > 0) {
10659
- scaleX = round$2(rect.width) / offsetWidth || 1;
10660
- }
10661
-
10662
- if (offsetHeight > 0) {
10663
- scaleY = round$2(rect.height) / offsetHeight || 1;
10664
- }
10704
+ if (includeScale && isHTMLElement(element)) {
10705
+ scaleX = element.offsetWidth > 0 ? round$2(clientRect.width) / element.offsetWidth || 1 : 1;
10706
+ scaleY = element.offsetHeight > 0 ? round$2(clientRect.height) / element.offsetHeight || 1 : 1;
10665
10707
  }
10666
10708
 
10709
+ var _ref = isElement(element) ? getWindow(element) : window,
10710
+ visualViewport = _ref.visualViewport;
10711
+
10712
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
10713
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
10714
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
10715
+ var width = clientRect.width / scaleX;
10716
+ var height = clientRect.height / scaleY;
10667
10717
  return {
10668
- width: rect.width / scaleX,
10669
- height: rect.height / scaleY,
10670
- top: rect.top / scaleY,
10671
- right: rect.right / scaleX,
10672
- bottom: rect.bottom / scaleY,
10673
- left: rect.left / scaleX,
10674
- x: rect.left / scaleX,
10675
- y: rect.top / scaleY
10718
+ width: width,
10719
+ height: height,
10720
+ top: y,
10721
+ right: x + width,
10722
+ bottom: y + height,
10723
+ left: x,
10724
+ x: x,
10725
+ y: y
10676
10726
  };
10677
10727
  }
10678
10728
 
@@ -10767,8 +10817,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10767
10817
 
10768
10818
 
10769
10819
  function getContainingBlock(element) {
10770
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
10771
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
10820
+ var isFirefox = /firefox/i.test(getUAString());
10821
+ var isIE = /Trident/i.test(getUAString());
10772
10822
 
10773
10823
  if (isIE && isHTMLElement(element)) {
10774
10824
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
@@ -11208,31 +11258,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11208
11258
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
11209
11259
  }
11210
11260
 
11211
- function getViewportRect(element) {
11261
+ function getViewportRect(element, strategy) {
11212
11262
  var win = getWindow(element);
11213
11263
  var html = getDocumentElement(element);
11214
11264
  var visualViewport = win.visualViewport;
11215
11265
  var width = html.clientWidth;
11216
11266
  var height = html.clientHeight;
11217
11267
  var x = 0;
11218
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
11219
- // can be obscured underneath it.
11220
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
11221
- // if it isn't open, so if this isn't available, the popper will be detected
11222
- // to overflow the bottom of the screen too early.
11268
+ var y = 0;
11223
11269
 
11224
11270
  if (visualViewport) {
11225
11271
  width = visualViewport.width;
11226
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
11227
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
11228
- // errors due to floating point numbers, so we need to check precision.
11229
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
11230
- // Feature detection fails in mobile emulation mode in Chrome.
11231
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
11232
- // 0.001
11233
- // Fallback here: "Not Safari" userAgent
11234
-
11235
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
11272
+ height = visualViewport.height;
11273
+ var layoutViewport = isLayoutViewport();
11274
+
11275
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
11236
11276
  x = visualViewport.offsetLeft;
11237
11277
  y = visualViewport.offsetTop;
11238
11278
  }
@@ -11326,8 +11366,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11326
11366
  });
11327
11367
  }
11328
11368
 
11329
- function getInnerBoundingClientRect(element) {
11330
- var rect = getBoundingClientRect(element);
11369
+ function getInnerBoundingClientRect(element, strategy) {
11370
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
11331
11371
  rect.top = rect.top + element.clientTop;
11332
11372
  rect.left = rect.left + element.clientLeft;
11333
11373
  rect.bottom = rect.top + element.clientHeight;
@@ -11339,8 +11379,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11339
11379
  return rect;
11340
11380
  }
11341
11381
 
11342
- function getClientRectFromMixedType(element, clippingParent) {
11343
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
11382
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
11383
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
11344
11384
  } // A "clipping parent" is an overflowable container with the characteristic of
11345
11385
  // clipping (or hiding) overflowing elements with a position different from
11346
11386
  // `initial`
@@ -11363,18 +11403,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11363
11403
  // clipping parents
11364
11404
 
11365
11405
 
11366
- function getClippingRect(element, boundary, rootBoundary) {
11406
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
11367
11407
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
11368
11408
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
11369
11409
  var firstClippingParent = clippingParents[0];
11370
11410
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
11371
- var rect = getClientRectFromMixedType(element, clippingParent);
11411
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
11372
11412
  accRect.top = max(rect.top, accRect.top);
11373
11413
  accRect.right = min(rect.right, accRect.right);
11374
11414
  accRect.bottom = min(rect.bottom, accRect.bottom);
11375
11415
  accRect.left = max(rect.left, accRect.left);
11376
11416
  return accRect;
11377
- }, getClientRectFromMixedType(element, firstClippingParent));
11417
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
11378
11418
  clippingRect.width = clippingRect.right - clippingRect.left;
11379
11419
  clippingRect.height = clippingRect.bottom - clippingRect.top;
11380
11420
  clippingRect.x = clippingRect.left;
@@ -11455,6 +11495,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11455
11495
  var _options = options,
11456
11496
  _options$placement = _options.placement,
11457
11497
  placement = _options$placement === void 0 ? state.placement : _options$placement,
11498
+ _options$strategy = _options.strategy,
11499
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
11458
11500
  _options$boundary = _options.boundary,
11459
11501
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
11460
11502
  _options$rootBoundary = _options.rootBoundary,
@@ -11469,7 +11511,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11469
11511
  var altContext = elementContext === popper ? reference : popper;
11470
11512
  var popperRect = state.rects.popper;
11471
11513
  var element = state.elements[altBoundary ? altContext : elementContext];
11472
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
11514
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
11473
11515
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
11474
11516
  var popperOffsets = computeOffsets({
11475
11517
  reference: referenceClientRect,
@@ -11987,7 +12029,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11987
12029
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
11988
12030
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
11989
12031
  var documentElement = getDocumentElement(offsetParent);
11990
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
12032
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
11991
12033
  var scroll = {
11992
12034
  scrollLeft: 0,
11993
12035
  scrollTop: 0
@@ -12533,7 +12575,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12533
12575
  generateUtilityClasses('MuiPopperUnstyled', ['root']);
12534
12576
 
12535
12577
  const _excluded$2b = ["anchorEl", "children", "component", "components", "componentsProps", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
12536
- _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12578
+ _excluded2$b = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12537
12579
 
12538
12580
  function flipPlacement(placement, direction) {
12539
12581
  if (direction === 'ltr') {
@@ -12722,7 +12764,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12722
12764
  style,
12723
12765
  transition = false
12724
12766
  } = props,
12725
- other = _objectWithoutPropertiesLoose(props, _excluded2$a);
12767
+ other = _objectWithoutPropertiesLoose(props, _excluded2$b);
12726
12768
 
12727
12769
  const [exited, setExited] = React__namespace.useState(true);
12728
12770
 
@@ -13436,18 +13478,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13436
13478
 
13437
13479
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
13438
13480
  children: [/*#__PURE__*/jsxRuntime_1("div", {
13439
- tabIndex: 0,
13481
+ tabIndex: open ? 0 : -1,
13440
13482
  onFocus: handleFocusSentinel,
13441
13483
  ref: sentinelStart,
13442
- "data-test": "sentinelStart"
13484
+ "data-testid": "sentinelStart"
13443
13485
  }), /*#__PURE__*/React__namespace.cloneElement(children, {
13444
13486
  ref: handleRef,
13445
13487
  onFocus
13446
13488
  }), /*#__PURE__*/jsxRuntime_1("div", {
13447
- tabIndex: 0,
13489
+ tabIndex: open ? 0 : -1,
13448
13490
  onFocus: handleFocusSentinel,
13449
13491
  ref: sentinelEnd,
13450
- "data-test": "sentinelEnd"
13492
+ "data-testid": "sentinelEnd"
13451
13493
  })]
13452
13494
  });
13453
13495
  }
@@ -16052,6 +16094,11 @@ const theme2 = createTheme({ palette: {
16052
16094
  } = options,
16053
16095
  other = _objectWithoutPropertiesLoose(options, _excluded$24);
16054
16096
 
16097
+ if (options.vars) {
16098
+ throw new Error(`MUI: \`vars\` is a private field used for CSS variables support.
16099
+ Please use another name.` );
16100
+ }
16101
+
16055
16102
  const palette = createPalette(paletteInput);
16056
16103
  const systemTheme = createTheme$1(options);
16057
16104
  let muiTheme = deepmerge(systemTheme, {
@@ -16546,7 +16593,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16546
16593
  var Paper$1 = Paper;
16547
16594
 
16548
16595
  const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
16549
- _excluded2$9 = ["palette"];
16596
+ _excluded2$a = ["palette"];
16550
16597
  const defaultDarkOverlays = [...Array(25)].map((_, index) => {
16551
16598
  if (index === 0) {
16552
16599
  return undefined;
@@ -16586,7 +16633,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16586
16633
  {
16587
16634
  palette: lightPalette
16588
16635
  } = _createThemeWithoutVa,
16589
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
16636
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$a);
16590
16637
 
16591
16638
  const {
16592
16639
  palette: darkPalette
@@ -17102,6 +17149,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17102
17149
 
17103
17150
  var TransitionGroupContext = React__default["default"].createContext(null);
17104
17151
 
17152
+ var forceReflow = function forceReflow(node) {
17153
+ return node.scrollTop;
17154
+ };
17155
+
17105
17156
  var UNMOUNTED = 'unmounted';
17106
17157
  var EXITED = 'exited';
17107
17158
  var ENTERING = 'entering';
@@ -17321,6 +17372,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17321
17372
  this.cancelNextCallback();
17322
17373
 
17323
17374
  if (nextStatus === ENTERING) {
17375
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
17376
+ var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default["default"].findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
17377
+ // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
17378
+ // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
17379
+
17380
+ if (node) forceReflow(node);
17381
+ }
17382
+
17324
17383
  this.performEnter(mounting);
17325
17384
  } else {
17326
17385
  this.performExit();
@@ -19321,7 +19380,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19321
19380
  stop
19322
19381
  }), [pulsate, start, stop]);
19323
19382
  return /*#__PURE__*/jsxRuntime_1(TouchRippleRoot, _extends({
19324
- className: clsx(classes.root, touchRippleClasses$1.root, className),
19383
+ className: clsx(touchRippleClasses$1.root, classes.root, className),
19325
19384
  ref: container
19326
19385
  }, other, {
19327
19386
  children: /*#__PURE__*/jsxRuntime_1(TransitionGroup$1, {
@@ -21405,7 +21464,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21405
21464
  function getChipUtilityClass(slot) {
21406
21465
  return generateUtilityClass('MuiChip', slot);
21407
21466
  }
21408
- const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'focusVisible']);
21467
+ const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
21409
21468
  var chipClasses$1 = chipClasses;
21410
21469
 
21411
21470
  const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
@@ -21425,7 +21484,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21425
21484
  label: ['label', `label${capitalize(size)}`],
21426
21485
  avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
21427
21486
  icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
21428
- deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIconOutlinedColor${capitalize(color)}`]
21487
+ deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21429
21488
  };
21430
21489
  return composeClasses(slots, getChipUtilityClass, classes);
21431
21490
  };
@@ -21463,8 +21522,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21463
21522
  }, {
21464
21523
  [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
21465
21524
  }, {
21466
- [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconOutlinedColor${capitalize(color)}`]
21467
- }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], variant === 'outlined' && styles[`outlined${capitalize(color)}`]];
21525
+ [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21526
+ }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
21468
21527
  }
21469
21528
  })(({
21470
21529
  theme,
@@ -21732,7 +21791,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21732
21791
  };
21733
21792
 
21734
21793
  const clickable = clickableProp !== false && onClick ? true : clickableProp;
21735
- const small = size === 'small';
21736
21794
  const component = clickable || onDelete ? ButtonBase$1 : ComponentProp || 'div';
21737
21795
 
21738
21796
  const ownerState = _extends({}, props, {
@@ -21755,12 +21813,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21755
21813
  let deleteIcon = null;
21756
21814
 
21757
21815
  if (onDelete) {
21758
- const customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes[`deleteIconOutlinedColor${capitalize(color)}`] : classes[`deleteIconColor${capitalize(color)}`]), small && classes.deleteIconSmall);
21759
21816
  deleteIcon = deleteIconProp && /*#__PURE__*/React__namespace.isValidElement(deleteIconProp) ? /*#__PURE__*/React__namespace.cloneElement(deleteIconProp, {
21760
- className: clsx(deleteIconProp.props.className, classes.deleteIcon, customClasses),
21817
+ className: clsx(deleteIconProp.props.className, classes.deleteIcon),
21761
21818
  onClick: handleDeleteIconClick
21762
21819
  }) : /*#__PURE__*/jsxRuntime_1(CancelIcon, {
21763
- className: clsx(classes.deleteIcon, customClasses),
21820
+ className: clsx(classes.deleteIcon),
21764
21821
  onClick: handleDeleteIconClick
21765
21822
  });
21766
21823
  }
@@ -22012,7 +22069,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22012
22069
  function getInputBaseUtilityClass(slot) {
22013
22070
  return generateUtilityClass('MuiInputBase', slot);
22014
22071
  }
22015
- const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
22072
+ const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
22016
22073
  var inputBaseClasses$1 = inputBaseClasses;
22017
22074
 
22018
22075
  const _excluded$1O = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
@@ -22041,13 +22098,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22041
22098
  fullWidth,
22042
22099
  hiddenLabel,
22043
22100
  multiline,
22101
+ readOnly,
22044
22102
  size,
22045
22103
  startAdornment,
22046
22104
  type
22047
22105
  } = ownerState;
22048
22106
  const slots = {
22049
- root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel'],
22050
- input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd']
22107
+ root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
22108
+ input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
22051
22109
  };
22052
22110
  return composeClasses(slots, getInputBaseUtilityClass, classes);
22053
22111
  };
@@ -24911,7 +24969,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24911
24969
  Root: BadgeRoot,
24912
24970
  Badge: BadgeBadge
24913
24971
  }, components),
24914
- className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
24972
+ className: clsx((_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, classes.root, className),
24915
24973
  componentsProps: {
24916
24974
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
24917
24975
  as: component,
@@ -25705,7 +25763,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25705
25763
 
25706
25764
  var ButtonGroupContext$1 = ButtonGroupContext;
25707
25765
 
25708
- const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
25766
+ const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"],
25767
+ _excluded2$9 = ["root"];
25709
25768
 
25710
25769
  const useUtilityClasses$1n = ownerState => {
25711
25770
  const {
@@ -25949,7 +26008,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25949
26008
  variant
25950
26009
  });
25951
26010
 
25952
- const classes = useUtilityClasses$1n(ownerState);
26011
+ const _useUtilityClasses = useUtilityClasses$1n(ownerState),
26012
+ {
26013
+ root: classesRoot
26014
+ } = _useUtilityClasses,
26015
+ classes = _objectWithoutPropertiesLoose(_useUtilityClasses, _excluded2$9);
25953
26016
 
25954
26017
  const startIcon = startIconProp && /*#__PURE__*/jsxRuntime_1(ButtonStartIcon, {
25955
26018
  className: classes.startIcon,
@@ -25965,7 +26028,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25965
26028
 
25966
26029
  return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
25967
26030
  ownerState: ownerState,
25968
- className: clsx(className, contextProps.className),
26031
+ className: clsx(contextProps.className, classesRoot, className),
25969
26032
  component: component,
25970
26033
  disabled: disabled,
25971
26034
  focusRipple: !disableFocusRipple,
@@ -31982,6 +32045,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31982
32045
  return output;
31983
32046
  });
31984
32047
  }
32048
+ /**
32049
+ * Extracts zero value breakpoint keys before a non-zero value breakpoint key.
32050
+ * @example { xs: 0, sm: 0, md: 2, lg: 0, xl: 0 } or [0, 0, 2, 0, 0]
32051
+ * @returns [xs, sm]
32052
+ */
32053
+
32054
+ function extractZeroValueBreakpointKeys({
32055
+ breakpoints,
32056
+ values
32057
+ }) {
32058
+ let nonZeroKey = '';
32059
+ Object.keys(values).forEach(key => {
32060
+ if (nonZeroKey !== '') {
32061
+ return;
32062
+ }
32063
+
32064
+ if (values[key] !== 0) {
32065
+ nonZeroKey = key;
32066
+ }
32067
+ });
32068
+ const sortedBreakpointKeysByValue = Object.keys(breakpoints).sort((a, b) => {
32069
+ return breakpoints[a] - breakpoints[b];
32070
+ });
32071
+ return sortedBreakpointKeysByValue.slice(0, sortedBreakpointKeysByValue.indexOf(nonZeroKey));
32072
+ }
32073
+
31985
32074
  function generateRowGap({
31986
32075
  theme,
31987
32076
  ownerState
@@ -31997,9 +32086,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31997
32086
  values: rowSpacing,
31998
32087
  breakpoints: theme.breakpoints.values
31999
32088
  });
32089
+ let zeroValueBreakpointKeys;
32090
+
32091
+ if (typeof rowSpacingValues === 'object') {
32092
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32093
+ breakpoints: theme.breakpoints.values,
32094
+ values: rowSpacingValues
32095
+ });
32096
+ }
32097
+
32000
32098
  styles = handleBreakpoints({
32001
32099
  theme
32002
- }, rowSpacingValues, propValue => {
32100
+ }, rowSpacingValues, (propValue, breakpoint) => {
32101
+ var _zeroValueBreakpointK;
32102
+
32003
32103
  const themeSpacing = theme.spacing(propValue);
32004
32104
 
32005
32105
  if (themeSpacing !== '0px') {
@@ -32011,7 +32111,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32011
32111
  };
32012
32112
  }
32013
32113
 
32014
- return {};
32114
+ if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
32115
+ return {};
32116
+ }
32117
+
32118
+ return {
32119
+ marginTop: 0,
32120
+ [`& > .${gridClasses$1.item}`]: {
32121
+ paddingTop: 0
32122
+ }
32123
+ };
32015
32124
  });
32016
32125
  }
32017
32126
 
@@ -32032,9 +32141,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32032
32141
  values: columnSpacing,
32033
32142
  breakpoints: theme.breakpoints.values
32034
32143
  });
32144
+ let zeroValueBreakpointKeys;
32145
+
32146
+ if (typeof columnSpacingValues === 'object') {
32147
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32148
+ breakpoints: theme.breakpoints.values,
32149
+ values: columnSpacingValues
32150
+ });
32151
+ }
32152
+
32035
32153
  styles = handleBreakpoints({
32036
32154
  theme
32037
- }, columnSpacingValues, propValue => {
32155
+ }, columnSpacingValues, (propValue, breakpoint) => {
32156
+ var _zeroValueBreakpointK2;
32157
+
32038
32158
  const themeSpacing = theme.spacing(propValue);
32039
32159
 
32040
32160
  if (themeSpacing !== '0px') {
@@ -32047,7 +32167,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32047
32167
  };
32048
32168
  }
32049
32169
 
32050
- return {};
32170
+ if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
32171
+ return {};
32172
+ }
32173
+
32174
+ return {
32175
+ width: '100%',
32176
+ marginLeft: 0,
32177
+ [`& > .${gridClasses$1.item}`]: {
32178
+ paddingLeft: 0
32179
+ }
32180
+ };
32051
32181
  });
32052
32182
  }
32053
32183
 
@@ -41767,7 +41897,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41767
41897
  onFocus: onFocus
41768
41898
  }, SelectDisplayProps, {
41769
41899
  ownerState: ownerState,
41770
- className: clsx(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
41900
+ className: clsx(SelectDisplayProps.className, classes.select, className) // The id is required for proper a11y
41771
41901
  ,
41772
41902
  id: buttonId,
41773
41903
  children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
@@ -42281,7 +42411,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42281
42411
  function getSkeletonUtilityClass(slot) {
42282
42412
  return generateUtilityClass('MuiSkeleton', slot);
42283
42413
  }
42284
- const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
42414
+ const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
42285
42415
  var skeletonClasses$1 = skeletonClasses;
42286
42416
 
42287
42417
  const _excluded$C = ["animation", "className", "component", "height", "style", "variant", "width"];
@@ -42366,6 +42496,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42366
42496
  }
42367
42497
  }, ownerState.variant === 'circular' && {
42368
42498
  borderRadius: '50%'
42499
+ }, ownerState.variant === 'rounded' && {
42500
+ borderRadius: (theme.vars || theme).shape.borderRadius
42369
42501
  }, ownerState.hasChildren && {
42370
42502
  '& > *': {
42371
42503
  visibility: 'hidden'
@@ -42501,7 +42633,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42501
42633
  */
42502
42634
  variant: PropTypes
42503
42635
  /* @typescript-to-proptypes-ignore */
42504
- .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
42636
+ .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
42505
42637
 
42506
42638
  /**
42507
42639
  * Width of the skeleton.
@@ -44784,7 +44916,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44784
44916
  /* = width / sqrt(2) = (length of the hypotenuse) */
44785
44917
  ,
44786
44918
  boxSizing: 'border-box',
44787
- color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
44919
+ color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
44788
44920
  '&::before': {
44789
44921
  content: '""',
44790
44922
  margin: 'auto',
@@ -45918,6 +46050,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45918
46050
  }, spacingValues, styleFromPropValue));
45919
46051
  }
45920
46052
 
46053
+ styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
45921
46054
  return styles;
45922
46055
  };
45923
46056
  const StackRoot = styled$1('div', {
@@ -46412,7 +46545,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46412
46545
  const slots = {
46413
46546
  root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46414
46547
  label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46415
- iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
46548
+ iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46416
46549
  labelContainer: ['labelContainer']
46417
46550
  };
46418
46551
  return composeClasses(slots, getStepLabelUtilityClass, classes);
@@ -48982,7 +49115,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48982
49115
  * Specify the size of the cell.
48983
49116
  * The prop defaults to the value (`'medium'`) inherited from the parent Table component.
48984
49117
  */
48985
- size: PropTypes.oneOf(['small', 'medium']),
49118
+ size: PropTypes
49119
+ /* @typescript-to-proptypes-ignore */
49120
+ .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
48986
49121
 
48987
49122
  /**
48988
49123
  * Set aria-sort direction.
@@ -48998,7 +49133,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48998
49133
  * Specify the cell type.
48999
49134
  * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
49000
49135
  */
49001
- variant: PropTypes.oneOf(['body', 'footer', 'head'])
49136
+ variant: PropTypes
49137
+ /* @typescript-to-proptypes-ignore */
49138
+ .oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])
49002
49139
  } ;
49003
49140
  var TableCell$1 = TableCell;
49004
49141
 
@@ -52320,9 +52457,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
52320
52457
 
52321
52458
  handleScroll(); // Re-evaluate trigger when dependencies change
52322
52459
 
52323
- target.addEventListener('scroll', handleScroll);
52460
+ target.addEventListener('scroll', handleScroll, {
52461
+ passive: true
52462
+ });
52324
52463
  return () => {
52325
- target.removeEventListener('scroll', handleScroll);
52464
+ target.removeEventListener('scroll', handleScroll, {
52465
+ passive: true
52466
+ });
52326
52467
  }; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
52327
52468
  // eslint-disable-next-line react-hooks/exhaustive-deps
52328
52469
  }, [target, getTrigger, JSON.stringify(other)]);