@redneckz/wildless-cms-uni-blocks 0.5.12 → 0.5.14

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 (474) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +136 -84
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Accordion/AccordionContent.d.ts +9 -7
  5. package/bundle/components/Accordion/AccordionItem.d.ts +1 -4
  6. package/bundle/components/Accordion/AccordionItem.mobile.d.ts +1 -4
  7. package/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
  8. package/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
  9. package/bundle/components/Blocks.d.ts +3 -1
  10. package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  11. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  12. package/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
  13. package/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  14. package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  15. package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  16. package/bundle/components/StepsBlock/renderItems.d.ts +7 -2
  17. package/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
  18. package/bundle/model/BlockDecorator.d.ts +1 -0
  19. package/bundle/model/BlocksRegistry.d.ts +4 -1
  20. package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  21. package/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
  22. package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  23. package/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  24. package/dist/components/Accordion/Accordion.js +3 -1
  25. package/dist/components/Accordion/Accordion.js.map +1 -1
  26. package/dist/components/Accordion/Accordion.mobile.js +5 -2
  27. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  28. package/dist/components/Accordion/AccordionContent.d.ts +9 -7
  29. package/dist/components/Accordion/AccordionItem.d.ts +1 -4
  30. package/dist/components/Accordion/AccordionItem.js +3 -8
  31. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  32. package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -4
  33. package/dist/components/Accordion/AccordionItem.mobile.js +2 -5
  34. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  35. package/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
  36. package/dist/components/Accordion/AccordionItemProps.js +2 -0
  37. package/dist/components/Accordion/AccordionItemProps.js.map +1 -0
  38. package/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
  39. package/dist/components/Accordion/AccordionItemsList.js +6 -0
  40. package/dist/components/Accordion/AccordionItemsList.js.map +1 -0
  41. package/dist/components/Blocks.d.ts +3 -1
  42. package/dist/components/Blocks.js +4 -0
  43. package/dist/components/Blocks.js.map +1 -1
  44. package/dist/components/ContentPage/filterBlocks.js +1 -2
  45. package/dist/components/ContentPage/filterBlocks.js.map +1 -1
  46. package/dist/components/ContentPage/filterBlocks.mobile.js +1 -3
  47. package/dist/components/ContentPage/filterBlocks.mobile.js.map +1 -1
  48. package/dist/components/ContentPage/renderBlock.js +8 -7
  49. package/dist/components/ContentPage/renderBlock.js.map +1 -1
  50. package/dist/components/Footer/Footer.mobile.js +8 -7
  51. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  52. package/dist/components/Header/Header.mobile.js +5 -5
  53. package/dist/components/Header/Header.mobile.js.map +1 -1
  54. package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  55. package/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
  56. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  57. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  58. package/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  59. package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  60. package/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
  61. package/dist/components/OtherProducts/OtherProducts.js +2 -4
  62. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  63. package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  64. package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  65. package/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
  66. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
  67. package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  68. package/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
  69. package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
  70. package/dist/components/StepsBlock/StepsBlock.js +2 -8
  71. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  72. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  73. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  74. package/dist/components/StepsBlock/renderItems.d.ts +7 -2
  75. package/dist/components/StepsBlock/renderItems.js +5 -1
  76. package/dist/components/StepsBlock/renderItems.js.map +1 -1
  77. package/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
  78. package/dist/components/StepsBlock/renderStepContent.js +20 -0
  79. package/dist/components/StepsBlock/renderStepContent.js.map +1 -0
  80. package/dist/components/TariffsTable/TariffsTable.js +11 -2
  81. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  82. package/dist/model/BlockDecorator.d.ts +1 -0
  83. package/dist/model/BlockDecorator.js +2 -1
  84. package/dist/model/BlockDecorator.js.map +1 -1
  85. package/dist/model/BlocksRegistry.d.ts +4 -1
  86. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  87. package/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
  88. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  89. package/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
  90. package/dist/ui-kit/Foldable/Foldable.js +7 -23
  91. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  92. package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  93. package/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
  94. package/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  95. package/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  96. package/dist/ui-kit/Foldable/FoldableSection.js +17 -0
  97. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
  98. package/lib/common.css +1 -1
  99. package/lib/components/Accordion/Accordion.js +3 -1
  100. package/lib/components/Accordion/Accordion.js.map +1 -1
  101. package/lib/components/Accordion/Accordion.mobile.js +5 -2
  102. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  103. package/lib/components/Accordion/AccordionContent.d.ts +9 -7
  104. package/lib/components/Accordion/AccordionItem.d.ts +1 -4
  105. package/lib/components/Accordion/AccordionItem.js +3 -8
  106. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  107. package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -4
  108. package/lib/components/Accordion/AccordionItem.mobile.js +2 -5
  109. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  110. package/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
  111. package/lib/components/Accordion/AccordionItemProps.js +2 -0
  112. package/lib/components/Accordion/AccordionItemProps.js.map +1 -0
  113. package/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
  114. package/lib/components/Accordion/AccordionItemsList.js +4 -0
  115. package/lib/components/Accordion/AccordionItemsList.js.map +1 -0
  116. package/lib/components/Blocks.d.ts +3 -1
  117. package/lib/components/Blocks.js +4 -0
  118. package/lib/components/Blocks.js.map +1 -1
  119. package/lib/components/ContentPage/filterBlocks.js +1 -2
  120. package/lib/components/ContentPage/filterBlocks.js.map +1 -1
  121. package/lib/components/ContentPage/filterBlocks.mobile.js +1 -3
  122. package/lib/components/ContentPage/filterBlocks.mobile.js.map +1 -1
  123. package/lib/components/ContentPage/renderBlock.js +9 -8
  124. package/lib/components/ContentPage/renderBlock.js.map +1 -1
  125. package/lib/components/Footer/Footer.mobile.js +8 -7
  126. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  127. package/lib/components/Header/Header.mobile.js +5 -5
  128. package/lib/components/Header/Header.mobile.js.map +1 -1
  129. package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  130. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +7 -0
  131. package/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
  132. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  133. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  134. package/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  135. package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  136. package/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
  137. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +1 -0
  138. package/lib/components/OtherProducts/OtherProducts.js +2 -4
  139. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  140. package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  141. package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  142. package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +5 -0
  143. package/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
  144. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
  145. package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  146. package/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
  147. package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
  148. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +2 -1
  149. package/lib/components/StepsBlock/StepsBlock.js +2 -8
  150. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  151. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  152. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  153. package/lib/components/StepsBlock/renderItems.d.ts +7 -2
  154. package/lib/components/StepsBlock/renderItems.js +6 -2
  155. package/lib/components/StepsBlock/renderItems.js.map +1 -1
  156. package/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
  157. package/lib/components/StepsBlock/renderStepContent.js +17 -0
  158. package/lib/components/StepsBlock/renderStepContent.js.map +1 -0
  159. package/lib/components/TariffsTable/TariffsTable.js +11 -2
  160. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  161. package/lib/model/BlockDecorator.d.ts +1 -0
  162. package/lib/model/BlockDecorator.js +1 -0
  163. package/lib/model/BlockDecorator.js.map +1 -1
  164. package/lib/model/BlocksRegistry.d.ts +4 -1
  165. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  166. package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
  167. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  168. package/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
  169. package/lib/ui-kit/Foldable/Foldable.js +9 -25
  170. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  171. package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  172. package/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
  173. package/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  174. package/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  175. package/lib/ui-kit/Foldable/FoldableSection.js +15 -0
  176. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
  177. package/mobile/bundle/bundle.umd.js +138 -159
  178. package/mobile/bundle/bundle.umd.min.js +1 -1
  179. package/mobile/bundle/components/Accordion/AccordionContent.d.ts +9 -7
  180. package/mobile/bundle/components/Accordion/AccordionItem.d.ts +1 -4
  181. package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
  182. package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
  183. package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  184. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  185. package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
  186. package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  187. package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  188. package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  189. package/mobile/bundle/components/StepsBlock/renderItems.d.ts +7 -2
  190. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
  191. package/mobile/bundle/model/BlockDecorator.d.ts +1 -0
  192. package/mobile/bundle/model/BlocksRegistry.d.ts +4 -1
  193. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  194. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
  195. package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  196. package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  197. package/mobile/dist/components/Accordion/Accordion.js +5 -2
  198. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  199. package/mobile/dist/components/Accordion/AccordionContent.d.ts +9 -7
  200. package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -4
  201. package/mobile/dist/components/Accordion/AccordionItem.js +2 -5
  202. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  203. package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
  204. package/mobile/dist/components/Accordion/AccordionItemProps.js +2 -0
  205. package/mobile/dist/components/Accordion/AccordionItemProps.js.map +1 -0
  206. package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
  207. package/mobile/dist/components/Accordion/AccordionItemsList.js +6 -0
  208. package/mobile/dist/components/Accordion/AccordionItemsList.js.map +1 -0
  209. package/mobile/dist/components/ContentPage/filterBlocks.js +1 -3
  210. package/mobile/dist/components/ContentPage/filterBlocks.js.map +1 -1
  211. package/mobile/dist/components/ContentPage/renderBlock.js +8 -7
  212. package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
  213. package/mobile/dist/components/Footer/Footer.js +8 -7
  214. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  215. package/mobile/dist/components/Header/Header.js +5 -5
  216. package/mobile/dist/components/Header/Header.js.map +1 -1
  217. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  218. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
  219. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  220. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  221. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  222. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  223. package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
  224. package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -4
  225. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  226. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  227. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  228. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
  229. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
  230. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  231. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
  232. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
  233. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  234. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  235. package/mobile/dist/components/StepsBlock/renderItems.d.ts +7 -2
  236. package/mobile/dist/components/StepsBlock/renderItems.js +5 -1
  237. package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
  238. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
  239. package/mobile/dist/components/StepsBlock/renderStepContent.js +20 -0
  240. package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -0
  241. package/mobile/dist/model/BlockDecorator.d.ts +1 -0
  242. package/mobile/dist/model/BlockDecorator.js +2 -1
  243. package/mobile/dist/model/BlockDecorator.js.map +1 -1
  244. package/mobile/dist/model/BlocksRegistry.d.ts +4 -1
  245. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  246. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
  247. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  248. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
  249. package/mobile/dist/ui-kit/Foldable/Foldable.js +7 -23
  250. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  251. package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  252. package/mobile/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
  253. package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  254. package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  255. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +17 -0
  256. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
  257. package/mobile/lib/components/Accordion/Accordion.js +5 -2
  258. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  259. package/mobile/lib/components/Accordion/AccordionContent.d.ts +9 -7
  260. package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -4
  261. package/mobile/lib/components/Accordion/AccordionItem.js +2 -5
  262. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  263. package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
  264. package/mobile/lib/components/Accordion/AccordionItemProps.js +2 -0
  265. package/mobile/lib/components/Accordion/AccordionItemProps.js.map +1 -0
  266. package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
  267. package/mobile/lib/components/Accordion/AccordionItemsList.js +4 -0
  268. package/mobile/lib/components/Accordion/AccordionItemsList.js.map +1 -0
  269. package/mobile/lib/components/ContentPage/filterBlocks.js +1 -3
  270. package/mobile/lib/components/ContentPage/filterBlocks.js.map +1 -1
  271. package/mobile/lib/components/ContentPage/renderBlock.js +9 -8
  272. package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
  273. package/mobile/lib/components/Footer/Footer.js +8 -7
  274. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  275. package/mobile/lib/components/Header/Header.js +5 -5
  276. package/mobile/lib/components/Header/Header.js.map +1 -1
  277. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  278. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
  279. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  280. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  281. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  282. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  283. package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
  284. package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -4
  285. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  286. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
  287. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
  288. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
  289. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
  290. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
  291. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
  292. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
  293. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  294. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  295. package/mobile/lib/components/StepsBlock/renderItems.d.ts +7 -2
  296. package/mobile/lib/components/StepsBlock/renderItems.js +6 -2
  297. package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
  298. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
  299. package/mobile/lib/components/StepsBlock/renderStepContent.js +17 -0
  300. package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -0
  301. package/mobile/lib/model/BlockDecorator.d.ts +1 -0
  302. package/mobile/lib/model/BlockDecorator.js +1 -0
  303. package/mobile/lib/model/BlockDecorator.js.map +1 -1
  304. package/mobile/lib/model/BlocksRegistry.d.ts +4 -1
  305. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  306. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
  307. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  308. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
  309. package/mobile/lib/ui-kit/Foldable/Foldable.js +9 -25
  310. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  311. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  312. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
  313. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  314. package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  315. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +15 -0
  316. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
  317. package/mobile/src/common.css +11 -3
  318. package/mobile/src/components/Accordion/Accordion.tsx +17 -7
  319. package/mobile/src/components/Accordion/AccordionContent.ts +10 -7
  320. package/mobile/src/components/Accordion/AccordionItem.tsx +34 -30
  321. package/mobile/src/components/Accordion/AccordionItemProps.ts +6 -0
  322. package/mobile/src/components/Accordion/AccordionItemsList.tsx +5 -0
  323. package/mobile/src/components/ContentPage/filterBlocks.ts +1 -3
  324. package/mobile/src/components/ContentPage/renderBlock.tsx +16 -11
  325. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
  326. package/mobile/src/components/Footer/Footer.tsx +15 -13
  327. package/mobile/src/components/GracePeriod/GracePeriod.ui.json +5 -0
  328. package/mobile/src/components/Header/Header.tsx +16 -11
  329. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
  330. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
  331. package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
  332. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
  333. package/mobile/src/components/OtherProducts/OtherProducts.example.json +1 -54
  334. package/mobile/src/components/OtherProducts/OtherProducts.tsx +13 -24
  335. package/mobile/src/components/OtherProducts/OtherProducts.ui.json +1 -76
  336. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -22
  337. package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
  338. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
  339. package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
  340. package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
  341. package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
  342. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
  343. package/mobile/src/components/StepsBlock/renderItems.tsx +24 -15
  344. package/mobile/src/components/StepsBlock/renderStepContent.tsx +63 -0
  345. package/mobile/src/model/BlockDecorator.ts +2 -0
  346. package/mobile/src/model/BlocksRegistry.ts +4 -1
  347. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
  348. package/mobile/src/ui-kit/Foldable/Foldable.tsx +19 -67
  349. package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
  350. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
  351. package/package.json +2 -2
  352. package/src/common.css +11 -3
  353. package/src/components/Accordion/Accordion.mobile.tsx +17 -7
  354. package/src/components/Accordion/Accordion.tsx +12 -3
  355. package/src/components/Accordion/AccordionContent.ts +10 -7
  356. package/src/components/Accordion/AccordionItem.mobile.tsx +34 -30
  357. package/src/components/Accordion/AccordionItem.tsx +24 -23
  358. package/src/components/Accordion/AccordionItemProps.ts +6 -0
  359. package/src/components/Accordion/AccordionItemsList.tsx +5 -0
  360. package/src/components/Blocks.ts +4 -0
  361. package/src/components/ContentPage/filterBlocks.mobile.ts +1 -3
  362. package/src/components/ContentPage/filterBlocks.ts +1 -2
  363. package/src/components/ContentPage/renderBlock.tsx +16 -11
  364. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
  365. package/src/components/Footer/Footer.mobile.tsx +15 -13
  366. package/src/components/GracePeriod/GracePeriod.ui.json +5 -0
  367. package/src/components/Header/Header.mobile.tsx +16 -11
  368. package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
  369. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +107 -0
  370. package/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
  371. package/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
  372. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
  373. package/src/components/OtherProducts/OtherProducts.example.json +1 -54
  374. package/src/components/OtherProducts/OtherProducts.fixture.tsx +77 -126
  375. package/src/components/OtherProducts/OtherProducts.tsx +13 -24
  376. package/src/components/OtherProducts/OtherProducts.ui.json +1 -76
  377. package/src/components/OtherProducts/OtherProductsContent.ts +1 -22
  378. package/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
  379. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +5 -0
  380. package/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
  381. package/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
  382. package/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
  383. package/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
  384. package/src/components/StepsBlock/StepsBlock.fixture.tsx +39 -25
  385. package/src/components/StepsBlock/StepsBlock.tsx +3 -49
  386. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
  387. package/src/components/StepsBlock/renderItems.tsx +24 -15
  388. package/src/components/StepsBlock/renderStepContent.tsx +63 -0
  389. package/src/components/TariffsTable/TariffsTable.tsx +32 -23
  390. package/src/model/BlockDecorator.ts +2 -0
  391. package/src/model/BlocksRegistry.ts +4 -1
  392. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
  393. package/src/ui-kit/Foldable/Foldable.tsx +19 -67
  394. package/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
  395. package/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
  396. package/tailwind.config.cjs +5 -0
  397. package/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  398. package/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  399. package/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  400. package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  401. package/bundle/utils/getAccordionItems.d.ts +0 -1
  402. package/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  403. package/dist/components/ContentPage/isBlockInRegistry.js +0 -7
  404. package/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
  405. package/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  406. package/dist/components/OtherProducts/OtherProductsItem.js +0 -19
  407. package/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
  408. package/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  409. package/dist/ui-kit/Foldable/DefaultButton.js +0 -12
  410. package/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
  411. package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  412. package/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  413. package/dist/utils/getAccordionItems.d.ts +0 -1
  414. package/dist/utils/getAccordionItems.js +0 -13
  415. package/dist/utils/getAccordionItems.js.map +0 -1
  416. package/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  417. package/lib/components/ContentPage/isBlockInRegistry.js +0 -4
  418. package/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
  419. package/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  420. package/lib/components/OtherProducts/OtherProductsItem.js +0 -17
  421. package/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
  422. package/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  423. package/lib/ui-kit/Foldable/DefaultButton.js +0 -10
  424. package/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
  425. package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  426. package/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
  427. package/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  428. package/lib/utils/getAccordionItems.d.ts +0 -1
  429. package/lib/utils/getAccordionItems.js +0 -10
  430. package/lib/utils/getAccordionItems.js.map +0 -1
  431. package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  432. package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  433. package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  434. package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  435. package/mobile/bundle/utils/getAccordionItems.d.ts +0 -1
  436. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  437. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +0 -7
  438. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
  439. package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  440. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +0 -19
  441. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
  442. package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  443. package/mobile/dist/ui-kit/Foldable/DefaultButton.js +0 -12
  444. package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
  445. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  446. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  447. package/mobile/dist/utils/getAccordionItems.d.ts +0 -1
  448. package/mobile/dist/utils/getAccordionItems.js +0 -13
  449. package/mobile/dist/utils/getAccordionItems.js.map +0 -1
  450. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  451. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +0 -4
  452. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
  453. package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
  454. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +0 -17
  455. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
  456. package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  457. package/mobile/lib/ui-kit/Foldable/DefaultButton.js +0 -10
  458. package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
  459. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  460. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
  461. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  462. package/mobile/lib/utils/getAccordionItems.d.ts +0 -1
  463. package/mobile/lib/utils/getAccordionItems.js +0 -10
  464. package/mobile/lib/utils/getAccordionItems.js.map +0 -1
  465. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +0 -5
  466. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +0 -49
  467. package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
  468. package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
  469. package/mobile/src/utils/getAccordionItems.ts +0 -10
  470. package/src/components/ContentPage/isBlockInRegistry.ts +0 -5
  471. package/src/components/OtherProducts/OtherProductsItem.tsx +0 -49
  472. package/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
  473. package/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
  474. package/src/utils/getAccordionItems.ts +0 -10
