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

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 (245) hide show
  1. package/Ad/Ad.js +33 -42
  2. package/Ad/AdCarbon.js +18 -27
  3. package/Ad/AdDisplay.js +22 -29
  4. package/Ad/AdGuest.js +8 -15
  5. package/Ad/AdInHouse.js +4 -11
  6. package/Ad/AdManager.js +8 -17
  7. package/Ad/AdProvider.js +5 -13
  8. package/Ad/ad.styles.js +5 -13
  9. package/Ad/index.js +6 -62
  10. package/AnalyticsProvider/AnalyticsProvider.d.ts +17 -0
  11. package/AnalyticsProvider/AnalyticsProvider.js +225 -0
  12. package/AnalyticsProvider/index.d.ts +1 -0
  13. package/AnalyticsProvider/index.js +1 -0
  14. package/CHANGELOG.md +65 -0
  15. package/CodeCopy/CodeCopy.js +10 -19
  16. package/CodeCopy/CodeCopyButton.js +9 -16
  17. package/CodeCopy/index.js +3 -40
  18. package/CodeCopy/useClipboardCopy.js +4 -12
  19. package/ComponentLinkHeader/ComponentLinkHeader.js +46 -54
  20. package/ComponentLinkHeader/index.js +2 -24
  21. package/DemoContext/DemoContext.d.ts +86 -0
  22. package/DemoContext/DemoContext.js +13 -0
  23. package/DemoContext/index.d.ts +2 -0
  24. package/DemoContext/index.js +1 -0
  25. package/DocsProvider/DocsProvider.js +9 -17
  26. package/DocsProvider/index.js +1 -16
  27. package/Document/Document.d.ts +16 -0
  28. package/Document/Document.js +147 -0
  29. package/Document/getInitialProps.d.ts +18 -0
  30. package/Document/getInitialProps.js +62 -0
  31. package/Document/index.d.ts +2 -0
  32. package/Document/index.js +2 -0
  33. package/GoogleAnalytics/GoogleAnalytics.d.ts +9 -0
  34. package/GoogleAnalytics/GoogleAnalytics.js +129 -0
  35. package/GoogleAnalytics/index.d.ts +1 -0
  36. package/GoogleAnalytics/index.js +1 -0
  37. package/HighlightedCode/HighlightedCode.js +18 -26
  38. package/HighlightedCode/index.js +1 -16
  39. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
  40. package/HighlightedCodeWithTabs/index.js +2 -24
  41. package/IconImage/IconImage.d.ts +11 -0
  42. package/IconImage/IconImage.js +83 -0
  43. package/IconImage/index.d.ts +1 -0
  44. package/IconImage/index.js +1 -0
  45. package/InfoCard/InfoCard.js +20 -29
  46. package/InfoCard/index.js +1 -16
  47. package/Link/Link.js +17 -25
  48. package/Link/MarkdownLinks.d.ts +2 -0
  49. package/Link/MarkdownLinks.js +84 -0
  50. package/Link/SkipLink.d.ts +1 -0
  51. package/Link/SkipLink.js +66 -0
  52. package/Link/index.d.ts +3 -1
  53. package/Link/index.js +3 -16
  54. package/MarkdownElement/MarkdownElement.js +178 -186
  55. package/MarkdownElement/index.js +1 -16
  56. package/MuiPage/MuiPage.d.ts +67 -0
  57. package/MuiPage/MuiPage.js +1 -0
  58. package/MuiPage/index.d.ts +1 -0
  59. package/MuiPage/index.js +1 -0
  60. package/NextNProgressBar/NextNProgressBar.d.ts +1 -0
  61. package/NextNProgressBar/NextNProgressBar.js +44 -0
  62. package/NextNProgressBar/index.d.ts +1 -0
  63. package/NextNProgressBar/index.js +1 -0
  64. package/PageContext/PageContext.d.ts +31 -0
  65. package/PageContext/PageContext.js +6 -0
  66. package/PageContext/index.d.ts +2 -0
  67. package/PageContext/index.js +1 -0
  68. package/SectionHeadline/SectionHeadline.d.ts +13 -0
  69. package/SectionHeadline/SectionHeadline.js +81 -0
  70. package/SectionHeadline/index.d.ts +2 -0
  71. package/SectionHeadline/index.js +2 -0
  72. package/SectionTitle/SectionTitle.js +7 -13
  73. package/SectionTitle/index.js +1 -16
  74. package/StyledEngineProvider/StyledEngineProvider.d.ts +9 -0
  75. package/StyledEngineProvider/StyledEngineProvider.js +44 -0
  76. package/StyledEngineProvider/index.d.ts +1 -0
  77. package/StyledEngineProvider/index.js +1 -0
  78. package/ThemeContext/ThemeContext.d.ts +92 -0
  79. package/ThemeContext/ThemeContext.js +200 -0
  80. package/ThemeContext/index.d.ts +1 -0
  81. package/ThemeContext/index.js +1 -0
  82. package/branding/BrandingCssVarsProvider.d.ts +23 -0
  83. package/branding/BrandingCssVarsProvider.js +170 -0
  84. package/branding/BrandingProvider.js +8 -15
  85. package/branding/brandingTheme.js +115 -126
  86. package/branding/index.d.ts +2 -1
  87. package/branding/index.js +3 -27
  88. package/codeStyling/codeStyling.d.ts +10 -0
  89. package/codeStyling/codeStyling.js +84 -0
  90. package/codeStyling/index.d.ts +1 -0
  91. package/codeStyling/index.js +1 -0
  92. package/codeVariant/codeVariant.d.ts +10 -0
  93. package/codeVariant/codeVariant.js +73 -0
  94. package/codeVariant/index.d.ts +1 -0
  95. package/codeVariant/index.js +1 -0
  96. package/constants/constants.d.ts +13 -0
  97. package/constants/constants.js +15 -0
  98. package/constants/index.d.ts +1 -0
  99. package/constants/index.js +1 -0
  100. package/createEmotionCache/createEmotionCache.d.ts +1 -0
  101. package/createEmotionCache/createEmotionCache.js +12 -0
  102. package/createEmotionCache/index.d.ts +1 -0
  103. package/createEmotionCache/index.js +1 -0
  104. package/findActivePage/findActivePage.d.ts +5 -0
  105. package/findActivePage/findActivePage.js +35 -0
  106. package/findActivePage/index.d.ts +1 -0
  107. package/findActivePage/index.js +1 -0
  108. package/getProductInfoFromUrl/getProductInfoFromUrl.d.ts +8 -0
  109. package/getProductInfoFromUrl/getProductInfoFromUrl.js +50 -0
  110. package/getProductInfoFromUrl/index.d.ts +2 -0
  111. package/getProductInfoFromUrl/index.js +1 -0
  112. package/globalSelector/globalSelector.d.ts +2 -0
  113. package/globalSelector/globalSelector.js +17 -0
  114. package/globalSelector/index.d.ts +1 -0
  115. package/globalSelector/index.js +1 -0
  116. package/helpers/helpers.d.ts +31 -0
  117. package/helpers/helpers.js +87 -0
  118. package/helpers/index.d.ts +2 -0
  119. package/helpers/index.js +1 -0
  120. package/i18n/i18n.js +17 -29
  121. package/i18n/index.js +1 -16
  122. package/mapApiPageTranslations/index.d.ts +1 -0
  123. package/mapApiPageTranslations/index.js +1 -0
  124. package/mapApiPageTranslations/mapApiPageTranslations.d.ts +11 -0
  125. package/mapApiPageTranslations/mapApiPageTranslations.js +46 -0
  126. package/nextFonts/index.js +8 -15
  127. package/package.json +265 -102
  128. package/svgIcons/BundleSizeIcon.js +5 -11
  129. package/svgIcons/FigmaIcon.js +8 -14
  130. package/svgIcons/FileDownload.js +5 -12
  131. package/svgIcons/JavaScript.js +5 -12
  132. package/svgIcons/MarkdownIcon.js +7 -14
  133. package/svgIcons/MaterialDesignIcon.js +6 -12
  134. package/svgIcons/SketchIcon.js +10 -16
  135. package/svgIcons/TypeScript.js +5 -12
  136. package/svgIcons/W3CIcon.js +6 -12
  137. package/translations/index.js +3 -10
  138. package/translations/translations.json +0 -1
  139. package/useLazyCSS/index.d.ts +1 -0
  140. package/useLazyCSS/index.js +1 -0
  141. package/useLazyCSS/useLazyCSS.d.ts +11 -0
  142. package/useLazyCSS/useLazyCSS.js +70 -0
  143. package/utils/index.d.ts +1 -0
  144. package/utils/index.js +2 -0
  145. package/utils/loadScript.js +1 -7
  146. package/Ad/Ad.d.mts +0 -5
  147. package/Ad/Ad.mjs +0 -226
  148. package/Ad/AdCarbon.d.mts +0 -2
  149. package/Ad/AdCarbon.mjs +0 -125
  150. package/Ad/AdDisplay.d.mts +0 -16
  151. package/Ad/AdDisplay.mjs +0 -86
  152. package/Ad/AdGuest.d.mts +0 -10
  153. package/Ad/AdGuest.mjs +0 -29
  154. package/Ad/AdInHouse.d.mts +0 -4
  155. package/Ad/AdInHouse.mjs +0 -14
  156. package/Ad/AdManager.d.mts +0 -19
  157. package/Ad/AdManager.mjs +0 -36
  158. package/Ad/AdProvider.d.mts +0 -15
  159. package/Ad/AdProvider.mjs +0 -24
  160. package/Ad/ad.styles.d.mts +0 -4512
  161. package/Ad/ad.styles.mjs +0 -91
  162. package/Ad/index.d.mts +0 -5
  163. package/Ad/index.mjs +0 -7
  164. package/CodeCopy/CodeCopy.d.mts +0 -22
  165. package/CodeCopy/CodeCopy.mjs +0 -172
  166. package/CodeCopy/CodeCopyButton.d.mts +0 -4
  167. package/CodeCopy/CodeCopyButton.mjs +0 -40
  168. package/CodeCopy/index.d.mts +0 -3
  169. package/CodeCopy/index.mjs +0 -3
  170. package/CodeCopy/useClipboardCopy.d.mts +0 -4
  171. package/CodeCopy/useClipboardCopy.mjs +0 -21
  172. package/ComponentLinkHeader/ComponentLinkHeader.d.mts +0 -8
  173. package/ComponentLinkHeader/ComponentLinkHeader.mjs +0 -197
  174. package/ComponentLinkHeader/index.d.mts +0 -2
  175. package/ComponentLinkHeader/index.mjs +0 -2
  176. package/DocsProvider/DocsProvider.d.mts +0 -24
  177. package/DocsProvider/DocsProvider.mjs +0 -31
  178. package/DocsProvider/index.d.mts +0 -1
  179. package/DocsProvider/index.mjs +0 -1
  180. package/HighlightedCode/HighlightedCode.d.mts +0 -14
  181. package/HighlightedCode/HighlightedCode.mjs +0 -67
  182. package/HighlightedCode/index.d.mts +0 -1
  183. package/HighlightedCode/index.mjs +0 -1
  184. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.mts +0 -28
  185. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.mjs +0 -362
  186. package/HighlightedCodeWithTabs/index.d.mts +0 -2
  187. package/HighlightedCodeWithTabs/index.mjs +0 -2
  188. package/InfoCard/InfoCard.d.mts +0 -22
  189. package/InfoCard/InfoCard.mjs +0 -87
  190. package/InfoCard/index.d.mts +0 -1
  191. package/InfoCard/index.mjs +0 -1
  192. package/Link/Link.d.mts +0 -25
  193. package/Link/Link.mjs +0 -75
  194. package/Link/index.d.mts +0 -1
  195. package/Link/index.mjs +0 -1
  196. package/MarkdownElement/MarkdownElement.d.mts +0 -7
  197. package/MarkdownElement/MarkdownElement.mjs +0 -847
  198. package/MarkdownElement/index.d.mts +0 -1
  199. package/MarkdownElement/index.mjs +0 -1
  200. package/NProgressBar/NProgressBar.d.mts +0 -6
  201. package/NProgressBar/NProgressBar.js +0 -98
  202. package/NProgressBar/index.d.mts +0 -2
  203. package/NProgressBar/index.d.ts +0 -2
  204. package/NProgressBar/index.js +0 -13
  205. package/NProgressBar/index.mjs +0 -1
  206. package/SectionTitle/SectionTitle.d.mts +0 -6
  207. package/SectionTitle/SectionTitle.mjs +0 -29
  208. package/SectionTitle/index.d.mts +0 -1
  209. package/SectionTitle/index.mjs +0 -1
  210. package/branding/BrandingProvider.d.mts +0 -9
  211. package/branding/BrandingProvider.mjs +0 -17
  212. package/branding/brandingTheme.d.mts +0 -147
  213. package/branding/brandingTheme.mjs +0 -1527
  214. package/branding/index.d.mts +0 -2
  215. package/branding/index.mjs +0 -2
  216. package/i18n/i18n.d.mts +0 -27
  217. package/i18n/i18n.mjs +0 -111
  218. package/i18n/index.d.mts +0 -1
  219. package/i18n/index.mjs +0 -1
  220. package/nextFonts/index.d.mts +0 -6
  221. package/nextFonts/index.mjs +0 -59
  222. package/svgIcons/BundleSizeIcon.d.mts +0 -4
  223. package/svgIcons/BundleSizeIcon.mjs +0 -13
  224. package/svgIcons/FigmaIcon.d.mts +0 -4
  225. package/svgIcons/FigmaIcon.mjs +0 -22
  226. package/svgIcons/FileDownload.d.mts +0 -6
  227. package/svgIcons/FileDownload.mjs +0 -13
  228. package/svgIcons/JavaScript.d.mts +0 -6
  229. package/svgIcons/JavaScript.mjs +0 -13
  230. package/svgIcons/MarkdownIcon.d.mts +0 -2
  231. package/svgIcons/MarkdownIcon.mjs +0 -22
  232. package/svgIcons/MaterialDesignIcon.d.mts +0 -4
  233. package/svgIcons/MaterialDesignIcon.mjs +0 -18
  234. package/svgIcons/SketchIcon.d.mts +0 -4
  235. package/svgIcons/SketchIcon.mjs +0 -27
  236. package/svgIcons/TypeScript.d.mts +0 -6
  237. package/svgIcons/TypeScript.mjs +0 -13
  238. package/svgIcons/W3CIcon.d.mts +0 -4
  239. package/svgIcons/W3CIcon.mjs +0 -15
  240. package/translations/index.d.mts +0 -3
  241. package/translations/index.mjs +0 -4
  242. package/utils/loadScript.d.mts +0 -1
  243. package/utils/loadScript.mjs +0 -7
  244. /package/{NProgressBar → NextNProgressBar}/NProgressBar.d.ts +0 -0
  245. /package/{NProgressBar/NProgressBar.mjs → NextNProgressBar/NProgressBar.js} +0 -0
