@mui/docs 6.0.0-alpha.0 → 6.0.0-alpha.10

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 (106) hide show
  1. package/CHANGELOG.md +591 -6
  2. package/CodeCopy/CodeCopy.d.ts +20 -0
  3. package/CodeCopy/CodeCopy.js +172 -0
  4. package/CodeCopy/CodeCopyButton.d.ts +5 -0
  5. package/CodeCopy/CodeCopyButton.js +41 -0
  6. package/CodeCopy/index.d.ts +3 -0
  7. package/CodeCopy/index.js +3 -0
  8. package/CodeCopy/package.json +6 -0
  9. package/CodeCopy/useClipboardCopy.d.ts +4 -0
  10. package/CodeCopy/useClipboardCopy.js +21 -0
  11. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  12. package/ComponentLinkHeader/ComponentLinkHeader.js +179 -0
  13. package/ComponentLinkHeader/index.d.ts +2 -0
  14. package/ComponentLinkHeader/index.js +2 -0
  15. package/ComponentLinkHeader/package.json +6 -0
  16. package/HighlightedCode/HighlightedCode.d.ts +14 -0
  17. package/HighlightedCode/HighlightedCode.js +68 -0
  18. package/HighlightedCode/index.d.ts +1 -0
  19. package/HighlightedCode/index.js +1 -0
  20. package/HighlightedCode/package.json +6 -0
  21. package/InfoCard/InfoCard.d.ts +20 -0
  22. package/InfoCard/InfoCard.js +87 -0
  23. package/InfoCard/index.d.ts +1 -0
  24. package/InfoCard/index.js +1 -0
  25. package/InfoCard/package.json +6 -0
  26. package/Link/Link.js +40 -38
  27. package/MarkdownElement/MarkdownElement.d.ts +6 -0
  28. package/MarkdownElement/MarkdownElement.js +825 -0
  29. package/MarkdownElement/index.d.ts +1 -0
  30. package/MarkdownElement/index.js +1 -0
  31. package/MarkdownElement/package.json +6 -0
  32. package/NProgressBar/NProgressBar.js +6 -7
  33. package/SectionTitle/SectionTitle.d.ts +7 -0
  34. package/SectionTitle/SectionTitle.js +30 -0
  35. package/SectionTitle/index.d.ts +1 -0
  36. package/SectionTitle/index.js +1 -0
  37. package/SectionTitle/package.json +6 -0
  38. package/branding/BrandingProvider.d.ts +9 -0
  39. package/branding/BrandingProvider.js +17 -0
  40. package/branding/brandingTheme.d.ts +152 -0
  41. package/branding/brandingTheme.js +1346 -0
  42. package/branding/index.d.ts +2 -0
  43. package/branding/index.js +2 -0
  44. package/branding/package.json +6 -0
  45. package/node/CodeCopy/CodeCopy.js +188 -0
  46. package/node/CodeCopy/CodeCopyButton.js +50 -0
  47. package/node/CodeCopy/index.js +40 -0
  48. package/node/CodeCopy/useClipboardCopy.js +30 -0
  49. package/node/ComponentLinkHeader/ComponentLinkHeader.js +189 -0
  50. package/node/ComponentLinkHeader/index.js +24 -0
  51. package/node/HighlightedCode/HighlightedCode.js +77 -0
  52. package/node/HighlightedCode/index.js +16 -0
  53. package/node/InfoCard/InfoCard.js +97 -0
  54. package/node/InfoCard/index.js +16 -0
  55. package/node/Link/Link.js +43 -40
  56. package/node/MarkdownElement/MarkdownElement.js +837 -0
  57. package/node/MarkdownElement/index.js +16 -0
  58. package/node/NProgressBar/NProgressBar.js +6 -7
  59. package/node/SectionTitle/SectionTitle.js +38 -0
  60. package/node/SectionTitle/index.js +16 -0
  61. package/node/branding/BrandingProvider.js +25 -0
  62. package/node/branding/brandingTheme.js +1357 -0
  63. package/node/branding/index.js +27 -0
  64. package/node/svgIcons/AdobeXDIcon.js +22 -0
  65. package/node/svgIcons/BundleSizeIcon.js +22 -0
  66. package/node/svgIcons/FigmaIcon.js +31 -0
  67. package/node/svgIcons/FileDownload.js +3 -3
  68. package/node/svgIcons/JavaScript.js +3 -3
  69. package/node/svgIcons/MaterialDesignIcon.js +27 -0
  70. package/node/svgIcons/SketchIcon.js +36 -0
  71. package/node/svgIcons/TypeScript.js +3 -3
  72. package/node/svgIcons/W3CIcon.js +24 -0
  73. package/node/translations/translations.json +216 -0
  74. package/package.json +11 -8
  75. package/svgIcons/AdobeXDIcon.d.ts +4 -0
  76. package/svgIcons/AdobeXDIcon.js +14 -0
  77. package/svgIcons/BundleSizeIcon.d.ts +4 -0
  78. package/svgIcons/BundleSizeIcon.js +14 -0
  79. package/svgIcons/FigmaIcon.d.ts +4 -0
  80. package/svgIcons/FigmaIcon.js +23 -0
  81. package/svgIcons/FileDownload.d.ts +7 -0
  82. package/svgIcons/FileDownload.js +3 -3
  83. package/svgIcons/JavaScript.d.ts +7 -0
  84. package/svgIcons/JavaScript.js +3 -3
  85. package/svgIcons/MaterialDesignIcon.d.ts +4 -0
  86. package/svgIcons/MaterialDesignIcon.js +19 -0
  87. package/svgIcons/SketchIcon.d.ts +4 -0
  88. package/svgIcons/SketchIcon.js +28 -0
  89. package/svgIcons/TypeScript.d.ts +7 -0
  90. package/svgIcons/TypeScript.js +3 -3
  91. package/svgIcons/W3CIcon.d.ts +4 -0
  92. package/svgIcons/W3CIcon.js +16 -0
  93. package/translations/translations.json +4 -2
  94. package/tsconfig.build.tsbuildinfo +1 -1
  95. package/legacy/DocsProvider/DocsProvider.js +0 -25
  96. package/legacy/DocsProvider/index.js +0 -1
  97. package/legacy/Link/Link.js +0 -101
  98. package/legacy/Link/index.js +0 -1
  99. package/legacy/NProgressBar/NProgressBar.js +0 -80
  100. package/legacy/NProgressBar/index.js +0 -1
  101. package/legacy/i18n/i18n.js +0 -105
  102. package/legacy/i18n/index.js +0 -1
  103. package/legacy/svgIcons/FileDownload.js +0 -14
  104. package/legacy/svgIcons/JavaScript.js +0 -14
  105. package/legacy/svgIcons/TypeScript.js +0 -14
  106. package/legacy/translations/index.js +0 -4
