@redneckz/wildless-cms-uni-blocks 0.10.6 → 0.10.8

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 (650) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +255 -304
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/Rate.d.ts +1 -0
  5. package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  6. package/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  7. package/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  8. package/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  9. package/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  10. package/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  11. package/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  12. package/bundle/components/Carousel/itemsGap.d.ts +1 -0
  13. package/bundle/components/Carousel/itemsGap.mobile.d.ts +1 -0
  14. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
  15. package/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  16. package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  17. package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  18. package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  19. package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  20. package/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  21. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  22. package/bundle/components/Tabs/CenteredTabs.d.ts +7 -0
  23. package/bundle/components/Tabs/LinkTab.d.ts +2 -2
  24. package/bundle/components/Tabs/TabsContent.d.ts +3 -2
  25. package/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
  26. package/bundle/components/Tabs/renderTab.d.ts +3 -3
  27. package/bundle/components/Tabs/tabItemClasses.d.ts +3 -2
  28. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  29. package/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  30. package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  31. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  32. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  33. package/dist/components/Blocks.mobile.js +6 -0
  34. package/dist/components/Blocks.mobile.js.map +1 -1
  35. package/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  36. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  37. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  38. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  39. package/dist/components/Calculator/Calculator.js +4 -4
  40. package/dist/components/Calculator/Calculator.js.map +1 -1
  41. package/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  42. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  43. package/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  44. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  45. package/dist/components/Calculator/Rate.d.ts +1 -0
  46. package/dist/components/Calculator/Rate.js +1 -1
  47. package/dist/components/Calculator/Rate.js.map +1 -1
  48. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  49. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  50. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  51. package/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  52. package/dist/components/Calculator/renderDaysInput.js +2 -9
  53. package/dist/components/Calculator/renderDaysInput.js.map +1 -1
  54. package/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  55. package/dist/components/Calculator/renderInterestPayment.js +8 -18
  56. package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  57. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  58. package/dist/components/Calculator/renderMonthsInput.js +2 -10
  59. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  60. package/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  61. package/dist/components/Calculator/renderPaymentType.js +9 -19
  62. package/dist/components/Calculator/renderPaymentType.js.map +1 -1
  63. package/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  64. package/dist/components/Calculator/renderRegistrationType.js +8 -18
  65. package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  66. package/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  67. package/dist/components/Calculator/renderWantedSumInput.js +4 -6
  68. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  69. package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  70. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  71. package/dist/components/Carousel/Carousel.js +3 -3
  72. package/dist/components/Carousel/Carousel.js.map +1 -1
  73. package/dist/components/Carousel/itemsGap.d.ts +1 -0
  74. package/dist/components/Carousel/itemsGap.js +4 -0
  75. package/dist/components/Carousel/itemsGap.js.map +1 -0
  76. package/dist/components/Carousel/itemsGap.mobile.d.ts +1 -0
  77. package/dist/components/Carousel/itemsGap.mobile.js +4 -0
  78. package/dist/components/Carousel/itemsGap.mobile.js.map +1 -0
  79. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  80. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  81. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
  82. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +17 -0
  83. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -0
  84. package/dist/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  85. package/dist/components/CarouselRecommendationCard/cardStyle.js +4 -0
  86. package/dist/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
  87. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  88. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  89. package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  90. package/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  91. package/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  92. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  93. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +4 -0
  94. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  95. package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  96. package/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  97. package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  98. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  99. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +5 -0
  100. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  101. package/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  102. package/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  103. package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  104. package/dist/components/Footer/Footer.mobile.js +1 -1
  105. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  106. package/dist/components/Footer/SocialMedia.mobile.js +1 -1
  107. package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
  108. package/dist/components/Headline/Headline.js +2 -1
  109. package/dist/components/Headline/Headline.js.map +1 -1
  110. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  111. package/dist/components/Headline/headlineVersionStyles.js +6 -6
  112. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  113. package/dist/components/Tabs/CenteredTabs.d.ts +7 -0
  114. package/dist/components/Tabs/CenteredTabs.js +7 -0
  115. package/dist/components/Tabs/CenteredTabs.js.map +1 -0
  116. package/dist/components/Tabs/LinkTab.d.ts +2 -2
  117. package/dist/components/Tabs/LinkTab.js +2 -2
  118. package/dist/components/Tabs/LinkTab.js.map +1 -1
  119. package/dist/components/Tabs/ScrollableTabs.js +3 -9
  120. package/dist/components/Tabs/ScrollableTabs.js.map +1 -1
  121. package/dist/components/Tabs/Tabs.js +14 -7
  122. package/dist/components/Tabs/Tabs.js.map +1 -1
  123. package/dist/components/Tabs/TabsContent.d.ts +3 -2
  124. package/dist/components/Tabs/renderGroupTab.d.ts +2 -2
  125. package/dist/components/Tabs/renderGroupTab.js +4 -4
  126. package/dist/components/Tabs/renderGroupTab.js.map +1 -1
  127. package/dist/components/Tabs/renderTab.d.ts +3 -3
  128. package/dist/components/Tabs/renderTab.js +3 -3
  129. package/dist/components/Tabs/renderTab.js.map +1 -1
  130. package/dist/components/Tabs/tabItemClasses.d.ts +3 -2
  131. package/dist/components/Tabs/tabItemClasses.js +26 -10
  132. package/dist/components/Tabs/tabItemClasses.js.map +1 -1
  133. package/dist/hooks/useForm.js +2 -2
  134. package/dist/hooks/useForm.js.map +1 -1
  135. package/dist/hooks/useLink.js +1 -1
  136. package/dist/hooks/useLink.js.map +1 -1
  137. package/dist/ui-kit/Checkbox/Checkbox.js +4 -1
  138. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  139. package/dist/ui-kit/InputRange/InputRange.js +22 -16
  140. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  141. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  142. package/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  143. package/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  144. package/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  145. package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  146. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  147. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  148. package/dist/utils/getSanitizedValue.js +1 -1
  149. package/dist/utils/getSanitizedValue.js.map +1 -1
  150. package/dist/wlc.json +1 -2
  151. package/lib/common.css +1 -1
  152. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  153. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  154. package/lib/components/Blocks.mobile.js +6 -0
  155. package/lib/components/Blocks.mobile.js.map +1 -1
  156. package/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  157. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  158. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  159. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  160. package/lib/components/Calculator/Calculator.js +4 -4
  161. package/lib/components/Calculator/Calculator.js.map +1 -1
  162. package/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  163. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  164. package/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  165. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  166. package/lib/components/Calculator/Rate.d.ts +1 -0
  167. package/lib/components/Calculator/Rate.js +1 -1
  168. package/lib/components/Calculator/Rate.js.map +1 -1
  169. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  170. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  171. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  172. package/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  173. package/lib/components/Calculator/renderDaysInput.js +2 -9
  174. package/lib/components/Calculator/renderDaysInput.js.map +1 -1
  175. package/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  176. package/lib/components/Calculator/renderInterestPayment.js +8 -18
  177. package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  178. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  179. package/lib/components/Calculator/renderMonthsInput.js +2 -10
  180. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  181. package/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  182. package/lib/components/Calculator/renderPaymentType.js +8 -18
  183. package/lib/components/Calculator/renderPaymentType.js.map +1 -1
  184. package/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  185. package/lib/components/Calculator/renderRegistrationType.js +8 -18
  186. package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  187. package/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  188. package/lib/components/Calculator/renderWantedSumInput.js +4 -6
  189. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  190. package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  191. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  192. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +11 -0
  193. package/lib/components/Carousel/Carousel.js +2 -2
  194. package/lib/components/Carousel/Carousel.js.map +1 -1
  195. package/lib/components/Carousel/itemsGap.d.ts +1 -0
  196. package/lib/components/Carousel/itemsGap.js +2 -0
  197. package/lib/components/Carousel/itemsGap.js.map +1 -0
  198. package/lib/components/Carousel/itemsGap.mobile.d.ts +1 -0
  199. package/lib/components/Carousel/itemsGap.mobile.js +2 -0
  200. package/lib/components/Carousel/itemsGap.mobile.js.map +1 -0
  201. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +16 -0
  202. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  203. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  204. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
  205. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +15 -0
  206. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -0
  207. package/lib/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  208. package/lib/components/CarouselRecommendationCard/cardStyle.js +2 -0
  209. package/lib/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
  210. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +9 -0
  211. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  212. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  213. package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  214. package/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  215. package/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  216. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  217. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +2 -0
  218. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  219. package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  220. package/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  221. package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  222. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  223. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +2 -0
  224. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  225. package/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  226. package/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  227. package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  228. package/lib/components/Footer/Footer.mobile.js +1 -1
  229. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  230. package/lib/components/Footer/SocialMedia.mobile.js +1 -1
  231. package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
  232. package/lib/components/Headline/Headline.fixture.mobile.d.ts +22 -0
  233. package/lib/components/Headline/Headline.js +2 -1
  234. package/lib/components/Headline/Headline.js.map +1 -1
  235. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  236. package/lib/components/Headline/headlineVersionStyles.js +6 -6
  237. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  238. package/lib/components/Tabs/CenteredTabs.d.ts +7 -0
  239. package/lib/components/Tabs/CenteredTabs.js +5 -0
  240. package/lib/components/Tabs/CenteredTabs.js.map +1 -0
  241. package/lib/components/Tabs/LinkTab.d.ts +2 -2
  242. package/lib/components/Tabs/LinkTab.js +2 -2
  243. package/lib/components/Tabs/LinkTab.js.map +1 -1
  244. package/lib/components/Tabs/ScrollableTabs.js +3 -9
  245. package/lib/components/Tabs/ScrollableTabs.js.map +1 -1
  246. package/lib/components/Tabs/Tabs.fixture.d.ts +1 -0
  247. package/lib/components/Tabs/Tabs.js +14 -7
  248. package/lib/components/Tabs/Tabs.js.map +1 -1
  249. package/lib/components/Tabs/TabsContent.d.ts +3 -2
  250. package/lib/components/Tabs/renderGroupTab.d.ts +2 -2
  251. package/lib/components/Tabs/renderGroupTab.js +5 -5
  252. package/lib/components/Tabs/renderGroupTab.js.map +1 -1
  253. package/lib/components/Tabs/renderTab.d.ts +3 -3
  254. package/lib/components/Tabs/renderTab.js +3 -3
  255. package/lib/components/Tabs/renderTab.js.map +1 -1
  256. package/lib/components/Tabs/tabItemClasses.d.ts +3 -2
  257. package/lib/components/Tabs/tabItemClasses.js +26 -10
  258. package/lib/components/Tabs/tabItemClasses.js.map +1 -1
  259. package/lib/hooks/useForm.js +2 -2
  260. package/lib/hooks/useForm.js.map +1 -1
  261. package/lib/hooks/useLink.js +1 -1
  262. package/lib/hooks/useLink.js.map +1 -1
  263. package/lib/ui-kit/Checkbox/Checkbox.js +4 -1
  264. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  265. package/lib/ui-kit/InputRange/InputRange.js +22 -16
  266. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  267. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  268. package/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  269. package/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  270. package/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  271. package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  272. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  273. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  274. package/lib/utils/getSanitizedValue.js +1 -1
  275. package/lib/utils/getSanitizedValue.js.map +1 -1
  276. package/lib/wlc.json +1 -2
  277. package/mobile/bundle/bundle.umd.js +476 -370
  278. package/mobile/bundle/bundle.umd.min.js +1 -1
  279. package/mobile/bundle/components/Calculator/Rate.d.ts +1 -0
  280. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  281. package/mobile/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  282. package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  283. package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  284. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  285. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  286. package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  287. package/mobile/bundle/components/Carousel/itemsGap.d.ts +1 -0
  288. package/mobile/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  289. package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  290. package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  291. package/mobile/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  292. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  293. package/mobile/bundle/components/Tabs/CenteredTabs.d.ts +7 -0
  294. package/mobile/bundle/components/Tabs/LinkTab.d.ts +2 -2
  295. package/mobile/bundle/components/Tabs/TabsContent.d.ts +3 -2
  296. package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
  297. package/mobile/bundle/components/Tabs/renderTab.d.ts +3 -3
  298. package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +3 -2
  299. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  300. package/mobile/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  301. package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  302. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  303. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  304. package/mobile/dist/components/Blocks.js +6 -0
  305. package/mobile/dist/components/Blocks.js.map +1 -1
  306. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  307. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  308. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  309. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  310. package/mobile/dist/components/Calculator/Calculator.js +4 -4
  311. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  312. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  313. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  314. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  315. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  316. package/mobile/dist/components/Calculator/Rate.d.ts +1 -0
  317. package/mobile/dist/components/Calculator/Rate.js +1 -1
  318. package/mobile/dist/components/Calculator/Rate.js.map +1 -1
  319. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  320. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  321. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  322. package/mobile/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  323. package/mobile/dist/components/Calculator/renderDaysInput.js +2 -9
  324. package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
  325. package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  326. package/mobile/dist/components/Calculator/renderInterestPayment.js +8 -18
  327. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  328. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  329. package/mobile/dist/components/Calculator/renderMonthsInput.js +2 -10
  330. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  331. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  332. package/mobile/dist/components/Calculator/renderPaymentType.js +9 -19
  333. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
  334. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  335. package/mobile/dist/components/Calculator/renderRegistrationType.js +8 -18
  336. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  337. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  338. package/mobile/dist/components/Calculator/renderWantedSumInput.js +4 -6
  339. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  340. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  341. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  342. package/mobile/dist/components/Carousel/Carousel.js +3 -3
  343. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  344. package/mobile/dist/components/Carousel/itemsGap.d.ts +1 -0
  345. package/mobile/dist/components/Carousel/itemsGap.js +4 -0
  346. package/mobile/dist/components/Carousel/itemsGap.js.map +1 -0
  347. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -4
  348. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  349. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  350. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js +4 -0
  351. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
  352. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  353. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  354. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  355. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  356. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  357. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  358. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  359. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  360. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  361. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  362. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  363. package/mobile/dist/components/Footer/Footer.js +1 -1
  364. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  365. package/mobile/dist/components/Footer/SocialMedia.js +1 -1
  366. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  367. package/mobile/dist/components/Headline/Headline.js +2 -1
  368. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  369. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  370. package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
  371. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  372. package/mobile/dist/components/Tabs/CenteredTabs.d.ts +7 -0
  373. package/mobile/dist/components/Tabs/CenteredTabs.js +7 -0
  374. package/mobile/dist/components/Tabs/CenteredTabs.js.map +1 -0
  375. package/mobile/dist/components/Tabs/LinkTab.d.ts +2 -2
  376. package/mobile/dist/components/Tabs/LinkTab.js +2 -2
  377. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  378. package/mobile/dist/components/Tabs/ScrollableTabs.js +3 -9
  379. package/mobile/dist/components/Tabs/ScrollableTabs.js.map +1 -1
  380. package/mobile/dist/components/Tabs/Tabs.js +14 -7
  381. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  382. package/mobile/dist/components/Tabs/TabsContent.d.ts +3 -2
  383. package/mobile/dist/components/Tabs/renderGroupTab.d.ts +2 -2
  384. package/mobile/dist/components/Tabs/renderGroupTab.js +4 -4
  385. package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
  386. package/mobile/dist/components/Tabs/renderTab.d.ts +3 -3
  387. package/mobile/dist/components/Tabs/renderTab.js +3 -3
  388. package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
  389. package/mobile/dist/components/Tabs/tabItemClasses.d.ts +3 -2
  390. package/mobile/dist/components/Tabs/tabItemClasses.js +26 -10
  391. package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
  392. package/mobile/dist/hooks/useForm.js +2 -2
  393. package/mobile/dist/hooks/useForm.js.map +1 -1
  394. package/mobile/dist/hooks/useLink.js +1 -1
  395. package/mobile/dist/hooks/useLink.js.map +1 -1
  396. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +4 -1
  397. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  398. package/mobile/dist/ui-kit/InputRange/InputRange.js +22 -16
  399. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  400. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  401. package/mobile/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  402. package/mobile/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  403. package/mobile/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  404. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  405. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  406. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  407. package/mobile/dist/utils/getSanitizedValue.js +1 -1
  408. package/mobile/dist/utils/getSanitizedValue.js.map +1 -1
  409. package/mobile/dist/wlc.json +1 -2
  410. package/mobile/lib/common.css +1 -1
  411. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  412. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  413. package/mobile/lib/components/Blocks.js +6 -0
  414. package/mobile/lib/components/Blocks.js.map +1 -1
  415. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  416. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  417. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  418. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  419. package/mobile/lib/components/Calculator/Calculator.js +4 -4
  420. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  421. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  422. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  423. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  424. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  425. package/mobile/lib/components/Calculator/Rate.d.ts +1 -0
  426. package/mobile/lib/components/Calculator/Rate.js +1 -1
  427. package/mobile/lib/components/Calculator/Rate.js.map +1 -1
  428. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  429. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  430. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  431. package/mobile/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  432. package/mobile/lib/components/Calculator/renderDaysInput.js +2 -9
  433. package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
  434. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  435. package/mobile/lib/components/Calculator/renderInterestPayment.js +8 -18
  436. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  437. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  438. package/mobile/lib/components/Calculator/renderMonthsInput.js +2 -10
  439. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  440. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  441. package/mobile/lib/components/Calculator/renderPaymentType.js +8 -18
  442. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
  443. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  444. package/mobile/lib/components/Calculator/renderRegistrationType.js +8 -18
  445. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  446. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  447. package/mobile/lib/components/Calculator/renderWantedSumInput.js +4 -6
  448. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  449. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  450. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  451. package/mobile/lib/components/Carousel/Carousel.js +2 -2
  452. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  453. package/mobile/lib/components/Carousel/itemsGap.d.ts +1 -0
  454. package/mobile/lib/components/Carousel/itemsGap.js +2 -0
  455. package/mobile/lib/components/Carousel/itemsGap.js.map +1 -0
  456. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -4
  457. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  458. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
  459. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js +2 -0
  460. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
  461. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  462. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  463. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  464. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  465. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  466. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  467. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  468. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  469. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  470. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  471. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  472. package/mobile/lib/components/Footer/Footer.js +1 -1
  473. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  474. package/mobile/lib/components/Footer/SocialMedia.js +1 -1
  475. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  476. package/mobile/lib/components/Headline/Headline.js +2 -1
  477. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  478. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  479. package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
  480. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  481. package/mobile/lib/components/Tabs/CenteredTabs.d.ts +7 -0
  482. package/mobile/lib/components/Tabs/CenteredTabs.js +5 -0
  483. package/mobile/lib/components/Tabs/CenteredTabs.js.map +1 -0
  484. package/mobile/lib/components/Tabs/LinkTab.d.ts +2 -2
  485. package/mobile/lib/components/Tabs/LinkTab.js +2 -2
  486. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  487. package/mobile/lib/components/Tabs/ScrollableTabs.js +3 -9
  488. package/mobile/lib/components/Tabs/ScrollableTabs.js.map +1 -1
  489. package/mobile/lib/components/Tabs/Tabs.js +14 -7
  490. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  491. package/mobile/lib/components/Tabs/TabsContent.d.ts +3 -2
  492. package/mobile/lib/components/Tabs/renderGroupTab.d.ts +2 -2
  493. package/mobile/lib/components/Tabs/renderGroupTab.js +5 -5
  494. package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
  495. package/mobile/lib/components/Tabs/renderTab.d.ts +3 -3
  496. package/mobile/lib/components/Tabs/renderTab.js +3 -3
  497. package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
  498. package/mobile/lib/components/Tabs/tabItemClasses.d.ts +3 -2
  499. package/mobile/lib/components/Tabs/tabItemClasses.js +26 -10
  500. package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
  501. package/mobile/lib/hooks/useForm.js +2 -2
  502. package/mobile/lib/hooks/useForm.js.map +1 -1
  503. package/mobile/lib/hooks/useLink.js +1 -1
  504. package/mobile/lib/hooks/useLink.js.map +1 -1
  505. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +4 -1
  506. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  507. package/mobile/lib/ui-kit/InputRange/InputRange.js +22 -16
  508. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  509. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  510. package/mobile/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  511. package/mobile/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  512. package/mobile/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  513. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  514. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  515. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  516. package/mobile/lib/utils/getSanitizedValue.js +1 -1
  517. package/mobile/lib/utils/getSanitizedValue.js.map +1 -1
  518. package/mobile/lib/wlc.json +1 -2
  519. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  520. package/mobile/src/components/Blocks.ts +6 -0
  521. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  522. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  523. package/mobile/src/components/Calculator/Calculator.tsx +11 -5
  524. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  525. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  526. package/mobile/src/components/Calculator/Rate.tsx +14 -14
  527. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  528. package/mobile/src/components/Calculator/renderDaysInput.tsx +10 -31
  529. package/mobile/src/components/Calculator/renderInterestPayment.tsx +13 -52
  530. package/mobile/src/components/Calculator/renderMonthsInput.tsx +17 -39
  531. package/mobile/src/components/Calculator/renderPaymentType.tsx +13 -49
  532. package/mobile/src/components/Calculator/renderRegistrationType.tsx +13 -51
  533. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  534. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  535. package/mobile/src/components/Carousel/Carousel.tsx +2 -3
  536. package/mobile/src/components/Carousel/itemsGap.ts +1 -0
  537. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +14 -20
  538. package/mobile/src/components/CarouselRecommendationCard/cardStyle.ts +2 -0
  539. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  540. package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  541. package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  542. package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  543. package/mobile/src/components/Footer/Footer.tsx +1 -1
  544. package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
  545. package/mobile/src/components/Headline/Headline.tsx +10 -5
  546. package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
  547. package/mobile/src/components/Tabs/CenteredTabs.tsx +12 -0
  548. package/mobile/src/components/Tabs/LinkTab.tsx +5 -5
  549. package/mobile/src/components/Tabs/ScrollableTabs.tsx +5 -13
  550. package/mobile/src/components/Tabs/Tabs.tsx +21 -19
  551. package/mobile/src/components/Tabs/TabsContent.ts +3 -2
  552. package/mobile/src/components/Tabs/renderGroupTab.tsx +11 -10
  553. package/mobile/src/components/Tabs/renderTab.tsx +5 -13
  554. package/mobile/src/components/Tabs/tabItemClasses.ts +28 -10
  555. package/mobile/src/hooks/useForm.ts +17 -14
  556. package/mobile/src/hooks/useLink.ts +1 -1
  557. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
  558. package/mobile/src/ui-kit/InputRange/InputRange.tsx +56 -43
  559. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  560. package/mobile/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  561. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  562. package/mobile/src/utils/getSanitizedValue.ts +1 -1
  563. package/mobile/src/wlc.json +1 -2
  564. package/package.json +1 -1
  565. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  566. package/src/components/Blocks.mobile.ts +6 -0
  567. package/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  568. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  569. package/src/components/Calculator/Calculator.tsx +11 -5
  570. package/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  571. package/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  572. package/src/components/Calculator/Rate.tsx +14 -14
  573. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  574. package/src/components/Calculator/renderDaysInput.tsx +10 -31
  575. package/src/components/Calculator/renderInterestPayment.tsx +13 -52
  576. package/src/components/Calculator/renderMonthsInput.tsx +17 -39
  577. package/src/components/Calculator/renderPaymentType.tsx +13 -49
  578. package/src/components/Calculator/renderRegistrationType.tsx +13 -51
  579. package/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  580. package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  581. package/src/components/Carousel/Carousel.fixture.mobile.tsx +93 -0
  582. package/src/components/Carousel/Carousel.tsx +2 -3
  583. package/src/components/Carousel/itemsGap.mobile.ts +1 -0
  584. package/src/components/Carousel/itemsGap.ts +1 -0
  585. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +148 -0
  586. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +63 -0
  587. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -3
  588. package/src/components/CarouselRecommendationCard/cardStyle.ts +2 -0
  589. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +74 -0
  590. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  591. package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +1 -0
  592. package/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  593. package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +2 -0
  594. package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  595. package/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  596. package/src/components/Footer/Footer.mobile.tsx +1 -1
  597. package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
  598. package/src/components/Headline/Headline.fixture.mobile.tsx +95 -0
  599. package/src/components/Headline/Headline.tsx +10 -5
  600. package/src/components/Headline/headlineVersionStyles.ts +7 -7
  601. package/src/components/Tabs/CenteredTabs.tsx +12 -0
  602. package/src/components/Tabs/LinkTab.tsx +5 -5
  603. package/src/components/Tabs/ScrollableTabs.tsx +5 -13
  604. package/src/components/Tabs/Tabs.fixture.tsx +27 -0
  605. package/src/components/Tabs/Tabs.tsx +21 -19
  606. package/src/components/Tabs/TabsContent.ts +3 -2
  607. package/src/components/Tabs/renderGroupTab.tsx +11 -10
  608. package/src/components/Tabs/renderTab.tsx +5 -13
  609. package/src/components/Tabs/tabItemClasses.ts +28 -10
  610. package/src/hooks/useForm.ts +17 -14
  611. package/src/hooks/useLink.ts +1 -1
  612. package/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
  613. package/src/ui-kit/InputRange/InputRange.tsx +56 -43
  614. package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  615. package/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  616. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  617. package/src/utils/getSanitizedValue.ts +1 -1
  618. package/src/wlc.json +1 -2
  619. package/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  620. package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  621. package/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  622. package/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  623. package/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  624. package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  625. package/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  626. package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  627. package/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  628. package/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  629. package/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  630. package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  631. package/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  632. package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  633. package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  634. package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  635. package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  636. package/mobile/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  637. package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  638. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  639. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  640. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  641. package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  642. package/mobile/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  643. package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  644. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  645. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  646. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  647. package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  648. package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
  649. package/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  650. package/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.CreditCalculatorForm = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ /* eslint-disable max-lines, max-lines-per-function */
