@redneckz/wildless-cms-uni-blocks 0.2.116 → 0.3.0

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 (1126) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +350 -285
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/Accordion.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/AccordionBlocks.d.ts +4 -0
  9. package/dist/components/Accordion/AccordionBlocks.js +8 -0
  10. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  11. package/dist/components/Accordion/AccordionContent.d.ts +30 -18
  12. package/dist/components/Accordion/AccordionItem.js +1 -1
  13. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  14. package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
  15. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  16. package/dist/components/BaseTile/BaseTile.js +2 -5
  17. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  18. package/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
  19. package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
  20. package/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
  21. package/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
  22. package/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
  23. package/dist/components/BaseTile/getTileMinHeight.js +17 -0
  24. package/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
  25. package/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
  26. package/dist/components/BaseTile/getTileRightPadding.js +17 -0
  27. package/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
  28. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  29. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  30. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  31. package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  32. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  33. package/dist/components/ComparisonTable/HeaderCell.js +2 -2
  34. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  35. package/dist/components/ContentPage/ContentPage.js +2 -4
  36. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  37. package/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  38. package/dist/components/ContentPage/isBlockInRegistry.js +7 -0
  39. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
  40. package/dist/components/ContentPage/normalizeBlock.d.ts +8 -0
  41. package/dist/components/ContentPage/normalizeBlock.js +9 -0
  42. package/dist/components/ContentPage/normalizeBlock.js.map +1 -0
  43. package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
  44. package/dist/components/ContentPage/normalizeBlock.mobile.js +8 -0
  45. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
  46. package/dist/components/ContentPage/normalizePage.d.ts +2 -0
  47. package/dist/components/ContentPage/normalizePage.js +25 -0
  48. package/dist/components/ContentPage/normalizePage.js.map +1 -0
  49. package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -0
  50. package/{mobile/dist/components/ContentPage/toMobilePage.js → dist/components/ContentPage/normalizePage.mobile.js} +10 -17
  51. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -0
  52. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  53. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  54. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  55. package/dist/components/Gallery/Gallery.mobile.js +18 -7
  56. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  57. package/dist/components/Gallery/GalleryCardInner.js +2 -4
  58. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  59. package/dist/components/Gallery/GalleryContainer.js +4 -5
  60. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  61. package/dist/components/Gallery/GalleryContent.d.ts +8 -3
  62. package/dist/components/Gallery/GalleryInner.js +1 -1
  63. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  64. package/dist/components/Gallery/constants.js +2 -2
  65. package/dist/components/Gallery/constants.js.map +1 -1
  66. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  67. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  68. package/dist/components/Headline/Headline.js +1 -1
  69. package/dist/components/Headline/Headline.js.map +1 -1
  70. package/dist/components/Headline/Headline.mobile.js +2 -2
  71. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  72. package/dist/components/Headline/HeadlineContent.d.ts +6 -6
  73. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  74. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  75. package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
  76. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  77. package/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
  78. package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  79. package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  80. package/dist/components/MobileAppTile/MobileAppTile.js +8 -3
  81. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  82. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  83. package/dist/components/PictureText/PictureText.js +4 -4
  84. package/dist/components/PictureText/PictureText.js.map +1 -1
  85. package/dist/components/PictureText/PictureTextContent.d.ts +4 -2
  86. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  87. package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  88. package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  89. package/dist/components/ProductBlock/ProductBlockInner.js +7 -3
  90. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  91. package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
  92. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
  93. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  94. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  95. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  96. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  97. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  98. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  99. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  100. package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  101. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  102. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
  103. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  104. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  105. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  106. package/dist/components/ProductTile/ProductTile.js +14 -4
  107. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  108. package/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
  109. package/dist/components/PromoTile/PromoTile.js +12 -3
  110. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  111. package/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
  112. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  113. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  114. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  115. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  116. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  117. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  118. package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  119. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  120. package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  121. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  122. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  123. package/dist/components/TextBlock/TextBlock.js +1 -1
  124. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  125. package/dist/components/TextBlock/TextBlock.mobile.js +4 -7
  126. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  127. package/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
  128. package/dist/components/Tile/Tile.js +10 -27
  129. package/dist/components/Tile/Tile.js.map +1 -1
  130. package/dist/components/Tile/TileContent.d.ts +9 -2
  131. package/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
  132. package/dist/content-page-repository/ContentPageRepository.js +0 -10
  133. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  134. package/dist/icons/IconName.d.ts +3 -2
  135. package/dist/icons/IconName.js +1 -0
  136. package/dist/icons/IconName.js.map +1 -1
  137. package/dist/index.d.ts +1 -1
  138. package/dist/index.js +3 -3
  139. package/dist/index.js.map +1 -1
  140. package/dist/model/ButtonVersion.d.ts +1 -1
  141. package/dist/types.d.ts +5 -5
  142. package/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  143. package/dist/ui-kit/BlockItem/BlockItem.js +8 -9
  144. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  145. package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  146. package/dist/ui-kit/Button/Button.d.ts +0 -2
  147. package/dist/ui-kit/Button/Button.js +24 -13
  148. package/dist/ui-kit/Button/Button.js.map +1 -1
  149. package/dist/ui-kit/Button/Button.mobile.d.ts +0 -2
  150. package/dist/ui-kit/Button/Button.mobile.js +6 -8
  151. package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
  152. package/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
  153. package/dist/ui-kit/Button/ButtonInner.js +16 -0
  154. package/dist/ui-kit/Button/ButtonInner.js.map +1 -0
  155. package/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
  156. package/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
  157. package/dist/ui-kit/Button/ButtonSection.js +18 -0
  158. package/dist/ui-kit/Button/ButtonSection.js.map +1 -0
  159. package/dist/ui-kit/Description/Description.d.ts +2 -0
  160. package/dist/ui-kit/Description/Description.js +9 -0
  161. package/dist/ui-kit/Description/Description.js.map +1 -0
  162. package/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
  163. package/dist/ui-kit/Description/DescriptionProps.js +2 -0
  164. package/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
  165. package/dist/ui-kit/Heading/Heading.d.ts +4 -1
  166. package/dist/ui-kit/Heading/Heading.js +7 -4
  167. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  168. package/dist/ui-kit/Heading/Heading.mobile.d.ts +4 -1
  169. package/dist/ui-kit/Heading/Heading.mobile.js +6 -3
  170. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  171. package/{lib/ui-kit/Heading/HeadingProps.d.ts → dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  172. package/dist/ui-kit/Heading/HeadingContent.js +2 -0
  173. package/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
  174. package/dist/ui-kit/Icon/Icon.js +6 -2
  175. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  176. package/dist/ui-kit/Icon/IconProps.d.ts +6 -0
  177. package/dist/ui-kit/{Img.d.ts → Img/Img.d.ts} +1 -1
  178. package/dist/ui-kit/{Img.js → Img/Img.js} +0 -0
  179. package/dist/ui-kit/Img/Img.js.map +1 -0
  180. package/dist/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
  181. package/dist/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
  182. package/dist/ui-kit/Img/Img.mobile.js.map +1 -0
  183. package/dist/ui-kit/Img/ImgProps.d.ts +7 -0
  184. package/dist/ui-kit/{Heading/HeadingProps.js → Img/ImgProps.js} +1 -1
  185. package/dist/ui-kit/Img/ImgProps.js.map +1 -0
  186. package/dist/ui-kit/List/List.d.ts +2 -0
  187. package/dist/ui-kit/List/List.js +12 -0
  188. package/dist/ui-kit/List/List.js.map +1 -0
  189. package/dist/ui-kit/List/ListContent.d.ts +4 -0
  190. package/{mobile/dist/ui-kit/Heading/HeadingProps.js → dist/ui-kit/List/ListContent.js} +1 -1
  191. package/dist/ui-kit/List/ListContent.js.map +1 -0
  192. package/dist/ui-kit/List/ListItem.d.ts +11 -0
  193. package/dist/ui-kit/List/ListItem.js +23 -0
  194. package/dist/ui-kit/List/ListItem.js.map +1 -0
  195. package/dist/ui-kit/List/ListProps.d.ts +14 -0
  196. package/dist/ui-kit/List/ListProps.js +2 -0
  197. package/dist/ui-kit/List/ListProps.js.map +1 -0
  198. package/lib/common.css +1 -1
  199. package/lib/components/Accordion/Accordion.js +1 -1
  200. package/lib/components/Accordion/Accordion.js.map +1 -1
  201. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  202. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  203. package/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
  204. package/lib/components/Accordion/AccordionBlocks.js +8 -0
  205. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  206. package/lib/components/Accordion/AccordionContent.d.ts +30 -18
  207. package/lib/components/Accordion/AccordionItem.js +1 -1
  208. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  209. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  210. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  211. package/lib/components/BaseTile/BaseTile.js +2 -5
  212. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  213. package/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
  214. package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
  215. package/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
  216. package/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
  217. package/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
  218. package/lib/components/BaseTile/getTileMinHeight.js +14 -0
  219. package/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
  220. package/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
  221. package/lib/components/BaseTile/getTileRightPadding.js +14 -0
  222. package/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
  223. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  224. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  225. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  226. package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  227. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  228. package/lib/components/ComparisonTable/HeaderCell.js +2 -2
  229. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  230. package/lib/components/ContentPage/ContentPage.js +2 -4
  231. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  232. package/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  233. package/lib/components/ContentPage/isBlockInRegistry.js +4 -0
  234. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
  235. package/lib/components/ContentPage/normalizeBlock.d.ts +8 -0
  236. package/lib/components/ContentPage/normalizeBlock.js +6 -0
  237. package/lib/components/ContentPage/normalizeBlock.js.map +1 -0
  238. package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
  239. package/lib/components/ContentPage/normalizeBlock.mobile.js +5 -0
  240. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
  241. package/lib/components/ContentPage/normalizePage.d.ts +2 -0
  242. package/lib/components/ContentPage/normalizePage.js +22 -0
  243. package/lib/components/ContentPage/normalizePage.js.map +1 -0
  244. package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -0
  245. package/{mobile/lib/components/ContentPage/toMobilePage.js → lib/components/ContentPage/normalizePage.mobile.js} +8 -15
  246. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -0
  247. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  248. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  249. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  250. package/lib/components/Gallery/Gallery.fixture.d.ts +2 -0
  251. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +5 -0
  252. package/lib/components/Gallery/Gallery.mobile.js +18 -7
  253. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  254. package/lib/components/Gallery/GalleryCardInner.js +2 -4
  255. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  256. package/lib/components/Gallery/GalleryContainer.js +5 -6
  257. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  258. package/lib/components/Gallery/GalleryContent.d.ts +8 -3
  259. package/lib/components/Gallery/GalleryInner.js +1 -1
  260. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  261. package/lib/components/Gallery/constants.js +2 -2
  262. package/lib/components/Gallery/constants.js.map +1 -1
  263. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  264. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  265. package/lib/components/Headline/Headline.js +1 -1
  266. package/lib/components/Headline/Headline.js.map +1 -1
  267. package/lib/components/Headline/Headline.mobile.js +2 -2
  268. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  269. package/lib/components/Headline/HeadlineContent.d.ts +6 -6
  270. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  271. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  272. package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
  273. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  274. package/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
  275. package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  276. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -0
  277. package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  278. package/lib/components/MobileAppTile/MobileAppTile.js +8 -3
  279. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  280. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  281. package/lib/components/PictureText/PictureText.js +4 -4
  282. package/lib/components/PictureText/PictureText.js.map +1 -1
  283. package/lib/components/PictureText/PictureTextContent.d.ts +4 -2
  284. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  285. package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  286. package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  287. package/lib/components/ProductBlock/ProductBlockInner.js +7 -3
  288. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  289. package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
  290. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
  291. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  292. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  293. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  294. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  295. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  296. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  297. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  298. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  299. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  300. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
  301. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  302. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  303. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  304. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -0
  305. package/lib/components/ProductTile/ProductTile.js +14 -4
  306. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  307. package/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
  308. package/lib/components/PromoTile/PromoTile.js +12 -3
  309. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  310. package/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
  311. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  312. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  313. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  314. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  315. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  316. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  317. package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  318. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  319. package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  320. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  321. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  322. package/lib/components/TextBlock/TextBlock.js +1 -1
  323. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  324. package/lib/components/TextBlock/TextBlock.mobile.js +4 -7
  325. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  326. package/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
  327. package/lib/components/Tile/Tile.fixture.d.ts +2 -0
  328. package/lib/components/Tile/Tile.js +11 -28
  329. package/lib/components/Tile/Tile.js.map +1 -1
  330. package/lib/components/Tile/TileContent.d.ts +9 -2
  331. package/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
  332. package/lib/content-page-repository/ContentPageRepository.js +0 -10
  333. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  334. package/lib/icons/IconName.d.ts +3 -2
  335. package/lib/icons/IconName.js +1 -0
  336. package/lib/icons/IconName.js.map +1 -1
  337. package/lib/index.d.ts +1 -1
  338. package/lib/index.js +1 -1
  339. package/lib/index.js.map +1 -1
  340. package/lib/model/ButtonVersion.d.ts +1 -1
  341. package/lib/types.d.ts +5 -5
  342. package/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  343. package/lib/ui-kit/BlockItem/BlockItem.js +8 -9
  344. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  345. package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  346. package/lib/ui-kit/Button/Button.d.ts +0 -2
  347. package/lib/ui-kit/Button/Button.js +23 -12
  348. package/lib/ui-kit/Button/Button.js.map +1 -1
  349. package/lib/ui-kit/Button/Button.mobile.d.ts +0 -2
  350. package/lib/ui-kit/Button/Button.mobile.js +6 -8
  351. package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
  352. package/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
  353. package/lib/ui-kit/Button/ButtonInner.js +14 -0
  354. package/lib/ui-kit/Button/ButtonInner.js.map +1 -0
  355. package/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
  356. package/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
  357. package/lib/ui-kit/Button/ButtonSection.js +16 -0
  358. package/lib/ui-kit/Button/ButtonSection.js.map +1 -0
  359. package/lib/ui-kit/Description/Description.d.ts +2 -0
  360. package/lib/ui-kit/Description/Description.js +7 -0
  361. package/lib/ui-kit/Description/Description.js.map +1 -0
  362. package/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
  363. package/lib/ui-kit/Description/DescriptionProps.js +2 -0
  364. package/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
  365. package/lib/ui-kit/Heading/Heading.d.ts +4 -1
  366. package/lib/ui-kit/Heading/Heading.js +7 -4
  367. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  368. package/lib/ui-kit/Heading/Heading.mobile.d.ts +4 -1
  369. package/lib/ui-kit/Heading/Heading.mobile.js +6 -3
  370. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  371. package/{mobile/dist/ui-kit/Heading/HeadingProps.d.ts → lib/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  372. package/lib/ui-kit/Heading/HeadingContent.js +2 -0
  373. package/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
  374. package/lib/ui-kit/Icon/Icon.fixture.d.ts +2 -1
  375. package/lib/ui-kit/Icon/Icon.js +6 -2
  376. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  377. package/lib/ui-kit/Icon/IconProps.d.ts +6 -0
  378. package/{mobile/dist/ui-kit → lib/ui-kit/Img}/Img.d.ts +1 -1
  379. package/lib/ui-kit/{Img.js → Img/Img.js} +0 -0
  380. package/lib/ui-kit/Img/Img.js.map +1 -0
  381. package/lib/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
  382. package/lib/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
  383. package/lib/ui-kit/Img/Img.mobile.js.map +1 -0
  384. package/lib/ui-kit/Img/ImgProps.d.ts +7 -0
  385. package/lib/ui-kit/Img/ImgProps.js +2 -0
  386. package/lib/ui-kit/Img/ImgProps.js.map +1 -0
  387. package/lib/ui-kit/List/List.d.ts +2 -0
  388. package/lib/ui-kit/List/List.js +10 -0
  389. package/lib/ui-kit/List/List.js.map +1 -0
  390. package/lib/ui-kit/List/ListContent.d.ts +4 -0
  391. package/lib/ui-kit/List/ListContent.js +2 -0
  392. package/lib/ui-kit/List/ListContent.js.map +1 -0
  393. package/lib/ui-kit/List/ListItem.d.ts +11 -0
  394. package/lib/ui-kit/List/ListItem.js +21 -0
  395. package/lib/ui-kit/List/ListItem.js.map +1 -0
  396. package/lib/ui-kit/List/ListProps.d.ts +14 -0
  397. package/lib/ui-kit/List/ListProps.js +2 -0
  398. package/lib/ui-kit/List/ListProps.js.map +1 -0
  399. package/mobile/bundle/bundle.umd.js +341 -200
  400. package/mobile/bundle/bundle.umd.min.js +1 -1
  401. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  402. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  403. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
  404. package/mobile/dist/components/Accordion/AccordionBlocks.js +8 -0
  405. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  406. package/mobile/dist/components/Accordion/AccordionContent.d.ts +30 -18
  407. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  408. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  409. package/mobile/dist/components/BaseTile/BaseTile.js +2 -11
  410. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  411. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
  412. package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
  413. package/mobile/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
  414. package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
  415. package/mobile/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
  416. package/mobile/dist/components/BaseTile/getTileMinHeight.js +17 -0
  417. package/mobile/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
  418. package/mobile/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
  419. package/mobile/dist/components/BaseTile/getTileRightPadding.js +17 -0
  420. package/mobile/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
  421. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  422. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  423. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  424. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  425. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  426. package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
  427. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  428. package/mobile/dist/components/ContentPage/ContentPage.js +2 -4
  429. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  430. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  431. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +7 -0
  432. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
  433. package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +2 -0
  434. package/mobile/dist/components/ContentPage/normalizeBlock.js +8 -0
  435. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -0
  436. package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -0
  437. package/{dist/components/ContentPage/toMobilePage.js → mobile/dist/components/ContentPage/normalizePage.js} +10 -17
  438. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -0
  439. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  440. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  442. package/mobile/dist/components/Gallery/Gallery.js +18 -7
  443. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  444. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
  445. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  446. package/mobile/dist/components/Gallery/GalleryContainer.js +4 -5
  447. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  448. package/mobile/dist/components/Gallery/GalleryContent.d.ts +8 -3
  449. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  450. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  451. package/mobile/dist/components/Gallery/constants.js +2 -2
  452. package/mobile/dist/components/Gallery/constants.js.map +1 -1
  453. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  454. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  455. package/mobile/dist/components/Headline/Headline.js +2 -2
  456. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  457. package/mobile/dist/components/Headline/HeadlineContent.d.ts +6 -6
  458. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
  459. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  460. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
  461. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  462. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  463. package/mobile/dist/components/PictureText/PictureText.js +4 -4
  464. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  465. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +4 -2
  466. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  467. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  468. package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -3
  469. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +7 -3
  470. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  471. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  472. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  473. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  474. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  475. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  476. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  477. package/mobile/dist/components/ProductTile/ProductTile.js +14 -4
  478. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  479. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
  480. package/mobile/dist/components/PromoTile/PromoTile.js +12 -3
  481. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  482. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
  483. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  484. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  485. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  486. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  487. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  488. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  489. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  490. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  491. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  492. package/mobile/dist/components/TextBlock/TextBlock.js +4 -7
  493. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  494. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
  495. package/mobile/dist/components/Tile/Tile.js +10 -27
  496. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  497. package/mobile/dist/components/Tile/TileContent.d.ts +9 -2
  498. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
  499. package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -10
  500. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  501. package/mobile/dist/icons/IconName.d.ts +3 -2
  502. package/mobile/dist/icons/IconName.js +1 -0
  503. package/mobile/dist/icons/IconName.js.map +1 -1
  504. package/mobile/dist/index.d.ts +1 -1
  505. package/mobile/dist/index.js +3 -3
  506. package/mobile/dist/index.js.map +1 -1
  507. package/mobile/dist/model/ButtonVersion.d.ts +1 -1
  508. package/mobile/dist/types.d.ts +5 -5
  509. package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  510. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +8 -9
  511. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  512. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  513. package/mobile/dist/ui-kit/Button/Button.d.ts +0 -2
  514. package/mobile/dist/ui-kit/Button/Button.js +6 -8
  515. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  516. package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
  517. package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -0
  518. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -0
  519. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
  520. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
  521. package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -0
  522. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -0
  523. package/mobile/dist/ui-kit/Description/Description.d.ts +2 -0
  524. package/mobile/dist/ui-kit/Description/Description.js +9 -0
  525. package/mobile/dist/ui-kit/Description/Description.js.map +1 -0
  526. package/mobile/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
  527. package/mobile/dist/ui-kit/Description/DescriptionProps.js +2 -0
  528. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
  529. package/mobile/dist/ui-kit/Heading/Heading.d.ts +4 -1
  530. package/mobile/dist/ui-kit/Heading/Heading.js +6 -3
  531. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  532. package/{dist/ui-kit/Heading/HeadingProps.d.ts → mobile/dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  533. package/mobile/dist/ui-kit/Heading/HeadingContent.js +2 -0
  534. package/mobile/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
  535. package/mobile/dist/ui-kit/Icon/Icon.js +6 -2
  536. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  537. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +6 -0
  538. package/{lib/ui-kit → mobile/dist/ui-kit/Img}/Img.d.ts +2 -5
  539. package/mobile/dist/ui-kit/{Img.js → Img/Img.js} +7 -4
  540. package/mobile/dist/ui-kit/Img/Img.js.map +1 -0
  541. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +7 -0
  542. package/mobile/dist/ui-kit/Img/ImgProps.js +2 -0
  543. package/mobile/dist/ui-kit/Img/ImgProps.js.map +1 -0
  544. package/mobile/dist/ui-kit/List/List.d.ts +2 -0
  545. package/mobile/dist/ui-kit/List/List.js +12 -0
  546. package/mobile/dist/ui-kit/List/List.js.map +1 -0
  547. package/mobile/dist/ui-kit/List/ListContent.d.ts +4 -0
  548. package/mobile/dist/ui-kit/List/ListContent.js +2 -0
  549. package/mobile/dist/ui-kit/List/ListContent.js.map +1 -0
  550. package/mobile/dist/ui-kit/List/ListItem.d.ts +11 -0
  551. package/mobile/dist/ui-kit/List/ListItem.js +23 -0
  552. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -0
  553. package/mobile/dist/ui-kit/List/ListProps.d.ts +14 -0
  554. package/mobile/dist/ui-kit/List/ListProps.js +2 -0
  555. package/mobile/dist/ui-kit/List/ListProps.js.map +1 -0
  556. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  557. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  558. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
  559. package/mobile/lib/components/Accordion/AccordionBlocks.js +8 -0
  560. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  561. package/mobile/lib/components/Accordion/AccordionContent.d.ts +30 -18
  562. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  563. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  564. package/mobile/lib/components/BaseTile/BaseTile.js +2 -11
  565. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  566. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
  567. package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
  568. package/mobile/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
  569. package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
  570. package/mobile/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
  571. package/mobile/lib/components/BaseTile/getTileMinHeight.js +14 -0
  572. package/mobile/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
  573. package/mobile/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
  574. package/mobile/lib/components/BaseTile/getTileRightPadding.js +14 -0
  575. package/mobile/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
  576. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  577. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  578. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  579. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  580. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  581. package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
  582. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  583. package/mobile/lib/components/ContentPage/ContentPage.js +2 -4
  584. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  585. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  586. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +4 -0
  587. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
  588. package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +2 -0
  589. package/mobile/lib/components/ContentPage/normalizeBlock.js +5 -0
  590. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -0
  591. package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -0
  592. package/{lib/components/ContentPage/toMobilePage.js → mobile/lib/components/ContentPage/normalizePage.js} +8 -15
  593. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -0
  594. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  595. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  596. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  597. package/mobile/lib/components/Gallery/Gallery.js +18 -7
  598. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  599. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
  600. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  601. package/mobile/lib/components/Gallery/GalleryContainer.js +5 -6
  602. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  603. package/mobile/lib/components/Gallery/GalleryContent.d.ts +8 -3
  604. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  605. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  606. package/mobile/lib/components/Gallery/constants.js +2 -2
  607. package/mobile/lib/components/Gallery/constants.js.map +1 -1
  608. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  609. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  610. package/mobile/lib/components/Headline/Headline.js +2 -2
  611. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  612. package/mobile/lib/components/Headline/HeadlineContent.d.ts +6 -6
  613. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
  614. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  615. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
  616. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  617. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  618. package/mobile/lib/components/PictureText/PictureText.js +4 -4
  619. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  620. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +4 -2
  621. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  622. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  623. package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -3
  624. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +7 -3
  625. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  626. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  627. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  628. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  629. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  630. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  631. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  632. package/mobile/lib/components/ProductTile/ProductTile.js +14 -4
  633. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  634. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
  635. package/mobile/lib/components/PromoTile/PromoTile.js +12 -3
  636. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  637. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
  638. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  639. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  640. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  641. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  642. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  643. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  644. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  645. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  646. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  647. package/mobile/lib/components/TextBlock/TextBlock.js +4 -7
  648. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  649. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
  650. package/mobile/lib/components/Tile/Tile.js +11 -28
  651. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  652. package/mobile/lib/components/Tile/TileContent.d.ts +9 -2
  653. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
  654. package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -10
  655. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  656. package/mobile/lib/icons/IconName.d.ts +3 -2
  657. package/mobile/lib/icons/IconName.js +1 -0
  658. package/mobile/lib/icons/IconName.js.map +1 -1
  659. package/mobile/lib/index.d.ts +1 -1
  660. package/mobile/lib/index.js +1 -1
  661. package/mobile/lib/index.js.map +1 -1
  662. package/mobile/lib/model/ButtonVersion.d.ts +1 -1
  663. package/mobile/lib/types.d.ts +5 -5
  664. package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  665. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +8 -9
  666. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  667. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  668. package/mobile/lib/ui-kit/Button/Button.d.ts +0 -2
  669. package/mobile/lib/ui-kit/Button/Button.js +6 -8
  670. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  671. package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
  672. package/mobile/lib/ui-kit/Button/ButtonInner.js +14 -0
  673. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -0
  674. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
  675. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
  676. package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -0
  677. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -0
  678. package/mobile/lib/ui-kit/Description/Description.d.ts +2 -0
  679. package/mobile/lib/ui-kit/Description/Description.js +7 -0
  680. package/mobile/lib/ui-kit/Description/Description.js.map +1 -0
  681. package/mobile/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
  682. package/mobile/lib/ui-kit/Description/DescriptionProps.js +2 -0
  683. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
  684. package/mobile/lib/ui-kit/Heading/Heading.d.ts +4 -1
  685. package/mobile/lib/ui-kit/Heading/Heading.js +6 -3
  686. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  687. package/mobile/lib/ui-kit/Heading/{HeadingProps.d.ts → HeadingContent.d.ts} +6 -4
  688. package/mobile/lib/ui-kit/Heading/HeadingContent.js +2 -0
  689. package/mobile/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
  690. package/mobile/lib/ui-kit/Icon/Icon.js +6 -2
  691. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  692. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +6 -0
  693. package/mobile/lib/ui-kit/{Img.d.ts → Img/Img.d.ts} +2 -5
  694. package/mobile/lib/ui-kit/{Img.js → Img/Img.js} +7 -4
  695. package/mobile/lib/ui-kit/Img/Img.js.map +1 -0
  696. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +7 -0
  697. package/mobile/lib/ui-kit/Img/ImgProps.js +2 -0
  698. package/mobile/lib/ui-kit/Img/ImgProps.js.map +1 -0
  699. package/mobile/lib/ui-kit/List/List.d.ts +2 -0
  700. package/mobile/lib/ui-kit/List/List.js +10 -0
  701. package/mobile/lib/ui-kit/List/List.js.map +1 -0
  702. package/mobile/lib/ui-kit/List/ListContent.d.ts +4 -0
  703. package/mobile/lib/ui-kit/List/ListContent.js +2 -0
  704. package/mobile/lib/ui-kit/List/ListContent.js.map +1 -0
  705. package/mobile/lib/ui-kit/List/ListItem.d.ts +11 -0
  706. package/mobile/lib/ui-kit/List/ListItem.js +21 -0
  707. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -0
  708. package/mobile/lib/ui-kit/List/ListProps.d.ts +14 -0
  709. package/mobile/lib/ui-kit/List/ListProps.js +2 -0
  710. package/mobile/lib/ui-kit/List/ListProps.js.map +1 -0
  711. package/mobile/src/components/Accordion/Accordion.tsx +1 -1
  712. package/mobile/src/components/Accordion/AccordionBlocks.tsx +8 -0
  713. package/mobile/src/components/Accordion/AccordionContent.ts +49 -21
  714. package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
  715. package/mobile/src/components/BaseTile/BaseTile.tsx +11 -41
  716. package/mobile/src/components/BaseTile/BaseTileProps.ts +5 -7
  717. package/{src/components/BaseTile/getHeadingType.ts → mobile/src/components/BaseTile/getTileHeadingType.ts} +1 -1
  718. package/mobile/src/components/BaseTile/getTileMinHeight.ts +12 -0
  719. package/mobile/src/components/BaseTile/getTileRightPadding.ts +12 -0
  720. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
  721. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
  722. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
  723. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +2 -2
  724. package/mobile/src/components/ContentPage/ContentPage.page.json +1620 -133
  725. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -8
  726. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +5 -0
  727. package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
  728. package/mobile/src/components/ContentPage/normalizeBlock.ts +6 -0
  729. package/mobile/src/components/ContentPage/{toMobilePage.ts → normalizePage.ts} +7 -14
  730. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
  731. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
  732. package/mobile/src/components/Gallery/Gallery.tsx +57 -38
  733. package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -11
  734. package/mobile/src/components/Gallery/GalleryContainer.tsx +8 -9
  735. package/mobile/src/components/Gallery/GalleryContent.ts +9 -3
  736. package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
  737. package/mobile/src/components/Gallery/constants.ts +2 -2
  738. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
  739. package/mobile/src/components/Headline/Headline.tsx +2 -2
  740. package/mobile/src/components/Headline/HeadlineContent.ts +11 -9
  741. package/mobile/src/components/LinkDocs/LinkDocs.tsx +8 -4
  742. package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
  743. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
  744. package/mobile/src/components/PictureText/PictureText.tsx +4 -3
  745. package/mobile/src/components/PictureText/PictureTextContent.ts +5 -2
  746. package/mobile/src/components/Placeholder/PlaceholderContent.ts +3 -3
  747. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +21 -10
  748. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +26 -11
  749. package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
  750. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
  751. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
  752. package/mobile/src/components/ProductTile/ProductTile.tsx +63 -15
  753. package/mobile/src/components/ProductTile/ProductTileContent.ts +17 -9
  754. package/mobile/src/components/PromoTile/PromoTile.tsx +41 -14
  755. package/mobile/src/components/PromoTile/PromoTileContent.ts +11 -5
  756. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
  757. package/mobile/src/components/TariffsTable/TariffsTable.tsx +5 -1
  758. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
  759. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -11
  760. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
  761. package/mobile/src/components/TextBlock/TextBlock.tsx +20 -16
  762. package/mobile/src/components/TextBlock/TextBlockContent.ts +4 -1
  763. package/mobile/src/components/Tile/Tile.tsx +46 -27
  764. package/mobile/src/components/Tile/TileContent.ts +13 -2
  765. package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -12
  766. package/mobile/src/icons/ActualBalanceIcon.svg +0 -2
  767. package/mobile/src/icons/AtmIcon.svg +5 -5
  768. package/mobile/src/icons/BankIcon.svg +9 -9
  769. package/mobile/src/icons/BurgerIcon.svg +1 -1
  770. package/mobile/src/icons/BurgerIconWhite.svg +1 -1
  771. package/mobile/src/icons/Calendar2Icon.svg +1 -1
  772. package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
  773. package/mobile/src/icons/CalendarIcon.svg +1 -1
  774. package/mobile/src/icons/CalendarTickIcon.svg +1 -1
  775. package/mobile/src/icons/CalendarWhiteIcon.svg +1 -1
  776. package/mobile/src/icons/CardIcon.svg +1 -1
  777. package/mobile/src/icons/CardPosIcon.svg +1 -1
  778. package/mobile/src/icons/CardTickIcon.svg +1 -1
  779. package/mobile/src/icons/CardWithGemIcon.svg +1 -1
  780. package/mobile/src/icons/ChartSquareIcon.svg +1 -1
  781. package/mobile/src/icons/ClockIcon.svg +0 -2
  782. package/mobile/src/icons/CloseIcon.svg +1 -1
  783. package/mobile/src/icons/ComfortableCompIcon.svg +0 -2
  784. package/mobile/src/icons/CreditCardsIcon.svg +1 -1
  785. package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
  786. package/mobile/src/icons/DocIcon.svg +4 -4
  787. package/mobile/src/icons/DocIconMonoColor.svg +5 -0
  788. package/mobile/src/icons/DocumentTextIcon.svg +3 -3
  789. package/mobile/src/icons/DollarIcon.svg +1 -1
  790. package/mobile/src/icons/EarthIcon.svg +1 -1
  791. package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
  792. package/mobile/src/icons/EmptyWalletIcon.svg +1 -1
  793. package/mobile/src/icons/EmptyWalletWhiteIcon.svg +1 -1
  794. package/mobile/src/icons/EuroIcon.svg +1 -1
  795. package/mobile/src/icons/GeolocationIcon.svg +3 -3
  796. package/mobile/src/icons/GlobalIcon.svg +1 -1
  797. package/mobile/src/icons/IconName.ts +3 -3
  798. package/mobile/src/icons/InterestGrowthIcon.svg +1 -1
  799. package/mobile/src/icons/InterestIcon.svg +1 -1
  800. package/mobile/src/icons/JCBIcon.svg +1 -1
  801. package/mobile/src/icons/MasterCardIcon.svg +1 -1
  802. package/mobile/src/icons/MinusIcon.svg +1 -1
  803. package/mobile/src/icons/MirIcon.svg +1 -1
  804. package/mobile/src/icons/MoneyIcon.svg +1 -1
  805. package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -1
  806. package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
  807. package/mobile/src/icons/NewDocIcon.svg +0 -2
  808. package/mobile/src/icons/OfficeIcon.svg +1 -1
  809. package/mobile/src/icons/OkIcon.svg +1 -1
  810. package/mobile/src/icons/PassSendIcon.svg +0 -2
  811. package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
  812. package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
  813. package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
  814. package/mobile/src/icons/PersonalCardIcon.svg +1 -1
  815. package/mobile/src/icons/PlusIcon.svg +1 -1
  816. package/mobile/src/icons/Profile2UserIcon.svg +1 -1
  817. package/mobile/src/icons/RoundRubleIcon.svg +1 -1
  818. package/mobile/src/icons/SafeIcon.svg +1 -1
  819. package/mobile/src/icons/ShieldTickIcon.svg +1 -1
  820. package/mobile/src/icons/SignDocsIcon.svg +0 -2
  821. package/mobile/src/icons/SmallClockIcon.svg +1 -1
  822. package/mobile/src/icons/TelegramIcon.svg +2 -1
  823. package/mobile/src/icons/UnionPayIcon.svg +1 -1
  824. package/mobile/src/icons/UserTickIcon.svg +1 -1
  825. package/mobile/src/icons/VKIcon.svg +2 -1
  826. package/mobile/src/icons/VisaIcon.svg +1 -1
  827. package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
  828. package/mobile/src/icons/WalletAddIcon.svg +1 -1
  829. package/mobile/src/icons/WalletIcon.svg +1 -1
  830. package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
  831. package/mobile/src/index.ts +1 -1
  832. package/mobile/src/model/ButtonVersion.ts +1 -1
  833. package/mobile/src/types.ts +6 -5
  834. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
  835. package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
  836. package/mobile/src/ui-kit/Button/Button.tsx +11 -24
  837. package/mobile/src/ui-kit/Button/ButtonInner.tsx +37 -0
  838. package/mobile/src/ui-kit/Button/ButtonProps.ts +11 -0
  839. package/mobile/src/ui-kit/Button/ButtonSection.tsx +34 -0
  840. package/mobile/src/ui-kit/Description/Description.tsx +8 -0
  841. package/mobile/src/ui-kit/Description/DescriptionProps.ts +8 -0
  842. package/mobile/src/ui-kit/Heading/Heading.tsx +14 -5
  843. package/mobile/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
  844. package/mobile/src/ui-kit/Icon/Icon.tsx +16 -3
  845. package/mobile/src/ui-kit/Icon/IconProps.ts +7 -0
  846. package/mobile/src/ui-kit/{Img.tsx → Img/Img.tsx} +9 -10
  847. package/mobile/src/ui-kit/Img/ImgProps.ts +9 -0
  848. package/mobile/src/ui-kit/List/List.tsx +24 -0
  849. package/mobile/src/ui-kit/List/ListContent.ts +4 -0
  850. package/mobile/src/ui-kit/List/ListItem.tsx +43 -0
  851. package/mobile/src/ui-kit/List/ListProps.ts +16 -0
  852. package/package.json +1 -1
  853. package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -8
  854. package/src/components/Accordion/Accordion.fixture.tsx +52 -8
  855. package/src/components/Accordion/Accordion.mobile.tsx +1 -1
  856. package/src/components/Accordion/Accordion.tsx +1 -1
  857. package/src/components/Accordion/AccordionBlocks.tsx +8 -0
  858. package/src/components/Accordion/AccordionContent.ts +49 -21
  859. package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
  860. package/src/components/Accordion/AccordionItem.tsx +1 -1
  861. package/src/components/BaseTile/BaseTile.tsx +10 -36
  862. package/src/components/BaseTile/BaseTileProps.ts +5 -7
  863. package/{mobile/src/components/BaseTile/getHeadingType.ts → src/components/BaseTile/getTileHeadingType.ts} +1 -1
  864. package/src/components/BaseTile/getTileMinHeight.ts +12 -0
  865. package/src/components/BaseTile/getTileRightPadding.ts +12 -0
  866. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
  867. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
  868. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -0
  869. package/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
  870. package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
  871. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +3 -3
  872. package/src/components/ContentPage/ContentPage.fixture.tsx +3 -2
  873. package/src/components/ContentPage/ContentPage.page.json +1 -1
  874. package/src/components/ContentPage/ContentPage.tsx +2 -8
  875. package/src/components/ContentPage/isBlockInRegistry.ts +5 -0
  876. package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +71 -0
  877. package/src/components/ContentPage/normalizeBlock.mobile.ts +6 -0
  878. package/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
  879. package/src/components/ContentPage/normalizeBlock.ts +7 -0
  880. package/src/components/ContentPage/{toMobilePage.ts → normalizePage.mobile.ts} +7 -14
  881. package/src/components/ContentPage/normalizePage.ts +29 -0
  882. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
  883. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
  884. package/src/components/Gallery/Gallery.fixture.mobile.tsx +103 -0
  885. package/src/components/Gallery/Gallery.fixture.tsx +5 -4
  886. package/src/components/Gallery/Gallery.mobile.tsx +57 -38
  887. package/src/components/Gallery/GalleryCardInner.tsx +6 -11
  888. package/src/components/Gallery/GalleryContainer.tsx +8 -9
  889. package/src/components/Gallery/GalleryContent.ts +9 -3
  890. package/src/components/Gallery/GalleryInner.tsx +1 -1
  891. package/src/components/Gallery/constants.ts +2 -2
  892. package/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
  893. package/src/components/Headline/Headline.mobile.tsx +2 -2
  894. package/src/components/Headline/Headline.tsx +3 -1
  895. package/src/components/Headline/HeadlineContent.ts +11 -9
  896. package/src/components/LinkDocs/LinkDocs.mobile.tsx +8 -4
  897. package/src/components/LinkDocs/LinkDocs.tsx +4 -4
  898. package/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
  899. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  900. package/src/components/MobileAppTile/MobileAppTile.tsx +47 -20
  901. package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
  902. package/src/components/PictureText/PictureText.tsx +4 -3
  903. package/src/components/PictureText/PictureTextContent.ts +5 -2
  904. package/src/components/Placeholder/PlaceholderContent.ts +3 -3
  905. package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -0
  906. package/src/components/ProductBlock/ProductBlockContent.ts +21 -10
  907. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +26 -11
  908. package/src/components/ProductBlock/ProductBlockInner.tsx +28 -12
  909. package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
  910. package/src/components/ProductBlock/renderBenefit.tsx +1 -0
  911. package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -0
  912. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  913. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +4 -4
  914. package/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
  915. package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
  916. package/src/components/ProductTile/ProductTile.fixture.tsx +28 -0
  917. package/src/components/ProductTile/ProductTile.tsx +63 -15
  918. package/src/components/ProductTile/ProductTileContent.ts +17 -9
  919. package/src/components/PromoTile/PromoTile.tsx +41 -14
  920. package/src/components/PromoTile/PromoTileContent.ts +11 -5
  921. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
  922. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  923. package/src/components/TariffsTable/TariffsTable.tsx +5 -1
  924. package/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
  925. package/src/components/TariffsTable/TariffsTableContent.ts +5 -11
  926. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
  927. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +28 -13
  928. package/src/components/TextBlock/TextBlock.mobile.tsx +20 -16
  929. package/src/components/TextBlock/TextBlock.tsx +1 -1
  930. package/src/components/TextBlock/TextBlockContent.ts +4 -1
  931. package/src/components/Tile/Tile.fixture.tsx +37 -23
  932. package/src/components/Tile/Tile.tsx +46 -27
  933. package/src/components/Tile/TileContent.ts +13 -2
  934. package/src/content-page-repository/ContentPageRepository.ts +0 -12
  935. package/src/icons/ActualBalanceIcon.svg +0 -2
  936. package/src/icons/AtmIcon.svg +5 -5
  937. package/src/icons/BankIcon.svg +9 -9
  938. package/src/icons/BurgerIcon.svg +1 -1
  939. package/src/icons/BurgerIconWhite.svg +1 -1
  940. package/src/icons/Calendar2Icon.svg +1 -1
  941. package/src/icons/CalendarCircleIcon.svg +1 -1
  942. package/src/icons/CalendarIcon.svg +1 -1
  943. package/src/icons/CalendarTickIcon.svg +1 -1
  944. package/src/icons/CalendarWhiteIcon.svg +1 -1
  945. package/src/icons/CardIcon.svg +1 -1
  946. package/src/icons/CardPosIcon.svg +1 -1
  947. package/src/icons/CardTickIcon.svg +1 -1
  948. package/src/icons/CardWithGemIcon.svg +1 -1
  949. package/src/icons/ChartSquareIcon.svg +1 -1
  950. package/src/icons/ClockIcon.svg +0 -2
  951. package/src/icons/CloseIcon.svg +1 -1
  952. package/src/icons/ComfortableCompIcon.svg +0 -2
  953. package/src/icons/CreditCardsIcon.svg +1 -1
  954. package/src/icons/DiscountShapeIcon.svg +1 -1
  955. package/src/icons/DocIcon.svg +4 -4
  956. package/src/icons/DocIconMonoColor.svg +5 -0
  957. package/src/icons/DocumentTextIcon.svg +3 -3
  958. package/src/icons/DollarIcon.svg +1 -1
  959. package/src/icons/EarthIcon.svg +1 -1
  960. package/src/icons/EmptyWalletChangeIcon.svg +1 -1
  961. package/src/icons/EmptyWalletIcon.svg +1 -1
  962. package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
  963. package/src/icons/EuroIcon.svg +1 -1
  964. package/src/icons/GeolocationIcon.svg +3 -3
  965. package/src/icons/GlobalIcon.svg +1 -1
  966. package/src/icons/IconName.ts +3 -3
  967. package/src/icons/InterestGrowthIcon.svg +1 -1
  968. package/src/icons/InterestIcon.svg +1 -1
  969. package/src/icons/JCBIcon.svg +1 -1
  970. package/src/icons/MasterCardIcon.svg +1 -1
  971. package/src/icons/MinusIcon.svg +1 -1
  972. package/src/icons/MirIcon.svg +1 -1
  973. package/src/icons/MoneyIcon.svg +1 -1
  974. package/src/icons/MoneyInsuranceIcon.svg +1 -1
  975. package/src/icons/MonitorMobileIcon.svg +1 -1
  976. package/src/icons/NewDocIcon.svg +0 -2
  977. package/src/icons/OfficeIcon.svg +1 -1
  978. package/src/icons/OkIcon.svg +1 -1
  979. package/src/icons/PassSendIcon.svg +0 -2
  980. package/src/icons/PercentageRoundIcon.svg +1 -1
  981. package/src/icons/PercentageSquareIcon.svg +1 -1
  982. package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
  983. package/src/icons/PersonalCardIcon.svg +1 -1
  984. package/src/icons/PlusIcon.svg +1 -1
  985. package/src/icons/Profile2UserIcon.svg +1 -1
  986. package/src/icons/RoundRubleIcon.svg +1 -1
  987. package/src/icons/SafeIcon.svg +1 -1
  988. package/src/icons/ShieldTickIcon.svg +1 -1
  989. package/src/icons/SignDocsIcon.svg +0 -2
  990. package/src/icons/SmallClockIcon.svg +1 -1
  991. package/src/icons/TelegramIcon.svg +2 -1
  992. package/src/icons/UnionPayIcon.svg +1 -1
  993. package/src/icons/UserTickIcon.svg +1 -1
  994. package/src/icons/VKIcon.svg +2 -1
  995. package/src/icons/VisaIcon.svg +1 -1
  996. package/src/icons/WalletAdd2Icon.svg +1 -1
  997. package/src/icons/WalletAddIcon.svg +1 -1
  998. package/src/icons/WalletIcon.svg +1 -1
  999. package/src/icons/WalletWithMoneyIcon.svg +1 -1
  1000. package/src/index.ts +1 -1
  1001. package/src/model/ButtonVersion.ts +1 -1
  1002. package/src/types.ts +6 -5
  1003. package/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
  1004. package/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
  1005. package/src/ui-kit/Button/Button.fixture.tsx +2 -2
  1006. package/src/ui-kit/Button/Button.mobile.tsx +11 -24
  1007. package/src/ui-kit/Button/Button.tsx +55 -51
  1008. package/src/ui-kit/Button/ButtonInner.tsx +37 -0
  1009. package/src/ui-kit/Button/ButtonProps.ts +11 -0
  1010. package/src/ui-kit/Button/ButtonSection.tsx +34 -0
  1011. package/src/ui-kit/Description/Description.tsx +8 -0
  1012. package/src/ui-kit/Description/DescriptionProps.ts +8 -0
  1013. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +7 -6
  1014. package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
  1015. package/src/ui-kit/Heading/Heading.mobile.tsx +14 -5
  1016. package/src/ui-kit/Heading/Heading.tsx +14 -5
  1017. package/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
  1018. package/src/ui-kit/Icon/Icon.fixture.tsx +13 -2
  1019. package/src/ui-kit/Icon/Icon.tsx +16 -3
  1020. package/src/ui-kit/Icon/IconProps.ts +7 -0
  1021. package/src/ui-kit/{Img.mobile.tsx → Img/Img.mobile.tsx} +9 -10
  1022. package/src/ui-kit/{Img.tsx → Img/Img.tsx} +1 -1
  1023. package/src/ui-kit/Img/ImgProps.ts +9 -0
  1024. package/src/ui-kit/List/List.tsx +24 -0
  1025. package/src/ui-kit/List/ListContent.ts +4 -0
  1026. package/src/ui-kit/List/ListItem.tsx +43 -0
  1027. package/src/ui-kit/List/ListProps.ts +16 -0
  1028. package/dist/components/BaseTile/BaseTile.mobile.d.ts +0 -5
  1029. package/dist/components/BaseTile/BaseTile.mobile.js +0 -17
  1030. package/dist/components/BaseTile/BaseTile.mobile.js.map +0 -1
  1031. package/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
  1032. package/dist/components/BaseTile/BaseTileInner.js +0 -14
  1033. package/dist/components/BaseTile/BaseTileInner.js.map +0 -1
  1034. package/dist/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
  1035. package/dist/components/BaseTile/BaseTileInner.mobile.js +0 -14
  1036. package/dist/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
  1037. package/dist/components/BaseTile/getHeadingType.d.ts +0 -1
  1038. package/dist/components/BaseTile/getHeadingType.js.map +0 -1
  1039. package/dist/components/BaseTile/renderButton.d.ts +0 -2
  1040. package/dist/components/BaseTile/renderButton.js +0 -12
  1041. package/dist/components/BaseTile/renderButton.js.map +0 -1
  1042. package/dist/components/BaseTile/renderButton.mobile.d.ts +0 -2
  1043. package/dist/components/BaseTile/renderButton.mobile.js +0 -13
  1044. package/dist/components/BaseTile/renderButton.mobile.js.map +0 -1
  1045. package/dist/components/BaseTile/renderItems.d.ts +0 -2
  1046. package/dist/components/BaseTile/renderItems.js +0 -9
  1047. package/dist/components/BaseTile/renderItems.js.map +0 -1
  1048. package/dist/components/BaseTile/renderItems.mobile.d.ts +0 -2
  1049. package/dist/components/BaseTile/renderItems.mobile.js +0 -9
  1050. package/dist/components/BaseTile/renderItems.mobile.js.map +0 -1
  1051. package/dist/components/ContentPage/toMobilePage.d.ts +0 -2
  1052. package/dist/components/ContentPage/toMobilePage.js.map +0 -1
  1053. package/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
  1054. package/dist/ui-kit/Img.js.map +0 -1
  1055. package/dist/ui-kit/Img.mobile.js.map +0 -1
  1056. package/lib/components/BaseTile/BaseTile.mobile.d.ts +0 -5
  1057. package/lib/components/BaseTile/BaseTile.mobile.js +0 -15
  1058. package/lib/components/BaseTile/BaseTile.mobile.js.map +0 -1
  1059. package/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
  1060. package/lib/components/BaseTile/BaseTileInner.js +0 -12
  1061. package/lib/components/BaseTile/BaseTileInner.js.map +0 -1
  1062. package/lib/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
  1063. package/lib/components/BaseTile/BaseTileInner.mobile.js +0 -12
  1064. package/lib/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
  1065. package/lib/components/BaseTile/getHeadingType.d.ts +0 -1
  1066. package/lib/components/BaseTile/getHeadingType.js.map +0 -1
  1067. package/lib/components/BaseTile/renderButton.d.ts +0 -2
  1068. package/lib/components/BaseTile/renderButton.js +0 -9
  1069. package/lib/components/BaseTile/renderButton.js.map +0 -1
  1070. package/lib/components/BaseTile/renderButton.mobile.d.ts +0 -2
  1071. package/lib/components/BaseTile/renderButton.mobile.js +0 -10
  1072. package/lib/components/BaseTile/renderButton.mobile.js.map +0 -1
  1073. package/lib/components/BaseTile/renderItems.d.ts +0 -2
  1074. package/lib/components/BaseTile/renderItems.js +0 -6
  1075. package/lib/components/BaseTile/renderItems.js.map +0 -1
  1076. package/lib/components/BaseTile/renderItems.mobile.d.ts +0 -2
  1077. package/lib/components/BaseTile/renderItems.mobile.js +0 -6
  1078. package/lib/components/BaseTile/renderItems.mobile.js.map +0 -1
  1079. package/lib/components/ContentPage/toMobilePage.d.ts +0 -2
  1080. package/lib/components/ContentPage/toMobilePage.js.map +0 -1
  1081. package/lib/ui-kit/Heading/HeadingProps.js +0 -2
  1082. package/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
  1083. package/lib/ui-kit/Img.js.map +0 -1
  1084. package/lib/ui-kit/Img.mobile.js.map +0 -1
  1085. package/mobile/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
  1086. package/mobile/dist/components/BaseTile/BaseTileInner.js +0 -14
  1087. package/mobile/dist/components/BaseTile/BaseTileInner.js.map +0 -1
  1088. package/mobile/dist/components/BaseTile/getHeadingType.d.ts +0 -1
  1089. package/mobile/dist/components/BaseTile/getHeadingType.js.map +0 -1
  1090. package/mobile/dist/components/BaseTile/renderButton.d.ts +0 -2
  1091. package/mobile/dist/components/BaseTile/renderButton.js +0 -13
  1092. package/mobile/dist/components/BaseTile/renderButton.js.map +0 -1
  1093. package/mobile/dist/components/BaseTile/renderItems.d.ts +0 -2
  1094. package/mobile/dist/components/BaseTile/renderItems.js +0 -9
  1095. package/mobile/dist/components/BaseTile/renderItems.js.map +0 -1
  1096. package/mobile/dist/components/ContentPage/toMobilePage.d.ts +0 -2
  1097. package/mobile/dist/components/ContentPage/toMobilePage.js.map +0 -1
  1098. package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
  1099. package/mobile/dist/ui-kit/Img.js.map +0 -1
  1100. package/mobile/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
  1101. package/mobile/lib/components/BaseTile/BaseTileInner.js +0 -12
  1102. package/mobile/lib/components/BaseTile/BaseTileInner.js.map +0 -1
  1103. package/mobile/lib/components/BaseTile/getHeadingType.d.ts +0 -1
  1104. package/mobile/lib/components/BaseTile/getHeadingType.js.map +0 -1
  1105. package/mobile/lib/components/BaseTile/renderButton.d.ts +0 -2
  1106. package/mobile/lib/components/BaseTile/renderButton.js +0 -10
  1107. package/mobile/lib/components/BaseTile/renderButton.js.map +0 -1
  1108. package/mobile/lib/components/BaseTile/renderItems.d.ts +0 -2
  1109. package/mobile/lib/components/BaseTile/renderItems.js +0 -6
  1110. package/mobile/lib/components/BaseTile/renderItems.js.map +0 -1
  1111. package/mobile/lib/components/ContentPage/toMobilePage.d.ts +0 -2
  1112. package/mobile/lib/components/ContentPage/toMobilePage.js.map +0 -1
  1113. package/mobile/lib/ui-kit/Heading/HeadingProps.js +0 -2
  1114. package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
  1115. package/mobile/lib/ui-kit/Img.js.map +0 -1
  1116. package/mobile/src/components/BaseTile/BaseTileInner.tsx +0 -31
  1117. package/mobile/src/components/BaseTile/renderButton.tsx +0 -20
  1118. package/mobile/src/components/BaseTile/renderItems.tsx +0 -12
  1119. package/src/components/BaseTile/BaseTile.mobile.tsx +0 -52
  1120. package/src/components/BaseTile/BaseTileInner.mobile.tsx +0 -31
  1121. package/src/components/BaseTile/BaseTileInner.tsx +0 -37
  1122. package/src/components/BaseTile/renderButton.mobile.tsx +0 -20
  1123. package/src/components/BaseTile/renderButton.tsx +0 -17
  1124. package/src/components/BaseTile/renderItems.mobile.tsx +0 -12
  1125. package/src/components/BaseTile/renderItems.tsx +0 -12
  1126. package/src/components/ContentPage/ContentPage.page.mobile.json +0 -508
@@ -186,7 +186,7 @@
186
186
  };
187
187
  }
188
188
 
189
- const HeadingClass = {
189
+ const HEADING_STYLE_MAP = {
190
190
  h1: 'text-title-lg tracking-[-0.3px]',
191
191
  h2: 'text-title',
192
192
  h3: 'text-title-sm',
@@ -195,9 +195,12 @@
195
195
  h6: 'text-title-2xs tracking-[0.2px]',
196
196
  };
197
197
  const Heading = JSX((props) => {
198
- const { className, type, text } = props;
199
- const Tag = type;
200
- return (jsx(Tag, { className: `font-sans font-medium ${HeadingClass[type]} ${className || ''}`, children: text }));
198
+ const { className, headingType, title } = props;
199
+ if (!headingType) {
200
+ return;
201
+ }
202
+ const Tag = headingType;
203
+ return (jsx(Tag, { className: `font-sans font-medium ${HEADING_STYLE_MAP[headingType]} ${className || ''}`, children: title }));
201
204
  });
202
205
 
203
206
  const projectSettings = new (class {
@@ -231,10 +234,14 @@
231
234
  }
232
235
  })();
233
236
 
234
- const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, ...imgProps }) => {
237
+ const svgColorsMap = {
238
+ none: '',
239
+ primary: 'text-primary-main',
240
+ };
241
+ const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
235
242
  const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
236
243
  if (asSVG) {
237
- return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
244
+ return (jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
238
245
  }
239
246
  return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
240
247
  });
