@meduza/ui-kit-2 0.3.0 → 0.4.0

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 (188) hide show
  1. package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +4 -4
  2. package/dist/AnnouncementInText/index.d.ts +3 -3
  3. package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -6
  4. package/dist/BookmarkButton/index.d.ts +3 -3
  5. package/dist/Button/Button.d.ts +3 -3
  6. package/dist/Button/Button.types.d.ts +16 -16
  7. package/dist/Button/ButtonLoader.d.ts +2 -2
  8. package/dist/Button/index.d.ts +2 -2
  9. package/dist/CardTitle/CardTitle.types.d.ts +10 -10
  10. package/dist/CardTitle/index.d.ts +3 -3
  11. package/dist/ChapterBlock/ChapterBlock.types.d.ts +7 -7
  12. package/dist/ChapterBlock/index.d.ts +3 -3
  13. package/dist/Cover/Cover.types.d.ts +24 -24
  14. package/dist/Cover/index.d.ts +3 -3
  15. package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +6 -7
  16. package/dist/DocumentItemsCount/index.d.ts +3 -3
  17. package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +4 -4
  18. package/dist/DonatesTeaser/index.d.ts +3 -3
  19. package/dist/DotsOnImage/DotsOnImage.types.d.ts +46 -46
  20. package/dist/DotsOnImage/index.d.ts +3 -3
  21. package/dist/Dropdown/Dropdown.types.d.ts +5 -6
  22. package/dist/Dropdown/index.d.ts +4 -4
  23. package/dist/EmbedBlock/EmbedBlock.d.ts +3 -3
  24. package/dist/EmbedBlock/EmbedBlock.types.d.ts +12 -11
  25. package/dist/EmbedBlock/EmbedGif.d.ts +3 -3
  26. package/dist/EmbedBlock/IframeBlock.d.ts +3 -3
  27. package/dist/EmbedBlock/index.d.ts +3 -3
  28. package/dist/Footnote/Footnote.types.d.ts +5 -5
  29. package/dist/Footnote/index.d.ts +3 -3
  30. package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -4
  31. package/dist/GroupedBlock/index.d.ts +3 -3
  32. package/dist/HalfBlock/HalfBlock.types.d.ts +4 -4
  33. package/dist/HalfBlock/index.d.ts +3 -3
  34. package/dist/Image/Image.types.d.ts +35 -35
  35. package/dist/Image/RenderPicture.d.ts +4 -4
  36. package/dist/Image/index.d.ts +3 -3
  37. package/dist/ImportantLead/ImportantLead.types.d.ts +4 -4
  38. package/dist/ImportantLead/index.d.ts +3 -3
  39. package/dist/Lazy/Lazy.types.d.ts +4 -5
  40. package/dist/Lazy/index.d.ts +3 -3
  41. package/dist/ListBlock/ListBlock.types.d.ts +9 -10
  42. package/dist/ListBlock/index.d.ts +3 -3
  43. package/dist/MaterialNote/MaterialNote.types.d.ts +13 -13
  44. package/dist/MaterialNote/index.d.ts +3 -3
  45. package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -4
  46. package/dist/MaterialTitle/index.d.ts +5 -5
  47. package/dist/MediaCaption/MediaCaption.types.d.ts +5 -5
  48. package/dist/MediaCaption/index.d.ts +3 -3
  49. package/dist/Meta/Meta.types.d.ts +19 -19
  50. package/dist/Meta/MetaContainer.d.ts +3 -3
  51. package/dist/Meta/index.d.ts +3 -3
  52. package/dist/MetaItem/MetaItem.types.d.ts +7 -7
  53. package/dist/MetaItem/index.d.ts +3 -3
  54. package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -3
  55. package/dist/MetaItemLive/index.d.ts +3 -3
  56. package/dist/Popover/Popover.types.d.ts +5 -5
  57. package/dist/Popover/index.d.ts +3 -3
  58. package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -6
  59. package/dist/QuoteBlock/index.d.ts +3 -3
  60. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +17 -17
  61. package/dist/RawHtmlBlock/index.d.ts +3 -3
  62. package/dist/RelatedBlock/RelatedBlock.types.d.ts +17 -17
  63. package/dist/RelatedBlock/index.d.ts +3 -3
  64. package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +4 -4
  65. package/dist/RelatedRichBlock/index.d.ts +3 -3
  66. package/dist/RenderBlocks/RenderBlocks.types.d.ts +11 -11
  67. package/dist/RenderBlocks/index.d.ts +3 -3
  68. package/dist/RichTitle/RichTitle.types.d.ts +12 -13
  69. package/dist/RichTitle/index.d.ts +3 -3
  70. package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +15 -15
  71. package/dist/SensitiveBlock/index.d.ts +3 -3
  72. package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +4 -4
  73. package/dist/ShopRelatedBlock/index.d.ts +3 -3
  74. package/dist/SimpleBlock/SimpleBlock.types.d.ts +4 -4
  75. package/dist/SimpleBlock/index.d.ts +3 -3
  76. package/dist/SimpleTitle/SimpleTitle.types.d.ts +9 -9
  77. package/dist/SimpleTitle/index.d.ts +3 -3
  78. package/dist/SourceBlock/SourceBlock.types.d.ts +15 -15
  79. package/dist/SourceBlock/index.d.ts +3 -3
  80. package/dist/Spoiler/Spoiler.types.d.ts +4 -4
  81. package/dist/Spoiler/index.d.ts +3 -3
  82. package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -8
  83. package/dist/SvgSymbol/icons.d.ts +167 -167
  84. package/dist/SvgSymbol/index.d.ts +3 -3
  85. package/dist/Switcher/Switcher.types.d.ts +12 -12
  86. package/dist/Switcher/index.d.ts +3 -3
  87. package/dist/Table/Table.types.d.ts +25 -25
  88. package/dist/Table/index.d.ts +3 -3
  89. package/dist/Tag/Tag.types.d.ts +12 -12
  90. package/dist/Tag/index.d.ts +3 -3
  91. package/dist/Timestamp/Timestamp.types.d.ts +5 -5
  92. package/dist/Timestamp/index.d.ts +4 -4
  93. package/dist/Toolbar/Toolbar.d.ts +3 -3
  94. package/dist/Toolbar/Toolbar.types.d.ts +7 -8
  95. package/dist/Toolbar/ToolbarItem.d.ts +3 -3
  96. package/dist/Toolbar/index.d.ts +2 -2
  97. package/dist/ToolbarButton/ToolbarButton.types.d.ts +10 -10
  98. package/dist/ToolbarButton/index.d.ts +3 -3
  99. package/dist/Tooltip/Tooltip.d.ts +3 -3
  100. package/dist/Tooltip/Tooltip.types.d.ts +8 -8
  101. package/dist/Tooltip/TooltipFooter.d.ts +3 -3
  102. package/dist/Tooltip/index.d.ts +2 -2
  103. package/dist/constants.d.ts +41 -41
  104. package/dist/index.d.ts +45 -45
  105. package/dist/index.js +2 -2
  106. package/dist/types.d.ts +20 -20
  107. package/dist/ui-kit.css +3894 -4102
  108. package/dist/uikit.cjs.development.js +2706 -0
  109. package/dist/uikit.cjs.development.js.map +1 -0
  110. package/dist/uikit.cjs.production.min.js +2 -0
  111. package/dist/uikit.cjs.production.min.js.map +1 -0
  112. package/dist/uikit.esm.js +2652 -0
  113. package/dist/uikit.esm.js.map +1 -0
  114. package/dist/utils/BlockContext.d.ts +8 -8
  115. package/dist/utils/DangerousHtml.d.ts +8 -8
  116. package/dist/utils/capitalizeFirstLetter.d.ts +1 -1
  117. package/dist/utils/converCase.d.ts +2 -2
  118. package/dist/utils/generateGradient.d.ts +2 -2
  119. package/dist/utils/getElementPositionRelativeToViewport.d.ts +2 -2
  120. package/dist/utils/makeClassName.d.ts +3 -3
  121. package/dist/utils/makeStyleContext.d.ts +3 -3
  122. package/dist/utils/pluralize.d.ts +2 -2
  123. package/dist/utils/postMessage.d.ts +2 -2
  124. package/dist/utils/viewportSize.d.ts +6 -6
  125. package/package.json +68 -62
  126. package/src/BookmarkButton/BookmarkButton.css +4 -3
  127. package/src/BookmarkButton/BookmarkButton.module.css +4 -3
  128. package/src/Button/Button.module.css +29 -19
  129. package/src/Cover/Cover.module.css +20 -13
  130. package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
  131. package/src/Toolbar/Toolbar.module.css +13 -12
  132. package/src/Toolbar/Toolbar.stories.tsx +1 -3
  133. package/src/ToolbarButton/ToolbarButton.module.css +8 -7
  134. package/src/ToolbarButton/ToolbarButton.stories.tsx +1 -3
  135. package/src/ToolbarButton/ToolbarButton.test.tsx +1 -3
  136. package/src/Tooltip/Tooltip.module.css +13 -6
  137. package/dist/AnnouncementInText/AnnouncementInText.stories.d.ts +0 -10
  138. package/dist/BookmarkButton/BookmarkButton.stories.d.ts +0 -10
  139. package/dist/Button/Button.stories.d.ts +0 -10
  140. package/dist/CardTitle/CardTitle.stories.d.ts +0 -10
  141. package/dist/ChapterBlock/ChapterBlock.stories.d.ts +0 -10
  142. package/dist/Cover/Cover.stories.d.ts +0 -10
  143. package/dist/DocumentItemsCount/DocumentItemsCount.stories.d.ts +0 -10
  144. package/dist/DonatesTeaser/DonatesTeaser.stories.d.ts +0 -10
  145. package/dist/DotsOnImage/DotsOnImage.stories.d.ts +0 -10
  146. package/dist/Dropdown/Dropdown.stories.d.ts +0 -10
  147. package/dist/EmbedBlock/EmbedBlock.stories.d.ts +0 -10
  148. package/dist/Footnote/Footnote.stories.d.ts +0 -10
  149. package/dist/GroupedBlock/GroupedBlock.stories.d.ts +0 -10
  150. package/dist/HalfBlock/HalfBlock.stories.d.ts +0 -10
  151. package/dist/Image/Image.stories.d.ts +0 -10
  152. package/dist/ImportantLead/ImportantLead.stories.d.ts +0 -10
  153. package/dist/Lazy/Lazy.stories.d.ts +0 -10
  154. package/dist/ListBlock/ListBlock.stories.d.ts +0 -11
  155. package/dist/MaterialNote/MaterialNote.stories.d.ts +0 -11
  156. package/dist/MaterialTitle/MaterialTitle.stories.d.ts +0 -10
  157. package/dist/MediaCaption/MediaCaption.stories.d.ts +0 -10
  158. package/dist/Meta/Meta.stories.d.ts +0 -10
  159. package/dist/MetaItem/MetaItem.stories.d.ts +0 -10
  160. package/dist/MetaItemLive/MetaItemLive.stories.d.ts +0 -10
  161. package/dist/Popover/Popover.stories.d.ts +0 -10
  162. package/dist/QuoteBlock/QuoteBlock.stories.d.ts +0 -10
  163. package/dist/RawHtmlBlock/RawHtmlBlock.stories.d.ts +0 -10
  164. package/dist/RelatedBlock/RelatedBlock.stories.d.ts +0 -10
  165. package/dist/RelatedRichBlock/RelatedRichBlock.stories.d.ts +0 -10
  166. package/dist/RenderBlocks/RenderBlocks.stories.d.ts +0 -10
  167. package/dist/RichTitle/RichTitle.stories.d.ts +0 -10
  168. package/dist/SensitiveBlock/SensitiveBlock.stories.d.ts +0 -10
  169. package/dist/ShopRelatedBlock/ShopRelatedBlock.stories.d.ts +0 -10
  170. package/dist/SimpleBlock/SimpleBlock.stories.d.ts +0 -10
  171. package/dist/SimpleTitle/SimpleTitle.stories.d.ts +0 -10
  172. package/dist/SourceBlock/SourceBlock.stories.d.ts +0 -10
  173. package/dist/Spoiler/Spoiler.stories.d.ts +0 -10
  174. package/dist/SvgSymbol/SvgSymbol.stories.d.ts +0 -10
  175. package/dist/Switcher/Switcher.stories.d.ts +0 -10
  176. package/dist/Table/Table.stories.d.ts +0 -10
  177. package/dist/Tag/Tag.stories.d.ts +0 -10
  178. package/dist/Timestamp/Timestamp.stories.d.ts +0 -10
  179. package/dist/Toolbar/Toolbar.stories.d.ts +0 -10
  180. package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -10
  181. package/dist/Tooltip/Tooltip.stories.d.ts +0 -10
  182. package/dist/_storybook/PreviewWrapper/index.d.ts +0 -6
  183. package/dist/ui-kit-2.cjs.development.js +0 -2906
  184. package/dist/ui-kit-2.cjs.development.js.map +0 -1
  185. package/dist/ui-kit-2.cjs.production.min.js +0 -2
  186. package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
  187. package/dist/ui-kit-2.esm.js +0 -2849
  188. package/dist/ui-kit-2.esm.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { ListBlockProps } from './ListBlock.types';
