@mui/material 5.8.0 → 5.8.3

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 (215) 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/Alert.js +4 -1
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  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 +76 -76
  19. package/ButtonBase/TouchRipple.js +5 -5
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +203 -6
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  27. package/CardActions/cardActionsClasses.d.ts +10 -10
  28. package/CardContent/cardContentClasses.d.ts +8 -8
  29. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  30. package/CardMedia/cardMediaClasses.d.ts +12 -12
  31. package/Checkbox/Checkbox.js +4 -4
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +6 -6
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  44. package/Divider/dividerClasses.d.ts +34 -34
  45. package/Drawer/drawerClasses.d.ts +30 -30
  46. package/Fab/Fab.js +3 -1
  47. package/Fab/fabClasses.d.ts +26 -26
  48. package/FilledInput/filledInputClasses.d.ts +40 -40
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/formLabelClasses.d.ts +22 -22
  54. package/Grid/gridClasses.d.ts +48 -48
  55. package/Grow/Grow.js +4 -3
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +26 -26
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +44 -44
  64. package/InputLabel/InputLabel.d.ts +5 -0
  65. package/InputLabel/InputLabel.js +6 -0
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/linkClasses.d.ts +18 -18
  69. package/List/listClasses.d.ts +14 -14
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/ListItemButton.js +7 -1
  73. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  74. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  75. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  76. package/ListItemText/listItemTextClasses.d.ts +18 -18
  77. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  78. package/Menu/menuClasses.d.ts +12 -12
  79. package/MenuItem/menuItemClasses.d.ts +20 -20
  80. package/MenuList/MenuList.d.ts +1 -1
  81. package/MenuList/MenuList.js +1 -1
  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/Paper.js +20 -15
  88. package/Paper/index.d.ts +1 -1
  89. package/Paper/paperClasses.d.ts +39 -39
  90. package/Popover/popoverClasses.d.ts +10 -10
  91. package/Popper/Popper.d.ts +29 -29
  92. package/README.md +7 -3
  93. package/Radio/Radio.js +4 -4
  94. package/Radio/radioClasses.d.ts +16 -16
  95. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  96. package/RadioGroup/useRadioGroup.d.ts +4 -4
  97. package/Rating/ratingClasses.d.ts +40 -40
  98. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  99. package/Select/SelectInput.js +2 -2
  100. package/Select/selectClasses.d.ts +30 -30
  101. package/Skeleton/skeletonClasses.d.ts +24 -24
  102. package/Slider/Slider.js +21 -12
  103. package/Snackbar/snackbarClasses.d.ts +20 -20
  104. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  105. package/SpeedDial/speedDialClasses.d.ts +22 -22
  106. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  107. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  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/stepLabelClasses.d.ts +28 -28
  115. package/Stepper/StepperContext.d.ts +18 -18
  116. package/Stepper/stepperClasses.d.ts +14 -14
  117. package/SvgIcon/svgIconClasses.d.ts +24 -24
  118. package/Switch/switchClasses.d.ts +32 -32
  119. package/Tab/tabClasses.d.ts +26 -26
  120. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  121. package/Table/tableClasses.d.ts +10 -10
  122. package/TableBody/tableBodyClasses.d.ts +8 -8
  123. package/TableCell/tableCellClasses.d.ts +32 -32
  124. package/TableContainer/tableContainerClasses.d.ts +8 -8
  125. package/TableFooter/tableFooterClasses.d.ts +8 -8
  126. package/TableHead/tableHeadClasses.d.ts +8 -8
  127. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  128. package/TableRow/tableRowClasses.d.ts +16 -16
  129. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  130. package/Tabs/Tabs.js +2 -2
  131. package/Tabs/tabsClasses.d.ts +32 -32
  132. package/TextField/textFieldClasses.d.ts +8 -8
  133. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  134. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  135. package/Toolbar/toolbarClasses.d.ts +14 -14
  136. package/Tooltip/tooltipClasses.d.ts +30 -30
  137. package/Typography/typographyClasses.d.ts +50 -50
  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/Alert/Alert.js +4 -1
  143. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  144. package/legacy/ButtonBase/TouchRipple.js +5 -5
  145. package/legacy/Checkbox/Checkbox.js +4 -4
  146. package/legacy/Fab/Fab.js +3 -1
  147. package/legacy/Grow/Grow.js +4 -3
  148. package/legacy/InputLabel/InputLabel.js +6 -0
  149. package/legacy/ListItemButton/ListItemButton.js +7 -1
  150. package/legacy/MenuList/MenuList.js +1 -1
  151. package/legacy/Paper/Paper.js +10 -7
  152. package/legacy/Radio/Radio.js +4 -4
  153. package/legacy/Select/SelectInput.js +2 -2
  154. package/legacy/Slider/Slider.js +21 -17
  155. package/legacy/Tabs/Tabs.js +2 -2
  156. package/legacy/index.js +1 -1
  157. package/legacy/styles/CssVarsProvider.js +3 -0
  158. package/legacy/styles/createMixins.js +4 -2
  159. package/legacy/styles/experimental_extendTheme.js +22 -3
  160. package/locale/index.d.ts +71 -71
  161. package/modern/Alert/Alert.js +4 -1
  162. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  163. package/modern/ButtonBase/TouchRipple.js +5 -5
  164. package/modern/Checkbox/Checkbox.js +4 -4
  165. package/modern/Fab/Fab.js +3 -1
  166. package/modern/Grow/Grow.js +4 -3
  167. package/modern/InputLabel/InputLabel.js +6 -0
  168. package/modern/ListItemButton/ListItemButton.js +7 -1
  169. package/modern/MenuList/MenuList.js +1 -1
  170. package/modern/Paper/Paper.js +8 -7
  171. package/modern/Radio/Radio.js +4 -4
  172. package/modern/Select/SelectInput.js +2 -2
  173. package/modern/Slider/Slider.js +21 -12
  174. package/modern/Tabs/Tabs.js +2 -2
  175. package/modern/index.js +1 -1
  176. package/modern/styles/CssVarsProvider.js +3 -0
  177. package/modern/styles/createMixins.js +4 -2
  178. package/modern/styles/experimental_extendTheme.js +18 -2
  179. package/node/Alert/Alert.js +4 -1
  180. package/node/BottomNavigation/BottomNavigation.js +0 -0
  181. package/node/ButtonBase/TouchRipple.js +5 -5
  182. package/node/Checkbox/Checkbox.js +4 -4
  183. package/node/Fab/Fab.js +3 -1
  184. package/node/Grow/Grow.js +4 -3
  185. package/node/InputLabel/InputLabel.js +6 -0
  186. package/node/ListItemButton/ListItemButton.js +7 -1
  187. package/node/MenuList/MenuList.js +1 -1
  188. package/node/Paper/Paper.js +22 -14
  189. package/node/Radio/Radio.js +4 -4
  190. package/node/Select/SelectInput.js +2 -2
  191. package/node/Slider/Slider.js +21 -12
  192. package/node/Tabs/Tabs.js +2 -2
  193. package/node/index.js +1 -1
  194. package/node/styles/CssVarsProvider.js +3 -0
  195. package/node/styles/createMixins.js +4 -2
  196. package/node/styles/experimental_extendTheme.js +20 -3
  197. package/package.json +4 -4
  198. package/styles/CssVarsProvider.js +3 -0
  199. package/styles/createMixins.js +4 -2
  200. package/styles/createPalette.d.ts +1 -1
  201. package/styles/experimental_extendTheme.d.ts +30 -0
  202. package/styles/experimental_extendTheme.js +19 -3
  203. package/styles/index.d.ts +1 -0
  204. package/transitions/index.d.ts +1 -1
  205. package/transitions/transition.d.ts +13 -13
  206. package/transitions/utils.d.ts +23 -23
  207. package/umd/material-ui.development.js +346 -268
  208. package/umd/material-ui.production.min.js +13 -13
  209. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  210. package/useTouchRipple/index.d.ts +1 -1
  211. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  212. package/utils/getScrollbarSize.d.ts +2 -2
  213. package/utils/ownerDocument.d.ts +2 -2
  214. package/utils/ownerWindow.d.ts +2 -2
  215. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.0