@@ -246,7 +253,7 @@
246
253
  };
247
254
  const Headline = JSX(({ bgColor = 'transparent', align = 'left', className = '', title, description }) => {
248
255
  const textClasses = alignText[align];
249
- return (jsxs("section", { className: `p-[50px] ${bgColor} ${className}`, children: [title && jsx(Heading, { type: "h2", className: `text-primary-text ${textClasses}`, text: title }), description && (jsx("p", { className: `font-normal text-base mt-4 ${textClasses}`, children: description }))] }));
256
+ return (jsxs("section", { className: `p-[50px] ${bgColor} ${className}`, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${textClasses}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${textClasses}`, children: description }))] }));
250
257
  });
251
258
 
252
259
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
@@ -286,7 +293,7 @@
286
293
  single: 'flex gap-3.5 flex-col',
287
294
  };
288
295
  const LinkDocs = JSX(({ className = '', title, subtitle, align, documents, icon = 'DocIcon', columnsMode = 'double', }) => {
289
- return (jsxs("section", { className: `font-sans p-[50px] bg-white ${className}`, children: [title ? (jsx(Heading, { type: "h2", className: `${subtitle ? 'mb-2.5' : titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, text: title })) : null, subtitle ? (jsx("h3", { className: `text-base ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: subtitle })) : null, jsx(LinkDocsList, { className: linkColumnsModeStyleMap[columnsMode], columnsMode: columnsMode, documents: documents, icon: icon })] }));
296
+ return (jsxs("section", { className: `font-sans p-[50px] bg-white ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `${subtitle ? 'mb-2.5' : titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, title: title })) : null, subtitle ? (jsx("h3", { className: `text-base ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: subtitle })) : null, jsx(LinkDocsList, { className: linkColumnsModeStyleMap[columnsMode], columnsMode: columnsMode, documents: documents, icon: icon })] }));
290
297
  });
