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

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 (400) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +125 -69
  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 +1 -0
  10. package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  11. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  12. package/bundle/components/StepsBlock/renderItems.d.ts +7 -2
  13. package/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
  14. package/bundle/model/BlockDecorator.d.ts +1 -0
  15. package/bundle/model/BlocksRegistry.d.ts +4 -1
  16. package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  17. package/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
  18. package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  19. package/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  20. package/dist/components/Accordion/Accordion.js +3 -1
  21. package/dist/components/Accordion/Accordion.js.map +1 -1
  22. package/dist/components/Accordion/Accordion.mobile.js +5 -2
  23. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  24. package/dist/components/Accordion/AccordionContent.d.ts +9 -7
  25. package/dist/components/Accordion/AccordionItem.d.ts +1 -4
  26. package/dist/components/Accordion/AccordionItem.js +3 -8
  27. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  28. package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -4
  29. package/dist/components/Accordion/AccordionItem.mobile.js +2 -5
  30. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  31. package/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
  32. package/dist/components/Accordion/AccordionItemProps.js +2 -0
  33. package/dist/components/Accordion/AccordionItemProps.js.map +1 -0
  34. package/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
  35. package/dist/components/Accordion/AccordionItemsList.js +6 -0
  36. package/dist/components/Accordion/AccordionItemsList.js.map +1 -0
  37. package/dist/components/Blocks.d.ts +1 -0
  38. package/dist/components/Blocks.js +2 -0
  39. package/dist/components/Blocks.js.map +1 -1
  40. package/dist/components/ContentPage/filterBlocks.js +1 -2
  41. package/dist/components/ContentPage/filterBlocks.js.map +1 -1
  42. package/dist/components/ContentPage/filterBlocks.mobile.js +1 -3
  43. package/dist/components/ContentPage/filterBlocks.mobile.js.map +1 -1
  44. package/dist/components/ContentPage/renderBlock.js +1 -1
  45. package/dist/components/ContentPage/renderBlock.js.map +1 -1
  46. package/dist/components/Footer/Footer.mobile.js +8 -7
  47. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  48. package/dist/components/Header/Header.mobile.js +5 -5
  49. package/dist/components/Header/Header.mobile.js.map +1 -1
  50. package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  51. package/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
  52. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  53. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  54. package/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  55. package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  56. package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  57. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  58. package/dist/components/StepsBlock/StepsBlock.js +2 -8
  59. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  60. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  61. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  62. package/dist/components/StepsBlock/renderItems.d.ts +7 -2
  63. package/dist/components/StepsBlock/renderItems.js +5 -1
  64. package/dist/components/StepsBlock/renderItems.js.map +1 -1
  65. package/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
  66. package/dist/components/StepsBlock/renderStepContent.js +20 -0
  67. package/dist/components/StepsBlock/renderStepContent.js.map +1 -0
  68. package/dist/components/TariffsTable/TariffsTable.js +11 -2
  69. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  70. package/dist/model/BlockDecorator.d.ts +1 -0
  71. package/dist/model/BlockDecorator.js +2 -1
  72. package/dist/model/BlockDecorator.js.map +1 -1
  73. package/dist/model/BlocksRegistry.d.ts +4 -1
  74. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  75. package/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
  76. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  77. package/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
  78. package/dist/ui-kit/Foldable/Foldable.js +7 -23
  79. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  80. package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  81. package/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
  82. package/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  83. package/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  84. package/dist/ui-kit/Foldable/FoldableSection.js +17 -0
  85. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
  86. package/lib/common.css +1 -1
  87. package/lib/components/Accordion/Accordion.js +3 -1
  88. package/lib/components/Accordion/Accordion.js.map +1 -1
  89. package/lib/components/Accordion/Accordion.mobile.js +5 -2
  90. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  91. package/lib/components/Accordion/AccordionContent.d.ts +9 -7
  92. package/lib/components/Accordion/AccordionItem.d.ts +1 -4
  93. package/lib/components/Accordion/AccordionItem.js +3 -8
  94. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  95. package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -4
  96. package/lib/components/Accordion/AccordionItem.mobile.js +2 -5
  97. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  98. package/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
  99. package/lib/components/Accordion/AccordionItemProps.js +2 -0
  100. package/lib/components/Accordion/AccordionItemProps.js.map +1 -0
  101. package/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
  102. package/lib/components/Accordion/AccordionItemsList.js +4 -0
  103. package/lib/components/Accordion/AccordionItemsList.js.map +1 -0
  104. package/lib/components/Blocks.d.ts +1 -0
  105. package/lib/components/Blocks.js +2 -0
  106. package/lib/components/Blocks.js.map +1 -1
  107. package/lib/components/ContentPage/filterBlocks.js +1 -2
  108. package/lib/components/ContentPage/filterBlocks.js.map +1 -1
  109. package/lib/components/ContentPage/filterBlocks.mobile.js +1 -3
  110. package/lib/components/ContentPage/filterBlocks.mobile.js.map +1 -1
  111. package/lib/components/ContentPage/renderBlock.js +2 -2
  112. package/lib/components/ContentPage/renderBlock.js.map +1 -1
  113. package/lib/components/Footer/Footer.mobile.js +8 -7
  114. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  115. package/lib/components/Header/Header.mobile.js +5 -5
  116. package/lib/components/Header/Header.mobile.js.map +1 -1
  117. package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  118. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +7 -0
  119. package/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
  120. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  121. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  122. package/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  123. package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  124. package/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  125. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  126. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +2 -1
  127. package/lib/components/StepsBlock/StepsBlock.js +2 -8
  128. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  129. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  130. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  131. package/lib/components/StepsBlock/renderItems.d.ts +7 -2
  132. package/lib/components/StepsBlock/renderItems.js +6 -2
  133. package/lib/components/StepsBlock/renderItems.js.map +1 -1
  134. package/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
  135. package/lib/components/StepsBlock/renderStepContent.js +17 -0
  136. package/lib/components/StepsBlock/renderStepContent.js.map +1 -0
  137. package/lib/components/TariffsTable/TariffsTable.js +11 -2
  138. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  139. package/lib/model/BlockDecorator.d.ts +1 -0
  140. package/lib/model/BlockDecorator.js +1 -0
  141. package/lib/model/BlockDecorator.js.map +1 -1
  142. package/lib/model/BlocksRegistry.d.ts +4 -1
  143. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  144. package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
  145. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  146. package/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
  147. package/lib/ui-kit/Foldable/Foldable.js +9 -25
  148. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  149. package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  150. package/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
  151. package/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  152. package/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  153. package/lib/ui-kit/Foldable/FoldableSection.js +15 -0
  154. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
  155. package/mobile/bundle/bundle.umd.js +131 -153
  156. package/mobile/bundle/bundle.umd.min.js +1 -1
  157. package/mobile/bundle/components/Accordion/AccordionContent.d.ts +9 -7
  158. package/mobile/bundle/components/Accordion/AccordionItem.d.ts +1 -4
  159. package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
  160. package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
  161. package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  162. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  163. package/mobile/bundle/components/StepsBlock/renderItems.d.ts +7 -2
  164. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
  165. package/mobile/bundle/model/BlockDecorator.d.ts +1 -0
  166. package/mobile/bundle/model/BlocksRegistry.d.ts +4 -1
  167. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  168. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
  169. package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  170. package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  171. package/mobile/dist/components/Accordion/Accordion.js +5 -2
  172. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  173. package/mobile/dist/components/Accordion/AccordionContent.d.ts +9 -7
  174. package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -4
  175. package/mobile/dist/components/Accordion/AccordionItem.js +2 -5
  176. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  177. package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
  178. package/mobile/dist/components/Accordion/AccordionItemProps.js +2 -0
  179. package/mobile/dist/components/Accordion/AccordionItemProps.js.map +1 -0
  180. package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
  181. package/mobile/dist/components/Accordion/AccordionItemsList.js +6 -0
  182. package/mobile/dist/components/Accordion/AccordionItemsList.js.map +1 -0
  183. package/mobile/dist/components/ContentPage/filterBlocks.js +1 -3
  184. package/mobile/dist/components/ContentPage/filterBlocks.js.map +1 -1
  185. package/mobile/dist/components/ContentPage/renderBlock.js +1 -1
  186. package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
  187. package/mobile/dist/components/Footer/Footer.js +8 -7
  188. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  189. package/mobile/dist/components/Header/Header.js +5 -5
  190. package/mobile/dist/components/Header/Header.js.map +1 -1
  191. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  192. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
  193. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  194. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  195. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  196. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  197. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
  198. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  199. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  200. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  201. package/mobile/dist/components/StepsBlock/renderItems.d.ts +7 -2
  202. package/mobile/dist/components/StepsBlock/renderItems.js +5 -1
  203. package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
  204. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
  205. package/mobile/dist/components/StepsBlock/renderStepContent.js +20 -0
  206. package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -0
  207. package/mobile/dist/model/BlockDecorator.d.ts +1 -0
  208. package/mobile/dist/model/BlockDecorator.js +2 -1
  209. package/mobile/dist/model/BlockDecorator.js.map +1 -1
  210. package/mobile/dist/model/BlocksRegistry.d.ts +4 -1
  211. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  212. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
  213. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  214. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
  215. package/mobile/dist/ui-kit/Foldable/Foldable.js +7 -23
  216. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  217. package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  218. package/mobile/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
  219. package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  220. package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  221. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +17 -0
  222. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
  223. package/mobile/lib/components/Accordion/Accordion.js +5 -2
  224. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  225. package/mobile/lib/components/Accordion/AccordionContent.d.ts +9 -7
  226. package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -4
  227. package/mobile/lib/components/Accordion/AccordionItem.js +2 -5
  228. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  229. package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
  230. package/mobile/lib/components/Accordion/AccordionItemProps.js +2 -0
  231. package/mobile/lib/components/Accordion/AccordionItemProps.js.map +1 -0
  232. package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
  233. package/mobile/lib/components/Accordion/AccordionItemsList.js +4 -0
  234. package/mobile/lib/components/Accordion/AccordionItemsList.js.map +1 -0
  235. package/mobile/lib/components/ContentPage/filterBlocks.js +1 -3
  236. package/mobile/lib/components/ContentPage/filterBlocks.js.map +1 -1
  237. package/mobile/lib/components/ContentPage/renderBlock.js +2 -2
  238. package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
  239. package/mobile/lib/components/Footer/Footer.js +8 -7
  240. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  241. package/mobile/lib/components/Header/Header.js +5 -5
  242. package/mobile/lib/components/Header/Header.js.map +1 -1
  243. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
  244. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
  245. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
  246. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
  247. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
  248. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
  249. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
  250. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  251. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
  252. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  253. package/mobile/lib/components/StepsBlock/renderItems.d.ts +7 -2
  254. package/mobile/lib/components/StepsBlock/renderItems.js +6 -2
  255. package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
  256. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
  257. package/mobile/lib/components/StepsBlock/renderStepContent.js +17 -0
  258. package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -0
  259. package/mobile/lib/model/BlockDecorator.d.ts +1 -0
  260. package/mobile/lib/model/BlockDecorator.js +1 -0
  261. package/mobile/lib/model/BlockDecorator.js.map +1 -1
  262. package/mobile/lib/model/BlocksRegistry.d.ts +4 -1
  263. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
  264. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
  265. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
  266. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
  267. package/mobile/lib/ui-kit/Foldable/Foldable.js +9 -25
  268. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  269. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
  270. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
  271. package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
  272. package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
  273. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +15 -0
  274. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
  275. package/mobile/src/common.css +11 -3
  276. package/mobile/src/components/Accordion/Accordion.tsx +17 -7
  277. package/mobile/src/components/Accordion/AccordionContent.ts +10 -7
  278. package/mobile/src/components/Accordion/AccordionItem.tsx +34 -30
  279. package/mobile/src/components/Accordion/AccordionItemProps.ts +6 -0
  280. package/mobile/src/components/Accordion/AccordionItemsList.tsx +5 -0
  281. package/mobile/src/components/ContentPage/filterBlocks.ts +1 -3
  282. package/mobile/src/components/ContentPage/renderBlock.tsx +2 -2
  283. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
  284. package/mobile/src/components/Footer/Footer.tsx +15 -13
  285. package/mobile/src/components/GracePeriod/GracePeriod.ui.json +5 -0
  286. package/mobile/src/components/Header/Header.tsx +16 -11
  287. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
  288. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
  289. package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
  290. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
  291. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +18 -15
  292. package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
  293. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
  294. package/mobile/src/components/StepsBlock/renderItems.tsx +24 -15
  295. package/mobile/src/components/StepsBlock/renderStepContent.tsx +63 -0
  296. package/mobile/src/model/BlockDecorator.ts +2 -0
  297. package/mobile/src/model/BlocksRegistry.ts +4 -1
  298. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
  299. package/mobile/src/ui-kit/Foldable/Foldable.tsx +19 -67
  300. package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
  301. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
  302. package/package.json +2 -2
  303. package/src/common.css +11 -3
  304. package/src/components/Accordion/Accordion.mobile.tsx +17 -7
  305. package/src/components/Accordion/Accordion.tsx +12 -3
  306. package/src/components/Accordion/AccordionContent.ts +10 -7
  307. package/src/components/Accordion/AccordionItem.mobile.tsx +34 -30
  308. package/src/components/Accordion/AccordionItem.tsx +24 -23
  309. package/src/components/Accordion/AccordionItemProps.ts +6 -0
  310. package/src/components/Accordion/AccordionItemsList.tsx +5 -0
  311. package/src/components/Blocks.ts +2 -0
  312. package/src/components/ContentPage/filterBlocks.mobile.ts +1 -3
  313. package/src/components/ContentPage/filterBlocks.ts +1 -2
  314. package/src/components/ContentPage/renderBlock.tsx +2 -2
  315. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
  316. package/src/components/Footer/Footer.mobile.tsx +15 -13
  317. package/src/components/GracePeriod/GracePeriod.ui.json +5 -0
  318. package/src/components/Header/Header.mobile.tsx +16 -11
  319. package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
  320. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +107 -0
  321. package/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
  322. package/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
  323. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
  324. package/src/components/OtherProducts/OtherProductsItem.tsx +18 -15
  325. package/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
  326. package/src/components/StepsBlock/StepsBlock.fixture.tsx +39 -25
  327. package/src/components/StepsBlock/StepsBlock.tsx +3 -49
  328. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
  329. package/src/components/StepsBlock/renderItems.tsx +24 -15
  330. package/src/components/StepsBlock/renderStepContent.tsx +63 -0
  331. package/src/components/TariffsTable/TariffsTable.tsx +32 -23
  332. package/src/model/BlockDecorator.ts +2 -0
  333. package/src/model/BlocksRegistry.ts +4 -1
  334. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
  335. package/src/ui-kit/Foldable/Foldable.tsx +19 -67
  336. package/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
  337. package/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
  338. package/tailwind.config.cjs +5 -0
  339. package/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  340. package/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  341. package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  342. package/bundle/utils/getAccordionItems.d.ts +0 -1
  343. package/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  344. package/dist/components/ContentPage/isBlockInRegistry.js +0 -7
  345. package/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
  346. package/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  347. package/dist/ui-kit/Foldable/DefaultButton.js +0 -12
  348. package/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
  349. package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  350. package/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  351. package/dist/utils/getAccordionItems.d.ts +0 -1
  352. package/dist/utils/getAccordionItems.js +0 -13
  353. package/dist/utils/getAccordionItems.js.map +0 -1
  354. package/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  355. package/lib/components/ContentPage/isBlockInRegistry.js +0 -4
  356. package/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
  357. package/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  358. package/lib/ui-kit/Foldable/DefaultButton.js +0 -10
  359. package/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
  360. package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  361. package/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
  362. package/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  363. package/lib/utils/getAccordionItems.d.ts +0 -1
  364. package/lib/utils/getAccordionItems.js +0 -10
  365. package/lib/utils/getAccordionItems.js.map +0 -1
  366. package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  367. package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  368. package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  369. package/mobile/bundle/utils/getAccordionItems.d.ts +0 -1
  370. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  371. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +0 -7
  372. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
  373. package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  374. package/mobile/dist/ui-kit/Foldable/DefaultButton.js +0 -12
  375. package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
  376. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  377. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  378. package/mobile/dist/utils/getAccordionItems.d.ts +0 -1
  379. package/mobile/dist/utils/getAccordionItems.js +0 -13
  380. package/mobile/dist/utils/getAccordionItems.js.map +0 -1
  381. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
  382. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +0 -4
  383. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
  384. package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
  385. package/mobile/lib/ui-kit/Foldable/DefaultButton.js +0 -10
  386. package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
  387. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
  388. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
  389. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
  390. package/mobile/lib/utils/getAccordionItems.d.ts +0 -1
  391. package/mobile/lib/utils/getAccordionItems.js +0 -10
  392. package/mobile/lib/utils/getAccordionItems.js.map +0 -1
  393. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +0 -5
  394. package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
  395. package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
  396. package/mobile/src/utils/getAccordionItems.ts +0 -10
  397. package/src/components/ContentPage/isBlockInRegistry.ts +0 -5
  398. package/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
  399. package/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
  400. package/src/utils/getAccordionItems.ts +0 -10
