@redneckz/wildless-cms-uni-blocks 0.3.74 → 0.3.76

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 (636) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +272 -204
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/api/DaDataAPI.js.map +1 -1
  5. package/dist/api/LikeAPI.js.map +1 -1
  6. package/dist/components/Accordion/Accordion.mobile.js +1 -1
  7. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  8. package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
  9. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  10. package/dist/components/Accordion/AccordionItemInner.js +1 -2
  11. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  12. package/dist/components/Accordion/AccordionItemInner.mobile.js +1 -2
  13. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  14. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  15. package/dist/components/Blocks.d.ts +1 -0
  16. package/dist/components/Blocks.js +5 -3
  17. package/dist/components/Blocks.js.map +1 -1
  18. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  19. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  20. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  21. package/dist/components/Calculator/renderRate.js +1 -1
  22. package/dist/components/Calculator/renderRate.js.map +1 -1
  23. package/dist/components/Catalog/Catalog.d.ts +5 -0
  24. package/dist/components/Catalog/Catalog.js +36 -0
  25. package/dist/components/Catalog/Catalog.js.map +1 -0
  26. package/dist/components/Catalog/CatalogCard.d.ts +7 -0
  27. package/dist/components/Catalog/CatalogCard.js +16 -0
  28. package/dist/components/Catalog/CatalogCard.js.map +1 -0
  29. package/dist/components/Catalog/CatalogContent.d.ts +23 -0
  30. package/{mobile/dist/model/Insurance.js → dist/components/Catalog/CatalogContent.js} +1 -1
  31. package/dist/components/Catalog/CatalogContent.js.map +1 -0
  32. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  33. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  34. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  35. package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  36. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  37. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  38. package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
  39. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  40. package/dist/components/Footer/SocialMedia.js.map +1 -1
  41. package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
  42. package/dist/components/Footer/TextInformation.js.map +1 -1
  43. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  44. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  45. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  46. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  47. package/dist/components/Header/HeaderBurger.js.map +1 -1
  48. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  49. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  50. package/dist/components/Insurance/Insurance.js.map +1 -1
  51. package/dist/components/Insurance/InsuranceContent.d.ts +5 -2
  52. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  53. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  54. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  55. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  56. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  57. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  58. package/dist/components/LinkList/LinkList.js.map +1 -1
  59. package/dist/components/MobileAppTile/MobileAppTile.js +16 -2
  60. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  61. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
  62. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  63. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  64. package/dist/components/OtherProducts/OtherProducts.js +1 -1
  65. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  66. package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  67. package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  68. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  69. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  70. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  71. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  72. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  73. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  74. package/dist/components/ProductTile/ProductTile.js +7 -8
  75. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  76. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  77. package/dist/components/StepsBlock/StepsBlock.js +10 -6
  78. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  79. package/dist/components/StepsBlock/StepsBlock.mobile.js +12 -31
  80. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  81. package/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  82. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  83. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
  84. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  85. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  86. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  87. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  88. package/dist/content-page-repository/mapJSON.js.map +1 -1
  89. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  90. package/dist/content-page-repository/transformMarkdown.js.map +1 -1
  91. package/dist/content-page-repository/transformPicture.js.map +1 -1
  92. package/dist/hooks/useCreditCalculatorData.js.map +1 -1
  93. package/dist/hooks/useExchangeRates.js.map +1 -1
  94. package/dist/hooks/useLink.js.map +1 -1
  95. package/dist/react/setup-fixture.js.map +1 -1
  96. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  97. package/dist/services/sitemap/useSitemap.js.map +1 -1
  98. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  99. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  100. package/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
  101. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  102. package/dist/ui-kit/Button/ButtonInner.js +2 -2
  103. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  104. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  105. package/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  106. package/dist/ui-kit/Foldable/Foldable.js +5 -5
  107. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  108. package/dist/ui-kit/Input/Input.js.map +1 -1
  109. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  110. package/dist/ui-kit/List/ListItem.js.map +1 -1
  111. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  112. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  113. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  114. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  115. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  116. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  117. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  118. package/dist/utils/adjustHref.js.map +1 -1
  119. package/dist/utils/getColSpan.js.map +1 -1
  120. package/dist/utils/roundTo.js.map +1 -1
  121. package/dist/utils/tableFunc.js.map +1 -1
  122. package/dist/utils/url.js.map +1 -1
  123. package/lib/api/DaDataAPI.js.map +1 -1
  124. package/lib/api/LikeAPI.js.map +1 -1
  125. package/lib/common.css +1 -1
  126. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  127. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  128. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  129. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  130. package/lib/components/Accordion/AccordionItemInner.js +1 -2
  131. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  132. package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -2
  133. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  134. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  135. package/lib/components/Blocks.d.ts +1 -0
  136. package/lib/components/Blocks.js +5 -3
  137. package/lib/components/Blocks.js.map +1 -1
  138. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  139. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  140. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  141. package/lib/components/Calculator/renderRate.js +1 -1
  142. package/lib/components/Calculator/renderRate.js.map +1 -1
  143. package/lib/components/Catalog/Catalog.d.ts +5 -0
  144. package/lib/components/Catalog/Catalog.fixture.d.ts +6 -0
  145. package/lib/components/Catalog/Catalog.js +34 -0
  146. package/lib/components/Catalog/Catalog.js.map +1 -0
  147. package/lib/components/Catalog/CatalogCard.d.ts +7 -0
  148. package/lib/components/Catalog/CatalogCard.js +14 -0
  149. package/lib/components/Catalog/CatalogCard.js.map +1 -0
  150. package/lib/components/Catalog/CatalogContent.d.ts +23 -0
  151. package/lib/components/Catalog/CatalogContent.js +2 -0
  152. package/lib/components/Catalog/CatalogContent.js.map +1 -0
  153. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  154. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  155. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  156. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  157. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  158. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  159. package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  160. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  161. package/lib/components/Footer/SocialMedia.js.map +1 -1
  162. package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
  163. package/lib/components/Footer/TextInformation.js.map +1 -1
  164. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  165. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  166. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  167. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  168. package/lib/components/Header/HeaderBurger.js.map +1 -1
  169. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  170. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  171. package/lib/components/Insurance/Insurance.js.map +1 -1
  172. package/lib/components/Insurance/InsuranceContent.d.ts +5 -2
  173. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  174. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  175. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  176. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  177. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  178. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  179. package/lib/components/LinkList/LinkList.js.map +1 -1
  180. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +2 -0
  181. package/lib/components/MobileAppTile/MobileAppTile.js +16 -2
  182. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  183. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
  184. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  185. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  186. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -1
  187. package/lib/components/OtherProducts/OtherProducts.js +1 -1
  188. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  189. package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  190. package/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  191. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  192. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  193. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  194. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  195. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  196. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  197. package/lib/components/ProductTile/ProductTile.js +7 -8
  198. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  199. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  200. package/lib/components/StepsBlock/StepsBlock.js +10 -6
  201. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  202. package/lib/components/StepsBlock/StepsBlock.mobile.js +12 -31
  203. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  204. package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  205. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  206. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  207. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  208. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  209. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  210. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  211. package/lib/content-page-repository/mapJSON.js.map +1 -1
  212. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  213. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  214. package/lib/content-page-repository/transformPicture.js.map +1 -1
  215. package/lib/hooks/useCreditCalculatorData.js.map +1 -1
  216. package/lib/hooks/useExchangeRates.js.map +1 -1
  217. package/lib/hooks/useLink.js.map +1 -1
  218. package/lib/react/setup-fixture.js.map +1 -1
  219. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  220. package/lib/services/sitemap/useSitemap.js.map +1 -1
  221. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  222. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  223. package/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  224. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  225. package/lib/ui-kit/Button/ButtonInner.js +2 -2
  226. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  227. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  228. package/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  229. package/lib/ui-kit/Foldable/Foldable.js +5 -5
  230. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  231. package/lib/ui-kit/Input/Input.js.map +1 -1
  232. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  233. package/lib/ui-kit/List/ListItem.js.map +1 -1
  234. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  235. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  236. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  237. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  238. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  239. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  240. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  241. package/lib/utils/adjustHref.js.map +1 -1
  242. package/lib/utils/getColSpan.js.map +1 -1
  243. package/lib/utils/roundTo.js.map +1 -1
  244. package/lib/utils/tableFunc.js.map +1 -1
  245. package/lib/utils/url.js.map +1 -1
  246. package/mobile/bundle/bundle.umd.js +36 -39
  247. package/mobile/bundle/bundle.umd.min.js +1 -1
  248. package/mobile/dist/api/DaDataAPI.js.map +1 -1
  249. package/mobile/dist/api/LikeAPI.js.map +1 -1
  250. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  251. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  252. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  253. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  254. package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -2
  255. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  256. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  257. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  258. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  259. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  260. package/mobile/dist/components/Calculator/renderRate.js +1 -1
  261. package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
  262. package/mobile/dist/components/Catalog/Catalog.d.ts +5 -0
  263. package/mobile/dist/components/Catalog/Catalog.js +36 -0
  264. package/mobile/dist/components/Catalog/Catalog.js.map +1 -0
  265. package/mobile/dist/components/Catalog/CatalogCard.d.ts +7 -0
  266. package/mobile/dist/components/Catalog/CatalogCard.js +16 -0
  267. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -0
  268. package/mobile/dist/components/Catalog/CatalogContent.d.ts +23 -0
  269. package/{dist/model/Insurance.js → mobile/dist/components/Catalog/CatalogContent.js} +1 -1
  270. package/mobile/dist/components/Catalog/CatalogContent.js.map +1 -0
  271. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  272. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  273. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  274. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  275. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  276. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
  277. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  278. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  279. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  280. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  281. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  282. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  283. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  284. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  285. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  286. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  287. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +5 -2
  288. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  289. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  290. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  291. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  292. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  293. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  294. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  295. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  296. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  297. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  298. package/mobile/dist/components/OtherProducts/OtherProducts.js +1 -1
  299. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  300. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  301. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  302. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  303. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  304. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  305. package/mobile/dist/components/ProductTile/ProductTile.js +7 -8
  306. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  307. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  308. package/mobile/dist/components/StepsBlock/StepsBlock.js +12 -31
  309. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  310. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  311. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  312. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
  313. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  314. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  315. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  316. package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
  317. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  318. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  319. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  320. package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
  321. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  322. package/mobile/dist/hooks/useLink.js.map +1 -1
  323. package/mobile/dist/react/setup-fixture.js.map +1 -1
  324. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  325. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  326. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  327. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  328. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
  329. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  330. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
  331. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  332. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  333. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  334. package/mobile/dist/ui-kit/Foldable/Foldable.js +5 -5
  335. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  336. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  337. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  338. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  339. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  340. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  341. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  342. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  343. package/mobile/dist/utils/adjustHref.js.map +1 -1
  344. package/mobile/dist/utils/getColSpan.js.map +1 -1
  345. package/mobile/dist/utils/roundTo.js.map +1 -1
  346. package/mobile/dist/utils/tableFunc.js.map +1 -1
  347. package/mobile/dist/utils/url.js.map +1 -1
  348. package/mobile/lib/api/DaDataAPI.js.map +1 -1
  349. package/mobile/lib/api/LikeAPI.js.map +1 -1
  350. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  351. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  352. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  353. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  354. package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -2
  355. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  356. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  357. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  358. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  359. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  360. package/mobile/lib/components/Calculator/renderRate.js +1 -1
  361. package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
  362. package/mobile/lib/components/Catalog/Catalog.d.ts +5 -0
  363. package/mobile/lib/components/Catalog/Catalog.js +34 -0
  364. package/mobile/lib/components/Catalog/Catalog.js.map +1 -0
  365. package/mobile/lib/components/Catalog/CatalogCard.d.ts +7 -0
  366. package/mobile/lib/components/Catalog/CatalogCard.js +14 -0
  367. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -0
  368. package/mobile/lib/components/Catalog/CatalogContent.d.ts +23 -0
  369. package/mobile/lib/components/Catalog/CatalogContent.js +2 -0
  370. package/mobile/lib/components/Catalog/CatalogContent.js.map +1 -0
  371. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  372. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  373. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  374. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  375. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  376. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  377. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  378. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  379. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  380. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  381. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  382. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  383. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  384. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  385. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  386. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  387. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +5 -2
  388. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  389. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  390. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  391. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  392. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  393. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  394. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  395. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  396. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  397. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  398. package/mobile/lib/components/OtherProducts/OtherProducts.js +1 -1
  399. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  400. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  401. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  402. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  403. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  404. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  405. package/mobile/lib/components/ProductTile/ProductTile.js +7 -8
  406. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  407. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  408. package/mobile/lib/components/StepsBlock/StepsBlock.js +12 -31
  409. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  410. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  411. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  412. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  413. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  414. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  415. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  416. package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
  417. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  418. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  419. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  420. package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
  421. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  422. package/mobile/lib/hooks/useLink.js.map +1 -1
  423. package/mobile/lib/react/setup-fixture.js.map +1 -1
  424. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  425. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  426. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  427. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  428. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  429. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  430. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
  431. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  432. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  433. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  434. package/mobile/lib/ui-kit/Foldable/Foldable.js +5 -5
  435. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  436. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  437. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  438. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  439. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  440. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  441. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  442. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  443. package/mobile/lib/utils/adjustHref.js.map +1 -1
  444. package/mobile/lib/utils/getColSpan.js.map +1 -1
  445. package/mobile/lib/utils/roundTo.js.map +1 -1
  446. package/mobile/lib/utils/tableFunc.js.map +1 -1
  447. package/mobile/lib/utils/url.js.map +1 -1
  448. package/mobile/src/api/DaDataAPI.ts +2 -0
  449. package/mobile/src/api/LikeAPI.ts +4 -0
  450. package/mobile/src/components/Accordion/Accordion.tsx +1 -1
  451. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  452. package/mobile/src/components/Accordion/AccordionItemInner.tsx +3 -4
  453. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
  454. package/mobile/src/components/Calculator/getMonthlyPayment.ts +1 -0
  455. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  456. package/mobile/src/components/Calculator/renderMonthsInput.tsx +1 -0
  457. package/mobile/src/components/Calculator/renderRate.tsx +2 -3
  458. package/mobile/src/components/Catalog/Catalog.example.json +57 -0
  459. package/mobile/src/components/Catalog/Catalog.tsx +74 -0
  460. package/mobile/src/components/Catalog/CatalogCard.tsx +47 -0
  461. package/mobile/src/components/Catalog/CatalogContent.ts +27 -0
  462. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -0
  463. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
  464. package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -0
  465. package/mobile/src/components/ContentPage/normalizeBlock.ts +1 -0
  466. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  467. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  468. package/mobile/src/components/Footer/Footer.tsx +2 -0
  469. package/mobile/src/components/Footer/SocialMedia.tsx +1 -0
  470. package/mobile/src/components/Footer/TextInformation.tsx +1 -0
  471. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -0
  472. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  473. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  474. package/mobile/src/components/Header/HeaderBurger.tsx +2 -0
  475. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  476. package/mobile/src/components/Headline/Headline.tsx +1 -0
  477. package/mobile/src/components/Insurance/Insurance.tsx +1 -0
  478. package/mobile/src/components/Insurance/InsuranceContent.ts +5 -2
  479. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  480. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  481. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  482. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  483. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  484. package/mobile/src/components/LinkList/LinkList.tsx +1 -0
  485. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -4
  486. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  487. package/mobile/src/components/OtherProducts/OtherProducts.tsx +2 -2
  488. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  489. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  490. package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -0
  491. package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
  492. package/mobile/src/components/ProductTile/ProductTile.tsx +30 -30
  493. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -0
  494. package/mobile/src/components/StepsBlock/StepsBlock.tsx +58 -82
  495. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  496. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  497. package/mobile/src/components/TextBlock/TextBlock.tsx +1 -0
  498. package/mobile/src/content-page-repository/ContentPageRepository.ts +5 -0
  499. package/mobile/src/content-page-repository/mapJSON.ts +3 -0
  500. package/mobile/src/content-page-repository/transformContentPage.ts +2 -0
  501. package/mobile/src/content-page-repository/transformMarkdown.ts +1 -0
  502. package/mobile/src/content-page-repository/transformPicture.ts +2 -0
  503. package/mobile/src/hooks/useCreditCalculatorData.ts +2 -0
  504. package/mobile/src/hooks/useExchangeRates.ts +3 -0
  505. package/mobile/src/hooks/useLink.ts +1 -0
  506. package/mobile/src/react/setup-fixture.ts +1 -0
  507. package/mobile/src/services/sitemap/findActiveSubItem.ts +1 -0
  508. package/mobile/src/services/sitemap/useSitemap.ts +2 -0
  509. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  510. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  511. package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -2
  512. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -0
  513. package/mobile/src/ui-kit/Foldable/Foldable.tsx +8 -4
  514. package/mobile/src/ui-kit/Input/Input.tsx +1 -0
  515. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -0
  516. package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
  517. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  518. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  519. package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -0
  520. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -0
  521. package/mobile/src/utils/adjustHref.ts +2 -0
  522. package/mobile/src/utils/getColSpan.ts +1 -0
  523. package/mobile/src/utils/roundTo.ts +1 -0
  524. package/mobile/src/utils/tableFunc.ts +1 -0
  525. package/mobile/src/utils/url.ts +2 -0
  526. package/package.json +2 -2
  527. package/src/api/DaDataAPI.ts +2 -0
  528. package/src/api/LikeAPI.ts +4 -0
  529. package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -19
  530. package/src/components/Accordion/Accordion.fixture.tsx +10 -2
  531. package/src/components/Accordion/Accordion.mobile.tsx +1 -1
  532. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  533. package/src/components/Accordion/AccordionItemInner.mobile.tsx +3 -4
  534. package/src/components/Accordion/AccordionItemInner.tsx +3 -4
  535. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
  536. package/src/components/Blocks.ts +5 -3
  537. package/src/components/Calculator/getMonthlyPayment.ts +1 -0
  538. package/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  539. package/src/components/Calculator/renderMonthsInput.tsx +1 -0
  540. package/src/components/Calculator/renderRate.tsx +2 -3
  541. package/src/components/Catalog/Catalog.example.json +57 -0
  542. package/src/components/Catalog/Catalog.fixture.tsx +48 -0
  543. package/src/components/Catalog/Catalog.tsx +74 -0
  544. package/src/components/Catalog/CatalogCard.tsx +47 -0
  545. package/src/components/Catalog/CatalogContent.ts +27 -0
  546. package/src/components/ComparisonTable/TableColumn.tsx +1 -0
  547. package/src/components/ContentPage/ContentPage.tsx +2 -0
  548. package/src/components/ContentPage/ContentPageHead.tsx +1 -0
  549. package/src/components/ContentPage/normalizeBlock.mobile.ts +1 -0
  550. package/src/components/ContentPage/normalizeBlock.ts +1 -0
  551. package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  552. package/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  553. package/src/components/Footer/Footer.mobile.tsx +2 -0
  554. package/src/components/Footer/SocialMedia.mobile.tsx +1 -0
  555. package/src/components/Footer/SocialMedia.tsx +1 -0
  556. package/src/components/Footer/TextInformation.mobile.tsx +1 -0
  557. package/src/components/Footer/TextInformation.tsx +1 -0
  558. package/src/components/Gallery/GalleryCardInner.tsx +1 -0
  559. package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  560. package/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  561. package/src/components/Header/HeaderBurger.tsx +2 -0
  562. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  563. package/src/components/Headline/Headline.mobile.tsx +1 -0
  564. package/src/components/Insurance/Insurance.tsx +1 -0
  565. package/src/components/Insurance/InsuranceContent.ts +5 -2
  566. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  567. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -5
  568. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  569. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  570. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  571. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  572. package/src/components/LinkList/LinkList.tsx +1 -0
  573. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +69 -13
  574. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -4
  575. package/src/components/MobileAppTile/MobileAppTile.tsx +44 -12
  576. package/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  577. package/src/components/OtherProducts/OtherProducts.fixture.tsx +16 -53
  578. package/src/components/OtherProducts/OtherProducts.tsx +2 -2
  579. package/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  580. package/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  581. package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
  582. package/src/components/ProductBlock/ProductBlock.tsx +1 -0
  583. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -0
  584. package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
  585. package/src/components/ProductBlock/renderBenefit.tsx +1 -0
  586. package/src/components/ProductTile/ProductTile.tsx +30 -30
  587. package/src/components/PromoTile/PromoTile.tsx +1 -0
  588. package/src/components/StepsBlock/StepsBlock.mobile.tsx +58 -82
  589. package/src/components/StepsBlock/StepsBlock.tsx +27 -11
  590. package/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  591. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  592. package/src/components/TextBlock/TextBlock.mobile.tsx +1 -0
  593. package/src/components/TextBlock/TextBlock.tsx +1 -0
  594. package/src/content-page-repository/ContentPageRepository.ts +5 -0
  595. package/src/content-page-repository/mapJSON.ts +3 -0
  596. package/src/content-page-repository/transformContentPage.ts +2 -0
  597. package/src/content-page-repository/transformMarkdown.ts +1 -0
  598. package/src/content-page-repository/transformPicture.ts +2 -0
  599. package/src/hooks/useCreditCalculatorData.ts +2 -0
  600. package/src/hooks/useExchangeRates.ts +3 -0
  601. package/src/hooks/useLink.ts +1 -0
  602. package/src/react/setup-fixture.ts +1 -0
  603. package/src/services/sitemap/findActiveSubItem.ts +1 -0
  604. package/src/services/sitemap/useSitemap.ts +2 -0
  605. package/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  606. package/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  607. package/src/ui-kit/Button/ButtonInner.tsx +3 -2
  608. package/src/ui-kit/Button/ButtonSection.tsx +1 -0
  609. package/src/ui-kit/Foldable/Foldable.tsx +8 -4
  610. package/src/ui-kit/Input/Input.tsx +1 -0
  611. package/src/ui-kit/InputRange/InputRange.tsx +1 -0
  612. package/src/ui-kit/List/ListItem.tsx +1 -0
  613. package/src/ui-kit/Logo/Logo.tsx +1 -0
  614. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -0
  615. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  616. package/src/ui-kit/SearchBar.mobile.tsx +1 -0
  617. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  618. package/src/ui-kit/Tabs/Tabs.tsx +1 -0
  619. package/src/ui-kit/TopItem/TopItem.tsx +1 -0
  620. package/src/utils/adjustHref.ts +2 -0
  621. package/src/utils/getColSpan.ts +1 -0
  622. package/src/utils/roundTo.ts +1 -0
  623. package/src/utils/tableFunc.ts +1 -0
  624. package/src/utils/url.ts +2 -0
  625. package/dist/model/Insurance.d.ts +0 -6
  626. package/dist/model/Insurance.js.map +0 -1
  627. package/lib/model/Insurance.d.ts +0 -6
  628. package/lib/model/Insurance.js +0 -2
  629. package/lib/model/Insurance.js.map +0 -1
  630. package/mobile/dist/model/Insurance.d.ts +0 -6
  631. package/mobile/dist/model/Insurance.js.map +0 -1
  632. package/mobile/lib/model/Insurance.d.ts +0 -6
  633. package/mobile/lib/model/Insurance.js +0 -2
  634. package/mobile/lib/model/Insurance.js.map +0 -1
  635. package/mobile/src/model/Insurance.ts +0 -6
  636. package/src/model/Insurance.ts +0 -6
