@mui/internal-core-docs 0.0.1 → 9.0.0-canary.1
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.d.ts +5 -0
- package/Ad/Ad.js +226 -0
- package/Ad/AdCarbon.d.ts +2 -0
- package/Ad/AdCarbon.js +125 -0
- package/Ad/AdDisplay.d.ts +16 -0
- package/Ad/AdDisplay.js +86 -0
- package/Ad/AdGuest.d.ts +10 -0
- package/Ad/AdGuest.js +29 -0
- package/Ad/AdInHouse.d.ts +4 -0
- package/Ad/AdInHouse.js +14 -0
- package/Ad/AdManager.d.ts +19 -0
- package/Ad/AdManager.js +36 -0
- package/Ad/AdProvider.d.ts +15 -0
- package/Ad/AdProvider.js +24 -0
- package/Ad/ad.styles.d.ts +4 -0
- package/Ad/ad.styles.js +91 -0
- package/Ad/index.d.ts +5 -0
- package/Ad/index.js +7 -0
- package/ApiPage/ApiWarningAlert.d.ts +10 -0
- package/ApiPage/ApiWarningAlert.js +22 -0
- package/ApiPage/definitions/classes.d.ts +18 -0
- package/ApiPage/definitions/classes.js +54 -0
- package/ApiPage/definitions/index.d.ts +4 -0
- package/ApiPage/definitions/index.js +4 -0
- package/ApiPage/definitions/properties.d.ts +58 -0
- package/ApiPage/definitions/properties.js +110 -0
- package/ApiPage/definitions/slots.d.ts +16 -0
- package/ApiPage/definitions/slots.js +39 -0
- package/ApiPage/definitions/types.d.ts +53 -0
- package/ApiPage/definitions/types.js +1 -0
- package/ApiPage/index.d.ts +2 -0
- package/ApiPage/index.js +2 -0
- package/ApiPage/list/ClassesList.d.ts +11 -0
- package/ApiPage/list/ClassesList.js +103 -0
- package/ApiPage/list/ExpandableApiItem.d.ts +18 -0
- package/ApiPage/list/ExpandableApiItem.js +241 -0
- package/ApiPage/list/PropertiesList.d.ts +7 -0
- package/ApiPage/list/PropertiesList.js +263 -0
- package/ApiPage/list/SlotsList.d.ts +7 -0
- package/ApiPage/list/SlotsList.js +93 -0
- package/ApiPage/list/index.d.ts +1 -0
- package/ApiPage/list/index.js +1 -0
- package/ApiPage/private.d.ts +3 -0
- package/ApiPage/private.js +3 -0
- package/ApiPage/sections/ClassesSection.d.ts +34 -0
- package/ApiPage/sections/ClassesSection.js +76 -0
- package/ApiPage/sections/PropertiesSection.d.ts +45 -0
- package/ApiPage/sections/PropertiesSection.js +59 -0
- package/ApiPage/sections/SlotsSection.d.ts +24 -0
- package/ApiPage/sections/SlotsSection.js +61 -0
- package/ApiPage/sections/ToggleDisplayOption.d.ts +17 -0
- package/ApiPage/sections/ToggleDisplayOption.js +161 -0
- package/ApiPage/sections/index.d.ts +4 -0
- package/ApiPage/sections/index.js +4 -0
- package/ApiPage/table/ClassesTable.d.ts +7 -0
- package/ApiPage/table/ClassesTable.js +116 -0
- package/ApiPage/table/PropertiesTable.d.ts +6 -0
- package/ApiPage/table/PropertiesTable.js +286 -0
- package/ApiPage/table/SlotsTable.d.ts +6 -0
- package/ApiPage/table/SlotsTable.js +126 -0
- package/ApiPage/table/StyledTableContainer.d.ts +1 -0
- package/ApiPage/table/StyledTableContainer.js +42 -0
- package/ApiPage/types.d.ts +11 -0
- package/ApiPage/types.js +1 -0
- package/CHANGELOG.md +1651 -0
- package/CodeCopy/CodeCopy.d.ts +22 -0
- package/CodeCopy/CodeCopy.js +172 -0
- package/CodeCopy/CodeCopyButton.d.ts +4 -0
- package/CodeCopy/CodeCopyButton.js +40 -0
- package/CodeCopy/index.d.ts +3 -0
- package/CodeCopy/index.js +3 -0
- package/CodeCopy/useClipboardCopy.d.ts +4 -0
- package/CodeCopy/useClipboardCopy.js +21 -0
- package/ComponentLinkHeader/ComponentLinkHeader.d.ts +8 -0
- package/ComponentLinkHeader/ComponentLinkHeader.js +197 -0
- package/ComponentLinkHeader/index.d.ts +2 -0
- package/ComponentLinkHeader/index.js +2 -0
- package/DemoContext/DemoContext.d.ts +86 -0
- package/DemoContext/DemoContext.js +13 -0
- package/DemoContext/index.d.ts +2 -0
- package/DemoContext/index.js +1 -0
- package/DocsApp/AnalyticsProvider.d.ts +17 -0
- package/DocsApp/AnalyticsProvider.js +229 -0
- package/DocsApp/DocsApp.d.ts +79 -0
- package/DocsApp/DocsApp.js +105 -0
- package/DocsApp/GoogleAnalytics.d.ts +9 -0
- package/DocsApp/GoogleAnalytics.js +129 -0
- package/DocsApp/StyledEngineProvider.d.ts +8 -0
- package/DocsApp/StyledEngineProvider.js +38 -0
- package/DocsApp/consoleBanner.d.ts +1 -0
- package/DocsApp/consoleBanner.js +18 -0
- package/DocsApp/createEmotionCache.d.ts +1 -0
- package/DocsApp/createEmotionCache.js +12 -0
- package/DocsApp/createGetInitialProps.d.ts +30 -0
- package/DocsApp/createGetInitialProps.js +29 -0
- package/DocsApp/index.d.ts +5 -0
- package/DocsApp/index.js +4 -0
- package/DocsApp/loadDependencies.d.ts +1 -0
- package/DocsApp/loadDependencies.js +9 -0
- package/DocsApp/reportWebVitals.d.ts +13 -0
- package/DocsApp/reportWebVitals.js +22 -0
- package/DocsApp/serviceWorker.d.ts +1 -0
- package/DocsApp/serviceWorker.js +59 -0
- package/DocsProvider/DocsProvider.d.ts +24 -0
- package/DocsProvider/DocsProvider.js +31 -0
- package/DocsProvider/index.d.ts +1 -0
- package/DocsProvider/index.js +1 -0
- package/Document/Document.d.ts +16 -0
- package/Document/Document.js +147 -0
- package/Document/getInitialProps.d.ts +18 -0
- package/Document/getInitialProps.js +60 -0
- package/Document/index.d.ts +2 -0
- package/Document/index.js +2 -0
- package/HighlightedCode/HighlightedCode.d.ts +14 -0
- package/HighlightedCode/HighlightedCode.js +67 -0
- package/HighlightedCode/index.d.ts +1 -0
- package/HighlightedCode/index.js +1 -0
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +28 -0
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +362 -0
- package/HighlightedCodeWithTabs/index.d.ts +2 -0
- package/HighlightedCodeWithTabs/index.js +2 -0
- package/IconImage/IconImage.d.ts +11 -0
- package/IconImage/IconImage.js +83 -0
- package/IconImage/index.d.ts +1 -0
- package/IconImage/index.js +1 -0
- package/InfoCard/InfoCard.d.ts +22 -0
- package/InfoCard/InfoCard.js +91 -0
- package/InfoCard/index.d.ts +1 -0
- package/InfoCard/index.js +1 -0
- package/LICENSE +21 -0
- package/Link/Link.d.ts +25 -0
- package/Link/Link.js +75 -0
- package/Link/MarkdownLinks.d.ts +2 -0
- package/Link/MarkdownLinks.js +84 -0
- package/Link/SkipLink.d.ts +1 -0
- package/Link/SkipLink.js +64 -0
- package/Link/index.d.ts +3 -0
- package/Link/index.js +3 -0
- package/MarkdownElement/MarkdownElement.d.ts +7 -0
- package/MarkdownElement/MarkdownElement.js +847 -0
- package/MarkdownElement/index.d.ts +1 -0
- package/MarkdownElement/index.js +1 -0
- package/MuiPage/MuiPage.d.ts +67 -0
- package/MuiPage/MuiPage.js +1 -0
- package/MuiPage/index.d.ts +1 -0
- package/MuiPage/index.js +1 -0
- package/NextNProgressBar/NProgressBar.d.ts +6 -0
- package/NextNProgressBar/NProgressBar.js +91 -0
- package/NextNProgressBar/NextNProgressBar.d.ts +1 -0
- package/NextNProgressBar/NextNProgressBar.js +42 -0
- package/NextNProgressBar/index.d.ts +1 -0
- package/NextNProgressBar/index.js +1 -0
- package/PageContext/PageContext.d.ts +32 -0
- package/PageContext/PageContext.js +6 -0
- package/PageContext/index.d.ts +2 -0
- package/PageContext/index.js +1 -0
- package/README.md +26 -0
- package/SectionHeadline/SectionHeadline.d.ts +13 -0
- package/SectionHeadline/SectionHeadline.js +81 -0
- package/SectionHeadline/index.d.ts +2 -0
- package/SectionHeadline/index.js +2 -0
- package/SectionTitle/SectionTitle.d.ts +6 -0
- package/SectionTitle/SectionTitle.js +29 -0
- package/SectionTitle/index.d.ts +1 -0
- package/SectionTitle/index.js +1 -0
- package/ThemeContext/ThemeContext.d.ts +92 -0
- package/ThemeContext/ThemeContext.js +200 -0
- package/ThemeContext/index.d.ts +1 -0
- package/ThemeContext/index.js +1 -0
- package/branding/BrandingCssVarsProvider.d.ts +27 -0
- package/branding/BrandingCssVarsProvider.js +170 -0
- package/branding/BrandingProvider.d.ts +9 -0
- package/branding/BrandingProvider.js +17 -0
- package/branding/brandingTheme.d.ts +147 -0
- package/branding/brandingTheme.js +1534 -0
- package/branding/index.d.ts +3 -0
- package/branding/index.js +3 -0
- package/codeStyling/codeStyling.d.ts +7 -0
- package/codeStyling/codeStyling.js +80 -0
- package/codeStyling/index.d.ts +1 -0
- package/codeStyling/index.js +1 -0
- package/codeVariant/codeVariant.d.ts +7 -0
- package/codeVariant/codeVariant.js +69 -0
- package/codeVariant/index.d.ts +1 -0
- package/codeVariant/index.js +1 -0
- package/constants/constants.d.ts +13 -0
- package/constants/constants.js +15 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +1 -0
- package/findActivePage/findActivePage.d.ts +5 -0
- package/findActivePage/findActivePage.js +35 -0
- package/findActivePage/index.d.ts +1 -0
- package/findActivePage/index.js +1 -0
- package/getProductInfoFromUrl/getProductInfoFromUrl.d.ts +8 -0
- package/getProductInfoFromUrl/getProductInfoFromUrl.js +50 -0
- package/getProductInfoFromUrl/index.d.ts +2 -0
- package/getProductInfoFromUrl/index.js +1 -0
- package/globalSelector/globalSelector.d.ts +2 -0
- package/globalSelector/globalSelector.js +17 -0
- package/globalSelector/index.d.ts +1 -0
- package/globalSelector/index.js +1 -0
- package/helpers/helpers.d.ts +31 -0
- package/helpers/helpers.js +87 -0
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +1 -0
- package/i18n/i18n.d.ts +27 -0
- package/i18n/i18n.js +111 -0
- package/i18n/index.d.ts +1 -0
- package/i18n/index.js +1 -0
- package/mapApiPageTranslations/index.d.ts +1 -0
- package/mapApiPageTranslations/index.js +1 -0
- package/mapApiPageTranslations/mapApiPageTranslations.d.ts +11 -0
- package/mapApiPageTranslations/mapApiPageTranslations.js +46 -0
- package/nextFonts/fonts/GeneralSans-Bold.ttf +0 -0
- package/nextFonts/fonts/GeneralSans-Bold.woff2 +0 -0
- package/nextFonts/fonts/GeneralSans-Medium.ttf +0 -0
- package/nextFonts/fonts/GeneralSans-Medium.woff2 +0 -0
- package/nextFonts/fonts/GeneralSans-Regular.ttf +0 -0
- package/nextFonts/fonts/GeneralSans-Regular.woff2 +0 -0
- package/nextFonts/fonts/GeneralSans-Semibold-subset.woff2 +0 -0
- package/nextFonts/fonts/GeneralSans-Semibold.ttf +0 -0
- package/nextFonts/fonts/GeneralSans-Semibold.woff2 +0 -0
- package/nextFonts/fonts/IBMPlexSans-Bold.ttf +0 -0
- package/nextFonts/fonts/IBMPlexSans-Bold.woff +0 -0
- package/nextFonts/fonts/IBMPlexSans-Bold.woff2 +0 -0
- package/nextFonts/fonts/IBMPlexSans-Medium.ttf +0 -0
- package/nextFonts/fonts/IBMPlexSans-Medium.woff +0 -0
- package/nextFonts/fonts/IBMPlexSans-Medium.woff2 +0 -0
- package/nextFonts/fonts/IBMPlexSans-Regular-subset.woff2 +0 -0
- package/nextFonts/fonts/IBMPlexSans-Regular.ttf +0 -0
- package/nextFonts/fonts/IBMPlexSans-Regular.woff +0 -0
- package/nextFonts/fonts/IBMPlexSans-Regular.woff2 +0 -0
- package/nextFonts/fonts/IBMPlexSans-SemiBold.ttf +0 -0
- package/nextFonts/fonts/IBMPlexSans-SemiBold.woff +0 -0
- package/nextFonts/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- package/nextFonts/index.d.ts +6 -0
- package/nextFonts/index.js +59 -0
- package/package.json +426 -3
- package/svgIcons/BundleSizeIcon.d.ts +4 -0
- package/svgIcons/BundleSizeIcon.js +13 -0
- package/svgIcons/FigmaIcon.d.ts +4 -0
- package/svgIcons/FigmaIcon.js +22 -0
- package/svgIcons/FileDownload.d.ts +6 -0
- package/svgIcons/FileDownload.js +13 -0
- package/svgIcons/JavaScript.d.ts +6 -0
- package/svgIcons/JavaScript.js +13 -0
- package/svgIcons/MarkdownIcon.d.ts +2 -0
- package/svgIcons/MarkdownIcon.js +22 -0
- package/svgIcons/MaterialDesignIcon.d.ts +4 -0
- package/svgIcons/MaterialDesignIcon.js +18 -0
- package/svgIcons/SketchIcon.d.ts +4 -0
- package/svgIcons/SketchIcon.js +27 -0
- package/svgIcons/TypeScript.d.ts +6 -0
- package/svgIcons/TypeScript.js +13 -0
- package/svgIcons/W3CIcon.d.ts +4 -0
- package/svgIcons/W3CIcon.js +15 -0
- package/translations/index.d.ts +3 -0
- package/translations/index.js +4 -0
- package/translations/translations.json +222 -0
- package/useLazyCSS/index.d.ts +1 -0
- package/useLazyCSS/index.js +1 -0
- package/useLazyCSS/useLazyCSS.d.ts +11 -0
- package/useLazyCSS/useLazyCSS.js +70 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/loadScript.d.ts +1 -0
- package/utils/loadScript.js +7 -0
- package/webpack/index.d.ts +17 -0
- package/webpack/index.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MarkdownElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
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";
|
package/MuiPage/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import NProgress from 'nprogress';
|
|
3
|
+
import { NoSsr } from '@mui/base/NoSsr';
|
|
4
|
+
import exactProp from '@mui/utils/exactProp';
|
|
5
|
+
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
6
|
+
import { keyframes } from '@mui/material/styles';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
NProgress.configure({
|
|
9
|
+
barSelector: '.nprogress-bar',
|
|
10
|
+
template: `
|
|
11
|
+
<div class="nprogress-bar">
|
|
12
|
+
<div></div>
|
|
13
|
+
<div></div>
|
|
14
|
+
</div>
|
|
15
|
+
`
|
|
16
|
+
});
|
|
17
|
+
const muiNProgressPulse = keyframes`
|
|
18
|
+
30% {
|
|
19
|
+
opacity: 0.6;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
60% {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
to {
|
|
27
|
+
opacity: 0.6;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Elegant and ready-to-use wrapper on top of https://github.com/rstacruz/nprogress/.
|
|
33
|
+
* The implementation is highly inspired by the YouTube one.
|
|
34
|
+
*/
|
|
35
|
+
function NProgressBar(props) {
|
|
36
|
+
return /*#__PURE__*/_jsxs(NoSsr, {
|
|
37
|
+
children: [props.children, /*#__PURE__*/_jsx(GlobalStyles, {
|
|
38
|
+
styles: theme => ({
|
|
39
|
+
'#nprogress': {
|
|
40
|
+
direction: 'ltr',
|
|
41
|
+
pointerEvents: 'none',
|
|
42
|
+
position: 'fixed',
|
|
43
|
+
top: 0,
|
|
44
|
+
left: 0,
|
|
45
|
+
right: 0,
|
|
46
|
+
height: 2,
|
|
47
|
+
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
48
|
+
backgroundColor: (theme.vars || theme).palette.primary[200],
|
|
49
|
+
...theme.applyStyles('dark', {
|
|
50
|
+
backgroundColor: (theme.vars || theme).palette.primary[700]
|
|
51
|
+
}),
|
|
52
|
+
'& .nprogress-bar': {
|
|
53
|
+
position: 'fixed',
|
|
54
|
+
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
55
|
+
top: 0,
|
|
56
|
+
left: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
height: 2
|
|
59
|
+
},
|
|
60
|
+
'& .nprogress-bar > div': {
|
|
61
|
+
position: 'absolute',
|
|
62
|
+
top: 0,
|
|
63
|
+
height: 2,
|
|
64
|
+
boxShadow: `${(theme.vars || theme).palette.primary.main} 1px 0 6px 1px`,
|
|
65
|
+
borderRadius: '100%',
|
|
66
|
+
animation: `${muiNProgressPulse} 2s ease-out 0s infinite`
|
|
67
|
+
},
|
|
68
|
+
'& .nprogress-bar > div:first-of-type': {
|
|
69
|
+
opacity: 0.6,
|
|
70
|
+
width: 20,
|
|
71
|
+
right: 0,
|
|
72
|
+
clip: 'rect(-6px,22px,14px,10px)'
|
|
73
|
+
},
|
|
74
|
+
'& .nprogress-bar > div:last-of-type': {
|
|
75
|
+
opacity: 0.6,
|
|
76
|
+
width: 180,
|
|
77
|
+
right: -80,
|
|
78
|
+
clip: 'rect(-6px,90px,14px,-6px)'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = {
|
|
86
|
+
children: PropTypes.node
|
|
87
|
+
} : void 0;
|
|
88
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
89
|
+
process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = exactProp(NProgressBar.propTypes) : void 0;
|
|
90
|
+
}
|
|
91
|
+
export default NProgressBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NextNProgressBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
export function NextNProgressBar() {
|
|
16
|
+
const router = useRouter();
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
const handleRouteChangeStart = (_url, {
|
|
19
|
+
shallow
|
|
20
|
+
}) => {
|
|
21
|
+
if (!shallow) {
|
|
22
|
+
nProgressStart();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const handleRouteChangeDone = (_url, {
|
|
26
|
+
shallow
|
|
27
|
+
}) => {
|
|
28
|
+
if (!shallow) {
|
|
29
|
+
nProgressDone();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
router.events.on('routeChangeStart', handleRouteChangeStart);
|
|
33
|
+
router.events.on('routeChangeComplete', handleRouteChangeDone);
|
|
34
|
+
router.events.on('routeChangeError', handleRouteChangeDone);
|
|
35
|
+
return () => {
|
|
36
|
+
router.events.off('routeChangeStart', handleRouteChangeStart);
|
|
37
|
+
router.events.off('routeChangeComplete', handleRouteChangeDone);
|
|
38
|
+
router.events.off('routeChangeError', handleRouteChangeDone);
|
|
39
|
+
};
|
|
40
|
+
}, [router]);
|
|
41
|
+
return _NProgressBar || (_NProgressBar = /*#__PURE__*/_jsx(NProgressBar, {}));
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NextNProgressBar.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NextNProgressBar.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
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?: string;
|
|
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
|
+
productCategoryId: string;
|
|
28
|
+
productIdentifier: ProductInfo;
|
|
29
|
+
activePageParents: MuiPage[];
|
|
30
|
+
}
|
|
31
|
+
declare const PageContext: React.Context<MuiPageContext>;
|
|
32
|
+
export default PageContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./PageContext.js";
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @mui/internal-core-docs
|
|
2
|
+
|
|
3
|
+
This package hosts the documentation building blocks.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the package in your project directory with:
|
|
8
|
+
|
|
9
|
+
<!-- #npm-tag-reference -->
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @mui/internal-core-docs@next
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The docs has a peer dependency on the core components.
|
|
16
|
+
If you are not already using Material UI in your project, you can add it with:
|
|
17
|
+
|
|
18
|
+
<!-- #npm-tag-reference -->
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @mui/material@next
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
We have no documentation for these components.
|
|
@@ -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,29 @@
|
|
|
1
|
+
var _span;
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
export function SectionTitle(props) {
|
|
4
|
+
const {
|
|
5
|
+
title,
|
|
6
|
+
hash,
|
|
7
|
+
level: Level = 'h2'
|
|
8
|
+
} = props;
|
|
9
|
+
return /*#__PURE__*/_jsx(Level, {
|
|
10
|
+
id: hash,
|
|
11
|
+
style: {
|
|
12
|
+
flexGrow: 1
|
|
13
|
+
},
|
|
14
|
+
children: /*#__PURE__*/_jsxs("a", {
|
|
15
|
+
"aria-labelledby": hash,
|
|
16
|
+
className: "title-link-to-anchor",
|
|
17
|
+
href: `#${hash}`,
|
|
18
|
+
tabIndex: -1,
|
|
19
|
+
children: [title, _span || (_span = /*#__PURE__*/_jsx("span", {
|
|
20
|
+
className: "anchor-icon",
|
|
21
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
22
|
+
children: /*#__PURE__*/_jsx("use", {
|
|
23
|
+
xlinkHref: "#anchor-link-icon"
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
}))]
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SectionTitle.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SectionTitle.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
|
+
};
|