@mui/docs 9.0.0-alpha.3 → 9.0.0-alpha.4

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 (48) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/DemoContext/DemoContext.d.ts +1 -1
  3. package/DocsApp/DocsApp.d.ts +79 -0
  4. package/DocsApp/DocsApp.js +105 -0
  5. package/{GoogleAnalytics → DocsApp}/GoogleAnalytics.js +4 -4
  6. package/DocsApp/StyledEngineProvider.d.ts +8 -0
  7. package/{StyledEngineProvider → DocsApp}/StyledEngineProvider.js +2 -8
  8. package/DocsApp/consoleBanner.d.ts +1 -0
  9. package/DocsApp/consoleBanner.js +19 -0
  10. package/DocsApp/createGetInitialProps.d.ts +30 -0
  11. package/DocsApp/createGetInitialProps.js +29 -0
  12. package/DocsApp/index.d.ts +5 -0
  13. package/DocsApp/index.js +4 -0
  14. package/DocsApp/loadDependencies.d.ts +1 -0
  15. package/DocsApp/loadDependencies.js +11 -0
  16. package/DocsApp/reportWebVitals.d.ts +13 -0
  17. package/DocsApp/reportWebVitals.js +24 -0
  18. package/DocsApp/serviceWorker.d.ts +1 -0
  19. package/DocsApp/serviceWorker.js +61 -0
  20. package/Document/getInitialProps.js +3 -3
  21. package/PageContext/PageContext.d.ts +6 -5
  22. package/branding/BrandingCssVarsProvider.d.ts +9 -5
  23. package/branding/BrandingCssVarsProvider.js +1 -1
  24. package/branding/brandingTheme.js +79 -72
  25. package/codeStyling/codeStyling.d.ts +7 -10
  26. package/codeStyling/codeStyling.js +0 -4
  27. package/codeVariant/codeVariant.d.ts +7 -10
  28. package/codeVariant/codeVariant.js +0 -4
  29. package/constants/constants.d.ts +10 -10
  30. package/constants/index.d.ts +1 -1
  31. package/constants/index.js +1 -1
  32. package/package.json +28 -48
  33. package/webpack/index.d.ts +17 -0
  34. package/webpack/index.js +1 -0
  35. package/AnalyticsProvider/index.d.ts +0 -1
  36. package/AnalyticsProvider/index.js +0 -1
  37. package/GoogleAnalytics/index.d.ts +0 -1
  38. package/GoogleAnalytics/index.js +0 -1
  39. package/StyledEngineProvider/StyledEngineProvider.d.ts +0 -9
  40. package/StyledEngineProvider/index.d.ts +0 -1
  41. package/StyledEngineProvider/index.js +0 -1
  42. package/createEmotionCache/index.d.ts +0 -1
  43. package/createEmotionCache/index.js +0 -1
  44. /package/{AnalyticsProvider → DocsApp}/AnalyticsProvider.d.ts +0 -0
  45. /package/{AnalyticsProvider → DocsApp}/AnalyticsProvider.js +0 -0
  46. /package/{GoogleAnalytics → DocsApp}/GoogleAnalytics.d.ts +0 -0
  47. /package/{createEmotionCache → DocsApp}/createEmotionCache.d.ts +0 -0
  48. /package/{createEmotionCache → DocsApp}/createEmotionCache.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,159 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 9.0.0-alpha.4
