@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,51 +1,13 @@
1
- import { ListOrientation } from '../../model/ListOrientation';
2
- import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
3
- import { Text } from '../../ui-kit/Text/Text';
4
-
5
- const REMOTE_REGISTRATION = 'remote';
6
- const OFFICE_REGISTRATION = 'office';
7
-
8
- const registrationTypeItems = [
9
- {
10
- id: OFFICE_REGISTRATION,
11
- text: 'Офис Банка',
12
- },
13
- {
14
- id: REMOTE_REGISTRATION,
15
- text: 'Дистанционно',
16
- },
17
- ];
18
-
19
- interface RegistrationTypeProps {
20
- isRemoteRegistration: boolean;
21
- callback?: (value: boolean) => void;
22
- title?: string;
23
- orientation?: ListOrientation;
24
- }
25
-
26
- export function renderRegistrationType({
27
- isRemoteRegistration,
28
- callback,
29
- title,
30
- orientation = 'horizontal',
31
- }: RegistrationTypeProps) {
32
- return (
33
- <div>
34
- {title ? (
35
- <div className="mb-3">
36
- <Text color="text-secondary-text" font="font-light">
37
- {title}
38
- </Text>
39
- </div>
40
- ) : null}
41
- <div>
42
- <RadioButtonGroup
43
- orientation={orientation}
44
- items={registrationTypeItems}
45
- checkedItem={isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION}
46
- onChange={(text: string) => callback && callback(text === REMOTE_REGISTRATION)}
47
- />
48
- </div>
49
- </div>
50
- );
51
- }
1
+ import {
2
+ BinaryRadioButtonGroupProps,
3
+ renderBinaryRadioButtonGroup,
4
+ } from './renderBinaryRadioButtonGroup';
5
+
6
+ export const renderRegistrationType = (props: Partial<BinaryRadioButtonGroupProps>) =>
7
+ renderBinaryRadioButtonGroup({
8
+ ...props,
9
+ items: [
10
+ { id: 'remote', text: 'Дистанционно' },
11
+ { id: 'office', text: 'Офис Банка' },
12
+ ],
13
+ });
@@ -1,39 +1,22 @@
1
1
  import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
3
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
3
- import { clamp } from '../../utils/clamp';
4
4
 
5
5
  const DEFAULT_MONEY_STEP = 1000;
6
6
 
