@redneckz/wildless-cms-uni-blocks 0.6.22 → 0.6.23

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 (324) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +132 -126
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/CalculatorContent.d.ts +4 -50
  5. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  6. package/bundle/components/ContentPage/useContentPageData.d.ts +3 -0
  7. package/bundle/components/Headline/HeadlineContent.d.ts +1 -0
  8. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  9. package/bundle/components/Tile/TileContent.d.ts +2 -1
  10. package/bundle/ui-kit/IntersectionObserverTag.d.ts +1 -0
  11. package/bundle/ui-kit/Tags/Tags.d.ts +6 -0
  12. package/bundle/ui-kit/Tags/TagsContent.d.ts +6 -0
  13. package/dist/components/Calculator/CalculatorContent.d.ts +4 -50
  14. package/dist/components/Catalog/Catalog.js +1 -1
  15. package/dist/components/Catalog/Catalog.js.map +1 -1
  16. package/dist/components/Catalog/CatalogCard.js +1 -1
  17. package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
  18. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  19. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  20. package/dist/components/ContentPage/ContentPage.page.json +35 -0
  21. package/dist/components/ContentPage/useContentPageData.d.ts +3 -0
  22. package/dist/components/ContentPage/useContentPageData.js +67 -0
  23. package/dist/components/ContentPage/useContentPageData.js.map +1 -0
  24. package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
  25. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  26. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  27. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  28. package/dist/components/Headline/HeadlineContent.d.ts +1 -0
  29. package/dist/components/InvestmentInfo/InvestmentInfo.js +4 -4
  30. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  31. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  32. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  33. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  34. package/dist/components/OfficeMap/OfficeMap.js +3 -3
  35. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  36. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  37. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  38. package/dist/components/Tabs/renderLinkTab.js +1 -1
  39. package/dist/components/Tabs/renderLinkTab.js.map +1 -1
  40. package/dist/components/Tile/Tile.js +3 -2
  41. package/dist/components/Tile/Tile.js.map +1 -1
  42. package/dist/components/Tile/TileContent.d.ts +2 -1
  43. package/dist/index.js +1 -1
  44. package/dist/index.js.map +1 -1
  45. package/dist/ui-kit/BlockWrapper.js +2 -2
  46. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  47. package/dist/ui-kit/IntersectionObserverTag.d.ts +1 -0
  48. package/dist/ui-kit/IntersectionObserverTag.js +2 -2
  49. package/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
  50. package/dist/ui-kit/Tags/Tags.d.ts +6 -0
  51. package/dist/ui-kit/Tags/Tags.js +10 -0
  52. package/dist/ui-kit/Tags/Tags.js.map +1 -0
  53. package/dist/ui-kit/Tags/TagsContent.d.ts +6 -0
  54. package/dist/ui-kit/Tags/TagsContent.js +2 -0
  55. package/dist/ui-kit/Tags/TagsContent.js.map +1 -0
  56. package/lib/common.css +1 -1
  57. package/lib/components/Calculator/CalculatorContent.d.ts +4 -50
  58. package/lib/components/Catalog/Catalog.js +1 -1
  59. package/lib/components/Catalog/Catalog.js.map +1 -1
  60. package/lib/components/Catalog/CatalogCard.js +1 -1
  61. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +2 -1
  62. package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
  63. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  64. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  65. package/lib/components/ContentPage/ContentPage.fixture.d.ts +2 -2
  66. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
  67. package/lib/components/ContentPage/ContentPage.page.json +35 -0
  68. package/lib/components/ContentPage/useContentPageData.d.ts +3 -0
  69. package/lib/components/ContentPage/useContentPageData.js +38 -0
  70. package/lib/components/ContentPage/useContentPageData.js.map +1 -0
  71. package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
  72. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  73. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  74. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  75. package/lib/components/Headline/HeadlineContent.d.ts +1 -0
  76. package/lib/components/InvestmentInfo/InvestmentInfo.js +4 -4
  77. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  78. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  79. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  80. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  81. package/lib/components/OfficeMap/OfficeMap.js +3 -3
  82. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  83. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  84. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  85. package/lib/components/Tabs/renderLinkTab.js +1 -1
  86. package/lib/components/Tabs/renderLinkTab.js.map +1 -1
  87. package/lib/components/Tile/Tile.fixture.d.ts +1 -0
  88. package/lib/components/Tile/Tile.js +3 -2
  89. package/lib/components/Tile/Tile.js.map +1 -1
  90. package/lib/components/Tile/TileContent.d.ts +2 -1
  91. package/lib/index.js +1 -1
  92. package/lib/index.js.map +1 -1
  93. package/lib/ui-kit/BlockWrapper.js +2 -2
  94. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  95. package/lib/ui-kit/IntersectionObserverTag.d.ts +1 -0
  96. package/lib/ui-kit/IntersectionObserverTag.js +2 -2
  97. package/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
  98. package/lib/ui-kit/Tags/Tags.d.ts +6 -0
  99. package/lib/ui-kit/Tags/Tags.fixture.d.ts +3 -0
  100. package/lib/ui-kit/Tags/Tags.js +8 -0
  101. package/lib/ui-kit/Tags/Tags.js.map +1 -0
  102. package/lib/ui-kit/Tags/TagsContent.d.ts +6 -0
  103. package/lib/ui-kit/Tags/TagsContent.js +2 -0
  104. package/lib/ui-kit/Tags/TagsContent.js.map +1 -0
  105. package/mobile/bundle/bundle.umd.js +5 -5
  106. package/mobile/bundle/bundle.umd.min.js +1 -1
  107. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +4 -50
  108. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  109. package/mobile/bundle/components/ContentPage/useContentPageData.d.ts +3 -0
  110. package/mobile/bundle/components/Headline/HeadlineContent.d.ts +1 -0
  111. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  112. package/mobile/bundle/components/Tile/TileContent.d.ts +2 -1
  113. package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +1 -0
  114. package/mobile/bundle/ui-kit/Tags/Tags.d.ts +6 -0
  115. package/mobile/bundle/ui-kit/Tags/TagsContent.d.ts +6 -0
  116. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +4 -50
  117. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  118. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  119. package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
  120. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
  121. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  122. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  123. package/mobile/dist/components/ContentPage/ContentPage.page.json +35 -0
  124. package/mobile/dist/components/ContentPage/useContentPageData.d.ts +3 -0
  125. package/mobile/dist/components/ContentPage/useContentPageData.js +67 -0
  126. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -0
  127. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
  128. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  129. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  130. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  131. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -0
  132. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +4 -4
  133. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  134. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  135. package/mobile/dist/components/OfficeMap/OfficeMap.js +3 -3
  136. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  137. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  138. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  139. package/mobile/dist/components/Tabs/renderLinkTab.js +1 -1
  140. package/mobile/dist/components/Tabs/renderLinkTab.js.map +1 -1
  141. package/mobile/dist/components/Tile/Tile.js +3 -2
  142. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  143. package/mobile/dist/components/Tile/TileContent.d.ts +2 -1
  144. package/mobile/dist/index.js +1 -1
  145. package/mobile/dist/index.js.map +1 -1
  146. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  147. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  148. package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +1 -0
  149. package/mobile/dist/ui-kit/IntersectionObserverTag.js +2 -2
  150. package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
  151. package/mobile/dist/ui-kit/Tags/Tags.d.ts +6 -0
  152. package/mobile/dist/ui-kit/Tags/Tags.js +10 -0
  153. package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -0
  154. package/mobile/dist/ui-kit/Tags/TagsContent.d.ts +6 -0
  155. package/mobile/dist/ui-kit/Tags/TagsContent.js +2 -0
  156. package/mobile/dist/ui-kit/Tags/TagsContent.js.map +1 -0
  157. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +4 -50
  158. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  159. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  160. package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
  161. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
  162. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  163. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -1
  164. package/mobile/lib/components/ContentPage/ContentPage.page.json +35 -0
  165. package/mobile/lib/components/ContentPage/useContentPageData.d.ts +3 -0
  166. package/mobile/lib/components/ContentPage/useContentPageData.js +38 -0
  167. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -0
  168. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
  169. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  170. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  171. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  172. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -0
  173. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +4 -4
  174. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  175. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -2
  176. package/mobile/lib/components/OfficeMap/OfficeMap.js +3 -3
  177. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  178. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  179. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  180. package/mobile/lib/components/Tabs/renderLinkTab.js +1 -1
  181. package/mobile/lib/components/Tabs/renderLinkTab.js.map +1 -1
  182. package/mobile/lib/components/Tile/Tile.js +3 -2
  183. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  184. package/mobile/lib/components/Tile/TileContent.d.ts +2 -1
  185. package/mobile/lib/index.js +1 -1
  186. package/mobile/lib/index.js.map +1 -1
  187. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  188. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  189. package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +1 -0
  190. package/mobile/lib/ui-kit/IntersectionObserverTag.js +2 -2
  191. package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
  192. package/mobile/lib/ui-kit/Tags/Tags.d.ts +6 -0
  193. package/mobile/lib/ui-kit/Tags/Tags.js +8 -0
  194. package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -0
  195. package/mobile/lib/ui-kit/Tags/TagsContent.d.ts +6 -0
  196. package/mobile/lib/ui-kit/Tags/TagsContent.js +2 -0
  197. package/mobile/lib/ui-kit/Tags/TagsContent.js.map +1 -0
  198. package/mobile/src/components/Accordion/Accordion.example.json +52 -2
  199. package/mobile/src/components/AccordionItem/AccordionItem.example.json +23 -5
  200. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +32 -30
  201. package/mobile/src/components/Bonus/Bonus.example.json +10 -8
  202. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +94 -91
  203. package/mobile/src/components/Calculator/Calculator.example.json +21 -19
  204. package/mobile/src/components/Calculator/CalculatorContent.ts +2 -53
  205. package/mobile/src/components/CardTransfer/CardTransfer.example.json +10 -8
  206. package/mobile/src/components/Catalog/Catalog.example.json +51 -49
  207. package/mobile/src/components/Catalog/Catalog.tsx +1 -1
  208. package/mobile/src/components/Catalog/CatalogCard.tsx +1 -1
  209. package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +79 -77
  210. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +45 -43
  211. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +2 -2
  212. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +2 -1
  213. package/mobile/src/components/ContentPage/ContentPage.page.json +3 -2318
  214. package/mobile/src/components/ContentPage/useContentPageData.ts +49 -0
  215. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +12 -10
  216. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -4
  217. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  218. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +7 -5
  219. package/mobile/src/components/Gallery/Gallery.example.json +62 -60
  220. package/mobile/src/components/GracePeriod/GracePeriod.example.json +61 -74
  221. package/mobile/src/components/Header/Header.example.json +6 -4
  222. package/mobile/src/components/Headline/Headline.example.json +15 -13
  223. package/mobile/src/components/Headline/HeadlineContent.ts +1 -0
  224. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +76 -74
  225. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -45
  226. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +14 -10
  227. package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +5 -12
  228. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -2
  229. package/mobile/src/components/LinkDocs/LinkDocs.example.json +31 -29
  230. package/mobile/src/components/LinkList/LinkList.example.json +21 -19
  231. package/mobile/src/components/MiniGallery/MiniGallery.example.json +51 -49
  232. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +33 -30
  233. package/mobile/src/components/OfficeMap/OfficeMap.tsx +3 -3
  234. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +47 -45
  235. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +3 -1
  236. package/mobile/src/components/OtherProducts/OtherProducts.example.json +28 -1
  237. package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +20 -2
  238. package/mobile/src/components/PictureText/PictureText.example.json +28 -26
  239. package/mobile/src/components/ProductBlock/ProductBlock.example.json +37 -35
  240. package/mobile/src/components/ProductGallery/ProductGallery.example.json +66 -64
  241. package/mobile/src/components/ProductTile/ProductTile.example.json +31 -29
  242. package/mobile/src/components/PromoTile/PromoTile.example.json +14 -12
  243. package/mobile/src/components/Recommendation/Recommendation.example.json +52 -50
  244. package/mobile/src/components/StepsBlock/StepsBlock.example.json +54 -52
  245. package/mobile/src/components/Tabs/Tabs.example.json +20 -18
  246. package/mobile/src/components/Tabs/renderLinkTab.tsx +1 -0
  247. package/mobile/src/components/TariffsTable/TariffsTable.example.json +91 -89
  248. package/mobile/src/components/TextBlock/TextBlock.example.json +14 -12
  249. package/mobile/src/components/Tile/Tile.example.json +21 -19
  250. package/mobile/src/components/Tile/Tile.tsx +3 -0
  251. package/mobile/src/components/Tile/TileContent.ts +3 -1
  252. package/mobile/src/index.ts +1 -1
  253. package/mobile/src/ui-kit/BlockWrapper.tsx +5 -2
  254. package/mobile/src/ui-kit/IntersectionObserverTag.tsx +3 -1
  255. package/mobile/src/ui-kit/Tags/Tags.tsx +26 -0
  256. package/mobile/src/ui-kit/Tags/TagsContent.ts +6 -0
  257. package/package.json +22 -2
  258. package/src/components/Accordion/Accordion.example.json +52 -2
  259. package/src/components/AccordionItem/AccordionItem.example.json +23 -5
  260. package/src/components/BenefitsBlock/BenefitsBlock.example.json +32 -30
  261. package/src/components/Bonus/Bonus.example.json +10 -8
  262. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +94 -91
  263. package/src/components/Calculator/Calculator.example.json +21 -19
  264. package/src/components/Calculator/CalculatorContent.ts +2 -53
  265. package/src/components/CardTransfer/CardTransfer.example.json +10 -8
  266. package/src/components/Catalog/Catalog.example.json +51 -49
  267. package/src/components/Catalog/Catalog.tsx +1 -1
  268. package/src/components/Catalog/CatalogCard.tsx +1 -1
  269. package/src/components/ComparisonTable/ComparisonTable.example.json +79 -77
  270. package/src/components/ContactsBlock/ContactsBlock.example.json +45 -43
  271. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +46 -39
  272. package/src/components/ContactsBlock/ContactsBlock.tsx +2 -2
  273. package/src/components/ContactsBlock/ContactsBlockContent.ts +2 -1
  274. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +13 -10
  275. package/src/components/ContentPage/ContentPage.fixture.tsx +24 -16
  276. package/src/components/ContentPage/ContentPage.page.json +3 -2318
  277. package/src/components/ContentPage/useContentPageData.ts +49 -0
  278. package/src/components/ErrorBlock/ErrorBlock.example.json +12 -10
  279. package/src/components/ErrorBlock/ErrorBlock.tsx +1 -4
  280. package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  281. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +7 -5
  282. package/src/components/Gallery/Gallery.example.json +62 -60
  283. package/src/components/GracePeriod/GracePeriod.example.json +61 -74
  284. package/src/components/Header/Header.example.json +6 -4
  285. package/src/components/Headline/Headline.example.json +15 -13
  286. package/src/components/Headline/HeadlineContent.ts +1 -0
  287. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +76 -74
  288. package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -45
  289. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +3 -4
  290. package/src/components/InvestmentInfo/InvestmentInfo.tsx +14 -10
  291. package/src/components/InvestmentInfo/InvestmentInfo.ui.json +5 -12
  292. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -2
  293. package/src/components/LinkDocs/LinkDocs.example.json +31 -29
  294. package/src/components/LinkList/LinkList.example.json +21 -19
  295. package/src/components/MiniGallery/MiniGallery.example.json +51 -49
  296. package/src/components/MobileAppTile/MobileAppTile.example.json +33 -30
  297. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  298. package/src/components/OfficeMap/OfficeMap.tsx +3 -3
  299. package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +47 -45
  300. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +3 -1
  301. package/src/components/OtherProducts/OtherProducts.example.json +28 -1
  302. package/src/components/OtherProductsItem/OtherProductsItem.example.json +20 -2
  303. package/src/components/PictureText/PictureText.example.json +28 -26
  304. package/src/components/ProductBlock/ProductBlock.example.json +37 -35
  305. package/src/components/ProductGallery/ProductGallery.example.json +66 -64
  306. package/src/components/ProductTile/ProductTile.example.json +31 -29
  307. package/src/components/PromoTile/PromoTile.example.json +14 -12
  308. package/src/components/Recommendation/Recommendation.example.json +52 -50
  309. package/src/components/StepsBlock/StepsBlock.example.json +54 -52
  310. package/src/components/Tabs/Tabs.example.json +20 -18
  311. package/src/components/Tabs/renderLinkTab.tsx +1 -0
  312. package/src/components/TariffsTable/TariffsTable.example.json +91 -89
  313. package/src/components/TextBlock/TextBlock.example.json +14 -12
  314. package/src/components/Tile/Tile.example.json +21 -19
  315. package/src/components/Tile/Tile.fixture.tsx +7 -0
  316. package/src/components/Tile/Tile.tsx +3 -0
  317. package/src/components/Tile/TileContent.ts +3 -1
  318. package/src/index.ts +1 -1
  319. package/src/ui-kit/BlockWrapper.tsx +5 -2
  320. package/src/ui-kit/IntersectionObserverTag.tsx +3 -1
  321. package/src/ui-kit/Tags/Tags.fixture.tsx +9 -0
  322. package/src/ui-kit/Tags/Tags.tsx +26 -0
  323. package/src/ui-kit/Tags/TagsContent.ts +6 -0
  324. package/tailwind.config.cjs +2 -1
