@mui/material 5.6.1 → 5.6.4

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 (239) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/AppBar.d.ts +1 -1
  10. package/AppBar/appBarClasses.d.ts +28 -28
  11. package/Autocomplete/Autocomplete.js +2 -0
  12. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  13. package/Avatar/avatarClasses.d.ts +20 -20
  14. package/AvatarGroup/AvatarGroup.js +2 -2
  15. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  16. package/Backdrop/backdropClasses.d.ts +10 -10
  17. package/Badge/Badge.js +9 -7
  18. package/Badge/badgeClasses.d.ts +24 -24
  19. package/BottomNavigation/BottomNavigation.d.ts +1 -1
  20. package/BottomNavigation/BottomNavigation.js +1 -1
  21. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  22. package/BottomNavigationAction/BottomNavigationAction.d.ts +1 -1
  23. package/BottomNavigationAction/BottomNavigationAction.js +6 -5
  24. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  25. package/Box/Box.d.ts +9 -28
  26. package/Box/Box.js +25 -4
  27. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  28. package/Button/Button.d.ts +1 -1
  29. package/Button/buttonClasses.d.ts +76 -76
  30. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  31. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  32. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  33. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  34. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  35. package/CHANGELOG.md +185 -2
  36. package/Card/cardClasses.d.ts +8 -8
  37. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  38. package/CardActions/cardActionsClasses.d.ts +10 -10
  39. package/CardContent/cardContentClasses.d.ts +8 -8
  40. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  41. package/CardMedia/cardMediaClasses.d.ts +12 -12
  42. package/Checkbox/Checkbox.d.ts +1 -1
  43. package/Checkbox/checkboxClasses.d.ts +18 -18
  44. package/Chip/chipClasses.d.ts +80 -80
  45. package/CircularProgress/CircularProgress.js +1 -1
  46. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  47. package/ClickAwayListener/index.d.ts +2 -2
  48. package/Collapse/collapseClasses.d.ts +18 -18
  49. package/Container/containerClasses.d.ts +22 -22
  50. package/CssBaseline/CssBaseline.d.ts +1 -1
  51. package/Dialog/Dialog.d.ts +1 -0
  52. package/Dialog/Dialog.js +1 -0
  53. package/Dialog/DialogContext.d.ts +6 -6
  54. package/Dialog/dialogClasses.d.ts +36 -36
  55. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  56. package/DialogContent/dialogContentClasses.d.ts +10 -10
  57. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  58. package/DialogTitle/DialogTitle.d.ts +30 -15
  59. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  60. package/Divider/dividerClasses.d.ts +34 -34
  61. package/Drawer/drawerClasses.d.ts +30 -30
  62. package/Fab/Fab.d.ts +1 -1
  63. package/Fab/fabClasses.d.ts +26 -26
  64. package/FilledInput/FilledInput.d.ts +1 -1
  65. package/FilledInput/FilledInput.js +6 -2
  66. package/FilledInput/filledInputClasses.d.ts +40 -40
  67. package/FormControl/FormControl.d.ts +2 -2
  68. package/FormControl/formControlClasses.d.ts +14 -14
  69. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  70. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  71. package/FormGroup/formGroupClasses.d.ts +12 -12
  72. package/FormHelperText/FormHelperText.d.ts +1 -1
  73. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  74. package/FormLabel/FormLabel.d.ts +1 -1
  75. package/FormLabel/formLabelClasses.d.ts +22 -22
  76. package/GlobalStyles/GlobalStyles.d.ts +1 -1
  77. package/Grid/gridClasses.d.ts +48 -48
  78. package/Icon/Icon.d.ts +1 -1
  79. package/Icon/iconClasses.d.ts +24 -24
  80. package/IconButton/iconButtonClasses.d.ts +26 -26
  81. package/ImageList/ImageList.d.ts +1 -1
  82. package/ImageList/imageListClasses.d.ts +16 -16
  83. package/ImageListItem/ImageListItem.d.ts +1 -1
  84. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  85. package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
  86. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  87. package/Input/Input.d.ts +1 -1
  88. package/Input/Input.js +3 -1
  89. package/Input/inputClasses.d.ts +34 -34
  90. package/InputAdornment/InputAdornment.d.ts +1 -1
  91. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  92. package/InputBase/InputBase.d.ts +1 -1
  93. package/InputBase/inputBaseClasses.d.ts +44 -44
  94. package/InputLabel/InputLabel.d.ts +1 -1
  95. package/InputLabel/inputLabelClasses.d.ts +32 -32
  96. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  97. package/Link/linkClasses.d.ts +18 -18
  98. package/List/List.d.ts +1 -1
  99. package/List/listClasses.d.ts +14 -14
  100. package/ListItem/ListItem.d.ts +1 -1
  101. package/ListItem/listItemClasses.d.ts +30 -30
  102. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  103. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  104. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  105. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  106. package/ListItemText/listItemTextClasses.d.ts +18 -18
  107. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  108. package/Menu/Menu.d.ts +1 -1
  109. package/Menu/menuClasses.d.ts +12 -12
  110. package/MenuItem/menuItemClasses.d.ts +20 -20
  111. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  112. package/Modal/Modal.js +1 -0
  113. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  114. package/OutlinedInput/OutlinedInput.d.ts +1 -1
  115. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  116. package/Pagination/paginationClasses.d.ts +14 -14
  117. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  118. package/Paper/paperClasses.d.ts +39 -39
  119. package/Popover/popoverClasses.d.ts +10 -10
  120. package/Popper/Popper.d.ts +29 -29
  121. package/README.md +79 -33
  122. package/Radio/Radio.d.ts +1 -1
  123. package/Radio/radioClasses.d.ts +16 -16
  124. package/RadioGroup/RadioGroup.d.ts +1 -1
  125. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  126. package/RadioGroup/useRadioGroup.d.ts +4 -4
  127. package/Rating/ratingClasses.d.ts +40 -40
  128. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  129. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  130. package/Select/selectClasses.d.ts +30 -30
  131. package/Skeleton/skeletonClasses.d.ts +24 -24
  132. package/Snackbar/snackbarClasses.d.ts +20 -20
  133. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  134. package/SpeedDial/SpeedDial.d.ts +1 -1
  135. package/SpeedDial/speedDialClasses.d.ts +22 -22
  136. package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
  137. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  138. package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
  139. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  140. package/Step/StepContext.d.ts +20 -20
  141. package/Step/stepClasses.d.ts +16 -16
  142. package/StepButton/stepButtonClasses.d.ts +14 -14
  143. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  144. package/StepContent/StepContent.d.ts +3 -1
  145. package/StepContent/stepContentClasses.d.ts +12 -12
  146. package/StepIcon/stepIconClasses.d.ts +16 -16
  147. package/StepLabel/stepLabelClasses.d.ts +28 -28
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.d.ts +1 -1
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/Switch.d.ts +1 -1
  152. package/Switch/switchClasses.d.ts +32 -32
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/tableClasses.d.ts +10 -10
  156. package/TableBody/tableBodyClasses.d.ts +8 -8
  157. package/TableCell/tableCellClasses.d.ts +32 -32
  158. package/TableContainer/tableContainerClasses.d.ts +8 -8
  159. package/TableFooter/tableFooterClasses.d.ts +8 -8
  160. package/TableHead/tableHeadClasses.d.ts +8 -8
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/tableRowClasses.d.ts +16 -16
  163. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  164. package/Tabs/Tabs.d.ts +1 -1
  165. package/Tabs/tabsClasses.d.ts +32 -32
  166. package/TextField/TextField.d.ts +1 -1
  167. package/TextField/textFieldClasses.d.ts +8 -8
  168. package/ToggleButton/ToggleButton.d.ts +1 -1
  169. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  170. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  171. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  172. package/Toolbar/Toolbar.d.ts +1 -1
  173. package/Toolbar/toolbarClasses.d.ts +14 -14
  174. package/Tooltip/tooltipClasses.d.ts +30 -30
  175. package/Typography/typographyClasses.d.ts +50 -50
  176. package/className/index.d.ts +8 -8
  177. package/darkScrollbar/index.d.ts +28 -28
  178. package/index.js +1 -1
  179. package/internal/switchBaseClasses.d.ts +12 -12
  180. package/legacy/Accordion/Accordion.js +6 -6
  181. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  182. package/legacy/Autocomplete/Autocomplete.js +2 -0
  183. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  184. package/legacy/Badge/Badge.js +9 -7
  185. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  186. package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
  187. package/legacy/Box/Box.js +25 -4
  188. package/legacy/CircularProgress/CircularProgress.js +1 -1
  189. package/legacy/Dialog/Dialog.js +1 -0
  190. package/legacy/FilledInput/FilledInput.js +5 -3
  191. package/legacy/Input/Input.js +3 -1
  192. package/legacy/Modal/Modal.js +1 -0
  193. package/legacy/index.js +1 -1
  194. package/legacy/locale/index.js +1 -1
  195. package/locale/index.d.ts +71 -71
  196. package/locale/index.js +1 -1
  197. package/modern/Accordion/Accordion.js +6 -6
  198. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  199. package/modern/Autocomplete/Autocomplete.js +2 -0
  200. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  201. package/modern/Badge/Badge.js +9 -7
  202. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  203. package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
  204. package/modern/Box/Box.js +25 -4
  205. package/modern/CircularProgress/CircularProgress.js +1 -1
  206. package/modern/Dialog/Dialog.js +1 -0
  207. package/modern/FilledInput/FilledInput.js +4 -2
  208. package/modern/Input/Input.js +3 -1
  209. package/modern/Modal/Modal.js +1 -0
  210. package/modern/index.js +1 -1
  211. package/modern/locale/index.js +1 -1
  212. package/node/Accordion/Accordion.js +6 -6
  213. package/node/AccordionSummary/AccordionSummary.js +3 -3
  214. package/node/Autocomplete/Autocomplete.js +2 -0
  215. package/node/AvatarGroup/AvatarGroup.js +2 -2
  216. package/node/Badge/Badge.js +10 -7
  217. package/node/BottomNavigation/BottomNavigation.js +1 -1
  218. package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
  219. package/node/Box/Box.js +28 -4
  220. package/node/CircularProgress/CircularProgress.js +1 -1
  221. package/node/Dialog/Dialog.js +1 -0
  222. package/node/FilledInput/FilledInput.js +6 -2
  223. package/node/Input/Input.js +3 -1
  224. package/node/Modal/Modal.js +1 -0
  225. package/node/index.js +1 -1
  226. package/node/locale/index.js +1 -1
  227. package/package.json +4 -4
  228. package/transitions/index.d.ts +1 -1
  229. package/transitions/transition.d.ts +13 -13
  230. package/transitions/utils.d.ts +23 -23
  231. package/umd/material-ui.development.js +181 -156
  232. package/umd/material-ui.production.min.js +20 -20
  233. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  234. package/useTouchRipple/index.d.ts +1 -1
  235. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  236. package/utils/getScrollbarSize.d.ts +2 -2
  237. package/utils/ownerDocument.d.ts +2 -2
  238. package/utils/ownerWindow.d.ts +2 -2
  239. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.6.4
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.
@@ -5706,9 +5706,24 @@
5706
5706
  function getPath(obj, path) {
5707
5707
  if (!path || typeof path !== 'string') {
5708
5708
  return null;
5709
+ } // Check if CSS variables are used
5710
+
5711
+
5712
+ if (obj && obj.vars) {
5713
+ const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5714
+
5715
+ if (val != null) {
5716
+ return val;
5717
+ }
5709
5718
  }
5710
5719
 
5711
- return path.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5720
+ return path.split('.').reduce((acc, item) => {
5721
+ if (acc && acc[item] != null) {
5722
+ return acc[item];
5723
+ }
5724
+
5725
+ return null;
5726
+ }, obj);
5712
5727
  }
