@redneckz/wildless-cms-uni-blocks 0.3.69 → 0.3.71

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 (1165) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +467 -423
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/DoneIcon.svg +1 -0
  5. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  6. package/dist/components/BlockContent.d.ts +3 -1
  7. package/dist/components/Blocks.d.ts +1 -1
  8. package/dist/components/Blocks.js +2 -2
  9. package/dist/components/Blocks.js.map +1 -1
  10. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  11. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  12. package/dist/components/Calculator/Calculator.js +7 -3
  13. package/dist/components/Calculator/Calculator.js.map +1 -1
  14. package/dist/components/Calculator/getCalculatorParams.js +2 -1
  15. package/dist/components/Calculator/getCalculatorParams.js.map +1 -1
  16. package/dist/components/Calculator/getCreditRate.js +2 -1
  17. package/dist/components/Calculator/getCreditRate.js.map +1 -1
  18. package/dist/components/Calculator/getMonthlyPayment.js +2 -1
  19. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  20. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  21. package/dist/components/ComparisonTable/HeaderCell.mobile.js +4 -2
  22. package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  23. package/dist/components/ComparisonTable/TableCell.js +3 -1
  24. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  25. package/dist/components/ComparisonTable/TableCell.mobile.js +3 -1
  26. package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  27. package/dist/components/ComparisonTable/TableRow.js +2 -1
  28. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  29. package/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
  30. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  31. package/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
  32. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  33. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  34. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  35. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  36. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  37. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
  38. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  39. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  40. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  41. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  42. package/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  43. package/dist/components/ExchangeRateTile/calculateResult.js +11 -0
  44. package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
  45. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  46. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
  47. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  48. package/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
  49. package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  50. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
  51. package/dist/components/ExchangeRateTile/renderButton.js +9 -0
  52. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
  53. package/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
  54. package/dist/components/ExchangeRateTile/renderInput.js +12 -0
  55. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
  56. package/dist/components/Footer/Footer.js +1 -1
  57. package/dist/components/Footer/Footer.js.map +1 -1
  58. package/dist/components/Footer/MediaButton.js +4 -13
  59. package/dist/components/Footer/MediaButton.js.map +1 -1
  60. package/dist/components/Footer/TextInformation.js +1 -1
  61. package/dist/components/Footer/TextInformation.js.map +1 -1
  62. package/dist/components/Gallery/Gallery.mobile.js +2 -2
  63. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  64. package/dist/components/Gallery/GalleryCardInner.js +2 -2
  65. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  66. package/dist/components/Gallery/GalleryInner.js +7 -2
  67. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  68. package/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  69. package/dist/components/GroupBlock/GroupBlock.js +3 -3
  70. package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  71. package/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
  72. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  73. package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  74. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  75. package/dist/components/Header/DropdownMenu.d.ts +13 -0
  76. package/dist/components/Header/DropdownMenu.js +18 -0
  77. package/dist/components/Header/DropdownMenu.js.map +1 -0
  78. package/dist/components/Header/HeaderSubMenu.js +19 -32
  79. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  80. package/dist/components/Insurance/Insurance.js +4 -6
  81. package/dist/components/Insurance/Insurance.js.map +1 -1
  82. package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  83. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  84. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  85. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  90. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
  91. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  92. package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  93. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  94. package/dist/components/Placeholder/Placeholder.js +1 -1
  95. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  96. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  97. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  98. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  99. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  100. package/dist/components/ProductTile/ProductTile.js +2 -2
  101. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  102. package/dist/components/Recommendation/Recommendation.js +7 -2
  103. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  104. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  105. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  106. package/dist/components/Tile/Tile.js +4 -4
  107. package/dist/components/Tile/Tile.js.map +1 -1
  108. package/dist/components/Tile/TileContent.d.ts +5 -0
  109. package/dist/content-page-repository/mapJSON.d.ts +1 -1
  110. package/dist/content-page-repository/mapJSON.js +9 -7
  111. package/dist/content-page-repository/mapJSON.js.map +1 -1
  112. package/dist/content-page-repository/transformMarkdown.js +2 -1
  113. package/dist/content-page-repository/transformMarkdown.js.map +1 -1
  114. package/dist/content-page-repository/transformPicture.js +6 -3
  115. package/dist/content-page-repository/transformPicture.js.map +1 -1
  116. package/dist/hooks/useCreditCalculatorData.d.ts +1 -2
  117. package/dist/hooks/useCreditCalculatorData.js.map +1 -1
  118. package/dist/hooks/useExchangeRates.d.ts +2 -8
  119. package/dist/hooks/useExchangeRates.js +52 -3
  120. package/dist/hooks/useExchangeRates.js.map +1 -1
  121. package/dist/hooks/useTableArrowScrollControl.js +3 -3
  122. package/dist/hooks/useTableArrowScrollControl.js.map +1 -1
  123. package/dist/icons/IconName.d.ts +4 -2
  124. package/dist/icons/IconName.js +2 -0
  125. package/dist/icons/IconName.js.map +1 -1
  126. package/dist/model/Insurance.d.ts +6 -0
  127. package/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
  128. package/dist/model/Insurance.js.map +1 -0
  129. package/dist/react/IntersectionObserverTag.d.ts +3 -0
  130. package/dist/react/IntersectionObserverTag.js +17 -0
  131. package/dist/react/IntersectionObserverTag.js.map +1 -0
  132. package/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  133. package/{mobile/dist → dist/react}/setup-fixture.js +3 -1
  134. package/dist/react/setup-fixture.js.map +1 -0
  135. package/dist/services/sitemap/isHrefActive.d.ts +1 -1
  136. package/dist/services/sitemap/isHrefActive.js +1 -1
  137. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  138. package/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
  139. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  140. package/dist/ui-kit/Button/ButtonSection.js +2 -1
  141. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  142. package/dist/ui-kit/Button/renderArrows.d.ts +10 -0
  143. package/dist/ui-kit/Button/renderArrows.js +9 -0
  144. package/dist/ui-kit/Button/renderArrows.js.map +1 -0
  145. package/dist/ui-kit/Img/Img.mobile.js +1 -1
  146. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  147. package/dist/ui-kit/Input/Input.js +6 -2
  148. package/dist/ui-kit/Input/Input.js.map +1 -1
  149. package/dist/ui-kit/Input/InputProps.d.ts +3 -0
  150. package/dist/ui-kit/InputRange/InputRange.js +10 -6
  151. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  152. package/dist/ui-kit/SVG.js +1 -1
  153. package/dist/ui-kit/SVG.js.map +1 -1
  154. package/dist/ui-kit/SearchBar.mobile.js +1 -1
  155. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  156. package/dist/ui-kit/Select/Select.d.ts +2 -0
  157. package/dist/ui-kit/Select/Select.js +2 -2
  158. package/dist/ui-kit/Select/Select.js.map +1 -1
  159. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  160. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  161. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  162. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  163. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  164. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  165. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
  166. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  167. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  168. package/dist/ui-kit/Tabs/Tabs.js +2 -1
  169. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  170. package/dist/ui-kit/TopItem/TopItem.js +6 -8
  171. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  172. package/dist/utils/changeHashOnScroll.js +2 -1
  173. package/dist/utils/changeHashOnScroll.js.map +1 -1
  174. package/dist/utils/getCurrentDate.js +1 -1
  175. package/dist/utils/roundTo.d.ts +1 -0
  176. package/dist/utils/roundTo.js +8 -0
  177. package/dist/utils/roundTo.js.map +1 -0
  178. package/lib/common.css +1 -1
  179. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  180. package/lib/components/BlockContent.d.ts +3 -1
  181. package/lib/components/Blocks.d.ts +1 -1
  182. package/lib/components/Blocks.js +2 -2
  183. package/lib/components/Blocks.js.map +1 -1
  184. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  185. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  186. package/lib/components/Calculator/Calculator.js +8 -4
  187. package/lib/components/Calculator/Calculator.js.map +1 -1
  188. package/lib/components/Calculator/getCalculatorParams.js +2 -1
  189. package/lib/components/Calculator/getCalculatorParams.js.map +1 -1
  190. package/lib/components/Calculator/getCreditRate.js +2 -1
  191. package/lib/components/Calculator/getCreditRate.js.map +1 -1
  192. package/lib/components/Calculator/getMonthlyPayment.js +2 -1
  193. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  194. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  195. package/lib/components/ComparisonTable/HeaderCell.mobile.js +4 -2
  196. package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  197. package/lib/components/ComparisonTable/TableCell.js +3 -1
  198. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  199. package/lib/components/ComparisonTable/TableCell.mobile.js +3 -1
  200. package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  201. package/lib/components/ComparisonTable/TableRow.js +2 -1
  202. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  203. package/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
  204. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  205. package/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
  206. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  207. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  208. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  209. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  210. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  211. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
  212. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  213. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  214. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  215. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  216. package/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  217. package/lib/components/ExchangeRateTile/calculateResult.js +7 -0
  218. package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
  219. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  220. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
  221. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  222. package/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
  223. package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  224. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
  225. package/lib/components/ExchangeRateTile/renderButton.js +6 -0
  226. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
  227. package/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
  228. package/lib/components/ExchangeRateTile/renderInput.js +9 -0
  229. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
  230. package/lib/components/Footer/Footer.js +1 -1
  231. package/lib/components/Footer/Footer.js.map +1 -1
  232. package/lib/components/Footer/MediaButton.js +4 -13
  233. package/lib/components/Footer/MediaButton.js.map +1 -1
  234. package/lib/components/Footer/TextInformation.js +1 -1
  235. package/lib/components/Footer/TextInformation.js.map +1 -1
  236. package/lib/components/Gallery/Gallery.mobile.js +2 -2
  237. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  238. package/lib/components/Gallery/GalleryCardInner.js +2 -2
  239. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  240. package/lib/components/Gallery/GalleryInner.js +7 -2
  241. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  242. package/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  243. package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +1 -0
  244. package/lib/components/GroupBlock/GroupBlock.js +3 -3
  245. package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  246. package/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
  247. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  248. package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  249. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  250. package/lib/components/Header/DropdownMenu.d.ts +13 -0
  251. package/lib/components/Header/DropdownMenu.js +16 -0
  252. package/lib/components/Header/DropdownMenu.js.map +1 -0
  253. package/lib/components/Header/HeaderSubMenu.js +19 -32
  254. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  255. package/lib/components/Headline/Headline.fixture.d.ts +9 -3
  256. package/lib/components/Headline/Headline.fixture.mobile.d.ts +13 -3
  257. package/lib/components/Insurance/Insurance.fixture.d.ts +2 -1
  258. package/lib/components/Insurance/Insurance.js +4 -6
  259. package/lib/components/Insurance/Insurance.js.map +1 -1
  260. package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  261. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  262. package/lib/components/{CreditCalculator/CreditCalculator.fixture.d.ts → InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts} +0 -0
  263. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  264. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  265. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  266. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  267. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  268. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  269. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
  270. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  271. package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  272. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  273. package/lib/components/Placeholder/Placeholder.js +1 -1
  274. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  275. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +10 -2
  276. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  277. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  278. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  279. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  280. package/lib/components/ProductTile/ProductTile.js +2 -2
  281. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  282. package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -0
  283. package/lib/components/Recommendation/Recommendation.js +7 -2
  284. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  285. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +7 -1
  286. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  287. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  288. package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
  289. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
  290. package/lib/components/Tile/Tile.js +4 -4
  291. package/lib/components/Tile/Tile.js.map +1 -1
  292. package/lib/components/Tile/TileContent.d.ts +5 -0
  293. package/lib/content-page-repository/mapJSON.d.ts +1 -1
  294. package/lib/content-page-repository/mapJSON.js +9 -7
  295. package/lib/content-page-repository/mapJSON.js.map +1 -1
  296. package/lib/content-page-repository/transformMarkdown.js +2 -1
  297. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  298. package/lib/content-page-repository/transformPicture.js +6 -3
  299. package/lib/content-page-repository/transformPicture.js.map +1 -1
  300. package/lib/hooks/useCreditCalculatorData.d.ts +1 -2
  301. package/lib/hooks/useCreditCalculatorData.js.map +1 -1
  302. package/lib/hooks/useExchangeRates.d.ts +2 -8
  303. package/lib/hooks/useExchangeRates.js +52 -3
  304. package/lib/hooks/useExchangeRates.js.map +1 -1
  305. package/lib/hooks/useTableArrowScrollControl.js +3 -3
  306. package/lib/hooks/useTableArrowScrollControl.js.map +1 -1
  307. package/lib/icons/IconName.d.ts +4 -2
  308. package/lib/icons/IconName.js +2 -0
  309. package/lib/icons/IconName.js.map +1 -1
  310. package/lib/model/Insurance.d.ts +6 -0
  311. package/lib/model/Insurance.js +2 -0
  312. package/lib/model/Insurance.js.map +1 -0
  313. package/lib/react/IntersectionObserverTag.d.ts +3 -0
  314. package/lib/react/IntersectionObserverTag.js +14 -0
  315. package/lib/react/IntersectionObserverTag.js.map +1 -0
  316. package/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  317. package/{mobile/lib → lib/react}/setup-fixture.js +3 -1
  318. package/lib/react/setup-fixture.js.map +1 -0
  319. package/lib/services/sitemap/isHrefActive.d.ts +1 -1
  320. package/lib/services/sitemap/isHrefActive.js +1 -1
  321. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  322. package/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
  323. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  324. package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
  325. package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +1 -1
  326. package/lib/ui-kit/Button/ButtonSection.js +2 -1
  327. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  328. package/lib/ui-kit/Button/renderArrows.d.ts +10 -0
  329. package/lib/ui-kit/Button/renderArrows.js +6 -0
  330. package/lib/ui-kit/Button/renderArrows.js.map +1 -0
  331. package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
  332. package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
  333. package/lib/ui-kit/Img/Img.mobile.js +1 -1
  334. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  335. package/lib/ui-kit/Input/Input.js +6 -2
  336. package/lib/ui-kit/Input/Input.js.map +1 -1
  337. package/lib/ui-kit/Input/InputProps.d.ts +3 -0
  338. package/lib/ui-kit/InputRange/InputRange.js +10 -6
  339. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  340. package/lib/ui-kit/List/List.fixture.d.ts +1 -1
  341. package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
  342. package/lib/ui-kit/SVG.js +1 -1
  343. package/lib/ui-kit/SVG.js.map +1 -1
  344. package/lib/ui-kit/SearchBar.mobile.js +1 -1
  345. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  346. package/lib/ui-kit/Select/Select.d.ts +2 -0
  347. package/lib/ui-kit/Select/Select.js +2 -2
  348. package/lib/ui-kit/Select/Select.js.map +1 -1
  349. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  350. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  351. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  352. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  353. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  354. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  355. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
  356. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  357. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  358. package/lib/ui-kit/Tabs/Tabs.js +2 -1
  359. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  360. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  361. package/lib/ui-kit/TopItem/TopItem.js +6 -8
  362. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  363. package/lib/utils/changeHashOnScroll.js +2 -1
  364. package/lib/utils/changeHashOnScroll.js.map +1 -1
  365. package/lib/utils/getCurrentDate.js +1 -1
  366. package/lib/utils/roundTo.d.ts +1 -0
  367. package/lib/utils/roundTo.js +5 -0
  368. package/lib/utils/roundTo.js.map +1 -0
  369. package/mobile/bundle/bundle.umd.js +216 -69
  370. package/mobile/bundle/bundle.umd.min.js +1 -1
  371. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  372. package/mobile/dist/components/BlockContent.d.ts +3 -1
  373. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  374. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  375. package/mobile/dist/components/Calculator/Calculator.js +7 -3
  376. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  377. package/mobile/dist/components/Calculator/getCalculatorParams.js +2 -1
  378. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -1
  379. package/mobile/dist/components/Calculator/getCreditRate.js +2 -1
  380. package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -1
  381. package/mobile/dist/components/Calculator/getMonthlyPayment.js +2 -1
  382. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  383. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  384. package/mobile/dist/components/ComparisonTable/HeaderCell.js +4 -2
  385. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  386. package/mobile/dist/components/ComparisonTable/TableCell.js +3 -1
  387. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  388. package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
  389. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  390. package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
  391. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  392. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
  393. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  394. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  395. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  396. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  397. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  398. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
  399. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  400. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  401. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  402. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  403. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  404. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +11 -0
  405. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
  406. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  407. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
  408. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  409. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
  410. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  411. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
  412. package/mobile/dist/components/ExchangeRateTile/renderButton.js +9 -0
  413. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
  414. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
  415. package/mobile/dist/components/ExchangeRateTile/renderInput.js +12 -0
  416. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
  417. package/mobile/dist/components/Footer/MediaButton.js +4 -13
  418. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  419. package/mobile/dist/components/Gallery/Gallery.js +2 -2
  420. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  421. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
  422. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  423. package/mobile/dist/components/Gallery/GalleryInner.js +7 -2
  424. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  425. package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  426. package/mobile/dist/components/GroupBlock/GroupBlock.js +3 -3
  427. package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  428. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
  429. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  430. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  431. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  432. package/mobile/dist/components/Header/DropdownMenu.d.ts +13 -0
  433. package/mobile/dist/components/Header/DropdownMenu.js +18 -0
  434. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -0
  435. package/mobile/dist/components/Header/HeaderSubMenu.js +19 -32
  436. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  437. package/mobile/dist/components/Insurance/Insurance.js +4 -6
  438. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  439. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  440. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  441. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  442. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  443. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  444. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  445. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  446. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  447. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
  448. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  449. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  450. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  451. package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
  452. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  453. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  454. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  455. package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
  456. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  457. package/mobile/dist/components/Recommendation/Recommendation.js +7 -2
  458. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  459. package/mobile/dist/components/Tile/Tile.js +4 -4
  460. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  461. package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
  462. package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -1
  463. package/mobile/dist/content-page-repository/mapJSON.js +9 -7
  464. package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
  465. package/mobile/dist/content-page-repository/transformMarkdown.js +2 -1
  466. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  467. package/mobile/dist/content-page-repository/transformPicture.js +6 -3
  468. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  469. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +1 -2
  470. package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
  471. package/mobile/dist/hooks/useExchangeRates.d.ts +2 -8
  472. package/mobile/dist/hooks/useExchangeRates.js +52 -3
  473. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  474. package/mobile/dist/hooks/useTableArrowScrollControl.js +3 -3
  475. package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -1
  476. package/mobile/dist/icons/IconName.d.ts +4 -2
  477. package/mobile/dist/icons/IconName.js +2 -0
  478. package/mobile/dist/icons/IconName.js.map +1 -1
  479. package/mobile/dist/model/Insurance.d.ts +6 -0
  480. package/mobile/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
  481. package/mobile/dist/model/Insurance.js.map +1 -0
  482. package/mobile/dist/react/IntersectionObserverTag.d.ts +3 -0
  483. package/mobile/dist/react/IntersectionObserverTag.js +17 -0
  484. package/mobile/dist/react/IntersectionObserverTag.js.map +1 -0
  485. package/mobile/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  486. package/{dist → mobile/dist/react}/setup-fixture.js +3 -1
  487. package/mobile/dist/react/setup-fixture.js.map +1 -0
  488. package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -1
  489. package/mobile/dist/services/sitemap/isHrefActive.js +1 -1
  490. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  491. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
  492. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  493. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -1
  494. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  495. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +10 -0
  496. package/mobile/dist/ui-kit/Button/renderArrows.js +9 -0
  497. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -0
  498. package/mobile/dist/ui-kit/Img/Img.js +1 -1
  499. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  500. package/mobile/dist/ui-kit/Input/Input.js +6 -2
  501. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  502. package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -0
  503. package/mobile/dist/ui-kit/InputRange/InputRange.js +10 -6
  504. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  505. package/mobile/dist/ui-kit/SVG.js +1 -1
  506. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  507. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
  508. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  509. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  510. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  511. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  512. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  513. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  514. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  515. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  516. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
  517. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  518. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  519. package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -1
  520. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  521. package/mobile/dist/ui-kit/TopItem/TopItem.js +6 -8
  522. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  523. package/mobile/dist/utils/changeHashOnScroll.js +2 -1
  524. package/mobile/dist/utils/changeHashOnScroll.js.map +1 -1
  525. package/mobile/dist/utils/getCurrentDate.js +1 -1
  526. package/mobile/dist/utils/roundTo.d.ts +1 -0
  527. package/mobile/dist/utils/roundTo.js +8 -0
  528. package/mobile/dist/utils/roundTo.js.map +1 -0
  529. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  530. package/mobile/lib/components/BlockContent.d.ts +3 -1
  531. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  532. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  533. package/mobile/lib/components/Calculator/Calculator.js +8 -4
  534. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  535. package/mobile/lib/components/Calculator/getCalculatorParams.js +2 -1
  536. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -1
  537. package/mobile/lib/components/Calculator/getCreditRate.js +2 -1
  538. package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -1
  539. package/mobile/lib/components/Calculator/getMonthlyPayment.js +2 -1
  540. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  541. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  542. package/mobile/lib/components/ComparisonTable/HeaderCell.js +4 -2
  543. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  544. package/mobile/lib/components/ComparisonTable/TableCell.js +3 -1
  545. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  546. package/mobile/lib/components/ComparisonTable/TableRow.js +2 -1
  547. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  548. package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
  549. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  550. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
  551. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  552. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  553. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  554. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  555. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  556. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
  557. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  558. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  559. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  560. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  561. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  562. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +7 -0
  563. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
  564. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  565. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
  566. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  567. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
  568. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  569. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
  570. package/mobile/lib/components/ExchangeRateTile/renderButton.js +6 -0
  571. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
  572. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
  573. package/mobile/lib/components/ExchangeRateTile/renderInput.js +9 -0
  574. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
  575. package/mobile/lib/components/Footer/MediaButton.js +4 -13
  576. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  577. package/mobile/lib/components/Gallery/Gallery.js +2 -2
  578. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  579. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
  580. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  581. package/mobile/lib/components/Gallery/GalleryInner.js +7 -2
  582. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  583. package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  584. package/mobile/lib/components/GroupBlock/GroupBlock.js +3 -3
  585. package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  586. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
  587. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  588. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  589. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  590. package/mobile/lib/components/Header/DropdownMenu.d.ts +13 -0
  591. package/mobile/lib/components/Header/DropdownMenu.js +16 -0
  592. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -0
  593. package/mobile/lib/components/Header/HeaderSubMenu.js +19 -32
  594. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  595. package/mobile/lib/components/Insurance/Insurance.js +4 -6
  596. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  597. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  598. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  599. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  600. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  601. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  602. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  603. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  604. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  605. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
  606. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  607. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  608. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  609. package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
  610. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  611. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  612. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  613. package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
  614. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  615. package/mobile/lib/components/Recommendation/Recommendation.js +7 -2
  616. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  617. package/mobile/lib/components/Tile/Tile.js +4 -4
  618. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  619. package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
  620. package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -1
  621. package/mobile/lib/content-page-repository/mapJSON.js +9 -7
  622. package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
  623. package/mobile/lib/content-page-repository/transformMarkdown.js +2 -1
  624. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  625. package/mobile/lib/content-page-repository/transformPicture.js +6 -3
  626. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  627. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +1 -2
  628. package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
  629. package/mobile/lib/hooks/useExchangeRates.d.ts +2 -8
  630. package/mobile/lib/hooks/useExchangeRates.js +52 -3
  631. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  632. package/mobile/lib/hooks/useTableArrowScrollControl.js +3 -3
  633. package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -1
  634. package/mobile/lib/icons/IconName.d.ts +4 -2
  635. package/mobile/lib/icons/IconName.js +2 -0
  636. package/mobile/lib/icons/IconName.js.map +1 -1
  637. package/mobile/lib/model/Insurance.d.ts +6 -0
  638. package/mobile/lib/model/Insurance.js +2 -0
  639. package/mobile/lib/model/Insurance.js.map +1 -0
  640. package/mobile/lib/react/IntersectionObserverTag.d.ts +3 -0
  641. package/mobile/lib/react/IntersectionObserverTag.js +14 -0
  642. package/mobile/lib/react/IntersectionObserverTag.js.map +1 -0
  643. package/mobile/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  644. package/{lib → mobile/lib/react}/setup-fixture.js +3 -1
  645. package/mobile/lib/react/setup-fixture.js.map +1 -0
  646. package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -1
  647. package/mobile/lib/services/sitemap/isHrefActive.js +1 -1
  648. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  649. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
  650. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  651. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -1
  652. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  653. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +10 -0
  654. package/mobile/lib/ui-kit/Button/renderArrows.js +6 -0
  655. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -0
  656. package/mobile/lib/ui-kit/Img/Img.js +1 -1
  657. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  658. package/mobile/lib/ui-kit/Input/Input.js +6 -2
  659. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  660. package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -0
  661. package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -6
  662. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  663. package/mobile/lib/ui-kit/SVG.js +1 -1
  664. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  665. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
  666. package/mobile/lib/ui-kit/Select/Select.js +2 -2
  667. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  668. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  669. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  670. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  671. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  672. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  673. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  674. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
  675. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  676. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  677. package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -1
  678. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  679. package/mobile/lib/ui-kit/TopItem/TopItem.js +6 -8
  680. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  681. package/mobile/lib/utils/changeHashOnScroll.js +2 -1
  682. package/mobile/lib/utils/changeHashOnScroll.js.map +1 -1
  683. package/mobile/lib/utils/getCurrentDate.js +1 -1
  684. package/mobile/lib/utils/roundTo.d.ts +1 -0
  685. package/mobile/lib/utils/roundTo.js +5 -0
  686. package/mobile/lib/utils/roundTo.js.map +1 -0
  687. package/mobile/src/components/Accordion/Accordion.tsx +1 -3
  688. package/mobile/src/components/BlockContent.ts +5 -1
  689. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  690. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
  691. package/mobile/src/components/Calculator/Calculator.tsx +8 -22
  692. package/mobile/src/components/Calculator/getCalculatorParams.ts +3 -1
  693. package/mobile/src/components/Calculator/getCreditRate.ts +3 -1
  694. package/mobile/src/components/Calculator/getMonthlyPayment.ts +3 -1
  695. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
  696. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +7 -13
  697. package/mobile/src/components/ComparisonTable/TableCell.tsx +7 -8
  698. package/mobile/src/components/ComparisonTable/TableRow.tsx +6 -9
  699. package/mobile/src/components/ContentPage/ContentPage.page.json +50 -6
  700. package/mobile/src/components/ContentPage/ContentPageContext.tsx +20 -4
  701. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
  702. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
  703. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
  704. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
  705. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  706. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +8 -0
  707. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
  708. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
  709. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +14 -0
  710. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +43 -0
  711. package/mobile/src/components/Footer/MediaButton.tsx +7 -17
  712. package/mobile/src/components/Gallery/Gallery.tsx +2 -2
  713. package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
  714. package/mobile/src/components/Gallery/GalleryInner.tsx +10 -20
  715. package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
  716. package/mobile/src/components/GroupBlock/GroupBlock.example.json +8 -7
  717. package/mobile/src/components/GroupBlock/GroupBlock.tsx +9 -4
  718. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  719. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
  720. package/mobile/src/components/Header/DropdownMenu.tsx +72 -0
  721. package/mobile/src/components/Header/HeaderSubMenu.tsx +45 -87
  722. package/mobile/src/components/Insurance/Insurance.example.json +21 -0
  723. package/mobile/src/components/Insurance/Insurance.tsx +10 -9
  724. package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
  725. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  726. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  727. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  728. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
  729. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
  730. package/mobile/src/components/Placeholder/Placeholder.tsx +6 -2
  731. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -5
  732. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  733. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
  734. package/mobile/src/components/Recommendation/Recommendation.tsx +7 -15
  735. package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -5
  736. package/mobile/src/components/Tile/Tile.example.json +1 -0
  737. package/mobile/src/components/Tile/Tile.tsx +4 -2
  738. package/mobile/src/components/Tile/TileContent.ts +5 -0
  739. package/mobile/src/content-page-repository/mapJSON.ts +11 -7
  740. package/mobile/src/content-page-repository/transformMarkdown.ts +3 -1
  741. package/mobile/src/content-page-repository/transformPicture.ts +8 -3
  742. package/mobile/src/hooks/useCreditCalculatorData.ts +2 -3
  743. package/mobile/src/hooks/useExchangeRates.ts +70 -10
  744. package/mobile/src/hooks/useTableArrowScrollControl.ts +3 -3
  745. package/mobile/src/icons/DoneIcon.svg +4 -0
  746. package/mobile/src/icons/IconName.ts +4 -4
  747. package/mobile/src/model/Insurance.ts +6 -0
  748. package/mobile/src/react/IntersectionObserverTag.tsx +23 -0
  749. package/mobile/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
  750. package/mobile/src/services/sitemap/isHrefActive.ts +2 -1
  751. package/mobile/src/ui-kit/Button/ArrowButton.tsx +1 -1
  752. package/mobile/src/ui-kit/Button/ButtonSection.tsx +3 -1
  753. package/mobile/src/ui-kit/Button/renderArrows.tsx +41 -0
  754. package/mobile/src/ui-kit/Img/Img.tsx +1 -0
  755. package/mobile/src/ui-kit/Input/Input.tsx +21 -5
  756. package/mobile/src/ui-kit/Input/InputProps.ts +3 -0
  757. package/mobile/src/ui-kit/InputRange/InputRange.tsx +14 -6
  758. package/mobile/src/ui-kit/SVG.tsx +2 -2
  759. package/mobile/src/ui-kit/Select/Select.tsx +17 -7
  760. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
  761. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
  762. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
  763. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
  764. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
  765. package/mobile/src/ui-kit/Tabs/Tabs.tsx +4 -3
  766. package/mobile/src/ui-kit/TopItem/TopItem.tsx +8 -9
  767. package/mobile/src/utils/changeHashOnScroll.ts +3 -1
  768. package/mobile/src/utils/getCurrentDate.ts +1 -1
  769. package/mobile/src/utils/roundTo.ts +4 -0
  770. package/package.json +3 -3
  771. package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -1
  772. package/src/components/Accordion/Accordion.fixture.tsx +11 -11
  773. package/src/components/Accordion/Accordion.mobile.tsx +1 -3
  774. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  775. package/src/components/BlockContent.ts +5 -1
  776. package/src/components/Blocks.ts +2 -2
  777. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  778. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  779. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +1 -1
  780. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
  781. package/src/components/Calculator/Calculator.fixture.tsx +4 -4
  782. package/src/components/Calculator/Calculator.tsx +8 -22
  783. package/src/components/Calculator/getCalculatorParams.ts +3 -1
  784. package/src/components/Calculator/getCreditRate.ts +3 -1
  785. package/src/components/Calculator/getMonthlyPayment.ts +3 -1
  786. package/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
  787. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -26
  788. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -1
  789. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +7 -13
  790. package/src/components/ComparisonTable/TableCell.mobile.tsx +7 -8
  791. package/src/components/ComparisonTable/TableCell.tsx +7 -10
  792. package/src/components/ComparisonTable/TableRow.tsx +6 -9
  793. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  794. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  795. package/src/components/ContentPage/ContentPage.page.json +50 -6
  796. package/src/components/ContentPage/ContentPageContext.tsx +20 -4
  797. package/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
  798. package/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
  799. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
  800. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  801. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
  802. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  803. package/src/components/ExchangeRateTile/calculateResult.ts +8 -0
  804. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
  805. package/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
  806. package/src/components/ExchangeRateTile/renderButton.tsx +14 -0
  807. package/src/components/ExchangeRateTile/renderInput.tsx +43 -0
  808. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  809. package/src/components/Footer/Footer.fixture.tsx +1 -1
  810. package/src/components/Footer/Footer.tsx +1 -1
  811. package/src/components/Footer/MediaButton.tsx +7 -17
  812. package/src/components/Footer/TextInformation.tsx +2 -2
  813. package/src/components/Gallery/Gallery.fixture.mobile.tsx +2 -24
  814. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  815. package/src/components/Gallery/Gallery.mobile.tsx +2 -2
  816. package/src/components/Gallery/GalleryCardInner.tsx +2 -2
  817. package/src/components/Gallery/GalleryInner.tsx +10 -20
  818. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  819. package/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
  820. package/src/components/GroupBlock/GroupBlock.example.json +8 -7
  821. package/src/components/GroupBlock/GroupBlock.fixture.tsx +19 -3
  822. package/src/components/GroupBlock/GroupBlock.tsx +9 -4
  823. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  824. package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
  825. package/src/components/Header/DropdownMenu.tsx +72 -0
  826. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  827. package/src/components/Header/Header.fixture.tsx +1 -1
  828. package/src/components/Header/HeaderSubMenu.tsx +45 -87
  829. package/src/components/Headline/Headline.fixture.mobile.tsx +45 -4
  830. package/src/components/Headline/Headline.fixture.tsx +31 -7
  831. package/src/components/Insurance/Insurance.example.json +21 -0
  832. package/src/components/Insurance/Insurance.fixture.tsx +11 -6
  833. package/src/components/Insurance/Insurance.tsx +10 -9
  834. package/src/components/Insurance/InsuranceContent.ts +9 -11
  835. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  836. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
  837. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  838. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  839. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
  840. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  841. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +2 -2
  842. package/src/components/LinkDocs/LinkDocs.fixture.tsx +2 -2
  843. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
  844. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  845. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  846. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  847. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  848. package/src/components/Navigation/Navigation.fixture.tsx +1 -1
  849. package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +1 -1
  850. package/src/components/OtherProducts/OtherProducts.fixture.tsx +1 -1
  851. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  852. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  853. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  854. package/src/components/Placeholder/Placeholder.tsx +6 -2
  855. package/src/components/ProductBlock/ProductBlock.example.json +1 -5
  856. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
  857. package/src/components/ProductBlock/ProductBlock.fixture.tsx +35 -5
  858. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
  859. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  860. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +1 -1
  861. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
  862. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  863. package/src/components/ProductTile/ProductTile.tsx +2 -2
  864. package/src/components/PromoTile/PromoTile.fixture.tsx +2 -2
  865. package/src/components/Recommendation/Recommendation.fixture.tsx +18 -13
  866. package/src/components/Recommendation/Recommendation.tsx +7 -15
  867. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +38 -3
  868. package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -4
  869. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  870. package/src/components/TariffsTable/TariffsTable.example.json +1 -5
  871. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +2 -30
  872. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  873. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +106 -103
  874. package/src/components/TextBlock/TextBlock.fixture.tsx +65 -87
  875. package/src/components/Tile/Tile.example.json +1 -0
  876. package/src/components/Tile/Tile.fixture.tsx +2 -1
  877. package/src/components/Tile/Tile.tsx +4 -2
  878. package/src/components/Tile/TileContent.ts +5 -0
  879. package/src/content-page-repository/mapJSON.ts +11 -7
  880. package/src/content-page-repository/transformMarkdown.ts +3 -1
  881. package/src/content-page-repository/transformPicture.ts +8 -3
  882. package/src/hooks/useCreditCalculatorData.ts +2 -3
  883. package/src/hooks/useExchangeRates.ts +70 -10
  884. package/src/hooks/useTableArrowScrollControl.ts +3 -3
  885. package/src/icons/DoneIcon.svg +4 -0
  886. package/src/icons/IconName.ts +4 -1
  887. package/src/model/Insurance.ts +6 -0
  888. package/src/react/IntersectionObserverTag.tsx +23 -0
  889. package/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
  890. package/src/services/sitemap/isHrefActive.ts +2 -1
  891. package/src/ui-kit/Button/ArrowButton.tsx +1 -1
  892. package/src/ui-kit/Button/Button.fixture.mobile.tsx +1 -1
  893. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  894. package/src/ui-kit/Button/ButtonSection.tsx +3 -1
  895. package/src/ui-kit/Button/renderArrows.tsx +41 -0
  896. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  897. package/src/ui-kit/Icon/Icon.fixture.tsx +2 -2
  898. package/src/ui-kit/Img/Img.mobile.tsx +1 -0
  899. package/src/ui-kit/Input/Input.tsx +21 -5
  900. package/src/ui-kit/Input/InputProps.ts +3 -0
  901. package/src/ui-kit/InputRange/InputRange.tsx +14 -6
  902. package/src/ui-kit/List/List.fixture.tsx +1 -1
  903. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  904. package/src/ui-kit/SVG.tsx +2 -2
  905. package/src/ui-kit/SearchBar.mobile.tsx +1 -3
  906. package/src/ui-kit/Select/Select.tsx +17 -7
  907. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
  908. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
  909. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
  910. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
  911. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
  912. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
  913. package/src/ui-kit/Tabs/Tabs.tsx +4 -3
  914. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  915. package/src/ui-kit/TopItem/TopItem.tsx +8 -9
  916. package/src/utils/changeHashOnScroll.ts +3 -1
  917. package/src/utils/getCurrentDate.ts +1 -1
  918. package/src/utils/roundTo.ts +4 -0
  919. package/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  920. package/dist/components/CreditCalculator/CreditCalculator.js +0 -14
  921. package/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
  922. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  923. package/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  924. package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  925. package/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
  926. package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  927. package/dist/components/CreditCalculator/constants.d.ts +0 -7
  928. package/dist/components/CreditCalculator/constants.js +0 -10
  929. package/dist/components/CreditCalculator/constants.js.map +0 -1
  930. package/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
  931. package/dist/components/CreditCalculator/defaultTabs.js +0 -23
  932. package/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
  933. package/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  934. package/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
  935. package/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  936. package/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
  937. package/dist/components/CreditCalculator/getCreditRate.js +0 -13
  938. package/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
  939. package/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  940. package/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
  941. package/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  942. package/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  943. package/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
  944. package/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  945. package/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  946. package/dist/components/CreditCalculator/getDefaultSum.js +0 -8
  947. package/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
  948. package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  949. package/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
  950. package/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  951. package/dist/components/CreditCalculator/renderButton.d.ts +0 -1
  952. package/dist/components/CreditCalculator/renderButton.js +0 -15
  953. package/dist/components/CreditCalculator/renderButton.js.map +0 -1
  954. package/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  955. package/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
  956. package/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  957. package/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
  958. package/dist/components/CreditCalculator/renderProposal.js +0 -9
  959. package/dist/components/CreditCalculator/renderProposal.js.map +0 -1
  960. package/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  961. package/dist/components/CreditCalculator/renderTermsButton.js +0 -9
  962. package/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
  963. package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  964. package/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
  965. package/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  966. package/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  967. package/dist/components/Header/HeaderSubMenuObserver.js +0 -36
  968. package/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
  969. package/dist/setup-fixture.js.map +0 -1
  970. package/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  971. package/lib/components/CreditCalculator/CreditCalculator.js +0 -12
  972. package/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
  973. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  974. package/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
  975. package/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  976. package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  977. package/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
  978. package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  979. package/lib/components/CreditCalculator/constants.d.ts +0 -7
  980. package/lib/components/CreditCalculator/constants.js +0 -8
  981. package/lib/components/CreditCalculator/constants.js.map +0 -1
  982. package/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
  983. package/lib/components/CreditCalculator/defaultTabs.js +0 -21
  984. package/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
  985. package/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  986. package/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
  987. package/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  988. package/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
  989. package/lib/components/CreditCalculator/getCreditRate.js +0 -10
  990. package/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
  991. package/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  992. package/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
  993. package/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  994. package/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  995. package/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
  996. package/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  997. package/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  998. package/lib/components/CreditCalculator/getDefaultSum.js +0 -5
  999. package/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1000. package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1001. package/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
  1002. package/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1003. package/lib/components/CreditCalculator/renderButton.d.ts +0 -1
  1004. package/lib/components/CreditCalculator/renderButton.js +0 -12
  1005. package/lib/components/CreditCalculator/renderButton.js.map +0 -1
  1006. package/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1007. package/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
  1008. package/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1009. package/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
  1010. package/lib/components/CreditCalculator/renderProposal.js +0 -6
  1011. package/lib/components/CreditCalculator/renderProposal.js.map +0 -1
  1012. package/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1013. package/lib/components/CreditCalculator/renderTermsButton.js +0 -6
  1014. package/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1015. package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1016. package/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
  1017. package/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1018. package/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1019. package/lib/components/Header/HeaderSubMenuObserver.js +0 -34
  1020. package/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1021. package/lib/setup-fixture.js.map +0 -1
  1022. package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  1023. package/mobile/dist/components/CreditCalculator/CreditCalculator.js +0 -14
  1024. package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
  1025. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  1026. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  1027. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  1028. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
  1029. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  1030. package/mobile/dist/components/CreditCalculator/constants.d.ts +0 -7
  1031. package/mobile/dist/components/CreditCalculator/constants.js +0 -10
  1032. package/mobile/dist/components/CreditCalculator/constants.js.map +0 -1
  1033. package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
  1034. package/mobile/dist/components/CreditCalculator/defaultTabs.js +0 -23
  1035. package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
  1036. package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  1037. package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
  1038. package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  1039. package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
  1040. package/mobile/dist/components/CreditCalculator/getCreditRate.js +0 -13
  1041. package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
  1042. package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  1043. package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
  1044. package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  1045. package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  1046. package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
  1047. package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  1048. package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  1049. package/mobile/dist/components/CreditCalculator/getDefaultSum.js +0 -8
  1050. package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1051. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1052. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
  1053. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1054. package/mobile/dist/components/CreditCalculator/renderButton.d.ts +0 -1
  1055. package/mobile/dist/components/CreditCalculator/renderButton.js +0 -15
  1056. package/mobile/dist/components/CreditCalculator/renderButton.js.map +0 -1
  1057. package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1058. package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
  1059. package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1060. package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
  1061. package/mobile/dist/components/CreditCalculator/renderProposal.js +0 -9
  1062. package/mobile/dist/components/CreditCalculator/renderProposal.js.map +0 -1
  1063. package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1064. package/mobile/dist/components/CreditCalculator/renderTermsButton.js +0 -9
  1065. package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1066. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1067. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
  1068. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1069. package/mobile/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1070. package/mobile/dist/components/Header/HeaderSubMenuObserver.js +0 -36
  1071. package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1072. package/mobile/dist/setup-fixture.js.map +0 -1
  1073. package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  1074. package/mobile/lib/components/CreditCalculator/CreditCalculator.js +0 -12
  1075. package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
  1076. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  1077. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
  1078. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  1079. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  1080. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
  1081. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  1082. package/mobile/lib/components/CreditCalculator/constants.d.ts +0 -7
  1083. package/mobile/lib/components/CreditCalculator/constants.js +0 -8
  1084. package/mobile/lib/components/CreditCalculator/constants.js.map +0 -1
  1085. package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
  1086. package/mobile/lib/components/CreditCalculator/defaultTabs.js +0 -21
  1087. package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
  1088. package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  1089. package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
  1090. package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  1091. package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
  1092. package/mobile/lib/components/CreditCalculator/getCreditRate.js +0 -10
  1093. package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
  1094. package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  1095. package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
  1096. package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  1097. package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  1098. package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
  1099. package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  1100. package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  1101. package/mobile/lib/components/CreditCalculator/getDefaultSum.js +0 -5
  1102. package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1103. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1104. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
  1105. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1106. package/mobile/lib/components/CreditCalculator/renderButton.d.ts +0 -1
  1107. package/mobile/lib/components/CreditCalculator/renderButton.js +0 -12
  1108. package/mobile/lib/components/CreditCalculator/renderButton.js.map +0 -1
  1109. package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1110. package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
  1111. package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1112. package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
  1113. package/mobile/lib/components/CreditCalculator/renderProposal.js +0 -6
  1114. package/mobile/lib/components/CreditCalculator/renderProposal.js.map +0 -1
  1115. package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1116. package/mobile/lib/components/CreditCalculator/renderTermsButton.js +0 -6
  1117. package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1118. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1119. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
  1120. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1121. package/mobile/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1122. package/mobile/lib/components/Header/HeaderSubMenuObserver.js +0 -34
  1123. package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1124. package/mobile/lib/setup-fixture.js.map +0 -1
  1125. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
  1126. package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
  1127. package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
  1128. package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
  1129. package/mobile/src/components/CreditCalculator/constants.ts +0 -8
  1130. package/mobile/src/components/CreditCalculator/defaultTabs.ts +0 -22
  1131. package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
  1132. package/mobile/src/components/CreditCalculator/getCreditRate.ts +0 -18
  1133. package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
  1134. package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
  1135. package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
  1136. package/mobile/src/components/CreditCalculator/getDefaultSum.ts +0 -7
  1137. package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
  1138. package/mobile/src/components/CreditCalculator/renderButton.tsx +0 -23
  1139. package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
  1140. package/mobile/src/components/CreditCalculator/renderProposal.tsx +0 -13
  1141. package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
  1142. package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
  1143. package/mobile/src/components/Header/HeaderSubMenuObserver.ts +0 -48
  1144. package/mobile/src/components/Insurance/Insuranse.example.json +0 -36
  1145. package/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
  1146. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +0 -32
  1147. package/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
  1148. package/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
  1149. package/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
  1150. package/src/components/CreditCalculator/constants.ts +0 -8
  1151. package/src/components/CreditCalculator/defaultTabs.ts +0 -22
  1152. package/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
  1153. package/src/components/CreditCalculator/getCreditRate.ts +0 -18
  1154. package/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
  1155. package/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
  1156. package/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
  1157. package/src/components/CreditCalculator/getDefaultSum.ts +0 -7
  1158. package/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
  1159. package/src/components/CreditCalculator/renderButton.tsx +0 -23
  1160. package/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
  1161. package/src/components/CreditCalculator/renderProposal.tsx +0 -13
  1162. package/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
  1163. package/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
  1164. package/src/components/Header/HeaderSubMenuObserver.ts +0 -48
  1165. package/src/components/Insurance/Insuranse.example.json +0 -36
