@redneckz/wildless-cms-uni-blocks 0.13.22 → 0.13.24

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 (380) hide show
  1. package/bin/migration-scripts/0.13.15.js +25 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +49 -38
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  6. package/bundle/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  8. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  9. package/bundle/components/Footer/FooterContent.d.ts +4 -1
  10. package/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  11. package/bundle/components/Footer/MediaButton.d.ts +2 -3
  12. package/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
  13. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  14. package/bundle/services/search/useSearch.d.ts +3 -3
  15. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  16. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  17. package/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  18. package/bundle/utils/Nullable.d.ts +1 -0
  19. package/cosmos-static/icons/MailIcon.svg +1 -1
  20. package/cosmos-static/icons/PhoneIcon.svg +1 -1
  21. package/cosmos-static/icons/RutubeIcon.svg +1 -1
  22. package/dist/components/Calculator/Calculator.mobile.js +1 -1
  23. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  24. package/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  25. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  26. package/dist/components/Carousel/Carousel.js +2 -1
  27. package/dist/components/Carousel/Carousel.js.map +1 -1
  28. package/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  29. package/dist/components/Carousel/visibleItemCount.js +4 -0
  30. package/dist/components/Carousel/visibleItemCount.js.map +1 -0
  31. package/dist/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  32. package/dist/components/Carousel/visibleItemCount.mobile.js +4 -0
  33. package/dist/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  34. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
  35. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  36. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  37. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  38. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  39. package/dist/components/Footer/Footer.js +4 -3
  40. package/dist/components/Footer/Footer.js.map +1 -1
  41. package/dist/components/Footer/FooterContent.d.ts +4 -1
  42. package/dist/components/Footer/FooterDataProps.d.ts +4 -10
  43. package/dist/components/Footer/MediaButton.d.ts +2 -3
  44. package/dist/components/Footer/MediaButton.js +5 -4
  45. package/dist/components/Footer/MediaButton.js.map +1 -1
  46. package/dist/components/Footer/SocialMedia.js +1 -1
  47. package/dist/components/Footer/SocialMedia.js.map +1 -1
  48. package/{lib/components/Footer/buttonSizeStyles.d.ts → dist/components/Footer/buttonSizeStyle.d.ts} +1 -1
  49. package/{mobile/dist/components/Footer/buttonSizeStyles.js → dist/components/Footer/buttonSizeStyle.js} +3 -3
  50. package/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  51. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  52. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  53. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  54. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  55. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  56. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  57. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  58. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  59. package/dist/icons/IconName.js +1 -1
  60. package/dist/icons/IconName.js.map +1 -1
  61. package/dist/services/search/useSearch.d.ts +3 -3
  62. package/dist/services/search/useSearch.js +2 -5
  63. package/dist/services/search/useSearch.js.map +1 -1
  64. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  65. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  66. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  67. package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  68. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  69. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  70. package/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  71. package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  72. package/dist/ui-kit/Button/renderButtonsSection.js +11 -4
  73. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  74. package/dist/ui-kit/Logo/Logo.js +1 -1
  75. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  76. package/dist/ui-kit/RichText/RichText.js +2 -1
  77. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  78. package/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  79. package/dist/ui-kit/RichText/getHtmlText.js +5 -0
  80. package/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  81. package/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
  82. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  83. package/dist/utils/Nullable.d.ts +1 -0
  84. package/dist/utils/Nullable.js +2 -0
  85. package/dist/utils/Nullable.js.map +1 -0
  86. package/lib/common.css +1 -1
  87. package/lib/components/Calculator/Calculator.mobile.js +1 -1
  88. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  89. package/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  90. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  91. package/lib/components/Carousel/Carousel.js +2 -1
  92. package/lib/components/Carousel/Carousel.js.map +1 -1
  93. package/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  94. package/lib/components/Carousel/visibleItemCount.js +2 -0
  95. package/lib/components/Carousel/visibleItemCount.js.map +1 -0
  96. package/lib/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  97. package/lib/components/Carousel/visibleItemCount.mobile.js +2 -0
  98. package/lib/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  99. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
  100. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  101. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  102. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  103. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  104. package/lib/components/Footer/Footer.js +4 -3
  105. package/lib/components/Footer/Footer.js.map +1 -1
  106. package/lib/components/Footer/FooterContent.d.ts +4 -1
  107. package/lib/components/Footer/FooterDataProps.d.ts +4 -10
  108. package/lib/components/Footer/MediaButton.d.ts +2 -3
  109. package/lib/components/Footer/MediaButton.js +5 -4
  110. package/lib/components/Footer/MediaButton.js.map +1 -1
  111. package/lib/components/Footer/SocialMedia.js +1 -1
  112. package/lib/components/Footer/SocialMedia.js.map +1 -1
  113. package/{dist/components/Footer/buttonSizeStyles.d.ts → lib/components/Footer/buttonSizeStyle.d.ts} +1 -1
  114. package/lib/components/Footer/buttonSizeStyle.js +5 -0
  115. package/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  116. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  117. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  118. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  119. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  120. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  121. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  122. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  123. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  124. package/lib/components/Tile/Tile.fixture.mobile.d.ts +9 -0
  125. package/lib/icons/IconName.js +1 -1
  126. package/lib/icons/IconName.js.map +1 -1
  127. package/lib/services/search/useSearch.d.ts +3 -3
  128. package/lib/services/search/useSearch.js +3 -6
  129. package/lib/services/search/useSearch.js.map +1 -1
  130. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  131. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  132. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  133. package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  134. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  135. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  136. package/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  137. package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  138. package/lib/ui-kit/Button/renderButtonsSection.js +11 -4
  139. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  140. package/lib/ui-kit/Logo/Logo.js +1 -1
  141. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  142. package/lib/ui-kit/RichText/RichText.js +2 -1
  143. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  144. package/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  145. package/lib/ui-kit/RichText/getHtmlText.js +2 -0
  146. package/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  147. package/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
  148. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  149. package/lib/utils/Nullable.d.ts +1 -0
  150. package/lib/utils/Nullable.js +2 -0
  151. package/lib/utils/Nullable.js.map +1 -0
  152. package/mobile/bundle/bundle.umd.js +47 -37
  153. package/mobile/bundle/bundle.umd.min.js +1 -1
  154. package/mobile/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  155. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  156. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  157. package/mobile/bundle/components/Footer/FooterContent.d.ts +4 -1
  158. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  159. package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -3
  160. package/mobile/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
  161. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  162. package/mobile/bundle/services/search/useSearch.d.ts +3 -3
  163. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  164. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  165. package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  166. package/mobile/bundle/utils/Nullable.d.ts +1 -0
  167. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  168. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  169. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  170. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  171. package/mobile/dist/components/Carousel/Carousel.js +2 -1
  172. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  173. package/mobile/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  174. package/mobile/dist/components/Carousel/visibleItemCount.js +4 -0
  175. package/mobile/dist/components/Carousel/visibleItemCount.js.map +1 -0
  176. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  177. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  178. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  179. package/mobile/dist/components/Footer/FooterContent.d.ts +4 -1
  180. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -10
  181. package/mobile/dist/components/Footer/MediaButton.d.ts +2 -3
  182. package/mobile/dist/components/Footer/MediaButton.js +5 -4
  183. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  184. package/mobile/dist/components/Footer/SocialMedia.js +1 -1
  185. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  186. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +4 -0
  187. package/{dist/components/Footer/buttonSizeStyles.js → mobile/dist/components/Footer/buttonSizeStyle.js} +3 -3
  188. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  189. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  190. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  191. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  192. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  193. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  194. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  195. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  196. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  197. package/mobile/dist/icons/IconName.js +1 -1
  198. package/mobile/dist/icons/IconName.js.map +1 -1
  199. package/mobile/dist/services/search/useSearch.d.ts +3 -3
  200. package/mobile/dist/services/search/useSearch.js +2 -5
  201. package/mobile/dist/services/search/useSearch.js.map +1 -1
  202. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  203. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  204. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  205. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  206. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  207. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  208. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  209. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  210. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +11 -4
  211. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  212. package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
  213. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  214. package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
  215. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  216. package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  217. package/mobile/dist/ui-kit/RichText/getHtmlText.js +5 -0
  218. package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  219. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
  220. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  221. package/mobile/dist/utils/Nullable.d.ts +1 -0
  222. package/mobile/dist/utils/Nullable.js +2 -0
  223. package/mobile/dist/utils/Nullable.js.map +1 -0
  224. package/mobile/lib/common.css +1 -1
  225. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  226. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  227. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  228. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  229. package/mobile/lib/components/Carousel/Carousel.js +2 -1
  230. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  231. package/mobile/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  232. package/mobile/lib/components/Carousel/visibleItemCount.js +2 -0
  233. package/mobile/lib/components/Carousel/visibleItemCount.js.map +1 -0
  234. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  235. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  236. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  237. package/mobile/lib/components/Footer/FooterContent.d.ts +4 -1
  238. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -10
  239. package/mobile/lib/components/Footer/MediaButton.d.ts +2 -3
  240. package/mobile/lib/components/Footer/MediaButton.js +5 -4
  241. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  242. package/mobile/lib/components/Footer/SocialMedia.js +1 -1
  243. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  244. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +4 -0
  245. package/mobile/lib/components/Footer/buttonSizeStyle.js +5 -0
  246. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  247. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  248. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  249. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  250. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  251. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  252. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  253. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  254. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  255. package/mobile/lib/icons/IconName.js +1 -1
  256. package/mobile/lib/icons/IconName.js.map +1 -1
  257. package/mobile/lib/services/search/useSearch.d.ts +3 -3
  258. package/mobile/lib/services/search/useSearch.js +3 -6
  259. package/mobile/lib/services/search/useSearch.js.map +1 -1
  260. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  261. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  262. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  263. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  264. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  265. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  266. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  267. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  268. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +11 -4
  269. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  270. package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
  271. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  272. package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
  273. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  274. package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  275. package/mobile/lib/ui-kit/RichText/getHtmlText.js +2 -0
  276. package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  277. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
  278. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  279. package/mobile/lib/utils/Nullable.d.ts +1 -0
  280. package/mobile/lib/utils/Nullable.js +2 -0
  281. package/mobile/lib/utils/Nullable.js.map +1 -0
  282. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  283. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  284. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  285. package/mobile/src/components/Carousel/Carousel.tsx +2 -1
  286. package/mobile/src/components/Carousel/visibleItemCount.ts +1 -0
  287. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
  288. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  289. package/mobile/src/components/Footer/FooterContent.ts +5 -1
  290. package/mobile/src/components/Footer/FooterDataProps.ts +4 -10
  291. package/mobile/src/components/Footer/MediaButton.tsx +34 -39
  292. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  293. package/mobile/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  294. package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
  295. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  296. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  297. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  298. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  299. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
  300. package/mobile/src/icons/IconName.ts +1 -1
  301. package/mobile/src/icons/MailIcon.svg +4 -1
  302. package/mobile/src/icons/PhoneIcon.svg +3 -1
  303. package/mobile/src/icons/RutubeIcon.svg +1 -1
  304. package/mobile/src/services/search/useSearch.ts +6 -13
  305. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  306. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  307. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  308. package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  309. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
  310. package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
  311. package/mobile/src/ui-kit/RichText/RichText.tsx +3 -2
  312. package/mobile/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  313. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
  314. package/mobile/src/utils/Nullable.ts +1 -0
  315. package/package.json +1 -1
  316. package/src/components/Calculator/Calculator.mobile.tsx +1 -1
  317. package/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  318. package/src/components/Carousel/Carousel.example.json +0 -1
  319. package/src/components/Carousel/Carousel.fixture.tsx +3 -0
  320. package/src/components/Carousel/Carousel.tsx +2 -1
  321. package/src/components/Carousel/visibleItemCount.mobile.ts +1 -0
  322. package/src/components/Carousel/visibleItemCount.ts +1 -0
  323. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -18
  324. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +4 -18
  325. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
  326. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -0
  327. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  328. package/src/components/Footer/Footer.tsx +4 -3
  329. package/src/components/Footer/FooterContent.ts +5 -1
  330. package/src/components/Footer/FooterDataProps.ts +4 -10
  331. package/src/components/Footer/MediaButton.tsx +34 -39
  332. package/src/components/Footer/SocialMedia.tsx +2 -2
  333. package/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  334. package/src/components/ProductBlock/ProductBlock.tsx +0 -1
  335. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  336. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  337. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  338. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +3 -3
  339. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  340. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
  341. package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
  342. package/src/icons/IconName.ts +0 -2
  343. package/src/icons/MailIcon.svg +4 -1
  344. package/src/icons/PhoneIcon.svg +3 -1
  345. package/src/icons/RutubeIcon.svg +1 -1
  346. package/src/services/search/useSearch.ts +6 -13
  347. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  348. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  349. package/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  350. package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  351. package/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
  352. package/src/ui-kit/Logo/Logo.tsx +1 -1
  353. package/src/ui-kit/RichText/RichText.tsx +3 -2
  354. package/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  355. package/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
  356. package/src/utils/Nullable.ts +1 -0
  357. package/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  358. package/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  359. package/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  360. package/dist/components/Footer/buttonStylesWithText.js +0 -9
  361. package/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  362. package/lib/components/Footer/buttonSizeStyles.js +0 -5
  363. package/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  364. package/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  365. package/lib/components/Footer/buttonStylesWithText.js +0 -6
  366. package/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  367. package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  368. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +0 -4
  369. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  370. package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  371. package/mobile/dist/components/Footer/buttonStylesWithText.js +0 -9
  372. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  373. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +0 -4
  374. package/mobile/lib/components/Footer/buttonSizeStyles.js +0 -5
  375. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  376. package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  377. package/mobile/lib/components/Footer/buttonStylesWithText.js +0 -6
  378. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  379. package/mobile/src/components/Footer/buttonStylesWithText.ts +0 -11
  380. package/src/components/Footer/buttonStylesWithText.ts +0 -11
