@meduza/ui-kit-2 0.8.5 → 0.8.6

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 (131) hide show
  1. package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +4 -0
  2. package/dist/AnnouncementInText/index.d.ts +3 -0
  3. package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -0
  4. package/dist/BookmarkButton/index.d.ts +3 -0
  5. package/dist/Button/Button.types.d.ts +16 -0
  6. package/dist/Button/ButtonLoader.d.ts +2 -0
  7. package/dist/Button/index.d.ts +2 -0
  8. package/dist/CardTitle/CardTitle.types.d.ts +11 -0
  9. package/dist/CardTitle/index.d.ts +3 -0
  10. package/dist/ChapterBlock/ChapterBlock.types.d.ts +8 -0
  11. package/dist/ChapterBlock/index.d.ts +3 -0
  12. package/dist/Cover/Cover.types.d.ts +24 -0
  13. package/dist/Cover/index.d.ts +3 -0
  14. package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +6 -0
  15. package/dist/DocumentItemsCount/index.d.ts +3 -0
  16. package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +4 -0
  17. package/dist/DonatesTeaser/index.d.ts +3 -0
  18. package/dist/DotsOnImage/DotsOnImage.types.d.ts +46 -0
  19. package/dist/DotsOnImage/index.d.ts +3 -0
  20. package/dist/Dropdown/Dropdown.types.d.ts +5 -0
  21. package/dist/Dropdown/index.d.ts +4 -0
  22. package/dist/EmbedBlock/EmbedBlock.d.ts +3 -0
  23. package/dist/EmbedBlock/EmbedBlock.types.d.ts +12 -0
  24. package/dist/EmbedBlock/EmbedGif.d.ts +3 -0
  25. package/dist/EmbedBlock/IframeBlock.d.ts +3 -0
  26. package/dist/EmbedBlock/index.d.ts +3 -0
  27. package/dist/Footnote/Footnote.types.d.ts +5 -0
  28. package/dist/Footnote/index.d.ts +3 -0
  29. package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -0
  30. package/dist/GroupedBlock/index.d.ts +3 -0
  31. package/dist/HalfBlock/HalfBlock.types.d.ts +4 -0
  32. package/dist/HalfBlock/index.d.ts +3 -0
  33. package/dist/Image/Image.types.d.ts +35 -0
  34. package/dist/Image/RenderPicture.d.ts +4 -0
  35. package/dist/ImportantLead/ImportantLead.types.d.ts +4 -0
  36. package/dist/ImportantLead/index.d.ts +3 -0
  37. package/dist/Lazy/Lazy.types.d.ts +4 -0
  38. package/dist/ListBlock/ListBlock.types.d.ts +9 -0
  39. package/dist/ListBlock/index.d.ts +3 -0
  40. package/dist/MaterialNote/MaterialNote.types.d.ts +13 -0
  41. package/dist/MaterialNote/index.d.ts +3 -0
  42. package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -0
  43. package/dist/MaterialTitle/index.d.ts +5 -0
  44. package/dist/MediaCaption/MediaCaption.types.d.ts +5 -0
  45. package/dist/MediaCaption/index.d.ts +3 -0
  46. package/dist/Meta/Meta.mock.d.ts +12 -0
  47. package/dist/Meta/Meta.types.d.ts +19 -0
  48. package/dist/Meta/MetaContainer.d.ts +3 -0
  49. package/dist/Meta/index.d.ts +3 -0
  50. package/dist/MetaItem/MetaItem.types.d.ts +7 -0
  51. package/dist/MetaItem/index.d.ts +3 -0
  52. package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -0
  53. package/dist/MetaItemLive/index.d.ts +3 -0
  54. package/dist/Popover/Popover.types.d.ts +5 -0
  55. package/dist/Popover/index.d.ts +3 -0
  56. package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -0
  57. package/dist/QuoteBlock/index.d.ts +3 -0
  58. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +17 -0
  59. package/dist/RawHtmlBlock/index.d.ts +3 -0
  60. package/dist/RelatedBlock/RelatedBlock.types.d.ts +17 -0
  61. package/dist/RelatedBlock/index.d.ts +3 -0
  62. package/dist/RelatedBook/RelatedBook.mock.d.ts +65 -0
  63. package/dist/RelatedBook/RelatedBook.types.d.ts +4 -0
  64. package/dist/RelatedBook/index.d.ts +3 -0
  65. package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +4 -0
  66. package/dist/RelatedRichBlock/index.d.ts +3 -0
  67. package/dist/RenderBlocks/RenderBlocks.types.d.ts +11 -0
  68. package/dist/RenderBlocks/index.d.ts +3 -0
  69. package/dist/RichTitle/RichTitle.types.d.ts +12 -0
  70. package/dist/RichTitle/index.d.ts +3 -0
  71. package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +15 -0
  72. package/dist/SensitiveBlock/index.d.ts +3 -0
  73. package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +4 -0
  74. package/dist/ShopRelatedBlock/index.d.ts +3 -0
  75. package/dist/SimpleBlock/SimpleBlock.types.d.ts +5 -0
  76. package/dist/SimpleBlock/index.d.ts +3 -0
  77. package/dist/SimpleTitle/SimpleTitle.types.d.ts +9 -0
  78. package/dist/SimpleTitle/index.d.ts +3 -0
  79. package/dist/SourceBlock/SourceBlock.types.d.ts +15 -0
  80. package/dist/SourceBlock/index.d.ts +3 -0
  81. package/dist/Spoiler/Spoiler.types.d.ts +4 -0
  82. package/dist/Spoiler/index.d.ts +3 -0
  83. package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -0
  84. package/dist/SvgSymbol/icons.d.ts +172 -0
  85. package/dist/Switcher/Switcher.types.d.ts +12 -0
  86. package/dist/Table/Table.types.d.ts +25 -0
  87. package/dist/Table/index.d.ts +3 -0
  88. package/dist/Tag/Tag.types.d.ts +12 -0
  89. package/dist/Tag/index.d.ts +3 -0
  90. package/dist/Timestamp/Timestamp.types.d.ts +5 -0
  91. package/dist/Timestamp/index.d.ts +4 -0
  92. package/dist/Toolbar/Toolbar.d.ts +3 -0
  93. package/dist/Toolbar/Toolbar.types.d.ts +7 -0
  94. package/dist/Toolbar/ToolbarItem.d.ts +3 -0
  95. package/dist/Toolbar/index.d.ts +2 -0
  96. package/dist/ToolbarButton/ToolbarButton.types.d.ts +10 -0
  97. package/dist/ToolbarButton/index.d.ts +3 -0
  98. package/dist/Tooltip/Tooltip.d.ts +3 -0
  99. package/dist/Tooltip/Tooltip.types.d.ts +8 -0
  100. package/dist/Tooltip/TooltipFooter.d.ts +3 -0
  101. package/dist/Tooltip/index.d.ts +2 -0
  102. package/dist/VersesBlock/VersesBlock.types.d.ts +9 -0
  103. package/dist/VersesBlock/index.d.ts +3 -0
  104. package/dist/constants.d.ts +41 -0
  105. package/dist/index.d.ts +45 -0
  106. package/dist/types.d.ts +20 -0
  107. package/dist/ui-kit-2.cjs.development.js +2815 -0
  108. package/dist/ui-kit-2.cjs.development.js.map +1 -0
  109. package/dist/ui-kit-2.cjs.production.min.js +2 -0
  110. package/dist/ui-kit-2.cjs.production.min.js.map +1 -0
  111. package/dist/ui-kit-2.esm.js +2761 -0
  112. package/dist/ui-kit-2.esm.js.map +1 -0
  113. package/dist/ui-kit-game.css +7070 -0
  114. package/dist/ui-kit.css +7070 -0
  115. package/dist/utils/BlockContext.d.ts +8 -0
  116. package/dist/utils/DangerousHtml.d.ts +8 -0
  117. package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
  118. package/dist/utils/converCase.d.ts +2 -0
  119. package/dist/utils/generateGradient.d.ts +2 -0
  120. package/dist/utils/getElementPositionRelativeToViewport.d.ts +2 -0
  121. package/dist/utils/makeStyleContext.d.ts +3 -0
  122. package/dist/utils/pluralize.d.ts +2 -0
  123. package/dist/utils/postMessage.d.ts +2 -0
  124. package/dist/utils/viewportSize.d.ts +6 -0
  125. package/package.json +1 -1
  126. package/src/Image/index.tsx +4 -1
  127. package/src/Spoiler/Spoiler.module.css +9 -10
  128. package/src/SvgSymbol/SvgSymbol.types.ts +1 -0
  129. package/src/SvgSymbol/icons.ts +7 -0
  130. package/src/Tag/Tag.module.css +4 -0
  131. package/src/.DS_Store +0 -0
