@mui/material 5.8.6 → 5.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/Autocomplete/Autocomplete.d.ts +2 -0
  2. package/Autocomplete/Autocomplete.js +14 -10
  3. package/ButtonBase/TouchRipple.js +1 -1
  4. package/CHANGELOG.md +185 -0
  5. package/Modal/Modal.js +6 -6
  6. package/Popper/Popper.d.ts +1 -6
  7. package/README.md +57 -24
  8. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
  9. package/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
  10. package/Select/Select.d.ts +1 -1
  11. package/Select/Select.js +1 -1
  12. package/Slider/Slider.js +3 -2
  13. package/SnackbarContent/SnackbarContent.js +1 -1
  14. package/Tooltip/Tooltip.js +6 -5
  15. package/Unstable_Grid2/Grid2.d.ts +4 -0
  16. package/Unstable_Grid2/Grid2.js +34 -0
  17. package/Unstable_Grid2/Grid2Props.d.ts +15 -0
  18. package/Unstable_Grid2/Grid2Props.js +1 -0
  19. package/Unstable_Grid2/grid2Classes.d.ts +5 -0
  20. package/Unstable_Grid2/grid2Classes.js +14 -0
  21. package/Unstable_Grid2/index.d.ts +4 -0
  22. package/Unstable_Grid2/index.js +4 -0
  23. package/Unstable_Grid2/package.json +6 -0
  24. package/index.d.ts +3 -0
  25. package/index.js +3 -1
  26. package/legacy/Autocomplete/Autocomplete.js +14 -10
  27. package/legacy/ButtonBase/TouchRipple.js +1 -1
  28. package/legacy/Modal/Modal.js +13 -9
  29. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
  30. package/legacy/Select/Select.js +1 -1
  31. package/legacy/Slider/Slider.js +3 -2
  32. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  33. package/legacy/Tooltip/Tooltip.js +6 -5
  34. package/legacy/Unstable_Grid2/Grid2.js +38 -0
  35. package/legacy/Unstable_Grid2/Grid2Props.js +1 -0
  36. package/legacy/Unstable_Grid2/grid2Classes.js +27 -0
  37. package/legacy/Unstable_Grid2/index.js +4 -0
  38. package/legacy/index.js +3 -1
  39. package/legacy/styles/CssVarsProvider.js +10 -10
  40. package/legacy/styles/experimental_extendTheme.js +60 -44
  41. package/modern/Autocomplete/Autocomplete.js +13 -9
  42. package/modern/ButtonBase/TouchRipple.js +1 -1
  43. package/modern/Modal/Modal.js +6 -6
  44. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
  45. package/modern/Select/Select.js +1 -1
  46. package/modern/Slider/Slider.js +3 -2
  47. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  48. package/modern/Tooltip/Tooltip.js +6 -5
  49. package/modern/Unstable_Grid2/Grid2.js +34 -0
  50. package/modern/Unstable_Grid2/Grid2Props.js +1 -0
  51. package/modern/Unstable_Grid2/grid2Classes.js +14 -0
  52. package/modern/Unstable_Grid2/index.js +4 -0
  53. package/modern/index.js +3 -1
  54. package/modern/styles/CssVarsProvider.js +6 -6
  55. package/modern/styles/experimental_extendTheme.js +55 -45
  56. package/node/Autocomplete/Autocomplete.js +14 -10
  57. package/node/ButtonBase/TouchRipple.js +1 -1
  58. package/node/Modal/Modal.js +9 -9
  59. package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
  60. package/node/Select/Select.js +1 -1
  61. package/node/Slider/Slider.js +3 -2
  62. package/node/SnackbarContent/SnackbarContent.js +1 -1
  63. package/node/Tooltip/Tooltip.js +6 -5
  64. package/node/Unstable_Grid2/Grid2.js +47 -0
  65. package/node/Unstable_Grid2/Grid2Props.js +5 -0
  66. package/node/Unstable_Grid2/grid2Classes.js +25 -0
  67. package/node/Unstable_Grid2/index.js +56 -0
  68. package/node/index.js +22 -1
  69. package/node/styles/CssVarsProvider.js +11 -10
  70. package/node/styles/experimental_extendTheme.js +57 -44
  71. package/package.json +7 -7
  72. package/styles/CssVarsProvider.d.ts +9 -5
  73. package/styles/CssVarsProvider.js +10 -10
  74. package/styles/components.d.ts +5 -0
  75. package/styles/createTheme.d.ts +1 -1
  76. package/styles/experimental_extendTheme.d.ts +132 -40
  77. package/styles/experimental_extendTheme.js +55 -45
  78. package/styles/index.d.ts +11 -0
  79. package/styles/overrides.d.ts +3 -1
  80. package/styles/props.d.ts +2 -0
  81. package/themeCssVarsAugmentation/index.d.ts +6 -41
  82. package/umd/material-ui.development.js +918 -416
  83. package/umd/material-ui.production.min.js +20 -25