4
5
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
6
7
  const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
7
8
  const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
8
- const clamp_1 = require("../../utils/clamp");
9
9
  const style_1 = require("../../utils/style");
10
10
  const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
11
11
  const constants_1 = require("./constants");
@@ -15,47 +15,31 @@ const renderMonthsInput_1 = require("./renderMonthsInput");
15
15
  const renderPaymentType_1 = require("./renderPaymentType");
16
16
  const renderWantedSumInput_1 = require("./renderWantedSumInput");
17
17
  const useCreditCalculatorParams_1 = require("./useCreditCalculatorParams");
18
- exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
19
- const [isAnnuity, toggleIsAnnuity] = (0, hooks_1.useState)(false);
20
- const [isSalaryClient, toggleIsSalaryClient] = (0, hooks_1.useState)(false);
21
- const handleIsSalaryClient = (0, hooks_1.useCallback)((_) => toggleIsSalaryClient(_), []);
22
- const [isStateEmployee, toggleIsStateEmployee] = (0, hooks_1.useState)(false);
23
- const handleIsStateEmployee = (0, hooks_1.useCallback)((_) => toggleIsStateEmployee(_), []);
24
- const [isPensionClient, toggleIsPensionClient] = (0, hooks_1.useState)(false);
25
- const handleIsPensionClient = (0, hooks_1.useCallback)((_) => toggleIsPensionClient(_), []);
26
- const [isInsurance, toggleIsInsurance] = (0, hooks_1.useState)(true);
27
- const handleIsInsurance = (0, hooks_1.useCallback)((_) => toggleIsInsurance(_), []);
28
- const [moneyValue, setMoneyValue] = (0, hooks_1.useState)(constants_1.CREDIT_DEFAULT_SUM);
29
- const handleMoneyValue = (0, hooks_1.useCallback)((_) => setMoneyValue(_), []);
30
- const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(constants_1.DEFAULT_MONTHS);
31
- const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
32
- const userInputParams = {
33
- isAnnuity,
34
- isInsurance,
35
- isSalaryClient,
36
- isPensionClient,
37
- isStateEmployee,
38
- moneyValue,
39
- monthsValue,
40
- };
18
+ exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
19
+ const [userInputParams, { field }] = (0, useForm_1.useForm)({
20
+ isAnnuity: false,
21
+ isInsurance: true,
22
+ isSalaryClient: false,
23
+ isPensionClient: false,
24
+ isStateEmployee: false,
25
+ moneyValue: constants_1.CREDIT_DEFAULT_SUM,
26
+ monthsValue: constants_1.DEFAULT_MONTHS,
27
+ });
41
28
  const calculatorParams = (0, useCreditCalculatorParams_1.useCreditCalculatorParams)(userInputParams, sourceBookDir, paramsViewSettings);