@@ -0,0 +1,4 @@
1
+ export interface AnnouncementInTextProps {
2
+ styleContext: string[] | string;
3
+ lang: 'ru' | 'en';
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { AnnouncementInTextProps } from './AnnouncementInText.types';
3
+ export declare const AnnouncementInText: React.FC<AnnouncementInTextProps>;
@@ -0,0 +1,6 @@
1
+ export interface BookmarkButtonProps {
2
+ styleContext?: string | string[];
3
+ theme?: string;
4
+ isInBookmarks: boolean;
5
+ onClick: () => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { BookmarkButtonProps } from './BookmarkButton.types';
3
+ export declare const BookmarkButton: React.FC<BookmarkButtonProps>;
@@ -0,0 +1,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
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ButtonLoader: React.FC;
@@ -0,0 +1,2 @@
1
+ export { Button } from './Button';
2
+ export { ButtonLoader } from './ButtonLoader';
@@ -0,0 +1,11 @@
1
+ export interface CardTitleProps {
2
+ block: {
3
+ data: {
4
+ index: number;
5
+ text: string;
6
+ only_on?: string;
7
+ };
8
+ id: string;
9
+ };
10
+ styleContext?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CardTitleProps } from './CardTitle.types';
3
+ export declare const CardTitle: React.FC<CardTitleProps>;
@@ -0,0 +1,8 @@
1
+ export interface ChapterBlockProps {
2
+ block: {
3
+ data: string;
4
+ only_on?: string;
5
+ };
6
+ styleContext?: string;
7
+ id?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ChapterBlockProps } from './ChapterBlock.types';
3
+ export declare const ChapterBlock: React.FC<ChapterBlockProps>;
@@ -0,0 +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
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CoverProps } from './Cover.types';
3
+ export declare const Cover: React.FC<CoverProps>;
@@ -0,0 +1,6 @@
1
+ export interface DocumentItemsCountProps {
2
+ type: 'podcast' | 'card';
3
+ lang?: 'ru' | 'en';
4
+ items: number;
5
+ children?: JSX.Element[] | JSX.Element;
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DocumentItemsCountProps } from './DocumentItemsCount.types';
3
+ export declare const DocumentItemsCount: React.FC<DocumentItemsCountProps>;
@@ -0,0 +1,4 @@
1
+ export interface DonatesTeaserProps {
2
+ styleContext: string[] | string;
3
+ lang: 'ru' | 'en';
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DonatesTeaserProps } from './DonatesTeaser.types';
3
+ export declare const DonatesTeaser: React.FC<DonatesTeaserProps>;
@@ -0,0 +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
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DotsOnImageProps } from './DotsOnImage.types';
3
+ export declare const DotsOnImage: React.FC<DotsOnImageProps>;
@@ -0,0 +1,5 @@
1
+ export interface DropdownProps {
2
+ children: JSX.Element[] | JSX.Element;
3
+ active?: boolean;
4
+ styleContext?: string | string[];
5
+ }
@@ -0,0 +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>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { EmbedBlockProps } from './EmbedBlock.types';
3
+ export declare const EmbedBlock: React.FC<EmbedBlockProps>;
@@ -0,0 +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
+ children?: React.ReactNode;
12
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { EmbedGifProps } from './EmbedBlock.types';
3
+ export declare const EmbedGif: React.FC<EmbedGifProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { EmbedBlockProps } from './EmbedBlock.types';
3
+ export declare const IframeBlock: React.FC<EmbedBlockProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { EmbedBlockProps } from './EmbedBlock.types';
3
+ export declare const EmbedBlockContainer: React.FC<EmbedBlockProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface FootnoteProps {
3
+ children: React.ReactNode | JSX.Element[] | JSX.Element;
4
+ onClose: () => void;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { FootnoteProps } from './Footnote.types';
3
+ export declare const Footnote: React.FC<FootnoteProps>;
@@ -0,0 +1,4 @@
1
+ export interface GroupedBlockProps {
2
+ block: any;
3
+ styleContext?: string[] | string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { GroupedBlockProps } from './GroupedBlock.types';
3
+ export declare const GroupedBlock: React.FC<GroupedBlockProps>;
@@ -0,0 +1,4 @@
1
+ export interface HalfBlockProps {
2
+ block: any;
3
+ styleContext?: string[] | string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { HalfBlockProps } from './HalfBlock.types';
3
+ export declare const HalfBlock: React.FC<HalfBlockProps>;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +1,4 @@
1
+ export interface ImportantLeadProps {
2
+ block: any;
3
+ styleContext?: string[] | string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ImportantLeadProps } from './ImportantLead.types';
3
+ export declare const ImportantLead: React.FC<ImportantLeadProps>;
@@ -0,0 +1,4 @@
1
+ export interface LazyProps {
2
+ children: JSX.Element[] | JSX.Element;
3
+ threshold?: number;
4
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ListBlockProps } from './ListBlock.types';
3
+ export declare const ListBlock: React.FC<ListBlockProps>;
@@ -0,0 +1,13 @@
1
+ export interface MaterialNoteProps {
2
+ block: {
3
+ data: {
4
+ data: string;
5
+ id: string;
6
+ length: number;
7
+ type: 'note_caption' | 'note_credit';
8
+ }[];
9
+ id: string;
10
+ type: string;
11
+ };
12
+ styleContext?: string | string[];
13
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MaterialNoteProps } from './MaterialNote.types';
3
+ export declare const MaterialNote: React.FC<MaterialNoteProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export interface MaterialTitleProps {
3
+ children?: React.ReactNode;
4
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { MaterialTitleProps } from './MaterialTitle.types';
3
+ export declare const Primary: React.FC<MaterialTitleProps>;
4
+ export declare const Secondary: React.FC<MaterialTitleProps>;
5
+ export declare const MaterialTitle: React.FC<MaterialTitleProps>;
@@ -0,0 +1,5 @@
1
+ export interface MediaCaptionProps {
2
+ credit?: string;
3
+ caption?: string;
4
+ styleContext?: string | string[];
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MediaCaptionProps } from './MediaCaption.types';
3
+ export declare const MediaCaption: React.FC<MediaCaptionProps>;
@@ -0,0 +1,12 @@
1
+ export declare const MetaMock: {
2
+ type: string;
3
+ data: {
4
+ lang: string;
5
+ components: {
6
+ type: string;
7
+ text: string;
8
+ id: string;
9
+ }[];
10
+ };
11
+ id: string;
12
+ };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { CallToActions } from '../types';
3
+ export interface MetaContainerProps {
4
+ block: any;
5
+ styleContext: string[] | string;
6
+ isRead: boolean | undefined;
7
+ isListened: boolean | undefined;
8
+ isInBookmarks: boolean | undefined;
9
+ bookmarkAction?: (service: CallToActions, place: string) => void;
10
+ lightBox?: () => void;
11
+ lang: 'ru' | 'en';
12
+ }
13
+ export interface MetaProps {
14
+ onlyOn?: string;
15
+ styleContext?: string[] | string;
16
+ hasSource?: boolean;
17
+ theme?: string;
18
+ children: React.ReactNode;
19
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MetaContainerProps } from './Meta.types';
3
+ export declare const MetaContainer: React.FC<MetaContainerProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MetaProps } from './Meta.types';
3
+ export declare const Meta: React.FC<MetaProps>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface MetaItemProps {
3
+ bullets?: boolean;
4
+ hasSource?: boolean;
5
+ type?: string;
6
+ children: React.ReactNode | JSX.Element[] | JSX.Element;
7
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MetaItemProps } from './MetaItem.types';
3
+ export declare const MetaItem: React.FC<MetaItemProps>;
@@ -0,0 +1,3 @@
1
+ export interface MetaItemLiveProps {
2
+ theme?: 'gold' | 'light' | 'inherit';
3
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MetaItemLiveProps } from './MetaItemLive.types';
3
+ export declare const MetaItemLive: React.FC<MetaItemLiveProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface PopoverProps {
3
+ children: React.ReactNode;
4
+ onClose: () => void;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { PopoverProps } from './Popover.types';
3
+ export declare const Popover: React.FC<PopoverProps>;
@@ -0,0 +1,6 @@
1
+ export interface QuoteBlockProps {
2
+ styleContext?: string | string[];
3
+ block: {
4
+ data: string;
5
+ };
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { QuoteBlockProps } from './QuoteBlock.types';
3
+ export declare const QuoteBlock: React.FC<QuoteBlockProps>;
@@ -0,0 +1,17 @@
1
+ import { ImageProps } from '../Image/Image.types';
2
+ import { CallToActions, LightboxContext } from '../types';
3
+ export type lightBox = {
4
+ show: (image?: ImageProps['optimized'], alt?: ImageProps['alt']) => void;
5
+ hide: () => void;
6
+ visible: boolean;
7
+ };
8
+ export interface RawHtmlBlockProps {
9
+ block: any;
10
+ styleContext?: string[] | string;
11
+ isRead?: boolean | undefined;
12
+ isListened?: boolean | undefined;
13
+ isInBookmarks?: boolean | undefined;
14
+ bookmarkAction?: (service: CallToActions, place: string) => void;
15
+ lightBox?: LightboxContext | null | undefined;
16
+ lang?: 'ru' | 'en';
17
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RawHtmlBlockProps } from './RawHtmlBlock.types';
3
+ export declare const RawHtmlBlock: React.FC<RawHtmlBlockProps>;
@@ -0,0 +1,17 @@
1
+ export interface RelatedBlockProps {
2
+ block: {
3
+ data: {
4
+ title: string;
5
+ related: {
6
+ title: string;
7
+ second_title?: string;
8
+ layout: string;
9
+ url?: string;
10
+ full_url?: string;
11
+ id: string;
12
+ }[];
13
+ };
14
+ only_on?: string;
15
+ };
16
+ styleContext?: string[] | string;
17
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RelatedBlockProps } from './RelatedBlock.types';
3
+ export declare const RelatedBlock: React.FC<RelatedBlockProps>;
@@ -0,0 +1,65 @@
1
+ export declare const RelatedBookMock: {
2
+ type: string;
3
+ data: {
4
+ url: string;
5
+ cover: {
6
+ urls: {
7
+ w325: {
8
+ '1x': string;
9
+ '2x': string;
10
+ '1x_webp': string;
11
+ '2x_webp': string;
12
+ };
13
+ w600: {
14
+ '1x': string;
15
+ '2x': string;
16
+ '1x_webp': string;
17
+ '2x_webp': string;
18
+ };
19
+ };
20
+ };
21
+ blocks: ({
22
+ type: string;
23
+ data: {
24
+ text: string;
25
+ theme: string;
26
+ first?: undefined;
27
+ second?: undefined;
28
+ lang?: undefined;
29
+ components?: undefined;
30
+ };
31
+ id: string;
32
+ } | {
33
+ type: string;
34
+ data: {
35
+ first: string;
36
+ second: string;
37
+ text?: undefined;
38
+ theme?: undefined;
39
+ lang?: undefined;
40
+ components?: undefined;
41
+ };
42
+ id: string;
43
+ } | {
44
+ type: string;
45
+ data: {
46
+ lang: string;
47
+ components: {
48
+ type: string;
49
+ text: string;
50
+ id: string;
51
+ }[];
52
+ text?: undefined;
53
+ theme?: undefined;
54
+ first?: undefined;
55
+ second?: undefined;
56
+ };
57
+ id: string;
58
+ })[];
59
+ theme: {
60
+ background_color: string;
61
+ text_color: string;
62
+ };
63
+ };
64
+ id: string;
65
+ };
@@ -0,0 +1,4 @@
1
+ export interface RelatedBookProps {
2
+ block: any;
3
+ styleContext: any;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RelatedBookProps } from './RelatedBook.types';
3
+ export declare const RelatedBook: React.FC<RelatedBookProps>;
@@ -0,0 +1,4 @@
1
+ export interface RelatedRichBlockProps {
2
+ block?: any;
3
+ styleContext?: any;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RelatedRichBlockProps } from './RelatedRichBlock.types';
3
+ export declare const RelatedRichBlock: React.FC<RelatedRichBlockProps>;
@@ -0,0 +1,11 @@
1
+ import { CallToActions, LightboxContext } from '../types';
2
+ export interface RenderBlocksProps {
3
+ block: any;
4
+ styleContext?: any;
5
+ isRead?: boolean;
6
+ isListened?: boolean;
7
+ isInBookmarks?: boolean;
8
+ bookmarkAction?: (service: CallToActions, place: string) => void;
9
+ lightBox?: LightboxContext | null | undefined;
10
+ lang?: 'ru' | 'en';
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RenderBlocksProps } from './RenderBlocks.types';
3
+ export declare const RenderBlocks: React.FC<RenderBlocksProps>;