@@ -13,6 +13,7 @@ export const Img = JSX<ImageProps<Image>>(
13
13
  return (
14
14
  <Icon
15
15
  className={className}
16
+ imageClassName={imageClassName}
16
17
  iconVersion={getIconVersion(image)}
17
18
  name={icon}
18
19
  {...iconProps}
@@ -1,8 +1,24 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { InputProps } from './InputProps';
3
+ import { ChangeEvent } from 'react';
3
4
 
4
- export const Input = JSX<InputProps>(({ className = '', id, name, type = 'text', placeholder }) => {
5
- return (
6
- <input className={className} id={id} name={name || id} type={type} placeholder={placeholder} />
7
- );
8
- });
5
+ export const Input = JSX<InputProps>(
6
+ ({ className = '', id, name, type = 'text', placeholder, pattern, value, onChange }) => {
7
+ const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
8
+ const validInputValue = e.target.validity.valid ? e.target.value : value;
9
+ onChange(validInputValue);
10
+ };
11
+ return (
12
+ <input
13
+ className={className}
14
+ id={id}
15
+ name={name || id}
16
+ type={type}
17
+ pattern={pattern}
18
+ placeholder={placeholder}
19
+ value={value}
20
+ onChange={(e) => handleChange(e)}
21
+ />
22
+ );
23
+ },
24
+ );
@@ -6,4 +6,7 @@ export interface InputProps {
6
6
  name?: string;
7
7
  type?: InputTypes;
8
8
  placeholder?: string;
9
+ pattern?: string;
10
+ value: string;
11
+ onChange: (value: string) => void;
9
12
  }
@@ -4,18 +4,26 @@ import type { InputRangeProps } from './InputRangeProps';
4
4
 
5
5
  export const InputRange = JSX<InputRangeProps>(
6
6
  ({ className, title, items = [], min = 1, max = 100, step = 1, value = min, onChange }) => {
7
- const handleChange = (value: string) => {
8
- if (!onChange) return;
9
- const sanitizedValue = Number(value.replace(/\D/g, ''));
7
+ const handleChange = (_: string) => {
8
+ if (!onChange) {
9
+ return;
10
+ }
11
+ const sanitizedValue = Number(_.replace(/\D/g, ''));
10
12
  onChange(sanitizedValue);
11
13
  };
12
14
  const inputStyle = {
13
15
  backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
14
16
  };
15
17
  const handleBlur = () => {
16
- if (!onChange) return;
17
- if (value < min) onChange(min);
18
- if (value > max) onChange(max);
18
+ if (!onChange) {
19
+ return;
20
+ }
21
+ if (value < min) {
22
+ onChange(min);
23
+ }
24
+ if (value > max) {
25
+ onChange(max);
26
+ }
19
27
  };
20
28
  return (
21
29
  <div className={className}>
@@ -1,4 +1,4 @@
1
- import '../../setup-fixture';
1
+ import '../../react/setup-fixture';
2
2
  import { List } from './List';
3
3
 
4
4
  const items = ['List Item #1', 'List Item #2', 'List Item #3', 'List Item #4'];
@@ -1,4 +1,4 @@
1
- import '../../setup-fixture';
1
+ import '../../react/setup-fixture';
2
2
 
3
3
  import { Logo } from './Logo';
4
4
 
@@ -32,8 +32,8 @@ export const SVG = JSX<SVGProps>(
32
32
  width={width}
33
33
  height={height}
34
34
  >
35
- {paths.map(({ d, fill, ...options }, i) => (
36
- <path key={i} d={d} fill={fill || 'currentColor'} {...commonOptions} {...options} />
35
+ {paths.map(({ d, fill: pathFill, ...options }, i) => (
36
+ <path key={i} d={d} fill={pathFill || 'currentColor'} {...commonOptions} {...options} />
37
37
  ))}
38
38
  </svg>
39
39
  );
@@ -22,9 +22,7 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
22
22
  </div>
23
23
  <input
24
24
  id="search-bar-input"
25
- className={
26
- 'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text'
27
- }
25
+ className="pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text"
28
26
  value={term}
29
27
  onChange={(e) => setTerm(e.target.value)}
30
28
  type="text"
@@ -4,12 +4,22 @@ export interface SelectProps {
4
4
  className?: string;
5
5
  id?: string;
6
6
  name?: string;
7
+ value: string;
8
+ onChange: (value: string) => void;
7
9
  }
8
10
 
9
- export const Select = JSX<SelectProps>(({ className = '', id, name, children }) => {
10
- return (
11
- <select className={className} id={id} name={name || id}>
12
- {children}
13
- </select>
14
- );
15
- });
11
+ export const Select = JSX<SelectProps>(
12
+ ({ className = '', id, name, children, value, onChange }) => {
13
+ return (
14
+ <select
15
+ className={className}
16
+ id={id}
17
+ name={name || id}
18
+ value={value}
19
+ onChange={(e) => onChange(e.target.value)}
20
+ >
21
+ {children}
22
+ </select>
23
+ );
24
+ },
25
+ );
@@ -1,5 +1,5 @@
1
+ import { mobileContext } from '../../react/setup-fixture';
1
2
  import { SwipeListControl } from './SwipeListControl';
2
- import { mobileContext } from '../../setup-fixture';
3
3
 
4
4
  const generateChildren = (count: number) =>
5
5
  new Array(count).fill(0).map((_, i) => (
@@ -2,9 +2,9 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
3
3
  import { SwipeListControlDots } from './SwipeListControlDots';
4
4
  import { SwipeListControlList } from './SwipeListControlList';
5
+ import type { SwipeListControlProps } from './SwipeListControlProps';
5
6
  import { getIndexParts } from './utils/getIndexParts';
6
7
  import { getScrollPoints } from './utils/getScrollPoints';
7
- import type { SwipeListControlProps } from './SwipeListControlProps';
8
8
 
9
9
  export const SwipeListControl = JSX<SwipeListControlProps>(
10
10
  ({
@@ -27,12 +27,17 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
27
27
  };
28
28
 
29
29
  const handleScroll = (e: UIEvent) => {
30
- const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } =
31
- e.currentTarget as HTMLElement;
30
+ const {
31
+ scrollLeft,
32
+ clientWidth,
33
+ childElementCount,
34
+ scrollWidth,
35
+ children: childrenCollection,
36
+ } = e.currentTarget as HTMLElement;
32
37
 
33
38
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
34
39
  // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
35
- const itemWidth = (children[0] as HTMLElement).offsetWidth - padding / 2;
40
+ const itemWidth = (childrenCollection[0] as HTMLElement).offsetWidth - padding / 2;
36
41
  const scrollPoints = getScrollPoints({
37
42
  gap,
38
43
  padding,
@@ -46,7 +46,9 @@ const getDotStyles = (
46
46
  activeIndex: number,
47
47
  indexFraction: number,
48
48
  ): Record<string, string> | null => {
49
- if (currentIdx < activeIndex || currentIdx > activeIndex + 1) return null;
49
+ if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
50
+ return null;
51
+ }
50
52
 
51
53
  const leftIndexMod = 1 - indexFraction;
52
54
  const rightIndexMod = indexFraction;
@@ -11,8 +11,12 @@ export const getIndexParts = (
11
11
  index: number;
12
12
  fraction: number;
13
13
  } => {
14
- const index = scrollPoints.findIndex(([start, end]) => start <= scrollLeft && scrollLeft < end);
15
- if (index < 0) return { index, fraction: 0 };
14
+ const index = scrollPoints.findIndex(
15
+ ([pointStart, pointEnd]) => pointStart <= scrollLeft && scrollLeft < pointEnd,
16
+ );
17
+ if (index < 0) {
18
+ return { index, fraction: 0 };
19
+ }
16
20
 
17
21
  const [start, end] = scrollPoints[index];
18
22
  const fraction = (scrollLeft - start) / (end - start);
@@ -1,27 +1,18 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { ArrowButton } from '../Button/ArrowButton';
2
+ import { renderArrows } from '../Button/renderArrows';
3
3
  import type { TableArrowScrollControlProps } from './TableArrowScrollControlProps';
4
4
 
5
5
  export const TableArrowScrollControl = JSX<TableArrowScrollControlProps>(
6
- ({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
6
+ ({ isScrollAvailable, handleNextClick, handlePrevClick, showNextButton, showPrevButton }) => {
7
7
  return isScrollAvailable ? (
8
8
  <div>
9
- <div className="absolute top-7 right-7 z-10">
10
- <ArrowButton
11
- className="mt-4 rotate-180"
12
- onClick={onNextClick}
13
- disabled={!showNextButton}
14
- ariaLabel="Пролистать вправо"
15
- data-block-control="scroll-right"
16
- />
17
- <ArrowButton
18
- className="mt-4"
19
- onClick={onPrevClick}
20
- disabled={!showPrevButton}
21
- ariaLabel="Пролистать влево"
22
- data-block-control="scroll-left"
23
- />
24
- </div>
9
+ {renderArrows({
10
+ handler: [handlePrevClick, handleNextClick],
11
+ isShown: [showPrevButton, showNextButton],
12
+ btnClass: ['top-[108px]', 'top-11'],
13
+ className: 'right-7',
14
+ isDisabled: true,
15
+ })}
25
16
  </div>
26
17
  ) : null;
27
18
  },
@@ -1,7 +1,9 @@
1
+ import { FuncReturnVoid } from '../../types';
2
+
1
3
  export interface TableArrowScrollControlProps {
2
4
  isScrollAvailable?: boolean;
3
- onNextClick?: (ev?: MouseEvent) => void;
4
- onPrevClick?: (ev?: MouseEvent) => void;
5
- showNextButton?: boolean;
6
- showPrevButton?: boolean;
5
+ handleNextClick: FuncReturnVoid<MouseEvent>;
6
+ handlePrevClick: FuncReturnVoid<MouseEvent>;
7
+ showNextButton: boolean;
8
+ showPrevButton: boolean;
7
9
  }
@@ -13,6 +13,9 @@ export const Tabs = JSX<TabsProps>(({ tabs, currentTabIndex, onTabClick }) => {
13
13
  );
14
14
  });
15
15
 
16
+ const tabDescriptionStyle = (isActive = false) =>
17
+ `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`;
18
+
16
19
  const renderTab =
17
20
  (currentTabIndex: number, onTabClick: TabClickHandler) => (tab: Tab, index: number) => {
18
21
  const isActive = currentTabIndex === index;
@@ -30,9 +33,7 @@ const renderTab =
30
33
  <div>
31
34
  {tab?.title ? <h3 className="font-medium m-0 text-base">{tab?.title}</h3> : null}
32
35
  {tab?.description ? (
33
- <span className={`font-light text-xs ${isActive ? '' : 'text-secondary-text'}`}>
34
- {tab?.description}
35
- </span>
36
+ <span className={tabDescriptionStyle(isActive)}>{tab?.description}</span>
36
37
  ) : null}
37
38
  </div>
38
39
  </div>
@@ -1,4 +1,4 @@
1
- import '../../setup-fixture';
1
+ import '../../react/setup-fixture';
2
2
 
3
3
  import { TopItem } from './TopItem';
4
4
 
@@ -44,7 +44,7 @@ export const TopItem = JSX<TopItemProps>(
44
44
  ),
45
45
  );
46
46
 
47
- const getLinkClasses = (bgColor: BgColorVersion, active?: boolean, flat?: boolean) => {
47
+ const getLinkClasses = (bgColor: BgColorVersion, active = false, flat = false) => {
48
48
  let classes = 'border-transparent';
49
49
  if (active) {
50
50
  classes = `rounded-md ${bgColor === 'bg-white' ? 'border-primary-main' : 'border-white'}`;
@@ -53,13 +53,12 @@ const getLinkClasses = (bgColor: BgColorVersion, active?: boolean, flat?: boolea
53
53
  return `${classes} ${LINK_CLASSES} ${flat ? '' : 'px-4 py-2'}`;
54
54
  };
55
55
 
56
- const getTextClasses = (bgColor: BgColorVersion, active?: boolean, flat?: boolean) => {
57
- let classes = 'text-white';
58
- if (bgColor === 'bg-white') {
59
- classes = active
60
- ? 'text-primary-main'
61
- : `${flat ? 'text-primary-text' : 'text-secondary-text'} hover:text-primary-main`;
56
+ const getTextClasses = (bgColor: BgColorVersion, active = false, flat = false) => {
57
+ if (bgColor !== 'bg-white') {
58
+ return `text-white ${TEXT_CLASSES}`;
62
59
  }
63
-
64
- return `${classes} ${TEXT_CLASSES}`;
60
+ const nonActiveAtoms = `${
61
+ flat ? 'text-primary-text' : 'text-secondary-text'
62
+ } hover:text-primary-main`;
63
+ return `${active ? 'text-primary-main' : nonActiveAtoms} ${TEXT_CLASSES}`;
65
64
  };
@@ -5,7 +5,9 @@ export const changeHashOnScroll = (router: Router, blocks: NodeListOf<Element> |
5
5
  const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
6
6
  const anchorHash = `#${block?.id}`;
7
7
 
8
- if (currentHash === anchorHash) return;
8
+ if (currentHash === anchorHash) {
9
+ return;
10
+ }
9
11
 
10
12
  const position = block?.getBoundingClientRect();
11
13
  if (position && position.top > 0 && position.top < 150) {
@@ -1,3 +1,3 @@
1
1
  export const getCurrentDate = () => {
2
- return new Date().toJSON().slice(0, "YYYY-MM-DD".length);
2
+ return new Date().toJSON().slice(0, 'YYYY-MM-DD'.length);
3
3
  };
@@ -0,0 +1,4 @@
1
+ export const roundTo = (value: number, precision = 2) => {
2
+ const factor = Math.pow(10, precision);
3
+ return Math.round(parseFloat(String(value)) * factor) / factor;
4
+ };
@@ -1,5 +0,0 @@
1
- import { UniBlockProps } from '../../types';
2
- import type { CreditCalculatorContent } from './CreditCalculatorContent';
3
- export interface CreditCalculatorProps extends CreditCalculatorContent, UniBlockProps {
4
- }
5
- export declare const CreditCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<CreditCalculatorProps, any>, context?: any) => any;
@@ -1,14 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.CreditCalculator = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Heading_1 = require("../../ui-kit/Heading/Heading");
6
- const Tabs_1 = require("../../ui-kit/Tabs/Tabs");
7
- const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
8
- const CreditCalculatorForm_1 = require("./CreditCalculatorForm");
9
- const defaultTabs_1 = require("./defaultTabs");
10
- exports.CreditCalculator = (0, uni_jsx_1.JSX)(({ className = '', context, tabs = defaultTabs_1.DEFAULT_TABS, anchor = null }) => {
11
- const [currentTabIndex, setCurrentTabIndex] = context.useState(0);
12
- return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text py-10 bg-white ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "w-full text-center mb-8", headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: "\u041A\u0430\u043B\u044C\u043A\u0443\u043B\u044F\u0442\u043E\u0440" }), (0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { tabs: tabs, currentTabIndex: currentTabIndex, onTabClick: setCurrentTabIndex }), (0, jsx_runtime_1.jsx)(CreditCalculatorForm_1.CreditCalculatorForm, { context: context, directoryName: tabs[currentTabIndex]?.directoryName })] }));
13
- });
14
- //# sourceMappingURL=CreditCalculator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreditCalculator.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,iDAA8C;AAC9C,uEAAoE;AAEpE,iEAA8D;AAC9D,+CAA6C;AAIhC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,0BAAY,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,OAAO,CACL,qCAAS,SAAS,EAAE,8CAA8C,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aACvF,uBAAC,iBAAO,IACN,SAAS,EAAC,yBAAyB,EACnC,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAC,oEAAa,GACnB,EACF,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,GAAI,EACtF,uBAAC,2CAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,EAAE,aAAa,GACnD,IACM,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,30 +0,0 @@
1
- import type { Tab } from '../../ui-kit/Tabs/TabsProps';
2
- /**
3
- * @hidden
4
- */
5
- export interface CalculatorParams {
6
- isAnnuity?: boolean;
7
- minSum?: number;
8
- maxSum?: number;
9
- minMonths?: number;
10
- maxMonths?: number;
11
- rateWithInsurance?: number;
12
- rateWithoutInsurance?: number;
13
- }
14
- export interface CreditCalculatorData {
15
- rows?: CalculatorParams[];
16
- }
17
- /**
18
- * @title Вкладка
19
- */
20
- export interface CreditCalculatorTab extends Tab {
21
- /** @title Справочник */
22
- directoryName?: string;
23
- }
24
- /**
25
- * @title Кредитный калькулятор
26
- */
27
- export interface CreditCalculatorContent {
28
- /** @title Вкладки */
29
- tabs?: CreditCalculatorTab[];
30
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreditCalculatorContent.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculatorContent.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { UniBlockProps } from '../../types';
2
- export interface CreditCalculatorFormProps extends UniBlockProps {
3
- directoryName?: string;
4
- }
5
- export declare const CreditCalculatorForm: (props: import("@redneckz/uni-jsx").PropsWithChildren<CreditCalculatorFormProps, any>, context?: any) => any;
@@ -1,53 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.CreditCalculatorForm = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const useCreditCalculatorData_1 = require("../../hooks/useCreditCalculatorData");
6
- const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
7
- const clamp_1 = require("../../utils/clamp");
8
- const constants_1 = require("./constants");
9
- const getCalculatorParams_1 = require("./getCalculatorParams");
10
- const getCreditRate_1 = require("./getCreditRate");
11
- const getCreditTermYears_1 = require("./getCreditTermYears");
12
- const getDefaultMonths_1 = require("./getDefaultMonths");
13
- const getDefaultSum_1 = require("./getDefaultSum");
14
- const getMonthlyPayment_1 = require("./getMonthlyPayment");
15
- const renderButton_1 = require("./renderButton");
16
- const renderMonthsInput_1 = require("./renderMonthsInput");
17
- const renderProposal_1 = require("./renderProposal");
18
- const renderTermsButton_1 = require("./renderTermsButton");
19
- const renderWantedSumInput_1 = require("./renderWantedSumInput");
20
- const DEFAULT_PAYMENT_TYPE = 'annuity';
21
- const BORDER_STYLE = 'border-solid border-[3px] border-primary-main rounded-md';
22
- exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ context, directoryName }) => {
23
- const [moneyValue, setMoneyValue] = context.useState(undefined);
24
- const [monthsValue, setMonthsValue] = context.useState(undefined);
25
- const [isAnnuityChecked, setIsAnnuityChecked] = context.useState(true);
26
- const [isInsuranceChecked, setIsInsuranceChecked] = context.useState(true);
27
- const tableRows = (0, useCreditCalculatorData_1.useCreditCalculatorData)(context.useAsyncData, directoryName).rows;
28
- const calculatorParams = (0, getCalculatorParams_1.getCalculatorParams)({ tableRows, isAnnuity: isAnnuityChecked });
29
- const defaultSum = (0, getDefaultSum_1.getDefaultSum)(calculatorParams);
30
- const defaultMonths = (0, getDefaultMonths_1.getDefaultMonths)(calculatorParams);
31
- const minMonths = calculatorParams?.minMonths || constants_1.DEFAULT_MIN_MONTHS;
32
- const maxMonths = calculatorParams?.maxMonths || constants_1.DEFAULT_MAX_MONTHS;
33
- const rate = (0, getCreditRate_1.getCreditRate)({ calculatorParams, isInsurance: isInsuranceChecked });
34
- const monthlyPayment = (0, getMonthlyPayment_1.getMonthlyPayment)({
35
- calculatorParams,
36
- paymentType: DEFAULT_PAYMENT_TYPE,
37
- rate,
38
- sum: moneyValue || defaultSum,
39
- months: monthsValue || defaultMonths,
40
- });
41
- const creditTermYears = (0, getCreditTermYears_1.getCreditTermYears)(minMonths, maxMonths);
42
- function handleButtonClick(value) {
43
- setMonthsValue((0, clamp_1.clamp)(value * constants_1.MONTHS_IN_YEAR, minMonths, maxMonths));
44
- }
45
- return ((0, jsx_runtime_1.jsx)("section", { className: "mt-7", children: (0, jsx_runtime_1.jsxs)("div", { className: `box-border p-[49px] pr-[56px] mx-auto w-max ${BORDER_STYLE}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-[42px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({ calculatorParams, moneyValue, defaultSum, setMoneyValue }), (0, renderMonthsInput_1.renderMonthsInput)({
46
- minMonths,
47
- maxMonths,
48
- monthsValue,
49
- defaultMonths,
50
- setMonthsValue,
51
- }), (0, jsx_runtime_1.jsx)("div", { className: "flex mb-7", children: creditTermYears.map((number, i) => (0, renderButton_1.renderButton)(number, i, handleButtonClick)) }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", checked: isAnnuityChecked, onChange: setIsAnnuityChecked }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3 mb-7", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsuranceChecked, onChange: setIsInsuranceChecked })] }), (0, renderProposal_1.renderProposal)(monthlyPayment, rate)] }), (0, renderTermsButton_1.renderTermsButton)()] }) }));
52
- });
53
- //# sourceMappingURL=CreditCalculatorForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iFAA8E;AAE9E,6DAA0D;AAC1D,6CAA0C;AAC1C,2CAAqF;AACrF,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAC1D,yDAAsD;AACtD,mDAAgD;AAChD,2DAAwD;AACxD,iDAA8C;AAC9C,2DAAwD;AACxD,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAE9D,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,MAAM,YAAY,GAAG,0DAA0D,CAAC;AAMnE,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IAChG,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAqB,SAAS,CAAC,CAAC;IACpF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAqB,SAAS,CAAC,CAAC;IACtF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,IAAA,iDAAuB,EAAC,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC;IACpF,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAEzF,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,gBAAgB,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,IAAA,mCAAgB,EAAC,gBAAgB,CAAC,CAAC;IAEzD,MAAM,SAAS,GAAG,gBAAgB,EAAE,SAAS,IAAI,8BAAkB,CAAC;IACpE,MAAM,SAAS,GAAG,gBAAgB,EAAE,SAAS,IAAI,8BAAkB,CAAC;IAEpE,MAAM,IAAI,GAAG,IAAA,6BAAa,EAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAElF,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC;QACvC,gBAAgB;QAChB,WAAW,EAAE,oBAAoB;QACjC,IAAI;QACJ,GAAG,EAAE,UAAU,IAAI,UAAU;QAC7B,MAAM,EAAE,WAAW,IAAI,aAAa;KACrC,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,IAAA,uCAAkB,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAEjE,SAAS,iBAAiB,CAAC,KAAa;QACtC,cAAc,CAAC,IAAA,aAAK,EAAC,KAAK,GAAG,0BAAc,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACvB,iCAAK,SAAS,EAAE,+CAA+C,YAAY,EAAE,aAC3E,iCAAK,SAAS,EAAC,sBAAsB,aACnC,iCAAK,SAAS,EAAC,WAAW,aACvB,IAAA,2CAAoB,EAAC,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,EACjF,IAAA,qCAAiB,EAAC;oCACjB,SAAS;oCACT,SAAS;oCACT,WAAW;oCACX,aAAa;oCACb,cAAc;iCACf,CAAC,EACF,gCAAK,SAAS,EAAC,WAAW,YACvB,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,2BAAY,EAAC,MAAM,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC,GAC3E,EACN,uBAAC,mBAAQ,IACP,IAAI,EAAC,wNAAyC,EAC9C,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,mBAAmB,GAC7B,EACF,uBAAC,mBAAQ,IACP,SAAS,EAAC,WAAW,EACrB,IAAI,EAAC,gKAA8B,EACnC,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE,qBAAqB,GAC/B,IACE,EACL,IAAA,+BAAc,EAAC,cAAc,EAAE,IAAI,CAAC,IACjC,EACL,IAAA,qCAAiB,GAAE,IAChB,GACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const DEFAULT_MIN_SUM = 30000;
2
- export declare const DEFAULT_MAX_SUM = 3000000;
3
- export declare const DEFAULT_SUM: number;
4
- export declare const DEFAULT_MIN_MONTHS = 1;
5
- export declare const DEFAULT_MAX_MONTHS = 84;
6
- export declare const DEFAULT_MONTHS: number;
7
- export declare const MONTHS_IN_YEAR = 12;
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MONTHS_IN_YEAR = exports.DEFAULT_MONTHS = exports.DEFAULT_MAX_MONTHS = exports.DEFAULT_MIN_MONTHS = exports.DEFAULT_SUM = exports.DEFAULT_MAX_SUM = exports.DEFAULT_MIN_SUM = void 0;
3
- exports.DEFAULT_MIN_SUM = 30000;
4
- exports.DEFAULT_MAX_SUM = 3000000;
5
- exports.DEFAULT_SUM = (exports.DEFAULT_MAX_SUM - exports.DEFAULT_MIN_SUM) / 2;
6
- exports.DEFAULT_MIN_MONTHS = 1;
7
- exports.DEFAULT_MAX_MONTHS = 84;
8
- exports.DEFAULT_MONTHS = Math.round((exports.DEFAULT_MAX_MONTHS - exports.DEFAULT_MIN_MONTHS) / 2);
9
- exports.MONTHS_IN_YEAR = 12;
10
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,WAAW,GAAG,CAAC,uBAAe,GAAG,uBAAe,CAAC,GAAG,CAAC,CAAC;AACtD,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,0BAAkB,GAAG,0BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AAE3E,QAAA,cAAc,GAAG,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CreditCalculatorTab } from './CreditCalculatorContent';
2
- export declare const DEFAULT_TABS: CreditCalculatorTab[];
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DEFAULT_TABS = void 0;
3
- exports.DEFAULT_TABS = [
4
- {
5
- title: 'Кредит',
6
- description: 'Ставка от 6% до 7 лет',
7
- directoryName: 'credit-calculator-data',
8
- icon: { icon: 'CardIcon' },
9
- },
10
- {
11
- title: 'Кредит',
12
- description: 'Ставка от 4% до 7 лет',
13
- directoryName: 'credit-calculator-data1',
14
- icon: { icon: 'ChartSquareIcon' },
15
- },
16
- {
17
- title: 'Кредит',
18
- description: 'Ставка от 3% до 6 лет',
19
- directoryName: 'credit-calculator-data2',
20
- icon: { icon: 'DiscountShapeIcon' },
21
- },
22
- ];
23
- //# sourceMappingURL=defaultTabs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultTabs.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/defaultTabs.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAA0B;IACjD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,wBAAwB;QACvC,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KAC3B;IACD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,yBAAyB;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;KAClC;IACD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,yBAAyB;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;KACpC;CACF,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { CalculatorParams } from './CreditCalculatorContent';
2
- interface GetCalculatorParamsParams {
3
- tableRows?: CalculatorParams[];
4
- isAnnuity?: boolean;
5
- }
6
- export declare const getCalculatorParams: (params: GetCalculatorParamsParams) => CalculatorParams;
7
- export {};
@@ -1,11 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.getCalculatorParams = void 0;
3
- const getCalculatorParams = (params) => {
4
- const { tableRows, isAnnuity = false } = params;
5
- if (!tableRows)
6
- return {};
7
- const calculatorParams = tableRows.find((row) => row.isAnnuity === isAnnuity);
8
- return calculatorParams || {};
9
- };
10
- exports.getCalculatorParams = getCalculatorParams;
11
- //# sourceMappingURL=getCalculatorParams.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCalculatorParams.ts"],"names":[],"mappings":";;AAOO,MAAM,mBAAmB,GAAG,CAAC,MAAiC,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;IAE9E,OAAO,gBAAgB,IAAI,EAAE,CAAC;AAChC,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B"}
@@ -1,7 +0,0 @@
1
- import type { CalculatorParams } from './CreditCalculatorContent';
2
- interface GetCreditRateParams {
3
- calculatorParams?: CalculatorParams;
4
- isInsurance: boolean;
5
- }
6
- export declare const getCreditRate: (params: GetCreditRateParams) => number;
7
- export {};
@@ -1,13 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.getCreditRate = void 0;
3
- const DEFAULT_RATE = 5;
4
- const getCreditRate = (params) => {
5
- const { calculatorParams, isInsurance } = params;
6
- if (!calculatorParams)
7
- return DEFAULT_RATE;
8
- return isInsurance
9
- ? calculatorParams?.rateWithInsurance || DEFAULT_RATE
10
- : calculatorParams?.rateWithoutInsurance || DEFAULT_RATE;
11
- };
12
- exports.getCreditRate = getCreditRate;
13
- //# sourceMappingURL=getCreditRate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCreditRate.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCreditRate.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAG,CAAC,CAAC;AAOhB,MAAM,aAAa,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC3D,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,gBAAgB;QAAE,OAAO,YAAY,CAAC;IAE3C,OAAO,WAAW;QAChB,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,YAAY;QACrD,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,IAAI,YAAY,CAAC;AAC7D,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
@@ -1 +0,0 @@
1
- export declare const getCreditTermYears: (minMonths: number, maxMonths: number) => number[];
@@ -1,15 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.getCreditTermYears = void 0;
3
- const constants_1 = require("./constants");
4
- const MAX_YEARS_LENGTH = 5;
5
- const getCreditTermYears = (minMonths, maxMonths) => {
6
- const totalYears = Math.ceil((maxMonths - minMonths) / 12);
7
- const firstYear = Math.floor(minMonths / constants_1.MONTHS_IN_YEAR) + 1;
8
- const result = new Array(Math.min(totalYears - 1, MAX_YEARS_LENGTH))
9
- .fill(0)
10
- .map((_, i) => firstYear + i);
11
- const maxYear = totalYears + firstYear - 1;
12
- return result.concat(maxYear);
13
- };
14
- exports.getCreditTermYears = getCreditTermYears;
15
- //# sourceMappingURL=getCreditTermYears.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCreditTermYears.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCreditTermYears.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAE7C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAEpB,MAAM,kBAAkB,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAE,EAAE;IACzE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,0BAAc,CAAC,GAAG,CAAC,CAAC;IAE7D,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAAC;SACjE,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAEhC,MAAM,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC;AAVW,QAAA,kBAAkB,sBAU7B"}