@redneckz/wildless-cms-uni-blocks 0.3.83 → 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 (908) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +390 -324
  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/BlockWrapper.js +2 -2
  141. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  142. package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  143. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  144. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  145. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  146. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  147. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  148. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  149. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  150. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  151. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  152. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  153. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  154. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  155. package/dist/ui-kit/Heading/Heading.js +1 -1
  156. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  157. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  158. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  159. package/dist/ui-kit/Img/Img.d.ts +0 -3
  160. package/dist/ui-kit/Img/Img.js +4 -30
  161. package/dist/ui-kit/Img/Img.js.map +1 -1
  162. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  163. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  164. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  165. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  166. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  167. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  168. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  169. package/dist/ui-kit/Img/ImgInner.js +19 -0
  170. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  171. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  172. package/dist/ui-kit/Logo/Logo.js +1 -9
  173. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  174. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  175. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  176. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  177. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  178. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  179. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  180. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  181. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  182. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  183. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  184. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  185. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  186. package/lib/common.css +1 -1
  187. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  188. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  189. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  190. package/lib/components/Calculator/Calculator.js +7 -7
  191. package/lib/components/Calculator/Calculator.js.map +1 -1
  192. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  193. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  194. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  195. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  196. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  197. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  198. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  199. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  200. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  201. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  202. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  203. package/lib/components/Calculator/Rate.d.ts +7 -0
  204. package/lib/components/Calculator/Rate.js +4 -0
  205. package/lib/components/Calculator/Rate.js.map +1 -0
  206. package/lib/components/Calculator/constants.d.ts +13 -4
  207. package/lib/components/Calculator/constants.js +33 -4
  208. package/lib/components/Calculator/constants.js.map +1 -1
  209. package/lib/components/Calculator/getBonus.d.ts +2 -0
  210. package/lib/components/Calculator/getBonus.js +13 -0
  211. package/lib/components/Calculator/getBonus.js.map +1 -0
  212. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  213. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  214. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  215. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  216. package/lib/components/Calculator/getDefaultSum.js +1 -3
  217. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  218. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  219. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  220. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  221. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  222. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  223. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  224. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  225. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  226. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  227. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  228. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  229. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  230. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  231. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  232. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  233. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  234. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  235. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  236. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  237. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  238. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  239. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  240. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  241. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  242. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  243. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  244. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  245. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  246. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  247. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  248. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  249. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  250. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  251. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  252. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  253. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  254. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  255. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  256. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  257. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  258. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  259. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  260. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  261. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  262. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  263. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  264. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  265. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  266. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  267. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  268. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  269. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  270. package/lib/components/Footer/MediaButton.js +2 -1
  271. package/lib/components/Footer/MediaButton.js.map +1 -1
  272. package/lib/components/Footer/TextInformation.js +2 -2
  273. package/lib/components/Footer/TextInformation.js.map +1 -1
  274. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  275. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  276. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  277. package/lib/components/Footer/TextInformationLink.js +4 -0
  278. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  279. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  280. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  281. package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  282. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  283. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  284. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  285. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  286. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  287. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  288. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  289. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  290. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  291. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  292. package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  293. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  294. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  295. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  296. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  297. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  298. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  299. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  300. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  301. package/lib/components/StepsBlock/StepsBlock.js +3 -1
  302. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  303. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  304. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  305. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  306. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  307. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  308. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  309. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  310. package/lib/components/Tile/Tile.js +4 -3
  311. package/lib/components/Tile/Tile.js.map +1 -1
  312. package/lib/content-page-repository/transformPicture.js +7 -3
  313. package/lib/content-page-repository/transformPicture.js.map +1 -1
  314. package/lib/hooks/useExchangeRates.js +5 -7
  315. package/lib/hooks/useExchangeRates.js.map +1 -1
  316. package/lib/icons/IconName.d.ts +4 -2
  317. package/lib/icons/IconName.js +2 -0
  318. package/lib/icons/IconName.js.map +1 -1
  319. package/lib/model/Picture.d.ts +4 -3
  320. package/lib/services/sitemap/findActiveSubItem.js +1 -2
  321. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  322. package/lib/ui-kit/BlockWrapper.js +2 -2
  323. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  324. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  325. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  326. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  327. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  328. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  329. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  330. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  331. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  332. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  333. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  334. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  335. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  336. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  337. package/lib/ui-kit/Heading/Heading.js +1 -1
  338. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  339. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  340. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  341. package/lib/ui-kit/Img/Img.d.ts +0 -3
  342. package/lib/ui-kit/Img/Img.js +4 -29
  343. package/lib/ui-kit/Img/Img.js.map +1 -1
  344. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  345. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  346. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  347. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  348. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  349. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  350. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  351. package/lib/ui-kit/Img/ImgInner.js +17 -0
  352. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  353. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  354. package/lib/ui-kit/Logo/Logo.js +1 -9
  355. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  356. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  357. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  358. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  359. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  360. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  361. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  362. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  363. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  364. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  365. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  366. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  367. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  368. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  369. package/mobile/bundle/bundle.umd.js +117 -93
  370. package/mobile/bundle/bundle.umd.min.js +1 -1
  371. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  372. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  373. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  374. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  375. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  376. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  377. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  378. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  379. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  380. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  381. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  382. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  383. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  384. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  385. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  386. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  387. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  388. package/mobile/dist/components/Calculator/Rate.js +6 -0
  389. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  390. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  391. package/mobile/dist/components/Calculator/constants.js +34 -5
  392. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  393. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  394. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  395. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  396. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  397. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  398. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  399. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  400. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  401. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  402. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  403. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  404. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  405. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  406. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  407. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  408. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  409. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  410. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  411. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  412. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  413. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  414. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  415. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  416. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  417. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  418. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  419. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  420. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  421. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  422. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  423. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  424. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  425. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  426. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  427. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  428. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  429. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  430. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  431. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  432. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  433. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  434. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  435. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  436. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  437. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  438. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  439. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  440. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  442. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  443. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  444. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  445. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  446. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  447. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  448. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  449. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  450. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  451. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  452. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  453. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  454. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  455. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  456. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  457. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  458. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  459. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  460. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  461. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  462. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  463. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  464. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  465. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  466. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  467. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  468. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  469. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  470. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  471. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  472. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  473. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  474. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  475. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  476. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  477. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  478. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  479. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  480. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  481. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  482. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  483. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  484. package/mobile/dist/components/Tile/Tile.js +4 -3
  485. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  486. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  487. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  488. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  489. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  490. package/mobile/dist/icons/IconName.d.ts +4 -2
  491. package/mobile/dist/icons/IconName.js +2 -0
  492. package/mobile/dist/icons/IconName.js.map +1 -1
  493. package/mobile/dist/model/Picture.d.ts +4 -3
  494. package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
  495. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  496. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  497. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  498. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  499. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  500. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  501. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  502. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  503. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  504. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  505. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  506. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  507. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  508. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  509. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  510. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  511. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  512. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  513. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  514. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  515. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  516. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  517. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  518. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  519. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  520. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  521. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  522. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  523. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  524. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  525. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  526. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  527. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  528. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  529. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  530. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  531. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  532. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  533. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  534. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  535. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  536. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  537. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  538. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  539. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  540. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  541. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  542. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  543. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  544. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  545. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  546. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  547. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  548. package/mobile/lib/components/Calculator/Rate.js +4 -0
  549. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  550. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  551. package/mobile/lib/components/Calculator/constants.js +33 -4
  552. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  553. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  554. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  555. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  556. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  557. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  558. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  559. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  560. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  561. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  562. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  563. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  564. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  565. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  566. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  567. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  568. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  569. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  570. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  571. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  572. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  573. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  574. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  575. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  576. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  577. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  578. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  579. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  580. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  581. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  582. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  583. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  584. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  585. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  586. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  587. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  588. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  589. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  590. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  591. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  592. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  593. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  594. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  595. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  596. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  597. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  598. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  599. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  600. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  601. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  602. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  603. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  604. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  605. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  606. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  607. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  608. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  609. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  610. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  611. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  612. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  613. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  614. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  615. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  616. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  617. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  618. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  619. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  620. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  621. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  622. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  623. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  624. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  625. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  626. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  627. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  628. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  629. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  630. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  631. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  632. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  633. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  634. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  635. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  636. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  637. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  638. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  639. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  640. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  641. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  642. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  643. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  644. package/mobile/lib/components/Tile/Tile.js +4 -3
  645. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  646. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  647. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  648. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  649. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  650. package/mobile/lib/icons/IconName.d.ts +4 -2
  651. package/mobile/lib/icons/IconName.js +2 -0
  652. package/mobile/lib/icons/IconName.js.map +1 -1
  653. package/mobile/lib/model/Picture.d.ts +4 -3
  654. package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
  655. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  656. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  657. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  658. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  659. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  660. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  661. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  662. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  663. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  664. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  665. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  666. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  667. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  668. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  669. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  670. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  671. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  672. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  673. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  674. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  675. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  676. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  677. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  678. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  679. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  680. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  681. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  682. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  683. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  684. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  685. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  686. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  687. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  688. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  689. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  690. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  691. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  692. package/mobile/src/components/Calculator/Calculator.tsx +8 -8
  693. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  694. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  695. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  696. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  697. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  698. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  699. package/mobile/src/components/Calculator/constants.ts +41 -4
  700. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  701. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  702. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  703. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  704. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  705. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  706. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  707. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  708. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  709. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  710. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  711. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  712. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  713. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  714. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  715. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  716. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  717. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  718. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  719. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  720. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  721. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  722. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  723. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  724. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  725. package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
  726. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  727. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  728. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  729. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  730. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  731. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  732. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  733. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  734. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  735. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  736. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
  737. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
  738. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  739. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  740. package/mobile/src/components/Tile/Tile.example.json +0 -1
  741. package/mobile/src/components/Tile/Tile.tsx +6 -3
  742. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  743. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  744. package/mobile/src/icons/IconName.ts +4 -4
  745. package/mobile/src/icons/Logo.svg +7 -0
  746. package/mobile/src/model/Picture.ts +5 -3
  747. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
  748. package/mobile/src/ui-kit/BlockWrapper.tsx +2 -5
  749. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  750. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  751. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  752. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  753. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  754. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  755. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  756. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  757. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  758. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  759. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  760. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  761. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  762. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  763. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  764. package/package.json +2 -1
  765. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  766. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  767. package/src/components/Calculator/Calculator.tsx +8 -8
  768. package/src/components/Calculator/CalculatorContent.ts +14 -4
  769. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  770. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  771. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  772. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  773. package/src/components/Calculator/Rate.tsx +22 -0
  774. package/src/components/Calculator/constants.ts +41 -4
  775. package/src/components/Calculator/getBonus.ts +38 -0
  776. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  777. package/src/components/Calculator/getDefaultSum.ts +2 -5
  778. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  779. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  780. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  781. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  782. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  783. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  784. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  785. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  786. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  787. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  788. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  789. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  790. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  791. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  792. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  793. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  794. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  795. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  796. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  797. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  798. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  799. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  800. package/src/components/Footer/MediaButton.tsx +2 -7
  801. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  802. package/src/components/Footer/TextInformation.tsx +2 -22
  803. package/src/components/Footer/TextInformationLink.tsx +23 -0
  804. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  805. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  806. package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  807. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  808. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  809. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  810. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  811. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  812. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  813. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  814. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  815. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  816. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  817. package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
  818. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
  819. package/src/components/StepsBlock/StepsBlock.tsx +10 -8
  820. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  821. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  822. package/src/components/TextBlock/TextBlock.tsx +1 -1
  823. package/src/components/Tile/Tile.example.json +0 -1
  824. package/src/components/Tile/Tile.tsx +6 -3
  825. package/src/content-page-repository/transformPicture.ts +7 -5
  826. package/src/hooks/useExchangeRates.ts +6 -7
  827. package/src/icons/IconName.ts +4 -1
  828. package/src/icons/Logo.svg +7 -0
  829. package/src/model/Picture.ts +5 -3
  830. package/src/services/sitemap/findActiveSubItem.ts +2 -3
  831. package/src/ui-kit/BlockWrapper.tsx +2 -5
  832. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  833. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  834. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  835. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  836. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  837. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  838. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  839. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  840. package/src/ui-kit/Heading/Heading.tsx +1 -1
  841. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  842. package/src/ui-kit/Img/Img.tsx +6 -60
  843. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  844. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  845. package/src/ui-kit/Img/ImgProps.ts +1 -0
  846. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  847. package/src/ui-kit/Logo/Logo.tsx +5 -11
  848. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  849. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  850. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  851. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  852. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  853. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  854. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  855. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  856. package/dist/components/Calculator/renderRate.d.ts +0 -8
  857. package/dist/components/Calculator/renderRate.js +0 -9
  858. package/dist/components/Calculator/renderRate.js.map +0 -1
  859. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  860. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  861. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  862. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  863. package/dist/hooks/useCreditCalculatorData.js +0 -15
  864. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  865. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  866. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  867. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  868. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  869. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  870. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  871. package/lib/components/Calculator/renderRate.d.ts +0 -8
  872. package/lib/components/Calculator/renderRate.js +0 -6
  873. package/lib/components/Calculator/renderRate.js.map +0 -1
  874. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  875. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  876. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  877. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  878. package/lib/hooks/useCreditCalculatorData.js +0 -12
  879. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  880. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  881. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  882. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  883. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  884. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  885. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  886. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  887. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  888. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  889. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  890. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  891. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  892. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  893. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  894. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  895. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  896. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  897. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  898. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  899. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  900. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  901. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  902. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  903. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  904. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  905. package/src/components/Calculator/renderRate.tsx +0 -22
  906. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  907. package/src/hooks/useCreditCalculatorData.ts +0 -20
  908. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,2 @@
