@mui/material 5.9.3 → 5.10.2

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 (190) 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/Autocomplete.js +2 -2
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  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/buttonClasses.d.ts +100 -100
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +179 -4
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/chipClasses.d.ts +88 -88
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +40 -40
  46. package/FormControl/formControlClasses.d.ts +14 -14
  47. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  48. package/FormGroup/formGroupClasses.d.ts +12 -12
  49. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  50. package/FormLabel/formLabelClasses.d.ts +22 -22
  51. package/Grid/Grid.d.ts +1 -1
  52. package/Grid/Grid.js +6 -2
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/IconButton.js +1 -1
  56. package/IconButton/iconButtonClasses.d.ts +26 -26
  57. package/ImageList/imageListClasses.d.ts +16 -16
  58. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  59. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/inputBaseClasses.d.ts +46 -46
  63. package/InputLabel/inputLabelClasses.d.ts +32 -32
  64. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  65. package/Link/getTextDecoration.d.ts +15 -15
  66. package/Link/linkClasses.d.ts +18 -18
  67. package/List/listClasses.d.ts +14 -14
  68. package/ListItem/listItemClasses.d.ts +30 -30
  69. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  70. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  71. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  72. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  73. package/ListItemText/listItemTextClasses.d.ts +18 -18
  74. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  75. package/Menu/menuClasses.d.ts +12 -12
  76. package/MenuItem/menuItemClasses.d.ts +20 -20
  77. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  78. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  79. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +24 -24
  85. package/README.md +9 -8
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/selectClasses.d.ts +30 -30
  92. package/Skeleton/Skeleton.d.ts +1 -1
  93. package/Skeleton/Skeleton.js +3 -1
  94. package/Skeleton/skeletonClasses.d.ts +26 -24
  95. package/Skeleton/skeletonClasses.js +1 -1
  96. package/Snackbar/snackbarClasses.d.ts +20 -20
  97. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  98. package/SpeedDial/speedDialClasses.d.ts +22 -22
  99. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  100. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  101. package/Step/StepContext.d.ts +20 -20
  102. package/Step/stepClasses.d.ts +16 -16
  103. package/StepButton/stepButtonClasses.d.ts +14 -14
  104. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  105. package/StepContent/stepContentClasses.d.ts +12 -12
  106. package/StepIcon/stepIconClasses.d.ts +16 -16
  107. package/StepLabel/StepLabel.js +1 -1
  108. package/StepLabel/stepLabelClasses.d.ts +28 -28
  109. package/Stepper/StepperContext.d.ts +18 -18
  110. package/Stepper/stepperClasses.d.ts +14 -14
  111. package/SvgIcon/svgIconClasses.d.ts +24 -24
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/TableCell.d.ts +6 -2
  118. package/TableCell/TableCell.js +6 -2
  119. package/TableCell/tableCellClasses.d.ts +32 -32
  120. package/TableContainer/tableContainerClasses.d.ts +8 -8
  121. package/TableFooter/tableFooterClasses.d.ts +8 -8
  122. package/TableHead/tableHeadClasses.d.ts +8 -8
  123. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  124. package/TableRow/tableRowClasses.d.ts +16 -16
  125. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  126. package/Tabs/tabsClasses.d.ts +32 -32
  127. package/TextField/textFieldClasses.d.ts +8 -8
  128. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  129. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  130. package/Toolbar/toolbarClasses.d.ts +14 -14
  131. package/Tooltip/Tooltip.js +1 -1
  132. package/Tooltip/tooltipClasses.d.ts +30 -30
  133. package/Typography/typographyClasses.d.ts +50 -50
  134. package/Unstable_Grid2/Grid2.d.ts +4 -4
  135. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  136. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  137. package/Unstable_Grid2/index.d.ts +4 -4
  138. package/className/index.d.ts +1 -1
  139. package/darkScrollbar/index.d.ts +28 -28
  140. package/index.js +1 -1
  141. package/internal/switchBaseClasses.d.ts +12 -12
  142. package/legacy/Autocomplete/Autocomplete.js +2 -2
  143. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  144. package/legacy/Grid/Grid.js +6 -2
  145. package/legacy/IconButton/IconButton.js +1 -1
  146. package/legacy/Skeleton/Skeleton.js +3 -1
  147. package/legacy/Skeleton/skeletonClasses.js +1 -1
  148. package/legacy/StepLabel/StepLabel.js +1 -1
  149. package/legacy/TableCell/TableCell.js +6 -2
  150. package/legacy/Tooltip/Tooltip.js +1 -1
  151. package/legacy/index.js +1 -1
  152. package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
  153. package/locale/index.d.ts +71 -71
  154. package/modern/Autocomplete/Autocomplete.js +2 -2
  155. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  156. package/modern/Grid/Grid.js +2 -2
  157. package/modern/IconButton/IconButton.js +1 -1
  158. package/modern/Skeleton/Skeleton.js +3 -1
  159. package/modern/Skeleton/skeletonClasses.js +1 -1
  160. package/modern/StepLabel/StepLabel.js +1 -1
  161. package/modern/TableCell/TableCell.js +6 -2
  162. package/modern/Tooltip/Tooltip.js +1 -1
  163. package/modern/index.js +1 -1
  164. package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
  165. package/node/Autocomplete/Autocomplete.js +2 -2
  166. package/node/BottomNavigation/BottomNavigation.js +0 -0
  167. package/node/Grid/Grid.js +6 -2
  168. package/node/IconButton/IconButton.js +1 -1
  169. package/node/Skeleton/Skeleton.js +3 -1
  170. package/node/Skeleton/skeletonClasses.js +1 -1
  171. package/node/StepLabel/StepLabel.js +1 -1
  172. package/node/TableCell/TableCell.js +6 -2
  173. package/node/Tooltip/Tooltip.js +1 -1
  174. package/node/index.js +1 -1
  175. package/node/useScrollTrigger/useScrollTrigger.js +6 -2
  176. package/package.json +4 -3
  177. package/styles/CssVarsProvider.d.ts +14 -14
  178. package/transitions/index.d.ts +1 -1
  179. package/transitions/transition.d.ts +13 -13
  180. package/transitions/utils.d.ts +23 -23
  181. package/umd/material-ui.development.js +216 -109
  182. package/umd/material-ui.production.min.js +20 -20
  183. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  184. package/useScrollTrigger/useScrollTrigger.js +6 -2
  185. package/useTouchRipple/index.d.ts +1 -1
  186. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  187. package/utils/getScrollbarSize.d.ts +2 -2
  188. package/utils/ownerDocument.d.ts +2 -2
  189. package/utils/ownerWindow.d.ts +2 -2
  190. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.2
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.
@@ -1952,13 +1952,49 @@
1952
1952
 
