@redneckz/wildless-cms-uni-blocks 0.3.30 → 0.3.33

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 (716) hide show
  1. package/README.md +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +184 -129
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/dist/components/Accordion/Accordion.js +2 -6
  6. package/dist/components/Accordion/Accordion.js.map +1 -1
  7. package/dist/components/Accordion/AccordionContent.d.ts +3 -3
  8. package/dist/components/Accordion/AccordionItem.js +5 -12
  9. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  10. package/dist/components/Accordion/AccordionItem.mobile.js +7 -4
  11. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  12. package/dist/components/Accordion/AccordionItemInner.js +2 -2
  13. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  14. package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -3
  15. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  16. package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  18. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  19. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  20. package/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
  21. package/dist/components/ComparisonTable/HeaderCell.js +1 -2
  22. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  23. package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
  24. package/dist/components/ComparisonTable/HeaderCell.mobile.js +2 -3
  25. package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  26. package/dist/components/CreditCalculator/defaultTabs.js +3 -3
  27. package/dist/components/CreditCalculator/defaultTabs.js.map +1 -1
  28. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  29. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  30. package/dist/components/ExchangeRateTile/CurrentLocation.js +2 -2
  31. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  32. package/dist/components/Footer/Footer.mobile.js +2 -2
  33. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  34. package/dist/components/Footer/FooterContent.d.ts +2 -2
  35. package/dist/components/Footer/MediaButton.js +17 -5
  36. package/dist/components/Footer/MediaButton.js.map +1 -1
  37. package/dist/components/Footer/SocialMedia.js +1 -1
  38. package/dist/components/Footer/SocialMedia.js.map +1 -1
  39. package/dist/components/Gallery/Gallery.mobile.js +1 -2
  40. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  41. package/dist/components/Gallery/GalleryCardInner.js +1 -2
  42. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  43. package/dist/components/Header/Header.js +1 -1
  44. package/dist/components/Header/Header.js.map +1 -1
  45. package/dist/components/Header/HeaderBurger.js +3 -3
  46. package/dist/components/Header/HeaderBurger.js.map +1 -1
  47. package/dist/components/Header/HeaderContent.d.ts +3 -3
  48. package/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  49. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  50. package/dist/components/Header/HeaderTop.js +2 -2
  51. package/dist/components/Header/HeaderTop.js.map +1 -1
  52. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  53. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  54. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  55. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  56. package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
  57. package/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
  58. package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
  59. package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
  60. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  61. package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
  62. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  63. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  64. package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  65. package/dist/components/PictureText/PictureText.js +8 -5
  66. package/dist/components/PictureText/PictureText.js.map +1 -1
  67. package/dist/components/PictureText/PictureTextContent.d.ts +7 -0
  68. package/dist/components/ProductBlock/ProductBlock.js +2 -2
  69. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  70. package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
  71. package/dist/components/ProductBlock/ProductBlockInner.js +4 -4
  72. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  73. package/dist/components/ProductBlock/renderBenefit.js +2 -2
  74. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  75. package/dist/components/ProductBlock/renderBenefit.mobile.js +2 -2
  76. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  77. package/dist/components/ProductGallery/ProductGallery.js +2 -5
  78. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  79. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  80. package/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
  81. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  82. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
  83. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
  84. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  85. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
  86. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  87. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
  88. package/dist/components/Recommendation/Recommendation.js +2 -2
  89. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  90. package/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
  91. package/dist/components/Recommendation/RecommendationCard.js +3 -3
  92. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  93. package/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
  94. package/dist/components/StepsBlock/StepsBlock.js +10 -4
  95. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  96. package/dist/components/StepsBlock/StepsBlock.mobile.js +13 -6
  97. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  98. package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
  99. package/dist/components/TariffsTable/TableTileHeader.js +2 -2
  100. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  101. package/dist/components/TariffsTable/TariffsTableCell.js +1 -2
  102. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  103. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  104. package/dist/components/TariffsTable/TariffsTableRow.js +4 -4
  105. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  106. package/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
  107. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  108. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  109. package/dist/content-page-repository/transformContentPage.js +1 -1
  110. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  111. package/dist/model/Picture.d.ts +3 -0
  112. package/dist/model/SitemapProps.d.ts +2 -2
  113. package/dist/services/sitemap/SitemapProps.d.ts +2 -2
  114. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
  115. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +17 -0
  116. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
  117. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  118. package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  119. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  120. package/dist/ui-kit/Button/ButtonInner.js +2 -2
  121. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  122. package/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
  123. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  124. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  125. package/dist/ui-kit/Heading/Heading.js +1 -1
  126. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  127. package/dist/ui-kit/Icon/Icon.js +1 -1
  128. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  129. package/dist/ui-kit/Icon/IconProps.d.ts +11 -3
  130. package/dist/ui-kit/Img/Img.d.ts +4 -7
  131. package/dist/ui-kit/Img/Img.js +27 -9
  132. package/dist/ui-kit/Img/Img.js.map +1 -1
  133. package/dist/ui-kit/Img/Img.mobile.d.ts +4 -7
  134. package/dist/ui-kit/Img/Img.mobile.js +12 -3
  135. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  136. package/dist/ui-kit/Img/ImgProps.d.ts +6 -3
  137. package/dist/ui-kit/List/ListItem.js +2 -2
  138. package/dist/ui-kit/List/ListItem.js.map +1 -1
  139. package/dist/ui-kit/SearchBar/SearchBar.js +2 -2
  140. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  141. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
  142. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  143. package/dist/ui-kit/SearchBar.mobile.js +2 -2
  144. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  145. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  146. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  147. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  148. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  149. package/dist/ui-kit/Tabs/Tabs.js +2 -2
  150. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  151. package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
  152. package/lib/common.css +1 -1
  153. package/lib/components/Accordion/Accordion.js +2 -6
  154. package/lib/components/Accordion/Accordion.js.map +1 -1
  155. package/lib/components/Accordion/AccordionContent.d.ts +3 -3
  156. package/lib/components/Accordion/AccordionItem.js +5 -12
  157. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  158. package/lib/components/Accordion/AccordionItem.mobile.js +7 -4
  159. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  160. package/lib/components/Accordion/AccordionItemInner.js +2 -2
  161. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  162. package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -3
  163. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  164. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  165. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  166. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  167. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  168. package/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
  169. package/lib/components/ComparisonTable/HeaderCell.js +1 -2
  170. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  171. package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
  172. package/lib/components/ComparisonTable/HeaderCell.mobile.js +2 -3
  173. package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  174. package/lib/components/CreditCalculator/defaultTabs.js +3 -3
  175. package/lib/components/CreditCalculator/defaultTabs.js.map +1 -1
  176. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  177. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  178. package/lib/components/ExchangeRateTile/CurrentLocation.js +2 -2
  179. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  180. package/lib/components/Footer/Footer.mobile.js +2 -2
  181. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  182. package/lib/components/Footer/FooterContent.d.ts +2 -2
  183. package/lib/components/Footer/MediaButton.js +17 -5
  184. package/lib/components/Footer/MediaButton.js.map +1 -1
  185. package/lib/components/Footer/SocialMedia.js +1 -1
  186. package/lib/components/Footer/SocialMedia.js.map +1 -1
  187. package/lib/components/Gallery/Gallery.mobile.js +1 -2
  188. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  189. package/lib/components/Gallery/GalleryCardInner.js +1 -2
  190. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  191. package/lib/components/Header/Header.js +1 -1
  192. package/lib/components/Header/Header.js.map +1 -1
  193. package/lib/components/Header/HeaderBurger.js +3 -3
  194. package/lib/components/Header/HeaderBurger.js.map +1 -1
  195. package/lib/components/Header/HeaderContent.d.ts +3 -3
  196. package/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  197. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  198. package/lib/components/Header/HeaderTop.js +2 -2
  199. package/lib/components/Header/HeaderTop.js.map +1 -1
  200. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  201. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  202. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  203. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  204. package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
  205. package/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
  206. package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
  207. package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
  208. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  209. package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
  210. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  211. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  212. package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  213. package/lib/components/PictureText/PictureText.js +8 -5
  214. package/lib/components/PictureText/PictureText.js.map +1 -1
  215. package/lib/components/PictureText/PictureTextContent.d.ts +7 -0
  216. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  217. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  218. package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
  219. package/lib/components/ProductBlock/ProductBlockInner.js +4 -4
  220. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  221. package/lib/components/ProductBlock/renderBenefit.js +2 -2
  222. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  223. package/lib/components/ProductBlock/renderBenefit.mobile.js +2 -2
  224. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  225. package/lib/components/ProductGallery/ProductGallery.js +2 -5
  226. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  227. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  228. package/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
  229. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  230. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
  231. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
  232. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  233. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts +1 -0
  234. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
  235. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  236. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
  237. package/lib/components/Recommendation/Recommendation.js +2 -2
  238. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  239. package/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
  240. package/lib/components/Recommendation/RecommendationCard.js +3 -3
  241. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  242. package/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
  243. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
  244. package/lib/components/StepsBlock/StepsBlock.js +10 -4
  245. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  246. package/lib/components/StepsBlock/StepsBlock.mobile.js +13 -6
  247. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  248. package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
  249. package/lib/components/TariffsTable/TableTileHeader.js +2 -2
  250. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  251. package/lib/components/TariffsTable/TariffsTableCell.js +1 -2
  252. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  253. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  254. package/lib/components/TariffsTable/TariffsTableRow.js +4 -4
  255. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  256. package/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
  257. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  258. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  259. package/lib/content-page-repository/transformContentPage.js +1 -1
  260. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  261. package/lib/model/Picture.d.ts +3 -0
  262. package/lib/model/SitemapProps.d.ts +2 -2
  263. package/lib/services/sitemap/SitemapProps.d.ts +2 -2
  264. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
  265. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +15 -0
  266. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
  267. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  268. package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  269. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  270. package/lib/ui-kit/Button/ButtonInner.js +2 -2
  271. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  272. package/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
  273. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  274. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  275. package/lib/ui-kit/Heading/Heading.js +1 -1
  276. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  277. package/lib/ui-kit/Icon/Icon.js +1 -1
  278. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  279. package/lib/ui-kit/Icon/IconProps.d.ts +11 -3
  280. package/lib/ui-kit/Img/Img.d.ts +4 -7
  281. package/lib/ui-kit/Img/Img.js +26 -8
  282. package/lib/ui-kit/Img/Img.js.map +1 -1
  283. package/lib/ui-kit/Img/Img.mobile.d.ts +4 -7
  284. package/lib/ui-kit/Img/Img.mobile.js +11 -2
  285. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  286. package/lib/ui-kit/Img/ImgProps.d.ts +6 -3
  287. package/lib/ui-kit/List/ListItem.js +2 -2
  288. package/lib/ui-kit/List/ListItem.js.map +1 -1
  289. package/lib/ui-kit/SearchBar/SearchBar.js +2 -2
  290. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  291. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
  292. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  293. package/lib/ui-kit/SearchBar.mobile.js +2 -2
  294. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  295. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -0
  296. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  297. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  298. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +4 -1
  299. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  300. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  301. package/lib/ui-kit/Tabs/Tabs.js +2 -2
  302. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  303. package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
  304. package/mobile/bundle/bundle.umd.js +141 -217
  305. package/mobile/bundle/bundle.umd.min.js +1 -1
  306. package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -3
  307. package/mobile/dist/components/Accordion/AccordionItem.js +7 -4
  308. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  309. package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -3
  310. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  311. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  312. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  313. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  314. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  315. package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
  316. package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -3
  317. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  318. package/mobile/dist/components/CreditCalculator/defaultTabs.js +3 -3
  319. package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -1
  320. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  321. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  322. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +2 -2
  323. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  324. package/mobile/dist/components/Footer/Footer.js +2 -2
  325. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  326. package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
  327. package/mobile/dist/components/Footer/MediaButton.js +17 -5
  328. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  329. package/mobile/dist/components/Gallery/Gallery.js +1 -2
  330. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  331. package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -2
  332. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  333. package/mobile/dist/components/Header/HeaderBurger.js +3 -3
  334. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  335. package/mobile/dist/components/Header/HeaderContent.d.ts +3 -3
  336. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  337. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  338. package/mobile/dist/components/Header/HeaderTop.js +2 -2
  339. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  340. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  341. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  342. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
  343. package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
  344. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
  345. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
  346. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  347. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
  348. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  349. package/mobile/dist/components/PictureText/PictureText.js +8 -5
  350. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  351. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +7 -0
  352. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
  353. package/mobile/dist/components/ProductBlock/renderBenefit.js +2 -2
  354. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  355. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  356. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
  357. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  358. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
  359. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  360. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
  361. package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
  362. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  363. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
  364. package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -3
  365. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  366. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
  367. package/mobile/dist/components/StepsBlock/StepsBlock.js +13 -6
  368. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  369. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
  370. package/mobile/dist/components/TariffsTable/TableTileHeader.js +2 -2
  371. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  372. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -2
  373. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  374. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  375. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +4 -4
  376. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  377. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
  378. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  379. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  380. package/mobile/dist/content-page-repository/transformContentPage.js +1 -1
  381. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  382. package/mobile/dist/model/Picture.d.ts +3 -0
  383. package/mobile/dist/model/SitemapProps.d.ts +2 -2
  384. package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -2
  385. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
  386. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
  387. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
  388. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  389. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  390. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  391. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
  392. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  393. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
  394. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  395. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  396. package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
  397. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  398. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +11 -3
  399. package/mobile/dist/ui-kit/Img/Img.d.ts +4 -7
  400. package/mobile/dist/ui-kit/Img/Img.js +12 -3
  401. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  402. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +6 -3
  403. package/mobile/dist/ui-kit/List/ListItem.js +2 -2
  404. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  405. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -3
  406. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  407. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  408. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  409. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  410. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  411. package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -2
  412. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  413. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
  414. package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -3
  415. package/mobile/lib/components/Accordion/AccordionItem.js +7 -4
  416. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  417. package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -3
  418. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  419. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  420. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  421. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  422. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  423. package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
  424. package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -3
  425. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  426. package/mobile/lib/components/CreditCalculator/defaultTabs.js +3 -3
  427. package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -1
  428. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  429. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  430. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +2 -2
  431. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  432. package/mobile/lib/components/Footer/Footer.js +2 -2
  433. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  434. package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
  435. package/mobile/lib/components/Footer/MediaButton.js +17 -5
  436. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  437. package/mobile/lib/components/Gallery/Gallery.js +1 -2
  438. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  439. package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -2
  440. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  441. package/mobile/lib/components/Header/HeaderBurger.js +3 -3
  442. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  443. package/mobile/lib/components/Header/HeaderContent.d.ts +3 -3
  444. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  445. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  446. package/mobile/lib/components/Header/HeaderTop.js +2 -2
  447. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  448. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  449. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  450. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
  451. package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
  452. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
  453. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
  454. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  455. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
  456. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  457. package/mobile/lib/components/PictureText/PictureText.js +8 -5
  458. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  459. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +7 -0
  460. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
  461. package/mobile/lib/components/ProductBlock/renderBenefit.js +2 -2
  462. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  463. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  464. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
  465. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  466. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
  467. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  468. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
  469. package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
  470. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  471. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
  472. package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -3
  473. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  474. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
  475. package/mobile/lib/components/StepsBlock/StepsBlock.js +13 -6
  476. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  477. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
  478. package/mobile/lib/components/TariffsTable/TableTileHeader.js +2 -2
  479. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  480. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -2
  481. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  482. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  483. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -4
  484. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  485. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
  486. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  487. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  488. package/mobile/lib/content-page-repository/transformContentPage.js +1 -1
  489. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  490. package/mobile/lib/model/Picture.d.ts +3 -0
  491. package/mobile/lib/model/SitemapProps.d.ts +2 -2
  492. package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -2
  493. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
  494. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
  495. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
  496. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  497. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  498. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  499. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
  500. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  501. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
  502. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  503. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  504. package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
  505. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  506. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +11 -3
  507. package/mobile/lib/ui-kit/Img/Img.d.ts +4 -7
  508. package/mobile/lib/ui-kit/Img/Img.js +11 -2
  509. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  510. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +6 -3
  511. package/mobile/lib/ui-kit/List/ListItem.js +2 -2
  512. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  513. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -3
  514. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  515. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  516. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  517. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  518. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  519. package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -2
  520. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  521. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
  522. package/mobile/src/components/Accordion/Accordion.example.json +9 -0
  523. package/mobile/src/components/Accordion/AccordionContent.ts +4 -5
  524. package/mobile/src/components/Accordion/AccordionItem.tsx +33 -28
  525. package/mobile/src/components/Accordion/AccordionItemInner.tsx +8 -11
  526. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
  527. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
  528. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  529. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
  530. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +6 -8
  531. package/mobile/src/components/ContentPage/ContentPage.page.json +267 -82
  532. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
  533. package/mobile/src/components/CreditCalculator/defaultTabs.ts +3 -3
  534. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
  535. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  536. package/mobile/src/components/Footer/Footer.tsx +2 -2
  537. package/mobile/src/components/Footer/FooterContent.ts +2 -2
  538. package/mobile/src/components/Footer/MediaButton.tsx +22 -10
  539. package/mobile/src/components/Gallery/Gallery.tsx +2 -3
  540. package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -3
  541. package/mobile/src/components/Header/Header.example.json +3 -0
  542. package/mobile/src/components/Header/HeaderBurger.tsx +5 -5
  543. package/mobile/src/components/Header/HeaderContent.ts +3 -3
  544. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
  545. package/mobile/src/components/Header/HeaderTop.tsx +3 -3
  546. package/mobile/src/components/LinkDocs/LinkDocs.example.json +3 -1
  547. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  548. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +2 -2
  549. package/mobile/src/components/LinkDocs/LinkDocsList.tsx +2 -2
  550. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
  551. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
  552. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
  553. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -12
  554. package/mobile/src/components/PictureText/PictureText.example.json +8 -2
  555. package/mobile/src/components/PictureText/PictureText.tsx +37 -12
  556. package/mobile/src/components/PictureText/PictureTextContent.ts +7 -0
  557. package/mobile/src/components/ProductBlock/ProductBlock.example.json +11 -3
  558. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -3
  559. package/mobile/src/components/ProductBlock/renderBenefit.tsx +5 -5
  560. package/mobile/src/components/ProductGallery/ProductGallery.example.json +22 -1
  561. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +14 -4
  562. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
  563. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
  564. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
  565. package/mobile/src/components/Recommendation/Recommendation.example.json +18 -3
  566. package/mobile/src/components/Recommendation/Recommendation.tsx +6 -6
  567. package/mobile/src/components/Recommendation/RecommendationCard.tsx +21 -12
  568. package/mobile/src/components/Recommendation/RecommendationContent.ts +6 -4
  569. package/mobile/src/components/StepsBlock/StepsBlock.example.json +9 -3
  570. package/mobile/src/components/StepsBlock/StepsBlock.tsx +19 -9
  571. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -3
  572. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +2 -2
  573. package/mobile/src/components/TariffsTable/TariffsTable.example.json +12 -4
  574. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
  575. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  576. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
  577. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
  578. package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
  579. package/mobile/src/content-page-repository/transformContentPage.ts +1 -1
  580. package/mobile/src/model/Picture.ts +4 -0
  581. package/mobile/src/model/SitemapProps.ts +2 -2
  582. package/mobile/src/services/sitemap/SitemapProps.ts +2 -2
  583. package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -8
  584. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
  585. package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -3
  586. package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -2
  587. package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -2
  588. package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
  589. package/mobile/src/ui-kit/Icon/IconProps.ts +12 -3
  590. package/mobile/src/ui-kit/Img/Img.tsx +38 -22
  591. package/mobile/src/ui-kit/Img/ImgProps.ts +7 -4
  592. package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
  593. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -3
  594. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  595. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
  596. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
  597. package/mobile/src/ui-kit/Tabs/Tabs.tsx +2 -2
  598. package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -2
  599. package/package.json +2 -3
  600. package/src/components/Accordion/Accordion.example.json +9 -0
  601. package/src/components/Accordion/Accordion.fixture.mobile.tsx +3 -0
  602. package/src/components/Accordion/Accordion.fixture.tsx +2 -0
  603. package/src/components/Accordion/Accordion.tsx +4 -17
  604. package/src/components/Accordion/AccordionContent.ts +4 -5
  605. package/src/components/Accordion/AccordionItem.mobile.tsx +33 -28
  606. package/src/components/Accordion/AccordionItem.tsx +24 -50
  607. package/src/components/Accordion/AccordionItemInner.mobile.tsx +8 -11
  608. package/src/components/Accordion/AccordionItemInner.tsx +8 -10
  609. package/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
  610. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
  611. package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
  612. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  613. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +3 -3
  614. package/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
  615. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +6 -8
  616. package/src/components/ComparisonTable/HeaderCell.tsx +3 -5
  617. package/src/components/ContentPage/ContentPage.page.json +267 -82
  618. package/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
  619. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +3 -3
  620. package/src/components/CreditCalculator/defaultTabs.ts +3 -3
  621. package/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
  622. package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  623. package/src/components/Footer/Footer.mobile.tsx +2 -2
  624. package/src/components/Footer/FooterContent.ts +2 -2
  625. package/src/components/Footer/MediaButton.tsx +22 -10
  626. package/src/components/Footer/SocialMedia.tsx +1 -1
  627. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  628. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  629. package/src/components/Gallery/Gallery.mobile.tsx +2 -3
  630. package/src/components/Gallery/GalleryCardInner.tsx +2 -3
  631. package/src/components/Header/Header.example.json +3 -0
  632. package/src/components/Header/Header.tsx +8 -1
  633. package/src/components/Header/HeaderBurger.tsx +5 -5
  634. package/src/components/Header/HeaderContent.ts +3 -3
  635. package/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
  636. package/src/components/Header/HeaderTop.tsx +3 -3
  637. package/src/components/LinkDocs/LinkDocs.example.json +3 -1
  638. package/src/components/LinkDocs/LinkDocs.fixture.tsx +7 -2
  639. package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
  640. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  641. package/src/components/LinkDocs/LinkDocsContent.ts +2 -2
  642. package/src/components/LinkDocs/LinkDocsList.tsx +2 -2
  643. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
  644. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
  645. package/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
  646. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -2
  647. package/src/components/MobileAppTile/MobileAppTile.tsx +3 -3
  648. package/src/components/OtherProducts/OtherProducts.fixture.tsx +61 -6
  649. package/src/components/OtherProducts/OtherProductsContent.ts +3 -12
  650. package/src/components/PictureText/PictureText.example.json +8 -2
  651. package/src/components/PictureText/PictureText.fixture.tsx +2 -2
  652. package/src/components/PictureText/PictureText.tsx +37 -12
  653. package/src/components/PictureText/PictureTextContent.ts +7 -0
  654. package/src/components/ProductBlock/ProductBlock.example.json +11 -3
  655. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
  656. package/src/components/ProductBlock/ProductBlock.fixture.tsx +7 -7
  657. package/src/components/ProductBlock/ProductBlock.tsx +2 -4
  658. package/src/components/ProductBlock/ProductBlockContent.ts +4 -3
  659. package/src/components/ProductBlock/ProductBlockInner.tsx +8 -11
  660. package/src/components/ProductBlock/renderBenefit.mobile.tsx +5 -5
  661. package/src/components/ProductBlock/renderBenefit.tsx +5 -5
  662. package/src/components/ProductGallery/ProductGallery.example.json +22 -1
  663. package/src/components/ProductGallery/ProductGallery.fixture.tsx +106 -104
  664. package/src/components/ProductGallery/ProductGallery.tsx +4 -17
  665. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +14 -4
  666. package/src/components/ProductGallery/ProductGalleryBlock.tsx +15 -4
  667. package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
  668. package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +74 -2
  669. package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
  670. package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
  671. package/src/components/Recommendation/Recommendation.example.json +18 -3
  672. package/src/components/Recommendation/Recommendation.fixture.tsx +15 -5
  673. package/src/components/Recommendation/Recommendation.tsx +6 -6
  674. package/src/components/Recommendation/RecommendationCard.tsx +21 -12
  675. package/src/components/Recommendation/RecommendationContent.ts +6 -4
  676. package/src/components/StepsBlock/StepsBlock.example.json +9 -3
  677. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +14 -14
  678. package/src/components/StepsBlock/StepsBlock.fixture.tsx +14 -0
  679. package/src/components/StepsBlock/StepsBlock.mobile.tsx +19 -9
  680. package/src/components/StepsBlock/StepsBlock.tsx +15 -8
  681. package/src/components/StepsBlock/StepsBlockContent.ts +4 -3
  682. package/src/components/TariffsTable/TableTileHeader.tsx +2 -2
  683. package/src/components/TariffsTable/TariffsTable.example.json +12 -4
  684. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +6 -9
  685. package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -5
  686. package/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
  687. package/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  688. package/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
  689. package/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
  690. package/src/components/TextBlock/TextBlockContent.ts +1 -1
  691. package/src/content-page-repository/transformContentPage.ts +1 -1
  692. package/src/model/Picture.ts +4 -0
  693. package/src/model/SitemapProps.ts +2 -2
  694. package/src/services/sitemap/SitemapProps.ts +2 -2
  695. package/src/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +15 -0
  696. package/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
  697. package/src/ui-kit/Button/Button.fixture.tsx +5 -5
  698. package/src/ui-kit/Button/ButtonInner.tsx +3 -3
  699. package/src/ui-kit/Button/ButtonProps.ts +2 -2
  700. package/src/ui-kit/Button/ButtonSection.tsx +2 -2
  701. package/src/ui-kit/Heading/Heading.tsx +1 -3
  702. package/src/ui-kit/Icon/Icon.tsx +1 -1
  703. package/src/ui-kit/Icon/IconProps.ts +12 -3
  704. package/src/ui-kit/Img/Img.mobile.tsx +38 -22
  705. package/src/ui-kit/Img/Img.tsx +50 -23
  706. package/src/ui-kit/Img/ImgProps.ts +7 -4
  707. package/src/ui-kit/List/ListItem.tsx +2 -2
  708. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -3
  709. package/src/ui-kit/SearchBar/SearchBar.tsx +2 -2
  710. package/src/ui-kit/SearchBar.mobile.tsx +2 -2
  711. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -6
  712. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  713. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
  714. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
  715. package/src/ui-kit/Tabs/Tabs.tsx +2 -2
  716. package/src/ui-kit/Tabs/TabsProps.ts +2 -2
