@redneckz/wildless-cms-uni-blocks 0.3.57 → 0.3.59

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 (545) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +370 -96
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/SafeIcon.svg +1 -1
  5. package/dist/components/Blocks.d.ts +1 -1
  6. package/dist/components/Blocks.js +2 -2
  7. package/dist/components/Blocks.js.map +1 -1
  8. package/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  9. package/dist/components/Calculator/BonusCalculatorForm.js +40 -0
  10. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
  11. package/dist/components/Calculator/Calculator.d.ts +5 -0
  12. package/dist/components/Calculator/Calculator.js +46 -0
  13. package/dist/components/Calculator/Calculator.js.map +1 -0
  14. package/dist/components/Calculator/CalculatorContent.d.ts +110 -0
  15. package/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
  16. package/dist/components/Calculator/CalculatorContent.js.map +1 -0
  17. package/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  18. package/dist/components/Calculator/CalculatorValueBlock.js +9 -0
  19. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
  20. package/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  21. package/dist/components/Calculator/CreditCalculatorForm.js +51 -0
  22. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
  23. package/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  24. package/dist/components/Calculator/DepositCalculatorForm.js +41 -0
  25. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
  26. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  27. package/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
  28. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  29. package/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  30. package/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
  31. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  32. package/dist/components/Calculator/constants.d.ts +7 -0
  33. package/dist/components/Calculator/constants.js +10 -0
  34. package/dist/components/Calculator/constants.js.map +1 -0
  35. package/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
  36. package/dist/components/Calculator/getCalculatorParams.js +11 -0
  37. package/dist/components/Calculator/getCalculatorParams.js.map +1 -0
  38. package/dist/components/Calculator/getCreditRate.d.ts +7 -0
  39. package/dist/components/Calculator/getCreditRate.js +13 -0
  40. package/dist/components/Calculator/getCreditRate.js.map +1 -0
  41. package/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
  42. package/dist/components/Calculator/getDefaultMonths.js +8 -0
  43. package/dist/components/Calculator/getDefaultMonths.js.map +1 -0
  44. package/dist/components/Calculator/getDefaultSum.d.ts +2 -0
  45. package/dist/components/Calculator/getDefaultSum.js +8 -0
  46. package/dist/components/Calculator/getDefaultSum.js.map +1 -0
  47. package/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
  48. package/dist/components/Calculator/getMonthlyPayment.js +19 -0
  49. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
  50. package/dist/components/Calculator/renderButtonSection.d.ts +1 -0
  51. package/dist/components/Calculator/renderButtonSection.js +9 -0
  52. package/dist/components/Calculator/renderButtonSection.js.map +1 -0
  53. package/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
  54. package/dist/components/Calculator/renderCalculatorList.js +17 -0
  55. package/dist/components/Calculator/renderCalculatorList.js.map +1 -0
  56. package/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  57. package/dist/components/Calculator/renderInitialFeeInput.js +18 -0
  58. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
  59. package/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
  60. package/dist/components/Calculator/renderMonthsInput.js +15 -0
  61. package/dist/components/Calculator/renderMonthsInput.js.map +1 -0
  62. package/dist/components/Calculator/renderProposal.d.ts +1 -0
  63. package/dist/components/Calculator/renderProposal.js +10 -0
  64. package/dist/components/Calculator/renderProposal.js.map +1 -0
  65. package/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
  66. package/dist/components/Calculator/renderProposalMortgage.js +9 -0
  67. package/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
  68. package/dist/components/Calculator/renderRate.d.ts +8 -0
  69. package/dist/components/Calculator/renderRate.js +9 -0
  70. package/dist/components/Calculator/renderRate.js.map +1 -0
  71. package/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
  72. package/dist/components/Calculator/renderRealEstateValue.js +15 -0
  73. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
  74. package/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
  75. package/dist/components/Calculator/renderWantedSumInput.js +19 -0
  76. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
  77. package/dist/components/ContentPage/ContentPage.d.ts +1 -1
  78. package/dist/components/Header/Header.js +2 -2
  79. package/dist/components/Header/Header.js.map +1 -1
  80. package/dist/components/Header/HeaderContent.d.ts +6 -0
  81. package/dist/components/Header/HeaderSubMenu.js +7 -4
  82. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  83. package/dist/components/ProductGallery/ProductGallery.js +37 -8
  84. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  85. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  86. package/dist/components/ProductTile/ProductTile.js +14 -2
  87. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  88. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  89. package/dist/components/Tile/Tile.js +1 -1
  90. package/dist/components/Tile/Tile.js.map +1 -1
  91. package/dist/types.d.ts +1 -5
  92. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  93. package/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
  94. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  95. package/dist/ui-kit/Button/Button.js +2 -2
  96. package/dist/ui-kit/Button/Button.js.map +1 -1
  97. package/dist/ui-kit/Button/ButtonInner.js +2 -2
  98. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  99. package/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
  100. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  101. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  102. package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
  103. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  104. package/dist/ui-kit/InputRange/InputRange.js +2 -2
  105. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  106. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  107. package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
  108. package/lib/common.css +1 -1
  109. package/lib/components/Blocks.d.ts +1 -1
  110. package/lib/components/Blocks.js +2 -2
  111. package/lib/components/Blocks.js.map +1 -1
  112. package/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  113. package/lib/components/Calculator/BonusCalculatorForm.js +38 -0
  114. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
  115. package/lib/components/Calculator/Calculator.d.ts +5 -0
  116. package/lib/components/{ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts → Calculator/Calculator.fixture.d.ts} +1 -1
  117. package/lib/components/Calculator/Calculator.js +44 -0
  118. package/lib/components/Calculator/Calculator.js.map +1 -0
  119. package/lib/components/Calculator/CalculatorContent.d.ts +110 -0
  120. package/lib/components/Calculator/CalculatorContent.js +2 -0
  121. package/lib/components/Calculator/CalculatorContent.js.map +1 -0
  122. package/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  123. package/lib/components/Calculator/CalculatorValueBlock.js +7 -0
  124. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
  125. package/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  126. package/lib/components/Calculator/CreditCalculatorForm.js +49 -0
  127. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
  128. package/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  129. package/lib/components/Calculator/DepositCalculatorForm.js +39 -0
  130. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
  131. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  132. package/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
  133. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  134. package/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  135. package/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
  136. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  137. package/lib/components/Calculator/constants.d.ts +7 -0
  138. package/lib/components/Calculator/constants.js +8 -0
  139. package/lib/components/Calculator/constants.js.map +1 -0
  140. package/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
  141. package/lib/components/Calculator/getCalculatorParams.js +8 -0
  142. package/lib/components/Calculator/getCalculatorParams.js.map +1 -0
  143. package/lib/components/Calculator/getCreditRate.d.ts +7 -0
  144. package/lib/components/Calculator/getCreditRate.js +10 -0
  145. package/lib/components/Calculator/getCreditRate.js.map +1 -0
  146. package/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
  147. package/lib/components/Calculator/getDefaultMonths.js +5 -0
  148. package/lib/components/Calculator/getDefaultMonths.js.map +1 -0
  149. package/lib/components/Calculator/getDefaultSum.d.ts +2 -0
  150. package/lib/components/Calculator/getDefaultSum.js +5 -0
  151. package/lib/components/Calculator/getDefaultSum.js.map +1 -0
  152. package/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
  153. package/lib/components/Calculator/getMonthlyPayment.js +16 -0
  154. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
  155. package/lib/components/Calculator/renderButtonSection.d.ts +1 -0
  156. package/lib/components/Calculator/renderButtonSection.js +6 -0
  157. package/lib/components/Calculator/renderButtonSection.js.map +1 -0
  158. package/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
  159. package/lib/components/Calculator/renderCalculatorList.js +14 -0
  160. package/lib/components/Calculator/renderCalculatorList.js.map +1 -0
  161. package/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  162. package/lib/components/Calculator/renderInitialFeeInput.js +15 -0
  163. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
  164. package/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
  165. package/lib/components/Calculator/renderMonthsInput.js +12 -0
  166. package/lib/components/Calculator/renderMonthsInput.js.map +1 -0
  167. package/lib/components/Calculator/renderProposal.d.ts +1 -0
  168. package/lib/components/Calculator/renderProposal.js +7 -0
  169. package/lib/components/Calculator/renderProposal.js.map +1 -0
  170. package/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
  171. package/lib/components/Calculator/renderProposalMortgage.js +6 -0
  172. package/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
  173. package/lib/components/Calculator/renderRate.d.ts +8 -0
  174. package/lib/components/Calculator/renderRate.js +6 -0
  175. package/lib/components/Calculator/renderRate.js.map +1 -0
  176. package/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
  177. package/lib/components/Calculator/renderRealEstateValue.js +12 -0
  178. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
  179. package/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
  180. package/lib/components/Calculator/renderWantedSumInput.js +16 -0
  181. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
  182. package/lib/components/ContentPage/ContentPage.d.ts +1 -1
  183. package/lib/components/Header/Header.fixture.d.ts +1 -0
  184. package/lib/components/Header/Header.js +2 -2
  185. package/lib/components/Header/Header.js.map +1 -1
  186. package/lib/components/Header/HeaderContent.d.ts +6 -0
  187. package/lib/components/Header/HeaderSubMenu.js +7 -4
  188. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  189. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -0
  190. package/lib/components/ProductGallery/ProductGallery.js +37 -8
  191. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  192. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  193. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
  194. package/lib/components/ProductTile/ProductTile.js +14 -2
  195. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  196. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  197. package/lib/components/Tile/Tile.js +1 -1
  198. package/lib/components/Tile/Tile.js.map +1 -1
  199. package/lib/types.d.ts +1 -5
  200. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  201. package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  202. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  203. package/lib/ui-kit/Button/Button.js +2 -2
  204. package/lib/ui-kit/Button/Button.js.map +1 -1
  205. package/lib/ui-kit/Button/ButtonInner.js +2 -2
  206. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  207. package/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
  208. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  209. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  210. package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
  211. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  212. package/lib/ui-kit/InputRange/InputRange.js +2 -2
  213. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  214. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  215. package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
  216. package/mobile/bundle/bundle.umd.js +3 -3
  217. package/mobile/bundle/bundle.umd.min.js +1 -1
  218. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  219. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +40 -0
  220. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
  221. package/mobile/dist/components/Calculator/Calculator.d.ts +5 -0
  222. package/mobile/dist/components/Calculator/Calculator.js +46 -0
  223. package/mobile/dist/components/Calculator/Calculator.js.map +1 -0
  224. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +110 -0
  225. package/mobile/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
  226. package/mobile/dist/components/Calculator/CalculatorContent.js.map +1 -0
  227. package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  228. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +9 -0
  229. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
  230. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  231. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +51 -0
  232. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
  233. package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  234. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +41 -0
  235. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
  236. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  237. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
  238. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  239. package/mobile/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  240. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
  241. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  242. package/mobile/dist/components/Calculator/constants.d.ts +7 -0
  243. package/mobile/dist/components/Calculator/constants.js +10 -0
  244. package/mobile/dist/components/Calculator/constants.js.map +1 -0
  245. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
  246. package/mobile/dist/components/Calculator/getCalculatorParams.js +11 -0
  247. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -0
  248. package/mobile/dist/components/Calculator/getCreditRate.d.ts +7 -0
  249. package/mobile/dist/components/Calculator/getCreditRate.js +13 -0
  250. package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -0
  251. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
  252. package/mobile/dist/components/Calculator/getDefaultMonths.js +8 -0
  253. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -0
  254. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +2 -0
  255. package/mobile/dist/components/Calculator/getDefaultSum.js +8 -0
  256. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -0
  257. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
  258. package/mobile/dist/components/Calculator/getMonthlyPayment.js +19 -0
  259. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
  260. package/mobile/dist/components/Calculator/renderButtonSection.d.ts +1 -0
  261. package/mobile/dist/components/Calculator/renderButtonSection.js +9 -0
  262. package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -0
  263. package/mobile/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
  264. package/mobile/dist/components/Calculator/renderCalculatorList.js +17 -0
  265. package/mobile/dist/components/Calculator/renderCalculatorList.js.map +1 -0
  266. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  267. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +18 -0
  268. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
  269. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
  270. package/mobile/dist/components/Calculator/renderMonthsInput.js +15 -0
  271. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -0
  272. package/mobile/dist/components/Calculator/renderProposal.d.ts +1 -0
  273. package/mobile/dist/components/Calculator/renderProposal.js +10 -0
  274. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -0
  275. package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
  276. package/mobile/dist/components/Calculator/renderProposalMortgage.js +9 -0
  277. package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
  278. package/mobile/dist/components/Calculator/renderRate.d.ts +8 -0
  279. package/mobile/dist/components/Calculator/renderRate.js +9 -0
  280. package/mobile/dist/components/Calculator/renderRate.js.map +1 -0
  281. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
  282. package/mobile/dist/components/Calculator/renderRealEstateValue.js +15 -0
  283. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
  284. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
  285. package/mobile/dist/components/Calculator/renderWantedSumInput.js +19 -0
  286. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
  287. package/mobile/dist/components/ContentPage/ContentPage.d.ts +1 -1
  288. package/mobile/dist/components/Header/HeaderContent.d.ts +6 -0
  289. package/mobile/dist/components/Header/HeaderSubMenu.js +7 -4
  290. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  291. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  292. package/mobile/dist/components/ProductTile/ProductTile.js +14 -2
  293. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  294. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  295. package/mobile/dist/components/Tile/Tile.js +1 -1
  296. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  297. package/mobile/dist/types.d.ts +1 -5
  298. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  299. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
  300. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  301. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
  302. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  303. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
  304. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  305. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  306. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
  307. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  308. package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
  309. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  310. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  311. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
  312. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  313. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +38 -0
  314. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
  315. package/mobile/lib/components/Calculator/Calculator.d.ts +5 -0
  316. package/mobile/lib/components/Calculator/Calculator.js +44 -0
  317. package/mobile/lib/components/Calculator/Calculator.js.map +1 -0
  318. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +110 -0
  319. package/mobile/lib/components/Calculator/CalculatorContent.js +2 -0
  320. package/mobile/lib/components/Calculator/CalculatorContent.js.map +1 -0
  321. package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  322. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +7 -0
  323. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
  324. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
  325. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +49 -0
  326. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
  327. package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  328. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +39 -0
  329. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
  330. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
  331. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
  332. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
  333. package/mobile/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
  334. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
  335. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
  336. package/mobile/lib/components/Calculator/constants.d.ts +7 -0
  337. package/mobile/lib/components/Calculator/constants.js +8 -0
  338. package/mobile/lib/components/Calculator/constants.js.map +1 -0
  339. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
  340. package/mobile/lib/components/Calculator/getCalculatorParams.js +8 -0
  341. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -0
  342. package/mobile/lib/components/Calculator/getCreditRate.d.ts +7 -0
  343. package/mobile/lib/components/Calculator/getCreditRate.js +10 -0
  344. package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -0
  345. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
  346. package/mobile/lib/components/Calculator/getDefaultMonths.js +5 -0
  347. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -0
  348. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +2 -0
  349. package/mobile/lib/components/Calculator/getDefaultSum.js +5 -0
  350. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -0
  351. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
  352. package/mobile/lib/components/Calculator/getMonthlyPayment.js +16 -0
  353. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
  354. package/mobile/lib/components/Calculator/renderButtonSection.d.ts +1 -0
  355. package/mobile/lib/components/Calculator/renderButtonSection.js +6 -0
  356. package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -0
  357. package/mobile/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
  358. package/mobile/lib/components/Calculator/renderCalculatorList.js +14 -0
  359. package/mobile/lib/components/Calculator/renderCalculatorList.js.map +1 -0
  360. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
  361. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +15 -0
  362. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
  363. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
  364. package/mobile/lib/components/Calculator/renderMonthsInput.js +12 -0
  365. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -0
  366. package/mobile/lib/components/Calculator/renderProposal.d.ts +1 -0
  367. package/mobile/lib/components/Calculator/renderProposal.js +7 -0
  368. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -0
  369. package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
  370. package/mobile/lib/components/Calculator/renderProposalMortgage.js +6 -0
  371. package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
  372. package/mobile/lib/components/Calculator/renderRate.d.ts +8 -0
  373. package/mobile/lib/components/Calculator/renderRate.js +6 -0
  374. package/mobile/lib/components/Calculator/renderRate.js.map +1 -0
  375. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
  376. package/mobile/lib/components/Calculator/renderRealEstateValue.js +12 -0
  377. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
  378. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
  379. package/mobile/lib/components/Calculator/renderWantedSumInput.js +16 -0
  380. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
  381. package/mobile/lib/components/ContentPage/ContentPage.d.ts +1 -1
  382. package/mobile/lib/components/Header/HeaderContent.d.ts +6 -0
  383. package/mobile/lib/components/Header/HeaderSubMenu.js +7 -4
  384. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  385. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
  386. package/mobile/lib/components/ProductTile/ProductTile.js +14 -2
  387. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  388. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  389. package/mobile/lib/components/Tile/Tile.js +1 -1
  390. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  391. package/mobile/lib/types.d.ts +1 -5
  392. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
  393. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  394. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  395. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
  396. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  397. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
  398. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  399. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  400. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
  401. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  402. package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
  403. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  404. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  405. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
  406. package/mobile/src/common.css +7 -0
  407. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
  408. package/mobile/src/components/Calculator/Calculator.tsx +141 -0
  409. package/mobile/src/components/Calculator/CalculatorContent.ts +134 -0
  410. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
  411. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
  412. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
  413. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
  414. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
  415. package/mobile/src/components/Calculator/constants.ts +8 -0
  416. package/mobile/src/components/Calculator/getCalculatorParams.ts +16 -0
  417. package/mobile/src/components/Calculator/getCreditRate.ts +18 -0
  418. package/mobile/src/components/Calculator/getDefaultMonths.ts +7 -0
  419. package/mobile/src/components/Calculator/getDefaultSum.ts +7 -0
  420. package/mobile/src/components/Calculator/getMonthlyPayment.ts +32 -0
  421. package/mobile/src/components/Calculator/renderButtonSection.tsx +7 -0
  422. package/mobile/src/components/Calculator/renderCalculatorList.tsx +43 -0
  423. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
  424. package/mobile/src/components/Calculator/renderMonthsInput.tsx +34 -0
  425. package/mobile/src/components/Calculator/renderProposal.tsx +14 -0
  426. package/mobile/src/components/Calculator/renderProposalMortgage.tsx +17 -0
  427. package/mobile/src/components/Calculator/renderRate.tsx +23 -0
  428. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +33 -0
  429. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +49 -0
  430. package/mobile/src/components/ContentPage/ContentPage.page.json +9 -8
  431. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  432. package/mobile/src/components/Header/HeaderContent.ts +6 -0
  433. package/mobile/src/components/Header/HeaderSubMenu.tsx +10 -5
  434. package/mobile/src/components/ProductGallery/ProductGallery.example.json +8 -10
  435. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
  436. package/mobile/src/components/ProductTile/ProductTile.tsx +30 -13
  437. package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
  438. package/mobile/src/components/Tile/Tile.tsx +5 -1
  439. package/mobile/src/icons/SafeIcon.svg +7 -1
  440. package/mobile/src/types.ts +2 -6
  441. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  442. package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -1
  443. package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -0
  444. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  445. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
  446. package/mobile/src/ui-kit/InputRange/InputRange.tsx +7 -9
  447. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  448. package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -1
  449. package/package.json +1 -1
  450. package/src/common.css +7 -0
  451. package/src/components/Blocks.ts +2 -2
  452. package/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
  453. package/src/components/Calculator/Calculator.fixture.tsx +131 -0
  454. package/src/components/Calculator/Calculator.tsx +141 -0
  455. package/src/components/Calculator/CalculatorContent.ts +134 -0
  456. package/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
  457. package/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
  458. package/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
  459. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
  460. package/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
  461. package/src/components/Calculator/constants.ts +8 -0
  462. package/src/components/Calculator/getCalculatorParams.ts +16 -0
  463. package/src/components/Calculator/getCreditRate.ts +18 -0
  464. package/src/components/Calculator/getDefaultMonths.ts +7 -0
  465. package/src/components/Calculator/getDefaultSum.ts +7 -0
  466. package/src/components/Calculator/getMonthlyPayment.ts +32 -0
  467. package/src/components/Calculator/renderButtonSection.tsx +7 -0
  468. package/src/components/Calculator/renderCalculatorList.tsx +43 -0
  469. package/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
  470. package/src/components/Calculator/renderMonthsInput.tsx +34 -0
  471. package/src/components/Calculator/renderProposal.tsx +14 -0
  472. package/src/components/Calculator/renderProposalMortgage.tsx +17 -0
  473. package/src/components/Calculator/renderRate.tsx +23 -0
  474. package/src/components/Calculator/renderRealEstateValue.tsx +33 -0
  475. package/src/components/Calculator/renderWantedSumInput.tsx +49 -0
  476. package/src/components/ContentPage/ContentPage.page.json +9 -8
  477. package/src/components/ContentPage/ContentPage.tsx +2 -2
  478. package/src/components/Header/Header.fixture.tsx +1 -0
  479. package/src/components/Header/Header.tsx +4 -1
  480. package/src/components/Header/HeaderContent.ts +6 -0
  481. package/src/components/Header/HeaderSubMenu.tsx +10 -5
  482. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  483. package/src/components/ProductGallery/ProductGallery.example.json +8 -10
  484. package/src/components/ProductGallery/ProductGallery.fixture.tsx +146 -104
  485. package/src/components/ProductGallery/ProductGallery.tsx +73 -24
  486. package/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
  487. package/src/components/ProductTile/ProductTile.fixture.tsx +50 -5
  488. package/src/components/ProductTile/ProductTile.tsx +30 -13
  489. package/src/components/ProductTile/ProductTileContent.ts +2 -0
  490. package/src/components/Tile/Tile.tsx +5 -1
  491. package/src/icons/SafeIcon.svg +7 -1
  492. package/src/types.ts +2 -6
  493. package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  494. package/src/ui-kit/Button/Button.fixture.tsx +12 -0
  495. package/src/ui-kit/Button/Button.tsx +8 -2
  496. package/src/ui-kit/Button/ButtonInner.tsx +2 -1
  497. package/src/ui-kit/Button/ButtonProps.ts +2 -0
  498. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  499. package/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
  500. package/src/ui-kit/InputRange/InputRange.tsx +7 -9
  501. package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  502. package/src/ui-kit/Tabs/TabsProps.ts +2 -1
  503. package/dist/components/ContentPage/CustomContentPage.d.ts +0 -30
  504. package/dist/components/ContentPage/CustomContentPage.js +0 -33
  505. package/dist/components/ContentPage/CustomContentPage.js.map +0 -1
  506. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  507. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
  508. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  509. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  510. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  511. package/lib/components/ContentPage/CustomContentPage.d.ts +0 -30
  512. package/lib/components/ContentPage/CustomContentPage.js +0 -31
  513. package/lib/components/ContentPage/CustomContentPage.js.map +0 -1
  514. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  515. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
  516. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  517. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  518. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
  519. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  520. package/mobile/dist/components/ContentPage/CustomContentPage.d.ts +0 -30
  521. package/mobile/dist/components/ContentPage/CustomContentPage.js +0 -33
  522. package/mobile/dist/components/ContentPage/CustomContentPage.js.map +0 -1
  523. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  524. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
  525. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  526. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  527. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  528. package/mobile/lib/components/ContentPage/CustomContentPage.d.ts +0 -30
  529. package/mobile/lib/components/ContentPage/CustomContentPage.js +0 -31
  530. package/mobile/lib/components/ContentPage/CustomContentPage.js.map +0 -1
  531. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
  532. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
  533. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
  534. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
  535. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
  536. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
  537. package/mobile/src/components/ContentPage/CustomContentPage.tsx +0 -82
  538. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
  539. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
  540. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
  541. package/src/components/ContentPage/CustomContentPage.tsx +0 -82
  542. package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
  543. package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +0 -186
  544. package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
  545. package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