1953
1953
  var pkg = {
1954
1954
  name: "@emotion/react",
1955
- version: "11.9.3",
1955
+ version: "11.10.0",
1956
1956
  main: "dist/emotion-react.cjs.js",
1957
1957
  module: "dist/emotion-react.esm.js",
1958
1958
  browser: {
1959
- "./dist/emotion-react.cjs.js": "./dist/emotion-react.browser.cjs.js",
1960
1959
  "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1961
1960
  },
1961
+ exports: {
1962
+ ".": {
1963
+ module: {
1964
+ worker: "./dist/emotion-react.worker.esm.js",
1965
+ browser: "./dist/emotion-react.browser.esm.js",
1966
+ "default": "./dist/emotion-react.esm.js"
1967
+ },
1968
+ "default": "./dist/emotion-react.cjs.js"
1969
+ },
1970
+ "./jsx-runtime": {
1971
+ module: {
1972
+ worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
1973
+ browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
1974
+ "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
1975
+ },
1976
+ "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
1977
+ },
1978
+ "./_isolated-hnrs": {
1979
+ module: {
1980
+ worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
1981
+ browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
1982
+ "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
1983
+ },
1984
+ "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
1985
+ },
1986
+ "./jsx-dev-runtime": {
1987
+ module: {
1988
+ worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
1989
+ browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
1990
+ "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
1991
+ },
1992
+ "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
1993
+ },
1994
+ "./package.json": "./package.json",
1995
+ "./types/css-prop": "./types/css-prop.d.ts",
1996
+ "./macro": "./macro.js"
1997
+ },
1962
1998
  types: "types/index.d.ts",
1963
1999
  files: [
1964
2000
  "src",
@@ -1978,12 +2014,12 @@
1978
2014
  "test:typescript": "dtslint types"
1979
2015
  },
1980
2016
  dependencies: {
1981
- "@babel/runtime": "^7.13.10",
1982
- "@emotion/babel-plugin": "^11.7.1",
1983
- "@emotion/cache": "^11.9.3",
1984
- "@emotion/serialize": "^1.0.4",
1985
- "@emotion/utils": "^1.1.0",
1986
- "@emotion/weak-memoize": "^0.2.5",
2017
+ "@babel/runtime": "^7.18.3",
2018
+ "@emotion/babel-plugin": "^11.10.0",
2019
+ "@emotion/cache": "^11.10.0",
2020
+ "@emotion/serialize": "^1.1.0",
2021
+ "@emotion/utils": "^1.2.0",
2022
+ "@emotion/weak-memoize": "^0.3.0",
1987
2023
  "hoist-non-react-statics": "^3.3.1"
1988
2024
  },
1989
2025
  peerDependencies: {
@@ -1999,12 +2035,12 @@
1999
2035
  }
2000
2036
  },
