@redneckz/wildless-cms-uni-blocks 0.14.20 → 0.14.22

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 (253) hide show
  1. package/bin/migration-scripts/0.14.20.js +30 -0
  2. package/bin/migration-scripts/0.14.21.js +33 -0
  3. package/bin/migration-scripts/0.14.7.js +1 -4
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +18 -20
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  8. package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  9. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  10. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  11. package/bundle/components/Footer/SocialMedia.d.ts +3 -1
  12. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  13. package/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
  14. package/bundle/content-page-repository/transformContentPage.d.ts +3 -2
  15. package/bundle/ui-kit/List/ListContent.d.ts +0 -1
  16. package/dist/api/CorporateLeadAPI.js +3 -0
  17. package/dist/api/CorporateLeadAPI.js.map +1 -1
  18. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  19. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  20. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  21. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  22. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  23. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  24. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  25. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
  26. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  27. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  28. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
  29. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  30. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  31. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  32. package/dist/components/Footer/Footer.js +1 -1
  33. package/dist/components/Footer/Footer.js.map +1 -1
  34. package/dist/components/Footer/SocialMedia.d.ts +3 -1
  35. package/dist/components/Footer/SocialMedia.js +4 -3
  36. package/dist/components/Footer/SocialMedia.js.map +1 -1
  37. package/dist/components/ProductBlock/ProductBlock.js +5 -2
  38. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  39. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  40. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  41. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  42. package/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
  43. package/dist/content-page-repository/transformAttachmentLink.js +33 -0
  44. package/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
  45. package/dist/content-page-repository/transformContentPage.d.ts +3 -2
  46. package/dist/content-page-repository/transformContentPage.js +7 -1
  47. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  48. package/dist/content-page-repository/transformDocument.js +1 -1
  49. package/dist/content-page-repository/transformDocument.js.map +1 -1
  50. package/dist/content-page-repository/transformImg.js +1 -1
  51. package/dist/content-page-repository/transformImg.js.map +1 -1
  52. package/dist/ui-kit/List/ListContent.d.ts +0 -1
  53. package/lib/api/CorporateLeadAPI.js +3 -0
  54. package/lib/api/CorporateLeadAPI.js.map +1 -1
  55. package/lib/common.css +1 -1
  56. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  57. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  58. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  59. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  60. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  61. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  62. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  63. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
  64. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  65. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  66. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
  67. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  68. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  69. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  70. package/lib/components/Footer/Footer.js +1 -1
  71. package/lib/components/Footer/Footer.js.map +1 -1
  72. package/lib/components/Footer/SocialMedia.d.ts +3 -1
  73. package/lib/components/Footer/SocialMedia.js +4 -3
  74. package/lib/components/Footer/SocialMedia.js.map +1 -1
  75. package/lib/components/ProductBlock/ProductBlock.js +5 -2
  76. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  77. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  78. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  79. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  80. package/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
  81. package/lib/content-page-repository/transformAttachmentLink.js +27 -0
  82. package/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
  83. package/lib/content-page-repository/transformContentPage.d.ts +3 -2
  84. package/lib/content-page-repository/transformContentPage.js +6 -0
  85. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  86. package/lib/content-page-repository/transformDocument.js +1 -1
  87. package/lib/content-page-repository/transformDocument.js.map +1 -1
  88. package/lib/content-page-repository/transformImg.js +1 -1
  89. package/lib/content-page-repository/transformImg.js.map +1 -1
  90. package/lib/ui-kit/List/ListContent.d.ts +0 -1
  91. package/mobile/bundle/bundle.umd.js +19 -12
  92. package/mobile/bundle/bundle.umd.min.js +1 -1
  93. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  94. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  95. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  96. package/mobile/bundle/components/Footer/SocialMedia.d.ts +3 -1
  97. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  98. package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
  99. package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -2
  100. package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -1
  101. package/mobile/dist/api/CorporateLeadAPI.js +3 -0
  102. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
  103. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  104. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  105. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  106. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  107. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  108. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  109. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  110. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
  111. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  112. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  113. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  114. package/mobile/dist/components/Footer/SocialMedia.d.ts +3 -1
  115. package/mobile/dist/components/Footer/SocialMedia.js +4 -3
  116. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  117. package/mobile/dist/components/ProductBlock/ProductBlock.js +5 -2
  118. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  119. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  120. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  121. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  122. package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
  123. package/mobile/dist/content-page-repository/transformAttachmentLink.js +33 -0
  124. package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
  125. package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -2
  126. package/mobile/dist/content-page-repository/transformContentPage.js +7 -1
  127. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  128. package/mobile/dist/content-page-repository/transformDocument.js +1 -1
  129. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
  130. package/mobile/dist/content-page-repository/transformImg.js +1 -1
  131. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  132. package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -1
  133. package/mobile/lib/api/CorporateLeadAPI.js +3 -0
  134. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
  135. package/mobile/lib/common.css +1 -1
  136. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  137. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  138. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  139. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  140. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  141. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  142. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  143. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
  144. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  145. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  146. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  147. package/mobile/lib/components/Footer/SocialMedia.d.ts +3 -1
  148. package/mobile/lib/components/Footer/SocialMedia.js +4 -3
  149. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  150. package/mobile/lib/components/ProductBlock/ProductBlock.js +5 -2
  151. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  152. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  153. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  154. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  155. package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
  156. package/mobile/lib/content-page-repository/transformAttachmentLink.js +27 -0
  157. package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
  158. package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -2
  159. package/mobile/lib/content-page-repository/transformContentPage.js +6 -0
  160. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  161. package/mobile/lib/content-page-repository/transformDocument.js +1 -1
  162. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
  163. package/mobile/lib/content-page-repository/transformImg.js +1 -1
  164. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  165. package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -1
  166. package/mobile/src/api/CorporateLeadAPI.ts +4 -0
  167. package/mobile/src/components/Bonus/Bonus.ui.json +3 -0
  168. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  169. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  170. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
  171. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
  172. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +3 -8
  173. package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
  174. package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
  175. package/mobile/src/components/Calculator/Calculator.ui.json +3 -0
  176. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
  177. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  178. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
  179. package/mobile/src/components/Footer/SocialMedia.tsx +8 -5
  180. package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -2
  181. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  182. package/mobile/src/components/ProductGallery/ProductGallery.ui.json +3 -0
  183. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
  184. package/mobile/src/components/StepsBlock/StepsBlock.ui.json +6 -0
  185. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +0 -1
  186. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
  187. package/mobile/src/content-page-repository/transformAttachmentLink.ts +38 -0
  188. package/mobile/src/content-page-repository/transformContentPage.ts +13 -4
  189. package/mobile/src/content-page-repository/transformDocument.ts +1 -1
  190. package/mobile/src/content-page-repository/transformImg.ts +1 -1
  191. package/mobile/src/ui-kit/List/ListContent.ts +0 -1
  192. package/mobile/tailwind.config.cjs +127 -0
  193. package/package.json +2 -1
  194. package/src/api/CorporateLeadAPI.ts +4 -0
  195. package/src/components/Bonus/Bonus.ui.json +3 -0
  196. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  197. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  198. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
  199. package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
  200. package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +3 -8
  201. package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +4 -5
  202. package/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
  203. package/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
  204. package/src/components/Calculator/Calculator.ui.json +3 -0
  205. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
  206. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  207. package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
  208. package/src/components/Footer/Footer.tsx +3 -1
  209. package/src/components/Footer/SocialMedia.tsx +8 -5
  210. package/src/components/ProductBlock/ProductBlock.tsx +9 -2
  211. package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  212. package/src/components/ProductGallery/ProductGallery.ui.json +3 -0
  213. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
  214. package/src/components/StepsBlock/StepsBlock.ui.json +6 -0
  215. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -1
  216. package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
  217. package/src/content-page-repository/transformAttachmentLink.ts +38 -0
  218. package/src/content-page-repository/transformContentPage.ts +13 -4
  219. package/src/content-page-repository/transformDocument.ts +1 -1
  220. package/src/content-page-repository/transformImg.ts +1 -1
  221. package/src/ui-kit/List/ListContent.ts +0 -1
  222. package/bundle/model/AlignText.d.ts +0 -6
  223. package/bundle/model/AlignType.d.ts +0 -21
  224. package/dist/model/AlignText.d.ts +0 -6
  225. package/dist/model/AlignText.js +0 -11
  226. package/dist/model/AlignText.js.map +0 -1
  227. package/dist/model/AlignType.d.ts +0 -21
  228. package/dist/model/AlignType.js +0 -2
  229. package/dist/model/AlignType.js.map +0 -1
  230. package/lib/model/AlignText.d.ts +0 -6
  231. package/lib/model/AlignText.js +0 -9
  232. package/lib/model/AlignText.js.map +0 -1
  233. package/lib/model/AlignType.d.ts +0 -21
  234. package/lib/model/AlignType.js +0 -2
  235. package/lib/model/AlignType.js.map +0 -1
  236. package/mobile/bundle/model/AlignText.d.ts +0 -6
  237. package/mobile/bundle/model/AlignType.d.ts +0 -21
  238. package/mobile/dist/model/AlignText.d.ts +0 -6
  239. package/mobile/dist/model/AlignText.js +0 -11
  240. package/mobile/dist/model/AlignText.js.map +0 -1
  241. package/mobile/dist/model/AlignType.d.ts +0 -21
  242. package/mobile/dist/model/AlignType.js +0 -2
  243. package/mobile/dist/model/AlignType.js.map +0 -1
  244. package/mobile/lib/model/AlignText.d.ts +0 -6
  245. package/mobile/lib/model/AlignText.js +0 -9
  246. package/mobile/lib/model/AlignText.js.map +0 -1
  247. package/mobile/lib/model/AlignType.d.ts +0 -21
  248. package/mobile/lib/model/AlignType.js +0 -2
  249. package/mobile/lib/model/AlignType.js.map +0 -1
  250. package/mobile/src/model/AlignText.ts +0 -11
  251. package/mobile/src/model/AlignType.ts +0 -22
  252. package/src/model/AlignText.ts +0 -11
  253. package/src/model/AlignType.ts +0 -22
