@meduza/ui-kit-2 1.3.0 → 1.3.1

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.
@@ -2568,14 +2568,15 @@ const ShopRelatedBlock = ({
2568
2568
  }, secondTitle))));
2569
2569
  };
2570
2570
 
2571
- var styles$3 = {"root":"RelatedBook-module_root__QsOmA","container":"RelatedBook-module_container__vdDiZ","imageWrap":"RelatedBook-module_imageWrap__WmwnE","image":"RelatedBook-module_image__U1e5t","picture":"RelatedBook-module_picture__NXg-K","tag":"RelatedBook-module_tag__mSbbz","contentWrap":"RelatedBook-module_contentWrap__HIGRi","content":"RelatedBook-module_content__23Pfr","title":"RelatedBook-module_title__VRbr-","footer":"RelatedBook-module_footer__Z05t-","center":"RelatedBook-module_center__Fa6cj","isLight":"RelatedBook-module_isLight__W-0TO","isDark":"RelatedBook-module_isDark__0mrtK"};
2571
+ var styles$3 = {"root":"RelatedBook-module_root__QsOmA","container":"RelatedBook-module_container__vdDiZ","imageWrap":"RelatedBook-module_imageWrap__WmwnE","image":"RelatedBook-module_image__U1e5t","picture":"RelatedBook-module_picture__NXg-K","tag":"RelatedBook-module_tag__mSbbz","contentWrap":"RelatedBook-module_contentWrap__HIGRi","content":"RelatedBook-module_content__23Pfr","title":"RelatedBook-module_title__VRbr-","footer":"RelatedBook-module_footer__Z05t-","center":"RelatedBook-module_center__Fa6cj","isLight":"RelatedBook-module_isLight__W-0TO","isDark":"RelatedBook-module_isDark__0mrtK","mobile":"RelatedBook-module_mobile__7rm-n","desktop":"RelatedBook-module_desktop__OZ9Jx"};
2572
2572
 
2573
2573
  const RelatedBook = ({
2574
2574
  block,
2575
2575
  styleContext
2576
2576
  }) => {
2577
2577
  const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
2578
- let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[block.data.onlyOn], !!block.data.onlyOn && !!styles$3[block.data.onlyOn]]];
2578
+ const onlyOn = block.only_on || block.data.onlyOn;
2579
+ let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[onlyOn], !!onlyOn && !!styles$3[onlyOn]]];
2579
2580
  if (styleContext) {
2580
2581
  classNames = makeStyleContext(classNames, styleContext, styles$3);
2581
2582
  }