2001
2037
  devDependencies: {
2002
- "@babel/core": "^7.13.10",
2038
+ "@babel/core": "^7.18.5",
2003
2039
  "@definitelytyped/dtslint": "0.0.112",
2004
- "@emotion/css": "11.9.0",
2005
- "@emotion/css-prettifier": "1.0.1",
2006
- "@emotion/server": "11.4.0",
2007
- "@emotion/styled": "11.9.3",
2040
+ "@emotion/css": "11.10.0",
2041
+ "@emotion/css-prettifier": "1.1.0",
2042
+ "@emotion/server": "11.10.0",
2043
+ "@emotion/styled": "11.10.0",
2008
2044
  "html-tag-names": "^1.1.2",
2009
2045
  react: "16.14.0",
2010
2046
  "svg-tag-names": "^1.1.1",
@@ -2022,7 +2058,17 @@
2022
2058
  "./jsx-dev-runtime.js",
2023
2059
  "./_isolated-hnrs.js"
2024
2060
  ],
2025
- umdName: "emotionReact"
2061
+ umdName: "emotionReact",
2062
+ exports: {
2063
+ envConditions: [
2064
+ "browser",
2065
+ "worker"
2066
+ ],
2067
+ extra: {
2068
+ "./types/css-prop": "./types/css-prop.d.ts",
2069
+ "./macro": "./macro.js"
2070
+ }
2071
+ }
2026
2072
  }
2027
2073
  };
2028
2074
 
@@ -4738,7 +4784,15 @@
4738
4784
  return stylesFactory(...styles);
4739
4785
  };
4740
4786
  }
4741
- }
4787
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
4788
+
4789
+ const internal_processStyles = (tag, processor) => {
4790
+ // Emotion attaches all the styles as `__emotion_styles`.
4791
+ // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186
4792
+ if (Array.isArray(tag.__emotion_styles)) {
4793
+ tag.__emotion_styles = processor(tag.__emotion_styles);
4794
+ }
4795
+ };
4742
4796
 
4743
4797
  const responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) ;
4744
4798
  var responsivePropType$1 = responsivePropType;
@@ -6872,7 +6926,9 @@
6872
6926
  generateClassName,
6873
6927
  styleFunctionSx = defaultStyleFunctionSx
6874
6928
  } = options;
6875
- const BoxRoot = styled$3('div')(styleFunctionSx);
6929
+ const BoxRoot = styled$3('div', {
6930
+ shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
6931
+ })(styleFunctionSx);
6876
6932
  const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
6877
6933
  const theme = useTheme$1(defaultTheme);
6878
6934
 