@@ -120,6 +120,8 @@ export interface AutocompleteProps<
120
120
  componentsProps?: {
121
121
  clearIndicator?: Partial<IconButtonProps>;
122
122
  paper?: PaperProps;
123
+ popper?: Partial<PopperProps>;
124
+ popupIndicator?: Partial<IconButtonProps>;
123
125
  };
124
126
  /**
125
127
  * If `true`, the component is disabled.
@@ -349,7 +349,7 @@ const AutocompleteGroupUl = styled('ul', {
349
349
  });
350
350
  export { createFilterOptions };
351
351
  const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
352
- var _componentsProps$clea, _componentsProps$pape;
352
+ var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
353
353
 
354
354
  const props = useThemeProps({
355
355
  props: inProps,
@@ -457,7 +457,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
457
457
 
458
458
  if (multiple && value.length > 0) {
459
459
  const getCustomizedTagProps = params => _extends({
460
- className: clsx(classes.tag),
460
+ className: classes.tag,
461
461
  disabled
462
462
  }, getTagProps(params));
463
463
 
@@ -550,21 +550,21 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
550
550
  disabled: disabled,
551
551
  "aria-label": popupOpen ? closeText : openText,
552
552
  title: popupOpen ? closeText : openText,
553
- className: clsx(classes.popupIndicator),
554
- ownerState: ownerState,
553
+ ownerState: ownerState
554
+ }, componentsProps.popupIndicator, {
555
+ className: clsx(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
555
556
  children: popupIcon
556
557
  })) : null]
557
558
  })
558
559
  }),
559
560
  inputProps: _extends({
560
- className: clsx(classes.input),
561
+ className: classes.input,
561
562
  disabled,
562
563
  readOnly
563
564
  }, getInputProps())
564
565
  })
565
- })), popupOpen && anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, {
566
+ })), popupOpen && anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, _extends({
566
567
  as: PopperComponent,
567
- className: clsx(classes.popper),
568
568
  disablePortal: disablePortal,
569
569
  style: {
570
570
  width: anchorEl ? anchorEl.clientWidth : null
@@ -572,7 +572,9 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
572
572
  ownerState: ownerState,
573
573
  role: "presentation",
574
574
  anchorEl: anchorEl,
575
- open: true,
575
+ open: true
576
+ }, componentsProps.popper, {
577
+ className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
576
578
  children: /*#__PURE__*/_jsxs(AutocompletePaper, _extends({
577
579
  ownerState: ownerState,
578
580
  as: PaperComponent
@@ -609,7 +611,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
609
611
  })
610
612
  })) : null]
611
613
  }))
612
- }) : null]
614
+ })) : null]
613
615
  });
614
616
  });
615
617
  process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
@@ -711,7 +713,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
711
713
  */
712
714
  componentsProps: PropTypes.shape({
713
715
  clearIndicator: PropTypes.object,
714
- paper: PropTypes.object
716
+ paper: PropTypes.object,
717
+ popper: PropTypes.object,
718
+ popupIndicator: PropTypes.object
715
719
  }),
716
720
 
