@redneckz/wildless-cms-uni-blocks 0.9.8 → 0.9.10

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 (212) hide show
  1. package/bin/migration-scripts/0.9.8.js +29 -0
  2. package/bin/migration-scripts/0.9.9.js +109 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +26 -47
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  8. package/bundle/components/Footer/SocialMedia.d.ts +1 -1
  9. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  10. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  11. package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  12. package/dist/components/Blocks.js +0 -2
  13. package/dist/components/Blocks.js.map +1 -1
  14. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  15. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  16. package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  17. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  18. package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -2
  19. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  20. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  21. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -6
  22. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  23. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  24. package/dist/components/Footer/MediaButton.js +6 -7
  25. package/dist/components/Footer/MediaButton.js.map +1 -1
  26. package/dist/components/Footer/SocialMedia.d.ts +1 -1
  27. package/dist/components/Footer/SocialMedia.js +2 -2
  28. package/dist/components/Footer/SocialMedia.js.map +1 -1
  29. package/dist/components/StepsBlock/StepsBlock.js +5 -3
  30. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  31. package/dist/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  32. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  33. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  34. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  35. package/lib/common.css +1 -1
  36. package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  37. package/lib/components/Blocks.js +0 -2
  38. package/lib/components/Blocks.js.map +1 -1
  39. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  40. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +2 -10
  41. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  42. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  43. package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  44. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  45. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
  46. package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -2
  47. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  48. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  49. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  50. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -6
  51. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  52. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  53. package/lib/components/Footer/MediaButton.js +6 -7
  54. package/lib/components/Footer/MediaButton.js.map +1 -1
  55. package/lib/components/Footer/SocialMedia.d.ts +1 -1
  56. package/lib/components/Footer/SocialMedia.js +2 -2
  57. package/lib/components/Footer/SocialMedia.js.map +1 -1
  58. package/lib/components/StepsBlock/StepsBlock.js +5 -3
  59. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  60. package/lib/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  61. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  62. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  63. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  64. package/mobile/bundle/bundle.umd.js +9 -10
  65. package/mobile/bundle/bundle.umd.min.js +1 -1
  66. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  67. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  68. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  69. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  70. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  71. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  72. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  73. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  74. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  75. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -2
  76. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  77. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  78. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -6
  79. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  80. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  81. package/mobile/dist/components/Footer/MediaButton.js +6 -7
  82. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  83. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  84. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  85. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  86. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  87. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  88. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  89. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  90. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  91. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  92. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -2
  93. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  94. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -0
  95. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -6
  96. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  97. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  98. package/mobile/lib/components/Footer/MediaButton.js +6 -7
  99. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  100. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +10 -1
  101. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  102. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  103. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  104. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  105. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +2 -4
  106. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +2 -2
  107. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +3 -1
  108. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +3 -1
  109. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +5 -1
  110. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +4 -0
  111. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +5 -2
  112. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +18 -34
  113. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  114. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +3 -1
  115. package/mobile/src/components/Footer/MediaButton.tsx +7 -10
  116. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +3 -1
  117. package/mobile/src/components/PictureText/PictureText.example.json +3 -1
  118. package/mobile/src/components/ProductBlock/ProductBlock.example.json +3 -1
  119. package/mobile/src/components/ProductTile/ProductTile.example.json +3 -1
  120. package/mobile/src/components/StepsBlock/StepsBlock.example.json +7 -5
  121. package/mobile/src/components/StepsBlock/StepsBlock.ui.json +10 -0
  122. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +10 -2
  123. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -2
  124. package/mobile/src/components/Tile/Tile.example.json +3 -1
  125. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +0 -2
  126. package/package.json +1 -1
  127. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  128. package/src/components/Blocks.ts +0 -2
  129. package/src/components/Carousel/Carousel.fixture.tsx +43 -7
  130. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -9
  131. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +2 -4
  132. package/src/components/CarouselEventCard/CarouselEventCard.tsx +2 -2
  133. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +3 -1
  134. package/src/components/CarouselProductCard/CarouselProductCard.example.json +3 -1
  135. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +10 -0
  136. package/src/components/CarouselProductCard/CarouselProductCard.tsx +5 -1
  137. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +4 -0
  138. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +5 -2
  139. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +28 -1
  140. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +18 -34
  141. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  142. package/src/components/ErrorBlock/ErrorBlock.example.json +3 -1
  143. package/src/components/Footer/MediaButton.tsx +7 -10
  144. package/src/components/Footer/SocialMedia.tsx +3 -11
  145. package/src/components/MobileAppTile/MobileAppTile.example.json +3 -1
  146. package/src/components/PictureText/PictureText.example.json +3 -1
  147. package/src/components/ProductBlock/ProductBlock.example.json +3 -1
  148. package/src/components/ProductTile/ProductTile.example.json +3 -1
  149. package/src/components/StepsBlock/StepsBlock.example.json +7 -5
  150. package/src/components/StepsBlock/StepsBlock.fixture.tsx +14 -8
  151. package/src/components/StepsBlock/StepsBlock.tsx +13 -4
  152. package/src/components/StepsBlock/StepsBlock.ui.json +10 -0
  153. package/src/components/StepsBlock/StepsBlockContent.ts +10 -2
  154. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -2
  155. package/src/components/Tile/Tile.example.json +3 -1
  156. package/src/components/VerticalLayout/VerticalLayoutContent.ts +0 -2
  157. package/bundle/components/Recommendation/Recommendation.d.ts +0 -5
  158. package/bundle/components/Recommendation/RecommendationCard.d.ts +0 -5
  159. package/bundle/components/Recommendation/RecommendationContent.d.ts +0 -24
  160. package/dist/components/Recommendation/Recommendation.d.ts +0 -5
  161. package/dist/components/Recommendation/Recommendation.js +0 -26
  162. package/dist/components/Recommendation/Recommendation.js.map +0 -1
  163. package/dist/components/Recommendation/RecommendationCard.d.ts +0 -5
  164. package/dist/components/Recommendation/RecommendationCard.js +0 -17
  165. package/dist/components/Recommendation/RecommendationCard.js.map +0 -1
  166. package/dist/components/Recommendation/RecommendationContent.d.ts +0 -24
  167. package/dist/components/Recommendation/RecommendationContent.js +0 -2
  168. package/dist/components/Recommendation/RecommendationContent.js.map +0 -1
  169. package/lib/components/Recommendation/Recommendation.d.ts +0 -5
  170. package/lib/components/Recommendation/Recommendation.fixture.d.ts +0 -15
  171. package/lib/components/Recommendation/Recommendation.js +0 -24
  172. package/lib/components/Recommendation/Recommendation.js.map +0 -1
  173. package/lib/components/Recommendation/RecommendationCard.d.ts +0 -5
  174. package/lib/components/Recommendation/RecommendationCard.js +0 -15
  175. package/lib/components/Recommendation/RecommendationCard.js.map +0 -1
  176. package/lib/components/Recommendation/RecommendationContent.d.ts +0 -24
  177. package/lib/components/Recommendation/RecommendationContent.js +0 -2
  178. package/lib/components/Recommendation/RecommendationContent.js.map +0 -1
  179. package/mobile/bundle/components/Recommendation/Recommendation.d.ts +0 -5
  180. package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +0 -5
  181. package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +0 -24
  182. package/mobile/dist/components/Recommendation/Recommendation.d.ts +0 -5
  183. package/mobile/dist/components/Recommendation/Recommendation.js +0 -26
  184. package/mobile/dist/components/Recommendation/Recommendation.js.map +0 -1
  185. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +0 -5
  186. package/mobile/dist/components/Recommendation/RecommendationCard.js +0 -17
  187. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +0 -1
  188. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +0 -24
  189. package/mobile/dist/components/Recommendation/RecommendationContent.js +0 -2
  190. package/mobile/dist/components/Recommendation/RecommendationContent.js.map +0 -1
  191. package/mobile/lib/components/Recommendation/Recommendation.d.ts +0 -5
  192. package/mobile/lib/components/Recommendation/Recommendation.js +0 -24
  193. package/mobile/lib/components/Recommendation/Recommendation.js.map +0 -1
  194. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +0 -5
  195. package/mobile/lib/components/Recommendation/RecommendationCard.js +0 -15
  196. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +0 -1
  197. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +0 -24
  198. package/mobile/lib/components/Recommendation/RecommendationContent.js +0 -2
  199. package/mobile/lib/components/Recommendation/RecommendationContent.js.map +0 -1
  200. package/mobile/src/components/Catalog/Catalog.ui.json +0 -1
  201. package/mobile/src/components/Recommendation/Recommendation.example.json +0 -61
  202. package/mobile/src/components/Recommendation/Recommendation.tsx +0 -66
  203. package/mobile/src/components/Recommendation/Recommendation.ui.json +0 -19
  204. package/mobile/src/components/Recommendation/RecommendationCard.tsx +0 -49
  205. package/mobile/src/components/Recommendation/RecommendationContent.ts +0 -27
  206. package/src/components/Catalog/Catalog.ui.json +0 -1
  207. package/src/components/Recommendation/Recommendation.example.json +0 -61
  208. package/src/components/Recommendation/Recommendation.fixture.tsx +0 -176
  209. package/src/components/Recommendation/Recommendation.tsx +0 -66
  210. package/src/components/Recommendation/Recommendation.ui.json +0 -19
  211. package/src/components/Recommendation/RecommendationCard.tsx +0 -49
  212. package/src/components/Recommendation/RecommendationContent.ts +0 -27