@@ -6928,6 +6984,14 @@
6928
6984
 
6929
6985
  function isEmpty$2(obj) {
6930
6986
  return Object.keys(obj).length === 0;
6987
+ } // https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40
6988
+
6989
+
6990
+ function isStringTag(tag) {
6991
+ return typeof tag === 'string' && // 96 is one less than the char code
6992
+ // for "a" so this is checking that
6993
+ // it's a lowercase character
6994
+ tag.charCodeAt(0) > 96;
6931
6995
  }
6932
6996
 
6933
6997
  const getStyleOverrides = (name, theme) => {
@@ -6997,7 +7061,19 @@
6997
7061
  slotShouldForwardProp = shouldForwardProp,
6998
7062
  styleFunctionSx = defaultStyleFunctionSx
6999
7063
  } = input;
7064
+
7065
+ const systemSx = props => {
7066
+ const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
7067
+ return styleFunctionSx(_extends({}, props, {
7068
+ theme
7069
+ }));
7070
+ };
7071
+
7072
+ systemSx.__mui_systemSx = true;
7000
7073
  return (tag, inputOptions = {}) => {
7074
+ // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.
7075
+ internal_processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));
7076
+
7001
7077
  const {
7002
7078
  name: componentName,
7003
7079
  slot: componentSlot,
@@ -7025,6 +7101,9 @@
7025
7101
  } else if (componentSlot) {
7026
7102
  // any other slot specified
7027
7103
  shouldForwardPropOption = slotShouldForwardProp;
7104
+ } else if (isStringTag(tag)) {
7105
+ // for string (html) tag, preserve the behavior in emotion & styled-components.
7106
+ shouldForwardPropOption = undefined;
7028
7107
  }
7029
7108
 