717
721
  /**
@@ -227,7 +227,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
227
227
  const {
228
228
  clientX,
229
229
  clientY
230
- } = event.touches ? event.touches[0] : event;
230
+ } = event.touches && event.touches.length > 0 ? event.touches[0] : event;
231
231
  rippleX = Math.round(clientX - rect.left);
232
232
  rippleY = Math.round(clientY - rect.top);
233
233
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,190 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.9.1
4
+
5
+ <!-- generated comparing v5.9.0..master -->
6
+
7
+ _Jul 18, 2022_
8
+
9
+ A big thanks to the 17 contributors who made this release possible. This release is mainly about 🐛 bug fixes and 📚 documentation improvements
10
+
11
+ ### `@mui/material@5.9.1`
12
+
13
+ - &#8203;<!-- 24 -->[Autocomplete] Fix disabling component crashing when focused (#31313) @mzedel
14
+ - &#8203;<!-- 07 -->[Grid] Avoid scrollbar in demo (#33527) @oliviertassinari
15
+ - &#8203;<!-- 05 -->[Slider] Fix transition of tooltips on vertical slider (#33009) @abhinav-22-tech
16
+ - &#8203;<!-- 01 -->[TouchRipple] Fix crash on android where `event.touches` are an empty array (#32974) @lukeggchapman
17
+
18
+ ### `@mui/system@5.9.1`
19
+
20
+ - &#8203;<!-- 04 -->[system] Add flag to switch negative margin approach in Grid (#33484) @siriwatknp
21
+ - &#8203;<!-- 03 -->[system] Remove needless optional chaining check in `createEmptyBreakpointObject` method (#33482) @ZeeshanTamboli
22
+
23
+ ### `@mui/base@5.0.0-alpha.90`
24
+
25
+ - &#8203;<!-- 23 -->[base] Export types used by components' props (#33522) @michaldudak
26
+ - &#8203;<!-- 22 -->[base] Add missing type definitions in useControllableReducer (#33496) @michaldudak
27
+ - &#8203;<!-- 06 -->[SelectUnstyled] Do not call onChange unnecessarily (#33408) @michaldudak
28
+
29
+ ### `@mui/lab@5.0.0-alpha.91`
30
+
31
+ - &#8203;<!-- 02 -->[TimelineDot] Add TimelineDotPropsColorOverrides interface to extend color options (#33466) @lolaignatova
32
+
33
+ ### Docs
34
+
35
+ - &#8203;<!-- 19 -->[docs] Add note about CssBaseline in the dark mode page (#33108) @GabrielaLokelani
36
+ - &#8203;<!-- 18 -->[docs] Fix typos in the Interoperability page (#33273) @HexM7
37
+ - &#8203;<!-- 17 -->[docs] Improve the `useTheme` documentation (#33508) @rickstaa
38
+ - &#8203;<!-- 16 -->[docs] Fix 301 redirections (#33521) @oliviertassinari
39
+ - &#8203;<!-- 15 -->[docs] Link the same codesandbox as in the docs (#33472) @oliviertassinari
40
+ - &#8203;<!-- 14 -->[docs] Fix copy search false positives (#33438) @oliviertassinari
41
+ - &#8203;<!-- 13 -->[docs] Fix typo (#33520) @aravindpanicker
42
+ - &#8203;<!-- 12 -->[docs] Update Tailwind docs to include step about updating popover containers (#33315) @ajhenry
43
+ - &#8203;<!-- 11 -->[docs] Add yarn command for Roboto font in Material UI's typography.md (#33485) @anthonypz
44
+ - &#8203;<!-- 10 -->[docs] Add new community content to the Material UI Learn page (#32927) @Nikhilthadani
45
+ - &#8203;<!-- 09 -->[examples] Change createEmotionCache to use `insertionPoint` (#32104) @ANTARES-KOR
46
+ - &#8203;<!-- 08 -->[examples] Fix error in Next.js example with @mui/styles (#33456) @paustria
47
+
48
+ ### Core
49
+
50
+ - &#8203;<!-- 21 -->[core] Cleanup experiments (#33547) @siriwatknp
51
+ - &#8203;<!-- 20 -->[core] Update CHANGELOG to include pickers breaking change (#33486) @siriwatknp
52
+
53
+ All contributors of this release in alphabetical order: @abhinav-22-tech, @ajhenry, @ANTARES-KOR, @anthonypz, @aravindpanicker, @GabrielaLokelani, @HexM7, @lolaignatova, @lukeggchapman, @michaldudak, @mzedel, @Nikhilthadani, @oliviertassinari, @paustria, @rickstaa, @siriwatknp, @ZeeshanTamboli
54
+
55
+ ## 5.9.0
56
+
57
+ <!-- generated comparing v5.8.7..master -->
58
+
59
+ _Jul 12, 2022_
60
+
61
+ A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
62
+
63
+ - 🧪 Exported Grid v2 as `Unstable_Grid2` (#33479) @siriwatknp
64
+ - 📖 Added a guide for using Joy UI and Material UI together (#33396) @siriwatknp
65
+ - 🐛 Fixed a few bugs in Material UI components. Thanks to @ZeeshanTamboli, @ivan-ngchakming, and @joebingham-wk.
66
+ - ⚠️ **[BREAKING CHANGE]** Date pickers were removed from the lab. Learn how to migrate by visiting the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/). (#33386) @flaviendelangle
67
+ - many other 🐛 bug fixes and 📚 documentation improvements
68
+ - our documentation site is now running with React 18! (#33196) @mnajdova
69
+
70
+ ### `@mui/material@5.9.0`
71
+
72
+ - [CssBaseline] Fixes in overriding style (#33338) @ZeeshanTamboli
73
+ - [Autocomplete] Remove unnecessary `clsx` wrapper for single className (#33398) @ZeeshanTamboli
74
+ - [Grid] Export new grid as unstable (#33479) @siriwatknp
75
+ - [Tooltip] Fix children mouse over detection (#32321) @ivan-ngchakming
76
+ - [TypeScript] getCssVar autocomplete for Material UI (#33464) @siriwatknp
77
+ - [TypeScript] Fix theme options components types to use `Theme` (#33434) @siriwatknp
78
+ - [TypeScript] Reexports necessary types for module augmentation (#33397) @siriwatknp
79
+ - [ScopedCssBaseline] Add sx typings (#33474) @joebingham-wk
80
+
81
+ ### `@mui/system@5.9.0`
82
+
83
+ - [System] Add offset feature to Grid (#33415) @siriwatknp
84
+ - [system] Add new `Grid` implementation (#32746) @siriwatknp
85
+
86
+ ### `@mui/lab@5.0.0-alpha.90`
87
+
88
+ **⚠️ Breaking changes**
89
+
90
+ - [lab] Remove the pickers (#33386) @flaviendelangle
91
+
92
+ The pickers are moved to MUI X, check out the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
93
+
94
+ **Changes**
95
+
96
+ - [Masonry] Support rem/em values for spacing prop (#33384) @hbjORbj
97
+
98
+ ### `@mui/base@5.0.0-alpha.89`
99
+
100
+ - Base] Change the order of class names merged in useSlotProps (#33383) @michaldudak
101
+ - [ModalUnstyled] Accept callbacks in componentsProps (#33181) @michaldudak
102
+ - [SelectUnstyled] Accept callbacks in componentsProps (#33197) @michaldudak
103
+ - [TabsUnstyled] Accept callbacks in componentsProps (#33284) @michaldudak
104
+
105
+ ### `@mui/joy@5.0.0-alpha.36`
106
+
107
+ - [Joy] Add guide about using Joy and Material UI together (#33396) @siriwatknp
108
+ - [Joy] Fix variants color palette regressions (#33394) @danilo-leal
109
+
110
+ ### Docs
111
+
112
+ - [docs] Correcting small grammatical error (#33393) @robyyo
113
+ - [docs] Link to the correct package on Joy component pages (#33439) @cherniavskii
114
+ - [docs] Fix e2e tests (#33477) @siriwatknp
115
+ - [docs] Fix dead links (#33462) @oliviertassinari
116
+ - [docs] Cleanup the migration (#33463) @siriwatknp
117
+ - [docs] Fix broken Sponsoring services links @samuelsycamore
118
+ - [docs] Improve repo README with light/dark logos, relative links and more (#33356) @samuelsycamore
119
+ - [docs] Update links to MUI X Overview and Introduction pages (#33201) @samuelsycamore
120
+ - [docs] Update to React 18 (#33196) @mnajdova
121
+ - [docs] Simplify "Upload button" demo (#33326) @baharalidurrani
122
+ - [docs] Add "refine" demo to showcase (#33240) @omeraplak
123
+ - [docs] Add webpack alias for legacy utils package (#33376) @jgbae
124
+ - [docs] Improve external link icons synonyms (#33257) @davidgarciab
125
+ - [examples] Update MUI Base with Tailwind CSS to use the latest versions of the dependencies (#33401) @mnajdova
126
+ - [examples] Add MUI base example (#33154) @siriwatknp
127
+
128
+ ### Core
129
+
130
+ - [core] Fix @mui/monorepo regression for the import of the docs infra (#33390) @Janpot
131
+ - [core] Remove old babel resolve rule (#33432) @oliviertassinari
132
+ - [website] Shorten the plan descriptions on the pricing page (#32984) @joserodolfofreitas
133
+ - [website] Link EULA in the license quantity section (#33292) @oliviertassinari
134
+
135
+ All contributors of this release in alphabetical order: @baharalidurrani, @cherniavskii, @danilo-leal, @davidgarciab, @flaviendelangle, @hbjORbj, @ivan-ngchakming, @Janpot, @jgbae, @joebingham-wk, @joserodolfofreitas, @michaldudak, @mnajdova, @oliviertassinari, @omeraplak, @robyyo, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
136
+
137
+ ## 5.8.7
138
+
139
+ <!-- generated comparing v5.8.6..master -->
140
+
141
+ _Jul 4, 2022_
142
+
143
+ A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
144
+
145
+ - 🐛 Fixed an issue causing Typescript errors when building a project with Material UI v5.8.6 (@michaldudak)
146
+ - 🐛 Fixed a few bugs in Material UI components. Thanks @henriqueholtz, @jake-collibra, @MattiasMartens and @TimoWilhelm!
147
+ - many other 🐛 bug fixes and 📚 documentation improvements
148
+
149
+ ### `@mui/material@5.8.7`
150
+
151
+ - [Autocomplete] Add some missing props in `useAutocomplete` (#33269) @henriqueholtz
152
+ - [Autocomplete] Extend `componentsProps` to include `popper` and `popupIndicator` slots (#33283) @jake-collibra
153
+ - [Select] Annotate empty string as valid value prop (#33088) @MattiasMartens
154
+ - [SnackbarContent] Fix message text color with css var provider (#33285) @TimoWilhelm
155
+
156
+ ### `@mui/styled-engine@5.8.7`
157
+
158
+ - [styled-engine] Add missing type dependency on csstype (#33310) @Methuselah96
159
+
160
+ ### `@mui/system@5.8.7`
161
+
162
+ - [system] Simplify theme input types for `CssVarsProvider` (#33381) @siriwatknp
163
+ - [system] Export required types (#33324) @michaldudak
164
+
165
+ ### `@mui/joy@5.0.0-alpha.35`
166
+
167
+ - [Joy] Add radio button documentation (#33254) @siriwatknp
168
+ - [Joy] Add switch documentation (#33302) @siriwatknp
169
+ - [Joy] Batch a couple of documentation refinements (#33158)
170
+ - [Joy] Enable Joy and Material UI compatibility (#33379) @siriwatknp
171
+
172
+ ### `@mui/base@5.0.0-alpha.88`
173
+
174
+ - [base] Remove a type incompatible with Typescript 3.5 (#33361) @michaldudak
175
+ - [BadgeUnstyled] Export BadgeUnstyledOwnProps interface to fix typescript compiler error (#33314) @aaronlademann-wf
176
+ - [TablePaginationUnstyled] Accept callbacks in componentsProps (#33309) @michaldudak
177
+
178
+ ### Docs
179
+
180
+ - [docs] Fix Link typings in the react-router example (#32308) @aaarichter
181
+ - [docs] Add caveat about class components with Tooltip (#33325) @joshkel
182
+ - [docs] Fix SEO issues (#33288) @oliviertassinari
183
+ - [docs] Fix Slider's "player" demo (#33267) @xlianghang
184
+ - [website] Link MUI Toolpad in mui.com (#33287) @oliviertassinari
185
+
186
+ All contributors of this release in alphabetical order: @aaarichter, @aaronlademann-wf, @danilo-leal, @henriqueholtz, @jake-collibra, @joshkel, @MattiasMartens, @Methuselah96, @michaldudak, @oliviertassinari, @siriwatknp, @TimoWilhelm, @xlianghang
187
+
3
188
  ## 5.8.6
4
189
 
5
190
  <!-- generated comparing v5.8.5..master -->
package/Modal/Modal.js CHANGED
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["BackdropComponent", "BackdropProps", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "theme"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { isHostComponent } from '@mui/base';
7
- import { elementAcceptingRef, HTMLElementType } from '@mui/utils';
8
6
  import ModalUnstyled, { modalUnstyledClasses } from '@mui/base/ModalUnstyled';
7
+ import { isHostComponent, resolveComponentProps } from '@mui/base/utils';
8
+ import { elementAcceptingRef, HTMLElementType } from '@mui/utils';
9
9
  import styled from '../styles/styled';
10
10
  import useThemeProps from '../styles/useThemeProps';
11
11
  import Backdrop from '../Backdrop';
@@ -115,11 +115,11 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
115
115
  Backdrop: BackdropComponent
116
116
  }, components),
117
117
  componentsProps: {
118
- root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
118
+ root: () => _extends({}, resolveComponentProps(componentsProps.root, ownerState), !isHostComponent(Root) && {
119
119
  as: component,
120
120
  theme
121
121
  }),
122
- backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
122
+ backdrop: () => _extends({}, BackdropProps, resolveComponentProps(componentsProps.backdrop, ownerState))
123
123
  },
124
124
  onTransitionEnter: () => setExited(false),
125
125
  onTransitionExited: () => setExited(true),
@@ -196,8 +196,8 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
196
196
  * @default {}
197
197
  */