1
+ /** @license MUI v5.8.3
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.
@@ -5771,13 +5771,13 @@
5771
5771
  }, {});
5772
5772
  }
5773
5773
 
5774
- function getPath(obj, path) {
5774
+ function getPath(obj, path, checkVars = true) {
5775
5775
  if (!path || typeof path !== 'string') {
5776
5776
  return null;
5777
5777
  } // Check if CSS variables are used
5778
5778
 
5779
5779
 
5780
- if (obj && obj.vars) {
5780
+ if (obj && obj.vars && checkVars) {
5781
5781
  const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5782
5782
 
5783
5783
  if (val != null) {
@@ -5932,7 +5932,7 @@
5932
5932
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5933
5933
  var _getPath;
5934
5934
 
5935
- const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
5935
+ const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
5936
5936
 
5937
5937
  if (typeof themeSpacing === 'number') {
5938
5938
  return abs => {
@@ -7711,9 +7711,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7711
7711
  };
7712
7712
  }
7713
7713
 
7714
- const DEFAULT_MODE_STORAGE_KEY = 'mui-mode';
7715
- const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'mui-color-scheme';
7716
- const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7714
+ const DEFAULT_MODE_STORAGE_KEY = 'mode';
7715
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
7716
+ const DEFAULT_ATTRIBUTE = 'data-color-scheme';
7717
7717
  function getInitColorSchemeScript$1(options) {
7718
7718
  const {
7719
7719
  enableSystem = false,
@@ -8010,6 +8010,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8010
8010
  function createCssVarsProvider(options) {
8011
8011
  const {
8012
8012
  theme: defaultTheme = {},
8013
+ attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
8014
+ modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
8015
+ colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
8013
8016
  defaultMode: desisgnSystemMode = 'light',
8014
8017
  defaultColorScheme: designSystemColorScheme,
8015
8018
  disableTransitionOnChange: designSystemTransitionOnChange = false,
@@ -8039,9 +8042,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8039
8042
  children,
8040
8043
  theme: themeProp = defaultTheme,
8041
8044
  prefix = designSystemPrefix,
8042
- modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
8043
- colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
8044
- attribute = DEFAULT_ATTRIBUTE,
8045
+ modeStorageKey = defaultModeStorageKey,
8046
+ colorSchemeStorageKey = defaultColorSchemeStorageKey,
8047
+ attribute = defaultAttribute,
8045
8048
  defaultMode = desisgnSystemMode,
8046
8049
  defaultColorScheme = designSystemColorScheme,
8047
8050
  disableTransitionOnChange = designSystemTransitionOnChange,
@@ -8109,9 +8112,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8109
8112
  colorSchemes,
8110
8113
  prefix,
8111
8114
  vars: rootVars,
8112
- getCssVar: createGetCssVar(prefix)
8115
+ getCssVar: createGetCssVar(prefix),
8116
+ getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
8113
8117
  });
8114
- const styleSheet = {};
8118
+ const defaultColorSchemeStyleSheet = {};
8119
+ const otherColorSchemesStyleSheet = {};
8115
8120
  Object.entries(colorSchemes).forEach(([key, scheme]) => {
8116
8121
  const {
8117
8122
  css,
@@ -8147,9 +8152,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8147
8152
  })();
8148
8153
 
8149
8154
  if (key === resolvedDefaultColorScheme) {
8150
- styleSheet[colorSchemeSelector] = css;
8155
+ defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
8151
8156
  } else {
8152
- styleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8157
+ otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8153
8158
  }
8154
8159
  });
8155
8160
  React__namespace.useEffect(() => {
@@ -8216,7 +8221,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8216
8221
  [colorSchemeSelector]: rootCss
8217
8222
  }
8218
8223
  }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8219
- styles: styleSheet
8224
+ styles: defaultColorSchemeStyleSheet
8225
+ }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8226
+ styles: otherColorSchemesStyleSheet
8220
8227
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8221
8228
  theme: resolveTheme ? resolveTheme(theme) : theme,
8222
8229
  children: children
@@ -8296,10 +8303,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8296
8303
  */
