@mui/docs 9.0.0-alpha.4 → 9.0.0-beta.0

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 (61) hide show
  1. package/ApiPage/ApiWarningAlert.d.ts +10 -0
  2. package/ApiPage/ApiWarningAlert.js +22 -0
  3. package/ApiPage/definitions/classes.d.ts +18 -0
  4. package/ApiPage/definitions/classes.js +54 -0
  5. package/ApiPage/definitions/index.d.ts +4 -0
  6. package/ApiPage/definitions/index.js +4 -0
  7. package/ApiPage/definitions/properties.d.ts +58 -0
  8. package/ApiPage/definitions/properties.js +110 -0
  9. package/ApiPage/definitions/slots.d.ts +16 -0
  10. package/ApiPage/definitions/slots.js +39 -0
  11. package/ApiPage/definitions/types.d.ts +53 -0
  12. package/ApiPage/definitions/types.js +1 -0
  13. package/ApiPage/index.d.ts +2 -0
  14. package/ApiPage/index.js +2 -0
  15. package/ApiPage/list/ClassesList.d.ts +11 -0
  16. package/ApiPage/list/ClassesList.js +103 -0
  17. package/ApiPage/list/ExpandableApiItem.d.ts +18 -0
  18. package/ApiPage/list/ExpandableApiItem.js +241 -0
  19. package/ApiPage/list/PropertiesList.d.ts +7 -0
  20. package/ApiPage/list/PropertiesList.js +263 -0
  21. package/ApiPage/list/SlotsList.d.ts +7 -0
  22. package/ApiPage/list/SlotsList.js +93 -0
  23. package/ApiPage/list/index.d.ts +1 -0
  24. package/ApiPage/list/index.js +1 -0
  25. package/ApiPage/private.d.ts +3 -0
  26. package/ApiPage/private.js +3 -0
  27. package/ApiPage/sections/ClassesSection.d.ts +34 -0
  28. package/ApiPage/sections/ClassesSection.js +76 -0
  29. package/ApiPage/sections/PropertiesSection.d.ts +45 -0
  30. package/ApiPage/sections/PropertiesSection.js +59 -0
  31. package/ApiPage/sections/SlotsSection.d.ts +24 -0
  32. package/ApiPage/sections/SlotsSection.js +61 -0
  33. package/ApiPage/sections/ToggleDisplayOption.d.ts +17 -0
  34. package/ApiPage/sections/ToggleDisplayOption.js +158 -0
  35. package/ApiPage/sections/index.d.ts +4 -0
  36. package/ApiPage/sections/index.js +4 -0
  37. package/ApiPage/table/ClassesTable.d.ts +7 -0
  38. package/ApiPage/table/ClassesTable.js +116 -0
  39. package/ApiPage/table/PropertiesTable.d.ts +6 -0
  40. package/ApiPage/table/PropertiesTable.js +286 -0
  41. package/ApiPage/table/SlotsTable.d.ts +6 -0
  42. package/ApiPage/table/SlotsTable.js +126 -0
  43. package/ApiPage/table/StyledTableContainer.d.ts +1 -0
  44. package/ApiPage/table/StyledTableContainer.js +42 -0
  45. package/ApiPage/types.d.ts +11 -0
  46. package/ApiPage/types.js +1 -0
  47. package/CHANGELOG.md +71 -4
  48. package/DocsApp/AnalyticsProvider.js +10 -6
  49. package/DocsApp/consoleBanner.js +0 -1
  50. package/DocsApp/createGetInitialProps.js +1 -1
  51. package/DocsApp/loadDependencies.js +0 -2
  52. package/DocsApp/reportWebVitals.js +0 -2
  53. package/DocsApp/serviceWorker.js +0 -2
  54. package/Document/Document.js +2 -2
  55. package/Document/getInitialProps.js +0 -2
  56. package/InfoCard/InfoCard.js +9 -5
  57. package/Link/SkipLink.js +1 -3
  58. package/NextNProgressBar/NextNProgressBar.js +0 -2
  59. package/branding/brandingTheme.js +3 -3
  60. package/package.json +20 -9
  61. package/utils/index.js +0 -1
