@mui/material 5.14.7 → 5.14.9

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 (143) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/AccordionSummary/AccordionSummary.d.ts +22 -20
  3. package/AlertTitle/AlertTitle.d.ts +1 -0
  4. package/AppBar/AppBar.d.ts +33 -31
  5. package/Avatar/Avatar.d.ts +49 -50
  6. package/Backdrop/Backdrop.d.ts +87 -85
  7. package/Badge/Badge.d.ts +2 -2
  8. package/BottomNavigation/BottomNavigation.d.ts +35 -33
  9. package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
  10. package/Breadcrumbs/Breadcrumbs.d.ts +70 -67
  11. package/Button/Button.d.ts +72 -73
  12. package/Button/Button.js +4 -1
  13. package/ButtonBase/ButtonBase.d.ts +83 -81
  14. package/ButtonGroup/ButtonGroup.d.ts +72 -70
  15. package/ButtonGroup/ButtonGroup.js +86 -54
  16. package/ButtonGroup/ButtonGroupButtonContext.d.ts +6 -0
  17. package/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  18. package/ButtonGroup/buttonGroupClasses.d.ts +6 -0
  19. package/ButtonGroup/buttonGroupClasses.js +1 -1
  20. package/CHANGELOG.md +235 -38
  21. package/Card/Card.d.ts +19 -18
  22. package/CardActionArea/CardActionArea.d.ts +15 -13
  23. package/CardContent/CardContent.d.ts +18 -16
  24. package/CardHeader/CardHeader.d.ts +77 -67
  25. package/CardMedia/CardMedia.d.ts +30 -28
  26. package/Chip/Chip.d.ts +84 -82
  27. package/CircularProgress/CircularProgress.d.ts +1 -1
  28. package/CircularProgress/CircularProgress.js +1 -1
  29. package/Container/Container.d.ts +35 -33
  30. package/DialogContentText/DialogContentText.d.ts +14 -12
  31. package/DialogTitle/DialogTitle.d.ts +19 -16
  32. package/Divider/Divider.d.ts +49 -50
  33. package/Fab/Fab.d.ts +59 -56
  34. package/FormControl/FormControl.d.ts +74 -72
  35. package/FormHelperText/FormHelperText.d.ts +52 -50
  36. package/FormLabel/FormLabel.d.ts +7 -4
  37. package/Grid/Grid.d.ts +69 -68
  38. package/Hidden/Hidden.d.ts +10 -10
  39. package/Icon/Icon.d.ts +50 -48
  40. package/IconButton/IconButton.d.ts +52 -50
  41. package/ImageList/ImageList.d.ts +41 -39
  42. package/ImageListItem/ImageListItem.d.ts +28 -26
  43. package/ImageListItem/ImageListItem.js +2 -1
  44. package/InputAdornment/InputAdornment.d.ts +39 -37
  45. package/InputBase/InputBase.js +1 -1
  46. package/InputLabel/InputLabel.d.ts +58 -56
  47. package/InputLabel/InputLabel.js +2 -1
  48. package/Link/Link.d.ts +37 -39
  49. package/List/List.d.ts +34 -35
  50. package/ListItem/ListItem.d.ts +53 -49
  51. package/ListItemButton/ListItemButton.d.ts +9 -3
  52. package/ListSubheader/ListSubheader.d.ts +38 -36
  53. package/MenuItem/MenuItem.d.ts +47 -44
  54. package/MenuList/MenuList.d.ts +37 -35
  55. package/Modal/Modal.d.ts +172 -178
  56. package/Modal/Modal.js +1 -1
  57. package/PaginationItem/PaginationItem.d.ts +85 -83
  58. package/Paper/Paper.d.ts +2 -2
  59. package/README.md +9 -198
  60. package/Radio/Radio.js +3 -2
  61. package/Radio/radioClasses.d.ts +2 -0
  62. package/Radio/radioClasses.js +1 -1
  63. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
  64. package/Select/SelectInput.js +9 -5
  65. package/Skeleton/Skeleton.d.ts +42 -40
  66. package/Slider/Slider.d.ts +249 -247
  67. package/Slider/Slider.js +9 -86
  68. package/Stack/Stack.d.ts +39 -38
  69. package/Step/Step.d.ts +46 -44
  70. package/StepButton/StepButton.d.ts +27 -25
  71. package/Stepper/Stepper.d.ts +45 -44
  72. package/SvgIcon/SvgIcon.d.ts +77 -75
  73. package/SwipeableDrawer/SwipeableDrawer.js +4 -4
  74. package/Tab/Tab.d.ts +52 -50
  75. package/TabScrollButton/TabScrollButton.d.ts +3 -2
  76. package/Table/Table.d.ts +35 -33
  77. package/TableBody/TableBody.d.ts +18 -16
  78. package/TableContainer/TableContainer.d.ts +18 -16
  79. package/TableFooter/TableFooter.d.ts +18 -16
  80. package/TableHead/TableHead.d.ts +18 -16
  81. package/TablePagination/TablePagination.d.ts +113 -112
  82. package/TableRow/TableRow.d.ts +28 -26
  83. package/TableSortLabel/TableSortLabel.d.ts +40 -36
  84. package/Tabs/Tabs.d.ts +153 -150
  85. package/Tabs/Tabs.js +1 -4
  86. package/ToggleButton/ToggleButton.d.ts +72 -70
  87. package/Toolbar/Toolbar.d.ts +29 -27
  88. package/Typography/Typography.d.ts +2 -2
  89. package/index.js +1 -1
  90. package/legacy/Button/Button.js +4 -1
  91. package/legacy/ButtonGroup/ButtonGroup.js +81 -56
  92. package/legacy/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  93. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  94. package/legacy/CircularProgress/CircularProgress.js +1 -1
  95. package/legacy/ImageListItem/ImageListItem.js +2 -1
  96. package/legacy/InputBase/InputBase.js +1 -1
  97. package/legacy/InputLabel/InputLabel.js +2 -1
  98. package/legacy/Modal/Modal.js +3 -1
  99. package/legacy/Radio/Radio.js +3 -2
  100. package/legacy/Radio/radioClasses.js +1 -1
  101. package/legacy/Select/SelectInput.js +9 -5
  102. package/legacy/Slider/Slider.js +9 -86
  103. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  104. package/legacy/Tabs/Tabs.js +1 -4
  105. package/legacy/index.js +1 -1
  106. package/legacy/useTouchRipple/useTouchRipple.js +4 -4
  107. package/modern/Button/Button.js +4 -1
  108. package/modern/ButtonGroup/ButtonGroup.js +86 -54
  109. package/modern/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  110. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  111. package/modern/CircularProgress/CircularProgress.js +1 -1
  112. package/modern/ImageListItem/ImageListItem.js +2 -1
  113. package/modern/InputBase/InputBase.js +1 -1
  114. package/modern/InputLabel/InputLabel.js +2 -1
  115. package/modern/Modal/Modal.js +1 -1
  116. package/modern/Radio/Radio.js +3 -2
  117. package/modern/Radio/radioClasses.js +1 -1
  118. package/modern/Select/SelectInput.js +8 -5
  119. package/modern/Slider/Slider.js +9 -86
  120. package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
  121. package/modern/Tabs/Tabs.js +1 -4
  122. package/modern/index.js +1 -1
  123. package/node/Button/Button.js +4 -1
  124. package/node/ButtonGroup/ButtonGroup.js +86 -54
  125. package/node/ButtonGroup/ButtonGroupButtonContext.js +18 -0
  126. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  127. package/node/CircularProgress/CircularProgress.js +1 -1
  128. package/node/ImageListItem/ImageListItem.js +2 -1
  129. package/node/InputBase/InputBase.js +1 -1
  130. package/node/InputLabel/InputLabel.js +2 -1
  131. package/node/Modal/Modal.js +1 -1
  132. package/node/Radio/Radio.js +3 -2
  133. package/node/Radio/radioClasses.js +1 -1
  134. package/node/Select/SelectInput.js +9 -5
  135. package/node/Slider/Slider.js +3 -73
  136. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  137. package/node/Tabs/Tabs.js +1 -4
  138. package/node/index.js +1 -1
  139. package/node/useTouchRipple/useTouchRipple.js +4 -4
  140. package/package.json +16 -16
  141. package/umd/material-ui.development.js +258 -254
  142. package/umd/material-ui.production.min.js +18 -18
  143. package/useTouchRipple/useTouchRipple.js +4 -4
