@meduza/ui-kit-2 0.8.602 → 0.8.604

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.
@@ -955,17 +955,16 @@ const Toolbar = ({
955
955
  }, children));
956
956
  };
957
957
 
958
- var styles$s = {"root":"Meta-module_root__H-Q4d","isInDynamicBlock":"Meta-module_isInDynamicBlock__iuEI0","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
958
+ var styles$s = {"containerInDynamicBlock":"Meta-module_containerInDynamicBlock__YSh66","containerInDynamicBlockAndMaterial":"Meta-module_containerInDynamicBlockAndMaterial__4v4A9","root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
959
959
 
960
960
  const Meta = ({
961
961
  hasSource,
962
962
  theme,
963
963
  children,
964
964
  onlyOn,
965
- styleContext,
966
- type
965
+ styleContext
967
966
  }) => {
968
- let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource], [styles$s.isInDynamicBlock, type === 'isInDynamicBlock']];
967
+ let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]];
969
968
  if (styleContext) {
970
969
  classNames = makeStyleContext(classNames, styleContext, styles$s);
971
970
  }
@@ -1809,7 +1808,8 @@ const MetaContainer = ({
1809
1808
  theme
1810
1809
  }
1811
1810
  },
1812
- styleContext
1811
+ styleContext,
1812
+ type
1813
1813
  }) => {
1814
1814
  const themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
1815
1815
  const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
@@ -1821,12 +1821,14 @@ const MetaContainer = ({
1821
1821
  });
1822
1822
  }
1823
1823
  const hasSource = !!components.find(item => item.type === 'source_name');
1824
- return /*#__PURE__*/React.createElement(Meta, {
1824
+ const classNames = [[styles$s.containerInDynamicBlock, styleContext === 'isInDynamicBlock'], [styles$s.containerInDynamicBlockAndMaterial, styleContext === 'isInDynamicBlock' && type === 'isInMaterial']];
1825
+ return /*#__PURE__*/React.createElement("div", {
1826
+ className: makeClassName(classNames)
1827
+ }, /*#__PURE__*/React.createElement(Meta, {
1825
1828
  styleContext: context,
1826
1829
  theme: theme || themeColor,
1827
1830
  onlyOn: block.only_on,
1828
- hasSource: hasSource,
1829
- type: styleContext
1831
+ hasSource: hasSource
1830
1832
  }, components.map(component => {
1831
1833
  switch (component.type) {
1832
1834
  case 'source_name':
@@ -1929,7 +1931,7 @@ const MetaContainer = ({
1929
1931
  }, /*#__PURE__*/React.createElement(BookmarkButton, {
1930
1932
  isInBookmarks: isInBookmarks,
1931
1933
  onClick: () => bookmarkAction('bookmark', 'top')
1932
- }))));
1934
+ })))));
1933
1935
  };
1934
1936
 
1935
1937
  var styles$b = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
@@ -2064,7 +2066,8 @@ const RenderBlocks = ({
2064
2066
  isRead,
2065
2067
  isListened,
2066
2068
  bookmarkAction,
2067
- isInBookmarks
2069
+ isInBookmarks,
2070
+ type = 'default'
2068
2071
  }) => {
2069
2072
  switch (block.type) {
2070
2073
  case 'tag':
@@ -2099,7 +2102,8 @@ const RenderBlocks = ({
2099
2102
  isRead: isRead,
2100
2103
  isListened: isListened,
2101
2104
  isInBookmarks: isInBookmarks,
2102
- bookmarkAction: bookmarkAction
2105
+ bookmarkAction: bookmarkAction,
2106
+ type: type
2103
2107
  });
2104
2108
  }
2105
2109
  case 'blockquote':
@@ -2638,7 +2642,8 @@ const RawHtmlBlock = ({
2638
2642
  isInBookmarks,
2639
2643
  bookmarkAction,
2640
2644
  lightBox,
2641
- lang
2645
+ lang,
2646
+ type = 'default'
2642
2647
  }) => {
2643
2648
  const context = {
2644
2649
  lightBox: lightBox || null
@@ -2706,7 +2711,8 @@ const RawHtmlBlock = ({
2706
2711
  isListened: isListened,
2707
2712
  isInBookmarks: isInBookmarks,
2708
2713
  bookmarkAction: bookmarkAction,
2709
- lang: lang
2714
+ lang: lang,
2715
+ type: type
2710
2716
  }));
2711
2717
  }
2712
2718
  }