42
- (0, hooks_1.useEffect)(() => {
43
- setMoneyValue((0, clamp_1.clamp)(moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
44
- setMonthsValue((0, clamp_1.clamp)(monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
45
- }, [calculatorParams]);
46
- return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок кредита, месяцев', calculatorParams, handleMonthsValue), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: renderCreditParamsForm({
47
- ...calculatorParams,
48
- ...paramsViewSettings,
49
- handleIsSalaryClient,
50
- handleIsStateEmployee,
51
- handleIsPensionClient,
52
- handleIsInsurance,
53
- }) })] }), renderRate(calculatorParams.rate), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), (0, renderPaymentType_1.renderPaymentType)({
54
- isAnnuity,
55
- orientation: 'vertical',
56
- callback: toggleIsAnnuity,
57
- }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
29
+ return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
30
+ title: 'Сумма кредита, ₽',
31
+ step: 500,
32
+ min: calculatorParams.minSum,
33
+ max: calculatorParams.maxSum,
34
+ ...field('moneyValue'),
35
+ value: calculatorParams.moneyValue,
36
+ }), (0, renderMonthsInput_1.renderMonthsInput)({
37
+ title: 'Срок кредита, месяцев',
38
+ min: calculatorParams.minMonths,
39
+ max: calculatorParams.maxMonths,
40
+ ...field('monthsValue'),
41
+ value: calculatorParams.monthsValue,
42
+ }), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), (0, renderPaymentType_1.renderPaymentType)({ orientation: 'vertical', ...field('isAnnuity') }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
58
43
  });
