@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,18 @@
1
+ import type { CalculatorParams } from './CalculatorContent';
2
+
3
+ const DEFAULT_RATE = 10.2;
4
+
5
+ interface GetCreditRateParams {
6
+ calculatorParams?: CalculatorParams;
7
+ isInsurance: boolean;
8
+ }
9
+
10
+ export const getCreditRate = (params: GetCreditRateParams) => {
11
+ const { calculatorParams, isInsurance } = params;
12
+
13
+ if (!calculatorParams) return DEFAULT_RATE;
14
+
15
+ return isInsurance
16
+ ? calculatorParams?.rateWithInsurance || DEFAULT_RATE
17
+ : calculatorParams?.rateWithoutInsurance || DEFAULT_RATE;
18
+ };
@@ -0,0 +1,7 @@
1
+ import { DEFAULT_MONTHS } from './constants';
2
+ import type { CalculatorParams } from './CalculatorContent';
3
+
4
+ export const getDefaultMonths = (calculatorParams: CalculatorParams) =>
5
+ calculatorParams.maxMonths && calculatorParams.minMonths
6
+ ? Math.round((calculatorParams.maxMonths - calculatorParams.minMonths) / 2)
7
+ : DEFAULT_MONTHS;
@@ -0,0 +1,7 @@
1
+ import { DEFAULT_SUM } from './constants';
2
+ import type { CalculatorParams } from './CalculatorContent';
3
+
4
+ export const getDefaultSum = (calculatorParams: CalculatorParams) =>
5
+ calculatorParams.maxSum && calculatorParams.minSum
6
+ ? (calculatorParams.maxSum - calculatorParams.minSum) / 2
7
+ : DEFAULT_SUM;
@@ -0,0 +1,32 @@
1
+ import { clamp } from '../../utils/clamp';
2
+ import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM, MONTHS_IN_YEAR } from './constants';
3
+ import type { CalculatorParams } from './CalculatorContent';
4
+
5
+ type PaymentType = 'annuity' | 'differentiated';
6
+
7
+ interface GetMonthlyPaymentParams {
8
+ calculatorParams?: CalculatorParams;
9
+ paymentType: PaymentType;
10
+ rate: number;
11
+ sum: number;
12
+ months: number;
13
+ }
14
+
15
+ export const getMonthlyPayment = (params: GetMonthlyPaymentParams) => {
16
+ const { calculatorParams, paymentType, rate, sum, months } = params;
17
+
18
+ if (!calculatorParams) return 0;
19
+
20
+ const finalSum = clamp(
21
+ sum,
22
+ calculatorParams.minSum || DEFAULT_MIN_SUM,
23
+ calculatorParams.maxSum || DEFAULT_MAX_SUM,
24
+ );
25
+
26
+ if (paymentType === 'annuity') {
27
+ const annuityCoef = Number(rate) / (MONTHS_IN_YEAR * 100);
28
+ return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
29
+ } else {
30
+ return finalSum / months + finalSum * (Number(rate) / 12);
31
+ }
32
+ };
@@ -0,0 +1,7 @@
1
+ import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
2
+
3
+ export function renderButtonSection(context, buttons) {
4
+ return buttons?.length ? (
5
+ <ButtonSection context={context} buttons={buttons} className="flex flex-col mt-7 gap-2" />
6
+ ) : null;
7
+ }
@@ -0,0 +1,43 @@
1
+ import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
+ import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
+ import type { CalculatorBlockDef } from './CalculatorContent';
4
+ import { EmbeddableCalcBlocks, EmbeddableCalcProps } from './EmbeddableCalcBlocks';
5
+
6
+ type EmbeddableCalcBlocks = {
7
+ blockCalcTabs?: CalculatorBlockDef[];
8
+ context: ContentPageContext;
9
+ className?: string;
10
+ };
11
+
12
+ export const renderCalculatorList = ({
13
+ blockCalcTabs,
14
+ context,
15
+ className,
16
+ }: EmbeddableCalcBlocks) => {
17
+ return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
18
+ };
19
+
20
+ const renderBlock =
21
+ ({ context, className }: any) =>
22
+ (blockCalcTabs: CalculatorBlockDef, i: number) => {
23
+ const type = blockCalcTabs?.calcType;
24
+ if (!type || !(type in EmbeddableCalcBlocks)) {
25
+ return null;
26
+ }
27
+ const EmbeddedBlock: JSXBlock<EmbeddableCalcProps> = EmbeddableCalcBlocks[type];
28
+ return (
29
+ <section
30
+ key={`${String(i)}`}
31
+ className={`box-border relative flex grow-0 shrink-0 basis-full ${className}`}
32
+ role="listitem"
33
+ >
34
+ <div className={`box-border p-9 w-full`}>
35
+ <EmbeddedBlock
36
+ context={context}
37
+ {...blockCalcTabs}
38
+ className="!p-0 flex justify-between"
39
+ />
40
+ </div>
41
+ </section>
42
+ );
43
+ };
@@ -0,0 +1,37 @@
1
+ import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
4
+ import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants';
5
+ import type { CalculatorParams } from './CalculatorContent';
6
+
7
+ const STEP_MONEY = 1000;
8
+
9
+ interface RenderWantedSumInputProps {
10
+ calculatorParams: CalculatorParams;
11
+ moneyValue: number | undefined;
12
+ defaultSum: number;
13
+ setMoneyValue: InputRangeProps['onChange'];
14
+ }
15
+
16
+ export function renderInitialFeeInput(props: RenderWantedSumInputProps) {
17
+ const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
18
+
19
+ const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
20
+ const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
21
+
22
+ return (
23
+ <InputRange
24
+ className="mt-6"
25
+ title="Первоначальный взнос, ₽ "
26
+ items={[
27
+ `От ${addSpacesBetweenNumbers(minSum)} рублей`,
28
+ `До ${addSpacesBetweenNumbers(maxSum)} рублей`,
29
+ ]}
30
+ min={minSum}
31
+ max={maxSum}
32
+ step={STEP_MONEY}
33
+ value={moneyValue || defaultSum}
34
+ onChange={setMoneyValue}
35
+ />
36
+ );
37
+ }
@@ -0,0 +1,34 @@
1
+ import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+
4
+ const STEP_MONTHS = 1;
5
+
6
+ interface RenderMonthsInputProps {
7
+ title: string;
8
+ minMonths: number;
9
+ maxMonths: number;
10
+ monthsValue: number | undefined;
11
+ defaultMonths: number;
12
+ setMonthsValue: InputRangeProps['onChange'];
13
+ }
14
+
15
+ export function renderMonthsInput(props: RenderMonthsInputProps) {
16
+ const { title, minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
17
+ const monthText = (month) => {
18
+ const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
19
+ return `${month} ${text}`;
20
+ };
21
+
22
+ return (
23
+ <InputRange
24
+ className="mt-6"
25
+ title={title}
26
+ items={[`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`]}
27
+ min={minMonths}
28
+ max={maxMonths}
29
+ step={STEP_MONTHS}
30
+ value={monthsValue || defaultMonths}
31
+ onChange={setMonthsValue}
32
+ />
33
+ );
34
+ }
@@ -0,0 +1,14 @@
1
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
2
+ import { Button } from '../../ui-kit/Button/Button';
3
+
4
+ export function renderProposal(monthlyPayment: number) {
5
+ return (
6
+ <div className="box-border ">
7
+ <div className="text-base font-light">Ежемесячный платёж</div>
8
+ <div className="text-title mb-3 font-normal">
9
+ {addSpacesBetweenNumbers(Math.round(monthlyPayment))} ₽
10
+ </div>
11
+ <Button className="mt-[50px] w-full" text="Отправить заявку" version="primary" href="#" />
12
+ </div>
13
+ );
14
+ }
@@ -0,0 +1,17 @@
1
+ import { CalculatorValueBlock } from './CalculatorValueBlock';
2
+
3
+ type porposalMortgage = {
4
+ credit: number;
5
+ period: number;
6
+ taxRefund: number;
7
+ };
8
+
9
+ export function renderProposalMortgage({ credit, period, taxRefund }: porposalMortgage) {
10
+ return (
11
+ <div>
12
+ {<CalculatorValueBlock title="Сумма кредита" value={credit} postfix="₽" />}
13
+ {<CalculatorValueBlock title="Срок" value={period} postfix="лет" />}
14
+ {<CalculatorValueBlock title="Налоговый вычет" value={taxRefund} postfix="₽" />}
15
+ </div>
16
+ );
17
+ }
@@ -0,0 +1,23 @@
1
+ type rateType = {
2
+ rate: number;
3
+ title?: string;
4
+ sup?: string;
5
+ className?: string;
6
+ };
7
+
8
+ export function renderRate({ rate, title, sup, className = '' }: rateType) {
9
+ const rateFormat = String(rate).replace('.', ',');
10
+ return (
11
+ <div>
12
+ <div className="text-sm font-light ml-3">{title}</div>
13
+ <div className="flex justify-start">
14
+ <span
15
+ className={`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${className}`}
16
+ >
17
+ {rateFormat}
18
+ </span>
19
+ {sup ? <span className="calc-rate-text text-[65px] leading-[75px]">{sup}</span> : ''}
20
+ </div>
21
+ </div>
22
+ );
23
+ }
@@ -0,0 +1,33 @@
1
+ import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
4
+ import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants';
5
+ import type { CalculatorParams } from './CalculatorContent';
6
+
7
+ const STEP_MONEY = 1000;
8
+
9
+ interface RenderRealEstateValueInputProps {
10
+ calculatorParams: CalculatorParams;
11
+ moneyValue: number | undefined;
12
+ defaultSum: number;
13
+ setMoneyValue: InputRangeProps['onChange'];
14
+ }
15
+
16
+ export function renderRealEstateValue(props: RenderRealEstateValueInputProps) {
17
+ const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
18
+
19
+ const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
20
+ const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
21
+
22
+ return (
23
+ <InputRange
24
+ title="Стоимость недвижимости, ₽ "
25
+ items={[`От ${addSpacesBetweenNumbers(minSum)} ₽`, `До ${addSpacesBetweenNumbers(maxSum)} ₽`]}
26
+ min={minSum}
27
+ max={maxSum}
28
+ step={STEP_MONEY}
29
+ value={moneyValue || defaultSum}
30
+ onChange={setMoneyValue}
31
+ />
32
+ );
33
+ }
@@ -0,0 +1,49 @@
1
+ import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
4
+ import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants';
5
+ import type { CalculatorParams } from './CalculatorContent';
6
+
7
+ const STEP_MONEY = 1000;
8
+
9
+ interface RenderWantedSumInputProps {
10
+ className?: string;
11
+ title: string;
12
+ isShowItems?: boolean;
13
+ calculatorParams: CalculatorParams;
14
+ moneyValue: number | undefined;
15
+ defaultSum: number;
16
+ setMoneyValue: InputRangeProps['onChange'];
17
+ }
18
+
19
+ export function renderWantedSumInput(props: RenderWantedSumInputProps) {
20
+ const {
21
+ title,
22
+ className = '',
23
+ calculatorParams,
24
+ moneyValue,
25
+ defaultSum,
26
+ setMoneyValue,
27
+ isShowItems = true,
28
+ } = props;
29
+
30
+ const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
31
+ const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
32
+ const items = [
33
+ `От ${addSpacesBetweenNumbers(minSum)} ₽`,
34
+ `До ${addSpacesBetweenNumbers(maxSum)} ₽`,
35
+ ];
36
+
37
+ return (
38
+ <InputRange
39
+ className={className}
40
+ title={title}
41
+ items={isShowItems ? items : []}
42
+ min={minSum}
43
+ max={maxSum}
44
+ step={STEP_MONEY}
45
+ value={moneyValue || defaultSum}
46
+ onChange={setMoneyValue}
47
+ />
48
+ );
49
+ }
@@ -61,11 +61,12 @@
61
61
  "type": "ProductGallery",
62
62
  "style": ["col-span-12"],
63
63
  "content": {
64
+ "version": "secondary",
64
65
  "slides": [
65
66
  {
66
67
  "nav": {
67
68
  "title": "Деньги на любые цели",
68
- "desc": "Ставка от 12,5% годовых на срок до 5 лет"
69
+ "description": "Ставка от 12,5% годовых на срок до 5 лет"
69
70
  },
70
71
  "productBlock": {
71
72
  "title": "Ставка от 12,5% годовых на срок до 5 лет!»",
@@ -79,7 +80,7 @@
79
80
  "href": "https://rshb.ru",
80
81
  "text": "Подробнее",
81
82
  "target": "_blank",
82
- "version": "primary"
83
+ "version": "secondary"
83
84
  }
84
85
  ],
85
86
  "image": {
@@ -103,7 +104,7 @@
103
104
  {
104
105
  "nav": {
105
106
  "title": "Для людей в возрасте",
106
- "desc": "Ставка от 12,5% годовых на срок до 3 лет"
107
+ "description": "Ставка от 12,5% годовых на срок до 3 лет"
107
108
  },
108
109
  "productBlock": {
109
110
  "title": "Ставка от 12,5% годовых на срок до 3 лет!»",
@@ -117,7 +118,7 @@
117
118
  "href": "https://rshb.ru",
118
119
  "text": "Подробнее",
119
120
  "target": "_blank",
120
- "version": "primary"
121
+ "version": "secondary"
121
122
  }
122
123
  ],
123
124
  "image": {
@@ -141,7 +142,7 @@
141
142
  {
142
143
  "nav": {
143
144
  "title": "Выгодно покупать",
144
- "desc": "Дополнительные бонусные баллы за покупки"
145
+ "description": "Дополнительные бонусные баллы за покупки"
145
146
  },
146
147
  "productBlock": {
147
148
  "title": "Дополнительные бонусные баллы за покупки!»",
@@ -150,7 +151,7 @@
150
151
  "href": "https://rshb.ru",
151
152
  "text": "Подробнее",
152
153
  "target": "_blank",
153
- "version": "primary"
154
+ "version": "secondary"
154
155
  }
155
156
  ],
156
157
  "image": {
@@ -168,7 +169,7 @@
168
169
  {
169
170
  "nav": {
170
171
  "title": "Карты Unionpay",
171
- "desc": "Кэшбэк до 20% у партнеров"
172
+ "description": "Кэшбэк до 20% у партнеров"
172
173
  },
173
174
  "productBlock": {
174
175
  "title": "Карты Unionpay»",
@@ -182,7 +183,7 @@
182
183
  "href": "https://rshb.ru",
183
184
  "text": "Подробнее",
184
185
  "target": "_blank",
185
- "version": "primary"
186
+ "version": "secondary"
186
187
  }
187
188
  ],
188
189
  "image": {
@@ -19,8 +19,8 @@ export type BlockDecorator<VNode = any> = (
19
19
  index?: number | string,
20
20
  ) => any;
21
21
 
22
- export type JSXBlock = (
23
- props: PropsWithChildren<UniBlockProps & BlockContent, any>,
22
+ export type JSXBlock<BlockProps = BlockContent> = (
23
+ props: PropsWithChildren<UniBlockProps & BlockProps, any>,
24
24
  context?: any,
25
25
  ) => any;
26
26
 
@@ -29,6 +29,12 @@ export interface HeaderContent extends SitemapProps {
29
29
  * @default Москва
30
30
  */
31
31
  defaultLocation?: string;
32
+ /**
33
+ * @title Показывать подменю
34
+ * @hidden
35
+ * @default true
36
+ */
37
+ showSubMenu?: boolean;
32
38
  /**
33
39
  * @title Фон элемента
34
40
  * @hidden
@@ -8,6 +8,11 @@ import { isSSR } from '../../utils/isSSR';
8
8
  import type { ContentPageContext } from '../ContentPage/ContentPageContext';
9
9
  import { headerSubMenuObserver } from './HeaderSubMenuObserver';
10
10
 
11
+ const DOT_BG_COLORS_MAP: Record<BgColorVersion, string> = {
12
+ 'bg-white': 'bg-primary-text',
13
+ transparent: 'bg-white',
14
+ };
15
+
11
16
  export interface HeaderSubMenuProps {
12
17
  context: ContentPageContext;
13
18
  subItems?: LinkProps[];
@@ -51,6 +56,7 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(({ context, subItems, bgCol
51
56
  subMenuIsShow,
52
57
  toggleSubMenu,
53
58
  subItems,
59
+ bgColor,
54
60
  router,
55
61
  handlerDecorator,
56
62
  })}
@@ -63,6 +69,7 @@ const renderDotsSubMenu = ({
63
69
  subMenuIsShow,
64
70
  toggleSubMenu,
65
71
  subItems,
72
+ bgColor,
66
73
  router,
67
74
  handlerDecorator,
68
75
  }) => (
@@ -77,9 +84,7 @@ const renderDotsSubMenu = ({
77
84
  onClick={toggleSubMenu}
78
85
  aria-label={`${subMenuIsShow ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
79
86
  >
80
- {Array(3)
81
- .fill(0)
82
- .map((_, i) => renderDot(i))}
87
+ {Array(3).fill(bgColor).map(renderDot)}
83
88
  </button>
84
89
  <div
85
90
  className={`flex flex-col rounded-md bg-white p-6 pb-2 ${subMenuIsShow ? '' : 'hidden'}`}
@@ -103,6 +108,6 @@ const renderDotsSubMenuItems = (subItems, router, handlerDecorator) =>
103
108
  </a>
104
109
  ));
105
110
 
106
- const renderDot = (i: number) => (
107
- <div key={String(i)} className="w-[3px] h-[3px] rounded bg-black mr-1" />
111
+ const renderDot = (bgColor: BgColorVersion, i: number) => (
112
+ <div key={String(i)} className={`w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}`} />
108
113
  );
@@ -10,14 +10,13 @@
10
10
  "image": {
11
11
  "format": "webp",
12
12
  "size": {
13
- "width": 234,
14
- "height": 234
13
+ "width": 608,
14
+ "height": 299
15
15
  }
16
16
  },
17
+ "version": "primary",
17
18
  "description": "Описание",
18
- "isDotted": "true",
19
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
20
- "version": "primary"
19
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
21
20
  }
22
21
  },
23
22
  {
@@ -30,14 +29,13 @@
30
29
  "image": {
31
30
  "format": "webp",
32
31
  "size": {
33
- "width": 234,
34
- "height": 234
32
+ "width": 608,
33
+ "height": 299
35
34
  }
36
35
  },
36
+ "version": "primary",
37
37
  "description": "Описание",
38
- "isDotted": "true",
39
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
40
- "version": "primary"
38
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
41
39
  }
42
40
  }
43
41
  ]
@@ -1,4 +1,5 @@
1
1
  import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
2
3
 
3
4
  /** @title Кнопка под слайдом */
4
5
  interface ProductGalleryNav {
@@ -19,17 +20,13 @@ export interface ProductSlide {
19
20
  }
20
21
 
21
22
  /**
22
- * @title Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)
23
+ * @title Продуктовая галерея
23
24
  */
24
25
  export interface ProductGalleryContent {
25
- /**
26
- * @title Задержка
27
- * @hidden //! temporary not used
28
- */
29
- duration?: number;
30
26
  /**
31
27
  * @title Слайды
32
28
  * @minItems 2
33
29
  */
34
30
  slides?: ProductSlide[];
31
+ version?: BlockVersion;
35
32
  }
@@ -8,7 +8,7 @@ import { Img } from '../../ui-kit/Img/Img';
8
8
  import { BaseTile } from '../BaseTile/BaseTile';
9
9
  import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
10
10
  import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
11
- import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
11
+ import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
12
12
  import type { ProductTileContent } from './ProductTileContent';
13
13
 
14
14
  export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
@@ -25,6 +25,7 @@ export const ProductTile = JSX<ProductTileProps>(
25
25
  title,
26
26
  headingType = 'h3',
27
27
  description,
28
+ additionalDescription,
28
29
  benefits,
29
30
  buttons,
30
31
  image,
@@ -60,23 +61,31 @@ export const ProductTile = JSX<ProductTileProps>(
60
61
  {description ? (
61
62
  <Description className="mt-4 max-w-[600px]" description={description} />
62
63
  ) : null}
63
- <div className="flex mt-5 mb-1">
64
- {benefits?.length ? (
65
- <div className="mr-8">{benefits.map(renderBenefitLabel)}</div>
66
- ) : null}
67
- {benefits?.length ? (
68
- <div className="pt-1">
69
- {benefits.map((_, i) => renderBenefitDescription(_, i, version))}
70
- </div>
71
- ) : null}
72
- </div>
64
+ {renderBenefits(benefits, version)}
65
+
66
+ {additionalDescription
67
+ ? renderAdditionalDescription(additionalDescription, version)
68
+ : null}
73
69
  </BaseTile>
74
70
  </section>
75
71
  );
76
72
  },
77
73
  );
78
74
 
79
- function renderBenefitLabel(benefit: Benefit, i: number) {
75
+ function renderBenefits(benefits: TextBenefit[] = [], version: BlockVersion) {
76
+ return (
77
+ <div className="flex mt-5 mb-1">
78
+ {benefits.length ? <div className="mr-8">{benefits.map(renderBenefitLabel)}</div> : null}
79
+ {benefits.length ? (
80
+ <div className="pt-1">
81
+ {benefits.map((_, i) => renderBenefitDescription(_, i, version))}
82
+ </div>
83
+ ) : null}
84
+ </div>
85
+ );
86
+ }
87
+
88
+ function renderBenefitLabel(benefit: TextBenefit, i: number) {
80
89
  return (
81
90
  <div key={String(i)} className={`text-xl font-medium ${i ? 'mt-2.5' : ''}`}>
82
91
  {benefit.label}
@@ -84,7 +93,7 @@ function renderBenefitLabel(benefit: Benefit, i: number) {
84
93
  );
85
94
  }
86
95
 
87
- function renderBenefitDescription(benefit: Benefit, i: number, version = 'primary') {
96
+ function renderBenefitDescription(benefit: TextBenefit, i: number, version = 'primary') {
88
97
  const labelStyleMap: Record<BlockVersion, string> = {
89
98
  primary: 'text-secondary-text',
90
99
  secondary: 'text-white',
@@ -95,3 +104,11 @@ function renderBenefitDescription(benefit: Benefit, i: number, version = 'primar
95
104
  </div>
96
105
  );
97
106
  }
107
+
108
+ function renderAdditionalDescription(additionalDescription: string, version = 'primary') {
109
+ const descStyleMap: Record<BlockVersion, string> = {
110
+ primary: 'text-secondary-text',
111
+ secondary: 'text-white',
112
+ };
113
+ return <div className={`text-sm mt-2.5 ${descStyleMap[version]}`}>{additionalDescription}</div>;
114
+ }
@@ -19,4 +19,6 @@ export type ProductTileContent = HeadingContent &
19
19
  * @maxItems 7
20
20
  */
21
21
  benefits?: TextBenefit[];
22
+ /** @title Дополнительное описание */
23
+ additionalDescription?: string;
22
24
  };
@@ -59,7 +59,11 @@ export const Tile = JSX<TileProps>((props) => {
59
59
  }
60
60
  buttons={
61
61
  buttons?.length ? (
62
- <ButtonSection context={context} buttons={buttons} className="flex mt-9 gap-3" />
62
+ <ButtonSection
63
+ context={context}
64
+ buttons={buttons.map((button) => ({ ...button, className: 'w-[158px]' }))}
65
+ className="flex mt-9 gap-3"
66
+ />
63
67
  ) : null
64
68
  }
65
69
  image={image?.src && <Img className="mt-auto ml-7" image={image} />}
@@ -1 +1,7 @@
1
- <svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 12.83V15c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 19h8c2 0 3-1 3-3V8c0-2-1-3-3-3H8C6 5 5 6 5 8v8c0 2 1 3 3 3Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M5 9.5h2.48a2.5 2.5 0 0 1 0 5H5" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M19 9.99h-3M19 14h-3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M7.2 12h.1" stroke="#000000" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>
1
+ <svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 12.83V15c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M5 9.5h2.48a2.5 2.5 0 0 1 0 5H5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M8 19h8c2 0 3-1 3-3V8c0-2-1-3-3-3H8C6 5 5 6 5 8v8c0 2 1 3 3 3Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M19 9.99h-3M19 14h-3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M7.2 12h.1" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
7
+ </svg>