@redneckz/wildless-cms-uni-blocks 0.3.73 → 0.3.75

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 (634) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +270 -199
  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 +1 -1
  15. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  16. package/dist/components/Blocks.d.ts +1 -0
  17. package/dist/components/Blocks.js +5 -3
  18. package/dist/components/Blocks.js.map +1 -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/Calculator/renderMonthsInput.js.map +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 +22 -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 +7 -4
  51. package/dist/components/Insurance/Insurance.js.map +1 -1
  52. package/dist/components/Insurance/InsuranceContent.d.ts +8 -2
  53. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  54. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  55. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  56. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  57. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  58. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  59. package/dist/components/LinkList/LinkList.js.map +1 -1
  60. package/dist/components/MobileAppTile/MobileAppTile.js +16 -2
  61. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  62. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
  63. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  64. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  65. package/dist/components/OtherProducts/OtherProducts.js +1 -1
  66. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  67. package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  68. package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  69. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  70. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  71. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  72. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  73. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  74. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  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.map +1 -1
  103. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  104. package/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  105. package/dist/ui-kit/Foldable/Foldable.js +5 -5
  106. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  107. package/dist/ui-kit/Input/Input.js.map +1 -1
  108. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  109. package/dist/ui-kit/List/ListItem.js.map +1 -1
  110. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  111. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  112. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  113. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  114. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  115. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  116. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  117. package/dist/utils/adjustHref.js.map +1 -1
  118. package/dist/utils/getColSpan.js.map +1 -1
  119. package/dist/utils/roundTo.js.map +1 -1
  120. package/dist/utils/tableFunc.js.map +1 -1
  121. package/dist/utils/url.js.map +1 -1
  122. package/lib/api/DaDataAPI.js.map +1 -1
  123. package/lib/api/LikeAPI.js.map +1 -1
  124. package/lib/common.css +1 -1
  125. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  126. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  127. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  128. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  129. package/lib/components/Accordion/AccordionItemInner.js +1 -2
  130. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  131. package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -2
  132. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  133. package/lib/components/BenefitsBlock/BenefitsBlock.js +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.map +1 -1
  142. package/lib/components/Catalog/Catalog.d.ts +5 -0
  143. package/lib/components/Catalog/Catalog.fixture.d.ts +6 -0
  144. package/lib/components/Catalog/Catalog.js +34 -0
  145. package/lib/components/Catalog/Catalog.js.map +1 -0
  146. package/lib/components/Catalog/CatalogCard.d.ts +7 -0
  147. package/lib/components/Catalog/CatalogCard.js +14 -0
  148. package/lib/components/Catalog/CatalogCard.js.map +1 -0
  149. package/lib/components/Catalog/CatalogContent.d.ts +22 -0
  150. package/lib/components/Catalog/CatalogContent.js +2 -0
  151. package/lib/components/Catalog/CatalogContent.js.map +1 -0
  152. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  153. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  154. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  155. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  156. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  157. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  158. package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  159. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  160. package/lib/components/Footer/SocialMedia.js.map +1 -1
  161. package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
  162. package/lib/components/Footer/TextInformation.js.map +1 -1
  163. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  164. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  165. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  166. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  167. package/lib/components/Header/HeaderBurger.js.map +1 -1
  168. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  169. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  170. package/lib/components/Insurance/Insurance.js +7 -4
  171. package/lib/components/Insurance/Insurance.js.map +1 -1
  172. package/lib/components/Insurance/InsuranceContent.d.ts +8 -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.map +1 -1
  198. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  199. package/lib/components/StepsBlock/StepsBlock.js +10 -6
  200. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  201. package/lib/components/StepsBlock/StepsBlock.mobile.js +12 -31
  202. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  203. package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  204. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  205. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  206. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  207. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  208. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  209. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  210. package/lib/content-page-repository/mapJSON.js.map +1 -1
  211. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  212. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  213. package/lib/content-page-repository/transformPicture.js.map +1 -1
  214. package/lib/hooks/useCreditCalculatorData.js.map +1 -1
  215. package/lib/hooks/useExchangeRates.js.map +1 -1
  216. package/lib/hooks/useLink.js.map +1 -1
  217. package/lib/react/setup-fixture.js.map +1 -1
  218. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  219. package/lib/services/sitemap/useSitemap.js.map +1 -1
  220. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  221. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  222. package/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  223. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  224. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  225. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  226. package/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  227. package/lib/ui-kit/Foldable/Foldable.js +5 -5
  228. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  229. package/lib/ui-kit/Input/Input.js.map +1 -1
  230. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  231. package/lib/ui-kit/List/ListItem.js.map +1 -1
  232. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  233. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  234. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  235. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  236. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  237. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  238. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  239. package/lib/utils/adjustHref.js.map +1 -1
  240. package/lib/utils/getColSpan.js.map +1 -1
  241. package/lib/utils/roundTo.js.map +1 -1
  242. package/lib/utils/tableFunc.js.map +1 -1
  243. package/lib/utils/url.js.map +1 -1
  244. package/mobile/bundle/bundle.umd.js +34 -37
  245. package/mobile/bundle/bundle.umd.min.js +1 -1
  246. package/mobile/dist/api/DaDataAPI.js.map +1 -1
  247. package/mobile/dist/api/LikeAPI.js.map +1 -1
  248. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  249. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  250. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  251. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  252. package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -2
  253. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  254. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  255. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  256. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  257. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  258. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  259. package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
  260. package/mobile/dist/components/Catalog/Catalog.d.ts +5 -0
  261. package/mobile/dist/components/Catalog/Catalog.js +36 -0
  262. package/mobile/dist/components/Catalog/Catalog.js.map +1 -0
  263. package/mobile/dist/components/Catalog/CatalogCard.d.ts +7 -0
  264. package/mobile/dist/components/Catalog/CatalogCard.js +16 -0
  265. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -0
  266. package/mobile/dist/components/Catalog/CatalogContent.d.ts +22 -0
  267. package/{dist/model/Insurance.js → mobile/dist/components/Catalog/CatalogContent.js} +1 -1
  268. package/mobile/dist/components/Catalog/CatalogContent.js.map +1 -0
  269. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  270. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  271. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  272. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  273. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  274. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
  275. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  276. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  277. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  278. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  279. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  280. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  281. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  282. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  283. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  284. package/mobile/dist/components/Insurance/Insurance.js +7 -4
  285. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  286. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +8 -2
  287. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  288. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  289. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  290. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  291. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  292. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  293. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  294. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  295. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  296. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  297. package/mobile/dist/components/OtherProducts/OtherProducts.js +1 -1
  298. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  299. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  300. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  301. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  302. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  303. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  304. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  305. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  306. package/mobile/dist/components/StepsBlock/StepsBlock.js +12 -31
  307. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  308. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  309. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  310. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
  311. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  312. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  313. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  314. package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
  315. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  316. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  317. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  318. package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
  319. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  320. package/mobile/dist/hooks/useLink.js.map +1 -1
  321. package/mobile/dist/react/setup-fixture.js.map +1 -1
  322. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  323. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  324. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  325. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  326. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
  327. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  328. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  329. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  330. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  331. package/mobile/dist/ui-kit/Foldable/Foldable.js +5 -5
  332. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  333. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  334. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  335. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  336. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  337. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  338. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  339. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  340. package/mobile/dist/utils/adjustHref.js.map +1 -1
  341. package/mobile/dist/utils/getColSpan.js.map +1 -1
  342. package/mobile/dist/utils/roundTo.js.map +1 -1
  343. package/mobile/dist/utils/tableFunc.js.map +1 -1
  344. package/mobile/dist/utils/url.js.map +1 -1
  345. package/mobile/lib/api/DaDataAPI.js.map +1 -1
  346. package/mobile/lib/api/LikeAPI.js.map +1 -1
  347. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  348. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  349. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  350. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  351. package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -2
  352. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  353. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  354. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  355. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  356. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  357. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  358. package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
  359. package/mobile/lib/components/Catalog/Catalog.d.ts +5 -0
  360. package/mobile/lib/components/Catalog/Catalog.js +34 -0
  361. package/mobile/lib/components/Catalog/Catalog.js.map +1 -0
  362. package/mobile/lib/components/Catalog/CatalogCard.d.ts +7 -0
  363. package/mobile/lib/components/Catalog/CatalogCard.js +14 -0
  364. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -0
  365. package/mobile/lib/components/Catalog/CatalogContent.d.ts +22 -0
  366. package/mobile/lib/components/Catalog/CatalogContent.js +2 -0
  367. package/mobile/lib/components/Catalog/CatalogContent.js.map +1 -0
  368. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  369. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  370. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  371. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  372. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  373. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  374. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  375. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  376. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  377. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  378. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  379. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  380. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  381. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  382. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  383. package/mobile/lib/components/Insurance/Insurance.js +7 -4
  384. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  385. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +8 -2
  386. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  387. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  388. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  389. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  390. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  391. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  392. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  393. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  394. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  395. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  396. package/mobile/lib/components/OtherProducts/OtherProducts.js +1 -1
  397. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  398. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  399. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  400. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  401. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  402. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  403. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  404. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  405. package/mobile/lib/components/StepsBlock/StepsBlock.js +12 -31
  406. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  407. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  408. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  409. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  410. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  411. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  412. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  413. package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
  414. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  415. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  416. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  417. package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
  418. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  419. package/mobile/lib/hooks/useLink.js.map +1 -1
  420. package/mobile/lib/react/setup-fixture.js.map +1 -1
  421. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  422. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  423. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  424. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  425. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  426. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  427. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  428. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  429. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  430. package/mobile/lib/ui-kit/Foldable/Foldable.js +5 -5
  431. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  432. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  433. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  434. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  435. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  436. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  437. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  438. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  439. package/mobile/lib/utils/adjustHref.js.map +1 -1
  440. package/mobile/lib/utils/getColSpan.js.map +1 -1
  441. package/mobile/lib/utils/roundTo.js.map +1 -1
  442. package/mobile/lib/utils/tableFunc.js.map +1 -1
  443. package/mobile/lib/utils/url.js.map +1 -1
  444. package/mobile/src/api/DaDataAPI.ts +2 -0
  445. package/mobile/src/api/LikeAPI.ts +4 -0
  446. package/mobile/src/components/Accordion/Accordion.tsx +1 -1
  447. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  448. package/mobile/src/components/Accordion/AccordionItemInner.tsx +3 -4
  449. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -1
  450. package/mobile/src/components/Calculator/getMonthlyPayment.ts +1 -0
  451. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  452. package/mobile/src/components/Calculator/renderMonthsInput.tsx +1 -0
  453. package/mobile/src/components/Calculator/renderRate.tsx +1 -0
  454. package/mobile/src/components/Catalog/Catalog.example.json +57 -0
  455. package/mobile/src/components/Catalog/Catalog.tsx +73 -0
  456. package/mobile/src/components/Catalog/CatalogCard.tsx +47 -0
  457. package/mobile/src/components/Catalog/CatalogContent.ts +26 -0
  458. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -0
  459. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
  460. package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -0
  461. package/mobile/src/components/ContentPage/normalizeBlock.ts +1 -0
  462. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  463. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  464. package/mobile/src/components/Footer/Footer.tsx +2 -0
  465. package/mobile/src/components/Footer/SocialMedia.tsx +1 -0
  466. package/mobile/src/components/Footer/TextInformation.tsx +1 -0
  467. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -0
  468. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  469. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  470. package/mobile/src/components/Header/HeaderBurger.tsx +2 -0
  471. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  472. package/mobile/src/components/Headline/Headline.tsx +1 -0
  473. package/mobile/src/components/Insurance/Insurance.example.json +9 -1
  474. package/mobile/src/components/Insurance/Insurance.tsx +21 -15
  475. package/mobile/src/components/Insurance/InsuranceContent.ts +8 -2
  476. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  477. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  478. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  479. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  480. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  481. package/mobile/src/components/LinkList/LinkList.tsx +1 -0
  482. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -4
  483. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  484. package/mobile/src/components/OtherProducts/OtherProducts.tsx +2 -2
  485. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  486. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  487. package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -0
  488. package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
  489. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
  490. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -0
  491. package/mobile/src/components/StepsBlock/StepsBlock.tsx +58 -82
  492. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  493. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  494. package/mobile/src/components/TextBlock/TextBlock.tsx +1 -0
  495. package/mobile/src/content-page-repository/ContentPageRepository.ts +5 -0
  496. package/mobile/src/content-page-repository/mapJSON.ts +3 -0
  497. package/mobile/src/content-page-repository/transformContentPage.ts +2 -0
  498. package/mobile/src/content-page-repository/transformMarkdown.ts +1 -0
  499. package/mobile/src/content-page-repository/transformPicture.ts +2 -0
  500. package/mobile/src/hooks/useCreditCalculatorData.ts +2 -0
  501. package/mobile/src/hooks/useExchangeRates.ts +3 -0
  502. package/mobile/src/hooks/useLink.ts +1 -0
  503. package/mobile/src/react/setup-fixture.ts +1 -0
  504. package/mobile/src/services/sitemap/findActiveSubItem.ts +1 -0
  505. package/mobile/src/services/sitemap/useSitemap.ts +2 -0
  506. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  507. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  508. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -0
  509. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -0
  510. package/mobile/src/ui-kit/Foldable/Foldable.tsx +8 -4
  511. package/mobile/src/ui-kit/Input/Input.tsx +1 -0
  512. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -0
  513. package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
  514. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  515. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  516. package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -0
  517. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -0
  518. package/mobile/src/utils/adjustHref.ts +2 -0
  519. package/mobile/src/utils/getColSpan.ts +1 -0
  520. package/mobile/src/utils/roundTo.ts +1 -0
  521. package/mobile/src/utils/tableFunc.ts +1 -0
  522. package/mobile/src/utils/url.ts +2 -0
  523. package/package.json +1 -1
  524. package/src/api/DaDataAPI.ts +2 -0
  525. package/src/api/LikeAPI.ts +4 -0
  526. package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -19
  527. package/src/components/Accordion/Accordion.fixture.tsx +10 -2
  528. package/src/components/Accordion/Accordion.mobile.tsx +1 -1
  529. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  530. package/src/components/Accordion/AccordionItemInner.mobile.tsx +3 -4
  531. package/src/components/Accordion/AccordionItemInner.tsx +3 -4
  532. package/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -1
  533. package/src/components/Blocks.ts +5 -3
  534. package/src/components/Calculator/getMonthlyPayment.ts +1 -0
  535. package/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  536. package/src/components/Calculator/renderMonthsInput.tsx +1 -0
  537. package/src/components/Calculator/renderRate.tsx +1 -0
  538. package/src/components/Catalog/Catalog.example.json +57 -0
  539. package/src/components/Catalog/Catalog.fixture.tsx +48 -0
  540. package/src/components/Catalog/Catalog.tsx +73 -0
  541. package/src/components/Catalog/CatalogCard.tsx +47 -0
  542. package/src/components/Catalog/CatalogContent.ts +26 -0
  543. package/src/components/ComparisonTable/TableColumn.tsx +1 -0
  544. package/src/components/ContentPage/ContentPage.tsx +2 -0
  545. package/src/components/ContentPage/ContentPageHead.tsx +1 -0
  546. package/src/components/ContentPage/normalizeBlock.mobile.ts +1 -0
  547. package/src/components/ContentPage/normalizeBlock.ts +1 -0
  548. package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  549. package/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  550. package/src/components/Footer/Footer.mobile.tsx +2 -0
  551. package/src/components/Footer/SocialMedia.mobile.tsx +1 -0
  552. package/src/components/Footer/SocialMedia.tsx +1 -0
  553. package/src/components/Footer/TextInformation.mobile.tsx +1 -0
  554. package/src/components/Footer/TextInformation.tsx +1 -0
  555. package/src/components/Gallery/GalleryCardInner.tsx +1 -0
  556. package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  557. package/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  558. package/src/components/Header/HeaderBurger.tsx +2 -0
  559. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  560. package/src/components/Headline/Headline.mobile.tsx +1 -0
  561. package/src/components/Insurance/Insurance.example.json +9 -1
  562. package/src/components/Insurance/Insurance.tsx +21 -15
  563. package/src/components/Insurance/InsuranceContent.ts +8 -2
  564. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  565. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -5
  566. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  567. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  568. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  569. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  570. package/src/components/LinkList/LinkList.tsx +1 -0
  571. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +69 -13
  572. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -4
  573. package/src/components/MobileAppTile/MobileAppTile.tsx +44 -12
  574. package/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  575. package/src/components/OtherProducts/OtherProducts.fixture.tsx +16 -53
  576. package/src/components/OtherProducts/OtherProducts.tsx +2 -2
  577. package/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  578. package/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  579. package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
  580. package/src/components/ProductBlock/ProductBlock.tsx +1 -0
  581. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -0
  582. package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
  583. package/src/components/ProductBlock/renderBenefit.tsx +1 -0
  584. package/src/components/ProductTile/ProductTile.tsx +2 -0
  585. package/src/components/PromoTile/PromoTile.tsx +1 -0
  586. package/src/components/StepsBlock/StepsBlock.mobile.tsx +58 -82
  587. package/src/components/StepsBlock/StepsBlock.tsx +27 -11
  588. package/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  589. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  590. package/src/components/TextBlock/TextBlock.mobile.tsx +1 -0
  591. package/src/components/TextBlock/TextBlock.tsx +1 -0
  592. package/src/content-page-repository/ContentPageRepository.ts +5 -0
  593. package/src/content-page-repository/mapJSON.ts +3 -0
  594. package/src/content-page-repository/transformContentPage.ts +2 -0
  595. package/src/content-page-repository/transformMarkdown.ts +1 -0
  596. package/src/content-page-repository/transformPicture.ts +2 -0
  597. package/src/hooks/useCreditCalculatorData.ts +2 -0
  598. package/src/hooks/useExchangeRates.ts +3 -0
  599. package/src/hooks/useLink.ts +1 -0
  600. package/src/react/setup-fixture.ts +1 -0
  601. package/src/services/sitemap/findActiveSubItem.ts +1 -0
  602. package/src/services/sitemap/useSitemap.ts +2 -0
  603. package/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  604. package/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  605. package/src/ui-kit/Button/ButtonInner.tsx +1 -0
  606. package/src/ui-kit/Button/ButtonSection.tsx +1 -0
  607. package/src/ui-kit/Foldable/Foldable.tsx +8 -4
  608. package/src/ui-kit/Input/Input.tsx +1 -0
  609. package/src/ui-kit/InputRange/InputRange.tsx +1 -0
  610. package/src/ui-kit/List/ListItem.tsx +1 -0
  611. package/src/ui-kit/Logo/Logo.tsx +1 -0
  612. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -0
  613. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  614. package/src/ui-kit/SearchBar.mobile.tsx +1 -0
  615. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  616. package/src/ui-kit/Tabs/Tabs.tsx +1 -0
  617. package/src/ui-kit/TopItem/TopItem.tsx +1 -0
  618. package/src/utils/adjustHref.ts +2 -0
  619. package/src/utils/getColSpan.ts +1 -0
  620. package/src/utils/roundTo.ts +1 -0
  621. package/src/utils/tableFunc.ts +1 -0
  622. package/src/utils/url.ts +2 -0
  623. package/dist/model/Insurance.d.ts +0 -6
  624. package/dist/model/Insurance.js.map +0 -1
  625. package/lib/model/Insurance.d.ts +0 -6
  626. package/lib/model/Insurance.js +0 -2
  627. package/lib/model/Insurance.js.map +0 -1
  628. package/mobile/dist/model/Insurance.d.ts +0 -6
  629. package/mobile/dist/model/Insurance.js.map +0 -1
  630. package/mobile/lib/model/Insurance.d.ts +0 -6
  631. package/mobile/lib/model/Insurance.js +0 -2
  632. package/mobile/lib/model/Insurance.js.map +0 -1
  633. package/mobile/src/model/Insurance.ts +0 -6
  634. package/src/model/Insurance.ts +0 -6
