@meduza/ui-kit-2 0.8.7 → 0.8.601

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 (37) hide show
  1. package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
  2. package/dist/SvgSymbol/icons.d.ts +5 -0
  3. package/dist/Switcher/Switcher.types.d.ts +3 -2
  4. package/dist/index.d.ts +0 -1
  5. package/dist/ui-kit-2.cjs.development.js +243 -254
  6. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  7. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  8. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  9. package/dist/ui-kit-2.esm.js +244 -254
  10. package/dist/ui-kit-2.esm.js.map +1 -1
  11. package/dist/ui-kit-game.css +45 -126
  12. package/dist/ui-kit.css +45 -126
  13. package/package.json +1 -1
  14. package/src/Image/index.tsx +4 -1
  15. package/src/Meta/Meta.module.css +6 -0
  16. package/src/Meta/MetaContainer.tsx +12 -1
  17. package/src/RichTitle/RichTitle.module.css +4 -0
  18. package/src/Spoiler/Spoiler.module.css +9 -10
  19. package/src/SvgSymbol/SvgSymbol.types.ts +1 -0
  20. package/src/SvgSymbol/icons.ts +7 -0
  21. package/src/Switcher/Switcher.module.css +21 -4
  22. package/src/Switcher/Switcher.stories.module.css +21 -3
  23. package/src/Switcher/Switcher.stories.tsx +31 -13
  24. package/src/Switcher/Switcher.types.ts +4 -2
  25. package/src/Switcher/index.tsx +7 -7
  26. package/src/Tag/Tag.module.css +4 -0
  27. package/src/_storybook/PreviewWrapper/index.tsx +1 -0
  28. package/src/index.tsx +0 -1
  29. package/dist/ListViewSwitcher/ListViewSwitcher.types.d.ts +0 -6
  30. package/dist/ListViewSwitcher/index.d.ts +0 -3
  31. package/src/.DS_Store +0 -0
  32. package/src/ListViewSwitcher/ListViewSwitcher.module.css +0 -109
  33. package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +0 -6
  34. package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +0 -38
  35. package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +0 -35
  36. package/src/ListViewSwitcher/ListViewSwitcher.types.ts +0 -7
  37. package/src/ListViewSwitcher/index.tsx +0 -30
@@ -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' | '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';
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
  }
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';