7030
7109
  const defaultStyledResolver = styled$3(tag, _extends({
@@ -7037,7 +7116,6 @@
7037
7116
  // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7038
7117
  // component stays as a function. This condition makes sure that we do not interpolate functions
7039
7118
  // which are basically components used as a selectors.
7040
- // eslint-disable-next-line no-underscore-dangle
7041
7119
  return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? _ref => {
7042
7120
  let {
7043
7121
  theme: themeInput
@@ -7078,12 +7156,7 @@
7078
7156
  }
7079
7157
 
7080
7158
  if (!skipSx) {
7081
- expressionsWithDefaultTheme.push(props => {
7082
- const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
7083
- return styleFunctionSx(_extends({}, props, {
7084
- theme
7085
- }));
7086
- });
7159
+ expressionsWithDefaultTheme.push(systemSx);
7087
7160
  }
7088
7161
 
7089
7162
  const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
@@ -7096,7 +7169,6 @@
7096
7169
  } else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7097
7170
  // component stays as a function. This condition makes sure that we do not interpolate functions
7098
7171
  // which are basically components used as a selectors.
7099
- // eslint-disable-next-line no-underscore-dangle
7100
7172
  styleArg.__emotion_real !== styleArg) {
7101
7173
  // If the type is function, we need to define the default theme.
7102
7174
  transformedStyleArg = _ref2 => {
@@ -7800,8 +7872,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7800
7872
  return currentState;
7801
7873
  }
7802
7874
 
7803
- if (typeof localStorage !== 'undefined') {
7875
+ try {
7804
7876
  localStorage.setItem(modeStorageKey, newMode);
7877
+ } catch (e) {// Unsupported
7805
7878
  }
7806
7879
 
7807
7880
  return _extends({}, currentState, {
@@ -7826,7 +7899,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7826
7899
  }
7827
7900
 
7828
7901
  processState(currentState, mode => {
7829
- localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
7902
+ try {
7903
+ localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
7904
+ } catch (e) {// Unsupported
7905
+ }
7830
7906
 
7831
7907
  if (mode === 'light') {
7832
7908
  newState.lightColorScheme = value;
@@ -7856,12 +7932,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7856
7932
  return newState;
7857
7933
  });
7858
7934
 
7859
- if (value.light) {
7860
- localStorage.setItem(`${colorSchemeStorageKey}-light`, value.light);
7861
- }
7935
+ try {
7936
+ if (value.light) {
7937
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, value.light);
7938
+ }
7862
7939
 
7863
- if (value.dark) {
7864
- localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7940
+ if (value.dark) {
7941
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7942
+ }
7943
+ } catch (e) {// Unsupported
7865
7944
  }
7866
7945
  }
7867
7946
  }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
@@ -7887,19 +7966,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7887
7966
  }, []); // Save mode, lightColorScheme & darkColorScheme to localStorage
7888
7967
 
7889
7968
  React__namespace.useEffect(() => {
7890
- if (state.mode) {
7891
- localStorage.setItem(modeStorageKey, state.mode);
7892
- }
7893
-
7894
- processState(state, mode => {
7895
- if (mode === 'light') {
7896
- localStorage.setItem(`${colorSchemeStorageKey}-light`, state.lightColorScheme);
7969
+ try {
7970
+ if (state.mode) {
7971
+ localStorage.setItem(modeStorageKey, state.mode);
7897
7972
  }
7898
7973
 
7899
- if (mode === 'dark') {
7900
- localStorage.setItem(`${colorSchemeStorageKey}-dark`, state.darkColorScheme);
7901
- }
7902
- });
7974
+ processState(state, mode => {
7975
+ if (mode === 'light') {
7976
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, state.lightColorScheme);
7977
+ }
7978
+
7979
+ if (mode === 'dark') {
7980
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, state.darkColorScheme);
7981
+ }
7982
+ });
7983
+ } catch (e) {// Unsupported
7984
+ }
7903
7985
  }, [state, colorSchemeStorageKey, modeStorageKey]); // Handle when localStorage has changed
7904
7986
 
7905
7987
  React__namespace.useEffect(() => {
@@ -10646,38 +10728,57 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10646
10728
  var min = Math.min;
10647
10729
  var round$2 = Math.round;
10648
10730
 
10649
- function getBoundingClientRect(element, includeScale) {
10731
+ function getUAString() {
10732
+ var uaData = navigator.userAgentData;
10733
+
10734
+ if (uaData != null && uaData.brands) {
10735
+ return uaData.brands.map(function (item) {
10736
+ return item.brand + "/" + item.version;
10737
+ }).join(' ');
10738
+ }
10739
+
10740
+ return navigator.userAgent;
10741
+ }
10742
+
10743
+ function isLayoutViewport() {
10744
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
10745
+ }
10746
+
10747
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
10650
10748
  if (includeScale === void 0) {
10651
10749
  includeScale = false;
10652
10750
  }
10653
10751
 
10654
- var rect = element.getBoundingClientRect();
10752
+ if (isFixedStrategy === void 0) {
10753
+ isFixedStrategy = false;
10754
+ }
10755
+
10756
+ var clientRect = element.getBoundingClientRect();
10655
10757
  var scaleX = 1;
10656
10758
  var scaleY = 1;
10657
10759
 
10658
- if (isHTMLElement(element) && includeScale) {
10659
- var offsetHeight = element.offsetHeight;
10660
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
10661
- // Fallback to 1 in case both values are `0`
10662
-
10663
- if (offsetWidth > 0) {
10664
- scaleX = round$2(rect.width) / offsetWidth || 1;
10665
- }
10666
-
10667
- if (offsetHeight > 0) {
10668
- scaleY = round$2(rect.height) / offsetHeight || 1;
10669
- }
10760
+ if (includeScale && isHTMLElement(element)) {
10761
+ scaleX = element.offsetWidth > 0 ? round$2(clientRect.width) / element.offsetWidth || 1 : 1;
10762
+ scaleY = element.offsetHeight > 0 ? round$2(clientRect.height) / element.offsetHeight || 1 : 1;
10670
10763
  }
10671
10764
 
10765
+ var _ref = isElement(element) ? getWindow(element) : window,
10766
+ visualViewport = _ref.visualViewport;
10767
+
10768
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
10769
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
10770
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
10771
+ var width = clientRect.width / scaleX;
10772
+ var height = clientRect.height / scaleY;
10672
10773
  return {
10673
- width: rect.width / scaleX,
10674
- height: rect.height / scaleY,
10675
- top: rect.top / scaleY,
10676
- right: rect.right / scaleX,
10677
- bottom: rect.bottom / scaleY,
10678
- left: rect.left / scaleX,
10679
- x: rect.left / scaleX,
10680
- y: rect.top / scaleY
10774
+ width: width,
10775
+ height: height,
10776
+ top: y,
10777
+ right: x + width,
10778
+ bottom: y + height,
10779
+ left: x,
10780
+ x: x,
10781
+ y: y
10681
10782
  };
10682
10783
  }
10683
10784
 
@@ -10772,8 +10873,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10772
10873
 
10773
10874
 
10774
10875
  function getContainingBlock(element) {
10775
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
10776
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
10876
+ var isFirefox = /firefox/i.test(getUAString());
10877
+ var isIE = /Trident/i.test(getUAString());
10777
10878
 
10778
10879
  if (isIE && isHTMLElement(element)) {
10779
10880
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
@@ -11213,31 +11314,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11213
11314
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
11214
11315
  }
11215
11316
 
11216
- function getViewportRect(element) {
11317
+ function getViewportRect(element, strategy) {
11217
11318
  var win = getWindow(element);
11218
11319
  var html = getDocumentElement(element);
11219
11320
  var visualViewport = win.visualViewport;
11220
11321
  var width = html.clientWidth;
11221
11322
  var height = html.clientHeight;
11222
11323
  var x = 0;
11223
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
11224
- // can be obscured underneath it.
11225
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
11226
- // if it isn't open, so if this isn't available, the popper will be detected
11227
- // to overflow the bottom of the screen too early.
11324
+ var y = 0;
11228
11325
 
11229
11326
  if (visualViewport) {
11230
11327
  width = visualViewport.width;
11231
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
11232
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
11233
- // errors due to floating point numbers, so we need to check precision.
11234
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
11235
- // Feature detection fails in mobile emulation mode in Chrome.
11236
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
11237
- // 0.001
11238
- // Fallback here: "Not Safari" userAgent
11239
-
11240
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
11328
+ height = visualViewport.height;
11329
+ var layoutViewport = isLayoutViewport();
11330
+
11331
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
11241
11332
  x = visualViewport.offsetLeft;
11242
11333
  y = visualViewport.offsetTop;
11243
11334
  }
@@ -11331,8 +11422,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11331
11422
  });
11332
11423
  }
11333
11424
 
11334
- function getInnerBoundingClientRect(element) {
11335
- var rect = getBoundingClientRect(element);
11425
+ function getInnerBoundingClientRect(element, strategy) {
11426
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
11336
11427
  rect.top = rect.top + element.clientTop;
11337
11428
  rect.left = rect.left + element.clientLeft;
11338
11429
  rect.bottom = rect.top + element.clientHeight;
@@ -11344,8 +11435,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11344
11435
  return rect;
11345
11436
  }
11346
11437
 
11347
- function getClientRectFromMixedType(element, clippingParent) {
11348
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
11438
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
11439
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
11349
11440
  } // A "clipping parent" is an overflowable container with the characteristic of
11350
11441
  // clipping (or hiding) overflowing elements with a position different from
11351
11442
  // `initial`
@@ -11368,18 +11459,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11368
11459
  // clipping parents
11369
11460
 
11370
11461
 
11371
- function getClippingRect(element, boundary, rootBoundary) {
11462
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
11372
11463
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
11373
11464
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
11374
11465
  var firstClippingParent = clippingParents[0];
11375
11466
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
11376
- var rect = getClientRectFromMixedType(element, clippingParent);
11467
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
11377
11468
  accRect.top = max(rect.top, accRect.top);
11378
11469
  accRect.right = min(rect.right, accRect.right);
11379
11470
  accRect.bottom = min(rect.bottom, accRect.bottom);
11380
11471
  accRect.left = max(rect.left, accRect.left);
11381
11472
  return accRect;
11382
- }, getClientRectFromMixedType(element, firstClippingParent));
11473
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
11383
11474
  clippingRect.width = clippingRect.right - clippingRect.left;
11384
11475
  clippingRect.height = clippingRect.bottom - clippingRect.top;
11385
11476
  clippingRect.x = clippingRect.left;
@@ -11460,6 +11551,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11460
11551
  var _options = options,
11461
11552
  _options$placement = _options.placement,
11462
11553
  placement = _options$placement === void 0 ? state.placement : _options$placement,
11554
+ _options$strategy = _options.strategy,
11555
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
11463
11556
  _options$boundary = _options.boundary,
11464
11557
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
11465
11558
  _options$rootBoundary = _options.rootBoundary,
@@ -11474,7 +11567,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11474
11567
  var altContext = elementContext === popper ? reference : popper;
11475
11568
  var popperRect = state.rects.popper;
11476
11569
  var element = state.elements[altBoundary ? altContext : elementContext];
11477
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
11570
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
11478
11571
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
11479
11572
  var popperOffsets = computeOffsets({
11480
11573
  reference: referenceClientRect,
@@ -11992,7 +12085,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11992
12085
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
11993
12086
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
11994
12087
  var documentElement = getDocumentElement(offsetParent);
11995
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
12088
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
11996
12089
  var scroll = {
11997
12090
  scrollLeft: 0,
11998
12091
  scrollTop: 0
@@ -13441,18 +13534,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13441
13534
 
13442
13535
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
13443
13536
  children: [/*#__PURE__*/jsxRuntime_1("div", {
13444
- tabIndex: 0,
13537
+ tabIndex: open ? 0 : -1,
13445
13538
  onFocus: handleFocusSentinel,
13446
13539
  ref: sentinelStart,
13447
- "data-test": "sentinelStart"
13540
+ "data-testid": "sentinelStart"
13448
13541
  }), /*#__PURE__*/React__namespace.cloneElement(children, {
13449
13542
  ref: handleRef,
13450
13543
  onFocus
13451
13544
  }), /*#__PURE__*/jsxRuntime_1("div", {
13452
- tabIndex: 0,
13545
+ tabIndex: open ? 0 : -1,
13453
13546
  onFocus: handleFocusSentinel,
13454
13547
  ref: sentinelEnd,
13455
- "data-test": "sentinelEnd"
13548
+ "data-testid": "sentinelEnd"
13456
13549
  })]
13457
13550
  });
13458
13551
  }
@@ -20168,7 +20261,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20168
20261
  })
20169
20262
  }, !ownerState.disableRipple && {
20170
20263
  '&:hover': {
20171
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
20264
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
20172
20265
  // Reset on touch devices, it doesn't add specificity
20173
20266
  '@media (hover: none)': {
20174
20267
  backgroundColor: 'transparent'
@@ -23334,7 +23427,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23334
23427
  readOnly
23335
23428
  }, getInputProps())
23336
23429
  })
