@redneckz/wildless-cms-uni-blocks 0.3.84 → 0.3.85

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 (898) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +388 -322
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/Logo.svg +1 -0
  5. package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  6. package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  7. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  8. package/dist/components/Calculator/Calculator.js +7 -7
  9. package/dist/components/Calculator/Calculator.js.map +1 -1
  10. package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  11. package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  12. package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  13. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  14. package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  15. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  16. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  17. package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  18. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  19. package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  20. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/Rate.d.ts +7 -0
  22. package/dist/components/Calculator/Rate.js +6 -0
  23. package/dist/components/Calculator/Rate.js.map +1 -0
  24. package/dist/components/Calculator/constants.d.ts +13 -4
  25. package/dist/components/Calculator/constants.js +34 -5
  26. package/dist/components/Calculator/constants.js.map +1 -1
  27. package/dist/components/Calculator/getBonus.d.ts +2 -0
  28. package/dist/components/Calculator/getBonus.js +16 -0
  29. package/dist/components/Calculator/getBonus.js.map +1 -0
  30. package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  31. package/dist/components/Calculator/getDefaultMonths.js +1 -4
  32. package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  33. package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  34. package/dist/components/Calculator/getDefaultSum.js +1 -3
  35. package/dist/components/Calculator/getDefaultSum.js.map +1 -1
  36. package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  37. package/dist/components/Calculator/getMonthlyPayment.js +10 -11
  38. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  39. package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  40. package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  41. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  42. package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  43. package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  44. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  45. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  46. package/dist/components/Calculator/renderMonthsInput.js +4 -3
  47. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  48. package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  49. package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  50. package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  51. package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  52. package/dist/components/Calculator/renderRealEstateValue.js +6 -5
  53. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  54. package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  55. package/dist/components/Calculator/renderWantedSumInput.js +5 -7
  56. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  57. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  58. package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  59. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  60. package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  61. package/dist/components/Calculator/useCalculatorParams.js +12 -0
  62. package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  63. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  64. package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  65. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  66. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  67. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  68. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  69. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  70. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  71. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  72. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  73. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  74. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  75. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  76. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  77. package/dist/components/ExchangeRateTile/renderButton.js +2 -2
  78. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  79. package/dist/components/ExchangeRateTile/renderInput.js +1 -1
  80. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  81. package/dist/components/Footer/HorizontalNavigation.js +2 -2
  82. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  83. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
  84. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  85. package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  86. package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  87. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  88. package/dist/components/Footer/MediaButton.js +2 -1
  89. package/dist/components/Footer/MediaButton.js.map +1 -1
  90. package/dist/components/Footer/TextInformation.js +2 -2
  91. package/dist/components/Footer/TextInformation.js.map +1 -1
  92. package/dist/components/Footer/TextInformation.mobile.js +2 -2
  93. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  94. package/dist/components/Footer/TextInformationLink.d.ts +8 -0
  95. package/dist/components/Footer/TextInformationLink.js +6 -0
  96. package/dist/components/Footer/TextInformationLink.js.map +1 -0
  97. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  98. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  99. package/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  100. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  101. package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  102. package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  103. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  104. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  105. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  106. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  107. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  108. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  109. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  110. package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  111. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  112. package/dist/components/ProductBlock/ProductBlock.js +3 -1
  113. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  114. package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  115. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  116. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  117. package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  118. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  119. package/dist/components/StepsBlock/StepsBlock.js +3 -1
  120. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  121. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  122. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  123. package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
  124. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  125. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  126. package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
  127. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  128. package/dist/components/Tile/Tile.js +4 -3
  129. package/dist/components/Tile/Tile.js.map +1 -1
  130. package/dist/content-page-repository/transformPicture.js +7 -3
  131. package/dist/content-page-repository/transformPicture.js.map +1 -1
  132. package/dist/hooks/useExchangeRates.js +5 -7
  133. package/dist/hooks/useExchangeRates.js.map +1 -1
  134. package/dist/icons/IconName.d.ts +4 -2
  135. package/dist/icons/IconName.js +2 -0
  136. package/dist/icons/IconName.js.map +1 -1
  137. package/dist/model/Picture.d.ts +4 -3
  138. package/dist/services/sitemap/findActiveSubItem.js +1 -2
  139. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  140. package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  141. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  142. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  143. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  144. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  145. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  146. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  147. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  148. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  149. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  150. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  151. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  152. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  153. package/dist/ui-kit/Heading/Heading.js +1 -1
  154. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  155. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  156. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  157. package/dist/ui-kit/Img/Img.d.ts +0 -3
  158. package/dist/ui-kit/Img/Img.js +4 -30
  159. package/dist/ui-kit/Img/Img.js.map +1 -1
  160. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  161. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  162. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  163. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  164. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  165. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  166. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  167. package/dist/ui-kit/Img/ImgInner.js +19 -0
  168. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  169. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  170. package/dist/ui-kit/Logo/Logo.js +1 -9
  171. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  172. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  173. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  174. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  175. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  176. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  177. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  178. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  179. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  180. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  181. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  182. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  183. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  184. package/lib/common.css +1 -1
  185. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  186. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  187. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  188. package/lib/components/Calculator/Calculator.js +7 -7
  189. package/lib/components/Calculator/Calculator.js.map +1 -1
  190. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  191. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  192. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  193. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  194. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  195. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  196. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  197. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  198. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  199. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  200. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  201. package/lib/components/Calculator/Rate.d.ts +7 -0
  202. package/lib/components/Calculator/Rate.js +4 -0
  203. package/lib/components/Calculator/Rate.js.map +1 -0
  204. package/lib/components/Calculator/constants.d.ts +13 -4
  205. package/lib/components/Calculator/constants.js +33 -4
  206. package/lib/components/Calculator/constants.js.map +1 -1
  207. package/lib/components/Calculator/getBonus.d.ts +2 -0
  208. package/lib/components/Calculator/getBonus.js +13 -0
  209. package/lib/components/Calculator/getBonus.js.map +1 -0
  210. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  211. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  212. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  213. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  214. package/lib/components/Calculator/getDefaultSum.js +1 -3
  215. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  216. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  217. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  218. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  219. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  220. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  221. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  222. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  223. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  224. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  225. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  226. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  227. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  228. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  229. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  230. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  231. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  232. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  233. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  234. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  235. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  236. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  237. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  238. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  239. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  240. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  241. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  242. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  243. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  244. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  245. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  246. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  247. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  248. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  249. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  250. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  251. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  252. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  253. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  254. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  255. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  256. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  257. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  258. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  259. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  260. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  261. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  262. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  263. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  264. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  265. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  266. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  267. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  268. package/lib/components/Footer/MediaButton.js +2 -1
  269. package/lib/components/Footer/MediaButton.js.map +1 -1
  270. package/lib/components/Footer/TextInformation.js +2 -2
  271. package/lib/components/Footer/TextInformation.js.map +1 -1
  272. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  273. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  274. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  275. package/lib/components/Footer/TextInformationLink.js +4 -0
  276. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  277. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  278. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  279. package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  280. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  281. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  282. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  283. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  284. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  285. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  286. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  287. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  288. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  289. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  290. package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  291. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  292. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  293. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  294. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  295. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  296. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  297. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  298. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  299. package/lib/components/StepsBlock/StepsBlock.js +3 -1
  300. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  301. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  302. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  303. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  304. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  305. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  306. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  307. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  308. package/lib/components/Tile/Tile.js +4 -3
  309. package/lib/components/Tile/Tile.js.map +1 -1
  310. package/lib/content-page-repository/transformPicture.js +7 -3
  311. package/lib/content-page-repository/transformPicture.js.map +1 -1
  312. package/lib/hooks/useExchangeRates.js +5 -7
  313. package/lib/hooks/useExchangeRates.js.map +1 -1
  314. package/lib/icons/IconName.d.ts +4 -2
  315. package/lib/icons/IconName.js +2 -0
  316. package/lib/icons/IconName.js.map +1 -1
  317. package/lib/model/Picture.d.ts +4 -3
  318. package/lib/services/sitemap/findActiveSubItem.js +1 -2
  319. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  320. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  321. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  322. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  323. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  324. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  325. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  326. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  327. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  328. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  329. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  330. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  331. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  332. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  333. package/lib/ui-kit/Heading/Heading.js +1 -1
  334. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  335. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  336. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  337. package/lib/ui-kit/Img/Img.d.ts +0 -3
  338. package/lib/ui-kit/Img/Img.js +4 -29
  339. package/lib/ui-kit/Img/Img.js.map +1 -1
  340. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  341. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  342. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  343. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  344. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  345. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  346. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  347. package/lib/ui-kit/Img/ImgInner.js +17 -0
  348. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  349. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  350. package/lib/ui-kit/Logo/Logo.js +1 -9
  351. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  352. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  353. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  354. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  355. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  356. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  357. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  358. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  359. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  360. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  361. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  362. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  363. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  364. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  365. package/mobile/bundle/bundle.umd.js +115 -91
  366. package/mobile/bundle/bundle.umd.min.js +1 -1
  367. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  368. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  369. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  370. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  371. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  372. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  373. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  374. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  375. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  376. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  377. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  378. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  379. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  380. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  381. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  382. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  383. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  384. package/mobile/dist/components/Calculator/Rate.js +6 -0
  385. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  386. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  387. package/mobile/dist/components/Calculator/constants.js +34 -5
  388. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  389. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  390. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  391. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  392. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  393. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  394. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  395. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  396. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  397. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  398. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  399. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  400. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  401. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  402. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  403. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  404. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  405. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  406. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  407. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  408. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  409. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  410. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  411. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  412. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  413. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  414. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  415. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  416. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  417. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  418. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  419. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  420. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  421. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  422. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  423. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  424. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  425. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  426. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  427. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  428. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  429. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  430. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  431. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  432. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  433. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  434. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  435. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  436. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  437. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  438. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  439. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  440. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  442. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  443. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  444. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  445. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  446. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  447. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  448. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  449. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  450. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  451. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  452. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  453. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  454. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  455. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  456. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  457. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  458. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  459. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  460. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  461. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  462. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  463. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  464. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  465. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  466. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  467. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  468. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  469. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  470. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  471. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  472. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  473. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  474. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  475. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  476. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  477. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  478. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  479. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  480. package/mobile/dist/components/Tile/Tile.js +4 -3
  481. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  482. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  483. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  484. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  485. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  486. package/mobile/dist/icons/IconName.d.ts +4 -2
  487. package/mobile/dist/icons/IconName.js +2 -0
  488. package/mobile/dist/icons/IconName.js.map +1 -1
  489. package/mobile/dist/model/Picture.d.ts +4 -3
  490. package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
  491. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  492. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  493. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  494. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  495. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  496. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  497. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  498. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  499. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  500. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  501. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  502. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  503. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  504. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  505. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  506. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  507. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  508. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  509. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  510. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  511. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  512. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  513. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  514. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  515. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  516. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  517. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  518. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  519. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  520. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  521. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  522. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  523. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  524. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  525. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  526. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  527. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  528. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  529. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  530. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  531. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  532. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  533. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  534. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  535. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  536. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  537. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  538. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  539. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  540. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  541. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  542. package/mobile/lib/components/Calculator/Rate.js +4 -0
  543. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  544. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  545. package/mobile/lib/components/Calculator/constants.js +33 -4
  546. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  547. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  548. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  549. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  550. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  551. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  552. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  553. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  554. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  555. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  556. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  557. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  558. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  559. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  560. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  561. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  562. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  563. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  564. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  565. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  566. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  567. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  568. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  569. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  570. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  571. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  572. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  573. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  574. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  575. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  576. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  577. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  578. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  579. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  580. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  581. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  582. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  583. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  584. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  585. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  586. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  587. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  588. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  589. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  590. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  591. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  592. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  593. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  594. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  595. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  596. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  597. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  598. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  599. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  600. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  601. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  602. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  603. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  604. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  605. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  606. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  607. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  608. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  609. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  610. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  611. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  612. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  613. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  614. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  615. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  616. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  617. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  618. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  619. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  620. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  621. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  622. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  623. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  624. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  625. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  626. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  627. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  628. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  629. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  630. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  631. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  632. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  633. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  634. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  635. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  636. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  637. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  638. package/mobile/lib/components/Tile/Tile.js +4 -3
  639. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  640. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  641. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  642. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  643. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  644. package/mobile/lib/icons/IconName.d.ts +4 -2
  645. package/mobile/lib/icons/IconName.js +2 -0
  646. package/mobile/lib/icons/IconName.js.map +1 -1
  647. package/mobile/lib/model/Picture.d.ts +4 -3
  648. package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
  649. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  650. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  651. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  652. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  653. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  654. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  655. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  656. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  657. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  658. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  659. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  660. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  661. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  662. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  663. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  664. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  665. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  666. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  667. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  668. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  669. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  670. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  671. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  672. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  673. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  674. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  675. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  676. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  677. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  678. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  679. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  680. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  681. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  682. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  683. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  684. package/mobile/src/components/Calculator/Calculator.tsx +8 -8
  685. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  686. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  687. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  688. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  689. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  690. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  691. package/mobile/src/components/Calculator/constants.ts +41 -4
  692. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  693. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  694. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  695. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  696. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  697. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  698. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  699. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  700. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  701. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  702. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  703. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  704. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  705. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  706. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  707. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  708. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  709. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  710. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  711. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  712. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  713. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  714. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  715. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  716. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  717. package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
  718. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  719. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  720. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  721. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  722. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  723. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  724. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  725. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  726. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  727. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  728. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
  729. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
  730. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  731. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  732. package/mobile/src/components/Tile/Tile.example.json +0 -1
  733. package/mobile/src/components/Tile/Tile.tsx +6 -3
  734. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  735. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  736. package/mobile/src/icons/IconName.ts +4 -4
  737. package/mobile/src/icons/Logo.svg +7 -0
  738. package/mobile/src/model/Picture.ts +5 -3
  739. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
  740. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  741. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  742. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  743. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  744. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  745. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  746. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  747. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  748. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  749. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  750. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  751. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  752. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  753. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  754. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  755. package/package.json +2 -1
  756. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  757. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  758. package/src/components/Calculator/Calculator.tsx +8 -8
  759. package/src/components/Calculator/CalculatorContent.ts +14 -4
  760. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  761. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  762. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  763. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  764. package/src/components/Calculator/Rate.tsx +22 -0
  765. package/src/components/Calculator/constants.ts +41 -4
  766. package/src/components/Calculator/getBonus.ts +38 -0
  767. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  768. package/src/components/Calculator/getDefaultSum.ts +2 -5
  769. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  770. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  771. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  772. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  773. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  774. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  775. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  776. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  777. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  778. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  779. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  780. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  781. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  782. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  783. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  784. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  785. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  786. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  787. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  788. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  789. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  790. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  791. package/src/components/Footer/MediaButton.tsx +2 -7
  792. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  793. package/src/components/Footer/TextInformation.tsx +2 -22
  794. package/src/components/Footer/TextInformationLink.tsx +23 -0
  795. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  796. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  797. package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  798. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  799. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  800. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  801. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  802. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  803. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  804. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  805. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  806. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  807. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  808. package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
  809. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
  810. package/src/components/StepsBlock/StepsBlock.tsx +10 -8
  811. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  812. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  813. package/src/components/TextBlock/TextBlock.tsx +1 -1
  814. package/src/components/Tile/Tile.example.json +0 -1
  815. package/src/components/Tile/Tile.tsx +6 -3
  816. package/src/content-page-repository/transformPicture.ts +7 -5
  817. package/src/hooks/useExchangeRates.ts +6 -7
  818. package/src/icons/IconName.ts +4 -1
  819. package/src/icons/Logo.svg +7 -0
  820. package/src/model/Picture.ts +5 -3
  821. package/src/services/sitemap/findActiveSubItem.ts +2 -3
  822. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  823. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  824. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  825. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  826. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  827. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  828. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  829. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  830. package/src/ui-kit/Heading/Heading.tsx +1 -1
  831. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  832. package/src/ui-kit/Img/Img.tsx +6 -60
  833. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  834. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  835. package/src/ui-kit/Img/ImgProps.ts +1 -0
  836. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  837. package/src/ui-kit/Logo/Logo.tsx +5 -11
  838. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  839. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  840. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  841. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  842. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  843. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  844. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  845. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  846. package/dist/components/Calculator/renderRate.d.ts +0 -8
  847. package/dist/components/Calculator/renderRate.js +0 -9
  848. package/dist/components/Calculator/renderRate.js.map +0 -1
  849. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  850. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  851. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  852. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  853. package/dist/hooks/useCreditCalculatorData.js +0 -15
  854. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  855. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  856. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  857. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  858. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  859. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  860. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  861. package/lib/components/Calculator/renderRate.d.ts +0 -8
  862. package/lib/components/Calculator/renderRate.js +0 -6
  863. package/lib/components/Calculator/renderRate.js.map +0 -1
  864. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  865. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  866. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  867. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  868. package/lib/hooks/useCreditCalculatorData.js +0 -12
  869. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  870. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  871. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  872. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  873. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  874. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  875. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  876. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  877. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  878. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  879. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  880. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  881. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  882. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  883. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  884. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  885. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  886. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  887. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  888. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  889. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  890. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  891. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  892. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  893. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  894. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  895. package/src/components/Calculator/renderRate.tsx +0 -22
  896. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  897. package/src/hooks/useCreditCalculatorData.ts +0 -20
  898. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -25,6 +25,8 @@ export const StepsBlock = JSX<StepsBlockProps>(
25
25
  }) => {
26
26
  const styleMap = getStyleMap(version);
27
27
  const shortGaps = steps.length > 3;
28
+ const stepGap = shortGaps ? 'gap-x-3' : 'gap-x-[101px]';
29
+ const lineOpacity = showLines ? '' : 'opacity-0';
28
30
 
29
31
  return (
30
32
  <BlockWrapper
@@ -38,17 +40,17 @@ export const StepsBlock = JSX<StepsBlockProps>(
38
40
  ].join(' ')}
39
41
  {...rest}
40
42
  >
41
- <Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
43
+ {title ? (
44
+ <Heading headingType="h2" className="max-w-[47rem] text-center mb-9" title={title} />
45
+ ) : null}
42
46
  {steps?.length ? (
43
- <div className={`box-border ${title ? 'mt-9' : ''}`}>
47
+ <div className="box-border">
44
48
  <div className="flex items-center px-[88px]">
45
- {joinList(
46
- <div
47
- className={`h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}`}
48
- />,
49
- )(steps.map(renderStepIcon(styleMap)))}
49
+ {joinList(<div className={`h-0.5 w-full bg-secondary-light ${lineOpacity}`} />)(
50
+ steps.map(renderStepIcon(styleMap)),
51
+ )}
50
52
  </div>
51
- <div className={`flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`}>
53
+ <div className={`flex justify-between ${stepGap}`}>
52
54
  {steps.map(renderStepTitle(styleMap, Boolean(button?.text)))}
53
55
  </div>
54
56
  </div>
@@ -1,14 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
+ import { Heading } from '../../ui-kit/Heading/Heading';
3
4
  import type {
4
5
  TariffsTableCellData,
5
6
  TariffsTableColumn,
6
7
  TariffsTableContent,
7
8
  TariffsTableRowHeader,
8
9
  } from './TariffsTableContent';
9
- import { Heading } from '../../ui-kit/Heading/Heading';
10
- import { TariffsTableVertical } from './TariffsTableVertical';
11
10
  import { TariffsTableHorizontal } from './TariffsTableHorizontal';
11
+ import { TariffsTableVertical } from './TariffsTableVertical';
12
12
 
13
13
  export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {}
14
14
 
@@ -16,17 +16,14 @@ export const TariffsTable = JSX<TariffsTableProps>(
16
16
  ({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
17
17
  const colData = getColData(columns);
18
18
  const tiles = getTiles(rowHeaders, colData);
19
+ const headingMargin = description ? 'mb-2' : 'mb-5';
19
20
 
20
21
  return (
21
22
  <section
22
23
  className={`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`}
23
24
  >
24
25
  {title ? (
25
- <Heading
26
- headingType="h2"
27
- className={`text-center ${description ? 'mb-2' : 'mb-5'}`}
28
- title={title}
29
- />
26
+ <Heading headingType="h2" className={`text-center ${headingMargin}`} title={title} />
30
27
  ) : null}
31
28
  {description ? <div className="mb-5 text-center text-m-md">{description}</div> : null}
32
29
  {tiles?.length ? renderOrientationTable(orientation, tiles, context) : null}
@@ -40,6 +40,7 @@ export const TextBlock = JSX<TextBlockProps>(
40
40
  isDotted = true,
41
41
  }) => {
42
42
  const textBlockStyleMap = textBlockStyleMaps[blockVersion];
43
+ const listBlockVersion = blockVersion === 'secondary' ? 'secondary' : 'gray';
43
44
 
44
45
  return (
45
46
  <section
@@ -59,7 +60,7 @@ export const TextBlock = JSX<TextBlockProps>(
59
60
  className="mt-1 text-m-md"
60
61
  items={items}
61
62
  isDotted={isDotted}
62
- version={blockVersion === 'secondary' ? 'secondary' : 'gray'}
63
+ version={listBlockVersion}
63
64
  />
64
65
  ) : null}
65
66
  </div>
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { Picture } from '../../model/Picture';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
3
  import type { UniBlockProps } from '../../types';
4
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import type { TextBlockContent, TextBlockVersion } from './TextBlockContent';
7
7
 
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "title": "Плитка",
3
3
  "headingType": "h3",
4
- "titleSize": "M",
5
4
  "description": "Описание",
6
5
  "image": {
7
6
  "format": "webp",
@@ -37,6 +37,8 @@ export const Tile = JSX<TileProps>((props) => {
37
37
  ...rest
38
38
  } = props;
39
39
 
40
+ const headingTextClassName = version === 'primary' ? 'text-primary-text' : '';
41
+
40
42
  return (
41
43
  <BlockWrapper
42
44
  context={context}
@@ -53,8 +55,7 @@ export const Tile = JSX<TileProps>((props) => {
53
55
  headingType={headingType}
54
56
  as="h3"
55
57
  title={title}
56
- className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
57
- ${version === 'primary' ? 'text-primary-text' : ''}`}
58
+ className={`whitespace-pre-wrap max-w-[600px] mb-3 ${headingTextClassName}`}
58
59
  />
59
60
  ) : null
60
61
  }
@@ -83,12 +84,14 @@ export const Tile = JSX<TileProps>((props) => {
83
84
  });
84
85
 
85
86
  function renderList(items, version, isDotted: boolean) {
87
+ const listVersion = version === 'primary' ? 'tile' : 'tile-white';
88
+
86
89
  return items?.length ? (
87
90
  <List
88
91
  items={items}
89
92
  isDotted={isDotted}
90
93
  itemClassName="text-title-2xs font-light mt-2"
91
- version={version === 'primary' ? 'tile' : 'tile-white'}
94
+ version={listVersion}
92
95
  />
93
96
  ) : null;
94
97
  }
@@ -35,7 +35,8 @@ async function transformImg(
35
35
  ): Promise<string> {
36
36
  const { contentDir, publicDir, format, options, size } = transformationOptions;
37
37
 
38
- const imgPath = `${path.dirname(pagePath)}/${src}`;
38
+ const pageDir = path.dirname(pagePath);
39
+ const imgPath = `${pageDir}/${src}`;
39
40
  let chain = sharp(imgPath);
40
41
  if (size) {
41
42
  chain = chain.resize(size?.width, size?.height, {
@@ -70,9 +71,10 @@ function transformSrc(src: string, { format, size }: TransformationOptions & Img
70
71
  return src;
71
72
  }
72
73
 
73
- const suffix = [size?.width, size?.height].filter(Boolean).join('-');
74
+ const fileName = path.basename(src, path.extname(src));
75
+ const fileSizes = [size?.width, size?.height].filter(Boolean);
76
+ const suffix = fileSizes.length ? `-${fileSizes.join('-')}` : '';
77
+ const ext = String(format) || path.extname(src);
74
78
 
75
- return `${path.basename(src, path.extname(src))}${suffix ? `-${suffix}` : ''}.${
76
- String(format) || path.extname(src)
77
- }`;
79
+ return `${fileName}${suffix}.${ext}`;
78
80
  }
@@ -28,6 +28,8 @@ async function fetchExchangeRates(): Promise<any | undefined> {
28
28
  return await response.json();
29
29
  } catch (err) {
30
30
  console.error(err);
31
+
32
+ return Promise.resolve();
31
33
  }
32
34
  }
33
35
 
@@ -70,19 +72,16 @@ interface FormatRatesData {
70
72
  const getCurrencyListByRate = (currencyRates: RatesData[]) =>
71
73
  currencyRates.reduce((result: FormatRatesData[], _) => {
72
74
  const currencyInfo = _['currency_first'];
73
- if (!validateRate(_['rate_buy']) && !validateRate(_['rate_sell'])) {
74
- return result;
75
- }
76
- const currencyCode = currencyInfo.code;
75
+ const currencyCode = currencyInfo?.code;
77
76
  if (!result.some((i) => i.code === currencyCode)) {
78
77
  result.push({
79
78
  code: currencyCode,
80
- buy: Number(_.rate_buy),
81
- sell: Number(_.rate_sell),
79
+ buy: roundRate(Number(_.rate_buy)),
80
+ sell: roundRate(Number(_.rate_sell)),
82
81
  });
83
82
  }
84
83
 
85
84
  return result;
86
85
  }, []);
87
86
 
88
- const validateRate = (value) => Math.round(value) > 0;
87
+ const roundRate = (value) => Math.round(value * 1000) / 1000;
@@ -45,6 +45,7 @@ export enum IconMap {
45
45
  InterestGrowthIcon = 'InterestGrowthIcon',
46
46
  InterestIcon = 'InterestIcon',
47
47
  JCBIcon = 'JCBIcon',
48
+ Logo = 'Logo',
48
49
  LoupeIcon = 'LoupeIcon',
49
50
  MasterCardIcon = 'MasterCardIcon',
50
51
  MinusIcon = 'MinusIcon',
@@ -127,6 +128,7 @@ export enum IconTitleMap {
127
128
  InterestGrowthIcon = 'Диаграмма роста',
128
129
  InterestIcon = 'Скидка',
129
130
  JCBIcon = 'JCB',
131
+ Logo = 'Logo',
130
132
  LoupeIcon = 'Лупа',
131
133
  MasterCardIcon = 'MasterCard',
132
134
  MinusIcon = 'Минус',
@@ -170,7 +172,7 @@ export enum IconTitleMap {
170
172
  * @title Иконка
171
173
  * @enumNames [
172
174
  * "",
173
- * 'Деньги', 'Самолет', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка', 'Стрелка вверх', 'Банкомат', 'Банк', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кино', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Диаграмма роста', 'Скидка', 'JCB', 'Лупа', 'MasterCard', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Лого «Telegram»', 'UnionPay', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
175
+ * 'Деньги', 'Самолет', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка', 'Стрелка вверх', 'Банкомат', 'Банк', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кино', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'MasterCard', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Лого «Telegram»', 'UnionPay', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
174
176
  * ]
175
177
  */
176
178
  export type IconName =
@@ -218,6 +220,7 @@ export type IconName =
218
220
  | 'InterestGrowthIcon'
219
221
  | 'InterestIcon'
220
222
  | 'JCBIcon'
223
+ | 'Logo'
221
224
  | 'LoupeIcon'
222
225
  | 'MasterCardIcon'
223
226
  | 'MinusIcon'
@@ -0,0 +1,7 @@
1
+ <svg title="Logo" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 40 45">
2
+ <path fill="currentColor" d="m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z"/>,
3
+ <path fill="currentColor" d="M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z"/>,
4
+ <path fill="currentColor" d="M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z"/>,
5
+ <path fill="currentColor" d="M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z"/>,
6
+ <path fill="currentColor" d="M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"/>
7
+ </svg>
@@ -1,6 +1,8 @@
1
1
  import type { IconName } from '../icons/IconName';
2
2
  import type { IconVersion } from './IconVersion';
3
3
 
4
+ export type ImgFormats = 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
5
+
4
6
  export interface Img {
5
7
  /** @title Картинка */
6
8
  src?: string;
@@ -12,9 +14,9 @@ export interface Img {
12
14
 
13
15
  /**
14
16
  * @title Брейкпоинт
15
- * @enumNames ["1919px и меньше", "1439px и меньше", "1279px и меньше"]
17
+ * @enumNames ["Меньше 1920px", "Меньше 1440px", "Меньше 1280px"]
16
18
  */
17
- export type MediaQuery = '(max-width: 1919px)' | '(max-width: 1439px)' | '(max-width: 1279px)';
19
+ export type MediaQuery = 1919 | 1439 | 1279;
18
20
 
19
21
  export interface ImgSource {
20
22
  /** @title Иконка */
@@ -23,7 +25,7 @@ export interface ImgSource {
23
25
  /** @title Картинка */
24
26
  src?: string;
25
27
  /** @title Формат */
26
- format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
28
+ format?: ImgFormats;
27
29
  /** @hidden */
28
30
  options?: Record<string, any>;
29
31
  media?: MediaQuery;
@@ -7,9 +7,8 @@ export const findActiveSubItem =
7
7
  (router: Router) =>
8
8
  <T extends LinkProps>(items: T[] = []): T | null => {
9
9
  const possibleActiveSubItems = items?.filter(isSubItemActive(router));
10
- const activeSubItem = possibleActiveSubItems?.length
10
+
11
+ return possibleActiveSubItems?.length
11
12
  ? maxBy((_: T) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
12
13
  : null;
13
-
14
- return activeSubItem;
15
14
  };
@@ -17,12 +17,15 @@ export const renderBlocksList = ({ blocks, context, className = '' }: Embeddable
17
17
  const renderBlock =
18
18
  ({ context, className }: UniBlockProps) =>
19
19
  (block: BlockDef, i: number) => {
20
- const type = block?.blockListType;
21
- if (!type || !(type in EmbeddableBlocks)) {
20
+ if (!block) {
22
21
  return null;
23
22
  }
24
23
 
25
- const { style, ...rest } = block;
24
+ const { style, blockListType: type, ...rest } = block;
25
+
26
+ if (!type || !(type in EmbeddableBlocks)) {
27
+ return null;
28
+ }
26
29
 
27
30
  const classNameBlock = style2className(style);
28
31
  const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
@@ -22,7 +22,7 @@ export const ButtonSection = JSX<ButtonSectionProps>(({ context, className = '',
22
22
 
23
23
  function renderButton({ icon, iconRight, ...button }: ButtonWithIconProps, i: number) {
24
24
  if (!button?.text) {
25
- return;
25
+ return null;
26
26
  }
27
27
 
28
28
  return icon ? (
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { CheckboxProps } from './CheckboxProps';
3
2
  import { SVG } from '../SVG';
3
+ import type { CheckboxProps } from './CheckboxProps';
4
4
 
5
5
  const CHECK_PATHS = [
6
6
  {
@@ -11,27 +11,32 @@ const CHECK_PATHS = [
11
11
  },
12
12
  ];
13
13
 
14
- export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className }) => (
14
+ export const Checkbox = JSX<CheckboxProps>(({ className, text, checked, isRadio, onChange }) => (
15
15
  <div className={className}>
16
16
  <label className="flex items-center cursor-pointer relative">
17
17
  <input
18
- className={`peer appearance-none w-5 h-5 border-solid border ${
19
- checked ? 'border-black' : 'border-main-stroke'
20
- } rounded checked:bg-primary-main checked:border-primary-main m-0`}
18
+ className={`peer appearance-none w-5 h-5 border-solid
19
+ ${isRadio ? 'rounded-full border-2' : 'rounded checked:bg-primary-main border'}
20
+ ${checked ? 'border-black' : 'border-main-stroke'}
21
+ checked:border-primary-main m-0`}
21
22
  type="checkbox"
22
23
  onChange={(e) => {
23
24
  onChange(e.target.checked);
24
25
  }}
25
26
  checked={checked}
26
27
  />
27
- <SVG
28
- paths={CHECK_PATHS}
29
- className="hidden absolute left-1 ml-px peer-checked:block"
30
- width="11"
31
- height="9"
32
- fill="white"
33
- viewBox="0 0 11 9"
34
- />
28
+ {isRadio ? (
29
+ <div className="left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"></div>
30
+ ) : (
31
+ <SVG
32
+ paths={CHECK_PATHS}
33
+ className="hidden absolute left-1 ml-px peer-checked:block"
34
+ width="11"
35
+ height="9"
36
+ fill="white"
37
+ viewBox="0 0 11 9"
38
+ />
39
+ )}
35
40
  {text ? <span className="font-sans ml-3 text-m-base cursor-pointer">{text}</span> : null}
36
41
  </label>
37
42
  </div>
@@ -1,6 +1,7 @@
1
1
  export interface CheckboxProps {
2
2
  text?: string;
3
3
  checked: boolean;
4
- onChange: (value: boolean) => void;
5
4
  className?: string;
5
+ isRadio?: boolean;
6
+ onChange: (value: boolean) => void;
6
7
  }
@@ -46,19 +46,21 @@ export const Foldable = JSX<FoldableProps>(
46
46
  initialState: isUnfolded,
47
47
  });
48
48
 
49
+ const buttonClassName =
50
+ foldButtonClasses ||
51
+ 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer';
52
+ const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
53
+
49
54
  return blocks ? (
50
55
  <div>
51
56
  {renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses })}
52
57
  {hiddenBlocksNum ? (
53
58
  <button
54
- className={
55
- foldButtonClasses ||
56
- 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer'
57
- }
59
+ className={buttonClassName}
58
60
  data-theme={foldButtonDataTheme}
59
61
  onClick={handleToggle}
60
62
  >
61
- <span className="pr-3">{isActive ? 'Скрыть' : foldButtonLabel}</span>
63
+ <span className="pr-3">{getFoldButtonLabel}</span>
62
64
  {icon ? <Icon name={icon} iconVersion="white" width="20" height="20" asSVG /> : null}
63
65
  </button>
64
66
  ) : null}
@@ -8,12 +8,10 @@ const TEXT_CLASSES = 'font-sans font-normal text-sm';
8
8
  const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
9
9
 
10
10
  export const HeaderItem = JSX<HeaderItemProps>(
11
- ({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
11
+ ({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
12
12
  return (
13
13
  <a
14
- className={`relative inline-block bg-transparent text-center no-underline ${
15
- className || ''
16
- }`}
14
+ className={`relative inline-block bg-transparent text-center no-underline ${className}`}
17
15
  href={href}
18
16
  target={target}
19
17
  onClick={onClick}
@@ -25,7 +23,7 @@ export const HeaderItem = JSX<HeaderItemProps>(
25
23
  },
26
24
  );
27
25
 
28
- const getTextClasses = (bgColor: BgColorVersion, active?: boolean) => {
26
+ const getTextClasses = (bgColor: BgColorVersion, active = false) => {
29
27
  let classes = 'text-white';
30
28
  if (bgColor === 'bg-white') {
31
29
  classes = active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main';
@@ -34,7 +32,7 @@ const getTextClasses = (bgColor: BgColorVersion, active?: boolean) => {
34
32
  return `${classes} ${TEXT_CLASSES}`;
35
33
  };
36
34
 
37
- const getBorderClasses = (bgColor: BgColorVersion, active?: boolean) => {
35
+ const getBorderClasses = (bgColor: BgColorVersion, active = false) => {
38
36
  if (!active) {
39
37
  return BORDER_CLASSES;
40
38
  }
@@ -30,7 +30,7 @@ export const HeaderItem = JSX<TopItemProps>(
30
30
  ),
31
31
  );
32
32
 
33
- const getTextClasses = (bgColor: BgColorVersion, active?: boolean) => {
33
+ const getTextClasses = (bgColor: BgColorVersion, active = false) => {
34
34
  let classes = 'text-white';
35
35
  if (bgColor === 'bg-white') {
36
36
  classes = active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main';
@@ -39,7 +39,7 @@ const getTextClasses = (bgColor: BgColorVersion, active?: boolean) => {
39
39
  return `${classes} ${TEXT_CLASSES}`;
40
40
  };
41
41
 
42
- const getBorderClasses = (bgColor: BgColorVersion, active?: boolean) => {
42
+ const getBorderClasses = (bgColor: BgColorVersion, active = false) => {
43
43
  if (!active) {
44
44
  return BORDER_CLASSES;
45
45
  }
@@ -19,7 +19,7 @@ export const Heading = JSX<HeadingProps>((props) => {
19
19
  const { className, headingType, title, as } = props;
20
20
 
21
21
  if (!headingType) {
22
- return;
22
+ return null;
23
23
  }
24
24
 
25
25
  const Tag = as || headingType;
@@ -19,7 +19,7 @@ export const Heading = JSX<HeadingProps>((props) => {
19
19
  const { className = '', headingType, title, as } = props;
20
20
 
21
21
  if (!headingType) {
22
- return;
22
+ return null;
23
23
  }
24
24
 
25
25
  const Tag = as || headingType;
@@ -1,75 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Icon } from '../Icon/Icon';
3
- import { getIconVersion } from './getIconVersion';
4
- import type { ImgSource, Picture } from '../../model/Picture';
2
+ import { ImgInner } from './ImgInner';
5
3
 
6
4
  import type { Image, ImageProps } from './ImgProps';
7
5
 
8
- export const Img = JSX<ImageProps<Image>>(
9
- ({ className = '', image, imageClassName = '', ...iconProps }) => {
10
- // backwards compatibility with existing icons in usage
11
- const icon = typeof image === 'string' ? image : image?.icon;
12
- if (icon || icon === '') {
13
- return (
14
- <Icon
15
- className={className}
16
- imageClassName={imageClassName}
17
- iconVersion={getIconVersion(image)}
18
- name={icon}
19
- {...iconProps}
20
- />
21
- );
22
- }
23
-
24
- return (
25
- <ImgAsPicture
26
- className={className}
27
- imageClassName={imageClassName}
28
- image={image as Picture}
29
- />
30
- );
31
- },
32
- );
33
-
34
- export const ImgAsPicture = JSX<ImageProps<Picture>>(
35
- ({ className = '', image, imageClassName = '' }) => {
36
- if (!image) {
37
- return null;
38
- }
39
-
40
- return (
41
- <picture className={className}>
42
- {image?.sources?.length
43
- ? image.sources.map(({ src, format }, index) => (
44
- <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
45
- ))
46
- : null}
47
- {renderImg(image, imageClassName)}
48
- </picture>
49
- );
50
- },
51
- );
52
-
53
- const renderImg = (image: Picture, imageClassName = '') => {
54
- const style = {
55
- width: image.size?.width ? `${image.size?.width}px` : '100%',
56
- height: image.size?.height ? `${image.size?.height}px` : '100%',
57
- };
58
- const title = image.title || '';
59
- const alt = image.alt || image.title;
60
-
61
- return (
62
- <img
63
- src={image.src}
64
- className={`m-auto ${imageClassName}`}
65
- alt={alt}
66
- title={title}
67
- style={style}
68
- {...image.size}
69
- />
70
- );
71
- };
72
-
73
- export function formatToMimeType(format: ImgSource['format']): string | undefined {
74
- return format ? `image/${String(format)}` : undefined;
75
- }
6
+ export const Img = JSX<ImageProps<Image>>(({ className = '', image }) => {
7
+ return <ImgInner className={className} image={image} isMobile={true} />;
8
+ });
@@ -1,71 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ImgSource, Picture } from '../../model/Picture';
3
- import { Icon } from '../Icon/Icon';
4
- import { getIconVersion } from './getIconVersion';
2
+ import { ImgInner } from './ImgInner';
3
+
5
4
  import type { Image, ImageProps } from './ImgProps';
6
5
 
7
6
  export const Img = JSX<ImageProps<Image>>(
8
- ({ className = '', image, imageClassName = '', ...iconProps }) => {
9
- if (!image) {
10
- return null;
11
- }
12
-
13
- // backwards compatibility with existing icons in usage
14
- const icon = typeof image === 'string' ? image : image.icon;
15
- if (icon || icon === '') {
16
- return icon.length ? (
17
- <Icon
18
- className={className}
19
- imageClassName={imageClassName}
20
- iconVersion={getIconVersion(image)}
21
- name={icon}
22
- {...iconProps}
23
- />
24
- ) : null;
25
- }
26
-
7
+ ({ className = '', imageClassName, image, ...iconProps }) => {
27
8
  return (
28
- <ImgAsPicture
9
+ <ImgInner
29
10
  className={className}
30
11
  imageClassName={imageClassName}
31
- image={image as Picture}
12
+ image={image}
13
+ {...iconProps}
32
14
  />
33
15
  );
34
16
  },
35
17
  );
36
-
37
- export const ImgAsPicture = JSX<ImageProps<Picture>>(
38
- ({ className = '', image, imageClassName = '' }) => {
39
- if (!image) {
40
- return null;
41
- }
42
-
43
- return (
44
- <picture className={`flex-none ${className}`}>
45
- {image?.sources?.length
46
- ? image.sources.map(({ src, format, media, size }, index) => (
47
- <source
48
- key={`${index}_${src}`}
49
- srcSet={src}
50
- type={formatToMimeType(format)}
51
- media={media}
52
- {...size}
53
- />
54
- ))
55
- : null}
56
- {renderImg(image, imageClassName)}
57
- </picture>
58
- );
59
- },
60
- );
61
-
62
- const renderImg = (image: Picture, imageClassName = '') => {
63
- const title = image.title || '';
64
- const alt = image.alt || image.title;
65
-
66
- return <img src={image.src} className={imageClassName} alt={alt} title={title} {...image.size} />;
67
- };
68
-
69
- export function formatToMimeType(format: ImgSource['format']): string | undefined {
70
- return format ? `image/${String(format)}` : undefined;
71
- }