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

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 (473) hide show
  1. package/bundle/bundle.umd.js +198 -266
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/Calculator/Rate.d.ts +1 -0
  4. package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  5. package/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  6. package/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  7. package/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  8. package/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  9. package/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  10. package/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  11. package/bundle/components/Carousel/itemsGap.d.ts +1 -0
  12. package/bundle/components/Carousel/itemsGap.mobile.d.ts +1 -0
  13. package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  14. package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  15. package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  16. package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  17. package/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  18. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  19. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  20. package/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  21. package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  22. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  23. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  24. package/dist/components/Blocks.mobile.js +4 -0
  25. package/dist/components/Blocks.mobile.js.map +1 -1
  26. package/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  27. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  28. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  29. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  30. package/dist/components/Calculator/Calculator.js +4 -4
  31. package/dist/components/Calculator/Calculator.js.map +1 -1
  32. package/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  33. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  34. package/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  35. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  36. package/dist/components/Calculator/Rate.d.ts +1 -0
  37. package/dist/components/Calculator/Rate.js +1 -1
  38. package/dist/components/Calculator/Rate.js.map +1 -1
  39. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  40. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  41. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  42. package/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  43. package/dist/components/Calculator/renderDaysInput.js +2 -9
  44. package/dist/components/Calculator/renderDaysInput.js.map +1 -1
  45. package/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  46. package/dist/components/Calculator/renderInterestPayment.js +8 -18
  47. package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  48. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  49. package/dist/components/Calculator/renderMonthsInput.js +2 -10
  50. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  51. package/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  52. package/dist/components/Calculator/renderPaymentType.js +9 -19
  53. package/dist/components/Calculator/renderPaymentType.js.map +1 -1
  54. package/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  55. package/dist/components/Calculator/renderRegistrationType.js +8 -18
  56. package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  57. package/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  58. package/dist/components/Calculator/renderWantedSumInput.js +4 -6
  59. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  60. package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  61. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  62. package/dist/components/Carousel/Carousel.js +3 -3
  63. package/dist/components/Carousel/Carousel.js.map +1 -1
  64. package/dist/components/Carousel/itemsGap.d.ts +1 -0
  65. package/dist/components/Carousel/itemsGap.js +4 -0
  66. package/dist/components/Carousel/itemsGap.js.map +1 -0
  67. package/dist/components/Carousel/itemsGap.mobile.d.ts +1 -0
  68. package/dist/components/Carousel/itemsGap.mobile.js +4 -0
  69. package/dist/components/Carousel/itemsGap.mobile.js.map +1 -0
  70. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  71. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  72. package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  73. package/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  74. package/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  75. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  76. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +4 -0
  77. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  78. package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  79. package/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  80. package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  81. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  82. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +5 -0
  83. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  84. package/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  85. package/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  86. package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  87. package/dist/components/Headline/Headline.js +2 -1
  88. package/dist/components/Headline/Headline.js.map +1 -1
  89. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  90. package/dist/components/Headline/headlineVersionStyles.js +6 -6
  91. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  92. package/dist/hooks/useForm.js +2 -2
  93. package/dist/hooks/useForm.js.map +1 -1
  94. package/dist/ui-kit/Checkbox/Checkbox.js +4 -1
  95. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  96. package/dist/ui-kit/InputRange/InputRange.js +22 -16
  97. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  98. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  99. package/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  100. package/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  101. package/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  102. package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  103. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  104. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  105. package/dist/utils/getSanitizedValue.js +1 -1
  106. package/dist/utils/getSanitizedValue.js.map +1 -1
  107. package/dist/wlc.json +1 -2
  108. package/lib/common.css +1 -1
  109. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  110. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  111. package/lib/components/Blocks.mobile.js +4 -0
  112. package/lib/components/Blocks.mobile.js.map +1 -1
  113. package/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  114. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  115. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  116. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  117. package/lib/components/Calculator/Calculator.js +4 -4
  118. package/lib/components/Calculator/Calculator.js.map +1 -1
  119. package/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  120. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  121. package/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  122. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  123. package/lib/components/Calculator/Rate.d.ts +1 -0
  124. package/lib/components/Calculator/Rate.js +1 -1
  125. package/lib/components/Calculator/Rate.js.map +1 -1
  126. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  127. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  128. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  129. package/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  130. package/lib/components/Calculator/renderDaysInput.js +2 -9
  131. package/lib/components/Calculator/renderDaysInput.js.map +1 -1
  132. package/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  133. package/lib/components/Calculator/renderInterestPayment.js +8 -18
  134. package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  135. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  136. package/lib/components/Calculator/renderMonthsInput.js +2 -10
  137. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  138. package/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  139. package/lib/components/Calculator/renderPaymentType.js +8 -18
  140. package/lib/components/Calculator/renderPaymentType.js.map +1 -1
  141. package/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  142. package/lib/components/Calculator/renderRegistrationType.js +8 -18
  143. package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  144. package/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  145. package/lib/components/Calculator/renderWantedSumInput.js +4 -6
  146. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  147. package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  148. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  149. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +11 -0
  150. package/lib/components/Carousel/Carousel.js +2 -2
  151. package/lib/components/Carousel/Carousel.js.map +1 -1
  152. package/lib/components/Carousel/itemsGap.d.ts +1 -0
  153. package/lib/components/Carousel/itemsGap.js +2 -0
  154. package/lib/components/Carousel/itemsGap.js.map +1 -0
  155. package/lib/components/Carousel/itemsGap.mobile.d.ts +1 -0
  156. package/lib/components/Carousel/itemsGap.mobile.js +2 -0
  157. package/lib/components/Carousel/itemsGap.mobile.js.map +1 -0
  158. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +9 -0
  159. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  160. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  161. package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  162. package/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  163. package/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  164. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  165. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +2 -0
  166. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  167. package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  168. package/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  169. package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  170. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  171. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +2 -0
  172. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  173. package/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  174. package/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  175. package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  176. package/lib/components/Headline/Headline.fixture.mobile.d.ts +22 -0
  177. package/lib/components/Headline/Headline.js +2 -1
  178. package/lib/components/Headline/Headline.js.map +1 -1
  179. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  180. package/lib/components/Headline/headlineVersionStyles.js +6 -6
  181. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  182. package/lib/hooks/useForm.js +2 -2
  183. package/lib/hooks/useForm.js.map +1 -1
  184. package/lib/ui-kit/Checkbox/Checkbox.js +4 -1
  185. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  186. package/lib/ui-kit/InputRange/InputRange.js +22 -16
  187. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  188. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  189. package/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  190. package/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  191. package/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  192. package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  193. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  194. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  195. package/lib/utils/getSanitizedValue.js +1 -1
  196. package/lib/utils/getSanitizedValue.js.map +1 -1
  197. package/lib/wlc.json +1 -2
  198. package/mobile/bundle/bundle.umd.js +363 -265
  199. package/mobile/bundle/bundle.umd.min.js +1 -1
  200. package/mobile/bundle/components/Calculator/Rate.d.ts +1 -0
  201. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  202. package/mobile/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  203. package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  204. package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  205. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  206. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  207. package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  208. package/mobile/bundle/components/Carousel/itemsGap.d.ts +1 -0
  209. package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  210. package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  211. package/mobile/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  212. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  213. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  214. package/mobile/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  215. package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  216. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  217. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  218. package/mobile/dist/components/Blocks.js +4 -0
  219. package/mobile/dist/components/Blocks.js.map +1 -1
  220. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  221. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  222. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  223. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  224. package/mobile/dist/components/Calculator/Calculator.js +4 -4
  225. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  226. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  227. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  228. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  229. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  230. package/mobile/dist/components/Calculator/Rate.d.ts +1 -0
  231. package/mobile/dist/components/Calculator/Rate.js +1 -1
  232. package/mobile/dist/components/Calculator/Rate.js.map +1 -1
  233. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  234. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  235. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  236. package/mobile/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  237. package/mobile/dist/components/Calculator/renderDaysInput.js +2 -9
  238. package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
  239. package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  240. package/mobile/dist/components/Calculator/renderInterestPayment.js +8 -18
  241. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  242. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  243. package/mobile/dist/components/Calculator/renderMonthsInput.js +2 -10
  244. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  245. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  246. package/mobile/dist/components/Calculator/renderPaymentType.js +9 -19
  247. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
  248. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  249. package/mobile/dist/components/Calculator/renderRegistrationType.js +8 -18
  250. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  251. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  252. package/mobile/dist/components/Calculator/renderWantedSumInput.js +4 -6
  253. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  254. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  255. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  256. package/mobile/dist/components/Carousel/Carousel.js +3 -3
  257. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  258. package/mobile/dist/components/Carousel/itemsGap.d.ts +1 -0
  259. package/mobile/dist/components/Carousel/itemsGap.js +4 -0
  260. package/mobile/dist/components/Carousel/itemsGap.js.map +1 -0
  261. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  262. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  263. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  264. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  265. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  266. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  267. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  268. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  269. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  270. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  271. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  272. package/mobile/dist/components/Headline/Headline.js +2 -1
  273. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  274. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  275. package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
  276. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  277. package/mobile/dist/hooks/useForm.js +2 -2
  278. package/mobile/dist/hooks/useForm.js.map +1 -1
  279. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +4 -1
  280. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  281. package/mobile/dist/ui-kit/InputRange/InputRange.js +22 -16
  282. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  283. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  284. package/mobile/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  285. package/mobile/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  286. package/mobile/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  287. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  288. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  289. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  290. package/mobile/dist/utils/getSanitizedValue.js +1 -1
  291. package/mobile/dist/utils/getSanitizedValue.js.map +1 -1
  292. package/mobile/dist/wlc.json +1 -2
  293. package/mobile/lib/common.css +1 -1
  294. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  295. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  296. package/mobile/lib/components/Blocks.js +4 -0
  297. package/mobile/lib/components/Blocks.js.map +1 -1
  298. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  299. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  300. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  301. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  302. package/mobile/lib/components/Calculator/Calculator.js +4 -4
  303. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  304. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  305. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  306. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  307. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  308. package/mobile/lib/components/Calculator/Rate.d.ts +1 -0
  309. package/mobile/lib/components/Calculator/Rate.js +1 -1
  310. package/mobile/lib/components/Calculator/Rate.js.map +1 -1
  311. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  312. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  313. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  314. package/mobile/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  315. package/mobile/lib/components/Calculator/renderDaysInput.js +2 -9
  316. package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
  317. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  318. package/mobile/lib/components/Calculator/renderInterestPayment.js +8 -18
  319. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  320. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  321. package/mobile/lib/components/Calculator/renderMonthsInput.js +2 -10
  322. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  323. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  324. package/mobile/lib/components/Calculator/renderPaymentType.js +8 -18
  325. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
  326. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  327. package/mobile/lib/components/Calculator/renderRegistrationType.js +8 -18
  328. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  329. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  330. package/mobile/lib/components/Calculator/renderWantedSumInput.js +4 -6
  331. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  332. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  333. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  334. package/mobile/lib/components/Carousel/Carousel.js +2 -2
  335. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  336. package/mobile/lib/components/Carousel/itemsGap.d.ts +1 -0
  337. package/mobile/lib/components/Carousel/itemsGap.js +2 -0
  338. package/mobile/lib/components/Carousel/itemsGap.js.map +1 -0
  339. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  340. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  341. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  342. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  343. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  344. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  345. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  346. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  347. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  348. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  349. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  350. package/mobile/lib/components/Headline/Headline.js +2 -1
  351. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  352. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  353. package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
  354. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  355. package/mobile/lib/hooks/useForm.js +2 -2
  356. package/mobile/lib/hooks/useForm.js.map +1 -1
  357. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +4 -1
  358. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  359. package/mobile/lib/ui-kit/InputRange/InputRange.js +22 -16
  360. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  361. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  362. package/mobile/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  363. package/mobile/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  364. package/mobile/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  365. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  366. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  367. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  368. package/mobile/lib/utils/getSanitizedValue.js +1 -1
  369. package/mobile/lib/utils/getSanitizedValue.js.map +1 -1
  370. package/mobile/lib/wlc.json +1 -2
  371. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  372. package/mobile/src/components/Blocks.ts +4 -0
  373. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  374. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  375. package/mobile/src/components/Calculator/Calculator.tsx +11 -5
  376. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  377. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  378. package/mobile/src/components/Calculator/Rate.tsx +14 -14
  379. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  380. package/mobile/src/components/Calculator/renderDaysInput.tsx +10 -31
  381. package/mobile/src/components/Calculator/renderInterestPayment.tsx +13 -52
  382. package/mobile/src/components/Calculator/renderMonthsInput.tsx +17 -39
  383. package/mobile/src/components/Calculator/renderPaymentType.tsx +13 -49
  384. package/mobile/src/components/Calculator/renderRegistrationType.tsx +13 -51
  385. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  386. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  387. package/mobile/src/components/Carousel/Carousel.tsx +2 -3
  388. package/mobile/src/components/Carousel/itemsGap.ts +1 -0
  389. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  390. package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  391. package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  392. package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  393. package/mobile/src/components/Headline/Headline.tsx +10 -5
  394. package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
  395. package/mobile/src/hooks/useForm.ts +17 -14
  396. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
  397. package/mobile/src/ui-kit/InputRange/InputRange.tsx +56 -43
  398. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  399. package/mobile/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  400. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  401. package/mobile/src/utils/getSanitizedValue.ts +1 -1
  402. package/mobile/src/wlc.json +1 -2
  403. package/package.json +1 -1
  404. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  405. package/src/components/Blocks.mobile.ts +4 -0
  406. package/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  407. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  408. package/src/components/Calculator/Calculator.tsx +11 -5
  409. package/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  410. package/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  411. package/src/components/Calculator/Rate.tsx +14 -14
  412. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  413. package/src/components/Calculator/renderDaysInput.tsx +10 -31
  414. package/src/components/Calculator/renderInterestPayment.tsx +13 -52
  415. package/src/components/Calculator/renderMonthsInput.tsx +17 -39
  416. package/src/components/Calculator/renderPaymentType.tsx +13 -49
  417. package/src/components/Calculator/renderRegistrationType.tsx +13 -51
  418. package/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  419. package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  420. package/src/components/Carousel/Carousel.fixture.mobile.tsx +93 -0
  421. package/src/components/Carousel/Carousel.tsx +2 -3
  422. package/src/components/Carousel/itemsGap.mobile.ts +1 -0
  423. package/src/components/Carousel/itemsGap.ts +1 -0
  424. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +74 -0
  425. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  426. package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +1 -0
  427. package/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  428. package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +2 -0
  429. package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  430. package/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  431. package/src/components/Headline/Headline.fixture.mobile.tsx +95 -0
  432. package/src/components/Headline/Headline.tsx +10 -5
  433. package/src/components/Headline/headlineVersionStyles.ts +7 -7
  434. package/src/hooks/useForm.ts +17 -14
  435. package/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
  436. package/src/ui-kit/InputRange/InputRange.tsx +56 -43
  437. package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  438. package/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  439. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  440. package/src/utils/getSanitizedValue.ts +1 -1
  441. package/src/wlc.json +1 -2
  442. package/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  443. package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  444. package/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  445. package/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  446. package/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  447. package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  448. package/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  449. package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  450. package/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  451. package/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  452. package/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  453. package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  454. package/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  455. package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  456. package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  457. package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  458. package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  459. package/mobile/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  460. package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  461. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  462. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  463. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  464. package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  465. package/mobile/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  466. package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  467. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  468. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  469. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  470. package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  471. package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
  472. package/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  473. package/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