5713
5728
 
5714
5729
  function getValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
@@ -5847,7 +5862,9 @@
5847
5862
  const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
5848
5863
  const spacingKeys = [...marginKeys, ...paddingKeys];
5849
5864
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5850
- const themeSpacing = getPath(theme, themeKey) || defaultValue;
5865
+ var _getPath;
5866
+
5867
+ const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
5851
5868
 
5852
5869
  if (typeof themeSpacing === 'number') {
5853
5870
  return abs => {
@@ -6834,30 +6851,6 @@
6834
6851
  theme: theme
6835
6852
  }, other));
6836
6853
  });
6837
- Box.propTypes
6838
- /* remove-proptypes */
6839
- = {
6840
- // ----------------------------- Warning --------------------------------
6841
- // | These PropTypes are generated from the TypeScript type definitions |
6842
- // | To update them edit the d.ts file and run "yarn proptypes" |
6843
- // ----------------------------------------------------------------------
6844
-
6845
- /**
6846
- * @ignore
6847
- */
6848
- children: PropTypes.node,
6849
-
6850
- /**
6851
- * The component used for the root node.
6852
- * Either a string to use a HTML element or a component.
6853
- */
6854
- component: PropTypes.elementType,
6855
-
6856
- /**
6857
- * @ignore
6858
- */
6859
- sx: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func])
6860
- } ;
6861
6854
  return Box;