59
- const renderRate = (rate) => ((0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }));
60
- const renderCreditParamsForm = ({ isSalaryClient, isStateEmployee, isPensionClient, isInsurance, isShowSalaryClient, isShowStateEmployee, isShowPensionClient, isShowInsurance, handleIsSalaryClient, handleIsStateEmployee, handleIsPensionClient, handleIsInsurance, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [isShowSalaryClient ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", value: isSalaryClient, onChange: handleIsSalaryClient })) : null, isShowStateEmployee ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", value: isStateEmployee, onChange: handleIsStateEmployee })) : null, isShowPensionClient ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", value: isPensionClient, onChange: handleIsPensionClient })) : null, isShowInsurance ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", value: isInsurance, onChange: handleIsInsurance })) : null] }));
44
+ const renderCreditParamsForm = (params, field) => ((0, jsx_runtime_1.jsxs)("div", { children: [params.isShowSalaryClient ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowStateEmployee ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
61
45
  //# sourceMappingURL=CreditCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAC1C,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAAiE;AACjE,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAgG;AAMnF,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,cAAc,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC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E,iBAAiB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
1
+ {"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAAiE;AACjE,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAgG;AAMnF,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,KAAK;QACrB,eAAe,EAAE,KAAK;QACtB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,8BAAkB;QAC9B,WAAW,EAAE,0BAAc;KAC5B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,qDAAyB,EAChD,eAAe,EACf,aAAa,EACb,kBAAkB,CACnB,CAAC;IAEF,OAAO,CACL,qCAAS,SAAS,EAAE,IAAA,aAAK,EAAC,sBAAsB,EAAE,SAAS,CAAC,aAC1D,iCAAK,SAAS,EAAC,WAAW,aACvB,IAAA,2CAAoB,EAAC;wBACpB,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,GAAG;wBACT,GAAG,EAAE,gBAAgB,CAAC,MAAM;wBAC5B,GAAG,EAAE,gBAAgB,CAAC,MAAM;wBAC5B,GAAG,KAAK,CAAC,YAAY,CAAC;wBACtB,KAAK,EAAE,gBAAgB,CAAC,UAAU;qBACnC,CAAC,E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AC,CAAC,CAC5B,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,6KAAiC,KAClC,KAAK,CAAC,iBAAiB,CAAC,EAC5B,KAAK,EAAE,MAAM,CAAC,eAAe,GAC7B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAC5B,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,wNAAyC,KAC1C,KAAK,CAAC,iBAAiB,CAAC,EAC5B,KAAK,EAAE,MAAM,CAAC,eAAe,GAC7B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CACxB,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.DepositCalculatorForm = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- // TEMP
5
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
6
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
7
7
  const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
8
8
  const style_1 = require("../../utils/style");
9
9
  const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
@@ -15,48 +15,45 @@ const renderMonthsInput_1 = require("./renderMonthsInput");
15
15
  const renderRegistrationType_1 = require("./renderRegistrationType");
16
16
  const renderWantedSumInput_1 = require("./renderWantedSumInput");
17
17
  const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
18
- exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
19
- const [moneyValue, setMoneyValue] = (0, hooks_1.useState)(constants_1.DEPOSIT_DEFAULT_SUM);
20
- const handleMoneyValue = (0, hooks_1.useCallback)((_) => setMoneyValue(_), []);
21
- const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(0);
22
- const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = (0, hooks_1.useState)(false);
23
- const handleIsMonthlyInterestPayment = (0, hooks_1.useCallback)((_) => toggleIsMonthlyInterestPayment(_), []);
24
- const [isRemoteRegistration, toggleIsRemoteRegistration] = (0, hooks_1.useState)(false);
25
- const handleIsRemoteRegistration = (0, hooks_1.useCallback)((_) => toggleIsRemoteRegistration(_), []);
26
- const userInputParams = {
27
- moneyValue,
28
- monthsValue,
29
- isMonthlyInterestPayment,
30
- isRemoteRegistration,
31
- };
32
- const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
18
+ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
19
+ const [userInputParams, { field }] = (0, useForm_1.useForm)({
20
+ moneyValue: constants_1.DEPOSIT_DEFAULT_SUM,
21
+ monthsValue: 0,
22
+ isMonthlyInterestPayment: false,
23
+ isRemoteRegistration: false,
24
+ });
33
25
  const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir, paramsViewSettings);
34
26
  const { defaultMonth, income, finalSum, rate } = calculatorParams;
27
+ const { onChange: setMonthsValue } = field('monthsValue');
35
28
  (0, hooks_1.useEffect)(() => {
36
- setMonthsValue(defaultMonth);
29
+ setMonthsValue && setMonthsValue(defaultMonth);
37
30
  }, [defaultMonth]);
38
- return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма вклада, ₽', {
39
- ...calculatorParams,
40
- }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок вклада, месяцев', {
41
- ...calculatorParams,
42
- }, handleMonthsValue), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: renderDepositParamsForm({
43
- ...calculatorParams,
44
- ...paramsViewSettings,
45
- handleIsMonthlyInterestPayment,
46
- handleIsRemoteRegistration,
47
- }) })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
31
+ return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
32
+ title: 'Сумма вклада, ₽',
33
+ min: calculatorParams.minSum,
34
+ max: calculatorParams.maxSum,
35
+ ...field('moneyValue'),
36
+ value: calculatorParams.moneyValue,
37
+ }), (0, renderMonthsInput_1.renderMonthsInput)({
38
+ title: 'Срок вклада, месяцев',
39
+ min: calculatorParams.minMonths,
40
+ max: calculatorParams.maxMonths,
41
+ availableMonths: calculatorParams.availableMonths,
42
+ ...field('monthsValue'),
43
+ value: calculatorParams.monthsValue,
44
+ }), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
48
45
  });