@@ -606,7 +606,7 @@
606
606
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
607
607
  secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
608
608
  white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
609
- link: '',
609
+ link: 'text-primary-main',
610
610
  transparent: '',
611
611
  gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
612
612
  '': '',
@@ -626,7 +626,7 @@
626
626
  primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
627
627
  secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
628
628
  white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
629
- link: '',
629
+ link: 'text-primary-main',
630
630
  transparent: '',
631
631
  gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
632
632
  '': '',
@@ -1327,12 +1327,19 @@
1327
1327
  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(buttonClassName)) })) : null;
1328
1328
  const renderButton = (buttonClassName = '') => (button, index) => {
1329
1329
  const { text, icon, iconRight, version, ...rest } = button || {};
1330
- const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1331
- const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1332
- 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;
1330
+ const iconVersion = getIconVersion(icon, version);
1331
+ const iconRightVersion = getIconVersion(iconRight, version);
1332
+ return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1333
1333
  };
1334
1334
  const DEFAULT_ICON_W = 24;
1335
- 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;
1335
+ const getIconVersion = (icon, version = 'secondary') => {
1336
+ const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1337
+ return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1338
+ };
1339
+ const renderButtonIcon = (icon) => {
1340
+ console.log(icon);
1341
+ return icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1342
+ };
1336
1343
 