8297
8304
  theme: PropTypes.object
8298
8305
  } ;
8306
+
8307
+ const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends({
8308
+ attribute: defaultAttribute,
8309
+ colorSchemeStorageKey: defaultColorSchemeStorageKey,
8310
+ modeStorageKey: defaultModeStorageKey
8311
+ }, params));
8312
+
8299
8313
  return {
8300
8314
  CssVarsProvider,
8301
8315
  useColorScheme,
8302
- getInitColorSchemeScript: getInitColorSchemeScript$1
8316
+ getInitColorSchemeScript
8303
8317
  };
8304
8318
  }
8305
8319
 
@@ -8860,7 +8874,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8860
8874
  if (reason === 'keyboard') {
8861
8875
  option.classList.add('Mui-focusVisible');
8862
8876
  } // Scroll active descendant into view.
8863
- // Logic copied from https://www.w3.org/TR/wai-aria-practices/examples/listbox/js/listbox.js
8877
+ // Logic copied from https://www.w3.org/WAI/ARIA/apg/example-index/combobox/js/select-only.js
8864
8878
  //
8865
8879
  // Consider this API instead once it has a better browser support:
8866
8880
  // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
@@ -9588,13 +9602,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9588
9602
  };
9589
9603
  }
9590
9604
 
9591
- function useBadge(props) {
9605
+ function useBadge(parameters) {
9592
9606
  const {
9593
9607
  badgeContent: badgeContentProp,
9594
9608
  invisible: invisibleProp = false,
9595
9609
  max: maxProp = 99,
9596
9610
  showZero = false
9597
- } = props;
9611
+ } = parameters;
9598
9612
  const prevProps = usePreviousProps$1({
9599
9613
  badgeContent: badgeContentProp,
9600
9614
  max: maxProp
@@ -9608,7 +9622,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9608
9622
  const {
9609
9623
  badgeContent,
9610
9624
  max = maxProp
9611
- } = invisible ? prevProps : props;
9625
+ } = invisible ? prevProps : parameters;
9612
9626
  const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9613
9627
  return {
9614
9628
  badgeContent,
@@ -9635,8 +9649,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9635
9649
  };
9636
9650
  return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
9637
9651
  };
9652
+ /**
9653
+ *
9654
+ * Demos:
9655
+ *
9656
+ * - [Badge](https://mui.com/base/react-badge/)
9657
+ *
9658
+ * API:
9659
+ *
9660
+ * - [BadgeUnstyled API](https://mui.com/base/api/badge-unstyled/)
9661
+ */
9662
+
9638
9663
 
9639
9664
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
9665
+ var _componentsProps$root, _componentsProps$badg;
9666
+
9640
9667
  const {
9641
9668
  component,
9642
9669
  children,
@@ -9666,15 +9693,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9666
9693
 
9667
9694
  const classes = useUtilityClasses$1O(ownerState);
9668
9695
  const Root = component || components.Root || 'span';
9669
- const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
9696
+ const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root, {
9697
+ ref,
9698
+ className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
9699
+ }), ownerState);
9670
9700
  const Badge = components.Badge || 'span';
9671
- const badgeProps = appendOwnerState(Badge, componentsProps.badge, ownerState);
9701
+ const badgeProps = appendOwnerState(Badge, _extends({}, componentsProps.badge, {
9702
+ className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
9703
+ }), ownerState);
9672
9704
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
9673
- ref: ref
9674
- }, other, {
9675
- className: clsx(classes.root, rootProps.className, className),
9676
9705
  children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
9677
- className: clsx(classes.badge, badgeProps.className),
9678
9706
  children: displayValue
9679
9707
  }))]
9680
9708
  }));