49
- const renderDepositParamsForm = ({ isMonthlyInterestPayment, isRemoteRegistration, isShowMonthlyInterestPayment, isShowRemoteRegistration, handleIsMonthlyInterestPayment, handleIsRemoteRegistration, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-7", children: [isShowMonthlyInterestPayment
46
+ const renderDepositParamsForm = (params, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-7", children: [params.isShowMonthlyInterestPayment
50
47
  ? (0, renderInterestPayment_1.renderInterestPayment)({
51
- isMonthlyInterestPayment,
52
- callback: handleIsMonthlyInterestPayment,
53
48
  title: 'Выплата процентов',
49
+ ...field('isMonthlyInterestPayment'),
50
+ value: params.isMonthlyInterestPayment,
54
51
  })
55
- : null, isShowRemoteRegistration
52
+ : null, params.isShowRemoteRegistration
56
53
  ? (0, renderRegistrationType_1.renderRegistrationType)({
57
- isRemoteRegistration,
58
- callback: handleIsRemoteRegistration,
59
54
  title: 'Оформление',
55
+ ...field('isRemoteRegistration'),
56
+ value: params.isRemoteRegistration,
60
57
  })
61
58
  : null] }));
62
59
  //# sourceMappingURL=DepositCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AAEP,+CAAwC;AACxC,uDAA+E;AAC/E,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAAkD;AAClD,iCAA8B;AAC9B,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,qEAAkE;AAClE,iEAA8D;AAC9D,6EAAmG;AAMtF,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,+BAAmB,CAAC,CAAC;IAClE,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,wBAAwB,EAAE,8BAA8B,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACnF,MAAM,8BAA8B,GAAG,IAAA,mBAAW,EAChD,CAAC,CAAU,EAAE,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC,EACjD,EAAE,CACH,CAAC;IACF,MAAM,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC3E,MAAM,0BAA0B,GAAG,IAAA,mBAAW,EAC5C,CAAC,CAAU,EAAE,EAAE,CAAC,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,MAAM,EAAC,GAAG,GAAG,EACtF,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,EAChF,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACtE,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AASF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,0BAA0B,GACH,EAAE,EAAE,CAAC,CAC5B,iCAAK,SAAS,EAAC,uBAAuB,aACnC,4BAA4B;YAC3B,CAAC,CAAC,IAAA,6CAAqB,EAAC;gBACpB,wBAAwB;gBACxB,QAAQ,EAAE,8BAA8B;gBACxC,KAAK,EAAE,mBAAmB;aAC3B,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,wBAAwB;YACvB,CAAC,CAAC,IAAA,+CAAsB,EAAC;gBACrB,oBAAoB;gBACpB,QAAQ,EAAE,0BAA0B;gBACpC,KAAK,EAAE,YAAY;aACpB,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