@@ -1,57 +1,59 @@
1
1
  {
2
- "title": "Каталог",
3
- "description": "Описание",
4
- "cards": [
5
- {
6
- "title": "Заголовок карточки 1",
7
- "description": "Описание карточки",
8
- "image": {
9
- "format": "webp",
10
- "size": {
11
- "width": 230,
12
- "height": 230
2
+ "content": {
3
+ "title": "Каталог",
4
+ "description": "Описание",
5
+ "cards": [
6
+ {
7
+ "title": "Заголовок карточки 1",
8
+ "description": "Описание карточки",
9
+ "image": {
10
+ "format": "webp",
11
+ "size": {
12
+ "width": 230,
13
+ "height": 230
14
+ }
15
+ },
16
+ "button": {
17
+ "href": "",
18
+ "text": "Подробнее",
19
+ "target": "_self",
20
+ "version": "primary"
13
21
  }
14
22
  },
15
- "button": {
16
- "href": "",
17
- "text": "Подробнее",
18
- "target": "_self",
19
- "version": "primary"
20
- }
21
- },
22
- {
23
- "title": "Заголовок карточки 2",
24
- "description": "Описание карточки",
25
- "image": {
26
- "format": "webp",
27
- "size": {
28
- "width": 230,
29
- "height": 230
23
+ {
24
+ "title": "Заголовок карточки 2",
25
+ "description": "Описание карточки",
26
+ "image": {
27
+ "format": "webp",
28
+ "size": {
29
+ "width": 230,
30
+ "height": 230
31
+ }
32
+ },
33
+ "button": {
34
+ "href": "",
35
+ "text": "Подробнее",
36
+ "target": "_self",
37
+ "version": "primary"
30
38
  }
31
39
  },
32
- "button": {
33
- "href": "",
34
- "text": "Подробнее",
35
- "target": "_self",
36
- "version": "primary"
37
- }
38
- },
39
- {
40
- "title": "Заголовок карточки 3",
41
- "description": "Описание карточки",
42
- "image": {
43
- "format": "webp",
44
- "size": {
45
- "width": 230,
46
- "height": 230
40
+ {
41
+ "title": "Заголовок карточки 3",
42
+ "description": "Описание карточки",
43
+ "image": {
44
+ "format": "webp",
45
+ "size": {
46
+ "width": 230,
47
+ "height": 230
48
+ }
49
+ },
50
+ "button": {
51
+ "href": "",
52
+ "text": "Подробнее",
53
+ "target": "_self",
54
+ "version": "primary"
47
55
  }
48
- },
49
- "button": {
50
- "href": "",
51
- "text": "Подробнее",
52
- "target": "_self",
53
- "version": "primary"
54
56
  }
55
- }
56
- ]
57
+ ]
58
+ }
57
59
  }
@@ -21,7 +21,7 @@ export const Catalog = JSX<CatalogProps>(
21
21
  return (
22
22
  <BlockWrapper
23
23
  context={context}
24
- className={`bg-white relative font-sans p-12 overflow-hidden text-center ${className}`}
24
+ className={`bg-white relative font-sans p-[50px] overflow-hidden text-center ${className}`}
25
25
  {...rest}
26
26
  >
27
27
  <Headline
@@ -29,7 +29,7 @@ export const CatalogCard = JSX<CatalogCardProps>(
29
29
  ) : null}
30
30
  {description ? <div className="text-m-light text-left mb-4">{description}</div> : null}
31
31
  {colors?.length ? (
32
- <div className="flex mb-4 text-m-light text-secondary-text">
32
+ <div className="flex mb-4 text-s-light text-secondary-text">
33
33
  <div className="mr-1.5">Доступные цвета: </div>
34
34
  {colors.map(renderColorOption)}
35
35
  </div>
@@ -1,85 +1,87 @@
1
1
  {
2
- "title": "Сравнительная таблица",
3
- "orientation": "horizontal",
4
- "rowHeaders": [
5
- {
6
- "title": "Параметр 1"
7
- },
8
- {
9
- "title": "Параметр 2"
10
- },
11
- {
12
- "title": "Параметр 3"
13
- }
14
- ],
15
- "columns": [
16
- {
17
- "header": {
18
- "title": "Продукт 1",
19
- "image": {
20
- "format": "webp",
21
- "size": {
22
- "width": 100,
23
- "height": 63
24
- }
25
- }
2
+ "content": {
3
+ "title": "Сравнительная таблица",
4
+ "orientation": "horizontal",
5
+ "rowHeaders": [
6
+ {
7
+ "title": "Параметр 1"
26
8
  },
27
- "data": [
28
- [
29
- {
30
- "label": "Ячейка 1"
31
- }
32
- ],
33
- [
34
- {
35
- "label": "Ячейка 2-1",
36
- "description": "Описание для ячейки 2-1"
37
- },
38
- {
39
- "label": "Ячейка 2-2",
40
- "description": "Описание для ячейки 2-2"
41
- }
42
- ],
43
- [
44
- {
45
- "label": "Ячейка 3"
9
+ {
10
+ "title": "Параметр 2"
11
+ },
12
+ {
13
+ "title": "Параметр 3"
14
+ }
15
+ ],
16
+ "columns": [
17
+ {
18
+ "header": {
19
+ "title": "Продукт 1",
20
+ "image": {
21
+ "format": "webp",
22
+ "size": {
23
+ "width": 100,
24
+ "height": 63
25
+ }
46
26
  }
27
+ },
28
+ "data": [
29
+ [
30
+ {
31
+ "label": "Ячейка 1"
32
+ }
33
+ ],
34
+ [
35
+ {
36
+ "label": "Ячейка 2-1",
37
+ "description": "Описание для ячейки 2-1"
38
+ },
39
+ {
40
+ "label": "Ячейка 2-2",
41
+ "description": "Описание для ячейки 2-2"
42
+ }
43
+ ],
44
+ [
45
+ {
46
+ "label": "Ячейка 3"
47
+ }
48
+ ]
47
49
  ]
48
- ]
49
- },
50
- {
51
- "header": {
52
- "title": "Продукт 2",
53
- "image": {
54
- "format": "webp",
55
- "size": {
56
- "width": 100,
57
- "height": 63
58
- }
59
- }
60
50
  },
61
- "data": [
62
- [
63
- {
64
- "label": "Ячейка 1"
65
- }
66
- ],
67
- [
68
- {
69
- "label": "Ячейка 2-1",
70
- "description": "Описание для ячейки 2-1"
71
- },
72
- {
73
- "label": "Ячейка 2-2",
74
- "description": "Описание для ячейки 2-2"
75
- }
76
- ],
77
- [
78
- {
79
- "label": "Ячейка 3"
51
+ {
52
+ "header": {
53
+ "title": "Продукт 2",
54
+ "image": {
55
+ "format": "webp",
56
+ "size": {
57
+ "width": 100,
58
+ "height": 63
59
+ }
80
60
  }
61
+ },
62
+ "data": [
63
+ [
64
+ {
65
+ "label": "Ячейка 1"
66
+ }
67
+ ],
68
+ [
69
+ {
70
+ "label": "Ячейка 2-1",
71
+ "description": "Описание для ячейки 2-1"
72
+ },
73
+ {
74
+ "label": "Ячейка 2-2",
75
+ "description": "Описание для ячейки 2-2"
76
+ }
77
+ ],
78
+ [
79
+ {
80
+ "label": "Ячейка 3"
81
+ }
82
+ ]
81
83
  ]
82
- ]
83
- }
84
- ]
84
+ }
85
+ ]
86
+ }
85
87
  }
@@ -1,51 +1,53 @@
1
1
  {
2
- "contactsBlockVersion": "secondary",
3
- "info": [
4
- {
5
- "title": "Заголовок 1",
6
- "description": "Описание 1",
7
- "button": {
8
- "href": "#",
9
- "text": "Кнопка 1",
10
- "target": "_blank",
11
- "version": "secondary"
12
- }
13
- },
14
- {
15
- "title": "Заголовок 2",
16
- "description": "Описание 2",
17
- "button": {
18
- "href": "#",
19
- "text": "Кнопка 2",
20
- "target": "_blank",
21
- "version": "secondary"
22
- }
23
- }
24
- ],
25
- "contacts": [
26
- [
2
+ "content": {
3
+ "version": "secondary",
4
+ "info": [
27
5
  {
28
- "title": "Заголовок 3",
29
- "description": "Описание 3",
30
- "additionalDescription": "Доп описание 3"
6
+ "title": "Заголовок 1",
7
+ "description": "Описание 1",
8
+ "button": {
9
+ "href": "#",
10
+ "text": "Кнопка 1",
11
+ "target": "_blank",
12
+ "version": "secondary"
13
+ }
31
14
  },
32
15
  {
33
- "title": "Заголовок 4",
34
- "description": "Описание 4",
35
- "additionalDescription": "Доп описание 4"
16
+ "title": "Заголовок 2",
17
+ "description": "Описание 2",
18
+ "button": {
19
+ "href": "#",
20
+ "text": "Кнопка 2",
21
+ "target": "_blank",
22
+ "version": "secondary"
23
+ }
36
24
  }
37
25
  ],
38
- [
39
- {
40
- "title": "Заголовок 5",
41
- "description": "Описание 5",
42
- "additionalDescription": "Доп описание 5"
43
- },
44
- {
45
- "title": "Заголовок 6",
46
- "description": "Описание 6",
47
- "additionalDescription": "Доп описание 6"
48
- }
26
+ "contacts": [
27
+ [
28
+ {
29
+ "title": "Заголовок 3",
30
+ "description": "Описание 3",
31
+ "additionalDescription": "Доп описание 3"
32
+ },
33
+ {
34
+ "title": "Заголовок 4",
35
+ "description": "Описание 4",
36
+ "additionalDescription": "Доп описание 4"
37
+ }
38
+ ],
39
+ [
40
+ {
41
+ "title": "Заголовок 5",
42
+ "description": "Описание 5",
43
+ "additionalDescription": "Доп описание 5"
44
+ },
45
+ {
46
+ "title": "Заголовок 6",
47
+ "description": "Описание 6",
48
+ "additionalDescription": "Доп описание 6"
49
+ }
50
+ ]
49
51
  ]
50
- ]
52
+ }
51
53
  }
@@ -9,48 +9,55 @@ const button: ButtonProps = {
9
9
  version: 'secondary',
10
10
  };
11
11
 
12
+ const info = [
13
+ {
14
+ title: 'Телеграм-канал РСХБ Инвестиции',
15
+ description:
16
+ 'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
17
+ button,
18
+ },
19
+ {
20
+ title: 'Подписка на аналитику',
21
+ description: 'E-mail рассылка: главное за неделю',
22
+ button,
23
+ },
24
+ ];
25
+ const contacts = [
26
+ [
27
+ {
28
+ title: '8 (800) 100-40-40',
29
+ description: 'Для консультаций',
30
+ },
31
+ {
32
+ title: '8 (800) 100-40-60',
33
+ description: 'Для подачи торговых поручений',
34
+ additionalDescription: 'Потребуется назвать уникальный код клиента и кодовое слово',
35
+ },
36
+ ],
37
+ [
38
+ {
39
+ title: 'invest@rshb.ru',
40
+ description: 'По брокерскому обслуживанию',
41
+ additionalDescription: 'Восстановление логина и номера соглашения',
42
+ },
43
+ {
44
+ title: 'broker@rshb.ru',
45
+ description: 'По брокерскому обслуживанию',
46
+ additionalDescription: 'Получение расчета финансового результата и справки 2-НДФЛ',
47
+ },
48
+ ],
49
+ ];
50
+
12
51
  export default {
13
- default: (
52
+ secondary: (
53
+ <ContactsBlock className="col-span-12" info={info} contacts={contacts} context={context} />
54
+ ),
55
+ primary: (
14
56
  <ContactsBlock
15
57
  className="col-span-12"
16
- info={[
17
- {
18
- title: 'Телеграм-канал РСХБ Инвестиции',
19
- description:
20
- 'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
21
- button,
22
- },
23
- {
24
- title: 'Подписка на аналитику',
25
- description: 'E-mail рассылка: главное за неделю',
26
- button,
27
- },
28
- ]}
29
- contacts={[
30
- [
31
- {
32
- title: '8 (800) 100-40-40',
33
- description: 'Для консультаций',
34
- },
35
- {
36
- title: '8 (800) 100-40-60',
37
- description: 'Для подачи торговых поручений',
38
- additionalDescription: 'Потребуется назвать уникальный код клиента и кодовое слово',
39
- },
40
- ],
41
- [
42
- {
43
- title: 'invest@rshb.ru',
44
- description: 'По брокерскому обслуживанию',
45
- additionalDescription: 'Восстановление логина и номера соглашения',
46
- },
47
- {
48
- title: 'broker@rshb.ru',
49
- description: 'По брокерскому обслуживанию',
50
- additionalDescription: 'Получение расчета финансового результата и справки 2-НДФЛ',
51
- },
52
- ],
53
- ]}
58
+ version="primary"
59
+ info={info}
60
+ contacts={contacts}
54
61
  context={context}
55
62
  />
56
63
  ),
@@ -19,11 +19,11 @@ const contactsBlockStyleMap = {
19
19
  };
20
20
 
21
21
  export const ContactsBlock = JSX<ContactsBlockProps>(
22
- ({ className = '', contacts, context, info, contactsBlockVersion = 'secondary', ...rest }) => {
22
+ ({ className = '', contacts, context, info, version = 'secondary', ...rest }) => {
23
23
  return (
24
24
  <BlockWrapper
25
25
  context={context}
26
- className={`${contactsBlockStyleMap[contactsBlockVersion]} flex p-12 ${className}`}
26
+ className={`${contactsBlockStyleMap[version]} flex p-12 ${className}`}
27
27
  {...rest}
28
28
  >
29
29
  {info ? renderInfo(info) : null}
@@ -1,3 +1,4 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
1
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
4
 
@@ -15,7 +16,7 @@ export interface ContactsBlockContent {
15
16
  * @maxItems 2
16
17
  * */
17
18
  contacts?: ContactItemProps[][];
18
- contactsBlockVersion?: 'secondary';
19
+ version?: BlockVersion;
19
20
  }
20
21
 
21
22
  /**
@@ -1,19 +1,22 @@
1
+ /* eslint-disable react-hooks/rules-of-hooks */
1
2
  import { mobileContext } from '../../react/setup-fixture';
2
3
 
3
4
  import type { ContentPageDef } from '../../model/ContentPageDef';
4
5
  import { Blocks } from '../Blocks';
5
6
  import { ContentPage } from './ContentPage';
6
7
  import { normalizePage } from './normalizePage';
7
-
8
- import data from './ContentPage.page.json';
8
+ import { useContentPageData } from './useContentPageData';
9
9
 
10
10
  export default {
11
- default: (
12
- <ContentPage
13
- className="bg-secondary-text"
14
- context={mobileContext}
15
- blocksRegistry={Blocks}
16
- data={normalizePage(Blocks)(data as ContentPageDef)}
17
- />
18
- ),
11
+ default: () => {
12
+ const data = useContentPageData(Blocks);
13
+
14
+ return (
15
+ <ContentPage
16
+ context={mobileContext}
17
+ blocksRegistry={Blocks}
18
+ data={normalizePage(Blocks)(data as ContentPageDef)}
19
+ />
20
+ );
21
+ },
19
22
  };
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react-hooks/rules-of-hooks */
1
2
  import { context } from '../../react/setup-fixture';
2
3
 
3
4
  import type { BlockDecorator } from '../../model/BlockDecorator';
@@ -5,8 +6,7 @@ import type { ContentPageDef } from '../../model/ContentPageDef';
5
6
  import { Blocks } from '../Blocks';
6
7
  import { ContentPage } from './ContentPage';
7
8
  import { normalizePage } from './normalizePage';
8
-
9
- import data from './ContentPage.page.json';
9
+ import { useContentPageData } from './useContentPageData';
10
10
 
11
11
  const blockDecorator: BlockDecorator = ({ blockClassName, block, render }, i) => (
12
12
  <div
@@ -28,23 +28,31 @@ const blockDecorator: BlockDecorator = ({ blockClassName, block, render }, i) =>
28
28
  );
29
29
 
30
30
  export default {
31
- default: (
32
- <ContentPage
33
- className="bg-main"
34
- context={context}
35
- blocksRegistry={Blocks}
36
- data={normalizePage(Blocks)(data as ContentPageDef)}
37
- />
38
- ),
39
- editor: (
40
- <div style={{ background: "url('grid.svg')", height: '100%' }}>
31
+ default: () => {
32
+ const data = useContentPageData(Blocks);
33
+
34
+ return (
41
35
  <ContentPage
42
- className="bg-transparent"
36
+ className="bg-main"
43
37
  context={context}
44
38
  blocksRegistry={Blocks}
45
39
  data={normalizePage(Blocks)(data as ContentPageDef)}
46
- blockDecorator={blockDecorator}
47
40
  />
48
- </div>
49
- ),
41
+ );
42
+ },
43
+ editor: () => {
44
+ const data = useContentPageData(Blocks);
45
+
46
+ return (
47
+ <div style={{ background: "url('grid.svg')", height: '100%' }}>
48
+ <ContentPage
49
+ className="bg-transparent"
50
+ context={context}
51
+ blocksRegistry={Blocks}
52
+ data={normalizePage(Blocks)(data as ContentPageDef)}
53
+ blockDecorator={blockDecorator}
54
+ />
55
+ </div>
56
+ );
57
+ },
50
58
  };