@redneckz/wildless-cms-uni-blocks 0.3.74 → 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 (624) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +262 -194
  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.map +1 -1
  22. package/dist/components/Catalog/Catalog.d.ts +5 -0
  23. package/dist/components/Catalog/Catalog.js +36 -0
  24. package/dist/components/Catalog/Catalog.js.map +1 -0
  25. package/dist/components/Catalog/CatalogCard.d.ts +7 -0
  26. package/dist/components/Catalog/CatalogCard.js +16 -0
  27. package/dist/components/Catalog/CatalogCard.js.map +1 -0
  28. package/dist/components/Catalog/CatalogContent.d.ts +22 -0
  29. package/{mobile/dist/model/Insurance.js → dist/components/Catalog/CatalogContent.js} +1 -1
  30. package/dist/components/Catalog/CatalogContent.js.map +1 -0
  31. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  32. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  33. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  34. package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  35. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  36. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  37. package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
  38. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  39. package/dist/components/Footer/SocialMedia.js.map +1 -1
  40. package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
  41. package/dist/components/Footer/TextInformation.js.map +1 -1
  42. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  43. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  44. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  45. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  46. package/dist/components/Header/HeaderBurger.js.map +1 -1
  47. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  48. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  49. package/dist/components/Insurance/Insurance.js.map +1 -1
  50. package/dist/components/Insurance/InsuranceContent.d.ts +5 -2
  51. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  52. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  53. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  54. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  55. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  56. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  57. package/dist/components/LinkList/LinkList.js.map +1 -1
  58. package/dist/components/MobileAppTile/MobileAppTile.js +16 -2
  59. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  60. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
  61. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  62. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  63. package/dist/components/OtherProducts/OtherProducts.js +1 -1
  64. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  65. package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  66. package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  67. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  68. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  69. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  70. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  71. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  72. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  73. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  74. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  75. package/dist/components/StepsBlock/StepsBlock.js +10 -6
  76. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  77. package/dist/components/StepsBlock/StepsBlock.mobile.js +12 -31
  78. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  79. package/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  80. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  81. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
  82. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  83. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  84. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  85. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  86. package/dist/content-page-repository/mapJSON.js.map +1 -1
  87. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  88. package/dist/content-page-repository/transformMarkdown.js.map +1 -1
  89. package/dist/content-page-repository/transformPicture.js.map +1 -1
  90. package/dist/hooks/useCreditCalculatorData.js.map +1 -1
  91. package/dist/hooks/useExchangeRates.js.map +1 -1
  92. package/dist/hooks/useLink.js.map +1 -1
  93. package/dist/react/setup-fixture.js.map +1 -1
  94. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  95. package/dist/services/sitemap/useSitemap.js.map +1 -1
  96. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  97. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  98. package/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
  99. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  100. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  101. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  102. package/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  103. package/dist/ui-kit/Foldable/Foldable.js +5 -5
  104. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  105. package/dist/ui-kit/Input/Input.js.map +1 -1
  106. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  107. package/dist/ui-kit/List/ListItem.js.map +1 -1
  108. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  109. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  110. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  111. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  112. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  113. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  114. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  115. package/dist/utils/adjustHref.js.map +1 -1
  116. package/dist/utils/getColSpan.js.map +1 -1
  117. package/dist/utils/roundTo.js.map +1 -1
  118. package/dist/utils/tableFunc.js.map +1 -1
  119. package/dist/utils/url.js.map +1 -1
  120. package/lib/api/DaDataAPI.js.map +1 -1
  121. package/lib/api/LikeAPI.js.map +1 -1
  122. package/lib/common.css +1 -1
  123. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  124. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  125. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  126. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  127. package/lib/components/Accordion/AccordionItemInner.js +1 -2
  128. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  129. package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -2
  130. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  131. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  132. package/lib/components/Blocks.d.ts +1 -0
  133. package/lib/components/Blocks.js +5 -3
  134. package/lib/components/Blocks.js.map +1 -1
  135. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  136. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  137. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  138. package/lib/components/Calculator/renderRate.js.map +1 -1
  139. package/lib/components/Catalog/Catalog.d.ts +5 -0
  140. package/lib/components/Catalog/Catalog.fixture.d.ts +6 -0
  141. package/lib/components/Catalog/Catalog.js +34 -0
  142. package/lib/components/Catalog/Catalog.js.map +1 -0
  143. package/lib/components/Catalog/CatalogCard.d.ts +7 -0
  144. package/lib/components/Catalog/CatalogCard.js +14 -0
  145. package/lib/components/Catalog/CatalogCard.js.map +1 -0
  146. package/lib/components/Catalog/CatalogContent.d.ts +22 -0
  147. package/lib/components/Catalog/CatalogContent.js +2 -0
  148. package/lib/components/Catalog/CatalogContent.js.map +1 -0
  149. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  150. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  151. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  152. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  153. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  154. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  155. package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  156. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  157. package/lib/components/Footer/SocialMedia.js.map +1 -1
  158. package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
  159. package/lib/components/Footer/TextInformation.js.map +1 -1
  160. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  161. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  162. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  163. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  164. package/lib/components/Header/HeaderBurger.js.map +1 -1
  165. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  166. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  167. package/lib/components/Insurance/Insurance.js.map +1 -1
  168. package/lib/components/Insurance/InsuranceContent.d.ts +5 -2
  169. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  170. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  171. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  172. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  173. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  174. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  175. package/lib/components/LinkList/LinkList.js.map +1 -1
  176. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +2 -0
  177. package/lib/components/MobileAppTile/MobileAppTile.js +16 -2
  178. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  179. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
  180. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  181. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  182. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -1
  183. package/lib/components/OtherProducts/OtherProducts.js +1 -1
  184. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  185. package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  186. package/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  187. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  188. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  189. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  190. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  191. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  192. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  193. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  194. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  195. package/lib/components/StepsBlock/StepsBlock.js +10 -6
  196. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  197. package/lib/components/StepsBlock/StepsBlock.mobile.js +12 -31
  198. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  199. package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  200. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  201. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  202. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  203. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  204. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  205. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  206. package/lib/content-page-repository/mapJSON.js.map +1 -1
  207. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  208. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  209. package/lib/content-page-repository/transformPicture.js.map +1 -1
  210. package/lib/hooks/useCreditCalculatorData.js.map +1 -1
  211. package/lib/hooks/useExchangeRates.js.map +1 -1
  212. package/lib/hooks/useLink.js.map +1 -1
  213. package/lib/react/setup-fixture.js.map +1 -1
  214. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  215. package/lib/services/sitemap/useSitemap.js.map +1 -1
  216. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  217. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  218. package/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  219. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  220. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  221. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  222. package/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  223. package/lib/ui-kit/Foldable/Foldable.js +5 -5
  224. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  225. package/lib/ui-kit/Input/Input.js.map +1 -1
  226. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  227. package/lib/ui-kit/List/ListItem.js.map +1 -1
  228. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  229. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  230. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  231. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  232. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  233. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  234. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  235. package/lib/utils/adjustHref.js.map +1 -1
  236. package/lib/utils/getColSpan.js.map +1 -1
  237. package/lib/utils/roundTo.js.map +1 -1
  238. package/lib/utils/tableFunc.js.map +1 -1
  239. package/lib/utils/url.js.map +1 -1
  240. package/mobile/bundle/bundle.umd.js +34 -37
  241. package/mobile/bundle/bundle.umd.min.js +1 -1
  242. package/mobile/dist/api/DaDataAPI.js.map +1 -1
  243. package/mobile/dist/api/LikeAPI.js.map +1 -1
  244. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  245. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  246. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  247. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  248. package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -2
  249. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  250. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  251. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  252. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  253. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  254. package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
  255. package/mobile/dist/components/Catalog/Catalog.d.ts +5 -0
  256. package/mobile/dist/components/Catalog/Catalog.js +36 -0
  257. package/mobile/dist/components/Catalog/Catalog.js.map +1 -0
  258. package/mobile/dist/components/Catalog/CatalogCard.d.ts +7 -0
  259. package/mobile/dist/components/Catalog/CatalogCard.js +16 -0
  260. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -0
  261. package/mobile/dist/components/Catalog/CatalogContent.d.ts +22 -0
  262. package/{dist/model/Insurance.js → mobile/dist/components/Catalog/CatalogContent.js} +1 -1
  263. package/mobile/dist/components/Catalog/CatalogContent.js.map +1 -0
  264. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  265. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  266. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  267. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  268. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  269. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
  270. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  271. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  272. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  273. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  274. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  275. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  276. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  277. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  278. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  279. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  280. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +5 -2
  281. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  282. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  283. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  284. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  285. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  286. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  287. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  288. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  289. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  290. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  291. package/mobile/dist/components/OtherProducts/OtherProducts.js +1 -1
  292. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  293. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  294. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  295. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  296. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  297. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  298. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  299. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  300. package/mobile/dist/components/StepsBlock/StepsBlock.js +12 -31
  301. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  302. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  303. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  304. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
  305. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  306. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  307. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  308. package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
  309. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  310. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  311. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  312. package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
  313. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  314. package/mobile/dist/hooks/useLink.js.map +1 -1
  315. package/mobile/dist/react/setup-fixture.js.map +1 -1
  316. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  317. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  318. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  319. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  320. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
  321. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  322. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  323. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  324. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
  325. package/mobile/dist/ui-kit/Foldable/Foldable.js +5 -5
  326. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  327. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  328. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  329. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  330. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  331. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  332. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  333. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  334. package/mobile/dist/utils/adjustHref.js.map +1 -1
  335. package/mobile/dist/utils/getColSpan.js.map +1 -1
  336. package/mobile/dist/utils/roundTo.js.map +1 -1
  337. package/mobile/dist/utils/tableFunc.js.map +1 -1
  338. package/mobile/dist/utils/url.js.map +1 -1
  339. package/mobile/lib/api/DaDataAPI.js.map +1 -1
  340. package/mobile/lib/api/LikeAPI.js.map +1 -1
  341. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  342. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  343. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  344. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  345. package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -2
  346. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  347. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  348. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  349. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  350. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  351. package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
  352. package/mobile/lib/components/Catalog/Catalog.d.ts +5 -0
  353. package/mobile/lib/components/Catalog/Catalog.js +34 -0
  354. package/mobile/lib/components/Catalog/Catalog.js.map +1 -0
  355. package/mobile/lib/components/Catalog/CatalogCard.d.ts +7 -0
  356. package/mobile/lib/components/Catalog/CatalogCard.js +14 -0
  357. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -0
  358. package/mobile/lib/components/Catalog/CatalogContent.d.ts +22 -0
  359. package/mobile/lib/components/Catalog/CatalogContent.js +2 -0
  360. package/mobile/lib/components/Catalog/CatalogContent.js.map +1 -0
  361. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  362. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  363. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  364. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  365. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  366. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
  367. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  368. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  369. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  370. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  371. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  372. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  373. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  374. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  375. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  376. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  377. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +5 -2
  378. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
  379. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  380. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
  381. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  382. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  383. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  384. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  385. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  386. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  387. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
  388. package/mobile/lib/components/OtherProducts/OtherProducts.js +1 -1
  389. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  390. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
  391. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  392. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  393. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  394. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  395. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  396. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  397. package/mobile/lib/components/StepsBlock/StepsBlock.js +12 -31
  398. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  399. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
  400. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
  401. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
  402. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
  403. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  404. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  405. package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
  406. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  407. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  408. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  409. package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
  410. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  411. package/mobile/lib/hooks/useLink.js.map +1 -1
  412. package/mobile/lib/react/setup-fixture.js.map +1 -1
  413. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  414. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  415. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
  416. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
  417. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
  418. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  419. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  420. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  421. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
  422. package/mobile/lib/ui-kit/Foldable/Foldable.js +5 -5
  423. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  424. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  425. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  426. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  427. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  428. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  429. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  430. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  431. package/mobile/lib/utils/adjustHref.js.map +1 -1
  432. package/mobile/lib/utils/getColSpan.js.map +1 -1
  433. package/mobile/lib/utils/roundTo.js.map +1 -1
  434. package/mobile/lib/utils/tableFunc.js.map +1 -1
  435. package/mobile/lib/utils/url.js.map +1 -1
  436. package/mobile/src/api/DaDataAPI.ts +2 -0
  437. package/mobile/src/api/LikeAPI.ts +4 -0
  438. package/mobile/src/components/Accordion/Accordion.tsx +1 -1
  439. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  440. package/mobile/src/components/Accordion/AccordionItemInner.tsx +3 -4
  441. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
  442. package/mobile/src/components/Calculator/getMonthlyPayment.ts +1 -0
  443. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  444. package/mobile/src/components/Calculator/renderMonthsInput.tsx +1 -0
  445. package/mobile/src/components/Calculator/renderRate.tsx +1 -0
  446. package/mobile/src/components/Catalog/Catalog.example.json +57 -0
  447. package/mobile/src/components/Catalog/Catalog.tsx +73 -0
  448. package/mobile/src/components/Catalog/CatalogCard.tsx +47 -0
  449. package/mobile/src/components/Catalog/CatalogContent.ts +26 -0
  450. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -0
  451. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
  452. package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -0
  453. package/mobile/src/components/ContentPage/normalizeBlock.ts +1 -0
  454. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  455. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  456. package/mobile/src/components/Footer/Footer.tsx +2 -0
  457. package/mobile/src/components/Footer/SocialMedia.tsx +1 -0
  458. package/mobile/src/components/Footer/TextInformation.tsx +1 -0
  459. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -0
  460. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  461. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  462. package/mobile/src/components/Header/HeaderBurger.tsx +2 -0
  463. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  464. package/mobile/src/components/Headline/Headline.tsx +1 -0
  465. package/mobile/src/components/Insurance/Insurance.tsx +1 -0
  466. package/mobile/src/components/Insurance/InsuranceContent.ts +5 -2
  467. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  468. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  469. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  470. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  471. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  472. package/mobile/src/components/LinkList/LinkList.tsx +1 -0
  473. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -4
  474. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  475. package/mobile/src/components/OtherProducts/OtherProducts.tsx +2 -2
  476. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  477. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  478. package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -0
  479. package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
  480. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
  481. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -0
  482. package/mobile/src/components/StepsBlock/StepsBlock.tsx +58 -82
  483. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  484. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  485. package/mobile/src/components/TextBlock/TextBlock.tsx +1 -0
  486. package/mobile/src/content-page-repository/ContentPageRepository.ts +5 -0
  487. package/mobile/src/content-page-repository/mapJSON.ts +3 -0
  488. package/mobile/src/content-page-repository/transformContentPage.ts +2 -0
  489. package/mobile/src/content-page-repository/transformMarkdown.ts +1 -0
  490. package/mobile/src/content-page-repository/transformPicture.ts +2 -0
  491. package/mobile/src/hooks/useCreditCalculatorData.ts +2 -0
  492. package/mobile/src/hooks/useExchangeRates.ts +3 -0
  493. package/mobile/src/hooks/useLink.ts +1 -0
  494. package/mobile/src/react/setup-fixture.ts +1 -0
  495. package/mobile/src/services/sitemap/findActiveSubItem.ts +1 -0
  496. package/mobile/src/services/sitemap/useSitemap.ts +2 -0
  497. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  498. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  499. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -0
  500. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -0
  501. package/mobile/src/ui-kit/Foldable/Foldable.tsx +8 -4
  502. package/mobile/src/ui-kit/Input/Input.tsx +1 -0
  503. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -0
  504. package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
  505. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  506. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  507. package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -0
  508. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -0
  509. package/mobile/src/utils/adjustHref.ts +2 -0
  510. package/mobile/src/utils/getColSpan.ts +1 -0
  511. package/mobile/src/utils/roundTo.ts +1 -0
  512. package/mobile/src/utils/tableFunc.ts +1 -0
  513. package/mobile/src/utils/url.ts +2 -0
  514. package/package.json +1 -1
  515. package/src/api/DaDataAPI.ts +2 -0
  516. package/src/api/LikeAPI.ts +4 -0
  517. package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -19
  518. package/src/components/Accordion/Accordion.fixture.tsx +10 -2
  519. package/src/components/Accordion/Accordion.mobile.tsx +1 -1
  520. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  521. package/src/components/Accordion/AccordionItemInner.mobile.tsx +3 -4
  522. package/src/components/Accordion/AccordionItemInner.tsx +3 -4
  523. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
  524. package/src/components/Blocks.ts +5 -3
  525. package/src/components/Calculator/getMonthlyPayment.ts +1 -0
  526. package/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
  527. package/src/components/Calculator/renderMonthsInput.tsx +1 -0
  528. package/src/components/Calculator/renderRate.tsx +1 -0
  529. package/src/components/Catalog/Catalog.example.json +57 -0
  530. package/src/components/Catalog/Catalog.fixture.tsx +48 -0
  531. package/src/components/Catalog/Catalog.tsx +73 -0
  532. package/src/components/Catalog/CatalogCard.tsx +47 -0
  533. package/src/components/Catalog/CatalogContent.ts +26 -0
  534. package/src/components/ComparisonTable/TableColumn.tsx +1 -0
  535. package/src/components/ContentPage/ContentPage.tsx +2 -0
  536. package/src/components/ContentPage/ContentPageHead.tsx +1 -0
  537. package/src/components/ContentPage/normalizeBlock.mobile.ts +1 -0
  538. package/src/components/ContentPage/normalizeBlock.ts +1 -0
  539. package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
  540. package/src/components/ExchangeRateTile/calculateResult.ts +1 -0
  541. package/src/components/Footer/Footer.mobile.tsx +2 -0
  542. package/src/components/Footer/SocialMedia.mobile.tsx +1 -0
  543. package/src/components/Footer/SocialMedia.tsx +1 -0
  544. package/src/components/Footer/TextInformation.mobile.tsx +1 -0
  545. package/src/components/Footer/TextInformation.tsx +1 -0
  546. package/src/components/Gallery/GalleryCardInner.tsx +1 -0
  547. package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
  548. package/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
  549. package/src/components/Header/HeaderBurger.tsx +2 -0
  550. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
  551. package/src/components/Headline/Headline.mobile.tsx +1 -0
  552. package/src/components/Insurance/Insurance.tsx +1 -0
  553. package/src/components/Insurance/InsuranceContent.ts +5 -2
  554. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
  555. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -5
  556. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
  557. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
  558. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
  559. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
  560. package/src/components/LinkList/LinkList.tsx +1 -0
  561. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +69 -13
  562. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -4
  563. package/src/components/MobileAppTile/MobileAppTile.tsx +44 -12
  564. package/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
  565. package/src/components/OtherProducts/OtherProducts.fixture.tsx +16 -53
  566. package/src/components/OtherProducts/OtherProducts.tsx +2 -2
  567. package/src/components/OtherProducts/OtherProductsContent.ts +3 -8
  568. package/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
  569. package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
  570. package/src/components/ProductBlock/ProductBlock.tsx +1 -0
  571. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -0
  572. package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
  573. package/src/components/ProductBlock/renderBenefit.tsx +1 -0
  574. package/src/components/ProductTile/ProductTile.tsx +2 -0
  575. package/src/components/PromoTile/PromoTile.tsx +1 -0
  576. package/src/components/StepsBlock/StepsBlock.mobile.tsx +58 -82
  577. package/src/components/StepsBlock/StepsBlock.tsx +27 -11
  578. package/src/components/StepsBlock/StepsBlockContent.ts +6 -3
  579. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
  580. package/src/components/TextBlock/TextBlock.mobile.tsx +1 -0
  581. package/src/components/TextBlock/TextBlock.tsx +1 -0
  582. package/src/content-page-repository/ContentPageRepository.ts +5 -0
  583. package/src/content-page-repository/mapJSON.ts +3 -0
  584. package/src/content-page-repository/transformContentPage.ts +2 -0
  585. package/src/content-page-repository/transformMarkdown.ts +1 -0
  586. package/src/content-page-repository/transformPicture.ts +2 -0
  587. package/src/hooks/useCreditCalculatorData.ts +2 -0
  588. package/src/hooks/useExchangeRates.ts +3 -0
  589. package/src/hooks/useLink.ts +1 -0
  590. package/src/react/setup-fixture.ts +1 -0
  591. package/src/services/sitemap/findActiveSubItem.ts +1 -0
  592. package/src/services/sitemap/useSitemap.ts +2 -0
  593. package/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
  594. package/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
  595. package/src/ui-kit/Button/ButtonInner.tsx +1 -0
  596. package/src/ui-kit/Button/ButtonSection.tsx +1 -0
  597. package/src/ui-kit/Foldable/Foldable.tsx +8 -4
  598. package/src/ui-kit/Input/Input.tsx +1 -0
  599. package/src/ui-kit/InputRange/InputRange.tsx +1 -0
  600. package/src/ui-kit/List/ListItem.tsx +1 -0
  601. package/src/ui-kit/Logo/Logo.tsx +1 -0
  602. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -0
  603. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
  604. package/src/ui-kit/SearchBar.mobile.tsx +1 -0
  605. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
  606. package/src/ui-kit/Tabs/Tabs.tsx +1 -0
  607. package/src/ui-kit/TopItem/TopItem.tsx +1 -0
  608. package/src/utils/adjustHref.ts +2 -0
  609. package/src/utils/getColSpan.ts +1 -0
  610. package/src/utils/roundTo.ts +1 -0
  611. package/src/utils/tableFunc.ts +1 -0
  612. package/src/utils/url.ts +2 -0
  613. package/dist/model/Insurance.d.ts +0 -6
  614. package/dist/model/Insurance.js.map +0 -1
  615. package/lib/model/Insurance.d.ts +0 -6
  616. package/lib/model/Insurance.js +0 -2
  617. package/lib/model/Insurance.js.map +0 -1
  618. package/mobile/dist/model/Insurance.d.ts +0 -6
  619. package/mobile/dist/model/Insurance.js.map +0 -1
  620. package/mobile/lib/model/Insurance.d.ts +0 -6
  621. package/mobile/lib/model/Insurance.js +0 -2
  622. package/mobile/lib/model/Insurance.js.map +0 -1
  623. package/mobile/src/model/Insurance.ts +0 -6
  624. package/src/model/Insurance.ts +0 -6