@@ -252,6 +252,9 @@
252
252
  mode: 'cors',
253
253
  body: JSON.stringify(body),
254
254
  });
255
+ if (!response?.ok) {
256
+ return null;
257
+ }
255
258
  const data = await response.json();
256
259
  return data;
257
260
  }
@@ -1402,20 +1405,11 @@
1402
1405
  jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1403
1406
  const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
1404
1407
 
1405
- /**
1406
- * @deprecated
1407
- */
1408
- const AlignText = {
1409
- left: 'text-left',
1410
- center: 'text-center',
1411
- right: 'text-right',
1412
- };
1413
-
1414
1408
  const bonusBenefitStyles = 'items-center';
1415
1409
 
1416
- const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: description })) : null] }, String(i)));
1410
+ const renderBonusBenefit = (cardTextAlign) => ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col gap-1', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: description })) : null] }, String(i)));
1417
1411
 
1418
- const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) }));
1412
+ const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit(cardTextAlign)) }));
1419
1413
  const getElementsColsValue = (colValue) => {
1420
1414
  switch (colValue) {
1421
1415
  case '3':
@@ -1429,7 +1423,7 @@
1429
1423
  }
1430
1424
  };
1431
1425
 
1432
- const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
1426
+ const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'text-center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
1433
1427
  ? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
