@meduza/ui-kit-2 0.4.14 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/package.json +7 -1
  2. package/src/Cover/index.tsx +2 -10
  3. package/src/DocumentItemsCount/DocumentItemsCount.module.css +12 -1
  4. package/src/DocumentItemsCount/DocumentItemsCount.test.tsx +9 -2
  5. package/src/DocumentItemsCount/index.tsx +3 -3
  6. package/src/Image/Image.module.css +0 -11
  7. package/src/Meta/Meta.module.css +0 -5
  8. package/src/Meta/Meta.stories.module.css +0 -16
  9. package/src/Meta/Meta.stories.tsx +4 -51
  10. package/src/Meta/MetaContainer.tsx +0 -8
  11. package/src/RawHtmlBlock/index.tsx +5 -0
  12. package/src/RelatedRichBlock/RelatedRichBlock.module.css +1 -11
  13. package/src/RenderBlocks/index.tsx +1 -5
  14. package/src/ShopRelatedBlock/ShopRelatedBlock.module.css +210 -0
  15. package/src/ShopRelatedBlock/ShopRelatedBlock.stories.module.css +12 -0
  16. package/src/ShopRelatedBlock/ShopRelatedBlock.stories.tsx +52 -0
  17. package/src/ShopRelatedBlock/ShopRelatedBlock.test.tsx +20 -0
  18. package/src/ShopRelatedBlock/ShopRelatedBlock.types.ts +4 -0
  19. package/src/ShopRelatedBlock/index.tsx +120 -0
  20. package/src/ShopRelatedBlock/mock.json +153 -0
  21. package/src/SimpleBlock/SimpleBlock.types.ts +1 -0
  22. package/src/SimpleBlock/index.tsx +3 -1
  23. package/src/Tag/Tag.module.css +3 -8
  24. package/src/Tag/Tag.stories.tsx +3 -16
  25. package/src/Tag/Tag.types.ts +1 -7
  26. package/src/index.tsx +1 -1
  27. package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +0 -4
  28. package/dist/AnnouncementInText/index.d.ts +0 -3
  29. package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
  30. package/dist/BookmarkButton/index.d.ts +0 -3
  31. package/dist/Button/Button.d.ts +0 -3
  32. package/dist/Button/Button.types.d.ts +0 -16
  33. package/dist/Button/ButtonLoader.d.ts +0 -2
  34. package/dist/Button/index.d.ts +0 -2
  35. package/dist/CardTitle/CardTitle.types.d.ts +0 -10
  36. package/dist/CardTitle/index.d.ts +0 -3
  37. package/dist/ChapterBlock/ChapterBlock.types.d.ts +0 -7
  38. package/dist/ChapterBlock/index.d.ts +0 -3
  39. package/dist/Cover/Cover.types.d.ts +0 -24
  40. package/dist/Cover/index.d.ts +0 -3
  41. package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +0 -7
  42. package/dist/DocumentItemsCount/index.d.ts +0 -3
  43. package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +0 -4
  44. package/dist/DonatesTeaser/index.d.ts +0 -3
  45. package/dist/DotsOnImage/DotsOnImage.types.d.ts +0 -46
  46. package/dist/DotsOnImage/index.d.ts +0 -3
  47. package/dist/Dropdown/Dropdown.types.d.ts +0 -6
  48. package/dist/Dropdown/index.d.ts +0 -4
  49. package/dist/EmbedBlock/EmbedBlock.d.ts +0 -3
  50. package/dist/EmbedBlock/EmbedBlock.types.d.ts +0 -12
  51. package/dist/EmbedBlock/EmbedGif.d.ts +0 -3
  52. package/dist/EmbedBlock/IframeBlock.d.ts +0 -3
  53. package/dist/EmbedBlock/index.d.ts +0 -3
  54. package/dist/Footnote/Footnote.types.d.ts +0 -5
  55. package/dist/Footnote/index.d.ts +0 -3
  56. package/dist/GroupedBlock/GroupedBlock.types.d.ts +0 -4
  57. package/dist/GroupedBlock/index.d.ts +0 -3
  58. package/dist/HalfBlock/HalfBlock.types.d.ts +0 -4
  59. package/dist/HalfBlock/index.d.ts +0 -3
  60. package/dist/Image/Image.types.d.ts +0 -35
  61. package/dist/Image/RenderPicture.d.ts +0 -4
  62. package/dist/Image/index.d.ts +0 -3
  63. package/dist/ImportantLead/ImportantLead.types.d.ts +0 -4
  64. package/dist/ImportantLead/index.d.ts +0 -3
  65. package/dist/Lazy/Lazy.types.d.ts +0 -5
  66. package/dist/Lazy/index.d.ts +0 -3
  67. package/dist/ListBlock/ListBlock.types.d.ts +0 -10
  68. package/dist/ListBlock/index.d.ts +0 -3
  69. package/dist/MaterialNote/MaterialNote.types.d.ts +0 -13
  70. package/dist/MaterialNote/index.d.ts +0 -3
  71. package/dist/MaterialTitle/MaterialTitle.types.d.ts +0 -4
  72. package/dist/MaterialTitle/index.d.ts +0 -5
  73. package/dist/MediaCaption/MediaCaption.types.d.ts +0 -5
  74. package/dist/MediaCaption/index.d.ts +0 -3
  75. package/dist/Meta/Meta.mock.d.ts +0 -12
  76. package/dist/Meta/Meta.types.d.ts +0 -19
  77. package/dist/Meta/MetaContainer.d.ts +0 -3
  78. package/dist/Meta/index.d.ts +0 -3
  79. package/dist/MetaItem/MetaItem.types.d.ts +0 -7
  80. package/dist/MetaItem/index.d.ts +0 -3
  81. package/dist/MetaItemLive/MetaItemLive.types.d.ts +0 -3
  82. package/dist/MetaItemLive/index.d.ts +0 -3
  83. package/dist/Popover/Popover.types.d.ts +0 -5
  84. package/dist/Popover/index.d.ts +0 -3
  85. package/dist/QuoteBlock/QuoteBlock.types.d.ts +0 -6
  86. package/dist/QuoteBlock/index.d.ts +0 -3
  87. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -17
  88. package/dist/RawHtmlBlock/index.d.ts +0 -3
  89. package/dist/RelatedBlock/RelatedBlock.types.d.ts +0 -17
  90. package/dist/RelatedBlock/index.d.ts +0 -3
  91. package/dist/RelatedBook/RelatedBook.mock.d.ts +0 -65
  92. package/dist/RelatedBook/RelatedBook.types.d.ts +0 -4
  93. package/dist/RelatedBook/index.d.ts +0 -3
  94. package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +0 -4
  95. package/dist/RelatedRichBlock/index.d.ts +0 -3
  96. package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -11
  97. package/dist/RenderBlocks/index.d.ts +0 -3
  98. package/dist/RichTitle/RichTitle.types.d.ts +0 -13
  99. package/dist/RichTitle/index.d.ts +0 -3
  100. package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +0 -15
  101. package/dist/SensitiveBlock/index.d.ts +0 -3
  102. package/dist/SimpleBlock/SimpleBlock.types.d.ts +0 -4
  103. package/dist/SimpleBlock/index.d.ts +0 -3
  104. package/dist/SimpleTitle/SimpleTitle.types.d.ts +0 -9
  105. package/dist/SimpleTitle/index.d.ts +0 -3
  106. package/dist/SourceBlock/SourceBlock.types.d.ts +0 -15
  107. package/dist/SourceBlock/index.d.ts +0 -3
  108. package/dist/Spoiler/Spoiler.types.d.ts +0 -4
  109. package/dist/Spoiler/index.d.ts +0 -3
  110. package/dist/SvgSymbol/SvgSymbol.types.d.ts +0 -8
  111. package/dist/SvgSymbol/icons.d.ts +0 -167
  112. package/dist/SvgSymbol/index.d.ts +0 -3
  113. package/dist/Switcher/Switcher.types.d.ts +0 -12
  114. package/dist/Switcher/index.d.ts +0 -3
  115. package/dist/Table/Table.types.d.ts +0 -25
  116. package/dist/Table/index.d.ts +0 -3
  117. package/dist/Tag/Tag.types.d.ts +0 -12
  118. package/dist/Tag/index.d.ts +0 -3
  119. package/dist/Timestamp/Timestamp.types.d.ts +0 -5
  120. package/dist/Timestamp/index.d.ts +0 -4
  121. package/dist/Toolbar/Toolbar.d.ts +0 -3
  122. package/dist/Toolbar/Toolbar.types.d.ts +0 -8
  123. package/dist/Toolbar/ToolbarItem.d.ts +0 -3
  124. package/dist/Toolbar/index.d.ts +0 -2
  125. package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -10
  126. package/dist/ToolbarButton/index.d.ts +0 -3
  127. package/dist/Tooltip/Tooltip.d.ts +0 -3
  128. package/dist/Tooltip/Tooltip.types.d.ts +0 -8
  129. package/dist/Tooltip/TooltipFooter.d.ts +0 -3
  130. package/dist/Tooltip/index.d.ts +0 -2
  131. package/dist/constants.d.ts +0 -41
  132. package/dist/index.d.ts +0 -45
  133. package/dist/types.d.ts +0 -20
  134. package/dist/ui-kit-2.cjs.development.js +0 -2669
  135. package/dist/ui-kit-2.cjs.development.js.map +0 -1
  136. package/dist/ui-kit-2.cjs.production.min.js +0 -2
  137. package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
  138. package/dist/ui-kit-2.esm.js +0 -2615
  139. package/dist/ui-kit-2.esm.js.map +0 -1
  140. package/dist/ui-kit.css +0 -6006
  141. package/dist/utils/BlockContext.d.ts +0 -8
  142. package/dist/utils/DangerousHtml.d.ts +0 -8
  143. package/dist/utils/capitalizeFirstLetter.d.ts +0 -1
  144. package/dist/utils/converCase.d.ts +0 -2
  145. package/dist/utils/generateGradient.d.ts +0 -2
  146. package/dist/utils/getElementPositionRelativeToViewport.d.ts +0 -2
  147. package/dist/utils/makeClassName.d.ts +0 -3
  148. package/dist/utils/makeStyleContext.d.ts +0 -3
  149. package/dist/utils/pluralize.d.ts +0 -2
  150. package/dist/utils/postMessage.d.ts +0 -2
  151. package/dist/utils/viewportSize.d.ts +0 -6
  152. package/src/.DS_Store +0 -0
  153. package/src/Meta/Meta.mock.ts +0 -19
  154. package/src/RelatedBook/RelatedBook.mock.ts +0 -68
  155. package/src/RelatedBook/RelatedBook.module.css +0 -210
  156. package/src/RelatedBook/RelatedBook.stories.module.css +0 -5
  157. package/src/RelatedBook/RelatedBook.stories.tsx +0 -35
  158. package/src/RelatedBook/RelatedBook.test.tsx +0 -20
  159. package/src/RelatedBook/RelatedBook.types.ts +0 -4
  160. package/src/RelatedBook/index.tsx +0 -68