@@ -929,7 +929,7 @@
929
929
  partnerComments,
930
930
  }));
931
931
  };
932
- return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), renderCreditParameters({ amount, term, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization$2({ fullName, inn, name, phone, mail, annualRevenue, handleChange }), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), renderBankOffices({
932
+ return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), renderCreditParameters({ amount, term, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization$2({ fullName, inn, name, phone, mail, annualRevenue, handleChange }), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0411\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), renderBankOffices({
933
933
  regions,
934
934
  region: selectedRegion,
935
935
  branches,
@@ -2074,7 +2074,7 @@
2074
2074
  const CarouselBankHistoryCard = JSX(({ title, description, blocksLength = 0, activeIndex, options }) => {
2075
2075
  const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
2076
2076
  const isActive = orderNumber === activeIndex;
2077
- return (jsx(BlockWrapper, { className: "flex h-[485px]", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "S", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
2077
+ return (jsx(BlockWrapper, { className: "flex h-[485px]", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "M", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
2078
2078
  });
2079
2079
  const getBackgroundColor = (orderNumber) => {
2080
2080
  const division = orderNumber % 3;
@@ -2139,7 +2139,7 @@
2139
2139
  });
2140
2140
 
2141
2141
  const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2142
- return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) }));
2142
+ return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-3 mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
2143
2143
  });
2144
2144
 
2145
2145
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
@@ -2204,8 +2204,11 @@
2204
2204
  };
2205
2205
  const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${TEXT_SIZE_MAP[listItemSize]} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''} ${className}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2206
2206
 
2207
- const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
2208
- return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
2207
+ const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isFullWidth = true, items = [], target, title, version = 'primary', ...rest }) => {
2208
+ return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], {
2209
+ className: style('p-6 pt-0', isFullWidth ? '' : 'justify-center'),
2210
+ isVertical: isFullWidth ? true : false,
2211
+ })] }));
2209
2212
  });
