@mui/docs 7.0.0-beta.0 → 7.0.0-beta.2

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 (95) hide show
  1. package/Ad/Ad.d.ts +6 -0
  2. package/Ad/AdCarbon.d.ts +3 -0
  3. package/Ad/AdDisplay.d.ts +16 -0
  4. package/Ad/AdGuest.d.ts +10 -0
  5. package/Ad/AdInHouse.d.ts +5 -0
  6. package/Ad/AdManager.d.ts +19 -0
  7. package/Ad/AdProvider.d.ts +15 -0
  8. package/Ad/ad.styles.d.ts +4329 -0
  9. package/Ad/index.d.ts +5 -0
  10. package/CHANGELOG.md +30 -0
  11. package/CodeCopy/CodeCopy.d.ts +22 -0
  12. package/CodeCopy/CodeCopyButton.d.ts +5 -0
  13. package/CodeCopy/index.d.ts +3 -0
  14. package/CodeCopy/useClipboardCopy.d.ts +4 -0
  15. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  16. package/ComponentLinkHeader/index.d.ts +2 -0
  17. package/DocsProvider/DocsProvider.d.ts +24 -0
  18. package/DocsProvider/index.d.ts +1 -0
  19. package/HighlightedCode/HighlightedCode.d.ts +14 -0
  20. package/HighlightedCode/index.d.ts +1 -0
  21. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  22. package/HighlightedCodeWithTabs/index.d.ts +2 -0
  23. package/InfoCard/InfoCard.d.ts +22 -0
  24. package/InfoCard/index.d.ts +1 -0
  25. package/Link/Link.d.ts +22 -0
  26. package/Link/index.d.ts +1 -0
  27. package/MarkdownElement/MarkdownElement.d.ts +7 -0
  28. package/MarkdownElement/index.d.ts +1 -0
  29. package/NProgressBar/NProgressBar.d.ts +6 -0
  30. package/NProgressBar/index.d.ts +2 -0
  31. package/SectionTitle/SectionTitle.d.ts +7 -0
  32. package/SectionTitle/index.d.ts +1 -0
  33. package/branding/BrandingProvider.d.ts +9 -0
  34. package/branding/brandingTheme.d.ts +151 -0
  35. package/branding/index.d.ts +2 -0
  36. package/i18n/i18n.d.ts +27 -0
  37. package/i18n/index.d.ts +1 -0
  38. package/modern/Ad/Ad.d.ts +6 -0
  39. package/modern/Ad/AdCarbon.d.ts +3 -0
  40. package/modern/Ad/AdDisplay.d.ts +16 -0
  41. package/modern/Ad/AdGuest.d.ts +10 -0
  42. package/modern/Ad/AdInHouse.d.ts +5 -0
  43. package/modern/Ad/AdManager.d.ts +19 -0
  44. package/modern/Ad/AdProvider.d.ts +15 -0
  45. package/modern/Ad/ad.styles.d.ts +4329 -0
  46. package/modern/Ad/index.d.ts +5 -0
  47. package/modern/CodeCopy/CodeCopy.d.ts +22 -0
  48. package/modern/CodeCopy/CodeCopyButton.d.ts +5 -0
  49. package/modern/CodeCopy/index.d.ts +3 -0
  50. package/modern/CodeCopy/useClipboardCopy.d.ts +4 -0
  51. package/modern/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  52. package/modern/ComponentLinkHeader/index.d.ts +2 -0
  53. package/modern/DocsProvider/DocsProvider.d.ts +24 -0
  54. package/modern/DocsProvider/index.d.ts +1 -0
  55. package/modern/HighlightedCode/HighlightedCode.d.ts +14 -0
  56. package/modern/HighlightedCode/index.d.ts +1 -0
  57. package/modern/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  58. package/modern/HighlightedCodeWithTabs/index.d.ts +2 -0
  59. package/modern/InfoCard/InfoCard.d.ts +22 -0
  60. package/modern/InfoCard/index.d.ts +1 -0
  61. package/modern/Link/Link.d.ts +22 -0
  62. package/modern/Link/index.d.ts +1 -0
  63. package/modern/MarkdownElement/MarkdownElement.d.ts +7 -0
  64. package/modern/MarkdownElement/index.d.ts +1 -0
  65. package/modern/NProgressBar/NProgressBar.d.ts +6 -0
  66. package/modern/NProgressBar/index.d.ts +2 -0
  67. package/modern/SectionTitle/SectionTitle.d.ts +7 -0
  68. package/modern/SectionTitle/index.d.ts +1 -0
  69. package/modern/branding/BrandingProvider.d.ts +9 -0
  70. package/modern/branding/brandingTheme.d.ts +151 -0
  71. package/modern/branding/index.d.ts +2 -0
  72. package/modern/i18n/i18n.d.ts +27 -0
  73. package/modern/i18n/index.d.ts +1 -0
  74. package/modern/svgIcons/BundleSizeIcon.d.ts +4 -0
  75. package/modern/svgIcons/FigmaIcon.d.ts +4 -0
  76. package/modern/svgIcons/FileDownload.d.ts +7 -0
  77. package/modern/svgIcons/JavaScript.d.ts +7 -0
  78. package/modern/svgIcons/MaterialDesignIcon.d.ts +4 -0
  79. package/modern/svgIcons/SketchIcon.d.ts +4 -0
  80. package/modern/svgIcons/TypeScript.d.ts +7 -0
  81. package/modern/svgIcons/W3CIcon.d.ts +4 -0
  82. package/modern/translations/index.d.ts +3 -0
  83. package/modern/utils/loadScript.d.ts +1 -0
  84. package/package.json +2 -1
  85. package/svgIcons/BundleSizeIcon.d.ts +4 -0
  86. package/svgIcons/FigmaIcon.d.ts +4 -0
  87. package/svgIcons/FileDownload.d.ts +7 -0
  88. package/svgIcons/JavaScript.d.ts +7 -0
  89. package/svgIcons/MaterialDesignIcon.d.ts +4 -0
  90. package/svgIcons/SketchIcon.d.ts +4 -0
  91. package/svgIcons/TypeScript.d.ts +7 -0
  92. package/svgIcons/W3CIcon.d.ts +4 -0
  93. package/translations/index.d.ts +3 -0
  94. package/tsconfig.build.tsbuildinfo +1 -1
  95. package/utils/loadScript.d.ts +1 -0