@@ -1,7 +1,7 @@
1
1
  import { context } from '../../setup-fixture';
2
-
3
- import type { Picture } from '../../model/Picture';
4
2
  import { ProductGallery } from './ProductGallery';
3
+ import type { Picture } from '../../model/Picture';
4
+ import type { ProductSlide } from './ProductGalleryContent';
5
5
 
6
6
  const moneyImage: Picture = {
7
7
  src: 'money-1.png',
@@ -31,111 +31,113 @@ const creditCard: Picture = {
31
31
  },
32
32
  };
33
33
 
34
+ const slides: ProductSlide[] = [
35
+ {
36
+ nav: {
37
+ title: 'Деньги на любые цели',
38
+ description: 'Ставка от 12,5% годовых на срок до 5 лет',
39
+ },
40
+ productBlock: {
41
+ title: 'Ставка от 12,5% годовых на срок до 5 лет!',
42
+ headingType: 'h2',
43
+ items: [
44
+ 'Потребительский кредит по специальной процентной ставке',
45
+ 'Получите деньги без залога и поручительства',
46
+ 'Кредитный лимит до 5 млн рублей',
47
+ ],
48
+ buttons: [
49
+ {
50
+ href: 'https://rshb.ru',
51
+ text: 'Подробнее',
52
+ target: '_blank',
53
+ version: 'primary',
54
+ },
55
+ ],
56
+ version: 'primary',
57
+ image: moneyImage,
58
+ },
59
+ },
60
+ {
61
+ nav: {
62
+ title: 'Для людей в возрасте',
63
+ description: 'Ставка от 12,5% годовых на срок до 3 лет',
64
+ },
65
+ productBlock: {
66
+ title: 'Ставка от 12,5% годовых на срок до 3 лет!',
67
+ headingType: 'h2',
68
+ items: [
69
+ 'Потребительский кредит по специальной процентной ставке',
70
+ 'Получите деньги без залога и поручительства',
71
+ 'Кредитный лимит до 5 млн рублей',
72
+ ],
73
+ buttons: [
74
+ {
75
+ href: 'https://rshb.ru',
76
+ text: 'Подробнее',
77
+ target: '_blank',
78
+ version: 'primary',
79
+ },
80
+ ],
81
+ version: 'secondary',
82
+ image: worker,
83
+ },
84
+ },
85
+ {
86
+ nav: {
87
+ title: 'Выгодно покупать',
88
+ description: 'Дополнительные бонусные баллы за покупки',
89
+ },
90
+ productBlock: {
91
+ title: 'Дополнительные бонусные баллы за покупки!',
92
+ headingType: 'h2',
93
+ items: [
94
+ 'Потребительский кредит по специальной процентной ставке',
95
+ 'Получите деньги без залога и поручительства',
96
+ 'Кредитный лимит до 5 млн рублей',
97
+ ],
98
+ buttons: [
99
+ {
100
+ href: 'https://rshb.ru',
101
+ text: 'Подробнее',
102
+ target: '_blank',
103
+ version: 'primary',
104
+ },
105
+ ],
106
+ version: 'primary',
107
+ image: creditCard,
108
+ },
109
+ },
110
+ {
111
+ nav: {
112
+ title: 'Карты Unionpay',
113
+ description: 'Кэшбэк до 20% у партнеров',
114
+ },
115
+ productBlock: {
116
+ title: 'Карты Unionpay',
117
+ headingType: 'h2',
118
+ items: [
119
+ 'Потребительский кредит по специальной процентной ставке',
120
+ 'Получите деньги без залога и поручительства',
121
+ 'Кредитный лимит до 5 млн рублей',
122
+ ],
123
+ buttons: [
124
+ {
125
+ href: 'https://rshb.ru',
126
+ text: 'Подробнее',
127
+ target: '_blank',
128
+ version: 'primary',
129
+ },
130
+ ],
131
+ version: 'secondary',
132
+ image: creditCard,
133
+ },
134
+ },
135
+ ];
136
+
34
137
  export default {
35
138
  default: (
36
139
  <div className="container grid grid-cols-12">
37
- <ProductGallery
38
- className="col-span-12"
39
- context={context}
40
- slides={[
41
- {
42
- nav: {
43
- title: 'Деньги на любые цели',
44
- description: 'Ставка от 12,5% годовых на срок до 5 лет',
45
- },
46
- productBlock: {
47
- title: 'Ставка от 12,5% годовых на срок до 5 лет!',
48
- headingType: 'h2',
49
- items: [
50
- 'Потребительский кредит по специальной процентной ставке',
51
- 'Получите деньги без залога и поручительства',
52
- 'Кредитный лимит до 5 млн рублей',
53
- ],
54
- buttons: [
55
- {
56
- href: 'https://rshb.ru',
57
- text: 'Подробнее',
58
- target: '_blank',
59
- version: 'primary',
60
- },
61
- ],
62
- image: moneyImage,
63
- },
64
- },
65
- {
66
- nav: {
67
- title: 'Для людей в возрасте',
68
- description: 'Ставка от 12,5% годовых на срок до 3 лет',
69
- },
70
- productBlock: {
71
- title: 'Ставка от 12,5% годовых на срок до 3 лет!',
72
- headingType: 'h2',
73
- items: [
74
- 'Потребительский кредит по специальной процентной ставке',
75
- 'Получите деньги без залога и поручительства',
76
- 'Кредитный лимит до 5 млн рублей',
77
- ],
78
- buttons: [
79
- {
80
- href: 'https://rshb.ru',
81
- text: 'Подробнее',
82
- target: '_blank',
83
- version: 'primary',
84
- },
85
- ],
86
- image: worker,
87
- },
88
- },
89
- {
90
- nav: {
91
- title: 'Выгодно покупать',
92
- description: 'Дополнительные бонусные баллы за покупки',
93
- },
94
- productBlock: {
95
- title: 'Дополнительные бонусные баллы за покупки!',
96
- headingType: 'h2',
97
- items: [
98
- 'Потребительский кредит по специальной процентной ставке',
99
- 'Получите деньги без залога и поручительства',
100
- 'Кредитный лимит до 5 млн рублей',
101
- ],
102
- buttons: [
103
- {
104
- href: 'https://rshb.ru',
105
- text: 'Подробнее',
106
- target: '_blank',
107
- version: 'primary',
108
- },
109
- ],
110
- image: creditCard,
111
- },
112
- },
113
- {
114
- nav: {
115
- title: 'Карты Unionpay',
116
- description: 'Кэшбэк до 20% у партнеров',
117
- },
118
- productBlock: {
119
- title: 'Карты Unionpay',
120
- headingType: 'h2',
121
- items: [
122
- 'Потребительский кредит по специальной процентной ставке',
123
- 'Получите деньги без залога и поручительства',
124
- 'Кредитный лимит до 5 млн рублей',
125
- ],
126
- buttons: [
127
- {
128
- href: 'https://rshb.ru',
129
- text: 'Подробнее',
130
- target: '_blank',
131
- version: 'primary',
132
- },
133
- ],
134
- image: creditCard,
135
- },
136
- },
137
- ]}
138
- />
140
+ <ProductGallery className="col-span-12" context={context} slides={slides} />
139
141
  </div>
140
142
  ),
141
143
  };
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { ProductGalleryBlock } from './ProductGalleryBlock';
2
3
  import type { UniBlockProps } from '../../types';