@@ -1,12 +1,15 @@
1
1
  import { Accordion } from './Accordion/Accordion';
2
2
  import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
3
3
  import { Bonus } from './Bonus/Bonus';
4
- import { ComparisonTable } from './ComparisonTable/ComparisonTable';
4
+ import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
5
5
  import { Calculator } from './Calculator/Calculator';
6
+ import { Catalog } from './Catalog/Catalog';
7
+ import { ComparisonTable } from './ComparisonTable/ComparisonTable';
6
8
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
7
9
  import { Footer } from './Footer/Footer';
8
10
  import { Gallery } from './Gallery/Gallery';
9
11
  import { GracePeriod } from './GracePeriod/GracePeriod';
12
+ import { GroupBlock } from './GroupBlock/GroupBlock';
10
13
  import { Header } from './Header/Header';
11
14
  import { Headline } from './Headline/Headline';
12
15
  import { Insurance } from './Insurance/Insurance';
@@ -28,8 +31,6 @@ import { StepsBlock } from './StepsBlock/StepsBlock';
28
31
  import { TariffsTable } from './TariffsTable/TariffsTable';
29
32
  import { TextBlock } from './TextBlock/TextBlock';
30
33
  import { Tile } from './Tile/Tile';
31
- import { GroupBlock } from './GroupBlock/GroupBlock';
32
- import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
33
34
 
