@mui/material 5.8.7 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Autocomplete/Autocomplete.js +2 -2
- package/ButtonBase/TouchRipple.js +1 -1
- package/CHANGELOG.md +200 -4
- package/Dialog/Dialog.js +2 -1
- package/FormHelperText/FormHelperText.d.ts +7 -1
- package/FormHelperText/FormHelperText.js +3 -1
- package/ImageListItem/ImageListItem.js +4 -4
- package/Modal/Modal.d.ts +2 -1
- package/Modal/Modal.js +8 -7
- package/OverridableComponent.d.ts +4 -0
- package/Popper/Popper.d.ts +1 -6
- package/Popper/Popper.js +24 -0
- package/README.md +60 -26
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/Slider/Slider.js +3 -2
- package/Stack/Stack.js +13 -1
- package/Tabs/Tabs.d.ts +7 -1
- package/Tabs/Tabs.js +3 -1
- package/Unstable_Grid2/Grid2.d.ts +4 -0
- package/Unstable_Grid2/Grid2.js +34 -0
- package/Unstable_Grid2/Grid2Props.d.ts +15 -0
- package/Unstable_Grid2/Grid2Props.js +1 -0
- package/Unstable_Grid2/grid2Classes.d.ts +5 -0
- package/Unstable_Grid2/grid2Classes.js +14 -0
- package/Unstable_Grid2/index.d.ts +4 -0
- package/Unstable_Grid2/index.js +4 -0
- package/Unstable_Grid2/package.json +6 -0
- package/index.d.ts +3 -0
- package/index.js +3 -1
- package/legacy/Autocomplete/Autocomplete.js +2 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -1
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/Modal/Modal.js +15 -10
- package/legacy/Popper/Popper.js +24 -0
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/legacy/Slider/Slider.js +3 -2
- package/legacy/Stack/Stack.js +13 -1
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Unstable_Grid2/Grid2.js +38 -0
- package/legacy/Unstable_Grid2/Grid2Props.js +1 -0
- package/legacy/Unstable_Grid2/grid2Classes.js +27 -0
- package/legacy/Unstable_Grid2/index.js +4 -0
- package/legacy/index.js +3 -1
- package/modern/Autocomplete/Autocomplete.js +2 -2
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Dialog/Dialog.js +2 -1
- package/modern/FormHelperText/FormHelperText.js +3 -1
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/Modal/Modal.js +8 -7
- package/modern/Popper/Popper.js +24 -0
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/modern/Slider/Slider.js +3 -2
- package/modern/Stack/Stack.js +13 -1
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Unstable_Grid2/Grid2.js +34 -0
- package/modern/Unstable_Grid2/Grid2Props.js +1 -0
- package/modern/Unstable_Grid2/grid2Classes.js +14 -0
- package/modern/Unstable_Grid2/index.js +4 -0
- package/modern/index.js +3 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Dialog/Dialog.js +2 -1
- package/node/FormHelperText/FormHelperText.js +3 -1
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/Modal/Modal.js +11 -10
- package/node/Popper/Popper.js +24 -0
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/node/Slider/Slider.js +3 -2
- package/node/Stack/Stack.js +13 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Unstable_Grid2/Grid2.js +47 -0
- package/node/Unstable_Grid2/Grid2Props.js +5 -0
- package/node/Unstable_Grid2/grid2Classes.js +25 -0
- package/node/Unstable_Grid2/index.js +56 -0
- package/node/index.js +22 -1
- package/package.json +7 -7
- package/styles/components.d.ts +5 -0
- package/styles/createTheme.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +84 -7
- package/styles/index.d.ts +11 -0
- package/styles/overrides.d.ts +3 -1
- package/styles/props.d.ts +2 -0
- package/themeCssVarsAugmentation/index.d.ts +4 -8
- package/umd/material-ui.development.js +885 -290
- package/umd/material-ui.production.min.js +20 -25
|
@@ -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:
|
|
460
|
+
className: classes.tag,
|
|
461
461
|
disabled
|
|
462
462
|
}, getTagProps(params));
|
|
463
463
|
|
|
@@ -558,7 +558,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
558
558
|
})
|
|
559
559
|
}),
|
|
560
560
|
inputProps: _extends({
|
|
561
|
-
className:
|
|
561
|
+
className: classes.input,
|
|
562
562
|
disabled,
|
|
563
563
|
readOnly
|
|
564
564
|
}, getInputProps())
|
|
@@ -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,201 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.9.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.9.1..master -->
|
|
6
|
+
|
|
7
|
+
_Jul 25, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🧪 Ensure all Base components are `OverridableComponent` (#33506) @michaldudak
|
|
12
|
+
- 🧪 Various improvements on the Material `Stack` component (#33548, #33588, #33549) @hbjORbj
|
|
13
|
+
- Many other 🐛 bug fixes and 📚 documentation improvements
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.9.2`
|
|
16
|
+
|
|
17
|
+
- ​<!-- 34 -->Revert "[Tooltip] Fix children mouse over detection (#32321)" @oliviertassinari
|
|
18
|
+
- ​<!-- 19 -->[FormHelperText] Fix unable to create new variants (#33589) @DinhBaoTran
|
|
19
|
+
- ​<!-- 18 -->[ImageList] Remove vertical spacing between items in masonry layout (#33593) @michaldudak
|
|
20
|
+
- ​<!-- 13 -->[LoadingButton] Refactor duplicate code (#33570) @ZeeshanTamboli
|
|
21
|
+
- ​<!-- 12 -->[Modal] Explain the meaning of deprecation of the BackdropComponent prop (#33591) @michaldudak
|
|
22
|
+
- ​<!-- 11 -->[Stack] Fix unit test failure (#33588) @hbjORbj
|
|
23
|
+
- ​<!-- 10 -->[Stack] Fix default `flexDirection` value with responsive prop (#33549) @hbjORbj
|
|
24
|
+
- ​<!-- 09 -->[Stack] Ensure that `marginundefined` doesn't occur in styling (#33548) @hbjORbj
|
|
25
|
+
- ​<!-- 08 -->[Tabs] Fix `indicatorColor` prop type (#33569) @ZeeshanTamboli
|
|
26
|
+
- ​<!-- 07 -->[Tabs] Add TypeScript interface to augment tab indicator color in theme (#33333) @AHeiming
|
|
27
|
+
|
|
28
|
+
### `@mui/base@5.0.0-alpha.91`
|
|
29
|
+
|
|
30
|
+
- ​<!-- 33 -->[Base] Make PopperUnstyled `component` overridable (#33573) @siriwatknp
|
|
31
|
+
- ​<!-- 32 -->[Base] Ensure all components are OverridableComponent (#33506) @michaldudak
|
|
32
|
+
|
|
33
|
+
### `@mui/joy@5.0.0-alpha.38`
|
|
34
|
+
|
|
35
|
+
- ​<!-- 17 -->[Select] Add new component in Joy (#33630) @siriwatknp
|
|
36
|
+
- ​<!-- 15 -->[Joy] Add Text field documentation (#33430, #33631) @danilo-leal
|
|
37
|
+
- ​<!-- 14 -->[Joy] Add menu components (#31789) @siriwatknp
|
|
38
|
+
|
|
39
|
+
### Docs
|
|
40
|
+
|
|
41
|
+
- ​<!-- 31 -->[blog] Fix 404 link to Algolia docs search (dd4308d) @oliviertassinari
|
|
42
|
+
- ​<!-- 28 -->[docs] Add accessibility tips (#33633) @siriwatknp
|
|
43
|
+
- ​<!-- 27 -->[docs] Fix production deploy of codesandboxes (#33608) @oliviertassinari
|
|
44
|
+
- ​<!-- 26 -->[docs] Show border on `palette.background.paper` in dark mode docs (#33611) @ZeeshanTamboli
|
|
45
|
+
- ​<!-- 25 -->[docs] Fix typo in Joy UI dark mode page (#33620) @bairamau
|
|
46
|
+
- ​<!-- 24 -->[docs] Final polish on Base docs - formatting and style consistency (#33156) @samuelsycamore
|
|
47
|
+
- ​<!-- 23 -->[docs] Fix `CssBaseline` import in example code (#33614) @dd-ssc
|
|
48
|
+
- ​<!-- 22 -->[docs] Fix Toolpad docs redirection (#33524) @bharatkashyap
|
|
49
|
+
- ​<!-- 21 -->[docs] Fix link to Snackbar customization section in Alert docs (#33586) @ZeeshanTamboli
|
|
50
|
+
- ​<!-- 20 -->[docs] Fix `placement choices` typo in Tooltip docs (#33571) @MonstraG
|
|
51
|
+
- ​<!-- 05 -->[website] Update home page's sponsor grid (#33528) @danilo-leal
|
|
52
|
+
- ​<!-- 04 -->[website] Add Vytautas to the about page (#33567) @bytasv
|
|
53
|
+
- ​<!-- 03 -->[website] Improve newsletter input design (#33585) @danilo-leal
|
|
54
|
+
- ​<!-- 02 -->[website] Add YouTube link to footer (#33580) @gerdadesign
|
|
55
|
+
- ​<!-- 01 -->[website] Clarify scope of technical support (#33435) @joserodolfofreitas
|
|
56
|
+
|
|
57
|
+
### Core
|
|
58
|
+
|
|
59
|
+
- ​<!-- 30 -->[core] Swallow ad blocker fetch fail (#33617) @oliviertassinari
|
|
60
|
+
- ​<!-- 29 -->[core] Fix dep security by resolving `thenify` to latest (#33612) @siriwatknp
|
|
61
|
+
- ​<!-- 06 -->[test] Remove `view` option from Event in Snackbar tests (#33555) @ZeeshanTamboli
|
|
62
|
+
|
|
63
|
+
All contributors of this release in alphabetical order: @AHeiming, @bairamau, @bharatkashyap, @bytasv, @danilo-leal, @dd-ssc, @DinhBaoTran, @gerdadesign, @hbjORbj, @joserodolfofreitas, @michaldudak, @MonstraG, @oliviertassinari, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
64
|
+
|
|
65
|
+
## 5.9.1
|
|
66
|
+
|
|
67
|
+
<!-- generated comparing v5.9.0..master -->
|
|
68
|
+
|
|
69
|
+
_Jul 18, 2022_
|
|
70
|
+
|
|
71
|
+
A big thanks to the 17 contributors who made this release possible. This release is mainly about 🐛 bug fixes and 📚 documentation improvements
|
|
72
|
+
|
|
73
|
+
### `@mui/material@5.9.1`
|
|
74
|
+
|
|
75
|
+
- ​<!-- 24 -->[Autocomplete] Fix disabling component crashing when focused (#31313) @mzedel
|
|
76
|
+
- ​<!-- 07 -->[Grid] Avoid scrollbar in demo (#33527) @oliviertassinari
|
|
77
|
+
- ​<!-- 05 -->[Slider] Fix transition of tooltips on vertical slider (#33009) @abhinav-22-tech
|
|
78
|
+
- ​<!-- 01 -->[TouchRipple] Fix crash on android where `event.touches` are an empty array (#32974) @lukeggchapman
|
|
79
|
+
|
|
80
|
+
### `@mui/system@5.9.1`
|
|
81
|
+
|
|
82
|
+
- ​<!-- 04 -->[system] Add flag to switch negative margin approach in Grid (#33484) @siriwatknp
|
|
83
|
+
- ​<!-- 03 -->[system] Remove needless optional chaining check in `createEmptyBreakpointObject` method (#33482) @ZeeshanTamboli
|
|
84
|
+
|
|
85
|
+
### `@mui/base@5.0.0-alpha.90`
|
|
86
|
+
|
|
87
|
+
- ​<!-- 23 -->[base] Export types used by components' props (#33522) @michaldudak
|
|
88
|
+
- ​<!-- 22 -->[base] Add missing type definitions in useControllableReducer (#33496) @michaldudak
|
|
89
|
+
- ​<!-- 06 -->[SelectUnstyled] Do not call onChange unnecessarily (#33408) @michaldudak
|
|
90
|
+
|
|
91
|
+
### `@mui/lab@5.0.0-alpha.91`
|
|
92
|
+
|
|
93
|
+
- ​<!-- 02 -->[TimelineDot] Add TimelineDotPropsColorOverrides interface to extend color options (#33466) @lolaignatova
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- ​<!-- 19 -->[docs] Add note about CssBaseline in the dark mode page (#33108) @GabrielaLokelani
|
|
98
|
+
- ​<!-- 18 -->[docs] Fix typos in the Interoperability page (#33273) @HexM7
|
|
99
|
+
- ​<!-- 17 -->[docs] Improve the `useTheme` documentation (#33508) @rickstaa
|
|
100
|
+
- ​<!-- 16 -->[docs] Fix 301 redirections (#33521) @oliviertassinari
|
|
101
|
+
- ​<!-- 15 -->[docs] Link the same codesandbox as in the docs (#33472) @oliviertassinari
|
|
102
|
+
- ​<!-- 14 -->[docs] Fix copy search false positives (#33438) @oliviertassinari
|
|
103
|
+
- ​<!-- 13 -->[docs] Fix typo (#33520) @aravindpanicker
|
|
104
|
+
- ​<!-- 12 -->[docs] Update Tailwind docs to include step about updating popover containers (#33315) @ajhenry
|
|
105
|
+
- ​<!-- 11 -->[docs] Add yarn command for Roboto font in Material UI's typography.md (#33485) @anthonypz
|
|
106
|
+
- ​<!-- 10 -->[docs] Add new community content to the Material UI Learn page (#32927) @Nikhilthadani
|
|
107
|
+
- ​<!-- 09 -->[examples] Change createEmotionCache to use `insertionPoint` (#32104) @ANTARES-KOR
|
|
108
|
+
- ​<!-- 08 -->[examples] Fix error in Next.js example with @mui/styles (#33456) @paustria
|
|
109
|
+
|
|
110
|
+
### Core
|
|
111
|
+
|
|
112
|
+
- ​<!-- 21 -->[core] Cleanup experiments (#33547) @siriwatknp
|
|
113
|
+
- ​<!-- 20 -->[core] Update CHANGELOG to include pickers breaking change (#33486) @siriwatknp
|
|
114
|
+
|
|
115
|
+
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
|
|
116
|
+
|
|
117
|
+
## 5.9.0
|
|
118
|
+
|
|
119
|
+
<!-- generated comparing v5.8.7..master -->
|
|
120
|
+
|
|
121
|
+
_Jul 12, 2022_
|
|
122
|
+
|
|
123
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
124
|
+
|
|
125
|
+
- 🧪 Exported Grid v2 as `Unstable_Grid2` (#33479) @siriwatknp
|
|
126
|
+
- 📖 Added a guide for using Joy UI and Material UI together (#33396) @siriwatknp
|
|
127
|
+
- 🐛 Fixed a few bugs in Material UI components. Thanks to @ZeeshanTamboli, @ivan-ngchakming, and @joebingham-wk.
|
|
128
|
+
- ⚠️ **[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
|
|
129
|
+
- many other 🐛 bug fixes and 📚 documentation improvements
|
|
130
|
+
- our documentation site is now running with React 18! (#33196) @mnajdova
|
|
131
|
+
|
|
132
|
+
### `@mui/material@5.9.0`
|
|
133
|
+
|
|
134
|
+
- [CssBaseline] Fixes in overriding style (#33338) @ZeeshanTamboli
|
|
135
|
+
- [Autocomplete] Remove unnecessary `clsx` wrapper for single className (#33398) @ZeeshanTamboli
|
|
136
|
+
- [Grid] Export new grid as unstable (#33479) @siriwatknp
|
|
137
|
+
- [Tooltip] Fix children mouse over detection (#32321) @ivan-ngchakming
|
|
138
|
+
- [TypeScript] getCssVar autocomplete for Material UI (#33464) @siriwatknp
|
|
139
|
+
- [TypeScript] Fix theme options components types to use `Theme` (#33434) @siriwatknp
|
|
140
|
+
- [TypeScript] Reexports necessary types for module augmentation (#33397) @siriwatknp
|
|
141
|
+
- [ScopedCssBaseline] Add sx typings (#33474) @joebingham-wk
|
|
142
|
+
|
|
143
|
+
### `@mui/system@5.9.0`
|
|
144
|
+
|
|
145
|
+
- [System] Add offset feature to Grid (#33415) @siriwatknp
|
|
146
|
+
- [system] Add new `Grid` implementation (#32746) @siriwatknp
|
|
147
|
+
|
|
148
|
+
### `@mui/lab@5.0.0-alpha.90`
|
|
149
|
+
|
|
150
|
+
**⚠️ Breaking changes**
|
|
151
|
+
|
|
152
|
+
- [lab] Remove the pickers (#33386) @flaviendelangle
|
|
153
|
+
|
|
154
|
+
The pickers are moved to MUI X, check out the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
|
|
155
|
+
|
|
156
|
+
**Changes**
|
|
157
|
+
|
|
158
|
+
- [Masonry] Support rem/em values for spacing prop (#33384) @hbjORbj
|
|
159
|
+
|
|
160
|
+
### `@mui/base@5.0.0-alpha.89`
|
|
161
|
+
|
|
162
|
+
- Base] Change the order of class names merged in useSlotProps (#33383) @michaldudak
|
|
163
|
+
- [ModalUnstyled] Accept callbacks in componentsProps (#33181) @michaldudak
|
|
164
|
+
- [SelectUnstyled] Accept callbacks in componentsProps (#33197) @michaldudak
|
|
165
|
+
- [TabsUnstyled] Accept callbacks in componentsProps (#33284) @michaldudak
|
|
166
|
+
|
|
167
|
+
### `@mui/joy@5.0.0-alpha.36`
|
|
168
|
+
|
|
169
|
+
- [Joy] Add guide about using Joy and Material UI together (#33396) @siriwatknp
|
|
170
|
+
- [Joy] Fix variants color palette regressions (#33394) @danilo-leal
|
|
171
|
+
|
|
172
|
+
### Docs
|
|
173
|
+
|
|
174
|
+
- [docs] Correcting small grammatical error (#33393) @robyyo
|
|
175
|
+
- [docs] Link to the correct package on Joy component pages (#33439) @cherniavskii
|
|
176
|
+
- [docs] Fix e2e tests (#33477) @siriwatknp
|
|
177
|
+
- [docs] Fix dead links (#33462) @oliviertassinari
|
|
178
|
+
- [docs] Cleanup the migration (#33463) @siriwatknp
|
|
179
|
+
- [docs] Fix broken Sponsoring services links @samuelsycamore
|
|
180
|
+
- [docs] Improve repo README with light/dark logos, relative links and more (#33356) @samuelsycamore
|
|
181
|
+
- [docs] Update links to MUI X Overview and Introduction pages (#33201) @samuelsycamore
|
|
182
|
+
- [docs] Update to React 18 (#33196) @mnajdova
|
|
183
|
+
- [docs] Simplify "Upload button" demo (#33326) @baharalidurrani
|
|
184
|
+
- [docs] Add "refine" demo to showcase (#33240) @omeraplak
|
|
185
|
+
- [docs] Add webpack alias for legacy utils package (#33376) @jgbae
|
|
186
|
+
- [docs] Improve external link icons synonyms (#33257) @davidgarciab
|
|
187
|
+
- [examples] Update MUI Base with Tailwind CSS to use the latest versions of the dependencies (#33401) @mnajdova
|
|
188
|
+
- [examples] Add MUI base example (#33154) @siriwatknp
|
|
189
|
+
|
|
190
|
+
### Core
|
|
191
|
+
|
|
192
|
+
- [core] Fix @mui/monorepo regression for the import of the docs infra (#33390) @Janpot
|
|
193
|
+
- [core] Remove old babel resolve rule (#33432) @oliviertassinari
|
|
194
|
+
- [website] Shorten the plan descriptions on the pricing page (#32984) @joserodolfofreitas
|
|
195
|
+
- [website] Link EULA in the license quantity section (#33292) @oliviertassinari
|
|
196
|
+
|
|
197
|
+
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
|
|
198
|
+
|
|
3
199
|
## 5.8.7
|
|
4
200
|
|
|
5
201
|
<!-- generated comparing v5.8.6..master -->
|
|
@@ -1930,7 +2126,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
1930
2126
|
- ​<!-- 19 -->[docs] Sync translations with Crowdin (#30067) @l10nbot
|
|
1931
2127
|
- ​<!-- 18 -->[docs] Fix link on "Custom variables" section in the Theming page #30100 @danilo-leal
|
|
1932
2128
|
- ​<!-- 17 -->[docs] Fix justifyContent option in the Grid interactive demo (#30117) @danilo-leal
|
|
1933
|
-
- ​<!-- 16 -->[docs] Add tip to help access the docs of a previous version when finding answers in
|
|
2129
|
+
- ​<!-- 16 -->[docs] Add tip to help access the docs of a previous version when finding answers in Stack Overflow (#30101) @danilo-leal
|
|
1934
2130
|
- ​<!-- 15 -->[docs] Fix import example inside Unstyled Backdrop section (#30098) @TheodosiouTh
|
|
1935
2131
|
- ​<!-- 01 -->[website] Column pinning and Tree data are out (#30136) @oliviertassinari
|
|
1936
2132
|
- ​<!-- 07 -->[survey] Remove survey promotion items (#30122) @danilo-leal
|
|
@@ -2011,7 +2207,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
2011
2207
|
- ​<!-- 21 -->[docs] Update nextjs-typescript-example (#29974) @huydhoang
|
|
2012
2208
|
- ​<!-- 20 -->[docs] Add missing global state classes to API docs generator (#29945) @michaldudak
|
|
2013
2209
|
- ​<!-- 19 -->[docs] Fix benchmarks folder link (#29981) @fourjr
|
|
2014
|
-
- ​<!-- 18 -->[docs] Improve wording in
|
|
2210
|
+
- ​<!-- 18 -->[docs] Improve wording in Stack Overflow section of support page (#29956) @ronwarner
|
|
2015
2211
|
- ​<!-- 17 -->[docs] Remove Black Friday sale notification (#29936) @mbrookes
|
|
2016
2212
|
- ​<!-- 16 -->[examples] Fix typos in the Remix example (#30071) @MichaelDeBoey
|
|
2017
2213
|
- ​<!-- 15 -->[examples] Add Remix example (#29952) @mnajdova
|
|
@@ -2024,7 +2220,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
2024
2220
|
### Core
|
|
2025
2221
|
|
|
2026
2222
|
- ​<!-- 31 -->[core] Batch small changes (#30042) @oliviertassinari
|
|
2027
|
-
- ​<!-- 28 -->[core] Transition to a new
|
|
2223
|
+
- ​<!-- 28 -->[core] Transition to a new Stack Overflow tag (#29967) @oliviertassinari
|
|
2028
2224
|
|
|
2029
2225
|
All contributors of this release in alphabetical order: @chao813, @daniel-sachs, @danilo-leal, @Domino987, @eduardomcv, @flaviendelangle, @fourjr, @genzyy, @hbjORbj, @huydhoang, @jayeclark, @jonathanrtuck, @kkorach, @l10nbot, @mbrookes, @MichaelDeBoey, @michaldudak, @mnajdova, @oliviertassinari, @ronwarner, @Semigradsky, @siriwatknp, @tasugi, @ThewBear, @ZeeshanTamboli
|
|
2030
2226
|
|
|
@@ -5710,7 +5906,7 @@ A big thanks to the 30 contributors who made this release possible. Here are som
|
|
|
5710
5906
|
#### Breaking changes
|
|
5711
5907
|
|
|
5712
5908
|
- ​<!-- 91 -->[types] Rename the exported `Omit` type in `@material-ui/types`. (#24795) @petyosi
|
|
5713
|
-
The module is now called `DistributiveOmit`. The change removes the confusion with the built-in `Omit` helper introduced in TypeScript v3.5. The built-in `Omit`, while similar, is non-distributive. This leads to differences when applied to union types. [See this
|
|
5909
|
+
The module is now called `DistributiveOmit`. The change removes the confusion with the built-in `Omit` helper introduced in TypeScript v3.5. The built-in `Omit`, while similar, is non-distributive. This leads to differences when applied to union types. [See this Stack Overflow answer for further details](https://stackoverflow.com/a/57103940/1009797).
|
|
5714
5910
|
|
|
5715
5911
|
```diff
|
|
5716
5912
|
-import { Omit } from '@material-ui/types';
|
package/Dialog/Dialog.js
CHANGED
|
@@ -291,7 +291,8 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
294
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
294
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
295
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
295
296
|
* @default styled(Backdrop, {
|
|
296
297
|
* name: 'MuiModal',
|
|
297
298
|
* slot: 'Backdrop',
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
3
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
4
5
|
import { Theme } from '../styles';
|
|
5
6
|
import { FormHelperTextClasses } from './formHelperTextClasses';
|
|
6
7
|
|
|
8
|
+
export interface FormHelperTextPropsVariantOverrides {}
|
|
9
|
+
|
|
7
10
|
export interface FormHelperTextTypeMap<P = {}, D extends React.ElementType = 'p'> {
|
|
8
11
|
props: P & {
|
|
9
12
|
/**
|
|
@@ -48,7 +51,10 @@ export interface FormHelperTextTypeMap<P = {}, D extends React.ElementType = 'p'
|
|
|
48
51
|
/**
|
|
49
52
|
* The variant to use.
|
|
50
53
|
*/
|
|
51
|
-
variant?:
|
|
54
|
+
variant?: OverridableStringUnion<
|
|
55
|
+
'standard' | 'outlined' | 'filled',
|
|
56
|
+
FormHelperTextPropsVariantOverrides
|
|
57
|
+
>;
|
|
52
58
|
};
|
|
53
59
|
defaultComponent: D;
|
|
54
60
|
}
|
|
@@ -181,6 +181,8 @@ process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
|
|
|
181
181
|
/**
|
|
182
182
|
* The variant to use.
|
|
183
183
|
*/
|
|
184
|
-
variant: PropTypes
|
|
184
|
+
variant: PropTypes
|
|
185
|
+
/* @typescript-to-proptypes-ignore */
|
|
186
|
+
.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])
|
|
185
187
|
} : void 0;
|
|
186
188
|
export default FormHelperText;
|
|
@@ -40,9 +40,8 @@ const ImageListItemRoot = styled('li', {
|
|
|
40
40
|
})(({
|
|
41
41
|
ownerState
|
|
42
42
|
}) => _extends({
|
|
43
|
-
display: '
|
|
44
|
-
position: 'relative'
|
|
45
|
-
lineHeight: 0
|
|
43
|
+
display: 'block',
|
|
44
|
+
position: 'relative'
|
|
46
45
|
}, ownerState.variant === 'standard' && {
|
|
47
46
|
// For titlebar under list item
|
|
48
47
|
display: 'flex',
|
|
@@ -57,7 +56,8 @@ const ImageListItemRoot = styled('li', {
|
|
|
57
56
|
[`& .${imageListItemClasses.img}`]: _extends({
|
|
58
57
|
objectFit: 'cover',
|
|
59
58
|
width: '100%',
|
|
60
|
-
height: '100%'
|
|
59
|
+
height: '100%',
|
|
60
|
+
display: 'block'
|
|
61
61
|
}, ownerState.variant === 'standard' && {
|
|
62
62
|
height: 'auto',
|
|
63
63
|
flexGrow: 1
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export type ModalTypeMap<D extends React.ElementType = 'div', P = {}> = ExtendMo
|
|
|
9
9
|
props: P & {
|
|
10
10
|
/**
|
|
11
11
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
12
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
12
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
13
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
13
14
|
* @default styled(Backdrop, {
|
|
14
15
|
* name: 'MuiModal',
|
|
15
16
|
* slot: 'Backdrop',
|
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),
|
|
@@ -140,7 +140,8 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
143
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
143
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
144
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
144
145
|
* @default styled(Backdrop, {
|
|
145
146
|
* name: 'MuiModal',
|
|
146
147
|
* slot: 'Backdrop',
|
|
@@ -196,8 +197,8 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
196
197
|
* @default {}
|
|
197
198
|
*/
|
|
198
199
|
componentsProps: PropTypes.shape({
|
|
199
|
-
backdrop: PropTypes.object,
|
|
200
|
-
root: PropTypes.object
|
|
200
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
201
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
201
202
|
}),
|
|
202
203
|
|
|
203
204
|
/**
|
|
@@ -8,6 +8,10 @@ import { StyledComponentProps } from './styles';
|
|
|
8
8
|
* Adjusts valid props based on the type of `component`.
|
|
9
9
|
*/
|
|
10
10
|
export interface OverridableComponent<M extends OverridableTypeMap> {
|
|
11
|
+
// If you make any changes to this interface, please make sure to update the
|
|
12
|
+
// `OverridableComponent` type in `mui-types/index.d.ts` as well.
|
|
13
|
+
// Also, there are types in MUI Base that have a similar shape to this interface
|
|
14
|
+
// (e.g. SelectUnstyledType, OptionUnstyledType, etc.).
|
|
11
15
|
<C extends React.ElementType>(
|
|
12
16
|
props: {
|
|
13
17
|
/**
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -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<
|
|
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" | "key" | "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" | "component" | "sx" | "components" | "container" | "componentsProps" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
24
|
export default Popper;
|
package/Popper/Popper.js
CHANGED
|
@@ -61,6 +61,30 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
61
61
|
/* @typescript-to-proptypes-ignore */
|
|
62
62
|
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @ignore
|
|
66
|
+
*/
|
|
67
|
+
component: PropTypes
|
|
68
|
+
/* @typescript-to-proptypes-ignore */
|
|
69
|
+
.elementType,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The components used for each slot inside the Popper.
|
|
73
|
+
* Either a string to use a HTML element or a component.
|
|
74
|
+
* @default {}
|
|
75
|
+
*/
|
|
76
|
+
components: PropTypes.shape({
|
|
77
|
+
Root: PropTypes.elementType
|
|
78
|
+
}),
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The props used for each slot inside the Popper.
|
|
82
|
+
* @default {}
|
|
83
|
+
*/
|
|
84
|
+
componentsProps: PropTypes.shape({
|
|
85
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
86
|
+
}),
|
|
87
|
+
|
|
64
88
|
/**
|
|
65
89
|
* An HTML element or function that returns one.
|
|
66
90
|
* The `container` will have the portal children appended to it.
|