@@ -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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AAQ,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,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GA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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;AACh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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,CAAC;IACtE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE;QAClC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,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C,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 {};
@@ -3,15 +3,13 @@ exports.renderWantedSumInput = 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
5
  const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
6
- const clamp_1 = require("../../utils/clamp");
7
6
  const DEFAULT_MONEY_STEP = 1000;
8
- function renderWantedSumInput(title, params, callback) {
9
- const { moneyValue, minSum, maxSum, step = DEFAULT_MONEY_STEP, isShowItems = true } = params;
7
+ function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
10
8
  const items = [
11
- `От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} ₽`,
12
- `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} ₽`,
9
+ `От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(rest.min || 0)} ₽`,
10
+ `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(rest.max || 0)} ₽`,
13
11
  ];
14
- return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { title: title, items: isShowItems ? items : [], min: minSum, max: maxSum, step: step, value: (0, clamp_1.clamp)(moneyValue, minSum, maxSum), onChange: callback }));
12
+ return (0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { items: isShowItems ? items : [], step: step, ...rest });
15
13
  }
16
14
  exports.renderWantedSumInput = renderWantedSumInput;
17
15
  //# sourceMappingURL=renderWantedSumInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,iFAA8E;AAC9E,6CAA0C;AAE1C,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAWhC,SAAgB,oBAAoB,CAClC,KAAa,EACb,MAA6B,EAC7B,QAAkC;IAElC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,kBAAkB,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE7F,MAAM,KAAK,GAAG;QACZ,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;QACzC,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;KAC1C,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EACxC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AAvBD,oDAuBC"}