2210
2213
  const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
2211
2214
  const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
@@ -2257,24 +2260,22 @@
2257
2260
  const buttonStylesWithText = (text, buttonSize) => text
2258
2261
  ? ''
2259
2262
  : `group/media flex items-center justify-center box-border ${buttonSizeStyles[buttonSize]}`;
2260
- const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
2261
- const { href, version, text, appendLeft, appendRight, aboveText } = rest;
2263
+ const MediaButton = JSX(({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
2264
+ const { href, version, text = '' } = rest;
2262
2265
  const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
2263
- const iconCustom = icon ?? iconMapped;
2264
- const iconWithVersion = iconCustom
2265
- ? { ...getIconWithVersion(iconCustom), iconVersion }
2266
- : undefined;
2267
- return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconWithVersion && !text ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
2266
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2267
+ const iconWithVersion = iconCustom ? getIconWithVersion(iconCustom) : undefined;
2268
+ return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconWithVersion && !text ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
2268
2269
  });
2270
+ const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2269
2271
 
2270
- const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { aboveText: _.aboveText, appendLeft: _.appendLeft, appendRight: _.appendRight, buttonSize: buttonSize, text: _.text, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
2272
+ const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
2271
2273
 
2272
2274
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2273
- const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
2274
- const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
2275
- return (jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [title ? (jsx(Heading, { headingType: "h3", as: "h3", className: "text-center mb-8", title: title })) : null, jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex", children: [jsxs("div", { className: style('flex flex-col w-1/2', items?.length ? 'justify-between' : 'justify-end'), children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 mt-14", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }) }));
2275
+ const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
2276
+ return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "flex flex-col gap-2", itemClassName: "text-l-light", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$1(icon)] }) }));
2276
2277
  });