6862
6855
  }
6863
6856
 
@@ -6891,8 +6884,8 @@
6891
6884
  }
6892
6885
 
6893
6886
  const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6894
- _excluded2$d = ["theme"],
6895
- _excluded3$2 = ["theme"];
6887
+ _excluded2$c = ["theme"],
6888
+ _excluded3$1 = ["theme"];
6896
6889
 
6897
6890
  function isEmpty$1(obj) {
6898
6891
  return Object.keys(obj).length === 0;
@@ -7010,7 +7003,7 @@
7010
7003
  let {
7011
7004
  theme: themeInput
7012
7005
  } = _ref,
7013
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7006
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
7014
7007
 
7015
7008
  return stylesArg(_extends({
7016
7009
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7027,7 +7020,9 @@
7027
7020
  if (styleOverrides) {
7028
7021
  const resolvedStyleOverrides = {};
7029
7022
  Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
7030
- resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props) : slotStyle;
7023
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends({}, props, {
7024
+ theme
7025
+ })) : slotStyle;
7031
7026
  });
7032
7027
  return overridesResolver(props, resolvedStyleOverrides);
7033
7028
  }
@@ -7069,7 +7064,7 @@
7069
7064
  let {
7070
7065
  theme: themeInput
7071
7066
  } = _ref2,
7072
- other = _objectWithoutPropertiesLoose(_ref2, _excluded3$2);
7067
+ other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
7073
7068
 
7074
7069
  return styleArg(_extends({
7075
7070
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7468,7 +7463,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7468
7463
  });
7469
7464
  }
7470
7465
 