@@ -0,0 +1,286 @@
1
+ var _th, _th2, _th3, _th4, _a, _a2;
2
+ /* eslint-disable react/no-danger */
3
+ import * as React from 'react';
4
+ import { styled, alpha } from '@mui/material/styles';
5
+ import Tooltip from '@mui/material/Tooltip';
6
+ import { useTranslate } from "../../i18n/index.js";
7
+ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../../branding/index.js";
8
+ import { StyledTableContainer } from "./StyledTableContainer.js";
9
+ import { ApiWarningAlert } from "../ApiWarningAlert.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const StyledTable = styled('table')(({
12
+ theme
13
+ }) => ({
14
+ // Override docs/src/modules/components/MarkdownElement styles
15
+ '&&': {
16
+ display: 'table',
17
+ width: '100%'
18
+ },
19
+ '& .type-column': {
20
+ minWidth: '20%'
21
+ },
22
+ '& .default-column': {
23
+ minWidth: '20%'
24
+ },
25
+ '& .MuiApi-table-item-title': {
26
+ minWidth: '20%',
27
+ fontFamily: theme.typography.fontFamilyCode,
28
+ fontWeight: theme.typography.fontWeightSemiBold,
29
+ fontSize: theme.typography.pxToRem(13),
30
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`
31
+ },
32
+ '& .MuiApi-table-item-type': {
33
+ ...theme.typography.caption,
34
+ fontFamily: theme.typography.fontFamilyCode,
35
+ fontWeight: theme.typography.fontWeightRegular,
36
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
37
+ padding: '1px 4px',
38
+ borderRadius: 6,
39
+ border: '1px solid',
40
+ borderColor: alpha(darkTheme.palette.primary[100], 0.8),
41
+ backgroundColor: `var(--muidocs-palette-primary-50, ${lightTheme.palette.primary[50]})`
42
+ },
43
+ '& .MuiApi-table-item-signature-type': {
44
+ textDecoration: 'underline',
45
+ textDecorationStyle: 'dotted',
46
+ textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4),
47
+ fontWeight: theme.typography.fontWeightMedium,
48
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
49
+ '&:hover': {
50
+ textDecorationColor: 'inherit'
51
+ },
52
+ cursor: 'help'
53
+ },
54
+ '& .MuiApi-table-item-default': {
55
+ ...theme.typography.caption,
56
+ fontFamily: theme.typography.fontFamilyCode,
57
+ fontWeight: theme.typography.fontWeightRegular,
58
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
59
+ padding: '1px 4px',
60
+ borderRadius: 6,
61
+ border: '1px solid',
62
+ borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
63
+ backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`
64
+ },
65
+ '& .MuiPropTable-description-column': {
66
+ width: '40%',
67
+ paddingRight: 8,
68
+ '& .prop-table-description': {
69
+ marginBottom: 0
70
+ },
71
+ '& .prop-table-additional-description': {
72
+ marginTop: 12,
73
+ marginBottom: 0
74
+ },
75
+ '& .prop-table-alert': {
76
+ '& .MuiAlert-icon': {
77
+ margin: 0
78
+ }
79
+ }
80
+ },
81
+ '& .prop-table-signature': {
82
+ marginTop: 12,
83
+ marginBottom: 0,
84
+ display: 'flex',
85
+ flexDirection: 'column',
86
+ gap: 16,
87
+ '& .prop-table-title': {
88
+ fontWeight: theme.typography.fontWeightMedium
89
+ }
90
+ }
91
+ }), ({
92
+ theme
93
+ }) => ({
94
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
95
+ '& .MuiApi-table-item-title': {
96
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
97
+ },
98
+ '& .MuiApi-table-item-type': {
99
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
100
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`,
101
+ backgroundColor: alpha(darkTheme.palette.primary[900], 0.3)
102
+ },
103
+ '& .MuiApi-table-item-signature-type': {
104
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`,
105
+ textDecorationColor: alpha(darkTheme.palette.primary.main, 0.6)
106
+ },
107
+ '& .MuiApi-table-item-default': {
108
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
109
+ backgroundColor: `var(--muidocs-palette-grey-900, ${darkTheme.palette.grey[900]})`,
110
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
111
+ },
112
+ '& .prop-table-signature': {
113
+ '& .prop-table-title': {
114
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`
115
+ }
116
+ }
117
+ }
118
+ }));
119
+ function PropDescription({
120
+ description
121
+ }) {
122
+ const isUlPresent = description.includes('<ul>');
123
+ const ComponentToRender = isUlPresent ? 'div' : 'p';
124
+ return /*#__PURE__*/_jsx(ComponentToRender, {
125
+ className: "prop-table-description" // This className is used by Algolia
126
+ ,
127
+ dangerouslySetInnerHTML: {
128
+ __html: description
129
+ }
130
+ });
131
+ }
132
+ export default function PropertiesTable(props) {
133
+ const {
134
+ properties
135
+ } = props;
136
+ const hasDefaultColumn = properties.some(item => item.propDefault !== undefined);
137
+ const t = useTranslate();
138
+ return /*#__PURE__*/_jsx(StyledTableContainer, {
139
+ children: /*#__PURE__*/_jsxs(StyledTable, {
140
+ children: [/*#__PURE__*/_jsx("thead", {
141
+ children: /*#__PURE__*/_jsxs("tr", {
142
+ children: [_th || (_th = /*#__PURE__*/_jsx("th", {
143
+ children: 'Name'
144
+ })), _th2 || (_th2 = /*#__PURE__*/_jsx("th", {
145
+ children: 'Type'
146
+ })), hasDefaultColumn && (_th3 || (_th3 = /*#__PURE__*/_jsx("th", {
147
+ children: 'Default'
148
+ }))), _th4 || (_th4 = /*#__PURE__*/_jsx("th", {
149
+ children: 'Description'
150
+ }))]
151
+ })
152
+ }), /*#__PURE__*/_jsx("tbody", {
153
+ children: properties.map(params => {
154
+ const {
155
+ propName,
156
+ description,
157
+ seeMoreDescription,
158
+ requiresRef,
159
+ isOptional,
160
+ isRequired,
161
+ isProPlan,
162
+ isPremiumPlan,
163
+ isDeprecated,
164
+ deprecationInfo,
165
+ typeName,
166
+ propDefault,
167
+ additionalInfo,
168
+ signature,
169
+ signatureArgs,
170
+ signatureReturnDescription,
171
+ hash
172
+ } = params;
173
+ return /*#__PURE__*/_jsxs("tr", {
174
+ id: hash,
175
+ children: [/*#__PURE__*/_jsxs("td", {
176
+ className: "MuiApi-table-item-title algolia-lvl3",
177
+ children: [propName, isRequired ? '*' : '', isOptional ? '?' : '', isProPlan && (_a || (_a = /*#__PURE__*/_jsx("a", {
178
+ href: "/x/introduction/licensing/#pro-plan",
179
+ "aria-label": "Pro plan",
180
+ children: /*#__PURE__*/_jsx("span", {
181
+ className: "plan-pro"
182
+ })
183
+ }))), isPremiumPlan && (_a2 || (_a2 = /*#__PURE__*/_jsx("a", {
184
+ href: "/x/introduction/licensing/#premium-plan",
185
+ "aria-label": "Premium plan",
186
+ children: /*#__PURE__*/_jsx("span", {
187
+ className: "plan-premium"
188
+ })
189
+ })))]
190
+ }), /*#__PURE__*/_jsx("td", {
191
+ className: "type-column",
192
+ children: /*#__PURE__*/_jsx("span", {
193
+ className: "MuiApi-table-item-type",
194
+ dangerouslySetInnerHTML: {
195
+ __html: typeName
196
+ }
197
+ })
198
+ }), hasDefaultColumn && /*#__PURE__*/_jsx("td", {
199
+ className: "default-column",
200
+ children: propDefault ? /*#__PURE__*/_jsx("span", {
201
+ className: "MuiApi-table-item-default",
202
+ children: propDefault
203
+ }) : '-'
204
+ }), /*#__PURE__*/_jsxs("td", {
205
+ className: "MuiPropTable-description-column algolia-content",
206
+ children: [description && /*#__PURE__*/_jsx(PropDescription, {
207
+ description: description
208
+ }), seeMoreDescription && /*#__PURE__*/_jsx("p", {
209
+ dangerouslySetInnerHTML: {
210
+ __html: seeMoreDescription
211
+ },
212
+ className: "prop-table-additional-description"
213
+ }), additionalInfo?.map(key => /*#__PURE__*/_jsx("p", {
214
+ className: "prop-table-additional-description",
215
+ dangerouslySetInnerHTML: {
216
+ __html: t(`api-docs.additional-info.${key}`)
217
+ }
218
+ }, key)), requiresRef && /*#__PURE__*/_jsx(ApiWarningAlert, {
219
+ className: "prop-table-alert",
220
+ children: /*#__PURE__*/_jsx("span", {
221
+ dangerouslySetInnerHTML: {
222
+ __html: t('api-docs.requires-ref')
223
+ }
224
+ })
225
+ }), isDeprecated && /*#__PURE__*/_jsxs(ApiWarningAlert, {
226
+ children: [/*#__PURE__*/_jsx("b", {
227
+ children: t('api-docs.deprecated')
228
+ }), deprecationInfo && /*#__PURE__*/_jsxs(React.Fragment, {
229
+ children: ['-', /*#__PURE__*/_jsx("span", {
230
+ dangerouslySetInnerHTML: {
231
+ __html: deprecationInfo
232
+ }
233
+ })]
234
+ })]
235
+ }), signature && /*#__PURE__*/_jsxs("div", {
236
+ className: "prop-table-signature",
237
+ children: [/*#__PURE__*/_jsxs("span", {
238
+ className: "prop-table-title",
239
+ children: [t('api-docs.signature'), ":"]
240
+ }), /*#__PURE__*/_jsx("code", {
241
+ children: signature
242
+ }), signatureArgs && /*#__PURE__*/_jsx("div", {
243
+ children: /*#__PURE__*/_jsx("ul", {
244
+ children: signatureArgs.map(({
245
+ argName,
246
+ argDescription,
247
+ argType,
248
+ argTypeDescription
249
+ }) => /*#__PURE__*/_jsxs("li", {
250
+ className: "prop-signature-list",
251
+ children: [/*#__PURE__*/_jsxs("code", {
252
+ children: [argName, argType && argTypeDescription && /*#__PURE__*/_jsx(Tooltip, {
253
+ title: /*#__PURE__*/_jsx("span", {
254
+ dangerouslySetInnerHTML: {
255
+ __html: argTypeDescription
256
+ }
257
+ }),
258
+ children: /*#__PURE__*/_jsxs("span", {
259
+ children: [":", ' ', /*#__PURE__*/_jsx("span", {
260
+ className: "MuiApi-table-item-signature-type",
261
+ children: argType
262
+ })]
263
+ })
264
+ })]
265
+ }), ' ', argDescription && /*#__PURE__*/_jsx("span", {
266
+ dangerouslySetInnerHTML: {
267
+ __html: argDescription
268
+ }
269
+ })]
270
+ }, argName))
271
+ })
272
+ }), signatureReturnDescription && /*#__PURE__*/_jsxs("p", {
273
+ children: [t('api-docs.returns'), /*#__PURE__*/_jsx("span", {
274
+ dangerouslySetInnerHTML: {
275
+ __html: signatureReturnDescription
276
+ }
277
+ })]
278
+ })]
279
+ })]
280
+ })]
281
+ }, propName);
282
+ })
283
+ })]
284
+ })
285
+ });
286
+ }
@@ -0,0 +1,6 @@
1
+ import { SlotDefinition } from "../definitions/types.js";
2
+ interface SlotsTableProps {
3
+ slots: SlotDefinition[];
4
+ }
5
+ export default function SlotsTable(props: SlotsTableProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,126 @@
1
+ import { styled, alpha } from '@mui/material/styles';
2
+ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../../branding/index.js";
3
+ import { useTranslate } from "../../i18n/index.js";
4
+ import { StyledTableContainer } from "./StyledTableContainer.js";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const StyledTable = styled('table')(({
7
+ theme
8
+ }) => ({
9
+ // Override docs/src/modules/components/MarkdownElement styles
10
+ '&&': {
11
+ display: 'table',
12
+ width: '100%'
13
+ },
14
+ '& .slot-name': {
15
+ fontFamily: theme.typography.fontFamilyCode,
16
+ fontWeight: theme.typography.fontWeightSemiBold,
17
+ fontSize: theme.typography.pxToRem(13),
18
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`
19
+ },
20
+ '& .class-name': {
21
+ ...theme.typography.caption,
22
+ fontFamily: theme.typography.fontFamilyCode,
23
+ fontWeight: theme.typography.fontWeightRegular,
24
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
25
+ padding: '1px 4px',
26
+ borderRadius: 6,
27
+ border: '1px solid',
28
+ borderColor: alpha(darkTheme.palette.primary[100], 0.8),
29
+ backgroundColor: `var(--muidocs-palette-primary-50, ${lightTheme.palette.primary[50]})`
30
+ },
31
+ '& .item-default': {
32
+ ...theme.typography.caption,
33
+ fontFamily: theme.typography.fontFamilyCode,
34
+ fontWeight: theme.typography.fontWeightRegular,
35
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
36
+ padding: '1px 4px',
37
+ borderRadius: 6,
38
+ border: '1px solid',
39
+ borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
40
+ backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`
41
+ },
42
+ '& .description-column': {
43
+ width: '40%',
44
+ paddingRight: 8
45
+ }
46
+ }), ({
47
+ theme
48
+ }) => ({
49
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
50
+ '& .slot-name': {
51
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
52
+ },
53
+ '& .class-name': {
54
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
55
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`,
56
+ backgroundColor: alpha(darkTheme.palette.primary[900], 0.5)
57
+ },
58
+ '& .item-default': {
59
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
60
+ backgroundColor: `var(--muidocs-palette-grey-900, ${darkTheme.palette.grey[900]})`,
61
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
62
+ }
63
+ }
64
+ }));
65
+ export default function SlotsTable(props) {
66
+ const {
67
+ slots
68
+ } = props;
69
+ const t = useTranslate();
70
+ return /*#__PURE__*/_jsx(StyledTableContainer, {
71
+ children: /*#__PURE__*/_jsxs(StyledTable, {
72
+ children: [/*#__PURE__*/_jsx("thead", {
73
+ children: /*#__PURE__*/_jsxs("tr", {
74
+ children: [/*#__PURE__*/_jsx("th", {
75
+ children: t('api-docs.slotName')
76
+ }), /*#__PURE__*/_jsx("th", {
77
+ children: t('api-docs.className')
78
+ }), /*#__PURE__*/_jsx("th", {
79
+ children: t('api-docs.defaultComponent')
80
+ }), /*#__PURE__*/_jsx("th", {
81
+ children: t('api-docs.description')
82
+ })]
83
+ })
84
+ }), /*#__PURE__*/_jsx("tbody", {
85
+ children: slots.map(params => {
86
+ const {
87
+ description,
88
+ className,
89
+ name,
90
+ defaultValue,
91
+ hash
92
+ } = params;
93
+ return /*#__PURE__*/_jsxs("tr", {
94
+ id: hash,
95
+ children: [/*#__PURE__*/_jsx("td", {
96
+ className: "slot-name",
97
+ style: {
98
+ fontWeight: '600'
99
+ },
100
+ children: name
101
+ }), /*#__PURE__*/_jsx("td", {
102
+ className: "MuiApi-table-class-name",
103
+ children: className && /*#__PURE__*/_jsx("span", {
104
+ className: "class-name",
105
+ children: `.${className}`
106
+ })
107
+ }), /*#__PURE__*/_jsx("td", {
108
+ children: defaultValue && /*#__PURE__*/_jsx("code", {
109
+ className: "item-default",
110
+ children: defaultValue
111
+ })
112
+ }), /*#__PURE__*/_jsx("td", {
113
+ className: "description-column",
114
+ children: /*#__PURE__*/_jsx("span", {
115
+ // eslint-disable-next-line react/no-danger
116
+ dangerouslySetInnerHTML: {
117
+ __html: description || ''
118
+ }
119
+ })
120
+ })]
121
+ }, `${className}-${hash}`);
122
+ })
123
+ })]
124
+ })
125
+ });
126
+ }
@@ -0,0 +1 @@
1
+ export declare const StyledTableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,42 @@
1
+ import { styled, alpha } from '@mui/material/styles';
2
+ import { brandingDarkTheme as darkTheme } from "../../branding/index.js";
3
+ export const StyledTableContainer = styled('div')(({
4
+ theme
5
+ }) => ({
6
+ borderRadius: 12,
7
+ overflowX: 'auto',
8
+ '& table': {
9
+ marginLeft: -1,
10
+ marginRight: -1,
11
+ background: ['linear-gradient(to right, rgb(255, 255, 255) 5%, transparent 90%) local', 'linear-gradient(to right, transparent, rgb(255, 255, 255) 100%) 100% center local', `linear-gradient(to right, ${alpha(theme.palette.grey[500], 0.5)}, transparent 5%) scroll`, `linear-gradient(to left, ${alpha(theme.palette.grey[500], 0.2)}, transparent 5%) scroll`].join(', ')
12
+ },
13
+ '&& th': {
14
+ paddingTop: 8,
15
+ paddingBottom: 8,
16
+ textAlign: 'left',
17
+ fontWeight: theme.typography.fontWeightSemiBold,
18
+ fontSize: theme.typography.pxToRem(14)
19
+ },
20
+ '& tr': {
21
+ scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
22
+ '&:hover': {
23
+ backgroundColor: alpha(darkTheme.palette.grey[50], 0.5)
24
+ },
25
+ '& .MuiPropTable-description-column': {
26
+ minWidth: 300
27
+ }
28
+ }
29
+ }), ({
30
+ theme
31
+ }) => ({
32
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
33
+ '& table': {
34
+ background: [`linear-gradient(to right, ${theme.palette.primaryDark[900]} 5%, transparent 80%) local`, `linear-gradient(to right, transparent, ${theme.palette.primaryDark[900]} 100%) 100% center local`, `linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 10%) scroll`, 'linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent 10%) scroll'].join(', ')
35
+ },
36
+ '& tr': {
37
+ '&:hover': {
38
+ backgroundColor: alpha(darkTheme.palette.primaryDark[800], 0.5)
39
+ }
40
+ }
41
+ }
42
+ }));
@@ -0,0 +1,11 @@
1
+ import type { TableOfContentsEntry } from '@mui/internal-markdown';
2
+ export interface TableOfContentsParams {
3
+ children: (TableOfContentsParams | TableOfContentsEntry)[];
4
+ hash: string;
5
+ text: string;
6
+ }
7
+ export interface LayoutStorageKeys {
8
+ slots: string;
9
+ props: string;
10
+ classes: string;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 9.0.0-beta.0
4
+
5
+ <!-- generated comparing v9.0.0-alpha.4..master -->
6
+
7
+ _Mar 25, 2026_
8
+
9
+ A big thanks to the 8 contributors who made this release possible.
10
+
11
+ ### `@mui/material@9.0.0-beta.0`
12
+
13
+ #### Breaking Changes
14
+
15
+ - [linear-progress] Remove deprecated CSS classes (#48068) @mj12albert
16
+ - [list-item, list-item-text] Remove deprecated props (#48042) @siriwatknp
17
+ - [button-group] Remove deprecated classes (#48043) @siriwatknp
18
+ - [card] Remove deprecated CardHeader props (#47995) @silviuaavram
19
+ - [checkbox][radio][switch] Remove deprecated inputProps and inputRef (#48059) @siriwatknp
20
+ - [chip] Remove deprecated classes (#48046) @silviuaavram
21
+ - [dialog][modal][drawer][swipeabledrawer] Remove deprecated props and classes (#48039) @silviuaavram
22
+ - [divider] Remove deprecated CSS classes (#48075) @siriwatknp
23
+ - [drawer] Remove deprecated CSS classes (#48077) @siriwatknp
24
+ - [image-list-item-bar] Remove deprecated CSS classes (#48064) @siriwatknp
25
+ - [inputs] Remove deprecated props & classes (#48071) @mj12albert
26
+ - [material-ui] Remove unnecessary overridesResolvers from styled components (#48082) @ZeeshanTamboli
27
+ - [material-ui][system] Remove deprecated system props from Box, Stack, Typography (#48072) @siriwatknp
28
+ - [pagination-item] Remove deprecated CSS classes (#48076) @siriwatknp
29
+ - [pagination-item] Remove deprecated props (#48038) @siriwatknp
30
+ - [rating] Remove deprecated IconContainerComponent (#48019) @siriwatknp
31
+ - [select] Remove deprecated CSS classes (#48065) @mj12albert
32
+ - [slider] Remove deprecated CSS classes (#48074) @siriwatknp
33
+ - [step-connector][step-content][step-label] Remove deprecated props and classes (#48058) @siriwatknp
34
+ - [tabs][tab] Remove deprecated CSS classes (#48078) @siriwatknp
35
+ - [table-pagination][table-sort-label] Remove deprecated props and classes (#48060) @siriwatknp
36
+ - [toggle-button-group] Remove deprecated classes (#48061) @siriwatknp
37
+
38
+ #### Changes
39
+
40
+ - [system] Improve performance when using sx prop (#44254) @romgrk
41
+
42
+ ### `@mui/codemod@9.0.0-beta.0`
43
+
44
+ - [codemod] Add missing codemod links in upgrade guide (#48069) @silviuaavram
45
+
46
+ ### Docs
47
+
48
+ - Mention all breaking changes in changelog (#48091) @silviuaavram
49
+ - Fix link to upgrade-to-v9 docs in release CHANGELOG (#48081) @ZeeshanTamboli
50
+
51
+ ### Core
52
+
53
+ - Update browserslistrc (#48085) @silviuaavram
54
+ - [code-infra] Prevent major version updates of bundler/framework packages in bundling fixtures (#48062) @Copilot
55
+ - [code-infra][icons-material] Avoid material utils barrel in createSvgIcon (#48029) @anchmelev
56
+ - [docs-infra] Migrate more leaf components to mui-docs (#48018) @brijeshb42
57
+
58
+ All contributors of this release in alphabetical order: @anchmelev, @brijeshb42, @Copilot, @mj12albert, @romgrk, @silviuaavram, @siriwatknp, @ZeeshanTamboli
59
+
3
60
  ## 9.0.0-alpha.4
4
61
 
5
62
  <!-- generated comparing v9.0.0-alpha.3..master -->
@@ -118,7 +175,7 @@ A big thanks to the 11 contributors who made this release possible.
118
175
  - [tablepagination] Format pagination numbers according to locale (#47803) @siriwatknp
119
176
  - [textfield] Use non-native label for `<TextField select/>` (#47958) @mj12albert
120
177
 
121
- Check out the [v9 upgrade guide](https://mui.com/material-ui/migration/upgrade-to-v9/).
178
+ Check out the [v9 upgrade guide](https://next.mui.com/material-ui/migration/upgrade-to-v9/).
122
179
 
123
180
  #### Changes
124
181
 
@@ -167,11 +224,16 @@ A big thanks to the 10 contributors who made this release possible. Here are som
167
224
 
168
225
  ### `@mui/material@9.0.0-alpha.3`
169
226
 
227
+ #### Breaking Changes
228
+
229
+ - [stepper][menulist][tabs] Improve accessibility (#47687) @silviuaavram
230
+
231
+ #### Changes
232
+
170
233
  - [autocomplete] Add `root` slot (#47852) @GerardasB
171
234
  - [autocomplete] Fix popup reopening on window focus regain with openOnFocus (#47790) @aman44444
172
235
  - [autocomplete] Support full slots for clearIndicator and popupIndicator (#47891) @silviuaavram
173
236
  - [material-ui] Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)" (#47927) @sai6855
174
- - [stepper][menulist][tabs] Improve accessibility (#47687) @silviuaavram
175
237
 
176
238
  ### Docs
177
239
 
@@ -229,16 +291,21 @@ A big thanks to the 13 contributors who made this release possible. Here are som
229
291
 
230
292
  ### @mui/material@9.0.0-alpha.1
231
293
 
294
+ #### Breaking Changes
295
+
232
296
  - [Autocomplete] Prevents Autocomplete menu from opening on right click (#47797) @silviuaavram
233
297
  - [Backdrop] Remove aria-hidden by default (#47798) @silviuaavram
234
298
  - [ButtonBase] Ensure that onClick propagates when non-native button is clicked (#47800) @silviuaavram
235
299
  - [Dialog][Modal] Remove `disableEscapeKeyDown` prop (#47695) @silviuaavram
236
300
  - [Grid] Remove system props support (#47846) @siriwatknp
237
- - [TableCell][theme] Apply `alpha` before color mixing to border bottom color when nativeColor + cssVariables is used (#47762) @ZeeshanTamboli
238
301
  - [theme] Remove MuiTouchRipple from theme component types (#47849) @siriwatknp
239
- - [Tooltip] Fix error is thrown when wrapping an input which is disabled while focused (#47684) @ZeeshanTamboli
240
302
  - [useAutocomplete] Improve isOptionEqualToValue value argument type (#47801) @silviuaavram
241
303
 
304
+ #### Changes
305
+
306
+ - [TableCell][theme] Apply `alpha` before color mixing to border bottom color when nativeColor + cssVariables is used (#47762) @ZeeshanTamboli
307
+ - [Tooltip] Fix error is thrown when wrapping an input which is disabled while focused (#47684) @ZeeshanTamboli
308
+
242
309
  ### Docs
243
310
 
244
311
  - [docs] Add updated community theme resource (#47847) @PeterTYLiu
@@ -131,17 +131,21 @@ export function CookieConsentDialog() {
131
131
  children: [/*#__PURE__*/_jsx(Typography, {
132
132
  variant: "subtitle2",
133
133
  id: "cookie-consent-dialog-title",
134
- textAlign: {
135
- xs: 'center',
136
- sm: 'start'
134
+ sx: {
135
+ textAlign: {
136
+ xs: 'center',
137
+ sm: 'start'
138
+ }
137
139
  },
138
140
  children: "Cookie Preferences"
139
141
  }), /*#__PURE__*/_jsx(Typography, {
140
142
  id: "cookie-consent-dialog-description",
141
143
  variant: "body2",
142
- textAlign: {
143
- xs: 'center',
144
- sm: 'start'
144
+ sx: {
145
+ textAlign: {
146
+ xs: 'center',
147
+ sm: 'start'
148
+ }
145
149
  },
146
150
  children: "We use cookies to understand site usage and improve our content. This includes third-party analytics."
147
151
  })]
@@ -1,5 +1,4 @@
1
1
  import { getTheme } from "../branding/index.js";
2
- // eslint-disable-next-line import/prefer-default-export
3
2
  export function printConsoleBanner() {
4
3
  if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
5
4
  window.theme = getTheme('ltr');
@@ -6,7 +6,7 @@ import { mapTranslations } from "../i18n/index.js";
6
6
  * @param options.translationsContext - A webpack require.context pointing at translation JSON files.
7
7
  * e.g. `require.context('docs/translations', false, /\.\/translations.*\.json$/)`
8
8
  */
9
- // eslint-disable-next-line import/prefer-default-export
9
+
10
10
  export function createGetInitialProps(options) {
11
11
  async function getInitialPropsApp({
12
12
  ctx,
@@ -1,7 +1,5 @@
1
1
  import { loadCSS } from 'fg-loadcss';
2
2
  let dependenciesLoaded = false;
3
-
4
- // eslint-disable-next-line import/prefer-default-export
5
3
  export function loadDependencies() {
6
4
  if (dependenciesLoaded) {
7
5
  return;
@@ -2,8 +2,6 @@
2
2
  // Filter sessions instead of individual events so that we can track multiple metrics per device.
3
3
  // See https://github.com/GoogleChromeLabs/web-vitals-report to use this data
4
4
  const disableWebVitalsReporting = Math.random() > 0.0001;
5
-
6
- // eslint-disable-next-line import/prefer-default-export
7
5
  export function reportWebVitals({
8
6
  id,
9
7
  name,
@@ -49,8 +49,6 @@ function forcePageReload(registration) {
49
49
  // Add a listener in case a new SW is found,
50
50
  registration.addEventListener('updatefound', listenInstalledStateChange);
51
51
  }
52
-
53
- // eslint-disable-next-line import/prefer-default-export
54
52
  export async function registerServiceWorker(swPath) {
55
53
  if ('serviceWorker' in navigator && process.env.NODE_ENV === 'production' && window.location.host.includes('mui.com')) {
56
54
  // register() automatically attempts to refresh the sw.js.