@@ -1,4 +0,0 @@
1
- export interface GroupedBlockProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { GroupedBlockProps } from './GroupedBlock.types';
3
- export declare const GroupedBlock: React.FC<GroupedBlockProps>;
@@ -1,4 +0,0 @@
1
- export interface HalfBlockProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { HalfBlockProps } from './HalfBlock.types';
3
- export declare const HalfBlock: React.FC<HalfBlockProps>;
@@ -1,35 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { PictureProps } from './Image.types';
3
- export declare const RenderPicture: React.FC<PictureProps>;
4
- export default RenderPicture;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { ImageProps } from './Image.types';
3
- export declare const Image: React.FC<ImageProps>;
@@ -1,4 +0,0 @@
1
- export interface ImportantLeadProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { ImportantLeadProps } from './ImportantLead.types';
3
- export declare const ImportantLead: React.FC<ImportantLeadProps>;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export interface LazyProps {
3
- children: JSX.Element[] | JSX.Element;
4
- threshold?: number;
5
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { LazyProps } from './Lazy.types';
3
- export declare const Lazy: React.FC<LazyProps>;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ListBlockProps {
3
- block: {
4
- type: keyof JSX.IntrinsicElements;
5
- data: string[];
6
- length: number;
7
- only_on?: string;
8
- };
9
- styleContext?: string[] | string;
10
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { ListBlockProps } from './ListBlock.types';
3
- export declare const ListBlock: React.FC<ListBlockProps>;
@@ -1,13 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { MaterialNoteProps } from './MaterialNote.types';
3
- export declare const MaterialNote: React.FC<MaterialNoteProps>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export interface MaterialTitleProps {
3
- children?: React.ReactNode;
4
- }
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- export interface MediaCaptionProps {
2
- credit?: string;
3
- caption?: string;
4
- styleContext?: string | string[];
5
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MediaCaptionProps } from './MediaCaption.types';
3
- export declare const MediaCaption: React.FC<MediaCaptionProps>;
@@ -1,12 +0,0 @@
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
- };
@@ -1,19 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { MetaContainerProps } from './Meta.types';
3
- export declare const MetaContainer: React.FC<MetaContainerProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MetaProps } from './Meta.types';
3
- export declare const Meta: React.FC<MetaProps>;
@@ -1,7 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { MetaItemProps } from './MetaItem.types';
3
- export declare const MetaItem: React.FC<MetaItemProps>;
@@ -1,3 +0,0 @@
1
- export interface MetaItemLiveProps {
2
- theme?: 'gold' | 'light' | 'inherit';
3
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MetaItemLiveProps } from './MetaItemLive.types';
3
- export declare const MetaItemLive: React.FC<MetaItemLiveProps>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export interface PopoverProps {
3
- children: React.ReactNode;
4
- onClose: () => void;
5
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { PopoverProps } from './Popover.types';
3
- export declare const Popover: React.FC<PopoverProps>;
@@ -1,6 +0,0 @@
1
- export interface QuoteBlockProps {
2
- styleContext?: string | string[];
3
- block: {
4
- data: string;
5
- };
6
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { QuoteBlockProps } from './QuoteBlock.types';
3
- export declare const QuoteBlock: React.FC<QuoteBlockProps>;
@@ -1,17 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { RawHtmlBlockProps } from './RawHtmlBlock.types';
3
- export declare const RawHtmlBlock: React.FC<RawHtmlBlockProps>;
@@ -1,17 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { RelatedBlockProps } from './RelatedBlock.types';
3
- export declare const RelatedBlock: React.FC<RelatedBlockProps>;
@@ -1,65 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export interface RelatedBookProps {
2
- block: any;
3
- styleContext: any;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { RelatedBookProps } from './RelatedBook.types';
3
- export declare const RelatedBook: React.FC<RelatedBookProps>;
@@ -1,4 +0,0 @@
1
- export interface RelatedRichBlockProps {
2
- block?: any;
3
- styleContext?: any;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { RelatedRichBlockProps } from './RelatedRichBlock.types';
3
- export declare const RelatedRichBlock: React.FC<RelatedRichBlockProps>;
@@ -1,11 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { RenderBlocksProps } from './RenderBlocks.types';
3
- export declare const RenderBlocks: React.FC<RenderBlocksProps>;
@@ -1,13 +0,0 @@
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,3 +0,0 @@
1
- import React from 'react';
2
- import { RichTitleProps } from './RichTitle.types';
3
- export declare const RichTitle: React.FC<RichTitleProps>;
@@ -1,15 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { SensitiveBlockProps } from './SensitiveBlock.types';
3
- export declare const SensitiveBlock: React.FC<SensitiveBlockProps>;
@@ -1,4 +0,0 @@
1
- export interface SimpleBlockProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { SimpleBlockProps } from './SimpleBlock.types';
3
- export declare const SimpleBlock: React.FC<SimpleBlockProps>;
@@ -1,9 +0,0 @@
1
- export interface SimpleTitleProps {
2
- block: {
3
- data: {
4
- first: string;
5
- };
6
- only_on?: string;
7
- };
8
- styleContext?: string[] | string;
9
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { SimpleTitleProps } from './SimpleTitle.types';
3
- export declare const SimpleTitle: React.FC<SimpleTitleProps>;
@@ -1,15 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { SourceBlockProps } from './SourceBlock.types';
3
- export declare const SourceBlock: React.FC<SourceBlockProps>;
@@ -1,4 +0,0 @@
1
- export interface SpoilerProps {
2
- block: any;
3
- styleContext?: string[] | string;
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { SpoilerProps } from './Spoiler.types';
3
- export declare const Spoiler: React.FC<SpoilerProps>;
@@ -1,8 +0,0 @@
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
- }