@redneckz/wildless-cms-uni-blocks 0.14.70 → 0.14.72

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 (157) hide show
  1. package/bin/migration-scripts/0.14.62.js +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +18 -22
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  6. package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  7. package/bundle/ui-kit/List/ListContent.d.ts +2 -0
  8. package/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  9. package/dist/components/ApplicationForm/Footnote.js +1 -1
  10. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  11. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  12. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  13. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  14. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  15. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  16. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  17. package/dist/components/ComparisonTable/TableColumn.js +1 -1
  18. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  19. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
  20. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  21. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  22. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  23. package/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  24. package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  25. package/dist/components/StickyBottomMenu/RenderItem.js +3 -3
  26. package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  27. package/dist/ui-kit/Img/ImgAsPicture.js +5 -5
  28. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  29. package/dist/ui-kit/List/List.js +2 -2
  30. package/dist/ui-kit/List/List.js.map +1 -1
  31. package/dist/ui-kit/List/ListContent.d.ts +2 -0
  32. package/dist/ui-kit/List/ListItem.js +1 -1
  33. package/dist/ui-kit/List/ListItem.js.map +1 -1
  34. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  35. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  36. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  37. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  38. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  39. package/lib/common.css +1 -1
  40. package/lib/components/ApplicationForm/Footnote.js +1 -1
  41. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  42. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  43. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  44. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  45. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  46. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  47. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  48. package/lib/components/ComparisonTable/TableColumn.js +1 -1
  49. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  50. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
  51. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  52. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  53. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  54. package/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  55. package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  56. package/lib/components/StickyBottomMenu/RenderItem.js +3 -3
  57. package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  58. package/lib/ui-kit/Img/ImgAsPicture.js +5 -5
  59. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  60. package/lib/ui-kit/List/List.js +2 -2
  61. package/lib/ui-kit/List/List.js.map +1 -1
  62. package/lib/ui-kit/List/ListContent.d.ts +2 -0
  63. package/lib/ui-kit/List/ListItem.js +1 -1
  64. package/lib/ui-kit/List/ListItem.js.map +1 -1
  65. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  66. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  67. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  68. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  69. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  70. package/mobile/bundle/bundle.umd.js +18 -20
  71. package/mobile/bundle/bundle.umd.min.js +1 -1
  72. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  73. package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  74. package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -0
  75. package/mobile/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  76. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  77. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  78. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  79. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  80. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  81. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  82. package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
  83. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  84. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
  85. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  86. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  87. package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  88. package/mobile/dist/components/StickyBottomMenu/RenderItem.js +3 -3
  89. package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  90. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +5 -5
  91. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  92. package/mobile/dist/ui-kit/List/List.js +2 -2
  93. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  94. package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -0
  95. package/mobile/dist/ui-kit/List/ListItem.js +1 -1
  96. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  97. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  98. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  99. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  100. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  101. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  102. package/mobile/lib/common.css +1 -1
  103. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  104. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  105. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  106. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  107. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  108. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  109. package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
  110. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  111. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
  112. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  113. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  114. package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  115. package/mobile/lib/components/StickyBottomMenu/RenderItem.js +3 -3
  116. package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  117. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +5 -5
  118. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  119. package/mobile/lib/ui-kit/List/List.js +2 -2
  120. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  121. package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -0
  122. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  123. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  124. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  125. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  126. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  127. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  128. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  129. package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
  130. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  131. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
  132. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
  133. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
  134. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +3 -6
  135. package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
  136. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
  137. package/mobile/src/ui-kit/List/List.tsx +6 -2
  138. package/mobile/src/ui-kit/List/ListContent.ts +2 -0
  139. package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
  140. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
  141. package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
  142. package/package.json +1 -1
  143. package/src/components/ApplicationForm/Footnote.tsx +1 -1
  144. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  145. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
  146. package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
  147. package/src/components/ComparisonTable/TableColumn.tsx +1 -1
  148. package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
  149. package/src/components/StepsBlock/StepsBlock.tsx +1 -2
  150. package/src/components/StepsBlock/StepsBlockContent.ts +3 -6
  151. package/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
  152. package/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
  153. package/src/ui-kit/List/List.tsx +6 -2
  154. package/src/ui-kit/List/ListContent.ts +2 -0
  155. package/src/ui-kit/List/ListItem.tsx +1 -1
  156. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
  157. package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