291
298
 
292
299
  const Img = JSX(({ className = '', image: { size, ...image } }) => {
@@ -302,11 +309,11 @@
302
309
  return format ? `image/${String(format)}` : undefined;
303
310
  }
304
311
 
305
- const PictureText = JSX(({ className, title, image, benefits }) => {
306
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [jsx(Heading, { type: "h2", className: "text-center", text: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
312
+ const PictureText = JSX(({ className = '', title, image, benefits }) => {
313
+ return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
307
314
  });
308
315
  function renderBenefit$1(benefit, i) {
309
- return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48" })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
316
+ return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
310
317
  }
311
318
 
312
319
  const textBlockStyleMaps = {
@@ -340,72 +347,6 @@
340
347
  return image?.src ? jsx(Img, { className: "pt-0.5 pr-3", image: image }) : null;
341
348
  }
342
349
 
343
- const AccordionBlocks = {
344
- Headline,
345
- LinkDocs,
346
- TextBlock,
347
- PictureText,
348
- };
349
-
350
- const AccordionItemInner = JSX(({ blocks, context }) => {
351
- return (jsx("div", { className: 'transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0', children: blocks?.length ? blocks.map(renderBlock$1(context)) : null }));
352
- });
353
- const renderBlock$1 = (context) => (block, i) => {
354
- const type = block?.accordionBlockType;
355
- if (!type || !(type in AccordionBlocks)) {
356
- return null;
357
- }
358
- const AccordionBlock = AccordionBlocks[type];
359
- return (jsx("div", { className: "mb-5 last:mb-0 pb-5", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
360
- };
361
-
362
- const isActiveHandler = ({ context, blocks }) => {
363
- const [isActive, setIsActive] = context.useState(false);
364
- const hasContent = blocks?.length;
365
- const icon = isActive ? 'MinusIcon' : 'PlusIcon';
366
- const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
367
- const handleToggle = (e) => {
368
- if (!hasContent) {
369
- return;
370
- }
371
- setIsActive(!isActive);
372
- const contentBlock = getContentBlock(e);
373
- contentBlock.style.maxHeight = contentBlock.style.maxHeight
374
- ? null
375
- : `${contentBlock.scrollHeight}px`;
376
- };
377
- return { isActive, hasContent, icon, handleToggle };
378
- };
379
-
380
- const AccordionItem = JSX(({ label, blocks, context }) => {
381
- const { hasContent, icon, handleToggle } = isActiveHandler({
382
- context,
383
- blocks,
384
- });
385
- return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text
386
- ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
387
- });
388
-
389
- const Accordion = JSX(({ title, accordionItems, context, className }) => {
390
- return (jsxs("section", { className: `p-[50px] font-sans bg-white text-primary-text ${className || ''}`, children: [title ? jsx(Heading, { type: "h4", className: "mb-2.5", text: title }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
391
- });
392
-
393
- const BenefitsBlock = JSX(({ className, title, benefits }) => {
394
- return (jsxs("section", { className: `font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${className || ''}`, children: [title ? jsx(Heading, { type: "h2", className: "max-w-[47rem] text-center", text: title }) : null, benefits?.length ? (jsx("div", { className: "grid grid-cols-2 gap-5 mt-9", children: benefits.map(renderStep) })) : null] }));
395
- });
396
- const renderStep = (benefit, i) => {
397
- return (jsxs("div", { className: "flex items-center p-10 gap-5 max-w-[580px]", children: [benefit.icon && (jsx(Icon, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px]", name: benefit.icon, width: "70", height: "70" })), jsxs("div", { children: [jsx("h3", { className: "font-medium text-xl m-0", children: benefit.label }), benefit.description && (jsx("div", { className: "font-normal text-sm mt-2", children: benefit.description }))] })] }, String(i)));
398
- };
399
-
400
- const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
401
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
402
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
403
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
404
- const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
405
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
406
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
407
- };
408
-
409
350
  const isURL = (href) => href?.includes('//');
410
351
  const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
411
352
  const getOrigin = (href) => {
@@ -463,28 +404,170 @@
463
404
  };
464
405
  }
465
406
 
407
+ const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded, version }) => {
408
+ const withoutText = !text && !aboveText && Boolean(appendLeft);
409
+ const buttonInnerClasses = version !== 'link'
410
+ ? `flex items-center justify-center
411
+ ${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
412
+ : null;
413
+ return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
414
+ });
415
+ function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
416
+ return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
417
+ }
418
+
466
419
  const buttonStyleMap = {
467
420
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
468
421
  secondary: 'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
422
+ link: '',
469
423
  };
470
424
  const buttonDisabledStyleMap = {
471
425
  primary: 'bg-secondary-dark text-secondary-text',
472
426
  secondary: 'bg-secondary-light text-secondary-text',
427
+ link: '',
473
428
  };
474
429
  const styleButton = 'text-center font-sans select-none';
475
430
  const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'none', ariaLabel, ...rest }) => {
476
431
  const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
477
- if (disabled) {
478
- return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
479
- }
432
+ return disabled
433
+ ? renderDisabledButton({ buttonInner, ariaLabel, className, version, rounded })
434
+ : renderButton$2({
435
+ buttonInner,
436
+ ariaLabel,
437
+ className,
438
+ version,
439
+ rounded,
440
+ href,
441
+ target,
442
+ onClick,
443
+ rest,
444
+ });
445
+ });
446
+ function renderButton$2({ className, buttonInner, ariaLabel, version, rounded, href, target, onClick, rest, }) {
480
447
  return (jsx("a", { className: `${styleButton} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...rest, children: buttonInner }));
448
+ }
449
+ function renderDisabledButton({ className, buttonInner, ariaLabel, version, rounded }) {
450
+ return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
451
+ }
452
+
453
+ const ButtonSection = JSX(({ context, className = '', buttons }) => {
454
+ const { handlerDecorator } = context;
455
+ const router = context.useRouter();
456
+ return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$1(useLink({ router, handlerDecorator }, button), index)) })) : null;
481
457
  });
482
- const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded }) => {
483
- const withoutText = !text && !aboveText && Boolean(appendLeft);
484
- const buttonInnerClasses = `flex items-center justify-center ${withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`;
485
- return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-2xs text-left", children: aboveText }), jsx("div", { className: "text-button font-medium text-left", children: text })] }))] }));
458
+ function renderButton$1({ icon, ...button }, i) {
459
+ if (!button?.text)
460
+ return;
461
+ return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
462
+ }
463
+
464
+ const Description = JSX((props) => {
465
+ const { className, description } = props;
466
+ return jsx("div", { className: `font-normal text-base ${className || ''}`, children: description });
467
+ });
468
+
469
+ const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3';
470
+ const TEXT_STYLE_MAP$1 = {
471
+ primary: 'text-primary-text',
472
+ secondary: 'text-white',
473
+ gray: 'text-secondary-text',
474
+ };
475
+ const LIST_STYLE_MAP$1 = {
476
+ primary: 'bg-primary-main',
477
+ secondary: 'bg-white',
478
+ gray: 'bg-secondary-text',
479
+ };
480
+ const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
481
+ return (jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: TEXT_STYLE_MAP$1[version], children: children })] }));
482
+ });
483
+ const getListStyle$1 = (version) => {
484
+ const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
485
+ return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
486
+ };
487
+
488
+ const List = JSX((props) => {
489
+ const { className = '', itemClassName, isDotted, items, version } = props;
490
+ return (jsx("section", { className: `${className}`, role: "list", children: items?.length
491
+ ? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
492
+ : null }));
493
+ });
494
+
495
+ const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
496
+ return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: `flex grow w-full justify-between`, children: [jsxs("div", { className: `flex flex-col justify-between`, children: [jsx("div", { children: children }), jsx("div", { children: buttons })] }), image] })] }));
486
497
  });