@@ -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;
@@ -14,13 +14,13 @@ const BORDER_COLORS = {
14
14
  'bg-white': 'bg-main-divider',
15
15
  transparent: 'bg-main-divider opacity-30',
16
16
  };
17
- exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation = 'Москва', bgColor = 'bg-white', context, topItems, anchor = null, }) => {
17
+ exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation = 'Москва', showSubMenu = true, bgColor = 'bg-white', context, topItems, anchor = null, }) => {
18
18
  const router = context.useRouter();
19
19
  const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
20
20
  const { handlerDecorator } = context;
21
21
  const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, topItems);
22
22
  const activeTopItem = mergedItems.find((0, isTopItemActive_1.isTopItemActive)(router));
23
23
  const topMenu = mergedItems.map((_, i) => ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { active: _ === activeTopItem, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), "aria-label": _.text, bgColor: bgColor }, String(i))));
24
- return ((0, jsx_runtime_1.jsx)("header", { className: `pt-6 pb-8 px-20 ${bgColor} ${className}`, id: anchor, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor }), topMenu, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { context: context, className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), (0, jsx_runtime_1.jsx)(HeaderSubMenu_1.HeaderSubMenu, { context: context, subItems: activeTopItem?.items, bgColor: bgColor })] }) }));
24
+ return ((0, jsx_runtime_1.jsx)("header", { className: `pt-6 pb-8 px-20 ${bgColor} ${className}`, id: anchor, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor }), topMenu, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { context: context, className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? ((0, jsx_runtime_1.jsx)(HeaderSubMenu_1.HeaderSubMenu, { context: context, subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
25
25
  });
26
26
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,4EAAyE;AACzE,wEAAqE;AACrE,kEAA+D;AAE/D,iDAA8C;AAC9C,0DAAuD;AAEvD,+DAA4D;AAC5D,mDAAgD;AAEhD,MAAM,aAAa,GAAmC;IACpD,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAIW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,eAAe,GAAG,QAAQ,EAC1B,OAAO,GAAG,UAAU,EACpB,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,WAAW,CAAC,GAA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AAK,SAAS,EAAE,gBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,GAAI,EAC3D,WAAW,IAAI,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAC7C,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CACrF,CAAC,CAAC,CAAC,IAAI,IACJ,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -26,6 +26,12 @@ export interface HeaderContent extends SitemapProps {
26
26
  * @default Москва
27
27
  */
28
28
  defaultLocation?: string;
29
+ /**
30
+ * @title Показывать подменю
31
+ * @hidden
32
+ * @default true
33
+ */
34
+ showSubMenu?: boolean;
29
35
  /**
30
36
  * @title Фон элемента
31
37
  * @hidden
@@ -7,6 +7,10 @@ const findActiveSubItem_1 = require("../../services/sitemap/findActiveSubItem");
7
7
  const HeaderItem_1 = require("../../ui-kit/HeaderItem/HeaderItem");
8
8
  const isSSR_1 = require("../../utils/isSSR");
9
9
  const HeaderSubMenuObserver_1 = require("./HeaderSubMenuObserver");
10
+ const DOT_BG_COLORS_MAP = {
11
+ 'bg-white': 'bg-primary-text',
12
+ transparent: 'bg-white',
13
+ };
10
14
  exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ context, subItems, bgColor }) => {
11
15
  const [subMenuIsShow, setHiddenMenuIsShow] = context.useState(false);
12
16
  const router = context.useRouter();
@@ -27,15 +31,14 @@ exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ context, subItems, bgColor }) => {
27
31
  subMenuIsShow,
28
32
  toggleSubMenu,
29
33
  subItems,
34
+ bgColor,
30
35
  router,
31
36
  handlerDecorator,
32
37
  })] }));
33
38
  });
34
39
  // TODO: add types
35
- const renderDotsSubMenu = ({ subMenuIsShow, toggleSubMenu, subItems, router, handlerDecorator, }) => ((0, jsx_runtime_1.jsxs)("div", { className: `absolute w-52 -top-4 right-0 pt-4 z-40 ${subMenuIsShow ? 'bg-white rounded-md shadow-blue-gray/24' : ''}`, "data-header-submenu-visible": "toggled", children: [(0, jsx_runtime_1.jsx)("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", onClick: toggleSubMenu, "aria-label": `${subMenuIsShow ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, children: Array(3)
36
- .fill(0)
37
- .map((_, i) => renderDot(i)) }), (0, jsx_runtime_1.jsx)("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${subMenuIsShow ? '' : 'hidden'}`, "aria-hidden": !subMenuIsShow, children: renderDotsSubMenuItems(subItems, router, handlerDecorator) })] }));
40
+ const renderDotsSubMenu = ({ subMenuIsShow, toggleSubMenu, subItems, bgColor, router, handlerDecorator, }) => ((0, jsx_runtime_1.jsxs)("div", { className: `absolute w-52 -top-4 right-0 pt-4 z-40 ${subMenuIsShow ? 'bg-white rounded-md shadow-blue-gray/24' : ''}`, "data-header-submenu-visible": "toggled", children: [(0, jsx_runtime_1.jsx)("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", onClick: toggleSubMenu, "aria-label": `${subMenuIsShow ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, children: Array(3).fill(bgColor).map(renderDot) }), (0, jsx_runtime_1.jsx)("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${subMenuIsShow ? '' : 'hidden'}`, "aria-hidden": !subMenuIsShow, children: renderDotsSubMenuItems(subItems, router, handlerDecorator) })] }));
38
41
  // TODO: add types
39
42
  const renderDotsSubMenuItems = (subItems, router, handlerDecorator) => subItems?.map((_) => ((0, jsx_runtime_1.jsx)("a", { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), "data-item-name": "dots-header-submenu", className: "text-base font-light pb-4 hover:text-primary-main", children: _.text }, _.href)));
40
- const renderDot = (i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded bg-black mr-1" }, String(i)));
43
+ const renderDot = (bgColor, i) => ((0, jsx_runtime_1.jsx)("div", { className: `w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}` }, String(i)));
41
44
  //# sourceMappingURL=HeaderSubMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gFAA6E;AAC7E,mEAAgE;AAChE,6CAA0C;AAE1C,mEAAgE;AAQnD,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACtF,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,IAAA,aAAK,GAAE,EAAE;YACX,OAAO;SACR;QAED,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;QAC9F,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,6CAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,MAAM,aAAa,GAAG,IAAA,qCAAiB,EAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,aAAa,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnC,uBAAC,uBAAU,IAET,SAAS,EA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yB,EAAE,YAEnF,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAC/B,EACT,gCACE,SAAS,EAAE,8CAA8C,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,iBAC3E,CAAC,aAAa,YAE1B,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,GACvD,IACF,CACP,CAAC;AAEF,kBAAkB;AAClB,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CACpE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnB,iCAEM,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,oBAC7B,qBAAqB,EACpC,SAAS,EAAC,mDAAmD,YAE5D,CAAC,CAAC,IAAI,IALF,CAAC,CAAC,IAAI,CAMT,CACL,CAAC,CAAC;AAEL,MAAM,SAAS,GAAG,CAAC,OAAuB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,gCAAqB,SAAS,EAAE,gCAAgC,iBAAiB,CAAC,OAAO,CAAC,EAAE,IAAlF,MAAM,CAAC,CAAC,CAAC,CAA6E,CACjG,CAAC"}
@@ -2,23 +2,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ProductGallery = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const ProductGalleryBlock_1 = require("./ProductGalleryBlock");
6
- exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className, context, duration = 0, slides = [], anchor = null }) => {
5
+ const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
6
+ const productGalleryStyleMap = {
7
+ primary: 'bg-white text-primary-text',
8
+ secondary: 'bg-primary-main text-white',
9
+ };
10
+ const productBlockStyleMap = {
11
+ primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
12
+ secondary: { title: 'text-white', text: 'text-white/80' },
13
+ };
14
+ const productSlideStyleMap = {
15
+ primary: 'bg-white text-primary-text',
16
+ secondary: 'bg-primary-main text-white',
17
+ };
18
+ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
7
19
  const galleryNav = slides.map((s) => s.nav);
8
20
  const galleryBlocks = slides.map((s) => s.productBlock);
9
21
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
10
- return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, id: anchor, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => ((0, jsx_runtime_1.jsx)(ProductGalleryBlock_1.ProductGalleryBlock, { context: context, block: _ }, String(i)))) }), (0, jsx_runtime_1.jsx)("div", { className: "flex", children: galleryNav.map((slide, i) => renderNavButton({
22
+ return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
23
+ ${productGalleryStyleMap[version]}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
11
24
  slide,
12
25
  i,
13
26
  activeSlideIndex,
14
27
  onClick: () => setActiveSlideIndex(i),
15
- duration,
28
+ version,
16
29
  })) })] }));
17
30
  });
18
- function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
31
+ function renderProductBlock(block, i, context) {
32
+ const { version } = block;
33
+ const additionalClass = version ? productBlockStyleMap[version].title : '';
34
+ return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
35
+ }
36
+ function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
19
37
  const isActiveBtn = i === activeSlideIndex;
20
- const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
21
- const btnTitleClassName = isActiveBtn ? 'text-primary-text' : 'text-secondary-text';
22
- return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "border-0 border-r border-solid border-main-divider px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `text-sm font-medium pb-[3px] group-hover:text-primary-text ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xs text-secondary-text", children: slide.desc })] }), (0, jsx_runtime_1.jsx)("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } })] }, String(i)));
38
+ const btnClassName = isActiveBtn
39
+ ? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
40
+ : `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
41
+ ${productSlideStyleMap[version]}`;
42
+ const btnTitleClassName = isActiveBtn
43
+ ? 'text-primary-text text-title-2xs'
44
+ : `text-base ${productBlockStyleMap[version].title}`;
45
+ const btnDescClassName = isActiveBtn
46
+ ? 'text-secondary-text text-m-title-xs mt-2.5'
47
+ : `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
48
+ const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
49
+ return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
50
+ ${btnClassName} ${additionalBorder}
51
+ `, children: (0, jsx_runtime_1.jsxs)("div", { className: "border-0 px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
23
52
  }
24
53
  //# sourceMappingURL=ProductGallery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAM/C,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,qCACE,SAAS,EAAE,4CAA4C,SAAS,IAAI,EAAE,EAAE,EACxE,EAAE,EAAE,MAAM,aAEV,gCACE,SAAS,EAAE,oBAAoB,EAC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O,EAAE;IACvE,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,gFAAgF;QAClF,CAAC,CAAC;QACE,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACtC,MAAM,iBAAiB,GAAG,WAAW;QACnC,CAAC,CAAC,kCAAkC;QACpC,CAAC,CAAC,aAAa,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IACvD,MAAM,gBAAgB,GAAG,WAAW;QAClC,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,oBAAoB,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAE7D,MAAM,gBAAgB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEzF,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EAAE,KAAK,EACxB,SAAS,EAAE;UACP,YAAY,IAAI,gBAAgB;OACnC,YAED,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,SAAS,EAAE,eAAe,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACxE,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,KAAK,CAAC,WAAW,GAAO,IAChF,IAVD,MAAM,CAAC,CAAC,CAAC,CAWP,CACV,CAAC;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
2
3
  /** @title Кнопка под слайдом */
3
4
  interface ProductGalleryNav {
4
5
  /** @title Заголовок */
@@ -16,18 +17,14 @@ export interface ProductSlide {
16
17
  productBlock: ProductBlockInnerContent;
17
18
  }
18
19
  /**
19
- * @title Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)
20
+ * @title Продуктовая галерея
20
21
  */
21
22
  export interface ProductGalleryContent {
22
- /**
23
- * @title Задержка
24
- * @hidden //! temporary not used
25
- */
26
- duration?: number;
27
23
  /**
28
24
  * @title Слайды
29
25
  * @minItems 2
30
26
  */
31
27
  slides?: ProductSlide[];
28
+ version?: BlockVersion;
32
29
  }
33
30
  export {};
@@ -13,9 +13,14 @@ const productTileStyleMap = {
13
13
  primary: 'bg-white text-primary-text',
14
14
  secondary: 'bg-primary-main text-white',
15
15
  };
16
- exports.ProductTile = (0, uni_jsx_1.JSX)(({ context, className = '', title, headingType = 'h3', description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
17
- return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-4 max-w-[600px]", description: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
16
+ exports.ProductTile = (0, uni_jsx_1.JSX)(({ context, className = '', title, headingType = 'h3', description, additionalDescription, benefits, buttons, image, version = 'primary', anchor = null, }) => {
17
+ return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-4 max-w-[600px]", description: description })) : null, renderBenefits(benefits, version), additionalDescription
18
+ ? renderAdditionalDescription(additionalDescription, version)
19
+ : null] }) }));
18
20
  });
21
+ function renderBenefits(benefits = [], version) {
22
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex mt-5 mb-1", children: [benefits.length ? (0, jsx_runtime_1.jsx)("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) }) : null, benefits.length ? ((0, jsx_runtime_1.jsx)("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }));
23
+ }
19
24
  function renderBenefitLabel(benefit, i) {
20
25
  return ((0, jsx_runtime_1.jsx)("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
21
26
  }
@@ -26,4 +31,11 @@ function renderBenefitDescription(benefit, i, version = 'primary') {
26
31
  };
27
32
  return ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
28
33
  }
34
+ function renderAdditionalDescription(additionalDescription, version = 'primary') {
35
+ const descStyleMap = {
36
+ primary: 'text-secondary-text',
37
+ secondary: 'text-white',
38
+ };
39
+ return (0, jsx_runtime_1.jsx)("div", { className: `text-sm mt-2.5 ${descStyleMap[version]}`, children: additionalDescription });
40
+ }
29
41
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAMtE,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCACE,SAAS,EAAE,uEAAuE,SAAS,IACzF,mBAAmB,CAAC,OAAO,CAC7B,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACpE,EAAE,EAAE,MAAM,YAEV,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,O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,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,YACnF,OAAO,CAAC,WAAW,IADZ,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAMtE,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCACE,SAAS,EAAE,uEAAuE,SAAS,IACzF,mBAAmB,CAAC,OAAO,CAC7B,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACpE,EAAE,EAAE,MAAM,YAEV,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO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,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAoB,EAAE,CAAS,EAAE,OAAO,GAAG,SAAS;IACpF,MAAM,aAAa,GAAiC;QAClD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,CACL,gCAAqB,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,YACnF,OAAO,CAAC,WAAW,IADZ,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,2BAA2B,CAAC,qBAA6B,EAAE,OAAO,GAAG,SAAS;IACrF,MAAM,YAAY,GAAiC;QACjD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,gCAAK,SAAS,EAAE,kBAAkB,YAAY,CAAC,OAAO,CAAC,EAAE,YAAG,qBAAqB,GAAO,CAAC;AAClG,CAAC"}
@@ -14,4 +14,6 @@ export declare type ProductTileContent = HeadingContent & HeadingTypeContent & D
14
14
  * @maxItems 7
15
15
  */
16
16
  benefits?: TextBenefit[];
17
+ /** @title Дополнительное описание */
18
+ additionalDescription?: string;
17
19
  };
@@ -17,7 +17,7 @@ const tileStyleMap = {
17
17
  exports.Tile = (0, uni_jsx_1.JSX)((props) => {
18
18
  const { context, title, headingType = 'h3', description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
19
19
  return ((0, jsx_runtime_1.jsx)("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, role: role, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
20
- ${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description && ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })), children, renderList(items, version)] }) }));
20
+ ${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description && ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })), children, renderList(items, version)] }) }));
21
21
  });
22
22
  function renderList(items, version) {
23
23
  return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAOtE,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EACJ,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX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