@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
@@ -1,10 +1,8 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.filterBlocks = void 0;
3
- const isBlockInRegistry_1 = require("./isBlockInRegistry");
4
3
  const normalizeBlock_1 = require("./normalizeBlock");
5
4
  const filterBlocks = (blocks, blocksRegistry) => blocks
6
- ?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block?.type || block?.mobile?.type, blocksRegistry) &&
7
- !block.mobile?.hidden)
5
+ ?.filter((block) => (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden)
8
6
  .map(normalizeBlock_1.normalizeBlock);
9
7
  exports.filterBlocks = filterBlocks;
10
8
  //# sourceMappingURL=filterBlocks.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filterBlocks.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.mobile.ts"],"names":[],"mappings":";;AAEA,2DAAwD;AACxD,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,IAAA,qCAAiB,EAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC;IACrE,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxB;KACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AAPZ,QAAA,YAAY,gBAOA"}
1
+ {"version":3,"file":"filterBlocks.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.mobile.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxF;KACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AANZ,QAAA,YAAY,gBAMA"}
@@ -3,24 +3,25 @@ exports.renderBlock = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const BlockDecorator_1 = require("../../model/BlockDecorator");
5
5
  const style2className_1 = require("../../utils/style2className");
6
- function renderBlock(block, options, ancestors = [BlockDecorator_1.DEFAULT_SLOT_NAME]) {
6
+ const defaultChildRenderer = (_) => _;
7
+ function renderBlock(block, options, ancestors = BlockDecorator_1.DEFAULT_ANCESTORS) {
7
8
  const { key, page, blockDecorator, blocksRegistry, context } = options;
8
- const { type } = block;
9
+ const { type, blocks: childBlocks } = block;
9
10
  if (!(type && type in blocksRegistry)) {
10
11
  console.warn(`No block with "${type}" is registered`);
11
12
  }
12
13
  const BlockComponent = type && blocksRegistry[type];
14
+ const { renderChild = defaultChildRenderer } = BlockComponent || {};
15
+ const renderChildBlock = (_, j) => renderChild(renderBlock(_, { ...options, key: `${options.key}-${j}` }, [...ancestors, block]), j);
16
+ const children = childBlocks?.length ? childBlocks.map(renderChildBlock) : null;
13
17
  return blockDecorator({
14
18
  blockClassName: `scroll-mt-12 ${(0, style2className_1.style2className)(block.style)}`,
15
19
  block,
16
20
  ancestors,
17
21
  // Adjusted by decorator block and blockClassName
18
22
  render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
19
- const { version, content, anchor, labels, blocks: childBlocks } = adjustedBlock;
20
- const children = childBlocks
21
- ? childBlocks.map((_, j) => renderBlock(_, { ...options, key: `${options.key}-${j}` }, [...ancestors, block]))
22
- : null;
23
- return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, version: version, context: context, page: page, anchor: anchor, labels: labels, ...content, children: children }, key)) : null;
23
+ const { version, anchor, labels, content } = adjustedBlock;
24
+ return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, context: context, page: page, version: version, anchor: anchor, labels: labels, ...content, children: children }, key)) : null;
24
25
  },
25
26
  }, key);
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../../src/components/ContentPage/renderBlock.tsx"],"names":[],"mappings":";;;AAAA,+DAA+F;AAG/F,iEAA8D;AAW9D,SAAgB,WAAW,CACzB,KAAe,EACf,OAA2B,EAC3B,YAA4B,CAAC,kCAAiB,CAAC;IAE/C,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IACvE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAEpD,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,gBAAgB,IAAA,iCAAe,EAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAC9D,KAAK;QACL,SAAS;QACT,iDAAiD;QACjD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa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AClB,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;KACF,EACD,GAAG,CACJ,CAAC;AACJ,CAAC;AAjDD,kCAiDC"}
@@ -2,22 +2,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Footer = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Accordion_1 = require("../Accordion/Accordion");
5
+ const useSitemap_1 = require("../../services/sitemap/useSitemap");
6
+ const Button_1 = require("../../ui-kit/Button/Button");
7
+ const Img_1 = require("../../ui-kit/Img/Img");
8
+ const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
9
+ const AccordionItem_1 = require("../Accordion/AccordionItem");
10
+ const AccordionItemsList_1 = require("../Accordion/AccordionItemsList");
11
+ const LinkList_1 = require("../LinkList/LinkList");
6
12
  const MobileAppTile_1 = require("../MobileAppTile/MobileAppTile");