3
- export declare const ListBlock: React.FC<ListBlockProps>;
1
+ import React from 'react';
2
+ import { ListBlockProps } from './ListBlock.types';
3
+ export declare const ListBlock: React.FC<ListBlockProps>;
@@ -1,13 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MaterialNoteProps } from './MaterialNote.types';
3
- export declare const MaterialNote: React.FC<MaterialNoteProps>;
1
+ import React from 'react';
2
+ import { MaterialNoteProps } from './MaterialNote.types';
3
+ export declare const MaterialNote: React.FC<MaterialNoteProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- export interface MaterialTitleProps {
3
- children?: React.ReactNode;
4
- }
1
+ import React from 'react';
2
+ export interface MaterialTitleProps {
3
+ children?: React.ReactNode;
4
+ }
@@ -1,5 +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>;
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>;
@@ -1,5 +1,5 @@
1
- export interface MediaCaptionProps {
2
- credit?: string;
3
- caption?: string;
4
- styleContext?: string | string[];
5
- }
1
+ export interface MediaCaptionProps {
2
+ credit?: string;
3
+ caption?: string;
4
+ styleContext?: string | string[];
5
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MediaCaptionProps } from './MediaCaption.types';
3
- export declare const MediaCaption: React.FC<MediaCaptionProps>;
1
+ import React from 'react';
2
+ import { MediaCaptionProps } from './MediaCaption.types';
3
+ export declare const MediaCaption: React.FC<MediaCaptionProps>;
@@ -1,19 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MetaContainerProps } from './Meta.types';
3
- export declare const MetaContainer: React.FC<MetaContainerProps>;
1
+ import React from 'react';
2
+ import { MetaContainerProps } from './Meta.types';
3
+ export declare const MetaContainer: React.FC<MetaContainerProps>;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MetaProps } from './Meta.types';
3
- export declare const Meta: React.FC<MetaProps>;
1
+ import React from 'react';
2
+ import { MetaProps } from './Meta.types';
3
+ export declare const Meta: React.FC<MetaProps>;
@@ -1,7 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MetaItemProps } from './MetaItem.types';
3
- export declare const MetaItem: React.FC<MetaItemProps>;
1
+ import React from 'react';
2
+ import { MetaItemProps } from './MetaItem.types';
3
+ export declare const MetaItem: React.FC<MetaItemProps>;
@@ -1,3 +1,3 @@
1
- export interface MetaItemLiveProps {
2
- theme?: 'gold' | 'light' | 'inherit';
3
- }
1
+ export interface MetaItemLiveProps {
2
+ theme?: 'gold' | 'light' | 'inherit';
3
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { MetaItemLiveProps } from './MetaItemLive.types';
3
- export declare const MetaItemLive: React.FC<MetaItemLiveProps>;
1
+ import React from 'react';
2
+ import { MetaItemLiveProps } from './MetaItemLive.types';
3
+ export declare const MetaItemLive: React.FC<MetaItemLiveProps>;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export interface PopoverProps {
3
- children: React.ReactNode;
4
- onClose: () => void;
5
- }
1
+ import React from 'react';
2
+ export interface PopoverProps {
3
+ children: React.ReactNode;
4
+ onClose: () => void;
5
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { PopoverProps } from './Popover.types';
3
- export declare const Popover: React.FC<PopoverProps>;
1
+ import React from 'react';
2
+ import { PopoverProps } from './Popover.types';
3
+ export declare const Popover: React.FC<PopoverProps>;
@@ -1,6 +1,6 @@
1
- export interface QuoteBlockProps {
2
- styleContext?: string | string[];
3
- block: {
4
- data: string;
5
- };
6
- }
1
+ export interface QuoteBlockProps {
2
+ styleContext?: string | string[];
3
+ block: {
4
+ data: string;
5
+ };
6
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { QuoteBlockProps } from './QuoteBlock.types';
3
- export declare const QuoteBlock: React.FC<QuoteBlockProps>;
1
+ import React from 'react';
2
+ import { QuoteBlockProps } from './QuoteBlock.types';
3
+ export declare const QuoteBlock: React.FC<QuoteBlockProps>;
@@ -1,17 +1,17 @@
1
- import { ImageProps } from '../Image/Image.types';
2
- import { CallToActions, LightboxContext } from '../types';
3
- export declare 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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { RawHtmlBlockProps } from './RawHtmlBlock.types';
3
- export declare const RawHtmlBlock: React.FC<RawHtmlBlockProps>;
1
+ import React from 'react';
2
+ import { RawHtmlBlockProps } from './RawHtmlBlock.types';
3
+ export declare const RawHtmlBlock: React.FC<RawHtmlBlockProps>;
@@ -1,17 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { RelatedBlockProps } from './RelatedBlock.types';
3
- export declare const RelatedBlock: React.FC<RelatedBlockProps>;
1
+ import React from 'react';
2
+ import { RelatedBlockProps } from './RelatedBlock.types';
3
+ export declare const RelatedBlock: React.FC<RelatedBlockProps>;
@@ -1,4 +1,4 @@
1
- export interface RelatedRichBlockProps {
2
- block?: any;
3
- styleContext?: any;
4
- }
1
+ export interface RelatedRichBlockProps {
2
+ block?: any;
3
+ styleContext?: any;
4
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { RelatedRichBlockProps } from './RelatedRichBlock.types';
3
- export declare const RelatedRichBlock: React.FC<RelatedRichBlockProps>;
1
+ import React from 'react';
2
+ import { RelatedRichBlockProps } from './RelatedRichBlock.types';
3
+ export declare const RelatedRichBlock: React.FC<RelatedRichBlockProps>;
@@ -1,11 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { RenderBlocksProps } from './RenderBlocks.types';
3
- export declare const RenderBlocks: React.FC<RenderBlocksProps>;
1
+ import React from 'react';
2
+ import { RenderBlocksProps } from './RenderBlocks.types';
3
+ export declare const RenderBlocks: React.FC<RenderBlocksProps>;
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
2
- export interface RichTitleProps {
3
- block: {
4
- only_on?: string;
5
- data: {
6
- featured?: boolean;
7
- first: string;
8
- second?: string;
9
- as?: keyof JSX.IntrinsicElements;
10
- };
11
- };
12
- styleContext?: string[] | string;
13
- }
1
+ export interface RichTitleProps {
2
+ block: {
3
+ only_on?: string;
4
+ data: {
5
+ featured?: boolean;
6
+ first: string;
7
+ second?: string;
8
+ as?: keyof JSX.IntrinsicElements;
9
+ };
10
+ };
11
+ styleContext?: string[] | string;
12
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { RichTitleProps } from './RichTitle.types';
3
- export declare const RichTitle: React.FC<RichTitleProps>;
1
+ import React from 'react';
2
+ import { RichTitleProps } from './RichTitle.types';
3
+ export declare const RichTitle: React.FC<RichTitleProps>;
@@ -1,15 +1,15 @@
1
- export interface SensitiveBlockProps {
2
- block: {
3
- id: string;
4
- title: string;
5
- blurred_image: string;
6
- button: {
7
- text: string;
8
- };
9
- item: any;
10
- credit?: string;
11
- caption?: string;
12
- cc: string;
13
- };
14
- styleContext?: string[];
15
- }
1
+ export interface SensitiveBlockProps {
2
+ block: {
3
+ id: string;
4
+ title: string;
5
+ blurred_image: string;
6
+ button: {
7
+ text: string;
8
+ };
9
+ item: any;
10
+ credit?: string;
11
+ caption?: string;
12
+ cc: string;
13
+ };
14
+ styleContext?: string[];
15
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { SensitiveBlockProps } from './SensitiveBlock.types';
3
- export declare const SensitiveBlock: React.FC<SensitiveBlockProps>;
1
+ import React from 'react';
2
+ import { SensitiveBlockProps } from './SensitiveBlock.types';
3
+ export declare const SensitiveBlock: React.FC<SensitiveBlockProps>;
@@ -1,4 +1,4 @@
1
- export interface ShopRelatedBlockProps {
2
- block?: any;
3
- styleContext?: any;
4
- }
1
+ export interface ShopRelatedBlockProps {
2
+ block?: any;
3
+ styleContext?: any;
4
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { ShopRelatedBlockProps } from './ShopRelatedBlock.types';
3
- export declare const ShopRelatedBlock: React.FC<ShopRelatedBlockProps>;
1
+ import React from 'react';
2
+ import { ShopRelatedBlockProps } from './ShopRelatedBlock.types';
3
+ export declare const ShopRelatedBlock: React.FC<ShopRelatedBlockProps>;
@@ -1,4 +1,4 @@
1
- export interface SimpleBlockProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
1
+ export interface SimpleBlockProps {
2
+ block: any;
3
+ styleContext?: string[] | string;
4
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { SimpleBlockProps } from './SimpleBlock.types';
3
- export declare const SimpleBlock: React.FC<SimpleBlockProps>;
1
+ import React from 'react';
2
+ import { SimpleBlockProps } from './SimpleBlock.types';
3
+ export declare const SimpleBlock: React.FC<SimpleBlockProps>;
@@ -1,9 +1,9 @@
1
- export interface SimpleTitleProps {
2
- block: {
3
- data: {
4
- first: string;
5
- };
6
- only_on?: string;
7
- };
8
- styleContext?: string[] | string;
9
- }
1
+ export interface SimpleTitleProps {
2
+ block: {
3
+ data: {
4
+ first: string;
5
+ };
6
+ only_on?: string;
7
+ };
8
+ styleContext?: string[] | string;
9
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { SimpleTitleProps } from './SimpleTitle.types';
3
- export declare const SimpleTitle: React.FC<SimpleTitleProps>;
1
+ import React from 'react';
2
+ import { SimpleTitleProps } from './SimpleTitle.types';
3
+ export declare const SimpleTitle: React.FC<SimpleTitleProps>;
@@ -1,15 +1,15 @@
1
- export interface SourceBlockProps {
2
- block: {
3
- only_on?: string;
4
- data: {
5
- quote: {
6
- type: string;
7
- data: string;
8
- length: number;
9
- }[];
10
- origin: string;
11
- url: string;
12
- };
13
- };
14
- styleContext?: string[] | string;
15
- }
1
+ export interface SourceBlockProps {
2
+ block: {
3
+ only_on?: string;
4
+ data: {
5
+ quote: {
6
+ type: string;
7
+ data: string;
8
+ length: number;
9
+ }[];
10
+ origin: string;
11
+ url: string;
12
+ };
13
+ };
14
+ styleContext?: string[] | string;
15
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { SourceBlockProps } from './SourceBlock.types';
3
- export declare const SourceBlock: React.FC<SourceBlockProps>;
1
+ import React from 'react';
2
+ import { SourceBlockProps } from './SourceBlock.types';
3
+ export declare const SourceBlock: React.FC<SourceBlockProps>;
@@ -1,4 +1,4 @@
1
- export interface SpoilerProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
1
+ export interface SpoilerProps {
2
+ block: any;
3
+ styleContext?: string[] | string;
4
+ }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { SpoilerProps } from './Spoiler.types';
3
- export declare const Spoiler: React.FC<SpoilerProps>;
1
+ import React from 'react';
2
+ import { SpoilerProps } from './Spoiler.types';
3
+ export declare const Spoiler: React.FC<SpoilerProps>;
@@ -1,8 +1,8 @@
1
- export declare type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile' | 'isInBookmark';
2
- export declare type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
3
- export declare type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
4
- export interface SvgSymbolProps {
5
- styleContext?: SvgSymbolStyleContexts;
6
- size?: Sizes;
7
- icon: Icons;
8
- }
1
+ export type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile' | 'isInBookmark';
2
+ export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
3
+ export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
4
+ export interface SvgSymbolProps {
5
+ styleContext?: SvgSymbolStyleContexts;
6
+ size?: Sizes;
7
+ icon: Icons;
8
+ }