@@ -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,73 @@
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 }) => {
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
+ >
24
+ {title ? <Heading headingType="h2" className="mb-6" title={title} /> : null}
25
+ {description ? <Description className="mb-6" description={description} /> : null}
26
+ <div
27
+ className="flex duration-1000 gap-3.5"
28
+ style={{ transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }}
29
+ role="list"
30
+ >
31
+ {cards?.length ? cards.map(renderCatalogCard(context)) : null}
32
+ </div>
33
+ {renderNavButtons({
34
+ cardsCount: cards.length,
35
+ activeCardIndex,
36
+ setActiveCardIndex,
37
+ })}
38
+ <div className={`${BLUR_BLOCK_CLASSES} left-0 ${'bg-opacity-from-white'}`} />
39
+ <div className={`${BLUR_BLOCK_CLASSES} right-0 ${'bg-opacity-to-white'}`} />
40
+ </section>
41
+ );
42
+ },
43
+ );
44
+
45
+ const renderCatalogCard = (context: ContentPageContext) => (card: CatalogCardType, i: number) => {
46
+ return <CatalogCard key={String(i)} context={context} {...card} />;
47
+ };
48
+
49
+ interface RenderNavButtonsProps {
50
+ cardsCount: number;
51
+ activeCardIndex: number;
52
+ setActiveCardIndex: (number) => void;
53
+ }
54
+
55
+ const renderNavButtons = ({
56
+ cardsCount,
57
+ activeCardIndex,
58
+ setActiveCardIndex,
59
+ }: RenderNavButtonsProps) => {
60
+ const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
61
+ const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
62
+
63
+ const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
64
+ const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
65
+ const showPrevButton = isUseSlider && activeCardIndex > 0;
66
+
67
+ return renderArrows({
68
+ handler: [handlePrevClick, handleNextClick],
69
+ isShown: [showPrevButton, showNextButton],
70
+ btnClass: ['left-8', 'right-8'],
71
+ className: 'top-1/2 z-10 mt-6',
72
+ });
73
+ };
@@ -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,26 @@
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
+ cards?: CatalogCardType[];
26
+ };
@@ -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 ? (
@@ -17,5 +17,13 @@
17
17
  "icon": "ShieldTickIcon"
18
18
  }