@@ -9684,7 +9712,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9684
9712
  = {
9685
9713
  // ----------------------------- Warning --------------------------------
9686
9714
  // | These PropTypes are generated from the TypeScript type definitions |
9687
- // | To update them edit the d.ts file and run "yarn proptypes" |
9715
+ // | To update them edit TypeScript types and run "yarn proptypes" |
9688
9716
  // ----------------------------------------------------------------------
9689
9717
 
9690
9718
  /**
@@ -13607,13 +13635,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13607
13635
  return cachedSupportsTouchActionNone;
13608
13636
  }
13609
13637
 
13610
- function useSlider(props) {
13638
+ function useSlider(parameters) {
13611
13639
  const {
13612
- ref,
13613
13640
  'aria-labelledby': ariaLabelledby,
13614
13641
  defaultValue,
13615
- disableSwap = false,
13616
13642
  disabled = false,
13643
+ disableSwap = false,
13644
+ isRtl = false,
13617
13645
  marks: marksProp = false,
13618
13646
  max = 100,
13619
13647
  min = 0,
@@ -13621,12 +13649,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13621
13649
  onChange,
13622
13650
  onChangeCommitted,
13623
13651
  orientation = 'horizontal',
13652
+ ref,
13624
13653
  scale = Identity$1,
13625
13654
  step = 1,
13626
13655
  tabIndex,
13627
- value: valueProp,
13628
- isRtl = false
13629
- } = props;
13656
+ value: valueProp
13657
+ } = parameters;
13630
13658
  const touchId = React__namespace.useRef(); // We can't use the :active browser pseudo-classes.
13631
13659
  // - The active state isn't triggered when clicking on the rail.
13632
13660
  // - The active state isn't transferred when inversing a range slider.
@@ -13909,6 +13937,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13909
13937
  newValue
13910
13938
  } = getFingerNewValue({
13911
13939
  finger,
13940
+ move: true,
13912
13941
  values
13913
13942
  });
13914
13943
  setActive(-1);
@@ -14048,7 +14077,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14048
14077
  const trackOffset = valueToPercent(range ? values[0] : min, min, max);
14049
14078
  const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
14050
14079
 
14051
- const getRootProps = otherHandlers => {
14080
+ const getRootProps = (otherHandlers = {}) => {
14052
14081
  const ownEventHandlers = {
14053
14082
  onMouseDown: createHandleMouseDown(otherHandlers || {})
14054
14083
  };
@@ -14075,7 +14104,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14075
14104
  setOpen(-1);
14076
14105
  };
14077
14106
 
14078
- const getThumbProps = otherHandlers => {
14107
+ const getThumbProps = (otherHandlers = {}) => {
14079
14108
  const ownEventHandlers = {
14080
14109
  onMouseOver: createHandleMouseOver(otherHandlers || {}),
14081
14110
  onMouseLeave: createHandleMouseLeave(otherHandlers || {})
@@ -14086,7 +14115,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14086
14115
  return _extends({}, mergedEventHandlers);
14087
14116
  };
14088
14117
 
14089
- const getHiddenInputProps = otherHandlers => {
14118
+ const getHiddenInputProps = (otherHandlers = {}) => {
14090
14119
  const ownEventHandlers = {
14091
14120
  onChange: createHandleHiddenInputChange(otherHandlers || {}),
14092
14121
  onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
@@ -14103,9 +14132,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14103
14132
  'aria-valuemin': scale(min),
14104
14133
  name,
14105
14134
  type: 'range',
14106
- min: props.min,
14107
- max: props.max,
14108
- step: props.step,
14135
+ min: parameters.min,
14136
+ max: parameters.max,
14137
+ step: parameters.step,
14109
14138
  disabled
14110
14139
  }, mergedEventHandlers, {
14111
14140
  style: _extends({}, visuallyHidden$1, {
@@ -14118,20 +14147,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14118
14147
  };
14119
14148
 
14120
14149
  return {
14150
+ active,
14121
14151
  axis,
14122
14152
  axisProps,
14123
- getRootProps,
14153
+ dragging,
14154
+ focusVisible,
14124
14155
  getHiddenInputProps,
14156
+ getRootProps,
14125
14157
  getThumbProps,
14126
- dragging,
14127
14158
  marks,
14128
- values,
14129
- active,
14130
- focusVisible,
14131
14159
  open,
14132
14160
  range,
14161
+ trackLeap,
14133
14162
  trackOffset,
14134
- trackLeap
14163
+ values
14135
14164
  };
14136
14165
  }
14137
14166
 
@@ -14201,7 +14230,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14201
14230
 
14202
14231
 
14203
14232
  const ownerState = _extends({}, props, {
14204
- mark: marksProp,
14233
+ marks: marksProp,
14205
14234
  classes: classesProp,
14206
14235
  disabled,
14207
14236
  isRtl,
@@ -14265,7 +14294,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14265
14294
  })), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
14266
14295
  className: clsx(classes.track, trackProps.className),
14267
14296
  style: _extends({}, trackStyle, trackProps.style)
14268
- })), marks.map((mark, index) => {
14297
+ })), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
14269
14298
  const percent = valueToPercent(mark.value, min, max);
14270
14299
  const style = axisProps[axis].offset(percent);
14271
14300
  let markActive;
@@ -14312,10 +14341,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14312
14341
  children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
14313
14342
  "data-index": index
14314
14343
  }, thumbProps, getThumbProps(), {
14315
- className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible)
14316
- }, !isHostComponent(Thumb) && {
14317
- ownerState: _extends({}, ownerState, thumbProps.ownerState)
14318
- }, {
14344
+ className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible),
14319
14345
  style: _extends({}, style, {
14320
14346
  pointerEvents: disableSwap && active !== index ? 'none' : undefined
14321
14347
  }, thumbProps.style),
@@ -14814,8 +14840,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14814
14840
  return _extends({
14815
14841
  toolbar: {
14816
14842
  minHeight: 56,
14817
- [`${breakpoints.up('xs')} and (orientation: landscape)`]: {
14818
- minHeight: 48
14843
+ [breakpoints.up('xs')]: {
14844
+ '@media (orientation: landscape)': {
14845
+ minHeight: 48
14846
+ }
14819
14847
  },
14820
14848
  [breakpoints.up('sm')]: {
14821
14849
  minHeight: 64
@@ -15690,15 +15718,194 @@ You have to import it from @mui/styles.
15690
15718
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15691
15719
  }
15692
15720
 
15693
- const _excluded$23 = ["colorSchemes"],
15721
+ function getPaperUtilityClass(slot) {
15722
+ return generateUtilityClass('MuiPaper', slot);
15723
+ }
15724
+ const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
15725
+ var paperClasses$1 = paperClasses;
15726
+
15727
+ const _excluded$23 = ["className", "component", "elevation", "square", "variant"];
15728
+ const getOverlayAlpha = elevation => {
15729
+ let alphaValue;
15730
+
15731
+ if (elevation < 1) {
15732
+ alphaValue = 5.11916 * elevation ** 2;
15733
+ } else {
15734
+ alphaValue = 4.5 * Math.log(elevation + 1) + 2;
15735
+ }
15736
+
15737
+ return (alphaValue / 100).toFixed(2);
15738
+ };
15739
+
15740
+ const useUtilityClasses$1L = ownerState => {
15741
+ const {
15742
+ square,
15743
+ elevation,
15744
+ variant,
15745
+ classes
15746
+ } = ownerState;
15747
+ const slots = {
15748
+ root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
15749
+ };
15750
+ return composeClasses(slots, getPaperUtilityClass, classes);
15751
+ };
15752
+
15753
+ const PaperRoot = styled$1('div', {
15754
+ name: 'MuiPaper',
15755
+ slot: 'Root',
15756
+ overridesResolver: (props, styles) => {
15757
+ const {
15758
+ ownerState
15759
+ } = props;
15760
+ return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
15761
+ }
15762
+ })(({
15763
+ theme,
15764
+ ownerState
15765
+ }) => {
15766
+ var _theme$vars$overlays;
15767
+
15768
+ return _extends({
15769
+ backgroundColor: (theme.vars || theme).palette.background.paper,
15770
+ color: (theme.vars || theme).palette.text.primary,
15771
+ transition: theme.transitions.create('box-shadow')
15772
+ }, !ownerState.square && {
15773
+ borderRadius: theme.shape.borderRadius
15774
+ }, ownerState.variant === 'outlined' && {
15775
+ border: `1px solid ${(theme.vars || theme).palette.divider}`
15776
+ }, ownerState.variant === 'elevation' && _extends({
15777
+ boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
15778
+ }, !theme.vars && theme.palette.mode === 'dark' && {
15779
+ backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
15780
+ }, theme.vars && {
15781
+ backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
15782
+ }));
15783
+ });
15784
+ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
15785
+ const props = useThemeProps({
15786
+ props: inProps,
15787
+ name: 'MuiPaper'
15788
+ });
15789
+
15790
+ const {
15791
+ className,
15792
+ component = 'div',
15793
+ elevation = 1,
15794
+ square = false,
15795
+ variant = 'elevation'
15796
+ } = props,
15797
+ other = _objectWithoutPropertiesLoose(props, _excluded$23);
15798
+
15799
+ const ownerState = _extends({}, props, {
15800
+ component,
15801
+ elevation,
15802
+ square,
15803
+ variant
15804
+ });
15805
+
15806
+ const classes = useUtilityClasses$1L(ownerState);
15807
+
15808
+ {
15809
+ // eslint-disable-next-line react-hooks/rules-of-hooks
15810
+ const theme = useTheme();
15811
+
15812
+ if (theme.shadows[elevation] === undefined) {
15813
+ console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
15814
+ }
15815
+ }
15816
+
15817
+ return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
15818
+ as: component,
15819
+ ownerState: ownerState,
15820
+ className: clsx(classes.root, className),
15821
+ ref: ref
15822
+ }, other));
15823
+ });
15824
+ Paper.propTypes
15825
+ /* remove-proptypes */
15826
+ = {
15827
+ // ----------------------------- Warning --------------------------------
15828
+ // | These PropTypes are generated from the TypeScript type definitions |
15829
+ // | To update them edit the d.ts file and run "yarn proptypes" |
15830
+ // ----------------------------------------------------------------------
15831
+
15832
+ /**
15833
+ * The content of the component.
15834
+ */
15835
+ children: PropTypes.node,
15836
+
15837
+ /**
15838
+ * Override or extend the styles applied to the component.
15839
+ */
15840
+ classes: PropTypes.object,
15841
+
15842
+ /**
15843
+ * @ignore
15844
+ */
15845
+ className: PropTypes.string,
15846
+
15847
+ /**
15848
+ * The component used for the root node.
15849
+ * Either a string to use a HTML element or a component.
15850
+ */
15851
+ component: PropTypes.elementType,
15852
+
15853
+ /**
15854
+ * Shadow depth, corresponds to `dp` in the spec.
15855
+ * It accepts values between 0 and 24 inclusive.
15856
+ * @default 1
15857
+ */
15858
+ elevation: chainPropTypes(integerPropType, props => {
15859
+ const {
15860
+ elevation,
15861
+ variant
15862
+ } = props;
15863
+
15864
+ if (elevation > 0 && variant === 'outlined') {
15865
+ return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
15866
+ }
15867
+
15868
+ return null;
15869
+ }),
15870
+
15871
+ /**
15872
+ * If `true`, rounded corners are disabled.
15873
+ * @default false
15874
+ */
15875
+ square: PropTypes.bool,
15876
+
15877
+ /**
15878
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15879
+ */
15880
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15881
+
15882
+ /**
15883
+ * The variant to use.
15884
+ * @default 'elevation'
15885
+ */
15886
+ variant: PropTypes
15887
+ /* @typescript-to-proptypes-ignore */
15888
+ .oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
15889
+ } ;
15890
+ var Paper$1 = Paper;
15891
+
15892
+ const _excluded$22 = ["colorSchemes"],
15694
15893
  _excluded2$9 = ["palette"];
15894
+ const defaultDarkOverlays = [...Array(25)].map((_, index) => {
15895
+ if (index === 0) {
15896
+ return undefined;
15897
+ }
15898
+
15899
+ const overlay = getOverlayAlpha(index);
15900
+ return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
15901
+ });
15695
15902
  function extendTheme(options = {}, ...args) {
15696
- var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
15903
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
15697
15904
 
15698
15905
  const {
15699
15906
  colorSchemes: colorSchemesInput = {}
15700
15907
  } = options,
15701
- input = _objectWithoutPropertiesLoose(options, _excluded$23);
15908
+ input = _objectWithoutPropertiesLoose(options, _excluded$22);
15702
15909
 
15703
15910
  const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
15704
15911
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
@@ -15723,14 +15930,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15723
15930
  opacity: _extends({
15724
15931
  placeholder: 0.42,
15725
15932
  inputTouchBottomLine: 0.42
15726
- }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
15933
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
15934
+ overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
15727
15935
  }),
15728
15936
  dark: _extends({}, colorSchemesInput.dark, {
15729
15937
  palette: darkPalette,
15730
15938
  opacity: _extends({
15731
15939
  placeholder: 0.5,
15732
15940
  inputTouchBottomLine: 0.7
15733
- }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
15941
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
15942
+ overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
15734
15943
  })
15735
15944
  })
