@mui/docs 6.0.0-rc.0 → 6.0.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/Ad/Ad.js CHANGED
@@ -3,11 +3,11 @@ import * as React from 'react';
3
3
  import Typography from '@mui/material/Typography';
4
4
  import Box from '@mui/material/Box';
5
5
  import Paper from '@mui/material/Paper';
6
- import { useTranslate } from '../i18n';
7
- import AdCarbon from './AdCarbon';
8
- import AdInHouse from './AdInHouse';
9
- import { AdContext, adShape } from './AdManager';
10
- import { useAdConfig } from './AdProvider';
6
+ import { useTranslate } from "../i18n/index.js";
7
+ import AdCarbon from "./AdCarbon.js";
8
+ import AdInHouse from "./AdInHouse.js";
9
+ import { AdContext, adShape } from "./AdManager.js";
10
+ import { useAdConfig } from "./AdProvider.js";
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  function PleaseDisableAdblock() {
13
13
  const t = useTranslate();
package/Ad/AdCarbon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var _AdCarbonImage;
2
2
  import * as React from 'react';
3
3
  import { styled } from '@mui/material/styles';
4
- import loadScript from '../utils/loadScript';
5
- import AdDisplay from './AdDisplay';
6
- import { adBodyImageStyles } from './ad.styles';
4
+ import loadScript from "../utils/loadScript.js";
5
+ import AdDisplay from "./AdDisplay.js";
6
+ import { adBodyImageStyles } from "./ad.styles.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const CarbonRoot = styled('span')(({
9
9
  theme
package/Ad/AdDisplay.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { styled } from '@mui/material/styles';
3
- import { useTranslate } from '../i18n';
4
- import { adShape } from './AdManager';
5
- import { adBodyImageStyles, adBodyInlineStyles } from './ad.styles';
6
- import { useAdConfig } from './AdProvider';
3
+ import { useTranslate } from "../i18n/index.js";
4
+ import { adShape } from "./AdManager.js";
5
+ import { adBodyImageStyles, adBodyInlineStyles } from "./ad.styles.js";
6
+ import { useAdConfig } from "./AdProvider.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const InlineShape = styled('span')(({
9
9
  theme
package/Ad/AdGuest.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import Portal from '@mui/material/Portal';
3
- import { AdContext } from './AdManager';
3
+ import { AdContext } from "./AdManager.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  function AdGuest(props) {
6
6
  const {
package/Ad/AdInHouse.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import AdDisplay from './AdDisplay';
2
+ import AdDisplay from "./AdDisplay.js";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export default function AdInHouse(props) {
5
5
  const {
package/Ad/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="gtag.js" />
2
2
 
3
- export * from './Ad';
4
- export * from './AdManager';
5
- export * from './AdProvider';
6
- export * from './AdGuest';
7
- export { AdCarbonInline } from './AdCarbon';
3
+ export * from "./Ad.js";
4
+ export * from "./AdManager.js";
5
+ export * from "./AdProvider.js";
6
+ export * from "./AdGuest.js";
7
+ export { AdCarbonInline } from "./AdCarbon.js";
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.0.0
4
+
5
+ <!-- generated comparing v6.0.0-rc.0..master -->
6
+
7
+ _Aug 27, 2024_
8
+
9
+ We are excited to announce the stable release of Material-UI v6 🎉, check out [the blog post](https://mui.com/blog/material-ui-v6-is-out/) to see all the updates.
10
+
11
+ ### `@mui/material@6.0.0`
12
+
13
+ - Change React.ReactElement<any,any> type from any to unknown (#43358) @sai6855
14
+ - [Pagination] Update `getItemAriaLabel` page param type (#43399) @sydneyjodon-wk
15
+ - [Unstable_TrapFocus] Fix `getTabbable` function return type (#42237) @KalmarLorand
16
+
17
+ ### `@mui/lab@6.0.0-beta.8`
18
+
19
+ - [button] Add missing customize points for span (#43436) @oliviertassinari
20
+
21
+ ### Docs
22
+
23
+ - Fix broken links (#43144) @DiegoAndai
24
+ - Updated mui-x roadmap links with the new project URL (#43444) @michelengelen
25
+ - Update pnpm order, move to second (#42712) @ahmadnadeem6236
26
+ - Fix CSS theme variables section (#43439) @siriwatknp
27
+ - Add two Toolpad Core components to Material UI sidebar (#43391) @prakhargupta1
28
+ - Fix licensingModel -> licenseModel @oliviertassinari
29
+ - Fix Stack Overflow issue canned response @oliviertassinari
30
+ - Avoid referencing MUI Core @oliviertassinari
31
+ - Fix description of eslint-plugin-material-ui @oliviertassinari
32
+ - [docs-infra] Polish reportBrokenLinks.js to support Base UI @oliviertassinari
33
+ - [material-ui] Clarify RTL language support in localization guide (#41784) @bahmanworld
34
+ - [material-ui] Refine templates theme selector (#43396) @zanivan
35
+
36
+ ### Core
37
+
38
+ - Prepare for v6 stable release (#43454) @siriwatknp
39
+ - [blog] Polish Upcoming changes to MUI X pricing in 2024 (#43438) @oliviertassinari
40
+ - [blog] Add Material UI v6 stable release (#41932) @siriwatknp
41
+ - [ci] Fix the release:changelog cmd (#43451) @mnajdova
42
+ - [core] Allow `^6.0.0` for `@mui/` dependencies in `@mui/docs` (#43445) @LukasTy
43
+ - [code-infra] Babel plugin to fully resolve imported paths (#43294) @Janpot
44
+ - [infra] Add closing message workflow (#43450) @michelengelen
45
+ - [website] Make beta chip consistent for Toolpad (#43392) @prakhargupta1
46
+
47
+ All contributors of this release in alphabetical order: @ahmadnadeem6236, @bahmanworld, @DiegoAndai, @Janpot, @KalmarLorand, @LukasTy, @michelengelen, @mnajdova, @oliviertassinari, @prakhargupta1, @sai6855, @siriwatknp, @sydneyjodon-wk, @zanivan
48
+
3
49
  ## 6.0.0-rc.0
4
50
 
5
51
  <!-- generated comparing v6.0.0-beta.6..next -->
@@ -1,6 +1,6 @@
1
1
  var _span, _span2;
2
2
  import * as React from 'react';
3
- import useClipboardCopy from './useClipboardCopy';
3
+ import useClipboardCopy from "./useClipboardCopy.js";
4
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  export function CodeCopyButton(props) {
6
6
  const {
package/CodeCopy/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './CodeCopy';
2
- export * from './CodeCopyButton';
3
- export { default as useClipboardCopy } from './useClipboardCopy';
1
+ export * from "./CodeCopy.js";
2
+ export * from "./CodeCopyButton.js";
3
+ export { default as useClipboardCopy } from "./useClipboardCopy.js";
@@ -5,13 +5,13 @@ import Tooltip from '@mui/material/Tooltip';
5
5
  import ChatRounded from '@mui/icons-material/ChatRounded';
6
6
  import GitHubIcon from '@mui/icons-material/GitHub';
7
7
  import { styled } from '@mui/material/styles';
8
- import SketchIcon from '../svgIcons/SketchIcon';
9
- import FigmaIcon from '../svgIcons/FigmaIcon';
10
- import AdobeXDIcon from '../svgIcons/AdobeXDIcon';
11
- import BundleSizeIcon from '../svgIcons/BundleSizeIcon';
12
- import W3CIcon from '../svgIcons/W3CIcon';
13
- import MaterialDesignIcon from '../svgIcons/MaterialDesignIcon';
14
- import { useTranslate } from '../i18n';
8
+ import SketchIcon from "../svgIcons/SketchIcon.js";
9
+ import FigmaIcon from "../svgIcons/FigmaIcon.js";
10
+ import AdobeXDIcon from "../svgIcons/AdobeXDIcon.js";
11
+ import BundleSizeIcon from "../svgIcons/BundleSizeIcon.js";
12
+ import W3CIcon from "../svgIcons/W3CIcon.js";
13
+ import MaterialDesignIcon from "../svgIcons/MaterialDesignIcon.js";
14
+ import { useTranslate } from "../i18n/index.js";
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const Root = styled('ul')({
17
17
  margin: 0,
@@ -97,7 +97,7 @@ export function ComponentLinkHeader(props) {
97
97
  size: "small",
98
98
  variant: "outlined",
99
99
  rel: "nofollow",
100
- href: `${process.env.SOURCE_CODE_REPO}/tree/${process.env.SOURCE_GITHUB_BRANCH}/${headers.githubSource}`,
100
+ href: `${process.env.SOURCE_CODE_REPO}/blob/v${process.env.LIB_VERSION}/${headers.githubSource}`,
101
101
  icon: _GitHubIcon || (_GitHubIcon = /*#__PURE__*/_jsx(GitHubIcon, {})),
102
102
  "data-ga-event-category": "ComponentLinkHeader",
103
103
  "data-ga-event-action": "click",
@@ -1,2 +1,2 @@
1
- export * from './ComponentLinkHeader';
2
- export { ComponentLinkHeader as default } from './ComponentLinkHeader';
1
+ export * from "./ComponentLinkHeader.js";
2
+ export { ComponentLinkHeader as default } from "./ComponentLinkHeader.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { UserLanguageProvider } from '../i18n';
3
- import { AdProvider } from '../Ad';
2
+ import { UserLanguageProvider } from "../i18n/index.js";
3
+ import { AdProvider } from "../Ad/index.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const DocsConfigContext = /*#__PURE__*/React.createContext(null);
6
6
  export function DocsProvider({
@@ -1 +1 @@
1
- export * from './DocsProvider';
1
+ export * from "./DocsProvider.js";
@@ -2,8 +2,8 @@ import * as React from 'react';
2
2
  import prism from '@mui/internal-markdown/prism';
3
3
  import { NoSsr } from '@mui/base/NoSsr';
4
4
  import { styled } from '@mui/material/styles';
5
- import { useCodeCopy, CodeCopyButton } from '../CodeCopy';
6
- import { MarkdownElement } from '../MarkdownElement';
5
+ import { useCodeCopy, CodeCopyButton } from "../CodeCopy/index.js";
6
+ import { MarkdownElement } from "../MarkdownElement/index.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const Pre = styled('pre')(({
9
9
  theme
@@ -1 +1 @@
1
- export * from './HighlightedCode';
1
+ export * from "./HighlightedCode.js";
@@ -5,7 +5,7 @@ import { TabsList as TabsListBase } from '@mui/base/TabsList';
5
5
  import { TabPanel as TabPanelBase } from '@mui/base/TabPanel';
6
6
  import { Tab as TabBase } from '@mui/base/Tab';
7
7
  import useLocalStorageState from '@mui/utils/useLocalStorageState';
8
- import { HighlightedCode } from '../HighlightedCode';
8
+ import { HighlightedCode } from "../HighlightedCode/index.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  export const CodeTabList = styled(TabsListBase)(({
11
11
  theme
@@ -1,2 +1,2 @@
1
- export * from './HighlightedCodeWithTabs';
2
- export { HighlightedCodeWithTabs as default } from './HighlightedCodeWithTabs';
1
+ export * from "./HighlightedCodeWithTabs.js";
2
+ export { HighlightedCodeWithTabs as default } from "./HighlightedCodeWithTabs.js";
@@ -3,7 +3,7 @@ import { alpha } from '@mui/material/styles';
3
3
  import Box from '@mui/material/Box';
4
4
  import Paper from '@mui/material/Paper';
5
5
  import Typography from '@mui/material/Typography';
6
- import { Link } from '../Link';
6
+ import { Link } from "../Link/index.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export function GlowingIconContainer({
9
9
  icon
package/InfoCard/index.js CHANGED
@@ -1 +1 @@
1
- export * from './InfoCard';
1
+ export * from "./InfoCard.js";
package/Link/Link.js CHANGED
@@ -4,8 +4,8 @@ import { useRouter } from 'next/router';
4
4
  import NextLink from 'next/link';
5
5
  import MuiLink from '@mui/material/Link';
6
6
  import { styled } from '@mui/material/styles';
7
- import { useUserLanguage } from '../i18n';
8
- import { useDocsConfig } from '../DocsProvider';
7
+ import { useUserLanguage } from "../i18n/index.js";
8
+ import { useDocsConfig } from "../DocsProvider/index.js";
9
9
 
10
10
  /**
11
11
  * File to keep in sync with:
package/Link/index.js CHANGED
@@ -1 +1 @@
1
- export * from './Link';
1
+ export * from "./Link.js";
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import { alpha, darken, styled } from '@mui/material/styles';
4
4
  import useForkRef from '@mui/utils/useForkRef';
5
- import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from '../branding';
5
+ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../branding/index.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const Root = styled('div')(({
8
8
  theme
@@ -1 +1 @@
1
- export * from './MarkdownElement';
1
+ export * from "./MarkdownElement.js";
@@ -1 +1 @@
1
- export { default } from './NProgressBar';
1
+ export { default } from "./NProgressBar.js";
package/README.md CHANGED
@@ -9,7 +9,7 @@ Install the package in your project directory with:
9
9
  <!-- #default-branch-switch -->
10
10
 
11
11
  ```bash
12
- npm install @mui/docs@next
12
+ npm install @mui/docs
13
13
  ```
14
14
 
15
15
  The docs has a peer dependency on the core components.
@@ -18,7 +18,7 @@ If you are not already using Material UI in your project, you can add it with:
18
18
  <!-- #default-branch-switch -->
19
19
 
20
20
  ```bash
21
- npm install @mui/material@next
21
+ npm install @mui/material
22
22
  ```
23
23
 
24
24
  ## Documentation
@@ -1 +1 @@
1
- export * from './SectionTitle';
1
+ export * from "./SectionTitle.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ThemeProvider, useTheme } from '@mui/material/styles';
3
- import { brandingDarkTheme, brandingLightTheme } from './brandingTheme';
3
+ import { brandingDarkTheme, brandingLightTheme } from "./brandingTheme.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  export function BrandingProvider(props) {
6
6
  const {
package/branding/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './brandingTheme';
2
- export * from './BrandingProvider';
1
+ export * from "./brandingTheme.js";
2
+ export * from "./BrandingProvider.js";
package/i18n/i18n.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { deepmerge } from '@mui/utils';
4
- import defaultTranslations from '../translations';
4
+ import defaultTranslations from "../translations/index.js";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
7
7
  function TranslationsProvider({
package/i18n/index.js CHANGED
@@ -1 +1 @@
1
- export * from './i18n';
1
+ export * from "./i18n.js";
@@ -106,7 +106,7 @@ function ComponentLinkHeader(props) {
106
106
  size: "small",
107
107
  variant: "outlined",
108
108
  rel: "nofollow",
109
- href: `${process.env.SOURCE_CODE_REPO}/tree/${process.env.SOURCE_GITHUB_BRANCH}/${headers.githubSource}`,
109
+ href: `${process.env.SOURCE_CODE_REPO}/blob/v${process.env.LIB_VERSION}/${headers.githubSource}`,
110
110
  icon: _GitHubIcon || (_GitHubIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_GitHub.default, {})),
111
111
  "data-ga-event-category": "ComponentLinkHeader",
112
112
  "data-ga-event-action": "click",
@@ -45,6 +45,7 @@
45
45
  "refNotHeld": "The component cannot hold a ref.",
46
46
  "refRootElement": "The <code>ref</code> is forwarded to the root element.",
47
47
  "ruleName": "Rule name",
48
+ "seeSourceCode": "If you did not find the information in this page, consider having a look at the <a href=\"{{href}}\">implementation of the component</a> for more detail.",
48
49
  "signature": "Signature",
49
50
  "slots": "Slots",
50
51
  "spreadHint": "Props of the {{spreadHintElement}} component are also available.",
@@ -52,6 +53,7 @@
52
53
  "styleOverrides": "The name <code>{{componentStyles.name}}</code> can be used when providing <a href={{defaultPropsLink}}>default props</a> or <a href={{styleOverridesLink}}>style overrides</a> in the theme.",
53
54
  "slotDescription": "To learn how to customize the slot, check out the <a href={{slotGuideLink}}>Overriding component structure</a> guide.",
54
55
  "slotName": "Slot name",
56
+ "source-code": "Source code",
55
57
  "type": "Type",
56
58
  "required": "Required",
57
59
  "optional": "Optional",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.0.0-rc.0",
3
+ "version": "6.0.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/base": "*",
35
- "@mui/icons-material": "^5.0.0",
36
- "@mui/material": "^5.0.0",
37
- "@mui/system": "^5.0.0",
35
+ "@mui/icons-material": "^5.0.0 || ^6.0.0",
36
+ "@mui/material": "^5.0.0 || ^6.0.0",
37
+ "@mui/system": "^5.0.0 || ^6.0.0",
38
38
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
39
39
  "chai": "^4.4.1",
40
40
  "csstype": "^3.1.3",
@@ -1,4 +1,4 @@
1
- import en from './translations.json';
1
+ import en from "./translations.json";
2
2
  export default {
3
3
  en
4
4
  };
@@ -45,6 +45,7 @@
45
45
  "refNotHeld": "The component cannot hold a ref.",
46
46
  "refRootElement": "The <code>ref</code> is forwarded to the root element.",
47
47
  "ruleName": "Rule name",
48
+ "seeSourceCode": "If you did not find the information in this page, consider having a look at the <a href=\"{{href}}\">implementation of the component</a> for more detail.",
48
49
  "signature": "Signature",
49
50
  "slots": "Slots",
50
51
  "spreadHint": "Props of the {{spreadHintElement}} component are also available.",
@@ -52,6 +53,7 @@
52
53
  "styleOverrides": "The name <code>{{componentStyles.name}}</code> can be used when providing <a href={{defaultPropsLink}}>default props</a> or <a href={{styleOverridesLink}}>style overrides</a> in the theme.",
53
54
  "slotDescription": "To learn how to customize the slot, check out the <a href={{slotGuideLink}}>Overriding component structure</a> guide.",
54
55
  "slotName": "Slot name",
56
+ "source-code": "Source code",
55
57
  "type": "Type",
56
58
  "required": "Required",
57
59
  "optional": "Optional",