@@ -481,15 +481,15 @@
481
481
  ? image.sources
482
482
  .filter((_) => _?.src)
483
483
  .sort(sourcesComparator)
484
- .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image.size?.width, height: image.size?.height }, `${index}_${src}`)))
484
+ .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image?.size?.width, height: image?.size?.height }, `${index}_${src}`)))
485
485
  : null, image?.src
486
486
  ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName)
487
487
  : null] }));
488
488
  });
489
- const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image.alt || image.title, title: image.title || '', style: {
490
- width: image.size?.width ? `${image.size?.width}px` : '100%',
491
- height: image.size?.height ? `${image.size?.height}px` : 'auto',
492
- }, width: image.size?.width, height: image.size?.height }));
489
+ const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image?.alt || image?.title || '', title: image?.title || '', style: {
490
+ width: image?.size?.width ? `${image.size?.width}px` : '100%',
491
+ height: image?.size?.height ? `${image.size?.height}px` : 'auto',
492
+ }, width: image?.size?.width, height: image?.size?.height }));
493
493
  const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
494
494
  const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
495
495
 
@@ -737,7 +737,7 @@
737
737
  };
738
738
  const renderButtonIcon = (icon) => isIcon(icon) ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
739
739
 
740
- const ListItem = JSX(({ className, isDotted, dotClassName, children }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', dotClassName) }) })) : null, jsx("span", { children: children })] })));
740
+ const ListItem = JSX(({ className, isDotted, dotClassName, children }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full group-data-secondary:bg-white', dotClassName) }) })) : null, jsx("span", { children: children })] })));
741
741
 
742
742
  const LIST_VERSION_STYLE = {
743
743
  S: {
@@ -756,9 +756,9 @@
756
756
  dotStyle: 'w-1.5 h-1.5 mr-m',
757
757
  },
758
758
  };
759
- const List = JSX(({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
759
+ const List = JSX(({ className, isDotted = true, items = [], listItemSize = 'M', dotClassName = '' }) => {
760
760
  const versionStyle = LIST_VERSION_STYLE[listItemSize];
761
- return items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, dotClassName: versionStyle.dotStyle, children: item }, String(i)))) })) : null;
761
+ return items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, dotClassName: style(dotClassName || 'bg-primary-text', versionStyle.dotStyle), children: item }, String(i)))) })) : null;
762
762
  });
763
763
 
764
764
  const toLocalNumberFormat = (fractionDigits = 0) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
@@ -990,7 +990,7 @@
990
990
  return data || EMPTY_VALUE$4;
991
991
  }
992
992
 
993
- const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
993
+ const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
994
994
 
995
995
  const withValidator = (props, validator) => {
996
996
  const { value, isDirty } = props;
@@ -1178,7 +1178,7 @@
1178
1178
 
1179
1179
  const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg ", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
1180
1180
 
1181
- const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })] })));
1181
+ const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
1182
1182
 
1183
1183
  const renderSlideCheckboxes = (field) => (jsxs("div", { children: [jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
1184
1184
 
@@ -1796,7 +1796,7 @@
1796
1796
  const defaultIconSize = 44;
1797
1797
 
1798
1798
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1799
- const renderBenefit = ({ label, description, items, icon, iconBgVersion, isDotted = false }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: iconBgVersion || '', ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), jsx(List, { className: "text-secondary-text", listItemSize: "S", items: items, isDotted: isDotted })] })) : null] }, String(i)));
1799
+ const renderBenefit = ({ label, description, items, icon, iconBgVersion, isDotted = false }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: iconBgVersion || '', ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), jsx(List, { dotClassName: "bg-secondary-text", listItemSize: "S", items: items, isDotted: isDotted })] })) : null] }, String(i)));
1800
1800
 
