@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 './MarkdownElement';
@@ -0,0 +1 @@
1
+ export * from './MarkdownElement';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/MarkdownElement/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -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': _extends({
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
- }, theme.applyDarkStyles({
52
- backgroundColor: (theme.vars || theme).palette.primary[700]
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,7 @@
1
+ import * as React from 'react';
2
+ export interface SectionTitleProps {
3
+ title: string;
4
+ hash: string;
5
+ level?: 'h2' | 'h3' | 'h4';
6
+ }
7
+ export declare function SectionTitle(props: SectionTitleProps): React.JSX.Element;
@@ -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';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/SectionTitle/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface BrandingProviderProps {
3
+ children: React.ReactNode;
4
+ /**
5
+ * If not `undefined`, the provider is considered nesting and does not render NextNProgressBar & CssBaseline
6
+ */
7
+ mode: 'light' | 'dark';
8
+ }
9
+ export declare function BrandingProvider(props: BrandingProviderProps): React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { ThemeProvider, useTheme } from '@mui/material/styles';
3
+ import { brandingDarkTheme, brandingLightTheme } from './brandingTheme';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export function BrandingProvider(props) {
6
+ const {
7
+ children,
8
+ mode: modeProp
9
+ } = props;
10
+ const upperTheme = useTheme();
11
+ const mode = modeProp || upperTheme.palette.mode;
12
+ const theme = mode === 'dark' ? brandingDarkTheme : brandingLightTheme;
13
+ return /*#__PURE__*/_jsx(ThemeProvider, {
14
+ theme: modeProp ? () => theme : theme,
15
+ children: children
16
+ });
17
+ }
@@ -0,0 +1,152 @@
1
+ import type { CSSObject } from '@mui/system';
2
+ import { ThemeOptions, Theme } from '@mui/material/styles';
3
+ interface ApplyDarkStyles {
4
+ (scheme: CSSObject): CSSObject;
5
+ }
6
+ declare module '@mui/material/styles' {
7
+ interface Theme {
8
+ applyDarkStyles: ApplyDarkStyles;
9
+ }
10
+ }
11
+ declare module '@mui/material/styles/createPalette' {
12
+ interface ColorRange {
13
+ 50: string;
14
+ 100: string;
15
+ 200: string;
16
+ 300: string;
17
+ 400: string;
18
+ 500: string;
19
+ 600: string;
20
+ 700: string;
21
+ 800: string;
22
+ 900: string;
23
+ }
24
+ interface PaletteColor extends ColorRange {
25
+ }
26
+ interface Palette {
27
+ primaryDark: PaletteColor;
28
+ gradients: {
29
+ radioSubtle: string;
30
+ linearSubtle: string;
31
+ };
32
+ }
33
+ interface TypeText {
34
+ tertiary: string;
35
+ }
36
+ }
37
+ declare module '@mui/material/styles/createTypography' {
38
+ interface TypographyOptions {
39
+ fontWeightSemiBold?: number;
40
+ fontWeightExtraBold?: number;
41
+ fontFamilyCode?: string;
42
+ fontFamilySystem?: string;
43
+ }
44
+ interface Typography {
45
+ fontWeightSemiBold: number;
46
+ fontWeightExtraBold: number;
47
+ fontFamilyCode: string;
48
+ fontFamilySystem: string;
49
+ }
50
+ }
51
+ declare module '@mui/material/Chip' {
52
+ interface ChipPropsColorOverrides {
53
+ grey: true;
54
+ }
55
+ }
56
+ declare module '@mui/material/SvgIcon' {
57
+ interface SvgIconPropsColorOverrides {
58
+ danger: true;
59
+ }
60
+ interface SvgIconPropsSizeOverrides {
61
+ xs: true;
62
+ sm: true;
63
+ md: true;
64
+ lg: true;
65
+ xl: true;
66
+ xl2: true;
67
+ xl3: true;
68
+ xl4: true;
69
+ }
70
+ }
71
+ export declare const blue: {
72
+ 50: string;
73
+ 100: string;
74
+ 200: string;
75
+ 300: string;
76
+ 400: string;
77
+ main: string;
78
+ 500: string;
79
+ 600: string;
80
+ 700: string;
81
+ 800: string;
82
+ 900: string;
83
+ };
84
+ export declare const blueDark: {
85
+ 50: string;
86
+ 100: string;
87
+ 200: string;
88
+ 300: string;
89
+ main: string;
90
+ 400: string;
91
+ 500: string;
92
+ 600: string;
93
+ 700: string;
94
+ 800: string;
95
+ 900: string;
96
+ };
97
+ export declare const grey: {
98
+ 50: string;
99
+ 100: string;
100
+ 200: string;
101
+ 300: string;
102
+ 400: string;
103
+ 500: string;
104
+ 600: string;
105
+ 700: string;
106
+ 800: string;
107
+ 900: string;
108
+ };
109
+ export declare const error: {
110
+ 50: string;
111
+ 100: string;
112
+ 200: string;
113
+ 300: string;
114
+ 400: string;
115
+ 500: string;
116
+ main: string;
117
+ 600: string;
118
+ 700: string;
119
+ 800: string;
120
+ 900: string;
121
+ };
122
+ export declare const success: {
123
+ 50: string;
124
+ 100: string;
125
+ 200: string;
126
+ 300: string;
127
+ 400: string;
128
+ 500: string;
129
+ 600: string;
130
+ 700: string;
131
+ 800: string;
132
+ 900: string;
133
+ };
134
+ export declare const warning: {
135
+ 50: string;
136
+ 100: string;
137
+ 200: string;
138
+ 300: string;
139
+ 400: string;
140
+ 500: string;
141
+ main: string;
142
+ 600: string;
143
+ 700: string;
144
+ 800: string;
145
+ 900: string;
146
+ };
147
+ export declare const getMetaThemeColor: (mode: 'light' | 'dark') => string;
148
+ export declare const getDesignTokens: (mode: 'light' | 'dark') => ThemeOptions;
149
+ export declare function getThemedComponents(): ThemeOptions;
150
+ export declare const brandingDarkTheme: Theme;
151
+ export declare const brandingLightTheme: Theme;
152
+ export {};