7
13
  const Contacts_1 = require("./Contacts");
8
14
  const HorizontalNavigation_1 = require("./HorizontalNavigation");
9
15
  const SocialMedia_1 = require("./SocialMedia");
10
16
  const TextInformation_1 = require("./TextInformation");
11
- const useSitemap_1 = require("../../services/sitemap/useSitemap");
12
- const Button_1 = require("../../ui-kit/Button/Button");
13
- const Img_1 = require("../../ui-kit/Img/Img");
14
- const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
15
- const getAccordionItems_1 = require("../../utils/getAccordionItems");
16
17
  exports.Footer = (0, uni_jsx_1.JSX)(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, page, }) => {
17
18
  const fallback = page?.fallback;
18
19
  const sitemap = (0, useSitemap_1.useSitemap)(fallback);
19
20
  const dispositions = sitemap?.dispositions;
20
- return ((0, jsx_runtime_1.jsxs)("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), (0, jsx_runtime_1.jsx)(Accordion_1.Accordion, { context: context, className: "!p-0 mb-4", accordionItems: (0, getAccordionItems_1.getAccordionItems)(sitemap.topItems) }), (0, jsx_runtime_1.jsx)("div", { children: dispositions?.map(renderSubMenuItem) }), (0, jsx_runtime_1.jsx)(MobileAppTile_1.MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { context: context, className: "grow" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pb-4", media: socialMedia, context: context }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, context: context })] }));
21
+ return ((0, jsx_runtime_1.jsxs)("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: sitemap.topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { context: context, documents: item.items }) }, String(i)))) }), (0, jsx_runtime_1.jsx)("div", { children: dispositions?.map(renderSubMenuItem) }), (0, jsx_runtime_1.jsx)(MobileAppTile_1.MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { context: context, className: "grow" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pb-4", media: socialMedia, context: context }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, context: context })] }));
21
22
  });
22
23
  const renderSubMenuItem = (menu, i) => {
23
24
  const { icon, href, text } = menu;
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sDAAmD;AACnD,kEAA+D;AAC/D,yCAAsC;AAEtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,kEAA+D;AAE/D,uDAAoD;AACpD,8CAA2C;AAC3C,gEAA6D;AAC7D,qEAAkE;AAIrD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,yBAAyB,EACzB,IAAI,GACL,EAAE,EAAE;IACH,MAAM,QAAQ,GAAyB,IAAI,EAAE,QAAQ,CAAC;IACtD,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,CAAC;IAE3C,OAAO,CACL,oCAAQ,SAAS,EAAE,qCAAqC,SAAS,EAAE,aACjE,uBAAC,mBAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,SAAG,EACrF,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,WAAW,EACrB,cAAc,EAAE,IAA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AE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,EAChD,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EACtE,uBAAC,2CAAoB,IACnB,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,OAAO,GAChB,EACF,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,IAAiB,EAAE,CAAS,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAElC,OAAO,CACL,wBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,sBAAsB,aACpF,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,iCAAM,SAAS,EAAC,sCAAsC,YAAE,IAAI,GAAQ,KAF1C,UAAU,CAAC,EAAE,CAGhC,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -9,16 +9,16 @@ const isTopItemActive_1 = require("../../services/sitemap/isTopItemActive");
9
9
  const mergeTopItems_1 = require("../../services/sitemap/mergeTopItems");
10
10
  const useSitemap_1 = require("../../services/sitemap/useSitemap");
11
11
  const HeaderItem_1 = require("../../ui-kit/HeaderItem/HeaderItem");
12
- const getAccordionItems_1 = require("../../utils/getAccordionItems");
13
- const Accordion_1 = require("../Accordion/Accordion");
12
+ const AccordionItem_1 = require("../Accordion/AccordionItem");
13
+ const AccordionItemsList_1 = require("../Accordion/AccordionItemsList");
14
+ const LinkList_1 = require("../LinkList/LinkList");
14
15
  const HeaderBurger_1 = require("./HeaderBurger");
15
16
  const HeaderTop_1 = require("./HeaderTop");
16
17
  exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, page }) => {
18
+ const { handlerDecorator } = context;
17
19
  const router = context.useRouter();
18
20
  const fallback = page?.fallback;
19
21
  const sitemap = (0, useSitemap_1.useSitemap)(fallback);
20
- const dispositions = sitemap?.dispositions;
21
- const { handlerDecorator } = context;
22
22
  const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, topItems);
23
23
  const activeTopItem = mergedItems.find((0, isTopItemActive_1.isTopItemActive)(router));
