@mui/docs 6.0.0-alpha.1 → 6.0.0-alpha.11
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/CHANGELOG.md +538 -4
- package/CodeCopy/CodeCopy.d.ts +20 -0
- package/CodeCopy/CodeCopy.js +172 -0
- package/CodeCopy/CodeCopyButton.d.ts +5 -0
- package/CodeCopy/CodeCopyButton.js +41 -0
- package/CodeCopy/index.d.ts +3 -0
- package/CodeCopy/index.js +3 -0
- package/CodeCopy/package.json +6 -0
- package/CodeCopy/useClipboardCopy.d.ts +4 -0
- package/CodeCopy/useClipboardCopy.js +21 -0
- package/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
- package/ComponentLinkHeader/ComponentLinkHeader.js +179 -0
- package/ComponentLinkHeader/index.d.ts +2 -0
- package/ComponentLinkHeader/index.js +2 -0
- package/ComponentLinkHeader/package.json +6 -0
- package/HighlightedCode/HighlightedCode.d.ts +14 -0
- package/HighlightedCode/HighlightedCode.js +68 -0
- package/HighlightedCode/index.d.ts +1 -0
- package/HighlightedCode/index.js +1 -0
- package/HighlightedCode/package.json +6 -0
- package/InfoCard/InfoCard.d.ts +0 -1
- package/InfoCard/InfoCard.js +45 -44
- package/Link/Link.js +40 -38
- package/MarkdownElement/MarkdownElement.d.ts +6 -0
- package/MarkdownElement/MarkdownElement.js +847 -0
- package/MarkdownElement/index.d.ts +1 -0
- package/MarkdownElement/index.js +1 -0
- package/MarkdownElement/package.json +6 -0
- package/NProgressBar/NProgressBar.js +6 -7
- package/SectionTitle/SectionTitle.d.ts +7 -0
- package/SectionTitle/SectionTitle.js +30 -0
- package/SectionTitle/index.d.ts +1 -0
- package/SectionTitle/index.js +1 -0
- package/SectionTitle/package.json +6 -0
- package/branding/brandingTheme.js +569 -369
- package/node/CodeCopy/CodeCopy.js +188 -0
- package/node/CodeCopy/CodeCopyButton.js +50 -0
- package/node/CodeCopy/index.js +40 -0
- package/node/CodeCopy/useClipboardCopy.js +30 -0
- package/node/ComponentLinkHeader/ComponentLinkHeader.js +189 -0
- package/node/ComponentLinkHeader/index.js +24 -0
- package/node/HighlightedCode/HighlightedCode.js +77 -0
- package/node/HighlightedCode/index.js +16 -0
- package/node/InfoCard/InfoCard.js +45 -44
- package/node/Link/Link.js +43 -40
- package/node/MarkdownElement/MarkdownElement.js +859 -0
- package/node/MarkdownElement/index.js +16 -0
- package/node/NProgressBar/NProgressBar.js +6 -7
- package/node/SectionTitle/SectionTitle.js +38 -0
- package/node/SectionTitle/index.js +16 -0
- package/node/branding/brandingTheme.js +569 -369
- package/node/svgIcons/AdobeXDIcon.js +22 -0
- package/node/svgIcons/BundleSizeIcon.js +22 -0
- package/node/svgIcons/FigmaIcon.js +31 -0
- package/node/svgIcons/FileDownload.js +3 -3
- package/node/svgIcons/JavaScript.js +3 -3
- package/node/svgIcons/MaterialDesignIcon.js +27 -0
- package/node/svgIcons/SketchIcon.js +36 -0
- package/node/svgIcons/TypeScript.js +3 -3
- package/node/svgIcons/W3CIcon.js +24 -0
- package/node/translations/translations.json +4 -2
- package/package.json +6 -4
- package/svgIcons/AdobeXDIcon.d.ts +4 -0
- package/svgIcons/AdobeXDIcon.js +14 -0
- package/svgIcons/BundleSizeIcon.d.ts +4 -0
- package/svgIcons/BundleSizeIcon.js +14 -0
- package/svgIcons/FigmaIcon.d.ts +4 -0
- package/svgIcons/FigmaIcon.js +23 -0
- package/svgIcons/FileDownload.d.ts +7 -0
- package/svgIcons/FileDownload.js +3 -3
- package/svgIcons/JavaScript.d.ts +7 -0
- package/svgIcons/JavaScript.js +3 -3
- package/svgIcons/MaterialDesignIcon.d.ts +4 -0
- package/svgIcons/MaterialDesignIcon.js +19 -0
- package/svgIcons/SketchIcon.d.ts +4 -0
- package/svgIcons/SketchIcon.js +28 -0
- package/svgIcons/TypeScript.d.ts +7 -0
- package/svgIcons/TypeScript.js +3 -3
- package/svgIcons/W3CIcon.d.ts +4 -0
- package/svgIcons/W3CIcon.js +16 -0
- package/translations/translations.json +4 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/legacy/DocsProvider/DocsProvider.js +0 -25
- package/legacy/DocsProvider/index.js +0 -1
- package/legacy/InfoCard/InfoCard.js +0 -86
- package/legacy/InfoCard/index.js +0 -1
- package/legacy/Link/Link.js +0 -101
- package/legacy/Link/index.js +0 -1
- package/legacy/NProgressBar/NProgressBar.js +0 -80
- package/legacy/NProgressBar/index.js +0 -1
- package/legacy/branding/BrandingProvider.js +0 -17
- package/legacy/branding/brandingTheme.js +0 -1168
- package/legacy/branding/index.js +0 -2
- package/legacy/i18n/i18n.js +0 -105
- package/legacy/i18n/index.js +0 -1
- package/legacy/svgIcons/FileDownload.js +0 -14
- package/legacy/svgIcons/JavaScript.js +0 -14
- package/legacy/svgIcons/TypeScript.js +0 -14
- package/legacy/translations/index.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MarkdownElement';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MarkdownElement';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import NProgress from 'nprogress';
|
|
@@ -38,7 +37,7 @@ function NProgressBar(props) {
|
|
|
38
37
|
return /*#__PURE__*/_jsxs(NoSsr, {
|
|
39
38
|
children: [props.children, /*#__PURE__*/_jsx(GlobalStyles, {
|
|
40
39
|
styles: theme => ({
|
|
41
|
-
'#nprogress':
|
|
40
|
+
'#nprogress': {
|
|
42
41
|
direction: 'ltr',
|
|
43
42
|
pointerEvents: 'none',
|
|
44
43
|
position: 'fixed',
|
|
@@ -47,10 +46,10 @@ function NProgressBar(props) {
|
|
|
47
46
|
right: 0,
|
|
48
47
|
height: 2,
|
|
49
48
|
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
50
|
-
backgroundColor: (theme.vars || theme).palette.primary[200]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
backgroundColor: (theme.vars || theme).palette.primary[200],
|
|
50
|
+
...theme.applyDarkStyles({
|
|
51
|
+
backgroundColor: (theme.vars || theme).palette.primary[700]
|
|
52
|
+
}),
|
|
54
53
|
'& .nprogress-bar': {
|
|
55
54
|
position: 'fixed',
|
|
56
55
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
@@ -79,7 +78,7 @@ function NProgressBar(props) {
|
|
|
79
78
|
right: -80,
|
|
80
79
|
clip: 'rect(-6px,90px,14px,-6px)'
|
|
81
80
|
}
|
|
82
|
-
}
|
|
81
|
+
}
|
|
83
82
|
})
|
|
84
83
|
})]
|
|
85
84
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var _span;
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export function SectionTitle(props) {
|
|
5
|
+
const {
|
|
6
|
+
title,
|
|
7
|
+
hash,
|
|
8
|
+
level: Level = 'h2'
|
|
9
|
+
} = props;
|
|
10
|
+
return /*#__PURE__*/_jsx(Level, {
|
|
11
|
+
id: hash,
|
|
12
|
+
style: {
|
|
13
|
+
flexGrow: 1
|
|
14
|
+
},
|
|
15
|
+
children: /*#__PURE__*/_jsxs("a", {
|
|
16
|
+
"aria-labelledby": hash,
|
|
17
|
+
className: "title-link-to-anchor",
|
|
18
|
+
href: `#${hash}`,
|
|
19
|
+
tabIndex: -1,
|
|
20
|
+
children: [title, _span || (_span = /*#__PURE__*/_jsx("span", {
|
|
21
|
+
className: "anchor-icon",
|
|
22
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
23
|
+
children: /*#__PURE__*/_jsx("use", {
|
|
24
|
+
xlinkHref: "#anchor-link-icon"
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
}))]
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionTitle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionTitle';
|