34
35
  export const Blocks = {
35
36
  Accordion,
@@ -37,6 +38,7 @@ export const Blocks = {
37
38
  Bonus,
38
39
  ComparisonTable,
39
40
  Calculator,
41
+ Catalog,
40
42
  ExchangeRateTile,
41
43
  Footer,
42
44
  Gallery,
@@ -27,6 +27,7 @@ export const getMonthlyPayment = (params: GetMonthlyPaymentParams) => {
27
27
 
28
28
  if (paymentType === 'annuity') {
29
29
  const annuityCoef = Number(rate) / (MONTHS_IN_YEAR * 100);
30
+
30
31
  return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
31
32
  } else {
32
33
  return finalSum / months + finalSum * (Number(rate) / 12);
@@ -10,6 +10,7 @@ export const renderCalculatorBlock =
10
10
  return null;
11
11
  }
12
12
  const EmbeddedBlock: JSXBlock<EmbeddableCalcProps> = EmbeddableCalcBlocks[type];
13
+
13
14
  return (
14
15
  <section
15
16
  key={String(i)}
@@ -16,6 +16,7 @@ export function renderMonthsInput(props: RenderMonthsInputProps) {
16
16
  const { title, minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
17
17
  const monthText = (month) => {
18
18
  const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
19
+
19
20
  return `${month} ${text}`;
20
21
  };
21
22
 
@@ -7,13 +7,12 @@ type rateType = {
7
7
 
8
8
  export function renderRate({ rate, title, sup, className = '' }: rateType) {
9
9
  const rateFormat = String(rate).replace('.', ',');
10
+
10
11
  return (
11
12
  <div>
12
13
  <div className="text-sm font-light ml-3">{title}</div>
13
14
  <div className="flex justify-start">
14
- <span
15
- className={`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${className}`}
16
- >
15
+ <span className={`calc-rate-text font-mohave text-title-huge pr-4 mt-[-16px] ${className}`}>
17
16
  {rateFormat}
18
17
  </span>
19
18
  {sup ? <span className="calc-rate-text text-[65px] leading-[75px]">{sup}</span> : ''}
@@ -0,0 +1,57 @@
1
+ {
2
+ "title": "Каталог",
3
+ "description": "Описание",
4
+ "cards": [
5
+ {
6
+ "title": "Заголовок карточки 1",
7
+ "description": "Описание карточки",
8
+ "image": {
9
+ "format": "webp",
10
+ "size": {
11
+ "width": 230,
12
+ "height": 230
13
+ }
14
+ },
15
+ "button": {
16
+ "href": "",
17
+ "text": "Подробнее",
18
+ "target": "_blank",
19
+ "version": "primary"
20
+ }
21
+ },
22
+ {
23
+ "title": "Заголовок карточки 2",
24
+ "description": "Описание карточки",
25
+ "image": {
26
+ "format": "webp",
27
+ "size": {
28
+ "width": 230,
29
+ "height": 230
30
+ }
31
+ },
32
+ "button": {
33
+ "href": "",
34
+ "text": "Подробнее",
35
+ "target": "_blank",
36
+ "version": "primary"
37
+ }
38
+ },
39
+ {
40
+ "title": "Заголовок карточки 3",
41
+ "description": "Описание карточки",
42
+ "image": {
43
+ "format": "webp",
44
+ "size": {
45
+ "width": 230,
46
+ "height": 230
47
+ }
48
+ },
49
+ "button": {
50
+ "href": "",
51
+ "text": "Подробнее",
52
+ "target": "_blank",
53
+ "version": "primary"
54
+ }
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,48 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import { context } from '../../react/setup-fixture';
3
+ import type { ButtonCommonProps } from '../../ui-kit/Button/Button';
4
+ import { Catalog, CatalogProps } from './Catalog';
5
+ import type { CatalogProductColor } from './CatalogContent';
6
+
7
+ const payRing: Picture = {
8
+ src: 'pay-ring.png',
9
+ format: 'webp',
10
+ size: {
11
+ width: 230,
12
+ height: 230,
13
+ },
14
+ title: 'pay-ring',
15
+ };
16
+
17
+ const colors: CatalogProductColor[] = ['black', 'white'];
18
+
19
+ const buttonPrimary: ButtonCommonProps = {
20
+ href: '/credit-cards',
21
+ text: 'Подробнее',
22
+ target: '_blank',
23
+ version: 'primary',
24
+ };
25
+
26
+ const catalogCard = {
27
+ title: 'SATURN S-VI',
28
+ description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
29
+ image: payRing,
30
+ price: 5600,
31
+ colors: colors,
32
+ button: buttonPrimary,
33
+ };
34
+
35
+ export const defaultProps: CatalogProps = {
36
+ context,
37
+ title: 'Каталог',
38
+ description: 'Описание',
39
+ cards: new Array(5).fill(catalogCard).flat(),
40
+ };
41
+
42
+ export default {
43
+ default: (
44
+ <div className="container grid grid-cols-12">
45
+ <Catalog {...defaultProps} className="col-span-12" />
46
+ </div>
47
+ ),
48
+ };
@@ -0,0 +1,74 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../types';
3
+ import { renderArrows } from '../../ui-kit/Button/renderArrows';
4
+ import { Description } from '../../ui-kit/Description/Description';
5
+ import { Heading } from '../../ui-kit/Heading/Heading';
6
+ import type { ContentPageContext } from '../ContentPage/ContentPageContext';
7
+ import { CatalogCard } from './CatalogCard';
8
+ import type { CatalogCardType, CatalogContent } from './CatalogContent';
9
+
10
+ export interface CatalogProps extends CatalogContent, UniBlockProps {}
11
+
12
+ const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
13
+ const CARD_FULL_VIEW_COUNT = 3;
14
+ const CARD_SHIFT = 430;
15
+
16
+ export const Catalog = JSX<CatalogProps>(
17
+ ({ context, cards = [], className = '', title, description, anchor = null }) => {
18
+ const [activeCardIndex, setActiveCardIndex] = context.useState(0);
19
+
20
+ return (
21
+ <section
22
+ className={`bg-white relative font-sans p-9 overflow-hidden text-center ${className}`}
23
+ id={anchor}
24
+ >
25
+ {title ? <Heading headingType="h2" className="mb-6" title={title} /> : null}
26
+ {description ? <Description className="mb-6" description={description} /> : null}
27
+ <div
28
+ className="flex duration-1000 gap-3.5"
29
+ style={{ transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }}
30
+ role="list"
31
+ >
32
+ {cards?.length ? cards.map(renderCatalogCard(context)) : null}
33
+ </div>
34
+ {renderNavButtons({
35
+ cardsCount: cards.length,
36
+ activeCardIndex,
37
+ setActiveCardIndex,
38
+ })}
39
+ <div className={`${BLUR_BLOCK_CLASSES} left-0 ${'bg-opacity-from-white'}`} />
40
+ <div className={`${BLUR_BLOCK_CLASSES} right-0 ${'bg-opacity-to-white'}`} />
41
+ </section>
42
+ );
43
+ },
44
+ );
45
+
46
+ const renderCatalogCard = (context: ContentPageContext) => (card: CatalogCardType, i: number) => {
47
+ return <CatalogCard key={String(i)} context={context} {...card} />;
48
+ };
49
+
50
+ interface RenderNavButtonsProps {
51
+ cardsCount: number;
52
+ activeCardIndex: number;
53
+ setActiveCardIndex: (number) => void;
54
+ }
55
+
56
+ const renderNavButtons = ({
57
+ cardsCount,
58
+ activeCardIndex,
59
+ setActiveCardIndex,
60
+ }: RenderNavButtonsProps) => {
61
+ const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
62
+ const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
63
+
64
+ const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
65
+ const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
66
+ const showPrevButton = isUseSlider && activeCardIndex > 0;
67
+
68
+ return renderArrows({
69
+ handler: [handlePrevClick, handleNextClick],
70
+ isShown: [showPrevButton, showNextButton],
71
+ btnClass: ['left-8', 'right-8'],
72
+ className: 'top-1/2 z-10 mt-6',
73
+ });
74
+ };
@@ -0,0 +1,47 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { UniBlockProps } from '../../types';
4
+ import { Button } from '../../ui-kit/Button/Button';
5
+ import { Heading } from '../../ui-kit/Heading/Heading';
6
+ import { Img } from '../../ui-kit/Img/Img';
7
+ import type { CatalogCardType, CatalogProductColor } from './CatalogContent';
8
+
9
+ export interface CatalogCardProps extends CatalogCardType, UniBlockProps {
10
+ version?: BlockVersion;
11
+ }
12
+
13
+ const cardStyleMap: Record<CatalogProductColor, string> = {
14
+ black: 'bg-black',
15
+ white: 'bg-white',
16
+ };
17
+
18
+ export const CatalogCard = JSX<CatalogCardProps>(
19
+ ({ className = '', title, description, image, price, button, colors }) => {
20
+ return (
21
+ <section
22
+ className={`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`}
23
+ role="listitem"
24
+ >
25
+ {image?.src ? <Img className="mb-5" image={image} /> : null}
26
+ {title ? (
27
+ <Heading headingType="h6" as="h5" className="text-left mb-1.5" title={title} />
28
+ ) : null}
29
+ {description ? <div className="text-m-md text-left mb-4">{description}</div> : null}
30
+ {colors?.length ? (
31
+ <div className="flex mb-4 text-m-md text-secondary-text">
32
+ Доступные цвета: {colors.map(renderColorOption)}
33
+ </div>
34
+ ) : null}
35
+ {price ? <div className="text-title-sm text-left">{price}&nbsp;₽</div> : null}
36
+ {button?.text ? <Button className="mt-6 w-full" {...button} /> : null}
37
+ </section>
38
+ );
39
+ },
40
+ );
41
+
42
+ const renderColorOption = (color: CatalogProductColor, i: number) => (
43
+ <span
44
+ key={String(i)}
45
+ className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
46
+ />
47
+ );
@@ -0,0 +1,27 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
+ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
+
6
+ /**
7
+ * @enumNames ["Черный", "Белый"]
8
+ */
9
+ export type CatalogProductColor = 'black' | 'white';
10
+
11
+ export interface CatalogCardType extends HeadingContent, DescriptionContent, ImageContent {
12
+ /** @title Цена в рублях */
13
+ price?: number;
14
+ /** @title Доступные цвета */
15
+ colors?: CatalogProductColor[];
16
+ /** @title Кнопка */
17
+ button?: ButtonWithIconProps;
18
+ }
19
+
20
+ /**
21
+ * @title Каталог
22
+ */
23
+ export type CatalogContent = HeadingContent &
24
+ DescriptionContent & {
25
+ /** @title Список карточек */
26
+ cards?: CatalogCardType[];
27
+ };
@@ -21,6 +21,7 @@ export const TableColumn = JSX<TableColumnProps>(
21
21
  const columnDataView = columnData?.slice(0, showRow ? columnData.length : visibleRowLength);
22
22
  const gradientClassName = isFillGradient ? GRADIENT : '';
23
23
  const buttonVersion: ButtonVersion = isFillGradient ? 'secondary' : 'primary';
24
+
24
25
  return (
25
26
  <div
26
27
  className={`border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`}
@@ -108,12 +108,14 @@ function renderBlock(
108
108
  console.warn(`No block with "${type}" is registered`);
109
109
  }
110
110
  const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
111
+
111
112
  return blockDecorator(
112
113
  {
113
114
  blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
114
115
  block,
115
116
  render: (props) => {
116
117
  const { version, content, anchor } = props.block;
118
+
117
119
  return (
118
120
  <BlockComponent
119
121
  key={`${type}-${i}`}
@@ -9,6 +9,7 @@ export interface ContentPageHeadProps {
9
9
  export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data, children }) => {
10
10
  const { title, main, og, twitter, jsonLd } = data;
11
11
  const { description, keywords, canonical, robots } = main || {};
12
+
12
13
  return (
13
14
  <HeadComponent>
14
15
  <title>{title}</title>
@@ -2,5 +2,6 @@ import { BlockDef } from '../../types';
2
2
 
3
3
  export function normalizeBlock(block: BlockDef) {
4
4
  const { mobile, ...rest } = block;
5
+
5
6
  return mobile ? { ...rest, ...mobile, content: { ...rest.content, ...mobile.content } } : block;
6
7
  }
@@ -3,5 +3,6 @@ import { BlockDef } from '../../types';
3
3
  export function normalizeBlock(block: BlockDef) {
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  const { mobile, ...rest } = block;
6
+
6
7
  return rest;
7
8
  }
@@ -32,6 +32,7 @@ export const CurrencyTable = JSX<CurrencyTableProps>(({ className, exchangeCurre
32
32
 
33
33
  const renderCurrencyRow = (exchangeCurrencyItem: ExchangeCurrencyItem) => {
34
34
  const code = exchangeCurrencyItem?.code;
35
+
35
36
  return (
36
37
  <tr key={code} className="pb-1">
37
38
  <td className="pt-4">
@@ -2,6 +2,7 @@ import { roundTo } from '../../utils/roundTo';
2
2
 
3
3
  export const calculateResult = (value: string, rate: number, precision: boolean) => {
4
4
  const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
5
+
5
6
  return Number.isInteger(result) ? result : roundTo(result);
6
7
  };
7
8
 
@@ -28,6 +28,7 @@ export const Footer = JSX<FooterProps>(
28
28
  }) => {
29
29
  const sitemap = useSitemap(context.useAsyncData);
30
30
  const dispositions = sitemap?.dispositions;
31
+
31
32
  return (
32
33
  <footer className={`px-4 py-[26px] bg-white ${className}`}>
33
34
  <Contacts className="overflow-hidden" items={contacts} context={context} hasButton />
@@ -57,6 +58,7 @@ export const Footer = JSX<FooterProps>(
57
58
 
58
59
  const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
59
60
  const { icon, href, text } = menu;
61
+
60
62
  return (
61
63
  <Button version="link" key={`footer-${i}`} href={href} className="flex text-sm mb-4">
62
64
  {icon ? <Img className="pr-1" image={icon} width="24" height="24" asSVG /> : null}
@@ -13,6 +13,7 @@ export interface SocialMediaProps extends UniBlockProps {
13
13
  export const SocialMedia = JSX<SocialMediaProps>(({ className, media, version, context }) => {
14
14
  const router = context.useRouter();
15
15
  const { handlerDecorator } = context;
16
+
16
17
  return (
17
18
  <div className={`flex gap-2 items-start justify-start pt-6 pb-6 ${className || ''}`}>
18
19
  {media?.map((_, index) => (
@@ -14,6 +14,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
14
14
  ({ className = '', media, version, context, children }) => {
15
15
  const router = context.useRouter();
16
16
  const { handlerDecorator } = context;
17
+
17
18
  return (
18
19
  <div>
19
20
  <div className={`flex gap-2.5 ${className}`}>
@@ -6,6 +6,7 @@ import type { FooterLink } from './FooterLink';
6
6
  export const TextInformation = JSX<FooterLink>(({ className, links, context }) => {
7
7
  const router = context.useRouter();
8
8
  const { handlerDecorator } = context;
9
+
9
10
  return (
10
11
  <div className={`${className || ''}`}>
11
12
  <div className="py-6">
@@ -6,6 +6,7 @@ import type { FooterLink } from './FooterLink';
6
6
  export const TextInformation = JSX<FooterLink>(({ className, links, context }) => {
7
7
  const router = context.useRouter();
8
8
  const { handlerDecorator } = context;
9
+
9
10
  return (
10
11
  <div className={`${className || ''}`}>
11
12
  <div className="pt-5">
@@ -8,6 +8,7 @@ import type { GalleryCard, GalleryItem } from './GalleryContent';
8
8
  export const GalleryCardInner = JSX<GalleryCard>(
9
9
  ({ title, description, image, items, button, version, isDotted = true }) => {
10
10
  const titleStyleClasses = getTitleStyle(version);
11
+
11
12
  return (
12
13
  <div className="h-full flex flex-col justify-between text-center">
13
14
  <div>
@@ -24,6 +24,7 @@ export const renderBlock = (context: ContentPageContext) => (block: GroupBlockDe
24
24
  }
25
25
  const classNameBlock = style2className(block?.style);
26
26
  const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
27
+
27
28
  return (
28
29
  <EmbeddedBlock key={`block_${i}`} context={context} {...block} className={classNameBlock} />
29
30
  );
@@ -19,6 +19,7 @@ export const renderBlock =
19
19
  }
20
20
  const classNameBlock = style2className(block?.style);
21
21
  const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
22
+
22
23
  return (
23
24
  <div className={className} key={`block_${i}`}>
24
25
  <EmbeddedBlock context={context} {...block} className={classNameBlock} />
@@ -15,6 +15,7 @@ export interface HeaderBurgerProps {
15
15
  export const HeaderBurger = JSX<HeaderBurgerProps>(
16
16
  ({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
17
17
  const [city, getCity] = context.useGeolocation(defaultLocation);
18
+
18
19
  return (
19
20
  <div className="absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20">
20
21
  <button
@@ -46,6 +47,7 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
46
47
 
47
48
  const renderBurgerSubMenuItem = (menu: DispositionItem, i: number) => {
48
49
  const { icon, href, text } = menu;
50
+
49
51
  return (
50
52
  <a key={`headerSubMenu-${i}`} href={href} className="flex text-sm mb-4 hover:text-primary-main">
51
53
  {icon ? (
@@ -29,6 +29,7 @@ const LINKS_ICON_VERSION_MAP: Record<BgColorVersion, IconVersion> = {
29
29
  export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
30
30
  ({ context, className, defaultLocation = '', bgColor = 'bg-white' }) => {
31
31
  const [city, getCity] = context.useGeolocation(defaultLocation);
32
+
32
33
  return (
33
34
  <div className={`flex items-center ${className || ''}`}>
34
35
  <TopItem
@@ -18,6 +18,7 @@ export const Headline = JSX<HeadlineProps>(
18
18
  align = 'left',
19
19
  }) => {
20
20
  const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
21
+
21
22
  return (
22
23
  <section className={`px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`}>
23
24
  {title ? (
@@ -64,6 +64,7 @@ function renderInsuranceSumMonth(sum, monthLimit) {
64
64
 
65
65
  function renderValueBlock(title, sum, isAnotherBlock) {
66
66
  const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
67
+
67
68
  return (
68
69
  <div className={`flex justify-between items-center gap-2 w-full ${widthStyle}`}>
69
70
  <span className="text-secondary-text text-base">{title}</span>
@@ -1,5 +1,4 @@
1
1
  import type { Picture } from '../../model/Picture';
2
- import type { InsuranceProps } from '../../model/Insurance';
3
2
 
4
3
  /**
5
4
  * @title Преимущество
@@ -15,12 +14,16 @@ export interface InsuranceBenefit {
15
14
  /**
16
15
  * @title Страховка
17
16
  */
18
- export type InsuranceContent = InsuranceProps & {
17
+ export type InsuranceContent = {
19
18
  /** @title Заголовок */
20
19
  title?: string;
21
20
  /** @title Описание */
22
21
  description?: string;
23
22
  image?: Picture;
23
+ /** @title Ежемесячный лимит */
24
+ monthLimit?: number;
25
+ /** @title Страховая сумма */
26
+ sum?: number;
24
27
  /**
25
28
  * @title Список преимуществ
26
29
  * @maxItems 6
@@ -6,8 +6,8 @@
6
6
  },
7
7
  "insuranceTabs": [
8
8
  {
9
- "title": "Описание",
10
- "card": [
9
+ "title": "Описание 1",
10
+ "cards": [
11
11
  {
12
12
  "sum": 200000,
13
13
  "fee": 2100,
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  {
24
- "title": "Описание",
25
- "card": [
24
+ "title": "Описание 2",
25
+ "cards": [
26
26
  {
27
27
  "sum": 200000,
28
28
  "fee": 2100,
@@ -38,11 +38,6 @@ export default {
38
38
  fee: 3600,
39
39
  icon: { icon: 'ActualBalanceIcon' },
40
40
  },
41
- {
42
- sum: 600000,
43
- fee: 3600,
44
- icon: { icon: 'MoneyInsuranceIcon' },
45
- },
46
41
  ],
47
42
  },
48
43
  ]}
@@ -9,7 +9,6 @@ export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent,
9
9
 
10
10
  export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
11
11
  ({ className = '', context, title, insuranceTabs = [], button, anchor = null }) => {
12
- const insuranceGalleries = insuranceTabs.map((_) => _.cards);
13
12
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
14
13
 
15
14
  return (
@@ -36,7 +35,7 @@ export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
36
35
  {renderInsuranceGalleries({
37
36
  context,
38
37
  className,
39
- insuranceGalleries,
38
+ insuranceTabs,
40
39
  })}
41
40
  </div>
42
41
  {button?.text ? (
@@ -55,7 +54,13 @@ export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
55
54
  },
56
55
  );
57
56
 
58
- const renderInsuranceGalleries = ({ insuranceGalleries, context, className }: any) => {
57
+ const renderInsuranceGalleries = ({
58
+ insuranceTabs,
59
+ context,
60
+ className = '',
61
+ }: InsuranceAmountBlockProps) => {
62
+ const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
63
+
59
64
  return insuranceGalleries?.length
60
65
  ? insuranceGalleries.map((cards) => (
61
66
  <InsuranceAmountBlockInner context={context} className={className} cards={cards} />
@@ -1,14 +1,16 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
- import type { InsuranceProps } from '../../model/Insurance';
4
3
 
5
4
  /**
6
5
  * @title Кнопка выбора программы
7
6
  */
8
- export type cardItem = InsuranceProps & {
7
+ export type CardItem = {
8
+ /** @title Иконка */
9
9
  icon?: Picture;
10
10
  /** @title Страховой взнос */
11
11
  fee?: number;
12
+ /** @title Страховая сумма */
13
+ sum?: number;
12
14
  };
13
15
 
14
16
  /**
@@ -18,7 +20,7 @@ export interface InsuranceAmountBlockTabs {
18
20
  /** @title Заголовок вкладки */
19
21
  title?: string;
20
22
  /** @title Содержимое вкладки */
21
- cards?: cardItem[];
23
+ cards?: CardItem[];
22
24
  }
23
25
 
24
26
  /**