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

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 (1167) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +356 -286
  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 +28 -0
  48. package/dist/components/ContentPage/normalizePage.js.map +1 -0
  49. package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -0
  50. package/dist/components/ContentPage/normalizePage.mobile.js +30 -0
  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 +4 -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/LinkDocsContent.d.ts +1 -1
  78. package/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
  79. package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  80. package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  81. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  82. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  83. package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  84. package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  85. package/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
  86. package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  87. package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  88. package/dist/components/MobileAppTile/MobileAppTile.js +8 -3
  89. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  90. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  91. package/dist/components/PictureText/PictureText.js +4 -4
  92. package/dist/components/PictureText/PictureText.js.map +1 -1
  93. package/dist/components/PictureText/PictureTextContent.d.ts +4 -2
  94. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  95. package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  96. package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  97. package/dist/components/ProductBlock/ProductBlockInner.js +7 -3
  98. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  99. package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
  100. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
  101. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  102. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  103. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  104. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  105. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  106. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  107. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  108. package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  109. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  110. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
  111. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  112. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  113. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  114. package/dist/components/ProductTile/ProductTile.js +14 -4
  115. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  116. package/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
  117. package/dist/components/PromoTile/PromoTile.js +12 -3
  118. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  119. package/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
  120. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  121. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  122. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  123. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  124. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  125. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  126. package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  127. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  128. package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  129. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  130. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  131. package/dist/components/TextBlock/TextBlock.js +1 -1
  132. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  133. package/dist/components/TextBlock/TextBlock.mobile.js +4 -7
  134. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  135. package/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
  136. package/dist/components/Tile/Tile.js +10 -27
  137. package/dist/components/Tile/Tile.js.map +1 -1
  138. package/dist/components/Tile/TileContent.d.ts +9 -2
  139. package/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
  140. package/dist/content-page-repository/ContentPageRepository.js +0 -10
  141. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  142. package/dist/icons/IconName.d.ts +3 -2
  143. package/dist/icons/IconName.js +1 -0
  144. package/dist/icons/IconName.js.map +1 -1
  145. package/dist/index.d.ts +1 -1
  146. package/dist/index.js +3 -3
  147. package/dist/index.js.map +1 -1
  148. package/dist/model/ButtonVersion.d.ts +1 -1
  149. package/dist/types.d.ts +5 -5
  150. package/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  151. package/dist/ui-kit/BlockItem/BlockItem.js +8 -9
  152. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  153. package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  154. package/dist/ui-kit/Button/Button.d.ts +0 -2
  155. package/dist/ui-kit/Button/Button.js +24 -13
  156. package/dist/ui-kit/Button/Button.js.map +1 -1
  157. package/dist/ui-kit/Button/Button.mobile.d.ts +0 -2
  158. package/dist/ui-kit/Button/Button.mobile.js +6 -8
  159. package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
  160. package/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
  161. package/dist/ui-kit/Button/ButtonInner.js +16 -0
  162. package/dist/ui-kit/Button/ButtonInner.js.map +1 -0
  163. package/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
  164. package/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
  165. package/dist/ui-kit/Button/ButtonSection.js +18 -0
  166. package/dist/ui-kit/Button/ButtonSection.js.map +1 -0
  167. package/dist/ui-kit/Description/Description.d.ts +2 -0
  168. package/dist/ui-kit/Description/Description.js +9 -0
  169. package/dist/ui-kit/Description/Description.js.map +1 -0
  170. package/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
  171. package/dist/ui-kit/Description/DescriptionProps.js +2 -0
  172. package/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
  173. package/dist/ui-kit/Heading/Heading.d.ts +4 -1
  174. package/dist/ui-kit/Heading/Heading.js +7 -4
  175. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  176. package/dist/ui-kit/Heading/Heading.mobile.d.ts +4 -1
  177. package/dist/ui-kit/Heading/Heading.mobile.js +6 -3
  178. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  179. package/{lib/ui-kit/Heading/HeadingProps.d.ts → dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  180. package/dist/ui-kit/Heading/HeadingContent.js +2 -0
  181. package/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
  182. package/dist/ui-kit/Icon/Icon.js +6 -2
  183. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  184. package/dist/ui-kit/Icon/IconProps.d.ts +6 -0
  185. package/dist/ui-kit/{Img.d.ts → Img/Img.d.ts} +1 -1
  186. package/dist/ui-kit/{Img.js → Img/Img.js} +0 -0
  187. package/dist/ui-kit/Img/Img.js.map +1 -0
  188. package/dist/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
  189. package/dist/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
  190. package/dist/ui-kit/Img/Img.mobile.js.map +1 -0
  191. package/dist/ui-kit/Img/ImgProps.d.ts +7 -0
  192. package/dist/ui-kit/{Heading/HeadingProps.js → Img/ImgProps.js} +1 -1
  193. package/dist/ui-kit/Img/ImgProps.js.map +1 -0
  194. package/dist/ui-kit/List/List.d.ts +2 -0
  195. package/dist/ui-kit/List/List.js +12 -0
  196. package/dist/ui-kit/List/List.js.map +1 -0
  197. package/dist/ui-kit/List/ListContent.d.ts +4 -0
  198. package/{mobile/dist/ui-kit/Heading/HeadingProps.js → dist/ui-kit/List/ListContent.js} +1 -1
  199. package/dist/ui-kit/List/ListContent.js.map +1 -0
  200. package/dist/ui-kit/List/ListItem.d.ts +11 -0
  201. package/dist/ui-kit/List/ListItem.js +23 -0
  202. package/dist/ui-kit/List/ListItem.js.map +1 -0
  203. package/dist/ui-kit/List/ListProps.d.ts +14 -0
  204. package/dist/ui-kit/List/ListProps.js +2 -0
  205. package/dist/ui-kit/List/ListProps.js.map +1 -0
  206. package/lib/common.css +1 -1
  207. package/lib/components/Accordion/Accordion.js +1 -1
  208. package/lib/components/Accordion/Accordion.js.map +1 -1
  209. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  210. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  211. package/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
  212. package/lib/components/Accordion/AccordionBlocks.js +8 -0
  213. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  214. package/lib/components/Accordion/AccordionContent.d.ts +30 -18
  215. package/lib/components/Accordion/AccordionItem.js +1 -1
  216. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  217. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  218. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  219. package/lib/components/BaseTile/BaseTile.js +2 -5
  220. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  221. package/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
  222. package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
  223. package/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
  224. package/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
  225. package/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
  226. package/lib/components/BaseTile/getTileMinHeight.js +14 -0
  227. package/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
  228. package/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
  229. package/lib/components/BaseTile/getTileRightPadding.js +14 -0
  230. package/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
  231. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  232. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  233. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  234. package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  235. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  236. package/lib/components/ComparisonTable/HeaderCell.js +2 -2
  237. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  238. package/lib/components/ContentPage/ContentPage.js +2 -4
  239. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  240. package/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  241. package/lib/components/ContentPage/isBlockInRegistry.js +4 -0
  242. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
  243. package/lib/components/ContentPage/normalizeBlock.d.ts +8 -0
  244. package/lib/components/ContentPage/normalizeBlock.js +6 -0
  245. package/lib/components/ContentPage/normalizeBlock.js.map +1 -0
  246. package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
  247. package/lib/components/ContentPage/normalizeBlock.mobile.js +5 -0
  248. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
  249. package/lib/components/ContentPage/normalizePage.d.ts +2 -0
  250. package/lib/components/ContentPage/normalizePage.js +25 -0
  251. package/lib/components/ContentPage/normalizePage.js.map +1 -0
  252. package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -0
  253. package/lib/components/ContentPage/{toMobilePage.js → normalizePage.mobile.js} +11 -15
  254. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -0
  255. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  256. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  257. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  258. package/lib/components/Gallery/Gallery.fixture.d.ts +2 -0
  259. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +5 -0
  260. package/lib/components/Gallery/Gallery.mobile.js +18 -7
  261. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  262. package/lib/components/Gallery/GalleryCardInner.js +4 -4
  263. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  264. package/lib/components/Gallery/GalleryContainer.js +5 -6
  265. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  266. package/lib/components/Gallery/GalleryContent.d.ts +8 -3
  267. package/lib/components/Gallery/GalleryInner.js +1 -1
  268. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  269. package/lib/components/Gallery/constants.js +2 -2
  270. package/lib/components/Gallery/constants.js.map +1 -1
  271. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  272. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  273. package/lib/components/Headline/Headline.js +1 -1
  274. package/lib/components/Headline/Headline.js.map +1 -1
  275. package/lib/components/Headline/Headline.mobile.js +2 -2
  276. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  277. package/lib/components/Headline/HeadlineContent.d.ts +6 -6
  278. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  279. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  280. package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
  281. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  282. package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  283. package/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
  284. package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  285. package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  286. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  287. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  288. package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  289. package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  290. package/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
  291. package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  292. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -0
  293. package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  294. package/lib/components/MobileAppTile/MobileAppTile.js +8 -3
  295. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  296. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  297. package/lib/components/PictureText/PictureText.js +4 -4
  298. package/lib/components/PictureText/PictureText.js.map +1 -1
  299. package/lib/components/PictureText/PictureTextContent.d.ts +4 -2
  300. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  301. package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  302. package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  303. package/lib/components/ProductBlock/ProductBlockInner.js +7 -3
  304. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  305. package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
  306. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
  307. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  308. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  309. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  310. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  311. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  312. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  313. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  314. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  315. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  316. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
  317. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  318. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  319. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  320. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -0
  321. package/lib/components/ProductTile/ProductTile.js +14 -4
  322. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  323. package/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
  324. package/lib/components/PromoTile/PromoTile.js +12 -3
  325. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  326. package/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
  327. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  328. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  329. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  330. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  331. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  332. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  333. package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  334. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  335. package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  336. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  337. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  338. package/lib/components/TextBlock/TextBlock.js +1 -1
  339. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  340. package/lib/components/TextBlock/TextBlock.mobile.js +4 -7
  341. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  342. package/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
  343. package/lib/components/Tile/Tile.fixture.d.ts +2 -0
  344. package/lib/components/Tile/Tile.js +11 -28
  345. package/lib/components/Tile/Tile.js.map +1 -1
  346. package/lib/components/Tile/TileContent.d.ts +9 -2
  347. package/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
  348. package/lib/content-page-repository/ContentPageRepository.js +0 -10
  349. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  350. package/lib/icons/IconName.d.ts +3 -2
  351. package/lib/icons/IconName.js +1 -0
  352. package/lib/icons/IconName.js.map +1 -1
  353. package/lib/index.d.ts +1 -1
  354. package/lib/index.js +1 -1
  355. package/lib/index.js.map +1 -1
  356. package/lib/model/ButtonVersion.d.ts +1 -1
  357. package/lib/types.d.ts +5 -5
  358. package/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  359. package/lib/ui-kit/BlockItem/BlockItem.js +8 -9
  360. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  361. package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  362. package/lib/ui-kit/Button/Button.d.ts +0 -2
  363. package/lib/ui-kit/Button/Button.js +23 -12
  364. package/lib/ui-kit/Button/Button.js.map +1 -1
  365. package/lib/ui-kit/Button/Button.mobile.d.ts +0 -2
  366. package/lib/ui-kit/Button/Button.mobile.js +6 -8
  367. package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
  368. package/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
  369. package/lib/ui-kit/Button/ButtonInner.js +14 -0
  370. package/lib/ui-kit/Button/ButtonInner.js.map +1 -0
  371. package/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
  372. package/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
  373. package/lib/ui-kit/Button/ButtonSection.js +16 -0
  374. package/lib/ui-kit/Button/ButtonSection.js.map +1 -0
  375. package/lib/ui-kit/Description/Description.d.ts +2 -0
  376. package/lib/ui-kit/Description/Description.js +7 -0
  377. package/lib/ui-kit/Description/Description.js.map +1 -0
  378. package/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
  379. package/lib/ui-kit/Description/DescriptionProps.js +2 -0
  380. package/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
  381. package/lib/ui-kit/Heading/Heading.d.ts +4 -1
  382. package/lib/ui-kit/Heading/Heading.js +7 -4
  383. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  384. package/lib/ui-kit/Heading/Heading.mobile.d.ts +4 -1
  385. package/lib/ui-kit/Heading/Heading.mobile.js +6 -3
  386. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  387. package/{mobile/dist/ui-kit/Heading/HeadingProps.d.ts → lib/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  388. package/lib/ui-kit/Heading/HeadingContent.js +2 -0
  389. package/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
  390. package/lib/ui-kit/Icon/Icon.fixture.d.ts +2 -1
  391. package/lib/ui-kit/Icon/Icon.js +6 -2
  392. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  393. package/lib/ui-kit/Icon/IconProps.d.ts +6 -0
  394. package/{mobile/dist/ui-kit → lib/ui-kit/Img}/Img.d.ts +1 -1
  395. package/lib/ui-kit/{Img.js → Img/Img.js} +0 -0
  396. package/lib/ui-kit/Img/Img.js.map +1 -0
  397. package/lib/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
  398. package/lib/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
  399. package/lib/ui-kit/Img/Img.mobile.js.map +1 -0
  400. package/lib/ui-kit/Img/ImgProps.d.ts +7 -0
  401. package/lib/ui-kit/Img/ImgProps.js +2 -0
  402. package/lib/ui-kit/Img/ImgProps.js.map +1 -0
  403. package/lib/ui-kit/List/List.d.ts +2 -0
  404. package/lib/ui-kit/List/List.js +10 -0
  405. package/lib/ui-kit/List/List.js.map +1 -0
  406. package/lib/ui-kit/List/ListContent.d.ts +4 -0
  407. package/lib/ui-kit/List/ListContent.js +2 -0
  408. package/lib/ui-kit/List/ListContent.js.map +1 -0
  409. package/lib/ui-kit/List/ListItem.d.ts +11 -0
  410. package/lib/ui-kit/List/ListItem.js +21 -0
  411. package/lib/ui-kit/List/ListItem.js.map +1 -0
  412. package/lib/ui-kit/List/ListProps.d.ts +14 -0
  413. package/lib/ui-kit/List/ListProps.js +2 -0
  414. package/lib/ui-kit/List/ListProps.js.map +1 -0
  415. package/mobile/bundle/bundle.umd.js +346 -200
  416. package/mobile/bundle/bundle.umd.min.js +1 -1
  417. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  418. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  419. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
  420. package/mobile/dist/components/Accordion/AccordionBlocks.js +8 -0
  421. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  422. package/mobile/dist/components/Accordion/AccordionContent.d.ts +30 -18
  423. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  424. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  425. package/mobile/dist/components/BaseTile/BaseTile.js +2 -11
  426. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  427. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
  428. package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
  429. package/mobile/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
  430. package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
  431. package/mobile/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
  432. package/mobile/dist/components/BaseTile/getTileMinHeight.js +17 -0
  433. package/mobile/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
  434. package/mobile/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
  435. package/mobile/dist/components/BaseTile/getTileRightPadding.js +17 -0
  436. package/mobile/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
  437. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  438. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  439. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  440. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  441. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  442. package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
  443. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  444. package/mobile/dist/components/ContentPage/ContentPage.js +2 -4
  445. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  446. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  447. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +7 -0
  448. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
  449. package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +2 -0
  450. package/mobile/dist/components/ContentPage/normalizeBlock.js +8 -0
  451. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -0
  452. package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -0
  453. package/mobile/dist/components/ContentPage/normalizePage.js +30 -0
  454. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -0
  455. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  456. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  457. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  458. package/mobile/dist/components/Gallery/Gallery.js +18 -7
  459. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  460. package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -4
  461. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  462. package/mobile/dist/components/Gallery/GalleryContainer.js +4 -5
  463. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  464. package/mobile/dist/components/Gallery/GalleryContent.d.ts +8 -3
  465. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  466. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  467. package/mobile/dist/components/Gallery/constants.js +2 -2
  468. package/mobile/dist/components/Gallery/constants.js.map +1 -1
  469. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  470. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  471. package/mobile/dist/components/Headline/Headline.js +2 -2
  472. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  473. package/mobile/dist/components/Headline/HeadlineContent.d.ts +6 -6
  474. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
  475. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  476. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  477. package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
  478. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  479. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  480. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  481. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  482. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
  483. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  484. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  485. package/mobile/dist/components/PictureText/PictureText.js +4 -4
  486. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  487. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +4 -2
  488. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  489. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  490. package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -3
  491. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +7 -3
  492. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  493. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  494. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  495. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  496. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  497. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  498. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  499. package/mobile/dist/components/ProductTile/ProductTile.js +14 -4
  500. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  501. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
  502. package/mobile/dist/components/PromoTile/PromoTile.js +12 -3
  503. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  504. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
  505. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  506. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  507. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  508. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  509. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  510. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  511. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  512. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  513. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  514. package/mobile/dist/components/TextBlock/TextBlock.js +4 -7
  515. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  516. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
  517. package/mobile/dist/components/Tile/Tile.js +10 -27
  518. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  519. package/mobile/dist/components/Tile/TileContent.d.ts +9 -2
  520. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
  521. package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -10
  522. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  523. package/mobile/dist/icons/IconName.d.ts +3 -2
  524. package/mobile/dist/icons/IconName.js +1 -0
  525. package/mobile/dist/icons/IconName.js.map +1 -1
  526. package/mobile/dist/index.d.ts +1 -1
  527. package/mobile/dist/index.js +3 -3
  528. package/mobile/dist/index.js.map +1 -1
  529. package/mobile/dist/model/ButtonVersion.d.ts +1 -1
  530. package/mobile/dist/types.d.ts +5 -5
  531. package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  532. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +8 -9
  533. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  534. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  535. package/mobile/dist/ui-kit/Button/Button.d.ts +0 -2
  536. package/mobile/dist/ui-kit/Button/Button.js +6 -8
  537. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  538. package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
  539. package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -0
  540. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -0
  541. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
  542. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
  543. package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -0
  544. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -0
  545. package/mobile/dist/ui-kit/Description/Description.d.ts +2 -0
  546. package/mobile/dist/ui-kit/Description/Description.js +9 -0
  547. package/mobile/dist/ui-kit/Description/Description.js.map +1 -0
  548. package/mobile/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
  549. package/mobile/dist/ui-kit/Description/DescriptionProps.js +2 -0
  550. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
  551. package/mobile/dist/ui-kit/Heading/Heading.d.ts +4 -1
  552. package/mobile/dist/ui-kit/Heading/Heading.js +6 -3
  553. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  554. package/{dist/ui-kit/Heading/HeadingProps.d.ts → mobile/dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
  555. package/mobile/dist/ui-kit/Heading/HeadingContent.js +2 -0
  556. package/mobile/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
  557. package/mobile/dist/ui-kit/Icon/Icon.js +6 -2
  558. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  559. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +6 -0
  560. package/{lib/ui-kit → mobile/dist/ui-kit/Img}/Img.d.ts +2 -5
  561. package/mobile/dist/ui-kit/{Img.js → Img/Img.js} +7 -4
  562. package/mobile/dist/ui-kit/Img/Img.js.map +1 -0
  563. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +7 -0
  564. package/mobile/dist/ui-kit/Img/ImgProps.js +2 -0
  565. package/mobile/dist/ui-kit/Img/ImgProps.js.map +1 -0
  566. package/mobile/dist/ui-kit/List/List.d.ts +2 -0
  567. package/mobile/dist/ui-kit/List/List.js +12 -0
  568. package/mobile/dist/ui-kit/List/List.js.map +1 -0
  569. package/mobile/dist/ui-kit/List/ListContent.d.ts +4 -0
  570. package/mobile/dist/ui-kit/List/ListContent.js +2 -0
  571. package/mobile/dist/ui-kit/List/ListContent.js.map +1 -0
  572. package/mobile/dist/ui-kit/List/ListItem.d.ts +11 -0
  573. package/mobile/dist/ui-kit/List/ListItem.js +23 -0
  574. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -0
  575. package/mobile/dist/ui-kit/List/ListProps.d.ts +14 -0
  576. package/mobile/dist/ui-kit/List/ListProps.js +2 -0
  577. package/mobile/dist/ui-kit/List/ListProps.js.map +1 -0
  578. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  579. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  580. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
  581. package/mobile/lib/components/Accordion/AccordionBlocks.js +8 -0
  582. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  583. package/mobile/lib/components/Accordion/AccordionContent.d.ts +30 -18
  584. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  585. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  586. package/mobile/lib/components/BaseTile/BaseTile.js +2 -11
  587. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  588. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
  589. package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
  590. package/mobile/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
  591. package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
  592. package/mobile/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
  593. package/mobile/lib/components/BaseTile/getTileMinHeight.js +14 -0
  594. package/mobile/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
  595. package/mobile/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
  596. package/mobile/lib/components/BaseTile/getTileRightPadding.js +14 -0
  597. package/mobile/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
  598. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  599. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  600. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
  601. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  602. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  603. package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
  604. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  605. package/mobile/lib/components/ContentPage/ContentPage.js +2 -4
  606. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  607. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  608. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +4 -0
  609. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
  610. package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +2 -0
  611. package/mobile/lib/components/ContentPage/normalizeBlock.js +5 -0
  612. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -0
  613. package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -0
  614. package/mobile/lib/components/ContentPage/{toMobilePage.js → normalizePage.js} +11 -15
  615. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -0
  616. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
  617. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  618. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
  619. package/mobile/lib/components/Gallery/Gallery.js +18 -7
  620. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  621. package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -4
  622. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  623. package/mobile/lib/components/Gallery/GalleryContainer.js +5 -6
  624. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  625. package/mobile/lib/components/Gallery/GalleryContent.d.ts +8 -3
  626. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  627. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  628. package/mobile/lib/components/Gallery/constants.js +2 -2
  629. package/mobile/lib/components/Gallery/constants.js.map +1 -1
  630. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  631. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  632. package/mobile/lib/components/Headline/Headline.js +2 -2
  633. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  634. package/mobile/lib/components/Headline/HeadlineContent.d.ts +6 -6
  635. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
  636. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  637. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  638. package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
  639. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  640. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  641. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  642. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  643. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
  644. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  645. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
  646. package/mobile/lib/components/PictureText/PictureText.js +4 -4
  647. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  648. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +4 -2
  649. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  650. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
  651. package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -3
  652. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +7 -3
  653. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  654. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  655. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  656. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  657. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  658. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  659. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
  660. package/mobile/lib/components/ProductTile/ProductTile.js +14 -4
  661. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  662. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
  663. package/mobile/lib/components/PromoTile/PromoTile.js +12 -3
  664. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  665. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
  666. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  667. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  668. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  669. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  670. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  671. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  672. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
  673. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  674. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  675. package/mobile/lib/components/TextBlock/TextBlock.js +4 -7
  676. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  677. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
  678. package/mobile/lib/components/Tile/Tile.js +11 -28
  679. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  680. package/mobile/lib/components/Tile/TileContent.d.ts +9 -2
  681. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
  682. package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -10
  683. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  684. package/mobile/lib/icons/IconName.d.ts +3 -2
  685. package/mobile/lib/icons/IconName.js +1 -0
  686. package/mobile/lib/icons/IconName.js.map +1 -1
  687. package/mobile/lib/index.d.ts +1 -1
  688. package/mobile/lib/index.js +1 -1
  689. package/mobile/lib/index.js.map +1 -1
  690. package/mobile/lib/model/ButtonVersion.d.ts +1 -1
  691. package/mobile/lib/types.d.ts +5 -5
  692. package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
  693. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +8 -9
  694. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  695. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
  696. package/mobile/lib/ui-kit/Button/Button.d.ts +0 -2
  697. package/mobile/lib/ui-kit/Button/Button.js +6 -8
  698. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  699. package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
  700. package/mobile/lib/ui-kit/Button/ButtonInner.js +14 -0
  701. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -0
  702. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
  703. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
  704. package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -0
  705. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -0
  706. package/mobile/lib/ui-kit/Description/Description.d.ts +2 -0
  707. package/mobile/lib/ui-kit/Description/Description.js +7 -0
  708. package/mobile/lib/ui-kit/Description/Description.js.map +1 -0
  709. package/mobile/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
  710. package/mobile/lib/ui-kit/Description/DescriptionProps.js +2 -0
  711. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
  712. package/mobile/lib/ui-kit/Heading/Heading.d.ts +4 -1
  713. package/mobile/lib/ui-kit/Heading/Heading.js +6 -3
  714. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  715. package/mobile/lib/ui-kit/Heading/{HeadingProps.d.ts → HeadingContent.d.ts} +6 -4
  716. package/mobile/lib/ui-kit/Heading/HeadingContent.js +2 -0
  717. package/mobile/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
  718. package/mobile/lib/ui-kit/Icon/Icon.js +6 -2
  719. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  720. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +6 -0
  721. package/mobile/lib/ui-kit/{Img.d.ts → Img/Img.d.ts} +2 -5
  722. package/mobile/lib/ui-kit/{Img.js → Img/Img.js} +7 -4
  723. package/mobile/lib/ui-kit/Img/Img.js.map +1 -0
  724. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +7 -0
  725. package/mobile/lib/ui-kit/Img/ImgProps.js +2 -0
  726. package/mobile/lib/ui-kit/Img/ImgProps.js.map +1 -0
  727. package/mobile/lib/ui-kit/List/List.d.ts +2 -0
  728. package/mobile/lib/ui-kit/List/List.js +10 -0
  729. package/mobile/lib/ui-kit/List/List.js.map +1 -0
  730. package/mobile/lib/ui-kit/List/ListContent.d.ts +4 -0
  731. package/mobile/lib/ui-kit/List/ListContent.js +2 -0
  732. package/mobile/lib/ui-kit/List/ListContent.js.map +1 -0
  733. package/mobile/lib/ui-kit/List/ListItem.d.ts +11 -0
  734. package/mobile/lib/ui-kit/List/ListItem.js +21 -0
  735. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -0
  736. package/mobile/lib/ui-kit/List/ListProps.d.ts +14 -0
  737. package/mobile/lib/ui-kit/List/ListProps.js +2 -0
  738. package/mobile/lib/ui-kit/List/ListProps.js.map +1 -0
  739. package/mobile/src/components/Accordion/Accordion.tsx +1 -1
  740. package/mobile/src/components/Accordion/AccordionBlocks.tsx +8 -0
  741. package/mobile/src/components/Accordion/AccordionContent.ts +49 -21
  742. package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
  743. package/mobile/src/components/BaseTile/BaseTile.tsx +11 -41
  744. package/mobile/src/components/BaseTile/BaseTileProps.ts +5 -7
  745. package/{src/components/BaseTile/getHeadingType.ts → mobile/src/components/BaseTile/getTileHeadingType.ts} +1 -1
  746. package/mobile/src/components/BaseTile/getTileMinHeight.ts +12 -0
  747. package/mobile/src/components/BaseTile/getTileRightPadding.ts +12 -0
  748. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
  749. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
  750. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
  751. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +2 -2
  752. package/mobile/src/components/ContentPage/ContentPage.page.json +1620 -133
  753. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -8
  754. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +5 -0
  755. package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
  756. package/mobile/src/components/ContentPage/normalizeBlock.ts +6 -0
  757. package/mobile/src/components/ContentPage/{toMobilePage.ts → normalizePage.ts} +13 -14
  758. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
  759. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
  760. package/mobile/src/components/Gallery/Gallery.tsx +57 -38
  761. package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -11
  762. package/mobile/src/components/Gallery/GalleryContainer.tsx +8 -9
  763. package/mobile/src/components/Gallery/GalleryContent.ts +9 -3
  764. package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
  765. package/mobile/src/components/Gallery/constants.ts +2 -2
  766. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
  767. package/mobile/src/components/Headline/Headline.tsx +2 -2
  768. package/mobile/src/components/Headline/HeadlineContent.ts +11 -9
  769. package/mobile/src/components/LinkDocs/LinkDocs.tsx +10 -6
  770. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  771. package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
  772. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  773. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
  774. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
  775. package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
  776. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
  777. package/mobile/src/components/PictureText/PictureText.tsx +4 -3
  778. package/mobile/src/components/PictureText/PictureTextContent.ts +5 -2
  779. package/mobile/src/components/Placeholder/PlaceholderContent.ts +3 -3
  780. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +21 -10
  781. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +26 -11
  782. package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
  783. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
  784. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
  785. package/mobile/src/components/ProductTile/ProductTile.tsx +63 -15
  786. package/mobile/src/components/ProductTile/ProductTileContent.ts +17 -9
  787. package/mobile/src/components/PromoTile/PromoTile.tsx +41 -14
  788. package/mobile/src/components/PromoTile/PromoTileContent.ts +11 -5
  789. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
  790. package/mobile/src/components/TariffsTable/TariffsTable.tsx +5 -1
  791. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
  792. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -11
  793. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
  794. package/mobile/src/components/TextBlock/TextBlock.tsx +20 -16
  795. package/mobile/src/components/TextBlock/TextBlockContent.ts +4 -1
  796. package/mobile/src/components/Tile/Tile.tsx +46 -27
  797. package/mobile/src/components/Tile/TileContent.ts +13 -2
  798. package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -12
  799. package/mobile/src/icons/ActualBalanceIcon.svg +0 -2
  800. package/mobile/src/icons/AtmIcon.svg +5 -5
  801. package/mobile/src/icons/BankIcon.svg +9 -9
  802. package/mobile/src/icons/BurgerIcon.svg +1 -1
  803. package/mobile/src/icons/BurgerIconWhite.svg +1 -1
  804. package/mobile/src/icons/Calendar2Icon.svg +1 -1
  805. package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
  806. package/mobile/src/icons/CalendarIcon.svg +1 -1
  807. package/mobile/src/icons/CalendarTickIcon.svg +1 -1
  808. package/mobile/src/icons/CalendarWhiteIcon.svg +1 -1
  809. package/mobile/src/icons/CardIcon.svg +1 -1
  810. package/mobile/src/icons/CardPosIcon.svg +1 -1
  811. package/mobile/src/icons/CardTickIcon.svg +1 -1
  812. package/mobile/src/icons/CardWithGemIcon.svg +1 -1
  813. package/mobile/src/icons/ChartSquareIcon.svg +1 -1
  814. package/mobile/src/icons/ClockIcon.svg +0 -2
  815. package/mobile/src/icons/CloseIcon.svg +1 -1
  816. package/mobile/src/icons/ComfortableCompIcon.svg +0 -2
  817. package/mobile/src/icons/CreditCardsIcon.svg +1 -1
  818. package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
  819. package/mobile/src/icons/DocIcon.svg +4 -4
  820. package/mobile/src/icons/DocIconMonoColor.svg +5 -0
  821. package/mobile/src/icons/DocumentTextIcon.svg +3 -3
  822. package/mobile/src/icons/DollarIcon.svg +1 -1
  823. package/mobile/src/icons/EarthIcon.svg +1 -1
  824. package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
  825. package/mobile/src/icons/EmptyWalletIcon.svg +1 -1
  826. package/mobile/src/icons/EmptyWalletWhiteIcon.svg +1 -1
  827. package/mobile/src/icons/EuroIcon.svg +1 -1
  828. package/mobile/src/icons/GeolocationIcon.svg +3 -3
  829. package/mobile/src/icons/GlobalIcon.svg +1 -1
  830. package/mobile/src/icons/IconName.ts +3 -3
  831. package/mobile/src/icons/InterestGrowthIcon.svg +1 -1
  832. package/mobile/src/icons/InterestIcon.svg +1 -1
  833. package/mobile/src/icons/JCBIcon.svg +1 -1
  834. package/mobile/src/icons/MasterCardIcon.svg +1 -1
  835. package/mobile/src/icons/MinusIcon.svg +1 -1
  836. package/mobile/src/icons/MirIcon.svg +1 -1
  837. package/mobile/src/icons/MoneyIcon.svg +1 -1
  838. package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -1
  839. package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
  840. package/mobile/src/icons/NewDocIcon.svg +0 -2
  841. package/mobile/src/icons/OfficeIcon.svg +1 -1
  842. package/mobile/src/icons/OkIcon.svg +1 -1
  843. package/mobile/src/icons/PassSendIcon.svg +0 -2
  844. package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
  845. package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
  846. package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
  847. package/mobile/src/icons/PersonalCardIcon.svg +1 -1
  848. package/mobile/src/icons/PlusIcon.svg +1 -1
  849. package/mobile/src/icons/Profile2UserIcon.svg +1 -1
  850. package/mobile/src/icons/RoundRubleIcon.svg +1 -1
  851. package/mobile/src/icons/SafeIcon.svg +1 -1
  852. package/mobile/src/icons/ShieldTickIcon.svg +1 -1
  853. package/mobile/src/icons/SignDocsIcon.svg +0 -2
  854. package/mobile/src/icons/SmallClockIcon.svg +1 -1
  855. package/mobile/src/icons/TelegramIcon.svg +2 -1
  856. package/mobile/src/icons/UnionPayIcon.svg +1 -1
  857. package/mobile/src/icons/UserTickIcon.svg +1 -1
  858. package/mobile/src/icons/VKIcon.svg +2 -1
  859. package/mobile/src/icons/VisaIcon.svg +1 -1
  860. package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
  861. package/mobile/src/icons/WalletAddIcon.svg +1 -1
  862. package/mobile/src/icons/WalletIcon.svg +1 -1
  863. package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
  864. package/mobile/src/index.ts +1 -1
  865. package/mobile/src/model/ButtonVersion.ts +1 -1
  866. package/mobile/src/types.ts +6 -5
  867. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
  868. package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
  869. package/mobile/src/ui-kit/Button/Button.tsx +11 -24
  870. package/mobile/src/ui-kit/Button/ButtonInner.tsx +37 -0
  871. package/mobile/src/ui-kit/Button/ButtonProps.ts +11 -0
  872. package/mobile/src/ui-kit/Button/ButtonSection.tsx +34 -0
  873. package/mobile/src/ui-kit/Description/Description.tsx +8 -0
  874. package/mobile/src/ui-kit/Description/DescriptionProps.ts +8 -0
  875. package/mobile/src/ui-kit/Heading/Heading.tsx +14 -5
  876. package/mobile/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
  877. package/mobile/src/ui-kit/Icon/Icon.tsx +16 -3
  878. package/mobile/src/ui-kit/Icon/IconProps.ts +7 -0
  879. package/mobile/src/ui-kit/{Img.tsx → Img/Img.tsx} +9 -10
  880. package/mobile/src/ui-kit/Img/ImgProps.ts +9 -0
  881. package/mobile/src/ui-kit/List/List.tsx +24 -0
  882. package/mobile/src/ui-kit/List/ListContent.ts +4 -0
  883. package/mobile/src/ui-kit/List/ListItem.tsx +43 -0
  884. package/mobile/src/ui-kit/List/ListProps.ts +16 -0
  885. package/package.json +4 -4
  886. package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -8
  887. package/src/components/Accordion/Accordion.fixture.tsx +52 -8
  888. package/src/components/Accordion/Accordion.mobile.tsx +1 -1
  889. package/src/components/Accordion/Accordion.tsx +1 -1
  890. package/src/components/Accordion/AccordionBlocks.tsx +8 -0
  891. package/src/components/Accordion/AccordionContent.ts +49 -21
  892. package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
  893. package/src/components/Accordion/AccordionItem.tsx +1 -1
  894. package/src/components/BaseTile/BaseTile.tsx +10 -36
  895. package/src/components/BaseTile/BaseTileProps.ts +5 -7
  896. package/{mobile/src/components/BaseTile/getHeadingType.ts → src/components/BaseTile/getTileHeadingType.ts} +1 -1
  897. package/src/components/BaseTile/getTileMinHeight.ts +12 -0
  898. package/src/components/BaseTile/getTileRightPadding.ts +12 -0
  899. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
  900. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
  901. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -0
  902. package/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
  903. package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
  904. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +3 -3
  905. package/src/components/ContentPage/ContentPage.fixture.tsx +3 -2
  906. package/src/components/ContentPage/ContentPage.page.json +1 -1
  907. package/src/components/ContentPage/ContentPage.tsx +2 -8
  908. package/src/components/ContentPage/isBlockInRegistry.ts +5 -0
  909. package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +71 -0
  910. package/src/components/ContentPage/normalizeBlock.mobile.ts +6 -0
  911. package/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
  912. package/src/components/ContentPage/normalizeBlock.ts +7 -0
  913. package/src/components/ContentPage/{toMobilePage.ts → normalizePage.mobile.ts} +13 -14
  914. package/src/components/ContentPage/normalizePage.ts +35 -0
  915. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
  916. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
  917. package/src/components/Gallery/Gallery.fixture.mobile.tsx +103 -0
  918. package/src/components/Gallery/Gallery.fixture.tsx +5 -4
  919. package/src/components/Gallery/Gallery.mobile.tsx +57 -38
  920. package/src/components/Gallery/GalleryCardInner.tsx +8 -11
  921. package/src/components/Gallery/GalleryContainer.tsx +8 -9
  922. package/src/components/Gallery/GalleryContent.ts +9 -3
  923. package/src/components/Gallery/GalleryInner.tsx +1 -1
  924. package/src/components/Gallery/constants.ts +2 -2
  925. package/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
  926. package/src/components/Headline/Headline.mobile.tsx +2 -2
  927. package/src/components/Headline/Headline.tsx +3 -1
  928. package/src/components/Headline/HeadlineContent.ts +11 -9
  929. package/src/components/LinkDocs/LinkDocs.mobile.tsx +10 -6
  930. package/src/components/LinkDocs/LinkDocs.tsx +4 -4
  931. package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  932. package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
  933. package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
  934. package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  935. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
  936. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
  937. package/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
  938. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  939. package/src/components/MobileAppTile/MobileAppTile.tsx +47 -20
  940. package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
  941. package/src/components/PictureText/PictureText.tsx +4 -3
  942. package/src/components/PictureText/PictureTextContent.ts +5 -2
  943. package/src/components/Placeholder/PlaceholderContent.ts +3 -3
  944. package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -0
  945. package/src/components/ProductBlock/ProductBlockContent.ts +21 -10
  946. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +26 -11
  947. package/src/components/ProductBlock/ProductBlockInner.tsx +28 -12
  948. package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
  949. package/src/components/ProductBlock/renderBenefit.tsx +1 -0
  950. package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -0
  951. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  952. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +4 -4
  953. package/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
  954. package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
  955. package/src/components/ProductTile/ProductTile.fixture.tsx +28 -0
  956. package/src/components/ProductTile/ProductTile.tsx +63 -15
  957. package/src/components/ProductTile/ProductTileContent.ts +17 -9
  958. package/src/components/PromoTile/PromoTile.tsx +41 -14
  959. package/src/components/PromoTile/PromoTileContent.ts +11 -5
  960. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
  961. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  962. package/src/components/TariffsTable/TariffsTable.tsx +5 -1
  963. package/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
  964. package/src/components/TariffsTable/TariffsTableContent.ts +5 -11
  965. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
  966. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +28 -13
  967. package/src/components/TextBlock/TextBlock.mobile.tsx +20 -16
  968. package/src/components/TextBlock/TextBlock.tsx +1 -1
  969. package/src/components/TextBlock/TextBlockContent.ts +4 -1
  970. package/src/components/Tile/Tile.fixture.tsx +37 -23
  971. package/src/components/Tile/Tile.tsx +46 -27
  972. package/src/components/Tile/TileContent.ts +13 -2
  973. package/src/content-page-repository/ContentPageRepository.ts +0 -12
  974. package/src/icons/ActualBalanceIcon.svg +0 -2
  975. package/src/icons/AtmIcon.svg +5 -5
  976. package/src/icons/BankIcon.svg +9 -9
  977. package/src/icons/BurgerIcon.svg +1 -1
  978. package/src/icons/BurgerIconWhite.svg +1 -1
  979. package/src/icons/Calendar2Icon.svg +1 -1
  980. package/src/icons/CalendarCircleIcon.svg +1 -1
  981. package/src/icons/CalendarIcon.svg +1 -1
  982. package/src/icons/CalendarTickIcon.svg +1 -1
  983. package/src/icons/CalendarWhiteIcon.svg +1 -1
  984. package/src/icons/CardIcon.svg +1 -1
  985. package/src/icons/CardPosIcon.svg +1 -1
  986. package/src/icons/CardTickIcon.svg +1 -1
  987. package/src/icons/CardWithGemIcon.svg +1 -1
  988. package/src/icons/ChartSquareIcon.svg +1 -1
  989. package/src/icons/ClockIcon.svg +0 -2
  990. package/src/icons/CloseIcon.svg +1 -1
  991. package/src/icons/ComfortableCompIcon.svg +0 -2
  992. package/src/icons/CreditCardsIcon.svg +1 -1
  993. package/src/icons/DiscountShapeIcon.svg +1 -1
  994. package/src/icons/DocIcon.svg +4 -4
  995. package/src/icons/DocIconMonoColor.svg +5 -0
  996. package/src/icons/DocumentTextIcon.svg +3 -3
  997. package/src/icons/DollarIcon.svg +1 -1
  998. package/src/icons/EarthIcon.svg +1 -1
  999. package/src/icons/EmptyWalletChangeIcon.svg +1 -1
  1000. package/src/icons/EmptyWalletIcon.svg +1 -1
  1001. package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
  1002. package/src/icons/EuroIcon.svg +1 -1
  1003. package/src/icons/GeolocationIcon.svg +3 -3
  1004. package/src/icons/GlobalIcon.svg +1 -1
  1005. package/src/icons/IconName.ts +3 -3
  1006. package/src/icons/InterestGrowthIcon.svg +1 -1
  1007. package/src/icons/InterestIcon.svg +1 -1
  1008. package/src/icons/JCBIcon.svg +1 -1
  1009. package/src/icons/MasterCardIcon.svg +1 -1
  1010. package/src/icons/MinusIcon.svg +1 -1
  1011. package/src/icons/MirIcon.svg +1 -1
  1012. package/src/icons/MoneyIcon.svg +1 -1
  1013. package/src/icons/MoneyInsuranceIcon.svg +1 -1
  1014. package/src/icons/MonitorMobileIcon.svg +1 -1
  1015. package/src/icons/NewDocIcon.svg +0 -2
  1016. package/src/icons/OfficeIcon.svg +1 -1
  1017. package/src/icons/OkIcon.svg +1 -1
  1018. package/src/icons/PassSendIcon.svg +0 -2
  1019. package/src/icons/PercentageRoundIcon.svg +1 -1
  1020. package/src/icons/PercentageSquareIcon.svg +1 -1
  1021. package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
  1022. package/src/icons/PersonalCardIcon.svg +1 -1
  1023. package/src/icons/PlusIcon.svg +1 -1
  1024. package/src/icons/Profile2UserIcon.svg +1 -1
  1025. package/src/icons/RoundRubleIcon.svg +1 -1
  1026. package/src/icons/SafeIcon.svg +1 -1
  1027. package/src/icons/ShieldTickIcon.svg +1 -1
  1028. package/src/icons/SignDocsIcon.svg +0 -2
  1029. package/src/icons/SmallClockIcon.svg +1 -1
  1030. package/src/icons/TelegramIcon.svg +2 -1
  1031. package/src/icons/UnionPayIcon.svg +1 -1
  1032. package/src/icons/UserTickIcon.svg +1 -1
  1033. package/src/icons/VKIcon.svg +2 -1
  1034. package/src/icons/VisaIcon.svg +1 -1
  1035. package/src/icons/WalletAdd2Icon.svg +1 -1
  1036. package/src/icons/WalletAddIcon.svg +1 -1
  1037. package/src/icons/WalletIcon.svg +1 -1
  1038. package/src/icons/WalletWithMoneyIcon.svg +1 -1
  1039. package/src/index.ts +1 -1
  1040. package/src/model/ButtonVersion.ts +1 -1
  1041. package/src/types.ts +6 -5
  1042. package/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
  1043. package/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
  1044. package/src/ui-kit/Button/Button.fixture.tsx +2 -2
  1045. package/src/ui-kit/Button/Button.mobile.tsx +11 -24
  1046. package/src/ui-kit/Button/Button.tsx +55 -51
  1047. package/src/ui-kit/Button/ButtonInner.tsx +37 -0
  1048. package/src/ui-kit/Button/ButtonProps.ts +11 -0
  1049. package/src/ui-kit/Button/ButtonSection.tsx +34 -0
  1050. package/src/ui-kit/Description/Description.tsx +8 -0
  1051. package/src/ui-kit/Description/DescriptionProps.ts +8 -0
  1052. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +7 -6
  1053. package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
  1054. package/src/ui-kit/Heading/Heading.mobile.tsx +14 -5
  1055. package/src/ui-kit/Heading/Heading.tsx +14 -5
  1056. package/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
  1057. package/src/ui-kit/Icon/Icon.fixture.tsx +13 -2
  1058. package/src/ui-kit/Icon/Icon.tsx +16 -3
  1059. package/src/ui-kit/Icon/IconProps.ts +7 -0
  1060. package/src/ui-kit/{Img.mobile.tsx → Img/Img.mobile.tsx} +9 -10
  1061. package/src/ui-kit/{Img.tsx → Img/Img.tsx} +1 -1
  1062. package/src/ui-kit/Img/ImgProps.ts +9 -0
  1063. package/src/ui-kit/List/List.tsx +24 -0
  1064. package/src/ui-kit/List/ListContent.ts +4 -0
  1065. package/src/ui-kit/List/ListItem.tsx +43 -0
  1066. package/src/ui-kit/List/ListProps.ts +16 -0
  1067. package/dist/components/BaseTile/BaseTile.mobile.d.ts +0 -5
  1068. package/dist/components/BaseTile/BaseTile.mobile.js +0 -17
  1069. package/dist/components/BaseTile/BaseTile.mobile.js.map +0 -1
  1070. package/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
  1071. package/dist/components/BaseTile/BaseTileInner.js +0 -14
  1072. package/dist/components/BaseTile/BaseTileInner.js.map +0 -1
  1073. package/dist/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
  1074. package/dist/components/BaseTile/BaseTileInner.mobile.js +0 -14
  1075. package/dist/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
  1076. package/dist/components/BaseTile/getHeadingType.d.ts +0 -1
  1077. package/dist/components/BaseTile/getHeadingType.js.map +0 -1
  1078. package/dist/components/BaseTile/renderButton.d.ts +0 -2
  1079. package/dist/components/BaseTile/renderButton.js +0 -12
  1080. package/dist/components/BaseTile/renderButton.js.map +0 -1
  1081. package/dist/components/BaseTile/renderButton.mobile.d.ts +0 -2
  1082. package/dist/components/BaseTile/renderButton.mobile.js +0 -13
  1083. package/dist/components/BaseTile/renderButton.mobile.js.map +0 -1
  1084. package/dist/components/BaseTile/renderItems.d.ts +0 -2
  1085. package/dist/components/BaseTile/renderItems.js +0 -9
  1086. package/dist/components/BaseTile/renderItems.js.map +0 -1
  1087. package/dist/components/BaseTile/renderItems.mobile.d.ts +0 -2
  1088. package/dist/components/BaseTile/renderItems.mobile.js +0 -9
  1089. package/dist/components/BaseTile/renderItems.mobile.js.map +0 -1
  1090. package/dist/components/ContentPage/toMobilePage.d.ts +0 -2
  1091. package/dist/components/ContentPage/toMobilePage.js +0 -34
  1092. package/dist/components/ContentPage/toMobilePage.js.map +0 -1
  1093. package/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
  1094. package/dist/ui-kit/Img.js.map +0 -1
  1095. package/dist/ui-kit/Img.mobile.js.map +0 -1
  1096. package/lib/components/BaseTile/BaseTile.mobile.d.ts +0 -5
  1097. package/lib/components/BaseTile/BaseTile.mobile.js +0 -15
  1098. package/lib/components/BaseTile/BaseTile.mobile.js.map +0 -1
  1099. package/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
  1100. package/lib/components/BaseTile/BaseTileInner.js +0 -12
  1101. package/lib/components/BaseTile/BaseTileInner.js.map +0 -1
  1102. package/lib/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
  1103. package/lib/components/BaseTile/BaseTileInner.mobile.js +0 -12
  1104. package/lib/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
  1105. package/lib/components/BaseTile/getHeadingType.d.ts +0 -1
  1106. package/lib/components/BaseTile/getHeadingType.js.map +0 -1
  1107. package/lib/components/BaseTile/renderButton.d.ts +0 -2
  1108. package/lib/components/BaseTile/renderButton.js +0 -9
  1109. package/lib/components/BaseTile/renderButton.js.map +0 -1
  1110. package/lib/components/BaseTile/renderButton.mobile.d.ts +0 -2
  1111. package/lib/components/BaseTile/renderButton.mobile.js +0 -10
  1112. package/lib/components/BaseTile/renderButton.mobile.js.map +0 -1
  1113. package/lib/components/BaseTile/renderItems.d.ts +0 -2
  1114. package/lib/components/BaseTile/renderItems.js +0 -6
  1115. package/lib/components/BaseTile/renderItems.js.map +0 -1
  1116. package/lib/components/BaseTile/renderItems.mobile.d.ts +0 -2
  1117. package/lib/components/BaseTile/renderItems.mobile.js +0 -6
  1118. package/lib/components/BaseTile/renderItems.mobile.js.map +0 -1
  1119. package/lib/components/ContentPage/toMobilePage.d.ts +0 -2
  1120. package/lib/components/ContentPage/toMobilePage.js.map +0 -1
  1121. package/lib/ui-kit/Heading/HeadingProps.js +0 -2
  1122. package/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
  1123. package/lib/ui-kit/Img.js.map +0 -1
  1124. package/lib/ui-kit/Img.mobile.js.map +0 -1
  1125. package/mobile/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
  1126. package/mobile/dist/components/BaseTile/BaseTileInner.js +0 -14
  1127. package/mobile/dist/components/BaseTile/BaseTileInner.js.map +0 -1
  1128. package/mobile/dist/components/BaseTile/getHeadingType.d.ts +0 -1
  1129. package/mobile/dist/components/BaseTile/getHeadingType.js.map +0 -1
  1130. package/mobile/dist/components/BaseTile/renderButton.d.ts +0 -2
  1131. package/mobile/dist/components/BaseTile/renderButton.js +0 -13
  1132. package/mobile/dist/components/BaseTile/renderButton.js.map +0 -1
  1133. package/mobile/dist/components/BaseTile/renderItems.d.ts +0 -2
  1134. package/mobile/dist/components/BaseTile/renderItems.js +0 -9
  1135. package/mobile/dist/components/BaseTile/renderItems.js.map +0 -1
  1136. package/mobile/dist/components/ContentPage/toMobilePage.d.ts +0 -2
  1137. package/mobile/dist/components/ContentPage/toMobilePage.js +0 -34
  1138. package/mobile/dist/components/ContentPage/toMobilePage.js.map +0 -1
  1139. package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
  1140. package/mobile/dist/ui-kit/Img.js.map +0 -1
  1141. package/mobile/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
  1142. package/mobile/lib/components/BaseTile/BaseTileInner.js +0 -12
  1143. package/mobile/lib/components/BaseTile/BaseTileInner.js.map +0 -1
  1144. package/mobile/lib/components/BaseTile/getHeadingType.d.ts +0 -1
  1145. package/mobile/lib/components/BaseTile/getHeadingType.js.map +0 -1
  1146. package/mobile/lib/components/BaseTile/renderButton.d.ts +0 -2
  1147. package/mobile/lib/components/BaseTile/renderButton.js +0 -10
  1148. package/mobile/lib/components/BaseTile/renderButton.js.map +0 -1
  1149. package/mobile/lib/components/BaseTile/renderItems.d.ts +0 -2
  1150. package/mobile/lib/components/BaseTile/renderItems.js +0 -6
  1151. package/mobile/lib/components/BaseTile/renderItems.js.map +0 -1
  1152. package/mobile/lib/components/ContentPage/toMobilePage.d.ts +0 -2
  1153. package/mobile/lib/components/ContentPage/toMobilePage.js.map +0 -1
  1154. package/mobile/lib/ui-kit/Heading/HeadingProps.js +0 -2
  1155. package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
  1156. package/mobile/lib/ui-kit/Img.js.map +0 -1
  1157. package/mobile/src/components/BaseTile/BaseTileInner.tsx +0 -31
  1158. package/mobile/src/components/BaseTile/renderButton.tsx +0 -20
  1159. package/mobile/src/components/BaseTile/renderItems.tsx +0 -12
  1160. package/src/components/BaseTile/BaseTile.mobile.tsx +0 -52
  1161. package/src/components/BaseTile/BaseTileInner.mobile.tsx +0 -31
  1162. package/src/components/BaseTile/BaseTileInner.tsx +0 -37
  1163. package/src/components/BaseTile/renderButton.mobile.tsx +0 -20
  1164. package/src/components/BaseTile/renderButton.tsx +0 -17
  1165. package/src/components/BaseTile/renderItems.mobile.tsx +0 -12
  1166. package/src/components/BaseTile/renderItems.tsx +0 -12
  1167. package/src/components/ContentPage/ContentPage.page.mobile.json +0 -508
@@ -1 +1 @@
1
- <svg title="Пополнение карты" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.19 7.06C6.45 7.02 6.72 7 7 7h10c.26 0 .51.01.75.05C20.33 7.35 22 9.26 22 12v5c0 3-2 5-5 5H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06 0-2.21-1.79-4-4-4-1.2 0-2.27.53-3 1.36V12c0-.87.17-1.66.48-2.33" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.75 7.05C17.51 7.01 17.26 7 17 7H7c-.28 0-.55.02-.81.06.14-.28.34-.54.58-.78l3.25-3.26a3.525 3.525 0 0 1 4.96 0l1.75 1.77c.64.63.98 1.43 1.02 2.26Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 19c0 .75-.21 1.46-.58 2.06A3.97 3.97 0 0 1 5 23a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-2.21 1.79-4 4-4s4 1.79 4 4ZM6.49 18.98H3.51M5 17.52v2.99" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 12.5h-3c-1.1 0-2 .9-2 2s.9 2 2 2h3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
1
+ <svg title="Пополнение карты" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.19 7.06C6.45 7.02 6.72 7 7 7h10c.26 0 .51.01.75.05C20.33 7.35 22 9.26 22 12v5c0 3-2 5-5 5H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06 0-2.21-1.79-4-4-4-1.2 0-2.27.53-3 1.36V12c0-.87.17-1.66.48-2.33" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.75 7.05C17.51 7.01 17.26 7 17 7H7c-.28 0-.55.02-.81.06.14-.28.34-.54.58-.78l3.25-3.26a3.525 3.525 0 0 1 4.96 0l1.75 1.77c.64.63.98 1.43 1.02 2.26Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 19c0 .75-.21 1.46-.58 2.06A3.97 3.97 0 0 1 5 23a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-2.21 1.79-4 4-4s4 1.79 4 4ZM6.49 18.98H3.51M5 17.52v2.99" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 12.5h-3c-1.1 0-2 .9-2 2s.9 2 2 2h3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1 +1 @@
1
- <svg title="Кошелёк с плюсом" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 15.44h-5M12 13v5" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22H8.1c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 2 .6 3.46 2.47 3.46 4.67v1.95c0 .2-.01.4-.02.6-.19 3.5-2.14 5.26-5.84 5.26" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m12.9 2.52-.03.07-2.9 6.73H7.12c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M18.29 9.52c-.45-.14-.93-.2-1.41-.2H9.97l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16ZM6.95 5.53 5.2 9.71a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.76 11.27v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
1
+ <svg title="Кошелёк с плюсом" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 15.44h-5M12 13v5" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22H8.1c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 2 .6 3.46 2.47 3.46 4.67v1.95c0 .2-.01.4-.02.6-.19 3.5-2.14 5.26-5.84 5.26" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m12.9 2.52-.03.07-2.9 6.73H7.12c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M18.29 9.52c-.45-.14-.93-.2-1.41-.2H9.97l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16ZM6.95 5.53 5.2 9.71a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.76 11.27v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1 +1 @@
1
- <svg title="Кошелёк" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.75 16.86v2.03c0 1.72-1.6 3.11-3.57 3.11-1.97 0-3.58-1.39-3.58-3.11v-2.03c0 1.72 1.6 2.94 3.58 2.94 1.97 0 3.57-1.23 3.57-2.94Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11c0 .5-.14.96-.38 1.36-.59.97-1.8 1.58-3.2 1.58-1.4 0-2.61-.62-3.2-1.58-.24-.4-.38-.86-.38-1.36 0-.86.4-1.63 1.04-2.19.65-.57 1.54-.91 2.53-.91.99 0 1.88.35 2.53.91.66.55 1.06 1.33 1.06 2.19Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11v2.75c0 1.72-1.6 2.94-3.57 2.94-1.97 0-3.58-1.23-3.58-2.94v-2.75C3.6 12.39 5.2 11 7.18 11c.99 0 1.88.35 2.53.91.64.56 1.04 1.34 1.04 2.2Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 10.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6H21c.56.02 1 .47 1 1.02Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 3.5c.26 0 .51.01.75.05C19.33 3.85 21 5.76 21 8.5v1.45h-2.08c-.56 0-1.07.22-1.44.6-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87H21v1.45c0 3-2 5-5 5h-2.5M2 10.5v-2c0-2.72 1.64-4.62 4.19-4.94.26-.04.53-.06.81-.06h5" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
1
+ <svg title="Кошелёк" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.75 16.86v2.03c0 1.72-1.6 3.11-3.57 3.11-1.97 0-3.58-1.39-3.58-3.11v-2.03c0 1.72 1.6 2.94 3.58 2.94 1.97 0 3.57-1.23 3.57-2.94Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11c0 .5-.14.96-.38 1.36-.59.97-1.8 1.58-3.2 1.58-1.4 0-2.61-.62-3.2-1.58-.24-.4-.38-.86-.38-1.36 0-.86.4-1.63 1.04-2.19.65-.57 1.54-.91 2.53-.91.99 0 1.88.35 2.53.91.66.55 1.06 1.33 1.06 2.19Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11v2.75c0 1.72-1.6 2.94-3.57 2.94-1.97 0-3.58-1.23-3.58-2.94v-2.75C3.6 12.39 5.2 11 7.18 11c.99 0 1.88.35 2.53.91.64.56 1.04 1.34 1.04 2.2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 10.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6H21c.56.02 1 .47 1 1.02Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 3.5c.26 0 .51.01.75.05C19.33 3.85 21 5.76 21 8.5v1.45h-2.08c-.56 0-1.07.22-1.44.6-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87H21v1.45c0 3-2 5-5 5h-2.5M2 10.5v-2c0-2.72 1.64-4.62 4.19-4.94.26-.04.53-.06.81-.06h5" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1 +1 @@
1
- <svg title="Кошелёк с деньгами" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 12.063V11a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.063" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m5 7 8.571-5L15 4.308M10 7l8-4 2 2.91" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.56 18H21a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round"/></svg>
1
+ <svg title="Кошелёк с деньгами" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 12.063V11a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.063" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m5 7 8.571-5L15 4.308M10 7l8-4 2 2.91" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.56 18H21a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round"/></svg>
package/src/index.ts CHANGED
@@ -15,7 +15,7 @@ export type {
15
15
  Search,
16
16
  } from './components/ContentPage/ContentPageContext';
17
17
  export { ContentPageHead } from './components/ContentPage/ContentPageHead';
18
- export { toMobilePage } from './components/ContentPage/toMobilePage';
18
+ export { normalizePage } from './components/ContentPage/normalizePage';
19
19
  export { Header } from './components/Header/Header';
20
20
  export type { Img, ImgSource, Picture } from './model/Picture';
21
21
  export { projectSettings } from './ProjectSettings';
@@ -3,4 +3,4 @@
3
3
  * @default primary
4
4
  * @enumNames ["Основная", "Второстепенная"]
5
5
  */
6
- export type ButtonVersion = 'primary' | 'secondary';
6
+ export type ButtonVersion = 'primary' | 'secondary' | 'link';
package/src/types.ts CHANGED
@@ -4,15 +4,16 @@ import type { BlockVersion } from './model/BlockVersion';
4
4
 
5
5
  export type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
6
6
 
7
- export interface BlockDef {
7
+ export interface BaseBlockDef {
8
8
  type: string;
9
9
  style?: string[];
10
10
  content?: BlockContent;
11
11
  version?: BlockVersion;
12
- blocks?: BlockDef[];
13
- mobile?: Pick<BlockDef, 'content' | 'style'> & {
14
- hidden?: boolean;
15
- };
12
+ hidden?: boolean;
13
+ }
14
+
15
+ export interface BlockDef extends BaseBlockDef {
16
+ mobile?: BaseBlockDef;
16
17
  }
17
18
 
18
19
  export interface Slot {
@@ -1,36 +1,33 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
- import { BlockItemProps, BlockItemVersion } from './BlockItemProps';
2
+ import type { BlockItemProps, BlockItemVersion } from './BlockItemProps';
4
3
 
5
4
  const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
6
5
 
7
6
  const TEXT_STYLE_MAP: Record<BlockItemVersion, string> = {
8
7
  primary: 'text-primary-text',
9
- secondary: '',
8
+ secondary: 'text-white',
9
+ gray: 'text-secondary-text',
10
10
  };
11
11
 
12
12
  const LIST_STYLE_MAP: Record<BlockItemVersion, string> = {
13
13
  primary: 'bg-primary-main',
14
14
  secondary: 'bg-white',
15
+ gray: 'bg-secondary-text',
15
16
  };
16
17
 
17
18
  export const BlockItem = JSX<BlockItemProps>(
18
- ({ className = '', isDotted = true, text, children, version = 'primary', white }) => {
19
+ ({ className = '', isDotted = true, text, children, version = 'primary' }) => {
19
20
  return (
20
- <div className={`font-sans flex items-baseline ${className}`} role="listitem">
21
- {isDotted && <div className={getListStyle(version, white)} />}
22
- <span className={white ? 'text-white' : TEXT_STYLE_MAP[version]}>{text || children}</span>
21
+ <div className={`font-sans flex items-center ${className}`} role="listitem">
22
+ {isDotted && <div className={getListStyle(version)} />}
23
+ <span className={TEXT_STYLE_MAP[version]}>{text || children}</span>
23
24
  </div>
24
25
  );
25
26
  },
26
27
  );
27
28
 
28
- const getListStyle = (version: BlockVersion, white?: boolean) => {
29
- const color = white ? 'bg-white' : LIST_STYLE_MAP[version];
29
+ const getListStyle = (version: BlockItemVersion) => {
30
30
  const size =
31
- version === 'primary'
32
- ? 'w-2 h-2 min-w-2 min-h-2 mt-2'
33
- : 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
34
-
35
- return `${LIST_STYLE_CLASSES} ${color} ${size}`;
31
+ version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
32
+ return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
36
33
  };
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @title Версия списка
3
+ * @enumNames ["Основной", "Второстепенный", "Белый"]
3
4
  */
4
- export type BlockItemVersion = 'primary' | 'secondary';
5
+ export type BlockItemVersion = 'primary' | 'secondary' | 'gray';
5
6
 
6
7
  /**
7
8
  * @title Содержимое элемента блока
@@ -17,7 +18,6 @@ export interface BlockItemContent {
17
18
  export interface BlockItemProps extends BlockItemContent {
18
19
  className?: string;
19
20
  version?: BlockItemVersion;
20
- white?: boolean;
21
21
  /** @title Маркер */
22
22
  isDotted?: boolean;
23
23
  }
@@ -70,7 +70,7 @@ export default {
70
70
  appendLeft={
71
71
  /** Div need for perfect pixel */
72
72
  <div>
73
- <Icon name="PlayMarketIcon" width="24" height="24" />
73
+ <Icon name="PlayMarketIcon" width="24" height="24" asSVG />
74
74
  </div>
75
75
  }
76
76
  text="Google Play"
@@ -82,7 +82,7 @@ export default {
82
82
  aboveText="Загрузите в"
83
83
  appendLeft={
84
84
  <div>
85
- <Icon name="AppleIcon" width="24" height="24" />
85
+ <Icon name="AppleIcon" width="24" height="24" asSVG />
86
86
  </div>
87
87
  }
88
88
  text="App Store"
@@ -4,24 +4,25 @@
4
4
  import { JSX } from '@redneckz/uni-jsx';
5
5
  import type { ButtonVersion } from '../../model/ButtonVersion';
6
6
  import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
7
+ import { ButtonInner } from './ButtonInner';
7
8
 
8
9
  const buttonStyleMap: Record<ButtonVersion, string> = {
9
10
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
10
11
  secondary:
11
12
  'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
13
+ link: 'text-primary-main',
12
14
  };
13
15
 
14
16
  const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
15
17
  primary: 'bg-secondary-dark text-secondary-text',
16
18
  secondary: 'bg-secondary-light text-secondary-text',
19
+ link: '',
17
20
  };
18
21
 
19
22
  const styleButton = 'w-full text-center font-sans select-none';
20
23
 
21
24
  export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
22
25
 
23
- export type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
24
-
25
26
  export const Button = JSX<ButtonCommonProps>(
26
27
  ({
27
28
  className,
@@ -34,12 +35,18 @@ export const Button = JSX<ButtonCommonProps>(
34
35
  children,
35
36
  disabled,
36
37
  rounded,
37
- version = 'none',
38
+ version = 'primary',
38
39
  ariaLabel,
39
40
  ...rest
40
41
  }) => {
41
42
  const buttonInner = children ?? (
42
- <ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
43
+ <ButtonInner
44
+ text={text}
45
+ aboveText={aboveText}
46
+ appendLeft={appendLeft}
47
+ rounded={rounded}
48
+ version={version}
49
+ />
43
50
  );
44
51
 
45
52
  if (disabled) {
@@ -75,23 +82,3 @@ export const Button = JSX<ButtonCommonProps>(
75
82
  );
76
83
  },
77
84
  );
78
-
79
- export const ButtonInner = JSX<ButtonInner>(({ text, aboveText, appendLeft, rounded }) => {
80
- const withoutText = !text && !aboveText && Boolean(appendLeft);
81
-
82
- const buttonInnerClasses = `flex items-center justify-center ${
83
- withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`
84
- } ${rounded ? 'rounded-full' : ''}`;
85
-
86
- return (
87
- <div className={buttonInnerClasses}>
88
- {appendLeft ? appendLeft : null}
89
- {withoutText ? null : (
90
- <div>
91
- <div className="text-m-2xs text-left">{aboveText}</div>
92
- <div className="text-m-button font-medium text-left">{text}</div>
93
- </div>
94
- )}
95
- </div>
96
- );
97
- });
@@ -1,27 +1,25 @@
1
- /* eslint-disable max-lines-per-function */
2
- /* eslint-disable complexity */
3
-
4
1
  import { JSX } from '@redneckz/uni-jsx';
5
2
  import type { ButtonVersion } from '../../model/ButtonVersion';
3
+ import { ButtonInner } from './ButtonInner';
6
4
  import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
7
5
 
8
6
  const buttonStyleMap: Record<ButtonVersion, string> = {
9
7
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
10
8
  secondary:
11
9
  'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
10
+ link: '',
12
11
  };
13
12
 
14
13
  const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
15
14
  primary: 'bg-secondary-dark text-secondary-text',
16
15
  secondary: 'bg-secondary-light text-secondary-text',
16
+ link: '',
17
17
  };
18
18
 
19
19
  const styleButton = 'text-center font-sans select-none';
20
20
 
21
21
  export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
22
22
 
23
- export type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
24
-
25
23
  export const Button = JSX<ButtonCommonProps>(
26
24
  ({
27
25
  className,
@@ -42,56 +40,62 @@ export const Button = JSX<ButtonCommonProps>(
42
40
  <ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
43
41
  );
44
42
 
45
- if (disabled) {
46
- return (
47
- <div
48
- role="button"
49
- aria-disabled="true"
50
- aria-label={ariaLabel}
51
- tabIndex="-1"
52
- className={`inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${
53
- rounded ? 'rounded-full' : 'rounded-md'
54
- } ${className || ''}`}
55
- >
56
- {buttonInner}
57
- </div>
58
- );
59
- }
60
-
61
- return (
62
- <a
63
- className={`${styleButton} inline-block cursor-pointer no-underline ${
64
- buttonStyleMap[version] || ''
65
- } ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`}
66
- href={href}
67
- target={target}
68
- onClick={onClick}
69
- aria-label={ariaLabel}
70
- role={!href ? 'button' : 'link'}
71
- {...rest}
72
- >
73
- {buttonInner}
74
- </a>
75
- );
43
+ return disabled
44
+ ? renderDisabledButton({ buttonInner, ariaLabel, className, version, rounded })
45
+ : renderButton({
46
+ buttonInner,
47
+ ariaLabel,
48
+ className,
49
+ version,
50
+ rounded,
51
+ href,
52
+ target,
53
+ onClick,
54
+ rest,
55
+ });
76
56
  },
77
57
  );
78
58
 
79
- export const ButtonInner = JSX<ButtonInner>(({ text, aboveText, appendLeft, rounded }) => {
80
- const withoutText = !text && !aboveText && Boolean(appendLeft);
81
-
82
- const buttonInnerClasses = `flex items-center justify-center ${
83
- withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`
84
- } ${rounded ? 'rounded-full' : ''}`;
59
+ function renderButton({
60
+ className,
61
+ buttonInner,
62
+ ariaLabel,
63
+ version,
64
+ rounded,
65
+ href,
66
+ target,
67
+ onClick,
68
+ rest,
69
+ }) {
70
+ return (
71
+ <a
72
+ className={`${styleButton} inline-block cursor-pointer no-underline ${
73
+ buttonStyleMap[version] || ''
74
+ } ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`}
75
+ href={href}
76
+ target={target}
77
+ onClick={onClick}
78
+ aria-label={ariaLabel}
79
+ role={!href ? 'button' : 'link'}
80
+ {...rest}
81
+ >
82
+ {buttonInner}
83
+ </a>
84
+ );
85
+ }
85
86
 
87
+ function renderDisabledButton({ className, buttonInner, ariaLabel, version, rounded }) {
86
88
  return (
87
- <div className={buttonInnerClasses}>
88
- {appendLeft ? appendLeft : null}
89
- {withoutText ? null : (
90
- <div>
91
- <div className="text-2xs text-left">{aboveText}</div>
92
- <div className="text-button font-medium text-left">{text}</div>
93
- </div>
94
- )}
89
+ <div
90
+ role="button"
91
+ aria-disabled="true"
92
+ aria-label={ariaLabel}
93
+ tabIndex="-1"
94
+ className={`inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${
95
+ rounded ? 'rounded-full' : 'rounded-md'
96
+ } ${className || ''}`}
97
+ >
98
+ {buttonInner}
95
99
  </div>
96
100
  );
97
- });
101
+ }
@@ -0,0 +1,37 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { ButtonVersion } from '../../model/ButtonVersion';
3
+ import type { ButtonWithIconProps } from './ButtonProps';
4
+
5
+ interface ButtonInnerProps extends ButtonWithIconProps {
6
+ version?: ButtonVersion;
7
+ }
8
+
9
+ export const ButtonInner = JSX<ButtonInnerProps>(
10
+ ({ text, aboveText, appendLeft, rounded, version }) => {
11
+ const withoutText = !text && !aboveText && Boolean(appendLeft);
12
+
13
+ const buttonInnerClasses =
14
+ version !== 'link'
15
+ ? `flex items-center justify-center
16
+ ${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${
17
+ rounded ? 'rounded-full' : ''
18
+ }`
19
+ : null;
20
+
21
+ return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
22
+ },
23
+ );
24
+
25
+ function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
26
+ return (
27
+ <div className={buttonInnerClasses}>
28
+ {appendLeft ? appendLeft : null}
29
+ {withoutText ? null : (
30
+ <div>
31
+ <div className="text-m-2xs text-left">{aboveText}</div>
32
+ <div className="text-m-button font-medium text-left">{text}</div>
33
+ </div>
34
+ )}
35
+ </div>
36
+ );
37
+ }
@@ -1,5 +1,6 @@
1
1
  import type { ButtonVersion } from '../../model/ButtonVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
+ import type { IconName } from '../Icon/IconProps';
3
4
 
4
5
  /**
5
6
  * @hidden
@@ -22,6 +23,8 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
22
23
  }
23
24
 
24
25
  export interface ButtonWithIconProps extends ButtonProps {
26
+ /** @title Иконка */
27
+ icon?: IconName;
25
28
  /** @title Верхний текст */
26
29
  aboveText?: string;
27
30
  /** @hidden */
@@ -31,3 +34,11 @@ export interface ButtonWithIconProps extends ButtonProps {
31
34
  /** @hidden */
32
35
  asSVG?: boolean;
33
36
  }
37
+
38
+ export interface ButtonContent {
39
+ /**
40
+ * @title Кнопки
41
+ * @maxItems 4
42
+ */
43
+ buttons?: ButtonWithIconProps[];
44
+ }
@@ -0,0 +1,34 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLink } from '../../hooks/useLink';
3
+ import { UniBlockProps } from '../../types';
4
+ import { Icon } from '../Icon/Icon';
5
+ import { Button } from './Button';
6
+ import type { ButtonContent, ButtonWithIconProps } from './ButtonProps';
7
+
8
+ export interface ButtonSectionProps extends ButtonContent, UniBlockProps {}
9
+
10
+ export const ButtonSection = JSX<ButtonSectionProps>(({ context, className = '', buttons }) => {
11
+ const { handlerDecorator } = context;
12
+ const router = context.useRouter();
13
+ return buttons?.length ? (
14
+ <div className={`${className}`}>
15
+ {buttons.map((button, index) =>
16
+ renderButton(useLink({ router, handlerDecorator }, button), index),
17
+ )}
18
+ </div>
19
+ ) : null;
20
+ });
21
+
22
+ function renderButton({ icon, ...button }: ButtonWithIconProps, i: number) {
23
+ if (!button?.text) return;
24
+
25
+ return icon ? (
26
+ <Button
27
+ key={String(i)}
28
+ appendLeft={<Icon name={icon} width="24" height="24" asSVG />}
29
+ {...button}
30
+ />
31
+ ) : (
32
+ <Button key={String(i)} {...button} />
33
+ );
34
+ }
@@ -0,0 +1,8 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { DescriptionProps } from './DescriptionProps';
3
+
4
+ export const Description = JSX<DescriptionProps>((props) => {
5
+ const { className, description } = props;
6
+
7
+ return <div className={`font-normal text-base ${className || ''}`}>{description}</div>;
8
+ });
@@ -0,0 +1,8 @@
1
+ export interface DescriptionContent {
2
+ /** @title Описание */
3
+ description?: string;
4
+ }
5
+
6
+ export interface DescriptionProps extends DescriptionContent {
7
+ className?: string;
8
+ }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Heading } from './Heading';
2
3
 
3
4
  export default {
@@ -5,22 +6,22 @@ export default {
5
6
  <div className="p-2 w-full h-full">
6
7
  <div className="bg-slate-100 w-full h-full">
7
8
  <div className="pb-3">
8
- <Heading type="h1" text="Копите в нескольких валютах" />
9
+ <Heading headingType="h1" title="Копите в нескольких валютах" />
9
10
  </div>
10
11
  <div className="pb-3">
11
- <Heading type="h2" text="Копите в нескольких валютах" />
12
+ <Heading headingType="h2" title="Копите в нескольких валютах" />
12
13
  </div>
13
14
  <div className="pb-3">
14
- <Heading type="h3" text="Дополнительные документы" />
15
+ <Heading headingType="h3" title="Дополнительные документы" />
15
16
  </div>
16
17
  <div className="pb-3">
17
- <Heading type="h4" text="Вклады в любой валюте" />
18
+ <Heading headingType="h4" title="Вклады в любой валюте" />
18
19
  </div>
19
20
  <div className="pb-3">
20
- <Heading type="h5" text="Вклады в любой валюте" />
21
+ <Heading headingType="h5" title="Вклады в любой валюте" />
21
22
  </div>
22
23
  <div className="pb-3">
23
- <Heading type="h6" text="Вклады в любой валюте" />
24
+ <Heading headingType="h6" title="Вклады в любой валюте" />
24
25
  </div>
25
26
  </div>
26
27
  </div>
@@ -5,22 +5,22 @@ export default {
5
5
  <div className="p-2 w-full h-full">
6
6
  <div className="bg-slate-100 w-full h-full">
7
7
  <div className="pb-3">
8
- <Heading type="h1" text="«Своя» дебетовая карта" />
8
+ <Heading headingType="h1" title="«Своя» дебетовая карта" />
9
9
  </div>
10
10
  <div className="pb-3">
11
- <Heading type="h2" text="Рефинансирование кредитов" />
11
+ <Heading headingType="h2" title="Рефинансирование кредитов" />
12
12
  </div>
13
13
  <div className="pb-3">
14
- <Heading type="h3" text="Потребительский кредит" />
14
+ <Heading headingType="h3" title="Потребительский кредит" />
15
15
  </div>
16
16
  <div className="pb-3">
17
- <Heading type="h4" text="Курсы обмена валют" />
17
+ <Heading headingType="h4" title="Курсы обмена валют" />
18
18
  </div>
19
19
  <div className="pb-3">
20
- <Heading type="h5" text="Своё Родное" />
20
+ <Heading headingType="h5" title="Своё Родное" />
21
21
  </div>
22
22
  <div className="pb-3">
23
- <Heading type="h6" text="Своё Родное" />
23
+ <Heading headingType="h6" title="Своё Родное" />
24
24
  </div>
25
25
  </div>
26
26
  </div>
@@ -1,7 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { HeadingProps } from './HeadingProps';
2
+ import { HeadingContent, HeadingType, HeadingTypeContent } from './HeadingContent';
3
3
 
4
- const HeadingClass: Record<HeadingProps['type'], string> = {
4
+ export interface HeadingProps extends HeadingContent, HeadingTypeContent {
5
+ className?: string;
6
+ }
7
+
8
+ const HeadingClass: Record<HeadingType, string> = {
5
9
  h1: 'text-m-title',
6
10
  h2: 'text-m-title',
7
11
  h3: 'text-m-title-md',
@@ -11,10 +15,15 @@ const HeadingClass: Record<HeadingProps['type'], string> = {
11
15
  };
12
16
 
13
17
  export const Heading = JSX<HeadingProps>((props) => {
14
- const { className, type, text } = props;
15
- const Tag = type;
18
+ const { className, headingType, title } = props;
19
+ if (!headingType) {
20
+ return;
21
+ }
22
+ const Tag = headingType;
16
23
 
17
24
  return (
18
- <Tag className={`font-sans font-medium ${HeadingClass[type]} ${className || ''}`}>{text}</Tag>
25
+ <Tag className={`font-sans font-medium ${HeadingClass[headingType]} ${className || ''}`}>
26
+ {title}
27
+ </Tag>
19
28
  );
20
29
  });
@@ -1,7 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { HeadingProps } from './HeadingProps';
2
+ import { HeadingContent, HeadingType, HeadingTypeContent } from './HeadingContent';
3
3
 
4
- const HeadingClass: Record<HeadingProps['type'], string> = {
4
+ export interface HeadingProps extends HeadingContent, HeadingTypeContent {
5
+ className?: string;
6
+ }
7
+
8
+ const HEADING_STYLE_MAP: Record<HeadingType, string> = {
5
9
  h1: 'text-title-lg tracking-[-0.3px]',
6
10
  h2: 'text-title',
7
11
  h3: 'text-title-sm',
@@ -11,10 +15,15 @@ const HeadingClass: Record<HeadingProps['type'], string> = {
11
15
  };
12
16
 
13
17
  export const Heading = JSX<HeadingProps>((props) => {
14
- const { className, type, text } = props;
15
- const Tag = type;
18
+ const { className, headingType, title } = props;
19
+ if (!headingType) {
20
+ return;
21
+ }
22
+ const Tag = headingType;
16
23
 
17
24
  return (
18
- <Tag className={`font-sans font-medium ${HeadingClass[type]} ${className || ''}`}>{text}</Tag>
25
+ <Tag className={`font-sans font-medium ${HEADING_STYLE_MAP[headingType]} ${className || ''}`}>
26
+ {title}
27
+ </Tag>
19
28
  );
20
29
  });
@@ -7,8 +7,11 @@
7
7
  */
8
8
  export type HeadingType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
9
9
 
10
- export interface HeadingProps {
11
- className?: string;
12
- type: HeadingType;
13
- text?: string;
10
+ export interface HeadingTypeContent {
11
+ headingType?: HeadingType;
12
+ }
13
+
14
+ export interface HeadingContent {
15
+ /** @title Заголовок */
16
+ title?: string;
14
17
  }