@redneckz/wildless-cms-uni-blocks 0.13.6 → 0.13.7

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 (252) hide show
  1. package/bin/migration-scripts/0.13.6.js +33 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +75 -45
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  6. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  7. package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  8. package/bundle/ui-kit/Badge/Badge.d.ts +6 -0
  9. package/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  10. package/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  11. package/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  12. package/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  13. package/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
  14. package/dist/components/Blocks.mobile.js +6 -0
  15. package/dist/components/Blocks.mobile.js.map +1 -1
  16. package/dist/components/Bonus/Bonus.js +1 -2
  17. package/dist/components/Bonus/Bonus.js.map +1 -1
  18. package/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
  19. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  20. package/dist/components/ErrorBlock/ErrorBlock.js +2 -3
  21. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  22. package/dist/components/Footer/TextInformation.js +2 -1
  23. package/dist/components/Footer/TextInformation.js.map +1 -1
  24. package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  25. package/dist/components/HorizontalLayout/HorizontalLayout.js +8 -1
  26. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  27. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  28. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  29. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  30. package/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
  31. package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  32. package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  33. package/dist/ui-kit/Badge/Badge.d.ts +6 -0
  34. package/dist/ui-kit/Badge/Badge.js +18 -0
  35. package/dist/ui-kit/Badge/Badge.js.map +1 -0
  36. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  37. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  38. package/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  39. package/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  40. package/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  41. package/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  42. package/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
  43. package/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  44. package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  45. package/{mobile/dist/components/MortgageFiltration/HotFilterRecord.js → dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  46. package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  47. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  48. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  49. package/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  50. package/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
  51. package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  52. package/dist/ui-kit/BaseTile/BaseTile.js +1 -5
  53. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  54. package/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
  55. package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  56. package/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
  57. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  58. package/lib/common.css +1 -1
  59. package/lib/components/Blocks.mobile.js +6 -0
  60. package/lib/components/Blocks.mobile.js.map +1 -1
  61. package/lib/components/Bonus/Bonus.js +1 -2
  62. package/lib/components/Bonus/Bonus.js.map +1 -1
  63. package/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
  64. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  65. package/lib/components/ErrorBlock/ErrorBlock.js +2 -3
  66. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  67. package/lib/components/Footer/TextInformation.js +2 -1
  68. package/lib/components/Footer/TextInformation.js.map +1 -1
  69. package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  70. package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +1 -0
  71. package/lib/components/HorizontalLayout/HorizontalLayout.js +8 -1
  72. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  73. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  74. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  75. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  76. package/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
  77. package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  78. package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  79. package/lib/ui-kit/Badge/Badge.d.ts +6 -0
  80. package/lib/ui-kit/Badge/Badge.fixture.d.ts +6 -0
  81. package/lib/ui-kit/Badge/Badge.js +16 -0
  82. package/lib/ui-kit/Badge/Badge.js.map +1 -0
  83. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  84. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  85. package/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  86. package/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  87. package/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  88. package/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  89. package/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
  90. package/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  91. package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  92. package/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  93. package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  94. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  95. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  96. package/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  97. package/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
  98. package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  99. package/lib/ui-kit/BaseTile/BaseTile.js +1 -5
  100. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  101. package/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
  102. package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  103. package/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
  104. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  105. package/mobile/bundle/bundle.umd.js +60 -25
  106. package/mobile/bundle/bundle.umd.min.js +1 -1
  107. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  108. package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  109. package/mobile/bundle/ui-kit/Badge/Badge.d.ts +6 -0
  110. package/mobile/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  111. package/mobile/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  112. package/mobile/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  113. package/mobile/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  114. package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
  115. package/mobile/dist/components/Blocks.js +6 -0
  116. package/mobile/dist/components/Blocks.js.map +1 -1
  117. package/mobile/dist/components/Bonus/Bonus.js +1 -2
  118. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  119. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
  120. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  121. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -3
  122. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  123. package/mobile/dist/components/Footer/TextInformation.js +2 -1
  124. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  125. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  126. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  127. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  128. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
  129. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  130. package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  131. package/mobile/dist/ui-kit/Badge/Badge.d.ts +6 -0
  132. package/mobile/dist/ui-kit/Badge/Badge.js +18 -0
  133. package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -0
  134. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  135. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  136. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  137. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  138. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  139. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  140. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
  141. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  142. package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  143. package/{dist/components/MortgageFiltration/HotFilterRecord.js → mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  144. package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  145. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  146. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  147. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  148. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
  149. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  150. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -5
  151. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  152. package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
  153. package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  154. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
  155. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  156. package/mobile/lib/common.css +1 -1
  157. package/mobile/lib/components/Blocks.js +6 -0
  158. package/mobile/lib/components/Blocks.js.map +1 -1
  159. package/mobile/lib/components/Bonus/Bonus.js +1 -2
  160. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  161. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
  162. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  163. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -3
  164. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  165. package/mobile/lib/components/Footer/TextInformation.js +2 -1
  166. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  167. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  168. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  169. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  170. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
  171. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  172. package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  173. package/mobile/lib/ui-kit/Badge/Badge.d.ts +6 -0
  174. package/mobile/lib/ui-kit/Badge/Badge.js +16 -0
  175. package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -0
  176. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  177. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  178. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  179. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  180. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  181. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  182. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
  183. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  184. package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  185. package/mobile/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  186. package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  187. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  188. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  189. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  190. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
  191. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  192. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -5
  193. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  194. package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
  195. package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  196. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
  197. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  198. package/mobile/src/components/Blocks.ts +6 -0
  199. package/mobile/src/components/Bonus/Bonus.tsx +7 -13
  200. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
  201. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
  202. package/mobile/src/components/Footer/TextInformation.tsx +3 -2
  203. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
  204. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  205. package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
  206. package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
  207. package/mobile/src/ui-kit/Badge/Badge.tsx +34 -0
  208. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
  209. package/mobile/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
  210. package/mobile/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
  211. package/mobile/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
  212. package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
  213. package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
  214. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
  215. package/mobile/src/ui-kit/TabsControl/TabItem.tsx +5 -3
  216. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
  217. package/package.json +1 -1
  218. package/src/components/Blocks.mobile.ts +6 -0
  219. package/src/components/Bonus/Bonus.tsx +7 -13
  220. package/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
  221. package/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
  222. package/src/components/Footer/TextInformation.tsx +3 -2
  223. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +21 -0
  224. package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
  225. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
  226. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  227. package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +5 -2
  228. package/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
  229. package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
  230. package/src/ui-kit/Badge/Badge.fixture.tsx +24 -0
  231. package/src/ui-kit/Badge/Badge.tsx +34 -0
  232. package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
  233. package/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
  234. package/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
  235. package/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
  236. package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
  237. package/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
  238. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
  239. package/src/ui-kit/TabsControl/TabItem.tsx +5 -3
  240. package/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
  241. package/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  242. package/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  243. package/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  244. package/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  245. package/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  246. package/mobile/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  247. package/mobile/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  248. package/mobile/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  249. package/mobile/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  250. package/mobile/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  251. package/mobile/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
  252. package/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
@@ -1319,6 +1319,16 @@
1319
1319
  return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: _ }, `benefitListItem-${i}`))) })) : null;