1337
1344
  const headlineVersionStyles = {
1338
1345
  XXL: {
@@ -2101,7 +2108,6 @@
2101
2108
  paramsViewSettings,
2102
2109
  });
2103
2110
  const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
2104
- const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
2105
2111
  const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
2106
2112
  const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
2107
2113
  rateRows,
@@ -2120,8 +2126,6 @@
2120
2126
  ...userInputParams,
2121
2127
  minSum,
2122
2128
  maxSum,
2123
- minSumOld,
2124
- maxSumOld,
2125
2129
  minMonths,
2126
2130
  maxMonths,
2127
2131
  moneyValue,
@@ -2545,7 +2549,9 @@
2545
2549
  'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
2546
2550
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2547
2551
 
2548
- const Carousel = JSX(({ className, itemCount, visibleItemCount = 0, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
2552
+ const VISIBLE_ITEM_COUNT = 1;
2553
+
2554
+ const Carousel = JSX(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
2549
2555
  const { blocks: childBlocks = [] } = rest.block || {};
2550
2556
  const count = itemCount || childBlocks?.length;
2551
2557
  const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
@@ -2618,8 +2624,8 @@
2618
2624
  center: '@lg:self-center',
2619
2625
  end: '@lg:self-end',
2620
2626
  };
2621
- 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-col @lg:flex-row justify-around @lg: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: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
2622
- className: '-order-1 @xl:order-1',
2627
+ const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, 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: style('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row'), 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: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
2628
+ className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
2623
2629
  imageAlign,
2624
2630
  })] })] })));