1434
1428
  : null] })));
1435
1429
 
@@ -2810,20 +2804,21 @@
2810
2804
 
2811
2805
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2812
2806
 
2813
- const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
2807
+ const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, version = 'white', children }) => {
2814
2808
  const [hasText, setHasText] = useState();
2815
2809
  const buttons = media?.map((_) => {
2816
2810
  const { href, icon, text } = _;
2817
2811
  const { iconMapped } = findIconByHref(href);
2818
2812
  const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2819
- const buttonText = showButtonText ? { text } : {};
2813
+ const buttonText = showButtonText ? { text } : { text: '' };
2820
2814
  if (!hasText && text) {
2821
2815
  setHasText(true);
2822
2816
  }
2823
2817
  return {
2818
+ ..._,
2824
2819
  ...buttonText,
2825
2820
  icon: { ...iconCustom, iconVersion: 'color' },
2826
- version: 'white',
2821
+ version,
2827
2822
  };
2828
2823
  });
2829
2824
  const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
@@ -2838,7 +2833,7 @@
2838
2833
 
2839
2834
  //TODO: replace SocialMedia with renderButtonSection
2840
2835
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = ImageAlwaysOnRight, ...rest }) => {
2841
- 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: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2836
+ 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: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2842
2837
  });
2843
2838
 
2844
2839
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -3836,7 +3831,7 @@
3836
3831
  const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
3837
3832
  fallback: rest.options?.page?.fallback,
3838
3833
  });
3839
- return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3834
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, showButtonText: false, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3840
3835
  });
3841
3836
 
3842
3837
  const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
@@ -4814,13 +4809,16 @@
4814
4809
  } }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
4815
4810
  }
4816
4811
 
4817
- const ProductBlock = JSX(({ className, padding, backwardButton, ...rest }) => {
4812
+ const ProductBlock = JSX(({ className, padding, backwardButton, showBorder, ...rest }) => {
4818
4813
  const router = useRouter();
4819
4814
  const handleClick = useCallback((ev) => {
4820
4815
  ev?.preventDefault();
4821
4816
  router.back();
4822
4817
  }, []);
4823
- return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
4818
+ const borderStyle = showBorder
4819
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
4820
+ : '';
4821
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
4824
4822
  ? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
4825
4823
  : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
4826
4824
  });
@@ -5663,7 +5661,7 @@
5663
5661
  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" }) }));
5664
5662
  }
5665
5663
 
5666
- const packageVersion = "0.14.20";
5664
+ const packageVersion = "0.14.22";
5667
5665
 
5668
5666
  exports.Blocks = Blocks;
5669
5667
  exports.ContentPage = ContentPage;