198
198
  componentsProps: PropTypes.shape({
199
- backdrop: PropTypes.object,
200
- root: PropTypes.object
199
+ backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
200
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
201
201
  }),
202
202
 
203
203
  /**
@@ -20,10 +20,5 @@ export declare type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
20
20
  *
21
21
  * - [Popper API](https://mui.com/material-ui/api/popper/)
22
22
  */
23
- declare const Popper: React.ForwardRefExoticComponent<Pick<Omit<PopperUnstyledProps, "direction"> & {
24
- /**
25
- * The system prop that allows defining system overrides as well as additional CSS styles.
26
- */
27
- sx?: SxProps<Theme> | undefined;
28
- }, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "placement" | "anchorEl" | "container" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const Popper: React.ForwardRefExoticComponent<Pick<PopperProps, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "container" | "placement" | "anchorEl" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement>>;
29
24
  export default Popper;
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!-- markdownlint-disable-next-line -->
2
2
  <p align="center">
3
- <a href="https://mui.com/" rel="noopener" target="_blank"><img width="150" src="https://mui.com/static/logo.svg" alt="MUI logo"></a>
3
+ <a href="https://mui.com/" rel="noopener" target="_blank"><img width="150" src="/docs/public/static/logo.svg" alt="MUI logo"></a>
4
4
  </p>