package/README.md CHANGED
@@ -1,195 +1,38 @@
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="/docs/public/static/logo.svg" alt="MUI logo"></a>
3
+ <a href="https://mui.com/material-ui/" rel="noopener" target="_blank"><img width="150" height="133" src="https://mui.com/static/logo.svg" alt="Material UI logo"></a>
4
4
  </p>
5
5
 
6
- <h1 align="center">MUI Core</h1>
6
+ <h1 align="center">Material UI</h1>
7
7
 
8
- **MUI Core** contains foundational React UI component libraries for shipping new features faster.
9
-
10
- - [_Material UI_](https://mui.com/material-ui/getting-started/) is a comprehensive library of components that features our implementation of Google's [Material Design](https://m2.material.io/design/introduction/) system.
11
-
12
- - [_Joy UI_](https://mui.com/joy-ui/getting-started/) is a beautifully designed library of React UI components.
13
-
14
- - [_Base UI_](https://mui.com/base-ui/getting-started/) is our library of "unstyled" components and low-level hooks. With Base, you gain complete control over your app's CSS and accessibility features.
15
-
16
- - [_MUI System_](https://mui.com/system/getting-started/) is a collection of CSS utilities to help you rapidly lay out custom designs.
17
-
18
- <div align="center">
19
-
20
- **[Stable channel v5](https://mui.com/)**
21
-
22
- [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mui/material-ui/blob/HEAD/LICENSE)
23
- [![npm latest package](https://img.shields.io/npm/v/@mui/material/latest.svg)](https://www.npmjs.com/package/@mui/material)
24
- [![npm next package](https://img.shields.io/npm/v/@mui/material/next.svg)](https://www.npmjs.com/package/@mui/material)
25
- [![npm downloads](https://img.shields.io/npm/dm/@mui/material.svg)](https://www.npmjs.com/package/@mui/material)
26
- [![CircleCI](https://circleci.com/gh/mui/material-ui/tree/master.svg?style=shield)](https://app.circleci.com/pipelines/github/mui/material-ui?branch=master)
27
- [![Coverage Status](https://img.shields.io/codecov/c/github/mui/material-ui/master.svg)](https://codecov.io/gh/mui/material-ui/branch/master)
28
- [![Follow on Twitter](https://img.shields.io/twitter/follow/MUI_hq.svg?label=follow+MUI)](https://twitter.com/MUI_hq)
29
- [![Renovate status](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://github.com/mui/material-ui/issues/27062)
30
- [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/mui/material-ui.svg)](https://isitmaintained.com/project/mui/material-ui 'Average time to resolve an issue')
31
- [![Open Collective backers and sponsors](https://img.shields.io/opencollective/all/mui)](https://opencollective.com/mui)
32
- [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1320/badge)](https://bestpractices.coreinfrastructure.org/projects/1320)
33
-
34
- </div>
8
+ Material UI is a comprehensive library of components that features our implementation of Google's [Material Design](https://m2.material.io/design/introduction/) system.
35
9
 
36
10
  ## Installation
37
11
 
38
- ### Material UI
39
-
40
- Material UI is available as an [npm package](https://www.npmjs.com/package/@mui/material).
41
-
42
- **npm:**
12
+ Install the package in your project directory with:
43
13
 
44
14
  ```bash
45
15
  npm install @mui/material @emotion/react @emotion/styled
46
16
  ```
47
17
 
48
- **yarn:**
49
-
50
- ```bash
51
- yarn add @mui/material @emotion/react @emotion/styled
52
- ```
53
-
54
- <details>
55
- <summary>Older versions</summary>
56
-
57
- - **[v4.x](https://v4.mui.com/)** ([Migration from v4 to v5](https://mui.com/material-ui/migration/migration-v4/))
58
- - **[v3.x](https://v3.mui.com/)** ([Migration from v3 to v4](https://mui.com/material-ui/migration/migration-v3/))
59
- - **[v0.x](https://v0.mui.com/)** ([Migration to v1](https://mui.com/material-ui/migration/migration-v0x/))
60
-
61
- </details>
62
-
63
- **Note:** `@next` only points to pre-releases.
64
- Use `@latest` for the latest stable release.
65
-
66
- ### Base UI
67
-
68
- Base UI is available as an [npm package](https://www.npmjs.com/package/@mui/base).
69
-
70
- **npm:**
71
-
72
- ```bash
73
- npm install @mui/base
74
- ```
75
-
76
- **yarn:**
77
-
78
- ```bash
79
- yarn add @mui/base
80
- ```
81
-
82
- **Note**: Base UI is still in beta.
83
- We are adding new components regularly and you're welcome to contribute!
84
-
85
- ### MUI System
86
-
87
- MUI System is available as an [npm package](https://www.npmjs.com/package/@mui/system).
88
-
89
- **npm:**
90
-
91
- ```bash
92
- npm install @mui/system @emotion/react @emotion/styled
93
- ```
94
-
95
- **yarn:**
96
-
97
- ```bash
98
- yarn add @mui/system @emotion/react @emotion/styled
99
- ```
100
-
101
- Or if you want to use `styled-components` as a styling engine:
102
-
103
- **npm:**
104
-
105
- ```bash
106
- npm install @mui/material @mui/styled-engine-sc styled-components
107
- ```
108
-
109
- **yarn:**
110
-
111
- ```bash
112
- yarn add @mui/material @mui/styled-engine-sc styled-components
113
- ```
114
-
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.
116
-
117
- ## Sponsors
118
-
119
- ### Diamond 💎
120
-
121
- <p>
122
- <a href="https://octopus.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="128" width="128" src="https://i.ibb.co/w0HF0Nz/Logo-Blue-140px-rgb.png" alt="octopus" title="Repeatable, reliable deployments" loading="lazy" /></a>
123
- <a href="https://www.doit.com/flexsave/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="128" width="128" src="https://avatars.githubusercontent.com/u/8424863?s=256" alt="doit" title="Management Platform for Google Cloud and AWS" loading="lazy" /></a>
124
- </p>
125
-
126
- Diamond Sponsors are those who have pledged \$1,500/month or more to MUI.
127
-
128
- ### Gold 🏆
129
-
130
- via [Open Collective](https://opencollective.com/mui) or via [Patreon](https://www.patreon.com/oliviertassinari)
131
-
132
- <p>
133
- <a href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://avatars.githubusercontent.com/u/30204434?s=192" alt="tidelift.com" title="Enterprise-ready open-source software" loading="lazy" /></a>
134
- <a href="https://www.text-em-all.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img src="https://avatars.githubusercontent.com/u/1262264?s=192" alt="text-em-all.com" title="Mass Text Messaging & Automated Calling" height="96" width="96" loading="lazy"></a>
135
- <a href="https://open.spotify.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://images.opencollective.com/spotify/f37ea28/logo/192.png" alt="Spotify" title="Music service to access to millions of songs" loading="lazy" /></a>
136
- <a href="https://megafamous.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://mui.com/static/sponsors/megafamous.png" alt="megafamous.com" title="The best place to buy Instagram followers & likes." loading="lazy" /></a>
137
- <a href="https://www.dialmycalls.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://images.opencollective.com/dialmycalls/f5ae9ab/avatar/192.png" alt="dialmycalls.com" title="Send text messages, calls & emails to thousands with ease." loading="lazy" /></a>
138
- <a href="https://goread.io/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://images.opencollective.com/goread_io/eb6337d/logo/192.png" alt="goread.io" title="Instagram followers, likes, power likes, views, comments, saves in minutes." loading="lazy" /></a>
139
- <a href="https://icons8.com?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://images.opencollective.com/icons8/7fa1641/logo/192.png" alt="Icons8" title="We provide the neat icons, photos, illustrations, and music. Developers, use our API to insert all the content we have into your apps." loading="lazy"></a>
140
- <a href="https://ipinfo.ai?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="96" width="96" src="https://images.opencollective.com/ipinfoai/04f41d5/logo/192.png" alt="ipinfo.ai" title="We offer various IP data API services, including IP Geolocation Data, ASN Data, Company Data, IP Ranges Data, Abuse Contacts Data, Anonymous Browsing Detection, etc." loading="lazy"></a>
141
- </p>
142
-
143
- Gold Sponsors are those who have pledged \$500/month or more to MUI.
144
-
145
- ### More backers
146
-
147
- See the full list of [our backers](https://mui.com/material-ui/discover-more/backers/).
148
-
149
- ## Getting started with Material UI
150
-
151
- Here is an example of a basic app using Material UI's `Button` component:
152
-
153
- ```jsx
154
- import * as React from 'react';
155
- import Button from '@mui/material/Button';
156
-
157
- function App() {
158
- return <Button variant="contained">Hello World</Button>;
159
- }
160
- ```
161
-
162
- In the interactive demo below, try changing the code and see how it affects the output.
163
- (Hint: change `variant` to `"outlined"` and `color` to `"secondary"`.
164
- For more options, see the [`Button` component page](https://mui.com/material-ui/react-button/) in our docs.)
18
+ ## Documentation
165
19
 
166
- [![Edit Button](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/material-ui-u9sy1h)
20
+ Visit [https://mui.com/material-ui/](https://mui.com/material-ui/) to view the full documentation.
167
21
 
168
22
  ## Questions
169
23
 
170
- For how-to questions that don't involve making changes to the code base, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/material-ui) instead of GitHub issues.
171
- Use the "mui" tag on Stack Overflow to make it easier for the community to find your question.
24
+ For how-to questions that don't involve making changes to the code base, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/material-ui) instead of GitHub issues.
25
+ Use the "material-ui" tag on Stack Overflow to make it easier for the community to find your question.
172
26
 
173
27
  ## Examples
174
28
 
175
29
  Our documentation features [a collection of example projects using Material UI](https://mui.com/material-ui/getting-started/example-projects/).
176
30
 
177
- ## Documentation
178
-
179
- - [Material UI](https://mui.com/material-ui/getting-started/)
180
- - [Joy UI](https://mui.com/joy-ui/getting-started/)
181
- - [Base UI](https://mui.com/base-ui/getting-started/)
182
- - [MUI System](https://mui.com/system/getting-started/)
183
-
184
- ## Premium themes
185
-
186
- You can find complete templates and themes in the [MUI Store](https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=readme-store).
187
-
188
31
  ## Contributing
189
32
 
190
33
  Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
191
34
 
192
- Contributing to MUI Core is about more than just issues and pull requests!
35
+ Contributing to Material UI is about more than just issues and pull requests!
193
36
  There are many other ways to [support MUI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
194
37
 
195
38
  ## Changelog
@@ -208,35 +51,3 @@ This project is licensed under the terms of the
208
51
  ## Security
209
52
 
210
53
  For details of supported versions and contact details for reporting security issues, please refer to the [security policy](https://github.com/mui/material-ui/security/policy).
211
-
212
- ## Sponsoring services
213
-
214
- These great services sponsor MUI's core infrastructure:
215
-
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-lightmode.svg" width="80" height="43">
220
- </picture>
221
-
222
- [GitHub](https://github.com/) lets us host the Git repository and coordinate contributions.
223
-
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-lightmode.svg" width="100" height="27" style="margin-top: 1rem;">
228
- </picture>
229
-
230
- [Netlify](https://www.netlify.com/) lets us distribute the documentation.
231
-
232
- <picture>
233
- <source media="(prefers-color-scheme: dark)" srcset="/docs/public/static/readme/browserstack-darkmode.svg">
234
- <source media="(prefers-color-scheme: light)" srcset="/docs/public/static/readme/browserstack-lightmode.svg">
235
- <img alt="BrowserStack logo" src="/docs/public/static/readme/browserstack-lightmode.svg" width="140" height="25" style="margin-top: 1rem;">
236
- </picture>
237
-
238
- [BrowserStack](https://www.browserstack.com/) lets us test in real browsers.
239
-
240
- <img loading="lazy" alt="CodeCov logo" src="https://avatars.githubusercontent.com/u/8226205?s=70" width="35" height="35" style="margin-top: 1rem;">
241
-
242
- [CodeCov](https://about.codecov.io/) lets us monitor test coverage.
package/Radio/Radio.js CHANGED
@@ -21,10 +21,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const useUtilityClasses = ownerState => {
22
22
  const {
23
23
  classes,
24
- color
24
+ color,
25
+ size
25
26
  } = ownerState;
26
27
  const slots = {
27
- root: ['root', `color${capitalize(color)}`]
28
+ root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]
28
29
  };
29
30
  return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
30
31
  };
@@ -9,6 +9,8 @@ export interface RadioClasses {
9
9
  colorPrimary: string;
10
10
  /** Styles applied to the root element if `color="secondary"`. */
11
11
  colorSecondary: string;
12
+ /** Styles applied to the root element if `size="small"`. */
13
+ sizeSmall: string;
12
14
  }
13
15
  export type RadioClassKey = keyof RadioClasses;
14
16
  export declare function getRadioUtilityClass(slot: string): string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getRadioUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiRadio', slot);
5
5
  }
6
- const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
6
+ const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
7
7
  export default radioClasses;
@@ -1,34 +1,36 @@
1
- import { SxProps } from '@mui/system';
2
1
  import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
3
  import { Theme } from '../styles';
4
4
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
5
  import { ScopedCssBaselineClasses } from './scopedCssBaselineClasses';
6
6
 
7
+ export interface ScopedCssBaselineOwnProps {
8
+ /**
9
+ * The content of the component.
10
+ */
11
+ children?: React.ReactNode;
12
+ /**
13
+ * Override or extend the styles applied to the component.
14
+ */
15
+ classes?: Partial<ScopedCssBaselineClasses>;
16
+ /**
17
+ * Enable `color-scheme` CSS property to use `theme.palette.mode`.
18
+ * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
19
+ * For browser support, check out https://caniuse.com/?search=color-scheme
20
+ */
21
+ enableColorScheme?: boolean;
22
+ /**
23
+ * The system prop that allows defining system overrides as well as additional CSS styles.
24
+ */
25
+ sx?: SxProps<Theme>;
26
+ }
27
+
7
28
  export interface ScopedCssBaselineTypeMap<
8
29
  AdditionalProps = {},
9
- DefaultComponent extends React.ElementType = 'div',
30
+ RootComponent extends React.ElementType = 'div',
10
31
  > {
11
- props: AdditionalProps & {
12
- /**
13
- * The content of the component.
14
- */
15
- children?: React.ReactNode;
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: Partial<ScopedCssBaselineClasses>;
20
- /**
21
- * Enable `color-scheme` CSS property to use `theme.palette.mode`.
22
- * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
23
- * For browser support, check out https://caniuse.com/?search=color-scheme
24
- */
25
- enableColorScheme?: boolean;
26
- /**
27
- * The system prop that allows defining system overrides as well as additional CSS styles.
28
- */
29
- sx?: SxProps<Theme>;
30
- };
31
- defaultComponent: DefaultComponent;
32
+ props: AdditionalProps & ScopedCssBaselineOwnProps;
33
+ defaultComponent: RootComponent;
32
34
  }
33
35
  /**
34
36
  *
@@ -109,6 +109,7 @@ const useUtilityClasses = ownerState => {
109
109
  * @ignore - internal component.
110
110
  */
111
111
  const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {
112
+ var _MenuProps$slotProps;
112
113
  const {
113
114
  'aria-describedby': ariaDescribedby,
114
115
  'aria-label': ariaLabel,
@@ -432,6 +433,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
432
433
  error
433
434
  });
434
435
  const classes = useUtilityClasses(ownerState);
436
+ const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
435
437
  return /*#__PURE__*/_jsxs(React.Fragment, {
436
438
  children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
437
439
  ref: handleDisplayRef,
@@ -493,11 +495,13 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
493
495
  role: 'listbox',
494
496
  disableListWrap: true
495
497
  }, MenuProps.MenuListProps),
496
- PaperProps: _extends({}, MenuProps.PaperProps, {
497
- style: _extends({
498
- minWidth: menuMinWidth
499
- }, MenuProps.PaperProps != null ? MenuProps.PaperProps.style : null)
500
- }),
498
+ slotProps: {
499
+ paper: _extends({}, paperProps, {
500
+ style: _extends({
501
+ minWidth: menuMinWidth
502
+ }, paperProps != null ? paperProps.style : null)
503
+ })
504
+ },
501
505
  children: items
502
506
  }))]
503
507
  });
@@ -7,49 +7,51 @@ import { SkeletonClasses } from './skeletonClasses';
7
7
 
8
8
  export interface SkeletonPropsVariantOverrides {}
9
9
 
10
+ export interface SkeletonOwnProps {
11
+ /**
12
+ * The animation.
13
+ * If `false` the animation effect is disabled.
14
+ * @default 'pulse'
15
+ */
16
+ animation?: 'pulse' | 'wave' | false;
17
+ /**
18
+ * Optional children to infer width and height from.
19
+ */
20
+ children?: React.ReactNode;
21
+ /**
22
+ * Override or extend the styles applied to the component.
23
+ */
24
+ classes?: Partial<SkeletonClasses>;
25
+ /**
26
+ * Height of the skeleton.
27
+ * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
28
+ */
29
+ height?: number | string;
30
+ /**
31
+ * The system prop that allows defining system overrides as well as additional CSS styles.
32
+ */
33
+ sx?: SxProps<Theme>;
34
+ /**
35
+ * The type of content that will be rendered.
36
+ * @default 'text'
37
+ */
38
+ variant?: OverridableStringUnion<
39
+ 'text' | 'rectangular' | 'rounded' | 'circular',
40
+ SkeletonPropsVariantOverrides
41
+ >;
42
+ /**
43
+ * Width of the skeleton.
44
+ * Useful when the skeleton is inside an inline element with no width of its own.
45
+ */
46
+ width?: number | string;
47
+ }
48
+
10
49
  export interface SkeletonTypeMap<
11
50
  AdditionalProps = {},
12
- DefaultComponent extends React.ElementType = 'span',
51
+ RootComponent extends React.ElementType = 'span',
13
52
  > {
14
- props: AdditionalProps & {
15
- /**
16
- * The animation.
17
- * If `false` the animation effect is disabled.
18
- * @default 'pulse'
19
- */
20
- animation?: 'pulse' | 'wave' | false;
21
- /**
22
- * Optional children to infer width and height from.
23
- */
24
- children?: React.ReactNode;
25
- /**
26
- * Override or extend the styles applied to the component.
27
- */
28
- classes?: Partial<SkeletonClasses>;
29
- /**
30
- * Height of the skeleton.
31
- * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
32
- */
33
- height?: number | string;
34
- /**
35
- * The system prop that allows defining system overrides as well as additional CSS styles.
36
- */
37
- sx?: SxProps<Theme>;
38
- /**
39
- * The type of content that will be rendered.
40
- * @default 'text'
41
- */
42
- variant?: OverridableStringUnion<
43
- 'text' | 'rectangular' | 'rounded' | 'circular',
44
- SkeletonPropsVariantOverrides
45
- >;
46
- /**
47
- * Width of the skeleton.
48
- * Useful when the skeleton is inside an inline element with no width of its own.
49
- */
50
- width?: number | string;
51
- };
52
- defaultComponent: DefaultComponent;
53
+ props: AdditionalProps & SkeletonOwnProps;
54
+ defaultComponent: RootComponent;
53
55
  }
54
56
 
55
57
  /**