@meduza/ui-kit-2 0.8.8 → 0.8.602

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 (44) hide show
  1. package/dist/Meta/Meta.types.d.ts +1 -0
  2. package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
  3. package/dist/SvgSymbol/icons.d.ts +5 -0
  4. package/dist/Switcher/Switcher.types.d.ts +3 -2
  5. package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
  6. package/dist/index.d.ts +0 -1
  7. package/dist/types.d.ts +1 -1
  8. package/dist/ui-kit-2.cjs.development.js +247 -256
  9. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  10. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  11. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  12. package/dist/ui-kit-2.esm.js +248 -256
  13. package/dist/ui-kit-2.esm.js.map +1 -1
  14. package/dist/ui-kit-game.css +45 -126
  15. package/dist/ui-kit.css +45 -126
  16. package/package.json +1 -1
  17. package/src/Image/index.tsx +4 -1
  18. package/src/Meta/Meta.module.css +6 -0
  19. package/src/Meta/Meta.types.ts +1 -0
  20. package/src/Meta/MetaContainer.tsx +13 -1
  21. package/src/Meta/index.tsx +4 -2
  22. package/src/RichTitle/RichTitle.module.css +4 -0
  23. package/src/Spoiler/Spoiler.module.css +9 -10
  24. package/src/SvgSymbol/SvgSymbol.types.ts +3 -0
  25. package/src/SvgSymbol/icons.ts +7 -0
  26. package/src/Switcher/Switcher.module.css +21 -4
  27. package/src/Switcher/Switcher.stories.module.css +21 -3
  28. package/src/Switcher/Switcher.stories.tsx +31 -13
  29. package/src/Switcher/Switcher.types.ts +4 -2
  30. package/src/Switcher/index.tsx +7 -7
  31. package/src/Tag/Tag.module.css +4 -0
  32. package/src/ToolbarButton/ToolbarButton.types.ts +2 -0
  33. package/src/_storybook/PreviewWrapper/index.tsx +1 -0
  34. package/src/index.tsx +0 -1
  35. package/src/types.ts +3 -0
  36. package/dist/ListViewSwitcher/ListViewSwitcher.types.d.ts +0 -6
  37. package/dist/ListViewSwitcher/index.d.ts +0 -3
  38. package/src/.DS_Store +0 -0
  39. package/src/ListViewSwitcher/ListViewSwitcher.module.css +0 -109
  40. package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +0 -6
  41. package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +0 -38
  42. package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +0 -35
  43. package/src/ListViewSwitcher/ListViewSwitcher.types.ts +0 -7
  44. package/src/ListViewSwitcher/index.tsx +0 -30
@@ -16,4 +16,5 @@ export interface MetaProps {
16
16
  hasSource?: boolean;
17
17
  theme?: string;
18
18
  children: React.ReactNode;
19
+ type: string[] | string;
19
20
  }
@@ -1,5 +1,5 @@
1
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' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
2
+ export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'episodeDownload' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
3
3
  export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
4
4
  export interface SvgSymbolProps {
5
5
  styleContext?: SvgSymbolStyleContexts;
@@ -54,6 +54,11 @@ export declare const icons: {
54
54
  height: number;
55
55
  content: string;
56
56
  };
57
+ episodeDownload: {
58
+ width: number;
59
+ height: number;
60
+ content: string;
61
+ };
57
62
  play: {
58
63
  width: number;
59
64
  height: number;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  export type SwitcherStyleContexts = 'isInLive' | 'isInPanel' | 'isInMenu';
3
3
  export type SwitcherThemes = 'light' | 'dark';
4
+ export type SwitcherChildrenPositions = 'left' | 'right';
4
5
  export interface SwitcherProps {
5
6
  enabled: boolean;
6
7
  styleContext: SwitcherStyleContexts;
7
8
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
9
  theme?: SwitcherThemes;
9
- childrenLeft?: JSX.Element;
10
- childrenRight?: JSX.Element;
10
+ children: JSX.Element[] | JSX.Element;
11
+ childrenPosition?: SwitcherChildrenPositions;
11
12
  }
@@ -1,4 +1,4 @@
1
- export type ToolbarButtonTypes = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'bookmark' | 'unblock' | 'cross';
1
+ export type ToolbarButtonTypes = 'vk' | 'fb' | 'tw' | 'tg' | 'ok' | 'reaction' | 'pdf' | 'bookmark' | 'unblock' | 'cross';
2
2
  export interface ToolbarButtonProps {
3
3
  type: ToolbarButtonTypes;
4
4
  theme?: string;
package/dist/index.d.ts CHANGED
@@ -26,7 +26,6 @@ export * from './HalfBlock';
26
26
  export * from './RawHtmlBlock';
27
27
  export * from './ImportantLead';
28
28
  export * from './ListBlock';
29
- export * from './ListViewSwitcher';
30
29
  export * from './RelatedBlock';
31
30
  export * from './RichTitle';
32
31
  export * from './SimpleBlock';
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' | 'vk' | 'ok' | 'tg' | 'wp' | 'reaction' | 'pdf' | 'bookmark' | 'cross';
8
8
  export type LightboxImage = {
9
9
  original: string;
10
10
  w325: OptimizedImageItem;