@redneckz/wildless-cms-uni-blocks 0.3.56 → 0.3.58

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 (595) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +405 -97
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/SafeIcon.svg +1 -1
  5. package/dist/components/BlockContent.d.ts +2 -1
  6. package/dist/components/Blocks.d.ts +2 -1
  7. package/dist/components/Blocks.js +4 -2
  8. package/dist/components/Blocks.js.map +1 -1
  9. package/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  10. package/dist/components/Calculator/BonusCalculatorForm.js +40 -0
  11. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
  12. package/dist/components/Calculator/Calculator.d.ts +5 -0
  13. package/dist/components/Calculator/Calculator.js +46 -0
  14. package/dist/components/Calculator/Calculator.js.map +1 -0
  15. package/dist/components/Calculator/CalculatorContent.d.ts +110 -0
  16. package/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
  17. package/dist/components/Calculator/CalculatorContent.js.map +1 -0
  18. package/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  19. package/dist/components/Calculator/CalculatorValueBlock.js +9 -0
  20. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
  21. package/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  22. package/dist/components/Calculator/CreditCalculatorForm.js +51 -0
  23. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
  24. package/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  25. package/dist/components/Calculator/DepositCalculatorForm.js +41 -0
  26. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
  27. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  28. package/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
  29. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  30. package/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  31. package/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
  32. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  33. package/dist/components/Calculator/constants.d.ts +7 -0
  34. package/dist/components/Calculator/constants.js +10 -0
  35. package/dist/components/Calculator/constants.js.map +1 -0
  36. package/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
  37. package/dist/components/Calculator/getCalculatorParams.js +11 -0
  38. package/dist/components/Calculator/getCalculatorParams.js.map +1 -0
  39. package/dist/components/Calculator/getCreditRate.d.ts +7 -0
  40. package/dist/components/Calculator/getCreditRate.js +13 -0
  41. package/dist/components/Calculator/getCreditRate.js.map +1 -0
  42. package/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
  43. package/dist/components/Calculator/getDefaultMonths.js +8 -0
  44. package/dist/components/Calculator/getDefaultMonths.js.map +1 -0
  45. package/dist/components/Calculator/getDefaultSum.d.ts +2 -0
  46. package/dist/components/Calculator/getDefaultSum.js +8 -0
  47. package/dist/components/Calculator/getDefaultSum.js.map +1 -0
  48. package/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
  49. package/dist/components/Calculator/getMonthlyPayment.js +19 -0
  50. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
  51. package/dist/components/Calculator/renderButtonSection.d.ts +1 -0
  52. package/dist/components/Calculator/renderButtonSection.js +9 -0
  53. package/dist/components/Calculator/renderButtonSection.js.map +1 -0
  54. package/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
  55. package/dist/components/Calculator/renderCalculatorList.js +17 -0
  56. package/dist/components/Calculator/renderCalculatorList.js.map +1 -0
  57. package/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  58. package/dist/components/Calculator/renderInitialFeeInput.js +18 -0
  59. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
  60. package/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
  61. package/dist/components/Calculator/renderMonthsInput.js +15 -0
  62. package/dist/components/Calculator/renderMonthsInput.js.map +1 -0
  63. package/dist/components/Calculator/renderProposal.d.ts +1 -0
  64. package/dist/components/Calculator/renderProposal.js +10 -0
  65. package/dist/components/Calculator/renderProposal.js.map +1 -0
  66. package/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
  67. package/dist/components/Calculator/renderProposalMortgage.js +9 -0
  68. package/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
  69. package/dist/components/Calculator/renderRate.d.ts +8 -0
  70. package/dist/components/Calculator/renderRate.js +9 -0
  71. package/dist/components/Calculator/renderRate.js.map +1 -0
  72. package/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
  73. package/dist/components/Calculator/renderRealEstateValue.js +15 -0
  74. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
  75. package/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
  76. package/dist/components/Calculator/renderWantedSumInput.js +19 -0
  77. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
  78. package/dist/components/ContentPage/ContentPage.d.ts +1 -1
  79. package/dist/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
  80. package/{mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js → dist/components/GroupBlock/BlocksTypeProps.js} +1 -1
  81. package/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
  82. package/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
  83. package/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
  84. package/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
  85. package/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
  86. package/dist/components/GroupBlock/GroupBlock.js +19 -0
  87. package/dist/components/GroupBlock/GroupBlock.js.map +1 -0
  88. package/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
  89. package/dist/components/GroupBlock/GroupBlockContent.js +2 -0
  90. package/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
  91. package/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
  92. package/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
  93. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
  94. package/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
  95. package/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
  96. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
  97. package/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
  98. package/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
  99. package/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
  100. package/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
  101. package/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
  102. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
  103. package/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
  104. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  105. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  106. package/dist/components/ProductGallery/ProductGallery.js +37 -8
  107. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  108. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  109. package/dist/types.d.ts +1 -0
  110. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  111. package/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
  112. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  113. package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
  114. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  115. package/dist/ui-kit/InputRange/InputRange.js +2 -2
  116. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  117. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  118. package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
  119. package/dist/utils/style2className.d.ts +1 -1
  120. package/dist/utils/style2className.js +3 -1
  121. package/dist/utils/style2className.js.map +1 -1
  122. package/lib/common.css +1 -1
  123. package/lib/components/BlockContent.d.ts +2 -1
  124. package/lib/components/Blocks.d.ts +2 -1
  125. package/lib/components/Blocks.js +4 -2
  126. package/lib/components/Blocks.js.map +1 -1
  127. package/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  128. package/lib/components/Calculator/BonusCalculatorForm.js +38 -0
  129. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
  130. package/lib/components/Calculator/Calculator.d.ts +5 -0
  131. package/lib/components/{ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts → Calculator/Calculator.fixture.d.ts} +1 -1
  132. package/lib/components/Calculator/Calculator.js +44 -0
  133. package/lib/components/Calculator/Calculator.js.map +1 -0
  134. package/lib/components/Calculator/CalculatorContent.d.ts +110 -0
  135. package/lib/components/Calculator/CalculatorContent.js +2 -0
  136. package/lib/components/Calculator/CalculatorContent.js.map +1 -0
  137. package/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  138. package/lib/components/Calculator/CalculatorValueBlock.js +7 -0
  139. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
  140. package/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  141. package/lib/components/Calculator/CreditCalculatorForm.js +49 -0
  142. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
  143. package/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  144. package/lib/components/Calculator/DepositCalculatorForm.js +39 -0
  145. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
  146. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  147. package/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
  148. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  149. package/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  150. package/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
  151. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  152. package/lib/components/Calculator/constants.d.ts +7 -0
  153. package/lib/components/Calculator/constants.js +8 -0
  154. package/lib/components/Calculator/constants.js.map +1 -0
  155. package/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
  156. package/lib/components/Calculator/getCalculatorParams.js +8 -0
  157. package/lib/components/Calculator/getCalculatorParams.js.map +1 -0
  158. package/lib/components/Calculator/getCreditRate.d.ts +7 -0
  159. package/lib/components/Calculator/getCreditRate.js +10 -0
  160. package/lib/components/Calculator/getCreditRate.js.map +1 -0
  161. package/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
  162. package/lib/components/Calculator/getDefaultMonths.js +5 -0
  163. package/lib/components/Calculator/getDefaultMonths.js.map +1 -0
  164. package/lib/components/Calculator/getDefaultSum.d.ts +2 -0
  165. package/lib/components/Calculator/getDefaultSum.js +5 -0
  166. package/lib/components/Calculator/getDefaultSum.js.map +1 -0
  167. package/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
  168. package/lib/components/Calculator/getMonthlyPayment.js +16 -0
  169. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
  170. package/lib/components/Calculator/renderButtonSection.d.ts +1 -0
  171. package/lib/components/Calculator/renderButtonSection.js +6 -0
  172. package/lib/components/Calculator/renderButtonSection.js.map +1 -0
  173. package/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
  174. package/lib/components/Calculator/renderCalculatorList.js +14 -0
  175. package/lib/components/Calculator/renderCalculatorList.js.map +1 -0
  176. package/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  177. package/lib/components/Calculator/renderInitialFeeInput.js +15 -0
  178. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
  179. package/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
  180. package/lib/components/Calculator/renderMonthsInput.js +12 -0
  181. package/lib/components/Calculator/renderMonthsInput.js.map +1 -0
  182. package/lib/components/Calculator/renderProposal.d.ts +1 -0
  183. package/lib/components/Calculator/renderProposal.js +7 -0
  184. package/lib/components/Calculator/renderProposal.js.map +1 -0
  185. package/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
  186. package/lib/components/Calculator/renderProposalMortgage.js +6 -0
  187. package/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
  188. package/lib/components/Calculator/renderRate.d.ts +8 -0
  189. package/lib/components/Calculator/renderRate.js +6 -0
  190. package/lib/components/Calculator/renderRate.js.map +1 -0
  191. package/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
  192. package/lib/components/Calculator/renderRealEstateValue.js +12 -0
  193. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
  194. package/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
  195. package/lib/components/Calculator/renderWantedSumInput.js +16 -0
  196. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
  197. package/lib/components/ContentPage/ContentPage.d.ts +1 -1
  198. package/lib/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
  199. package/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
  200. package/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
  201. package/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
  202. package/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
  203. package/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
  204. package/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
  205. package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +4 -0
  206. package/lib/components/GroupBlock/GroupBlock.js +17 -0
  207. package/lib/components/GroupBlock/GroupBlock.js.map +1 -0
  208. package/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
  209. package/lib/components/GroupBlock/GroupBlockContent.js +2 -0
  210. package/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
  211. package/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
  212. package/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
  213. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
  214. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
  215. package/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
  216. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
  217. package/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
  218. package/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
  219. package/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
  220. package/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
  221. package/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
  222. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
  223. package/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
  224. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  225. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  226. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -0
  227. package/lib/components/ProductGallery/ProductGallery.js +37 -8
  228. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  229. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  230. package/lib/types.d.ts +1 -0
  231. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  232. package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  233. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  234. package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
  235. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  236. package/lib/ui-kit/InputRange/InputRange.js +2 -2
  237. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  238. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  239. package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
  240. package/lib/utils/style2className.d.ts +1 -1
  241. package/lib/utils/style2className.js +3 -1
  242. package/lib/utils/style2className.js.map +1 -1
  243. package/mobile/bundle/bundle.umd.js +3 -1
  244. package/mobile/bundle/bundle.umd.min.js +1 -1
  245. package/mobile/dist/components/BlockContent.d.ts +2 -1
  246. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  247. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +40 -0
  248. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
  249. package/mobile/dist/components/Calculator/Calculator.d.ts +5 -0
  250. package/mobile/dist/components/Calculator/Calculator.js +46 -0
  251. package/mobile/dist/components/Calculator/Calculator.js.map +1 -0
  252. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +110 -0
  253. package/mobile/dist/components/Calculator/CalculatorContent.js +2 -0
  254. package/mobile/dist/components/Calculator/CalculatorContent.js.map +1 -0
  255. package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  256. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +9 -0
  257. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
  258. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  259. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +51 -0
  260. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
  261. package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  262. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +41 -0
  263. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
  264. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  265. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
  266. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  267. package/mobile/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  268. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
  269. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  270. package/mobile/dist/components/Calculator/constants.d.ts +7 -0
  271. package/mobile/dist/components/Calculator/constants.js +10 -0
  272. package/mobile/dist/components/Calculator/constants.js.map +1 -0
  273. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
  274. package/mobile/dist/components/Calculator/getCalculatorParams.js +11 -0
  275. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -0
  276. package/mobile/dist/components/Calculator/getCreditRate.d.ts +7 -0
  277. package/mobile/dist/components/Calculator/getCreditRate.js +13 -0
  278. package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -0
  279. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
  280. package/mobile/dist/components/Calculator/getDefaultMonths.js +8 -0
  281. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -0
  282. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +2 -0
  283. package/mobile/dist/components/Calculator/getDefaultSum.js +8 -0
  284. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -0
  285. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
  286. package/mobile/dist/components/Calculator/getMonthlyPayment.js +19 -0
  287. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
  288. package/mobile/dist/components/Calculator/renderButtonSection.d.ts +1 -0
  289. package/mobile/dist/components/Calculator/renderButtonSection.js +9 -0
  290. package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -0
  291. package/mobile/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
  292. package/mobile/dist/components/Calculator/renderCalculatorList.js +17 -0
  293. package/mobile/dist/components/Calculator/renderCalculatorList.js.map +1 -0
  294. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  295. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +18 -0
  296. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
  297. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
  298. package/mobile/dist/components/Calculator/renderMonthsInput.js +15 -0
  299. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -0
  300. package/mobile/dist/components/Calculator/renderProposal.d.ts +1 -0
  301. package/mobile/dist/components/Calculator/renderProposal.js +10 -0
  302. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -0
  303. package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
  304. package/mobile/dist/components/Calculator/renderProposalMortgage.js +9 -0
  305. package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
  306. package/mobile/dist/components/Calculator/renderRate.d.ts +8 -0
  307. package/mobile/dist/components/Calculator/renderRate.js +9 -0
  308. package/mobile/dist/components/Calculator/renderRate.js.map +1 -0
  309. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
  310. package/mobile/dist/components/Calculator/renderRealEstateValue.js +15 -0
  311. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
  312. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
  313. package/mobile/dist/components/Calculator/renderWantedSumInput.js +19 -0
  314. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
  315. package/mobile/dist/components/ContentPage/ContentPage.d.ts +1 -1
  316. package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
  317. package/mobile/dist/components/GroupBlock/BlocksTypeProps.js +2 -0
  318. package/mobile/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
  319. package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
  320. package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
  321. package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
  322. package/mobile/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
  323. package/mobile/dist/components/GroupBlock/GroupBlock.js +19 -0
  324. package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -0
  325. package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
  326. package/mobile/dist/components/GroupBlock/GroupBlockContent.js +2 -0
  327. package/mobile/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
  328. package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
  329. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
  330. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
  331. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
  332. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
  333. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
  334. package/mobile/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
  335. package/mobile/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
  336. package/mobile/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
  337. package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
  338. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
  339. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
  340. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
  341. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  342. package/mobile/dist/types.d.ts +1 -0
  343. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  344. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
  345. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  346. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
  347. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  348. package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
  349. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  350. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  351. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
  352. package/mobile/dist/utils/style2className.d.ts +1 -1
  353. package/mobile/dist/utils/style2className.js +3 -1
  354. package/mobile/dist/utils/style2className.js.map +1 -1
  355. package/mobile/lib/components/BlockContent.d.ts +2 -1
  356. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  357. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +38 -0
  358. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
  359. package/mobile/lib/components/Calculator/Calculator.d.ts +5 -0
  360. package/mobile/lib/components/Calculator/Calculator.js +44 -0
  361. package/mobile/lib/components/Calculator/Calculator.js.map +1 -0
  362. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +110 -0
  363. package/mobile/lib/components/Calculator/CalculatorContent.js +2 -0
  364. package/mobile/lib/components/Calculator/CalculatorContent.js.map +1 -0
  365. package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  366. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +7 -0
  367. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
  368. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  369. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +49 -0
  370. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
  371. package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  372. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +39 -0
  373. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
  374. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  375. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
  376. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  377. package/mobile/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  378. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
  379. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  380. package/mobile/lib/components/Calculator/constants.d.ts +7 -0
  381. package/mobile/lib/components/Calculator/constants.js +8 -0
  382. package/mobile/lib/components/Calculator/constants.js.map +1 -0
  383. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
  384. package/mobile/lib/components/Calculator/getCalculatorParams.js +8 -0
  385. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -0
  386. package/mobile/lib/components/Calculator/getCreditRate.d.ts +7 -0
  387. package/mobile/lib/components/Calculator/getCreditRate.js +10 -0
  388. package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -0
  389. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
  390. package/mobile/lib/components/Calculator/getDefaultMonths.js +5 -0
  391. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -0
  392. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +2 -0
  393. package/mobile/lib/components/Calculator/getDefaultSum.js +5 -0
  394. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -0
  395. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
  396. package/mobile/lib/components/Calculator/getMonthlyPayment.js +16 -0
  397. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
  398. package/mobile/lib/components/Calculator/renderButtonSection.d.ts +1 -0
  399. package/mobile/lib/components/Calculator/renderButtonSection.js +6 -0
  400. package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -0
  401. package/mobile/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
  402. package/mobile/lib/components/Calculator/renderCalculatorList.js +14 -0
  403. package/mobile/lib/components/Calculator/renderCalculatorList.js.map +1 -0
  404. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  405. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +15 -0
  406. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
  407. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
  408. package/mobile/lib/components/Calculator/renderMonthsInput.js +12 -0
  409. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -0
  410. package/mobile/lib/components/Calculator/renderProposal.d.ts +1 -0
  411. package/mobile/lib/components/Calculator/renderProposal.js +7 -0
  412. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -0
  413. package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
  414. package/mobile/lib/components/Calculator/renderProposalMortgage.js +6 -0
  415. package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
  416. package/mobile/lib/components/Calculator/renderRate.d.ts +8 -0
  417. package/mobile/lib/components/Calculator/renderRate.js +6 -0
  418. package/mobile/lib/components/Calculator/renderRate.js.map +1 -0
  419. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
  420. package/mobile/lib/components/Calculator/renderRealEstateValue.js +12 -0
  421. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
  422. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
  423. package/mobile/lib/components/Calculator/renderWantedSumInput.js +16 -0
  424. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
  425. package/mobile/lib/components/ContentPage/ContentPage.d.ts +1 -1
  426. package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
  427. package/mobile/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
  428. package/mobile/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
  429. package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
  430. package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
  431. package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
  432. package/mobile/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
  433. package/mobile/lib/components/GroupBlock/GroupBlock.js +17 -0
  434. package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -0
  435. package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
  436. package/mobile/lib/components/GroupBlock/GroupBlockContent.js +2 -0
  437. package/mobile/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
  438. package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
  439. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
  440. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
  441. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
  442. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
  443. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
  444. package/mobile/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
  445. package/mobile/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
  446. package/mobile/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
  447. package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
  448. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
  449. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
  450. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
  451. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  452. package/mobile/lib/types.d.ts +1 -0
  453. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  454. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  455. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  456. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
  457. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  458. package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
  459. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  460. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  461. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
  462. package/mobile/lib/utils/style2className.d.ts +1 -1
  463. package/mobile/lib/utils/style2className.js +3 -1
  464. package/mobile/lib/utils/style2className.js.map +1 -1
  465. package/mobile/src/common.css +7 -0
  466. package/mobile/src/components/BlockContent.ts +3 -1
  467. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
  468. package/mobile/src/components/Calculator/Calculator.tsx +141 -0
  469. package/mobile/src/components/Calculator/CalculatorContent.ts +134 -0
  470. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
  471. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
  472. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
  473. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
  474. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
  475. package/mobile/src/components/Calculator/constants.ts +8 -0
  476. package/mobile/src/components/Calculator/getCalculatorParams.ts +16 -0
  477. package/mobile/src/components/Calculator/getCreditRate.ts +18 -0
  478. package/mobile/src/components/Calculator/getDefaultMonths.ts +7 -0
  479. package/mobile/src/components/Calculator/getDefaultSum.ts +7 -0
  480. package/mobile/src/components/Calculator/getMonthlyPayment.ts +32 -0
  481. package/mobile/src/components/Calculator/renderButtonSection.tsx +7 -0
  482. package/mobile/src/components/Calculator/renderCalculatorList.tsx +43 -0
  483. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
  484. package/mobile/src/components/Calculator/renderMonthsInput.tsx +34 -0
  485. package/mobile/src/components/Calculator/renderProposal.tsx +14 -0
  486. package/mobile/src/components/Calculator/renderProposalMortgage.tsx +17 -0
  487. package/mobile/src/components/Calculator/renderRate.tsx +23 -0
  488. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +33 -0
  489. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +49 -0
  490. package/mobile/src/components/ContentPage/ContentPage.page.json +9 -8
  491. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  492. package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +40 -0
  493. package/mobile/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
  494. package/mobile/src/components/GroupBlock/GroupBlock.example.json +27 -0
  495. package/mobile/src/components/GroupBlock/GroupBlock.tsx +43 -0
  496. package/mobile/src/components/GroupBlock/GroupBlockContent.ts +23 -0
  497. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
  498. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
  499. package/mobile/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
  500. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
  501. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +4 -2
  502. package/mobile/src/components/ProductGallery/ProductGallery.example.json +8 -10
  503. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
  504. package/mobile/src/icons/SafeIcon.svg +7 -1
  505. package/mobile/src/types.ts +2 -0
  506. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  507. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
  508. package/mobile/src/ui-kit/InputRange/InputRange.tsx +7 -9
  509. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  510. package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -1
  511. package/mobile/src/utils/style2className.ts +3 -2
  512. package/package.json +1 -1
  513. package/src/common.css +7 -0
  514. package/src/components/BlockContent.ts +3 -1
  515. package/src/components/Blocks.ts +4 -2
  516. package/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
  517. package/src/components/Calculator/Calculator.fixture.tsx +131 -0
  518. package/src/components/Calculator/Calculator.tsx +141 -0
  519. package/src/components/Calculator/CalculatorContent.ts +134 -0
  520. package/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
  521. package/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
  522. package/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
  523. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
  524. package/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
  525. package/src/components/Calculator/constants.ts +8 -0
  526. package/src/components/Calculator/getCalculatorParams.ts +16 -0
  527. package/src/components/Calculator/getCreditRate.ts +18 -0
  528. package/src/components/Calculator/getDefaultMonths.ts +7 -0
  529. package/src/components/Calculator/getDefaultSum.ts +7 -0
  530. package/src/components/Calculator/getMonthlyPayment.ts +32 -0
  531. package/src/components/Calculator/renderButtonSection.tsx +7 -0
  532. package/src/components/Calculator/renderCalculatorList.tsx +43 -0
  533. package/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
  534. package/src/components/Calculator/renderMonthsInput.tsx +34 -0
  535. package/src/components/Calculator/renderProposal.tsx +14 -0
  536. package/src/components/Calculator/renderProposalMortgage.tsx +17 -0
  537. package/src/components/Calculator/renderRate.tsx +23 -0
  538. package/src/components/Calculator/renderRealEstateValue.tsx +33 -0
  539. package/src/components/Calculator/renderWantedSumInput.tsx +49 -0
  540. package/src/components/ContentPage/ContentPage.page.json +9 -8
  541. package/src/components/ContentPage/ContentPage.tsx +2 -2
  542. package/src/components/GroupBlock/BlocksTypeProps.ts +40 -0
  543. package/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
  544. package/src/components/GroupBlock/GroupBlock.example.json +27 -0
  545. package/src/components/GroupBlock/GroupBlock.fixture.tsx +51 -0
  546. package/src/components/GroupBlock/GroupBlock.tsx +43 -0
  547. package/src/components/GroupBlock/GroupBlockContent.ts +23 -0
  548. package/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
  549. package/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
  550. package/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
  551. package/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
  552. package/src/components/OtherProducts/OtherProductsContent.ts +4 -2
  553. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  554. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  555. package/src/components/ProductGallery/ProductGallery.example.json +8 -10
  556. package/src/components/ProductGallery/ProductGallery.fixture.tsx +146 -104
  557. package/src/components/ProductGallery/ProductGallery.tsx +73 -24
  558. package/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
  559. package/src/icons/SafeIcon.svg +7 -1
  560. package/src/types.ts +2 -0
  561. package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  562. package/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
  563. package/src/ui-kit/InputRange/InputRange.tsx +7 -9
  564. package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  565. package/src/ui-kit/Tabs/TabsProps.ts +2 -1
  566. package/src/utils/style2className.ts +3 -2
  567. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  568. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -55
  569. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  570. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  571. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  572. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  573. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
  574. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  575. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  576. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
  577. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  578. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  579. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -55
  580. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  581. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  582. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  583. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  584. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
  585. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  586. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  587. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
  588. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  589. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
  590. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -126
  591. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
  592. package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
  593. package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +0 -186
  594. package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -126
  595. package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getCreditRate = void 0;