24
24
  const subItems = activeTopItem?.items;
@@ -29,7 +29,7 @@ exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation, bgColor
29
29
  ...(0, useLink_1.useLink)({ router, handlerDecorator }, _),
30
30
  active: _ === activeSubItem,
31
31
  bgColor,
32
- }, i)) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(Accordion_1.Accordion, { context: context, accordionItems: (0, getAccordionItems_1.getAccordionItems)(sitemap.topItems), className: "!p-0 mb-4" }) })) : null] }));
32
+ }, i)) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: sitemap?.dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: sitemap.topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { context: context, documents: item.items }) }, String(i)))) }) })) : null] }));
33
33
  });
34
34
  const renderSubItem = (item, i) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8 whitespace-nowrap text-s", ...item }, String(i)));
35
35
  //# sourceMappingURL=Header.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,iDAA8C;AAE9C,gFAA6E;AAC7E,4EAAyE;AACzE,wEAAqE;AACrE,kEAA+D;AAE/D,mEAAgE;AAEhE,qEAAkE;AAClE,sDAAmD;AACnD,iDAA8C;AAE9C,2CAAwC;AAI3B,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAyB,IAAI,EAAE,QAAQ,CAAC;IACtD,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,CAAC;IAC3C,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,aAAa,EAAE,KAAK,CAAC;IACtC,MAAM,aAAa,GAAG,IAAA,qCAAiB,EAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAC;IAElE,OAAO,CACL,oCAAQ,SAAS,EAAE,GAAG,OAAO,IAAI,SAAS,EAAE,aAC1C,iCAAK,SAAS,EAAC,gCAAgC,aAC7C,uBAAC,qBAAS,IAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAI,EAC1D,gCAAK,SAAS,EAAC,6DAA6D,YAC1E,gCAAK,SAAS,EAAC,uDAAuD,YACnE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACtB,aAAa,CACX;gCACE,GAAG,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;gCAC3C,MAAM,EAAE,CAAC,KAAK,aAAa;gCAC3B,OAAO;6BACR,EACD,CAAC,CACF,CACF,GACG,GACF,IACF,EACL,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,eAAe,YAEhC,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,IAAA,qCAAiB,EAAC,OAAO,CAAC,QAAQ,CAAC,EACnD,SAAS,EAAC,WAAW,GACrB,GACW,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,CAAS,EAAE,EAAE,CAAC,CACvD,uBAAC,uBAAU,IAAiB,SAAS,EAAC,+BAA+B,KAAK,IAAI,IAA7D,MAAM,CAAC,CAAC,CAAC,CAAwD,CACnF,CAAC"}