4
+
5
+ <!-- generated comparing v9.0.0-alpha.3..master -->
6
+
7
+ _Mar 20, 2026_
8
+
9
+ A big thanks to the 11 contributors who made this release possible.
10
+
11
+ ### `@mui/material@9.0.0-alpha.4`
12
+
13
+ #### Breaking Changes
14
+
15
+ - [accordion] Remove deprecated props (#47963) @silviuaavram
16
+ - `TransitionComponent`
17
+ - `TransitionProps`
18
+ - [accordionsummary] Remove deprecated CSS class (#48006) @silviuaavram
19
+ - `contentGutters`
20
+ - [alert] Remove deprecated CSS classes (#48011) @silviuaavram
21
+ - `standardSuccess`
22
+ - `standardInfo`
23
+ - `standardWarning`
24
+ - `standardError`
25
+ - `outlinedSuccess`
26
+ - `outlinedInfo`
27
+ - `outlinedWarning`
28
+ - `outlinedError`
29
+ - `filledSuccess`
30
+ - `filledInfo`
31
+ - `filledWarning`
32
+ - `filledError`
33
+ - [alert] Remove deprecated props (#47965) @silviuaavram
34
+ - `components`
35
+ - `componentsProps`
36
+ - [autocomplete] Remove deprecated props (#47864) @ZeeshanTamboli
37
+ - `ChipProps`
38
+ - `componentsProps`
39
+ - `ListboxComponent`
40
+ - `ListboxProps`
41
+ - `PaperComponent`
42
+ - `PopperComponent`
43
+ - `renderTags`
44
+ - [avatar] Remove deprecated props (#47966) @silviuaavram
45
+ - `imgProps`
46
+ - [avatargroup] Remove deprecated props (#47968) @silviuaavram
47
+ - `componentsProps`
48
+ - [backdrop] Remove deprecated props (#47991) @silviuaavram
49
+ - `components`
50
+ - `componentsProps`
51
+ - `TransitionComponent`
52
+ - [badge] Remove deprecated props (#47993) @silviuaavram
53
+ - `components`
54
+ - `componentsProps`
55
+ - [button] Remove deprecated CSS classes (#48012) @silviuaavram
56
+ - Color variant classes: `textInherit`, `outlinedPrimary`, `containedSecondary`, etc.
57
+ - Size classes: `textSizeSmall`, `iconSizeMedium`, etc.
58
+ - [circularprogress] Remove deprecated CSS classes (#48014) @silviuaavram
59
+ - `circleDeterminate`
60
+ - `circleIndeterminate`
61
+ - [divider] Remove deprecated prop (#48013) @atharva3333
62
+ - `light`
63
+ - [formcontrollabel] Remove deprecated props (#48032) @atharva3333
64
+ - `componentsProps`
65
+ - [menu] Remove deprecated props (#48021) @siriwatknp
66
+ - `MenuListProps`
67
+ - `PaperProps`
68
+ - `TransitionProps`
69
+ - [mobilestepper] Remove deprecated props (#48041) @siriwatknp
70
+ - `LinearProgressProps`
71
+ - [popover] Remove deprecated props (#48021) @siriwatknp
72
+ - `BackdropComponent`
73
+ - `BackdropProps`
74
+ - `PaperProps`
75
+ - `TransitionComponent`
76
+ - `TransitionProps`
77
+ - [popper] Remove deprecated props (#48020) @siriwatknp
78
+ - `components`
79
+ - `componentsProps`
80
+ - [select] Remove deprecated props passed via `MenuProps` (#48021) @siriwatknp
81
+ - `MenuListProps`
82
+ - `PaperProps`
83
+ - `TransitionProps`
84
+ - [slider] Remove deprecated props (#47996) @siriwatknp
85
+ - `components`
86
+ - `componentsProps`
87
+ - [speeddial] Remove deprecated props (#47998) @siriwatknp
88
+ - `TransitionComponent`
89
+ - `TransitionProps`
90
+ - [speeddialaction] Remove deprecated props (#47998) @siriwatknp
91
+ - `FabProps`
92
+ - `tooltipTitle`
93
+ - `tooltipPlacement`
94
+ - `tooltipOpen`
95
+ - `TooltipClasses`
96
+ - [tabs] Remove deprecated props (#48017) @siriwatknp
97
+ - `ScrollButtonComponent`
98
+ - `TabIndicatorProps`
99
+ - `TabScrollButtonProps`
100
+ - `slots.StartScrollButtonIcon`
101
+ - `slots.EndScrollButtonIcon`
102
+ - [textfield] Remove deprecated props (#47878) @ZeeshanTamboli
103
+ - `InputProps`
104
+ - `inputProps`
105
+ - `SelectProps`
106
+ - `InputLabelProps`
107
+ - `FormHelperTextProps`
108
+ - [tooltip] Remove deprecated props (#47988) @siriwatknp
109
+ - `components`
110
+ - `componentsProps`
111
+ - `PopperComponent`
112
+ - `PopperProps`
113
+ - `TransitionComponent`
114
+ - `TransitionProps`
115
+ - [typography] Remove deprecated prop (#47986) @siriwatknp
116
+ - `paragraph`
117
+ - [buttonbase] Key handlers should not run on a disabled non-native button (#48003) @mj12albert
118
+ - [tablepagination] Format pagination numbers according to locale (#47803) @siriwatknp
119
+ - [textfield] Use non-native label for `<TextField select/>` (#47958) @mj12albert
120
+
121
+ Check out the [v9 upgrade guide](https://mui.com/material-ui/migration/upgrade-to-v9/).
122
+
123
+ #### Changes
124
+
125
+ - [autocomplete] Optimize selected option lookup (#47953) @anchmelev
126
+ - [buttonbase] Fix native button detection (#47985) @mj12albert
127
+ - [inputbase] Fix test using removed InputProps on TextField (#48000) @siriwatknp
128
+ - [popper] Add missing classes export (#48031) @mj12albert
129
+ - [select] Fix focus visible always set on menu item (#47912) @silviuaavram
130
+ - [slider] Fix focus visible styles incorrectly applied by pointer (#47894) @mj12albert
131
+ - [slider] Accept readonly array for the value prop (#47936) @pcorpet
132
+
133
+ ### `@mui/codemod@9.0.0-alpha.4`
134
+
135
+ - [codemod] Add slot key rename to `tabs-props` codemod and add to README (#48035) @siriwatknp
136
+ - [codemod] Add card-header-props migration guide (#48005) @siriwatknp
137
+
138
+ ### Docs
139
+
140
+ - [blog] Lowercase 2026-MUI-X-price-changes blog post URL (#47871) @Janpot
141
+ - [docs] Wide docs layout (#47950) @noraleonte
142
+ - [docs] Mention the list of props removed in upgrade guide (#48010) @silviuaavram
143
+ - [docs] Update Autocomplete deprecated props removal migration guide docs (#47990) @ZeeshanTamboli
144
+ - [docs-infra] Extract shared App component from \_app into @mui/docs (#47933) @brijeshb42
145
+ - [docs-infra] Expose global theme object (#47964) @Janpot
146
+ - [docs][system] Update `styled` API docs for easier understanding (#47957) @olivier-lxo
147
+
148
+ ### Core
149
+
150
+ - [code-infra] Add pkg-pr-new as dev dependency (#47992) @Janpot
151
+ - [code-infra] Remove CI coverage collection and upload to Codecov (#47930) @Janpot
152
+ - [core] Migrate to ESLint 10 (#47872) @brijeshb42
153
+ - [core] Remove GridLegacy component (#47956) @siriwatknp
154
+
155
+ All contributors of this release in alphabetical order: @anchmelev, @atharva3333, @brijeshb42, @Janpot, @mj12albert, @noraleonte, @olivier-lxo, @pcorpet, @silviuaavram, @siriwatknp, @ZeeshanTamboli
156
+
3
157
  ## 9.0.0-alpha.3
4
158
 
5
159
  <!-- generated comparing v9.0.0-alpha.2..master -->
@@ -19,7 +19,7 @@ export interface SandboxConfig {
19
19
  * Generates the root index.js/tsx content for CodeSandbox/StackBlitz.
20
20
  * Receives codeVariant ('TS' | 'JS') for type assertion.
21
21
  */
22
- getRootIndex: (codeVariant: CodeVariant) => string;
22
+ getRootIndex?: (codeVariant: CodeVariant) => string;
23
23
  /**
24
24
  * Primary npm package for this product, used in sandbox generation.
25
25
  * e.g., "@mui/material", "@mui/joy", "@mui/x-data-grid"
@@ -0,0 +1,79 @@
1
+ import * as React from 'react';
2
+ import type { AdConfig } from "../Ad/index.js";
3
+ import type { DemoContextValue } from "../DemoContext/index.js";
4
+ import type { DocsConfig } from "../DocsProvider/index.js";
5
+ import type { MuiPageContext } from "../PageContext/index.js";
6
+ import type { Translations } from "../i18n/index.js";
7
+ import createEmotionCache from "./createEmotionCache.js";
8
+ export interface DocsAppProps {
9
+ /**
10
+ * The Next.js page component.
11
+ */
12
+ Component: React.ComponentType<any> & {
13
+ getLayout?: (page: React.ReactElement) => React.ReactNode;
14
+ };
15
+ /**
16
+ * The Emotion cache for CSS-in-JS. Falls back to a client-side cache.
17
+ */
18
+ emotionCache?: ReturnType<typeof createEmotionCache>;
19
+ /**
20
+ * Page props from Next.js, including userLanguage and translations.
21
+ */
22
+ pageProps: {
23
+ userLanguage: string;
24
+ translations: Translations;
25
+ [key: string]: unknown;
26
+ };
27
+ /**
28
+ * Docs configuration object (from docs/config.ts)
29
+ */
30
+ docsConfig: DocsConfig;
31
+ /**
32
+ * Path to the service worker file, e.g. '/sw.js'
33
+ */
34
+ serviceWorkerPath: string;
35
+ /**
36
+ * The currently active page object
37
+ */
38
+ activePage: MuiPageContext['activePage'];
39
+ /**
40
+ * The parent pages of the active page
41
+ */
42
+ activePageParents: MuiPageContext['activePageParents'];
43
+ /**
44
+ * List of all pages for the product
45
+ */
46
+ pageList: MuiPageContext['pages'];
47
+ /**
48
+ * Product metadata and branding info
49
+ */
50
+ productIdentifier: MuiPageContext['productIdentifier'];
51
+ /**
52
+ * Product identifier string (e.g. 'material-ui')
53
+ */
54
+ productId: MuiPageContext['productId'];
55
+ /**
56
+ * Product category identifier string (e.g. 'core')
57
+ */
58
+ productCategoryId: MuiPageContext['productCategoryId'];
59
+ /**
60
+ * Display name for the product (e.g. 'Material UI')
61
+ */
62
+ demoDisplayName: DemoContextValue['productDisplayName'];
63
+ /**
64
+ * CodeSandbox configuration for demos
65
+ */
66
+ csbConfig: DemoContextValue['csb'];
67
+ /**
68
+ * Optional ad configuration
69
+ */
70
+ adConfig?: Partial<AdConfig>;
71
+ /**
72
+ * Optional wrapper component for theming
73
+ */
74
+ ThemeWrapper?: React.ComponentType<{
75
+ children: React.ReactNode;
76
+ }>;
77
+ }
78
+ declare function DocsApp(props: DocsAppProps): import("react/jsx-runtime").JSX.Element;
79
+ export { DocsApp };
@@ -0,0 +1,105 @@
1
+ var _meta, _GoogleAnalytics;
2
+ import NextHead from 'next/head';
3
+ import * as React from 'react';
4
+ import { CodeCopyProvider } from "../CodeCopy/index.js";
5
+ import DemoContext from "../DemoContext/index.js";
6
+ import { DocsProvider } from "../DocsProvider/index.js";
7
+ import PageContext from "../PageContext/index.js";
8
+ import { ThemeProvider } from "../ThemeContext/index.js";
9
+ import { CodeStylingProvider } from "../codeStyling/index.js";
10
+ import { CodeVariantProvider } from "../codeVariant/index.js";
11
+ import { AnalyticsProvider } from "./AnalyticsProvider.js";
12
+ import GoogleAnalytics from "./GoogleAnalytics.js";
13
+ import DocsStyledEngineProvider from "./StyledEngineProvider.js";
14
+ import createEmotionCache from "./createEmotionCache.js";
15
+ import { loadDependencies } from "./loadDependencies.js";
16
+ import { registerServiceWorker } from "./serviceWorker.js";
17
+
18
+ // Client-side cache, shared for the whole session of the user in the browser.
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
+ const clientSideEmotionCache = createEmotionCache();
21
+ function DocsApp(props) {
22
+ const {
23
+ Component,
24
+ emotionCache = clientSideEmotionCache,
25
+ pageProps,
26
+ docsConfig,
27
+ serviceWorkerPath,
28
+ activePage,
29
+ activePageParents,
30
+ pageList,
31
+ productIdentifier,
32
+ productId,
33
+ productCategoryId,
34
+ demoDisplayName,
35
+ csbConfig,
36
+ adConfig,
37
+ ThemeWrapper = ThemeProvider
38
+ } = props;
39
+ const pageContextValue = React.useMemo(() => ({
40
+ activePage,
41
+ activePageParents,
42
+ pages: pageList,
43
+ productIdentifier,
44
+ productId,
45
+ productCategoryId
46
+ }), [activePage, activePageParents, pageList, productIdentifier, productId, productCategoryId]);
47
+ const demoContextValue = React.useMemo(() => ({
48
+ productDisplayName: demoDisplayName,
49
+ csb: csbConfig
50
+ }), [demoDisplayName, csbConfig]);
51
+ const getLayout = Component.getLayout ?? (page => page);
52
+ React.useEffect(() => {
53
+ loadDependencies();
54
+ registerServiceWorker(serviceWorkerPath);
55
+
56
+ // Remove the server-side injected CSS.
57
+ const jssStyles = document.querySelector('#jss-server-side');
58
+ if (jssStyles) {
59
+ jssStyles.parentElement.removeChild(jssStyles);
60
+ }
61
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
62
+
63
+ return /*#__PURE__*/_jsxs(React.Fragment, {
64
+ children: [/*#__PURE__*/_jsxs(NextHead, {
65
+ children: [_meta || (_meta = /*#__PURE__*/_jsx("meta", {
66
+ name: "viewport",
67
+ content: "initial-scale=1, width=device-width"
68
+ })), /*#__PURE__*/_jsx("meta", {
69
+ name: "mui:productId",
70
+ content: productId
71
+ }), /*#__PURE__*/_jsx("meta", {
72
+ name: "mui:productCategoryId",
73
+ content: productCategoryId
74
+ })]
75
+ }), /*#__PURE__*/_jsx(DocsProvider, {
76
+ config: docsConfig,
77
+ adConfig: adConfig,
78
+ defaultUserLanguage: pageProps.userLanguage,
79
+ translations: pageProps.translations,
80
+ children: /*#__PURE__*/_jsx(CodeCopyProvider, {
81
+ children: /*#__PURE__*/_jsx(CodeStylingProvider, {
82
+ children: /*#__PURE__*/_jsx(CodeVariantProvider, {
83
+ children: /*#__PURE__*/_jsx(PageContext.Provider, {
84
+ value: pageContextValue,
85
+ children: /*#__PURE__*/_jsx(DemoContext.Provider, {
86
+ value: demoContextValue,
87
+ children: /*#__PURE__*/_jsx(ThemeWrapper, {
88
+ children: /*#__PURE__*/_jsx(DocsStyledEngineProvider, {
89
+ cacheLtr: emotionCache,
90
+ children: /*#__PURE__*/_jsxs(AnalyticsProvider, {
91
+ children: [getLayout(/*#__PURE__*/_jsx(Component, {
92
+ ...pageProps
93
+ })), _GoogleAnalytics || (_GoogleAnalytics = /*#__PURE__*/_jsx(GoogleAnalytics, {}))]
94
+ })
95
+ })
96
+ })
97
+ })
98
+ })
99
+ })
100
+ })
101
+ })
102
+ })]
103
+ });
104
+ }
105
+ export { DocsApp };
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import useMediaQuery from '@mui/material/useMediaQuery';
3
3
  import { useRouter } from 'next/router';
4
- import { useNoSsrCodeVariant } from '@mui/docs/codeVariant';
5
- import { useUserLanguage } from '@mui/docs/i18n';
6
- import { pathnameToLanguage } from '@mui/docs/helpers';
7
- import { ThemeOptionsContext } from '@mui/docs/ThemeContext';
4
+ import { useNoSsrCodeVariant } from "../codeVariant/index.js";
5
+ import { useUserLanguage } from "../i18n/index.js";
6
+ import { pathnameToLanguage } from "../helpers/index.js";
7
+ import { ThemeOptionsContext } from "../ThemeContext/index.js";
8
8
 
9
9
  // So we can write code like:
10
10
  //
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { createEmotionCache as createCache } from '@mui/material-nextjs/v15-pagesRouter';
3
+ type StyledEngineProviderProps = {
4
+ cacheLtr: ReturnType<typeof createCache>;
5
+ children: React.ReactNode;
6
+ };
7
+ export default function StyledEngineProvider(props: StyledEngineProviderProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,6 +1,5 @@
1
1
  var _GlobalStyles;
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { StyleSheetManager } from 'styled-components';
5
4
  import { CacheProvider } from '@emotion/react';
6
5
  import { createEmotionCache as createCache } from '@mui/material-nextjs/v15-pagesRouter';
@@ -9,9 +8,8 @@ import rtlPlugin from '@mui/stylis-plugin-rtl';
9
8
  import GlobalStyles from '@mui/material/GlobalStyles';
10
9
  import { ThemeOptionsContext } from "../ThemeContext/index.js";
11
10
  import globalSelector from "../globalSelector/index.js";
12
-
13
- // Cache for the rtl version of the styles
14
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ // Cache for the rtl version of the styles
15
13
  const cacheRtl = createCache({
16
14
  key: 'rtl',
17
15
  prepend: true,
@@ -37,8 +35,4 @@ export default function StyledEngineProvider(props) {
37
35
  })), children]
38
36
  })
39
37
  });
40
- }
41
- process.env.NODE_ENV !== "production" ? StyledEngineProvider.propTypes = {
42
- cacheLtr: PropTypes.object.isRequired,
43
- children: PropTypes.node
44
- } : void 0;
38
+ }
@@ -0,0 +1 @@
1
+ export declare function printConsoleBanner(): void;
@@ -0,0 +1,19 @@
1
+ import { getTheme } from "../branding/index.js";
2
+ // eslint-disable-next-line import/prefer-default-export
3
+ export function printConsoleBanner() {
4
+ if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
5
+ window.theme = getTheme('ltr');
6
+ // eslint-disable-next-line no-console
7
+ console.log(`%c
8
+
9
+ ███╗ ███╗ ██╗ ██╗ ██████╗
10
+ ████╗ ████║ ██║ ██║ ██╔═╝
11
+ ██╔████╔██║ ██║ ██║ ██║
12
+ ██║╚██╔╝██║ ██║ ██║ ██║
13
+ ██║ ╚═╝ ██║ ╚██████╔╝ ██████╗
14
+ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
15
+
16
+ Tip: you can access the documentation \`theme\` object directly in the console.
17
+ `, 'font-family:monospace;color:#1976d2;font-size:12px;');
18
+ }
19
+ }
@@ -0,0 +1,30 @@
1
+ import type { RequireContext } from "../i18n/index.js";
2
+ interface AppContext {
3
+ ctx: {
4
+ query: {
5
+ userLanguage?: string;
6
+ };
7
+ };
8
+ Component: {
9
+ getInitialProps?: (ctx: AppContext['ctx']) => Promise<Record<string, unknown>>;
10
+ };
11
+ }
12
+ /**
13
+ * Factory to create MyApp.getInitialProps.
14
+ * Follows the same pattern as `@mui/docs/Document`'s `createGetInitialProps`.
15
+ *
16
+ * @param options.translationsContext - A webpack require.context pointing at translation JSON files.
17
+ * e.g. `require.context('docs/translations', false, /\.\/translations.*\.json$/)`
18
+ */
19
+ export declare function createGetInitialProps(options: {
20
+ translationsContext: RequireContext;
21
+ }): ({
22
+ ctx,
23
+ Component
24
+ }: AppContext) => Promise<{
25
+ pageProps: {
26
+ userLanguage: string;
27
+ translations: import("../i18n/index.js").Translations;
28
+ };
29
+ }>;
30
+ export {};
@@ -0,0 +1,29 @@
1
+ import { mapTranslations } from "../i18n/index.js";
2
+ /**
3
+ * Factory to create MyApp.getInitialProps.
4
+ * Follows the same pattern as `@mui/docs/Document`'s `createGetInitialProps`.
5
+ *
6
+ * @param options.translationsContext - A webpack require.context pointing at translation JSON files.
7
+ * e.g. `require.context('docs/translations', false, /\.\/translations.*\.json$/)`
8
+ */
9
+ // eslint-disable-next-line import/prefer-default-export
10
+ export function createGetInitialProps(options) {
11
+ async function getInitialPropsApp({
12
+ ctx,
13
+ Component
14
+ }) {
15
+ let pageProps = {};
16
+ const translations = mapTranslations(options.translationsContext);
17
+ if (Component.getInitialProps) {
18
+ pageProps = await Component.getInitialProps(ctx);
19
+ }
20
+ return {
21
+ pageProps: {
22
+ userLanguage: ctx.query.userLanguage || 'en',
23
+ translations,
24
+ ...pageProps
25
+ }
26
+ };
27
+ }
28
+ return getInitialPropsApp;
29
+ }
@@ -0,0 +1,5 @@
1
+ export { DocsApp } from "./DocsApp.js";
2
+ export type { DocsAppProps } from "./DocsApp.js";
3
+ export { createGetInitialProps } from "./createGetInitialProps.js";
4
+ export { printConsoleBanner } from "./consoleBanner.js";
5
+ export { reportWebVitals } from "./reportWebVitals.js";
@@ -0,0 +1,4 @@
1
+ export { DocsApp } from "./DocsApp.js";
2
+ export { createGetInitialProps } from "./createGetInitialProps.js";
3
+ export { printConsoleBanner } from "./consoleBanner.js";
4
+ export { reportWebVitals } from "./reportWebVitals.js";
@@ -0,0 +1 @@
1
+ export declare function loadDependencies(): void;
@@ -0,0 +1,11 @@
1
+ import { loadCSS } from 'fg-loadcss';
2
+ let dependenciesLoaded = false;
3
+
4
+ // eslint-disable-next-line import/prefer-default-export
5
+ export function loadDependencies() {
6
+ if (dependenciesLoaded) {
7
+ return;
8
+ }
9
+ dependenciesLoaded = true;
10
+ loadCSS('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Two+Tone', document.querySelector('#material-icon-font') ?? undefined);
11
+ }
@@ -0,0 +1,13 @@
1
+ export declare function reportWebVitals({
2
+ id,
3
+ name,
4
+ label,
5
+ delta,
6
+ value
7
+ }: {
8
+ id: string;
9
+ name: string;
10
+ label: string;
11
+ delta: number;
12
+ value: number;
13
+ }): void;
@@ -0,0 +1,24 @@
1
+ // Track fraction of actual events to prevent exceeding event quota.
2
+ // Filter sessions instead of individual events so that we can track multiple metrics per device.
3
+ // See https://github.com/GoogleChromeLabs/web-vitals-report to use this data
4
+ const disableWebVitalsReporting = Math.random() > 0.0001;
5
+
6
+ // eslint-disable-next-line import/prefer-default-export
7
+ export function reportWebVitals({
8
+ id,
9
+ name,
10
+ label,
11
+ delta,
12
+ value
13
+ }) {
14
+ if (disableWebVitalsReporting) {
15
+ return;
16
+ }
17
+ window.gtag('event', name, {
18
+ value: delta,
19
+ metric_label: label === 'web-vital' ? 'Web Vitals' : 'Next.js custom metric',
20
+ metric_value: value,
21
+ metric_delta: delta,
22
+ metric_id: id // id unique to current page load
23
+ });
24
+ }
@@ -0,0 +1 @@
1
+ export declare function registerServiceWorker(swPath: string): Promise<void>;
@@ -0,0 +1,61 @@
1
+ let reloadInterval;
2
+
3
+ // Avoid infinite loop when "Update on reload" is set in the Chrome sw dev tools.
4
+ function lazyReload() {
5
+ clearInterval(reloadInterval);
6
+ reloadInterval = setInterval(() => {
7
+ if (document.hasFocus()) {
8
+ window.location.reload();
9
+ }
10
+ }, 100);
11
+ }
12
+
13
+ // Inspired by
14
+ // https://developers.google.com/web/tools/workbox/guides/advanced-recipes#offer_a_page_reload_for_users
15
+ function forcePageReload(registration) {
16
+ // console.log('already controlled?', Boolean(navigator.serviceWorker.controller));
17
+
18
+ if (!navigator.serviceWorker.controller) {
19
+ // The window client isn't currently controlled so it's a new service
20
+ // worker that will activate immediately.
21
+ return;
22
+ }
23
+
24
+ // console.log('registration waiting?', Boolean(registration.waiting));
25
+ if (registration.waiting) {
26
+ // SW is waiting to activate. Can occur if multiple clients open and
27
+ // one of the clients is refreshed.
28
+ registration.waiting.postMessage('skipWaiting');
29
+ return;
30
+ }
31
+ function listenInstalledStateChange() {
32
+ registration.installing.addEventListener('statechange', event => {
33
+ // console.log('statechange', event.target.state);
34
+ if (event.target.state === 'installed' && registration.waiting) {
35
+ // A new service worker is available, inform the user
36
+ registration.waiting.postMessage('skipWaiting');
37
+ } else if (event.target.state === 'activated') {
38
+ // Force the control of the page by the activated service worker.
39
+ lazyReload();
40
+ }
41
+ });
42
+ }
43
+ if (registration.installing) {
44
+ listenInstalledStateChange();
45
+ return;
46
+ }
47
+
48
+ // We are currently controlled so a new SW may be found...
49
+ // Add a listener in case a new SW is found,
50
+ registration.addEventListener('updatefound', listenInstalledStateChange);
51
+ }
52
+
53
+ // eslint-disable-next-line import/prefer-default-export
54
+ export async function registerServiceWorker(swPath) {
55
+ if ('serviceWorker' in navigator && process.env.NODE_ENV === 'production' && window.location.host.includes('mui.com')) {
56
+ // register() automatically attempts to refresh the sw.js.
57
+ const registration = await navigator.serviceWorker.register(swPath);
58
+ // Force the page reload for users.
59
+ forcePageReload(registration);
60
+ }
61
+ }
@@ -1,7 +1,7 @@
1
1
  var _style, _style2, _style3, _style4;
2
2
  import * as React from 'react';
3
3
  import { documentGetInitialProps } from '@mui/material-nextjs/v13-pagesRouter';
4
- import createEmotionCache from "../createEmotionCache/index.js";
4
+ import createEmotionCache from "../DocsApp/createEmotionCache.js";
5
5
  import { pathnameToLanguage } from "../helpers/helpers.js";
6
6
 
7
7
  // eslint-disable-next-line import/prefer-default-export
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export function createGetInitialProps({
10
10
  setupStyledComponents = false
11
11
  }) {
12
- async function getInitialProps(ctx) {
12
+ async function getInitialPropsDocument(ctx) {
13
13
  const styledComponentsSheet = setupStyledComponents ? new (await import('styled-components')).ServerStyleSheet() : null;
14
14
  try {
15
15
  const finalProps = await documentGetInitialProps(ctx, {
@@ -58,5 +58,5 @@ export function createGetInitialProps({
58
58
  }
59
59
  }
60
60
  }
61
- return getInitialProps;
61
+ return getInitialPropsDocument;
62
62
  }
@@ -9,21 +9,22 @@ export type RootSvgProps<P = unknown> = Omit<React.SVGProps<SVGSVGElement>, 'ref
9
9
  } & P;
10
10
  export interface ProductVersion {
11
11
  text: string;
12
- current: boolean;
13
- href?: undefined;
12
+ current?: boolean;
13
+ href?: string;
14
14
  }
15
15
  export interface ProductInfo {
16
16
  metadata: string;
17
17
  name: string;
18
- logo: (props: RootSvgProps) => React.JSX.Element;
19
- logoSvg: string;
20
- wordmarkSvg: string;
18
+ logo?: (props: RootSvgProps) => React.JSX.Element;
19
+ logoSvg?: string;
20
+ wordmarkSvg?: string;
21
21
  versions: ProductVersion[];
22
22
  }
23
23
  export interface MuiPageContext {
24
24
  activePage: MuiPage | null;
25
25
  pages: MuiPage[];
26
26
  productId: MuiProductId;
27
+ productCategoryId: string;
27
28
  productIdentifier: ProductInfo;
28
29
  activePageParents: MuiPage[];
29
30
  }
@@ -9,15 +9,19 @@ export declare function setDocsColors(primary: Record<string, string>, secondary
9
9
  export declare function resetDocsColor(): void;
10
10
  export declare function setDocsSpacing(value: number): void;
11
11
  export declare function resetDocsSpacing(): void;
12
+ export declare function getTheme(direction: 'ltr' | 'rtl'): import("@mui/material/styles").Theme;
13
+ interface BrandingCssThemeProviderProps {
14
+ children: React.ReactNode;
15
+ direction?: 'ltr' | 'rtl';
16
+ forceThemeRerender?: boolean;
17
+ }
12
18
  export declare function BrandingCssThemeProvider({
13
19
  children,
14
20
  direction,
15
21
  forceThemeRerender
16
- }: React.PropsWithChildren<{
17
- direction?: 'ltr' | 'rtl';
18
- forceThemeRerender?: boolean;
19
- }>): import("react/jsx-runtime").JSX.Element;
22
+ }: BrandingCssThemeProviderProps): import("react/jsx-runtime").JSX.Element;
20
23
  export declare function BrandingCssVarsProvider(props: {
21
24
  children: React.ReactNode;
22
25
  direction?: 'ltr' | 'rtl';
23
- }): import("react/jsx-runtime").JSX.Element;
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ export {};
@@ -104,7 +104,7 @@ export function resetDocsSpacing() {
104
104
  }
105
105
  }
106
106
  const themeCache = new Map();
107
- function getTheme(direction) {
107
+ export function getTheme(direction) {
108
108
  let cachedTheme = themeCache.get(direction);
109
109
  if (!cachedTheme) {
110
110
  cachedTheme = createTheme({
@@ -317,7 +317,9 @@ export function getThemedComponents() {
317
317
  components: {
318
318
  MuiAlert: {
319
319
  styleOverrides: {
320
- root: {
320
+ root: ({
321
+ theme
322
+ }) => ({
321
323
  padding: '16px',
322
324
  gap: '12px',
323
325
  fontSize: '1rem',
@@ -333,80 +335,85 @@ export function getThemedComponents() {
333
335
  },
334
336
  '& .MuiAlert-message': {
335
337
  padding: 0
336
- }
337
- },
338
+ },
339
+ variants: [{
340
+ // same styles from the MarkdownElement callout
341
+ props: {
342
+ variant: 'standard',
343
+ color: 'warning'
344
+ },
345
+ style: [{
346
+ backgroundColor: alpha(theme.palette.warning[50], 0.5),
347
+ color: (theme.vars || theme).palette.grey[900],
348
+ border: '1px solid',
349
+ borderColor: alpha(theme.palette.warning[700], 0.15),
350
+ '& .MuiAlert-icon': {
351
+ color: (theme.vars || theme).palette.warning[600]
352
+ },
353
+ '& * a': {
354
+ // !important is used here to override the anchor tag color coming from MarkdownElement
355
+ color: `${(theme.vars || theme).palette.warning[900]} !important`,
356
+ textDecorationColor: `${alpha(theme.palette.warning.main, 0.4)} !important`,
357
+ '&:hover': {
358
+ textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
359
+ }
360
+ }
361
+ }, theme.applyDarkStyles({
362
+ backgroundColor: alpha(theme.palette.warning[700], 0.12),
363
+ color: (theme.vars || theme).palette.warning[50],
364
+ '& .MuiAlert-icon': {
365
+ color: (theme.vars || theme).palette.warning[400]
366
+ },
367
+ '& * a': {
368
+ color: `${(theme.vars || theme).palette.warning[100]} !important`,
369
+ textDecorationColor: `${alpha(theme.palette.warning[600], 0.4)} !important`,
370
+ '&:hover': {
371
+ textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
372
+ }
373
+ }
374
+ })]
375
+ }, {
376
+ // same styles from the MarkdownElement callout
377
+ props: {
378
+ variant: 'standard',
379
+ color: 'success'
380
+ },
381
+ style: [{
382
+ backgroundColor: alpha(theme.palette.success[50], 0.5),
383
+ color: (theme.vars || theme).palette.success[900],
384
+ border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
385
+ '& .MuiAlert-icon': {
386
+ color: (theme.vars || theme).palette.success[600]
387
+ },
388
+ '& * a': {
389
+ // !important is used here to override the anchor tag color coming from MarkdownElement
390
+ color: `${(theme.vars || theme).palette.success[900]} !important`,
391
+ textDecorationColor: `${alpha(theme.palette.success.main, 0.4)} !important`,
392
+ '&:hover': {
393
+ textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
394
+ }
395
+ }
396
+ }, theme.applyDarkStyles({
397
+ backgroundColor: alpha(theme.palette.success[700], 0.12),
398
+ color: (theme.vars || theme).palette.success[50],
399
+ borderColor: alpha(theme.palette.success[400], 0.1),
400
+ '& .MuiAlert-icon': {
401
+ color: (theme.vars || theme).palette.success[500]
402
+ },
403
+ '& * a': {
404
+ color: `${(theme.vars || theme).palette.success[100]} !important`,
405
+ textDecorationColor: `${alpha(theme.palette.success[600], 0.4)} !important`,
406
+ '&:hover': {
407
+ textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
408
+ }
409
+ }
410
+ })]
411
+ }]
412
+ }),
338
413
  icon: {
339
414
  paddingTop: 10,
340
415
  paddingBottom: 0
341
- },
342
- standardWarning: ({
343
- theme
344
- }) => [
345
- // same styles from the MarkdownElement callout
346
- {
347
- backgroundColor: alpha(theme.palette.warning[50], 0.5),
348
- color: (theme.vars || theme).palette.grey[900],
349
- border: '1px solid',
350
- borderColor: alpha(theme.palette.warning[700], 0.15),
351
- '& .MuiAlert-icon': {
352
- color: (theme.vars || theme).palette.warning[600]
353
- },
354
- '& * a': {
355
- // !important is used here to override the anchor tag color coming from MarkdownElement
356
- color: `${(theme.vars || theme).palette.warning[900]} !important`,
357
- textDecorationColor: `${alpha(theme.palette.warning.main, 0.4)} !important`,
358
- '&:hover': {
359
- textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
360
- }
361
- }
362
- }, theme.applyDarkStyles({
363
- backgroundColor: alpha(theme.palette.warning[700], 0.12),
364
- color: (theme.vars || theme).palette.warning[50],
365
- '& .MuiAlert-icon': {
366
- color: (theme.vars || theme).palette.warning[400]
367
- },
368
- '& * a': {
369
- color: `${(theme.vars || theme).palette.warning[100]} !important`,
370
- textDecorationColor: `${alpha(theme.palette.warning[600], 0.4)} !important`,
371
- '&:hover': {
372
- textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
373
- }
374
- }
375
- })],
376
- standardSuccess: ({
377
- theme
378
- }) => [
379
- // same styles from the MarkdownElement callout
380
- {
381
- backgroundColor: alpha(theme.palette.success[50], 0.5),
382
- color: (theme.vars || theme).palette.success[900],
383
- border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
384
- '& .MuiAlert-icon': {
385
- color: (theme.vars || theme).palette.success[600]
386
- },
387
- '& * a': {
388
- // !important is used here to override the anchor tag color coming from MarkdownElement
389
- color: `${(theme.vars || theme).palette.success[900]} !important`,
390
- textDecorationColor: `${alpha(theme.palette.success.main, 0.4)} !important`,
391
- '&:hover': {
392
- textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
393
- }
394
- }
395
- }, theme.applyDarkStyles({
396
- backgroundColor: alpha(theme.palette.success[700], 0.12),
397
- color: (theme.vars || theme).palette.success[50],
398
- borderColor: alpha(theme.palette.success[400], 0.1),
399
- '& .MuiAlert-icon': {
400
- color: (theme.vars || theme).palette.success[500]
401
- },
402
- '& * a': {
403
- color: `${(theme.vars || theme).palette.success[100]} !important`,
404
- textDecorationColor: `${alpha(theme.palette.success[600], 0.4)} !important`,
405
- '&:hover': {
406
- textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
407
- }
408
- }
409
- })]
416
+ }
410
417
  }
411
418
  },
412
419
  MuiButtonBase: {
@@ -1,10 +1,7 @@
1
- export function CodeStylingProvider(props: any): import("react/jsx-runtime").JSX.Element;
2
- export namespace CodeStylingProvider {
3
- namespace propTypes {
4
- let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
5
- }
6
- }
7
- export function useCodeStyling(): string;
8
- export function useNoSsrCodeStyling(): any;
9
- export function useSetCodeStyling(): () => void;
10
- import PropTypes from 'prop-types';
1
+ import * as React from 'react';
2
+ export declare function CodeStylingProvider(props: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function useCodeStyling(): string;
6
+ export declare function useNoSsrCodeStyling(): string | undefined;
7
+ export declare function useSetCodeStyling(): React.Dispatch<React.SetStateAction<string>>;
@@ -1,4 +1,3 @@
1
- import PropTypes from 'prop-types';
2
1
  import * as React from 'react';
3
2
  import { CODE_STYLING } from "../constants/index.js";
4
3
  import { getCookie } from "../helpers/index.js";
@@ -70,9 +69,6 @@ export function CodeStylingProvider(props) {
70
69
  children: children
71
70
  });
72
71
  }
73
- process.env.NODE_ENV !== "production" ? CodeStylingProvider.propTypes = {
74
- children: PropTypes.node.isRequired
75
- } : void 0;
76
72
  export function useCodeStyling() {
77
73
  return React.useContext(CodeStylingContext).codeStyling;
78
74
  }
@@ -1,10 +1,7 @@
1
- export function CodeVariantProvider(props: any): import("react/jsx-runtime").JSX.Element;
2
- export namespace CodeVariantProvider {
3
- namespace propTypes {
4
- let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
5
- }
6
- }
7
- export function useCodeVariant(): string;
8
- export function useNoSsrCodeVariant(): any;
9
- export function useSetCodeVariant(): () => void;
10
- import PropTypes from 'prop-types';
1
+ import * as React from 'react';
2
+ export declare function CodeVariantProvider(props: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function useCodeVariant(): string;
6
+ export declare function useNoSsrCodeVariant(): string | undefined;
7
+ export declare function useSetCodeVariant(): React.Dispatch<React.SetStateAction<string>>;
@@ -1,4 +1,3 @@
1
- import PropTypes from 'prop-types';
2
1
  import * as React from 'react';
3
2
  import { CODE_VARIANTS } from "../constants/index.js";
4
3
  import { getCookie } from "../helpers/index.js";
@@ -59,9 +58,6 @@ export function CodeVariantProvider(props) {
59
58
  children: children
60
59
  });
61
60
  }
62
- process.env.NODE_ENV !== "production" ? CodeVariantProvider.propTypes = {
63
- children: PropTypes.node.isRequired
64
- } : void 0;
65
61
  export function useCodeVariant() {
66
62
  return React.useContext(CodeVariantContext).codeVariant;
67
63
  }
@@ -1,13 +1,13 @@
1
- export namespace CODE_VARIANTS {
2
- let JS: string;
3
- let TS: string;
4
- }
5
- export namespace CODE_STYLING {
6
- let SYSTEM: string;
7
- let TAILWIND: string;
8
- let CSS: string;
9
- }
10
- export const LANGUAGES_LABEL: {
1
+ export declare const CODE_VARIANTS: {
2
+ JS: string;
3
+ TS: string;
4
+ };
5
+ export declare const CODE_STYLING: {
6
+ SYSTEM: string;
7
+ TAILWIND: string;
8
+ CSS: string;
9
+ };
10
+ export declare const LANGUAGES_LABEL: {
11
11
  code: string;
12
12
  text: string;
13
13
  }[];
@@ -1 +1 @@
1
- export { CODE_VARIANTS, CODE_STYLING, LANGUAGES_LABEL } from "./constants.js";
1
+ export * from "./constants.js";
@@ -1 +1 @@
1
- export { CODE_VARIANTS, CODE_STYLING, LANGUAGES_LABEL } from "./constants.js";
1
+ export * from "./constants.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "9.0.0-alpha.3",
3
+ "version": "9.0.0-alpha.4",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI Docs - Documentation building blocks.",
6
6
  "keywords": [
@@ -29,19 +29,19 @@
29
29
  "nprogress": "^0.2.0",
30
30
  "prop-types": "^15.8.1",
31
31
  "stylis": "4.2.0",
32
- "@mui/stylis-plugin-rtl": "^9.0.0-alpha.3",
33
- "@mui/internal-markdown": "^3.0.3"
32
+ "@mui/internal-markdown": "^3.0.4"
34
33
  },
35
34
  "peerDependencies": {
36
35
  "@emotion/cache": "^11.14.0",
37
36
  "@emotion/react": "^11.14.0",
38
37
  "@emotion/styled": "^11.14.1",
39
38
  "@mui/base": "^5.0.0 || ^5.0.0-beta || ^7.0.0 || ^7.0.0-beta",
40
- "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
41
- "@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
42
- "@mui/material-nextjs": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
43
- "@mui/system": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
44
- "@mui/utils": "^5.0.0 || ^6.0.0 || ^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",
45
45
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
46
46
  "@types/stylis": "^4.2.7",
47
47
  "chai": "^6.0.1",
@@ -76,16 +76,6 @@
76
76
  "default": "./Ad/index.js"
77
77
  }
78
78
  },
79
- "./AnalyticsProvider": {
80
- "import": {
81
- "types": "./AnalyticsProvider/index.d.ts",
82
- "default": "./AnalyticsProvider/index.js"
83
- },
84
- "default": {
85
- "types": "./AnalyticsProvider/index.d.ts",
86
- "default": "./AnalyticsProvider/index.js"
87
- }
88
- },
89
79
  "./CodeCopy": {
90
80
  "import": {
91
81
  "types": "./CodeCopy/index.d.ts",
@@ -116,6 +106,16 @@
116
106
  "default": "./DemoContext/index.js"
117
107
  }
118
108
  },
109
+ "./DocsApp": {
110
+ "import": {
111
+ "types": "./DocsApp/index.d.ts",
112
+ "default": "./DocsApp/index.js"
113
+ },
114
+ "default": {
115
+ "types": "./DocsApp/index.d.ts",
116
+ "default": "./DocsApp/index.js"
117
+ }
118
+ },
119
119
  "./DocsProvider": {
120
120
  "import": {
121
121
  "types": "./DocsProvider/index.d.ts",
@@ -136,16 +136,6 @@
136
136
  "default": "./Document/index.js"
137
137
  }
138
138
  },
139
- "./GoogleAnalytics": {
140
- "import": {
141
- "types": "./GoogleAnalytics/index.d.ts",
142
- "default": "./GoogleAnalytics/index.js"
143
- },
144
- "default": {
145
- "types": "./GoogleAnalytics/index.d.ts",
146
- "default": "./GoogleAnalytics/index.js"
147
- }
148
- },
149
139
  "./HighlightedCode": {
150
140
  "import": {
151
141
  "types": "./HighlightedCode/index.d.ts",
@@ -256,16 +246,6 @@
256
246
  "default": "./SectionTitle/index.js"
257
247
  }
258
248
  },
259
- "./StyledEngineProvider": {
260
- "import": {
261
- "types": "./StyledEngineProvider/index.d.ts",
262
- "default": "./StyledEngineProvider/index.js"
263
- },
264
- "default": {
265
- "types": "./StyledEngineProvider/index.d.ts",
266
- "default": "./StyledEngineProvider/index.js"
267
- }
268
- },
269
249
  "./ThemeContext": {
270
250
  "import": {
271
251
  "types": "./ThemeContext/index.d.ts",
@@ -316,16 +296,6 @@
316
296
  "default": "./constants/index.js"
317
297
  }
318
298
  },
319
- "./createEmotionCache": {
320
- "import": {
321
- "types": "./createEmotionCache/index.d.ts",
322
- "default": "./createEmotionCache/index.js"
323
- },
324
- "default": {
325
- "types": "./createEmotionCache/index.d.ts",
326
- "default": "./createEmotionCache/index.js"
327
- }
328
- },
329
299
  "./findActivePage": {
330
300
  "import": {
331
301
  "types": "./findActivePage/index.d.ts",
@@ -425,6 +395,16 @@
425
395
  "types": "./utils/index.d.ts",
426
396
  "default": "./utils/index.js"
427
397
  }
398
+ },
399
+ "./webpack": {
400
+ "import": {
401
+ "types": "./webpack/index.d.ts",
402
+ "default": "./webpack/index.js"
403
+ },
404
+ "default": {
405
+ "types": "./webpack/index.d.ts",
406
+ "default": "./webpack/index.js"
407
+ }
428
408
  }
429
409
  }
430
410
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Type declarations for webpack's require.context() API.
3
+ *
4
+ * Usage: import '@mui/docs/webpack' in a .d.ts or at the top of a file,
5
+ * or add to tsconfig "types".
6
+ */
7
+ export interface WebpackRequireContext {
8
+ (req: string): string;
9
+ keys: () => string[];
10
+ }
11
+ declare global {
12
+ namespace NodeJS {
13
+ interface Require {
14
+ context(directory: string, useSubdirectories?: boolean, regExp?: RegExp, mode?: string): WebpackRequireContext;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +0,0 @@
1
- export { AnalyticsProvider, useAnalyticsConsent, CookieConsentDialog } from "./AnalyticsProvider.js";
@@ -1 +0,0 @@
1
- export { AnalyticsProvider, useAnalyticsConsent, CookieConsentDialog } from "./AnalyticsProvider.js";
@@ -1 +0,0 @@
1
- export { default } from "./GoogleAnalytics.js";
@@ -1 +0,0 @@
1
- export { default } from "./GoogleAnalytics.js";
@@ -1,9 +0,0 @@
1
- declare function StyledEngineProvider(props: any): import("react/jsx-runtime").JSX.Element;
2
- declare namespace StyledEngineProvider {
3
- namespace propTypes {
4
- let cacheLtr: PropTypes.Validator<object>;
5
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
6
- }
7
- }
8
- export default StyledEngineProvider;
9
- import PropTypes from 'prop-types';
@@ -1 +0,0 @@
1
- export { default } from "./StyledEngineProvider.js";
@@ -1 +0,0 @@
1
- export { default } from "./StyledEngineProvider.js";
@@ -1 +0,0 @@
1
- export { default } from "./createEmotionCache.js";
@@ -1 +0,0 @@
1
- export { default } from "./createEmotionCache.js";