15736
15945
  });
@@ -15781,6 +15990,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15781
15990
 
15782
15991
  if (colors.secondary) {
15783
15992
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15993
+ } // Action colors: action.activeChannel
15994
+
15995
+
15996
+ if (colors.active) {
15997
+ palette[color].activeChannel = colorChannel(colors.active);
15784
15998
  }
15785
15999
  });
15786
16000
  });
@@ -15795,6 +16009,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15795
16009
  getInitColorSchemeScript
15796
16010
  } = createCssVarsProvider({
15797
16011
  theme: defaultTheme$1,
16012
+ attribute: 'data-mui-color-scheme',
16013
+ modeStorageKey: 'mui-mode',
16014
+ colorSchemeStorageKey: 'mui-color-scheme',
15798
16015
  defaultColorScheme: {
15799
16016
  light: 'light',
15800
16017
  dark: 'dark'
@@ -15816,9 +16033,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15816
16033
  const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
15817
16034
  var svgIconClasses$1 = svgIconClasses;
15818
16035
 
15819
- const _excluded$22 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
16036
+ const _excluded$21 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
15820
16037
 
15821
- const useUtilityClasses$1L = ownerState => {
16038
+ const useUtilityClasses$1K = ownerState => {
15822
16039
  const {
15823
16040
  color,
15824
16041
  fontSize,
@@ -15886,7 +16103,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15886
16103
  titleAccess,
15887
16104
  viewBox = '0 0 24 24'
15888
16105
  } = props,
15889
- other = _objectWithoutPropertiesLoose(props, _excluded$22);
16106
+ other = _objectWithoutPropertiesLoose(props, _excluded$21);
15890
16107
 
15891
16108
  const ownerState = _extends({}, props, {
15892
16109
  color,
@@ -15903,7 +16120,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15903
16120
  more.viewBox = viewBox;
15904
16121
  }
15905
16122
 
15906
- const classes = useUtilityClasses$1L(ownerState);
16123
+ const classes = useUtilityClasses$1K(ownerState);
15907
16124
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
15908
16125
  as: component,
15909
16126
  className: clsx(classes.root, className),
@@ -17038,9 +17255,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17038
17255
  const collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
17039
17256
  var collapseClasses$1 = collapseClasses;
17040
17257
 
17041
- const _excluded$21 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
17258
+ const _excluded$20 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
17042
17259
 
17043
- const useUtilityClasses$1K = ownerState => {
17260
+ const useUtilityClasses$1J = ownerState => {
17044
17261
  const {
17045
17262
  orientation,
17046
17263
  classes
@@ -17141,14 +17358,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17141
17358
  // eslint-disable-next-line react/prop-types
17142
17359
  TransitionComponent = Transition$1
17143
17360
  } = props,
17144
- other = _objectWithoutPropertiesLoose(props, _excluded$21);
17361
+ other = _objectWithoutPropertiesLoose(props, _excluded$20);
17145
17362
 
17146
17363
  const ownerState = _extends({}, props, {
17147
17364
  orientation,
17148
17365
  collapsedSize: collapsedSizeProp
17149
17366
  });
17150
17367
 
17151
- const classes = useUtilityClasses$1K(ownerState);
17368
+ const classes = useUtilityClasses$1J(ownerState);
17152
17369
  const theme = useTheme();
17153
17370
  const timer = React__namespace.useRef();
17154
17371
  const wrapperRef = React__namespace.useRef(null);
@@ -17442,172 +17659,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17442
17659
  Collapse.muiSupportAuto = true;
17443
17660
  var Collapse$1 = Collapse;
17444
17661
 
17445
- function getPaperUtilityClass(slot) {
17446
- return generateUtilityClass('MuiPaper', slot);
17447
- }
17448
- const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
17449
- var paperClasses$1 = paperClasses;
17450
-
17451
- const _excluded$20 = ["className", "component", "elevation", "square", "variant"];
17452
-
17453
- const getOverlayAlpha = elevation => {
17454
- let alphaValue;
17455
-
17456
- if (elevation < 1) {
17457
- alphaValue = 5.11916 * elevation ** 2;
17458
- } else {
17459
- alphaValue = 4.5 * Math.log(elevation + 1) + 2;
17460
- }
17461
-
17462
- return (alphaValue / 100).toFixed(2);
17463
- };
17464
-
17465
- const useUtilityClasses$1J = ownerState => {
17466
- const {
17467
- square,
17468
- elevation,
17469
- variant,
17470
- classes
17471
- } = ownerState;
17472
- const slots = {
17473
- root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
17474
- };
17475
- return composeClasses(slots, getPaperUtilityClass, classes);
17476
- };
17477
-
17478
- const PaperRoot = styled$1('div', {
17479
- name: 'MuiPaper',
17480
- slot: 'Root',
17481
- overridesResolver: (props, styles) => {
17482
- const {
17483
- ownerState
17484
- } = props;
17485
- return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
17486
- }
17487
- })(({
17488
- theme,
17489
- ownerState
17490
- }) => _extends({
17491
- backgroundColor: theme.palette.background.paper,
17492
- color: theme.palette.text.primary,
17493
- transition: theme.transitions.create('box-shadow')
17494
- }, !ownerState.square && {
17495
- borderRadius: theme.shape.borderRadius
17496
- }, ownerState.variant === 'outlined' && {
17497
- border: `1px solid ${theme.palette.divider}`
17498
- }, ownerState.variant === 'elevation' && _extends({
17499
- boxShadow: theme.shadows[ownerState.elevation]
17500
- }, theme.palette.mode === 'dark' && {
17501
- backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
17502
- })));
17503
- const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
17504
- const props = useThemeProps({
17505
- props: inProps,
17506
- name: 'MuiPaper'
17507
- });
17508
-
17509
- const {
17510
- className,
17511
- component = 'div',
17512
- elevation = 1,
17513
- square = false,
17514
- variant = 'elevation'
17515
- } = props,
17516
- other = _objectWithoutPropertiesLoose(props, _excluded$20);
17517
-
17518
- const ownerState = _extends({}, props, {
17519
- component,
17520
- elevation,
17521
- square,
17522
- variant
17523
- });
17524
-
17525
- const classes = useUtilityClasses$1J(ownerState);
17526
-
17527
- {
17528
- // eslint-disable-next-line react-hooks/rules-of-hooks
17529
- const theme = useTheme();
17530
-
17531
- if (theme.shadows[elevation] === undefined) {
17532
- console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
17533
- }
17534
- }
17535
-
17536
- return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
17537
- as: component,
17538
- ownerState: ownerState,
17539
- className: clsx(classes.root, className),
17540
- ref: ref
17541
- }, other));
17542
- });
17543
- Paper.propTypes
17544
- /* remove-proptypes */
17545
- = {
17546
- // ----------------------------- Warning --------------------------------
17547
- // | These PropTypes are generated from the TypeScript type definitions |
17548
- // | To update them edit the d.ts file and run "yarn proptypes" |
17549
- // ----------------------------------------------------------------------
17550
-
17551
- /**
17552
- * The content of the component.
17553
- */
17554
- children: PropTypes.node,
17555
-
17556
- /**
17557
- * Override or extend the styles applied to the component.
17558
- */
17559
- classes: PropTypes.object,
17560
-
17561
- /**
17562
- * @ignore
17563
- */
17564
- className: PropTypes.string,
17565
-
17566
- /**
17567
- * The component used for the root node.
17568
- * Either a string to use a HTML element or a component.
17569
- */
17570
- component: PropTypes.elementType,
17571
-
17572
- /**
17573
- * Shadow depth, corresponds to `dp` in the spec.
17574
- * It accepts values between 0 and 24 inclusive.
17575
- * @default 1
17576
- */
17577
- elevation: chainPropTypes(integerPropType, props => {
17578
- const {
17579
- elevation,
17580
- variant
17581
- } = props;
17582
-
17583
- if (elevation > 0 && variant === 'outlined') {
17584
- return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
17585
- }
17586
-
17587
- return null;
17588
- }),
17589
-
17590
- /**
17591
- * If `true`, rounded corners are disabled.
17592
- * @default false
17593
- */
17594
- square: PropTypes.bool,
17595
-
17596
- /**
17597
- * The system prop that allows defining system overrides as well as additional CSS styles.
17598
- */
17599
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
17600
-
17601
- /**
17602
- * The variant to use.
17603
- * @default 'elevation'
17604
- */
17605
- variant: PropTypes
17606
- /* @typescript-to-proptypes-ignore */
17607
- .oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
17608
- } ;
17609
- var Paper$1 = Paper;
17610
-
17611
17662
  /**
17612
17663
  * @ignore - internal component.
17613
17664
  * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
@@ -18349,12 +18400,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18349
18400
 
18350
18401
  } = options;
18351
18402
 
18352
- if (event.type === 'mousedown' && ignoringMouseDown.current) {
18403
+ if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
18353
18404
  ignoringMouseDown.current = false;
18354
18405
  return;
18355
18406
  }
18356
18407
 
18357
- if (event.type === 'touchstart') {
18408
+ if ((event == null ? void 0 : event.type) === 'touchstart') {
18358
18409
  ignoringMouseDown.current = true;
18359
18410
  }
18360
18411
 
@@ -18370,7 +18421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18370
18421
  let rippleY;
18371
18422
  let rippleSize;
18372
18423
 
18373
- if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
18424
+ if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
18374
18425
  rippleX = Math.round(rect.width / 2);
18375
18426
  rippleY = Math.round(rect.height / 2);
18376
18427
  } else {
@@ -18395,7 +18446,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18395
18446
  } // Touche devices
18396
18447
 
18397
18448
 
18398
- if (event.touches) {
18449
+ if (event != null && event.touches) {
18399
18450
  // check that this isn't another touchstart due to multitouch
18400
18451
  // otherwise we will only clear a single timer when unmounting while two
18401
18452
  // are running
@@ -18438,7 +18489,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18438
18489
  clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
18439
18490
  // We still want to show ripple effect.
18440
18491
 
18441
- if (event.type === 'touchend' && startTimerCommit.current) {
18492
+ if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
18442
18493
  startTimerCommit.current();
18443
18494
  startTimerCommit.current = null;
18444
18495
  startTimer.current = setTimeout(() => {
@@ -19548,7 +19599,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19548
19599
  slot: 'Message',
19549
19600
  overridesResolver: (props, styles) => styles.message
19550
19601
  })({
19551
- padding: '8px 0'
19602
+ padding: '8px 0',
19603
+ minWidth: 0,
19604
+ overflow: 'auto'
19552
19605
  });
19553
19606
  const AlertAction = styled$1('div', {
19554
19607
  name: 'MuiAlert',
@@ -19619,6 +19672,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19619
19672
  className: classes.message,
19620
19673
  children: children
19621
19674
  }), action != null ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
19675
+ ownerState: ownerState,
19622
19676
  className: classes.action,
19623
19677
  children: action
19624
19678
  }) : null, action == null && onClose ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
@@ -26566,10 +26620,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26566
26620
  theme,
26567
26621
  ownerState
26568
26622
  }) => _extends({
26569
- color: theme.palette.text.secondary
26623
+ color: (theme.vars || theme).palette.text.secondary
26570
26624
  }, !ownerState.disableRipple && {
26571
26625
  '&:hover': {
26572
- backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26626
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26573
26627
  // Reset on touch devices, it doesn't add specificity
26574
26628
  '@media (hover: none)': {
26575
26629
  backgroundColor: 'transparent'
@@ -26577,10 +26631,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26577
26631
  }
26578
26632
  }, ownerState.color !== 'default' && {
26579
26633
  [`&.${checkboxClasses$1.checked}, &.${checkboxClasses$1.indeterminate}`]: {
26580
- color: theme.palette[ownerState.color].main
26634
+ color: (theme.vars || theme).palette[ownerState.color].main
26581
26635
  },
26582
26636
  [`&.${checkboxClasses$1.disabled}`]: {
26583
- color: theme.palette.action.disabled
26637
+ color: (theme.vars || theme).palette.action.disabled
26584
26638
  }
26585
26639
  }));
26586
26640
 
@@ -29407,7 +29461,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29407
29461
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29408
29462
  * @default 'default'
29409
29463
  */
29410
- color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
29464
+ color: PropTypes
29465
+ /* @typescript-to-proptypes-ignore */
29466
+ .oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
29411
29467
 
29412
29468
  /**
29413
29469
  * The component used for the root node.
@@ -31419,9 +31475,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31419
31475
  transform: 'none'
31420
31476
  }
31421
31477
  };
31422
- /**
31423
- * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31424
- * Remove this workaround once the WebKit bug fix is released.
31478
+ /*
31479
+ TODO v6: remove
31480
+ Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31481
+ Remove this workaround once the WebKit bug fix is released.
31425
31482
  */
31426
31483
 
31427
31484
  const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
@@ -33885,6 +33942,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33885
33942
  */
33886
33943
  shrink: PropTypes.bool,
33887
33944
 
33945
+ /**
33946
+ * The size of the component.
33947
+ * @default 'normal'
33948
+ */
33949
+ size: PropTypes.oneOf(['normal', 'small']),
33950
+
33888
33951
  /**
33889
33952
  * The system prop that allows defining system overrides as well as additional CSS styles.
33890
33953
  */
@@ -34797,7 +34860,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34797
34860
  value: childContext,
34798
34861
  children: /*#__PURE__*/jsxRuntime_1(ListItemButtonRoot, _extends({
34799
34862
  ref: handleRef,
34800
- component: component,
34863
+ href: other.href || other.to,
34864
+ component: (other.href || other.to) && component === 'div' ? 'a' : component,
34801
34865
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
34802
34866
  ownerState: ownerState
34803
34867
  }, other, {
@@ -34879,6 +34943,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34879
34943
  */
34880
34944
  focusVisibleClassName: PropTypes.string,
34881
34945
 
34946
+ /**
34947
+ * @ignore
34948
+ */
34949
+ href: PropTypes.string,
34950
+
34882
34951
  /**
34883
34952
  * Use to apply selected styling.
34884
34953
  * @default false
@@ -35845,7 +35914,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35845
35914
  return false;
35846
35915
  }
35847
35916
  /**
35848
- * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
35917
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
35849
35918
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
35850
35919
  * use it separately you need to move focus into the component manually. Once
35851
35920
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -39033,9 +39102,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39033
39102
  theme,
39034
39103
  ownerState
39035
39104
  }) => _extends({
39036
- color: theme.palette.text.secondary,
39105
+ color: (theme.vars || theme).palette.text.secondary,
39037
39106
  '&:hover': {
39038
- backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
39107
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
39039
39108
  // Reset on touch devices, it doesn't add specificity
39040
39109
  '@media (hover: none)': {
39041
39110
  backgroundColor: 'transparent'
@@ -39043,11 +39112,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39043
39112
  }
39044
39113
  }, ownerState.color !== 'default' && {
39045
39114
  [`&.${radioClasses$1.checked}`]: {
39046
- color: theme.palette[ownerState.color].main
39115
+ color: (theme.vars || theme).palette[ownerState.color].main
39047
39116
  }
39048
39117
  }, {
39049
39118
  [`&.${radioClasses$1.disabled}`]: {
39050
- color: theme.palette.action.disabled
39119
+ color: (theme.vars || theme).palette.action.disabled
39051
39120
  }
39052
39121
  }));
39053
39122
 
@@ -40439,8 +40508,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40439
40508
 
40440
40509
  const handleKeyDown = event => {
40441
40510
  if (!readOnly) {
40442
- const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by
40443
- // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
40511
+ const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
40512
+ // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
40444
40513
  'Enter'];
40445
40514
 
40446
40515
  if (validKeys.indexOf(event.key) !== -1) {
@@ -41383,11 +41452,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41383
41452
  const {
41384
41453
  ownerState
41385
41454
  } = props;
41386
- const marks = ownerState.marksProp === true && ownerState.step !== null ? [...Array(Math.floor((ownerState.max - ownerState.min) / ownerState.step) + 1)].map((_, index) => ({
41387
- value: ownerState.min + ownerState.step * index
41388
- })) : ownerState.marksProp || [];
41389
- const marked = marks.length > 0 && marks.some(mark => mark.label);
41390
- return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
41455
+ return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
41391
41456
  }
41392
41457
  })(({
41393
41458
  theme,
@@ -41645,7 +41710,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41645
41710
  transition: theme.transitions.create(['transform'], {
41646
41711
  duration: theme.transitions.duration.shortest
41647
41712
  }),
41648
- top: -10,
41649
41713
  transformOrigin: 'bottom center',
41650
41714
  transform: 'translateY(-100%) scale(0)',
41651
41715
  position: 'absolute',
@@ -41656,20 +41720,34 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41656
41720
  alignItems: 'center',
41657
41721
  justifyContent: 'center',
41658
41722
  padding: '0.25rem 0.75rem'
41659
- }, ownerState.size === 'small' && {
41660
- fontSize: theme.typography.pxToRem(12),
41661
- padding: '0.25rem 0.5rem'
41662
- }, {
41723
+ }, ownerState.orientation === 'horizontal' && {
41724
+ top: '-10px',
41663
41725
  '&:before': {
41664
41726
  position: 'absolute',
41665
41727
  content: '""',
41666
41728
  width: 8,
41667
41729
  height: 8,
41730
+ transform: 'translate(-50%, 50%) rotate(45deg)',
41731
+ backgroundColor: 'inherit',
41668
41732
  bottom: 0,
41669
- left: '50%',
41733
+ left: '50%'
41734
+ }
41735
+ }, ownerState.orientation === 'vertical' && {
41736
+ right: '30px',
41737
+ top: '25px',
41738
+ '&:before': {
41739
+ position: 'absolute',
41740
+ content: '""',
41741
+ width: 8,
41742
+ height: 8,
41670
41743
  transform: 'translate(-50%, 50%) rotate(45deg)',
41671
- backgroundColor: 'inherit'
41744
+ backgroundColor: 'inherit',
41745
+ right: '-20%',
41746
+ top: '25%'
41672
41747
  }
41748
+ }, ownerState.size === 'small' && {
41749
+ fontSize: theme.typography.pxToRem(12),
41750
+ padding: '0.25rem 0.5rem'
41673
41751
  }));
41674
41752
  SliderValueLabel.propTypes
41675
41753
  /* remove-proptypes */
@@ -49476,7 +49554,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49476
49554
  overflowX: 'hidden',
49477
49555
  width: '100%'
49478
49556
  }, ownerState.hideScrollbar && {
49479
- // Hide dimensionless scrollbar on MacOS
49557
+ // Hide dimensionless scrollbar on macOS
49480
49558
  scrollbarWidth: 'none',
49481
49559
  // Firefox
49482
49560
  '&::-webkit-scrollbar': {
@@ -49536,7 +49614,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49536
49614
  })({
49537
49615
  overflowX: 'auto',
49538
49616
  overflowY: 'hidden',
49539
- // Hide dimensionless scrollbar on MacOS
49617
+ // Hide dimensionless scrollbar on macOS
49540
49618
  scrollbarWidth: 'none',
49541
49619
  // Firefox
49542
49620
  '&::-webkit-scrollbar': {