@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.
- package/ApiPage/ApiWarningAlert.d.ts +10 -0
- package/ApiPage/ApiWarningAlert.js +22 -0
- package/ApiPage/definitions/classes.d.ts +18 -0
- package/ApiPage/definitions/classes.js +54 -0
- package/ApiPage/definitions/index.d.ts +4 -0
- package/ApiPage/definitions/index.js +4 -0
- package/ApiPage/definitions/properties.d.ts +58 -0
- package/ApiPage/definitions/properties.js +110 -0
- package/ApiPage/definitions/slots.d.ts +16 -0
- package/ApiPage/definitions/slots.js +39 -0
- package/ApiPage/definitions/types.d.ts +53 -0
- package/ApiPage/definitions/types.js +1 -0
- package/ApiPage/index.d.ts +2 -0
- package/ApiPage/index.js +2 -0
- package/ApiPage/list/ClassesList.d.ts +11 -0
- package/ApiPage/list/ClassesList.js +103 -0
- package/ApiPage/list/ExpandableApiItem.d.ts +18 -0
- package/ApiPage/list/ExpandableApiItem.js +241 -0
- package/ApiPage/list/PropertiesList.d.ts +7 -0
- package/ApiPage/list/PropertiesList.js +263 -0
- package/ApiPage/list/SlotsList.d.ts +7 -0
- package/ApiPage/list/SlotsList.js +93 -0
- package/ApiPage/list/index.d.ts +1 -0
- package/ApiPage/list/index.js +1 -0
- package/ApiPage/private.d.ts +3 -0
- package/ApiPage/private.js +3 -0
- package/ApiPage/sections/ClassesSection.d.ts +34 -0
- package/ApiPage/sections/ClassesSection.js +76 -0
- package/ApiPage/sections/PropertiesSection.d.ts +45 -0
- package/ApiPage/sections/PropertiesSection.js +59 -0
- package/ApiPage/sections/SlotsSection.d.ts +24 -0
- package/ApiPage/sections/SlotsSection.js +61 -0
- package/ApiPage/sections/ToggleDisplayOption.d.ts +17 -0
- package/ApiPage/sections/ToggleDisplayOption.js +158 -0
- package/ApiPage/sections/index.d.ts +4 -0
- package/ApiPage/sections/index.js +4 -0
- package/ApiPage/table/ClassesTable.d.ts +7 -0
- package/ApiPage/table/ClassesTable.js +116 -0
- package/ApiPage/table/PropertiesTable.d.ts +6 -0
- package/ApiPage/table/PropertiesTable.js +286 -0
- package/ApiPage/table/SlotsTable.d.ts +6 -0
- package/ApiPage/table/SlotsTable.js +126 -0
- package/ApiPage/table/StyledTableContainer.d.ts +1 -0
- package/ApiPage/table/StyledTableContainer.js +42 -0
- package/ApiPage/types.d.ts +11 -0
- package/ApiPage/types.js +1 -0
- package/CHANGELOG.md +71 -4
- package/DocsApp/AnalyticsProvider.js +10 -6
- package/DocsApp/consoleBanner.js +0 -1
- package/DocsApp/createGetInitialProps.js +1 -1
- package/DocsApp/loadDependencies.js +0 -2
- package/DocsApp/reportWebVitals.js +0 -2
- package/DocsApp/serviceWorker.js +0 -2
- package/Document/Document.js +2 -2
- package/Document/getInitialProps.js +0 -2
- package/InfoCard/InfoCard.js +9 -5
- package/Link/SkipLink.js +1 -3
- package/NextNProgressBar/NextNProgressBar.js +0 -2
- package/branding/brandingTheme.js +3 -3
- package/package.json +20 -9
- package/utils/index.js +0 -1
package/Document/Document.js
CHANGED
|
@@ -4,8 +4,8 @@ import Script from 'next/script';
|
|
|
4
4
|
import { Html, Head, Main, NextScript } from 'next/document';
|
|
5
5
|
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
6
6
|
import MuiInitColorSchemeScript from '@mui/material/InitColorSchemeScript';
|
|
7
|
-
import { getMetaThemeColor } from
|
|
8
|
-
import { fontClasses } from
|
|
7
|
+
import { getMetaThemeColor } from "../branding/index.js";
|
|
8
|
+
import { fontClasses } from "../nextFonts/index.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
export function Document({
|
|
11
11
|
canonicalAsServer,
|
|
@@ -3,8 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import { documentGetInitialProps } from '@mui/material-nextjs/v13-pagesRouter';
|
|
4
4
|
import createEmotionCache from "../DocsApp/createEmotionCache.js";
|
|
5
5
|
import { pathnameToLanguage } from "../helpers/helpers.js";
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
8
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
7
|
export function createGetInitialProps({
|
|
10
8
|
setupStyledComponents = false
|
package/InfoCard/InfoCard.js
CHANGED
|
@@ -68,18 +68,22 @@ export function InfoCard(props) {
|
|
|
68
68
|
children: [svg && svg, icon && /*#__PURE__*/_jsx(GlowingIconContainer, {
|
|
69
69
|
icon: icon
|
|
70
70
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
71
|
-
fontWeight: "semiBold",
|
|
72
71
|
component: "h3",
|
|
73
|
-
color: "text.primary",
|
|
74
72
|
variant: "body2",
|
|
75
|
-
mt: icon ? 2 : 0,
|
|
76
|
-
mb: description ? 0.5 : 0,
|
|
77
73
|
className: classNameTitle,
|
|
78
74
|
...titleProps,
|
|
75
|
+
sx: [{
|
|
76
|
+
fontWeight: 'semiBold',
|
|
77
|
+
color: 'text.primary',
|
|
78
|
+
mt: icon ? 2 : 0,
|
|
79
|
+
mb: description ? 0.5 : 0
|
|
80
|
+
}, ...(Array.isArray(titleProps?.sx) ? titleProps.sx : [titleProps?.sx])],
|
|
79
81
|
children: title
|
|
80
82
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
81
83
|
variant: "body2",
|
|
82
|
-
|
|
84
|
+
sx: {
|
|
85
|
+
color: 'text.secondary'
|
|
86
|
+
},
|
|
83
87
|
className: classNameDescription,
|
|
84
88
|
children: description
|
|
85
89
|
})]
|
package/Link/SkipLink.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import MuiLink from '@mui/material/Link';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
|
-
import { useTranslate } from
|
|
3
|
+
import { useTranslate } from "../i18n/index.js";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const StyledLink = styled(MuiLink)(({
|
|
6
6
|
theme
|
|
@@ -55,8 +55,6 @@ const StyledLink = styled(MuiLink)(({
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
}));
|
|
58
|
-
|
|
59
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
60
58
|
export function SkipLink() {
|
|
61
59
|
const t = useTranslate();
|
|
62
60
|
return /*#__PURE__*/_jsx(StyledLink, {
|
|
@@ -1192,12 +1192,12 @@ export function getThemedComponents() {
|
|
|
1192
1192
|
IconComponent: ArrowDropDownRounded
|
|
1193
1193
|
},
|
|
1194
1194
|
styleOverrides: {
|
|
1195
|
-
iconFilled: {
|
|
1196
|
-
top: 'calc(50% - .25em)'
|
|
1197
|
-
},
|
|
1198
1195
|
root: ({
|
|
1199
1196
|
theme
|
|
1200
1197
|
}) => ({
|
|
1198
|
+
'& .MuiSelect-filled ~ .MuiSelect-icon': {
|
|
1199
|
+
top: 'calc(50% - .25em)'
|
|
1200
|
+
},
|
|
1201
1201
|
variants: [{
|
|
1202
1202
|
props: {
|
|
1203
1203
|
variant: 'outlined'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/docs",
|
|
3
|
-
"version": "9.0.0-
|
|
3
|
+
"version": "9.0.0-beta.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "MUI Docs - Documentation building blocks.",
|
|
6
6
|
"keywords": [
|
|
@@ -22,26 +22,27 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/runtime": "^7.
|
|
25
|
+
"@babel/runtime": "^7.29.2",
|
|
26
26
|
"clipboard-copy": "^4.0.1",
|
|
27
27
|
"clsx": "^2.1.1",
|
|
28
|
+
"es-toolkit": "^1.45.1",
|
|
28
29
|
"fg-loadcss": "^3.1.0",
|
|
29
30
|
"nprogress": "^0.2.0",
|
|
30
31
|
"prop-types": "^15.8.1",
|
|
31
32
|
"stylis": "4.2.0",
|
|
32
|
-
"@mui/internal-markdown": "^3.0.
|
|
33
|
+
"@mui/internal-markdown": "^3.0.5"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"@emotion/cache": "^11.14.0",
|
|
36
37
|
"@emotion/react": "^11.14.0",
|
|
37
38
|
"@emotion/styled": "^11.14.1",
|
|
38
39
|
"@mui/base": "^5.0.0 || ^5.0.0-beta || ^7.0.0 || ^7.0.0-beta",
|
|
39
|
-
"@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
40
|
-
"@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
41
|
-
"@mui/material-nextjs": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
42
|
-
"@mui/stylis-plugin-rtl": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
43
|
-
"@mui/system": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
44
|
-
"@mui/utils": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha",
|
|
40
|
+
"@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
41
|
+
"@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
42
|
+
"@mui/material-nextjs": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
43
|
+
"@mui/stylis-plugin-rtl": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
44
|
+
"@mui/system": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
45
|
+
"@mui/utils": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^9.0.0 || ^9.0.0-alpha || ^9.0.0-beta",
|
|
45
46
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
46
47
|
"@types/stylis": "^4.2.7",
|
|
47
48
|
"chai": "^6.0.1",
|
|
@@ -76,6 +77,16 @@
|
|
|
76
77
|
"default": "./Ad/index.js"
|
|
77
78
|
}
|
|
78
79
|
},
|
|
80
|
+
"./ApiPage": {
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./ApiPage/index.d.ts",
|
|
83
|
+
"default": "./ApiPage/index.js"
|
|
84
|
+
},
|
|
85
|
+
"default": {
|
|
86
|
+
"types": "./ApiPage/index.d.ts",
|
|
87
|
+
"default": "./ApiPage/index.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
79
90
|
"./CodeCopy": {
|
|
80
91
|
"import": {
|
|
81
92
|
"types": "./CodeCopy/index.d.ts",
|
package/utils/index.js
CHANGED