@@ -0,0 +1,63 @@
1
+ import { Button } from '../../ui-kit/Button/Button';
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
+ import { renderItems } from './renderItems';
7
+ import { useLink } from '../../hooks/useLink';
8
+
9
+ export const renderStepContent =
10
+ ({
11
+ styleMap,
12
+ isMainButton,
13
+ version,
14
+ router,
15
+ handlerDecorator,
16
+ }: {
17
+ styleMap: StyleType;
18
+ isMainButton: boolean;
19
+ version: BlockVersion;
20
+ router: Router;
21
+ handlerDecorator?: HandlerDecorator;
22
+ }) =>
23
+ (step: Step, i: number, { length }: { length: number }) => {
24
+ const { label, description, button, items, isDotted } = step;
25
+
26
+ const additionalMarginClass = `${button?.text ? 'mb-8' : ''} ${step?.label ? 'mt-2' : 'mt-4'}`;
27
+ const widthContainer = length < 5 ? 'w-[276px]' : 'w-[210px]';
28
+
29
+ return (
30
+ <div
31
+ key={String(i)}
32
+ className={`flex flex-col items-center text-center relative
33
+ whitespace-pre-line overflow-hidden ${widthContainer}`}
34
+ >
35
+ {renderStepLabel(label)}
36
+ {renderStepDescription({
37
+ description,
38
+ className: `${styleMap.description} ${additionalMarginClass}`,
39
+ })}
40
+ {renderItems({ items, isDotted, version, className: styleMap.description })}
41
+ {button?.text && !isMainButton ? (
42
+ <Button
43
+ className="box-border py-3 h-12 w-full max-w-[240px] mt-auto"
44
+ {...useLink({ router, handlerDecorator }, button)}
45
+ version={version}
46
+ >
47
+ {button.text}
48
+ </Button>
49
+ ) : null}
50
+ </div>
51
+ );
52
+ };
53
+
54
+ const renderStepLabel = (label?: string) =>
55
+ label ? <div className="text-x6 m-0 mt-4">{label}</div> : null;
56
+
57
+ const renderStepDescription = ({
58
+ description,
59
+ className = '',
60
+ }: {
61
+ description?: string;
62
+ className?: string;
63
+ }) => (description ? <div className={className}>{description}</div> : null);
@@ -2,9 +2,10 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useTableArrowScrollControl } from '../../hooks/useTableArrowScrollControl';
4
4
  import type { UniBlockProps } from '../../model/ContentPageDef';