2625
2631
  const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
@@ -2697,9 +2703,11 @@
2697
2703
  ? 'bg-secondary-light text-primary-main'
2698
2704
  : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
2699
2705
 
2706
+ const getHtmlText = (html) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
2707
+
2700
2708
  const RichText = JSX((props) => {
2701
2709
  const { __html = '', richVersion = '' } = props;
2702
- return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
2710
+ return getHtmlText(__html) ? (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } })) : null;
2703
2711
  });
2704
2712
 
2705
2713
  const renderBenefitDescription = (description, i) => description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
@@ -2729,11 +2737,11 @@
2729
2737
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2730
2738
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2731
2739
 
2732
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
2740
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground, isImageAlwaysOnRight, } = {}, children, }) => {
2733
2741
  const img = image?.src ? jsx(Img, { image: image }) : null;
2734
2742
  const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
2735
2743
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2736
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2744
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2737
2745
  });
2738
2746
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2739
2747
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
@@ -2744,15 +2752,11 @@
2744
2752
  description: _.description,
2745
2753
  })) }) }) })));
2746
2754
 
2747
- const buttonSizeStyles = {
2755
+ const buttonSizeStyle = {
2748
2756
  default: 'w-14 h-14',
2749
2757
  stretched: 'flex-1 h-14',
2750
2758
  };
2751
2759
 
2752
- const buttonStylesWithText = (text, buttonSize) => text
2753
- ? ''
2754
- : style('py-m group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
2755
-
2756
2760
  const ICONS_MAP = [
2757
2761
  {
2758
2762
  origins: ['t.me', 'telegram.org'],
@@ -2793,16 +2797,18 @@
2793
2797
 
2794
2798
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2795
2799
 
2796
- const MediaButton = JSX(({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
2797
- const { href, version, text = '' } = rest;
2800
+ //TODO: Refactor this.
2801
+ const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2802
+ const { href } = rest;
2798
2803
  const { iconMapped, label } = findIconByHref(href);
2799
2804
  const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2800
- 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: iconCustom && !text ? (jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" })) : null }));
2805
+ return (jsx(Button, { className: style('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', 'py-m group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
2801
2806
  });
2802
2807
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2803
2808
 
2804
2809
  const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
2805
2810
 
2811
+ //TODO: replace SocialMedia with renderButtonSection
2806
2812
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2807
2813
  return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: "S" }) : null }) }) }));
2808
2814
  });
