@mui/docs 6.4.4 → 7.0.0-alpha.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.
Files changed (280) hide show
  1. package/Ad/Ad.d.ts +1 -1
  2. package/Ad/Ad.js +42 -33
  3. package/Ad/AdCarbon.d.ts +1 -1
  4. package/Ad/AdCarbon.js +27 -18
  5. package/Ad/AdDisplay.d.ts +10 -10
  6. package/Ad/AdDisplay.js +28 -21
  7. package/Ad/AdGuest.d.ts +6 -6
  8. package/Ad/AdGuest.js +15 -8
  9. package/Ad/AdInHouse.d.ts +3 -3
  10. package/Ad/AdInHouse.js +13 -5
  11. package/Ad/AdManager.d.ts +12 -9
  12. package/Ad/AdManager.js +17 -8
  13. package/Ad/AdProvider.d.ts +9 -9
  14. package/Ad/AdProvider.js +13 -5
  15. package/Ad/ad.styles.d.ts +4322 -4322
  16. package/Ad/ad.styles.js +13 -5
  17. package/Ad/index.d.ts +5 -5
  18. package/Ad/index.js +62 -6
  19. package/CHANGELOG.md +71 -2258
  20. package/CodeCopy/CodeCopy.d.ts +5 -3
  21. package/CodeCopy/CodeCopy.js +19 -10
  22. package/CodeCopy/CodeCopyButton.d.ts +2 -2
  23. package/CodeCopy/CodeCopyButton.js +18 -10
  24. package/CodeCopy/index.d.ts +3 -3
  25. package/CodeCopy/index.js +40 -3
  26. package/CodeCopy/useClipboardCopy.d.ts +3 -3
  27. package/CodeCopy/useClipboardCopy.js +12 -4
  28. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +5 -5
  29. package/ComponentLinkHeader/ComponentLinkHeader.js +48 -40
  30. package/ComponentLinkHeader/index.d.ts +2 -2
  31. package/ComponentLinkHeader/index.js +24 -2
  32. package/DocsProvider/DocsProvider.d.ts +19 -13
  33. package/DocsProvider/DocsProvider.js +17 -9
  34. package/DocsProvider/index.d.ts +1 -1
  35. package/DocsProvider/index.js +16 -1
  36. package/HighlightedCode/HighlightedCode.d.ts +9 -9
  37. package/HighlightedCode/HighlightedCode.js +26 -18
  38. package/HighlightedCode/index.d.ts +1 -1
  39. package/HighlightedCode/index.js +16 -1
  40. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +18 -18
  41. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +31 -22
  42. package/HighlightedCodeWithTabs/index.d.ts +2 -2
  43. package/HighlightedCodeWithTabs/index.js +24 -2
  44. package/InfoCard/InfoCard.d.ts +15 -13
  45. package/InfoCard/InfoCard.js +29 -20
  46. package/InfoCard/index.d.ts +1 -1
  47. package/InfoCard/index.js +16 -1
  48. package/Link/Link.d.ts +14 -8
  49. package/Link/Link.js +26 -29
  50. package/Link/index.d.ts +1 -1
  51. package/Link/index.js +16 -1
  52. package/MarkdownElement/MarkdownElement.d.ts +4 -4
  53. package/MarkdownElement/MarkdownElement.js +186 -178
  54. package/MarkdownElement/index.d.ts +1 -1
  55. package/MarkdownElement/index.js +16 -1
  56. package/NProgressBar/NProgressBar.d.ts +1 -3
  57. package/NProgressBar/NProgressBar.js +23 -15
  58. package/NProgressBar/index.d.ts +2 -2
  59. package/NProgressBar/index.js +13 -1
  60. package/README.md +4 -4
  61. package/SectionTitle/SectionTitle.d.ts +4 -4
  62. package/SectionTitle/SectionTitle.js +15 -8
  63. package/SectionTitle/index.d.ts +1 -1
  64. package/SectionTitle/index.js +16 -1
  65. package/branding/BrandingProvider.d.ts +6 -6
  66. package/branding/BrandingProvider.js +15 -8
  67. package/branding/brandingTheme.d.ts +118 -119
  68. package/branding/brandingTheme.js +126 -115
  69. package/branding/index.d.ts +2 -2
  70. package/branding/index.js +27 -2
  71. package/esm/Ad/Ad.d.ts +6 -0
  72. package/{node → esm}/Ad/Ad.js +33 -42
  73. package/esm/Ad/AdCarbon.d.ts +3 -0
  74. package/{node → esm}/Ad/AdCarbon.js +18 -27
  75. package/esm/Ad/AdDisplay.d.ts +16 -0
  76. package/{node → esm}/Ad/AdDisplay.js +21 -28
  77. package/esm/Ad/AdGuest.d.ts +10 -0
  78. package/esm/Ad/AdGuest.js +29 -0
  79. package/esm/Ad/AdInHouse.d.ts +5 -0
  80. package/esm/Ad/AdInHouse.js +15 -0
  81. package/esm/Ad/AdManager.d.ts +19 -0
  82. package/esm/Ad/AdManager.js +36 -0
  83. package/esm/Ad/AdProvider.d.ts +15 -0
  84. package/esm/Ad/AdProvider.js +24 -0
  85. package/esm/Ad/ad.styles.d.ts +4329 -0
  86. package/{node → esm}/Ad/ad.styles.js +5 -13
  87. package/esm/Ad/index.d.ts +5 -0
  88. package/esm/Ad/index.js +7 -0
  89. package/esm/CodeCopy/CodeCopy.d.ts +22 -0
  90. package/{node → esm}/CodeCopy/CodeCopy.js +10 -19
  91. package/esm/CodeCopy/CodeCopyButton.d.ts +5 -0
  92. package/esm/CodeCopy/CodeCopyButton.js +41 -0
  93. package/esm/CodeCopy/index.d.ts +3 -0
  94. package/esm/CodeCopy/index.js +3 -0
  95. package/esm/CodeCopy/useClipboardCopy.d.ts +4 -0
  96. package/esm/CodeCopy/useClipboardCopy.js +21 -0
  97. package/esm/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  98. package/{node → esm}/ComponentLinkHeader/ComponentLinkHeader.js +40 -48
  99. package/esm/ComponentLinkHeader/index.d.ts +2 -0
  100. package/esm/ComponentLinkHeader/index.js +2 -0
  101. package/esm/DocsProvider/DocsProvider.d.ts +24 -0
  102. package/esm/DocsProvider/DocsProvider.js +31 -0
  103. package/esm/DocsProvider/index.d.ts +1 -0
  104. package/esm/DocsProvider/index.js +1 -0
  105. package/esm/HighlightedCode/HighlightedCode.d.ts +14 -0
  106. package/esm/HighlightedCode/HighlightedCode.js +67 -0
  107. package/esm/HighlightedCode/index.d.ts +1 -0
  108. package/esm/HighlightedCode/index.js +1 -0
  109. package/esm/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  110. package/{node → esm}/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
  111. package/esm/HighlightedCodeWithTabs/index.d.ts +2 -0
  112. package/esm/HighlightedCodeWithTabs/index.js +2 -0
  113. package/esm/InfoCard/InfoCard.d.ts +22 -0
  114. package/esm/InfoCard/InfoCard.js +87 -0
  115. package/esm/InfoCard/index.d.ts +1 -0
  116. package/esm/InfoCard/index.js +1 -0
  117. package/esm/Link/Link.d.ts +22 -0
  118. package/{node → esm}/Link/Link.js +19 -37
  119. package/esm/Link/index.d.ts +1 -0
  120. package/esm/Link/index.js +1 -0
  121. package/esm/MarkdownElement/MarkdownElement.d.ts +7 -0
  122. package/{node → esm}/MarkdownElement/MarkdownElement.js +178 -186
  123. package/esm/MarkdownElement/index.d.ts +1 -0
  124. package/esm/MarkdownElement/index.js +1 -0
  125. package/esm/NProgressBar/NProgressBar.d.ts +6 -0
  126. package/{node → esm}/NProgressBar/NProgressBar.js +15 -23
  127. package/esm/NProgressBar/index.d.ts +2 -0
  128. package/esm/NProgressBar/index.js +1 -0
  129. package/esm/SectionTitle/SectionTitle.d.ts +7 -0
  130. package/esm/SectionTitle/SectionTitle.js +30 -0
  131. package/esm/SectionTitle/index.d.ts +1 -0
  132. package/esm/SectionTitle/index.js +1 -0
  133. package/esm/branding/BrandingProvider.d.ts +9 -0
  134. package/esm/branding/BrandingProvider.js +17 -0
  135. package/esm/branding/brandingTheme.d.ts +151 -0
  136. package/{node → esm}/branding/brandingTheme.js +115 -126
  137. package/esm/branding/index.d.ts +2 -0
  138. package/esm/branding/index.js +2 -0
  139. package/esm/i18n/i18n.d.ts +27 -0
  140. package/{node → esm}/i18n/i18n.js +17 -29
  141. package/esm/i18n/index.d.ts +1 -0
  142. package/esm/i18n/index.js +1 -0
  143. package/esm/package.json +1 -0
  144. package/esm/svgIcons/BundleSizeIcon.d.ts +4 -0
  145. package/esm/svgIcons/BundleSizeIcon.js +14 -0
  146. package/esm/svgIcons/FigmaIcon.d.ts +4 -0
  147. package/esm/svgIcons/FigmaIcon.js +23 -0
  148. package/esm/svgIcons/FileDownload.d.ts +7 -0
  149. package/esm/svgIcons/FileDownload.js +14 -0
  150. package/esm/svgIcons/JavaScript.d.ts +7 -0
  151. package/{node → esm}/svgIcons/JavaScript.js +6 -14
  152. package/esm/svgIcons/MaterialDesignIcon.d.ts +4 -0
  153. package/esm/svgIcons/MaterialDesignIcon.js +19 -0
  154. package/esm/svgIcons/SketchIcon.d.ts +4 -0
  155. package/esm/svgIcons/SketchIcon.js +28 -0
  156. package/esm/svgIcons/TypeScript.d.ts +7 -0
  157. package/esm/svgIcons/TypeScript.js +14 -0
  158. package/esm/svgIcons/W3CIcon.d.ts +4 -0
  159. package/{node → esm}/svgIcons/W3CIcon.js +7 -14
  160. package/esm/translations/index.d.ts +3 -0
  161. package/esm/translations/index.js +4 -0
  162. package/esm/utils/loadScript.d.ts +1 -0
  163. package/{node → esm}/utils/loadScript.js +1 -7
  164. package/i18n/i18n.d.ts +12 -14
  165. package/i18n/i18n.js +29 -17
  166. package/i18n/index.d.ts +1 -1
  167. package/i18n/index.js +16 -1
  168. package/modern/Ad/Ad.d.ts +6 -0
  169. package/modern/Ad/AdCarbon.d.ts +3 -0
  170. package/modern/Ad/AdDisplay.d.ts +16 -0
  171. package/modern/Ad/AdGuest.d.ts +10 -0
  172. package/modern/Ad/AdInHouse.d.ts +5 -0
  173. package/modern/Ad/AdManager.d.ts +19 -0
  174. package/modern/Ad/AdProvider.d.ts +15 -0
  175. package/modern/Ad/ad.styles.d.ts +4329 -0
  176. package/modern/Ad/index.d.ts +5 -0
  177. package/modern/CodeCopy/CodeCopy.d.ts +22 -0
  178. package/modern/CodeCopy/CodeCopyButton.d.ts +5 -0
  179. package/modern/CodeCopy/index.d.ts +3 -0
  180. package/modern/CodeCopy/useClipboardCopy.d.ts +4 -0
  181. package/modern/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  182. package/modern/ComponentLinkHeader/index.d.ts +2 -0
  183. package/modern/DocsProvider/DocsProvider.d.ts +24 -0
  184. package/modern/DocsProvider/index.d.ts +1 -0
  185. package/modern/HighlightedCode/HighlightedCode.d.ts +14 -0
  186. package/modern/HighlightedCode/index.d.ts +1 -0
  187. package/modern/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  188. package/modern/HighlightedCodeWithTabs/index.d.ts +2 -0
  189. package/modern/InfoCard/InfoCard.d.ts +22 -0
  190. package/modern/InfoCard/index.d.ts +1 -0
  191. package/modern/Link/Link.d.ts +22 -0
  192. package/modern/Link/index.d.ts +1 -0
  193. package/modern/MarkdownElement/MarkdownElement.d.ts +7 -0
  194. package/modern/MarkdownElement/index.d.ts +1 -0
  195. package/modern/NProgressBar/NProgressBar.d.ts +6 -0
  196. package/modern/NProgressBar/index.d.ts +2 -0
  197. package/modern/SectionTitle/SectionTitle.d.ts +7 -0
  198. package/modern/SectionTitle/index.d.ts +1 -0
  199. package/modern/branding/BrandingProvider.d.ts +9 -0
  200. package/modern/branding/brandingTheme.d.ts +151 -0
  201. package/modern/branding/index.d.ts +2 -0
  202. package/modern/i18n/i18n.d.ts +27 -0
  203. package/modern/i18n/index.d.ts +1 -0
  204. package/modern/svgIcons/BundleSizeIcon.d.ts +4 -0
  205. package/modern/svgIcons/FigmaIcon.d.ts +4 -0
  206. package/modern/svgIcons/FileDownload.d.ts +7 -0
  207. package/modern/svgIcons/JavaScript.d.ts +7 -0
  208. package/modern/svgIcons/MaterialDesignIcon.d.ts +4 -0
  209. package/modern/svgIcons/SketchIcon.d.ts +4 -0
  210. package/modern/svgIcons/TypeScript.d.ts +7 -0
  211. package/modern/svgIcons/W3CIcon.d.ts +4 -0
  212. package/modern/translations/index.d.ts +3 -0
  213. package/modern/utils/loadScript.d.ts +1 -0
  214. package/package.json +34 -4
  215. package/svgIcons/BundleSizeIcon.d.ts +2 -2
  216. package/svgIcons/BundleSizeIcon.js +13 -6
  217. package/svgIcons/FigmaIcon.d.ts +2 -2
  218. package/svgIcons/FigmaIcon.js +16 -9
  219. package/svgIcons/FileDownload.d.ts +2 -2
  220. package/svgIcons/FileDownload.js +14 -6
  221. package/svgIcons/JavaScript.d.ts +2 -2
  222. package/svgIcons/JavaScript.js +14 -6
  223. package/svgIcons/MaterialDesignIcon.d.ts +2 -2
  224. package/svgIcons/MaterialDesignIcon.js +14 -7
  225. package/svgIcons/SketchIcon.d.ts +2 -2
  226. package/svgIcons/SketchIcon.js +18 -11
  227. package/svgIcons/TypeScript.d.ts +2 -2
  228. package/svgIcons/TypeScript.js +14 -6
  229. package/svgIcons/W3CIcon.d.ts +2 -2
  230. package/svgIcons/W3CIcon.js +14 -7
  231. package/translations/index.d.ts +2 -2
  232. package/translations/index.js +10 -3
  233. package/tsconfig.build.tsbuildinfo +1 -1
  234. package/utils/loadScript.d.ts +1 -1
  235. package/utils/loadScript.js +7 -1
  236. package/Ad/package.json +0 -6
  237. package/CodeCopy/package.json +0 -6
  238. package/ComponentLinkHeader/package.json +0 -6
  239. package/DocsProvider/package.json +0 -6
  240. package/HighlightedCode/package.json +0 -6
  241. package/HighlightedCodeWithTabs/package.json +0 -6
  242. package/InfoCard/package.json +0 -6
  243. package/Link/package.json +0 -6
  244. package/MarkdownElement/package.json +0 -6
  245. package/NProgressBar/package.json +0 -6
  246. package/SectionTitle/package.json +0 -6
  247. package/branding/package.json +0 -6
  248. package/i18n/package.json +0 -6
  249. package/node/Ad/AdGuest.js +0 -36
  250. package/node/Ad/AdInHouse.js +0 -23
  251. package/node/Ad/AdManager.js +0 -45
  252. package/node/Ad/AdProvider.js +0 -32
  253. package/node/Ad/index.js +0 -63
  254. package/node/CodeCopy/CodeCopyButton.js +0 -49
  255. package/node/CodeCopy/index.js +0 -40
  256. package/node/CodeCopy/useClipboardCopy.js +0 -29
  257. package/node/ComponentLinkHeader/index.js +0 -24
  258. package/node/DocsProvider/DocsProvider.js +0 -39
  259. package/node/DocsProvider/index.js +0 -16
  260. package/node/HighlightedCode/HighlightedCode.js +0 -75
  261. package/node/HighlightedCode/index.js +0 -16
  262. package/node/HighlightedCodeWithTabs/index.js +0 -24
  263. package/node/InfoCard/InfoCard.js +0 -96
  264. package/node/InfoCard/index.js +0 -16
  265. package/node/Link/index.js +0 -16
  266. package/node/MarkdownElement/index.js +0 -16
  267. package/node/NProgressBar/index.js +0 -13
  268. package/node/SectionTitle/SectionTitle.js +0 -37
  269. package/node/SectionTitle/index.js +0 -16
  270. package/node/branding/BrandingProvider.js +0 -24
  271. package/node/branding/index.js +0 -27
  272. package/node/i18n/index.js +0 -16
  273. package/node/svgIcons/BundleSizeIcon.js +0 -21
  274. package/node/svgIcons/FigmaIcon.js +0 -30
  275. package/node/svgIcons/FileDownload.js +0 -22
  276. package/node/svgIcons/MaterialDesignIcon.js +0 -26
  277. package/node/svgIcons/SketchIcon.js +0 -35
  278. package/node/svgIcons/TypeScript.js +0 -22
  279. package/node/translations/index.js +0 -11
  280. package/translations/package.json +0 -6