487
498
 
499
+ const getColSpan = (className) => {
500
+ const colSpanPrefix = 'col-span-';
501
+ const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
502
+ return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
503
+ };
504
+
505
+ function getTileHeadingType(className = '') {
506
+ const colSpan = getColSpan(className);
507
+ if (colSpan <= 4) {
508
+ return 'h4';
509
+ }
510
+ else if (colSpan <= 8) {
511
+ return 'h3';
512
+ }
513
+ else {
514
+ return 'h2';
515
+ }
516
+ }
517
+
518
+ function getTileMinHeight(className = '') {
519
+ const colSpan = getColSpan(className);
520
+ if (colSpan <= 6) {
521
+ return 'min-h-[300px]';
522
+ }
523
+ else if (colSpan <= 8) {
524
+ return 'min-h-[320px]';
525
+ }
526
+ else {
527
+ return 'min-h-[360px]';
528
+ }
529
+ }
530
+
531
+ function getTileRightPadding(className = '') {
532
+ const colSpan = getColSpan(className);
533
+ if (colSpan <= 6) {
534
+ return 'pr-9';
535
+ }
536
+ else if (colSpan <= 8) {
537
+ return 'pr-[4.75rem]';
538
+ }
539
+ else {
540
+ return 'pr-[9.4rem]';
541
+ }
542
+ }
543
+
544
+ const tileStyleMap = {
545
+ primary: 'bg-white text-primary-text',
546
+ secondary: 'bg-primary-main text-white',
547
+ };
548
+ const Tile = JSX((props) => {
549
+ const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
550
+ return (jsx("section", { className: `font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), children, items?.length ? jsx(List, { items: items }) : null] }) }));
551
+ });
552
+
553
+ const productTileStyleMap = {
554
+ primary: 'bg-white text-primary-text',
555
+ secondary: 'bg-primary-main text-white',
556
+ };
557
+ const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', }) => {
558
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
559
+ });
560
+ function renderBenefitLabel(benefit, i) {
561
+ return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
562
+ }
563
+ function renderBenefitDescription(benefit, i, version = 'primary') {
564
+ const labelStyleMap = {
565
+ primary: 'text-secondary-text',
566
+ secondary: 'text-white',
567
+ };
568
+ return (jsx("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
569
+ }
570
+
488
571
  const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
489
572
  return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
490
573
  });
@@ -505,6 +588,145 @@
505
588
  ? 'bg-secondary-light text-secondary-text'
506
589
  : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(SVG, { paths: ARROW_PATHS, viewBox: "0 0 16 16", fill: "none", width: "16", height: "16" }) })));
507
590
 
591
+ const cardVersionMap = {
592
+ primary: 'bg-white text-secondary-text',
593
+ secondary: 'bg-primary-main text-white',
594
+ };
595
+ const galleryLengthForScrollMap = {
596
+ normal: 3,
597
+ mini: 4,
598
+ };
599
+ const cardStyleMap = {
600
+ normal: 'min-w-[364px] w-[364px]',
601
+ mini: 'min-w-[260px] w-[260px]',
602
+ };
603
+ const cardWidthMap = {
604
+ normal: 380,
605
+ mini: 276,
606
+ };
607
+
608
+ const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
609
+ const TEXT_STYLE_MAP = {
610
+ primary: 'text-primary-text',
611
+ secondary: 'text-white',
612
+ gray: 'text-secondary-text',
613
+ };
614
+ const LIST_STYLE_MAP = {
615
+ primary: 'bg-primary-main',
616
+ secondary: 'bg-white',
617
+ gray: 'bg-secondary-text',
618
+ };
619
+ const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
620
+ return (jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version) }), jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
621
+ });
622
+ const getListStyle = (version) => {
623
+ const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
624
+ return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
625
+ };
626
+
627
+ const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
628
+ return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items.map((item, i) => renderItem(item.text, i, version)) })) : null] }), button?.text && jsx(Button, { className: "mt-6", ...button })] }));
629
+ });
630
+ function renderCardTitle(title, description, items) {
631
+ return (jsx("div", { className: `font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`, children: title }));
632
+ }
633
+ function renderItem(item, i, version) {
634
+ return (jsx(BlockItem, { version: version ?? 'primary', children: jsx("span", { className: "text-sm", children: item }) }, String(i)));
635
+ }
636
+
637
+ const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
638
+ return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsxs("div", { className: "flex flex-col items-center mb-8", children: [title ? jsx(Heading, { headingType: "h2", className: "text-center", title: title }) : null, description ? (jsx("div", { className: "font-normal text-base max-w-[600px] mt-2.5", children: description })) : null] }), jsx("div", { className: `flex ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
639
+ });
640
+ function renderCard({ card, version }, i) {
641
+ return (jsx("section", { className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between
642
+ items-stretch ${cardStyleMap[version]} ${cardVersionMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
643
+ }
644
+
645
+ const GalleryInner = JSX(({ context, cards = [], className = '', version = 'normal', ...rest }) => {
646
+ const [activeCardIndex, setActiveCardIndex] = context.useState(0);
647
+ const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
648
+ const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
649
+ const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
650
+ const showNextButton = isGalleryScrollAvailable &&
651
+ cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
652
+ const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
653
+ return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-1 z-10", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })] }));
654
+ });
655
+
656
+ const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
657
+
658
+ const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
659
+
660
+ const AccordionBlocks = {
661
+ Headline,
662
+ LinkDocs,
663
+ TextBlock,
664
+ PictureText,
665
+ Tile,
666
+ ProductTile,
667
+ Gallery,
668
+ MiniGallery,
669
+ };
670
+
671
+ const AccordionItemInner = JSX(({ blocks, context }) => {
672
+ return (jsx("div", { className: 'transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0', children: blocks?.length ? blocks.map(renderBlock$1(context)) : null }));
673
+ });
674
+ const renderBlock$1 = (context) => (block, i) => {
675
+ const type = block?.accordionBlockType;
676
+ if (!type || !(type in AccordionBlocks)) {
677
+ return null;
678
+ }
679
+ const AccordionBlock = AccordionBlocks[type];
680
+ return (jsx("div", { className: "mb-5 last:mb-0 pb-5", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
681
+ };
682
+
683
+ const isActiveHandler = ({ context, blocks }) => {
684
+ const [isActive, setIsActive] = context.useState(false);
685
+ const hasContent = blocks?.length;
686
+ const icon = isActive ? 'MinusIcon' : 'PlusIcon';
687
+ const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
688
+ const handleToggle = (e) => {
689
+ if (!hasContent) {
690
+ return;
691
+ }
692
+ setIsActive(!isActive);
693
+ const contentBlock = getContentBlock(e);
694
+ contentBlock.style.maxHeight = contentBlock.style.maxHeight
695
+ ? null
696
+ : `${contentBlock.scrollHeight}px`;
697
+ };
698
+ return { isActive, hasContent, icon, handleToggle };
699
+ };
700
+
701
+ const AccordionItem = JSX(({ label, blocks, context }) => {
702
+ const { hasContent, icon, handleToggle } = isActiveHandler({
703
+ context,
704
+ blocks,
705
+ });
706
+ return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text
707
+ ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
708
+ });
709
+
710
+ const Accordion = JSX(({ title, accordionItems, context, className }) => {
711
+ return (jsxs("section", { className: `p-[50px] font-sans bg-white text-primary-text ${className || ''}`, children: [title ? jsx(Heading, { headingType: "h4", className: "mb-2.5", title: title }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
712
+ });
713
+
714
+ const BenefitsBlock = JSX(({ className, title, benefits }) => {
715
+ return (jsxs("section", { className: `font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${className || ''}`, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefits?.length ? (jsx("div", { className: "grid grid-cols-2 gap-5 mt-9", children: benefits.map(renderStep) })) : null] }));
716
+ });
717
+ const renderStep = (benefit, i) => {
718
+ return (jsxs("div", { className: "flex items-center p-10 gap-5 max-w-[580px]", children: [benefit.icon && (jsx(Icon, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px]", name: benefit.icon, width: "70", height: "70" })), jsxs("div", { children: [jsx("h3", { className: "font-medium text-xl m-0", children: benefit.label }), benefit.description && (jsx("div", { className: "font-normal text-sm mt-2", children: benefit.description }))] })] }, String(i)));
719
+ };
720
+
721
+ const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
722
+ const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
723
+ const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
724
+ const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
725
+ const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
726
+ const showPrevButton = isScrollAvailable && activeCardIndex > 0;
727
+ return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
728
+ };
729
+
508
730
  const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
509
731
  const BORDER_CLASSES$1 = 'border-main-stroke border-solid border';
510
732
  const DIVIDER_CLASSES$1 = 'border-main-divider border border-t-0 border-x-0';
@@ -512,7 +734,7 @@
512
734
  const COLS_LENGTH_FOR_SCROLL$1 = 2;
513
735
  const COLUMN_WIDTH$1 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
514
736
 
515
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && (jsx(Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title && jsx(Heading, { type: "h4", className: "text-center text-white", text: title }), link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "font-medium text-xs py-[11px]", children: link.text }) }) }))] })));
737
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && (jsx(Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title && jsx(Heading, { headingType: "h4", className: "text-center text-white", title: title }), link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "font-medium text-xs py-[11px]", children: link.text }) }) }))] })));
516
738
 