5
- import type { VNode } from '../../model/VNode';
6
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
+ import { renderDefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
7
7
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
8
+ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
8
9
  import { Heading } from '../../ui-kit/Heading/Heading';
9
10
  import { TableArrowScrollControl } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControl';
10
11
  import type { TableArrowScrollControlProps } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
@@ -42,7 +43,7 @@ export const TariffsTable = JSX<TariffsTableProps>(
42
43
  setActiveCardIndex,
43
44
  });
44
45
 
45
- const foldableBlocks = rowData?.map((row, i, { length }) => (
46
+ const rows = (rowData || []).map((row, i, { length }) => (
46
47
  <TariffsTableRow
47
48
  context={context}
48
49
  key={String(i)}
@@ -52,6 +53,8 @@ export const TariffsTable = JSX<TariffsTableProps>(
52
53
  rowIdx={i}
53
54
  />
54
55
  ));
56
+ const [visibleRows, hiddenRows] =
57
+ hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
55
58
 
56
59
  return (
57
60
  <BlockWrapper
@@ -61,37 +64,43 @@ export const TariffsTable = JSX<TariffsTableProps>(
61
64
  context={context}
62
65
  {...rest}
63
66
  >
64
- {title ? (
65
- <Heading
66
- headingType="h3"
67
- className={`text-center ${description ? 'mb-2.5' : 'mb-8'}`}
68
- title={title}
69
- />
70
- ) : null}
71
- {description ? <div className="mb-9 text-center text-l">{description}</div> : null}
72
- {rowData?.length ? (
67
+ {renderTitle({ title, description })}
68
+ {renderDescription(description)}
69
+ {hiddenRowsNum > 0 ? (
73
70
  <Foldable
74
- blocks={foldableBlocks}
75
- hiddenBlocksNum={hiddenRowsNum}
76
- blockWrapper={(children) => (
71
+ renderFoldableSection={({ isUnfolded }) => (
77
72
  <Wrapper tableArrowScrollControlProps={tableArrowScrollControlProps}>
78
- {children}
73
+ {visibleRows}
74
+ <FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
79
75
  </Wrapper>
80
76
  )}
77
+ renderFoldButton={renderDefaultFoldButton}
81
78
  />
82
- ) : null}
79
+ ) : (
80
+ <Wrapper tableArrowScrollControlProps={tableArrowScrollControlProps}>{rows}</Wrapper>
81
+ )}
83
82
  </BlockWrapper>
84
83
  );
85
84
  },
86
85
  );
87
86
 
88
- const Wrapper = JSX<
89
- {
90
- tableArrowScrollControlProps: TableArrowScrollControlProps;
91
- },
92
- any,
93
- VNode
94
- >(({ children, tableArrowScrollControlProps }) => {
87
+ function renderTitle({ title, description }: { title?: string; description?: string }) {
88
+ return title ? (
89
+ <Heading
90
+ headingType="h3"
91
+ className={`text-center ${description ? 'mb-2.5' : 'mb-8'}`}
92
+ title={title}
93
+ />
94
+ ) : null;
95
+ }
96
+
97
+ function renderDescription(description?: string) {
98
+ return description ? <div className="mb-9 text-center text-l">{description}</div> : null;
99
+ }
100
+
101
+ const Wrapper = JSX<{
102
+ tableArrowScrollControlProps: TableArrowScrollControlProps;
103
+ }>(({ children, tableArrowScrollControlProps }) => {
95
104
  const { isScrollAvailable } = tableArrowScrollControlProps;
96
105
 
97
106
  return (
@@ -4,6 +4,8 @@ export const DEFAULT_SLOT_NAME = null;
4
4
 
5
5
  export type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
6
6
 
7
+ export const DEFAULT_ANCESTORS: BlockAncestors = [DEFAULT_SLOT_NAME];
8
+
7
9
  interface BlockDecoratorProps<VNode> {
8
10
  blockClassName: string;
9
11
  block: BlockDef;
@@ -6,6 +6,9 @@ export type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<
6
6
  BlockProps & UniBlockProps,
7
7
  any,
8
8
  VNode | VNode[]
9
- >;
9
+ > & {
10
+ childrenTypes?: string[];
11
+ renderChild?: (child: VNode, i: number) => VNode;
12
+ };
10
13
 
11
14
  export type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
@@ -0,0 +1,52 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { ColorPalette } from '../../model/ContentPageDef';
3
+ import type { IconName } from '../Icon/IconProps';
4
+ import { Img } from '../Img/Img';
5
+ import type { FoldablePartProps } from './FoldablePartProps';
6
+
7
+ interface DefaultFoldButtonProps {
8
+ className?: string;
9
+ label: string;
10
+ icon: IconName;
11
+ dataTheme?: ColorPalette;
12
+ onClick?: () => void;
13
+ }
14
+
15
+ export const DefaultFoldButton = JSX<DefaultFoldButtonProps>(
16
+ ({ className, label, icon, dataTheme = '', onClick }) => (
17
+ <button
18
+ className={`border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer ${
19
+ className || ''
20
+ }`}
21
+ data-theme={dataTheme}
22
+ onClick={onClick}
23
+ >
24
+ <span className="text-h4 pr-3">{label}</span>
25
+ {icon ? (
26
+ <Img
27
+ image={{
28
+ icon,
29
+ iconVersion: 'white',
30
+ }}
31
+ className="flex-shrink-0 my-auto"
32
+ width="20"
33
+ height="20"
34
+ asSVG
35
+ />
36
+ ) : null}
37
+ </button>
38
+ ),
39
+ );
40
+
41
+ export const renderDefaultFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps) => {
42
+ const labels = ['Развернуть', 'Скрыть'];
43
+ const icons: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
44
+
45
+ return (
46
+ <DefaultFoldButton
47
+ icon={icons[Number(isUnfolded)]}
48
+ label={labels[Number(isUnfolded)]}
49
+ onClick={onToggle}
50
+ />
51
+ );
52
+ };
@@ -1,89 +1,41 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { VNode } from '../../model/VNode';
4
- import { clamp } from '../../utils/clamp';
5
- import type { IconName } from '../Icon/IconProps';
6
- import { DefaultButton } from './DefaultButton';
4
+ import type { FoldablePartProps } from './FoldablePartProps';
7
5
 
8
- interface RenderFoldButtonProps {
9
- isUnfolded: boolean;
10
- onToggle: () => void;
11
- }
12
6
  export interface FoldableProps {
13
- blocks?: VNode[];
14
- hiddenBlocksNum?: number;
15
7
  unfoldedByDefault?: boolean;
16
8
  isFoldButtonOnTop?: boolean;
17
- containerClassName?: string;
18
- blockWrapper?: (children: VNode) => VNode;
19
- renderFoldButton?: (props: RenderFoldButtonProps) => VNode;
9
+ renderFoldableSection: (props: FoldablePartProps) => VNode;
10
+ renderFoldButton?: (props: FoldablePartProps) => VNode;
20
11
  }
21
12
 
22
13
  export const Foldable = JSX<FoldableProps>(
23
14
  ({
24
- blocks = [],
25
- hiddenBlocksNum = 0,
26
15
  isFoldButtonOnTop = false,
27
16
  unfoldedByDefault = false,
28
- containerClassName = '',
29
- blockWrapper = (_) => _,
30
- renderFoldButton = renderDefaultFoldButton,
17
+ renderFoldableSection,
18
+ renderFoldButton,
31
19
  }) => {
32
20
  const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
33
- const blocksToHide = clamp(hiddenBlocksNum, 0, blocks?.length);
34
- const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
35
- const hiddenBlocks = blocksToHide > 0 ? blocks.slice(-blocksToHide) : [];
36
- const containerRef = useRef<HTMLDivElement | null>(null);
37
21
 
38
- const onToggle = () => {
39
- setIsUnfolded(!isUnfolded);
40
- if (containerRef.current) {
41
- containerRef.current.style.maxHeight = isUnfolded
42
- ? ''
43
- : `${containerRef.current.scrollHeight}px`;
44
- }
45
- };
22
+ const onToggle = useCallback(() => {
23
+ setIsUnfolded((_) => !_);
24
+ }, []);
46
25
 
47
- const buttonNode = hiddenBlocksNum ? renderFoldButton({ isUnfolded, onToggle }) : null;
48
- const blocksNode = blockWrapper(
49
- <div>
50
- {visibleBlocks}
51
- <div
52
- ref={containerRef}
53
- className={`transition-max-h duration-300 overflow-hidden max-h-0 ${containerClassName}`}
54
- >
55
- {hiddenBlocks}
56
- </div>
57
- </div>,
58
- );
26
+ const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
27
+ const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
59
28
 
60
- return (
29
+ return isFoldButtonOnTop ? (
61
30
  <div>
62
- {isFoldButtonOnTop ? (
63
- <div>
64
- {buttonNode}
65
- {blocksNode}
66
- </div>
67
- ) : (
68
- <div>
69
- {blocksNode}
70
- {buttonNode}
71
- </div>
72
- )}
31
+ {buttonNode}
32
+ {sectionNode}
33
+ </div>
34
+ ) : (
35
+ <div>
36
+ {sectionNode}
37
+ {buttonNode}
73
38
  </div>
74
39
  );
75
40
  },
76
41
  );
77
-
78
- const renderDefaultFoldButton = (props: RenderFoldButtonProps) => {
79
- const labels = ['Развернуть', 'Скрыть'];
80
- const icons: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
81
-
82
- return (
83
- <DefaultButton
84
- icon={icons[Number(props.isUnfolded)]}
85
- label={labels[Number(props.isUnfolded)]}
86
- onClick={props.onToggle}
87
- />
88
- );
89
- };
@@ -0,0 +1,4 @@
1
+ export interface FoldablePartProps {
2
+ isUnfolded: boolean;
3
+ onToggle?: () => void;
4
+ }
@@ -0,0 +1,30 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
3
+
4
+ export interface FoldableSectionProps {
5
+ className?: string;
6
+ isUnfolded?: boolean;
7
+ }
8
+
9
+ export const FoldableSection = JSX<FoldableSectionProps>(
10
+ ({ className = '', isUnfolded, children }) => {
11
+ const containerRef = useRef<HTMLDivElement | null>(null);
12
+
13
+ useEffect(() => {
14
+ if (containerRef.current) {
15
+ containerRef.current.style.maxHeight = isUnfolded
16
+ ? `${containerRef.current.scrollHeight}px`
17
+ : '';
18
+ }
19
+ }, [isUnfolded]);
20
+
21
+ return (
22
+ <div
23
+ ref={containerRef}
24
+ className={`transition-max-h duration-300 overflow-hidden max-h-0 ${className}`}
25
+ >
26
+ {children}
27
+ </div>
28
+ );
29
+ },
30
+ );
@@ -216,6 +216,11 @@ module.exports = {
216
216
  // Text
217
217
  text: 'rgba(125, 126, 127, <alpha-value>)',
218
218
  },
219
+ green: 'rgba(var(--color-green), <alpha-value>)',
220
+ 'green-light': 'rgba(var(--color-green-light), <alpha-value>)',
221
+ 'green-dark': 'rgba(var(--color-green-dark), <alpha-value>)',
222
+ 'green-more-dark': 'rgba(var(--color-green-more-dark), <alpha-value>)',
223
+ yellow: 'rgba(var(--color-yellow), <alpha-value>)',
219
224
  gray: 'rgba(201, 202, 204, <alpha-value>)',
220
225
  error: 'rgba(242, 48, 48, <alpha-value>)',
221
226
  },
@@ -1,2 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1,2 +0,0 @@
1
- import { FoldButtonProps } from './FoldButtonProps';
2
- export declare const DefaultButton: import("@redneckz/uni-jsx").UNIComponent<FoldButtonProps, any, any>;
@@ -1,12 +0,0 @@
1
- import { ColorPalette } from '../../model/ContentPageDef';
2
- import { Picture } from '../../model/Picture';
3
- import { IconName } from '../Icon/IconProps';
4
- export interface FoldButtonProps {
5
- className?: string;
6
- hasContent?: boolean;
7
- primaryIcon?: Picture;
8
- icon: IconName;
9
- label: string;
10
- onClick: (e: any) => void;
11
- dataTheme?: ColorPalette;
12
- }
@@ -1 +0,0 @@
1
- export declare const getAccordionItems: (items: any) => any;
@@ -1,2 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.isBlockInRegistry = void 0;
3
- function isBlockInRegistry(blockType, registry) {
4
- return (blockType || '') in registry;
5
- }
6
- exports.isBlockInRegistry = isBlockInRegistry;
7
- //# sourceMappingURL=isBlockInRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAEA,SAAgB,iBAAiB,CAAC,SAA6B,EAAE,QAAwB;IACvF,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAFD,8CAEC"}
@@ -1,2 +0,0 @@
1
- import { FoldButtonProps } from './FoldButtonProps';
2
- export declare const DefaultButton: import("@redneckz/uni-jsx").UNIComponent<FoldButtonProps, any, any>;
@@ -1,12 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DefaultButton = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../Img/Img");
6
- exports.DefaultButton = (0, uni_jsx_1.JSX)(({ icon, label, dataTheme = '', onClick }) => {
7
- return ((0, jsx_runtime_1.jsxs)("button", { className: "border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-h4 pr-3", children: label }), icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
8
- icon,
9
- iconVersion: 'white',
10
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
11
- });
12
- //# sourceMappingURL=DefaultButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oCAAiC;AAGpB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7F,OAAO,CACL,oCACE,SAAS,EAAC,sIAAsI,gBACpI,SAAS,EACrB,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ,EAC5C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE;oBACL,IAAI;oBACJ,WAAW,EAAE,OAAO;iBACrB,EACD,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ColorPalette } from '../../model/ContentPageDef';
2
- import { Picture } from '../../model/Picture';
3
- import { IconName } from '../Icon/IconProps';
4
- export interface FoldButtonProps {
5
- className?: string;
6
- hasContent?: boolean;
7
- primaryIcon?: Picture;
8
- icon: IconName;
9
- label: string;
10
- onClick: (e: any) => void;
11
- dataTheme?: ColorPalette;
12
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoldButtonProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/FoldButtonProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const getAccordionItems: (items: any) => any;
@@ -1,13 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.getAccordionItems = void 0;
3
- const getAccordionItems = (items) => items?.map((item) => ({
4
- label: item.text || '',
5
- blocks: [
6
- {
7
- accordionBlockType: 'LinkList',
8
- documents: item.items || [],
9
- },
10
- ],
11
- }));
12
- exports.getAccordionItems = getAccordionItems;
13
- //# sourceMappingURL=getAccordionItems.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAccordionItems.js","sourceRoot":"","sources":["../../src/utils/getAccordionItems.ts"],"names":[],"mappings":";;AAAO,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,EAAE,CACzC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACpB,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;IACtB,MAAM,EAAE;QACN;YACE,kBAAkB,EAAE,UAAU;YAC9B,SAAS,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE;SAC5B;KACF;CACF,CAAC,CAAC,CAAC;AATO,QAAA,iBAAiB,qBASxB"}
@@ -1,2 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1,4 +0,0 @@
1
- export function isBlockInRegistry(blockType, registry) {
2
- return (blockType || '') in registry;
3
- }
4
- //# sourceMappingURL=isBlockInRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,SAA6B,EAAE,QAAwB;IACvF,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FoldButtonProps } from './FoldButtonProps';
2
- export declare const DefaultButton: import("@redneckz/uni-jsx").UNIComponent<FoldButtonProps, any, any>;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- export const DefaultButton = JSX(({ icon, label, dataTheme = '', onClick }) => {
5
- return (_jsxs("button", { className: "border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: onClick, children: [_jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (_jsx(Img, { image: {
6
- icon,
7
- iconVersion: 'white',
8
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
9
- });
10
- //# sourceMappingURL=DefaultButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7F,OAAO,CACL,kBACE,SAAS,EAAC,sIAAsI,gBACpI,SAAS,EACrB,OAAO,EAAE,OAAO,aAEhB,eAAM,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ,EAC5C,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,KAAK,EAAE;oBACL,IAAI;oBACJ,WAAW,EAAE,OAAO;iBACrB,EACD,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ColorPalette } from '../../model/ContentPageDef';
2
- import { Picture } from '../../model/Picture';
3
- import { IconName } from '../Icon/IconProps';
4
- export interface FoldButtonProps {
5
- className?: string;
6
- hasContent?: boolean;
7
- primaryIcon?: Picture;
8
- icon: IconName;
9
- label: string;
10
- onClick: (e: any) => void;
11
- dataTheme?: ColorPalette;
12
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FoldButtonProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoldButtonProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/FoldButtonProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const getAccordionItems: (items: any) => any;
@@ -1,10 +0,0 @@
1
- export const getAccordionItems = (items) => items?.map((item) => ({
2
- label: item.text || '',
3
- blocks: [
4
- {
5
- accordionBlockType: 'LinkList',
6
- documents: item.items || [],
7
- },
8
- ],
9
- }));
10
- //# sourceMappingURL=getAccordionItems.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAccordionItems.js","sourceRoot":"","sources":["../../src/utils/getAccordionItems.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,EAAE,CACzC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACpB,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;IACtB,MAAM,EAAE;QACN;YACE,kBAAkB,EAAE,UAAU;YAC9B,SAAS,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE;SAC5B;KACF;CACF,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1,2 +0,0 @@
1
- import { FoldButtonProps } from './FoldButtonProps';
2
- export declare const DefaultButton: import("@redneckz/uni-jsx").UNIComponent<FoldButtonProps, any, any>;
@@ -1,12 +0,0 @@
1
- import { ColorPalette } from '../../model/ContentPageDef';
2
- import { Picture } from '../../model/Picture';
3
- import { IconName } from '../Icon/IconProps';
4
- export interface FoldButtonProps {
5
- className?: string;
6
- hasContent?: boolean;
7
- primaryIcon?: Picture;
8
- icon: IconName;
9
- label: string;
10
- onClick: (e: any) => void;
11
- dataTheme?: ColorPalette;
12
- }
@@ -1 +0,0 @@
1
- export declare const getAccordionItems: (items: any) => any;
@@ -1,2 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.isBlockInRegistry = void 0;
3
- function isBlockInRegistry(blockType, registry) {
4
- return (blockType || '') in registry;
5
- }
6
- exports.isBlockInRegistry = isBlockInRegistry;
7
- //# sourceMappingURL=isBlockInRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAEA,SAAgB,iBAAiB,CAAC,SAA6B,EAAE,QAAwB;IACvF,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAFD,8CAEC"}
@@ -1,2 +0,0 @@
1
- import { FoldButtonProps } from './FoldButtonProps';
2
- export declare const DefaultButton: import("@redneckz/uni-jsx").UNIComponent<FoldButtonProps, any, any>;
@@ -1,12 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DefaultButton = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../Img/Img");
6
- exports.DefaultButton = (0, uni_jsx_1.JSX)(({ icon, label, dataTheme = '', onClick }) => {
7
- return ((0, jsx_runtime_1.jsxs)("button", { className: "border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-h4 pr-3", children: label }), icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
8
- icon,
9
- iconVersion: 'white',
10
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
11
- });
12
- //# sourceMappingURL=DefaultButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oCAAiC;AAGpB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7F,OAAO,CACL,oCACE,SAAS,EAAC,sIAAsI,gBACpI,SAAS,EACrB,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ,EAC5C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE;oBACL,IAAI;oBACJ,WAAW,EAAE,OAAO;iBACrB,EACD,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}