7
- interface RenderWantedSumParams {
8
- minSum: number;
9
- maxSum: number;
10
- moneyValue: number;
11
- className?: string;
12
- step?: number;
7
+ interface RenderWantedSumParams extends InputRangeProps {
13
8
  isShowItems?: boolean;
14
9
  }
15
10
 
16
- export function renderWantedSumInput(
17
- title: string,
18
- params: RenderWantedSumParams,
19
- callback?: (value: number) => void,
20
- ) {
21
- const { moneyValue, minSum, maxSum, step = DEFAULT_MONEY_STEP, isShowItems = true } = params;
22
-
11
+ export function renderWantedSumInput({
12
+ isShowItems = true,
13
+ step = DEFAULT_MONEY_STEP,
14
+ ...rest
15
+ }: RenderWantedSumParams) {
23
16
  const items = [
24
- `От ${addSpacesBetweenNumbers(minSum)} ₽`,
25
- `До ${addSpacesBetweenNumbers(maxSum)} ₽`,
17
+ `От ${addSpacesBetweenNumbers(rest.min || 0)} ₽`,
18
+ `До ${addSpacesBetweenNumbers(rest.max || 0)} ₽`,
26
19
  ];
27
20
 
28
- return (
29
- <InputRange
30
- title={title}
31
- items={isShowItems ? items : []}
32
- min={minSum}
33
- max={maxSum}
34
- step={step}
35
- value={clamp(moneyValue, minSum, maxSum)}
36
- onChange={callback}
37
- />
38
- );
21
+ return <InputRange items={isShowItems ? items : []} step={step} {...rest} />;
39
22
  }
@@ -45,7 +45,7 @@ export const useDepositCalculatorParams = (
45
45
  const data = useCalculatorParams<DepositCalculatorData>(
46
46
  sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR,
47
47
  );
48
- const defaultMonth = data?.rateRows[0]
48
+ const defaultMonth = data?.rateRows?.[0]
49
49
  ? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
50
50
  : 1;
51
51
  const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
@@ -0,0 +1,93 @@
1
+ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
2
+ import '../../setup-fixture';
3
+ import { Blocks } from '../Blocks';
4
+ import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
5
+ import { Carousel } from './Carousel';
6
+
7
+ const options = {
8
+ blocksRegistry: Blocks,
9
+ } as BlockRendererOptions;
10
+
11
+ const carouselBlock = {
12
+ type: 'Carousel',
13
+ blocks: new Array(6)
14
+ .fill({
15
+ type: 'CarouselTariffsCard',
16
+ content: TARIFFS_CARD,
17
+ })
18
+ .map((_, i) => (i === 1 ? { ..._, content: TARIFFS_CARD_HIT } : _)),
19
+ };
20
+
21
+ export default {
22
+ default: (
23
+ <div className="container grid grid-cols-12">
24
+ <Carousel className="col-span-12" block={carouselBlock} options={options} />
25
+ </div>
26
+ ),
27
+ 'arrowsPadded with cyclic': (
28
+ <div className="container grid grid-cols-12">
29
+ <Carousel
30
+ className="col-span-12"
31
+ block={carouselBlock}
32
+ options={options}
33
+ arrowsPadded={false}
34
+ isCyclic={true}
35
+ />
36
+ </div>
37
+ ),
38
+
39
+ 'no-blur with cyclic': (
40
+ <div className="container grid grid-cols-12">
41
+ <Carousel
42
+ className="col-span-12"
43
+ isBlur={false}
44
+ isCyclic={true}
45
+ block={carouselBlock}
46
+ options={options}
47
+ />
48
+ </div>
49
+ ),
50
+ 'one visible cards with dots': (
51
+ <div className="container grid grid-cols-12">
52
+ <Carousel
53
+ className="col-span-12"
54
+ visibleItemCount={1}
55
+ showDots={true}
56
+ block={carouselBlock}
57
+ options={options}
58
+ />
59
+ </div>
60
+ ),
61
+ 'only one cards align center': (
62
+ <div className="container grid grid-cols-12">
63
+ <Carousel
64
+ className="col-span-12"
65
+ block={{
66
+ type: 'Carousel',
67
+ blocks: new Array(1)
68
+ .fill({
69
+ type: 'CarouselTariffsCard',
70
+ content: TARIFFS_CARD,
71
+ })
72
+ .map((_, i) => (i === 1 ? { ..._, content: TARIFFS_CARD_HIT } : _)),
73
+ }}
74
+ options={options}
75
+ isAlignCenter={true}
76
+ />
77
+ </div>
78
+ ),
79
+
80
+ tariffs: (
81
+ <div className="container grid grid-cols-12">
82
+ <Carousel
83
+ className="col-span-12"
84
+ visibleItemCount={0}
85
+ isBlur={true}
86
+ isCyclic={false}
87
+ isAlignCenter={true}
88
+ block={carouselBlock}
89
+ options={options}
90
+ />
91
+ </div>
92
+ ),
93
+ };
@@ -10,14 +10,13 @@ import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListSc
10
10
  import { style } from '../../utils/style';
11
11
  import type { CarouselContent } from './CarouselContent';
12
12
  import { CarouselScrollButtons } from './CarouselScrollButtons';
13
+ import { ITEMS_GAP } from './itemsGap';
13
14
 
14
15
  export interface CarouselProps extends CarouselContent, UniBlockProps {
15
16
  itemCount?: number;
16
17
  showDots?: boolean;
17
18
  }
18
19
 
19
- const ITEMS_GAP = 4;
20
-
21
20
  export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
22
21
  ({
23
22
  className = '',
@@ -83,7 +82,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
83
82
  activeIndex={activeIndex}
84
83
  itemCount={count}
85
84
  />
86
- {showDots ? renderDots(containerRef, dotsActiveIndex, itemCount) : null}
85
+ {showDots ? renderDots(containerRef, dotsActiveIndex, count) : null}
87
86
  </div>
88
87
  </BlockWrapper>
89
88
  );
@@ -0,0 +1 @@
1
+ export const ITEMS_GAP = 16;
@@ -0,0 +1 @@
1
+ export const ITEMS_GAP = 4;
@@ -0,0 +1,74 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import type { ButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+ import { CarouselTariffsCard } from './CarouselTariffsCard';
4
+ import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
5
+
6
+ const imageMonth: Picture = {
7
+ src: 'monthly-payment.png',
8
+ format: 'webp',
9
+ size: {
10
+ width: 190,
11
+ height: 54,
12
+ },
13
+ title: 'money',
14
+ };
15
+
16
+ const button: ButtonProps = {
17
+ href: '/',
18
+ text: 'Открыть расчетный счет',
19
+ target: '_blank',
20
+ version: 'primary',
21
+ };
22
+
23
+ const buttonSecondary: ButtonProps = {
24
+ href: '/',
25
+ text: 'Открыть расчетный счет',
26
+ target: '_blank',
27
+ version: 'secondary',
28
+ };
29
+
30
+ const buttonIcon: ButtonWithIconProps = {
31
+ text: 'App Store',
32
+ icon: { icon: 'DocIconMonoColor', iconVersion: 'color' },
33
+ href: 'rshb.ru',
34
+ version: 'link',
35
+ };
36
+
37
+ const cardCells = [
38
+ { title: 'Открытие расчетного счета', description: 'Бесплатно' },
39
+ { title: 'Внутрибанковские платежи', description: '0 ₽' },
40
+ { title: 'Внешние платежи, до 10 шт.', description: '0 ₽' },
41
+ { title: 'От 11 платежей', description: '50 ₽/шт.' },
42
+ {
43
+ title: 'Внесение наличных',
44
+ description: '0% - до 100 000 ₽/мес., далее согласно п.2.4. Тарифов Банка',
45
+ },
46
+ { title: 'Зарплатный проект', description: 'Бесплатно' },
47
+ { buttons: [buttonIcon] },
48
+ ];
49
+
50
+ export const TARIFFS_CARD: CarouselTariffsCardContent = {
51
+ title: 'Расчётный эконом',
52
+ icon: imageMonth,
53
+ button: buttonSecondary,
54
+ cardCells,
55
+ };
56
+
57
+ export const TARIFFS_CARD_HIT: CarouselTariffsCardContent = {
58
+ icon: imageMonth,
59
+ title: 'Расчётный эконом',
60
+ button,
61
+ cardCells,
62
+ isHighlighting: true,
63
+ };
64
+
65
+ const CAROUSEL_TARIFFS_CARD = <CarouselTariffsCard className="col-span-12" {...TARIFFS_CARD} />;
66
+
67
+ const CAROUSEL_TARIFFS_CARD_HIT = (
68
+ <CarouselTariffsCard className="col-span-12" {...TARIFFS_CARD_HIT} />
69
+ );
70
+
71
+ export default {
72
+ default: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD}</div>,
73
+ hit: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD_HIT}</div>,
74
+ };
@@ -4,7 +4,6 @@ import type { Picture } from '../../model/Picture';
4
4
  import type { VNode } from '../../model/VNode';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
6
  import { Button } from '../../ui-kit/Button/Button';
7
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
8
7
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
9
8
  import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
10
9
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
@@ -13,17 +12,16 @@ import { Icon } from '../../ui-kit/Icon/Icon';
13
12
  import { Img } from '../../ui-kit/Img/Img';
14
13
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
15
14
  import { style } from '../../utils/style';
16
- import type {
17
- CarouselTariffsCardContent,
18
- TariffsCardCellProps,
19
- } from './CarouselTariffsCardContent';
15
+ import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
16
+ import { getPaddingStyle } from './getPaddingStyle';
17
+ import { renderCardInfo } from './renderCardInfo';
20
18
 
21
19
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
22
20
 
23
21
  const VISIBLE_CELLS_COUNT = 1;
24
22
 
25
23
  export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
26
- ({ className = '', title, icon, isHighlighting, button, cardCells = [], ...rest }) => {
24
+ ({ className = '', title, icon, isHighlighting = false, button, cardCells = [], ...rest }) => {
27
25
  const cellsNode = cardCells.map(renderCardInfo);
28
26
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
29
27
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
@@ -31,8 +29,8 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
31
29
  return (
32
30
  <BlockWrapper
33
31
  className={style(
34
- 'relative border border-gray p-8 flex flex-col',
35
- getHitStyle(isHighlighting),
32
+ 'relative border border-gray flex flex-col',
33
+ getPaddingStyle(isHighlighting),
36
34
  className,
37
35
  )}
38
36
  {...rest}
@@ -59,14 +57,10 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
59
57
 
60
58
  const renderIconBlock = (icon?: Picture) => (
61
59
  <div className="w-[267px] min-w-[267px] self-center">
62
- {icon?.src ? <Img image={icon} /> : null}
63
- {icon?.icon ? <Img image={icon} /> : null}
60
+ {icon?.src || icon?.icon ? <Img image={icon} /> : null}
64
61
  </div>
65
62
  );
66
63
 
67
- const getHitStyle = (isHighlighting?: boolean): string =>
68
- isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
69
-
70
64
  const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
71
65
  <button
72
66
  className="w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center"
@@ -82,24 +76,6 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
82
76
  </button>
83
77
  );
84
78
 
85
- const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
86
- const { title, description, buttons } = cell;
87
-
88
- return (
89
- <div key={String(i)} className="py-5 border-b border-main-divider">
90
- {title ? (
91
- <div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
92
- ) : null}
93
- {description ? (
94
- <div className="text-primary-text text-h6 mt-1">{cell.description}</div>
95
- ) : null}
96
- {buttons?.length ? (
97
- <div className="text-primary-main">{renderButtonsSection(buttons)}</div>
98
- ) : null}
99
- </div>
100
- );
101
- };
102
-
103
79
  const renderHitIcon = (): VNode => (
104
80
  <div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
105
81
  <Icon iconVersion="black" name="HeartIcon" width="23" height="22" />
@@ -0,0 +1 @@
1
+ export const descriptionSize = 'text-l';
@@ -0,0 +1 @@
1
+ export const descriptionSize = 'text-h6';
@@ -0,0 +1,2 @@
1
+ export const getPaddingStyle = (isHighlighting?: boolean): string =>
2
+ isHighlighting ? 'p-default mt-6' : 'p-default mt-6';
@@ -0,0 +1,2 @@
1
+ export const getPaddingStyle = (isHighlighting?: boolean) =>
2
+ isHighlighting ? 'p-8 mt-8 pt-20' : 'p-8 mt-20';
@@ -0,0 +1,31 @@
1
+ import { VNode } from '../../model/VNode';
2
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+ import { TariffsCardCellProps } from './CarouselTariffsCardContent';
5
+ import { descriptionSize } from './descriptionSize';
6
+
7
+ export const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
8
+ const { title, description, buttons } = cell;
9
+
10
+ return (
11
+ <div key={String(i)} className="py-5 border-b border-main-divider">
12
+ {title ? (
13
+ <div className="opacity-80">
14
+ <Text size="text-m" color="text-secondary-text">
15
+ {title}
16
+ </Text>
17
+ </div>
18
+ ) : null}
19
+ {description ? (
20
+ <div className="mt-1">
21
+ <Text size={descriptionSize} color="text-primary-text">
22
+ {description}
23
+ </Text>
24
+ </div>
25
+ ) : null}
26
+ {buttons?.length ? (
27
+ <div className="text-primary-main">{renderButtonsSection(buttons)}</div>
28
+ ) : null}
29
+ </div>
30
+ );
31
+ };
@@ -0,0 +1,95 @@
1
+ import type { FC } from 'react';
2
+ import '../../setup-fixture';
3
+
4
+ import { Headline } from './Headline';
5
+ import type { HeadlineContent } from './HeadlineContent';
6
+
7
+ export const HEADLINE: HeadlineContent = {
8
+ title: 'Своя кредитная карта мобильная версия',
9
+ description: 'Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах.',
10
+ align: 'text-left',
11
+ };
12
+
13
+ const Wrapper: FC = ({ children }) => (
14
+ <div className="container grid grid-cols-12 group" data-ver="primary">
15
+ {children}
16
+ </div>
17
+ );
18
+
19
+ export default {
20
+ default: (
21
+ <Wrapper>
22
+ <Headline className="col-span-12" {...HEADLINE} version="primary" />
23
+ </Wrapper>
24
+ ),
25
+ 'default left alignment': (
26
+ <Wrapper>
27
+ <Headline className="col-span-12" {...HEADLINE} version="primary" align="text-left" />
28
+ </Wrapper>
29
+ ),
30
+ 'default right alignment': (
31
+ <Wrapper>
32
+ <Headline className="col-span-12" {...HEADLINE} version="primary" align="text-right" />
33
+ </Wrapper>
34
+ ),
35
+ 'default difficult XXL': (
36
+ <Wrapper>
37
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="XXL" />
38
+ </Wrapper>
39
+ ),
40
+ 'default difficult XL': (
41
+ <Wrapper>
42
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="XL" />
43
+ </Wrapper>
44
+ ),
45
+ 'default difficult L': (
46
+ <Wrapper>
47
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="L" />
48
+ </Wrapper>
49
+ ),
50
+ 'default difficult M': (
51
+ <Wrapper>
52
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="M" />
53
+ </Wrapper>
54
+ ),
55
+ 'default difficult S': (
56
+ <Wrapper>
57
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="S" />
58
+ </Wrapper>
59
+ ),
60
+ 'default difficult XS': (
61
+ <Wrapper>
62
+ <Headline className="col-span-12" {...HEADLINE} version="primary" headlineVersion="XS" />
63
+ </Wrapper>
64
+ ),
65
+ 'primary left alignment': (
66
+ <Wrapper>
67
+ <Headline className="col-span-12" {...HEADLINE} version="primary" align="text-left" />
68
+ </Wrapper>
69
+ ),
70
+ 'primary center alignment': (
71
+ <Wrapper>
72
+ <Headline className="col-span-12" {...HEADLINE} version="primary" />
73
+ </Wrapper>
74
+ ),
75
+ 'primary right alignment': (
76
+ <Wrapper>
77
+ <Headline className="col-span-12" {...HEADLINE} version="primary" align="text-right" />
78
+ </Wrapper>
79
+ ),
80
+ 'secondary left alignment': (
81
+ <Wrapper>
82
+ <Headline className="col-span-12" version="secondary" {...HEADLINE} align="text-left" />
83
+ </Wrapper>
84
+ ),
85
+ 'secondary center alignment': (
86
+ <Wrapper>
87
+ <Headline className="col-span-12" version="secondary" {...HEADLINE} />
88
+ </Wrapper>
89
+ ),
90
+ 'secondary right alignment': (
91
+ <Wrapper>
92
+ <Headline className="col-span-12" version="secondary" {...HEADLINE} align="text-right" />
93
+ </Wrapper>
94
+ ),
95
+ };
@@ -1,12 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
2
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
3
  import { Heading } from '../../ui-kit/Heading/Heading';
5
4
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
6
- import type { TextSize } from '../../ui-kit/Text/TextProps';
7
5
  import { style } from '../../utils/style';
8
- import type { HeadlineContent } from './HeadlineContent';
9
6
  import { headlineVersionStyles } from './headlineVersionStyles';
7
+ import type { TextSize } from '../../ui-kit/Text/TextProps';
8
+ import type { UniBlockProps } from '../../model/JSXBlock';
9
+ import type { HeadlineContent } from './HeadlineContent';
10
10
 
11
11
  export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
12
12
 
@@ -25,10 +25,11 @@ export const Headline = JSX<HeadlineProps>(
25
25
  }) => {
26
26
  const versionStyle = headlineVersionStyles[headlineVersion];
27
27
  const paddingStyle = isPadding ? 'p-default' : '';
28
+ const descriptionStyle = { marginTop: versionStyle.descriptionStyle };
28
29
 
29
30
  return (
30
31
  <BlockWrapper
31
- className={style('flex flex-col', paddingStyle, versionStyle.wrapper, className)}
32
+ className={style(paddingStyle, className)}
32
33
  version={version}
33
34
  isTheme={isTheme}
34
35
  {...rest}
@@ -42,7 +43,11 @@ export const Headline = JSX<HeadlineProps>(
42
43
  />
43
44
  ) : null}
44
45
  {description ? (
45
- <Paragraph size={versionStyle.descriptionSize as TextSize} align={align}>
46
+ <Paragraph
47
+ size={versionStyle.descriptionSize as TextSize}
48
+ align={align}
49
+ {...descriptionStyle}
50
+ >
46
51
  {description}
47
52
  </Paragraph>
48
53
  ) : null}
@@ -5,40 +5,40 @@ import type { TextSize, TitleSize } from '../../ui-kit/Text/TextProps';
5
5
  export const headlineVersionStyles: Record<
6
6
  HeadlineVersion,
7
7
  {
8
- wrapper: string;
9
8
  title: HeadingCommonProps;
10
9
  descriptionSize: TextSize | TitleSize;
10
+ descriptionStyle: string;
11
11
  }
12
12
  > = {
13
13
  XXL: {
14
- wrapper: 'gap-[18px]',
15
14
  title: { headingType: 'h0', as: 'h1' },
16
15
  descriptionSize: 'text-h5',
16
+ descriptionStyle: 'mt-5',
17
17
  },
18
18
  XL: {
19
- wrapper: 'gap-4',
20
19
  title: { headingType: 'h1', as: 'h1' },
21
20
  descriptionSize: 'text-xl-light',
21
+ descriptionStyle: 'mt-4',
22
22
  },
23
23
  L: {
24
- wrapper: 'gap-4',
25
24
  title: { headingType: 'h2', as: 'h2' },
26
25
  descriptionSize: 'text-xl-light',
26
+ descriptionStyle: 'mt-4',
27
27
  },
28
28
  M: {
29
- wrapper: 'gap-3',
30
29
  title: { headingType: 'h3', as: 'h3' },
31
30
  descriptionSize: 'text-xl-light',
31
+ descriptionStyle: 'mt-3',
32
32
  },
33
33
  S: {
34
- wrapper: 'gap-2',
35
34
  title: { headingType: 'h4', as: 'h4' },
36
35
  descriptionSize: 'text-xl-light',
36
+ descriptionStyle: 'mt-2',
37
37
  },
38
38
  XS: {
39
- wrapper: 'gap-2',
40
39
  title: { headingType: 'h5', as: 'h5' },
41
40
  descriptionSize: 'text-l-light',
41
+ descriptionStyle: 'mt-2',
42
42
  },
43
43
  };
44
44