517
739
  const carouselContainerClassesMap = {
518
740
  comparison: 'flex gap-4 duration-1000',
@@ -551,7 +773,7 @@
551
773
  setActiveCardIndex,
552
774
  });
553
775
  const showToggle = () => setIsShowAllRow(!isShowAllRow);
554
- return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [jsx(Heading, { type: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", text: title }), jsxs("div", { role: "table", children: [colHeaders?.length ? (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader", scope: "col" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header, link: header.link && useLink({ router, handlerDecorator }, header.link) }, String(i)))) })] })) : null, rowData?.length ? (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null, visibleRowLength ? (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: showToggle, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans font-medium text-xs py-[11px]", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) })) : null] }));
776
+ return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", title: title }), jsxs("div", { role: "table", children: [colHeaders?.length ? (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader", scope: "col" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header, link: header.link && useLink({ router, handlerDecorator }, header.link) }, String(i)))) })] })) : null, rowData?.length ? (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null, visibleRowLength ? (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: showToggle, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans font-medium text-xs py-[11px]", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) })) : null] }));
555
777
  });
556
778
 
557
779
  function useCreditCalculatorData(useAsyncData, directoryName) {
@@ -691,104 +913,12 @@
691
913
  return (jsx("section", { className: `font-sans text-primary-text p-10 bg-white ${className || ''}`, children: jsxs("div", { className: `box-border p-[49px] pr-[56px] mx-auto w-max ${borderStyle}`, children: [jsxs("div", { className: "flex justify-between ", children: [jsxs("div", { className: "mr-[42px]", children: [jsx(InputRange, { title: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u20BD", items: [
692
914
  `От ${addSpacesBetweenNumbers(minSum)} рублей`,
693
915
  `До ${addSpacesBetweenNumbers(maxSum)} рублей`,
694
- ], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }), jsx(InputRange, { className: "mt-[23px]", title: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ['Или выберите из предложенных вариантов ниже'], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }), jsx("div", { className: "flex mb-7", children: creditTermYears.map((number, i) => renderButton$1(number, i, handleButtonClick)) }), jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", checked: isAnnuityChecked, onChange: setIsAnnuityChecked }), jsx(Checkbox, { className: "mt-3 mb-7", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsuranceChecked, onChange: setIsInsuranceChecked })] }), jsxs("div", { className: "box-border h-fit p-9 bg-primary-main rounded-md text-white", children: [jsx("div", { className: "text-base mb-[18px]", children: "\u041D\u0430\u0448\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "text-sm opacity-60", children: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436" }), jsxs("div", { className: "text-lg mb-3", children: [addSpacesBetweenNumbers(Math.round(montlyPayment)), " \u20BD"] }), jsx("div", { className: "text-sm opacity-60", children: "\u0421\u0442\u0430\u0432\u043A\u0430" }), jsxs("div", { className: "text-lg", children: [rate, " %"] })] })] }), jsxs("div", { className: "flex items-center", children: [jsx(Button, { className: "mr-3", text: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443", version: "primary", href: "#" }), jsx("div", { className: "w-80 text-2xs leading-4 text-secondary-text", "aria-label": "\u0421\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u044F \u0437\u0430\u044F\u0432\u043A\u0443, \u0432\u044B \u0441\u043E\u0433\u043B\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044C \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0424\u0417 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB" })] })] }) }));
916
+ ], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }), jsx(InputRange, { className: "mt-[23px]", title: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ['Или выберите из предложенных вариантов ниже'], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }), jsx("div", { className: "flex mb-7", children: creditTermYears.map((number, i) => renderButton(number, i, handleButtonClick)) }), jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", checked: isAnnuityChecked, onChange: setIsAnnuityChecked }), jsx(Checkbox, { className: "mt-3 mb-7", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsuranceChecked, onChange: setIsInsuranceChecked })] }), jsxs("div", { className: "box-border h-fit p-9 bg-primary-main rounded-md text-white", children: [jsx("div", { className: "text-base mb-[18px]", children: "\u041D\u0430\u0448\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "text-sm opacity-60", children: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436" }), jsxs("div", { className: "text-lg mb-3", children: [addSpacesBetweenNumbers(Math.round(montlyPayment)), " \u20BD"] }), jsx("div", { className: "text-sm opacity-60", children: "\u0421\u0442\u0430\u0432\u043A\u0430" }), jsxs("div", { className: "text-lg", children: [rate, " %"] })] })] }), jsxs("div", { className: "flex items-center", children: [jsx(Button, { className: "mr-3", text: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443", version: "primary", href: "#" }), jsx("div", { className: "w-80 text-2xs leading-4 text-secondary-text", "aria-label": "\u0421\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u044F \u0437\u0430\u044F\u0432\u043A\u0443, \u0432\u044B \u0441\u043E\u0433\u043B\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044C \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0424\u0417 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB" })] })] }) }));
695
917
  });