3
- import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
4
- import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
5
4
  import type { ProductGalleryContent } from './ProductGalleryContent';
6
5
 
7
6
  export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
@@ -22,7 +21,9 @@ export const ProductGallery = JSX<ProductGalleryProps>(
22
21
  style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
23
22
  role="list"
24
23
  >
25
- {galleryBlocks.map((_, i) => renderProductBlock(_, i, context))}
24
+ {galleryBlocks.map((_, i) => (
25
+ <ProductGalleryBlock key={String(i)} context={context} block={_} />
26
+ ))}
26
27
  </div>
27
28
 
28
29
  <div className="flex">
@@ -41,20 +42,6 @@ export const ProductGallery = JSX<ProductGalleryProps>(
41
42
  },
42
43
  );
43
44
 
44
- function renderProductBlock(block: ProductBlockInnerContent, i: number, context) {
45
- return (
46
- <section key={String(i)} className="flex grow-0 shrink-0 basis-full" role="listitem">
47
- <div className="p-10 flex grow">
48
- <ProductBlockInner
49
- className="pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]"
50
- context={context}
51
- {...block}
52
- />
53
- </div>
54
- </section>
55
- );
56
- }
57
-
58
45
  function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
59
46
  const isActiveBtn = i === activeSlideIndex;
60
47
  const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