@@ -5,11 +5,21 @@ import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import { joinList } from '../../utils/joinList';
7
7
  import type { Step, StepsBlockContent } from './StepsBlockContent';
8
+ import { getStyleMap, StyleType } from './StepsBlockStyleMaps';
8
9
 
9
10
  export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
10
11
 
11
12
  export const StepsBlock = JSX<StepsBlockProps>(
12
- ({ className = '', title, showLines = true, steps = [], button, anchor = null }) => {
13
+ ({
14
+ className = '',
15
+ title,
16
+ showLines = true,
17
+ steps = [],
18
+ button,
19
+ anchor = null,
20
+ version = 'primary',
21
+ }) => {
22
+ const styleMap = getStyleMap(version);
13
23
  const shortGaps = steps.length > 3;
14
24
 
15
25
  return (
@@ -18,6 +28,8 @@ export const StepsBlock = JSX<StepsBlockProps>(
18
28
  'box-border font-sans text-primary-text bg-white',
19
29
  shortGaps ? 'px-20' : 'px-[70px]',
20
30
  'py-[50px] flex flex-col items-center',
31
+ styleMap.background,
32
+ styleMap.title,
21
33
  className,
22
34
  ].join(' ')}
23
35
  id={anchor}
@@ -30,10 +42,10 @@ export const StepsBlock = JSX<StepsBlockProps>(
30
42
  <div
31
43
  className={`h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}`}
32
44
  />,
33
- )(steps.map(renderStepIcon))}
45
+ )(steps.map(renderStepIcon(styleMap)))}
34
46
  </div>