696
- function renderButton$1(number, i, handleClick) {
918
+ function renderButton(number, i, handleClick) {
697
919
  return (jsx("button", { className: "bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none", onClick: () => handleClick(number), children: jsxs("span", { className: "font-semibold text-sm", children: [number, " ", number === 1 ? 'год' : number > 4 ? 'лет' : 'года'] }) }, String(i)));
698
920
  }
699
921
 
700
- const getColSpan = (className) => {
701
- const colSpanPrefix = 'col-span-';
702
- const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
703
- return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
704
- };
705
-
706
- function renderButton({ icon, ...button }, i) {
707
- if (!button?.text)
708
- return;
709
- return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
710
- }
711
-
712
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
713
- const TEXT_STYLE_MAP = {
714
- primary: 'text-primary-text',
715
- secondary: '',
716
- };
717
- const LIST_STYLE_MAP = {
718
- primary: 'bg-primary-main',
719
- secondary: 'bg-white',
720
- };
721
- const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary', white }) => {
722
- return (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version, white) }), jsx("span", { className: white ? 'text-white' : TEXT_STYLE_MAP[version], children: text || children })] }));
723
- });
724
- const getListStyle = (version, white) => {
725
- const color = white ? 'bg-white' : LIST_STYLE_MAP[version];
726
- const size = version === 'primary'
727
- ? 'w-2 h-2 min-w-2 min-h-2 mt-2'
728
- : 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
729
- return `${LIST_STYLE_CLASSES} ${color} ${size}`;
730
- };
731
-
732
- function renderItems(items = [], version) {
733
- return (jsx("section", { className: "max-w-[600px] mt-5", role: "list", children: items.map((_, i) => (jsx(BlockItem, { className: "mt-2.5 first:mt-0", text: _, version: version }, String(i)))) }));
734
- }
735
-
736
- const BaseTileInner = JSX(({ context, description, children, buttons, image, items, version = 'primary' }) => {
737
- const router = context.useRouter();
738
- const { handlerDecorator } = context;
739
- return (jsxs("div", { className: `flex grow w-full justify-between`, children: [jsxs("div", { className: `flex flex-col justify-between`, children: [jsxs("div", { children: [description && (jsx("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? (jsx("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && jsx(Img, { className: "mt-auto ml-7", image: image })] }));
740
- });
741
-
742
- function getHeadingType(className = '') {
743
- const colSpan = getColSpan(className);
744
- if (colSpan <= 4) {
745
- return 'h4';
746
- }
747
- else if (colSpan <= 8) {
748
- return 'h3';
749
- }
750
- else {
751
- return 'h2';
752
- }
753
- }
754
-
755
- const BaseTile = JSX(({ className, context, title, headingType, description, children, buttons, image, items, version = 'primary', }) => {
756
- return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && (jsx(Heading, { type: headingType || getHeadingType(className), text: title, className: `whitespace-pre-wrap max-w-[600px] ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), jsx(BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items, version: version })] }));
757
- });
758
-
759
- const tileStyleMap = {
760
- primary: 'bg-white text-primary-text',
761
- secondary: 'bg-primary-main text-white',
762
- };
763
- const Tile = JSX((props) => {
764
- const { children, className = '', version = 'primary', role } = props;
765
- return (jsx("section", { className: `font-sans p-9 box-border ${className || ''} ${tileStyleMap[version]} ${getContainerPaddingRight(className)} ${getContainerMinHeight(className)} `, role: role, children: jsx(BaseTile, { ...props, children: children }) }));
766
- });
767
- function getContainerPaddingRight(className = '') {
768
- const colSpan = getColSpan(className);
769
- if (colSpan <= 6) {
770
- return 'pr-9';
771
- }
772
- else if (colSpan <= 8) {
773
- return 'pr-[4.75rem]';
774
- }
775
- else {
776
- return 'pr-[9.4rem]';
777
- }
778
- }
779
- function getContainerMinHeight(className = '') {
780
- const colSpan = getColSpan(className);
781
- if (colSpan <= 6) {
782
- return 'min-h-[300px]';
783
- }
784
- else if (colSpan <= 8) {
785
- return 'min-h-[320px]';
786
- }
787
- else {
788
- return 'min-h-[360px]';
789
- }
790
- }
791
-
792
922
  const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
793
923
  const CURRENCY_CODES = ['USD', 'EUR'];
794
924
  const CURRENCY_ICONS_MAP = {
@@ -802,12 +932,9 @@
802
932
  version: 'secondary',
803
933
  },
804
934
  ];
805
- const ExchangeRateTile = JSX(({ className, context, title }) => {
935
+ const ExchangeRateTile = JSX(({ className = '', context, title = 'Курсы обмена валют' }) => {
806
936
  const { data } = context.useAsyncData(CBR_EXCHANGE_RATE_URL, fetchExchangeRate);
807
- return (jsx(Tile, { className: className, context: context, title: title || 'Курсы обмена валют', buttons: buttons, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx(CurrencyTH, { children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx(CurrencyTH, { className: "pl-11", children: "\u041A\u0443\u0440\u0441" })] }) }), jsx("tbody", { children: CURRENCY_CODES.map((code) => {
808
- const value = (data?.Valute || {})[code]?.Value;
809
- return (jsxs("tr", { children: [jsx(CurrencyTD, { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), jsx("span", { className: "ml-2", children: code })] }) }), jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
810
- }) })] }) }));
937
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsx(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx(CurrencyTH, { children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx(CurrencyTH, { className: "pl-11", children: "\u041A\u0443\u0440\u0441" })] }) }), jsx("tbody", { children: CURRENCY_CODES.map(renderCurrencyRow(data)) })] }) }) }));
811
938
  });
812
939
  const CurrencyTH = JSX(({ className = '', children }) => (jsx("th", { className: `text-left font-normal text-sm text-secondary-text ${className}`, children: children })));
813
940
  const CurrencyTD = JSX(({ className = '', children }) => (jsx("td", { className: `text-left font-normal text-base text-primary-text ${className}`, children: children })));
@@ -817,6 +944,10 @@
817
944
  }
818
945
  const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
819
946
  const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
947
+ const renderCurrencyRow = (data) => (code) => {
948
+ const value = (data?.Valute || {})[code]?.Value;
949
+ return (jsxs("tr", { children: [jsx(CurrencyTD, { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), jsx("span", { className: "ml-2", children: code })] }) }), jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
950
+ };
820
951
 
821
952
  const LOGO_PATHS = [
822
953
  'm13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z',
@@ -946,55 +1077,6 @@
946
1077
  return (jsxs("footer", { className: `px-9 py-10 bg-white ${className || ''}`, children: [jsxs("div", { className: "flex items-stretch gap-[54px] pb-8 xl:gap-8", children: [jsx(Logo, { className: `${LEFT_COL_WIDTH_FULL_HD} ${LEFT_COL_WIDTH_SMALL_DESKTOP}` }), jsx(SearchBar, { context: context, className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-[54px] xl:gap-8", children: [jsx(Contacts, { className: `${LEFT_COL_WIDTH_FULL_HD} shrink-0 overflow-hidden ${LEFT_COL_WIDTH_SMALL_DESKTOP}`, items: contacts, context: context, hasButton: true }), jsx(Sitemap, { className: "pt-[3px]", context: context, items: topItems })] }), jsx(SocialMedia, { media: socialMedia, context: context }), jsx(HorizontalNavigation, { links: relatedEnterprises, context: context }), jsx(TextInformation, { links: documents, context: context })] }));
947
1078
  });
948
1079
 
949
- const cardVersionMap = {
950
- primary: 'text-secondary-text',
951
- secondary: '',
952
- };
953
- const galleryLengthForScrollMap = {
954
- normal: 3,
955
- mini: 4,
956
- };
957
- const cardStyleMap = {
958
- normal: 'min-w-[364px] w-[364px]',
959
- mini: 'min-w-[260px] w-[260px]',
960
- };
961
- const cardWidthMap = {
962
- normal: 380,
963
- mini: 276,
964
- };
965
-
966
- const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
967
- const cardVersionClasses = cardVersionMap[version ?? 'primary'];
968
- return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description && (jsx("div", { className: `font-normal text-sm mt-2 ${cardVersionClasses}`, children: description })), items?.length ? (jsx("section", { className: `max-w-[308px] mt-2 ${cardVersionClasses}`, role: "list", children: items.map((item, i) => renderItem(item, i, version)) })) : null] }), button?.text && jsx(Button, { className: "mt-6", ...button })] }));
969
- });
970
- function renderCardTitle(title, description, items) {
971
- return (jsx("div", { className: `font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`, children: title }));
972
- }
973
- function renderItem(item, i, version) {
974
- return (jsx(BlockItem, { version: version ?? 'primary', children: jsx("span", { className: "text-sm", children: item }) }, String(i)));
975
- }
976
-
977
- const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
978
- return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsxs("div", { className: "flex flex-col items-center mb-8", children: [title ? jsx(Heading, { type: "h2", className: "text-center", text: title }) : null, description ? (jsx("div", { className: "font-normal text-base max-w-[600px] mt-2.5", children: description })) : null] }), jsx("div", { className: `flex ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
979
- });
980
- function renderCard({ card, version, context }, i) {
981
- return (jsx(Tile, { context: context, className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between
982
- items-stretch ${cardStyleMap[version]} w-full col-span-4`, version: card.version, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
983
- }
984
-
985
- const GalleryInner = JSX(({ context, cards = [], className, version = 'normal', ...rest }) => {
986
- const [activeCardIndex, setActiveCardIndex] = context.useState(0);
987
- const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
988
- const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
989
- const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
990
- const showNextButton = isGalleryScrollAvailable &&
991
- cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
992
- const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
993
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-1 z-10", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })] }));
994
- });
995
-
996
- const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
997
-
998
1080
  const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
999
1081
 
1000
1082
  const isHrefActive = (href, router, cmp = (href, baseHref) => baseHref.startsWith(href)) => {
@@ -1070,7 +1152,7 @@
1070
1152
  };
1071
1153
  const HeaderSecondaryMenu = JSX(({ context, className, defaultLocation = '', bgColor = 'bg-white' }) => {
1072
1154
  const [city, getCity] = context.useGeolocation(defaultLocation);
1073
- return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(Icon, { name: "LoupeIcon", className: "h-full", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u0440\u043E\u0444\u0438\u043B\u044C", children: jsx(Icon, { name: "ProfileIcon", className: "h-full", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${DOP_LINKS_COLORS_MAP[bgColor]} min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(Icon, { name: DOP_LINKS_ICON_NAME_MAP[bgColor], className: "h-full", asSVG: true }) })] }));
1155
+ return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(Icon, { name: "LoupeIcon", className: "h-full", asSVG: true, color: "none" }) }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u0440\u043E\u0444\u0438\u043B\u044C", children: jsx(Icon, { name: "ProfileIcon", className: "h-full", asSVG: true, color: "none" }) }), jsx(HeaderSecondaryMenuButton, { className: `${DOP_LINKS_COLORS_MAP[bgColor]} min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(Icon, { name: DOP_LINKS_ICON_NAME_MAP[bgColor], className: "h-full", asSVG: true, color: "none" }) })] }));
1074
1156
  });
1075
1157
 
1076
1158
  const BORDER_COLORS = {
@@ -1090,10 +1172,8 @@
1090
1172
  return (jsx("header", { className: `pt-5 pb-8 px-20 ${bgColor} ${className || ''}`, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor }), topMenu, jsx(HeaderSecondaryMenu, { context: context, className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), jsx("div", { className: `mt-5 h-[1px] ${BORDER_COLORS[bgColor]}` }), jsx("nav", { className: "mt-5", children: subMenu })] }) }));
1091
1173
  });
1092
1174
 
1093
- const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
1094
-
1095
- const MobileAppTile = JSX(({ className, context, title = 'Мобильное приложение', qr, buttons = [] }) => {
1096
- return (jsx(Tile, { className: className, context: context, title: title, buttons: buttons, children: jsxs("div", { className: "flex items-center", children: [qr?.src && qr?.href && (jsx("a", { href: qr.href, target: "_blank", children: jsx("img", { src: qr.src, alt: title, title: title, width: "164", height: "164", className: "w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light" }) })), jsx("span", { className: "font-normal text-sm text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }));
1175
+ const MobileAppTile = JSX(({ className = '', context, title = 'Мобильное приложение', qr, buttons = [] }) => {
1176
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsx(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: jsxs("div", { className: "flex items-center", children: [qr?.src && qr?.href && (jsx("a", { href: qr.href, target: "_blank", children: jsx("img", { src: qr.src, alt: title, title: title, width: "164", height: "164", className: "w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light" }) })), jsx("span", { className: "font-normal text-sm text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }) }));
1097
1177
  });
1098
1178
 
1099
1179
  const NavigationItem = JSX(({ className, text, onClick, href, target, isActive }) => (jsx("a", { className: `bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${className || ''} ${isActive ? 'border-primary-main text-primary-main' : 'border-white text-secondary-text'}`, onClick: onClick, href: href, target: target, children: text })));
@@ -1143,11 +1223,11 @@
1143
1223
  secondary: 'text-white',
1144
1224
  };
1145
1225
  function renderBenefit(benefit, i, version) {
1146
- return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon && (jsx(Icon, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${benefitIconBgStyleMap[version]}`, name: benefit.icon, width: "24", height: "24" })), jsxs("div", { className: "flex gap-1 flex-col h-full max-w-[149px]", children: [jsx("div", { className: `font-medium text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
1226
+ return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon && (jsx(Icon, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${benefitIconBgStyleMap[version]}`, name: benefit.icon, width: "24", height: "24", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full max-w-[149px]", children: [jsx("div", { className: `font-medium text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
1147
1227
  }
1148
1228
 
1149
- const ProductBlockInner = JSX(({ className, context, title, headingType, description, benefits, buttons, image, items, version = 'primary', }) => {
1150
- return (jsxs("div", { className: `flex grow justify-between items-stretch ${className || ''}`, children: [jsx("div", { className: 'flex flex-col', children: jsx(BaseTile, { context: context, title: title, headingType: headingType || 'h2', description: description, items: items, buttons: buttons, version: version, children: benefits?.length ? (jsx("div", { className: "flex gap-6 mt-6 mb-3.5", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null }) }), image?.src && jsx(Img, { className: "mt-auto", image: image })] }));
1229
+ const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
1230
+ return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: 'flex flex-col', children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: [description && (jsx(Description, { className: "mt-4 max-w-[600px]", description: description })), benefits?.length ? (jsx("div", { className: "flex gap-6 mt-6 mb-3.5", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { items: items }) : null] }) }), image?.src && jsx(Img, { className: "mt-auto", image: image })] }));
1151
1231
  });
1152
1232
 
1153
1233
  const productBlockStyleMap = {
@@ -1187,23 +1267,12 @@
1187
1267
  return (jsxs("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-5 grow basis-0`, children: [jsxs("div", { className: "border-0 border-r border-solid border-main-divider px-6", children: [jsx("div", { className: `text-sm font-medium pb-1 group-hover:text-primary-text ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: "text-xs text-secondary-text pb-[2px]", children: slide.desc })] }), jsx("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } })] }, String(i)));
1188
1268
  }
1189
1269
 
1190
- const ProductTile = JSX((props) => {
1191
- const { benefits, version } = props;
1192
- return (jsx(Tile, { ...props, children: jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) }) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }) }));
1193
- });
1194
- function renderBenefitLabel(benefit, i) {
1195
- return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
1196
- }
1197
- function renderBenefitDescription(benefit, i, version = 'primary') {
1198
- const labelStyleMap = {
1199
- primary: 'text-secondary-text',
1200
- secondary: 'text-white',
1201
- };
1202
- return (jsx("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
1203
- }
1204
-
1205
- const PromoTile = JSX(({ className, context, title = 'Акции и спецпредложения', date, description, buttons = [], version, }) => {
1206
- return (jsx(Tile, { className: className, context: context, title: title, buttons: buttons, version: version, children: jsxs("div", { className: "mt-1.5", children: [date && jsx("div", { className: "text-sm mb-2", children: formatDate(date) }), jsx("div", { className: "text-base", children: description })] }) }));
1270
+ const promoTileStyleMap = {
1271
+ primary: 'bg-white text-primary-text',
1272
+ secondary: 'bg-primary-main text-white',
1273
+ };
1274
+ const PromoTile = JSX(({ className = '', context, title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', }) => {
1275
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${promoTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsx(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-sm mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-base", children: description })] }) }) }));
1207
1276
  });
1208
1277
  function formatDate(date) {
1209
1278
  const dateObj = new Date(date);
@@ -1216,7 +1285,7 @@
1216
1285
  }
1217
1286
 
1218
1287
  const StepsBlock = JSX(({ className, title, showLines = true, steps }) => {
1219
- return (jsxs("section", { className: `box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${className || ''}`, children: [jsx(Heading, { type: "h2", className: "max-w-[47rem] text-center", text: title }), steps?.length ? (jsxs("div", { className: `box-border py-0.5 mb-0.5 ${title ? 'mt-9' : ''}`, children: [jsx("div", { className: "flex items-center px-[88px]", children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}` }))(steps.map((step, i) => renderStepIcon(step, i))) }), jsx("div", { className: "flex justify-between gap-x-[101px]", children: steps.map(renderStepTitle) })] })) : null] }));
1288
+ return (jsxs("section", { className: `box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${className || ''}`, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title }), steps?.length ? (jsxs("div", { className: `box-border py-0.5 mb-0.5 ${title ? 'mt-9' : ''}`, children: [jsx("div", { className: "flex items-center px-[88px]", children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}` }))(steps.map((step, i) => renderStepIcon(step, i))) }), jsx("div", { className: "flex justify-between gap-x-[101px]", children: steps.map(renderStepTitle) })] })) : null] }));
1220
1289
  });
1221
1290
  const renderStepIcon = (step, i) => {
1222
1291
  return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon && jsx(Icon, { name: step.icon, width: "48", height: "48" })) || (jsx("span", { className: "font-medium text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
@@ -1234,12 +1303,12 @@
1234
1303
  const cellWrapperClasses = `first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 ${isLastRow ? 'border-t-0 rounded-b-md' : ''}`;
1235
1304
  return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { children: cell.map((item, i) => renderCellInner(item, i)) }) }));
1236
1305
  });
1237
- const renderCellInner = ({ label, description, list, image, buttons }, i) => (jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label && jsx("div", { className: "text-xl font-medium m-0", children: label }), description && jsx("div", { className: "text-sm text-secondary-text", children: description }), list?.items?.length ? (jsx("div", { className: "flex flex-col justify-between items-start", children: jsx("div", { role: "list", children: list.items.map((text, idx) => (jsx(BlockItem, { text: text, version: list.version ?? 'secondary', isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && jsx(Img, { image: image }), buttons?.length
1306
+ const renderCellInner = ({ label, description, list, image, buttons }, i) => (jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label && jsx("div", { className: "text-xl font-medium m-0", children: label }), description && jsx("div", { className: "text-sm text-secondary-text", children: description }), list?.items?.length ? (jsx("div", { className: "flex flex-col justify-between items-start", children: jsx("div", { role: "list", children: list.items.map((text, idx) => (jsx(BlockItem, { className: "text-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && jsx(Img, { image: image }), buttons?.length
1238
1307
  ? buttons.map(({ icon, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 ? 'ml-3' : ''} w-12 h-12`, appendLeft: icon && jsx(Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps }, String(idx))))
1239
1308
  : null] }, String(i)));
1240
1309
 
1241
1310
  const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow }) => {
1242
- return (jsxs(TableRowContainer, { children: [jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon && (jsx(Icon, { className: "mr-[14px] max-w-6 max-h-6", name: header.icon, width: "24px", height: "24px" })), header?.title] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
1311
+ return (jsxs(TableRowContainer, { children: [jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon && (jsx(Icon, { className: "mr-[14px] max-w-6 max-h-6", name: header.icon, width: "24px", height: "24px", asSVG: true })), header?.title] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
1243
1312
  });
1244
1313
 
1245
1314
  const TariffsTable = JSX(({ className, context, title, rowHeaders, columns }) => {
@@ -1255,7 +1324,7 @@
1255
1324
  activeCardIndex,
1256
1325
  setActiveCardIndex,
1257
1326
  });
1258
- return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [jsx(Heading, { type: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", text: title }), jsxs("div", { role: "table", children: [rowData?.length ? (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TariffsTableRow, { row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex }, String(i)))), isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null, isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] })] }));
1327
+ return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", title: title }), jsxs("div", { role: "table", children: [rowData?.length ? (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TariffsTableRow, { row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex }, String(i)))), isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null, isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] })] }));
1259
1328
  });
1260
1329
 
1261
1330
  const Blocks = {
@@ -1315,10 +1384,8 @@
1315
1384
  blockClassName: style2className(block.style),
1316
1385
  block,
1317
1386
  render: (props) => {
1318
- const { version, content, blocks } = props.block;
1319
- return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content, children: blocks?.length
1320
- ? blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i))
1321
- : null }, `${type}-${i}`));
1387
+ const { version, content } = props.block;
1388
+ return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content }, `${type}-${i}`));
1322
1389
  },
1323
1390
  }, `block-${i}`);
1324
1391
  }
@@ -1333,35 +1400,33 @@
1333
1400
  : null, children] }));
1334
1401
  });
1335
1402
 
1336
- function toMobilePage(contentPage) {
1403
+ function isBlockInRegistry(block, registry) {
1404
+ return block.type in registry;
1405
+ }
1406
+
1407
+ function normalizeBlock(block) {
1408
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1409
+ const { mobile, ...rest } = block;
1410
+ return rest;
1411
+ }
1412
+
1413
+ function normalizePage(contentPage) {
1337
1414
  const { blocks, slots } = contentPage;
1338
1415
  return {
1339
1416
  ...contentPage,
1340
- blocks: getMobileBlocks(blocks),
1417
+ blocks: getDesktopBlocks(blocks),
1341
1418
  slots: slots &&
1342
1419
  Object.keys(slots).reduce((res, key) => ({
1343
1420
  ...res,
1344
1421
  [key]: {
1345
1422
  ...slots[key],
1346
- blocks: getMobileBlocks(slots[key].blocks),
1423
+ blocks: getDesktopBlocks(slots[key].blocks),
1347
1424
  },
1348
1425
  }), {}),
1349
1426
  };
1350
1427
  }
1351
- function getMobileBlocks(blocks) {
1352
- return blocks?.filter(({ mobile }) => !mobile?.hidden).map(toMobileBlock);
1353
- }
1354
- function toMobileBlock(block) {
1355
- const { mobile } = block;
1356
- if (mobile) {
1357
- return {
1358
- ...block,
1359
- style: mobile.style?.length ? mobile.style : block.style,
1360
- };
1361
- }
1362
- else {
1363
- return block;
1364
- }
1428
+ function getDesktopBlocks(blocks) {
1429
+ return blocks?.filter((block) => isBlockInRegistry(block, Blocks)).map(normalizeBlock);
1365
1430
  }
1366
1431
 
1367
1432
  exports.Blocks = Blocks;
@@ -1372,9 +1437,9 @@
1372
1437
  exports.Icon = Icon;
1373
1438
  exports.LikeAPI = LikeAPI;
1374
1439
  exports.joinList = joinList;
1440
+ exports.normalizePage = normalizePage;
1375
1441
  exports.projectSettings = projectSettings;
1376
1442
  exports.setup = setup;
1377
- exports.toMobilePage = toMobilePage;
1378
1443
  exports.url = url;
1379
1444
 
1380
1445
  Object.defineProperty(exports, '__esModule', { value: true });