7471
- ThemeProvider.propTypes = {
7466
+ ThemeProvider.propTypes
7467
+ /* remove-proptypes */
7468
+ = {
7469
+ // ----------------------------- Warning --------------------------------
7470
+ // | These PropTypes are generated from the TypeScript type definitions |
7471
+ // | To update them edit the d.ts file and run "yarn proptypes" |
7472
+ // ----------------------------------------------------------------------
7473
+
7472
7474
  /**
7473
7475
  * Your component tree.
7474
7476
  */
@@ -7477,7 +7479,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7477
7479
  /**
7478
7480
  * A theme object. You can provide a function to extend the outer theme.
7479
7481
  */
7480
- theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
7482
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
7481
7483
  } ;
7482
7484
 
7483
7485
  {
@@ -7501,16 +7503,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7501
7503
  * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
7502
7504
  * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
7503
7505
  */
7504
- const assignNestedKeys = (obj, keys, value) => {
7506
+ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
7505
7507
  let temp = obj;
7506
7508
  keys.forEach((k, index) => {
7507
7509
  if (index === keys.length - 1) {
7508
- if (temp && typeof temp === 'object') {
7510
+ if (Array.isArray(temp)) {
7511
+ temp[Number(k)] = value;
7512
+ } else if (temp && typeof temp === 'object') {
7509
7513
  temp[k] = value;
7510
7514
  }
7511
7515
  } else if (temp && typeof temp === 'object') {
7512
7516
  if (!temp[k]) {
7513
- temp[k] = {};
7517
+ temp[k] = arrayKeys.includes(k) ? [] : {};
7514
7518
  }
7515
7519
 
7516
7520
  temp = temp[k];
@@ -7530,14 +7534,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7530
7534
  */
7531
7535
 
7532
7536
  const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
7533
- function recurse(object, parentKeys = []) {
7537
+ function recurse(object, parentKeys = [], arrayKeys = []) {
7534
7538
  Object.entries(object).forEach(([key, value]) => {
7535
7539
  if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
7536
7540
  if (value !== undefined && value !== null) {
7537
7541
  if (typeof value === 'object' && Object.keys(value).length > 0) {
7538
- recurse(value, [...parentKeys, key]);
7542
+ recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);
7539
7543
  } else {
7540
- callback([...parentKeys, key], value, object);
7544
+ callback([...parentKeys, key], value, arrayKeys);
7541
7545
  }
7542
7546
  }
7543
7547
  }
@@ -7604,7 +7608,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7604
7608
  const css = {};
7605
7609
  const vars = {};
7606
7610
  const parsedTheme = {};
7607
- walkObjectDeep(theme, (keys, value) => {
7611
+ walkObjectDeep(theme, (keys, value, arrayKeys) => {
7608
7612
  if (typeof value === 'string' || typeof value === 'number') {
7609
7613
  if (typeof value === 'string' && value.match(/var\(\s*--/)) {
7610
7614
  // for CSS variable, apply prefix or remove basePrefix from the variable
@@ -7622,11 +7626,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7622
7626
  Object.assign(css, {
7623
7627
  [cssVar]: getCssValue(keys, value)
7624
7628
  });
7625
- assignNestedKeys(vars, keys, `var(${cssVar})`);
7629
+ assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
7626
7630
  }
7627
7631
  }
7628
7632
 
7629
- assignNestedKeys(parsedTheme, keys, value);
7633
+ assignNestedKeys(parsedTheme, keys, value, arrayKeys);
7630
7634
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
7631
7635
  );
7632
7636
  return {
@@ -7919,15 +7923,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7919
7923
  return getCssVar;
7920
7924
  }
7921
7925
 
7922
- const _excluded$2f = ["colorSchemes"],
7923
- _excluded2$c = ["colorSchemes"],
7924
- _excluded3$1 = ["components"];
7926
+ const _excluded$2f = ["colorSchemes", "components"];
7925
7927
  const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
7926
7928
  function createCssVarsProvider(options) {
7927
- var _baseTheme$breakpoint;
7928
-
7929
7929
  const {
7930
- theme: baseTheme = {},
7930
+ theme: defaultTheme = {},
7931
7931
  defaultMode: desisgnSystemMode = 'light',
7932
7932
  defaultColorScheme: designSystemColorScheme,
7933
7933
  disableTransitionOnChange: designSystemTransitionOnChange = false,
@@ -7936,10 +7936,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7936
7936
  shouldSkipGeneratingVar,
7937
7937
  resolveTheme
7938
7938
  } = options;
7939
- const systemSpacing = createSpacing(baseTheme.spacing);
7940
- const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
7941
7939
 
7942
- if (!baseTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !baseTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
7940
+ if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
7943
7941
  console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
7944
7942
  }
7945
7943
 
@@ -7957,7 +7955,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7957
7955
 
7958
7956
  function CssVarsProvider({
7959
7957
  children,
7960
- theme: themeProp = {},
7958
+ theme: themeProp = defaultTheme,
7961
7959
  prefix = designSystemPrefix,
7962
7960
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7963
7961
  attribute = DEFAULT_ATTRIBUTE,
@@ -7966,25 +7964,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7966
7964
  disableTransitionOnChange = designSystemTransitionOnChange,
7967
7965
  enableColorScheme = designSystemEnableColorScheme
7968
7966
  }) {
7969
- const {
7970
- colorSchemes: baseColorSchemes = {}
7971
- } = baseTheme,
7972
- restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
7967
+ const hasMounted = React__namespace.useRef(false);
7973
7968
 
7974
7969
  const {
7975
- colorSchemes: colorSchemesProp = {}
7976
- } = themeProp,
7977
- restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
7978
-
7979
- const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
7980
-
7981
- let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
7982
- {
7970
+ colorSchemes = {},
7983
7971
  components = {}
7984
- } = _deepmerge,
7985
- mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
7972
+ } = themeProp,
7973
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2f);
7986
7974
 
7987
- const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
7988
7975
  const allColorSchemes = Object.keys(colorSchemes);
7989
7976
  const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
7990
7977
  const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
@@ -8018,22 +8005,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8018
8005
  return colorScheme;
8019
8006
  })();
8020
8007
 
8008
+ let theme = restThemeProp;
8021
8009
  const {
8022
8010
  css: rootCss,
8023
8011
  vars: rootVars,
8024
8012
  parsedTheme
8025
- } = cssVarsParser(mergedTheme, {
8013
+ } = cssVarsParser(theme, {
8026
8014
  prefix,
8027
8015
  basePrefix: designSystemPrefix,
8028
8016
  shouldSkipGeneratingVar
8029
8017
  });
8030
- mergedTheme = _extends({}, parsedTheme, {
8018
+ theme = _extends({}, parsedTheme, {
8031
8019
  components,
8032
8020
  colorSchemes,
8033
8021
  prefix,
8034
8022
  vars: rootVars,
8035
- spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
8036
- breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
8037
8023
  getCssVar: createGetCssVar(prefix)
8038
8024
  });
8039
8025
  const styleSheet = {};
@@ -8047,10 +8033,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8047
8033
  basePrefix: designSystemPrefix,
8048
8034
  shouldSkipGeneratingVar
8049
8035
  });
8050
- mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
8036
+ theme.vars = deepmerge(theme.vars, vars);
8051
8037
 
8052
8038
  if (key === resolvedColorScheme) {
8053
- mergedTheme = _extends({}, mergedTheme, parsedScheme);
8039
+ theme = _extends({}, theme, parsedScheme);
8040
+
8041
+ if (theme.palette) {
8042
+ // assign runtime mode & colorScheme
8043
+ theme.palette.mode = mode;
8044
+ theme.palette.colorScheme = resolvedColorScheme;
8045
+ }
8054
8046
  }
8055
8047
 
8056
8048
  const resolvedDefaultColorScheme = (() => {
@@ -8137,7 +8129,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8137
8129
  }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8138
8130
  styles: styleSheet
8139
8131
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8140
- theme: resolveTheme ? resolveTheme(mergedTheme) : mergedTheme,
8132
+ theme: resolveTheme ? resolveTheme(theme) : theme,
8141
8133
  children: children
8142
8134
  })]
8143
8135
  });
@@ -9434,14 +9426,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9434
9426
  return result;
9435
9427
  }
9436
9428
 
9437
- function getBadgeUtilityClass$1(slot) {
9429
+ function getBadgeUnstyledUtilityClass(slot) {
9438
9430
  return generateUtilityClass('BaseBadge', slot);
9439
9431
  }
9440
9432
  generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
9441
9433
 
9442
9434
  const _excluded$2d = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
9443
9435
 
9444
- const useUtilityClasses$1O = ownerState => {
9436
+ const useUtilityClasses$1P = ownerState => {
9445
9437
  const {
9446
9438
  invisible
9447
9439
  } = ownerState;
@@ -9449,7 +9441,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9449
9441
  root: ['root'],
9450
9442
  badge: ['badge', invisible && 'invisible']
9451
9443
  };
9452
- return composeClasses(slots, getBadgeUtilityClass$1, undefined);
9444
+ return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
9453
9445
  };
9454
9446
 
9455
9447
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
@@ -9480,7 +9472,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9480
9472
  showZero
9481
9473
  });
9482
9474
 
9483
- const classes = useUtilityClasses$1O(ownerState);
9475
+ const classes = useUtilityClasses$1P(ownerState);
9484
9476
  const Root = component || components.Root || 'span';
9485
9477
  const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
9486
9478
  const Badge = components.Badge || 'span';
@@ -9577,7 +9569,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9577
9569
  *
9578
9570
  * Demos:
9579
9571
  *
9580
- * - [Click Away Listener](https://mui.com/base/react-click-away-listener/)
9572
+ * - [Click away listener](https://mui.com/base/react-click-away-listener/)
9581
9573
  *
9582
9574
  * API:
9583
9575
  *
@@ -12732,7 +12724,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12732
12724
 
12733
12725
  const _excluded$2b = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
12734
12726
 
12735
- const useUtilityClasses$1N = ownerState => {
12727
+ const useUtilityClasses$1O = ownerState => {
12736
12728
  const {
12737
12729
  open,
12738
12730
  exited,
@@ -12879,7 +12871,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12879
12871
  keepMounted
12880
12872
  });
12881
12873
 
12882
- const classes = useUtilityClasses$1N(ownerState);
12874
+ const classes = useUtilityClasses$1O(ownerState);
12883
12875
 
12884
12876
  if (!keepMounted && !open && (!hasTransition || exited)) {
12885
12877
  return null;
@@ -13121,6 +13113,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13121
13113
 
13122
13114
  /**
13123
13115
  * Callback fired when the backdrop is clicked.
13116
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
13124
13117
  */
13125
13118
  onBackdropClick: PropTypes.func,
13126
13119
 
@@ -13954,7 +13947,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13954
13947
 
13955
13948
  const Identity = x => x;
13956
13949
 
13957
- const useUtilityClasses$1M = ownerState => {
13950
+ const useUtilityClasses$1N = ownerState => {
13958
13951
  const {
13959
13952
  disabled,
13960
13953
  dragging,
@@ -14070,7 +14063,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14070
14063
  const Input = components.Input || 'input';
14071
14064
  const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
14072
14065
  const hiddenInputProps = getHiddenInputProps();
14073
- const classes = useUtilityClasses$1M(ownerState);
14066
+ const classes = useUtilityClasses$1N(ownerState);
14074
14067
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
14075
14068
  onMouseDown
14076
14069
  }), {
@@ -15618,7 +15611,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15618
15611
 
15619
15612
  const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
15620
15613
 
15621
- const useUtilityClasses$1L = ownerState => {
15614
+ const useUtilityClasses$1M = ownerState => {
15622
15615
  const {
15623
15616
  color,
15624
15617
  fontSize,
@@ -15703,7 +15696,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15703
15696
  more.viewBox = viewBox;
15704
15697
  }
15705
15698
 
15706
- const classes = useUtilityClasses$1L(ownerState);
15699
+ const classes = useUtilityClasses$1M(ownerState);
15707
15700
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
15708
15701
  as: component,
15709
15702
  className: clsx(classes.root, className),
@@ -16840,7 +16833,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16840
16833
 
16841
16834
  const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
16842
16835
 
16843
- const useUtilityClasses$1K = ownerState => {
16836
+ const useUtilityClasses$1L = ownerState => {
16844
16837
  const {
16845
16838
  orientation,
16846
16839
  classes
@@ -16948,7 +16941,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16948
16941
  collapsedSize: collapsedSizeProp
16949
16942
  });
16950
16943
 
16951
- const classes = useUtilityClasses$1K(ownerState);
16944
+ const classes = useUtilityClasses$1L(ownerState);
16952
16945
  const theme = useTheme();
16953
16946
  const timer = React__namespace.useRef();
16954
16947
  const wrapperRef = React__namespace.useRef(null);
@@ -17262,7 +17255,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17262
17255
  return (alphaValue / 100).toFixed(2);
17263
17256
  };
17264
17257
 
17265
- const useUtilityClasses$1J = ownerState => {
17258
+ const useUtilityClasses$1K = ownerState => {
17266
17259
  const {
17267
17260
  square,
17268
17261
  elevation,
@@ -17322,7 +17315,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17322
17315
  variant
17323
17316
  });
17324
17317
 
17325
- const classes = useUtilityClasses$1J(ownerState);
17318
+ const classes = useUtilityClasses$1K(ownerState);
17326
17319
 
17327
17320
  {
17328
17321
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -17429,7 +17422,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17429
17422
 
17430
17423
  const _excluded$20 = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
17431
17424
 
17432
- const useUtilityClasses$1I = ownerState => {
17425
+ const useUtilityClasses$1J = ownerState => {
17433
17426
  const {
17434
17427
  classes,
17435
17428
  square,
@@ -17474,7 +17467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17474
17467
  height: 1,
17475
17468
  content: '""',
17476
17469
  opacity: 1,
17477
- backgroundColor: theme.palette.divider,
17470
+ backgroundColor: (theme.vars || theme).palette.divider,
17478
17471
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
17479
17472
  },
17480
17473
  '&:first-of-type': {
@@ -17499,7 +17492,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17499
17492
  }
17500
17493
  },
17501
17494
  [`&.${accordionClasses$1.disabled}`]: {
17502
- backgroundColor: theme.palette.action.disabledBackground
17495
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
17503
17496
  }
17504
17497
  };
17505
17498
  }, ({
@@ -17508,12 +17501,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17508
17501
  }) => _extends({}, !ownerState.square && {
17509
17502
  borderRadius: 0,
17510
17503
  '&:first-of-type': {
17511
- borderTopLeftRadius: theme.shape.borderRadius,
17512
- borderTopRightRadius: theme.shape.borderRadius
17504
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
17505
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
17513
17506
  },
17514
17507
  '&:last-of-type': {
17515
- borderBottomLeftRadius: theme.shape.borderRadius,
17516
- borderBottomRightRadius: theme.shape.borderRadius,
17508
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
17509
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
17517
17510
  // Fix a rendering issue on Edge
17518
17511
  '@supports (-ms-ime-align: auto)': {
17519
17512
  borderBottomLeftRadius: 0,
@@ -17573,7 +17566,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17573
17566
  expanded
17574
17567
  });
17575
17568
 
17576
- const classes = useUtilityClasses$1I(ownerState);
17569
+ const classes = useUtilityClasses$1J(ownerState);
17577
17570
  return /*#__PURE__*/jsxRuntime_2(AccordionRoot, _extends({
17578
17571
  className: clsx(classes.root, className),
17579
17572
  ref: ref,
@@ -17698,7 +17691,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17698
17691
 
17699
17692
  const _excluded$1$ = ["className", "disableSpacing"];
17700
17693
 
17701
- const useUtilityClasses$1H = ownerState => {
17694
+ const useUtilityClasses$1I = ownerState => {
17702
17695
  const {
17703
17696
  classes,
17704
17697
  disableSpacing
@@ -17746,7 +17739,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17746
17739
  disableSpacing
17747
17740
  });
17748
17741
 
17749
- const classes = useUtilityClasses$1H(ownerState);
17742
+ const classes = useUtilityClasses$1I(ownerState);
17750
17743
  return /*#__PURE__*/jsxRuntime_1(AccordionActionsRoot, _extends({
17751
17744
  className: clsx(classes.root, className),
17752
17745
  ref: ref,
@@ -17797,7 +17790,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17797
17790
 
17798
17791
  const _excluded$1_ = ["className"];
17799
17792
 
17800
- const useUtilityClasses$1G = ownerState => {
17793
+ const useUtilityClasses$1H = ownerState => {
17801
17794
  const {
17802
17795
  classes
17803
17796
  } = ownerState;
@@ -17828,7 +17821,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17828
17821
  other = _objectWithoutPropertiesLoose(props, _excluded$1_);
17829
17822
 
17830
17823
  const ownerState = props;
17831
- const classes = useUtilityClasses$1G(ownerState);
17824
+ const classes = useUtilityClasses$1H(ownerState);
17832
17825
  return /*#__PURE__*/jsxRuntime_1(AccordionDetailsRoot, _extends({
17833
17826
  className: clsx(classes.root, className),
17834
17827
  ref: ref,
@@ -18301,7 +18294,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18301
18294
 
18302
18295
  const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
18303
18296
 
18304
- const useUtilityClasses$1F = ownerState => {
18297
+ const useUtilityClasses$1G = ownerState => {
18305
18298
  const {
18306
18299
  disabled,
18307
18300
  focusVisible,
@@ -18603,7 +18596,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18603
18596
  focusVisible
18604
18597
  });
18605
18598
 
18606
- const classes = useUtilityClasses$1F(ownerState);
18599
+ const classes = useUtilityClasses$1G(ownerState);
18607
18600
  return /*#__PURE__*/jsxRuntime_2(ButtonBaseRoot, _extends({
18608
18601
  as: ComponentProp,
18609
18602
  className: clsx(classes.root, className),
@@ -18839,7 +18832,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18839
18832
 
18840
18833
  const _excluded$1X = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
18841
18834
 
18842
- const useUtilityClasses$1E = ownerState => {
18835
+ const useUtilityClasses$1F = ownerState => {
18843
18836
  const {
18844
18837
  classes,
18845
18838
  expanded,
@@ -18872,10 +18865,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18872
18865
  padding: theme.spacing(0, 2),
18873
18866
  transition: theme.transitions.create(['min-height', 'background-color'], transition),
18874
18867
  [`&.${accordionSummaryClasses$1.focusVisible}`]: {
18875
- backgroundColor: theme.palette.action.focus
18868
+ backgroundColor: (theme.vars || theme).palette.action.focus
18876
18869
  },
18877
18870
  [`&.${accordionSummaryClasses$1.disabled}`]: {
18878
- opacity: theme.palette.action.disabledOpacity
18871
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
18879
18872
  },
18880
18873
  [`&:hover:not(.${accordionSummaryClasses$1.disabled})`]: {
18881
18874
  cursor: 'pointer'
@@ -18913,7 +18906,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18913
18906
  theme
18914
18907
  }) => ({
18915
18908
  display: 'flex',
18916
- color: theme.palette.action.active,
18909
+ color: (theme.vars || theme).palette.action.active,
18917
18910
  transform: 'rotate(0deg)',
18918
18911
  transition: theme.transitions.create('transform', {
18919
18912
  duration: theme.transitions.duration.shortest
@@ -18960,7 +18953,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18960
18953
  disableGutters
18961
18954
  });
18962
18955
 
18963
- const classes = useUtilityClasses$1E(ownerState);
18956
+ const classes = useUtilityClasses$1F(ownerState);
18964
18957
  return /*#__PURE__*/jsxRuntime_2(AccordionSummaryRoot, _extends({
18965
18958
  focusRipple: false,
18966
18959
  disableRipple: true,
@@ -19048,7 +19041,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19048
19041
 
19049
19042
  const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
19050
19043
 
19051
- const useUtilityClasses$1D = ownerState => {
19044
+ const useUtilityClasses$1E = ownerState => {
19052
19045
  const {
19053
19046
  classes,
19054
19047
  disabled,
@@ -19155,7 +19148,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19155
19148
  size
19156
19149
  });
19157
19150
 
19158
- const classes = useUtilityClasses$1D(ownerState);
19151
+ const classes = useUtilityClasses$1E(ownerState);
19159
19152
  return /*#__PURE__*/jsxRuntime_1(IconButtonRoot, _extends({
19160
19153
  className: clsx(classes.root, className),
19161
19154
  centerRipple: true,
@@ -19278,7 +19271,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19278
19271
 
19279
19272
  const _excluded$1V = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
19280
19273
 
19281
- const useUtilityClasses$1C = ownerState => {
19274
+ const useUtilityClasses$1D = ownerState => {
19282
19275
  const {
19283
19276
  variant,
19284
19277
  color,
@@ -19402,7 +19395,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19402
19395
  variant
19403
19396
  });
19404
19397
 
19405
- const classes = useUtilityClasses$1C(ownerState);
19398
+ const classes = useUtilityClasses$1D(ownerState);
19406
19399
  return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
19407
19400
  role: role,
19408
19401
  elevation: 0,
@@ -19544,7 +19537,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19544
19537
 
19545
19538
  const _excluded$1U = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
19546
19539
 
19547
- const useUtilityClasses$1B = ownerState => {
19540
+ const useUtilityClasses$1C = ownerState => {
19548
19541
  const {
19549
19542
  align,
19550
19543
  gutterBottom,
@@ -19645,7 +19638,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19645
19638
  });
19646
19639
 
19647
19640
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
19648
- const classes = useUtilityClasses$1B(ownerState);
19641
+ const classes = useUtilityClasses$1C(ownerState);
19649
19642
  return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
19650
19643
  as: Component,
19651
19644
  ref: ref,
@@ -19755,7 +19748,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19755
19748
 
19756
19749
  const _excluded$1T = ["className"];
19757
19750
 
19758
- const useUtilityClasses$1A = ownerState => {
19751
+ const useUtilityClasses$1B = ownerState => {
19759
19752
  const {
19760
19753
  classes
19761
19754
  } = ownerState;
@@ -19789,7 +19782,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19789
19782
  other = _objectWithoutPropertiesLoose(props, _excluded$1T);
19790
19783
 
19791
19784
  const ownerState = props;
19792
- const classes = useUtilityClasses$1A(ownerState);
19785
+ const classes = useUtilityClasses$1B(ownerState);
19793
19786
  return /*#__PURE__*/jsxRuntime_1(AlertTitleRoot, _extends({
19794
19787
  gutterBottom: true,
19795
19788
  component: "div",
@@ -19836,7 +19829,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19836
19829
 
19837
19830
  const _excluded$1S = ["className", "color", "enableColorOnDark", "position"];
19838
19831
 
19839
- const useUtilityClasses$1z = ownerState => {
19832
+ const useUtilityClasses$1A = ownerState => {
19840
19833
  const {
19841
19834
  color,
19842
19835
  position,
@@ -19934,7 +19927,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19934
19927
  enableColorOnDark
19935
19928
  });
19936
19929
 
19937
- const classes = useUtilityClasses$1z(ownerState);
19930
+ const classes = useUtilityClasses$1A(ownerState);
19938
19931
  return /*#__PURE__*/jsxRuntime_1(AppBarRoot, _extends({
19939
19932
  square: true,
19940
19933
  component: "header",
@@ -20147,7 +20140,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20147
20140
 
20148
20141
  const _excluded$1R = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
20149
20142
 
20150
- const useUtilityClasses$1y = ownerState => {
20143
+ const useUtilityClasses$1z = ownerState => {
20151
20144
  const {
20152
20145
  classes,
20153
20146
  color,
@@ -20220,7 +20213,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20220
20213
  inset
20221
20214
  });
20222
20215
 
20223
- const classes = useUtilityClasses$1y(ownerState);
20216
+ const classes = useUtilityClasses$1z(ownerState);
20224
20217
  return /*#__PURE__*/jsxRuntime_1(ListSubheaderRoot, _extends({
20225
20218
  as: component,
20226
20219
  className: clsx(classes.root, className),
@@ -20300,7 +20293,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20300
20293
 
20301
20294
  const _excluded$1Q = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
20302
20295
 
20303
- const useUtilityClasses$1x = ownerState => {
20296
+ const useUtilityClasses$1y = ownerState => {
20304
20297
  const {
20305
20298
  classes,
20306
20299
  disabled,
@@ -20634,7 +20627,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20634
20627
  variant
20635
20628
  });
20636
20629
 
20637
- const classes = useUtilityClasses$1x(ownerState);
20630
+ const classes = useUtilityClasses$1y(ownerState);
20638
20631
  const moreProps = component === ButtonBase$1 ? _extends({
20639
20632
  component: ComponentProp || 'div',
20640
20633
  focusVisibleClassName: classes.focusVisible
@@ -20918,7 +20911,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20918
20911
  return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];
20919
20912
  };
20920
20913
 
20921
- const useUtilityClasses$1w = ownerState => {
20914
+ const useUtilityClasses$1x = ownerState => {
20922
20915
  const {
20923
20916
  classes,
20924
20917
  color,
@@ -21330,7 +21323,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21330
21323
  type
21331
21324
  });
21332
21325
 
21333
- const classes = useUtilityClasses$1w(ownerState);
21326
+ const classes = useUtilityClasses$1x(ownerState);
21334
21327
  const Root = components.Root || InputBaseRoot;
21335
21328
  const rootProps = componentsProps.root || {};
21336
21329
  const Input = components.Input || InputBaseComponent;
@@ -21660,7 +21653,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21660
21653
 
21661
21654
  const _excluded$1O = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
21662
21655
 
21663
- const useUtilityClasses$1v = ownerState => {
21656
+ const useUtilityClasses$1w = ownerState => {
21664
21657
  const {
21665
21658
  classes,
21666
21659
  disablePortal,
@@ -22083,7 +22076,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22083
22076
  size
22084
22077
  });
22085
22078
 
22086
- const classes = useUtilityClasses$1v(ownerState);
22079
+ const classes = useUtilityClasses$1w(ownerState);
22087
22080
  let startAdornment;
22088
22081
 
22089
22082
  if (multiple && value.length > 0) {
@@ -22446,6 +22439,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22446
22439
  * Used to determine the string value for a given option.
22447
22440
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
22448
22441
  *
22442
+ * If used in free solo mode, it must accept both the type of the options and a string.
22443
+ *
22449
22444
  * @param {T} option
22450
22445
  * @returns {string}
22451
22446
  * @default (option) => option.label ?? option
@@ -22719,7 +22714,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22719
22714
 
22720
22715
  const _excluded$1N = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
22721
22716
 
22722
- const useUtilityClasses$1u = ownerState => {
22717
+ const useUtilityClasses$1v = ownerState => {
22723
22718
  const {
22724
22719
  classes,
22725
22720
  variant,
@@ -22872,7 +22867,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22872
22867
  variant
22873
22868
  });
22874
22869
 
22875
- const classes = useUtilityClasses$1u(ownerState);
22870
+ const classes = useUtilityClasses$1v(ownerState);
22876
22871
 
22877
22872
  if (hasImgNotFailing) {
22878
22873
  children = /*#__PURE__*/jsxRuntime_1(AvatarImg, _extends({
@@ -22987,7 +22982,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22987
22982
  medium: null
22988
22983
  };
22989
22984
 
22990
- const useUtilityClasses$1t = ownerState => {
22985
+ const useUtilityClasses$1u = ownerState => {
22991
22986
  const {
22992
22987
  classes
22993
22988
  } = ownerState;
@@ -23008,7 +23003,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23008
23003
  theme
23009
23004
  }) => ({
23010
23005
  [`& .${avatarClasses$1.root}`]: {
23011
- border: `2px solid ${theme.palette.background.default}`,
23006
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
23012
23007
  boxSizing: 'content-box',
23013
23008
  marginLeft: -8,
23014
23009
  '&:last-child': {
@@ -23025,7 +23020,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23025
23020
  })(({
23026
23021
  theme
23027
23022
  }) => ({
23028
- border: `2px solid ${theme.palette.background.default}`,
23023
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
23029
23024
  boxSizing: 'content-box',
23030
23025
  marginLeft: -8,
23031
23026
  '&:last-child': {
@@ -23059,7 +23054,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23059
23054
  variant
23060
23055
  });
23061
23056
 
23062
- const classes = useUtilityClasses$1t(ownerState);
23057
+ const classes = useUtilityClasses$1u(ownerState);
23063
23058
  const children = React__namespace.Children.toArray(childrenProp).filter(child => {
23064
23059
  {
23065
23060
  if (reactIs_2(child)) {
@@ -23399,7 +23394,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23399
23394
 
23400
23395
  const _excluded$1K = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
23401
23396
 
23402
- const useUtilityClasses$1s = ownerState => {
23397
+ const useUtilityClasses$1t = ownerState => {
23403
23398
  const {
23404
23399
  classes,
23405
23400
  invisible
@@ -23462,7 +23457,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23462
23457
  invisible
23463
23458
  });
23464
23459
 
23465
- const classes = useUtilityClasses$1s(ownerState);
23460
+ const classes = useUtilityClasses$1t(ownerState);
23466
23461
  return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
23467
23462
  in: open,
23468
23463
  timeout: transitionDuration
@@ -23570,7 +23565,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23570
23565
  const RADIUS_STANDARD = 10;
23571
23566
  const RADIUS_DOT = 4;
23572
23567
 
23573
- const extendUtilityClasses$2 = ownerState => {
23568
+ const useUtilityClasses$1s = ownerState => {
23574
23569
  const {
23575
23570
  color,
23576
23571
  anchorOrigin,
@@ -23579,10 +23574,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23579
23574
  variant,
23580
23575
  classes = {}
23581
23576
  } = ownerState;
23582
- return {
23583
- root: clsx(classes.root, 'root'),
23584
- badge: clsx(classes.badge, getBadgeUtilityClass('badge'), getBadgeUtilityClass(variant), `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]], invisible && getBadgeUtilityClass('invisible'))
23577
+ const slots = {
23578
+ root: ['root'],
23579
+ badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, `overlap${capitalize(overlap)}`, color !== 'default' && `color${capitalize(color)}`]
23585
23580
  };
23581
+ return composeClasses(slots, getBadgeUtilityClass, classes);
23586
23582
  };
23587
23583
 
23588
23584
  const BadgeRoot = styled$1('span', {
@@ -23632,8 +23628,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23632
23628
  duration: theme.transitions.duration.enteringScreen
23633
23629
  })
23634
23630
  }, ownerState.color !== 'default' && {
23635
- backgroundColor: theme.palette[ownerState.color].main,
23636
- color: theme.palette[ownerState.color].contrastText
23631
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
23632
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
23637
23633
  }, ownerState.variant === 'dot' && {
23638
23634
  borderRadius: RADIUS_DOT,
23639
23635
  height: RADIUS_DOT * 2,
@@ -23763,7 +23759,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23763
23759
  variant
23764
23760
  });
23765
23761
 
23766
- const classes = extendUtilityClasses$2(ownerState);
23762
+ const classes = useUtilityClasses$1s(ownerState);
23767
23763
  let displayValue;
23768
23764
 
23769
23765
  if (variant !== 'dot') {
@@ -23947,7 +23943,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23947
23943
  display: 'flex',
23948
23944
  justifyContent: 'center',
23949
23945
  height: 56,
23950
- backgroundColor: theme.palette.background.paper
23946
+ backgroundColor: (theme.vars || theme).palette.background.paper
23951
23947
  }));
23952
23948
  const BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
23953
23949
  const props = useThemeProps({
@@ -24091,18 +24087,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24091
24087
  transition: theme.transitions.create(['color', 'padding-top'], {
24092
24088
  duration: theme.transitions.duration.short
24093
24089
  }),
24094
- padding: '6px 12px 8px',
24090
+ padding: '0px 12px',
24095
24091
  minWidth: 80,
24096
24092
  maxWidth: 168,
24097
- color: theme.palette.text.secondary,
24093
+ color: (theme.vars || theme).palette.text.secondary,
24098
24094
  flexDirection: 'column',
24099
24095
  flex: '1'
24100
24096
  }, !ownerState.showLabel && !ownerState.selected && {
24101
- paddingTop: 16
24097
+ paddingTop: 14
24098
+ }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
24099
+ paddingTop: 0
24102
24100
  }, {
24103
24101
  [`&.${bottomNavigationActionClasses$1.selected}`]: {
24104
- paddingTop: 6,
24105
- color: theme.palette.primary.main
24102
+ color: (theme.vars || theme).palette.primary.main
24106
24103
  }
24107
24104
  }));
24108
24105
  const BottomNavigationActionLabel = styled$1('span', {
@@ -24235,15 +24232,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24235
24232
  var BottomNavigationAction$1 = BottomNavigationAction;
24236
24233
 
24237
24234
  const defaultTheme = createTheme$1();
24238
- /**
24239
- * @ignore - do not document.
24240
- */
24241
-
24242
24235
  const Box = createBox({
24243
24236
  defaultTheme,
24244
24237
  defaultClassName: 'MuiBox-root',
24245
24238
  generateClassName: ClassNameGenerator$1.generate
24246
24239
  });
24240
+ Box.propTypes
24241
+ /* remove-proptypes */
24242
+ = {
24243
+ // ----------------------------- Warning --------------------------------
24244
+ // | These PropTypes are generated from the TypeScript type definitions |
24245
+ // | To update them edit the d.ts file and run "yarn proptypes" |
24246
+ // ----------------------------------------------------------------------
24247
+
24248
+ /**
24249
+ * @ignore
24250
+ */
24251
+ children: PropTypes.node,
24252
+
24253
+ /**
24254
+ * The component used for the root node.
24255
+ * Either a string to use a HTML element or a component.
24256
+ */
24257
+ component: PropTypes.elementType,
24258
+
24259
+ /**
24260
+ * The system prop that allows defining system overrides as well as additional CSS styles.
24261
+ */
24262
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
24263
+ } ;
24247
24264
  var Box$1 = Box;
24248
24265
 
24249
24266
  var MoreHorizIcon = createSvgIcon( /*#__PURE__*/jsxRuntime_1("path", {
@@ -26594,7 +26611,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26594
26611
  }, ownerState.variant === 'determinate' && {
26595
26612
  transition: theme.transitions.create('transform')
26596
26613
  }, ownerState.color !== 'inherit' && {
26597
- color: theme.palette[ownerState.color].main
26614
+ color: (theme.vars || theme).palette[ownerState.color].main
26598
26615
  }), ({
26599
26616
  ownerState
26600
26617
  }) => ownerState.variant === 'indeterminate' && css(_t3$2 || (_t3$2 = _$2`
@@ -27324,6 +27341,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27324
27341
 
27325
27342
  /**
27326
27343
  * Callback fired when the backdrop is clicked.
27344
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
27327
27345
  */
27328
27346
  onBackdropClick: PropTypes.func,
27329
27347
 
@@ -27697,6 +27715,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27697
27715
 
27698
27716
  /**
27699
27717
  * Callback fired when the backdrop is clicked.
27718
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
27700
27719
  */
27701
27720
  onBackdropClick: PropTypes.func,
27702
27721
 
@@ -29340,6 +29359,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29340
29359
  theme,
29341
29360
  ownerState
29342
29361
  }) => {
29362
+ var _theme$palette;
29363
+
29343
29364
  const light = theme.palette.mode === 'light';
29344
29365
  const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
29345
29366
  const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
@@ -29367,7 +29388,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29367
29388
  }
29368
29389
  }, !ownerState.disableUnderline && {
29369
29390
  '&:after': {
29370
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
29391
+ borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
29371
29392
  left: 0,
29372
29393
  bottom: 0,
29373
29394
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -29383,7 +29404,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29383
29404
 
29384
29405
  },
29385
29406
  [`&.${filledInputClasses$1.focused}:after`]: {
29386
- transform: 'scaleX(1)'
29407
+ // translateX(0) is a workaround for Safari transform scale bug
29408
+ // See https://github.com/mui/material-ui/issues/31766
29409
+ transform: 'scaleX(1) translateX(0)'
29387
29410
  },
29388
29411
  [`&.${filledInputClasses$1.error}:after`]: {
29389
29412
  borderBottomColor: theme.palette.error.main,
@@ -33055,7 +33078,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33055
33078
 
33056
33079
  },
33057
33080
  [`&.${inputClasses$1.focused}:after`]: {
33058
- transform: 'scaleX(1)'
33081
+ // translateX(0) is a workaround for Safari transform scale bug
33082
+ // See https://github.com/mui/material-ui/issues/31766
33083
+ transform: 'scaleX(1) translateX(0)'
33059
33084
  },
33060
33085
  [`&.${inputClasses$1.error}:after`]: {
33061
33086
  borderBottomColor: theme.palette.error.main,