@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
@@ -1378,7 +1378,7 @@
1378
1378
  });
1379
1379
 
1380
1380
  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
1381
- ? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", children: [jsxs("div", { className: "grow", children: [_?.title ? (jsx("div", { className: "mb-xs last:mb-0", children: jsx(Text, { size: "text-h4", children: _.title }) })) : null, _?.description ? (jsx("div", { className: "mb-text last:mb-0", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null] }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1381
+ ? 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
1382
1382
  ? renderBonusItemContent(_.bonusItemContent)
1383
1383
  : null] })] }, String(i))))
1384
1384
  : null })] }) })));
@@ -2594,7 +2594,7 @@
2594
2594
  });
2595
2595
 
2596
2596
  const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2597
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mt-s ml-s mb-xs", title: title })) : null, description ? (jsx("div", { className: "ml-s mb-m", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
2597
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
2598
2598
  });
2599
2599
 
2600
2600
  const imageAlignmentMap = {
@@ -2603,11 +2603,7 @@
2603
2603
  end: 'self-end',
2604
2604
  };
2605
2605
  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 })] })] })));
2606
- const renderImageContainer = (image, { className, imageAlign }) => {
2607
- //TODO Спорное решение
2608
- const fullWidth = image?.props?.image?.size?.width > 400;
2609
- return image ? (jsx("div", { className: style('flex-shrink-0', fullWidth ? 'w-full @xl:w-auto' : '', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2610
- };
2606
+ const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2611
2607
 
2612
2608
  const cardColumnsModeStyleMap = {
2613
2609
  1: 'grid-cols-1',
@@ -2948,12 +2944,12 @@
2948
2944
  const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2949
2945
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2950
2946
  : [blocksToRender, []];
2951
- return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style('mb-2xs', resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2952
- return (jsx(FoldableSection, { className: style(resultsGridStyle, isUnfolded ? 'mb-2xs' : ''), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2947
+ return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2948
+ return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2953
2949
  }, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
2954
2950
  });
2955
2951
  function renderNotFound({ title, description }) {
2956
- return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-xs", children: jsx(Paragraph, { align: "text-center", children: jsx(Text, { size: "text-h4", children: title }) }) })) : null, description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
2952
+ return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
2957
2953
  }
2958
2954
 
2959
2955
  const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
@@ -2972,7 +2968,7 @@
2972
2968
  return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
2973
2969
  });
2974
2970
 
2975
- const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl mb-2xs", children: [jsxs("div", { className: "flex gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-s", onClick: reset, ...resetButton }) })) : null] }));
2971
+ const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl", children: [jsxs("div", { className: "flex gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-s", onClick: reset, ...resetButton }) })) : null] }));
2976
2972
  const renderFormItem = (field) => ([key, item]) => {
2977
2973
  const type = item?.type;
2978
2974
  switch (type) {
@@ -3021,7 +3017,7 @@
3021
3017
  return null;
3022
3018
  };
3023
3019
  const getErrorBlockStyle = (text) => (text ? 'py-20' : 'mb-16 mt-24');
3024
- const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left", title: title }) : null, subtitle ? (jsx("div", { className: "max-w-[613px] text-center", children: jsx(Text, { size: "text-xl", font: "font-light", children: subtitle }) })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
3020
+ const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: subtitle, headlineVersion: "XL", isEmbedded: true }), button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
3025
3021
 
3026
3022
  var Currencies;
3027
3023
  (function (Currencies) {
@@ -3470,7 +3466,7 @@
3470
3466
  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}` }));
3471
3467
  });
3472
3468
 
3473
- 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] })));
3469
+ 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] })));
3474
3470
 
3475
3471
  const LEFT_COL_WIDTH = 'w-52';
3476
3472
  const Footer = JSX(({ className, ...rest }) => {
@@ -3776,7 +3772,14 @@
3776
3772
  '': '',
3777
3773
  };
3778
3774
 
3779
- const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
3775
+ const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
3776
+ ...rest,
3777
+ extraProps: {
3778
+ className: isCardBorder
3779
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
3780
+ : '',
3781
+ },
3782
+ }) })));
3780
3783
  HorizontalLayout.childrenTypes = {
3781
3784
  exclude: ['HorizontalLayout'],
3782
3785
  };
@@ -3883,7 +3886,7 @@
3883
3886
  const renderInvestmentColumn = (column, i, arr) => {
3884
3887
  const isSecondColumn = i === 1;
3885
3888
  const isLastColumn = i === arr.length - 1;
3886
- return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-[292px]' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
3889
+ return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-72' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
3887
3890
  };
3888
3891
  const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
3889
3892
  cells.length ? 'flex-1' : 'flex-0',
@@ -3957,6 +3960,51 @@
3957
3960
  return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
3958
3961
  });
3959
3962
 
3963
+ const badgeBgStyleMap = {
3964
+ primary: 'bg-white/30',
3965
+ secondary: 'bg-main-divider',
3966
+ };
3967
+ const badgeTextColorStyleMap = {
3968
+ primary: 'text-white',
3969
+ secondary: 'text-secondary-text',
3970
+ };
3971
+ const Badge = JSX(({ count, version = 'secondary' }) => {
3972
+ return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
3973
+ });
3974
+
3975
+ const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => checkShouldRenderBlock(filter, content)).length;
3976
+
3977
+ const scalarCmp = (a, b) => a === b;
3978
+ const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
3979
+ const objCmp = (cmp) => (a, b) => a === b ||
3980
+ Boolean(a &&
3981
+ b &&
3982
+ Object.keys(a).length === Object.keys(b).length &&
3983
+ Object.entries(a).every(([key, value]) => cmp(value, b[key])));
3984
+ function combineBoolCmps(...comparators) {
3985
+ return (a, b) => comparators.some((cmp) => cmp(a, b));
3986
+ }
3987
+
3988
+ const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
3989
+
3990
+ const EMPTY_ARR = [];
3991
+ const EMPTY_OBJ = {};
3992
+ const useHotFilters = ({ hotFilters = EMPTY_ARR, filtrationState = EMPTY_OBJ, blocks = EMPTY_ARR, onFiltrationStateChange, }) => {
3993
+ const activeItemIndex = useMemo(() => Math.max(0, hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState))), [hotFilters, filtrationState]);
3994
+ const items = useMemo(() => hotFilters.map((_) => ({
3995
+ text: _.text,
3996
+ appendRight: (jsx(Badge, { version: _ === hotFilters[activeItemIndex] ? 'primary' : 'secondary', count: getBadgeCount(blocks, _.filter) })),
3997
+ })), [hotFilters, blocks, activeItemIndex]);
3998
+ const handleChange = useCallback((_) => {
3999
+ onFiltrationStateChange(hotFilters[items.indexOf(_)].filter);
4000
+ }, [hotFilters, items]);
4001
+ return {
4002
+ value: items[activeItemIndex],
4003
+ items: items,
4004
+ onChange: handleChange,
4005
+ };
4006
+ };
4007
+
3960
4008
  const tabPaddingStyleMap = {
3961
4009
  default: 'px-xs',
3962
4010
  underlined: 'px-m',
@@ -3980,8 +4028,8 @@
3980
4028
  };
3981
4029
  const TabItemInner = JSX(({ tag = 'div', item = {}, isActive, type = 'default', onClick }) => {
3982
4030
  const Tag = tag;
3983
- const { text, ...link } = item;
3984
- 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 }) }) }));
4031
+ const { text, appendRight, ...link } = item;
4032
+ 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] }) }));
3985
4033
  });
3986
4034
 
3987
4035
  const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
@@ -4005,40 +4053,22 @@
4005
4053
 
4006
4054
  const TabsControl = JSX(({ className, tabsType = 'default', items = [], value, onChange }) => (jsx("div", { className: style('flex gap-x-2xs overflow-x-auto no-scrollbar', className), role: "tablist", children: items.map(renderTab(value, onChange, tabsType)) })));
4007
4055
 
4008
- const scalarCmp = (a, b) => a === b;
4009
- const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
4010
- const objCmp = (cmp) => (a, b) => a === b ||
4011
- Boolean(a &&
4012
- b &&
4013
- Object.keys(a).length === Object.keys(b).length &&
4014
- Object.entries(a).every(([key, value]) => cmp(value, b[key])));
4015
- function combineBoolCmps(...comparators) {
4016
- return (a, b) => comparators.some((cmp) => cmp(a, b));
4017
- }
4018
-
4019
- const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
4020
-
4021
4056
  const initialFiltrationState = {
4022
4057
  categories: [],
4023
4058
  extraOptions: [],
4024
4059
  propertyType: [],
4025
4060
  stage: [],
4026
4061
  };
4027
- const MortgageFiltration = JSX(({ className, hotFilters = [], filtrationSchema = {}, resetButton, ...rest }) => {
4062
+ const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
4028
4063
  const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
4029
- const tabsControlItems = useMemo(() => hotFilters.map(({ text }) => ({
4030
- text,
4031
- })), [hotFilters]);
4032
- const [hotFilterIndex, setHotFilterIndex] = useState(0);
4033
- const handleHotFilterSelect = useCallback((_) => {
4034
- setHotFilterIndex(tabsControlItems.indexOf(_));
4035
- replaceFiltrationState(hotFilters[tabsControlItems.indexOf(_)].filter || initialFiltrationState);
4036
- }, [hotFilters, tabsControlItems]);
4037
- useEffect(() => {
4038
- const suggestedHotFilterIndex = hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState));
4039
- setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
4040
- }, [hotFilters, filtrationState]);
4041
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { className: "mb-2xs", items: tabsControlItems, value: tabsControlItems[hotFilterIndex], onChange: handleHotFilterSelect }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
4064
+ const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
4065
+ const tabsControlProps = useHotFilters({
4066
+ hotFilters,
4067
+ filtrationState,
4068
+ blocks: rest.block?.blocks,
4069
+ onFiltrationStateChange: handleFiltrationStateChange,
4070
+ });
4071
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
4042
4072
  });
4043
4073
  MortgageFiltration.childrenTypes = ['ProductTile'];
4044
4074
  MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
@@ -5234,7 +5264,7 @@
5234
5264
  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" }) }));
5235
5265
  }
5236
5266
 
5237
- const packageVersion = "0.13.6";
5267
+ const packageVersion = "0.13.7";
5238
5268
 
5239
5269
  exports.Blocks = Blocks;
5240
5270
  exports.ContentPage = ContentPage;