@@ -1,16 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _MarkdownElement = require("./MarkdownElement");
7
- Object.keys(_MarkdownElement).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _MarkdownElement[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _MarkdownElement[key];
14
- }
15
- });
16
- });
1
+ export * from "./MarkdownElement.js";
@@ -0,0 +1,67 @@
1
+ import * as React from 'react';
2
+ export type MuiPageIcon = 'ReaderIcon' | 'BookIcon' | 'DescriptionIcon' | 'VisibilityIcon' | 'WebIcon' | React.ComponentType;
3
+ export interface MuiPage {
4
+ pathname: string;
5
+ query?: object;
6
+ children?: MuiPage[];
7
+ disableDrawer?: boolean;
8
+ icon?: MuiPageIcon;
9
+ /**
10
+ * Indicates if the pages are regarding some legacy API.
11
+ */
12
+ legacy?: boolean;
13
+ /**
14
+ * Indicates if the pages are only available in some plan.
15
+ * @default 'community'
16
+ */
17
+ plan?: 'community' | 'pro' | 'premium';
18
+ /**
19
+ * In case the children have pathnames out of pathname value, use this field to scope other pathnames.
20
+ * Pathname can be partial, for example '/components/' will cover '/components/button/' and '/components/link/'.
21
+ * @deprecated Dead code, to remove.
22
+ */
23
+ scopePathnames?: string[];
24
+ /**
25
+ * Pages are considered to be ordered depth-first.
26
+ * If a page should be excluded from this order, set `order: false`.
27
+ * You want to set `inSideNav: false` if you don't want the page to appear in an ordered list e.g. for previous/next page navigation.
28
+ */
29
+ inSideNav?: boolean;
30
+ /**
31
+ * Props spread to the Link component.
32
+ */
33
+ linkProps?: Record<string, unknown>;
34
+ /**
35
+ * Subheader to display before navigation links.
36
+ */
37
+ subheader?: string;
38
+ /**
39
+ * Overrides the default page title.
40
+ */
41
+ title?: string;
42
+ /**
43
+ * Indicates if the feature has been recently released.
44
+ * @default false
45
+ */
46
+ newFeature?: boolean;
47
+ /**
48
+ * Indicates if the feature is planned for development.
49
+ * @default false
50
+ */
51
+ planned?: boolean;
52
+ /**
53
+ * Indicates if the component/hook is not stable yet.
54
+ */
55
+ unstable?: boolean;
56
+ /**
57
+ * Indicates the item is in beta release.
58
+ */
59
+ beta?: boolean;
60
+ /**
61
+ * Indicates if the pages are regarding some deprecated API.
62
+ */
63
+ deprecated?: boolean;
64
+ }
65
+ export interface OrderedMuiPage extends MuiPage {
66
+ ordered?: true;
67
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { MuiPage, MuiPageIcon, OrderedMuiPage } from "./MuiPage.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function NextNProgressBar(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ var _NProgressBar;
2
+ import * as React from 'react';
3
+ import { debounce } from '@mui/material/utils';
4
+ import { useRouter } from 'next/router';
5
+ import NProgress from 'nprogress';
6
+ import NProgressBar from "./NProgressBar.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const nProgressStart = debounce(() => {
9
+ NProgress.start();
10
+ }, 200);
11
+ function nProgressDone() {
12
+ nProgressStart.clear();
13
+ NProgress.done();
14
+ }
15
+
16
+ // eslint-disable-next-line import/prefer-default-export
17
+ export function NextNProgressBar() {
18
+ const router = useRouter();
19
+ React.useEffect(() => {
20
+ const handleRouteChangeStart = (_url, {
21
+ shallow
22
+ }) => {
23
+ if (!shallow) {
24
+ nProgressStart();
25
+ }
26
+ };
27
+ const handleRouteChangeDone = (_url, {
28
+ shallow
29
+ }) => {
30
+ if (!shallow) {
31
+ nProgressDone();
32
+ }
33
+ };
34
+ router.events.on('routeChangeStart', handleRouteChangeStart);
35
+ router.events.on('routeChangeComplete', handleRouteChangeDone);
36
+ router.events.on('routeChangeError', handleRouteChangeDone);
37
+ return () => {
38
+ router.events.off('routeChangeStart', handleRouteChangeStart);
39
+ router.events.off('routeChangeComplete', handleRouteChangeDone);
40
+ router.events.off('routeChangeError', handleRouteChangeDone);
41
+ };
42
+ }, [router]);
43
+ return _NProgressBar || (_NProgressBar = /*#__PURE__*/_jsx(NProgressBar, {}));
44
+ }
@@ -0,0 +1 @@
1
+ export * from "./NextNProgressBar.js";
@@ -0,0 +1 @@
1
+ export * from "./NextNProgressBar.js";
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import type { Theme } from '@mui/material/styles';
3
+ import type { SxProps } from '@mui/system';
4
+ import type { MuiPage } from "../MuiPage/index.js";
5
+ import type { MuiProductId } from "../getProductInfoFromUrl/index.js";
6
+ export type RootSvgProps<P = unknown> = Omit<React.SVGProps<SVGSVGElement>, 'ref'> & {
7
+ sx?: SxProps<Theme>;
8
+ ref?: React.Ref<SVGSVGElement>;
9
+ } & P;
10
+ export interface ProductVersion {
11
+ text: string;
12
+ current: boolean;
13
+ href?: undefined;
14
+ }
15
+ export interface ProductInfo {
16
+ metadata: string;
17
+ name: string;
18
+ logo: (props: RootSvgProps) => React.JSX.Element;
19
+ logoSvg: string;
20
+ wordmarkSvg: string;
21
+ versions: ProductVersion[];
22
+ }
23
+ export interface MuiPageContext {
24
+ activePage: MuiPage | null;
25
+ pages: MuiPage[];
26
+ productId: MuiProductId;
27
+ productIdentifier: ProductInfo;
28
+ activePageParents: MuiPage[];
29
+ }
30
+ declare const PageContext: React.Context<MuiPageContext>;
31
+ export default PageContext;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ const PageContext = /*#__PURE__*/React.createContext(undefined);
3
+ if (process.env.NODE_ENV !== 'production') {
4
+ PageContext.displayName = 'PageContext';
5
+ }
6
+ export default PageContext;
@@ -0,0 +1,2 @@
1
+ export { default } from "./PageContext.js";
2
+ export type { RootSvgProps, ProductVersion, ProductInfo, MuiPageContext } from "./PageContext.js";
@@ -0,0 +1 @@
1
+ export { default } from "./PageContext.js";
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface SectionHeadlineProps {
3
+ alwaysCenter?: boolean;
4
+ description?: React.ReactNode;
5
+ id?: string;
6
+ /**
7
+ * For using with dark background.
8
+ */
9
+ inverted?: boolean;
10
+ overline?: React.ReactNode;
11
+ title: string | React.ReactElement<React.HTMLAttributes<HTMLElement>>;
12
+ }
13
+ export default function SectionHeadline(props: SectionHeadlineProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,81 @@
1
+ import * as React from 'react';
2
+ import Box from '@mui/material/Box';
3
+ import Typography from '@mui/material/Typography';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ export default function SectionHeadline(props) {
6
+ const {
7
+ alwaysCenter = false,
8
+ description,
9
+ id,
10
+ inverted = false,
11
+ overline,
12
+ title
13
+ } = props;
14
+ return /*#__PURE__*/_jsxs(Box, {
15
+ sx: {
16
+ m: alwaysCenter ? 'auto' : null
17
+ },
18
+ children: [overline && /*#__PURE__*/_jsx(Typography, {
19
+ id: id,
20
+ component: "h2",
21
+ variant: "body2",
22
+ sx: {
23
+ fontWeight: 'bold',
24
+ color: 'primary.main',
25
+ mb: 1,
26
+ ...(alwaysCenter && {
27
+ textAlign: 'center'
28
+ })
29
+ },
30
+ children: overline
31
+ }), typeof title === 'string' ? /*#__PURE__*/_jsx(Typography, {
32
+ variant: "h2",
33
+ sx: theme => ({
34
+ maxWidth: 500,
35
+ ...(inverted ? {
36
+ color: '#fff'
37
+ } : {
38
+ color: 'primaryDark.900',
39
+ ...theme.applyDarkStyles({
40
+ color: 'grey.100'
41
+ })
42
+ }),
43
+ ...(alwaysCenter && {
44
+ textAlign: 'center',
45
+ maxWidth: '100%'
46
+ })
47
+ }),
48
+ children: title
49
+ }) : (/*#__PURE__*/React.cloneElement(title, {
50
+ style: {
51
+ maxWidth: 500,
52
+ ...(alwaysCenter && {
53
+ maxWidth: '100%',
54
+ textAlign: 'center'
55
+ }),
56
+ ...(inverted && {
57
+ color: '#fff'
58
+ })
59
+ }
60
+ })), description && /*#__PURE__*/_jsx(Typography, {
61
+ sx: theme => ({
62
+ mt: 1,
63
+ mb: 3,
64
+ maxWidth: 500,
65
+ ...(inverted ? {
66
+ color: 'grey.400'
67
+ } : {
68
+ color: 'grey.800',
69
+ ...theme.applyDarkStyles({
70
+ color: 'grey.500'
71
+ })
72
+ }),
73
+ ...(alwaysCenter && {
74
+ textAlign: 'center',
75
+ mx: 'auto'
76
+ })
77
+ }),
78
+ children: description
79
+ })]
80
+ });
81
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./SectionHeadline.js";
2
+ export { default } from "./SectionHeadline.js";
@@ -0,0 +1,2 @@
1
+ export * from "./SectionHeadline.js";
2
+ export { default } from "./SectionHeadline.js";
@@ -1,31 +1,25 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SectionTitle = SectionTitle;
7
- var _jsxRuntime = require("react/jsx-runtime");
8
1
  var _span;
9
- function SectionTitle(props) {
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ export function SectionTitle(props) {
10
4
  const {
11
5
  title,
12
6
  hash,
13
7
  level: Level = 'h2'
14
8
  } = props;
15
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Level, {
9
+ return /*#__PURE__*/_jsx(Level, {
16
10
  id: hash,
17
11
  style: {
18
12
  flexGrow: 1
19
13
  },
20
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
14
+ children: /*#__PURE__*/_jsxs("a", {
21
15
  "aria-labelledby": hash,
22
16
  className: "title-link-to-anchor",
23
17
  href: `#${hash}`,
24
18
  tabIndex: -1,
25
- children: [title, _span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
19
+ children: [title, _span || (_span = /*#__PURE__*/_jsx("span", {
26
20
  className: "anchor-icon",
27
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("use", {
21
+ children: /*#__PURE__*/_jsx("svg", {
22
+ children: /*#__PURE__*/_jsx("use", {
29
23
  xlinkHref: "#anchor-link-icon"
30
24
  })
31
25
  })
@@ -1,16 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _SectionTitle = require("./SectionTitle");
7
- Object.keys(_SectionTitle).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _SectionTitle[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _SectionTitle[key];
14
- }
15
- });
16
- });
1
+ export * from "./SectionTitle.js";
@@ -0,0 +1,9 @@
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';
@@ -0,0 +1,44 @@
1
+ var _GlobalStyles;
2
+ import * as React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { StyleSheetManager } from 'styled-components';
5
+ import { CacheProvider } from '@emotion/react';
6
+ import { createEmotionCache as createCache } from '@mui/material-nextjs/v15-pagesRouter';
7
+ import { prefixer } from 'stylis';
8
+ import rtlPlugin from '@mui/stylis-plugin-rtl';
9
+ import GlobalStyles from '@mui/material/GlobalStyles';
10
+ import { ThemeOptionsContext } from "../ThemeContext/index.js";
11
+ import globalSelector from "../globalSelector/index.js";
12
+
13
+ // Cache for the rtl version of the styles
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const cacheRtl = createCache({
16
+ key: 'rtl',
17
+ prepend: true,
18
+ enableCssLayer: true,
19
+ stylisPlugins: [prefixer, rtlPlugin, globalSelector]
20
+ });
21
+ export default function StyledEngineProvider(props) {
22
+ const {
23
+ children,
24
+ cacheLtr
25
+ } = props;
26
+ const {
27
+ direction
28
+ } = React.useContext(ThemeOptionsContext);
29
+ const rtl = direction === 'rtl';
30
+ const emotionCache = direction === 'rtl' ? cacheRtl : cacheLtr;
31
+ return /*#__PURE__*/_jsx(StyleSheetManager, {
32
+ stylisPlugins: rtl ? [rtlPlugin] : [],
33
+ children: /*#__PURE__*/_jsxs(CacheProvider, {
34
+ value: emotionCache,
35
+ children: [_GlobalStyles || (_GlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {
36
+ styles: "@layer theme, docsearch, mui, utilities;"
37
+ })), children]
38
+ })
39
+ });
40
+ }
41
+ process.env.NODE_ENV !== "production" ? StyledEngineProvider.propTypes = {
42
+ cacheLtr: PropTypes.object.isRequired,
43
+ children: PropTypes.node
44
+ } : void 0;
@@ -0,0 +1 @@
1
+ export { default } from "./StyledEngineProvider.js";
@@ -0,0 +1 @@
1
+ export { default } from "./StyledEngineProvider.js";
@@ -0,0 +1,92 @@
1
+ import * as React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ export declare const highDensity: {
4
+ components: {
5
+ MuiButton: {
6
+ defaultProps: {
7
+ size: string;
8
+ };
9
+ };
10
+ MuiFilledInput: {
11
+ defaultProps: {
12
+ margin: string;
13
+ };
14
+ };
15
+ MuiFormControl: {
16
+ defaultProps: {
17
+ margin: string;
18
+ };
19
+ };
20
+ MuiFormHelperText: {
21
+ defaultProps: {
22
+ margin: string;
23
+ };
24
+ };
25
+ MuiIconButton: {
26
+ defaultProps: {
27
+ size: string;
28
+ };
29
+ };
30
+ MuiInputBase: {
31
+ defaultProps: {
32
+ margin: string;
33
+ };
34
+ };
35
+ MuiInputLabel: {
36
+ defaultProps: {
37
+ margin: string;
38
+ };
39
+ };
40
+ MuiListItem: {
41
+ defaultProps: {
42
+ dense: boolean;
43
+ };
44
+ };
45
+ MuiOutlinedInput: {
46
+ defaultProps: {
47
+ margin: string;
48
+ };
49
+ };
50
+ MuiFab: {
51
+ defaultProps: {
52
+ size: string;
53
+ };
54
+ };
55
+ MuiTable: {
56
+ defaultProps: {
57
+ size: string;
58
+ };
59
+ };
60
+ MuiTextField: {
61
+ defaultProps: {
62
+ margin: string;
63
+ };
64
+ };
65
+ MuiToolbar: {
66
+ defaultProps: {
67
+ variant: string;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ export declare const DispatchContext: React.Context<React.ActionDispatch<any>>;
73
+ export declare const ThemeOptionsContext: React.Context<{
74
+ dense: boolean;
75
+ direction: "ltr" | "rtl";
76
+ paletteMode: "light" | "dark";
77
+ }>;
78
+ export declare function ThemeProvider(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
79
+ export declare namespace ThemeProvider {
80
+ var propTypes: {
81
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
82
+ };
83
+ }
84
+ /**
85
+ * @returns {(nextOptions: Partial<typeof themeInitialOptions>) => void}
86
+ */
87
+ export declare function useChangeTheme(): (options: any) => void;
88
+ export declare function useColorSchemeShim(): {
89
+ mode: string | null;
90
+ systemMode: string;
91
+ setMode: React.Dispatch<React.SetStateAction<string | null>>;
92
+ };