23337
- })), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
23430
+ })), anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
23338
23431
  as: PopperComponent,
23339
23432
  disablePortal: disablePortal,
23340
23433
  style: {
@@ -23343,7 +23436,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23343
23436
  ownerState: ownerState,
23344
23437
  role: "presentation",
23345
23438
  anchorEl: anchorEl,
23346
- open: true
23439
+ open: popupOpen
23347
23440
  }, componentsProps.popper, {
23348
23441
  className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
23349
23442
  children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
@@ -32061,6 +32154,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32061
32154
  styles = handleBreakpoints({
32062
32155
  theme
32063
32156
  }, rowSpacingValues, (propValue, breakpoint) => {
32157
+ var _zeroValueBreakpointK;
32158
+
32064
32159
  const themeSpacing = theme.spacing(propValue);
32065
32160
 
32066
32161
  if (themeSpacing !== '0px') {
@@ -32072,7 +32167,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32072
32167
  };
32073
32168
  }
32074
32169
 
32075
- if (zeroValueBreakpointKeys.includes(breakpoint)) {
32170
+ if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
32076
32171
  return {};
32077
32172
  }
32078
32173
 
@@ -32114,6 +32209,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32114
32209
  styles = handleBreakpoints({
32115
32210
  theme
32116
32211
  }, columnSpacingValues, (propValue, breakpoint) => {
32212
+ var _zeroValueBreakpointK2;
32213
+
32117
32214
  const themeSpacing = theme.spacing(propValue);
32118
32215
 
32119
32216
  if (themeSpacing !== '0px') {
@@ -32126,7 +32223,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32126
32223
  };
32127
32224
  }
32128
32225
 
32129
- if (zeroValueBreakpointKeys.includes(breakpoint)) {
32226
+ if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
32130
32227
  return {};
32131
32228
  }
32132
32229
 
@@ -42370,7 +42467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42370
42467
  function getSkeletonUtilityClass(slot) {
42371
42468
  return generateUtilityClass('MuiSkeleton', slot);
42372
42469
  }
42373
- const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
42470
+ const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
42374
42471
  var skeletonClasses$1 = skeletonClasses;
42375
42472
 
42376
42473
  const _excluded$C = ["animation", "className", "component", "height", "style", "variant", "width"];
@@ -42455,6 +42552,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42455
42552
  }
42456
42553
  }, ownerState.variant === 'circular' && {
42457
42554
  borderRadius: '50%'
42555
+ }, ownerState.variant === 'rounded' && {
42556
+ borderRadius: (theme.vars || theme).shape.borderRadius
42458
42557
  }, ownerState.hasChildren && {
42459
42558
  '& > *': {
42460
42559
  visibility: 'hidden'
@@ -42590,7 +42689,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42590
42689
  */
42591
42690
  variant: PropTypes
42592
42691
  /* @typescript-to-proptypes-ignore */
42593
- .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
42692
+ .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
42594
42693
 
42595
42694
  /**
42596
42695
  * Width of the skeleton.
@@ -44873,7 +44972,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44873
44972
  /* = width / sqrt(2) = (length of the hypotenuse) */
44874
44973
  ,
44875
44974
  boxSizing: 'border-box',
44876
- color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
44975
+ color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
44877
44976
  '&::before': {
44878
44977
  content: '""',
44879
44978
  margin: 'auto',
@@ -46502,7 +46601,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46502
46601
  const slots = {
46503
46602
  root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46504
46603
  label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46505
- iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
46604
+ iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
46506
46605
  labelContainer: ['labelContainer']
46507
46606
  };
46508
46607
  return composeClasses(slots, getStepLabelUtilityClass, classes);
@@ -49072,7 +49171,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49072
49171
  * Specify the size of the cell.
49073
49172
  * The prop defaults to the value (`'medium'`) inherited from the parent Table component.
49074
49173
  */
49075
- size: PropTypes.oneOf(['small', 'medium']),
49174
+ size: PropTypes
49175
+ /* @typescript-to-proptypes-ignore */
49176
+ .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
49076
49177
 
49077
49178
  /**
49078
49179
  * Set aria-sort direction.
@@ -49088,7 +49189,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49088
49189
  * Specify the cell type.
49089
49190
  * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
49090
49191
  */
49091
- variant: PropTypes.oneOf(['body', 'footer', 'head'])
49192
+ variant: PropTypes
49193
+ /* @typescript-to-proptypes-ignore */
49194
+ .oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])
49092
49195
  } ;
49093
49196
  var TableCell$1 = TableCell;
49094
49197
 
@@ -52410,9 +52513,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
52410
52513
 
52411
52514
  handleScroll(); // Re-evaluate trigger when dependencies change
52412
52515
 
52413
- target.addEventListener('scroll', handleScroll);
52516
+ target.addEventListener('scroll', handleScroll, {
52517
+ passive: true
52518
+ });
52414
52519
  return () => {
52415
- target.removeEventListener('scroll', handleScroll);
52520
+ target.removeEventListener('scroll', handleScroll, {
52521
+ passive: true
52522
+ });
52416
52523
  }; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
52417
52524
  // eslint-disable-next-line react-hooks/exhaustive-deps
52418
52525
  }, [target, getTrigger, JSON.stringify(other)]);