@meduza/ui-kit-2 0.8.6 → 0.8.8

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 (38) hide show
  1. package/dist/ListViewSwitcher/ListViewSwitcher.types.d.ts +6 -0
  2. package/dist/ListViewSwitcher/index.d.ts +3 -0
  3. package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
  4. package/dist/SvgSymbol/icons.d.ts +0 -5
  5. package/dist/Switcher/Switcher.types.d.ts +2 -3
  6. package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/types.d.ts +1 -1
  9. package/dist/ui-kit-2.cjs.development.js +253 -235
  10. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  11. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  12. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  13. package/dist/ui-kit-2.esm.js +253 -236
  14. package/dist/ui-kit-2.esm.js.map +1 -1
  15. package/dist/ui-kit-game.css +126 -35
  16. package/dist/ui-kit.css +126 -35
  17. package/package.json +1 -1
  18. package/src/.DS_Store +0 -0
  19. package/src/Image/index.tsx +1 -4
  20. package/src/ListViewSwitcher/ListViewSwitcher.module.css +109 -0
  21. package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +6 -0
  22. package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +38 -0
  23. package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +35 -0
  24. package/src/ListViewSwitcher/ListViewSwitcher.types.ts +7 -0
  25. package/src/ListViewSwitcher/index.tsx +30 -0
  26. package/src/Spoiler/Spoiler.module.css +10 -9
  27. package/src/SvgSymbol/SvgSymbol.types.ts +0 -3
  28. package/src/SvgSymbol/icons.ts +0 -7
  29. package/src/Switcher/Switcher.module.css +4 -21
  30. package/src/Switcher/Switcher.stories.module.css +3 -21
  31. package/src/Switcher/Switcher.stories.tsx +13 -31
  32. package/src/Switcher/Switcher.types.ts +2 -4
  33. package/src/Switcher/index.tsx +7 -7
  34. package/src/Tag/Tag.module.css +0 -4
  35. package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
  36. package/src/_storybook/PreviewWrapper/index.tsx +0 -1
  37. package/src/index.tsx +1 -0
  38. package/src/types.ts +0 -3
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface ListViewSwitcherProps {
3
+ enabled: boolean;
4
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ size?: 'sm' | 'md';
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ListViewSwitcherProps } from './ListViewSwitcher.types';
3
+ export declare const ListViewSwitcher: React.FC<ListViewSwitcherProps>;
@@ -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' | 'episodeDownload' | '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' | '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';
3
3
  export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
4
4
  export interface SvgSymbolProps {
5
5
  styleContext?: SvgSymbolStyleContexts;
@@ -54,11 +54,6 @@ 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
- };
62
57
  play: {
63
58
  width: number;
64
59
  height: number;
@@ -1,12 +1,11 @@
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';
5
4
  export interface SwitcherProps {
6
5
  enabled: boolean;
7
6
  styleContext: SwitcherStyleContexts;
8
7
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
8
  theme?: SwitcherThemes;
10
- children: JSX.Element[] | JSX.Element;
11
- childrenPosition?: SwitcherChildrenPositions;
9
+ childrenLeft?: JSX.Element;
10
+ childrenRight?: JSX.Element;
12
11
  }
@@ -1,4 +1,4 @@
1
- export type ToolbarButtonTypes = 'vk' | 'fb' | 'tw' | 'tg' | 'ok' | 'reaction' | 'pdf' | 'bookmark' | 'unblock' | 'cross';
1
+ export type ToolbarButtonTypes = 'fb' | 'tw' | 'tg' | '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,6 +26,7 @@ export * from './HalfBlock';
26
26
  export * from './RawHtmlBlock';
27
27
  export * from './ImportantLead';
28
28
  export * from './ListBlock';
29
+ export * from './ListViewSwitcher';
29
30
  export * from './RelatedBlock';
30
31
  export * from './RichTitle';
31
32
  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' | 'vk' | 'ok' | 'tg' | 'wp' | 'reaction' | 'pdf' | 'bookmark' | 'cross';
7
+ export type CallToActions = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'bookmark' | 'cross';
8
8
  export type LightboxImage = {
9
9
  original: string;
10
10
  w325: OptimizedImageItem;