1
+ {"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,iDAAmE;AACnE,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAAkD;AAClD,iCAA8B;AAC9B,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,qEAAkE;AAClE,iEAA8D;AAC9D,6EAAmG;AAMtF,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAA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 @@ export interface RateProps {
5
5
  depositeName?: string;
6
6
  isShowDepositeName?: boolean;
7
7
  rateBlockClassName?: string;
8
+ fractionDigits?: number;
8
9
  }
9
10
  export declare const Rate: import("@redneckz/uni-jsx").UNIComponent<RateProps, any, any>;
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Text_1 = require("../../ui-kit/Text/Text");
6
6
  const style_1 = require("../../utils/style");
7
- exports.Rate = (0, uni_jsx_1.JSX)(({ rate, title = 'Ставка', unit, depositeName, isShowDepositeName, rateBlockClassName }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l-light", color: "text-secondary-text", children: title }), (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-start", children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('block gradient-color-text font-mohave text-title-huge pr-6 -mt-4', rateBlockClassName), children: String(rate.toFixed(2)).replace('.', ',') }), unit ? ((0, jsx_runtime_1.jsx)("span", { className: "gradient-color-text text-[65px] leading-[75px]", children: unit })) : ('')] }), depositeName && isShowDepositeName ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute bottom-7 w-full text-center whitespace-nowrap", children: depositeName })) : null] })] })));
7
+ exports.Rate = (0, uni_jsx_1.JSX)(({ rate, title = 'Ставка', unit, depositeName, isShowDepositeName, rateBlockClassName, fractionDigits = 2, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l-light", color: "text-secondary-text", children: title }), (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-start gradient-color-text", children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('font-mohave text-title-huge pr-6 -mt-4', rateBlockClassName), children: String(rate.toFixed(fractionDigits)).replace('.', ',') }), unit ? (0, jsx_runtime_1.jsx)("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute bottom-7 w-full text-center whitespace-nowrap", children: depositeName })) : null] })] })));
8
8
  //# sourceMappingURL=Rate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rate.js","sourceRoot":"","sources":["../../../src/components/Calculator/Rate.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,6CAA0C;AAW7B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAC1F,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,qBAAqB,YAClD,KAAK,GACD,EACP,iCAAK,SAAS,EAAC,UAAU,aACvB,iCAAK,SAAS,EAAC,oBAAoB,aACjC,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,kEAAkE,EAClE,kBAAkB,CACnB,YAEA,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GACrC,EACN,IAAI,CAAC,CAAC,CAAC,CACN,iCAAM,SAAS,EAAC,gDAAgD,YAAE,IAAI,GAAQ,CAC/E,CAAC,CAAC,CAAC,CACF,EAAE,CACH,IACG,EACL,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,CACpC,gCAAK,SAAS,EAAC,wDAAwD,YACpE,YAAY,GACT,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"Rate.js","sourceRoot":"","sources":["../../../src/components/Calculator/Rate.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,6CAA0C;AAY7B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,IAAI,EACJ,KAAK,GAAG,QAAQ,EAChB,IAAI,EACJ,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GAAG,CAAC,GACnB,EAAE,EAAE,CAAC,CACJ,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,qBAAqB,YAClD,KAAK,GACD,EACP,iCAAK,SAAS,EAAC,UAAU,aACvB,iCAAK,SAAS,EAAC,wCAAwC,aACrD,iCAAM,SAAS,EAAE,IAAA,aAAK,EAAC,wCAAwC,EAAE,kBAAkB,CAAC,YACjF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAClD,EACN,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,UAAU,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IACnD,EACL,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,CACpC,gCAAK,SAAS,EAAC,wDAAwD,YACpE,YAAY,GACT,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ListOrientation } from '../../model/ListOrientation';