35
47
  <div className={`flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`}>
36
- {steps.map((step, i) => renderStepTitle(step, i, Boolean(button?.text)))}
48
+ {steps.map(renderStepTitle(styleMap, Boolean(button?.text)))}
37
49
  </div>
38
50
  </div>
39
51
  ) : null}
@@ -51,33 +63,37 @@ export const StepsBlock = JSX<StepsBlockProps>(
51
63
  },
52
64
  );
53
65
 
54
- const renderStepIcon = (step: Step, i: number) => {
66
+ const renderStepIcon = (styleMap: StyleType) => (step: Step, i: number) => {
55
67
  return (
56
68
  <div key={String(i)} className="flex flex-col items-center text-center relative">
57
- <div className="h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10">
69
+ <div
70
+ className={`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 ${styleMap.iconBackground}`}
71
+ >
58
72
  {(step.icon?.icon && <Img image={step.icon} width="48" height="48" />) || (
59
- <span className="font-normal text-title-sm text-secondary-text">{i + 1}</span>
73
+ <span className={`font-normal text-title-sm ${styleMap.title}`}>{i + 1}</span>
60
74
  )}
61
75
  </div>
62
76
  </div>
63
77
  );
64
78
  };
65
79
 
66
- const renderStepTitle = (step: Step, i: number, isMainButton: boolean) => {
80
+ const renderStepTitle = (styleMap: StyleType, isMainButton: boolean) => (step: Step, i: number) => {
67
81
  return (
68
82
  <div
69
83
  key={String(i)}
70
84
  className="flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden"
71
85
  >
72
86
  <div>
73
- {step.label && <div className="font-normal text-xl m-0 mt-4">{step.label}</div>}
74
- {step.description && (
87
+ {step.label ? <div className="font-normal text-xl m-0 mt-4">{step.label}</div> : null}
88
+ {step.description ? (
75
89
  <div
76
- className={`font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`}
90
+ className={`font-light text-base ${styleMap.description} ${
91
+ step.label ? 'mt-2' : 'mt-4'
92
+ }`}
77
93
  >
78
94
  {step.description}
79
95
  </div>
80
- )}
96
+ ) : null}
81
97
  </div>
82
98
  {step?.button?.text && !isMainButton ? (
83
99
  <Button
@@ -1,6 +1,6 @@
1
- import type { SizeVersion } from '../../model/SizeVersion';
2
1
  import type { BlockVersion } from '../../model/BlockVersion';
3
2
  import type { Picture } from '../../model/Picture';
3
+ import type { SizeVersion } from '../../model/SizeVersion';
4
4
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
5
 
6
6
  /**
@@ -35,7 +35,10 @@ export interface StepsBlockContent {
35
35
  */
36
36
  steps?: Step[];
37
37
  button?: ButtonProps;
38
- /** @title Размер шагов (моб.) */
38
+ /**
39
+ * @title Размер шагов (моб.)
40
+ * @default normal
41
+ */
39
42
  size?: SizeVersion; // TODO: mobile content
40
- version?: BlockVersion; // TODO: mobile content
43
+ version?: BlockVersion;
41
44
  }
@@ -0,0 +1,28 @@
1
+ import { BlockVersion } from '../../model/BlockVersion';
2
+
3
+ export type StyleType = {
4
+ background: string;
5
+ title: string;
6
+ description: string;
7
+ iconBackground: string;
8
+ iconConnector: string;
9
+ };
10
+
11
+ const STEPS_BLOCK_STYLE_MAPS: Record<BlockVersion, StyleType> = {
12
+ primary: {
13
+ background: 'bg-white',
14
+ title: 'text-primary-text',
15
+ description: 'text-secondary-text',
16
+ iconBackground: 'bg-secondary-light',
17
+ iconConnector: 'bg-secondary-light',
18
+ },
19
+ secondary: {
20
+ background: 'bg-primary-main',
21
+ title: 'text-white',
22
+ description: 'text-white/80',
23
+ iconBackground: 'bg-white/30',
24
+ iconConnector: 'bg-white',
25
+ },
26
+ };
27
+
28
+ export const getStyleMap = (version: BlockVersion): StyleType => STEPS_BLOCK_STYLE_MAPS[version];
@@ -40,6 +40,7 @@ export const TextBlock = JSX<TextBlockProps>(
40
40
  isDotted = true,
41
41
  }) => {
42
42
  const textBlockStyleMap = textBlockStyleMaps[blockVersion];
43
+
43
44
  return (
44
45
  <section
45
46
  className={`font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`}
@@ -41,6 +41,7 @@ export const TextBlock = JSX<TextBlockProps>(
41
41
  anchor = null,
42
42
  }) => {
43
43
  const textBlockStyleMap = textBlockStyleMaps[blockVersion];
44
+
44
45
  return (
45
46
  <section
46
47
  className={`font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`}
@@ -27,6 +27,7 @@ export function ContentPageRepository({
27
27
  async function getAllContentPagesMap(): Promise<Record<string, ContentPageDef>> {
28
28
  const pagePaths = await listAllContentPages();
29
29
  const pages = await Promise.all(pagePaths.map(readPage));
30
+
30
31
  return pagePaths.reduce(
31
32
  (result, path, i) => ({
32
33
  ...result,
@@ -42,11 +43,13 @@ export function ContentPageRepository({
42
43
 
43
44
  async function getSecondaryContentPages(customPageType?: string) {
44
45
  const pages = await getAllContentPages();
46
+
45
47
  return pages.filter(not(bySlug(INDEX_PAGE_SLUG))).filter(byCustomPageType(customPageType));
46
48
  }
47
49
 
48
50
  async function getContentPageBySlug(slug: string): Promise<ContentPageDef | undefined> {
49
51
  const pages = await getAllContentPages();
52
+
50
53
  return pages.find(bySlug(slug));
51
54
  }
52
55
 
@@ -55,6 +58,7 @@ export function ContentPageRepository({
55
58
  }
56
59
 
57
60
  const cache: Record<string, ContentPageDef> = {};
61
+
58
62
  async function readPage(filePath: string): Promise<ContentPageDef> {
59
63
  if (!(filePath in cache)) {
60
64
  cache[filePath] = await transformContentPage(filePath, {
@@ -62,6 +66,7 @@ export function ContentPageRepository({
62
66
  publicDir,
63
67
  });
64
68
  }
69
+
65
70
  return cache[filePath];
66
71
  }
67
72
 
@@ -14,6 +14,7 @@ export async function mapJSON<T>(
14
14
 
15
15
  if (Array.isArray(data)) {
16
16
  const values = data.map((_, i) => mapJSON(_, mapper, [String(i)].concat(keyParts)));
17
+
17
18
  return Promise.all(values) as any;
18
19
  } else if (typeof data === 'object' && (data as any).toString() === '[object Object]') {
19
20
  const subKeys = Object.keys(data as any);
@@ -21,7 +22,9 @@ export async function mapJSON<T>(
21
22
  const pairs = (await Promise.all(values)).map((_, i) => ({
22
23
  [subKeys[i]]: _,
23
24
  }));
25
+
24
26
  return Object.assign({}, ...pairs);
25
27
  }
28
+
26
29
  return mapper<T>(data, keyParts);
27
30
  }
@@ -14,6 +14,7 @@ export async function transformContentPage(
14
14
  options: TransformationOptions,
15
15
  ): Promise<ContentPageDef> {
16
16
  const content = await readFile(pagePath, 'utf8');
17
+
17
18
  return mapJSON<ContentPageDef>(JSON.parse(content), async (value: any, [key]) => {
18
19
  const isMarkdown = typeof value === 'string' && key?.endsWith('__md');
19
20
  const isPicture = value && isLocalPath(value?.src);
@@ -22,6 +23,7 @@ export async function transformContentPage(
22
23
  } else if (isPicture) {
23
24
  return await transformPicture(pagePath, value as Picture, options);
24
25
  }
26
+
25
27
  return value;
26
28
  });
27
29
  }
@@ -8,5 +8,6 @@ export async function transformMarkdown(markdown: string | null | undefined): Pr
8
8
  }
9
9
 
10
10
  const result = await unified().use(remarkParse).use(remarkHtml).process(markdown);
11
+
11
12
  return result.toString('utf-8');
12
13
  }
@@ -17,6 +17,7 @@ export async function transformPicture(
17
17
  const [transformedPicture, ...transformedSources] = await Promise.all(
18
18
  [picture].concat(sources).map((_) => transformImg(pagePath, src, { ...options, ..._ })),
19
19
  );
20
+
20
21
  return {
21
22
  ...picture,
22
23
  src: transformedPicture,
@@ -70,6 +71,7 @@ function transformSrc(src: string, { format, size }: TransformationOptions & Img
70
71
  }
71
72
 
72
73
  const suffix = [size?.width, size?.height].filter(Boolean).join('-');
74
+
73
75
  return `${path.basename(src, path.extname(src))}${suffix ? `-${suffix}` : ''}.${
74
76
  String(format) || path.extname(src)
75
77
  }`;
@@ -5,11 +5,13 @@ export function useCreditCalculatorData(
5
5
  directoryName: string | undefined,
6
6
  ): any {
7
7
  const { data } = useAsyncData(creditCalculatorUrl(directoryName), fetchCreditCalculatorData);
8
+
8
9
  return data || {};
9
10
  }
10
11
 
11
12
  async function fetchCreditCalculatorData(url: string): Promise<any> {
12
13
  const response = await fetch(url);
14
+
13
15
  return await response.json();
14
16
  }
15
17
 
@@ -11,6 +11,7 @@ export function useExchangeRates(useAsyncData: AsyncDataHook): ExchangeCurrencyI
11
11
  const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
12
12
 
13
13
  const result = data?.hits?.hits?.map((_) => _._source) || [];
14
+
14
15
  return result.length ? getCurrencyListByRate(result) : result;
15
16
  }
16
17
 
@@ -23,6 +24,7 @@ async function fetchExchangeRates(): Promise<any | undefined> {
23
24
  },
24
25
  body: JSON.stringify(EXCHANGE_RATES_BODY),
25
26
  });
27
+
26
28
  return await response.json();
27
29
  } catch (err) {
28
30
  console.error(err);
@@ -79,6 +81,7 @@ const getCurrencyListByRate = (currencyRates: RatesData[]) =>
79
81
  sell: Number(_.rate_sell),
80
82
  });
81
83
  }
84
+
82
85
  return result;
83
86
  }, []);
84
87
 
@@ -13,6 +13,7 @@ export function useLink(
13
13
  link: Partial<LinkProps & { className: string }>,
14
14
  ) {
15
15
  const href = adjustHref(link.href, router);
16
+
16
17
  return {
17
18
  ...link,
18
19
  href,
@@ -40,6 +40,7 @@ export const context: ContentPageContext = {
40
40
  setData(_);
41
41
  });
42
42
  }, [key, fetcher]);
43
+
43
44
  return { data };
44
45
  },
45
46
  useGeolocation: (defaultLocation) => {
@@ -10,5 +10,6 @@ export const findActiveSubItem =
10
10
  const activeSubItem = possibleActiveSubItems?.length
11
11
  ? maxBy((_: T) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
12
12
  : null;
13
+
13
14
  return activeSubItem;
14
15
  };
@@ -4,11 +4,13 @@ import { projectSettings } from '../../ProjectSettings';
4
4
 
5
5
  export function useSitemap(useAsyncData: AsyncDataHook): HeaderContent {
6
6
  const { data } = useAsyncData(sitemapURL(), fetchSitemap);
7
+
7
8
  return data || {};
8
9
  }
9
10
 
10
11
  async function fetchSitemap(): Promise<HeaderContent> {
11
12
  const response = await fetch(sitemapURL());
13
+
12
14
  return await response.json();
13
15
  }
14
16
 
@@ -17,71 +17,81 @@ export interface ActiveHandler {
17
17
  initialState?: boolean;
18
18
  }
19
19
 
20
- /**
21
- * @title Количество колонок
22
- * @enumNames ["1 колонка", "2 колонки"]
23
- */
24
- export type ColumnsCount = 1 | 2;
20
+ export interface BlocksCommonProps {
21
+ /**
22
+ * @title Стиль
23
+ * @default ["col-span-12"]
24
+ **/
25
+ style?: string[];
26
+ }
25
27
 
26
28
  /**
27
29
  * @title Заголовок
28
30
  * @default {"blockListType": "Headline"}
29
31
  */
30
- export type HeadlineBlockListDef = HeadlineContent & { blockListType: 'Headline' };
32
+ export type HeadlineBlockListDef = HeadlineContent &
33
+ BlocksCommonProps & { blockListType: 'Headline' };
31
34
 
32
35
  /**
33
36
  * @title Список документов
34
37
  * @default {"blockListType": "LinkDocs"}
35
38
  */
36
- export type LinkDocsBlockListDef = LinkDocsContent & { blockListType: 'LinkDocs' };
39
+ export type LinkDocsBlockListDef = LinkDocsContent &
40
+ BlocksCommonProps & { blockListType: 'LinkDocs' };
37
41
 
38
42
  /**
39
43
  * @title Текстовый блок
40
44
  * @default {"blockListType": "TextBlock"}
41
45
  */
42
- export type TextBlockBlockListDef = TextBlockContent & { blockListType: 'TextBlock' };
46
+ export type TextBlockBlockListDef = TextBlockContent &
47
+ BlocksCommonProps & { blockListType: 'TextBlock' };
43
48
 
44
49
  /**
45
50
  * @title Картинка с текстом
46
51
  * @default {"blockListType": "PictureText"}
47
52
  */
48
- export type PictureTextBlockListDef = PictureTextContent & { blockListType: 'PictureText' };
53
+ export type PictureTextBlockListDef = PictureTextContent &
54
+ BlocksCommonProps & { blockListType: 'PictureText' };
49
55
 
50
56
  /**
51
57
  * @title Продуктовый блок
52
58
  * @default {"blockListType": "ProductBlock"}
53
59
  */
54
- export type ProductBlockBlockListDef = ProductBlockContent & { blockListType: 'ProductBlock' };
60
+ export type ProductBlockBlockListDef = ProductBlockContent &
61
+ BlocksCommonProps & { blockListType: 'ProductBlock' };
55
62
 
56
63
  /**
57
64
  * @title Плитка
58
65
  * @default {"blockListType": "Tile"}
59
66
  */
60
- export type TileBlockListDef = TileContent & { blockListType: 'Tile' };
67
+ export type TileBlockListDef = TileContent & BlocksCommonProps & { blockListType: 'Tile' };
61
68
 
62
69
  /**
63
70
  * @title Продуктовая плитка
64
71
  * @default {"blockListType": "ProductTile"}
65
72
  */
66
- export type ProductTileBlockListDef = ProductTileContent & { blockListType: 'ProductTile' };
73
+ export type ProductTileBlockListDef = ProductTileContent &
74
+ BlocksCommonProps & { blockListType: 'ProductTile' };
67
75
 
68
76
  /**
69
77
  * @title Галерея
70
78
  * @default {"blockListType": "Gallery"}
71
79
  */
72
- export type GalleryBlockListDef = GalleryContent & { blockListType: 'Gallery' };
80
+ export type GalleryBlockListDef = GalleryContent & BlocksCommonProps & { blockListType: 'Gallery' };
73
81
 
74
82
  /**
75
83
  * @title Мини-галлерея
76
84
  * @default {"blockListType": "MiniGallery"}
77
85
  */
78
- export type MiniGalleryBlockListDef = MiniGalleryContent & { blockListType: 'MiniGallery' };
86
+ export type MiniGalleryBlockListDef = MiniGalleryContent &
87
+ BlocksCommonProps & { blockListType: 'MiniGallery' };
79
88
 
80
89
  /**
81
90
  * @title Список ссылок
82
91
  * @default {"blockListType": "LinkList"}
83
92
  */
84
- export type LinkListBlockListDef = LinkListContent & { blockListType: 'LinkList' };
93
+ export type LinkListBlockListDef = LinkListContent &
94
+ BlocksCommonProps & { blockListType: 'LinkList' };
85
95
 
86
96
  /**
87
97
  * @title Содержимое блока
@@ -1,30 +1,35 @@
1
1
  import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
2
  import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
- import type { BlockDef, ColumnsCount } from './BlocksListProps';
3
+ import type { UniBlockProps } from '../../types';
4
+ import { style2className } from '../../utils/style2className';
5
+ import type { BlockDef } from './BlocksListProps';
4
6
  import { EmbeddableBlocks } from './EmbeddableBlocks';
5
7
 
6
8
  type EmbeddableBlocksProps = {
7
9
  blocks?: BlockDef[];
8
10
  context: ContentPageContext;
9
- columns?: ColumnsCount;
10
11
  className?: string;
11
12
  };
12
13
 
13
- export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
14
- blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
14
+ export const renderBlocksList = ({ blocks, context, className = '' }: EmbeddableBlocksProps) =>
15
+ blocks?.length ? blocks.map(renderBlock({ context, className })) : null;
15
16
 
16
17
  const renderBlock =
17
- ({ context, columns, className }: EmbeddableBlocksProps) =>
18
+ ({ context, className }: UniBlockProps) =>
18
19
  (block: BlockDef, i: number) => {
19
20
  const type = block?.blockListType;
20
21
  if (!type || !(type in EmbeddableBlocks)) {
21
22
  return null;
22
23
  }
23
- const columnsCountClass = columns === 2 ? 'w-1/2' : '';
24
+ const classNameBlock = style2className(block?.style);
24
25
  const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
26
+
25
27
  return (
26
- <div className={`${className} ${columnsCountClass}`} key={`block_${i}`}>
27
- <EmbeddedBlock context={context} {...block} className="!p-0" />
28
- </div>
28
+ <EmbeddedBlock
29
+ key={`block_${i}`}
30
+ context={context}
31
+ {...block}
32
+ className={`${className} ${classNameBlock}`}
33
+ />
29
34
  );
30
35
  };
@@ -8,6 +8,7 @@ interface ButtonInnerProps extends ButtonWithIconProps {
8
8
 
9
9
  export const ButtonInner = JSX<ButtonInnerProps>((props) => {
10
10
  const { text, aboveText, appendLeft, appendRight } = props;
11
+
11
12
  return (
12
13
  <div className={getButtonStyle(props)}>
13
14
  {appendLeft ? appendLeft : null}
@@ -10,6 +10,7 @@ export interface ButtonSectionProps extends ButtonContent, UniBlockProps {}
10
10
  export const ButtonSection = JSX<ButtonSectionProps>(({ context, className = '', buttons }) => {
11
11
  const { handlerDecorator } = context;
12
12
  const router = context.useRouter();
13
+
13
14
  return buttons?.length ? (
14
15
  <div className={className}>
15
16
  {buttons.map((button, index) =>
@@ -8,6 +8,7 @@ import { foldableBlockClassNames, useActiveHandler } from './useActiveHandler';
8
8
 
9
9
  export type FoldableBlocks = VNode[];
10
10
  export type Render = (_: VNode, isActive: boolean) => VNode;
11
+
11
12
  export interface FoldableProps {
12
13
  context: ContentPageContext;
13
14
  foldButtonLabel?: string;
@@ -17,11 +18,13 @@ export interface FoldableProps {
17
18
  foldButtonDataTheme?: ColorPalette;
18
19
  isUnfolded?: boolean;
19
20
  render?: Render;
21
+ containerClasses?: string;
20
22
  }
21
23
 
22
24
  export interface RenderBlocksParams {
23
25
  blocksToHide: number;
24
26
  isActive: boolean;
27
+ containerClasses?: string;
25
28
  }
26
29
 
27
30
  export const Foldable = JSX<FoldableProps>(
@@ -33,6 +36,7 @@ export const Foldable = JSX<FoldableProps>(
33
36
  foldButtonLabel,
34
37
  foldButtonDataTheme,
35
38
  isUnfolded,
39
+ containerClasses,
36
40
  render = (_) => _,
37
41
  }) => {
38
42
  const blocksToHide = clamp(hiddenBlocksNum, 0, blocks.length);
@@ -44,7 +48,7 @@ export const Foldable = JSX<FoldableProps>(
44
48
 
45
49
  return blocks ? (
46
50
  <div>
47
- {renderBlocks(blocks, render, { blocksToHide, isActive })}
51
+ {renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses })}
48
52
  {hiddenBlocksNum ? (
49
53
  <button
50
54
  className={
@@ -55,7 +59,7 @@ export const Foldable = JSX<FoldableProps>(
55
59
  onClick={handleToggle}
56
60
  >
57
61
  <span className="pr-3">{isActive ? 'Скрыть' : foldButtonLabel}</span>
58
- <Icon name={icon} iconVersion="white" width="20" height="20" asSVG />
62
+ {icon && <Icon name={icon} iconVersion="white" width="20" height="20" asSVG />}
59
63
  </button>
60
64
  ) : null}
61
65
  </div>
@@ -66,7 +70,7 @@ export const Foldable = JSX<FoldableProps>(
66
70
  const renderBlocks = (
67
71
  blocks: FoldableBlocks,
68
72
  render: Render,
69
- { blocksToHide, isActive }: RenderBlocksParams,
73
+ { blocksToHide, isActive, containerClasses }: RenderBlocksParams,
70
74
  ) => {
71
75
  const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
72
76
  const hiddenBlocks = blocks.slice(-blocksToHide);
@@ -74,7 +78,7 @@ const renderBlocks = (
74
78
  return render(
75
79
  <div>
76
80
  {visibleBlocks}
77
- <div className={foldableBlockClassNames}>{hiddenBlocks}</div>
81
+ <div className={`${foldableBlockClassNames} ${containerClasses}`}>{hiddenBlocks}</div>
78
82
  </div>,
79
83
  isActive,
80
84
  );
@@ -8,6 +8,7 @@ export const Input = JSX<InputProps>(
8
8
  const validInputValue = e.target.validity.valid ? e.target.value : value;
9
9
  onChange(validInputValue);
10
10
  };
11
+
11
12
  return (
12
13
  <input
13
14
  className={className}
@@ -25,6 +25,7 @@ export const InputRange = JSX<InputRangeProps>(
25
25
  onChange(max);
26
26
  }
27
27
  };
28
+
28
29
  return (
29
30
  <div className={className}>
30
31
  <label className="block relative">
@@ -46,5 +46,6 @@ export const getListStyle = (version: ListItemVersion) => {
46
46
  tile: 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
47
47
  'tile-white': 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
48
48
  };
49
+
49
50
  return `${LIST_STYLE_CLASSES[version]} ${LIST_DOT_STYLE_MAP[version]} ${size[version]}`;
50
51
  };
@@ -66,5 +66,6 @@ export const Logo = JSX<Partial<LogoProps>>(
66
66
 
67
67
  const renderTitle = (children, bgColor, title) => {
68
68
  const text = children || title || 'Россельхозбанк';
69
+
69
70
  return <span className={`${TEXT_COLOR[bgColor]} font-medium ml-2.5`}>{text}</span>;
70
71
  };
@@ -4,6 +4,7 @@ import { Img } from '../Img/Img';
4
4
 
5
5
  export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
6
6
  const { term, setTerm } = context.useSearch();
7
+
7
8
  return (
8
9
  <form className={`relative ${className || ''}`}>
9
10
  <div className="absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none">
@@ -5,6 +5,7 @@ import { Img } from '../Img/Img';
5
5
 
6
6
  export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
7
7
  const { term, setTerm } = context.useSearch();
8
+
8
9
  return (
9
10
  <form className={`relative ${className || ''}`}>
10
11
  <div className="absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none">
@@ -5,6 +5,7 @@ import { Img } from './Img/Img';
5
5
 
6
6
  export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
7
7
  const { term, setTerm } = context.useSearch();
8
+
8
9
  return (
9
10
  <form className={`relative ${className || ''}`}>
10
11
  <div className="absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none">
@@ -20,5 +20,6 @@ export const getIndexParts = (
20
20
 
21
21
  const [start, end] = scrollPoints[index];
22
22
  const fraction = (scrollLeft - start) / (end - start);
23
+
23
24
  return { index, fraction };
24
25
  };
@@ -19,6 +19,7 @@ const tabDescriptionStyle = (isActive = false) =>
19
19
  const renderTab =
20
20
  (currentTabIndex: number, onTabClick: TabClickHandler) => (tab: Tab, index: number) => {
21
21
  const isActive = currentTabIndex === index;
22
+
22
23
  return (
23
24
  <div
24
25
  key={String(index)}
@@ -60,5 +60,6 @@ const getTextClasses = (bgColor: BgColorVersion, active = false, flat = false) =
60
60
  const nonActiveAtoms = `${
61
61
  flat ? 'text-primary-text' : 'text-secondary-text'
62
62
  } hover:text-primary-main`;
63
+
63
64
  return `${active ? 'text-primary-main' : nonActiveAtoms} ${TEXT_CLASSES}`;
64
65
  };