@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,11 +1,8 @@
1
1
  import type { AlignType } from '../../model/AlignType';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
4
  import type { Picture } from '../../model/Picture';
4
5
  import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
5
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
6
- /**
7
- * @title Элемент списка
8
- */
9
6
  export interface AccordionItemCommonProps {
10
7
  /**
11
8
  * @title Название
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
14
11
  label?: string;
15
12
  /** @title Отображать в раскрытом виде */
16
13
  isExpanded?: boolean;
17
- /** @title Блоки */
18
- blocks?: BlockDef[];
19
14
  /**
20
15
  * @title Отображать/скрывать обводку элемента
21
16
  * @default false
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
23
18
  bordered?: boolean;
24
19
  labelIcon?: Picture;
25
20
  }
21
+ /**
22
+ * @title Элемент списка
23
+ */
24
+ export interface AccordionItem extends AccordionItemCommonProps {
25
+ /** @title Блоки */
26
+ blocks?: BlockDef[];
27
+ }
26
28
  /**
27
29
  * @title Аккордеон
28
30
  */
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
34
36
  accordionAlignTitle?: AlignType;
35
37
  version?: BlockVersion;
36
38
  /** @title Список */
37
- accordionItems?: AccordionItemCommonProps[];
39
+ accordionItems?: AccordionItem[];
38
40
  /**
39
41
  * @title Отображать/скрывать обводку у элемента списка
40
42
  * @default false
@@ -1,5 +1,2 @@
1
- import { UniBlockProps } from '../../model/ContentPageDef';
2
- import type { AccordionItemCommonProps } from './AccordionContent';
3
- export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
- }
1
+ import type { AccordionItemProps } from './AccordionItemProps';
5
2
  export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
@@ -1,5 +1,2 @@
1
- import { UniBlockProps } from '../../model/ContentPageDef';
2
- import type { AccordionItemCommonProps } from './AccordionContent';
3
- export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
- }
1
+ import type { AccordionItemProps } from './AccordionItemProps';
5
2
  export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/ContentPageDef';
2
+ import type { AccordionItemCommonProps } from './AccordionContent';
3
+ export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
+ hasContent?: boolean;
5
+ }
@@ -0,0 +1 @@
1
+ export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -13,6 +13,7 @@ export declare const Blocks: {
13
13
  Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
14
14
  Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
15
15
  InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
16
+ InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
16
17
  LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
17
18
  MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
18
19
  MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
@@ -21,7 +22,8 @@ export declare const Blocks: {
21
22
  ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
22
23
  ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
23
24
  PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
24
- OtherProducts: import("@redneckz/uni-jsx").UNIComponent<import("./OtherProducts/OtherProducts").OtherProductsProps, any, any>;
25
+ OtherProducts: import("../model/BlocksRegistry").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
26
+ OtherProductsItem: import("../model/BlocksRegistry").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
25
27
  Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
26
28
  StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
27
29
  TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
@@ -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
+ import type { ListContent } from '../../ui-kit/List/ListContent';
2
+ /**
3
+ * @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
+ };
@@ -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>;
@@ -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,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
+ }
@@ -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;
@@ -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;
@@ -1,6 +1,7 @@
1
1
  import type { BlockDef, Slot, SlotsMap } from './ContentPageDef';
2
2
  export declare const DEFAULT_SLOT_NAME: null;
3
3
  export declare type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
4
+ export declare const DEFAULT_ANCESTORS: BlockAncestors;
4
5
  interface BlockDecoratorProps<VNode> {
5
6
  blockClassName: string;
6
7
  block: BlockDef;
@@ -1,5 +1,8 @@
1
1
  import type { UNIComponent } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from './ContentPageDef';
3
3
  import type { VNode } from './VNode';
4
- export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]>;
4
+ export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]> & {
5
+ childrenTypes?: string[];
6
+ renderChild?: (child: VNode, i: number) => VNode;
7
+ };
5
8
  export declare type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { ColorPalette } from '../../model/ContentPageDef';
3
+ import type { IconName } from '../Icon/IconProps';
4
+ import type { FoldablePartProps } from './FoldablePartProps';
5
+ interface DefaultFoldButtonProps {
6
+ className?: string;
7
+ label: string;
8
+ icon: IconName;
9
+ dataTheme?: ColorPalette;
10
+ onClick?: () => void;
11
+ }
12
+ export declare const DefaultFoldButton: import("@redneckz/uni-jsx").UNIComponent<DefaultFoldButtonProps, any, any>;
13
+ export declare const renderDefaultFoldButton: ({ isUnfolded, onToggle }: FoldablePartProps) => JSX.Element;
14
+ export {};
@@ -1,16 +1,9 @@
1
1
  import type { VNode } from '../../model/VNode';
2
- interface RenderFoldButtonProps {
3
- isUnfolded: boolean;
4
- onToggle: () => void;
5
- }
2
+ import type { FoldablePartProps } from './FoldablePartProps';
6
3
  export interface FoldableProps {
7
- blocks?: VNode[];
8
- hiddenBlocksNum?: number;
9
4
  unfoldedByDefault?: boolean;
10
5
  isFoldButtonOnTop?: boolean;
11
- containerClassName?: string;
12
- blockWrapper?: (children: VNode) => VNode;
13
- renderFoldButton?: (props: RenderFoldButtonProps) => VNode;
6
+ renderFoldableSection: (props: FoldablePartProps) => VNode;
7
+ renderFoldButton?: (props: FoldablePartProps) => VNode;
14
8
  }
15
9
  export declare const Foldable: import("@redneckz/uni-jsx").UNIComponent<FoldableProps, any, any>;
16
- export {};
@@ -0,0 +1,4 @@
1
+ export interface FoldablePartProps {
2
+ isUnfolded: boolean;
3
+ onToggle?: () => void;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface FoldableSectionProps {
2
+ className?: string;
3
+ isUnfolded?: boolean;
4
+ }
5
+ export declare const FoldableSection: import("@redneckz/uni-jsx").UNIComponent<FoldableSectionProps, any, any>;
@@ -2,15 +2,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Accordion = 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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
5
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
7
8
  const AccordionItem_1 = require("./AccordionItem");
9
+ const AccordionItemsList_1 = require("./AccordionItemsList");
8
10
  const ALIGN_TITLE = {
9
11
  left: 'text-left',
10
12
  center: 'text-center',
11
13
  right: 'text-right',
12
14
  };
13
15
  exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', accordionAlignTitle = 'center', ...rest }) => {
14
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
16
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, hasContent: Boolean(item.blocks?.length), ...item, children: (0, renderBlocksList_1.renderBlocksList)({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem${i}`))) })) : null] }));
15
17
  });
16
18
  //# sourceMappingURL=Accordion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAEhD,MAAM,WAAW,GAA8B;IAC7C,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAIW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EACC,KAAK,EACL,WAAW,EACX,cAAc,EACd,OAAO,EACP,SAAS,GAAG,EAAE,EACd,mBAAmB,GAAG,QAAQ,EAC9B,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,gEAAgE,SAAS,EAAE,KAClF,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAE,UAAU,WAAW,CAAC,mBAAmB,CAAC,EAAE,EACvD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,eAAe,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,+BAAI,SAAS,EAAC,mBAAmB,YAC9B,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,OAA+B,IAAI,EAAE,OAAO,EAAE,OAAO,IAA/C,gBAAgB,CAAC,EAAE,CAAgC,CACxE,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAC5E,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAChD,6DAA0D;AAE1D,MAAM,WAAW,GAA8B;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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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
6
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
5
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
8
  const AccordionItem_1 = require("./AccordionItem");
7
- exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered }) => {
8
- return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem_${i}`))) })) : null] }));
9
+ const AccordionItemsList_1 = require("./AccordionItemsList");
10
+ exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered, ...rest }) => {
11
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, bordered: bordered, hasContent: Boolean(item.blocks?.length), ...item, children: (0, renderBlocksList_1.renderBlocksList)({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem_${i}`))) })) : null] }));
9
12
  });
10
13
  //# sourceMappingURL=Accordion.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,mDAAgD;AAInC,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,qCAAS,SAAS,EAAE,kDAAkD,SAAS,EAAE,aAC9E,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,+BAAI,SAAS,EAAC,mBAAmB,YAC9B,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,OAER,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAHb,iBAAiB,CAAC,EAAE,CAIzB,CACH,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Accordion.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+EAA4E;AAC5E,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAChD,6DAA0D;AAI7C,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kDAAkD,SAAS,EAAE,KACpE,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,uBAAC,uCAAkB,cAChB,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,IAEZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,IAAI,YAEP,IAAA,mCAAgB,EAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,IANtE,iBAAiB,CAAC,EAAE,CAOX,CACjB,CAAC,GACiB,CACtB,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,11 +1,8 @@
1
1
  import type { AlignType } from '../../model/AlignType';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
4
  import type { Picture } from '../../model/Picture';
4
5
  import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
5
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
6
- /**
7
- * @title Элемент списка
8
- */
9
6
  export interface AccordionItemCommonProps {
10
7
  /**
11
8
  * @title Название
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
14
11
  label?: string;
15
12
  /** @title Отображать в раскрытом виде */
16
13
  isExpanded?: boolean;
17
- /** @title Блоки */
18
- blocks?: BlockDef[];
19
14
  /**
20
15
  * @title Отображать/скрывать обводку элемента
21
16
  * @default false
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
23
18
  bordered?: boolean;
24
19
  labelIcon?: Picture;
25
20
  }
21
+ /**
22
+ * @title Элемент списка
23
+ */
24
+ export interface AccordionItem extends AccordionItemCommonProps {
25
+ /** @title Блоки */
26
+ blocks?: BlockDef[];
27
+ }
26
28
  /**
27
29
  * @title Аккордеон
28
30
  */
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
34
36
  accordionAlignTitle?: AlignType;
35
37
  version?: BlockVersion;
36
38
  /** @title Список */
37
- accordionItems?: AccordionItemCommonProps[];
39
+ accordionItems?: AccordionItem[];
38
40
  /**
39
41
  * @title Отображать/скрывать обводку у элемента списка
40
42
  * @default false
@@ -1,5 +1,2 @@
1
- import { UniBlockProps } from '../../model/ContentPageDef';
2
- import type { AccordionItemCommonProps } from './AccordionContent';
3
- export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
- }
1
+ import type { AccordionItemProps } from './AccordionItemProps';
5
2
  export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
@@ -2,15 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.AccordionItem = 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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
6
5
  const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
6
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
7
7
  const Img_1 = require("../../ui-kit/Img/Img");
8
8
  const icons = ['PlusIcon', 'MinusIcon'];
9
- exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', blocks, context }) => {
10
- const foldableBlocks = blocks
11
- ? (0, renderBlocksList_1.renderBlocksList)({ context, blocks, className: '!p-0 mb-5' })
12
- : [];
13
- return ((0, jsx_runtime_1.jsx)("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "grid grid-cols-12", renderFoldButton: (props) => ((0, jsx_runtime_1.jsx)(FoldButton, { icon: icons[Number(props.isUnfolded)], label: label, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
14
- });
15
- const FoldButton = (0, uni_jsx_1.JSX)(({ icon, label, hasContent, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
9
+ exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', children, hasContent = true }) => ((0, jsx_runtime_1.jsx)("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { label: label, icon: icons[Number(isUnfolded)], hasContent: hasContent, onClick: onToggle })) }) })));
10
+ const FoldButton = (0, uni_jsx_1.JSX)(({ label, icon, hasContent, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
16
11
  //# sourceMappingURL=AccordionItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+EAA4E;AAC5E,6DAA0D;AAG1D,8CAA2C;AAK3C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACvF,MAAM,cAAc,GAAG,MAAM;QAC3B,CAAC,CAAC,IAAA,mCAAgB,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;QAC/D,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,CACL,+BAAI,SAAS,EAAC,oEAAoE,YAChF,uBAAC,mBAAQ,IACP,eAAe,EAAE,cAAc,CAAC,MAAM,EACtC,MAAM,EAAE,cAAc,EACtB,iBAAiB,QACjB,kBAAkB,EAAC,mBAAmB,EACtC,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAC3B,uBAAC,UAAU,IACT,IAAI,EAAE,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,uBAAC,iCAAe,IAAC,SAAS,EAAC,mBAAmB,EAAC,UAAU,EAAE,UAAU,YAClE,QAAQ,GACO,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CACF,CAAC;AASF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChF,oCACE,SAAS,EAAE,4HACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EACxC,EAAE,EACF,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAE,4BAA4B,YAAG,KAAK,GAAQ,EAC5D,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAC,iCAAiC,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAC9F,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC,CAAC"}
@@ -1,5 +1,2 @@
1
- import { UniBlockProps } from '../../model/ContentPageDef';
2
- import type { AccordionItemCommonProps } from './AccordionContent';
3
- export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
- }
1
+ import type { AccordionItemProps } from './AccordionItemProps';
5
2
  export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
@@ -2,14 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.AccordionItem = 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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
6
5
  const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
6
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
7
7
  const Img_1 = require("../../ui-kit/Img/Img");
8
8
  const icons = ['PlusIcon', 'MinusIcon'];
9
- exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon, blocks, bordered, context }) => {
10
- const foldableBlocks = blocks ? (0, renderBlocksList_1.renderBlocksList)({ context, blocks, className: '!px-0' }) : [];
11
- return ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "flex flex-wrap group-last:last:pb-0", renderFoldButton: (props) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', icon: icons[Number(props.isUnfolded)], label: label, primaryIcon: labelIcon, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
12
- });
9
+ exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon, bordered, children, hasContent = true }) => ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, hasContent: hasContent, onClick: onToggle })) }) })));
13
10
  const FoldButton = (0, uni_jsx_1.JSX)(({ className, hasContent, icon, label, primaryIcon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
14
11
  ${className}
15
12
  ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsxs)("span", { className: `text-m-title-xs font-medium pr-2.5 flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })) : null] })));
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+EAA4E;AAC5E,6DAA0D;AAG1D,8CAA2C;AAK3C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACvD,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,IAAA,mCAAgB,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE/F,OAAO,CACL,+BAAI,SAAS,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,mCAAmC,YAC5E,uBAAC,mBAAQ,IACP,eAAe,EAAE,cAAc,CAAC,MAAM,EACtC,MAAM,EAAE,cAAc,EACtB,iBAAiB,QACjB,kBAAkB,EAAC,qCAAqC,EACxD,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CA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b,SAAS;IACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EACxC,OAAO,EAAE,OAAO,aAEhB,kCACE,SAAS,EAAE,2CACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,aAED,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACxF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IACD,EACN,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAC5E,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAkB;IACzC,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCAAmC,CAAC;AACpF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/ContentPageDef';
2
+ import type { AccordionItemCommonProps } from './AccordionContent';
3
+ export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
4
+ hasContent?: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=AccordionItemProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionItemProps.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -0,0 +1,6 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.AccordionItemsList = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ exports.AccordionItemsList = (0, uni_jsx_1.JSX)(({ children }) => ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: children })));
6
+ //# sourceMappingURL=AccordionItemsList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionItemsList.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtD,+BAAI,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAM,CAClD,CAAC,CAAC"}
@@ -13,6 +13,7 @@ export declare const Blocks: {
13
13
  Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
14
14
  Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
15
15
  InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
16
+ InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
16
17
  LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
17
18
  MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
18
19
  MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
@@ -21,7 +22,8 @@ export declare const Blocks: {
21
22
  ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
22
23
  ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
23
24
  PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
24
- OtherProducts: import("@redneckz/uni-jsx").UNIComponent<import("./OtherProducts/OtherProducts").OtherProductsProps, any, any>;
25
+ OtherProducts: import("../model/BlocksRegistry").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
26
+ OtherProductsItem: import("../model/BlocksRegistry").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
25
27
  Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
26
28
  StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
27
29
  TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
@@ -16,11 +16,13 @@ const GracePeriod_1 = require("./GracePeriod/GracePeriod");
16
16
  const Header_1 = require("./Header/Header");
17
17
  const Headline_1 = require("./Headline/Headline");
18
18
  const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
19
+ const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
19
20
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
20
21
  const MiniGallery_1 = require("./MiniGallery/MiniGallery");
21
22
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
22
23
  const OfficeServicesBlock_1 = require("./OfficeServicesBlock/OfficeServicesBlock");
23
24
  const OtherProducts_1 = require("./OtherProducts/OtherProducts");
25
+ const OtherProductsItem_1 = require("./OtherProductsItem/OtherProductsItem");
24
26
  const PictureText_1 = require("./PictureText/PictureText");
25
27
  const Placeholder_1 = require("./Placeholder/Placeholder");
26
28
  const ProductBlock_1 = require("./ProductBlock/ProductBlock");
@@ -49,6 +51,7 @@ exports.Blocks = {
49
51
  Header: Header_1.Header,
50
52
  Headline: Headline_1.Headline,
51
53
  InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
54
+ InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
52
55
  LinkDocs: LinkDocs_1.LinkDocs,
53
56
  MiniGallery: MiniGallery_1.MiniGallery,
54
57
  MobileAppTile: MobileAppTile_1.MobileAppTile,
@@ -58,6 +61,7 @@ exports.Blocks = {
58
61
  ProductTile: ProductTile_1.ProductTile,
59
62
  PromoTile: PromoTile_1.PromoTile,
60
63
  OtherProducts: OtherProducts_1.OtherProducts,
64
+ OtherProductsItem: OtherProductsItem_1.OtherProductsItem,
61
65
  Recommendation: Recommendation_1.Recommendation,
62
66
  StepsBlock: StepsBlock_1.StepsBlock,
63
67
  TariffsTable: TariffsTable_1.TariffsTable,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,wDAAqD;AACrD,8DAA2D;AAC3D,+CAA4C;AAC5C,uEAAoE;AACpE,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,sFAAmF;AACnF,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,mFAAgF;AAChF,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,6EAA0E;AAC1E,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,YAAY,EA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;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,6EAA0E;AAC1E,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,YAAY,EAAZ,2BAAY;IACZ,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,OAAO,EAAP,iBAAO;IACP,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,kBAAkB,EAAlB,uCAAkB;IAClB,iBAAiB,EAAjB,qCAAiB;IACjB,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,mBAAmB,EAAnB,yCAAmB;CACpB,CAAC"}
@@ -1,7 +1,6 @@
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
- const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block?.type, blocksRegistry)).map(normalizeBlock_1.normalizeBlock);
4
+ const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (block?.type || '') in blocksRegistry).map(normalizeBlock_1.normalizeBlock);
6
5
  exports.filterBlocks = filterBlocks;
7
6
  //# sourceMappingURL=filterBlocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,2DAAwD;AACxD,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,qCAAiB,EAAC,KAAK,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,+BAAc,CAAC,CAAC;AADnF,QAAA,YAAY,gBACuE"}
1
+ {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,CAAC,CAAC,GAAG,CAAC,+BAAc,CAAC,CAAC;AAD1E,QAAA,YAAY,gBAC8D"}