5
5
 
6
6
  <h1 align="center">MUI Core</h1>
@@ -39,11 +39,15 @@
39
39
 
40
40
  Material UI is available as an [npm package](https://www.npmjs.com/package/@mui/material).
41
41
 
42
+ **npm:**
43
+
42
44
  ```sh
43
- // with npm
44
45
  npm install @mui/material @emotion/react @emotion/styled
46
+ ```
45
47
 
46
- // with yarn
48
+ **yarn:**
49
+
50
+ ```sh
47
51
  yarn add @mui/material @emotion/react @emotion/styled
48
52
  ```
49
53
 
@@ -63,11 +67,15 @@ Use `@latest` for the latest stable release.
63
67
 
64
68
  MUI Base is available as an [npm package](https://www.npmjs.com/package/@mui/base).
65
69
 
70
+ **npm:**
71
+
66
72
  ```sh
67
- // with npm
68
73
  npm install @mui/base
74
+ ```
69
75
 
70
- // with yarn
76
+ **yarn:**
77
+
78
+ ```sh
71
79
  yarn add @mui/base
72
80
  ```
73
81
 
@@ -78,22 +86,30 @@ We are adding new components regularly and you're welcome to contribute!
78
86
 
79
87
  MUI System is available as an [npm package](https://www.npmjs.com/package/@mui/system).
80
88
 
89
+ **npm:**
90
+
81
91
  ```sh
82
- // with npm
83
92
  npm install @mui/system @emotion/react @emotion/styled
93
+ ```
84
94
 
85
- // with yarn
95
+ **yarn:**
96
+
97
+ ```sh
86
98
  yarn add @mui/system @emotion/react @emotion/styled
87
99
  ```
88
100
 
89
101
  Or if you want to use `styled-components` as a styling engine:
90
102
 
103
+ **npm:**
104
+
91
105
  ```sh
92
- // with npm
93
- npm install @mui/system @mui/styled-engine-sc styled-components
106
+ npm install @mui/material @mui/styled-engine-sc styled-components
107
+ ```
94
108
 
95
- // with yarn
96
- yarn add @mui/system @mui/styled-engine-sc styled-components
109
+ **yarn:**
110
+
111
+ ```sh
112
+ yarn add @mui/material @mui/styled-engine-sc styled-components
97
113
  ```
98
114
 
99
115
  Visit our [`styled-engine` guide](https://mui.com/material-ui/guides/styled-engine/) for more information about how to configure `styled-components` as the style engine.
@@ -147,7 +163,7 @@ In the interactive demo below, try changing the code and see how it affects the
147
163
  (Hint: change `variant` to `"outlined"` and `color` to `"secondary"`.
148
164
  For more options, see the [`Button` component page](https://mui.com/material-ui/react-button/) in our docs.)
149
165
 
150
- [![Edit Button](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/4j7m47vlm4)
166
+ [![Edit Button](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/material-ui-u9sy1h)
151
167
 
152
168
  ## Questions
153
169
 
@@ -160,8 +176,9 @@ Our documentation features [a collection of example projects using Material UI](
160
176
 
161
177
  ## Documentation
162
178
 
163
- - [Material UI](https://mui.com/material-ui/getting-started/installation/)
164
- - [MUI Base](https://mui.com/base/getting-started/installation/)
179
+ - [Material UI](https://mui.com/material-ui/getting-started/overview/)
180
+ - [Joy UI](https://mui.com/joy-ui/getting-started/overview/)
181
+ - [MUI Base](https://mui.com/base/getting-started/overview/)
165
182
  - [MUI System](https://mui.com/system/basics/)
166
183
 
167
184
  ## Premium themes
@@ -196,22 +213,38 @@ For details of supported versions and contact details for reporting security iss
196
213
 
197
214
  These great services sponsor MUI's core infrastructure:
198
215
 
199
- [<img loading="lazy" alt="GitHub" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" height="25">](https://github.com/)
216
+ <picture>
217
+ <source media="(prefers-color-scheme: dark)" srcset="/docs/public/static/readme/github-darkmode.svg">
218
+ <source media="(prefers-color-scheme: light)" srcset="/docs/public/static/readme/github-lightmode.svg">
219
+ <img alt="GitHub logo" src="/docs/public/static/readme/github-darkmode.svg">
220
+ </picture>
200
221
 
201
- GitHub lets us host the Git repository and coordinate contributions.
222
+ [GitHub](https://github.com/) lets us host the Git repository and coordinate contributions.
202
223
 
203
- [<img loading="lazy" alt="Netlify" src="https://cdn.netlify.com/15ecf59b59c9d04b88097c6b5d2c7e8a7d1302d0/1b6d6/img/press/logos/full-logo-light.svg" height="30">](https://www.netlify.com/)
224
+ <picture>
225
+ <source media="(prefers-color-scheme: dark)" srcset="/docs/public/static/readme/netlify-darkmode.svg">
226
+ <source media="(prefers-color-scheme: light)" srcset="/docs/public/static/readme/netlify-lightmode.svg">
227
+ <img alt="Netlify logo" src="/docs/public/static/readme/netlify-darkmode.svg">
228
+ </picture>
204
229
 
205
- Netlify lets us distribute the documentation.
230
+ [Netlify](https://www.netlify.com/) lets us distribute the documentation.
206
231
 
207
- [<img loading="lazy" alt="Crowdin" src="https://support.crowdin.com/assets/logos/crowdin-logo-small-black.svg" height="30">](https://crowdin.com/)
232
+ <picture>
233
+ <source media="(prefers-color-scheme: dark)" srcset="/docs/public/static/readme/crowdin-darkmode.svg">
234
+ <source media="(prefers-color-scheme: light)" srcset="/docs/public/static/readme/crowdin-lightmode.svg">
235
+ <img alt="Crowdin logo" src="/docs/public/static/readme/crowdin-darkmode.svg">
236
+ </picture>
208
237
 
209
- Crowdin lets us translate the documentation.
238
+ [Crowdin](https://crowdin.com/) lets us translate the documentation.
210
239
 
211
- [<img loading="lazy" alt="BrowserStack" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png" height="30">](https://www.browserstack.com/)
240
+ <picture>
241
+ <source media="(prefers-color-scheme: dark)" srcset="/docs/public/static/readme/browserstack-darkmode.svg">
242
+ <source media="(prefers-color-scheme: light)" srcset="/docs/public/static/readme/browserstack-lightmode.svg">
243
+ <img alt="GitHub logo" src="/docs/public/static/readme/browserstack-darkmode.svg">
244
+ </picture>
212
245
 
213
- BrowserStack lets us test in real browsers.
246
+ [BrowserStack](https://www.browserstack.com/) lets us test in real browsers.
214
247
 
215
- [<img loading="lazy" alt="CodeCov" src="https://github.com/codecov.png?size=70" width="35" height="35">](https://codecov.io/)
248
+ <img loading="lazy" alt="CodeCov logo" src="https://github.com/codecov.png?size=70" width="35" height="35">
216
249
 
217
- CodeCov lets us monitor test coverage.
250
+ [CodeCov](https://about.codecov.io/) lets us monitor test coverage.
@@ -1,4 +1,6 @@
1
+ import { SxProps } from '@mui/system';
1
2
  import * as React from 'react';
3
+ import { Theme } from '../styles';
2
4
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
3
5
  import { ScopedCssBaselineClasses } from './scopedCssBaselineClasses';
4
6
 
@@ -18,6 +20,10 @@ export interface ScopedCssBaselineTypeMap<P = {}, D extends React.ElementType =
18
20
  * For browser support, check out https://caniuse.com/?search=color-scheme
19
21
  */
20
22
  enableColorScheme?: boolean;
23
+ /**
24
+ * The system prop that allows defining system overrides as well as additional CSS styles.
25
+ */
26
+ sx?: SxProps<Theme>;
21
27
  };
22
28
  defaultComponent: D;
23
29
  }
@@ -96,6 +96,11 @@ process.env.NODE_ENV !== "production" ? ScopedCssBaseline.propTypes
96
96
  * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
97
97
  * For browser support, check out https://caniuse.com/?search=color-scheme
98
98
  */
99
- enableColorScheme: PropTypes.bool
99
+ enableColorScheme: PropTypes.bool,
100
+
101
+ /**
102
+ * The system prop that allows defining system overrides as well as additional CSS styles.
103
+ */
104
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
100
105
  } : void 0;
101
106
  export default ScopedCssBaseline;
@@ -144,7 +144,7 @@ export interface SelectProps<T = unknown>
144
144
  * If the value is an object it must have reference equality with the option in order to be selected.
145
145
  * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
146
146
  */
147
- value?: T;
147
+ value?: T | '';
148
148
  /**
149
149
  * The variant to use.
150
150
  * @default 'outlined'
package/Select/Select.js CHANGED
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes
294
294
  * If the value is an object it must have reference equality with the option in order to be selected.
295
295
  * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
296
296
  */
297
- value: PropTypes.any,
297
+ value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),
298
298
 
299
299
  /**
300
300
  * The variant to use.
package/Slider/Slider.js CHANGED
@@ -284,7 +284,6 @@ const SliderValueLabel = styled(SliderValueLabelUnstyled, {
284
284
  transition: theme.transitions.create(['transform'], {
285
285
  duration: theme.transitions.duration.shortest
286
286
  }),
287
- transformOrigin: 'bottom center',
288
287
  transform: 'translateY(-100%) scale(0)',
289
288
  position: 'absolute',
290
289
  backgroundColor: (theme.vars || theme).palette.grey[600],
@@ -296,6 +295,7 @@ const SliderValueLabel = styled(SliderValueLabelUnstyled, {
296
295
  padding: '0.25rem 0.75rem'
297
296
  }, ownerState.orientation === 'horizontal' && {
298
297
  top: '-10px',
298
+ transformOrigin: 'bottom center',
299
299
  '&:before': {
300
300
  position: 'absolute',
301
301
  content: '""',
@@ -308,7 +308,8 @@ const SliderValueLabel = styled(SliderValueLabelUnstyled, {
308
308
  }
309
309
  }, ownerState.orientation === 'vertical' && {
310
310
  right: '30px',
311
- top: '25px',
311
+ top: '24px',
312
+ transformOrigin: 'right center',
312
313
  '&:before': {
313
314
  position: 'absolute',
314
315
  content: '""',
@@ -35,7 +35,7 @@ const SnackbarContentRoot = styled(Paper, {
35
35
  const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
36
36
  const backgroundColor = emphasize(theme.palette.background.default, emphasis);
37
37
  return _extends({}, theme.typography.body2, {
38
- color: theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(backgroundColor),
38
+ color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
39
39
  backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
40
40
  display: 'flex',
41
41
  alignItems: 'center',
@@ -338,12 +338,15 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
338
338
  const handleEnter = event => {
339
339
  if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
340
340
  return;
341
+ } // Workaround for https://github.com/facebook/react/issues/7769
342
+
343
+
344
+ if (!childNode) {
345
+ setChildNode(event.currentTarget);
341
346
  } // Remove the title ahead of time.
342
347
  // We don't want to wait for the next render commit.
343
348
  // We would risk displaying two tooltips at the same time (native + this one).
344
-
345
-
346
- if (childNode) {
349
+ else {
347
350
  childNode.removeAttribute('title');
348
351
  }
349
352
 
@@ -388,8 +391,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
388
391
 
389
392
  const handleFocus = event => {
390
393
  // Workaround for https://github.com/facebook/react/issues/7769
391
- // The autoFocus of React might trigger the event before the componentDidMount.
392
- // We need to account for this eventuality.
393
394
  if (!childNode) {
394
395
  setChildNode(event.currentTarget);
395
396
  }
@@ -0,0 +1,4 @@
1
+ import { OverridableComponent } from '@mui/types';
2
+ import { Grid2TypeMap } from './Grid2Props';
3
+ declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
+ export default Grid2;