@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
@@ -2,22 +2,26 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
4
4
  export const InputRange = JSX(({ className, title, items = [], min = 1, max = 100, step = 1, value = min, onChange }) => {
5
- const handleChange = (value) => {
6
- if (!onChange)
5
+ const handleChange = (_) => {
6
+ if (!onChange) {
7
7
  return;
8
- const sanitizedValue = Number(value.replace(/\D/g, ''));
8
+ }
9
+ const sanitizedValue = Number(_.replace(/\D/g, ''));
9
10
  onChange(sanitizedValue);
10
11
  };
11
12
  const inputStyle = {
12
13
  backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
13
14
  };
14
15
  const handleBlur = () => {
15
- if (!onChange)
16
+ if (!onChange) {
16
17
  return;
17
- if (value < min)
18
+ }
19
+ if (value < min) {
18
20
  onChange(min);
19
- if (value > max)
21
+ }
22
+ if (value > max) {
20
23
  onChange(max);
24
+ }
21
25
  };
22
26
  return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? _jsx("span", { className: "text-base text-secondary-text pl-4", children: title }) : null, _jsx("input", { className: `m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md
23
27
  outline-none p-0 pl-4 box-border text-primary-text`, value: addSpacesBetweenNumbers(value), onChange: (e) => handleChange(e.target.value), onBlur: handleBlur }), _jsx("div", { className: "absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]", children: _jsx("input", { className: "box-border w-full m-0 cursor-pointer slider", type: "range", min: min, max: max, step: step, value: value, onChange: (e) => handleChange(e.target.value), style: inputStyle }) })] }), _jsx("div", { className: "flex justify-between my-3", children: items.map((item, i) => (_jsx("span", { className: "text-sm leading-[14px] text-secondary-text pl-4", children: item }, String(i)))) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"InputRange.js","sourceRoot":"","sources":["../../../src/ui-kit/InputRange/InputRange.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE;QACrC,IAAI,CAAC,QAAQ;YAAE,OAAO;QACtB,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;QACxD,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC3B,CAAC,CAAC;IACF,MAAM,UAAU,GAAG;QACjB,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;KAC5E,CAAC;IACF,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,CAAC,QAAQ;YAAE,OAAO;QACtB,IAAI,KAAK,GAAG,GAAG;YAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,GAAG,GAAG;YA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7C,MAAM,EAAE,UAAU,GAClB,EACF,cAAK,SAAS,EAAC,sDAAsD,YACnE,gBACE,SAAS,EAAC,6CAA6C,EACvD,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC7C,KAAK,EAAE,UAAU,GACjB,GACE,IACA,EACR,cAAK,SAAS,EAAC,2BAA2B,YACvC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAAsB,SAAS,EAAC,iDAAiD,YAC9E,IAAI,IADI,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  export const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
4
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (_jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
4
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (_jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
5
5
  });
6
6
  //# sourceMappingURL=SVG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../src/ui-kit/SVG.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM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c,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,cAAc,KAAM,aAAa,KAAM,OAAO,IAAzE,CAAC,CAA4E,CACzF,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,5 +2,7 @@ export interface SelectProps {
2
2
  className?: string;
3
3
  id?: string;
4
4
  name?: string;
5
+ value: string;
6
+ onChange: (value: string) => void;
5
7
  }
6
8
  export declare const Select: (props: import("@redneckz/uni-jsx").PropsWithChildren<SelectProps, any>, context?: any) => any;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export const Select = JSX(({ className = '', id, name, children }) => {
4
- return (_jsx("select", { className: className, id: id, name: name || id, children: children }));
3
+ export const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
4
+ return (_jsx("select", { className: className, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), children: children }));
5
5
  });
6
6
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAc,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,iBAAQ,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,YACnD,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,iBACE,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,YAExC,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -15,10 +15,10 @@ export const SwipeListControl = JSX(({ className, context, children, gap = DEFAU
15
15
  children,
16
16
  };
17
17
  const handleScroll = (e) => {
18
- const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } = e.currentTarget;
18
+ const { scrollLeft, clientWidth, childElementCount, scrollWidth, children: childrenCollection, } = e.currentTarget;
19
19
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
20
20
  // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
21
- const itemWidth = children[0].offsetWidth - padding / 2;
21
+ const itemWidth = childrenCollection[0].offsetWidth - padding / 2;
22
22
  const scrollPoints = getScrollPoints({
23
23
  gap,
24
24
  padding,
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAA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aAA4B,CAAC;QAEnC,+EAA+E;QAC/E,gGAAgG;QAChG,MAAM,SAAS,GAAI,kBAAkB,CAAC,CAAC,CAAiB,CAAC,WAAW,GAAG,OAAO,GAAG,CAAC,CAAC;QACnF,MAAM,YAAY,GAAG,eAAe,CAAC;YACnC,GAAG;YACH,OAAO;YACP,WAAW;YACX,WAAW;YACX,iBAAiB;YACjB,SAAS;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACpE,IAAI,KAAK,KAAK,WAAW,IAAI,aAAa,EAAE;YAC1C,aAAa,EAAE,CAAC;SACjB;QACD,cAAc,CAAC,KAAK,CAAC,CAAC;QACtB,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,aACvB,KAAC,oBAAoB,IACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,YAAY,YAErB,QAAQ,GACY,EACvB,KAAC,oBAAoB,OAAK,SAAS,GAAI,IACnC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -17,8 +17,9 @@ export const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction,
17
17
  return showDots && children?.length ? (_jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (_jsx("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
18
18
  });
19
19
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
20
- if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
20
+ if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
21
21
  return null;
22
+ }
22
23
  const leftIndexMod = 1 - indexFraction;
23
24
  const rightIndexMod = indexFraction;
24
25
  return curr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EAAE;YAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;SACvE,CAAC;AACR,CAAC,CAAC"}
@@ -5,9 +5,10 @@
5
5
  Returns object with index equal -1 and fraction equal 0 if scrollLeft is outside given scrollPoints
6
6
  */
7
7
  export const getIndexParts = (scrollLeft, scrollPoints) => {
8
- const index = scrollPoints.findIndex(([start, end]) => start <= scrollLeft && scrollLeft < end);
9
- if (index < 0)
8
+ const index = scrollPoints.findIndex(([pointStart, pointEnd]) => pointStart <= scrollLeft && scrollLeft < pointEnd);
9
+ if (index < 0) {
10
10
  return { index, fraction: 0 };
11
+ }
11
12
  const [start, end] = scrollPoints[index];
12
13
  const fraction = (scrollLeft - start) / (end - start);
13
14
  return { index, fraction };
@@ -1 +1 @@
1
- {"version":3,"file":"getIndexParts.js","sourceRoot":"","sources":["../../../../src/ui-kit/SwipeListControl/utils/getIndexParts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,UAAkB,EAClB,YAAgC,EAIhC,EAAE;IACF,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,UAAU,IAAI,UAAU,GAAG,GAAG,CAAC,CAAC;IAChG,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IAE7C,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;IACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC7B,CAAC,CAAC"}
1
+ {"version":3,"file":"getIndexParts.js","sourceRoot":"","sources":["../../../../src/ui-kit/SwipeListControl/utils/getIndexParts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,UAAkB,EAClB,YAAgC,EAIhC,EAAE;IACF,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAClC,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,UAAU,IAAI,UAAU,IAAI,UAAU,GAAG,QAAQ,CAC9E,CAAC;IACF,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;KAC/B;IAED,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;IACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC7B,CAAC,CAAC"}
@@ -1,7 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { ArrowButton } from '../Button/ArrowButton.js';
4
- export const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
5
- return isScrollAvailable ? (_jsx("div", { children: _jsxs("div", { className: "absolute top-7 right-7 z-10", children: [_jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: onNextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" }), _jsx(ArrowButton, { className: "mt-4", onClick: onPrevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })] }) })) : null;
3
+ import { renderArrows } from '../Button/renderArrows.js';
4
+ export const TableArrowScrollControl = JSX(({ isScrollAvailable, handleNextClick, handlePrevClick, showNextButton, showPrevButton }) => {
5
+ return isScrollAvailable ? (_jsx("div", { children: renderArrows({
6
+ handler: [handlePrevClick, handleNextClick],
7
+ isShown: [showPrevButton, showNextButton],
8
+ btnClass: ['top-[108px]', 'top-11'],
9
+ className: 'right-7',
10
+ isDisabled: true,
11
+ }) })) : null;
6
12
  });
7
13
  //# sourceMappingURL=TableArrowScrollControl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,wBACE,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,WAAW,IACV,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,mGAAmB,wBACV,cAAc,GACjC,EACF,KAAC,WAAW,IACV,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,6FAAkB,wBACT,aAAa,GAChC,IACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,CAAC,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAC1F,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,wBACG,YAAY,CAAC;YACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;YAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;YACzC,QAAQ,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;YACnC,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,IAAI;SACjB,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -1,7 +1,8 @@
1
+ import { FuncReturnVoid } from '../../types';
1
2
  export interface TableArrowScrollControlProps {
2
3
  isScrollAvailable?: boolean;
3
- onNextClick?: (ev?: MouseEvent) => void;
4
- onPrevClick?: (ev?: MouseEvent) => void;
5
- showNextButton?: boolean;
6
- showPrevButton?: boolean;
4
+ handleNextClick: FuncReturnVoid<MouseEvent>;
5
+ handlePrevClick: FuncReturnVoid<MouseEvent>;
6
+ showNextButton: boolean;
7
+ showPrevButton: boolean;
7
8
  }
@@ -6,9 +6,10 @@ const ACTIVE_TAB_STYLE = 'px-2 h-16 pt-4 pb-2 text-white bg-primary-main';
6
6
  export const Tabs = JSX(({ tabs, currentTabIndex, onTabClick }) => {
7
7
  return (_jsx("div", { className: "flex items-end border-b border-main-stroke", role: "tablist", children: tabs?.map(renderTab(currentTabIndex, onTabClick)) }));
8
8
  });
9
+ const tabDescriptionStyle = (isActive = false) => `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`;
9
10
  const renderTab = (currentTabIndex, onTabClick) => (tab, index) => {
10
11
  const isActive = currentTabIndex === index;
11
- return (_jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, _jsxs("div", { children: [tab?.title ? _jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (_jsx("span", { className: `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`, children: tab?.description })) : null] })] }, String(index)));
12
+ return (_jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, _jsxs("div", { children: [tab?.title ? _jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (_jsx("span", { className: tabDescriptionStyle(isActive), children: tab?.description })) : null] })] }, String(index)));
12
13
  };
13
14
  const renderIcon = (tab, isActive) => (_jsx("div", { className: "h-full mt-1", children: _jsx(Img, { className: `w-5 h-5 mr-3 ${isActive ? 'invert' : ''}`, image: tab?.icon || 'CardIcon', asSVG: !isActive }) }));
14
15
  //# sourceMappingURL=Tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/ui-kit/Tabs/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,MAAM,SAAS,GAAG,0DAA0D,CAAC;AAC7E,MAAM,gBAAgB,GAAG,gDAAgD,CAAC;AAE1E,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,EAAE,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AAK,CAAC,mBACjB,MAAM,CAAC,QAAQ,CAAC,aAE9B,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAC7C,0BACG,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,aAAI,SAAS,EAAC,2BAA2B,YAAE,GAAG,EAAE,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EAC/E,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,CAClB,eAAM,SAAS,EAAE,mBAAmB,CAAC,QAAQ,CAAC,YAAG,GAAG,EAAE,WAAW,GAAQ,CAC1E,CAAC,CAAC,CAAC,IAAI,IACJ,KAdD,MAAM,CAAC,KAAK,CAAC,CAed,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,GAAQ,EAAE,QAAiB,EAAE,EAAE,CAAC,CAClD,cAAK,SAAS,EAAC,aAAa,YAC1B,KAAC,GAAG,IACF,SAAS,EAAE,gBAAgB,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EACrD,KAAK,EAAE,GAAG,EAAE,IAAI,IAAI,UAAU,EAC9B,KAAK,EAAE,CAAC,QAAQ,GAChB,GACE,CACP,CAAC"}
@@ -3,20 +3,18 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  const TEXT_CLASSES = 'font-sans font-light text-sm';
4
4
  const LINK_CLASSES = 'inline-block border border-solid bg-transparent text-center no-underline';
5
5
  export const TopItem = JSX(({ className = '', text, href, target, active, flat, onClick, children, ariaLabel, bgColor = 'bg-white', }) => (_jsx("a", { className: `${getLinkClasses(bgColor, active, flat)} ${className}`, href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": ariaLabel, children: _jsx("span", { className: getTextClasses(bgColor, active, flat), children: text || children }) })));
6
- const getLinkClasses = (bgColor, active, flat) => {
6
+ const getLinkClasses = (bgColor, active = false, flat = false) => {
7
7
  let classes = 'border-transparent';
8
8
  if (active) {
9
9
  classes = `rounded-md ${bgColor === 'bg-white' ? 'border-primary-main' : 'border-white'}`;
10
10
  }
11
11
  return `${classes} ${LINK_CLASSES} ${flat ? '' : 'px-4 py-2'}`;
12
12
  };
13
- const getTextClasses = (bgColor, active, flat) => {
14
- let classes = 'text-white';
15
- if (bgColor === 'bg-white') {
16
- classes = active
17
- ? 'text-primary-main'
18
- : `${flat ? 'text-primary-text' : 'text-secondary-text'} hover:text-primary-main`;
13
+ const getTextClasses = (bgColor, active = false, flat = false) => {
14
+ if (bgColor !== 'bg-white') {
15
+ return `text-white ${TEXT_CLASSES}`;
19
16
  }
20
- return `${classes} ${TEXT_CLASSES}`;
17
+ const nonActiveAtoms = `${flat ? 'text-primary-text' : 'text-secondary-text'} hover:text-primary-main`;
18
+ return `${active ? 'text-primary-main' : nonActiveAtoms} ${TEXT_CLASSES}`;
21
19
  };
22
20
  //# sourceMappingURL=TopItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAiBxC,MAAM,YAAY,GAAG,8BAA8B,CAAC;AACpD,MAAM,YAAY,GAAG,0EAA0E,CAAC;AAEhG,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,UAAU,GACrB,EAAE,EAAE,CAAC,CACJ,YACE,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,SAAS,EAAE,EAClE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,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,8 +2,9 @@ export const changeHashOnScroll = (router, blocks) => {
2
2
  blocks?.forEach((block) => {
3
3
  const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
4
4
  const anchorHash = `#${block?.id}`;
5
- if (currentHash === anchorHash)
5
+ if (currentHash === anchorHash) {
6
6
  return;
7
+ }
7
8
  const position = block?.getBoundingClientRect();
8
9
  if (position && position.top > 0 && position.top < 150) {
9
10
  router.replace(`#${block?.id}`);
@@ -1 +1 @@
1
- {"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU;YAAE,OAAO;QAEvC,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,4 @@
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
  };
4
4
  //# sourceMappingURL=getCurrentDate.js.map
@@ -0,0 +1 @@
1
+ export declare const roundTo: (value: number, precision?: number) => number;
@@ -0,0 +1,5 @@
1
+ export const roundTo = (value, precision = 2) => {
2
+ const factor = Math.pow(10, precision);
3
+ return Math.round(parseFloat(String(value)) * factor) / factor;
4
+ };
5
+ //# sourceMappingURL=roundTo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roundTo.js","sourceRoot":"","sources":["../../src/utils/roundTo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,SAAS,GAAG,CAAC,EAAE,EAAE;IACtD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AACjE,CAAC,CAAC"}
@@ -9,9 +9,7 @@ export interface AccordionProps extends AccordionContent, UniBlockProps {}
9
9
  export const Accordion = JSX<AccordionProps>(
10
10
  ({ title, description, accordionItems, context, className = '', bordered }) => {
11
11
  return (
12
- <section
13
- className={`py-6 px-4 font-sans bg-white text-primary-text ${className}`}
14
- >
12
+ <section className={`py-6 px-4 font-sans bg-white text-primary-text ${className}`}>
15
13
  {title ? <Heading headingType="h3" className="mb-2 text-center" title={title} /> : null}
16
14
  {description ? <div className="mb-5 text-m-md text-center">{description}</div> : null}
17
15
  {accordionItems?.length ? (
@@ -7,6 +7,7 @@ import type { GalleryContent } from './Gallery/GalleryContent';
7
7
  import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
8
8
  import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
9
9
  import type { HeaderContent } from './Header/HeaderContent';
10
+ import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/InsuranceAmountBlockContent';
10
11
  import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
11
12
  import type { LinkListContent } from './LinkList/LinkListContent';
12
13
  import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
@@ -23,6 +24,7 @@ import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
23
24
  import type { TextBlockContent } from './TextBlock/TextBlockContent';
24
25
  import type { TileContent } from './Tile/TileContent';
25
26
  import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
27
+ import type { InsuranceContent } from './Insurance/InsuranceContent';
26
28
 
27
29
  /**
28
30
  * @hidden
@@ -36,6 +38,7 @@ export type BlockContent =
36
38
  | GalleryContent
37
39
  | GracePeriodContent
38
40
  | HeaderContent
41
+ | InsuranceAmountBlockContent
39
42
  | LinkDocsContent
40
43
  | MobileAppTileContent
41
44
  | NavigatorTabsContent
@@ -52,4 +55,5 @@ export type BlockContent =
52
55
  | NavigationContent
53
56
  | LinkListContent
54
57
  | GroupBlockContent
55
- | BonusBenefitsBlockContent;
58
+ | BonusBenefitsBlockContent
59
+ | InsuranceContent;
@@ -11,13 +11,11 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
11
11
  ({ className = '', title, subtitle, bonusBenefits, anchor = null }) => {
12
12
  return (
13
13
  <section
14
- className={`font-sans text-primary-text bg-white p-50 flex flex-col ${className}`}
14
+ className={`font-sans text-primary-text bg-white p-50 flex flex-col text-center ${className}`}
15
15
  id={anchor}
16
16
  >
17
- {title ? (
18
- <Heading headingType="h3" className="text-center mb-[10px]" title={title} />
19
- ) : null}
20
- {subtitle ? <span className="text-md font-normal text-center">{subtitle}</span> : null}
17
+ {title ? <Heading headingType="h3" className="mb-[10px]" title={title} /> : null}
18
+ {subtitle ? <span className="text-md font-normal">{subtitle}</span> : null}
21
19
  {bonusBenefits?.length ? (
22
20
  <div className={`grid gap-1 ${getElementsColsValue(className)}`}>
23
21
  {bonusBenefits.map(renderBonusBenefit)}
@@ -40,9 +38,7 @@ const renderBonusBenefit = (bonusBenefit: BonusBenefit, i: number) => {
40
38
  />
41
39
  ) : null}
42
40
  <div>
43
- {bonusBenefit?.label ? (
44
- <span className="title-2xs text-center m-0">{bonusBenefit.label}</span>
45
- ) : null}
41
+ {bonusBenefit?.label ? <span className="title-2xs m-0">{bonusBenefit.label}</span> : null}
46
42
  </div>
47
43
  </div>
48
44
  );
@@ -1,10 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { FuncReturnVoid, UniBlockProps } from '../../types';
3
- import { ArrowButton } from '../../ui-kit/Button/ArrowButton';
4
3
  import { Img } from '../../ui-kit/Img/Img';
5
- import type { CalculatorBlockDef, CalculatorContent } from './CalculatorContent';
6
- import { CalculatorNav } from './CalculatorContent';
4
+ import type { CalculatorBlockDef, CalculatorContent, CalculatorNav } from './CalculatorContent';
7
5
  import { renderCalculatorBlock } from './renderCalculatorBlock';
6
+ import { renderArrows } from '../../ui-kit/Button/renderArrows';
8
7
 
9
8
  export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
10
9
 
@@ -22,9 +21,6 @@ type NavButtonProps = {
22
21
  onClick: FuncReturnVoid<MouseEvent>;
23
22
  };
24
23
 
25
- const arrowBtnStyle =
26
- 'absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full';
27
-
28
24
  export const Calculator = JSX<CalculatorProps>(
29
25
  ({ className = '', context, calcTabs = [], anchor = null }) => {
30
26
  const tabsNav = calcTabs.map((_) => _.nav || ({} as CalculatorNav));
@@ -50,22 +46,12 @@ export const Calculator = JSX<CalculatorProps>(
50
46
  {tabsNav.length > 1
51
47
  ? renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex })
52
48
  : null}
53
- {showPrevButton ? (
54
- <ArrowButton
55
- className={`${arrowBtnStyle} left-3 top-3`}
56
- onClick={handlePrevClick}
57
- ariaLabel="Пролистать влево"
58
- data-block-control="scroll-left"
59
- />
60
- ) : null}
61
- {showNextButton ? (
62
- <ArrowButton
63
- className={`${arrowBtnStyle} right-3 top-3 rotate-180`}
64
- onClick={handleNextClick}
65
- ariaLabel="Пролистать вправо"
66
- data-block-control="scroll-right"
67
- />
68
- ) : null}
49
+ {renderArrows({
50
+ handler: [handlePrevClick, handleNextClick],
51
+ isShown: [showPrevButton, showNextButton],
52
+ btnClass: ['left-3', 'right-3'],
53
+ className: 'top-8',
54
+ })}
69
55
  </div>
70
56
  <div
71
57
  className="flex"
@@ -8,7 +8,9 @@ interface GetCalculatorParamsParams {
8
8
  export const getCalculatorParams = (params: GetCalculatorParamsParams) => {
9
9
  const { tableRows, isAnnuity = false } = params;
10
10
 
11
- if (!tableRows) return {};
11
+ if (!tableRows) {
12
+ return {};
13
+ }
12
14
 
13
15
  const calculatorParams = tableRows.find((row) => row.isAnnuity === isAnnuity);
14
16
 
@@ -10,7 +10,9 @@ interface GetCreditRateParams {
10
10
  export const getCreditRate = (params: GetCreditRateParams) => {
11
11
  const { calculatorParams, isInsurance } = params;
12
12
 
13
- if (!calculatorParams) return DEFAULT_RATE;
13
+ if (!calculatorParams) {
14
+ return DEFAULT_RATE;
15
+ }
14
16
 
15
17
  return isInsurance
16
18
  ? calculatorParams?.rateWithInsurance || DEFAULT_RATE
@@ -15,7 +15,9 @@ interface GetMonthlyPaymentParams {
15
15
  export const getMonthlyPayment = (params: GetMonthlyPaymentParams) => {
16
16
  const { calculatorParams, paymentType, rate, sum, months } = params;
17
17
 
18
- if (!calculatorParams) return 0;
18
+ if (!calculatorParams) {
19
+ return 0;
20
+ }
19
21
 
20
22
  const finalSum = clamp(
21
23
  sum,
@@ -1,14 +1,7 @@
1
1
  import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
2
  import type { CalculatorBlockDef } from './CalculatorContent';
4
3
  import { EmbeddableCalcBlocks, EmbeddableCalcProps } from './EmbeddableCalcBlocks';
5
4
 
6
- type EmbeddableCalcBlocks = {
7
- blockCalcTabs?: CalculatorBlockDef[];
8
- context: ContentPageContext;
9
- className?: string;
10
- };
11
-
12
5
  export const renderCalculatorBlock =
13
6
  ({ context, className }: any) =>
14
7
  (blockCalcTabs: CalculatorBlockDef, i: number) => {
@@ -1,8 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { Picture } from '../../model/Picture';
4
- import { Img } from '../../ui-kit/Img/Img';
5
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
+ import { Img } from '../../ui-kit/Img/Img';
6
6
 
7
7
  export interface HeaderCellProps {
8
8
  icon?: Picture;
@@ -13,6 +13,10 @@ export interface HeaderCellProps {
13
13
  link?: LinkProps;
14
14
  }
15
15
 
16
+ const headingStyle = (isFillGradient = false): string => (isFillGradient ? 'text-white' : '');
17
+ const subtitleStyle = (isFillGradient = false): string =>
18
+ `text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`;
19
+
16
20
  export const HeaderCell = JSX<HeaderCellProps>(
17
21
  ({ icon, image, title, subtitle, isFillGradient }) => (
18
22
  <div role="columnheader" scope="col">
@@ -30,19 +34,9 @@ export const HeaderCell = JSX<HeaderCellProps>(
30
34
  </div>
31
35
  )}
32
36
  {title ? (
33
- <Heading
34
- headingType="h4"
35
- className={`${isFillGradient ? 'text-white' : ''}`}
36
- title={title}
37
- />
38
- ) : null}
39
- {subtitle ? (
40
- <div
41
- className={`text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`}
42
- >
43
- {subtitle}
44
- </div>
37
+ <Heading headingType="h4" className={headingStyle(isFillGradient)} title={title} />
45
38
  ) : null}
39
+ {subtitle ? <div className={subtitleStyle(isFillGradient)}>{subtitle}</div> : null}
46
40
  </div>
47
41
  ),
48
42
  );
@@ -22,6 +22,11 @@ export const TableCell = JSX<TableCellProps>(({ cell, rowHeader, isFillGradient
22
22
  );
23
23
  });
24
24
 
25
+ const labelStyle = (isFillGradient = false): string =>
26
+ `text-right ${isFillGradient ? 'text-white' : ''}`;
27
+ const descriptionStyle = (isFillGradient = false): string =>
28
+ `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`;
29
+
25
30
  const renderCellInner =
26
31
  (isFillGradient: boolean, rowHeader?: string) =>
27
32
  ({ label, description }: CellData, i: number) =>
@@ -31,15 +36,9 @@ const renderCellInner =
31
36
  {rowHeader}
32
37
  </div>
33
38
  <div className="basis-1/2">
34
- {label ? (
35
- <div className={`text-right ${isFillGradient ? 'text-white' : ''}`}>{label}</div>
36
- ) : null}
39
+ {label ? <div className={labelStyle(isFillGradient)}>{label}</div> : null}
37
40
  {description ? (
38
- <div
39
- className={`text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`}
40
- >
41
- {description}
42
- </div>
41
+ <div className={descriptionStyle(isFillGradient)}>{description}</div>
43
42
  ) : null}
44
43
  </div>
45
44
  </div>
@@ -14,18 +14,15 @@ export interface TableRowProps {
14
14
  isLastRow: boolean;
15
15
  }
16
16
 
17
+ const titleStyle = (isLastRow = false) =>
18
+ `text-sm py-7 ${DIVIDER_CLASSES} ${FIRST_CELL_CLASSES} ${
19
+ isLastRow ? 'border-b-0' : 'border-solid'
20
+ }`;
21
+
17
22
  export const TableRow = JSX<TableRowProps>(
18
23
  ({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (
19
24
  <TableRowContainer>
20
- {header?.title ? (
21
- <div
22
- className={`text-sm py-7 ${DIVIDER_CLASSES} ${FIRST_CELL_CLASSES} ${
23
- !isLastRow ? 'border-solid' : 'border-b-0'
24
- }`}
25
- >
26
- {header.title}
27
- </div>
28
- ) : null}
25
+ {header?.title ? <div className={titleStyle(isLastRow)}>{header.title}</div> : null}
29
26
  {data?.length ? (
30
27
  <TableCarouselContainer activeCardIndex={activeCardIndex} columnWidth={COLUMN_WIDTH}>
31
28
  {data.map((cell, i) => (