package/Ad/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./Ad.js";
2
+ export * from "./AdManager.js";
3
+ export * from "./AdProvider.js";
4
+ export * from "./AdGuest.js";
5
+ export { AdCarbonInline } from "./AdCarbon.js";
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0-beta.2
4
+
5
+ <!-- generated comparing v7.0.0-beta.1..master -->
6
+
7
+ _Feb 27, 2025_
8
+
9
+ A big thanks to the 2 contributors who made this release possible.
10
+
11
+ ### Core
12
+
13
+ - [code-infra] Add package.json export (#45433) @Janpot
14
+ - [blog] React 19 migration for MUI X (#45348) @arminmeh
15
+
16
+ All contributors of this release in alphabetical order: @arminmeh, @Janpot
17
+
18
+ ## 7.0.0-beta.1
19
+
20
+ <!-- generated comparing v7.0.0-beta.0..master -->
21
+
22
+ _Feb 27, 2025_
23
+
24
+ This release fixes incorrect build output from the previous release (`beta.0`).
25
+
26
+ ### Core
27
+
28
+ - [code-infra] Fix build:types script omitting folders with a dot in their name (#45422) @Janpot
29
+ - [release] Fix versions (#45420) @mj12albert
30
+
31
+ All contributors of this release in alphabetical order: @Janpot, @mj12albert
32
+
3
33
  ## 7.0.0-beta.0
4
34
 
5
35
  <!-- generated comparing v7.0.0-alpha.2..master -->
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * How to use: spread the handlers to the .MuiCode-root
4
+ *
5
+ * The html structure should be:
6
+ * <div className="MuiCode-root">
7
+ * <pre>...</pre>
8
+ * <button className="MuiCode-copy">...</button>
9
+ * </div>
10
+ */
11
+ export declare function useCodeCopy(): React.HTMLAttributes<HTMLDivElement>;
12
+ interface CodeCopyProviderProps {
13
+ children: React.ReactNode;
14
+ }
15
+ /**
16
+ * Place <CodeCopyProvider> at the page level. It will check the keydown event and try to initiate copy click if rootNode exist.
17
+ * Any code block inside the tree can set the rootNode when mouse enter to leverage keyboard copy.
18
+ */
19
+ export declare function CodeCopyProvider({
20
+ children
21
+ }: CodeCopyProviderProps): React.JSX.Element;
22
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface CodeCopyButtonProps {
3
+ code: string;
4
+ }
5
+ export declare function CodeCopyButton(props: CodeCopyButtonProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from "./CodeCopy.js";
2
+ export * from "./CodeCopyButton.js";
3
+ export { default as useClipboardCopy } from "./useClipboardCopy.js";
@@ -0,0 +1,4 @@
1
+ export default function useClipboardCopy(): {
2
+ copy: (text: string) => Promise<void>;
3
+ isCopied: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { MarkdownHeaders } from '@mui/internal-markdown';
3
+ export interface ComponentLinkHeaderProps {
4
+ design?: boolean;
5
+ markdown: {
6
+ headers: MarkdownHeaders;
7
+ };
8
+ }
9
+ export declare function ComponentLinkHeader(props: ComponentLinkHeaderProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./ComponentLinkHeader.js";
2
+ export { ComponentLinkHeader as default } from "./ComponentLinkHeader.js";
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import { Translations } from "../i18n/index.js";
3
+ import { AdConfig } from "../Ad/index.js";
4
+ export interface DocsConfig {
5
+ LANGUAGES: string[];
6
+ LANGUAGES_SSR: string[];
7
+ LANGUAGES_IN_PROGRESS: string[];
8
+ LANGUAGES_IGNORE_PAGES: (pathname: string) => boolean;
9
+ }
10
+ export interface DocsProviderProps {
11
+ config: DocsConfig;
12
+ adConfig?: Partial<AdConfig>;
13
+ defaultUserLanguage: string;
14
+ children?: React.ReactNode;
15
+ translations?: Translations;
16
+ }
17
+ export declare function DocsProvider({
18
+ config,
19
+ adConfig,
20
+ defaultUserLanguage,
21
+ translations,
22
+ children
23
+ }: DocsProviderProps): React.JSX.Element;
24
+ export declare function useDocsConfig(): DocsConfig;
@@ -0,0 +1 @@
1
+ export * from "./DocsProvider.js";
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { ButtonProps } from '@mui/material/Button';
3
+ import { SxProps } from '@mui/material/styles';
4
+ export interface HighlightedCodeProps {
5
+ code: string;
6
+ copyButtonHidden?: boolean;
7
+ copyButtonProps?: ButtonProps;
8
+ language: string;
9
+ parentComponent?: React.ElementType;
10
+ plainStyle?: boolean;
11
+ preComponent?: React.ElementType;
12
+ sx?: SxProps;
13
+ }
14
+ export declare const HighlightedCode: React.ForwardRefExoticComponent<HighlightedCodeProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from "./HighlightedCode.js";
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ export declare const CodeTabList: import("@emotion/styled").StyledComponent<import("@mui/base/TabsList").TabsListOwnProps & Omit<any, keyof import("@mui/base/TabsList").TabsListOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
+ ownerState: {
4
+ mounted: boolean;
5
+ contained?: boolean;
6
+ };
7
+ }, {}, {}>;
8
+ export declare const CodeTabPanel: import("@emotion/styled").StyledComponent<import("@mui/base/TabPanel").TabPanelOwnProps & Omit<any, keyof import("@mui/base/TabPanel").TabPanelOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
9
+ ownerState: {
10
+ mounted: boolean;
11
+ contained?: boolean;
12
+ };
13
+ }, {}, {}>;
14
+ export declare const CodeTab: import("@emotion/styled").StyledComponent<import("@mui/base/Tab").TabOwnProps & Omit<any, keyof import("@mui/base/Tab").TabOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
15
+ ownerState: {
16
+ mounted: boolean;
17
+ contained?: boolean;
18
+ };
19
+ }, {}, {}>;
20
+ type TabsConfig = {
21
+ code: string | ((tab: string) => string);
22
+ language: string;
23
+ tab: string;
24
+ };
25
+ export declare function HighlightedCodeWithTabs(props: {
26
+ tabs: Array<TabsConfig>;
27
+ storageKey?: string;
28
+ } & Record<string, any>): React.JSX.Element;
29
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./HighlightedCodeWithTabs.js";
2
+ export { HighlightedCodeWithTabs as default } from "./HighlightedCodeWithTabs.js";
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
3
+ import { LinkProps } from "../Link/index.js";
4
+ interface GlowingIconContainerProps {
5
+ icon: React.ReactNode;
6
+ }
7
+ export declare function GlowingIconContainer({
8
+ icon
9
+ }: GlowingIconContainerProps): React.JSX.Element;
10
+ interface InfoCardProps {
11
+ classNameDescription?: string;
12
+ classNameTitle?: string;
13
+ description?: string;
14
+ icon?: React.ReactNode;
15
+ link?: string;
16
+ prefetch?: LinkProps['prefetch'];
17
+ svg?: React.ReactNode;
18
+ title: string;
19
+ titleProps?: TypographyProps;
20
+ }
21
+ export declare function InfoCard(props: InfoCardProps): React.JSX.Element;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./InfoCard.js";
package/Link/Link.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { LinkProps as NextLinkProps } from 'next/link';
3
+ import { LinkProps as MuiLinkProps } from '@mui/material/Link';
4
+ /**
5
+ * File to keep in sync with:
6
+ *
7
+ * - /examples/material-ui-nextjs-pages-router/src/Link.js
8
+ * - /examples/material-ui-nextjs-pages-router-ts/src/Link.tsx
9
+ */
10
+ interface NextLinkComposedProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>, Omit<NextLinkProps, 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart'> {
11
+ to: NextLinkProps['href'];
12
+ linkAs?: NextLinkProps['as'];
13
+ }
14
+ export type LinkProps = {
15
+ activeClassName?: string;
16
+ as?: NextLinkProps['as'];
17
+ href: NextLinkProps['href'];
18
+ linkAs?: NextLinkProps['as'];
19
+ noLinkStyle?: boolean;
20
+ } & Omit<NextLinkComposedProps, 'to' | 'linkAs' | 'href'> & Omit<MuiLinkProps, 'href'>;
21
+ export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Link.js";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface MarkdownElementProps {
3
+ className?: string;
4
+ renderedMarkdown?: string;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const MarkdownElement: React.ForwardRefExoticComponent<MarkdownElementProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from "./MarkdownElement.js";
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface NProgressBarProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare const NProgressBar: React.FunctionComponent<NProgressBarProps>;
6
+ export default NProgressBar;
@@ -0,0 +1,2 @@
1
+ export { default } from "./NProgressBar.js";
2
+ export * from "./NProgressBar.js";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface SectionTitleProps<Hash extends string = string> {
3
+ title: string;
4
+ hash: Hash;
5
+ level?: 'h2' | 'h3' | 'h4';
6
+ }
7
+ export declare function SectionTitle(props: SectionTitleProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./SectionTitle.js";
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface BrandingProviderProps {
3
+ children: React.ReactNode;
4
+ /**
5
+ * If not `undefined`, the provider is considered nesting and does not render NextNProgressBar & CssBaseline
6
+ */
7
+ mode?: 'light' | 'dark';
8
+ }
9
+ export declare function BrandingProvider(props: BrandingProviderProps): React.JSX.Element;
@@ -0,0 +1,151 @@
1
+ import type { CSSObject } from '@mui/system';
2
+ import { ThemeOptions, Theme } from '@mui/material/styles';
3
+ interface ApplyDarkStyles {
4
+ (scheme: CSSObject): CSSObject;
5
+ }
6
+ declare module '@mui/material/styles' {
7
+ interface Theme {
8
+ applyDarkStyles: ApplyDarkStyles;
9
+ }
10
+ }
11
+ declare module '@mui/material/styles/createPalette' {
12
+ interface ColorRange {
13
+ 50: string;
14
+ 100: string;
15
+ 200: string;
16
+ 300: string;
17
+ 400: string;
18
+ 500: string;
19
+ 600: string;
20
+ 700: string;
21
+ 800: string;
22
+ 900: string;
23
+ }
24
+ interface PaletteColor extends ColorRange {}
25
+ interface Palette {
26
+ primaryDark: PaletteColor;
27
+ gradients: {
28
+ radioSubtle: string;
29
+ linearSubtle: string;
30
+ };
31
+ }
32
+ interface TypeText {
33
+ tertiary: string;
34
+ }
35
+ }
36
+ declare module '@mui/material/styles/createTypography' {
37
+ interface TypographyOptions {
38
+ fontWeightSemiBold?: number;
39
+ fontWeightExtraBold?: number;
40
+ fontFamilyCode?: string;
41
+ fontFamilySystem?: string;
42
+ }
43
+ interface Typography {
44
+ fontWeightSemiBold: number;
45
+ fontWeightExtraBold: number;
46
+ fontFamilyCode: string;
47
+ fontFamilySystem: string;
48
+ }
49
+ }
50
+ declare module '@mui/material/Chip' {
51
+ interface ChipPropsColorOverrides {
52
+ grey: true;
53
+ }
54
+ }
55
+ declare module '@mui/material/SvgIcon' {
56
+ interface SvgIconPropsColorOverrides {
57
+ danger: true;
58
+ }
59
+ interface SvgIconPropsSizeOverrides {
60
+ xs: true;
61
+ sm: true;
62
+ md: true;
63
+ lg: true;
64
+ xl: true;
65
+ xl2: true;
66
+ xl3: true;
67
+ xl4: true;
68
+ }
69
+ }
70
+ export declare const blue: {
71
+ 50: string;
72
+ 100: string;
73
+ 200: string;
74
+ 300: string;
75
+ 400: string;
76
+ main: string;
77
+ 500: string;
78
+ 600: string;
79
+ 700: string;
80
+ 800: string;
81
+ 900: string;
82
+ };
83
+ export declare const blueDark: {
84
+ 50: string;
85
+ 100: string;
86
+ 200: string;
87
+ 300: string;
88
+ main: string;
89
+ 400: string;
90
+ 500: string;
91
+ 600: string;
92
+ 700: string;
93
+ 800: string;
94
+ 900: string;
95
+ };
96
+ export declare const grey: {
97
+ 50: string;
98
+ 100: string;
99
+ 200: string;
100
+ 300: string;
101
+ 400: string;
102
+ 500: string;
103
+ 600: string;
104
+ 700: string;
105
+ 800: string;
106
+ 900: string;
107
+ };
108
+ export declare const error: {
109
+ 50: string;
110
+ 100: string;
111
+ 200: string;
112
+ 300: string;
113
+ 400: string;
114
+ 500: string;
115
+ main: string;
116
+ 600: string;
117
+ 700: string;
118
+ 800: string;
119
+ 900: string;
120
+ };
121
+ export declare const success: {
122
+ 50: string;
123
+ 100: string;
124
+ 200: string;
125
+ 300: string;
126
+ 400: string;
127
+ 500: string;
128
+ 600: string;
129
+ 700: string;
130
+ 800: string;
131
+ 900: string;
132
+ };
133
+ export declare const warning: {
134
+ 50: string;
135
+ 100: string;
136
+ 200: string;
137
+ 300: string;
138
+ 400: string;
139
+ 500: string;
140
+ main: string;
141
+ 600: string;
142
+ 700: string;
143
+ 800: string;
144
+ 900: string;
145
+ };
146
+ export declare const getMetaThemeColor: (mode: "light" | "dark") => string;
147
+ export declare const getDesignTokens: (mode: "light" | "dark") => ThemeOptions;
148
+ export declare function getThemedComponents(): ThemeOptions;
149
+ export declare const brandingDarkTheme: Theme;
150
+ export declare const brandingLightTheme: Theme;
151
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./brandingTheme.js";
2
+ export * from "./BrandingProvider.js";
package/i18n/i18n.d.ts ADDED
@@ -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;
@@ -0,0 +1 @@
1
+ export * from "./i18n.js";
@@ -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 {};
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ export interface AdConfig {
3
+ /**
4
+ * The ratio of "ad display" event sent to Google Analytics.
5
+ * Used to avoid an exceed on the Google Analytics quotas.
6
+ * @default 0.1
7
+ */
8
+ GADisplayRatio: number;
9
+ }
10
+ export interface AdProviderProps {
11
+ children: React.ReactNode;
12
+ config?: Partial<AdConfig>;
13
+ }
14
+ export declare function AdProvider(props: AdProviderProps): React.JSX.Element;
15
+ export declare function useAdConfig(): AdConfig;