1
- import type { ImgSource, Picture } from '../../model/Picture';
2
1
  import type { Image, ImageProps } from './ImgProps';
3
2
  export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
4
- export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
5
- export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -1,33 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Icon } from '../Icon/Icon.js';
4
- import { getIconVersion } from './getIconVersion.js';
5
- export const Img = JSX(({ className = '', image, imageClassName = '', ...iconProps }) => {
6
- // backwards compatibility with existing icons in usage
7
- const icon = typeof image === 'string' ? image : image?.icon;
8
- if (icon || icon === '') {
9
- return (_jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps }));
10
- }
11
- return (_jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
3
+ import { ImgInner } from './ImgInner.js';
4
+ export const Img = JSX(({ className = '', image }) => {
5
+ return _jsx(ImgInner, { className: className, image: image, isMobile: true });
12
6
  });
13
- export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '' }) => {
14
- if (!image) {
15
- return null;
16
- }
17
- return (_jsxs("picture", { className: className, children: [image?.sources?.length
18
- ? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
19
- : null, renderImg(image, imageClassName)] }));
20
- });
21
- const renderImg = (image, imageClassName = '') => {
22
- const style = {
23
- width: image.size?.width ? `${image.size?.width}px` : '100%',
24
- height: image.size?.height ? `${image.size?.height}px` : '100%',
25
- };
26
- const title = image.title || '';
27
- const alt = image.alt || image.title;
28
- return (_jsx("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
29
- };
30
- export function formatToMimeType(format) {
31
- return format ? `image/${String(format)}` : undefined;
32
- }
33
7
  //# sourceMappingURL=Img.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CACpB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IAC/D,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC;IAC7D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC;KACH;IAED,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,GACvB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,EAAE;IACjD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,mBAAS,SAAS,EAAE,SAAS,aAC1B,KAAK,EAAE,OAAO,EAAE,MAAM;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,iBAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;gBACJ,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,IACzB,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE;IACxD,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5D,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KAChE,CAAC;IACF,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IAErC,OAAO,CACL,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,UAAU,cAAc,EAAE,EACrC,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CAAoB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,OAAO,KAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAI,CAAC;AAC1E,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ImgSource, Picture } from '../../model/Picture';
2
+ import type { ImageProps } from './ImgProps';
3
+ export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
4
+ export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ const sourcesComparator = (a, b) => {
4
+ if (a.media && b.media) {
5
+ return a.media - b.media;
6
+ }
7
+ return 0;
8
+ };
9
+ export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
10
+ if (!image) {
11
+ return null;
12
+ }
13
+ const pictureStyles = isMobile ? 'flex' : 'flex-none';
14
+ return (_jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
15
+ ? image.sources
16
+ .sort(sourcesComparator)
17
+ .map(({ src, format, media, size }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...size }, `${index}_${src}`)))
18
+ : null, renderImg(image, imageClassName, isMobile)] }));
19
+ });
20
+ const renderImg = (image, imageClassName = '', isMobile = false) => {
21
+ const title = image.title || '';
22
+ const alt = image.alt || image.title;
23
+ const imgStyle = isMobile ? 'm-auto' : 'm-0';
24
+ return (_jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, ...image.size }));
25
+ };
26
+ export function formatToMimeType(format) {
27
+ return format ? `image/${String(format)}` : undefined;
28
+ }
29
+ //# sourceMappingURL=ImgAsPicture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE;QACtB,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;KAC1B;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IACnE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IAEtD,OAAO,CACL,mBAAS,SAAS,EAAE,GAAG,aAAa,IAAI,SAAS,EAAE,aAChD,KAAK,EAAE,OAAO,EAAE,MAAM;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO;qBACV,IAAI,CAAC,iBAAiB,CAAC;qBACvB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,iBAEE,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,eAAe,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,KACzC,IAAI,IAJH,GAAG,KAAK,IAAI,GAAG,EAAE,CAKtB,CACH,CAAC;gBACN,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,CAAC,IACnC,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE;IAC1E,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IAE7C,OAAO,CACL,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,GAAG,QAAQ,IAAI,cAAc,EAAE,EAC1C,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Image, ImageProps } from './ImgProps';
2
+ export declare const ImgInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Icon } from '../Icon/Icon.js';
4
+ import { getIconVersion } from './getIconVersion.js';
5
+ import { ImgAsPicture } from './ImgAsPicture.js';
6
+ export const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
7
+ if (!image) {
8
+ return null;
9
+ }
10
+ // backwards compatibility with existing icons in usage
11
+ const icon = typeof image === 'string' ? image : image.icon;
12
+ if (icon || icon === '') {
13
+ return icon.length ? (_jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
14
+ }
15
+ return (_jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
16
+ });
17
+ //# sourceMappingURL=ImgInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImgInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IACzE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,KAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;KACV;IAED,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,EACvB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -7,4 +7,5 @@ export interface ImageContent<T = Picture> {
7
7
  export interface ImageProps<T> extends ImageContent<T>, IconCompatibilityFields {
8
8
  className?: string;
9
9
  imageClassName?: string;
10
+ isMobile?: boolean;
10
11
  }