@@ -3296,7 +3302,7 @@
3296
3302
  transparent: 'text-white',
3297
3303
  };
3298
3304
  const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$1(bgColor, logo?.image, ICON_SIZE), showTitle
3299
- ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title }) }))
3305
+ ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title || 'Россельхозбанк' }) }))
3300
3306
  : null] })));
3301
3307
 
3302
3308
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
@@ -3373,17 +3379,14 @@
3373
3379
  const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
3374
3380
 
3375
3381
  const SEARCH_INDEX_FILENAME = 'search.index.json';
3376
- const DEFAULT_BASE_PATH = ['/'];
3377
- const useSearch = ({ basePathList = DEFAULT_BASE_PATH, initialQuery = '', wasOpened, }) => {
3382
+ const useSearch = ({ basePathList, initialQuery = '', }) => {
3378
3383
  const [query, setQuery] = useState(initialQuery || '');
3379
3384
  useEffect(() => {
3380
3385
  if (initialQuery !== undefined && initialQuery !== null) {
3381
3386
  setQuery(initialQuery);
3382
3387
  }
3383
3388
  }, [initialQuery]);
3384
- const key = useMemo(() => basePathList.map((_) => (wasOpened ? _ : null)), // Load search index on very first search
3385
- [wasOpened, basePathList]);
3386
- const { data } = useAsyncData(key, fetchSearchIndex);
3389
+ const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
3387
3390
  const [result, setResult] = useState(null);
3388
3391
  useDebouncedEffect(() => {
3389
3392
  if (data) {
@@ -3426,7 +3429,6 @@
3426
3429
  const [searchResult, searchInputProps] = useSearch({
3427
3430
  basePathList,
3428
3431
  initialQuery,
3429
- wasOpened: false,
3430
3432
  });
3431
3433
  const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
3432
3434
  useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
@@ -3507,11 +3509,11 @@
3507
3509
 
3508
3510
  const LEFT_COL_WIDTH = 'w-52';
3509
3511
  const Footer = JSX(({ className, ...rest }) => {
3510
- const { topItems } = useSitemap(rest.options?.page?.fallback);
3511
- const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', {
3512
+ const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
3513
+ const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
3512
3514
  fallback: rest.options?.page?.fallback,
3513
3515
  });
3514
- return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: `${LEFT_COL_WIDTH} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3516
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3515
3517
  });
3516
3518
 
3517
3519
  const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
@@ -4496,7 +4498,7 @@
4496
4498
  const iconVersion = version === 'primary' ? 'white' : 'black';
4497
4499
  const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
4498
4500
  const text = 'Вернуться назад';
4499
- return (jsxs("div", { className: "flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
4501
+ return (jsxs("div", { className: "hidden sm:flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
4500
4502
  icon: 'ArrowLeftIcon',
4501
4503
  iconVersion: iconVersion,
4502
4504
  } }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
@@ -4544,10 +4546,19 @@
4544
4546
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4545
4547
  }
4546
4548
 
4547
- 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] })] })));
4549
+ 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: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
4550
+ label: 'Адрес',
4551
+ data: address,
4552
+ iconName: 'GeolocationIcon',
4553
+ }), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
4554
+ label: 'E-mail',
4555
+ data: email,
4556
+ iconName: 'MailIcon',
4557
+ dataColor: 'text-primary-main',
4558
+ }), button?.text ? renderButtonsSection([button]) : null] })] })));
4548
4559
  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 }));
4549
- const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider", children: jsx(RichText, { __html: __html }) }));
4550
- 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] })] }));
4560
+ const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html }) }));
4561
+ const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
4551
4562
 
4552
4563
  const RichTextBlock = JSX((props) => {
4553
4564
  const { __html, richVersion, ...rest } = props;
@@ -5322,7 +5333,7 @@
5322
5333
  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" }) }));
5323
5334
  }
5324
5335
 
5325
- const packageVersion = "0.13.22";
5336
+ const packageVersion = "0.13.24";
5326
5337
 
5327
5338
  exports.Blocks = Blocks;
5328
5339
  exports.ContentPage = ContentPage;