@meduza/ui-kit-2 0.3.1 → 0.4.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/dist/AnnouncementInText/AnnouncementInText.types.d.ts +4 -4
- package/dist/AnnouncementInText/index.d.ts +3 -3
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -6
- package/dist/BookmarkButton/index.d.ts +3 -3
- package/dist/Button/Button.d.ts +3 -3
- package/dist/Button/Button.types.d.ts +16 -16
- package/dist/Button/ButtonLoader.d.ts +2 -2
- package/dist/Button/index.d.ts +2 -2
- package/dist/CardTitle/CardTitle.types.d.ts +10 -10
- package/dist/CardTitle/index.d.ts +3 -3
- package/dist/ChapterBlock/ChapterBlock.types.d.ts +7 -7
- package/dist/ChapterBlock/index.d.ts +3 -3
- package/dist/Cover/Cover.types.d.ts +24 -24
- package/dist/Cover/index.d.ts +3 -3
- package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +6 -7
- package/dist/DocumentItemsCount/index.d.ts +3 -3
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +4 -4
- package/dist/DonatesTeaser/index.d.ts +3 -3
- package/dist/DotsOnImage/DotsOnImage.types.d.ts +46 -46
- package/dist/DotsOnImage/index.d.ts +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +5 -6
- package/dist/Dropdown/index.d.ts +4 -4
- package/dist/EmbedBlock/EmbedBlock.d.ts +3 -3
- package/dist/EmbedBlock/EmbedBlock.types.d.ts +12 -11
- package/dist/EmbedBlock/EmbedGif.d.ts +3 -3
- package/dist/EmbedBlock/IframeBlock.d.ts +3 -3
- package/dist/EmbedBlock/index.d.ts +3 -3
- package/dist/Footnote/Footnote.types.d.ts +5 -5
- package/dist/Footnote/index.d.ts +3 -3
- package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -4
- package/dist/GroupedBlock/index.d.ts +3 -3
- package/dist/HalfBlock/HalfBlock.types.d.ts +4 -4
- package/dist/HalfBlock/index.d.ts +3 -3
- package/dist/Image/Image.types.d.ts +35 -35
- package/dist/Image/RenderPicture.d.ts +4 -4
- package/dist/Image/index.d.ts +3 -3
- package/dist/ImportantLead/ImportantLead.types.d.ts +4 -4
- package/dist/ImportantLead/index.d.ts +3 -3
- package/dist/Lazy/Lazy.types.d.ts +4 -5
- package/dist/Lazy/index.d.ts +3 -3
- package/dist/ListBlock/ListBlock.types.d.ts +9 -10
- package/dist/ListBlock/index.d.ts +3 -3
- package/dist/MaterialNote/MaterialNote.types.d.ts +13 -13
- package/dist/MaterialNote/index.d.ts +3 -3
- package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -4
- package/dist/MaterialTitle/index.d.ts +5 -5
- package/dist/MediaCaption/MediaCaption.types.d.ts +5 -5
- package/dist/MediaCaption/index.d.ts +3 -3
- package/dist/Meta/Meta.types.d.ts +19 -19
- package/dist/Meta/MetaContainer.d.ts +3 -3
- package/dist/Meta/index.d.ts +3 -3
- package/dist/MetaItem/MetaItem.types.d.ts +7 -7
- package/dist/MetaItem/index.d.ts +3 -3
- package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -3
- package/dist/MetaItemLive/index.d.ts +3 -3
- package/dist/Popover/Popover.types.d.ts +5 -5
- package/dist/Popover/index.d.ts +3 -3
- package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -6
- package/dist/QuoteBlock/index.d.ts +3 -3
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +17 -17
- package/dist/RawHtmlBlock/index.d.ts +3 -3
- package/dist/RelatedBlock/RelatedBlock.types.d.ts +17 -17
- package/dist/RelatedBlock/index.d.ts +3 -3
- package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +4 -4
- package/dist/RelatedRichBlock/index.d.ts +3 -3
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +11 -11
- package/dist/RenderBlocks/index.d.ts +3 -3
- package/dist/RichTitle/RichTitle.types.d.ts +12 -13
- package/dist/RichTitle/index.d.ts +3 -3
- package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +15 -15
- package/dist/SensitiveBlock/index.d.ts +3 -3
- package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +4 -4
- package/dist/ShopRelatedBlock/index.d.ts +3 -3
- package/dist/SimpleBlock/SimpleBlock.types.d.ts +4 -4
- package/dist/SimpleBlock/index.d.ts +3 -3
- package/dist/SimpleTitle/SimpleTitle.types.d.ts +9 -9
- package/dist/SimpleTitle/index.d.ts +3 -3
- package/dist/SourceBlock/SourceBlock.types.d.ts +15 -15
- package/dist/SourceBlock/index.d.ts +3 -3
- package/dist/Spoiler/Spoiler.types.d.ts +4 -4
- package/dist/Spoiler/index.d.ts +3 -3
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -8
- package/dist/SvgSymbol/icons.d.ts +167 -167
- package/dist/SvgSymbol/index.d.ts +3 -3
- package/dist/Switcher/Switcher.types.d.ts +12 -12
- package/dist/Switcher/index.d.ts +3 -3
- package/dist/Table/Table.types.d.ts +25 -25
- package/dist/Table/index.d.ts +3 -3
- package/dist/Tag/Tag.types.d.ts +12 -12
- package/dist/Tag/index.d.ts +3 -3
- package/dist/Timestamp/Timestamp.types.d.ts +5 -5
- package/dist/Timestamp/index.d.ts +4 -4
- package/dist/Toolbar/Toolbar.d.ts +3 -3
- package/dist/Toolbar/Toolbar.types.d.ts +7 -8
- package/dist/Toolbar/ToolbarItem.d.ts +3 -3
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +10 -10
- package/dist/ToolbarButton/index.d.ts +3 -3
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.types.d.ts +8 -8
- package/dist/Tooltip/TooltipFooter.d.ts +3 -3
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/constants.d.ts +41 -41
- package/dist/index.d.ts +45 -45
- package/dist/index.js +2 -2
- package/dist/types.d.ts +20 -20
- package/dist/ui-kit.css +3443 -3655
- package/dist/uikit.cjs.development.js +2706 -0
- package/dist/uikit.cjs.development.js.map +1 -0
- package/dist/uikit.cjs.production.min.js +2 -0
- package/dist/uikit.cjs.production.min.js.map +1 -0
- package/dist/uikit.esm.js +2652 -0
- package/dist/uikit.esm.js.map +1 -0
- package/dist/utils/BlockContext.d.ts +8 -8
- package/dist/utils/DangerousHtml.d.ts +8 -8
- package/dist/utils/capitalizeFirstLetter.d.ts +1 -1
- package/dist/utils/converCase.d.ts +2 -2
- package/dist/utils/generateGradient.d.ts +2 -2
- package/dist/utils/getElementPositionRelativeToViewport.d.ts +2 -2
- package/dist/utils/makeClassName.d.ts +3 -3
- package/dist/utils/makeStyleContext.d.ts +3 -3
- package/dist/utils/pluralize.d.ts +2 -2
- package/dist/utils/postMessage.d.ts +2 -2
- package/dist/utils/viewportSize.d.ts +6 -6
- package/package.json +68 -68
- package/src/BookmarkButton/BookmarkButton.css +4 -3
- package/src/BookmarkButton/BookmarkButton.module.css +4 -3
- package/src/Button/Button.module.css +29 -19
- package/src/Cover/Cover.module.css +15 -13
- package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
- package/src/Toolbar/Toolbar.module.css +13 -12
- package/src/Toolbar/Toolbar.stories.tsx +1 -3
- package/src/ToolbarButton/ToolbarButton.module.css +8 -7
- package/src/ToolbarButton/ToolbarButton.stories.tsx +1 -3
- package/src/ToolbarButton/ToolbarButton.test.tsx +1 -3
- package/src/Tooltip/Tooltip.module.css +13 -6
- package/dist/AnnouncementInText/AnnouncementInText.stories.d.ts +0 -10
- package/dist/BookmarkButton/BookmarkButton.stories.d.ts +0 -10
- package/dist/Button/Button.stories.d.ts +0 -10
- package/dist/CardTitle/CardTitle.stories.d.ts +0 -10
- package/dist/ChapterBlock/ChapterBlock.stories.d.ts +0 -10
- package/dist/Cover/Cover.stories.d.ts +0 -10
- package/dist/DocumentItemsCount/DocumentItemsCount.stories.d.ts +0 -10
- package/dist/DonatesTeaser/DonatesTeaser.stories.d.ts +0 -10
- package/dist/DotsOnImage/DotsOnImage.stories.d.ts +0 -10
- package/dist/Dropdown/Dropdown.stories.d.ts +0 -10
- package/dist/EmbedBlock/EmbedBlock.stories.d.ts +0 -10
- package/dist/Footnote/Footnote.stories.d.ts +0 -10
- package/dist/GroupedBlock/GroupedBlock.stories.d.ts +0 -10
- package/dist/HalfBlock/HalfBlock.stories.d.ts +0 -10
- package/dist/Image/Image.stories.d.ts +0 -10
- package/dist/ImportantLead/ImportantLead.stories.d.ts +0 -10
- package/dist/Lazy/Lazy.stories.d.ts +0 -10
- package/dist/ListBlock/ListBlock.stories.d.ts +0 -11
- package/dist/MaterialNote/MaterialNote.stories.d.ts +0 -11
- package/dist/MaterialTitle/MaterialTitle.stories.d.ts +0 -10
- package/dist/MediaCaption/MediaCaption.stories.d.ts +0 -10
- package/dist/Meta/Meta.stories.d.ts +0 -10
- package/dist/MetaItem/MetaItem.stories.d.ts +0 -10
- package/dist/MetaItemLive/MetaItemLive.stories.d.ts +0 -10
- package/dist/Popover/Popover.stories.d.ts +0 -10
- package/dist/QuoteBlock/QuoteBlock.stories.d.ts +0 -10
- package/dist/RawHtmlBlock/RawHtmlBlock.stories.d.ts +0 -10
- package/dist/RelatedBlock/RelatedBlock.stories.d.ts +0 -10
- package/dist/RelatedRichBlock/RelatedRichBlock.stories.d.ts +0 -10
- package/dist/RenderBlocks/RenderBlocks.stories.d.ts +0 -10
- package/dist/RichTitle/RichTitle.stories.d.ts +0 -10
- package/dist/SensitiveBlock/SensitiveBlock.stories.d.ts +0 -10
- package/dist/ShopRelatedBlock/ShopRelatedBlock.stories.d.ts +0 -10
- package/dist/SimpleBlock/SimpleBlock.stories.d.ts +0 -10
- package/dist/SimpleTitle/SimpleTitle.stories.d.ts +0 -10
- package/dist/SourceBlock/SourceBlock.stories.d.ts +0 -10
- package/dist/Spoiler/Spoiler.stories.d.ts +0 -10
- package/dist/SvgSymbol/SvgSymbol.stories.d.ts +0 -10
- package/dist/Switcher/Switcher.stories.d.ts +0 -10
- package/dist/Table/Table.stories.d.ts +0 -10
- package/dist/Tag/Tag.stories.d.ts +0 -10
- package/dist/Timestamp/Timestamp.stories.d.ts +0 -10
- package/dist/Toolbar/Toolbar.stories.d.ts +0 -10
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -10
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -10
- package/dist/_storybook/PreviewWrapper/index.d.ts +0 -6
- package/dist/ui-kit-2.cjs.development.js +0 -2906
- package/dist/ui-kit-2.cjs.development.js.map +0 -1
- package/dist/ui-kit-2.cjs.production.min.js +0 -2
- package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
- package/dist/ui-kit-2.esm.js +0 -2849
- package/dist/ui-kit-2.esm.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface AnnouncementInTextProps {
|
|
2
|
-
styleContext: string[] | string;
|
|
3
|
-
lang: 'ru' | 'en';
|
|
4
|
-
}
|
|
1
|
+
export interface AnnouncementInTextProps {
|
|
2
|
+
styleContext: string[] | string;
|
|
3
|
+
lang: 'ru' | 'en';
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AnnouncementInTextProps } from './AnnouncementInText.types';
|
|
3
|
-
export declare const AnnouncementInText: React.FC<AnnouncementInTextProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnnouncementInTextProps } from './AnnouncementInText.types';
|
|
3
|
+
export declare const AnnouncementInText: React.FC<AnnouncementInTextProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface BookmarkButtonProps {
|
|
2
|
-
styleContext?: string | string[];
|
|
3
|
-
theme?: string;
|
|
4
|
-
isInBookmarks: boolean;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
}
|
|
1
|
+
export interface BookmarkButtonProps {
|
|
2
|
+
styleContext?: string | string[];
|
|
3
|
+
theme?: string;
|
|
4
|
+
isInBookmarks: boolean;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BookmarkButtonProps } from './BookmarkButton.types';
|
|
3
|
-
export declare const BookmarkButton: React.FC<BookmarkButtonProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BookmarkButtonProps } from './BookmarkButton.types';
|
|
3
|
+
export declare const BookmarkButton: React.FC<BookmarkButtonProps>;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ButtonProps } from './Button.types';
|
|
3
|
-
export declare const Button: FC<ButtonProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ButtonProps } from './Button.types';
|
|
3
|
+
export declare const Button: FC<ButtonProps>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export interface ButtonProps {
|
|
8
|
-
theme?: ButtonThemes;
|
|
9
|
-
appearance?: ButtonAppearance;
|
|
10
|
-
size?: ButtonSizes;
|
|
11
|
-
state?: ButtonStates;
|
|
12
|
-
styleContext?: ButtonStyleContexts;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
16
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ButtonThemes = 'sand' | 'gold' | 'light' | 'gray' | 'ghost' | 'dark' | 'black' | 'red';
|
|
3
|
+
export type ButtonStates = 'isLoading' | 'isDefault';
|
|
4
|
+
export type ButtonSizes = 'auto' | 'default';
|
|
5
|
+
export type ButtonStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown';
|
|
6
|
+
export type ButtonAppearance = 'isFancy' | 'isClassic';
|
|
7
|
+
export interface ButtonProps {
|
|
8
|
+
theme?: ButtonThemes;
|
|
9
|
+
appearance?: ButtonAppearance;
|
|
10
|
+
size?: ButtonSizes;
|
|
11
|
+
state?: ButtonStates;
|
|
12
|
+
styleContext?: ButtonStyleContexts;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ButtonLoader: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ButtonLoader: React.FC;
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button } from './Button';
|
|
2
|
-
export { ButtonLoader } from './ButtonLoader';
|
|
1
|
+
export { Button } from './Button';
|
|
2
|
+
export { ButtonLoader } from './ButtonLoader';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface CardTitleProps {
|
|
2
|
-
block: {
|
|
3
|
-
data: {
|
|
4
|
-
index: number;
|
|
5
|
-
text: string;
|
|
6
|
-
only_on?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
styleContext?: string;
|
|
10
|
-
}
|
|
1
|
+
export interface CardTitleProps {
|
|
2
|
+
block: {
|
|
3
|
+
data: {
|
|
4
|
+
index: number;
|
|
5
|
+
text: string;
|
|
6
|
+
only_on?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
styleContext?: string;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardTitleProps } from './CardTitle.types';
|
|
3
|
-
export declare const CardTitle: React.FC<CardTitleProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardTitleProps } from './CardTitle.types';
|
|
3
|
+
export declare const CardTitle: React.FC<CardTitleProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ChapterBlockProps {
|
|
2
|
-
block: {
|
|
3
|
-
data: string;
|
|
4
|
-
only_on?: string;
|
|
5
|
-
};
|
|
6
|
-
styleContext?: string;
|
|
7
|
-
}
|
|
1
|
+
export interface ChapterBlockProps {
|
|
2
|
+
block: {
|
|
3
|
+
data: string;
|
|
4
|
+
only_on?: string;
|
|
5
|
+
};
|
|
6
|
+
styleContext?: string;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChapterBlockProps } from './ChapterBlock.types';
|
|
3
|
-
export declare const ChapterBlock: React.FC<ChapterBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChapterBlockProps } from './ChapterBlock.types';
|
|
3
|
+
export declare const ChapterBlock: React.FC<ChapterBlockProps>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { OptimizedImageItem } from '../types';
|
|
2
|
-
export interface CoverProps {
|
|
3
|
-
block: {
|
|
4
|
-
only_on?: string;
|
|
5
|
-
data: {
|
|
6
|
-
blocks: any;
|
|
7
|
-
cover: {
|
|
8
|
-
credit?: string;
|
|
9
|
-
caption?: string;
|
|
10
|
-
cc: string;
|
|
11
|
-
urls: {
|
|
12
|
-
w325: OptimizedImageItem;
|
|
13
|
-
w600: OptimizedImageItem;
|
|
14
|
-
};
|
|
15
|
-
mobile_ratio: number;
|
|
16
|
-
gradients: {
|
|
17
|
-
text_rgb: string;
|
|
18
|
-
bg_rgb: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
styleContext?: string[] | string;
|
|
24
|
-
}
|
|
1
|
+
import { OptimizedImageItem } from '../types';
|
|
2
|
+
export interface CoverProps {
|
|
3
|
+
block: {
|
|
4
|
+
only_on?: string;
|
|
5
|
+
data: {
|
|
6
|
+
blocks: any;
|
|
7
|
+
cover: {
|
|
8
|
+
credit?: string;
|
|
9
|
+
caption?: string;
|
|
10
|
+
cc: string;
|
|
11
|
+
urls: {
|
|
12
|
+
w325: OptimizedImageItem;
|
|
13
|
+
w600: OptimizedImageItem;
|
|
14
|
+
};
|
|
15
|
+
mobile_ratio: number;
|
|
16
|
+
gradients: {
|
|
17
|
+
text_rgb: string;
|
|
18
|
+
bg_rgb: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
styleContext?: string[] | string;
|
|
24
|
+
}
|
package/dist/Cover/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CoverProps } from './Cover.types';
|
|
3
|
-
export declare const Cover: React.FC<CoverProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CoverProps } from './Cover.types';
|
|
3
|
+
export declare const Cover: React.FC<CoverProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
export interface DocumentItemsCountProps {
|
|
2
|
+
type: 'podcast' | 'card';
|
|
3
|
+
lang?: 'ru' | 'en';
|
|
4
|
+
items: number;
|
|
5
|
+
children?: JSX.Element[] | JSX.Element;
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DocumentItemsCountProps } from './DocumentItemsCount.types';
|
|
3
|
-
export declare const DocumentItemsCount: React.FC<DocumentItemsCountProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DocumentItemsCountProps } from './DocumentItemsCount.types';
|
|
3
|
+
export declare const DocumentItemsCount: React.FC<DocumentItemsCountProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface DonatesTeaserProps {
|
|
2
|
-
styleContext: string[] | string;
|
|
3
|
-
lang: 'ru' | 'en';
|
|
4
|
-
}
|
|
1
|
+
export interface DonatesTeaserProps {
|
|
2
|
+
styleContext: string[] | string;
|
|
3
|
+
lang: 'ru' | 'en';
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DonatesTeaserProps } from './DonatesTeaser.types';
|
|
3
|
-
export declare const DonatesTeaser: React.FC<DonatesTeaserProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DonatesTeaserProps } from './DonatesTeaser.types';
|
|
3
|
+
export declare const DonatesTeaser: React.FC<DonatesTeaserProps>;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OptimizedImageItem } from '../types';
|
|
3
|
-
export interface PopoverData {
|
|
4
|
-
title?: string;
|
|
5
|
-
body?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
align?: 'isTop' | 'isBottom';
|
|
8
|
-
side?: 'isLeft' | 'isRight';
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
show: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface SingleDot {
|
|
13
|
-
title?: string;
|
|
14
|
-
body: string;
|
|
15
|
-
id: string;
|
|
16
|
-
position: {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
icon: {
|
|
21
|
-
type: string;
|
|
22
|
-
number?: string;
|
|
23
|
-
svg_string?: string;
|
|
24
|
-
color: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface DotsOnImageProps {
|
|
28
|
-
block: {
|
|
29
|
-
credit?: string;
|
|
30
|
-
caption?: string;
|
|
31
|
-
cc?: string;
|
|
32
|
-
display?: string;
|
|
33
|
-
optimized?: {
|
|
34
|
-
original?: string;
|
|
35
|
-
w325: OptimizedImageItem;
|
|
36
|
-
w520?: OptimizedImageItem;
|
|
37
|
-
w650?: OptimizedImageItem;
|
|
38
|
-
w980?: OptimizedImageItem;
|
|
39
|
-
w1335?: OptimizedImageItem;
|
|
40
|
-
};
|
|
41
|
-
width?: number;
|
|
42
|
-
height?: number;
|
|
43
|
-
lazy?: boolean;
|
|
44
|
-
dots: SingleDot[];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OptimizedImageItem } from '../types';
|
|
3
|
+
export interface PopoverData {
|
|
4
|
+
title?: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
align?: 'isTop' | 'isBottom';
|
|
8
|
+
side?: 'isLeft' | 'isRight';
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
show: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SingleDot {
|
|
13
|
+
title?: string;
|
|
14
|
+
body: string;
|
|
15
|
+
id: string;
|
|
16
|
+
position: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
icon: {
|
|
21
|
+
type: string;
|
|
22
|
+
number?: string;
|
|
23
|
+
svg_string?: string;
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface DotsOnImageProps {
|
|
28
|
+
block: {
|
|
29
|
+
credit?: string;
|
|
30
|
+
caption?: string;
|
|
31
|
+
cc?: string;
|
|
32
|
+
display?: string;
|
|
33
|
+
optimized?: {
|
|
34
|
+
original?: string;
|
|
35
|
+
w325: OptimizedImageItem;
|
|
36
|
+
w520?: OptimizedImageItem;
|
|
37
|
+
w650?: OptimizedImageItem;
|
|
38
|
+
w980?: OptimizedImageItem;
|
|
39
|
+
w1335?: OptimizedImageItem;
|
|
40
|
+
};
|
|
41
|
+
width?: number;
|
|
42
|
+
height?: number;
|
|
43
|
+
lazy?: boolean;
|
|
44
|
+
dots: SingleDot[];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DotsOnImageProps } from './DotsOnImage.types';
|
|
3
|
-
export declare const DotsOnImage: React.FC<DotsOnImageProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DotsOnImageProps } from './DotsOnImage.types';
|
|
3
|
+
export declare const DotsOnImage: React.FC<DotsOnImageProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export interface DropdownProps {
|
|
2
|
+
children: JSX.Element[] | JSX.Element;
|
|
3
|
+
active?: boolean;
|
|
4
|
+
styleContext?: string | string[];
|
|
5
|
+
}
|
package/dist/Dropdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DropdownProps } from './Dropdown.types';
|
|
3
|
-
export declare const Menu: React.FC<DropdownProps>;
|
|
4
|
-
export declare const Dropdown: React.FC<DropdownProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from './Dropdown.types';
|
|
3
|
+
export declare const Menu: React.FC<DropdownProps>;
|
|
4
|
+
export declare const Dropdown: React.FC<DropdownProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
-
export declare const EmbedBlock: React.FC<EmbedBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
+
export declare const EmbedBlock: React.FC<EmbedBlockProps>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface EmbedGifProps {
|
|
3
|
-
gif: string;
|
|
4
|
-
mp4Url: string;
|
|
5
|
-
style: React.CSSProperties;
|
|
6
|
-
}
|
|
7
|
-
export interface EmbedBlockProps {
|
|
8
|
-
block: any;
|
|
9
|
-
styleContext?: string[] | string;
|
|
10
|
-
lang?: 'ru' | 'en';
|
|
11
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EmbedGifProps {
|
|
3
|
+
gif: string;
|
|
4
|
+
mp4Url: string;
|
|
5
|
+
style: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export interface EmbedBlockProps {
|
|
8
|
+
block: any;
|
|
9
|
+
styleContext?: string[] | string;
|
|
10
|
+
lang?: 'ru' | 'en';
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmbedGifProps } from './EmbedBlock.types';
|
|
3
|
-
export declare const EmbedGif: React.FC<EmbedGifProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbedGifProps } from './EmbedBlock.types';
|
|
3
|
+
export declare const EmbedGif: React.FC<EmbedGifProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
-
export declare const IframeBlock: React.FC<EmbedBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
+
export declare const IframeBlock: React.FC<EmbedBlockProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
-
export declare const EmbedBlockContainer: React.FC<EmbedBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbedBlockProps } from './EmbedBlock.types';
|
|
3
|
+
export declare const EmbedBlockContainer: React.FC<EmbedBlockProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface FootnoteProps {
|
|
3
|
-
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FootnoteProps {
|
|
3
|
+
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}
|
package/dist/Footnote/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FootnoteProps } from './Footnote.types';
|
|
3
|
-
export declare const Footnote: React.FC<FootnoteProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FootnoteProps } from './Footnote.types';
|
|
3
|
+
export declare const Footnote: React.FC<FootnoteProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface GroupedBlockProps {
|
|
2
|
-
block: any;
|
|
3
|
-
styleContext?: string[] | string;
|
|
4
|
-
}
|
|
1
|
+
export interface GroupedBlockProps {
|
|
2
|
+
block: any;
|
|
3
|
+
styleContext?: string[] | string;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GroupedBlockProps } from './GroupedBlock.types';
|
|
3
|
-
export declare const GroupedBlock: React.FC<GroupedBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GroupedBlockProps } from './GroupedBlock.types';
|
|
3
|
+
export declare const GroupedBlock: React.FC<GroupedBlockProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface HalfBlockProps {
|
|
2
|
-
block: any;
|
|
3
|
-
styleContext?: string[] | string;
|
|
4
|
-
}
|
|
1
|
+
export interface HalfBlockProps {
|
|
2
|
+
block: any;
|
|
3
|
+
styleContext?: string[] | string;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HalfBlockProps } from './HalfBlock.types';
|
|
3
|
-
export declare const HalfBlock: React.FC<HalfBlockProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HalfBlockProps } from './HalfBlock.types';
|
|
3
|
+
export declare const HalfBlock: React.FC<HalfBlockProps>;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { OptimizedImageItem } from '../types';
|
|
2
|
-
export interface ImageProps {
|
|
3
|
-
alt?: string;
|
|
4
|
-
display?: string;
|
|
5
|
-
optimized?: {
|
|
6
|
-
original?: string;
|
|
7
|
-
w325: OptimizedImageItem;
|
|
8
|
-
w520?: OptimizedImageItem;
|
|
9
|
-
w650?: OptimizedImageItem;
|
|
10
|
-
w980?: OptimizedImageItem;
|
|
11
|
-
w1335?: OptimizedImageItem;
|
|
12
|
-
};
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
source?: string[];
|
|
16
|
-
lazy?: boolean;
|
|
17
|
-
ratio?: number;
|
|
18
|
-
fullscreen?: boolean;
|
|
19
|
-
styleContext?: string[] | string;
|
|
20
|
-
}
|
|
21
|
-
export interface PictureProps {
|
|
22
|
-
source?: string[];
|
|
23
|
-
optimized?: {
|
|
24
|
-
original?: string;
|
|
25
|
-
w325: OptimizedImageItem;
|
|
26
|
-
w520?: OptimizedImageItem;
|
|
27
|
-
w650?: OptimizedImageItem;
|
|
28
|
-
w980?: OptimizedImageItem;
|
|
29
|
-
w1335?: OptimizedImageItem;
|
|
30
|
-
};
|
|
31
|
-
alt?: string;
|
|
32
|
-
fallbackSource: string;
|
|
33
|
-
display: string;
|
|
34
|
-
onLoad: (boolean: any) => void;
|
|
35
|
-
}
|
|
1
|
+
import { OptimizedImageItem } from '../types';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
alt?: string;
|
|
4
|
+
display?: string;
|
|
5
|
+
optimized?: {
|
|
6
|
+
original?: string;
|
|
7
|
+
w325: OptimizedImageItem;
|
|
8
|
+
w520?: OptimizedImageItem;
|
|
9
|
+
w650?: OptimizedImageItem;
|
|
10
|
+
w980?: OptimizedImageItem;
|
|
11
|
+
w1335?: OptimizedImageItem;
|
|
12
|
+
};
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
source?: string[];
|
|
16
|
+
lazy?: boolean;
|
|
17
|
+
ratio?: number;
|
|
18
|
+
fullscreen?: boolean;
|
|
19
|
+
styleContext?: string[] | string;
|
|
20
|
+
}
|
|
21
|
+
export interface PictureProps {
|
|
22
|
+
source?: string[];
|
|
23
|
+
optimized?: {
|
|
24
|
+
original?: string;
|
|
25
|
+
w325: OptimizedImageItem;
|
|
26
|
+
w520?: OptimizedImageItem;
|
|
27
|
+
w650?: OptimizedImageItem;
|
|
28
|
+
w980?: OptimizedImageItem;
|
|
29
|
+
w1335?: OptimizedImageItem;
|
|
30
|
+
};
|
|
31
|
+
alt?: string;
|
|
32
|
+
fallbackSource: string;
|
|
33
|
+
display: string;
|
|
34
|
+
onLoad: (boolean: any) => void;
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PictureProps } from './Image.types';
|
|
3
|
-
export declare const RenderPicture: React.FC<PictureProps>;
|
|
4
|
-
export default RenderPicture;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PictureProps } from './Image.types';
|
|
3
|
+
export declare const RenderPicture: React.FC<PictureProps>;
|
|
4
|
+
export default RenderPicture;
|
package/dist/Image/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ImageProps } from './Image.types';
|
|
3
|
-
export declare const Image: React.FC<ImageProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImageProps } from './Image.types';
|
|
3
|
+
export declare const Image: React.FC<ImageProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ImportantLeadProps {
|
|
2
|
-
block: any;
|
|
3
|
-
styleContext?: string[] | string;
|
|
4
|
-
}
|
|
1
|
+
export interface ImportantLeadProps {
|
|
2
|
+
block: any;
|
|
3
|
+
styleContext?: string[] | string;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ImportantLeadProps } from './ImportantLead.types';
|
|
3
|
-
export declare const ImportantLead: React.FC<ImportantLeadProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImportantLeadProps } from './ImportantLead.types';
|
|
3
|
+
export declare const ImportantLead: React.FC<ImportantLeadProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export interface LazyProps {
|
|
2
|
+
children: JSX.Element[] | JSX.Element;
|
|
3
|
+
threshold?: number;
|
|
4
|
+
}
|
package/dist/Lazy/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LazyProps } from './Lazy.types';
|
|
3
|
-
export declare const Lazy: React.FC<LazyProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LazyProps } from './Lazy.types';
|
|
3
|
+
export declare const Lazy: React.FC<LazyProps>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
export interface ListBlockProps {
|
|
2
|
+
block: {
|
|
3
|
+
type: keyof JSX.IntrinsicElements;
|
|
4
|
+
data: string[];
|
|
5
|
+
length: number;
|
|
6
|
+
only_on?: string;
|
|
7
|
+
};
|
|
8
|
+
styleContext?: string[] | string;
|
|
9
|
+
}
|