@@ -0,0 +1 @@
1
+ export * from './InfoCard';
@@ -0,0 +1 @@
1
+ export * from './InfoCard';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/InfoCard/index.js",
5
+ "types": "./index.d.ts"
6
+ }
package/Link/Link.js CHANGED
@@ -1,7 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["to", "linkAs", "replace", "scroll", "shallow", "prefetch", "legacyBehavior", "locale"],
4
- _excluded2 = ["activeClassName", "as", "className", "href", "legacyBehavior", "linkAs", "locale", "noLinkStyle", "prefetch", "replace", "role", "scroll", "shallow"];
5
1
  import * as React from 'react';
6
2
  import clsx from 'clsx';
7
3
  import { useRouter } from 'next/router';
@@ -24,16 +20,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
20
  const Anchor = styled('a')({});
25
21
  const NextLinkComposed = /*#__PURE__*/React.forwardRef(function NextLinkComposed(props, ref) {
26
22
  const {
27
- to,
28
- linkAs,
29
- replace,
30
- scroll,
31
- shallow,
32
- prefetch,
33
- legacyBehavior = true,
34
- locale
35
- } = props,
36
- other = _objectWithoutPropertiesLoose(props, _excluded);
23
+ to,
24
+ linkAs,
25
+ replace,
26
+ scroll,
27
+ shallow,
28
+ prefetch,
29
+ legacyBehavior = true,
30
+ locale,
31
+ ...other
32
+ } = props;
37
33
  return /*#__PURE__*/_jsx(NextLink, {
38
34
  href: to,
39
35
  prefetch: prefetch,
@@ -44,31 +40,33 @@ const NextLinkComposed = /*#__PURE__*/React.forwardRef(function NextLinkComposed
44
40
  passHref: true,
45
41
  locale: locale,
46
42
  legacyBehavior: legacyBehavior,
47
- children: /*#__PURE__*/_jsx(Anchor, _extends({
43
+ children: /*#__PURE__*/_jsx(Anchor, {
48
44
  "data-no-markdown-link": "true",
49
- ref: ref
50
- }, other))
45
+ ref: ref,
46
+ ...other
47
+ })
51
48
  });
52
49
  });
53
50
  // A styled version of the Next.js Pages Router Link component:
54
51
  // https://nextjs.org/docs/pages/api-reference/components/link
55
52
  export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
56
53
  const {
57
- activeClassName = 'active',
58
- as,
59
- className: classNameProps,
60
- href,
61
- legacyBehavior,
62
- linkAs: linkAsProp,
63
- locale,
64
- noLinkStyle,
65
- prefetch,
66
- replace,
67
- // Link don't have roles.
68
- scroll,
69
- shallow
70
- } = props,
71
- other = _objectWithoutPropertiesLoose(props, _excluded2);
54
+ activeClassName = 'active',
55
+ as,
56
+ className: classNameProps,
57
+ href,
58
+ legacyBehavior,
59
+ linkAs: linkAsProp,
60
+ locale,
61
+ noLinkStyle,
62
+ prefetch,
63
+ replace,
64
+ role,
65
+ // Link don't have roles.
66
+ scroll,
67
+ shallow,
68
+ ...other
69
+ } = props;
72
70
  const router = useRouter();
73
71
  const pathname = typeof href === 'string' ? href : href?.pathname;
74
72
  const routerPathname = router.pathname.replace('/[docsTab]', '');
@@ -93,14 +91,18 @@ export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
93
91
  locale
94
92
  };
95
93
  if (noLinkStyle) {
96
- return /*#__PURE__*/_jsx(NextLinkComposed, _extends({
94
+ return /*#__PURE__*/_jsx(NextLinkComposed, {
97
95
  className: className,
98
- ref: ref
99
- }, nextjsProps, other));
96
+ ref: ref,
97
+ ...nextjsProps,
98
+ ...other
99
+ });
100
100
  }
101
- return /*#__PURE__*/_jsx(MuiLink, _extends({
101
+ return /*#__PURE__*/_jsx(MuiLink, {
102
102
  component: NextLinkComposed,
103
103
  className: className,
104
- ref: ref
105
- }, nextjsProps, other));
104
+ ref: ref,
105
+ ...nextjsProps,
106
+ ...other
107
+ });
106
108
  });
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface MarkdownElementProps {
3
+ className?: string;
4
+ renderedMarkdown?: string;
5
+ }
6
+ export declare const MarkdownElement: React.ForwardRefExoticComponent<MarkdownElementProps & React.RefAttributes<HTMLDivElement>>;