1
+ {"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAw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I,EAC1D,gCAAK,SAAS,EAAC,6DAA6D,YAC1E,gCAAK,SAAS,EAAC,uDAAuD,YACnE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACtB,aAAa,CACX;gCACE,GAAG,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;gCAC3C,MAAM,EAAE,CAAC,KAAK,aAAa;gCAC3B,OAAO;6BACR,EACD,CAAC,CACF,CACF,GACG,GACF,IACF,EACL,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,OAAO,EAAE,YAAY,EACpC,eAAe,EAAE,eAAe,YAEhC,uBAAC,uCAAkB,cAChB,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,uBAAC,6BAAa,IAAiB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,YAC/D,uBAAC,mBAAQ,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,GAAI,IADnC,MAAM,CAAC,CAAC,CAAC,CAEb,CACjB,CAAC,GACiB,GACR,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,CAAS,EAAE,EAAE,CAAC,CACvD,uBAAC,uBAAU,IAAiB,SAAS,EAAC,+BAA+B,KAAK,IAAI,IAA7D,MAAM,CAAC,CAAC,CAAC,CAAwD,CACnF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/ContentPageDef';
2
+ import type { InvestmentInfoContent } from './InvestmentInfoContent';
3
+ export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {
4
+ }
5
+ export declare const InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<InvestmentInfoProps, any, any>;
@@ -0,0 +1,49 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.InvestmentInfo = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const List_1 = require("../../ui-kit/List/List");
7
+ const joinList_1 = require("../../utils/joinList");
8
+ const investmentCellColorMap = {
9
+ yellow: 'bg-yellow',
10
+ green: 'bg-green',
11
+ 'green-light': 'bg-green-light',
12
+ 'green-dark': 'bg-green-dark',
13
+ };
14
+ const investmentCellSizeMap = {
15
+ XS: 'h-[40px]',
16
+ S: 'h-[68px]',
17
+ M: 'h-[102px]',
18
+ L: 'h-[136px]',
19
+ XL: 'h-[204px]',
20
+ };
21
+ exports.InvestmentInfo = (0, uni_jsx_1.JSX)((props) => {
22
+ const { context, className = '', items, isDotted, investmentZeroColumn, investmentColumns, ...rest } = props;
23
+ const colums = investmentColumns ? [...investmentColumns] : [];
24
+ if (investmentZeroColumn) {
25
+ colums.unshift(investmentZeroColumn);
26
+ }
27
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-9 pb-9 ${className}`, context: context, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container text-m-light", children: [colums?.length ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-end px-9 text-white", children: [(0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: "w-px h-4 bg-main-stroke" }))(colums.map(renderInvestmentColumn)), (0, jsx_runtime_1.jsx)("div", { className: "w-px h-4 bg-main-stroke" })] }), (0, jsx_runtime_1.jsx)("div", { className: "border-t border-main-stroke -mt-2 mx-9" }), (0, jsx_runtime_1.jsx)("div", { className: "flex justify-between mt-3 -mx-10", children: colums.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-9 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }) }));
28
+ });
29
+ const renderInvestmentColumn = (column, i, arr) => {
30
+ const isSecondColumn = i === 1;
31
+ const isLastColumn = i === arr.length - 1;
32
+ return ((0, jsx_runtime_1.jsx)("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-1' : ''}`, children: column.cells.map(renderInvestmentCell) })) : null }, `column_${i}`));
33
+ };
34
+ const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
35
+ cells.length ? 'flex-1' : 'flex-0',
36
+ cells.length && !isSecondColumn && !isLastColumn ? 'pl-2.5' : '',
37
+ cells.length && !isLastColumn ? 'pr-2.5 pb-8' : 'pb-6',
38
+ ].join(' ');
39
+ const renderInvestmentCell = (cell, i) => {
40
+ const cellSize = cell.cellSize || 'XS';
41
+ const cellColor = cell.cellColor || 'green';
42
+ return cell.text ? ((0, jsx_runtime_1.jsx)("div", { className: `flex-1 flex items-center justify-center relative py-2 ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-3' : 'px-11'}`, children: (0, jsx_runtime_1.jsx)("div", { className: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
43
+ };
44
+ const renderInvestmentColumnTitle = (column, i, arr) => {
45
+ const isFirstColumn = i === 0;
46
+ const isLastColumn = i === arr.length - 1;
47
+ return ((0, jsx_runtime_1.jsx)("div", { className: `flex-1 max-w-[180px] text-center px-2 ${isFirstColumn ? 'pl-9' : ''} ${isLastColumn ? 'pr-9' : ' '}`, children: column.title }, `title_${i}`));
48
+ };
49
+ //# sourceMappingURL=InvestmentInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Investment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@title Цвет
4
+ * @enumNames ["Желтый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
5
+ */
6
+ export declare type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
7
+ /**
8
+ * @title Высота
9
+ * @enumNames ["Очень большой", "Большой", "Средний", "Маленький", "Очень маленький"]
10
+ */
11
+ export declare type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
12
+ /**
13
+ * @title Ячейка
14
+ */
15
+ export declare type InvestmentCell = {
16
+ /** @title Текст */
17
+ text?: string;
18
+ cellColor?: InvestmentCellColor;
19
+ cellSize?: InvestmentCellSize;
20
+ };
21
+ /**
22
+ * @title Элемент данных 1
23
+ */
24
+ export declare type InvestmentZeroColumn = {
25
+ /** @title Название */
26
+ title?: string;
27
+ /** @hidden */
28
+ cells?: InvestmentCell[];
29
+ };
30
+ /**
31
+ * @title Элемент данных
32
+ */
33
+ export declare type InvestmentColumn = {
34
+ /** @title Название */
35
+ title?: string;
36
+ /** @title Ячейки */
37
+ cells?: InvestmentCell[];
38
+ };
39
+ /**
40
+ * @title Блок инвестиций
41
+ */
42
+ export declare type InvestmentInfoContent = ListContent & {
43
+ /** @title Буллиты */
44
+ isDotted?: boolean;
45
+ /** @title Элемент данных 1 */
46
+ investmentZeroColumn?: InvestmentZeroColumn;
47
+ /** @title Остальные элементы данных */
48
+ investmentColumns?: InvestmentColumn[];
49
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=InvestmentInfoContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvestmentInfoContent.js","sourceRoot":"","sources":["../../../src/components/InvestmentInfo/InvestmentInfoContent.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
+ import type { JSXBlock } from '../../model/BlocksRegistry';
1
2
  import type { UniBlockProps } from '../../model/ContentPageDef';
2
3
  import type { OtherProductsContent } from './OtherProductsContent';
3
4
  export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {
4
5
  }
5
- export declare const OtherProducts: import("@redneckz/uni-jsx").UNIComponent<OtherProductsProps, any, any>;
6
+ export declare const OtherProducts: JSXBlock<OtherProductsProps>;
@@ -3,8 +3,6 @@ exports.OtherProducts = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const OtherProductsItem_1 = require("./OtherProductsItem");
7
- exports.OtherProducts = (0, uni_jsx_1.JSX)(({ blockItems, colorPalette, context, className = '', ...rest }) => {
8
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `font-sans text-primary-text ${className}`, ...rest, children: blockItems?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "box-border1", children: blockItems.map((item, i) => ((0, jsx_runtime_1.jsx)(OtherProductsItem_1.OtherProductsItem, { ...item, dataTheme: colorPalette, context: context }, `BlockItem${i}`))) })) : null }));
9
- });
6
+ exports.OtherProducts = (0, uni_jsx_1.JSX)(({ context, className = '', children, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `font-sans text-primary-text ${className}`, ...rest, children: children ? (0, jsx_runtime_1.jsx)("div", { className: "box-border1", children: children }) : null })));
7
+ exports.OtherProducts.childrenTypes = ['OtherProductsItem'];
10
8
  //# sourceMappingURL=OtherProducts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OtherProducts.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProducts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AAEzD,2DAAwD;AAI3C,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,OAAO,CACL,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,+BAA+B,SAAS,EAAE,KACjD,IAAI,YAEP,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,gCAAK,SAAS,EAAC,aAAa,YACzB,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3B,uBAAC,qCAAiB,OAEZ,IAAI,EACR,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,IAHX,YAAY,CAAC,EAAE,CAIpB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"OtherProducts.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProducts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AAK5C,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAClD,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,+BAA+B,SAAS,EAAE,KACjD,IAAI,YAEP,QAAQ,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,aAAa,YAAE,QAAQ,GAAO,CAAC,CAAC,CAAC,IAAI,GACnD,CAChB,CAC8B,CAAC;AAElC,qBAAa,CAAC,aAAa,GAAG,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,25 +1,5 @@
