@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.
@@ -2572,14 +2572,15 @@ const ShopRelatedBlock = ({
2572
2572
  }, secondTitle))));
2573
2573
  };
2574
2574
 
2575
- 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"};
2575
+ 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"};
2576
2576
 
2577
2577
  const RelatedBook = ({
2578
2578
  block,
2579
2579
  styleContext
2580
2580
  }) => {
2581
2581
  const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
2582
- let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[block.data.onlyOn], !!block.data.onlyOn && !!styles$3[block.data.onlyOn]]];
2582
+ const onlyOn = block.only_on || block.data.onlyOn;
2583
+ let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[onlyOn], !!onlyOn && !!styles$3[onlyOn]]];
2583
2584
  if (styleContext) {
2584
2585
  classNames = makeStyleContext(classNames, styleContext, styles$3);
2585
2586
  }