2277
- const renderIconBlock$1 = (icon, items) => (jsxs("div", { className: style('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2278
+ const renderIconBlock$1 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2278
2279
 
2279
2280
  const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
2280
2281
  const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
@@ -4075,29 +4076,6 @@
4075
4076
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4076
4077
  }
4077
4078
 
4078
- const RecommendationCard = JSX(({ className = '', title, description, items, image, socialMedia, button, ...rest }) => {
4079
- const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
4080
- const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
4081
- return (jsx(BlockWrapper, { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx("span", { className: "mb-2", children: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, button?.text ? (jsx("div", { className: "pt-2", children: renderButtonsSection([button], { buttonClassName: 'mt-16 px-5' }) })) : null] }) }) }));
4082
- });
4083
-
4084
- const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
4085
- const CARD_VIEW_COUNT = 2;
4086
- const CARD_SHIFT = 525;
4087
- const Recommendation = JSX(({ recommendations = [], className = '', title, version = 'primary', ...rest }) => {
4088
- const [activeIndex, controls] = useCarouselControls({
4089
- itemCount: recommendations.length,
4090
- visibleItemCount: CARD_VIEW_COUNT,
4091
- });
4092
- return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${className}`, version: version, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-6", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations.length
4093
- ? recommendations.map((card, i) => (jsx(RecommendationCard, { version: version, className: "border-gray group-data-secondary:border-white/50", ...card }, String(i))))
4094
- : null }), renderArrows({
4095
- ...controls,
4096
- btnClass: ['left-8', 'right-8'],
4097
- className: 'top-1/2 mt-3',
4098
- })] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
4099
- });
4100
-
4101
4079
  const RichTextBlock = JSX((props) => {
4102
4080
  const { __html, ...rest } = props;
4103
4081
  return (jsx(BlockWrapper, { ...rest, children: jsx(RichText, { __html: __html }) }));
@@ -4267,8 +4245,8 @@
4267
4245
  const getContainerWidth = (length) => (length < 5 ? 'w-[276px]' : 'w-[210px]');
4268
4246
 
4269
4247
  const STEPS_BLOCK_STYLE = {
4270
- description: 'text-white/80 text-l-light group-data-primary:text-secondary-text',
4271
- iconText: 'text-white group-data-primary:text-secondary-text',
4248
+ description: 'text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
4249
+ iconText: 'text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
4272
4250
  iconBackground: 'bg-white/30 group-data-primary:bg-main-divider',
4273
4251
  iconConnector: 'bg-white group-data-primary:bg-secondary-light',
4274
4252
  dot: 'bg-white/80 group-data-primary:bg-secondary-text',
@@ -4276,16 +4254,18 @@
4276
4254
 
4277
4255
  const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
4278
4256
  const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
4279
- const StepsBlock = JSX(({ className = '', showLines = true, steps = [], button, size = 'normal', version = 'primary', stepVersion = 'gray', title, ...rest }) => {
4257
+ const StepsBlock = JSX(({ className = '', showLines = true, steps = [], buttons, size = 'normal', version = 'primary', stepVersion = 'gray', title, ...rest }) => {
4280
4258
  const shortGaps = steps.length > 3;
4281
4259
  const styleMap = STEPS_BLOCK_STYLE;
4282
4260
  const lineOpacity = getLineOpacity(showLines);
4283
4261
  const paddingX = getPaddingX(steps.length);
4284
- return (jsxs(BlockWrapper, { className: style('box-border py-12', shortGaps ? 'px-20' : 'px-[70px]', 'flex flex-col items-center overflow-hidden', className), version: version, ...rest, children: [title ? (jsx(Heading, { headingType: "h4", className: "max-w-[752px] text-center mb-9", title: title })) : null, steps?.length ? (jsxs("div", { className: "box-border", 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 mt-4', shortGaps ? 'gap-x-3' : 'gap-x-[101px]'), children: steps.map(renderStep({ styleMap, isMainButton: Boolean(button?.text), version })) })] })) : null, button?.text ? renderButtonsSection([button], { className: 'mt-8 min-w-60' }) : null] }));
4262
+ const isMainButton = Boolean(buttons?.every((b) => b?.text));
4263
+ return (jsxs(BlockWrapper, { className: style('box-border py-12', shortGaps ? 'px-20' : 'px-[70px]', 'flex flex-col items-center overflow-hidden', className), version: version, ...rest, children: [title ? (jsx(Heading, { headingType: "h4", className: "max-w-[752px] text-center mb-9", title: title })) : null, steps?.length ? (jsxs("div", { className: "box-border", 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 mt-4', shortGaps ? 'gap-x-3' : 'gap-x-[101px]'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons, { className: 'mt-8' })] }));
4285
4264
  });
4286
4265
  const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
4287
4266
  const styleStepIconSize = size === 'normal' ? 'h-[100px] w-[100px]' : 'h-[63px] w-[63px]';
4288
- return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(ImgInner, { image: getIconWithVersion(icon || {}, stepVersion), width: "48", height: "48", asSVG: true })) : (jsx("span", { className: `text-h4 group-data-transparent:${styleMap.iconText} text-primary-text`, children: i + 1 })) }, String(i)));
4267
+ const stepVersionIconTextStyles = stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
4268
+ return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(ImgInner, { image: getIconWithVersion(icon || {}, stepVersion), width: "48", height: "48", asSVG: true })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : stepVersionIconTextStyles), children: i + 1 })) }, String(i)));
4289
4269
  };
4290
4270
 
4291
4271
  const containerStyles = {
@@ -4764,7 +4744,6 @@
4764
4744
  ProductGallery,
4765
4745
  ProductTile,
4766
4746
  PromoTile,
4767
- Recommendation,
4768
4747
  RichTextBlock,
4769
4748
  RollupItem,
4770
4749
  SafeDepositRental,
@@ -4906,7 +4885,7 @@
4906
4885
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4907
4886
  }
4908
4887
 
4909
- const packageVersion = "0.9.8";
4888
+ const packageVersion = "0.9.10";
4910
4889
 
4911
4890
  exports.Blocks = Blocks;
4912
4891
  exports.ContentPage = ContentPage;