1320
1320
  };
1321
1321
 
1322
+ const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-m', className), children: buttons.map(renderButton$1(buttonClassName)) })) : null;
1323
+ const renderButton$1 = (buttonClassName = '') => (button, index) => {
1324
+ const { text, icon, iconRight, version, ...rest } = button || {};
1325
+ const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1326
+ const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1327
+ return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1328
+ };
1329
+ const DEFAULT_ICON_W = 24;
1330
+ const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1331
+
1322
1332
  const headlineVersionStyles = {
1323
1333
  XXL: {
1324
1334
  title: { headingType: 'h0', as: 'h1' },
@@ -1375,6 +1385,19 @@
1375
1385
  return (jsxs(BlockWrapper, { className: style(isEmbedded ? '@container-normal' : '', className), defaultPadding: isEmbedded ? '' : 'p-6xl', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, font: versionStyle.descriptionWeight, align: align, ...descriptionStyle, children: description })) : null] }));
1376
1386
  });
1377
1387
 
1388
+ const Bonus = JSX(({ className = '', title, description, bonusItems = [], ...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" }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1389
+ ? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", 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
1390
+ ? renderBonusItemContent(_.bonusItemContent)
1391
+ : null] })] }, String(i))))
1392
+ : null })] }) })));
1393
+ const renderBonusItemContent = (bonusItemContent) => bonusItemContent.bonusType === 'count'
1394
+ ? renderBonusCount(bonusItemContent)
1395
+ : renderBonusImage(bonusItemContent);
1396
+ const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default mt-s flex justify-center sm:justify-end items-end", children: [_.bonusCount ? (
1397
+ // -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
1398
+ jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave 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] }));
1399
+ const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
1400
+
1378
1401
  const mapChildren = (mapper) => (children) => {
1379
1402
  if (children === null || children === undefined) {
1380
1403
  return children;
@@ -1558,16 +1581,6 @@
1558
1581
  ? renderBonusBenefits(bonusBenefits)
1559
1582
  : null] })));