@@ -0,0 +1,107 @@
1
+ import { context } from '../../react/setup-fixture';
2
+ import { InvestmentInfo } from './InvestmentInfo';
3
+ import type { InvestmentInfoContent } from './InvestmentInfoContent';
4
+
5
+ export const INVESTMENT_INFO: InvestmentInfoContent = {
6
+ items: [
7
+ 'Качественные фермерские продукты напрямую от производителей',
8
+ 'Самая большая база сельских туров по России',
9
+ 'Площадки для создания комфортной жизни за городом',
10
+ 'Подробная база вакансий для жителей сельской местности',
11
+ ],
12
+ investmentZeroColumn: {
13
+ title: 'Открытие ИИС',
14
+ },
15
+ investmentColumns: [
16
+ {
17
+ title: '1 января года, следующего за годом открытия ИИС',
18
+ cells: [
19
+ {
20
+ text: 'Потенциальный доход инвестиций',
21
+ cellColor: 'green-light',
22
+ },
23
+ {
24
+ text: 'Первый взнос 400 000 ₽',
25
+ cellColor: 'green-dark',
26
+ cellSize: 'S',
27
+ },
28
+ ],
29
+ },
30
+ {
31
+ title: '1 января второго года после открытия ИИС',
32
+ cells: [
33
+ {
34
+ text: 'Налоговый вычет за 1 год 52 000 ₽',
35
+ cellColor: 'yellow',
36
+ },
37
+ {
38
+ text: 'Потенциальный доход инвестиций за 2 года',
39
+ cellColor: 'green-light',
40
+ cellSize: 'S',
41
+ },
42
+ {
43
+ text: 'Второй взнос 400 000 ₽',
44
+ cellColor: 'green',
45
+ cellSize: 'S',
46
+ },
47
+ {
48
+ text: 'Первый взнос 400 000 ₽',
49
+ cellColor: 'green-dark',
50
+ cellSize: 'S',
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ title: '1 января третьего года после открытия ИИС',
56
+ cells: [
57
+ {
58
+ text: 'Налоговый вычет за 2 год 52 000 ₽',
59
+ cellColor: 'yellow',
60
+ },
61
+ {
62
+ text: 'Потенциальный доход инвестиций за 3 года',
63
+ cellColor: 'green-light',
64
+ cellSize: 'M',
65
+ },
66
+ {
67
+ text: 'Третий взнос — 0 ₽',
68
+ cellColor: 'green',
69
+ cellSize: 'S',
70
+ },
71
+ {
72
+ text: 'Первый и второй взносы 800 000 ₽',
73
+ cellColor: 'green-dark',
74
+ cellSize: 'L',
75
+ },
76
+ ],
77
+ },
78
+ {
79
+ title: 'Возможный вывод средств, закрытие ИИС',
80
+ cells: [
81
+ {
82
+ text: 'Налоговый вычет за 3 года 156 000 ₽',
83
+ cellColor: 'yellow',
84
+ cellSize: 'S',
85
+ },
86
+ {
87
+ text: 'Потенциальный доход инвестиций за 3 года',
88
+ cellColor: 'green-light',
89
+ cellSize: 'M',
90
+ },
91
+ {
92
+ text: 'Сумма инвестиций за 3 года 1 200 000 ₽',
93
+ cellColor: 'green-dark',
94
+ cellSize: 'XL',
95
+ },
96
+ ],
97
+ },
98
+ ],
99
+ };
100
+
101
+ export default {
102
+ default: (
103
+ <div className="container grid grid-cols-12">
104
+ <InvestmentInfo className="col-span-12" context={context} {...INVESTMENT_INFO} />
105
+ </div>
106
+ ),
107
+ };
@@ -0,0 +1,149 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/ContentPageDef';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { List } from '../../ui-kit/List/List';
5
+ import { joinList } from '../../utils/joinList';
6
+ import type {
7
+ InvestmentCell,
8
+ InvestmentCellColor,
9
+ InvestmentCellSize,
10
+ InvestmentColumn,
11
+ InvestmentInfoContent,
12
+ InvestmentZeroColumn,
13
+ } from './InvestmentInfoContent';
14
+
15
+ const investmentCellColorMap: Record<InvestmentCellColor, string> = {
16
+ yellow: 'bg-yellow',
17
+ green: 'bg-green',
18
+ 'green-light': 'bg-green-light',
19
+ 'green-dark': 'bg-green-dark',
20
+ };
21
+
22
+ const investmentCellSizeMap: Record<InvestmentCellSize, string> = {
23
+ XS: 'h-[40px]',
24
+ S: 'h-[68px]',
25
+ M: 'h-[102px]',
26
+ L: 'h-[136px]',
27
+ XL: 'h-[204px]',
28
+ };
29
+
30
+ export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {}
31
+
32
+ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
33
+ const {
34
+ context,
35
+ className = '',
36
+ items,
37
+ isDotted,
38
+ investmentZeroColumn,
39
+ investmentColumns,
40
+ ...rest
41
+ } = props;
42
+ const colums = investmentColumns ? [...investmentColumns] : [];
43
+ if (investmentZeroColumn) {
44
+ colums.unshift(investmentZeroColumn);
45
+ }
46
+
47
+ return (
48
+ <BlockWrapper
49
+ className={`font-sans bg-white p-9 pb-9 ${className}`}
50
+ context={context}
51
+ {...rest}
52
+ >
53
+ <div className="container text-m-light">
54
+ {colums?.length ? (
55
+ <div>
56
+ <div className="flex items-end px-9 text-white">
57
+ {joinList(<div className="w-px h-4 bg-main-stroke" />)(
58
+ colums.map(renderInvestmentColumn),
59
+ )}
60
+ <div className="w-px h-4 bg-main-stroke" />
61
+ </div>
62
+ <div className="border-t border-main-stroke -mt-2 mx-9" />
63
+ <div className="flex justify-between mt-3 -mx-10">
64
+ {colums.map(renderInvestmentColumnTitle)}
65
+ </div>
66
+ </div>
67
+ ) : null}
68
+
69
+ {items?.length ? (
70
+ <List
71
+ className="mt-9 text-h6"
72
+ items={items}
73
+ itemClassName="mb-[7px]"
74
+ isDotted={isDotted}
75
+ />
76
+ ) : null}
77
+ </div>
78
+ </BlockWrapper>
79
+ );
80
+ });
81
+
82
+ const renderInvestmentColumn = (
83
+ column: InvestmentColumn | InvestmentZeroColumn,
84
+ i: number,
85
+ arr: Array<InvestmentColumn>,
86
+ ) => {
87
+ const isSecondColumn = i === 1;
88
+ const isLastColumn = i === arr.length - 1;
89
+
90
+ return (
91
+ <div
92
+ key={`column_${i}`}
93
+ className={`${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`}
94
+ >
95
+ {column.cells?.length ? (
96
+ <div className={`w-full ${isLastColumn ? 'border-4 border-green-more-dark p-1' : ''}`}>
97
+ {column.cells.map(renderInvestmentCell)}
98
+ </div>
99
+ ) : null}
100
+ </div>
101
+ );
102
+ };
103
+
104
+ const getColumnClasses = (
105
+ isSecondColumn: boolean,
106
+ isLastColumn: boolean,
107
+ cells: InvestmentCell[] = [],
108
+ ): string =>
109
+ [
110
+ cells.length ? 'flex-1' : 'flex-0',
111
+ cells.length && !isSecondColumn && !isLastColumn ? 'pl-2.5' : '',
112
+ cells.length && !isLastColumn ? 'pr-2.5 pb-8' : 'pb-6',
113
+ ].join(' ');
114
+
115
+ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
116
+ const cellSize = cell.cellSize || 'XS';
117
+ const cellColor = cell.cellColor || 'green';
118
+
119
+ return cell.text ? (
120
+ <div
121
+ key={`cell_${i}`}
122
+ className={`flex-1 flex items-center justify-center relative py-2 ${
123
+ investmentCellSizeMap[cellSize]
124
+ } ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-3' : 'px-11'}`}
125
+ >
126
+ <div className="text-center">{cell.text}</div>
127
+ </div>
128
+ ) : null;
129
+ };
130
+
131
+ const renderInvestmentColumnTitle = (
132
+ column: InvestmentColumn | InvestmentZeroColumn,
133
+ i: number,
134
+ arr: Array<InvestmentColumn>,
135
+ ) => {
136
+ const isFirstColumn = i === 0;
137
+ const isLastColumn = i === arr.length - 1;
138
+
139
+ return (
140
+ <div
141
+ key={`title_${i}`}
142
+ className={`flex-1 max-w-[180px] text-center px-2 ${isFirstColumn ? 'pl-9' : ''} ${
143
+ isLastColumn ? 'pr-9' : ' '
144
+ }`}
145
+ >
146
+ {column.title}
147
+ </div>
148
+ );
149
+ };
@@ -0,0 +1,16 @@
1
+ {
2
+ "content": {
3
+ "bonusItems": {
4
+ "items": {
5
+ "bonusItemContent": {
6
+ "bonusType": {
7
+ "ui:widget": "hidden"
8
+ },
9
+ "image": {
10
+ "ui:field": "icon"
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,55 @@
1
+ import type { ListContent } from '../../ui-kit/List/ListContent';
2
+
3
+ /**
4
+ * @title Цвет
5
+ * @enumNames ["Желтый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
6
+ */
7
+ export type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
8
+
9
+ /**
10
+ * @title Высота
11
+ * @enumNames ["Очень большой", "Большой", "Средний", "Маленький", "Очень маленький"]
12
+ */
13
+ export type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
14
+
15
+ /**
16
+ * @title Ячейка
17
+ */
18
+ export type InvestmentCell = {
19
+ /** @title Текст */
20
+ text?: string;
21
+ cellColor?: InvestmentCellColor;
22
+ cellSize?: InvestmentCellSize;
23
+ };
24
+
25
+ /**
26
+ * @title Элемент данных 1
27
+ */
28
+ export type InvestmentZeroColumn = {
29
+ /** @title Название */
30
+ title?: string;
31
+ /** @hidden */
32
+ cells?: InvestmentCell[];
33
+ };
34
+
35
+ /**
36
+ * @title Элемент данных
37
+ */
38
+ export type InvestmentColumn = {
39
+ /** @title Название */
40
+ title?: string;
41
+ /** @title Ячейки */
42
+ cells?: InvestmentCell[];
43
+ };
44
+
45
+ /**
46
+ * @title Блок инвестиций
47
+ */
48
+ export type InvestmentInfoContent = ListContent & {
49
+ /** @title Буллиты */
50
+ isDotted?: boolean;
51
+ /** @title Элемент данных 1 */
52
+ investmentZeroColumn?: InvestmentZeroColumn;
53
+ /** @title Остальные элементы данных */
54
+ investmentColumns?: InvestmentColumn[];
55
+ };
@@ -1,56 +1,3 @@
1
1
  {
2
- "title": "Другие продукты",
3
- "blockItems": [
4
- {
5
- "label": "Другие продукты 1",
6
- "blocks": [
7
- {
8
- "blockListType": "TextBlock",
9
- "title": "Текстовый блок",
10
- "description": "Описание текстового блока",
11
- "style": ["col-span-12"]
12
- },
13
- {
14
- "blockListType": "TextBlock",
15
- "title": "Текстовый блок №2",
16
- "description": "Описание текстового блока №2",
17
- "style": ["col-span-12"]
18
- }
19
- ]
20
- },
21
- {
22
- "label": "Другие продукты 2",
23
- "blocks": [
24
- {
25
- "blockListType": "TextBlock",
26
- "title": "Текстовый блок",
27
- "description": "Описание текстового блока",
28
- "style": ["col-span-12"]
29
- },
30
- {
31
- "blockListType": "TextBlock",
32
- "title": "Текстовый блок №2",
33
- "description": "Описание текстового блока №2",
34
- "style": ["col-span-12"]
35
- }
36
- ]
37
- },
38
- {
39
- "label": "Другие продукты 3",
40
- "blocks": [
41
- {
42
- "blockListType": "TextBlock",
43
- "title": "Текстовый блок",
44
- "description": "Описание текстового блока",
45
- "style": ["col-span-12"]
46
- },
47
- {
48
- "blockListType": "TextBlock",
49
- "title": "Текстовый блок №2",
50
- "description": "Описание текстового блока №2",
51
- "style": ["col-span-12"]
52
- }
53
- ]
54
- }
55
- ]
2
+ "title": "Другие продукты"
56
3
  }
@@ -1,156 +1,107 @@
1
1
  import { context } from '../../react/setup-fixture';
2
+ import { Gallery } from '../Gallery/Gallery';
2
3
  import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
4
+ import { Headline } from '../Headline/Headline';
3
5
  import { HEADLINE } from '../Headline/Headline.fixture';
6
+ import { LinkDocs } from '../LinkDocs/LinkDocs';
4
7
  import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
8
+ import { MiniGallery } from '../MiniGallery/MiniGallery';
5
9
  import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
10
+ import { OtherProductsItem } from '../OtherProductsItem/OtherProductsItem';
11
+ import { PictureText } from '../PictureText/PictureText';
6
12
  import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
13
+ import { ProductBlock } from '../ProductBlock/ProductBlock';
7
14
  import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
15
+ import { ProductTile } from '../ProductTile/ProductTile';
8
16
  import { PRODUCT_PENSION_TILE, PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
17
+ import { TextBlock } from '../TextBlock/TextBlock';
9
18
  import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
19
+ import { Tile } from '../Tile/Tile';
10
20
  import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
11
- import type { OtherProductsProps } from './OtherProducts';
12
21
  import { OtherProducts } from './OtherProducts';
13
22
 
14
- import type {
15
- GalleryBlockListDef,
16
- HeadlineBlockListDef,
17
- LinkDocsBlockListDef,
18
- MiniGalleryBlockListDef,
19
- PictureTextBlockListDef,
20
- ProductBlockBlockListDef,
21
- ProductTileBlockListDef,
22
- TextBlockBlockListDef,
23
- TileBlockListDef,
24
- } from '../../ui-kit/BlocksList/BlocksListProps';
23
+ const TEXT_BLOCK_OTHER_BLOCK = (
24
+ <TextBlock context={context} className="col-span-12" {...TEXT_BLOCK} />
25
+ );
25
26
 
26
- const TEXT_BLOCK_OTHER_BLOCK: TextBlockBlockListDef = {
27
- blockListType: 'TextBlock',
28
- style: ['col-span-12'],
29
- ...TEXT_BLOCK,
30
- };
27
+ const PRODUCT_BLOCK_OTHER_BLOCK = (
28
+ <ProductBlock context={context} className="col-span-6" {...PRODUCT_BLOCK} />
29
+ );
31
30
 
32
- const PRODUCT_BLOCK_OTHER_BLOCK: ProductBlockBlockListDef = {
33
- blockListType: 'ProductBlock',
34
- style: ['col-span-6'],
35
- ...PRODUCT_BLOCK,
36
- };
31
+ const TILES_OTHER_BLOCK = <Tile context={context} className="col-span-12" {...TILE} />;
37
32
 
38
- const TILES_OTHER_BLOCK: TileBlockListDef = {
39
- blockListType: 'Tile',
40
- style: ['col-span-12'],
41
- ...TILE,
42
- };
33
+ const TILES_PREMIUM_OTHER_BLOCK = (
34
+ <Tile context={context} className="col-span-6" {...TILE_PREMIUM} />
35
+ );
43
36
 
44
- const TILES_PREMIUM_OTHER_BLOCK: TileBlockListDef = {
45
- blockListType: 'Tile',
46
- style: ['col-span-6'],
47
- ...TILE_PREMIUM,
48
- };
37
+ const PRODUCT_TILES_OTHER_BLOCK = (
38
+ <ProductTile context={context} className="col-span-6" {...PRODUCT_TILE} />
39
+ );
49
40
 
50
- const PRODUCT_TILES_OTHER_BLOCK: ProductTileBlockListDef = {
51
- blockListType: 'ProductTile',
52
- style: ['col-span-6'],
53
- ...PRODUCT_TILE,
54
- };
41
+ const PRODUCT_PENSION_TILES_OTHER_BLOCK = (
42
+ <ProductTile context={context} className="col-span-6" {...PRODUCT_PENSION_TILE} />
43
+ );
55
44
 
56
- const PRODUCT_PENSION_TILES_OTHER_BLOCK: ProductTileBlockListDef = {
57
- blockListType: 'ProductTile',
58
- style: ['col-span-6'],
59
- ...PRODUCT_PENSION_TILE,
60
- };
45
+ const HEADLINE_OTHER_BLOCK = <Headline context={context} className="col-span-12" {...HEADLINE} />;
61
46
 
62
- const HEADLINE_OTHER_BLOCK: HeadlineBlockListDef = {
63
- blockListType: 'Headline',
64
- style: ['col-span-12'],
65
- ...HEADLINE,
66
- };
47
+ const PICTURE_TEXT_OTHER_BLOCK = (
48
+ <PictureText context={context} className="col-span-12" {...PICTURE_TEXT} />
49
+ );
67
50
 
68
- const PICTURE_TEXT_OTHER_BLOCK: PictureTextBlockListDef = {
69
- blockListType: 'PictureText',
70
- style: ['col-span-12'],
71
- ...PICTURE_TEXT,
72
- };
73
-
74
- const LINK_DOCS_OTHER_BLOCK: LinkDocsBlockListDef = {
75
- blockListType: 'LinkDocs',
76
- style: ['col-span-12'],
77
- ...linkDocsContentExample,
78
- };
51
+ const LINK_DOCS_OTHER_BLOCK = (
52
+ <LinkDocs context={context} className="col-span-12" {...linkDocsContentExample} />
53
+ );
79
54
 
80
- const GALLERY_OTHER_BLOCK: GalleryBlockListDef = {
81
- blockListType: 'Gallery',
82
- style: ['col-span-12'],
83
- ...GALLERY,
84
- };
55
+ const GALLERY_OTHER_BLOCK = <Gallery className="col-span-12" {...GALLERY} />;
85
56
 
86
- const MINI_GALLERY_OTHER_BLOCK: MiniGalleryBlockListDef = {
87
- blockListType: 'MiniGallery',
88
- style: ['col-span-12'],
89
- ...MINI_GALLERY,
90
- };
57
+ const MINI_GALLERY_OTHER_BLOCK = <MiniGallery className="col-span-12" {...MINI_GALLERY} />;
91
58
 
92
- const propsBlock: OtherProductsProps = {
93
- context,
94
- colorPalette: 'pc',
95
- blockItems: [
96
- {
97
- label: 'OtherProducts №1 Tiles',
98
- blocks: [
99
- TILES_PREMIUM_OTHER_BLOCK,
100
- TILES_PREMIUM_OTHER_BLOCK,
101
- TILES_OTHER_BLOCK,
102
- TILES_OTHER_BLOCK,
103
- ],
104
- },
105
- {
106
- label: 'OtherProducts №2 Product_Tiles',
107
- blocks: [
108
- PRODUCT_TILES_OTHER_BLOCK,
109
- PRODUCT_TILES_OTHER_BLOCK,
110
- PRODUCT_PENSION_TILES_OTHER_BLOCK,
111
- PRODUCT_PENSION_TILES_OTHER_BLOCK,
112
- ],
113
- },
114
- {
115
- label: 'OtherProducts №3 Product_Block',
116
- blocks: [PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK],
117
- },
118
- {
119
- label: 'OtherProducts №4 Text_Block',
120
- blocks: [
121
- TEXT_BLOCK_OTHER_BLOCK,
122
- TEXT_BLOCK_OTHER_BLOCK,
123
- TEXT_BLOCK_OTHER_BLOCK,
124
- TEXT_BLOCK_OTHER_BLOCK,
125
- ],
126
- },
127
- {
128
- label: 'OtherProducts №5 Picture_Text',
129
- blocks: [PICTURE_TEXT_OTHER_BLOCK],
130
- },
131
- {
132
- label: 'OtherProducts №6 Headline',
133
- blocks: [HEADLINE_OTHER_BLOCK],
134
- },
135
- {
136
- label: 'OtherProducts №7 Link_Docs',
137
- blocks: [LINK_DOCS_OTHER_BLOCK],
138
- },
139
- {
140
- label: 'OtherProducts №8 Gallery',
141
- blocks: [GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK],
142
- },
143
- {
144
- label: 'OtherProducts №9 Mini_Gallery',
145
- blocks: [MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK],
146
- },
147
- ],
148
- };
59
+ export const OTHER_PRODUCTS_ITEM = (
60
+ <OtherProductsItem context={context} label="OtherProducts №1 Tiles">
61
+ {[TILES_PREMIUM_OTHER_BLOCK, TILES_PREMIUM_OTHER_BLOCK, TILES_OTHER_BLOCK, TILES_OTHER_BLOCK]}
62
+ </OtherProductsItem>
63
+ );
149
64
 
150
65
  export default {
151
66
  default: (
152
67
  <div className="container grid grid-cols-12">
153
- <OtherProducts className="col-span-12" {...propsBlock} />
68
+ <OtherProducts context={context} className="col-span-12">
69
+ {OTHER_PRODUCTS_ITEM}
70
+ <OtherProductsItem context={context} label="OtherProducts №2 Product_Tiles">
71
+ {[
72
+ PRODUCT_TILES_OTHER_BLOCK,
73
+ PRODUCT_TILES_OTHER_BLOCK,
74
+ PRODUCT_PENSION_TILES_OTHER_BLOCK,
75
+ PRODUCT_PENSION_TILES_OTHER_BLOCK,
76
+ ]}
77
+ </OtherProductsItem>
78
+ <OtherProductsItem context={context} label="OtherProducts №3 Product_Block">
79
+ {[PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK]}
80
+ </OtherProductsItem>
81
+ <OtherProductsItem context={context} label="OtherProducts №4 Text_Block">
82
+ {[
83
+ TEXT_BLOCK_OTHER_BLOCK,
84
+ TEXT_BLOCK_OTHER_BLOCK,
85
+ TEXT_BLOCK_OTHER_BLOCK,
86
+ TEXT_BLOCK_OTHER_BLOCK,
87
+ ]}
88
+ </OtherProductsItem>
89
+ <OtherProductsItem context={context} label="OtherProducts №5 Picture_Text">
90
+ {[PICTURE_TEXT_OTHER_BLOCK]}
91
+ </OtherProductsItem>
92
+ <OtherProductsItem context={context} label="OtherProducts №6 Headline">
93
+ {[HEADLINE_OTHER_BLOCK]}
94
+ </OtherProductsItem>
95
+ <OtherProductsItem context={context} label="OtherProducts №7 Link_Docs">
96
+ {[LINK_DOCS_OTHER_BLOCK]}
97
+ </OtherProductsItem>
98
+ <OtherProductsItem context={context} label="OtherProducts №8 Gallery">
99
+ {[GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK]}
100
+ </OtherProductsItem>
101
+ <OtherProductsItem context={context} label="OtherProducts №9 Mini_Gallery">
102
+ {[MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK]}
103
+ </OtherProductsItem>
104
+ </OtherProducts>
154
105
  </div>
155
106
  ),
156
107
  };
@@ -1,32 +1,21 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { JSXBlock } from '../../model/BlocksRegistry';
2
3
  import type { UniBlockProps } from '../../model/ContentPageDef';
3
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
5
  import type { OtherProductsContent } from './OtherProductsContent';
5
- import { OtherProductsItem } from './OtherProductsItem';
6
6
 
7
7
  export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
8
8
 
9
9
  export const OtherProducts = JSX<OtherProductsProps>(
10
- ({ blockItems, colorPalette, context, className = '', ...rest }) => {
11
- return (
12
- <BlockWrapper
13
- context={context}
14
- className={`font-sans text-primary-text ${className}`}
15
- {...rest}
16
- >
17
- {blockItems?.length ? (
18
- <div className="box-border1">
19
- {blockItems.map((item, i) => (
20
- <OtherProductsItem
21
- key={`BlockItem${i}`}
22
- {...item}
23
- dataTheme={colorPalette}
24
- context={context}
25
- />
26
- ))}
27
- </div>
28
- ) : null}
29
- </BlockWrapper>
30
- );
31
- },
32
- );
10
+ ({ context, className = '', children, ...rest }) => (
11
+ <BlockWrapper
12
+ context={context}
13
+ className={`font-sans text-primary-text ${className}`}
14
+ {...rest}
15
+ >
16
+ {children ? <div className="box-border1">{children}</div> : null}
17
+ </BlockWrapper>
18
+ ),
19
+ ) as JSXBlock<OtherProductsProps>;
20
+
21
+ OtherProducts.childrenTypes = ['OtherProductsItem'];