@meduza/ui-kit-2 1.1.3 → 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.
Files changed (54) hide show
  1. package/dist/Meta/Meta.types.d.ts +0 -5
  2. package/dist/MetaItem/MetaItem.types.d.ts +1 -0
  3. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +1 -5
  4. package/dist/RenderBlocks/RenderBlocks.types.d.ts +1 -5
  5. package/dist/SvgSymbol/SvgSymbol.types.d.ts +2 -2
  6. package/dist/SvgSymbol/icons.d.ts +0 -25
  7. package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -2
  8. package/dist/constants.d.ts +0 -2
  9. package/dist/index.d.ts +0 -1
  10. package/dist/types.d.ts +1 -1
  11. package/dist/ui-kit-2.cjs.development.js +69 -167
  12. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  13. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  14. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  15. package/dist/ui-kit-2.esm.js +70 -167
  16. package/dist/ui-kit-2.esm.js.map +1 -1
  17. package/dist/ui-kit-game.css +47 -156
  18. package/dist/ui-kit.css +47 -156
  19. package/package.json +13 -13
  20. package/src/Cover/Cover.module.css +0 -17
  21. package/src/Meta/Meta.module.css +0 -11
  22. package/src/Meta/Meta.stories.tsx +1 -3
  23. package/src/Meta/Meta.types.ts +0 -5
  24. package/src/Meta/MetaContainer.tsx +5 -44
  25. package/src/MetaItem/MetaItem.module.css +12 -22
  26. package/src/MetaItem/MetaItem.types.ts +1 -0
  27. package/src/MetaItem/index.tsx +4 -2
  28. package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -5
  29. package/src/RawHtmlBlock/index.tsx +0 -8
  30. package/src/RawHtmlBlock/mock.json +1 -2
  31. package/src/RenderBlocks/RenderBlocks.types.ts +1 -5
  32. package/src/RenderBlocks/index.tsx +0 -8
  33. package/src/RichTitle/RichTitle.module.css +22 -3
  34. package/src/SvgSymbol/SvgSymbol.module.css +1 -26
  35. package/src/SvgSymbol/SvgSymbol.stories.tsx +1 -2
  36. package/src/SvgSymbol/SvgSymbol.types.ts +0 -6
  37. package/src/SvgSymbol/icons.ts +0 -33
  38. package/src/Tag/Tag.module.css +7 -4
  39. package/src/Toolbar/Toolbar.stories.tsx +2 -18
  40. package/src/ToolbarButton/ToolbarButton.module.css +0 -16
  41. package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
  42. package/src/ToolbarButton/index.tsx +0 -7
  43. package/src/constants.ts +1 -3
  44. package/src/index.tsx +0 -1
  45. package/src/types.ts +0 -1
  46. package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
  47. package/dist/BookmarkButton/index.d.ts +0 -3
  48. package/src/BookmarkButton/BookmarkButton.css +0 -45
  49. package/src/BookmarkButton/BookmarkButton.module.css +0 -45
  50. package/src/BookmarkButton/BookmarkButton.stories.module.css +0 -5
  51. package/src/BookmarkButton/BookmarkButton.stories.tsx +0 -39
  52. package/src/BookmarkButton/BookmarkButton.test.tsx +0 -33
  53. package/src/BookmarkButton/BookmarkButton.types.ts +0 -6
  54. 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
  }
@@ -2,5 +2,6 @@ export interface MetaItemProps {
2
2
  bullets?: boolean;
3
3
  hasSource?: boolean;
4
4
  type?: string;
5
+ mobileOnly?: boolean;
5
6
  children: React.ReactNode | JSX.Element[] | JSX.Element;
6
7
  }
@@ -1,5 +1,5 @@
1
1
  import { ImageProps } from '../Image/Image.types';
2
- import { CallToActions, LightboxContext } from '../types';
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 { CallToActions, LightboxContext } from '../types';
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' | 'isInBookmark';
2
- export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | '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';
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' | 'bookmark' | 'unblock' | 'cross';
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
  }
@@ -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
@@ -8,7 +8,6 @@ export * from './Tag';
8
8
  export * from './Table';
9
9
  export * from './MediaCaption';
10
10
  export * from './MaterialNote';
11
- export * from './BookmarkButton';
12
11
  export * from './MaterialTitle';
13
12
  export * from './Dropdown';
14
13
  export * from './Toolbar';
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' | 'bookmark' | 'cross';
7
+ export type CallToActions = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'cross';
8
8
  export type LightboxImage = {
9
9
  original: string;
10
10
  w325: OptimizedImageItem;