@meduza/ui-kit-2 1.1.2 → 1.2.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.
- package/dist/Meta/Meta.types.d.ts +0 -5
- package/dist/MetaItem/MetaItem.types.d.ts +1 -0
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +1 -5
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +1 -5
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +2 -2
- package/dist/SvgSymbol/icons.d.ts +0 -25
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -2
- package/dist/constants.d.ts +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +70 -168
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +71 -168
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +47 -156
- package/dist/ui-kit.css +47 -156
- package/package.json +13 -13
- package/src/Cover/Cover.module.css +0 -17
- package/src/Meta/Meta.module.css +0 -11
- package/src/Meta/Meta.stories.tsx +1 -3
- package/src/Meta/Meta.types.ts +0 -5
- package/src/Meta/MetaContainer.tsx +5 -44
- package/src/MetaItem/MetaItem.module.css +12 -22
- package/src/MetaItem/MetaItem.types.ts +1 -0
- package/src/MetaItem/index.tsx +4 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -5
- package/src/RawHtmlBlock/index.tsx +0 -8
- package/src/RawHtmlBlock/mock.json +1 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -5
- package/src/RenderBlocks/index.tsx +0 -8
- package/src/RichTitle/RichTitle.module.css +22 -3
- package/src/SvgSymbol/SvgSymbol.module.css +1 -26
- package/src/SvgSymbol/SvgSymbol.stories.tsx +1 -2
- package/src/SvgSymbol/SvgSymbol.types.ts +0 -6
- package/src/SvgSymbol/icons.ts +0 -33
- package/src/Tag/Tag.module.css +7 -4
- package/src/Timestamp/index.tsx +1 -1
- package/src/Toolbar/Toolbar.stories.tsx +2 -18
- package/src/ToolbarButton/ToolbarButton.module.css +0 -16
- package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
- package/src/ToolbarButton/index.tsx +0 -7
- package/src/constants.ts +1 -3
- package/src/index.tsx +0 -1
- package/src/types.ts +0 -1
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
- package/dist/BookmarkButton/index.d.ts +0 -3
- package/src/BookmarkButton/BookmarkButton.css +0 -45
- package/src/BookmarkButton/BookmarkButton.module.css +0 -45
- package/src/BookmarkButton/BookmarkButton.stories.module.css +0 -5
- package/src/BookmarkButton/BookmarkButton.stories.tsx +0 -39
- package/src/BookmarkButton/BookmarkButton.test.tsx +0 -33
- package/src/BookmarkButton/BookmarkButton.types.ts +0 -6
- package/src/BookmarkButton/index.tsx +0 -35
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CallToActions } from '../types';
|
|
3
2
|
export interface MetaContainerProps {
|
|
4
3
|
block: any;
|
|
5
4
|
styleContext: string[] | string;
|
|
6
|
-
isRead: boolean | undefined;
|
|
7
|
-
isListened: boolean | undefined;
|
|
8
|
-
isInBookmarks: boolean | undefined;
|
|
9
|
-
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
10
5
|
lightBox?: () => void;
|
|
11
6
|
lang: 'ru' | 'en';
|
|
12
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from '../Image/Image.types';
|
|
2
|
-
import {
|
|
2
|
+
import { LightboxContext } from '../types';
|
|
3
3
|
export type lightBox = {
|
|
4
4
|
show: (image?: ImageProps['optimized'], alt?: ImageProps['alt']) => void;
|
|
5
5
|
hide: () => void;
|
|
@@ -8,10 +8,6 @@ export type lightBox = {
|
|
|
8
8
|
export interface RawHtmlBlockProps {
|
|
9
9
|
block: any;
|
|
10
10
|
styleContext?: string[] | string;
|
|
11
|
-
isRead?: boolean | undefined;
|
|
12
|
-
isListened?: boolean | undefined;
|
|
13
|
-
isInBookmarks?: boolean | undefined;
|
|
14
|
-
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
15
11
|
lightBox?: LightboxContext | null | undefined;
|
|
16
12
|
lang?: 'ru' | 'en';
|
|
17
13
|
platform?: 'website' | 'mirror';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LightboxContext } from '../types';
|
|
2
2
|
export interface RenderBlocksProps {
|
|
3
3
|
block: any;
|
|
4
4
|
styleContext?: any;
|
|
5
|
-
isRead?: boolean;
|
|
6
|
-
isListened?: boolean;
|
|
7
|
-
isInBookmarks?: boolean;
|
|
8
|
-
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
9
5
|
lightBox?: LightboxContext | null | undefined;
|
|
10
6
|
lang?: 'ru' | 'en';
|
|
11
7
|
platform?: 'website' | 'mirror';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile'
|
|
2
|
-
export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'episodeDownload' | 'play' | 'pause' | '
|
|
1
|
+
export type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile';
|
|
2
|
+
export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'episodeDownload' | 'play' | 'pause' | 'speedHalf' | 'speedThreeQuarters' | 'speedOne' | 'speedOneQuarter' | 'speedOneHalf' | 'speedTwo' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'receipt';
|
|
3
3
|
export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
|
|
4
4
|
export interface SvgSymbolProps {
|
|
5
5
|
styleContext?: SvgSymbolStyleContexts;
|
|
@@ -99,11 +99,6 @@ export declare const icons: {
|
|
|
99
99
|
height: number;
|
|
100
100
|
content: string;
|
|
101
101
|
};
|
|
102
|
-
podcastBookmark: {
|
|
103
|
-
width: number;
|
|
104
|
-
height: number;
|
|
105
|
-
content: string;
|
|
106
|
-
};
|
|
107
102
|
reaction: {
|
|
108
103
|
width: number;
|
|
109
104
|
height: number;
|
|
@@ -149,31 +144,11 @@ export declare const icons: {
|
|
|
149
144
|
height: number;
|
|
150
145
|
content: string;
|
|
151
146
|
};
|
|
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
147
|
receipt: {
|
|
163
148
|
width: number;
|
|
164
149
|
height: number;
|
|
165
150
|
content: string;
|
|
166
151
|
};
|
|
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
152
|
magic: {
|
|
178
153
|
width: number;
|
|
179
154
|
height: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export type ToolbarButtonTypes = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | '
|
|
1
|
+
export type ToolbarButtonTypes = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'unblock' | 'cross';
|
|
2
2
|
export interface ToolbarButtonProps {
|
|
3
3
|
type: ToolbarButtonTypes;
|
|
4
4
|
theme?: string;
|
|
5
5
|
lang?: 'ru' | 'en';
|
|
6
6
|
text?: string;
|
|
7
|
-
icon?: 'shareBookmark';
|
|
8
7
|
isActive?: boolean;
|
|
9
8
|
onClick: (event: any, type: string) => void;
|
|
10
9
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare const SocialLabels: {
|
|
|
27
27
|
tw: string;
|
|
28
28
|
pdf: string;
|
|
29
29
|
unblock: string;
|
|
30
|
-
bookmark: string;
|
|
31
30
|
reaction: string;
|
|
32
31
|
};
|
|
33
32
|
en: {
|
|
@@ -36,6 +35,5 @@ export declare const SocialLabels: {
|
|
|
36
35
|
tw: string;
|
|
37
36
|
pdf: string;
|
|
38
37
|
unblock: string;
|
|
39
|
-
bookmark: string;
|
|
40
38
|
};
|
|
41
39
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface OptimizedImageItem {
|
|
|
4
4
|
'1x_webp': string;
|
|
5
5
|
'2x_webp': string;
|
|
6
6
|
}
|
|
7
|
-
export type CallToActions = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | '
|
|
7
|
+
export type CallToActions = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'cross';
|
|
8
8
|
export type LightboxImage = {
|
|
9
9
|
original: string;
|
|
10
10
|
w325: OptimizedImageItem;
|