3
+ import { RadioButtonItem } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
4
+ export interface BinaryRadioButtonGroupProps {
5
+ items: [truthy: RadioButtonItem, falsy: RadioButtonItem];
6
+ title?: string;
7
+ orientation?: ListOrientation;
8
+ value?: boolean;
9
+ onChange?: (value: boolean) => void;
10
+ }
11
+ export declare const renderBinaryRadioButtonGroup: ({ items, title, orientation, value, onChange, }: BinaryRadioButtonGroupProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderBinaryRadioButtonGroup = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
5
+ const Text_1 = require("../../ui-kit/Text/Text");
6
+ const renderBinaryRadioButtonGroup = ({ items, title, orientation = 'horizontal', value, onChange, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
7
+ exports.renderBinaryRadioButtonGroup = renderBinaryRadioButtonGroup;
8
+ //# sourceMappingURL=renderBinaryRadioButtonGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderBinaryRadioButtonGroup.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderBinaryRadioButtonGroup.tsx"],"names":[],"mappings":";;;AACA,qFAAmG;AACnG,iDAA8C;AAUvC,MAAM,4BAA4B,GAAG,CAAC,EAC3C,KAAK,EACL,KAAK,EACL,WAAW,GAAG,YAAY,EAC1B,KAAK,EACL,QAAQ,GACoB,EAAE,EAAE,CAAC,CACjC,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GACxD,IACE,CACP,CAAC;AAtBW,QAAA,4BAA4B,gCAsBvC"}
@@ -1,8 +1,3 @@
1
1
  /// <reference types="react" />
2
- interface RenderDaysInputParams {
3
- minDays: number;
4
- maxDays: number;
5
- daysValue: number;
6
- }
7
- export declare function renderDaysInput(title: string, params: RenderDaysInputParams, callback?: (value: number) => void): JSX.Element;
8
- export {};
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ export declare const renderDaysInput: (props: InputRangeProps) => JSX.Element;
@@ -2,15 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderDaysInput = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
5
- const clamp_1 = require("../../utils/clamp");
6
5
  const STEP_DAYS = 1;
7
- function renderDaysInput(title, params, callback) {
8
- const { minDays, maxDays, daysValue } = params;
9
- const daysText = (days) => {
10
- const text = Number(days) % 10 === 1 ? 'дня' : 'дней';
11
- return `${days} ${text}`;
12
- };
13
- return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", title: title, items: [`От ${daysText(minDays)}`, `До ${daysText(maxDays)}`], min: minDays, max: maxDays, step: STEP_DAYS, value: (0, clamp_1.clamp)(daysValue, minDays, maxDays), onChange: callback }));
14
- }
6
+ const renderDaysInput = (props) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
15
7
  exports.renderDaysInput = renderDaysInput;
8
+ const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
16
9
  //# sourceMappingURL=renderDaysInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderDaysInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderDaysInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,6CAA0C;AAE1C,MAAM,SAAS,GAAG,CAAC,CAAC;AAQpB,SAAgB,eAAe,CAC7B,KAAa,EACb,MAA6B,EAC7B,QAAkC;IAElC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;QAChC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAEtD,OAAO,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAC7D,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,IAAA,aAAK,EAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,EACzC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AAxBD,0CAwBC"}
1
+ {"version":3,"file":"renderDaysInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderDaysInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACzD,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAC3E,IAAI,EAAE,SAAS,KACX,KAAK,GACT,CACH,CAAC;AAPW,QAAA,eAAe,mBAO1B;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -1,10 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ListOrientation } from '../../model/ListOrientation';
3
- interface InterestPaymentProps {
4
- isMonthlyInterestPayment: boolean;
5
- callback?: (value: boolean) => void;
6
- title?: string;
7
- orientation?: ListOrientation;
8
- }
9
- export declare function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation, }: InterestPaymentProps): JSX.Element;
10
- export {};
2
+ import { BinaryRadioButtonGroupProps } from './renderBinaryRadioButtonGroup';
3
+ export declare const renderInterestPayment: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -1,22 +1,12 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderInterestPayment = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
5
- const Text_1 = require("../../ui-kit/Text/Text");
6
- const EVERY_MONTH = 'everyMonth';
7
- const AT_END_TERM = 'atEndTerm';
8
- const depositTypeItems = [
9
- {
10
- id: EVERY_MONTH,
11
- text: 'Ежемесячно',
12
- },
13
- {
14
- id: AT_END_TERM,
15
- text: 'В конце срока',
16
- },
17
- ];
18
- function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation = 'horizontal', }) {
19
- return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => callback && callback(text === EVERY_MONTH) }) })] }));
20
- }
3
+ const renderBinaryRadioButtonGroup_1 = require("./renderBinaryRadioButtonGroup");
4
+ const renderInterestPayment = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
5
+ ...props,
6
+ items: [
7
+ { id: 'everyMonth', text: 'Ежемесячно' },
8
+ { id: 'atEndTerm', text: 'В конце срока' },
9
+ ],
10
+ });
21
11
  exports.renderInterestPayment = renderInterestPayment;
22
12
  //# sourceMappingURL=renderInterestPayment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAE9C,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,WAAW,GAAG,WAAW,CAAC;AAEhC,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,eAAe;KACtB;CACF,CAAC;AASF,SAAgB,qBAAqB,CAAC,EACpC,wBAAwB,EACxB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACL;IACrB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EAER,0CACE,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACjE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,CAAC,GACtE,GACE,IACF,CACP,CAAC;AACJ,CAAC;AA1BD,sDA0BC"}