@@ -1,13 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { SVG } from '../SVG.js';
4
- const LOGO_PATHS = [
5
- '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',
6
- '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',
7
- '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',
8
- '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',
9
- 'M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z',
10
- ];
3
+ import { Img } from '../Img/Img.js';
11
4
  const SVG_COLOR = {
12
5
  'bg-white': 'text-primary-main',
13
6
  transparent: 'text-white',
@@ -17,6 +10,6 @@ const TEXT_COLOR = {
17
10
  transparent: 'text-white',
18
11
  };
19
12
  export const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', hideTitle }) => {
20
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(SVG, { className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) }), hideTitle ? null : (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
13
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'Logo' }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), hideTitle ? null : (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
21
14
  });
22
15
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAU7B,MAAM,UAAU,GAAG;IACjB,w5CAAw5C;IACx5C,2OAA2O;IAC3O,0JAA0J;IAC1J,gpBAAgpB;IAChpB,kDAAkD;CACnD,CAAC;AACF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,KAAC,GAAG,IACF,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,EAChD,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GACrC,EACD,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAClB,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,6BAA6B,YACjE,QAAQ,IAAI,gBAAgB,GACxB,CACR,IACC,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAUjC,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,KAAC,GAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,SAAG,EACvF,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAClB,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,6BAA6B,YACjE,QAAQ,IAAI,gBAAgB,GACxB,CACR,IACC,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { UniBlockProps } from '../../types';
2
+ interface RadioButtonItem {
3
+ id: string;
4
+ text: string;
5
+ }
6
+ interface RadioButtonGroupProps extends UniBlockProps {
7
+ items: RadioButtonItem[];
8
+ checkedItem?: string;
9
+ onChangeCheckedItem: (id: string) => void;
10
+ }
11
+ export declare const RadioButtonGroup: (props: import("@redneckz/uni-jsx").PropsWithChildren<RadioButtonGroupProps, any>, context?: any) => any;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Checkbox } from '../Checkbox/Checkbox.js';
4
+ export const RadioButtonGroup = JSX(({ items, checkedItem, onChangeCheckedItem }) => {
5
+ return (_jsx("div", { children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem(id) }, id))) }));
6
+ });
7
+ //# sourceMappingURL=RadioButtonGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAahD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,wBACG,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAJlC,EAAE,CAKP,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,11 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- export const SearchBar = JSX(({ className, context }) => {
5
- const { term, setTerm } = context.useSearch();
6
- return (_jsxs("form", { className: `relative ${className || ''}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: "w-[20px] h-[20px]", children: _jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), _jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
7
- e.preventDefault();
8
- setTerm('');
9
- }, children: _jsx(Img, { image: "CloseIcon", width: "24", height: "24" }) })] }));
3
+ import { SearchBarInner } from './SearchBarInner.js';
4
+ export const SearchBar = JSX(({ className = '', context }) => {
5
+ return _jsx(SearchBarInner, { context: context, className: className, isMobile: true });
10
6
  });
11
7
  //# sourceMappingURL=SearchBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAE9C,OAAO,CACL,gBAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,eAAK,SAAS,EAAC,yGAAyG,aACtH,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,GAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACb,gBACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,mDAAmD,2FAGvD,CACT,IACG,EACN,gBACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,qMAAqM,EAEvM,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAC,aAAa,GACzB,EACF,iBACE,SAAS,EAAC,uHAAuH,EACjI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,YAED,KAAC,GAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACzC,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1E,OAAO,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,GAAI,CAAC;AACpF,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ export interface SearchBarInnerProps extends UniBlockProps {
3
+ isMobile?: boolean;
4
+ }
5
+ export declare const SearchBarInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<SearchBarInnerProps, any>, context?: any) => any;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Button } from '../Button/Button.js';
4
+ import { Img } from '../Img/Img.js';
5
+ export const SearchBarInner = JSX(({ className, context, isMobile = false }) => {
6
+ const { term, setTerm } = context.useSearch();
7
+ const LoupeIconClassName = isMobile ? 'w-[20px] h-[20px]' : 'w-[24px] h-[24px]';
8
+ const SearchBarLabelClassName = isMobile ? 'font-normal text-sm' : 'font-light text-base';
9
+ const SearchBarInputClassName = isMobile
10
+ ? ' placeholder-transparent font-normal'
11
+ : 'font-light h-full';
12
+ const inputPlaceholder = isMobile ? 'some search' : null;
13
+ return (_jsxs("form", { className: `font-sans relative ${className}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: LoupeIconClassName, children: _jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (_jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-base text-black border border-solid rounded box-border
14
+ outline-none pr-[6%] border-main-divider focus:border-primary-text ${SearchBarInputClassName}`, value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? (_jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
15
+ e.preventDefault();
16
+ setTerm('');
17
+ }, children: _jsx(Img, { image: "CloseIcon", width: "24", height: "24" }) })) : (_jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
18
+ e.preventDefault();
19
+ console.log('click');
20
+ }, children: _jsx("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) }))] }));
21
+ });
22
+ //# sourceMappingURL=SearchBarInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBarInner.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBarInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAMjC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAE9C,MAAM,kBAAkB,GAAG,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAChF,MAAM,uBAAuB,GAAG,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC1F,MAAM,uBAAuB,GAAG,QAAQ;QACtC,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,mBAAmB,CAAC;IACxB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;IAEzD,OAAO,CACL,gBAAM,SAAS,EAAE,sBAAsB,SAAS,EAAE,aAChD,eAAK,SAAS,EAAC,yGAAyG,aACtH,cAAK,SAAS,EAAE,kBAAkB,YAChC,KAAC,GAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACb,gBACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAE,uBAAuB,uBAAuB,EAAE,2FAGrD,CACT,IACG,EACN,gBACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EAAE;mFAC8D,uBAAuB,EAAE,EAClG,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAE,gBAAgB,GAC7B,EACD,QAAQ,CAAC,CAAC,CAAC,CACV,iBACE,SAAS,EAAC,uHAAuH,EACjI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,YAED,KAAC,GAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACzC,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,gCAAO,EACZ,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC,YAED,cAAK,SAAS,EAAC,mCAAmC,+CAAY,GACvD,CACV,IACI,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,68 +1,60 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
+ import { CommonCalculatorProps } from './CalculatorContent';
3
4
  import { CalculatorValueBlock } from './CalculatorValueBlock';
4
- import { getDefaultSum } from './getDefaultSum';
5
- import { renderWantedSumInput } from './renderWantedSumInput';
6
- import { renderRate } from './renderRate';
5
+ import { DEFAULT_REST_MIN_SUM, DEFAULT_TRAVEL_MIN_SUM } from './constants';
6
+ import { Rate } from './Rate';
7
7
  import { renderButtonSection } from './renderButtonSection';
8
- import { BonusCalculatorParams, CommonCalculatorProps } from './CalculatorContent';
9
-
10
- export interface BonusCalculatorProp
11
- extends BonusCalculatorParams,
12
- CommonCalculatorProps,
13
- UniBlockProps {}
8
+ import { renderWantedSumInput } from './renderWantedSumInput';
9
+ import { getBonusCalculatorParams } from './useBonusCalculatorParams';
14
10
 
15
- export const BonusCalculatorForm = JSX<BonusCalculatorProp>(
16
- ({
17
- context,
18
- className = '',
19
- buttons,
20
- bonus,
21
- minSumTrip,
22
- maxSumTrip,
23
- minSumOther,
24
- maxSumOther,
25
- }) => {
26
- const [bonusTripValue, setBonusTripValue] = context.useState<number | undefined>(undefined);
27
- const [bonusOtherValue, setBonusOtherValue] = context.useState<number | undefined>(undefined);
28
- const calculatorTripParams = { minSum: minSumTrip, maxSum: maxSumTrip };
29
- const calculatorOtherParams = { minSum: minSumOther, maxSum: maxSumOther };
11
+ export interface BonusCalculatorProps extends CommonCalculatorProps, UniBlockProps {}
30
12
 
31
- const incomeBonus = 948841;
32
- const bonusOrDef = bonus || 2528;
13
+ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
14
+ ({ context, className = '', sourceBookDir, buttons }) => {
15
+ const [travelExpenseValue, setTravelExpenseValue] = context.useState(DEFAULT_TRAVEL_MIN_SUM);
16
+ const [restExpenseValue, setRestExpenseValue] = context.useState(DEFAULT_REST_MIN_SUM);
17
+ const userInputParams = {
18
+ travelExpenseValue,
19
+ restExpenseValue,
20
+ };
21
+ const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } =
22
+ getBonusCalculatorParams(context, userInputParams, sourceBookDir);
33
23
 
34
24
  return (
35
25
  <section className={className}>
36
26
  <div className="w-[468px]">
37
- {renderWantedSumInput({
38
- title: 'Сумма покупок в категории путешествия, ₽',
39
- calculatorParams: calculatorTripParams,
40
- moneyValue: bonusTripValue,
41
- defaultSum: getDefaultSum(calculatorTripParams),
42
- setMoneyValue: setBonusTripValue,
43
- isShowItems: false,
44
- })}
45
- {renderWantedSumInput({
46
- className: 'mt-6',
47
- title: 'Сумма покупок в остальных категориях, ₽',
48
- calculatorParams: calculatorOtherParams,
49
- moneyValue: bonusOtherValue,
50
- defaultSum: getDefaultSum(calculatorOtherParams),
51
- setMoneyValue: setBonusOtherValue,
52
- isShowItems: false,
53
- })}
27
+ {renderWantedSumInput(
28
+ 'Сумма покупок в категории путешествия, ₽',
29
+ {
30
+ minSum: minSumTravel,
31
+ maxSum: maxSumTravel,
32
+ moneyValue: travelExpenseValue,
33
+ step: 500,
34
+ isShowItems: false,
35
+ },
36
+ setTravelExpenseValue,
37
+ )}
38
+ {renderWantedSumInput(
39
+ 'Сумма покупок в остальных категориях, ₽',
40
+ {
41
+ className: 'mt-6',
42
+ minSum: minSumOther,
43
+ maxSum: maxSumOther,
44
+ moneyValue: restExpenseValue,
45
+ step: 500,
46
+ isShowItems: false,
47
+ },
48
+ setRestExpenseValue,
49
+ )}
54
50
  </div>
55
51
  <div>
56
- {bonusOrDef
57
- ? renderRate({
58
- rate: bonusOrDef,
59
- title: 'Баллов за месяц',
60
- className: 'tracking-[-14px]',
61
- })
62
- : null}
52
+ {monthBonus >= 0 ? (
53
+ <Rate title="Баллов за месяц" rate={monthBonus} rateBlockClassName="tracking-[-14px]" />
54
+ ) : null}
63
55
  </div>
64
56
  <div className="w-[240px]">
65
- {incomeBonus ? <CalculatorValueBlock title="Баллов за год" value={incomeBonus} /> : null}
57
+ {yearBonus >= 0 ? <CalculatorValueBlock title="Баллов за год" value={yearBonus} /> : null}
66
58
  {renderButtonSection(context, buttons)}
67
59
  </div>
68
60
  </section>
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
2
  import type { FuncReturnVoid, UniBlockProps } from '../../types';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { renderArrows } from '../../ui-kit/Button/renderArrows';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import type { CalculatorBlockDef, CalculatorContent, CalculatorNav } from './CalculatorContent';
@@ -23,9 +23,9 @@ type NavButtonProps = {
23
23
  };
24
24
 
25
25
  export const Calculator = JSX<CalculatorProps>(
26
- ({ className = '', context, calcTabs = [], ...rest }) => {
27
- const tabsNav = calcTabs.map((_) => _.nav || ({} as CalculatorNav));
28
- const blockCalcTabs = calcTabs.map(
26
+ ({ className = '', context, calculatorTabs = [], ...rest }) => {
27
+ const tabsNav = calculatorTabs.map((_) => _.nav || ({} as CalculatorNav));
28
+ const calculatorBlocks = calculatorTabs.map(
29
29
  ({ calculatorBlock }) => calculatorBlock || ({} as CalculatorBlockDef),
30
30
  );
31
31
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
@@ -34,8 +34,8 @@ export const Calculator = JSX<CalculatorProps>(
34
34
  const handleNextClick = () => setTabsShift(tabsShift + 1);
35
35
  const handlePrevClick = () => setTabsShift(tabsShift - 1);
36
36
 
37
- const isGalleryScrollAvailable = calcTabs?.length > 3;
38
- const showNextButton = isGalleryScrollAvailable && calcTabs?.length > tabsShift + 3;
37
+ const isGalleryScrollAvailable = calculatorTabs?.length > 3;
38
+ const showNextButton = isGalleryScrollAvailable && calculatorTabs?.length > tabsShift + 3;
39
39
  const showPrevButton = tabsShift > 0;
40
40
 
41
41
  return (
@@ -60,8 +60,8 @@ export const Calculator = JSX<CalculatorProps>(
60
60
  style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
61
61
  role="list"
62
62
  >
63
- {blockCalcTabs?.length
64
- ? blockCalcTabs.map(renderCalculatorBlock({ context, className }))
63
+ {calculatorBlocks?.length
64
+ ? calculatorBlocks.map(renderCalculatorBlock({ context, className }))
65
65
  : null}
66
66
  </div>
67
67
  </BlockWrapper>
@@ -5,6 +5,8 @@ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
5
  export interface CommonCalculatorProps {
6
6
  /** @title Кнопки */
7
7
  buttons?: ButtonWithIconProps[];
8
+ /** @title Адрес справочника */
9
+ sourceBookDir?: string;
8
10
  }
9
11
 
10
12
  /**
@@ -12,7 +14,9 @@ export interface CommonCalculatorProps {
12
14
  **/
13
15
  export interface CreditCalculatorParams {
14
16
  /** @hidden */
15
- isSalary?: boolean;
17
+ isSalaryClient?: boolean;
18
+ /** @hidden */
19
+ isStateEmployee?: boolean;
16
20
  /** @hidden */
17
21
  isInsurance?: boolean;
18
22
  /** @hidden */
@@ -77,13 +81,19 @@ export interface BonusCalculatorParams {
77
81
  /** @hidden */
78
82
  bonus?: number;
79
83
  /** @hidden */
80
- minSumTrip?: number;
84
+ minSumTravel?: number;
81
85
  /** @hidden */
82
- maxSumTrip?: number;
86
+ maxSumTravel?: number;
83
87
  /** @hidden */
84
88
  minSumOther?: number;
85
89
  /** @hidden */
86
90
  maxSumOther?: number;
91
+ maxBonus?: number;
92
+ prefMonthsNum?: number;
93
+ prefTravelBonusRate?: number;
94
+ prefRestBonusRate?: number;
95
+ travelBonusRate?: number;
96
+ restBonusRate?: number;
87
97
  }
88
98
 
89
99
  /**
@@ -171,5 +181,5 @@ export interface CalculatorTab {
171
181
  */
172
182
  export interface CalculatorContent {
173
183
  /** @title Вкладки */
174
- calcTabs?: CalculatorTab[];
184
+ calculatorTabs?: CalculatorTab[];
175
185
  }