1
+ {"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAEhE,iFAA8E;AAE9E,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAMhC,SAAgB,oBAAoB,CAAC,EACnC,WAAW,GAAG,IAAI,EAClB,IAAI,GAAG,kBAAkB,EACzB,GAAG,IAAI,EACe;IACtB,MAAM,KAAK,GAAG;QACZ,MAAM,IAAA,iDAAuB,EAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;QAChD,MAAM,IAAA,iDAAuB,EAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;KACjD,CAAC;IAEF,OAAO,uBAAC,uBAAU,IAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,KAAM,IAAI,GAAI,CAAC;AAC/E,CAAC;AAXD,oDAWC"}
@@ -8,7 +8,7 @@ const useCalculatorParams_1 = require("./useCalculatorParams");
8
8
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
9
9
  const { moneyValue, monthsValue } = userInputParams;
10
10
  const data = (0, useCalculatorParams_1.useCalculatorParams)(sourceBookDir || constants_1.DEPOSIT_CALC_DEFAULT_DIR);
11
- const defaultMonth = data?.rateRows[0]
11
+ const defaultMonth = data?.rateRows?.[0]
12
12
  ? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
13
13
  : 1;
14
14
  const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
@@ -1 +1 @@
1
- {"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2DAAwD;AACxD,+DAA4D;AAE5D,2CAA0F;AAC1F,iDAAkE;AAClE,+DAA4D;AAiCrD,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,aAAsB,EACtB,kBAAwD,EAC/B,EAAE;IAC3B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACpD,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAC9B,aAAa,IAAI,oCAAwB,CAC1C,CAAC;IACF,MAAM,YAAY,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAA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,GAAG,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2DAAwD;AACxD,+DAA4D;AAE5D,2CAA0F;AAC1F,iDAAkE;AAClE,+DAA4D;AAiCrD,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,aAAsB,EACtB,kBAAwD,EAC/B,EAAE;IAC3B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACpD,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAC9B,aAAa,IAAI,oCAAwB,CAC1C,CAAC;IACF,MAAM,YAAY,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxE,CAAC,CAAC,CAAC,CAAC;IACN,MAAM,+BAA+B,GAAG,CAAC,kBAAkB,EAAE,4BAA4B,CAAC;IAC1F,MAAM,2BAA2B,GAAG,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IAClF,MAAM,iCAAiC,GACrC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAClB,CAAC,GAAG,EAAE,EAAE,CACN,eAAe,CAAC;QACd,GAAG;QACH,eAAe;QACf,QAAQ,EAAE,0BAA0B;QACpC,SAAS,EAAE,+BAA+B;KAC3C,CAAC;QACF,eAAe,CAAC;YACd,GAAG;YACH,eAAe;YACf,QAAQ,EAAE,sBAAsB;YAChC,SAAS,EAAE,2BAA2B;SACvC,CAAC;QACF,IAAA,+BAAgB,EAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;QACvD,IAAA,+BAAgB,EAAC,WAAW,IAAI,YAAY,EAAE,CAAC,WAAW,EA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KAC1F;SAAM;QACL;;UAEE;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KACvE;AACH,CAAC,CAAC;AASF,MAAM,eAAe,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAwB,EAAE,EAAE,CAC9F,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;AAE3D,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAU,EAAE,CACtE,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC"}
@@ -11,7 +11,7 @@ const SwipeListControlDots_1 = require("../../ui-kit/SwipeListControl/SwipeListC
11
11
  const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeListScroll");
12
12
  const style_1 = require("../../utils/style");
13
13
  const CarouselScrollButtons_1 = require("./CarouselScrollButtons");
14
- const ITEMS_GAP = 4;
14
+ const itemsGap_1 = require("./itemsGap");
15
15
  exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, isAlignCenter = false, ...rest }) => {
16
16
  const { blocks: childBlocks = [] } = rest.block || {};
17
17
  const count = itemCount || childBlocks?.length;
@@ -24,7 +24,7 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
24
24
  });
