@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
@@ -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 '@mui/docs/branding';
8
- import { fontClasses } from '@mui/docs/nextFonts';
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
@@ -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
- color: "text.secondary",
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 '@mui/docs/i18n';
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, {
@@ -12,8 +12,6 @@ function nProgressDone() {
12
12
  nProgressStart.clear();
13
13
  NProgress.done();
14
14
  }
15
-
16
- // eslint-disable-next-line import/prefer-default-export
17
15
  export function NextNProgressBar() {
18
16
  const router = useRouter();
19
17
  React.useEffect(() => {
@@ -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-alpha.4",
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.28.6",
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.4"
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
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/prefer-default-export
2
1
  export { default as loadScript } from "./loadScript.js";