1
- import type { ColorPalette } from '../../model/ContentPageDef';
2
1
  import type { TitleProps } from '../../model/HeadlineType';
3
- import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
4
- /**
5
- * @title Элемент списка
6
- */
7
- export interface BlockItemCommonProps {
8
- /**
9
- * @title Название
10
- * @default Список
11
- */
12
- label?: string;
13
- /** @title Отображать в раскрытом виде */
14
- isUnfolded?: boolean;
15
- /** @title Блоки */
16
- blocks?: BlockDef[];
17
- }
18
2
  /**
19
3
  * @title Другие продукты
20
4
  */
21
- export declare type OtherProductsContent = TitleProps & {
22
- /** @title Список */
23
- blockItems?: BlockItemCommonProps[];
24
- colorPalette?: ColorPalette;
25
- };
5
+ export declare type OtherProductsContent = TitleProps;
@@ -0,0 +1,6 @@
1
+ import { JSXBlock } from '../../model/BlocksRegistry';
2
+ import type { UniBlockProps } from '../../model/ContentPageDef';
3
+ import type { OtherProductsItemContent } from './OtherProductsItemContent';
4
+ export interface OtherProductsItemProps extends OtherProductsItemContent, UniBlockProps {
5
+ }
6
+ export declare const OtherProductsItem: JSXBlock<OtherProductsItemProps>;
@@ -0,0 +1,11 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.OtherProductsItem = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
6
+ const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
7
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
8
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
9
+ exports.OtherProductsItem = (0, uni_jsx_1.JSX)(({ className, label = '', colorPalette, isUnfolded: unfoldedByDefault, children }) => ((0, jsx_runtime_1.jsx)("div", { className: `border-0 border-b border-solid border-main-divider ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)("div", { className: "box-border", children: (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: children }) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: colorPalette, onClick: onToggle })) }) })));
10
+ exports.OtherProductsItem.childrenTypes = []; // All types of blocks are suitable
11
+ //# sourceMappingURL=OtherProductsItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProductsItem/OtherProductsItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AAMxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE9C,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpF,gCAAK,SAAS,EAAE,sDAAsD,SAAS,EAAE,YAC/E,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,iCAAe,IAAC,SAAS,EAAC,oCAAoC,EAAC,UAAU,EAAE,UAAU,YACnF,QAAQ,GACO,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACE,CACP,CACkC,CAAC;AAEtC,yBAAiB,CAAC,aAAa,GAAG,EAAE,CAAC,CAAC,mCAAmC"}
@@ -0,0 +1,14 @@
1
+ import type { ColorPalette } from '../../model/ContentPageDef';
2
+ /**
3
+ * @title Элемент списка
4
+ */
5
+ export interface OtherProductsItemContent {
6
+ /**
7
+ * @title Название
8
+ * @default Список
9
+ */
10
+ label?: string;
11
+ /** @title Отображать в раскрытом виде */
12
+ isUnfolded?: boolean;
13
+ colorPalette?: ColorPalette;
14
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=OtherProductsItemContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OtherProductsItemContent.js","sourceRoot":"","sources":["../../../src/components/OtherProductsItem/OtherProductsItemContent.ts"],"names":[],"mappings":""}
@@ -9,8 +9,8 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
9
9
  const Img_1 = require("../../ui-kit/Img/Img");
10
10
  const checkIsIconRenderable_1 = require("../../utils/checkIsIconRenderable");
11
11
  const joinList_1 = require("../../utils/joinList");
12
- const renderItems_1 = require("./renderItems");
13
12
  const StepsBlockStyleMaps_1 = require("./StepsBlockStyleMaps");
13
+ const renderStepContent_1 = require("./renderStepContent");
14
14
  const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
15
15
  const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
16
16
  exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, steps = [], button, version = 'primary', context, ...rest }) => {
@@ -29,7 +29,7 @@ exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, ste
29
29
  styleMap.background,
30
30
  styleMap.title,
31
31
  className,
32
- ].join(' '), context: context, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: `box-border ${titleMargin}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex items-center ${paddingX}`, children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap))) }), (0, jsx_runtime_1.jsx)("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle({
32
+ ].join(' '), context: context, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: `box-border ${titleMargin}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex items-center ${paddingX}`, children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap))) }), (0, jsx_runtime_1.jsx)("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map((0, renderStepContent_1.renderStepContent)({
33
33
  styleMap,
34
34
  isMainButton: Boolean(button?.text),
35
35
  version,
@@ -41,10 +41,4 @@ const renderStepIcon = (styleMap) => ({ icon }, i) => {
41
41
  return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col items-center text-center", children: (0, jsx_runtime_1.jsx)("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
42
42
  ${styleMap.iconBackground} ${styleMap.title}`, children: (0, checkIsIconRenderable_1.checkIsIconRenderable)(icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: "48", height: "48", asSVG: true })) : ((0, jsx_runtime_1.jsx)("span", { className: `text-h4 ${styleMap.iconText}`, children: i + 1 })) }) }, String(i)));