1560
1583
 
1561
- const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-m', className), children: buttons.map(renderButton$1(buttonClassName)) })) : null;
1562
- const renderButton$1 = (buttonClassName = '') => (button, index) => {
1563
- const { text, icon, iconRight, version, ...rest } = button || {};
1564
- const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1565
- const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1566
- return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1567
- };
1568
- const DEFAULT_ICON_W = 24;
1569
- const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1570
-
1571
1584
  const alignStyleMap = {
1572
1585
  start: 'justify-start',
1573
1586
  center: 'justify-center',
@@ -2421,7 +2434,7 @@
2421
2434
 
2422
2435
  const DEFAULT_ANCESTORS = [];
2423
2436
  const defaultStyle = 'col-span-12';
2424
- function renderBlock(block, options, { className, ...extraProps } = {}) {
2437
+ function renderBlock$1(block, options, { className, ...extraProps } = {}) {
2425
2438
  const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
2426
2439
  const { type } = block;
2427
2440
  if (!(type && type in blocksRegistry)) {
@@ -2443,9 +2456,9 @@
2443
2456
  const DEFAULT_SLOT_NAME = null;
2444
2457
 
2445
2458
  const EMPTY_ANCESTORS = [];
2446
- const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, extraProps, renderProps = renderBlock, ...options }) => {
2459
+ const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, extraProps, renderProps = renderBlock$1, ...options }) => {
2447
2460
  const renderChildBlock = extraProps
2448
- ? (childBlock, childOptions) => renderBlock(childBlock, childOptions, extraProps)
2461
+ ? (childBlock, childOptions) => renderBlock$1(childBlock, childOptions, extraProps)
2449
2462
  : renderProps;
2450
2463
  return (blocks || []).map((_, i) => renderChildBlock(_, {
2451
2464
  ...options,
@@ -2477,7 +2490,7 @@
2477
2490
  const someCardsHighlighted = childBlocks?.some(isCardHighlighted);
2478
2491
  return renderChildren({
2479
2492
  ...rest,
2480
- renderProps: (block, options, blockIndex) => (jsxs("div", { className: cardWrapperStyle(block, { someCardsHighlighted }), children: [renderBlock(block, options, {
2493
+ renderProps: (block, options, blockIndex) => (jsxs("div", { className: cardWrapperStyle(block, { someCardsHighlighted }), children: [renderBlock$1(block, options, {
2481
2494
  className: cardStyle(block, {
2482
2495
  someCardsHighlighted,
2483
2496
  showBorder: !noCardBorder,
@@ -2547,6 +2560,24 @@
2547
2560
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: [image?.src ? jsx(Img, { className: "flex justify-center mb-xl", image: image }) : null, jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left", className: "mb-m" }), colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' })] })));
2548
2561
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2549
2562
 
2563
+ const LINK_CLASS_NAME = `absolute border border-primary-main px-xl py-lg
2564
+ text-l font-light bg-white text-primary-text flex
2565
+ justify-between items-center group-hover/link:text-primary-main z-10`;
2566
+ const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-80 top-0';
2567
+ const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
2568
+ const link = useLink();
2569
+ const adjustedProps = link({ href, target });
2570
+ return text ? (jsxs("div", { className: style('flex max-w-sm relative group/link cursor-pointer w-64 h-16 sm:w-[47%] sm:h-20 sm:mr-m', className), children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'rounded-md sm:rounded-none w-full h-12 sm:ml-s sm:w-full sm:h-auto'), role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6 hidden sm:block", children: jsx(Img, { className: "w-4 h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mx-1.5 mt-1.5' }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mt-3 mr-3' })] })) : null;
2571
+ });
2572
+
2573
+ const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, maxLinksCount = 10, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col sm:flex-row w-full overflow-hidden', className), ...rest, children: [jsxs("div", { className: "mr-xl flex-auto", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })) : null] }), links?.length ? renderLinks(links, maxLinksCount) : null] })));
2574
+ const renderLinks = (links, maxLinksCount) => {
2575
+ const itemCount = Math.ceil(links.length / maxLinksCount);
2576
+ return (jsx(Carousel, { className: "@container-normal sm:w-2/3 w-full p-0 sm:p-xs", version: "secondary", itemCount: itemCount, arrowsPadded: false, showDots: false, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap self-start w-full sm:w-[672px]'), children: links
2577
+ .slice(groupIndex * maxLinksCount, (groupIndex + 1) * maxLinksCount)
2578
+ .map((link, index) => (jsx(CarouselLinkButton, { className: "sm:m-2xs", ...link }, String(index)))) }, String(groupIndex)))) }));
2579
+ };
2580
+
2550
2581
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2551
2582
  const link = useLink({ isRemote });
2552
2583
  const linkProps = link({ href, target });
@@ -2596,11 +2627,7 @@
2596
2627
  end: 'self-end',
2597
2628
  };
2598
2629
  const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, { className: '-order-1 @xl:order-1', imageAlign })] })] })));
2599
- const renderImageContainer = (image, { className, imageAlign }) => {
2600
- //TODO Спорное решение
2601
- const fullWidth = image?.props?.image?.size?.width > 400;
2602
- return image ? (jsx("div", { className: style('flex-shrink-0', fullWidth ? 'w-full @xl:w-auto' : '', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2603
- };
2630
+ const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2604
2631
 
2605
2632
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
2606
2633
 
@@ -2726,9 +2753,9 @@
2726
2753
  const cellsNode = cardCells.map(renderCardInfo);
2727
2754
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2728
2755
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2729
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [renderIconBlock(icon), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2756
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [renderIconBlock$1(icon), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2730
2757
  });
2731
- const renderIconBlock = (icon) => (jsx("div", { className: "self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
2758
+ const renderIconBlock$1 = (icon) => (jsx("div", { className: "self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
2732
2759
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
2733
2760
 
2734
2761
  const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
@@ -3036,7 +3063,7 @@
3036
3063
  return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3037
3064
  });
3038
3065
 
3039
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3066
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3040
3067
 
3041
3068
  const Footer = JSX(({ className, ...rest }) => {
3042
3069
  const fallback = rest.options?.page?.fallback;
@@ -3233,6 +3260,11 @@
3233
3260
 
3234
3261
  const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
3235
3262
 
3263
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h4", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text ? renderButtonsSection([button]) : null] })] })));
3264
+ const renderIconBlock = (icon) => (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
3265
+ const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider", children: jsx(RichText, { __html: __html }) }));
3266
+ const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex gap-m", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col", children: [jsx(Text, { size: "text-m", font: "font-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
3267
+
3236
3268
  const RichTextBlock = JSX((props) => {
3237
3269
  const { __html, richVersion, ...rest } = props;
3238
3270
  return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
@@ -3694,8 +3726,8 @@
3694
3726
  };
3695
3727
  const TabItemInner = JSX(({ tag = 'div', item = {}, isActive, type = 'default', onClick }) => {
3696
3728
  const Tag = tag;
3697
- const { text, ...link } = item;
3698
- return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children: jsx("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: jsx(Text, { size: "text-m", children: text }) }) }));
3729
+ const { text, appendRight, ...link } = item;
3730
+ return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [jsx(Text, { size: "text-m", children: text }), appendRight ? jsx("div", { className: "ml-xs", children: appendRight }) : null] }) }));
3699
3731
  });
3700
3732
 
3701
3733
  const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
@@ -3833,6 +3865,7 @@
3833
3865
  const Blocks = {
3834
3866
  ApplicationForm,
3835
3867
  BenefitsBlock,
3868
+ Bonus,
3836
3869
  BonusBenefitsBlock,
3837
3870
  ButtonsBlock,
3838
3871
  Calculator,
@@ -3841,6 +3874,7 @@
3841
3874
  CarouselBankHistoryCard,
3842
3875
  CarouselCard,
3843
3876
  CarouselCatalogCard,
3877
+ CarouselLinks,
3844
3878
  CarouselProductCard,
3845
3879
  CarouselProgramsCard,
3846
3880
  CarouselRecommendationCard,
@@ -3859,6 +3893,7 @@
3859
3893
  ProductBlock,
3860
3894
  ProductGallery,
3861
3895
  ProductTile,
3896
+ RepresentativeOfficeInfo,
3862
3897
  RichTextBlock,
3863
3898
  RollupItem,
3864
3899
  SafeDepositRental,
@@ -4084,7 +4119,7 @@
4084
4119
 
4085
4120
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4086
4121
 
4087
- const packageVersion = "0.13.6";
4122
+ const packageVersion = "0.13.7";
4088
4123
 
4089
4124
  exports.Blocks = Blocks;
4090
4125
  exports.ContentPage = ContentPage;