@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.
- package/Ad/Ad.js +33 -42
- package/Ad/AdCarbon.js +18 -27
- package/Ad/AdDisplay.js +22 -29
- package/Ad/AdGuest.js +8 -15
- package/Ad/AdInHouse.js +4 -11
- package/Ad/AdManager.js +8 -17
- package/Ad/AdProvider.js +5 -13
- package/Ad/ad.styles.js +5 -13
- package/Ad/index.js +6 -62
- package/AnalyticsProvider/AnalyticsProvider.d.ts +17 -0
- package/AnalyticsProvider/AnalyticsProvider.js +225 -0
- package/AnalyticsProvider/index.d.ts +1 -0
- package/AnalyticsProvider/index.js +1 -0
- package/CHANGELOG.md +65 -0
- package/CodeCopy/CodeCopy.js +10 -19
- package/CodeCopy/CodeCopyButton.js +9 -16
- package/CodeCopy/index.js +3 -40
- package/CodeCopy/useClipboardCopy.js +4 -12
- package/ComponentLinkHeader/ComponentLinkHeader.js +46 -54
- package/ComponentLinkHeader/index.js +2 -24
- 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/DocsProvider/DocsProvider.js +9 -17
- package/DocsProvider/index.js +1 -16
- package/Document/Document.d.ts +16 -0
- package/Document/Document.js +147 -0
- package/Document/getInitialProps.d.ts +18 -0
- package/Document/getInitialProps.js +62 -0
- package/Document/index.d.ts +2 -0
- package/Document/index.js +2 -0
- package/GoogleAnalytics/GoogleAnalytics.d.ts +9 -0
- package/GoogleAnalytics/GoogleAnalytics.js +129 -0
- package/GoogleAnalytics/index.d.ts +1 -0
- package/GoogleAnalytics/index.js +1 -0
- package/HighlightedCode/HighlightedCode.js +18 -26
- package/HighlightedCode/index.js +1 -16
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
- package/HighlightedCodeWithTabs/index.js +2 -24
- 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.js +20 -29
- package/InfoCard/index.js +1 -16
- package/Link/Link.js +17 -25
- package/Link/MarkdownLinks.d.ts +2 -0
- package/Link/MarkdownLinks.js +84 -0
- package/Link/SkipLink.d.ts +1 -0
- package/Link/SkipLink.js +66 -0
- package/Link/index.d.ts +3 -1
- package/Link/index.js +3 -16
- package/MarkdownElement/MarkdownElement.js +178 -186
- package/MarkdownElement/index.js +1 -16
- 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/NextNProgressBar.d.ts +1 -0
- package/NextNProgressBar/NextNProgressBar.js +44 -0
- package/NextNProgressBar/index.d.ts +1 -0
- package/NextNProgressBar/index.js +1 -0
- package/PageContext/PageContext.d.ts +31 -0
- package/PageContext/PageContext.js +6 -0
- package/PageContext/index.d.ts +2 -0
- package/PageContext/index.js +1 -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.js +7 -13
- package/SectionTitle/index.js +1 -16
- package/StyledEngineProvider/StyledEngineProvider.d.ts +9 -0
- package/StyledEngineProvider/StyledEngineProvider.js +44 -0
- package/StyledEngineProvider/index.d.ts +1 -0
- package/StyledEngineProvider/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 +23 -0
- package/branding/BrandingCssVarsProvider.js +170 -0
- package/branding/BrandingProvider.js +8 -15
- package/branding/brandingTheme.js +115 -126
- package/branding/index.d.ts +2 -1
- package/branding/index.js +3 -27
- package/codeStyling/codeStyling.d.ts +10 -0
- package/codeStyling/codeStyling.js +84 -0
- package/codeStyling/index.d.ts +1 -0
- package/codeStyling/index.js +1 -0
- package/codeVariant/codeVariant.d.ts +10 -0
- package/codeVariant/codeVariant.js +73 -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/createEmotionCache/createEmotionCache.d.ts +1 -0
- package/createEmotionCache/createEmotionCache.js +12 -0
- package/createEmotionCache/index.d.ts +1 -0
- package/createEmotionCache/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.js +17 -29
- package/i18n/index.js +1 -16
- 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/index.js +8 -15
- package/package.json +265 -102
- package/svgIcons/BundleSizeIcon.js +5 -11
- package/svgIcons/FigmaIcon.js +8 -14
- package/svgIcons/FileDownload.js +5 -12
- package/svgIcons/JavaScript.js +5 -12
- package/svgIcons/MarkdownIcon.js +7 -14
- package/svgIcons/MaterialDesignIcon.js +6 -12
- package/svgIcons/SketchIcon.js +10 -16
- package/svgIcons/TypeScript.js +5 -12
- package/svgIcons/W3CIcon.js +6 -12
- package/translations/index.js +3 -10
- package/translations/translations.json +0 -1
- 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 +2 -0
- package/utils/loadScript.js +1 -7
- package/Ad/Ad.d.mts +0 -5
- package/Ad/Ad.mjs +0 -226
- package/Ad/AdCarbon.d.mts +0 -2
- package/Ad/AdCarbon.mjs +0 -125
- package/Ad/AdDisplay.d.mts +0 -16
- package/Ad/AdDisplay.mjs +0 -86
- package/Ad/AdGuest.d.mts +0 -10
- package/Ad/AdGuest.mjs +0 -29
- package/Ad/AdInHouse.d.mts +0 -4
- package/Ad/AdInHouse.mjs +0 -14
- package/Ad/AdManager.d.mts +0 -19
- package/Ad/AdManager.mjs +0 -36
- package/Ad/AdProvider.d.mts +0 -15
- package/Ad/AdProvider.mjs +0 -24
- package/Ad/ad.styles.d.mts +0 -4512
- package/Ad/ad.styles.mjs +0 -91
- package/Ad/index.d.mts +0 -5
- package/Ad/index.mjs +0 -7
- package/CodeCopy/CodeCopy.d.mts +0 -22
- package/CodeCopy/CodeCopy.mjs +0 -172
- package/CodeCopy/CodeCopyButton.d.mts +0 -4
- package/CodeCopy/CodeCopyButton.mjs +0 -40
- package/CodeCopy/index.d.mts +0 -3
- package/CodeCopy/index.mjs +0 -3
- package/CodeCopy/useClipboardCopy.d.mts +0 -4
- package/CodeCopy/useClipboardCopy.mjs +0 -21
- package/ComponentLinkHeader/ComponentLinkHeader.d.mts +0 -8
- package/ComponentLinkHeader/ComponentLinkHeader.mjs +0 -197
- package/ComponentLinkHeader/index.d.mts +0 -2
- package/ComponentLinkHeader/index.mjs +0 -2
- package/DocsProvider/DocsProvider.d.mts +0 -24
- package/DocsProvider/DocsProvider.mjs +0 -31
- package/DocsProvider/index.d.mts +0 -1
- package/DocsProvider/index.mjs +0 -1
- package/HighlightedCode/HighlightedCode.d.mts +0 -14
- package/HighlightedCode/HighlightedCode.mjs +0 -67
- package/HighlightedCode/index.d.mts +0 -1
- package/HighlightedCode/index.mjs +0 -1
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.mts +0 -28
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.mjs +0 -362
- package/HighlightedCodeWithTabs/index.d.mts +0 -2
- package/HighlightedCodeWithTabs/index.mjs +0 -2
- package/InfoCard/InfoCard.d.mts +0 -22
- package/InfoCard/InfoCard.mjs +0 -87
- package/InfoCard/index.d.mts +0 -1
- package/InfoCard/index.mjs +0 -1
- package/Link/Link.d.mts +0 -25
- package/Link/Link.mjs +0 -75
- package/Link/index.d.mts +0 -1
- package/Link/index.mjs +0 -1
- package/MarkdownElement/MarkdownElement.d.mts +0 -7
- package/MarkdownElement/MarkdownElement.mjs +0 -847
- package/MarkdownElement/index.d.mts +0 -1
- package/MarkdownElement/index.mjs +0 -1
- package/NProgressBar/NProgressBar.d.mts +0 -6
- package/NProgressBar/NProgressBar.js +0 -98
- package/NProgressBar/index.d.mts +0 -2
- package/NProgressBar/index.d.ts +0 -2
- package/NProgressBar/index.js +0 -13
- package/NProgressBar/index.mjs +0 -1
- package/SectionTitle/SectionTitle.d.mts +0 -6
- package/SectionTitle/SectionTitle.mjs +0 -29
- package/SectionTitle/index.d.mts +0 -1
- package/SectionTitle/index.mjs +0 -1
- package/branding/BrandingProvider.d.mts +0 -9
- package/branding/BrandingProvider.mjs +0 -17
- package/branding/brandingTheme.d.mts +0 -147
- package/branding/brandingTheme.mjs +0 -1527
- package/branding/index.d.mts +0 -2
- package/branding/index.mjs +0 -2
- package/i18n/i18n.d.mts +0 -27
- package/i18n/i18n.mjs +0 -111
- package/i18n/index.d.mts +0 -1
- package/i18n/index.mjs +0 -1
- package/nextFonts/index.d.mts +0 -6
- package/nextFonts/index.mjs +0 -59
- package/svgIcons/BundleSizeIcon.d.mts +0 -4
- package/svgIcons/BundleSizeIcon.mjs +0 -13
- package/svgIcons/FigmaIcon.d.mts +0 -4
- package/svgIcons/FigmaIcon.mjs +0 -22
- package/svgIcons/FileDownload.d.mts +0 -6
- package/svgIcons/FileDownload.mjs +0 -13
- package/svgIcons/JavaScript.d.mts +0 -6
- package/svgIcons/JavaScript.mjs +0 -13
- package/svgIcons/MarkdownIcon.d.mts +0 -2
- package/svgIcons/MarkdownIcon.mjs +0 -22
- package/svgIcons/MaterialDesignIcon.d.mts +0 -4
- package/svgIcons/MaterialDesignIcon.mjs +0 -18
- package/svgIcons/SketchIcon.d.mts +0 -4
- package/svgIcons/SketchIcon.mjs +0 -27
- package/svgIcons/TypeScript.d.mts +0 -6
- package/svgIcons/TypeScript.mjs +0 -13
- package/svgIcons/W3CIcon.d.mts +0 -4
- package/svgIcons/W3CIcon.mjs +0 -15
- package/translations/index.d.mts +0 -3
- package/translations/index.mjs +0 -4
- package/utils/loadScript.d.mts +0 -1
- package/utils/loadScript.mjs +0 -7
- /package/{NProgressBar → NextNProgressBar}/NProgressBar.d.ts +0 -0
- /package/{NProgressBar/NProgressBar.mjs → NextNProgressBar/NProgressBar.js} +0 -0
package/branding/index.d.mts
DELETED
package/branding/index.mjs
DELETED
package/i18n/i18n.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface UserLanguageProviderProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
translations?: Translations;
|
|
6
|
-
defaultUserLanguage: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function UserLanguageProvider(props: UserLanguageProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare namespace UserLanguageProvider {
|
|
10
|
-
var propTypes: {
|
|
11
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
-
defaultUserLanguage: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare function useUserLanguage(): string;
|
|
16
|
-
export declare function useSetUserLanguage(): React.Dispatch<React.SetStateAction<string>>;
|
|
17
|
-
export interface TranslateOptions {
|
|
18
|
-
ignoreWarning?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export type Translate = (key: string, options?: TranslateOptions) => any;
|
|
21
|
-
export declare function useTranslate(): Translate;
|
|
22
|
-
export type Translations = { [key in string]?: string | Translations };
|
|
23
|
-
export interface RequireContext {
|
|
24
|
-
(req: string): string;
|
|
25
|
-
keys: () => string[];
|
|
26
|
-
}
|
|
27
|
-
export declare function mapTranslations(req: RequireContext): Translations;
|
package/i18n/i18n.mjs
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import deepmerge from '@mui/utils/deepmerge';
|
|
4
|
-
import defaultTranslations from "../translations/index.mjs";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
|
|
7
|
-
function TranslationsProvider({
|
|
8
|
-
translations = {},
|
|
9
|
-
children
|
|
10
|
-
}) {
|
|
11
|
-
const currentTranslations = React.useContext(TranslationsContext);
|
|
12
|
-
const mergedTranslations = React.useMemo(() => deepmerge(currentTranslations, translations), [currentTranslations, translations]);
|
|
13
|
-
return /*#__PURE__*/_jsx(TranslationsContext.Provider, {
|
|
14
|
-
value: mergedTranslations,
|
|
15
|
-
children: children
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function getPath(obj, path) {
|
|
19
|
-
if (!path || typeof path !== 'string') {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
const translation = path.split('.').reduce((acc, item) => acc && typeof acc === 'object' && acc[item] || null, obj);
|
|
23
|
-
if (typeof translation === 'object') {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return translation;
|
|
27
|
-
}
|
|
28
|
-
const UserLanguageContext = /*#__PURE__*/React.createContext({
|
|
29
|
-
userLanguage: '',
|
|
30
|
-
setUserLanguage: () => {}
|
|
31
|
-
});
|
|
32
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
33
|
-
UserLanguageContext.displayName = 'UserLanguage';
|
|
34
|
-
}
|
|
35
|
-
export function UserLanguageProvider(props) {
|
|
36
|
-
const {
|
|
37
|
-
children,
|
|
38
|
-
translations,
|
|
39
|
-
defaultUserLanguage
|
|
40
|
-
} = props;
|
|
41
|
-
const [userLanguage, setUserLanguage] = React.useState(defaultUserLanguage);
|
|
42
|
-
const contextValue = React.useMemo(() => {
|
|
43
|
-
return {
|
|
44
|
-
userLanguage,
|
|
45
|
-
setUserLanguage
|
|
46
|
-
};
|
|
47
|
-
}, [userLanguage]);
|
|
48
|
-
return /*#__PURE__*/_jsx(TranslationsProvider, {
|
|
49
|
-
translations: translations,
|
|
50
|
-
children: /*#__PURE__*/_jsx(UserLanguageContext.Provider, {
|
|
51
|
-
value: contextValue,
|
|
52
|
-
children: children
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
process.env.NODE_ENV !== "production" ? UserLanguageProvider.propTypes = {
|
|
57
|
-
children: PropTypes.node.isRequired,
|
|
58
|
-
defaultUserLanguage: PropTypes.string
|
|
59
|
-
} : void 0;
|
|
60
|
-
export function useUserLanguage() {
|
|
61
|
-
return React.useContext(UserLanguageContext).userLanguage;
|
|
62
|
-
}
|
|
63
|
-
export function useSetUserLanguage() {
|
|
64
|
-
return React.useContext(UserLanguageContext).setUserLanguage;
|
|
65
|
-
}
|
|
66
|
-
const warnedOnce = {};
|
|
67
|
-
|
|
68
|
-
// TODO, migrate to use warnOnce() helper
|
|
69
|
-
const warn = (userLanguage, key, ignoreWarning) => {
|
|
70
|
-
const fullKey = `${userLanguage}:${key}`;
|
|
71
|
-
// No warnings in CI env
|
|
72
|
-
if (!ignoreWarning && !warnedOnce[fullKey] && typeof window !== 'undefined') {
|
|
73
|
-
console.warn(`Missing translation for ${fullKey}`);
|
|
74
|
-
warnedOnce[fullKey] = true;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
export function useTranslate() {
|
|
78
|
-
const userLanguage = useUserLanguage();
|
|
79
|
-
const translations = React.useContext(TranslationsContext);
|
|
80
|
-
return React.useMemo(() => function translate(key, options = {}) {
|
|
81
|
-
const {
|
|
82
|
-
ignoreWarning = false
|
|
83
|
-
} = options;
|
|
84
|
-
const wordings = translations[userLanguage];
|
|
85
|
-
if (!wordings) {
|
|
86
|
-
console.error(`Missing language: ${userLanguage}.`);
|
|
87
|
-
return '…';
|
|
88
|
-
}
|
|
89
|
-
const translation = getPath(wordings, key);
|
|
90
|
-
if (!translation) {
|
|
91
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
92
|
-
warn(userLanguage, key, ignoreWarning);
|
|
93
|
-
}
|
|
94
|
-
const enTranslation = getPath(translations.en, key);
|
|
95
|
-
return enTranslation ?? null;
|
|
96
|
-
}
|
|
97
|
-
return translation;
|
|
98
|
-
}, [userLanguage, translations]);
|
|
99
|
-
}
|
|
100
|
-
export function mapTranslations(req) {
|
|
101
|
-
const result = {};
|
|
102
|
-
req.keys().forEach(filename => {
|
|
103
|
-
const match = filename.match(/-([a-z]{2}).json$/);
|
|
104
|
-
if (match) {
|
|
105
|
-
result[match[1]] = req(filename);
|
|
106
|
-
} else {
|
|
107
|
-
result.en = req(filename);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return result;
|
|
111
|
-
}
|
package/i18n/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./i18n.mjs";
|
package/i18n/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./i18n.mjs";
|
package/nextFonts/index.d.mts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const inter: import("next/dist/compiled/@next/font").NextFont;
|
|
2
|
-
export declare const roboto: import("next/dist/compiled/@next/font").NextFont;
|
|
3
|
-
export declare const generalSans: import("next/dist/compiled/@next/font").NextFont;
|
|
4
|
-
export declare const ibmPlexSans: import("next/dist/compiled/@next/font").NextFont;
|
|
5
|
-
export declare const fonts: import("next/dist/compiled/@next/font").NextFont[];
|
|
6
|
-
export declare const fontClasses: string;
|
package/nextFonts/index.mjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Inter, Roboto } from 'next/font/google';
|
|
2
|
-
import localFont from 'next/font/local';
|
|
3
|
-
export const inter = Inter({
|
|
4
|
-
weight: ['300', '400', '500', '600', '700'],
|
|
5
|
-
subsets: ['latin']
|
|
6
|
-
});
|
|
7
|
-
export const roboto = Roboto({
|
|
8
|
-
weight: ['300', '400', '500', '700'],
|
|
9
|
-
style: ['normal', 'italic'],
|
|
10
|
-
subsets: ['latin']
|
|
11
|
-
});
|
|
12
|
-
export const generalSans = localFont({
|
|
13
|
-
declarations: [{
|
|
14
|
-
prop: 'font-family',
|
|
15
|
-
value: 'General Sans'
|
|
16
|
-
}],
|
|
17
|
-
src: [{
|
|
18
|
-
path: './fonts/GeneralSans-Regular.woff2',
|
|
19
|
-
weight: '400',
|
|
20
|
-
style: 'normal'
|
|
21
|
-
}, {
|
|
22
|
-
path: './fonts/GeneralSans-Medium.woff2',
|
|
23
|
-
weight: '500',
|
|
24
|
-
style: 'normal'
|
|
25
|
-
}, {
|
|
26
|
-
path: './fonts/GeneralSans-Semibold.woff2',
|
|
27
|
-
weight: '600',
|
|
28
|
-
style: 'normal'
|
|
29
|
-
}, {
|
|
30
|
-
path: './fonts/GeneralSans-Bold.woff2',
|
|
31
|
-
weight: '700',
|
|
32
|
-
style: 'normal'
|
|
33
|
-
}]
|
|
34
|
-
});
|
|
35
|
-
export const ibmPlexSans = localFont({
|
|
36
|
-
declarations: [{
|
|
37
|
-
prop: 'font-family',
|
|
38
|
-
value: 'IBM Plex Sans'
|
|
39
|
-
}],
|
|
40
|
-
src: [{
|
|
41
|
-
path: './fonts/IBMPlexSans-Regular.woff2',
|
|
42
|
-
weight: '400',
|
|
43
|
-
style: 'normal'
|
|
44
|
-
}, {
|
|
45
|
-
path: './fonts/IBMPlexSans-Medium.woff2',
|
|
46
|
-
weight: '500',
|
|
47
|
-
style: 'normal'
|
|
48
|
-
}, {
|
|
49
|
-
path: './fonts/IBMPlexSans-SemiBold.woff2',
|
|
50
|
-
weight: '600',
|
|
51
|
-
style: 'normal'
|
|
52
|
-
}, {
|
|
53
|
-
path: './fonts/IBMPlexSans-Bold.woff2',
|
|
54
|
-
weight: '700',
|
|
55
|
-
style: 'normal'
|
|
56
|
-
}]
|
|
57
|
-
});
|
|
58
|
-
export const fonts = [inter, roboto, generalSans, ibmPlexSans];
|
|
59
|
-
export const fontClasses = fonts.map(font => font.className).join(' ');
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
|
|
4
|
-
fill: "currentColor",
|
|
5
|
-
fillRule: "nonzero",
|
|
6
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
7
|
-
d: "M5.84 3c-.52 0-1 .25-1.3.67l-1.4 2.05c-.06.09-.1.19-.14.28h8V3H5.84zM20.86 5.72l-1.4-2.05c-.3-.42-.81-.67-1.33-.67H13v3h8c-.05-.1-.08-.2-.14-.28z",
|
|
8
|
-
fillOpacity: ".79"
|
|
9
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
10
|
-
d: "M20.98 7H3.02L3 7.11V19.4c0 .89.71 1.61 1.58 1.61h14.84A1.6 1.6 0 0021 19.4V7.1L20.98 7zm-6.87 5.36H9.89a1.6 1.6 0 01-1.58-1.61c0-.89.7-1.6 1.58-1.6h4.22c.87 0 1.58.71 1.58 1.6 0 .89-.7 1.6-1.58 1.6z",
|
|
11
|
-
fillOpacity: ".87"
|
|
12
|
-
})]
|
|
13
|
-
}), 'BundleSize');
|
package/svgIcons/FigmaIcon.d.mts
DELETED
package/svgIcons/FigmaIcon.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
|
|
4
|
-
fillRule: "nonzero",
|
|
5
|
-
fill: "none",
|
|
6
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
7
|
-
d: "M8 24a4 4 0 004-4v-4H8a4 4 0 000 8z",
|
|
8
|
-
fill: "#0ACF83"
|
|
9
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
10
|
-
d: "M4 12a4 4 0 014-4h4v8H8a4 4 0 01-4-4z",
|
|
11
|
-
fill: "#A259FF"
|
|
12
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
13
|
-
d: "M4 4a4 4 0 014-4h4v8H8a4 4 0 01-4-4z",
|
|
14
|
-
fill: "#F24E1E"
|
|
15
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
16
|
-
d: "M12 0h4a4 4 0 010 8h-4V0z",
|
|
17
|
-
fill: "#FF7262"
|
|
18
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
19
|
-
d: "M20 12a4 4 0 11-8 0 4 4 0 018 0z",
|
|
20
|
-
fill: "#1ABCFE"
|
|
21
|
-
})]
|
|
22
|
-
}), 'Figma');
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var _path;
|
|
2
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
function FileDownload(props) {
|
|
5
|
-
return /*#__PURE__*/_jsx(SvgIcon, {
|
|
6
|
-
...props,
|
|
7
|
-
children: _path || (_path = /*#__PURE__*/_jsx("path", {
|
|
8
|
-
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
|
|
9
|
-
}))
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
FileDownload.muiName = 'SvgIcon';
|
|
13
|
-
export default FileDownload;
|
package/svgIcons/JavaScript.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var _path;
|
|
2
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
function JavaScript(props) {
|
|
5
|
-
return /*#__PURE__*/_jsx(SvgIcon, {
|
|
6
|
-
...props,
|
|
7
|
-
children: _path || (_path = /*#__PURE__*/_jsx("path", {
|
|
8
|
-
d: "M3,3H21V21H3V3M7.73,18.04C8.13,18.89 8.92,19.59 10.27,19.59C11.77,19.59 12.8,18.79 12.8,17.04V11.26H11.1V17C11.1,17.86 10.75,18.08 10.2,18.08C9.62,18.08 9.38,17.68 9.11,17.21L7.73,18.04M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86Z"
|
|
9
|
-
}))
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
JavaScript.muiName = 'SvgIcon';
|
|
13
|
-
export default JavaScript;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var _svg;
|
|
2
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
export default function MarkdownIcon(props) {
|
|
5
|
-
return /*#__PURE__*/_jsx(SvgIcon, {
|
|
6
|
-
...props,
|
|
7
|
-
children: _svg || (_svg = /*#__PURE__*/_jsxs("svg", {
|
|
8
|
-
width: "16",
|
|
9
|
-
height: "16",
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
fill: "none",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"aria-hidden": "true",
|
|
14
|
-
children: [/*#__PURE__*/_jsx("title", {
|
|
15
|
-
children: "Markdown"
|
|
16
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
17
|
-
d: "M22.269 19.385H1.731a1.73 1.73 0 0 1-1.73-1.73V6.345a1.73 1.73 0 0 1 1.73-1.73h20.538a1.73 1.73 0 0 1 1.73 1.73v11.308a1.73 1.73 0 0 1-1.73 1.731zm-16.5-3.462v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.461v7.847zM21.231 12h-2.308V8.077h-2.307V12h-2.308l3.461 4.039z",
|
|
18
|
-
fill: "currentColor"
|
|
19
|
-
})]
|
|
20
|
-
}))
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
|
|
4
|
-
fill: "none",
|
|
5
|
-
fillRule: "evenodd",
|
|
6
|
-
children: [/*#__PURE__*/_jsx("circle", {
|
|
7
|
-
fill: "#737373",
|
|
8
|
-
cx: "12",
|
|
9
|
-
cy: "12",
|
|
10
|
-
r: "12"
|
|
11
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
12
|
-
fill: "#BDBDBD",
|
|
13
|
-
d: "M4 4h16v16H4z"
|
|
14
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
15
|
-
fill: "#FFF",
|
|
16
|
-
d: "M12 20l8-16H4z"
|
|
17
|
-
})]
|
|
18
|
-
}), 'MaterialDesign');
|
package/svgIcons/SketchIcon.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
|
|
4
|
-
fillRule: "nonzero",
|
|
5
|
-
fill: "none",
|
|
6
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
7
|
-
fill: "#FDB300",
|
|
8
|
-
d: "M5.24 2.7L12 2l6.76.7L24 9.48 12 23 0 9.49z"
|
|
9
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
10
|
-
fill: "#EA6C00",
|
|
11
|
-
d: "M4.85 9l7.13 14L0 9zM19.1 9l-7.12 14L23.95 9z"
|
|
12
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
13
|
-
fill: "#FDAD00",
|
|
14
|
-
d: "M4.85 9H19.1l-7.12 14z"
|
|
15
|
-
}), /*#__PURE__*/_jsxs("g", {
|
|
16
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
17
|
-
fill: "#FDD231",
|
|
18
|
-
d: "M11.98 2l-6.75.65-.38 6.34zM11.98 2l6.75.65.37 6.34z"
|
|
19
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
20
|
-
fill: "#FDAD00",
|
|
21
|
-
d: "M23.95 9l-5.22-6.35.37 6.34zM0 9l5.23-6.35-.38 6.34z"
|
|
22
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
23
|
-
fill: "#FEEEB7",
|
|
24
|
-
d: "M11.98 2L4.85 9H19.1z"
|
|
25
|
-
})]
|
|
26
|
-
})]
|
|
27
|
-
}), 'Sketch');
|
package/svgIcons/TypeScript.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var _path;
|
|
2
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
function TypeScript(props) {
|
|
5
|
-
return /*#__PURE__*/_jsx(SvgIcon, {
|
|
6
|
-
...props,
|
|
7
|
-
children: _path || (_path = /*#__PURE__*/_jsx("path", {
|
|
8
|
-
d: "M3,3H21V21H3V3M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86M13,11.25H8V12.75H9.5V20H11.25V12.75H13V11.25Z"
|
|
9
|
-
}))
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
TypeScript.muiName = 'SvgIcon';
|
|
13
|
-
export default TypeScript;
|
package/svgIcons/W3CIcon.d.mts
DELETED
package/svgIcons/W3CIcon.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
|
|
4
|
-
fillRule: "nonzero",
|
|
5
|
-
fill: "none",
|
|
6
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
7
|
-
d: "M6.92 6.1l2.33 7.99 2.32-8h6.3v.8l-2.37 4.14c.83.27 1.46.76 1.89 1.47.43.71.64 1.55.64 2.51 0 1.2-.31 2.2-.94 3a2.93 2.93 0 01-2.42 1.22 2.9 2.9 0 01-1.96-.72 4.25 4.25 0 01-1.23-1.96l1.31-.55c.2.5.45.9.76 1.18.32.28.69.43 1.12.43.44 0 .82-.26 1.13-.76.31-.51.47-1.12.47-1.84 0-.79-.17-1.4-.5-1.83-.38-.5-.99-.76-1.81-.76h-.64v-.78l2.24-3.92h-2.7l-.16.26-3.3 11.25h-.15l-2.4-8.14-2.41 8.14h-.16L.43 6.1H2.1l2.33 7.99L6 8.71 5.24 6.1h1.68z",
|
|
8
|
-
fill: "#005A9C"
|
|
9
|
-
}), /*#__PURE__*/_jsx("g", {
|
|
10
|
-
fill: "currentColor",
|
|
11
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
12
|
-
d: "M23.52 6.25l.28 1.62-.98 1.8s-.38-.76-1.01-1.19c-.53-.35-.87-.43-1.41-.33-.7.14-1.48.93-1.82 1.9-.41 1.18-.42 1.74-.43 2.26a4.9 4.9 0 00.11 1.33s-.6-1.06-.59-2.61c0-1.1.19-2.11.72-3.1.47-.87 1.17-1.4 1.8-1.45.63-.07 1.14.23 1.53.55.42.33.83 1.07.83 1.07l.97-1.85zM23.64 15.4s-.43.75-.7 1.04c-.27.28-.76.79-1.36 1.04-.6.25-.91.3-1.5.25a3.03 3.03 0 01-1.34-.52 5.08 5.08 0 01-1.67-2.04s.24.75.39 1.07c.09.18.36.74.74 1.23a3.5 3.5 0 002.1 1.42c1.04.18 1.76-.27 1.94-.38a5.32 5.32 0 001.4-1.43c.1-.14.25-.43.25-.43l-.25-1.25z"
|
|
13
|
-
})
|
|
14
|
-
})]
|
|
15
|
-
}), 'W3C');
|
package/translations/index.d.mts
DELETED
package/translations/index.mjs
DELETED
package/utils/loadScript.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function loadScript(src: string, position: HTMLElement): HTMLScriptElement;
|
package/utils/loadScript.mjs
DELETED
|
File without changes
|
|
File without changes
|