@meduza/ui-kit-2 0.8.607 → 0.8.608
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 -0
- package/dist/AnnouncementInText/index.d.ts +3 -0
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -0
- package/dist/BookmarkButton/index.d.ts +3 -0
- package/dist/Button/Button.d.ts +3 -0
- package/dist/Button/Button.types.d.ts +16 -0
- package/dist/Button/ButtonLoader.d.ts +2 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/CardTitle/CardTitle.types.d.ts +11 -0
- package/dist/CardTitle/index.d.ts +3 -0
- package/dist/ChapterBlock/ChapterBlock.types.d.ts +8 -0
- package/dist/ChapterBlock/index.d.ts +3 -0
- package/dist/Cover/Cover.types.d.ts +24 -0
- package/dist/Cover/index.d.ts +3 -0
- package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +6 -0
- package/dist/DocumentItemsCount/index.d.ts +3 -0
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +4 -0
- package/dist/DonatesTeaser/index.d.ts +3 -0
- package/dist/DotsOnImage/DotsOnImage.types.d.ts +46 -0
- package/dist/DotsOnImage/index.d.ts +3 -0
- package/dist/Dropdown/Dropdown.types.d.ts +5 -0
- package/dist/Dropdown/index.d.ts +4 -0
- package/dist/EmbedBlock/EmbedBlock.d.ts +3 -0
- package/dist/EmbedBlock/EmbedBlock.types.d.ts +12 -0
- package/dist/EmbedBlock/EmbedGif.d.ts +3 -0
- package/dist/EmbedBlock/IframeBlock.d.ts +3 -0
- package/dist/EmbedBlock/index.d.ts +3 -0
- package/dist/Footnote/Footnote.types.d.ts +5 -0
- package/dist/Footnote/index.d.ts +3 -0
- package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -0
- package/dist/GroupedBlock/index.d.ts +3 -0
- package/dist/HalfBlock/HalfBlock.types.d.ts +4 -0
- package/dist/HalfBlock/index.d.ts +3 -0
- package/dist/Image/Image.types.d.ts +35 -0
- package/dist/Image/RenderPicture.d.ts +4 -0
- package/dist/Image/index.d.ts +3 -0
- package/dist/ImportantLead/ImportantLead.types.d.ts +4 -0
- package/dist/ImportantLead/index.d.ts +3 -0
- package/dist/Lazy/Lazy.types.d.ts +4 -0
- package/dist/Lazy/index.d.ts +3 -0
- package/dist/ListBlock/ListBlock.types.d.ts +9 -0
- package/dist/ListBlock/index.d.ts +3 -0
- package/dist/MaterialNote/MaterialNote.types.d.ts +13 -0
- package/dist/MaterialNote/index.d.ts +3 -0
- package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -0
- package/dist/MaterialTitle/index.d.ts +5 -0
- package/dist/MediaCaption/MediaCaption.types.d.ts +5 -0
- package/dist/MediaCaption/index.d.ts +3 -0
- package/dist/Meta/Meta.mock.d.ts +12 -0
- package/dist/Meta/Meta.types.d.ts +20 -0
- package/dist/Meta/MetaContainer.d.ts +3 -0
- package/dist/Meta/index.d.ts +3 -0
- package/dist/MetaItem/MetaItem.types.d.ts +7 -0
- package/dist/MetaItem/index.d.ts +3 -0
- package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -0
- package/dist/MetaItemLive/index.d.ts +3 -0
- package/dist/Popover/Popover.types.d.ts +5 -0
- package/dist/Popover/index.d.ts +3 -0
- package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -0
- package/dist/QuoteBlock/index.d.ts +3 -0
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +18 -0
- package/dist/RawHtmlBlock/index.d.ts +3 -0
- package/dist/RelatedBlock/RelatedBlock.types.d.ts +17 -0
- package/dist/RelatedBlock/index.d.ts +3 -0
- package/dist/RelatedBook/RelatedBook.mock.d.ts +65 -0
- package/dist/RelatedBook/RelatedBook.types.d.ts +4 -0
- package/dist/RelatedBook/index.d.ts +3 -0
- package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +4 -0
- package/dist/RelatedRichBlock/index.d.ts +3 -0
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +12 -0
- package/dist/RenderBlocks/index.d.ts +3 -0
- package/dist/RichTitle/RichTitle.types.d.ts +12 -0
- package/dist/RichTitle/index.d.ts +3 -0
- package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +15 -0
- package/dist/SensitiveBlock/index.d.ts +3 -0
- package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +4 -0
- package/dist/ShopRelatedBlock/index.d.ts +3 -0
- package/dist/SimpleBlock/SimpleBlock.types.d.ts +5 -0
- package/dist/SimpleBlock/index.d.ts +3 -0
- package/dist/SimpleTitle/SimpleTitle.types.d.ts +9 -0
- package/dist/SimpleTitle/index.d.ts +3 -0
- package/dist/SourceBlock/SourceBlock.types.d.ts +15 -0
- package/dist/SourceBlock/index.d.ts +3 -0
- package/dist/Spoiler/Spoiler.types.d.ts +4 -0
- package/dist/Spoiler/index.d.ts +3 -0
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -0
- package/dist/SvgSymbol/icons.d.ts +182 -0
- package/dist/SvgSymbol/index.d.ts +3 -0
- package/dist/Switcher/Switcher.types.d.ts +12 -0
- package/dist/Switcher/index.d.ts +3 -0
- package/dist/Table/Table.types.d.ts +25 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Tag/Tag.types.d.ts +12 -0
- package/dist/Tag/index.d.ts +3 -0
- package/dist/Timestamp/Timestamp.types.d.ts +5 -0
- package/dist/Timestamp/index.d.ts +4 -0
- package/dist/Toolbar/Toolbar.d.ts +3 -0
- package/dist/Toolbar/Toolbar.types.d.ts +7 -0
- package/dist/Toolbar/ToolbarItem.d.ts +3 -0
- package/dist/Toolbar/index.d.ts +2 -0
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +10 -0
- package/dist/ToolbarButton/index.d.ts +3 -0
- package/dist/Tooltip/Tooltip.d.ts +3 -0
- package/dist/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/Tooltip/TooltipFooter.d.ts +3 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/VersesBlock/VersesBlock.types.d.ts +9 -0
- package/dist/VersesBlock/index.d.ts +3 -0
- package/dist/constants.d.ts +41 -0
- package/dist/index.d.ts +45 -0
- package/dist/types.d.ts +20 -0
- package/dist/ui-kit-2.cjs.development.js +2877 -0
- package/dist/ui-kit-2.cjs.development.js.map +1 -0
- package/dist/ui-kit-2.cjs.production.min.js +2 -0
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -0
- package/dist/ui-kit-2.esm.js +2823 -0
- package/dist/ui-kit-2.esm.js.map +1 -0
- package/dist/ui-kit-game.css +7092 -0
- package/dist/ui-kit.css +7092 -0
- package/dist/utils/BlockContext.d.ts +8 -0
- package/dist/utils/DangerousHtml.d.ts +8 -0
- package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
- package/dist/utils/converCase.d.ts +2 -0
- package/dist/utils/generateGradient.d.ts +2 -0
- package/dist/utils/getElementPositionRelativeToViewport.d.ts +2 -0
- package/dist/utils/makeClassName.d.ts +3 -0
- package/dist/utils/makeStyleContext.d.ts +3 -0
- package/dist/utils/pluralize.d.ts +2 -0
- package/dist/utils/postMessage.d.ts +2 -0
- package/dist/utils/viewportSize.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
type?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,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' | 'episodeDownload' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedThreeQuarters' | 'speedOne' | 'speedOneQuarter' | '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
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export declare const icons: {
|
|
2
|
+
meduzaLogo: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
content: string;
|
|
6
|
+
};
|
|
7
|
+
menu: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
fb: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
content: string;
|
|
16
|
+
};
|
|
17
|
+
tw: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
content: string;
|
|
21
|
+
};
|
|
22
|
+
vk: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
content: string;
|
|
26
|
+
};
|
|
27
|
+
ok: {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
content: string;
|
|
31
|
+
};
|
|
32
|
+
tg: {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
content: string;
|
|
36
|
+
};
|
|
37
|
+
meduzaSymbol: {
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
content: string;
|
|
41
|
+
};
|
|
42
|
+
backward: {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
content: string;
|
|
46
|
+
};
|
|
47
|
+
forward: {
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
content: string;
|
|
51
|
+
};
|
|
52
|
+
download: {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
content: string;
|
|
56
|
+
};
|
|
57
|
+
episodeDownload: {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
content: string;
|
|
61
|
+
};
|
|
62
|
+
play: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
content: string;
|
|
66
|
+
};
|
|
67
|
+
pause: {
|
|
68
|
+
width: number;
|
|
69
|
+
height: number;
|
|
70
|
+
content: string;
|
|
71
|
+
};
|
|
72
|
+
speedHalf: {
|
|
73
|
+
width: number;
|
|
74
|
+
height: number;
|
|
75
|
+
content: string;
|
|
76
|
+
};
|
|
77
|
+
speedThreeQuarters: {
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
content: string;
|
|
81
|
+
};
|
|
82
|
+
speedOne: {
|
|
83
|
+
width: number;
|
|
84
|
+
height: number;
|
|
85
|
+
content: string;
|
|
86
|
+
};
|
|
87
|
+
speedOneQuarter: {
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
content: string;
|
|
91
|
+
};
|
|
92
|
+
speedOneHalf: {
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
content: string;
|
|
96
|
+
};
|
|
97
|
+
speedTwo: {
|
|
98
|
+
width: number;
|
|
99
|
+
height: number;
|
|
100
|
+
content: string;
|
|
101
|
+
};
|
|
102
|
+
podcastBookmark: {
|
|
103
|
+
width: number;
|
|
104
|
+
height: number;
|
|
105
|
+
content: string;
|
|
106
|
+
};
|
|
107
|
+
reaction: {
|
|
108
|
+
width: number;
|
|
109
|
+
height: number;
|
|
110
|
+
content: string;
|
|
111
|
+
};
|
|
112
|
+
cross: {
|
|
113
|
+
width: number;
|
|
114
|
+
height: number;
|
|
115
|
+
content: string;
|
|
116
|
+
};
|
|
117
|
+
link: {
|
|
118
|
+
width: number;
|
|
119
|
+
height: number;
|
|
120
|
+
content: string;
|
|
121
|
+
};
|
|
122
|
+
search: {
|
|
123
|
+
width: number;
|
|
124
|
+
height: number;
|
|
125
|
+
content: string;
|
|
126
|
+
};
|
|
127
|
+
card: {
|
|
128
|
+
width: number;
|
|
129
|
+
height: number;
|
|
130
|
+
content: string;
|
|
131
|
+
};
|
|
132
|
+
podcast: {
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
content: string;
|
|
136
|
+
};
|
|
137
|
+
arrow: {
|
|
138
|
+
width: number;
|
|
139
|
+
height: number;
|
|
140
|
+
content: string;
|
|
141
|
+
};
|
|
142
|
+
brent: {
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
content: string;
|
|
146
|
+
};
|
|
147
|
+
user: {
|
|
148
|
+
width: number;
|
|
149
|
+
height: number;
|
|
150
|
+
content: string;
|
|
151
|
+
};
|
|
152
|
+
bookmark: {
|
|
153
|
+
width: number;
|
|
154
|
+
height: number;
|
|
155
|
+
content: string;
|
|
156
|
+
};
|
|
157
|
+
shareBookmark: {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
content: string;
|
|
161
|
+
};
|
|
162
|
+
receipt: {
|
|
163
|
+
width: number;
|
|
164
|
+
height: number;
|
|
165
|
+
content: string;
|
|
166
|
+
};
|
|
167
|
+
read: {
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
content: string;
|
|
171
|
+
};
|
|
172
|
+
listened: {
|
|
173
|
+
width: number;
|
|
174
|
+
height: number;
|
|
175
|
+
content: string;
|
|
176
|
+
};
|
|
177
|
+
magic: {
|
|
178
|
+
width: number;
|
|
179
|
+
height: number;
|
|
180
|
+
content: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SwitcherStyleContexts = 'isInLive' | 'isInPanel' | 'isInMenu';
|
|
3
|
+
export type SwitcherThemes = 'light' | 'dark';
|
|
4
|
+
export type SwitcherChildrenPositions = 'left' | 'right';
|
|
5
|
+
export interface SwitcherProps {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
styleContext: SwitcherStyleContexts;
|
|
8
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
theme?: SwitcherThemes;
|
|
10
|
+
children: JSX.Element[] | JSX.Element;
|
|
11
|
+
childrenPosition?: SwitcherChildrenPositions;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Row {
|
|
2
|
+
cells: {
|
|
3
|
+
key: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
val?: string;
|
|
6
|
+
}[];
|
|
7
|
+
key: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TableProps {
|
|
10
|
+
styleContext?: string | string[];
|
|
11
|
+
block: {
|
|
12
|
+
type: string;
|
|
13
|
+
columns_widths: number[];
|
|
14
|
+
display: string;
|
|
15
|
+
id: string;
|
|
16
|
+
options: {
|
|
17
|
+
header: boolean;
|
|
18
|
+
fixed_first_column?: boolean;
|
|
19
|
+
num_fixed_columns: number;
|
|
20
|
+
num_fixed_rows: number;
|
|
21
|
+
};
|
|
22
|
+
rows: Row[];
|
|
23
|
+
table_credit?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TagSizes = 'small' | 'large';
|
|
3
|
+
export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'inherit' | 'custom';
|
|
4
|
+
export type TagStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown';
|
|
5
|
+
export interface TagProps {
|
|
6
|
+
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
7
|
+
styleContext?: string | string[];
|
|
8
|
+
theme: TagThemes;
|
|
9
|
+
size: TagSizes;
|
|
10
|
+
onlyOn?: 'desktop' | 'mobile';
|
|
11
|
+
correlation?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ToolbarButtonTypes = 'vk' | 'fb' | 'tw' | 'tg' | 'ok' | 'reaction' | 'pdf' | 'bookmark' | 'unblock' | 'cross';
|
|
2
|
+
export interface ToolbarButtonProps {
|
|
3
|
+
type: ToolbarButtonTypes;
|
|
4
|
+
theme?: string;
|
|
5
|
+
lang?: 'ru' | 'en';
|
|
6
|
+
text?: string;
|
|
7
|
+
icon?: 'shareBookmark';
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
onClick: (event: any, type: string) => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const MediaQuerySizes: {
|
|
2
|
+
MOBILE: number;
|
|
3
|
+
PORTRAIT_TABLET: number;
|
|
4
|
+
LANDSCAPE_TABLET: number;
|
|
5
|
+
DESKTOP: number;
|
|
6
|
+
WIDE_DESKTOP: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const imageBreakpoints: {
|
|
9
|
+
325: string;
|
|
10
|
+
520: string;
|
|
11
|
+
600: string;
|
|
12
|
+
650: string;
|
|
13
|
+
980: string;
|
|
14
|
+
1335: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const imageConditionalKeys: {
|
|
17
|
+
xs: number[];
|
|
18
|
+
superFull: number[];
|
|
19
|
+
full: number[];
|
|
20
|
+
default: number[];
|
|
21
|
+
narrow: number[];
|
|
22
|
+
};
|
|
23
|
+
export declare const SocialLabels: {
|
|
24
|
+
ru: {
|
|
25
|
+
tg: string;
|
|
26
|
+
fb: string;
|
|
27
|
+
tw: string;
|
|
28
|
+
pdf: string;
|
|
29
|
+
unblock: string;
|
|
30
|
+
bookmark: string;
|
|
31
|
+
reaction: string;
|
|
32
|
+
};
|
|
33
|
+
en: {
|
|
34
|
+
tg: string;
|
|
35
|
+
fb: string;
|
|
36
|
+
tw: string;
|
|
37
|
+
pdf: string;
|
|
38
|
+
unblock: string;
|
|
39
|
+
bookmark: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './SvgSymbol';
|
|
3
|
+
export * from './Switcher';
|
|
4
|
+
export * from './Image';
|
|
5
|
+
export * from './DotsOnImage';
|
|
6
|
+
export * from './Lazy';
|
|
7
|
+
export * from './Tag';
|
|
8
|
+
export * from './Table';
|
|
9
|
+
export * from './MediaCaption';
|
|
10
|
+
export * from './MaterialNote';
|
|
11
|
+
export * from './BookmarkButton';
|
|
12
|
+
export * from './MaterialTitle';
|
|
13
|
+
export * from './Dropdown';
|
|
14
|
+
export * from './Toolbar';
|
|
15
|
+
export * from './Popover';
|
|
16
|
+
export * from './Meta';
|
|
17
|
+
export * from './Timestamp';
|
|
18
|
+
export * from './EmbedBlock';
|
|
19
|
+
export * from './QuoteBlock';
|
|
20
|
+
export * from './CardTitle';
|
|
21
|
+
export * from './ChapterBlock';
|
|
22
|
+
export * from './Cover';
|
|
23
|
+
export * from './RenderBlocks';
|
|
24
|
+
export * from './GroupedBlock';
|
|
25
|
+
export * from './HalfBlock';
|
|
26
|
+
export * from './RawHtmlBlock';
|
|
27
|
+
export * from './ImportantLead';
|
|
28
|
+
export * from './ListBlock';
|
|
29
|
+
export * from './RelatedBlock';
|
|
30
|
+
export * from './RichTitle';
|
|
31
|
+
export * from './SimpleBlock';
|
|
32
|
+
export * from './SimpleTitle';
|
|
33
|
+
export * from './SourceBlock';
|
|
34
|
+
export * from './Spoiler';
|
|
35
|
+
export * from './MetaItem';
|
|
36
|
+
export * from './MetaItemLive';
|
|
37
|
+
export * from './DocumentItemsCount';
|
|
38
|
+
export * from './ToolbarButton';
|
|
39
|
+
export * from './Footnote';
|
|
40
|
+
export * from './RelatedRichBlock';
|
|
41
|
+
export * from './SensitiveBlock';
|
|
42
|
+
export * from './DonatesTeaser';
|
|
43
|
+
export * from './ShopRelatedBlock';
|
|
44
|
+
export * from './AnnouncementInText';
|
|
45
|
+
export * from './Tooltip';
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface OptimizedImageItem {
|
|
2
|
+
'1x': string;
|
|
3
|
+
'2x': string;
|
|
4
|
+
'1x_webp': string;
|
|
5
|
+
'2x_webp': string;
|
|
6
|
+
}
|
|
7
|
+
export type CallToActions = 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'wp' | 'reaction' | 'pdf' | 'bookmark' | 'cross';
|
|
8
|
+
export type LightboxImage = {
|
|
9
|
+
original: string;
|
|
10
|
+
w325: OptimizedImageItem;
|
|
11
|
+
w520: OptimizedImageItem;
|
|
12
|
+
w650: OptimizedImageItem;
|
|
13
|
+
w980: OptimizedImageItem;
|
|
14
|
+
w1335: OptimizedImageItem;
|
|
15
|
+
};
|
|
16
|
+
export interface LightboxContext {
|
|
17
|
+
show: (image: LightboxImage, alt?: string) => void;
|
|
18
|
+
hide: () => void;
|
|
19
|
+
visible: boolean;
|
|
20
|
+
}
|