1801
1801
  const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap gap-3xl gap-x-m w-full", children: bonusItems.length > 0
1802
1802
  ? bonusItems.map((_, i) => (jsxs("div", { className: "w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow p-xl sm:p-m border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
@@ -3118,9 +3118,7 @@
3118
3118
  const ImageAlwaysOnRight = true;
3119
3119
 
3120
3120
  //TODO: replace SocialMedia with renderButtonSection
3121
- const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
3122
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, isDotted: isDotted, listItemSize: "S" }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
3123
- });
3121
+ const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, isDotted: isDotted, listItemSize: "S" }), renderAdditionalDescription(additionalDescription, align)] }) }) })));
3124
3122
  const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
3125
3123
 
3126
3124
  const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
@@ -3184,7 +3182,7 @@
3184
3182
  const COLS_LENGTH_FOR_SCROLL$1 = 3;
3185
3183
  const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
3186
3184
 
3187
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target, className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
3185
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target || '', className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
3188
3186
 
3189
3187
  const carouselContainerClassesMap = {
3190
3188
  comparison: 'flex gap-m duration-1000',
@@ -3332,7 +3330,7 @@
3332
3330
  onChange(value === newValue ? '' : newValue);
3333
3331
  }
3334
3332
  };
3335
- return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
3333
+ return items.map((item) => (jsx(SlideCheckbox, { text: item?.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
3336
3334
  });
3337
3335
 
3338
3336
  const renderFiltrationForm$1 = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0", children: [jsxs("div", { className: "flex flex-col @4xl:flex-row gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-full @4xl:w-72 @4xl:ml-s", onClick: reset, children: resetButton?.text }) })) : null] }));
@@ -4418,9 +4416,7 @@
4418
4416
  const cellColor = cell.cellColor || 'green';
4419
4417
  return cell.text ? (jsx("div", { className: `flex-1 flex items-center justify-center relative py-xs ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`, children: jsx(Text, { align: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
4420
4418
  };
4421
- const renderInvestmentColumnTitle = (column, i) => {
4422
- return (jsx("div", { className: `flex-1 max-w-[180px] text-center px-xs last:pr-3xl`, children: column.title }, `title_${i}`));
4423
- };
4419
+ const renderInvestmentColumnTitle = (column, i) => column?.title ? (jsx("div", { className: `flex-1 max-w-[180px] text-center px-xs last:pr-3xl`, children: column.title }, `title_${i}`)) : null;
4424
4420
 
4425
4421
  const KILO = 1024;
4426
4422
  const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
@@ -5230,13 +5226,13 @@
5230
5226
 
5231
5227
  const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
5232
5228
  const getPaddingX = (steps) => (steps < 5 ? 'px-24' : 'px-16');
5233
- const StepsBlock = JSX(({ align = AlignStyles, buttons, className = '', description, showLines = true, size = 'normal', steps = [], stepVersion = 'gray', title, version = 'primary', ...rest }) => {
5229
+ const StepsBlock = JSX(({ buttons, className = '', description, showLines = true, size = 'normal', steps = [], stepVersion = 'gray', title, version = 'primary', ...rest }) => {
5234
5230
  const shortGaps = steps.length > 3;
5235
5231
  const styleMap = STEPS_BLOCK_STYLE;
5236
5232
  const lineOpacity = getLineOpacity(showLines);
5237
5233
  const paddingX = getPaddingX(steps.length);
5238
5234
  const isMainButton = Boolean(buttons?.every((b) => b?.text));
5239
- return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: align }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
5235
+ return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
5240
5236
  });
5241
5237
  const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
5242
5238
  const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
@@ -5831,7 +5827,7 @@
5831
5827
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5832
5828
  }
5833
5829
 
5834
- const packageVersion = "0.14.69";
5830
+ const packageVersion = "0.14.71";
5835
5831
 
5836
5832
  exports.Blocks = Blocks;
5837
5833
  exports.ContentPage = ContentPage;