@redneckz/wildless-cms-uni-blocks 0.3.19 → 0.3.22

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 (347) hide show
  1. package/README.md +43 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +212 -13
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/cosmos-static/icons/ArrowDownIcon.svg +1 -0
  6. package/cosmos-static/icons/ArrowUpIcon.svg +1 -0
  7. package/dist/components/Accordion/AccordionContent.d.ts +3 -73
  8. package/dist/components/Accordion/AccordionItem.js +2 -2
  9. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  10. package/dist/components/Accordion/AccordionItem.mobile.js +2 -2
  11. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  12. package/dist/components/Accordion/AccordionItemInner.js +3 -11
  13. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  14. package/dist/components/Accordion/AccordionItemInner.mobile.js +4 -10
  15. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  16. package/{lib/components/Accordion/utils/isActiveHandler.d.ts → dist/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  17. package/{mobile/dist/components/Accordion/utils/isActiveHandler.js → dist/components/Accordion/utils/useActiveHandler.js} +4 -4
  18. package/dist/components/Accordion/utils/useActiveHandler.js.map +1 -0
  19. package/dist/components/Blocks.d.ts +1 -0
  20. package/dist/components/Blocks.js +2 -0
  21. package/dist/components/Blocks.js.map +1 -1
  22. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +15 -0
  23. package/dist/components/ComparisonTable/HeaderCell.d.ts +1 -0
  24. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  25. package/dist/components/ComparisonTable/TableColumn.d.ts +3 -2
  26. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  27. package/dist/components/Gallery/GalleryContent.d.ts +1 -1
  28. package/dist/components/Headline/Headline.js +1 -1
  29. package/dist/components/Headline/Headline.js.map +1 -1
  30. package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  31. package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  32. package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  33. package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  34. package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  35. package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  36. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  37. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  38. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  39. package/dist/components/OtherProducts/OtherProducts.d.ts +5 -0
  40. package/dist/components/OtherProducts/OtherProducts.js +9 -0
  41. package/dist/components/OtherProducts/OtherProducts.js.map +1 -0
  42. package/dist/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  43. package/dist/components/OtherProducts/OtherProductsContent.js +2 -0
  44. package/dist/components/OtherProducts/OtherProductsContent.js.map +1 -0
  45. package/dist/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  46. package/dist/components/OtherProducts/OtherProductsItem.js +16 -0
  47. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -0
  48. package/dist/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  49. package/dist/components/OtherProducts/OtherProductsItemInner.js +10 -0
  50. package/dist/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  51. package/dist/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  52. package/dist/components/OtherProducts/utils/useActiveHandler.js +21 -0
  53. package/dist/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  54. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  55. package/dist/icons/IconName.d.ts +81 -2
  56. package/dist/icons/IconName.js +82 -1
  57. package/dist/icons/IconName.js.map +1 -1
  58. package/dist/model/BlockVersion.d.ts +1 -1
  59. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  60. package/dist/ui-kit/BlocksList/BlocksListProps.js +2 -0
  61. package/dist/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  62. package/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  63. package/dist/ui-kit/BlocksList/EmbeddableBlocks.js +25 -0
  64. package/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  65. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  66. package/dist/ui-kit/BlocksList/renderBlocksList.js +17 -0
  67. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  68. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  69. package/dist/ui-kit/Icon/Icon.js +2 -1
  70. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  71. package/lib/common.css +1 -1
  72. package/lib/components/Accordion/Accordion.fixture.d.ts +0 -1
  73. package/lib/components/Accordion/AccordionContent.d.ts +3 -73
  74. package/lib/components/Accordion/AccordionItem.js +2 -2
  75. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  76. package/lib/components/Accordion/AccordionItem.mobile.js +2 -2
  77. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  78. package/lib/components/Accordion/AccordionItemInner.js +3 -11
  79. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  80. package/lib/components/Accordion/AccordionItemInner.mobile.js +4 -10
  81. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  82. package/{mobile/dist/components/Accordion/utils/isActiveHandler.d.ts → lib/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  83. package/{mobile/lib/components/Accordion/utils/isActiveHandler.js → lib/components/Accordion/utils/useActiveHandler.js} +2 -2
  84. package/lib/components/Accordion/utils/useActiveHandler.js.map +1 -0
  85. package/lib/components/Blocks.d.ts +1 -0
  86. package/lib/components/Blocks.js +2 -0
  87. package/lib/components/Blocks.js.map +1 -1
  88. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +15 -0
  89. package/lib/components/ComparisonTable/HeaderCell.d.ts +1 -0
  90. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  91. package/lib/components/ComparisonTable/TableColumn.d.ts +3 -2
  92. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  93. package/lib/components/Gallery/GalleryContent.d.ts +1 -1
  94. package/lib/components/Headline/Headline.js +1 -1
  95. package/lib/components/Headline/Headline.js.map +1 -1
  96. package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  97. package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  98. package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  99. package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  100. package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  101. package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  102. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  103. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  104. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  105. package/lib/components/OtherProducts/OtherProducts.d.ts +5 -0
  106. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +5 -0
  107. package/lib/components/OtherProducts/OtherProducts.js +7 -0
  108. package/lib/components/OtherProducts/OtherProducts.js.map +1 -0
  109. package/lib/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  110. package/lib/components/OtherProducts/OtherProductsContent.js +2 -0
  111. package/lib/components/OtherProducts/OtherProductsContent.js.map +1 -0
  112. package/lib/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  113. package/lib/components/OtherProducts/OtherProductsItem.js +14 -0
  114. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -0
  115. package/lib/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  116. package/lib/components/OtherProducts/OtherProductsItemInner.js +8 -0
  117. package/lib/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  118. package/lib/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  119. package/lib/components/OtherProducts/utils/useActiveHandler.js +18 -0
  120. package/lib/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  121. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  122. package/lib/icons/IconName.d.ts +81 -2
  123. package/lib/icons/IconName.js +81 -0
  124. package/lib/icons/IconName.js.map +1 -1
  125. package/lib/model/BlockVersion.d.ts +1 -1
  126. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  127. package/lib/ui-kit/BlocksList/BlocksListProps.js +2 -0
  128. package/lib/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  129. package/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  130. package/lib/ui-kit/BlocksList/EmbeddableBlocks.js +23 -0
  131. package/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  132. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  133. package/lib/ui-kit/BlocksList/renderBlocksList.js +13 -0
  134. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  135. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  136. package/lib/ui-kit/Icon/Icon.js +2 -1
  137. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  138. package/mobile/bundle/bundle.umd.js +179 -15
  139. package/mobile/bundle/bundle.umd.min.js +1 -1
  140. package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -73
  141. package/mobile/dist/components/Accordion/AccordionItem.js +2 -2
  142. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  143. package/mobile/dist/components/Accordion/AccordionItemInner.js +4 -10
  144. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  145. package/mobile/{lib/components/Accordion/utils/isActiveHandler.d.ts → dist/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  146. package/{dist/components/Accordion/utils/isActiveHandler.js → mobile/dist/components/Accordion/utils/useActiveHandler.js} +4 -4
  147. package/mobile/dist/components/Accordion/utils/useActiveHandler.js.map +1 -0
  148. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +15 -0
  149. package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +3 -2
  150. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  151. package/mobile/dist/components/Gallery/GalleryContent.d.ts +1 -1
  152. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  153. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  154. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  155. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  156. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  157. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  158. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  159. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  160. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  161. package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +5 -0
  162. package/mobile/dist/components/OtherProducts/OtherProducts.js +9 -0
  163. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -0
  164. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  165. package/mobile/dist/components/OtherProducts/OtherProductsContent.js +2 -0
  166. package/mobile/dist/components/OtherProducts/OtherProductsContent.js.map +1 -0
  167. package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  168. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +16 -0
  169. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -0
  170. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  171. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js +10 -0
  172. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  173. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  174. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js +21 -0
  175. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  176. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  177. package/mobile/dist/icons/IconName.d.ts +81 -2
  178. package/mobile/dist/icons/IconName.js +82 -1
  179. package/mobile/dist/icons/IconName.js.map +1 -1
  180. package/mobile/dist/model/BlockVersion.d.ts +1 -1
  181. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  182. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.js +2 -0
  183. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  184. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  185. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +25 -0
  186. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  187. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  188. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +17 -0
  189. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  190. package/mobile/dist/ui-kit/Icon/Icon.js +2 -1
  191. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  192. package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -73
  193. package/mobile/lib/components/Accordion/AccordionItem.js +2 -2
  194. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  195. package/mobile/lib/components/Accordion/AccordionItemInner.js +4 -10
  196. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  197. package/{dist/components/Accordion/utils/isActiveHandler.d.ts → mobile/lib/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  198. package/{lib/components/Accordion/utils/isActiveHandler.js → mobile/lib/components/Accordion/utils/useActiveHandler.js} +2 -2
  199. package/mobile/lib/components/Accordion/utils/useActiveHandler.js.map +1 -0
  200. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +15 -0
  201. package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +3 -2
  202. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  203. package/mobile/lib/components/Gallery/GalleryContent.d.ts +1 -1
  204. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  205. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  206. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  207. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  208. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  209. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  210. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  211. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  212. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  213. package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +5 -0
  214. package/mobile/lib/components/OtherProducts/OtherProducts.js +7 -0
  215. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -0
  216. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  217. package/mobile/lib/components/OtherProducts/OtherProductsContent.js +2 -0
  218. package/mobile/lib/components/OtherProducts/OtherProductsContent.js.map +1 -0
  219. package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  220. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +14 -0
  221. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -0
  222. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  223. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js +8 -0
  224. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  225. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  226. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js +18 -0
  227. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  228. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  229. package/mobile/lib/icons/IconName.d.ts +81 -2
  230. package/mobile/lib/icons/IconName.js +81 -0
  231. package/mobile/lib/icons/IconName.js.map +1 -1
  232. package/mobile/lib/model/BlockVersion.d.ts +1 -1
  233. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  234. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js +2 -0
  235. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  236. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  237. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +23 -0
  238. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  239. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  240. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +13 -0
  241. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  242. package/mobile/lib/ui-kit/Icon/Icon.js +2 -1
  243. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  244. package/mobile/src/common.css +0 -30
  245. package/mobile/src/components/Accordion/Accordion.example.json +6 -6
  246. package/mobile/src/components/Accordion/AccordionContent.ts +3 -109
  247. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  248. package/mobile/src/components/Accordion/AccordionItemInner.tsx +4 -19
  249. package/mobile/src/components/Accordion/utils/{isActiveHandler.ts → useActiveHandler.ts} +1 -1
  250. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +18 -0
  251. package/mobile/src/components/ComparisonTable/TableColumn.tsx +3 -2
  252. package/mobile/src/components/ContentPage/ContentPage.page.json +1 -1
  253. package/mobile/src/components/Gallery/Gallery.example.json +2 -20
  254. package/mobile/src/components/Gallery/GalleryContent.ts +1 -1
  255. package/mobile/src/components/Headline/Headline.example.json +8 -1
  256. package/mobile/src/components/LinkDocs/LinkDocs.example.json +2 -2
  257. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  258. package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
  259. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +4 -2
  260. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
  261. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  262. package/mobile/src/components/OtherProducts/OtherProducts.example.json +50 -0
  263. package/mobile/src/components/OtherProducts/OtherProducts.tsx +20 -0
  264. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +38 -0
  265. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +36 -0
  266. package/mobile/src/components/OtherProducts/OtherProductsItemInner.tsx +14 -0
  267. package/mobile/src/components/OtherProducts/utils/useActiveHandler.ts +23 -0
  268. package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
  269. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
  270. package/mobile/src/components/StepsBlock/StepsBlock.example.json +1 -0
  271. package/mobile/src/components/TextBlock/TextBlock.example.json +2 -2
  272. package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
  273. package/mobile/src/components/Tile/Tile.example.json +1 -3
  274. package/mobile/src/icons/ArrowDownIcon.svg +4 -0
  275. package/mobile/src/icons/ArrowUpIcon.svg +4 -0
  276. package/mobile/src/icons/IconName.ts +8 -3
  277. package/mobile/src/model/BlockVersion.ts +1 -1
  278. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +106 -0
  279. package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +23 -0
  280. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +30 -0
  281. package/mobile/src/ui-kit/Icon/Icon.tsx +2 -1
  282. package/package.json +1 -1
  283. package/src/common.css +0 -30
  284. package/src/components/Accordion/Accordion.example.json +6 -6
  285. package/src/components/Accordion/Accordion.fixture.mobile.tsx +13 -13
  286. package/src/components/Accordion/Accordion.fixture.tsx +28 -93
  287. package/src/components/Accordion/AccordionContent.ts +3 -109
  288. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  289. package/src/components/Accordion/AccordionItem.tsx +2 -2
  290. package/src/components/Accordion/AccordionItemInner.mobile.tsx +4 -19
  291. package/src/components/Accordion/AccordionItemInner.tsx +4 -25
  292. package/src/components/Accordion/utils/{isActiveHandler.ts → useActiveHandler.ts} +1 -1
  293. package/src/components/Blocks.ts +2 -0
  294. package/src/components/ComparisonTable/ComparisonTableContent.ts +18 -0
  295. package/src/components/ComparisonTable/HeaderCell.tsx +1 -0
  296. package/src/components/ComparisonTable/TableColumn.tsx +3 -2
  297. package/src/components/ContentPage/ContentPage.page.json +1 -1
  298. package/src/components/Gallery/Gallery.example.json +2 -20
  299. package/src/components/Gallery/GalleryContent.ts +1 -1
  300. package/src/components/Headline/Headline.example.json +8 -1
  301. package/src/components/Headline/Headline.tsx +4 -2
  302. package/src/components/LinkDocs/LinkDocs.example.json +2 -2
  303. package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  304. package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
  305. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +4 -2
  306. package/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
  307. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
  308. package/src/components/OtherProducts/OtherProducts.example.json +50 -0
  309. package/src/components/OtherProducts/OtherProducts.fixture.tsx +137 -0
  310. package/src/components/OtherProducts/OtherProducts.tsx +20 -0
  311. package/src/components/OtherProducts/OtherProductsContent.ts +38 -0
  312. package/src/components/OtherProducts/OtherProductsItem.tsx +36 -0
  313. package/src/components/OtherProducts/OtherProductsItemInner.tsx +14 -0
  314. package/src/components/OtherProducts/utils/useActiveHandler.ts +23 -0
  315. package/src/components/ProductBlock/ProductBlock.example.json +2 -1
  316. package/src/components/ProductGallery/ProductGallery.example.json +2 -1
  317. package/src/components/StepsBlock/StepsBlock.example.json +1 -0
  318. package/src/components/TextBlock/TextBlock.example.json +2 -2
  319. package/src/components/TextBlock/TextBlockContent.ts +1 -1
  320. package/src/components/Tile/Tile.example.json +1 -3
  321. package/src/icons/ArrowDownIcon.svg +4 -0
  322. package/src/icons/ArrowUpIcon.svg +4 -0
  323. package/src/icons/IconName.ts +84 -1
  324. package/src/model/BlockVersion.ts +1 -1
  325. package/src/ui-kit/BlocksList/BlocksListProps.ts +106 -0
  326. package/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +23 -0
  327. package/src/ui-kit/BlocksList/renderBlocksList.tsx +30 -0
  328. package/src/ui-kit/Heading/Heading.tsx +1 -3
  329. package/src/ui-kit/Icon/Icon.tsx +2 -1
  330. package/dist/components/Accordion/AccordionBlocks.d.ts +0 -12
  331. package/dist/components/Accordion/AccordionBlocks.js +0 -25
  332. package/dist/components/Accordion/AccordionBlocks.js.map +0 -1
  333. package/dist/components/Accordion/utils/isActiveHandler.js.map +0 -1
  334. package/lib/components/Accordion/AccordionBlocks.d.ts +0 -12
  335. package/lib/components/Accordion/AccordionBlocks.js +0 -23
  336. package/lib/components/Accordion/AccordionBlocks.js.map +0 -1
  337. package/lib/components/Accordion/utils/isActiveHandler.js.map +0 -1
  338. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +0 -12
  339. package/mobile/dist/components/Accordion/AccordionBlocks.js +0 -25
  340. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +0 -1
  341. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +0 -1
  342. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +0 -12
  343. package/mobile/lib/components/Accordion/AccordionBlocks.js +0 -23
  344. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +0 -1
  345. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +0 -1
  346. package/mobile/src/components/Accordion/AccordionBlocks.tsx +0 -23
  347. package/src/components/Accordion/AccordionBlocks.tsx +0 -23
package/README.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Унифицированные блоки для сайтов под управлением Wildless CMS
2
2
 
3
+ Набор _core блоков_ для построения сайтов.
4
+
5
+ _Блок_ - это композиция компонентов UI Kit и (опционально) интеграция с API. Блок по своей сути ближе к понятию _микрофронта_.
6
+ _Блоки_ совместимы и с `React` и c `Vue3` благодаря слою совместимости [Uni JSX](https://github.com/redneckz/uni-jsx/).
7
+
8
+ > Именно потому импорты из фреймворков недопустимы на уровне блоков.
9
+
10
+ На низком уровне _блок_ - это совокупность следующего:
11
+
12
+ - [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#typescript)
13
+ - Стилизация на [Tailwind CSS](https://tailwindcss.com/)
14
+ - (опционально) Логика на псевдо-хуках (`context.useState(...)` или `context.useAsyncData(...)`)
15
+
16
+ ## Установка пакетов
17
+
18
+ Требуется Node.js v16 или выше. Для управления версиями Node.js рекомендуется использовать https://github.com/nvm-sh/nvm
19
+
20
+ ```
21
+ $ npm i --force
22
+ ```
23
+
24
+ ## Запуск в [React Cosmos](https://github.com/react-cosmos/react-cosmos)
25
+
26
+ Десктопные блоки http://localhost:5001
27
+
28
+ ```
29
+ $ npm start
30
+ ```
31
+
32
+ Мобильные блоки http://localhost:5002
33
+
34
+ ```
35
+ $ npm run start:mobile
36
+ ```
37
+
38
+ ## Сборка
39
+
40
+ TODO
41
+
42
+ ## Прочие скрипты
43
+
44
+ TODO
45
+
3
46
  [Документация разработчика](./DEVDOC.md)
4
47
 
5
48
  Запуск автотестов для Visual Regression блоков:
@@ -1 +1 @@
1
- {"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"GalleryItem":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок (моб.)"},"text":{"type":"string","title":"Текст"}},"title":"Элемент списка"},"GalleryCard":{"type":"object","properties":{"button":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"$ref":"#/definitions/GalleryItem"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Карточка"},"Picture":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"sources":{"type":"array","items":{"$ref":"#/definitions/ImgSource"},"title":"Другие форматы"},"className":{"type":"string"},"title":{"type":"string","title":"Текст подсказки (title)"}},"required":["src"],"title":"Изображение"},"Img":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"title":{"type":"string","title":"Текст подсказки (title)"}},"required":["src"]},"ImgSource":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"}},"required":["src"]},"ButtonWithIconProps":{"type":"object","properties":{"rounded":{"type":"boolean","title":"Закругленные углы"},"version":{"$ref":"#/definitions/ButtonVersion"},"aboveText":{"type":"string","title":"Верхний текст"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"ButtonProps":{"type":"object","properties":{"version":{"$ref":"#/definitions/ButtonVersion"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"LinkProps":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"Target":{"type":"string","enum":["","_self","_blank","_parent","_top"],"title":"Таргет (target)","enumNames":["","self (текущее окно или фрейм)","blank (новое окно)","parent (фрейм-родитель)","top (текущее окно)"]},"ButtonVersion":{"type":"string","enum":["primary","secondary","link"],"title":"Цвет кнопки","default":"primary","enumNames":["Основная","Второстепенная"]},"IconName":{"type":"string","enum":["","ActualBalanceIcon","AppleIcon","ArrowsRewindRight","AtmIcon","BankIcon","BurgerIcon","BurgerIconWhite","Calendar2Icon","CalendarCircleIcon","CalendarIcon","CalendarTickIcon","CalendarWhiteIcon","CardIcon","CardPosIcon","CardTickIcon","CardWithGemIcon","ChartSquareIcon","ClockIcon","CloseIcon","ComfortableCompIcon","CreditCardsIcon","DiscountShapeIcon","DocIcon","DocIconMonoColor","DocumentTextIcon","DollarIcon","EarthIcon","EmptyWalletChangeIcon","EmptyWalletIcon","EmptyWalletWhiteIcon","EuroIcon","GeolocationIcon","GlassIcon","GlobalIcon","GpsIcon","GridIcon","GridIconWhite","InterestGrowthIcon","InterestIcon","JCBIcon","LoupeIcon","MasterCardIcon","MinusIcon","MirIcon","MoneyIcon","MoneyInsuranceIcon","MonitorMobileIcon","NewDocIcon","OfficeIcon","OkIcon","PassSendIcon","PercentageRoundIcon","PercentageSquareIcon","PercentageSquareWhiteIcon","PersonalCardIcon","PlayMarketIcon","PlusIcon","Profile2UserIcon","ProfileIcon","RoundRubleIcon","SafeIcon","ShieldTickIcon","SignDocsIcon","SmallClockIcon","TelegramIcon","UnionPayIcon","UserTickIcon","VisaIcon","VKIcon","WalletAdd2Icon","WalletAddIcon","WalletIcon","WalletWithMoneyIcon"],"title":"Иконка","enumNames":["","Деньги","Лого «Apple»","ArrowsRewindRight","Банкомат","Банк","Бургер","Бургер (белый)","Календарь 2","Скруглённый календарь","Календарь","Календарь с галочкой","Календарь белый","Кред. карта","Кред. карта под наклоном","Кред. карта с галочкой","Карта с драгоценностями","Деньги внутри кошелька","Часы","Крестик","Кресло","Кредитные карты","Скидка","Документ","Документ (одноцветный)","Документ с текстом","Доллар","Земля","Пустой кошелёк с возвратом","Пустой кошелёк","Пустой кошелёк (белый)","Евро","Геолокация","Зеркало","Глобус","Gps","Сетка","Сетка (белая)","Диаграмма роста","Скидка","JCB","Лупа","MasterCard","Минус","МИР","Деньги","Денежное страхование","Монитор и мобильный","Новый документ","Офис","Лого «Одноклассники»","Бизнес","Проценты (круг.)","Проценты","Проценты белые","Персональная карта","Лого «PlayMarket»","Плюс","Профиль, 2 персоны","Профиль","Рубль (круг.)","Сейф","Безопасность","Подписанные документы","Маленькие часы","Лого «Telegram»","UnionPay","Пользователь","Visa","Лого «VK»","Пополнение карты","Кошелёк с плюсом","Кошелёк","Кошелёк с деньгами"]},"BlockVersion":{"type":"string","enum":["primary","secondary"],"title":"Цвет блока","enumNames":["Основная","Второстепенная"]},"GalleryContent":{"type":"object","properties":{"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":4}},"title":"Галерея"},"DescriptionContent":{"type":"object","properties":{"description":{"type":"string","title":"Описание"}}},"HeadingType":{"type":"string","enum":["h1","h2","h3","h4","h5","h6"],"title":"Тип заголовка","enumNames":["h1","h2","h3","h4","h5","h6"]},"HeadingTypeContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"}}},"HeadingContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}}},"HeadlineContent":{"type":"object","properties":{"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"title":"Заголовок"},"ImageContent":{"type":"object","properties":{"image":{"$ref":"#/definitions/Picture"}}},"AlignType":{"type":"string","enum":["left","center","right"],"title":"Выравнивание","enumNames":["По левому краю","По центру","По правому краю"]},"BlockVersionWithTransparent":{"type":"string","enum":["transparent","primary","secondary"],"title":"Цвет блока","enumNames":"[\"Прозрачная\", Основная\", \"Второстепенная\"]"},"LinkColumnsMode":{"type":"string","enum":["single","double"],"title":"Отображение списка","enumNames":["Одна колонка","Две колонки"]},"LinkListMode":{"type":"string","enum":["vertical","horizontal"],"title":"Отображение списка (моб.)","enumNames":["Вертикально","Горизонтально"]},"LinkDocsItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"fileSize":{"type":"string","title":"размер файла"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Элемент списка"},"LinkDocsContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"align":{"$ref":"#/definitions/AlignType"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"listMode":{"$ref":"#/definitions/LinkListMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/IconName","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"title":"Список документов"},"MiniGalleryContent":{"$ref":"#/definitions/GalleryContent","title":"Мини-галерея"},"TextBenefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"}}},"Benefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Преимущество"},"BenefitsBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ","maxItems":6}},"title":"Блок преимущества"},"TitleWithImageContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"}}},"PictureTextContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"}},"title":"Картинка с текстом"},"ListContent":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"ProductBlockInnerContent":{"type":"object","properties":{"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}}},"ButtonContent":{"type":"object","properties":{"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}}},"ProductBlockContent":{"type":"object","properties":{"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовый блок"},"ProductTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая плитка"},"TextBlockVersion":{"type":"string","enum":["primary","secondary","secondary-light"],"title":"Цвет плитки","enumNames":["Основная","Второстепенная","Второстепенная прозрачная"]},"TextBlockIconVersion":{"type":"string","enum":["none","small","big"],"title":"Размер иконки","enumNames":["Нет","Маленькая","Большая"]},"TextBlockContent":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры списка (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"title":"Текстовый блок"},"TileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Плитка"},"LinkListContent":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"title":"Список документов"},"AccordionBlockType":{"type":"string","enum":["Headline","LinkDocs","TextBlock","PictureText","Tile","ProductTile","ProductBlock","Gallery","MiniGallery","LinkList"],"title":"Тип блока"},"HeadlineAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"required":["accordionBlockType"],"title":"Заголовок"},"LinkDocsAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"align":{"$ref":"#/definitions/AlignType"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"listMode":{"$ref":"#/definitions/LinkListMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/IconName","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"required":["accordionBlockType"],"title":"Список документов"},"TextBlockAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"isDotted":{"type":"boolean","title":"Маркеры списка (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"required":["accordionBlockType"],"title":"Текстовый блок"},"PictureTextAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"}},"required":["accordionBlockType"],"title":"Картинка с текстом"},"ProductBlockAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["accordionBlockType"],"title":"Продуктовый блок"},"TileAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["accordionBlockType"],"title":"Плитка"},"ProductTileAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["accordionBlockType"],"title":"Продуктовая плитка"},"GalleryAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":4}},"required":["accordionBlockType"],"title":"Галлерея"},"MiniGalleryAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":4}},"required":["accordionBlockType"],"title":"Мини-галлерея"},"LinkListAccordionBlockDef":{"type":"object","properties":{"accordionBlockType":{"$ref":"#/definitions/AccordionBlockType"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"required":["accordionBlockType"],"title":"Список ссылок"},"EmptyOption":{"type":"null","title":"Выберите блок"},"AccordionBlockProps":{"anyOf":[{"$ref":"#/definitions/EmptyOption"},{"$ref":"#/definitions/HeadlineAccordionBlockDef"},{"$ref":"#/definitions/LinkDocsAccordionBlockDef"},{"$ref":"#/definitions/TextBlockAccordionBlockDef"},{"$ref":"#/definitions/PictureTextAccordionBlockDef"},{"$ref":"#/definitions/ProductBlockAccordionBlockDef"},{"$ref":"#/definitions/TileAccordionBlockDef"},{"$ref":"#/definitions/ProductTileAccordionBlockDef"},{"$ref":"#/definitions/GalleryAccordionBlockDef"},{"$ref":"#/definitions/MiniGalleryAccordionBlockDef"},{"$ref":"#/definitions/LinkListAccordionBlockDef"}],"title":"Содержимое аккордеона"},"ColumnsCount":{"type":"number","enum":[1,2],"title":"Количество колонок","enumNames":["1 колонка","2 колонки"]},"AccordionItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"blocks":{"type":"array","items":{"$ref":"#/definitions/AccordionBlockProps"},"title":"Блоки"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку элемента","default":false},"columns":{"$ref":"#/definitions/ColumnsCount"}},"title":"Элемент списка"},"AccordionContent":{"type":"object","properties":{"bordered":{"type":"boolean","title":"Отображать/скрывать обводку у элемента списка","default":false},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Подзаголовок"},"accordionItems":{"type":"array","items":{"$ref":"#/definitions/AccordionItemCommonProps"},"title":"Список"}},"title":"Аккордеон"},"CellData":{"type":"object","properties":{"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Ячейка"},"ColumnHeader":{"type":"object","properties":{"link":{"$ref":"#/definitions/LinkProps"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"image":{"$ref":"#/definitions/Picture"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Шапка колонки"},"Column":{"type":"object","properties":{"header":{"$ref":"#/definitions/ColumnHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/CellData"}},"title":"Данные"}},"title":"Продукт"},"RowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}},"title":"Параметр"},"ComparisonTableContent":{"type":"object","properties":{"useSwiper":{"type":"boolean","title":"Использовать свайпер (моб.)"},"title":{"type":"string","title":"Заголовок"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/RowHeader"},"title":"Параметры"},"columns":{"type":"array","items":{"$ref":"#/definitions/Column"},"title":"Продукты"},"isColoredFirstColumn":{"type":"boolean","title":"Закрасить первую колонку"},"visibleRowLength":{"type":"number","title":"Отображать заданное количество строк"}},"title":"Сравнительная таблица"},"ExchangeRateTileContent":{"$ref":"#/definitions/HeadingContent","title":"Курсы валют"},"ExchangeCurrencyItem":{"type":"object","properties":{"buyExchangeRate":{"type":"number"},"saleExchangeRate":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"code":{"type":"string"},"currency":{"type":"string"},"name":{"type":"string"}}}}},"ContactType":{"type":"string","enum":["tel","email"],"title":"Тип контакта","enumNames":["Телефон","Почта"]},"ContactInfo":{"type":"object","properties":{"type":{"$ref":"#/definitions/ContactType"},"description":{"type":"string","title":"Описание"},"text":{"type":"string","title":"Текст"}},"title":"Контакт"},"SocialMedia":{"type":"object","properties":{"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"required":["href"]},"SubMenuItem":{"type":"object","properties":{"icon":{"$ref":"#/definitions/IconName"},"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Пункт подменю"},"FooterContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"relatedEnterprises":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Другие предприятия"},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactInfo"},"title":"Контакты"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"title":"Подменю"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Обязательные документы"}},"title":"Подвал","required":["topItems"]},"SitemapProps":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"}}},"TopMenuItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"DispositionItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка дополнительного меню","required":["text","href"]},"HeaderContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"defaultLocation":{"type":"string","title":"Город по-умолчанию","default":"Москва"}},"title":"Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)","required":["defaultLocation","topItems"]},"QRCode":{"type":"object","properties":{"src":{"type":"string","title":"QR код"},"href":{"type":"string","title":"Ссылка"}},"title":"QR код"},"MobileAppTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"qr":{"$ref":"#/definitions/QRCode"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"href":{"type":"string","title":"Ссылка"}},"title":"Мобильное приложение"},"NavigationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonProps"},"title":"Список ссылок"}},"title":"Навигация"},"ProductSlide":{"type":"object","properties":{"nav":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"required":["title","description"],"title":"Превью содержимого слайда на навигации"},"productBlock":{"$ref":"#/definitions/ProductBlockInnerContent","title":"Содержимое слайда"}},"required":["productBlock"],"title":"Слайд"},"ProductGalleryContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"}},"title":"Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)"},"PromoTileContent":{"type":"object","properties":{"date":{"type":"string","title":"Дата публикации"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Акции"},"Step":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Шаг"},"StepsBlockContent":{"type":"object","properties":{"showLines":{"type":"boolean","title":"Линии"},"size":{"$ref":"#/definitions/SizeVersion"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"steps":{"type":"array","items":{"$ref":"#/definitions/Step"},"title":"Шаги","minItems":2,"maxItems":3},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Блок шаги"},"SizeVersion":{"type":"string","enum":["normal","small"],"title":"Размер","enumNames":["Обычный","Уменьшенный"]},"TariffsTableRowData":{"type":"object","properties":{"header":{"$ref":"#/definitions/TariffsTableRowHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}}}},"required":["header","data"],"title":"Ряд"},"TariffsTableRowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Параметр"},"TariffsTableCellData":{"type":"object","properties":{"list":{"$ref":"#/definitions/TariffsTableList"},"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}},"title":"Ячейка"},"TariffsTableList":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}},"title":"Список"},"TariffsTableColumn":{"type":"object","properties":{"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}},"title":"Данные"}},"title":"Колонка"},"TariffsTableContent":{"type":"object","properties":{"orientation":{"$ref":"#/definitions/ListOrientation","title":"Направление таблицы (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/TariffsTableRowHeader"},"title":"Параметры"},"columns":{"type":"array","items":{"$ref":"#/definitions/TariffsTableColumn"},"title":"Колонки"}},"title":"Таблица тарифов"},"ListOrientation":{"type":"string","enum":["vertical","horizontal"],"title":"Направление списка","enumNames":["Вертикально","Горизонтально"]},"CalculatorParams":{"type":"object","properties":{"isAnnuity":{"type":"boolean"},"minSum":{"type":"number"},"maxSum":{"type":"number"},"minMonths":{"type":"number"},"maxMonths":{"type":"number"},"rateWithInsurance":{"type":"number"},"rateWithoutInsurance":{"type":"number"}}},"CreditCalculatorData":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/definitions/CalculatorParams"}}}},"CreditCalculatorTab":{"type":"object","properties":{"directoryName":{"type":"string","title":"Справочник"},"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Вкладка"},"Tab":{"type":"object","properties":{"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Вкладка"},"CreditCalculatorContent":{"type":"object","properties":{"tabs":{"type":"array","items":{"$ref":"#/definitions/CreditCalculatorTab"},"title":"Вкладки"}},"title":"Кредитный калькулятор"},"ProductGalleryGreenContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"}},"title":"Продуктовая галерея"},"RecommendationCardContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"RecommendationContent":{"type":"object","properties":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardContent"},"title":"Карточки"},"title":{"type":"string","title":"Заголовок"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Рекомендации"}}}
1
+ {"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"GalleryItem":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок (моб.)"},"text":{"type":"string","title":"Текст"}},"title":"Элемент списка"},"GalleryCard":{"type":"object","properties":{"button":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"$ref":"#/definitions/GalleryItem"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Карточка"},"Picture":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"sources":{"type":"array","items":{"$ref":"#/definitions/ImgSource"},"title":"Другие форматы"},"className":{"type":"string"},"title":{"type":"string","title":"Текст подсказки (title)"}},"required":["src"],"title":"Изображение"},"Img":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"title":{"type":"string","title":"Текст подсказки (title)"}},"required":["src"]},"ImgSource":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"}},"required":["src"]},"ButtonWithIconProps":{"type":"object","properties":{"rounded":{"type":"boolean","title":"Закругленные углы"},"version":{"$ref":"#/definitions/ButtonVersion"},"aboveText":{"type":"string","title":"Верхний текст"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"ButtonProps":{"type":"object","properties":{"version":{"$ref":"#/definitions/ButtonVersion"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"LinkProps":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"Target":{"type":"string","enum":["","_self","_blank","_parent","_top"],"title":"Таргет (target)","enumNames":["","self (текущее окно или фрейм)","blank (новое окно)","parent (фрейм-родитель)","top (текущее окно)"]},"ButtonVersion":{"type":"string","enum":["primary","secondary","link"],"title":"Цвет кнопки","default":"primary","enumNames":["Основная","Второстепенная"]},"IconName":{"type":"string","enum":["","ActualBalanceIcon","AppleIcon","ArrowDownIcon","ArrowsRewindRight","ArrowUpIcon","AtmIcon","BankIcon","BurgerIcon","BurgerIconWhite","Calendar2Icon","CalendarCircleIcon","CalendarIcon","CalendarTickIcon","CalendarWhiteIcon","CardIcon","CardPosIcon","CardTickIcon","CardWithGemIcon","ChartSquareIcon","ClockIcon","CloseIcon","ComfortableCompIcon","CreditCardsIcon","DiscountShapeIcon","DocIcon","DocIconMonoColor","DocumentTextIcon","DollarIcon","EarthIcon","EmptyWalletChangeIcon","EmptyWalletIcon","EmptyWalletWhiteIcon","EuroIcon","GeolocationIcon","GlassIcon","GlobalIcon","GpsIcon","GridIcon","GridIconWhite","InterestGrowthIcon","InterestIcon","JCBIcon","LoupeIcon","MasterCardIcon","MinusIcon","MirIcon","MoneyIcon","MoneyInsuranceIcon","MonitorMobileIcon","NewDocIcon","OfficeIcon","OkIcon","PassSendIcon","PercentageRoundIcon","PercentageSquareIcon","PercentageSquareWhiteIcon","PersonalCardIcon","PlayMarketIcon","PlusIcon","Profile2UserIcon","ProfileIcon","RoundRubleIcon","SafeIcon","ShieldTickIcon","SignDocsIcon","SmallClockIcon","TelegramIcon","UnionPayIcon","UserTickIcon","VisaIcon","VKIcon","WalletAdd2Icon","WalletAddIcon","WalletIcon","WalletWithMoneyIcon"],"title":"Иконка","enumNames":["","Деньги","Лого «Apple»","ArrowDownIcon","ArrowsRewindRight","ArrowUpIcon","Банкомат","Банк","Бургер","Бургер (белый)","Календарь 2","Скруглённый календарь","Календарь","Календарь с галочкой","Календарь белый","Кред. карта","Кред. карта под наклоном","Кред. карта с галочкой","Карта с драгоценностями","Деньги внутри кошелька","Часы","Крестик","Кресло","Кредитные карты","Скидка","Документ","Документ (одноцветный)","Документ с текстом","Доллар","Земля","Пустой кошелёк с возвратом","Пустой кошелёк","Пустой кошелёк (белый)","Евро","Геолокация","Зеркало","Глобус","Gps","Сетка","Сетка (белая)","Диаграмма роста","Скидка","JCB","Лупа","MasterCard","Минус","МИР","Деньги","Денежное страхование","Монитор и мобильный","Новый документ","Офис","Лого «Одноклассники»","Бизнес","Проценты (круг.)","Проценты","Проценты белые","Персональная карта","Лого «PlayMarket»","Плюс","Профиль, 2 персоны","Профиль","Рубль (круг.)","Сейф","Безопасность","Подписанные документы","Маленькие часы","Лого «Telegram»","UnionPay","Пользователь","Visa","Лого «VK»","Пополнение карты","Кошелёк с плюсом","Кошелёк","Кошелёк с деньгами"]},"BlockVersion":{"type":"string","enum":["primary","secondary"],"title":"Цвет блока","enumNames":["Основная","Второстепенная"]},"GalleryContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"title":"Галерея"},"DescriptionContent":{"type":"object","properties":{"description":{"type":"string","title":"Описание"}}},"HeadingType":{"type":"string","enum":["h1","h2","h3","h4","h5","h6"],"title":"Тип заголовка","enumNames":["h1","h2","h3","h4","h5","h6"]},"HeadingTypeContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"}}},"HeadingContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}}},"HeadlineContent":{"type":"object","properties":{"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"title":"Заголовок"},"ImageContent":{"type":"object","properties":{"image":{"$ref":"#/definitions/Picture"}}},"AlignType":{"type":"string","enum":["left","center","right"],"title":"Выравнивание","enumNames":["По левому краю","По центру","По правому краю"]},"BlockVersionWithTransparent":{"type":"string","enum":["transparent","primary","secondary"],"title":"Цвет блока","enumNames":["Прозрачная","Основная","Второстепенная"]},"LinkColumnsMode":{"type":"string","enum":["single","double"],"title":"Отображение списка","enumNames":["Одна колонка","Две колонки"]},"LinkListMode":{"type":"string","enum":["vertical","horizontal"],"title":"Отображение списка (моб.)","enumNames":["Вертикально","Горизонтально"]},"LinkDocsItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"fileSize":{"type":"string","title":"размер файла"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Элемент списка"},"LinkDocsContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"listMode":{"$ref":"#/definitions/LinkListMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/IconName","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"title":"Список документов"},"MiniGalleryContent":{"$ref":"#/definitions/GalleryContent","title":"Мини-галерея","minItems":3},"TextBenefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"}}},"Benefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Преимущество"},"BenefitsBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ","maxItems":6}},"title":"Блок преимущества"},"TitleWithImageContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"}}},"PictureTextContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"}},"title":"Картинка с текстом"},"ListContent":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"ProductBlockInnerContent":{"type":"object","properties":{"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}}},"ButtonContent":{"type":"object","properties":{"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}}},"ProductBlockContent":{"type":"object","properties":{"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовый блок"},"ProductTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая плитка"},"TextBlockVersion":{"type":"string","enum":["primary","secondary","secondary-light"],"title":"Цвет блока","enumNames":["Основная","Второстепенная","Второстепенная прозрачная"]},"TextBlockIconVersion":{"type":"string","enum":["none","small","big"],"title":"Размер иконки","enumNames":["Нет","Маленькая","Большая"]},"TextBlockContent":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры списка (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"title":"Текстовый блок"},"TileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Плитка"},"LinkListContent":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"title":"Список документов"},"AccordionItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку элемента","default":false},"columns":{"$ref":"#/definitions/ColumnsCount"}},"title":"Элемент списка"},"BlockDef":{"anyOf":[{"$ref":"#/definitions/EmptyOption"},{"$ref":"#/definitions/HeadlineBlockListDef"},{"$ref":"#/definitions/LinkDocsBlockListDef"},{"$ref":"#/definitions/TextBlockBlockListDef"},{"$ref":"#/definitions/PictureTextBlockListDef"},{"$ref":"#/definitions/ProductBlockBlockListDef"},{"$ref":"#/definitions/TileBlockListDef"},{"$ref":"#/definitions/ProductTileBlockListDef"},{"$ref":"#/definitions/GalleryBlockListDef"},{"$ref":"#/definitions/MiniGalleryBlockListDef"},{"$ref":"#/definitions/LinkListBlockListDef"}],"title":"Содержимое блока"},"EmptyOption":{"type":"null","title":"Выберите блок"},"HeadlineBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"required":["blockListType"],"title":"Заголовок"},"BlockDefType":{"type":"string","enum":["Headline","LinkDocs","TextBlock","PictureText","Tile","ProductTile","ProductBlock","Gallery","MiniGallery","LinkList"],"title":"Тип блока"},"LinkDocsBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"listMode":{"$ref":"#/definitions/LinkListMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/IconName","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"required":["blockListType"],"title":"Список документов"},"TextBlockBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"isDotted":{"type":"boolean","title":"Маркеры списка (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"required":["blockListType"],"title":"Текстовый блок"},"PictureTextBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"}},"required":["blockListType"],"title":"Картинка с текстом"},"ProductBlockBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"backgroundText":{"type":"string","title":"Фоновый текст под иллюстрацией"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовый блок"},"TileBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Плитка"},"ProductTileBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовая плитка"},"GalleryBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Галлерея"},"MiniGalleryBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"isScroll":{"type":"boolean","title":"Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Мини-галлерея"},"LinkListBlockListDef":{"type":"object","properties":{"blockListType":{"$ref":"#/definitions/BlockDefType"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"required":["blockListType"],"title":"Список ссылок"},"ColumnsCount":{"type":"number","enum":[1,2],"title":"Количество колонок","enumNames":["1 колонка","2 колонки"]},"AccordionContent":{"type":"object","properties":{"bordered":{"type":"boolean","title":"Отображать/скрывать обводку у элемента списка","default":false},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"accordionItems":{"type":"array","items":{"$ref":"#/definitions/AccordionItemCommonProps"},"title":"Список"}},"title":"Аккордеон"},"CellData":{"type":"object","properties":{"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Ячейка"},"ColumnHeader":{"type":"object","properties":{"link":{"$ref":"#/definitions/LinkProps"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"image":{"$ref":"#/definitions/Picture"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Шапка колонки"},"Column":{"type":"object","properties":{"header":{"$ref":"#/definitions/ColumnHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/CellData"}},"title":"Данные"}},"title":"Продукт"},"RowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}},"title":"Параметр"},"TableColumnData":{"type":"object","properties":{"rowHeader":{"type":"string"},"cell":{"type":"array","items":{"$ref":"#/definitions/CellData"}}},"required":["cell"],"title":"Ячейка"},"TableColumnHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Параметр"},"ComparisonTableContent":{"type":"object","properties":{"useSwiper":{"type":"boolean","title":"Использовать свайпер (моб.)"},"title":{"type":"string","title":"Заголовок"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/RowHeader"},"title":"Параметры"},"columns":{"type":"array","items":{"$ref":"#/definitions/Column"},"title":"Продукты"},"isColoredFirstColumn":{"type":"boolean","title":"Закрасить первую колонку"},"visibleRowLength":{"type":"number","title":"Отображать заданное количество строк"}},"title":"Сравнительная таблица"},"ExchangeRateTileContent":{"$ref":"#/definitions/HeadingContent","title":"Курсы валют"},"ExchangeCurrencyItem":{"type":"object","properties":{"buyExchangeRate":{"type":"number"},"saleExchangeRate":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"code":{"type":"string"},"currency":{"type":"string"},"name":{"type":"string"}}}}},"ContactType":{"type":"string","enum":["tel","email"],"title":"Тип контакта","enumNames":["Телефон","Почта"]},"ContactInfo":{"type":"object","properties":{"type":{"$ref":"#/definitions/ContactType"},"description":{"type":"string","title":"Описание"},"text":{"type":"string","title":"Текст"}},"title":"Контакт"},"SocialMedia":{"type":"object","properties":{"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"required":["href"]},"SubMenuItem":{"type":"object","properties":{"icon":{"$ref":"#/definitions/IconName"},"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Пункт подменю"},"FooterContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"relatedEnterprises":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Другие предприятия"},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactInfo"},"title":"Контакты"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"title":"Подменю"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Обязательные документы"}},"title":"Подвал","required":["topItems"]},"SitemapProps":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"}}},"TopMenuItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"DispositionItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка дополнительного меню","required":["text","href"]},"HeaderContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"defaultLocation":{"type":"string","title":"Город по-умолчанию","default":"Москва"}},"title":"Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)","required":["defaultLocation","topItems"]},"QRCode":{"type":"object","properties":{"src":{"type":"string","title":"QR код"},"href":{"type":"string","title":"Ссылка"}},"title":"QR код"},"MobileAppTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"qr":{"$ref":"#/definitions/QRCode"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"href":{"type":"string","title":"Ссылка"}},"title":"Мобильное приложение"},"NavigationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonProps"},"title":"Список ссылок"}},"title":"Навигация"},"ProductSlide":{"type":"object","properties":{"nav":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"required":["title","description"],"title":"Превью содержимого слайда на навигации"},"productBlock":{"$ref":"#/definitions/ProductBlockInnerContent","title":"Содержимое слайда"}},"required":["productBlock"],"title":"Слайд"},"ProductGalleryContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"}},"title":"Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)"},"PromoTileContent":{"type":"object","properties":{"date":{"type":"string","title":"Дата публикации"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Акции"},"Step":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Шаг"},"StepsBlockContent":{"type":"object","properties":{"showLines":{"type":"boolean","title":"Линии"},"size":{"$ref":"#/definitions/SizeVersion"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"steps":{"type":"array","items":{"$ref":"#/definitions/Step"},"title":"Шаги","minItems":2,"maxItems":3},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Блок шаги"},"SizeVersion":{"type":"string","enum":["normal","small"],"title":"Размер","enumNames":["Обычный","Уменьшенный"]},"TariffsTableRowData":{"type":"object","properties":{"header":{"$ref":"#/definitions/TariffsTableRowHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}}}},"required":["header","data"],"title":"Ряд"},"TariffsTableRowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Параметр"},"TariffsTableCellData":{"type":"object","properties":{"list":{"$ref":"#/definitions/TariffsTableList"},"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}},"title":"Ячейка"},"TariffsTableList":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}},"title":"Список"},"TariffsTableColumn":{"type":"object","properties":{"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}},"title":"Данные"}},"title":"Колонка"},"TariffsTableContent":{"type":"object","properties":{"orientation":{"$ref":"#/definitions/ListOrientation","title":"Направление таблицы (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/TariffsTableRowHeader"},"title":"Параметры"},"columns":{"type":"array","items":{"$ref":"#/definitions/TariffsTableColumn"},"title":"Колонки"}},"title":"Таблица тарифов"},"ListOrientation":{"type":"string","enum":["vertical","horizontal"],"title":"Направление списка","enumNames":["Вертикально","Горизонтально"]},"CalculatorParams":{"type":"object","properties":{"isAnnuity":{"type":"boolean"},"minSum":{"type":"number"},"maxSum":{"type":"number"},"minMonths":{"type":"number"},"maxMonths":{"type":"number"},"rateWithInsurance":{"type":"number"},"rateWithoutInsurance":{"type":"number"}}},"CreditCalculatorData":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/definitions/CalculatorParams"}}}},"CreditCalculatorTab":{"type":"object","properties":{"directoryName":{"type":"string","title":"Справочник"},"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Вкладка"},"Tab":{"type":"object","properties":{"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/IconName"}},"title":"Вкладка"},"CreditCalculatorContent":{"type":"object","properties":{"tabs":{"type":"array","items":{"$ref":"#/definitions/CreditCalculatorTab"},"title":"Вкладки"}},"title":"Кредитный калькулятор"},"blockItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку элемента","default":false},"isActive":{"type":"boolean"},"columns":{"$ref":"#/definitions/ColumnsCount"}},"title":"Элемент списка"},"OtherProductsContent":{"type":"object","properties":{"blockItems":{"type":"array","items":{"$ref":"#/definitions/blockItemCommonProps"},"title":"Список"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку у элемента списка","default":false},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Подзаголовок"}},"title":"Другие продукты"},"ProductGalleryGreenContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"}},"title":"Продуктовая галерея"},"RecommendationCardContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"RecommendationContent":{"type":"object","properties":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardContent"},"title":"Карточки"},"title":{"type":"string","title":"Заголовок"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Рекомендации"}}}
@@ -234,11 +234,170 @@
234
234
  }
235
235
  })();
236
236
 
237
+ // Generated. Do not touch
238
+ /* eslint-disable max-lines */
239
+ var IconMap;
240
+ (function (IconMap) {
241
+ IconMap["ActualBalanceIcon"] = "ActualBalanceIcon";
242
+ IconMap["AppleIcon"] = "AppleIcon";
243
+ IconMap["ArrowDownIcon"] = "ArrowDownIcon";
244
+ IconMap["ArrowsRewindRight"] = "ArrowsRewindRight";
245
+ IconMap["ArrowUpIcon"] = "ArrowUpIcon";
246
+ IconMap["AtmIcon"] = "AtmIcon";
247
+ IconMap["BankIcon"] = "BankIcon";
248
+ IconMap["BurgerIcon"] = "BurgerIcon";
249
+ IconMap["BurgerIconWhite"] = "BurgerIconWhite";
250
+ IconMap["Calendar2Icon"] = "Calendar2Icon";
251
+ IconMap["CalendarCircleIcon"] = "CalendarCircleIcon";
252
+ IconMap["CalendarIcon"] = "CalendarIcon";
253
+ IconMap["CalendarTickIcon"] = "CalendarTickIcon";
254
+ IconMap["CalendarWhiteIcon"] = "CalendarWhiteIcon";
255
+ IconMap["CardIcon"] = "CardIcon";
256
+ IconMap["CardPosIcon"] = "CardPosIcon";
257
+ IconMap["CardTickIcon"] = "CardTickIcon";
258
+ IconMap["CardWithGemIcon"] = "CardWithGemIcon";
259
+ IconMap["ChartSquareIcon"] = "ChartSquareIcon";
260
+ IconMap["ClockIcon"] = "ClockIcon";
261
+ IconMap["CloseIcon"] = "CloseIcon";
262
+ IconMap["ComfortableCompIcon"] = "ComfortableCompIcon";
263
+ IconMap["CreditCardsIcon"] = "CreditCardsIcon";
264
+ IconMap["DiscountShapeIcon"] = "DiscountShapeIcon";
265
+ IconMap["DocIcon"] = "DocIcon";
266
+ IconMap["DocIconMonoColor"] = "DocIconMonoColor";
267
+ IconMap["DocumentTextIcon"] = "DocumentTextIcon";
268
+ IconMap["DollarIcon"] = "DollarIcon";
269
+ IconMap["EarthIcon"] = "EarthIcon";
270
+ IconMap["EmptyWalletChangeIcon"] = "EmptyWalletChangeIcon";
271
+ IconMap["EmptyWalletIcon"] = "EmptyWalletIcon";
272
+ IconMap["EmptyWalletWhiteIcon"] = "EmptyWalletWhiteIcon";
273
+ IconMap["EuroIcon"] = "EuroIcon";
274
+ IconMap["GeolocationIcon"] = "GeolocationIcon";
275
+ IconMap["GlassIcon"] = "GlassIcon";
276
+ IconMap["GlobalIcon"] = "GlobalIcon";
277
+ IconMap["GpsIcon"] = "GpsIcon";
278
+ IconMap["GridIcon"] = "GridIcon";
279
+ IconMap["GridIconWhite"] = "GridIconWhite";
280
+ IconMap["InterestGrowthIcon"] = "InterestGrowthIcon";
281
+ IconMap["InterestIcon"] = "InterestIcon";
282
+ IconMap["JCBIcon"] = "JCBIcon";
283
+ IconMap["LoupeIcon"] = "LoupeIcon";
284
+ IconMap["MasterCardIcon"] = "MasterCardIcon";
285
+ IconMap["MinusIcon"] = "MinusIcon";
286
+ IconMap["MirIcon"] = "MirIcon";
287
+ IconMap["MoneyIcon"] = "MoneyIcon";
288
+ IconMap["MoneyInsuranceIcon"] = "MoneyInsuranceIcon";
289
+ IconMap["MonitorMobileIcon"] = "MonitorMobileIcon";
290
+ IconMap["NewDocIcon"] = "NewDocIcon";
291
+ IconMap["OfficeIcon"] = "OfficeIcon";
292
+ IconMap["OkIcon"] = "OkIcon";
293
+ IconMap["PassSendIcon"] = "PassSendIcon";
294
+ IconMap["PercentageRoundIcon"] = "PercentageRoundIcon";
295
+ IconMap["PercentageSquareIcon"] = "PercentageSquareIcon";
296
+ IconMap["PercentageSquareWhiteIcon"] = "PercentageSquareWhiteIcon";
297
+ IconMap["PersonalCardIcon"] = "PersonalCardIcon";
298
+ IconMap["PlayMarketIcon"] = "PlayMarketIcon";
299
+ IconMap["PlusIcon"] = "PlusIcon";
300
+ IconMap["Profile2UserIcon"] = "Profile2UserIcon";
301
+ IconMap["ProfileIcon"] = "ProfileIcon";
302
+ IconMap["RoundRubleIcon"] = "RoundRubleIcon";
303
+ IconMap["SafeIcon"] = "SafeIcon";
304
+ IconMap["ShieldTickIcon"] = "ShieldTickIcon";
305
+ IconMap["SignDocsIcon"] = "SignDocsIcon";
306
+ IconMap["SmallClockIcon"] = "SmallClockIcon";
307
+ IconMap["TelegramIcon"] = "TelegramIcon";
308
+ IconMap["UnionPayIcon"] = "UnionPayIcon";
309
+ IconMap["UserTickIcon"] = "UserTickIcon";
310
+ IconMap["VisaIcon"] = "VisaIcon";
311
+ IconMap["VKIcon"] = "VKIcon";
312
+ IconMap["WalletAdd2Icon"] = "WalletAdd2Icon";
313
+ IconMap["WalletAddIcon"] = "WalletAddIcon";
314
+ IconMap["WalletIcon"] = "WalletIcon";
315
+ IconMap["WalletWithMoneyIcon"] = "WalletWithMoneyIcon";
316
+ })(IconMap || (IconMap = {}));
317
+ var IconTitleMap;
318
+ (function (IconTitleMap) {
319
+ IconTitleMap["ActualBalanceIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
320
+ IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
321
+ IconTitleMap["ArrowDownIcon"] = "ArrowDownIcon";
322
+ IconTitleMap["ArrowsRewindRight"] = "ArrowsRewindRight";
323
+ IconTitleMap["ArrowUpIcon"] = "ArrowUpIcon";
324
+ IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
325
+ IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
326
+ IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
327
+ IconTitleMap["BurgerIconWhite"] = "\u0411\u0443\u0440\u0433\u0435\u0440 (\u0431\u0435\u043B\u044B\u0439)";
328
+ IconTitleMap["Calendar2Icon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C 2";
329
+ IconTitleMap["CalendarCircleIcon"] = "\u0421\u043A\u0440\u0443\u0433\u043B\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
330
+ IconTitleMap["CalendarIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
331
+ IconTitleMap["CalendarTickIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
332
+ IconTitleMap["CalendarWhiteIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0431\u0435\u043B\u044B\u0439";
333
+ IconTitleMap["CardIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430";
334
+ IconTitleMap["CardPosIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u043F\u043E\u0434 \u043D\u0430\u043A\u043B\u043E\u043D\u043E\u043C";
335
+ IconTitleMap["CardTickIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
336
+ IconTitleMap["CardWithGemIcon"] = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438";
337
+ IconTitleMap["ChartSquareIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430";
338
+ IconTitleMap["ClockIcon"] = "\u0427\u0430\u0441\u044B";
339
+ IconTitleMap["CloseIcon"] = "\u041A\u0440\u0435\u0441\u0442\u0438\u043A";
340
+ IconTitleMap["ComfortableCompIcon"] = "\u041A\u0440\u0435\u0441\u043B\u043E";
341
+ IconTitleMap["CreditCardsIcon"] = "\u041A\u0440\u0435\u0434\u0438\u0442\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u044B";
342
+ IconTitleMap["DiscountShapeIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
343
+ IconTitleMap["DocIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
344
+ IconTitleMap["DocIconMonoColor"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (\u043E\u0434\u043D\u043E\u0446\u0432\u0435\u0442\u043D\u044B\u0439)";
345
+ IconTitleMap["DocumentTextIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 \u0441 \u0442\u0435\u043A\u0441\u0442\u043E\u043C";
346
+ IconTitleMap["DollarIcon"] = "\u0414\u043E\u043B\u043B\u0430\u0440";
347
+ IconTitleMap["EarthIcon"] = "\u0417\u0435\u043C\u043B\u044F";
348
+ IconTitleMap["EmptyWalletChangeIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u043C";
349
+ IconTitleMap["EmptyWalletIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A";
350
+ IconTitleMap["EmptyWalletWhiteIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A (\u0431\u0435\u043B\u044B\u0439)";
351
+ IconTitleMap["EuroIcon"] = "\u0415\u0432\u0440\u043E";
352
+ IconTitleMap["GeolocationIcon"] = "\u0413\u0435\u043E\u043B\u043E\u043A\u0430\u0446\u0438\u044F";
353
+ IconTitleMap["GlassIcon"] = "\u0417\u0435\u0440\u043A\u0430\u043B\u043E";
354
+ IconTitleMap["GlobalIcon"] = "\u0413\u043B\u043E\u0431\u0443\u0441";
355
+ IconTitleMap["GpsIcon"] = "Gps";
356
+ IconTitleMap["GridIcon"] = "\u0421\u0435\u0442\u043A\u0430";
357
+ IconTitleMap["GridIconWhite"] = "\u0421\u0435\u0442\u043A\u0430 (\u0431\u0435\u043B\u0430\u044F)";
358
+ IconTitleMap["InterestGrowthIcon"] = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430";
359
+ IconTitleMap["InterestIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
360
+ IconTitleMap["JCBIcon"] = "JCB";
361
+ IconTitleMap["LoupeIcon"] = "\u041B\u0443\u043F\u0430";
362
+ IconTitleMap["MasterCardIcon"] = "MasterCard";
363
+ IconTitleMap["MinusIcon"] = "\u041C\u0438\u043D\u0443\u0441";
364
+ IconTitleMap["MirIcon"] = "\u041C\u0418\u0420";
365
+ IconTitleMap["MoneyIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
366
+ IconTitleMap["MoneyInsuranceIcon"] = "\u0414\u0435\u043D\u0435\u0436\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435";
367
+ IconTitleMap["MonitorMobileIcon"] = "\u041C\u043E\u043D\u0438\u0442\u043E\u0440 \u0438 \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0439";
368
+ IconTitleMap["NewDocIcon"] = "\u041D\u043E\u0432\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
369
+ IconTitleMap["OfficeIcon"] = "\u041E\u0444\u0438\u0441";
370
+ IconTitleMap["OkIcon"] = "\u041B\u043E\u0433\u043E \u00AB\u041E\u0434\u043D\u043E\u043A\u043B\u0430\u0441\u0441\u043D\u0438\u043A\u0438\u00BB";
371
+ IconTitleMap["PassSendIcon"] = "\u0411\u0438\u0437\u043D\u0435\u0441";
372
+ IconTitleMap["PercentageRoundIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B (\u043A\u0440\u0443\u0433.)";
373
+ IconTitleMap["PercentageSquareIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B";
374
+ IconTitleMap["PercentageSquareWhiteIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B \u0431\u0435\u043B\u044B\u0435";
375
+ IconTitleMap["PersonalCardIcon"] = "\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430";
376
+ IconTitleMap["PlayMarketIcon"] = "\u041B\u043E\u0433\u043E \u00ABPlayMarket\u00BB";
377
+ IconTitleMap["PlusIcon"] = "\u041F\u043B\u044E\u0441";
378
+ IconTitleMap["Profile2UserIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C, 2 \u043F\u0435\u0440\u0441\u043E\u043D\u044B";
379
+ IconTitleMap["ProfileIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C";
380
+ IconTitleMap["RoundRubleIcon"] = "\u0420\u0443\u0431\u043B\u044C (\u043A\u0440\u0443\u0433.)";
381
+ IconTitleMap["SafeIcon"] = "\u0421\u0435\u0439\u0444";
382
+ IconTitleMap["ShieldTickIcon"] = "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C";
383
+ IconTitleMap["SignDocsIcon"] = "\u041F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
384
+ IconTitleMap["SmallClockIcon"] = "\u041C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435 \u0447\u0430\u0441\u044B";
385
+ IconTitleMap["TelegramIcon"] = "\u041B\u043E\u0433\u043E \u00ABTelegram\u00BB";
386
+ IconTitleMap["UnionPayIcon"] = "UnionPay";
387
+ IconTitleMap["UserTickIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C";
388
+ IconTitleMap["VisaIcon"] = "Visa";
389
+ IconTitleMap["VKIcon"] = "\u041B\u043E\u0433\u043E \u00ABVK\u00BB";
390
+ IconTitleMap["WalletAdd2Icon"] = "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u0440\u0442\u044B";
391
+ IconTitleMap["WalletAddIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u043F\u043B\u044E\u0441\u043E\u043C";
392
+ IconTitleMap["WalletIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A";
393
+ IconTitleMap["WalletWithMoneyIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0434\u0435\u043D\u044C\u0433\u0430\u043C\u0438";
394
+ })(IconTitleMap || (IconTitleMap = {}));
395
+
237
396
  const svgColorsMap = {
238
397
  none: '',
239
398
  primary: 'text-primary-main',
240
399
  };
241
- const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
400
+ const Icon = JSX(({ className = '', name, alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
242
401
  const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
243
402
  if (asSVG) {
244
403
  return (jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
@@ -271,7 +430,7 @@
271
430
 
272
431
  const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description }) => {
273
432
  const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
274
- return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${ALIGN_TEXT[align]}`, children: description }))] }));
433
+ return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
275
434
  });
276
435
 
277
436
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
@@ -750,7 +909,7 @@
750
909
  });
751
910
  };
752
911
 
753
- const AccordionBlocks = {
912
+ const EmbeddableBlocks = {
754
913
  Headline,
755
914
  LinkDocs,
756
915
  TextBlock,
@@ -763,20 +922,23 @@
763
922
  LinkList,
764
923
  };
765
924
 
766
- const AccordionItemInner = JSX(({ blocks, columns = 1, context }) => {
767
- return (jsx("div", { className: 'transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 flex flex-wrap', children: blocks?.length ? blocks.map(renderBlock$1(context, columns)) : null }));
768
- });
769
- const renderBlock$1 = (context, columns) => (block, i) => {
770
- const type = block?.accordionBlockType;
771
- if (!type || !(type in AccordionBlocks)) {
925
+ const renderBlocksList = ({ blocks, context, className, columns }) => blocks?.length ? blocks.map(renderBlock$1({ context, className, columns })) : null;
926
+ const renderBlock$1 = ({ context, columns, className }) => (block, i) => {
927
+ const type = block?.blockListType;
928
+ if (!type || !(type in EmbeddableBlocks)) {
772
929
  return null;
773
930
  }
774
931
  const columnsCountClass = columns === 2 ? 'w-1/2' : '';
775
- const AccordionBlock = AccordionBlocks[type];
776
- return (jsx("div", { className: `mb-5 last:mb-0 pb-5 ${columnsCountClass}`, children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
932
+ const EmbeddedBlock = EmbeddableBlocks[type];
933
+ return (jsx("div", { className: `${className} ${columnsCountClass}`, children: jsx(EmbeddedBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
777
934
  };
778
935
 
779
- const isActiveHandler = ({ context, blocks }) => {
936
+ const AccordionItemInner = JSX(({ blocks, columns = 1, context }) => {
937
+ const className = 'mb-5 last:mb-0 pb-5';
938
+ return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden", children: renderBlocksList({ context, className, columns, blocks }) }));
939
+ });
940
+
941
+ const useActiveHandler$1 = ({ context, blocks }) => {
780
942
  const [isActive, setIsActive] = context.useState(false);
781
943
  const hasContent = blocks?.length;
782
944
  const icon = isActive ? 'MinusIcon' : 'PlusIcon';
@@ -795,7 +957,7 @@
795
957
  };
796
958
 
797
959
  const AccordionItem = JSX(({ label, blocks, columns, context }) => {
798
- const { hasContent, icon, handleToggle } = isActiveHandler({
960
+ const { hasContent, icon, handleToggle } = useActiveHandler$1({
799
961
  context,
800
962
  blocks,
801
963
  });
@@ -1494,6 +1656,42 @@
1494
1656
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
1495
1657
  }
1496
1658
 
1659
+ const useActiveHandler = ({ context, blocks }) => {
1660
+ const [isActive, setIsActive] = context.useState(false);
1661
+ const hasContent = blocks?.length;
1662
+ const icon = isActive ? 'ArrowUpIcon' : 'ArrowDownIcon';
1663
+ const getContentBlock = ({ currentTarget }) => currentTarget.previousSibling;
1664
+ const handleToggle = (e) => {
1665
+ if (!hasContent) {
1666
+ return;
1667
+ }
1668
+ setIsActive(!isActive);
1669
+ const contentBlock = getContentBlock(e);
1670
+ contentBlock.style.maxHeight = contentBlock.style.maxHeight
1671
+ ? null
1672
+ : `${contentBlock.scrollHeight}px`;
1673
+ };
1674
+ return { isActive, hasContent, icon, handleToggle };
1675
+ };
1676
+
1677
+ const OtherProductsItemInner = JSX(({ blocks, columns = 1, context }) => {
1678
+ const className = 'box-border p-5';
1679
+ return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden", children: jsx("div", { className: `box-border w-full p-9 ${columns > 1 ? 'flex flex-wrap' : ''}`, children: renderBlocksList({ context, className, columns, blocks }) }) }));
1680
+ });
1681
+
1682
+ const OtherProductsItem = JSX(({ label, blocks, columns, context }) => {
1683
+ const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
1684
+ context,
1685
+ blocks,
1686
+ });
1687
+ return (jsxs("div", { className: "border-0 border-b border-solid border-main-divider", children: [hasContent ? (jsx(OtherProductsItemInner, { columns: columns, blocks: blocks, context: context, isActive: isActive })) : null, jsxs("button", { className: `border-none bg-primary-main px-0 py-[25px] text-center w-full font-sans text-white text-base
1688
+ ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: "pr-3", children: isActive ? 'Скрыть' : label }), hasContent ? jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] })] }));
1689
+ });
1690
+
1691
+ const OtherProducts = JSX(({ blockItems, context, className }) => {
1692
+ return (jsx("section", { className: `font-sans bg-white text-primary-text ${className || ''}`, children: blockItems?.length ? (jsx("div", { className: "list-none m-0 p-0", children: blockItems.map((item, i) => (jsx(OtherProductsItem, { ...item, context: context }, `BlockItem${i}`))) })) : null }));
1693
+ });
1694
+
1497
1695
  const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version }) => {
1498
1696
  return (jsx("section", { className: `border border-solid box-border rounded-md p-7 min-w-[515px] max-w-[515px] ${className}`, role: "listitem", children: jsxs(BaseTile, { context: context, title: title && jsx(Heading, { headingType: "h4", title: title, className: "mb-4" }), image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? jsx(Description, { description: description }) : null, items?.length ? jsx(List, { items: items, version: version }) : null] }) }));
1499
1697
  });
@@ -1590,6 +1788,7 @@
1590
1788
  ProductGalleryGreen,
1591
1789
  ProductTile,
1592
1790
  PromoTile,
1791
+ OtherProducts,
1593
1792
  Recommendation,
1594
1793
  StepsBlock,
1595
1794
  TariffsTable,