3
+ const DEFAULT_RATE = 10.2;
4
+ const getCreditRate = (params) => {
5
+ const { calculatorParams, isInsurance } = params;
6
+ if (!calculatorParams)
7
+ return DEFAULT_RATE;
8
+ return isInsurance
9
+ ? calculatorParams?.rateWithInsurance || DEFAULT_RATE
10
+ : calculatorParams?.rateWithoutInsurance || DEFAULT_RATE;
11
+ };
12
+ exports.getCreditRate = getCreditRate;
13
+ //# sourceMappingURL=getCreditRate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCreditRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCreditRate.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAG,IAAI,CAAC;AAOnB,MAAM,aAAa,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC3D,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,gBAAgB;QAAE,OAAO,YAAY,CAAC;IAE3C,OAAO,WAAW;QAChB,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,YAAY;QACrD,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,IAAI,YAAY,CAAC;AAC7D,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
@@ -0,0 +1,2 @@
1
+ import type { CalculatorParams } from './CalculatorContent';
2
+ export declare const getDefaultMonths: (calculatorParams: CalculatorParams) => number;
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getDefaultMonths = void 0;
3
+ const constants_1 = require("./constants");
4
+ const getDefaultMonths = (calculatorParams) => calculatorParams.maxMonths && calculatorParams.minMonths
5
+ ? Math.round((calculatorParams.maxMonths - calculatorParams.minMonths) / 2)
6
+ : constants_1.DEFAULT_MONTHS;
7
+ exports.getDefaultMonths = getDefaultMonths;
8
+ //# sourceMappingURL=getDefaultMonths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultMonths.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAGtC,MAAM,gBAAgB,GAAG,CAAC,gBAAkC,EAAE,EAAE,CACrE,gBAAgB,CAAC,SAAS,IAAI,gBAAgB,CAAC,SAAS;IACtD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3E,CAAC,CAAC,0BAAc,CAAC;AAHR,QAAA,gBAAgB,oBAGR"}
@@ -0,0 +1,2 @@
1
+ import type { CalculatorParams } from './CalculatorContent';
2
+ export declare const getDefaultSum: (calculatorParams: CalculatorParams) => number;
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getDefaultSum = void 0;
3
+ const constants_1 = require("./constants");
4
+ const getDefaultSum = (calculatorParams) => calculatorParams.maxSum && calculatorParams.minSum
5
+ ? (calculatorParams.maxSum - calculatorParams.minSum) / 2
6
+ : constants_1.DEFAULT_SUM;
7
+ exports.getDefaultSum = getDefaultSum;
8
+ //# sourceMappingURL=getDefaultSum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultSum.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAGnC,MAAM,aAAa,GAAG,CAAC,gBAAkC,EAAE,EAAE,CAClE,gBAAgB,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM;IAChD,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC;IACzD,CAAC,CAAC,uBAAW,CAAC;AAHL,QAAA,aAAa,iBAGR"}
@@ -0,0 +1,11 @@
1
+ import type { CalculatorParams } from './CalculatorContent';
2
+ declare type PaymentType = 'annuity' | 'differentiated';
3
+ interface GetMonthlyPaymentParams {
4
+ calculatorParams?: CalculatorParams;
5
+ paymentType: PaymentType;
6
+ rate: number;
7
+ sum: number;
8
+ months: number;
9
+ }
10
+ export declare const getMonthlyPayment: (params: GetMonthlyPaymentParams) => number;
11
+ export {};
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getMonthlyPayment = void 0;
3
+ const clamp_1 = require("../../utils/clamp");
4
+ const constants_1 = require("./constants");
5
+ const getMonthlyPayment = (params) => {
6
+ const { calculatorParams, paymentType, rate, sum, months } = params;
7
+ if (!calculatorParams)
8
+ return 0;
9
+ const finalSum = (0, clamp_1.clamp)(sum, calculatorParams.minSum || constants_1.DEFAULT_MIN_SUM, calculatorParams.maxSum || constants_1.DEFAULT_MAX_SUM);
10
+ if (paymentType === 'annuity') {
11
+ const annuityCoef = Number(rate) / (constants_1.MONTHS_IN_YEAR * 100);
12
+ return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
13
+ }
14
+ else {
15
+ return finalSum / months + finalSum * (Number(rate) / 12);
16
+ }
17
+ };
18
+ exports.getMonthlyPayment = getMonthlyPayment;
19
+ //# sourceMappingURL=getMonthlyPayment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/getMonthlyPayment.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,2CAA+E;AAaxE,MAAM,iBAAiB,GAAG,CAAC,MAA+B,EAAE,EAAE;IACnE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEpE,IAAI,CAAC,gBAAgB;QAAE,OAAO,CAAC,CAAC;IAEhC,MAAM,QAAQ,GAAG,IAAA,aAAK,EACpB,GAAG,EACH,gBAAgB,CAAC,MAAM,IAAI,2BAAe,EAC1C,gBAAgB,CAAC,MAAM,IAAI,2BAAe,CAC3C,CAAC;IAEF,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,0BAAc,GAAG,GAAG,CAAC,CAAC;QAC1D,OAAO,QAAQ,GAAG,CAAC,WAAW,GAAG,WAAW,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACzF;SAAM;QACL,OAAO,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC;AAjBW,QAAA,iBAAiB,qBAiB5B"}
@@ -0,0 +1 @@
1
+ export declare function renderButtonSection(context: any, buttons: any): any;
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderButtonSection = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
5
+ function renderButtonSection(context, buttons) {
6
+ return buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-7 gap-2" })) : null;
7
+ }
8
+ exports.renderButtonSection = renderButtonSection;
9
+ //# sourceMappingURL=renderButtonSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderButtonSection.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderButtonSection.tsx"],"names":[],"mappings":";;;AAAA,qEAAkE;AAElE,SAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO;IAClD,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,0BAA0B,GAAG,CAC3F,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAJD,kDAIC"}
@@ -0,0 +1,10 @@
1
+ import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
+ import type { CalculatorBlockDef } from './CalculatorContent';
3
+ import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
4
+ declare type EmbeddableCalcBlocks = {
5
+ blockCalcTabs?: CalculatorBlockDef[];
6
+ context: ContentPageContext;
7
+ className?: string;
8
+ };
9
+ export declare const renderCalculatorList: ({ blockCalcTabs, context, className, }: EmbeddableCalcBlocks) => any[] | null;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderCalculatorList = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const EmbeddableCalcBlocks_1 = require("./EmbeddableCalcBlocks");
5
+ const renderCalculatorList = ({ blockCalcTabs, context, className, }) => {
6
+ return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
7
+ };
8
+ exports.renderCalculatorList = renderCalculatorList;
9
+ const renderBlock = ({ context, className }) => (blockCalcTabs, i) => {
10
+ const type = blockCalcTabs?.calcType;
11
+ if (!type || !(type in EmbeddableCalcBlocks_1.EmbeddableCalcBlocks)) {
12
+ return null;
13
+ }
14
+ const EmbeddedBlock = EmbeddableCalcBlocks_1.EmbeddableCalcBlocks[type];
15
+ return ((0, jsx_runtime_1.jsx)("section", { className: `box-border relative flex grow-0 shrink-0 basis-full ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: `box-border p-9 w-full`, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "!p-0 flex justify-between" }) }) }, `${String(i)}`));
16
+ };
17
+ //# sourceMappingURL=renderCalculatorList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderCalculatorList.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorList.tsx"],"names":[],"mappings":";;;AAGA,iEAAmF;AAQ5E,MAAM,oBAAoB,GAAG,CAAC,EACnC,aAAa,EACb,OAAO,EACP,SAAS,GACY,EAAE,EAAE;IACzB,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEF,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,oCAEE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAE,uBAAuB,YACrC,uBAAC,aAAa,IACZ,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,SAAS,EAAC,2BAA2B,GACrC,GACE,IAVD,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAWX,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
+ import type { CalculatorParams } from './CalculatorContent';
3
+ interface RenderWantedSumInputProps {
4
+ calculatorParams: CalculatorParams;
5
+ moneyValue: number | undefined;
6
+ defaultSum: number;
7
+ setMoneyValue: InputRangeProps['onChange'];
8
+ }
9
+ export declare function renderInitialFeeInput(props: RenderWantedSumInputProps): any;
10
+ export {};
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderInitialFeeInput = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
5
+ const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
6
+ const constants_1 = require("./constants");
7
+ const STEP_MONEY = 1000;
8
+ function renderInitialFeeInput(props) {
9
+ const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
10
+ const minSum = calculatorParams?.minSum || constants_1.DEFAULT_MIN_SUM;
11
+ const maxSum = calculatorParams?.maxSum || constants_1.DEFAULT_MAX_SUM;
12
+ return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title: "\u041F\u0435\u0440\u0432\u043E\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0437\u043D\u043E\u0441, \u20BD ", items: [
13
+ `От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} рублей`,
14
+ `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} рублей`,
15
+ ], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
16
+ }
17
+ exports.renderInitialFeeInput = renderInitialFeeInput;
18
+ //# sourceMappingURL=renderInitialFeeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderInitialFeeInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInitialFeeInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAEhE,iFAA8E;AAC9E,2CAA+D;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AASxB,SAAgB,qBAAqB,CAAC,KAAgC;IACpE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAE3D,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAC,8HAA0B,EAChC,KAAK,EAAE;YACL,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,SAAS;YAC9C,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,SAAS;SAC/C,EACD,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC;AArBD,sDAqBC"}
@@ -0,0 +1,11 @@
1
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
+ interface RenderMonthsInputProps {
3
+ title: string;
4
+ minMonths: number;
5
+ maxMonths: number;
6
+ monthsValue: number | undefined;
7
+ defaultMonths: number;
8
+ setMonthsValue: InputRangeProps['onChange'];
9
+ }
10
+ export declare function renderMonthsInput(props: RenderMonthsInputProps): any;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderMonthsInput = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
5
+ const STEP_MONTHS = 1;
6
+ function renderMonthsInput(props) {
7
+ const { title, minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
8
+ const monthText = (month) => {
9
+ const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
10
+ return `${month} ${text}`;
11
+ };
12
+ return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }));
13
+ }
14
+ exports.renderMonthsInput = renderMonthsInput;
15
+ //# sourceMappingURL=renderMonthsInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAWtB,SAAgB,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC1F,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7D,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,IAAI,aAAa,EACnC,QAAQ,EAAE,cAAc,GACxB,CACH,CAAC;AACJ,CAAC;AAnBD,8CAmBC"}
@@ -0,0 +1 @@
1
+ export declare function renderProposal(monthlyPayment: number): any;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderProposal = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
5
+ const Button_1 = require("../../ui-kit/Button/Button");
6
+ function renderProposal(monthlyPayment) {
7
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "box-border ", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-base font-light", children: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436" }), (0, jsx_runtime_1.jsxs)("div", { className: "text-title mb-3 font-normal", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(Math.round(monthlyPayment)), " \u20BD"] }), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-[50px] w-full", text: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443", version: "primary", href: "#" })] }));
8
+ }
9
+ exports.renderProposal = renderProposal;
10
+ //# sourceMappingURL=renderProposal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderProposal.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderProposal.tsx"],"names":[],"mappings":";;;AAAA,iFAA8E;AAC9E,uDAAoD;AAEpD,SAAgB,cAAc,CAAC,cAAsB;IACnD,OAAO,CACL,iCAAK,SAAS,EAAC,aAAa,aAC1B,gCAAK,SAAS,EAAC,sBAAsB,wHAAyB,EAC9D,iCAAK,SAAS,EAAC,6BAA6B,aACzC,IAAA,iDAAuB,EAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,eAChD,EACN,uBAAC,eAAM,IAAC,SAAS,EAAC,kBAAkB,EAAC,IAAI,EAAC,6FAAkB,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,GAAG,IACtF,CACP,CAAC;AACJ,CAAC;AAVD,wCAUC"}
@@ -0,0 +1,7 @@
1
+ declare type porposalMortgage = {
2
+ credit: number;
3
+ period: number;
4
+ taxRefund: number;
5
+ };
6
+ export declare function renderProposalMortgage({ credit, period, taxRefund }: porposalMortgage): any;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderProposalMortgage = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
5
+ function renderProposalMortgage({ credit, period, taxRefund }) {
6
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: credit, postfix: "\u20BD" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0440\u043E\u043A", value: period, postfix: "\u043B\u0435\u0442" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u041D\u0430\u043B\u043E\u0433\u043E\u0432\u044B\u0439 \u0432\u044B\u0447\u0435\u0442", value: taxRefund, postfix: "\u20BD" })] }));
7
+ }
8
+ exports.renderProposalMortgage = renderProposalMortgage;
9
+ //# sourceMappingURL=renderProposalMortgage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderProposalMortgage.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderProposalMortgage.tsx"],"names":[],"mappings":";;;AAAA,iEAA8D;AAQ9D,SAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAoB;IACpF,OAAO,CACL,4CACG,uBAAC,2CAAoB,IAAC,KAAK,EAAC,2EAAe,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,GAAG,EACzE,uBAAC,2CAAoB,IAAC,KAAK,EAAC,0BAAM,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,oBAAK,GAAG,EAClE,uBAAC,2CAAoB,IAAC,KAAK,EAAC,uFAAiB,EAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAC,QAAG,GAAG,IAC3E,CACP,CAAC;AACJ,CAAC;AARD,wDAQC"}
@@ -0,0 +1,8 @@
1
+ declare type rateType = {
2
+ rate: number;
3
+ title?: string;
4
+ sup?: string;
5
+ className?: string;
6
+ };
7
+ export declare function renderRate({ rate, title, sup, className }: rateType): any;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderRate = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ function renderRate({ rate, title, sup, className = '' }) {
5
+ const rateFormat = String(rate).replace('.', ',');
6
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-sm font-light ml-3", children: title }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-start", children: [(0, jsx_runtime_1.jsx)("span", { className: `calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${className}`, children: rateFormat }), sup ? (0, jsx_runtime_1.jsx)("span", { className: "calc-rate-text text-[65px] leading-[75px]", children: sup }) : ''] })] }));
7
+ }
8
+ exports.renderRate = renderRate;
9
+ //# sourceMappingURL=renderRate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRate.tsx"],"names":[],"mappings":";;;AAOA,SAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAG,EAAE,EAAY;IACvE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAClD,OAAO,CACL,4CACE,gCAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EACtD,iCAAK,SAAS,EAAC,oBAAoB,aACjC,iCACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,YAEhG,UAAU,GACN,EACN,GAAG,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,2CAA2C,YAAE,GAAG,GAAQ,CAAC,CAAC,CAAC,EAAE,IAChF,IACF,CACP,CAAC;AACJ,CAAC;AAfD,gCAeC"}
@@ -0,0 +1,10 @@
1
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
+ import type { CalculatorParams } from './CalculatorContent';
3
+ interface RenderRealEstateValueInputProps {
4
+ calculatorParams: CalculatorParams;
5
+ moneyValue: number | undefined;
6
+ defaultSum: number;
7
+ setMoneyValue: InputRangeProps['onChange'];
8
+ }
9
+ export declare function renderRealEstateValue(props: RenderRealEstateValueInputProps): any;
10
+ export {};
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderRealEstateValue = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
5
+ const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
6
+ const constants_1 = require("./constants");
7
+ const STEP_MONEY = 1000;
8
+ function renderRealEstateValue(props) {
9
+ const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
10
+ const minSum = calculatorParams?.minSum || constants_1.DEFAULT_MIN_SUM;
11
+ const maxSum = calculatorParams?.maxSum || constants_1.DEFAULT_MAX_SUM;
12
+ return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { title: "\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u0438, \u20BD ", items: [`От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} ₽`, `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} ₽`], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
13
+ }
14
+ exports.renderRealEstateValue = renderRealEstateValue;
15
+ //# sourceMappingURL=renderRealEstateValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRealEstateValue.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRealEstateValue.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAEhE,iFAA8E;AAC9E,2CAA+D;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AASxB,SAAgB,qBAAqB,CAAC,KAAsC;IAC1E,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAE3D,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,0IAA4B,EAClC,KAAK,EAAE,CAAC,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,EAC7F,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC;AAjBD,sDAiBC"}
@@ -0,0 +1,13 @@
1
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
+ import type { CalculatorParams } from './CalculatorContent';
3
+ interface RenderWantedSumInputProps {
4
+ className?: string;
5
+ title: string;
6
+ isShowItems?: boolean;
7
+ calculatorParams: CalculatorParams;
8
+ moneyValue: number | undefined;
9
+ defaultSum: number;
10
+ setMoneyValue: InputRangeProps['onChange'];
11
+ }
12
+ export declare function renderWantedSumInput(props: RenderWantedSumInputProps): any;
13
+ export {};
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderWantedSumInput = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
5
+ const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
6
+ const constants_1 = require("./constants");
7
+ const STEP_MONEY = 1000;
8
+ function renderWantedSumInput(props) {
9
+ const { title, className = '', calculatorParams, moneyValue, defaultSum, setMoneyValue, isShowItems = true, } = props;
10
+ const minSum = calculatorParams?.minSum || constants_1.DEFAULT_MIN_SUM;
11
+ const maxSum = calculatorParams?.maxSum || constants_1.DEFAULT_MAX_SUM;
12
+ const items = [
13
+ `От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} ₽`,
14
+ `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} ₽`,
15
+ ];
16
+ return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: className, title: title, items: isShowItems ? items : [], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
17
+ }
18
+ exports.renderWantedSumInput = renderWantedSumInput;
19
+ //# sourceMappingURL=renderWantedSumInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAEhE,iFAA8E;AAC9E,2CAA+D;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AAYxB,SAAgB,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EACJ,KAAK,EACL,SAAS,GAAG,EAAE,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,aAAa,EACb,WAAW,GAAG,IAAI,GACnB,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,2BAAe,CAAC;IAC3D,MAAM,KAAK,GAAG;QACZ,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;QACzC,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;KAC1C,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
@@ -11,7 +11,7 @@ interface BlockDecoratorProps<VNode> {
11
11
  }) => VNode;
12
12
  }
13
13
  export declare type BlockDecorator<VNode = any> = (props: BlockDecoratorProps<VNode>, index?: number | string) => any;
14
- export declare type JSXBlock = (props: PropsWithChildren<UniBlockProps & BlockContent, any>, context?: any) => any;
14
+ export declare type JSXBlock<BlockProps = BlockContent> = (props: PropsWithChildren<UniBlockProps & BlockProps, any>, context?: any) => any;
15
15
  export declare type BlocksRegistry = Record<string, JSXBlock>;
16
16
  export interface ContentPageProps extends UniBlockProps {
17
17
  blocksRegistry: BlocksRegistry;
@@ -0,0 +1,36 @@
1
+ import type { ProductBlockContent } from '../../components/ProductBlock/ProductBlockContent';
2
+ import type { ProductTileContent } from '../../components/ProductTile/ProductTileContent';
3
+ import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
4
+ export interface ActiveHandler {
5
+ context: ContentPageContext;
6
+ blocks?: GroupBlockDef[];
7
+ initialState?: boolean;
8
+ }
9
+ export interface GroupBlockCommonProps {
10
+ /** @title Стиль */
11
+ style?: string[];
12
+ /** @title Теги */
13
+ tags?: string[];
14
+ }
15
+ /**
16
+ * @title Продуктовый блок
17
+ * @default {"blockType": "ProductBlock"}
18
+ */
19
+ export declare type ProductBlockDef = ProductBlockContent & GroupBlockCommonProps & {
20
+ blockType: 'ProductBlock';
21
+ };
22
+ /**
23
+ * @title Продуктовая плитка
24
+ * @default {"blockType": "ProductTile"}
25
+ */
26
+ export declare type ProductTileDef = ProductTileContent & GroupBlockCommonProps & {
27
+ blockType: 'ProductTile';
28
+ };
29
+ /**
30
+ * @title Выберите блок
31
+ */
32
+ export declare type EmptyOption = null;
33
+ /**
34
+ * @title Содержимое блока
35
+ */
36
+ export declare type GroupBlockDef = EmptyOption | ProductBlockDef | ProductTileDef;
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=ProductGalleryGreenContent.js.map
2
+ //# sourceMappingURL=BlocksTypeProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlocksTypeProps.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/BlocksTypeProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const EmbeddableGroupBlocks: {
2
+ ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
3
+ ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
4
+ };
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.EmbeddableGroupBlocks = void 0;
3
+ const ProductBlock_1 = require("../ProductBlock/ProductBlock");
4
+ const ProductTile_1 = require("../ProductTile/ProductTile");
5
+ exports.EmbeddableGroupBlocks = {
6
+ ProductBlock: ProductBlock_1.ProductBlock,
7
+ ProductTile: ProductTile_1.ProductTile,
8
+ };
9
+ //# sourceMappingURL=EmbeddableGroupBlocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbeddableGroupBlocks.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/EmbeddableGroupBlocks.tsx"],"names":[],"mappings":";;AAAA,+DAA4D;AAC5D,4DAAyD;AAE5C,QAAA,qBAAqB,GAAG;IACnC,YAAY,EAAZ,2BAAY;IACZ,WAAW,EAAX,yBAAW;CACZ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ import type { GroupBlockContent, GroupBlockTab } from './GroupBlockContent';
3
+ export interface TabsItemProps extends GroupBlockTab {
4
+ count?: number;
5
+ }
6
+ export interface GroupBlockProps extends GroupBlockContent, UniBlockProps {
7
+ tabs?: TabsItemProps[];
8
+ }
9
+ export declare const GroupBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<GroupBlockProps, any>, context?: any) => any;
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.GroupBlock = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const GroupBlockTabs_1 = require("./GroupBlockTabs");
6
+ const GroupBlocksItem_1 = require("./GroupBlocksItem");
7
+ const filterBlocksByTag_1 = require("./filterBlocksByTag");
8
+ exports.GroupBlock = (0, uni_jsx_1.JSX)(({ className = '', tabs, context, anchor = null, groupBlocks = [] }) => {
9
+ const [currentTag, setCurrentTag] = context.useState(tabs?.[0]?.tag);
10
+ const filteredBlocks = (0, filterBlocksByTag_1.filterBlocksByTag)(groupBlocks, currentTag);
11
+ const tabsNewMap = tabs?.map((tab) => {
12
+ const count = tab.tag
13
+ ? groupBlocks.filter((block) => block?.tags?.includes(`${tab.tag}`)).length
14
+ : groupBlocks.length;
15
+ return { ...tab, count };
16
+ });
17
+ return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border gap-1 h-12 ${className}`, children: [tabsNewMap?.length ? ((0, jsx_runtime_1.jsx)(GroupBlockTabs_1.GroupBlockTabs, { currentTag: currentTag, onTabClick: setCurrentTag, tabs: tabsNewMap })) : null, groupBlocks.length ? ((0, jsx_runtime_1.jsx)("div", { className: "list-none", children: (0, jsx_runtime_1.jsx)(GroupBlocksItem_1.GroupBlocksItem, { context: context, groupBlocks: filteredBlocks }) })) : null] }));
18
+ });
19
+ //# sourceMappingURL=GroupBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupBlock.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qDAAkD;AAClD,uDAAoD;AACpD,2DAAwD;AAU3C,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IACrE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAErE,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAElE,MAAM,UAAU,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG;YACnB,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM;YAC3E,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC;QAEvB,OAAO,EAAE,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,qCAAS,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,yBAAyB,SAAS,EAAE,aACjE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,uBAAC,+BAAc,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,GAAI,CACxF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CACpB,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,iCAAe,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,GAAI,GAC9D,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { GroupBlockDef } from './BlocksTypeProps';
2
+ /**
3
+ * @title Таб
4
+ */
5
+ export interface GroupBlockTab {
6
+ /** @title Название */
7
+ title?: string;
8
+ /** @title Tег */
9
+ tag?: string;
10
+ }
11
+ /**
12
+ * @title Блок-группировки
13
+ */
14
+ export interface GroupBlockContent {
15
+ /** @title Блоки */
16
+ groupBlocks?: GroupBlockDef[];
17
+ /** @title Табы */
18
+ tabs?: GroupBlockTab[];
19
+ /** @title Показывать счетчик блоков во вкладках */
20
+ isShowCounter?: boolean;
21
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=GroupBlockContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupBlockContent.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { TabsItemProps } from './GroupBlock';
2
+ export declare type TabClickHandler = (tag: any) => void;
3
+ export interface GroupBlockTabsProps {
4
+ onTabClick: TabClickHandler;
5
+ currentTag?: string;
6
+ className?: string;
7
+ tabs?: TabsItemProps[];
8
+ isShowCounter?: boolean;
9
+ }
10
+ export declare const GroupBlockTabs: (props: import("@redneckz/uni-jsx").PropsWithChildren<GroupBlockTabsProps, any>, context?: any) => any;
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.GroupBlockTabs = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ exports.GroupBlockTabs = (0, uni_jsx_1.JSX)((props) => {
6
+ const { tabs, currentTag, onTabClick, className = '', isShowCounter = true } = props;
7
+ return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 h-12 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, isShowCounter, currentTag)) }));
8
+ });
9
+ const badgeStyle = 'w-[22px] h-[22px] rounded-full text-m-sm';
10
+ const renderTab = (onTabClick, isShowCounter, currentTag) => (tab, i) => {
11
+ const isActive = currentTag === tab.tag;
12
+ const tabBg = isActive ? 'bg-primary-main' : 'group bg-white';
13
+ const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
14
+ const counterBlockStyle = `${badgeStyle}
15
+ ${isActive ? 'bg-white/30 text-white' : 'bg-secondary-text/10 text-secondary-text'}`;
16
+ return ((0, jsx_runtime_1.jsx)("div", { className: `flex h-full w-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? (0, jsx_runtime_1.jsx)("h3", { className: `mr-8 ${tabText}`, children: tab?.title }) : null, isShowCounter ? ((0, jsx_runtime_1.jsx)("div", { className: `flex items-center justify-center ${counterBlockStyle}`, children: (0, jsx_runtime_1.jsx)("span", { children: tab.count }) })) : null] }) }, String(i)));
17
+ };
18
+ //# sourceMappingURL=GroupBlockTabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAErF,OAAO,CACL,gCAAK,SAAS,EAAE,qCAAqC,SAAS,EAAE,EAAE,IAAI,EAAC,SAAS,YAC7E,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,0CAA0C,CAAC;AAE9D,MAAM,SAAS,GACb,CAAC,UAA2B,EAAE,aAAsB,EAAE,UAAmB,EAAE,EAAE,CAC7E,CAAC,GAAkB,EAAE,CAAS,EAAE,EAAE;IAChC,MAAM,QAAQ,GAAG,UAAU,KAAK,GAAG,CAAC,GAAG,CAAC;IACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAC9D,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mDAAmD,CAAC;IAC9F,MAAM,iBAAiB,GAAG,GAAG,UAAU;QACnC,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,0CAA0C,EAAE,CAAC;IAEvF,OAAO,CACL,gCAEE,SAAS,EAAE,uEAAuE,KAAK,EAAE,EACzF,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,mBACnB,MAAM,CAAC,QAAQ,CAAC,EAC/B,GAAG,EAAE,GAAG,EAAE,GAAG,YAEb,iCAAK,SAAS,EAAC,yCAAyC,aACrD,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAE,QAAQ,OAAO,EAAE,YAAG,GAAG,EAAE,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EACvE,aAAa,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,oCAAoC,iBAAiB,EAAE,YACrE,2CAAO,GAAG,CAAC,KAAK,GAAQ,GACpB,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAdD,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
+ import type { UniBlockProps } from '../../types';
3
+ import type { GroupBlockDef } from './BlocksTypeProps';
4
+ import { GroupBlockContent } from './GroupBlockContent';
5
+ export interface GroupBlocksProps extends GroupBlockContent, UniBlockProps {
6
+ }
7
+ export declare const GroupBlocksItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<GroupBlocksProps, any>, context?: any) => any;
8
+ export declare const renderBlock: (context: ContentPageContext) => (block: GroupBlockDef, i: number) => any;
@@ -0,0 +1,20 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderBlock = exports.GroupBlocksItem = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const style2className_1 = require("../../utils/style2className");
6
+ const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
7
+ exports.GroupBlocksItem = (0, uni_jsx_1.JSX)(({ groupBlocks, context }) => {
8
+ return ((0, jsx_runtime_1.jsx)("div", { className: 'grid grid-cols-12 gap-2 box-border', children: groupBlocks?.length ? groupBlocks.map((0, exports.renderBlock)(context)) : null }));
9
+ });
10
+ const renderBlock = (context) => (block, i) => {
11
+ const type = block?.blockType;
12
+ if (!type || !(type in EmbeddableGroupBlocks_1.EmbeddableGroupBlocks)) {
13
+ return null;
14
+ }
15
+ const classNameBlock = (0, style2className_1.style2className)(block?.style);
16
+ const EmbeddedBlock = EmbeddableGroupBlocks_1.EmbeddableGroupBlocks[type];
17
+ return ((0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...block, className: classNameBlock }, `block_${i}`));
18
+ };
19
+ exports.renderBlock = renderBlock;
20
+ //# sourceMappingURL=GroupBlocksItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupBlocksItem.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlocksItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,iEAA8D;AAE9D,mEAAgE;AAKnD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,EAAE,oCAAoC,YACjD,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAC/D,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEI,MAAM,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAC9F,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAC5D,OAAO,CACL,uBAAC,aAAa,IAAoB,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,IAApE,SAAS,CAAC,EAAE,CAA4D,CAC7F,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
@@ -0,0 +1,2 @@
1
+ import { GroupBlockDef } from './BlocksTypeProps';
2
+ export declare const filterBlocksByTag: (blocks: GroupBlockDef[], tag?: string) => GroupBlockDef[];
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.filterBlocksByTag = void 0;
3
+ const filterBlocksByTag = (blocks, tag) => {
4
+ return tag ? blocks.filter((block) => block?.tags?.includes(tag)) : blocks;
5
+ };
6
+ exports.filterBlocksByTag = filterBlocksByTag;
7
+ //# sourceMappingURL=filterBlocksByTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterBlocksByTag.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/filterBlocksByTag.ts"],"names":[],"mappings":";;AAEO,MAAM,iBAAiB,GAAG,CAAC,MAAuB,EAAE,GAAY,EAAE,EAAE;IACzE,OAAO,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC7E,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}