@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
@@ -44,16 +44,10 @@ export interface ContentPageMeta {
44
44
  jsonLd?: string;
45
45
  }
46
46
 
47
- export interface CustomPageTemplate {
48
- content?: Record<string, any>;
49
- type?: string;
50
- }
51
-
52
47
  export interface ContentPageDef extends ContentPageMeta {
53
48
  style?: string[];
54
49
  blocks?: BlockDef[];
55
50
  slots?: SlotsMap;
56
- customPageTmpl?: CustomPageTemplate;
57
51
  likeControl?: boolean;
58
52
  colorPalette?: ColorPalette;
59
53
  }
@@ -77,3 +71,5 @@ export interface DaDataSuggestion<T> {
77
71
  export interface DaDataAddress {
78
72
  city?: string | null;
79
73
  }
74
+
75
+ export type FuncSetNumber = (value: number) => void;
@@ -13,7 +13,7 @@ type EmbeddableBlocksProps = {
13
13
  export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
14
14
  blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
15
15
 
16
- export const renderBlock =
16
+ const renderBlock =
17
17
  ({ context, columns, className }: EmbeddableBlocksProps) =>
18
18
  (block: BlockDef, i: number) => {
19
19
  const type = block?.blockListType;
@@ -7,7 +7,7 @@ interface ButtonInnerProps extends ButtonWithIconProps {
7
7
  }
8
8
 
9
9
  export const ButtonInner = JSX<ButtonInnerProps>((props) => {
10
- const { text, aboveText, appendLeft } = props;
10
+ const { text, aboveText, appendLeft, appendRight } = props;
11
11
  return (
12
12
  <div className={getButtonStyle(props)}>
13
13
  {appendLeft ? appendLeft : null}
@@ -17,6 +17,7 @@ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
17
17
  <div className="text-button text-left">{text}</div>
18
18
  </div>
19
19
  ) : null}
20
+ {appendRight ? appendRight : null}
20
21
  </div>
21
22
  );
22
23
  });
@@ -29,6 +29,8 @@ export interface ButtonWithIconProps extends ButtonProps {
29
29
  aboveText?: string;
30
30
  /** @hidden */
31
31
  appendLeft?: any;
32
+ /** @hidden */
33
+ appendRight?: any;
32
34
  /** @title Закругленные углы */
33
35
  rounded?: boolean;
34
36
  /** @hidden */
@@ -11,7 +11,7 @@ export const ButtonSection = JSX<ButtonSectionProps>(({ context, className = '',
11
11
  const { handlerDecorator } = context;
12
12
  const router = context.useRouter();
13
13
  return buttons?.length ? (
14
- <div className={`${className}`}>
14
+ <div className={className}>
15
15
  {buttons.map((button, index) =>
16
16
  renderButton(useLink({ router, handlerDecorator }, button), index),
17
17
  )}
@@ -32,9 +32,7 @@ export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className
32
32
  fill="white"
33
33
  viewBox="0 0 11 9"
34
34
  />
35
- {text ? (
36
- <span className="font-sans ml-3 text-sm leading-5 cursor-pointer">{text}</span>
37
- ) : null}
35
+ {text ? <span className="font-sans ml-3 text-m-base cursor-pointer">{text}</span> : null}
38
36
  </label>
39
37
  </div>
40
38
  ));
@@ -20,19 +20,15 @@ export const InputRange = JSX<InputRangeProps>(
20
20
  return (
21
21
  <div className={className}>
22
22
  <label className="block relative">
23
- {title ? (
24
- <span className="absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5">
25
- {title}
26
- </span>
27
- ) : null}
23
+ {title ? <span className="text-base text-secondary-text pl-4">{title}</span> : null}
28
24
  <input
29
- className={`m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md
30
- outline-none p-0 pl-4 m-0 box-border text-primary-text ${ title ? 'pt-4' : '' }`}
25
+ className={`m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md
26
+ outline-none p-0 pl-4 box-border text-primary-text`}
31
27
  value={addSpacesBetweenNumbers(value)}
32
28
  onChange={(e) => handleChange(e.target.value)}
33
29
  onBlur={handleBlur}
34
30
  />
35
- <div className="absolute inset-x-0 top-[35px] px-4 leading-[18px]">
31
+ <div className="absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]">
36
32
  <input
37
33
  className="box-border w-full m-0 cursor-pointer slider"
38
34
  type="range"
@@ -47,7 +43,9 @@ export const InputRange = JSX<InputRangeProps>(
47
43
  </label>
48
44
  <div className="flex justify-between my-3">
49
45
  {items.map((item, i) => (
50
- <span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4"> {item} </span>
46
+ <span key={String(i)} className="text-sm leading-[14px] text-secondary-text pl-4">
47
+ {item}
48
+ </span>
51
49
  ))}
52
50
  </div>
53
51
  </div>
@@ -1,3 +1,5 @@
1
+ import type { FuncSetNumber } from '../../types';
2
+
1
3
  export interface InputRangeProps {
2
4
  className?: string;
3
5
  items?: string[];
@@ -6,5 +8,5 @@ export interface InputRangeProps {
6
8
  step?: number;
7
9
  value?: number;
8
10
  title?: string;
9
- onChange?: (value: number) => void;
11
+ onChange?: FuncSetNumber;
10
12
  }
@@ -1,4 +1,5 @@
1
1
  import type { Picture } from '../../model/Picture';
2
+ import { FuncSetNumber } from '../../types';
2
3
 
3
4
  /**
4
5
  * @title Вкладка
@@ -11,7 +12,7 @@ export interface Tab {
11
12
  icon?: Picture;
12
13
  }
13
14
 
14
- export type TabClickHandler = (value: number) => void;
15
+ export type TabClickHandler = FuncSetNumber;
15
16
 
16
17
  export interface TabsProps {
17
18
  tabs?: Tab[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.57",
3
+ "version": "0.3.59",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
package/src/common.css CHANGED
@@ -72,6 +72,13 @@ html {
72
72
  width: 100%;
73
73
  }
74
74
 
75
+ .calc-rate-text {
76
+ background: linear-gradient(180deg, #42ab44 0%, #f6db7d 100%);
77
+ -webkit-background-clip: text;
78
+ -webkit-text-fill-color: transparent;
79
+ text-fill-color: transparent;
80
+ }
81
+
75
82
  input[type='range'].slider {
76
83
  -webkit-appearance: none;
77
84
  height: 4px;
@@ -2,6 +2,7 @@ import { Accordion } from './Accordion/Accordion';
2
2
  import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
3
3
  import { Bonus } from './Bonus/Bonus';
4
4
  import { ComparisonTable } from './ComparisonTable/ComparisonTable';
5
+ import { Calculator } from './Calculator/Calculator';
5
6
  import { CreditCalculator } from './CreditCalculator/CreditCalculator';
6
7
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
7
8
  import { Footer } from './Footer/Footer';
@@ -19,7 +20,6 @@ import { PictureText } from './PictureText/PictureText';
19
20
  import { Placeholder } from './Placeholder/Placeholder';
20
21
  import { ProductBlock } from './ProductBlock/ProductBlock';
21
22
  import { ProductGallery } from './ProductGallery/ProductGallery';
22
- import { ProductGalleryGreen } from './ProductGalleryGreen/ProductGalleryGreen';
23
23
  import { ProductTile } from './ProductTile/ProductTile';
24
24
  import { PromoTile } from './PromoTile/PromoTile';
25
25
  import { Recommendation } from './Recommendation/Recommendation';
@@ -34,6 +34,7 @@ export const Blocks = {
34
34
  BenefitsBlock,
35
35
  Bonus,
36
36
  ComparisonTable,
37
+ Calculator,
37
38
  CreditCalculator,
38
39
  ExchangeRateTile,
39
40
  Footer,
@@ -48,7 +49,6 @@ export const Blocks = {
48
49
  PictureText,
49
50
  ProductBlock,
50
51
  ProductGallery,
51
- ProductGalleryGreen,
52
52
  ProductTile,
53
53
  PromoTile,
54
54
  OtherProducts,
@@ -0,0 +1,71 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../types';
3
+ import { CalculatorValueBlock } from './CalculatorValueBlock';
4
+ import { getDefaultSum } from './getDefaultSum';
5
+ import { renderWantedSumInput } from './renderWantedSumInput';
6
+ import { renderRate } from './renderRate';
7
+ import { renderButtonSection } from './renderButtonSection';
8
+ import { BonusCalculatorParams, CommonCalculatorProps } from './CalculatorContent';
9
+
10
+ export interface BonusCalculatorProp
11
+ extends BonusCalculatorParams,
12
+ CommonCalculatorProps,
13
+ UniBlockProps {}
14
+
15
+ export const BonusCalculatorForm = JSX<BonusCalculatorProp>(
16
+ ({
17
+ context,
18
+ className = '',
19
+ buttons,
20
+ bonus,
21
+ minSumTrip,
22
+ maxSumTrip,
23
+ minSumOther,
24
+ maxSumOther,
25
+ }) => {
26
+ const [bonusTripValue, setBonusTripValue] = context.useState<number | undefined>(undefined);
27
+ const [bonusOtherValue, setBonusOtherValue] = context.useState<number | undefined>(undefined);
28
+ const calculatorTripParams = { minSum: minSumTrip, maxSum: maxSumTrip };
29
+ const calculatorOtherParams = { minSum: minSumOther, maxSum: maxSumOther };
30
+
31
+ const incomeBonus = 948841;
32
+ const bonusOrDef = bonus || 2528;
33
+
34
+ return (
35
+ <section className={className}>
36
+ <div className="w-[468px]">
37
+ {renderWantedSumInput({
38
+ title: 'Сумма покупок в категории путешествия, ₽',
39
+ calculatorParams: calculatorTripParams,
40
+ moneyValue: bonusTripValue,
41
+ defaultSum: getDefaultSum(calculatorTripParams),
42
+ setMoneyValue: setBonusTripValue,
43
+ isShowItems: false,
44
+ })}
45
+ {renderWantedSumInput({
46
+ className: 'mt-6',
47
+ title: 'Сумма покупок в остальных категориях, ₽',
48
+ calculatorParams: calculatorOtherParams,
49
+ moneyValue: bonusOtherValue,
50
+ defaultSum: getDefaultSum(calculatorOtherParams),
51
+ setMoneyValue: setBonusOtherValue,
52
+ isShowItems: false,
53
+ })}
54
+ </div>
55
+ <div>
56
+ {bonusOrDef
57
+ ? renderRate({
58
+ rate: bonusOrDef,
59
+ title: 'Баллов за месяц',
60
+ className: 'tracking-[-14px]',
61
+ })
62
+ : null}
63
+ </div>
64
+ <div className="w-[240px]">
65
+ {incomeBonus ? <CalculatorValueBlock title="Баллов за год" value={incomeBonus} /> : null}
66
+ {renderButtonSection(context, buttons)}
67
+ </div>
68
+ </section>
69
+ );
70
+ },
71
+ );
@@ -0,0 +1,131 @@
1
+ import { context } from '../../setup-fixture';
2
+ import { Calculator } from './Calculator';
3
+
4
+ import type {
5
+ CreditCalculatorParamsDef,
6
+ MortgageCalculatorParamsDef,
7
+ DepositCalculatorParamsDef,
8
+ BonusCalculatorParamsDef,
9
+ } from './CalculatorContent';
10
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
11
+
12
+ const buttons: ButtonWithIconProps[] = [
13
+ {
14
+ href: 'https://rshb.ru',
15
+ text: 'Отправить заявку',
16
+ target: '_blank',
17
+ version: 'primary',
18
+ },
19
+ {
20
+ href: 'https://rshb.ru',
21
+ text: 'Подробные условия',
22
+ target: '_blank',
23
+ version: 'secondary',
24
+ },
25
+ ];
26
+
27
+ const CREDIT_CALCULATOR_BLOCK: CreditCalculatorParamsDef = {
28
+ calcType: 'CreditCalculatorForm',
29
+ isAnnuity: true,
30
+ minSum: 30000,
31
+ maxSum: 5000000,
32
+ minMonths: 1,
33
+ maxMonths: 84,
34
+ rateWithInsurance: 10.2,
35
+ rateWithoutInsurance: 10.7,
36
+ buttons: buttons,
37
+ };
38
+
39
+ const MORTGAGE_CALCULATOR_BLOCK: MortgageCalculatorParamsDef = {
40
+ calcType: 'MortgageCalculatorForm',
41
+ isAnnuity: true,
42
+ minSum: 15000,
43
+ maxSum: 7500000,
44
+ minMonths: 2,
45
+ maxMonths: 120,
46
+ rateWithInsurance: 4,
47
+ rateWithoutInsurance: 5.5,
48
+ buttons: buttons,
49
+ };
50
+
51
+ const DEPOSIT_CALCULATOR_BLOCK: DepositCalculatorParamsDef = {
52
+ calcType: 'DepositCalculatorForm',
53
+ minSum: 50000,
54
+ maxSum: 5000000,
55
+ minMonths: 2,
56
+ maxMonths: 120,
57
+ rate: 5.9,
58
+ buttons: buttons,
59
+ };
60
+
61
+ const BONUS_CALCULATOR_BLOCK: BonusCalculatorParamsDef = {
62
+ calcType: 'BonusCalculatorForm',
63
+ bonus: 2528,
64
+ minSumTrip: 1,
65
+ maxSumTrip: 200000,
66
+ minSumOther: 1,
67
+ maxSumOther: 500000,
68
+ buttons: buttons,
69
+ };
70
+
71
+ export default {
72
+ default: (
73
+ <div className="container grid grid-cols-12">
74
+ <Calculator
75
+ className="col-span-12"
76
+ context={context}
77
+ calcTabs={[
78
+ {
79
+ nav: {
80
+ title: 'Кредит на любые цели',
81
+ description: 'Ставка от 5,5% до 5 лет',
82
+ icon: { icon: 'CalendarIcon' },
83
+ },
84
+ calculatorBlock: CREDIT_CALCULATOR_BLOCK,
85
+ },
86
+ {
87
+ nav: {
88
+ title: 'Ипотека с господдержкой',
89
+ description: 'Ставка от 6%, срок до 30 лет',
90
+ icon: { icon: 'WalletAdd2Icon' },
91
+ },
92
+ calculatorBlock: MORTGAGE_CALCULATOR_BLOCK,
93
+ },
94
+ {
95
+ nav: {
96
+ title: 'Вклад «Доходный»',
97
+ description: 'Ставка до 7% до 15 лет',
98
+ icon: { icon: 'SafeIcon' },
99
+ },
100
+ calculatorBlock: DEPOSIT_CALCULATOR_BLOCK,
101
+ },
102
+ {
103
+ nav: {
104
+ title: 'Обменивайте баллы на путешествия',
105
+ icon: { icon: 'PercentageSquareIcon' },
106
+ },
107
+ calculatorBlock: BONUS_CALCULATOR_BLOCK,
108
+ },
109
+ ]}
110
+ />
111
+ </div>
112
+ ),
113
+ single: (
114
+ <div className="container grid grid-cols-12">
115
+ <Calculator
116
+ className="col-span-12"
117
+ context={context}
118
+ calcTabs={[
119
+ {
120
+ nav: {
121
+ title: 'Кредит на любые цели',
122
+ description: 'Ставка от 5,5% до 5 лет',
123
+ icon: { icon: 'CalendarIcon' },
124
+ },
125
+ calculatorBlock: CREDIT_CALCULATOR_BLOCK,
126
+ },
127
+ ]}
128
+ />
129
+ </div>
130
+ ),
131
+ };
@@ -0,0 +1,141 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../types';
3
+ import type { CalculatorContent, CalculatorBlockDef } from './CalculatorContent';
4
+ import { ArrowButton } from '../../ui-kit/Button/ArrowButton';
5
+ import { Img } from '../../ui-kit/Img/Img';
6
+ import { renderCalculatorList } from './renderCalculatorList';
7
+ import { CalculatorNav } from './CalculatorContent';
8
+
9
+ export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
10
+
11
+ type TabsProps = {
12
+ tabsShift: number;
13
+ tabsNav: CalculatorNav[];
14
+ activeSlideIndex: number;
15
+ setActiveSlideIndex: (i: number) => void;
16
+ };
17
+
18
+ type NavButtonProps = {
19
+ tab: CalculatorNav;
20
+ i: number;
21
+ activeSlideIndex: number;
22
+ onClick: (ev: MouseEvent) => void;
23
+ };
24
+
25
+ const arrowBtnStyle =
26
+ 'absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full';
27
+
28
+ export const Calculator = JSX<CalculatorProps>(
29
+ ({ className = '', context, calcTabs = [], anchor = null }) => {
30
+ const tabsNav = calcTabs.map((_) => _.nav || ({} as CalculatorNav));
31
+ const blockCalcTabs = calcTabs.map(
32
+ ({ calculatorBlock }) => calculatorBlock || ({} as CalculatorBlockDef),
33
+ );
34
+ const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
35
+ const [tabsShift, setTabsShift] = context.useState(0);
36
+
37
+ const handleNextClick = () => setTabsShift(tabsShift + 1);
38
+ const handlePrevClick = () => setTabsShift(tabsShift - 1);
39
+
40
+ const isGalleryScrollAvailable = calcTabs?.length > 3;
41
+ const showNextButton = isGalleryScrollAvailable && calcTabs?.length > tabsShift + 3;
42
+ const showPrevButton = tabsShift > 0;
43
+
44
+ return (
45
+ <section
46
+ id={anchor}
47
+ className={`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${className}`}
48
+ >
49
+ <div>
50
+ {tabsNav.length > 1
51
+ ? renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex })
52
+ : null}
53
+ {showPrevButton ? (
54
+ <ArrowButton
55
+ className={`${arrowBtnStyle} left-3 top-3`}
56
+ onClick={handlePrevClick}
57
+ ariaLabel="Пролистать влево"
58
+ data-block-control="scroll-left"
59
+ />
60
+ ) : null}
61
+ {showNextButton ? (
62
+ <ArrowButton
63
+ className={`${arrowBtnStyle} right-3 top-3 rotate-180`}
64
+ onClick={handleNextClick}
65
+ ariaLabel="Пролистать вправо"
66
+ data-block-control="scroll-right"
67
+ />
68
+ ) : null}
69
+ </div>
70
+ <div
71
+ className="flex"
72
+ style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
73
+ role="list"
74
+ >
75
+ {renderCalculatorList({
76
+ context,
77
+ className,
78
+ blockCalcTabs,
79
+ })}
80
+ </div>
81
+ </section>
82
+ );
83
+ },
84
+ );
85
+
86
+ function renderNavButton({ tab, i, activeSlideIndex, onClick }: NavButtonProps) {
87
+ const isActiveBtn = i === activeSlideIndex;
88
+
89
+ const btnClassName = isActiveBtn
90
+ ? 'h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white'
91
+ : `h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
92
+ const btnTitleClassName = isActiveBtn ? 'text-md-new mb-1.5' : `text-base mb-[3px]`;
93
+ const btnDescClassName = isActiveBtn ? 'text-base text-white' : `text-m-md`;
94
+ const iconClassName = isActiveBtn ? '' : `text-primary-main`;
95
+
96
+ return (
97
+ <button
98
+ type="button"
99
+ key={String(i)}
100
+ onClick={onClick}
101
+ aria-label={tab?.title}
102
+ className={`box-border font-sans relative border-[1px] border-main-stroke cursor-pointer text-left border-b-0 flex
103
+ ${btnClassName}`}
104
+ >
105
+ <Img
106
+ className={`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${iconClassName}`}
107
+ image={{ ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }}
108
+ width="24"
109
+ height="24"
110
+ asSVG
111
+ />
112
+ <div className="border-0">
113
+ <div className={`font-medium ${btnTitleClassName}`}>{tab?.title}</div>
114
+ <div className={`text-secondary-text ${btnDescClassName}`}>{tab.description}</div>
115
+ </div>
116
+ </button>
117
+ );
118
+ }
119
+
120
+ function renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex }: TabsProps) {
121
+ return (
122
+ <div>
123
+ <div
124
+ style={{ transform: `translateX(-${tabsShift * 388}px)` }}
125
+ className="flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000"
126
+ >
127
+ <div className="w-full flex flex-nowrap items-end gap-2">
128
+ {tabsNav.map((tab, i) =>
129
+ renderNavButton({
130
+ tab,
131
+ i,
132
+ activeSlideIndex,
133
+ onClick: () => setActiveSlideIndex(i),
134
+ }),
135
+ )}
136
+ </div>
137
+ </div>
138
+ <div className="w-full h-2 bg-primary-main" />
139
+ </div>
140
+ );
141
+ }
@@ -0,0 +1,134 @@
1
+ import { Picture } from '../../model/Picture';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+
4
+ export interface CommonCalculatorProps {
5
+ buttons?: ButtonWithIconProps[];
6
+ }
7
+
8
+ export interface CreditCalculatorParams {
9
+ isSalary?: boolean;
10
+ isInsurance?: boolean;
11
+ isAnnuity?: boolean;
12
+ minSum?: number;
13
+ maxSum?: number;
14
+ minMonths?: number;
15
+ maxMonths?: number;
16
+ rateWithInsurance?: number;
17
+ rateWithoutInsurance?: number;
18
+ }
19
+
20
+ export interface MortgageCalculatorParams {
21
+ isAnnuity?: boolean;
22
+ minInitialContribution?: number;
23
+ minSum?: number;
24
+ maxSum?: number;
25
+ minMonths?: number;
26
+ maxMonths?: number;
27
+ rateWithInsurance?: number;
28
+ rateWithoutInsurance?: number;
29
+ }
30
+
31
+ export interface DepositCalculatorParams {
32
+ minSum?: number;
33
+ maxSum?: number;
34
+ minMonths?: number;
35
+ maxMonths?: number;
36
+ rate?: number;
37
+ }
38
+
39
+ export interface BonusCalculatorParams {
40
+ bonus?: number;
41
+ minSumTrip?: number;
42
+ maxSumTrip?: number;
43
+ minSumOther?: number;
44
+ maxSumOther?: number;
45
+ }
46
+
47
+ export interface CalculatorParams {
48
+ isAnnuity?: boolean;
49
+ minSum?: number;
50
+ maxSum?: number;
51
+ minMonths?: number;
52
+ maxMonths?: number;
53
+ rateWithInsurance?: number;
54
+ rateWithoutInsurance?: number;
55
+ }
56
+
57
+ /**
58
+ * @title Заголовок
59
+ * @default {"calcType": "CreditCalculatorForm"}
60
+ */
61
+ export type CreditCalculatorParamsDef = CreditCalculatorParams &
62
+ CommonCalculatorProps & {
63
+ calcType: 'CreditCalculatorForm';
64
+ };
65
+
66
+ /**
67
+ * @title Заголовок
68
+ * @default {"calcType": "MortgageCalculatorForm"}
69
+ */
70
+ export type MortgageCalculatorParamsDef = MortgageCalculatorParams &
71
+ CommonCalculatorProps & {
72
+ calcType: 'MortgageCalculatorForm';
73
+ };
74
+
75
+ /**
76
+ * @title Заголовок
77
+ * @default {"calcType": "DepositCalculatorForm"}
78
+ */
79
+ export type DepositCalculatorParamsDef = DepositCalculatorParams &
80
+ CommonCalculatorProps & {
81
+ calcType: 'DepositCalculatorForm';
82
+ };
83
+
84
+ /**
85
+ * @title Заголовок
86
+ * @default {"calcType": "BonusCalculatorForm"}
87
+ */
88
+ export type BonusCalculatorParamsDef = BonusCalculatorParams &
89
+ CommonCalculatorProps & {
90
+ calcType: 'BonusCalculatorForm';
91
+ };
92
+
93
+ /**
94
+ * @title Выберите калькулятор
95
+ */
96
+ export type EmptyOption = null;
97
+
98
+ /**
99
+ * @title Калькулятор
100
+ */
101
+ export type CalculatorBlockDef =
102
+ | EmptyOption
103
+ | CreditCalculatorParamsDef
104
+ | MortgageCalculatorParamsDef
105
+ | DepositCalculatorParamsDef
106
+ | BonusCalculatorParamsDef;
107
+
108
+ /**
109
+ * @title Кнопка навигации
110
+ */
111
+ export interface CalculatorNav {
112
+ /** @title Заголовок */
113
+ title?: string;
114
+ /** @title Описание */
115
+ description?: string;
116
+ icon?: Picture;
117
+ }
118
+
119
+ /**
120
+ * @title Вкладка
121
+ */
122
+ export interface CalculatorTab {
123
+ nav?: CalculatorNav;
124
+ /** @title Настройки калькулятора */
125
+ calculatorBlock?: CalculatorBlockDef;
126
+ }
127
+
128
+ /**
129
+ * @title Калькулятор
130
+ */
131
+ export interface CalculatorContent {
132
+ /** @title Вкладки */
133
+ calcTabs?: CalculatorTab[];
134
+ }