1
+ {"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,qBAAqB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACnF,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE;QACxC,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,EAAE;KAC3C;CACF,CAAC,CAAC;AAPQ,QAAA,qBAAqB,yBAO7B"}
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
- interface RenderMonthsInputParams {
3
- minMonths: number;
4
- maxMonths: number;
5
- monthsValue: number;
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ interface MonthsInputParams extends InputRangeProps {
6
4
  availableMonths?: Array<number>;
7
5
  }
8
- export declare function renderMonthsInput(title: string, params: RenderMonthsInputParams, callback?: (value: number) => void): JSX.Element;
6
+ export declare const renderMonthsInput: ({ min, max, availableMonths, ...rest }: MonthsInputParams) => JSX.Element;
9
7
  export {};
@@ -1,17 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderMonthsInput = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const InputListRange_1 = require("../../ui-kit/InputListRange/InputListRange");
5
4
  const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
6
- const clamp_1 = require("../../utils/clamp");
7
5
  const STEP_MONTHS = 1;
8
- function renderMonthsInput(title, params, callback) {
9
- const { minMonths, maxMonths, monthsValue, availableMonths } = params;
10
- const monthText = (month) => {
11
- const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
12
- return `${month} ${text}`;
13
- };
14
- return availableMonths?.length ? ((0, jsx_runtime_1.jsx)(InputListRange_1.InputListRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], list: availableMonths, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback })) : ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback }));
15
- }
6
+ const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
16
7
  exports.renderMonthsInput = renderMonthsInput;
8
+ const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
17
9
  //# sourceMappingURL=renderMonthsInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,+EAA4E;AAC5E,mEAAgE;AAChE,6CAA0C;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;AAStB,SAAgB,iBAAiB,CAC/B,KAAa,EACb,MAA+B,EAC/B,QAAkC;IAElC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,MAAM,CAA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,CAAC,EACP,eAAe,EACf,GAAG,IAAI,EACW,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EACvD,IAAI,EAAE,WAAW,KACb,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KACpE,IAAI,GACR,CACH,CAAC;AAbW,QAAA,iBAAiB,qBAa5B;AAEF,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC"}
@@ -1,12 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ListOrientation } from '../../model/ListOrientation';
3
- export declare const ANNUITY = "annuity";
4
- export declare const DIFFERENTIAL = "differential";
5
- interface PaymentTypeProps {
6
- isAnnuity: boolean;
7
- callback?: (value: boolean) => void;
8
- title?: string;
9
- orientation?: ListOrientation;
10
- }
11
- export declare function renderPaymentType({ isAnnuity, callback, title, orientation, }: PaymentTypeProps): JSX.Element;
12
- export {};
2
+ import { BinaryRadioButtonGroupProps } from './renderBinaryRadioButtonGroup';
3
+ export declare const renderPaymentType: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -1,22 +1,12 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderPaymentType = exports.DIFFERENTIAL = exports.ANNUITY = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
5
- const Text_1 = require("../../ui-kit/Text/Text");
6
- exports.ANNUITY = 'annuity';
7
- exports.DIFFERENTIAL = 'differential';
8
- const paymentTypeItems = [
9
- {
10
- id: exports.ANNUITY,
11
- text: 'Аннуитетный',
12
- },
13
- {
14
- id: exports.DIFFERENTIAL,
15
- text: 'Дифференцированный',
16
- },
17
- ];
18
- function renderPaymentType({ isAnnuity, callback, title, orientation = 'horizontal', }) {
19
- return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: paymentTypeItems, checkedItem: isAnnuity ? exports.ANNUITY : exports.DIFFERENTIAL, onChange: (text) => callback && callback(text === exports.ANNUITY) })] }));
20
- }
2
+ exports.renderPaymentType = void 0;
3
+ const renderBinaryRadioButtonGroup_1 = require("./renderBinaryRadioButtonGroup");
4
+ const renderPaymentType = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
5
+ ...props,
6
+ items: [
7
+ { id: 'annuity', text: 'Аннуитетный' },
8
+ { id: 'differential', text: 'Дифференцированный' },
9
+ ],
10
+ });
21
11
  exports.renderPaymentType = renderPaymentType;
22
12
  //# sourceMappingURL=renderPaymentType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAEjC,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,eAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,oBAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AASF,SAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACT;IACjB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,eAAO,CAAC,CAAC,CAAC,oBAAY,EAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAO,CAAC,GAClE,IACE,CACP,CAAC;AACJ,CAAC;AAvBD,8CAuBC"}
1
+ {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,oBAAoB,EAAE;KACnD;CACF,CAAC,CAAC;AAPQ,QAAA,iBAAiB,qBAOzB"}
@@ -1,10 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ListOrientation } from '../../model/ListOrientation';
3
- interface RegistrationTypeProps {
4
- isRemoteRegistration: boolean;
5
- callback?: (value: boolean) => void;
6
- title?: string;
7
- orientation?: ListOrientation;
8
- }
9
- export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
10
- export {};
2
+ import { BinaryRadioButtonGroupProps } from './renderBinaryRadioButtonGroup';
3
+ export declare const renderRegistrationType: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -1,22 +1,12 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderRegistrationType = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
5
- const Text_1 = require("../../ui-kit/Text/Text");
6
- const REMOTE_REGISTRATION = 'remote';
7
- const OFFICE_REGISTRATION = 'office';
8
- const registrationTypeItems = [
9
- {
10
- id: OFFICE_REGISTRATION,
11
- text: 'Офис Банка',
12
- },
13
- {
14
- id: REMOTE_REGISTRATION,
15
- text: 'Дистанционно',
16
- },
17
- ];
18
- function renderRegistrationType({ isRemoteRegistration, callback, title, orientation = 'horizontal', }) {
19
- return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: registrationTypeItems, checkedItem: isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION, onChange: (text) => callback && callback(text === REMOTE_REGISTRATION) }) })] }));
20
- }
3
+ const renderBinaryRadioButtonGroup_1 = require("./renderBinaryRadioButtonGroup");
4
+ const renderRegistrationType = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
5
+ ...props,
6
+ items: [
7
+ { id: 'remote', text: 'Дистанционно' },
8
+ { id: 'office', text: 'Офис Банка' },
9
+ ],
10
+ });
21
11
  exports.renderRegistrationType = renderRegistrationType;
22
12
  //# sourceMappingURL=renderRegistrationType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAE9C,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AACrC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC,MAAM,qBAAqB,GAAG;IAC5B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,cAAc;KACrB;CACF,CAAC;AASF,SAAgB,sBAAsB,CAAC,EACrC,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACJ;IACtB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,0CACE,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,qBAAqB,EAC5B,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EAC7E,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,GAC9E,GACE,IACF,CACP,CAAC;AACJ,CAAC;AAzBD,wDAyBC"}
1
+ {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACpF,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE;QACtC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE;KACrC;CACF,CAAC,CAAC;AAPQ,QAAA,sBAAsB,0BAO9B"}
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react" />
2
- interface RenderWantedSumParams {
3
- minSum: number;
4
- maxSum: number;
5
- moneyValue: number;
6
- className?: string;
7
- step?: number;
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
3
+ interface RenderWantedSumParams extends InputRangeProps {
8
4
  isShowItems?: boolean;
9
5
  }
10
- export declare function renderWantedSumInput(title: string, params: RenderWantedSumParams, callback?: (value: number) => void): JSX.Element;
6
+ export declare function renderWantedSumInput({ isShowItems, step, ...rest }: RenderWantedSumParams): JSX.Element;
11
7
  export {};