43
43
  };
44
- const renderStepTitle = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i, { length }) => {
45
- const additionalMarginClass = step?.label ? 'mt-2' : 'mt-4';
46
- const widthContainer = length < 5 ? 'w-[276px]' : 'w-[210px]';
47
- return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col items-center text-center relative
48
- whitespace-pre-line overflow-hidden ${widthContainer}`, children: [step?.label ? (0, jsx_runtime_1.jsx)("div", { className: "text-xl m-0 mt-4", children: step.label }) : null, step?.description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-l-light ${styleMap.description} ${additionalMarginClass}`, children: step.description })) : null, (0, renderItems_1.renderItems)(step?.items, styleMap, step?.isDotted), step.button?.text && !isMainButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", ...(0, useLink_1.useLink)({ router, handlerDecorator }, step.button), version: version, children: step.button.text })) : null] }, String(i)));
49
- };
50
44
  //# sourceMappingURL=StepsBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,4DAAyD;AACzD,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,6EAA0E;AAC1E,mDAAgD;AAEhD,+CAA4C;AAG5C,+DAA+D;AAI/D,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAElE,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,IAAI,EAChB,KAAK,GAAG,EAAE,EACV,MAAM,EACN,OAAO,GAAG,SAAS,EACnB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAA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,CAC7B,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAClD,CAAC,CAAC,CAAC,CACF,iCAAM,SAAS,EAAE,WAAW,QAAQ,CAAC,QAAQ,EAAE,YAAG,CAAC,GAAG,CAAC,GAAQ,CAChE,GACG,IAVE,MAAM,CAAC,CAAC,CAAC,CAWb,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,7 @@ exports.STEPS_BLOCK_STYLE_MAPS = {