@@ -0,0 +1,2 @@
1
+ export * from "./brandingTheme.js";
2
+ export * from "./BrandingProvider.js";
@@ -0,0 +1,2 @@
1
+ export * from "./brandingTheme.js";
2
+ export * from "./BrandingProvider.js";
@@ -0,0 +1,27 @@
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): React.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;
@@ -1,28 +1,16 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.UserLanguageProvider = UserLanguageProvider;
9
- exports.mapTranslations = mapTranslations;
10
- exports.useSetUserLanguage = useSetUserLanguage;
11
- exports.useTranslate = useTranslate;
12
- exports.useUserLanguage = useUserLanguage;
13
- var React = _interopRequireWildcard(require("react"));
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
- var _utils = require("@mui/utils");
16
- var _translations = _interopRequireDefault(require("../translations"));
17
- var _jsxRuntime = require("react/jsx-runtime");
18
- const TranslationsContext = /*#__PURE__*/React.createContext(_translations.default);
1
+ import * as React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { deepmerge } from '@mui/utils';
4
+ import defaultTranslations from "../translations/index.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
19
7
  function TranslationsProvider({
20
8
  translations = {},
21
9
  children
22
10
  }) {
23
11
  const currentTranslations = React.useContext(TranslationsContext);
24
- const mergedTranslations = React.useMemo(() => (0, _utils.deepmerge)(currentTranslations, translations), [currentTranslations, translations]);
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslationsContext.Provider, {
12
+ const mergedTranslations = React.useMemo(() => deepmerge(currentTranslations, translations), [currentTranslations, translations]);
13
+ return /*#__PURE__*/_jsx(TranslationsContext.Provider, {
26
14
  value: mergedTranslations,
27
15
  children: children
28
16
  });
@@ -44,7 +32,7 @@ const UserLanguageContext = /*#__PURE__*/React.createContext({
44
32
  if (process.env.NODE_ENV !== 'production') {
45
33
  UserLanguageContext.displayName = 'UserLanguage';
46
34
  }
47
- function UserLanguageProvider(props) {
35
+ export function UserLanguageProvider(props) {
48
36
  const {
49
37
  children,
50
38
  translations,
@@ -57,22 +45,22 @@ function UserLanguageProvider(props) {
57
45
  setUserLanguage
58
46
  };
59
47
  }, [userLanguage]);
60
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslationsProvider, {
48
+ return /*#__PURE__*/_jsx(TranslationsProvider, {
61
49
  translations: translations,
62
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(UserLanguageContext.Provider, {
50
+ children: /*#__PURE__*/_jsx(UserLanguageContext.Provider, {
63
51
  value: contextValue,
64
52
  children: children
65
53
  })
66
54
  });
67
55
  }
68
56
  process.env.NODE_ENV !== "production" ? UserLanguageProvider.propTypes = {
69
- children: _propTypes.default.node.isRequired,
70
- defaultUserLanguage: _propTypes.default.string
57
+ children: PropTypes.node.isRequired,
58
+ defaultUserLanguage: PropTypes.string
71
59
  } : void 0;
72
- function useUserLanguage() {
60
+ export function useUserLanguage() {
73
61
  return React.useContext(UserLanguageContext).userLanguage;
74
62
  }
75
- function useSetUserLanguage() {
63
+ export function useSetUserLanguage() {
76
64
  return React.useContext(UserLanguageContext).setUserLanguage;
77
65
  }
78
66
  const warnedOnce = {};
@@ -86,7 +74,7 @@ const warn = (userLanguage, key, ignoreWarning) => {
86
74
  warnedOnce[fullKey] = true;
87
75
  }
88
76
  };
89
- function useTranslate() {
77
+ export function useTranslate() {
90
78
  const userLanguage = useUserLanguage();
91
79
  const translations = React.useContext(TranslationsContext);
92
80
  return React.useMemo(() => function translate(key, options = {}) {
@@ -107,7 +95,7 @@ function useTranslate() {
107
95
  return translation;
108
96
  }, [userLanguage, translations]);
109
97
  }
110
- function mapTranslations(req) {
98
+ export function mapTranslations(req) {
111
99
  const result = {};
112
100
  req.keys().forEach(filename => {
113
101
  const match = filename.match(/-([a-z]{2}).json$/);
@@ -0,0 +1 @@
1
+ export * from "./i18n.js";
@@ -0,0 +1 @@
1
+ export * from "./i18n.js";
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { createSvgIcon } from '@mui/material/utils';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
5
+ fill: "currentColor",
6
+ fillRule: "nonzero",
7
+ children: [/*#__PURE__*/_jsx("path", {
8
+ 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",
9
+ fillOpacity: ".79"
10
+ }), /*#__PURE__*/_jsx("path", {
11
+ 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",
12
+ fillOpacity: ".87"
13
+ })]
14
+ }), 'BundleSize');
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { createSvgIcon } from '@mui/material/utils';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
5
+ fillRule: "nonzero",
6
+ fill: "none",
7
+ children: [/*#__PURE__*/_jsx("path", {
8
+ d: "M8 24a4 4 0 004-4v-4H8a4 4 0 000 8z",
9
+ fill: "#0ACF83"
10
+ }), /*#__PURE__*/_jsx("path", {
11
+ d: "M4 12a4 4 0 014-4h4v8H8a4 4 0 01-4-4z",
12
+ fill: "#A259FF"
13
+ }), /*#__PURE__*/_jsx("path", {
14
+ d: "M4 4a4 4 0 014-4h4v8H8a4 4 0 01-4-4z",
15
+ fill: "#F24E1E"
16
+ }), /*#__PURE__*/_jsx("path", {
17
+ d: "M12 0h4a4 4 0 010 8h-4V0z",
18
+ fill: "#FF7262"
19
+ }), /*#__PURE__*/_jsx("path", {
20
+ d: "M20 12a4 4 0 11-8 0 4 4 0 018 0z",
21
+ fill: "#1ABCFE"
22
+ })]
23
+ }), 'Figma');
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { SvgIconProps } from '@mui/material/SvgIcon';
3
+ declare function FileDownload(props: SvgIconProps): React.JSX.Element;
4
+ declare namespace FileDownload {
5
+ var muiName: string;
6
+ }
7
+ export default FileDownload;
@@ -0,0 +1,14 @@
1
+ var _path;
2
+ import * as React from 'react';
3
+ import SvgIcon from '@mui/material/SvgIcon';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ function FileDownload(props) {
6
+ return /*#__PURE__*/_jsx(SvgIcon, {
7
+ ...props,
8
+ children: _path || (_path = /*#__PURE__*/_jsx("path", {
9
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
10
+ }))
11
+ });
12
+ }
13
+ FileDownload.muiName = 'SvgIcon';
14
+ export default FileDownload;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { SvgIconProps } from '@mui/material/SvgIcon';
3
+ declare function JavaScript(props: SvgIconProps): React.JSX.Element;
4
+ declare namespace JavaScript {
5
+ var muiName: string;
6
+ }
7
+ export default JavaScript;
@@ -1,22 +1,14 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
- var React = _interopRequireWildcard(require("react"));
10
- var _SvgIcon = _interopRequireDefault(require("@mui/material/SvgIcon"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
1
  var _path;
2
+ import * as React from 'react';
3
+ import SvgIcon from '@mui/material/SvgIcon';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
13
5
  function JavaScript(props) {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SvgIcon.default, {
6
+ return /*#__PURE__*/_jsx(SvgIcon, {
15
7
  ...props,
16
- children: _path || (_path = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
8
+ children: _path || (_path = /*#__PURE__*/_jsx("path", {
17
9
  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"
18
10
  }))
19
11
  });
20
12
  }
21
13
  JavaScript.muiName = 'SvgIcon';
22
- var _default = exports.default = JavaScript;
14
+ export default JavaScript;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { createSvgIcon } from '@mui/material/utils';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
5
+ fill: "none",
6
+ fillRule: "evenodd",
7
+ children: [/*#__PURE__*/_jsx("circle", {
8
+ fill: "#737373",
9
+ cx: "12",
10
+ cy: "12",
11
+ r: "12"
12
+ }), /*#__PURE__*/_jsx("path", {
13
+ fill: "#BDBDBD",
14
+ d: "M4 4h16v16H4z"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ fill: "#FFF",
17
+ d: "M12 20l8-16H4z"
18
+ })]
19
+ }), 'MaterialDesign');
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { createSvgIcon } from '@mui/material/utils';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
5
+ fillRule: "nonzero",
6
+ fill: "none",
7
+ children: [/*#__PURE__*/_jsx("path", {
8
+ fill: "#FDB300",
9
+ d: "M5.24 2.7L12 2l6.76.7L24 9.48 12 23 0 9.49z"
10
+ }), /*#__PURE__*/_jsx("path", {
11
+ fill: "#EA6C00",
12
+ d: "M4.85 9l7.13 14L0 9zM19.1 9l-7.12 14L23.95 9z"
13
+ }), /*#__PURE__*/_jsx("path", {
14
+ fill: "#FDAD00",
15
+ d: "M4.85 9H19.1l-7.12 14z"
16
+ }), /*#__PURE__*/_jsxs("g", {
17
+ children: [/*#__PURE__*/_jsx("path", {
18
+ fill: "#FDD231",
19
+ d: "M11.98 2l-6.75.65-.38 6.34zM11.98 2l6.75.65.37 6.34z"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ fill: "#FDAD00",
22
+ d: "M23.95 9l-5.22-6.35.37 6.34zM0 9l5.23-6.35-.38 6.34z"
23
+ }), /*#__PURE__*/_jsx("path", {
24
+ fill: "#FEEEB7",
25
+ d: "M11.98 2L4.85 9H19.1z"
26
+ })]
27
+ })]
28
+ }), 'Sketch');
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { SvgIconProps } from '@mui/material/SvgIcon';
3
+ declare function TypeScript(props: SvgIconProps): React.JSX.Element;
4
+ declare namespace TypeScript {
5
+ var muiName: string;
6
+ }
7
+ export default TypeScript;
@@ -0,0 +1,14 @@
1
+ var _path;
2
+ import * as React from 'react';
3
+ import SvgIcon from '@mui/material/SvgIcon';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ function TypeScript(props) {
6
+ return /*#__PURE__*/_jsx(SvgIcon, {
7
+ ...props,
8
+ children: _path || (_path = /*#__PURE__*/_jsx("path", {
9
+ 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"
10
+ }))
11
+ });
12
+ }
13
+ TypeScript.muiName = 'SvgIcon';
14
+ export default TypeScript;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default _default;
@@ -1,22 +1,15 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var React = _interopRequireWildcard(require("react"));
9
- var _utils = require("@mui/material/utils");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- var _default = exports.default = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
1
+ import * as React from 'react';
2
+ import { createSvgIcon } from '@mui/material/utils';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export default createSvgIcon(/*#__PURE__*/_jsxs("g", {
12
5
  fillRule: "nonzero",
13
6
  fill: "none",
14
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
7
+ children: [/*#__PURE__*/_jsx("path", {
15
8
  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",
16
9
  fill: "#005A9C"
17
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
10
+ }), /*#__PURE__*/_jsx("g", {
18
11
  fill: "currentColor",
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
12
+ children: /*#__PURE__*/_jsx("path", {
20
13
  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"
21
14
  })
22
15
  })]
@@ -0,0 +1,3 @@
1
+ import type { Translations } from "../i18n/index.js";
2
+ declare const _default: Record<string, Translations>;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import en from "./translations.json";
2
+ export default {
3
+ en
4
+ };
@@ -0,0 +1 @@
1
+ export default function loadScript(src: string, position: HTMLElement): HTMLScriptElement;
@@ -1,10 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = loadScript;
7
- function loadScript(src, position) {
1
+ export default function loadScript(src, position) {
8
2
  const script = document.createElement('script');
9
3
  script.setAttribute('async', '');
10
4
  script.src = src;
package/i18n/i18n.d.ts CHANGED
@@ -1,29 +1,27 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface UserLanguageProviderProps {
4
- children: React.ReactNode;
5
- translations?: Translations;
6
- defaultUserLanguage: string;
4
+ children: React.ReactNode;
5
+ translations?: Translations;
6
+ defaultUserLanguage: string;
7
7
  }
8
8
  export declare function UserLanguageProvider(props: UserLanguageProviderProps): React.JSX.Element;
9
9
  export declare namespace UserLanguageProvider {
10
- var propTypes: {
11
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
12
- defaultUserLanguage: PropTypes.Requireable<string>;
13
- };
10
+ var propTypes: {
11
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
12
+ defaultUserLanguage: PropTypes.Requireable<string>;
13
+ };
14
14
  }
15
15
  export declare function useUserLanguage(): string;
16
16
  export declare function useSetUserLanguage(): React.Dispatch<React.SetStateAction<string>>;
17
17
  export interface TranslateOptions {
18
- ignoreWarning?: boolean;
18
+ ignoreWarning?: boolean;
19
19
  }
20
20
  export type Translate = (key: string, options?: TranslateOptions) => any;
21
21
  export declare function useTranslate(): Translate;
22
- export type Translations = {
23
- [key in string]?: string | Translations;
24
- };
22
+ export type Translations = { [key in string]?: string | Translations };
25
23
  export interface RequireContext {
26
- (req: string): string;
27
- keys: () => string[];
24
+ (req: string): string;
25
+ keys: () => string[];
28
26
  }
29
- export declare function mapTranslations(req: RequireContext): Translations;
27
+ export declare function mapTranslations(req: RequireContext): Translations;
package/i18n/i18n.js CHANGED
@@ -1,16 +1,28 @@
1
- import * as React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { deepmerge } from '@mui/utils';
4
- import defaultTranslations from "../translations/index.js";
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.UserLanguageProvider = UserLanguageProvider;
9
+ exports.mapTranslations = mapTranslations;
10
+ exports.useSetUserLanguage = useSetUserLanguage;
11
+ exports.useTranslate = useTranslate;
12
+ exports.useUserLanguage = useUserLanguage;
13
+ var React = _interopRequireWildcard(require("react"));
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+ var _utils = require("@mui/utils");
16
+ var _translations = _interopRequireDefault(require("../translations"));
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ const TranslationsContext = /*#__PURE__*/React.createContext(_translations.default);
7
19
  function TranslationsProvider({
8
20
  translations = {},
9
21
  children
10
22
  }) {
11
23
  const currentTranslations = React.useContext(TranslationsContext);
12
- const mergedTranslations = React.useMemo(() => deepmerge(currentTranslations, translations), [currentTranslations, translations]);
13
- return /*#__PURE__*/_jsx(TranslationsContext.Provider, {
24
+ const mergedTranslations = React.useMemo(() => (0, _utils.deepmerge)(currentTranslations, translations), [currentTranslations, translations]);
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslationsContext.Provider, {
14
26
  value: mergedTranslations,
15
27
  children: children
16
28
  });
@@ -32,7 +44,7 @@ const UserLanguageContext = /*#__PURE__*/React.createContext({
32
44
  if (process.env.NODE_ENV !== 'production') {
33
45
  UserLanguageContext.displayName = 'UserLanguage';
34
46
  }
35
- export function UserLanguageProvider(props) {
47
+ function UserLanguageProvider(props) {
36
48
  const {
37
49
  children,
38
50
  translations,
@@ -45,22 +57,22 @@ export function UserLanguageProvider(props) {
45
57
  setUserLanguage
46
58
  };
47
59
  }, [userLanguage]);
48
- return /*#__PURE__*/_jsx(TranslationsProvider, {
60
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslationsProvider, {
49
61
  translations: translations,
50
- children: /*#__PURE__*/_jsx(UserLanguageContext.Provider, {
62
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(UserLanguageContext.Provider, {
51
63
  value: contextValue,
52
64
  children: children
53
65
  })
54
66
  });
55
67
  }
56
68
  process.env.NODE_ENV !== "production" ? UserLanguageProvider.propTypes = {
57
- children: PropTypes.node.isRequired,
58
- defaultUserLanguage: PropTypes.string
69
+ children: _propTypes.default.node.isRequired,
70
+ defaultUserLanguage: _propTypes.default.string
59
71
  } : void 0;
60
- export function useUserLanguage() {
72
+ function useUserLanguage() {
61
73
  return React.useContext(UserLanguageContext).userLanguage;
62
74
  }
63
- export function useSetUserLanguage() {
75
+ function useSetUserLanguage() {
64
76
  return React.useContext(UserLanguageContext).setUserLanguage;
65
77
  }
66
78
  const warnedOnce = {};
@@ -74,7 +86,7 @@ const warn = (userLanguage, key, ignoreWarning) => {
74
86
  warnedOnce[fullKey] = true;
75
87
  }
76
88
  };
77
- export function useTranslate() {
89
+ function useTranslate() {
78
90
  const userLanguage = useUserLanguage();
79
91
  const translations = React.useContext(TranslationsContext);
80
92
  return React.useMemo(() => function translate(key, options = {}) {
@@ -95,7 +107,7 @@ export function useTranslate() {
95
107
  return translation;
96
108
  }, [userLanguage, translations]);
97
109
  }
98
- export function mapTranslations(req) {
110
+ function mapTranslations(req) {
99
111
  const result = {};
100
112
  req.keys().forEach(filename => {
101
113
  const match = filename.match(/-([a-z]{2}).json$/);
package/i18n/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './i18n';
1
+ export * from "./i18n.js";
package/i18n/index.js CHANGED
@@ -1 +1,16 @@
1
- export * from "./i18n.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _i18n = require("./i18n");
7
+ Object.keys(_i18n).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _i18n[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _i18n[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export declare const AD_MARGIN_TOP = 3;
3
+ export declare const AD_MARGIN_BOTTOM = 3;
4
+ export declare const AD_HEIGHT = 126;
5
+ export declare const AD_HEIGHT_MOBILE: number;
6
+ export declare function Ad(): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare function AdCarbonInline(): React.JSX.Element;
3
+ export default function AdCarbon(): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface AdParameters {
3
+ name: string;
4
+ link: string;
5
+ img?: string;
6
+ description: string;
7
+ poweredby: string;
8
+ label: string;
9
+ }
10
+ interface AdDisplayProps {
11
+ ad: AdParameters;
12
+ className?: string;
13
+ shape?: 'auto' | 'inline' | 'image';
14
+ }
15
+ export default function AdDisplay(props: AdDisplayProps): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export interface AdGuestProps {
3
+ /**
4
+ * The querySelector use to target the element which will include the ad.
5
+ */
6
+ classSelector?: string;
7
+ children?: React.ReactNode | undefined;
8
+ }
9
+ declare function AdGuest(props: AdGuestProps): React.JSX.Element | null;
10
+ export { AdGuest };
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { AdParameters } from "./AdDisplay.js";
3
+ export default function AdInHouse(props: {
4
+ ad: Omit<AdParameters, 'poweredby' | 'label'>;
5
+ }): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ type AdPortal = {
3
+ placement: 'body-top';
4
+ element: Element | null;
5
+ };
6
+ interface AdManagerProps {
7
+ /**
8
+ * The querySelector use to target the element which will include the ad.
9
+ */
10
+ classSelector?: string;
11
+ children?: React.ReactNode | undefined;
12
+ }
13
+ export declare const AdContext: React.Context<AdPortal>;
14
+ export declare const adShape: string;
15
+ export declare function AdManager({
16
+ classSelector,
17
+ children
18
+ }: AdManagerProps): React.JSX.Element;
19
+ export {};