25
25
  const [dotsActiveIndex] = scroll.visibleIndicesRange;
26
26
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
27
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)({
27
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: itemsGap_1.ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)({
28
28
  ...rest,
29
29
  renderProps: isBankHistoryCarousel
30
30
  ? (block, options) => (0, renderBlock_1.renderBlock)(block, options, {
@@ -32,7 +32,7 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
32
32
  activeIndex: activeIndex,
33
33
  })
34
34
  : renderBlock_1.renderBlock,
35
- }) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count }), showDots ? renderDots(containerRef, dotsActiveIndex, itemCount) : null] }) }));
35
+ }) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count }), showDots ? renderDots(containerRef, dotsActiveIndex, count) : null] }) }));
36
36
  });
37
37
  exports.Carousel.childrenTypes = [
38
38
  'CarouselCard',
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,iEAA8D;AAC9D,uEAAoE;AAEpE,4DAAyD;AACzD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAOhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEP,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,IAAI,EACnB,SAAS,GAAG,IAAI,EAChB,QAAQ,GAAG,KAAK,EAChB,aAAa,GAAG,KAAK,EACrB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACtD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,CAAC;IAE/C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAS,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChG,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,MAAM,mBAAmB,GAAG,IAAA,mBAAW,E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EAAE,qBAAqB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,GAChB,EACD,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IACnE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,mBAAmB;CACpB,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAU,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEvF,MAAM,aAAa,GAAG,CAAC,aAAsB,EAAU,EAAE,CACvD,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;AAE7C,MAAM,UAAU,GAAG,CACjB,YAAgD,EAChD,eAAuB,EACvB,SAA6B,EAC7B,EAAE,CAAC,CACH,uBAAC,2CAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,iBAAiB,GAC3B,CACH,CAAC"}
1
+ {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,iEAA8D;AAC9D,uEAAoE;AAEpE,4DAAyD;AACzD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAChE,yCAAuC;AAO1B,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,gB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C,CAAC;AAEvF,MAAM,aAAa,GAAG,CAAC,aAAsB,EAAU,EAAE,CACvD,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;AAE7C,MAAM,UAAU,GAAG,CACjB,YAAgD,EAChD,eAAuB,EACvB,SAA6B,EAC7B,EAAE,CAAC,CACH,uBAAC,2CAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,iBAAiB,GAC3B,CACH,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const ITEMS_GAP = 4;
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ITEMS_GAP = void 0;
3
+ exports.ITEMS_GAP = 4;
4
+ //# sourceMappingURL=itemsGap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemsGap.js","sourceRoot":"","sources":["../../../src/components/Carousel/itemsGap.ts"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const ITEMS_GAP = 16;
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ITEMS_GAP = void 0;
3
+ exports.ITEMS_GAP = 16;
4
+ //# sourceMappingURL=itemsGap.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemsGap.mobile.js","sourceRoot":"","sources":["../../../src/components/Carousel/itemsGap.mobile.ts"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,EAAE,CAAC"}