4
4
  primary: {
5
5
  background: 'bg-white',
6
6
  title: 'text-primary-text',
7
- description: 'text-secondary-text',
7
+ description: '!text-secondary-text text-l-light',
8
8
  iconText: 'text-secondary-text',
9
9
  iconBackground: 'bg-main-divider',
10
10
  iconConnector: 'bg-secondary-light',
@@ -13,7 +13,7 @@ exports.STEPS_BLOCK_STYLE_MAPS = {
13
13
  secondary: {
14
14
  background: 'bg-primary-main',
15
15
  title: 'text-white',
16
- description: 'text-white/80',
16
+ description: '!text-white/80 text-l-light',
17
17
  iconText: 'text-white',
18
18
  iconBackground: 'bg-white/30',
19
19
  iconConnector: 'bg-white',
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlockStyleMaps.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlockStyleMaps.ts"],"names":[],"mappings":";;AAYa,QAAA,sBAAsB,GAAoC;IACrE,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,qBAAqB;QAC/B,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,oBAAoB;QACnC,GAAG,EAAE,mBAAmB;KACzB;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,eAAe;QAC5B,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;CACF,CAAC"}
1
+ {"version":3,"file":"StepsBlockStyleMaps.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlockStyleMaps.ts"],"names":[],"mappings":";;AAYa,QAAA,sBAAsB,GAAoC;IACrE,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,qBAAqB;QAC/B,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,oBAAoB;QACnC,GAAG,EAAE,mBAAmB;KACzB;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;CACF,CAAC"}
@@ -1,3 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { StyleType } from './StepsBlockStyleMaps';
3
- export declare const renderItems: (items?: string[], styleMap?: StyleType, isDotted?: boolean) => JSX.Element | null;
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ export declare const renderItems: ({ items, isDotted, version, className, }: {
4
+ items?: string[] | undefined;
5
+ isDotted?: boolean | undefined;
6
+ version?: BlockVersion | undefined;
7
+ className?: string | undefined;
8
+ }) => JSX.Element | null;
@@ -1,6 +1,10 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderItems = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const renderItems = (items, styleMap, isDotted = true) => items ? ((0, jsx_runtime_1.jsx)("div", { className: `mt-4 ${styleMap?.description}`, role: "list", children: items.map((_) => ((0, jsx_runtime_1.jsxs)("div", { className: "items-start mt-1 first:mt-0", role: "listitem", children: [isDotted ? ((0, jsx_runtime_1.jsx)("div", { className: `rounded-full inline-block mr-3 mb-1 w-1.5 h-1.5 min-w-1.5 min-h-1.5 ${styleMap?.dot}` })) : null, (0, jsx_runtime_1.jsx)("span", { children: _ })] }))) })) : null;
4
+ const List_1 = require("../../ui-kit/List/List");
5
+ const renderItems = ({ items, isDotted = true, version = 'primary', className = '', }) => {
6
+ const listVersion = version === 'primary' ? 'gray' : version;
7
+ return items ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: `mt-4 ${className}`, version: listVersion, items: items, listItemSize: "S", isDotted: isDotted })) : null;
8
+ };
5
9
  exports.renderItems = renderItems;
6
10
  //# sourceMappingURL=renderItems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/renderItems.tsx"],"names":[],"mappings":";;;AAEO,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAE,QAAoB,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE,CACrF,KAAK,CAAC,CAAC,CAAC,CACN,gCAAK,SAAS,EAAE,QAAQ,QAAQ,EAAE,WAAW,EAAE,EAAE,IAAI,EAAC,MAAM,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAChB,iCAAK,SAAS,EAAC,6BAA6B,EAAC,IAAI,EAAC,UAAU,aACzD,QAAQ,CAAC,CAAC,CAAC,CACV,gCACE,SAAS,EAAE,uEAAuE,QAAQ,EAAE,GAAG,EAAE,GACjG,CACH,CAAC,CAAC,CAAC,IAAI,EACR,2CAAO,CAAC,GAAQ,IACZ,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAdE,QAAA,WAAW,eAcb"}