19
19
  }
20
- ]
20
+ ],
21
+ "image": {
22
+ "format": "webp",
23
+ "size": {
24
+ "width": 400,
25
+ "height": 300
26
+ }
27
+ },
28
+ "sum": 500000
21
29
  }
@@ -10,23 +10,17 @@ export interface InsuranceProps extends InsuranceContent, UniBlockProps {}
10
10
  export const Insurance = JSX<InsuranceProps>(
11
11
  ({ className = '', title, description, image, benefits, sum, monthLimit }) => {
12
12
  return (
13
- <section className={`px-[100px] py-[50px] bg-white text-primary-text ${className}`}>
13
+ <section className={`px-[100px] py-[50px] bg-white text-primary-text font-sans ${className}`}>
14
14
  {title ? <Heading headingType="h3" title={title} className="text-center" /> : null}
15
15
  {description ? <div className="text-center text-md mt-3">{description}</div> : null}
16
16
  <div>
17
- <div className="mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]">
17
+ <div className="mt-5 mx-auto flex justify-center gap-[122px] mt-[30px]">
18
18
  {image?.src ? <Img image={image} /> : null}
19
19
  <div className="w-[558px] m-auto">
20
20
  {benefits ? (
21
21
  <div className="flex flex-col gap-4">{benefits.map(renderBenefit)}</div>
22
22
  ) : null}
23
-
24
- <div className="bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4">
25
- {sum ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
26
- {monthLimit
27
- ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
28
- : null}
29
- </div>
23
+ {renderInsuranceSumMonth(sum, monthLimit)}
30
24
  </div>
31
25
  </div>
32
26
  </div>
@@ -37,28 +31,40 @@ export const Insurance = JSX<InsuranceProps>(
37
31
 
38
32
  function renderBenefit(benefit: InsuranceBenefit, i: number) {
39
33
  return (
40
- <div key={String(i)} className="flex items-center gap-5">
34
+ <div key={String(i)} className="flex items-center gap-4">
41
35
  {benefit?.icon ? (
42
36
  <Img
43
- className="w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light"
37
+ className="w-12 h-12 min-w-12 p-3 rounded-full bg-secondary-light"
44
38
  image={benefit.icon}
45
- width="24"
46
- height="24"
47
39
  asSVG
48
40
  />
49
41
  ) : null}
50
42
  <div>
51
- {benefit?.label ? <div className="text-title-2xs">{benefit.label}</div> : null}
43
+ {benefit?.label ? <div className="text-title-2xs font-normal">{benefit.label}</div> : null}
52
44
  {benefit?.description ? (
53
- <div className="mt-2 font-light text-secondary-text">{benefit.description}</div>
45
+ <div className="mt-0.5 font-light text-secondary-text font-light">
46
+ {benefit.description}
47
+ </div>
54
48
  ) : null}
55
49
  </div>
56
50
  </div>
57
51
  );
58
52
  }
59
53
 
54
+ function renderInsuranceSumMonth(sum, monthLimit) {
55
+ return sum || monthLimit ? (
56
+ <div className="bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4">
57
+ {Number.isFinite(sum) ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
58
+ {Number.isFinite(monthLimit)
59
+ ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
60
+ : null}
61
+ </div>
62
+ ) : null;
63
+ }
64
+
60
65
  function renderValueBlock(title, sum, isAnotherBlock) {
61
66
  const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
67
+
62
68
  return (
63
69
  <div className={`flex justify-between items-center gap-2 w-full ${widthStyle}`}>
64
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 Преимущество
@@ -12,12 +11,19 @@ export interface InsuranceBenefit {
12
11
  icon?: Picture;
13
12
  }
14
13
 
15
- export type InsuranceContent = InsuranceProps & {
14
+ /**
15
+ * @title Страховка
16
+ */
17
+ export type InsuranceContent = {
16
18
  /** @title Заголовок */
17
19
  title?: string;
18
20
  /** @title Описание */
19
21
  description?: string;
20
22
  image?: Picture;
23
+ /** @title Ежемесячный лимит */
24
+ monthLimit?: number;
25
+ /** @title Страховая сумма */
26
+ sum?: number;
21
27
  /**
22
28
  * @title Список преимуществ
23
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
  /**
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps, FuncReturnVoid } from '../../types';
3
- import type { InsuranceAmountBlockTabs, cardItem } from './InsuranceAmountBlockContent';
3
+ import type { InsuranceAmountBlockTabs, CardItem } from './InsuranceAmountBlockContent';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
5
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
6
6
  import { renderArrows } from '../../ui-kit/Button/renderArrows';
@@ -9,14 +9,14 @@ export interface InsuranceAmountBlockInnerProps extends InsuranceAmountBlockTabs
9
9
 
10
10
  type InsuranceGalleryProps = {
11
11
  tabsShift: number;
12
- cards: cardItem[];
12
+ cards: CardItem[];
13
13
  activeSlideIndex: number;
14
14
  isLastShift: boolean;
15
15
  setActiveSlideIndex: FuncReturnVoid<number>;
16
16
  };
17
17
 
18
18
  type InsuranceSlideProps = {
19
- slide: cardItem;
19
+ slide: CardItem;
20
20
  i: number;
21
21
  activeSlideIndex: number;
22
22
  onClick: FuncReturnVoid<MouseEvent>;
@@ -30,7 +30,7 @@ export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
30
30
  const handleNextClick = () => setTabsShift(tabsShift + 1);
31
31
  const handlePrevClick = () => setTabsShift(tabsShift - 1);
32
32
 
33
- const galleryLength = cards?.length;
33
+ const galleryLength = cards?.length ?? 0;
34
34
 
35
35
  const isGalleryScrollAvailable = cards?.length > 2;
36
36
  const showNextButton = isGalleryScrollAvailable && galleryLength > tabsShift + 2;
@@ -40,7 +40,7 @@ export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
40
40
  return (
41
41
  <section id={anchor} className={`min-w-full ${className}`}>
42
42
  <div className="relative mt-7 overflow-hidden">
43
- {galleryLength > 1
43
+ {galleryLength
44
44
  ? renderGallery({
45
45
  tabsShift,
46
46
  cards,
@@ -75,6 +75,7 @@ function renderGallery({
75
75
  setActiveSlideIndex,
76
76
  }: InsuranceGalleryProps) {
77
77
  const tabsShiftWidth = isLastShift ? tabsShift * 460 - 240 : tabsShift * 460;
78
+
78
79
  return (
79
80
  <div
80
81
  style={{ transform: `translateX(-${tabsShiftWidth}px)` }}