@@ -1,8 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../types';
3
2
  import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
4
- import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
5
3
  import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
4
+ import type { BlockVersion } from '../../model/BlockVersion';
5
+ import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
6
+ import type { UniBlockProps } from '../../types';
7
+
8
+ const productGalleryStyleMap: Record<BlockVersion, string> = {
9
+ primary: 'bg-white text-primary-text',
10
+ secondary: 'bg-primary-main text-white',
11
+ };
6
12
 
7
13
  export interface ProductGalleryBlockProps extends UniBlockProps {
8
14
  headingType?: HeadingType;
@@ -10,9 +16,13 @@ export interface ProductGalleryBlockProps extends UniBlockProps {
10
16
  }
11
17
 
12
18
  export const ProductGalleryBlock = JSX<ProductGalleryBlockProps>(
13
- ({ block, headingType, context }) => {
19
+ ({ block, headingType, context, className = '' }) => {
20
+ const version = block?.version ?? 'primary';
21
+
14
22
  return (
15
- <section className="flex grow-0 shrink-0 basis-full px-4 pt-6">
23
+ <section
24
+ className={`flex grow-0 shrink-0 basis-full px-4 pt-6 ${productGalleryStyleMap[version]} ${className}`}
25
+ >
16
26
  <div className="flex grow">
17
27
  <ProductBlockInner context={context} headingType={headingType || 'h2'} {...block} />
18
28
  </div>
@@ -1,8 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../types';
3
2
  import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
4
- import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
5
3
  import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
4
+ import type { BlockVersion } from '../../model/BlockVersion';
5
+ import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
6
+ import type { UniBlockProps } from '../../types';
7
+
8
+ const productGalleryStyleMap: Record<BlockVersion, string> = {
9
+ primary: 'bg-white text-primary-text',
10
+ secondary: 'bg-primary-main text-white',
11
+ };
6
12
 
7
13
  export interface ProductGalleryBlockProps extends UniBlockProps {
8
14
  headingType?: HeadingType;
@@ -10,9 +16,14 @@ export interface ProductGalleryBlockProps extends UniBlockProps {
10
16
  }
11
17
 
12
18
  export const ProductGalleryBlock = JSX<ProductGalleryBlockProps>(
13
- ({ block, headingType, context }) => {
19
+ ({ block, headingType, context, className = '' }) => {
20
+ const version = block?.version ?? 'primary';
21
+
14
22
  return (
15
- <section className="flex grow-0 shrink-0 basis-full" role="listitem">
23
+ <section
24
+ className={`flex grow-0 shrink-0 basis-full ${productGalleryStyleMap[version]} ${className}`}
25
+ role="listitem"
26
+ >
16
27
  <div className="p-10 flex grow">
17
28
  <ProductBlockInner
18
29
  className="pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]"
@@ -10,7 +10,8 @@
10
10
  "image": {
11
11
  "format": "webp",
12
12
  "size": {
13
- "width": 280
13
+ "width": 608,
14
+ "height": 299
14
15
  }
15
16
  },
16
17
  "version": "primary",
@@ -38,6 +38,15 @@ const items = [
38
38
  'Кредитный лимит до 5 млн рублей',
39
39
  ];
40
40
  const buttons: ButtonWithIconProps[] = [
41
+ {
42
+ href: 'https://rshb.ru',
43
+ text: 'Подробнее',
44
+ target: '_blank',
45
+ version: 'primary',
46
+ },
47
+ ];
48
+
49
+ const buttonsSecondary: ButtonWithIconProps[] = [
41
50
  {
42
51
  href: 'https://rshb.ru',
43
52
  text: 'Подробнее',
@@ -60,12 +69,11 @@ export default {
60
69
  },
61
70
  productBlock: {
62
71
  title: 'Кредит по одному документу',
63
- // description: 'Кредит наличными без залога и поручительства, только по паспорту',
72
+ description: 'Ставка от 5,5% годовых',
64
73
  headingType: 'h2',
65
74
  items,
66
75
  buttons,
67
76
  image: percentImage,
68
- backgroundText: '3,6',
69
77
  },
70
78
  },
71
79
  {
@@ -111,4 +119,68 @@ export default {
111
119
  />
112
120
  </div>
113
121
  ),
122
+ primary: (
123
+ <div className="container grid grid-cols-12">
124
+ <ProductGalleryGreen
125
+ className="col-span-12"
126
+ context={context}
127
+ version={'secondary'}
128
+ slides={[
129
+ {
130
+ nav: {
131
+ title: 'Кредит по одному документу',
132
+ description: 'Ставка от 5,5% годовых',
133
+ },
134
+ productBlock: {
135
+ title: 'Кредит по одному документу',
136
+ description: 'Кредит наличными без залога и поручительства, только по паспорту',
137
+ headingType: 'h2',
138
+ items,
139
+ buttons: buttonsSecondary,
140
+ image: percentImage,
141
+ },
142
+ },
143
+ {
144
+ nav: {
145
+ title: 'Для людей в возрасте',
146
+ description: 'Ставка до 7% годовых',
147
+ },
148
+ productBlock: {
149
+ title: 'Ставка от 12,5% годовых на срок до 3 лет!',
150
+ headingType: 'h2',
151
+ items,
152
+ buttons: buttonsSecondary,
153
+ image: worker,
154
+ },
155
+ },
156
+ {
157
+ nav: {
158
+ title: 'Выгодно покупать',
159
+ description: 'Ставка от 5% годовых',
160
+ },
161
+ productBlock: {
162
+ title: 'Дополнительные бонусные баллы за покупки!',
163
+ headingType: 'h2',
164
+ items,
165
+ buttons: buttonsSecondary,
166
+ image: creditCard,
167
+ },
168
+ },
169
+ {
170
+ nav: {
171
+ title: 'Карты Unionpay',
172
+ description: '120 дней льготный период',
173
+ },
174
+ productBlock: {
175
+ title: 'Карты Unionpay',
176
+ headingType: 'h2',
177
+ items,
178
+ buttons: buttonsSecondary,
179
+ image: creditCard,
180
+ },
181
+ },
182
+ ]}
183
+ />
184
+ </div>
185
+ ),
114
186
  };
@@ -1,38 +1,61 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import { Icon } from '../../ui-kit/Icon/Icon';
3
+ import type { BlockVersion } from '../../model/BlockVersion';
4
4
  import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
5
5
  import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
6
6
  import type { ProductGalleryGreenContent } from './ProductGalleryGreenContent';
7
7
 
8
8
  export interface ProductGalleryProps extends ProductGalleryGreenContent, UniBlockProps {}
9
9
 
10
+ type StyleType = {
11
+ title: string;
12
+ text: string;
13
+ };
14
+
15
+ const productGalleryGreenStyleMap: Record<BlockVersion, string> = {
16
+ primary: 'bg-white text-primary-text',
17
+ secondary: 'bg-primary-main text-white',
18
+ };
19
+
20
+ const productBlockStyleMap: Record<BlockVersion, StyleType> = {
21
+ primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
22
+ secondary: { title: 'text-white', text: 'text-white/80' },
23
+ };
24
+
25
+ const productSlideStyleMap: Record<BlockVersion, string> = {
26
+ primary: 'bg-white text-primary-text',
27
+ secondary: 'bg-primary-main text-white',
28
+ };
29
+
10
30
  export const ProductGalleryGreen = JSX<ProductGalleryProps>(
11
- ({ className = '', context, slides = [], anchor = null }) => {
31
+ ({ className = '', context, slides = [], version = 'primary', duration = 0, anchor = null }) => {
12
32
  const galleryNav = slides.map((s) => s.nav);
13
33
  const galleryBlocks = slides.map((s) => s.productBlock);
14
34
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
15
35
 
16
36
  return (
17
37
  <section
18
- className={`box-border pt-[70px] relative font-sans overflow-hidden bg-primary-main w-100 ${className}`}
19
38
  id={anchor}
39
+ className={`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
40
+ ${productGalleryGreenStyleMap[version]}`}
20
41
  >
21
42
  <div
22
43
  className="flex duration-1000 pb-14"
23
44
  style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
24
45
  role="list"
25
46
  >
26
- {galleryBlocks.map((_, i) => renderProductBlock(_, i, context))}
47
+ {galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context))}
27
48
  </div>
28
49
 
29
- <div className="flex items-center absolute bottom-6 left-0 right-0 px-9 box-border">
50
+ <div className="flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border">
30
51
  {galleryNav.map((slide, i) =>
31
52
  renderNavButton({
32
53
  slide,
33
54
  i,
34
55
  activeSlideIndex,
35
56
  onClick: () => setActiveSlideIndex(i),
57
+ version,
58
+ duration,
36
59
  }),
37
60
  )}
38
61
  </div>
@@ -42,47 +65,43 @@ export const ProductGalleryGreen = JSX<ProductGalleryProps>(
42
65
  );
43
66
 
44
67
  function renderProductBlock(block: ProductBlockInnerContent, i: number, context) {
68
+ const { version } = block;
69
+ const additionalClass = version ? productBlockStyleMap[version].title : '';
70
+
45
71
  return (
46
72
  <section
47
73
  key={String(i)}
48
- className="box-border relative flex grow-0 shrink-0 basis-full px-9"
74
+ className="box-border relative flex grow-0 shrink-0 basis-full"
49
75
  role="listitem"
50
76
  >
51
77
  <div className="flex grow">
52
- {block.backgroundText ? (
53
- <div className="absolute text-[454px] font-bold text-white tracking-[-10px] leading-[299px] opacity-[.1] right-12 top-20 z-0">
54
- {block.backgroundText}
55
- </div>
56
- ) : null}
57
78
  <ProductBlockInner
58
- className="pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem] z-[1]"
79
+ className={`pl-[50px] pr-2 z-[1] ${additionalClass}`}
59
80
  context={context}
60
81
  textBlockClassName="mb-[154px]"
61
- version="secondary"
62
82
  {...block}
63
83
  />
64
- <Icon
65
- className="absolute right-[460px] top-[200px] z-0 mb-4"
66
- name="ArrowsRewindRight"
67
- width="230"
68
- height="187"
69
- />
70
84
  </div>
71
85
  </section>
72
86
  );
73
87
  }
74
88
 
75
- function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
89
+ function renderNavButton({ slide, i, activeSlideIndex, onClick, version, duration }) {
76
90
  const isActiveBtn = i === activeSlideIndex;
91
+
77
92
  const btnClassName = isActiveBtn
78
- ? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0'
79
- : 'bg-white/10 min-w-[277px] px-0 pt-4 pb-[23px] hover:pt-[21px] hover:pb-7 ease-in duration-300';
93
+ ? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none'
94
+ : `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300
95
+ ${productSlideStyleMap[version]}`;
80
96
  const btnTitleClassName = isActiveBtn
81
- ? 'text-[18px] text-primary-text pb-[10px]'
82
- : 'text-m-base text-white pb-[3px]';
97
+ ? 'text-primary-text text-title-2xs'
98
+ : `text-base ${productBlockStyleMap[version].title}`;
83
99
  const btnDescClassName = isActiveBtn
84
- ? 'text-[18px] text-secondary-text'
85
- : 'text-m-base text-white';
100
+ ? 'text-secondary-text text-m-title-xs mt-2.5'
101
+ : `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
102
+
103
+ const additionalBorder = version === 'secondary' ? 'border-white/50' : '';
104
+ const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
86
105
 
87
106
  return (
88
107
  <button
@@ -90,14 +109,18 @@ function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
90
109
  key={String(i)}
91
110
  onClick={onClick}
92
111
  aria-label={slide?.title}
93
- className={`box-border font-sans group relative overflow-hidden border-white/50 border-[1px] cursor-pointer text-left mb-6a mx-1 grow basis-0 backdrop-blur-sm
94
- ${btnClassName}
112
+ className={`box-border font-sans group relative overflow-hidden border-[1px] cursor-pointer text-left mx-1 grow basis-0 backdrop-blur-sm
113
+ ${btnClassName} ${additionalBorder}
95
114
  `}
96
115
  >
97
116
  <div className="border-0 px-6">
98
117
  <div className={`font-medium ${btnTitleClassName}`}>{slide?.title}</div>
99
118
  <div className={`text-secondary-text ${btnDescClassName}`}>{slide.description}</div>
100
119
  </div>
120
+ <div
121
+ className={`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`}
122
+ style={{ animationDuration: `${duration}s`, animationFillMode: 'forwards' }}
123
+ ></div>
101
124
  </button>
102
125
  );
103
126
  }
@@ -1,4 +1,5 @@
1
1
  import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
2
3
 
3
4
  /** @title Кнопка под слайдом */
4
5
  interface ProductGalleryNav {
@@ -29,4 +30,5 @@ export interface ProductGalleryGreenContent {
29
30
  duration?: number;
30
31
  /** @title Слайды */
31
32
  slides?: ProductSlide[];
33
+ version?: BlockVersion;
32
34
  }
@@ -10,7 +10,12 @@
10
10
  }
11
11
  },
12
12
  "title": "Заголовок 1",
13
- "description": "Описание 1"
13
+ "description": "Описание 1",
14
+ "socialMedia": [
15
+ { "href": "https://t.me" },
16
+ { "href": "https://vk.com" },
17
+ { "href": "https://ok.ru" }
18
+ ]
14
19
  },
15
20
  {
16
21
  "image": {
@@ -21,7 +26,12 @@
21
26
  }
22
27
  },
23
28
  "title": "Заголовок 2",
24
- "description": "Описание 2"
29
+ "description": "Описание 2",
30
+ "socialMedia": [
31
+ { "href": "https://t.me" },
32
+ { "href": "https://vk.com" },
33
+ { "href": "https://ok.ru" }
34
+ ]
25
35
  },
26
36
  {
27
37
  "image": {
@@ -32,7 +42,12 @@
32
42
  }
33
43
  },
34
44
  "title": "Заголовок 3",
35
- "description": "Описание 3"
45
+ "description": "Описание 3",
46
+ "socialMedia": [
47
+ { "href": "https://t.me" },
48
+ { "href": "https://vk.com" },
49
+ { "href": "https://ok.ru" }
50
+ ]
36
51
  }
37
52
  ]
38
53
  }