1
+ {"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/renderItems.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAGvC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,OAAO,GAAG,SAAS,EACnB,SAAS,GAAG,EAAE,GAMf,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAE7D,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,uBAAC,WAAI,IACH,SAAS,EAAE,QAAQ,SAAS,EAAE,EAC9B,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAC,GAAG,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAtBW,QAAA,WAAW,eAsBtB"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
4
+ import type { Step } from './StepsBlockContent';
5
+ import type { StyleType } from './StepsBlockStyleMaps';
6
+ export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
7
+ styleMap: StyleType;
8
+ isMainButton: boolean;
9
+ version: BlockVersion;
10
+ router: Router;
11
+ handlerDecorator?: HandlerDecorator | undefined;
12
+ }) => (step: Step, i: number, { length }: {
13
+ length: number;
14
+ }) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderStepContent = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Button_1 = require("../../ui-kit/Button/Button");
5
+ const renderItems_1 = require("./renderItems");
6
+ const useLink_1 = require("../../hooks/useLink");
7
+ const renderStepContent = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i, { length }) => {
8
+ const { label, description, button, items, isDotted } = step;
9
+ const additionalMarginClass = `${button?.text ? 'mb-8' : ''} ${step?.label ? 'mt-2' : 'mt-4'}`;
10
+ const widthContainer = length < 5 ? 'w-[276px]' : 'w-[210px]';
11
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col items-center text-center relative
12
+ whitespace-pre-line overflow-hidden ${widthContainer}`, children: [renderStepLabel(label), renderStepDescription({
13
+ description,
14
+ className: `${styleMap.description} ${additionalMarginClass}`,
15
+ }), (0, renderItems_1.renderItems)({ items, isDotted, version, className: styleMap.description }), button?.text && !isMainButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border py-3 h-12 w-full max-w-[240px] mt-auto", ...(0, useLink_1.useLink)({ router, handlerDecorator }, button), version: version, children: button.text })) : null] }, String(i)));
16
+ };
17
+ exports.renderStepContent = renderStepContent;
18
+ const renderStepLabel = (label) => label ? (0, jsx_runtime_1.jsx)("div", { className: "text-x6 m-0 mt-4", children: label }) : null;
19
+ const renderStepDescription = ({ description, className = '', }) => (description ? (0, jsx_runtime_1.jsx)("div", { className: className, children: description }) : null);
20
+ //# sourceMappingURL=renderStepContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderStepContent.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/renderStepContent.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAKpD,+CAA4C;AAC5C,iDAA8C;AAEvC,MAAM,iBAAiB,GAC5B,CAAC,EACC,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,MAAM,EACN,gBAAgB,GAOjB,EAAE,EAAE,CACL,CAAC,IAAU,EAAE,CAAS,EAAE,EAAE,MAAM,EAAsB,EAAE,EAAE;IACxD,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAE7D,MAAM,qBAAqB,GAAG,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/F,MAAM,cAAc,GAAG,MAA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useTableArrowScrollControl");
7
7
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
8
+ const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
8
9
  const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
10
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
9
11
  const Heading_1 = require("../../ui-kit/Heading/Heading");
10
12
  const TableArrowScrollControl_1 = require("../../ui-kit/TableArrowScrollControl/TableArrowScrollControl");
11
13
  const constants_1 = require("./constants");
@@ -24,9 +26,16 @@ exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className = '', context, title, des
24
26
  activeCardIndex,
25
27
  setActiveCardIndex,
26
28
  });
27
- const foldableBlocks = rowData?.map((row, i, { length }) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { context: context, row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, rowIdx: i }, String(i))));
28
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-9 text-center text-l", children: description }) : null, rowData?.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { blocks: foldableBlocks, hiddenBlocksNum: hiddenRowsNum, blockWrapper: (children) => ((0, jsx_runtime_1.jsx)(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: children })) })) : null] }));
29
+ const rows = (rowData || []).map((row, i, { length }) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { context: context, row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, rowIdx: i }, String(i))));
30
+ const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
31
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: DefaultFoldButton_1.renderDefaultFoldButton })) : ((0, jsx_runtime_1.jsx)(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: rows }))] }));
29
32
  });
33
+ function renderTitle({ title, description }) {
34
+ return title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
35
+ }
36
+ function renderDescription(description) {
37
+ return description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-9 text-center text-l", children: description }) : null;
38
+ }
30
39
  const Wrapper = (0, uni_jsx_1.JSX)(({ children, tableArrowScrollControlProps }) => {
31
40
  const { isScrollAvailable } = tableArrowScrollControlProps;
32
41
  return ((0, jsx_runtime_1.jsxs)("div", { role: "table", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [children, (0, jsx_runtime_1.jsx)(TableArrowScrollControl_1.TableArrowScrollControl, { ...tableArrowScrollControlProps })] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));