@redneckz/wildless-cms-uni-blocks 0.10.5 → 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 (1407) hide show
  1. package/bin/migration-scripts/0.9.9.js +8 -6
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +493 -661
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  6. package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  7. package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  8. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  9. package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  10. package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  11. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  12. package/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  13. package/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
  14. package/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
  15. package/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
  16. package/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
  17. package/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  18. package/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  19. package/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
  20. package/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
  21. package/bundle/components/ApplicationForm/models.d.ts +0 -6
  22. package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  23. package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  24. package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  25. package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  26. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  27. package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  28. package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
  29. package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  30. package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  31. package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  32. package/bundle/components/ApplicationForm/validators.d.ts +4 -0
  33. package/bundle/components/Calculator/Rate.d.ts +1 -0
  34. package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  35. package/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  36. package/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  37. package/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  38. package/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  39. package/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  40. package/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  41. package/bundle/components/Carousel/itemsGap.d.ts +1 -0
  42. package/bundle/components/Carousel/itemsGap.mobile.d.ts +1 -0
  43. package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  44. package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  45. package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  46. package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  47. package/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  48. package/bundle/components/Filtration/renderFormItem.d.ts +2 -2
  49. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  50. package/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
  51. package/bundle/hooks/useForm.d.ts +13 -12
  52. package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  53. package/bundle/ui-kit/Input/InputProps.d.ts +4 -2
  54. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  55. package/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  56. package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  57. package/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  58. package/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  59. package/bundle/ui-kit/Select/Select.d.ts +6 -7
  60. package/bundle/validation/and.d.ts +2 -0
  61. package/bundle/validation/objectValidator.d.ts +2 -0
  62. package/bundle/validation/pattern.d.ts +1 -0
  63. package/bundle/validation/required.d.ts +1 -0
  64. package/bundle/validation/validator.d.ts +10 -0
  65. package/bundle/validation/withValidator.d.ts +10 -0
  66. package/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  67. package/dist/{ui-kit/InputListRange/InputListRangeProps.js → components/ApplicationForm/AcquiringFormState.js} +1 -1
  68. package/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
  69. package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
  70. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  71. package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  72. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
  73. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  74. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  75. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
  76. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  77. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  78. package/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
  79. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  80. package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  81. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
  82. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  83. package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  84. package/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
  85. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  86. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  87. package/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  88. package/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
  89. package/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
  90. package/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
  91. package/{mobile/dist/ui-kit/InputListRange/InputListRangeProps.js → dist/components/ApplicationForm/CreditFormState.js} +1 -1
  92. package/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
  93. package/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
  94. package/dist/components/ApplicationForm/CreditParameters.js +5 -5
  95. package/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
  96. package/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
  97. package/dist/components/ApplicationForm/DepositFormState.js +2 -0
  98. package/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
  99. package/dist/components/ApplicationForm/InputControl.d.ts +4 -5
  100. package/dist/components/ApplicationForm/InputControl.js +1 -3
  101. package/dist/components/ApplicationForm/InputControl.js.map +1 -1
  102. package/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  103. package/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
  104. package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
  105. package/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  106. package/dist/components/ApplicationForm/ResponseNotification.js +4 -4
  107. package/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
  108. package/dist/components/ApplicationForm/SelectControl.js +1 -7
  109. package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
  110. package/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
  111. package/dist/components/ApplicationForm/WedFormState.js +2 -0
  112. package/dist/components/ApplicationForm/WedFormState.js.map +1 -0
  113. package/dist/components/ApplicationForm/models.d.ts +0 -6
  114. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  115. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
  116. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  117. package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  118. package/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
  119. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  120. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  121. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
  122. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  123. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  124. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
  125. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  126. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  127. package/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
  128. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  129. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  130. package/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
  131. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  132. package/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
  133. package/dist/components/ApplicationForm/renderRegion.js +3 -2
  134. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  135. package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  136. package/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
  137. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  138. package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  139. package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
  140. package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
  141. package/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
  142. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  143. package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  144. package/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
  145. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  146. package/dist/components/ApplicationForm/validators.d.ts +4 -0
  147. package/dist/components/ApplicationForm/validators.js +11 -0
  148. package/dist/components/ApplicationForm/validators.js.map +1 -0
  149. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  150. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  151. package/dist/components/Blocks.mobile.js +9 -1
  152. package/dist/components/Blocks.mobile.js.map +1 -1
  153. package/dist/components/Bonus/Bonus.js +1 -1
  154. package/dist/components/Bonus/Bonus.js.map +1 -1
  155. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  156. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  157. package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  158. package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  159. package/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  160. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  161. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  162. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  163. package/dist/components/Calculator/Calculator.js +4 -4
  164. package/dist/components/Calculator/Calculator.js.map +1 -1
  165. package/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  166. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  167. package/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  168. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  169. package/dist/components/Calculator/Rate.d.ts +1 -0
  170. package/dist/components/Calculator/Rate.js +1 -1
  171. package/dist/components/Calculator/Rate.js.map +1 -1
  172. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  173. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  174. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  175. package/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  176. package/dist/components/Calculator/renderDaysInput.js +2 -9
  177. package/dist/components/Calculator/renderDaysInput.js.map +1 -1
  178. package/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  179. package/dist/components/Calculator/renderInterestPayment.js +8 -18
  180. package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  181. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  182. package/dist/components/Calculator/renderMonthsInput.js +2 -10
  183. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  184. package/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  185. package/dist/components/Calculator/renderPaymentType.js +9 -19
  186. package/dist/components/Calculator/renderPaymentType.js.map +1 -1
  187. package/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  188. package/dist/components/Calculator/renderRegistrationType.js +8 -18
  189. package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  190. package/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  191. package/dist/components/Calculator/renderWantedSumInput.js +4 -6
  192. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  193. package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  194. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  195. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  196. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  197. package/dist/components/Carousel/Carousel.js +4 -4
  198. package/dist/components/Carousel/Carousel.js.map +1 -1
  199. package/dist/components/Carousel/CarouselScrollButtons.js +1 -1
  200. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  201. package/dist/components/Carousel/itemsGap.d.ts +1 -0
  202. package/dist/components/Carousel/itemsGap.js +4 -0
  203. package/dist/components/Carousel/itemsGap.js.map +1 -0
  204. package/dist/components/Carousel/itemsGap.mobile.d.ts +1 -0
  205. package/dist/components/Carousel/itemsGap.mobile.js +4 -0
  206. package/dist/components/Carousel/itemsGap.mobile.js.map +1 -0
  207. package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  208. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  209. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
  210. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  211. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  212. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  213. package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  214. package/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  215. package/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  216. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  217. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +4 -0
  218. package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  219. package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  220. package/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  221. package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  222. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  223. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +5 -0
  224. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  225. package/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  226. package/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  227. package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  228. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  229. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  230. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  231. package/dist/components/Filtration/Filtration.js +3 -2
  232. package/dist/components/Filtration/Filtration.js.map +1 -1
  233. package/dist/components/Filtration/renderFormItem.d.ts +2 -2
  234. package/dist/components/Filtration/renderFormItem.js +4 -4
  235. package/dist/components/Filtration/renderFormItem.js.map +1 -1
  236. package/dist/components/GracePeriod/GracePeriod.js +1 -1
  237. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  238. package/dist/components/Headline/Headline.js +3 -2
  239. package/dist/components/Headline/Headline.js.map +1 -1
  240. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  241. package/dist/components/Headline/headlineVersionStyles.js +6 -6
  242. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  243. package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  244. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  245. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  246. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  247. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  248. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  249. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  250. package/dist/components/ProductBlock/ProductBlock.js +2 -2
  251. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  252. package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  253. package/dist/components/SafeDepositRental/useGetRegions.js +2 -1
  254. package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
  255. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  256. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  257. package/dist/components/TextBlock/TextBlock.js +8 -4
  258. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  259. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
  260. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  261. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  262. package/dist/hooks/useForm.d.ts +13 -12
  263. package/dist/hooks/useForm.js +32 -9
  264. package/dist/hooks/useForm.js.map +1 -1
  265. package/dist/ui-kit/Checkbox/Checkbox.js +12 -4
  266. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  267. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  268. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
  269. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  270. package/dist/ui-kit/Input/Input.js +4 -11
  271. package/dist/ui-kit/Input/Input.js.map +1 -1
  272. package/dist/ui-kit/Input/InputProps.d.ts +4 -2
  273. package/dist/ui-kit/InputRange/InputRange.js +22 -16
  274. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  275. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  276. package/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  277. package/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  278. package/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  279. package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  280. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  281. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  282. package/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  283. package/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
  284. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
  285. package/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  286. package/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
  287. package/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
  288. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  289. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  290. package/dist/ui-kit/Select/Select.d.ts +6 -7
  291. package/dist/ui-kit/Select/Select.js +16 -25
  292. package/dist/ui-kit/Select/Select.js.map +1 -1
  293. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
  294. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  295. package/dist/utils/getSanitizedValue.js +1 -1
  296. package/dist/utils/getSanitizedValue.js.map +1 -1
  297. package/dist/validation/and.d.ts +2 -0
  298. package/dist/validation/and.js +5 -0
  299. package/dist/validation/and.js.map +1 -0
  300. package/dist/validation/objectValidator.d.ts +2 -0
  301. package/dist/validation/objectValidator.js +7 -0
  302. package/dist/validation/objectValidator.js.map +1 -0
  303. package/dist/validation/pattern.d.ts +1 -0
  304. package/dist/validation/pattern.js +6 -0
  305. package/dist/validation/pattern.js.map +1 -0
  306. package/dist/validation/required.d.ts +1 -0
  307. package/dist/validation/required.js +5 -0
  308. package/dist/validation/required.js.map +1 -0
  309. package/dist/validation/validator.d.ts +10 -0
  310. package/dist/validation/validator.js +9 -0
  311. package/dist/validation/validator.js.map +1 -0
  312. package/dist/validation/withValidator.d.ts +10 -0
  313. package/dist/validation/withValidator.js +13 -0
  314. package/dist/validation/withValidator.js.map +1 -0
  315. package/dist/wlc.json +1 -2
  316. package/lib/common.css +1 -1
  317. package/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  318. package/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
  319. package/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
  320. package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
  321. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  322. package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  323. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
  324. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  325. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  326. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
  327. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  328. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  329. package/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
  330. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  331. package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  332. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
  333. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  334. package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  335. package/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
  336. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  337. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  338. package/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  339. package/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
  340. package/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
  341. package/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
  342. package/lib/components/ApplicationForm/CreditFormState.js +2 -0
  343. package/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
  344. package/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
  345. package/lib/components/ApplicationForm/CreditParameters.js +5 -5
  346. package/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
  347. package/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
  348. package/lib/components/ApplicationForm/DepositFormState.js +2 -0
  349. package/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
  350. package/lib/components/ApplicationForm/InputControl.d.ts +4 -5
  351. package/lib/components/ApplicationForm/InputControl.js +1 -3
  352. package/lib/components/ApplicationForm/InputControl.js.map +1 -1
  353. package/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  354. package/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
  355. package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
  356. package/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  357. package/lib/components/ApplicationForm/ResponseNotification.js +4 -4
  358. package/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
  359. package/lib/components/ApplicationForm/SelectControl.js +1 -7
  360. package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
  361. package/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
  362. package/lib/components/ApplicationForm/WedFormState.js +2 -0
  363. package/lib/components/ApplicationForm/WedFormState.js.map +1 -0
  364. package/lib/components/ApplicationForm/models.d.ts +0 -6
  365. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  366. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
  367. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  368. package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  369. package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
  370. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  371. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  372. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
  373. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  374. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  375. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
  376. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  377. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  378. package/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
  379. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  380. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  381. package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
  382. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  383. package/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
  384. package/lib/components/ApplicationForm/renderRegion.js +3 -2
  385. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  386. package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  387. package/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
  388. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  389. package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  390. package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
  391. package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
  392. package/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
  393. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  394. package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  395. package/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
  396. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  397. package/lib/components/ApplicationForm/validators.d.ts +4 -0
  398. package/lib/components/ApplicationForm/validators.js +9 -0
  399. package/lib/components/ApplicationForm/validators.js.map +1 -0
  400. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  401. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  402. package/lib/components/Blocks.mobile.js +9 -1
  403. package/lib/components/Blocks.mobile.js.map +1 -1
  404. package/lib/components/Bonus/Bonus.js +1 -1
  405. package/lib/components/Bonus/Bonus.js.map +1 -1
  406. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  407. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  408. package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  409. package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  410. package/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  411. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  412. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  413. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  414. package/lib/components/Calculator/Calculator.js +4 -4
  415. package/lib/components/Calculator/Calculator.js.map +1 -1
  416. package/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  417. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  418. package/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  419. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  420. package/lib/components/Calculator/Rate.d.ts +1 -0
  421. package/lib/components/Calculator/Rate.js +1 -1
  422. package/lib/components/Calculator/Rate.js.map +1 -1
  423. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  424. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  425. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  426. package/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  427. package/lib/components/Calculator/renderDaysInput.js +2 -9
  428. package/lib/components/Calculator/renderDaysInput.js.map +1 -1
  429. package/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  430. package/lib/components/Calculator/renderInterestPayment.js +8 -18
  431. package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  432. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  433. package/lib/components/Calculator/renderMonthsInput.js +2 -10
  434. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  435. package/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  436. package/lib/components/Calculator/renderPaymentType.js +8 -18
  437. package/lib/components/Calculator/renderPaymentType.js.map +1 -1
  438. package/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  439. package/lib/components/Calculator/renderRegistrationType.js +8 -18
  440. package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  441. package/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  442. package/lib/components/Calculator/renderWantedSumInput.js +4 -6
  443. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  444. package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  445. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  446. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  447. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  448. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +11 -0
  449. package/lib/components/Carousel/Carousel.js +3 -3
  450. package/lib/components/Carousel/Carousel.js.map +1 -1
  451. package/lib/components/Carousel/CarouselScrollButtons.js +1 -1
  452. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  453. package/lib/components/Carousel/itemsGap.d.ts +1 -0
  454. package/lib/components/Carousel/itemsGap.js +2 -0
  455. package/lib/components/Carousel/itemsGap.js.map +1 -0
  456. package/lib/components/Carousel/itemsGap.mobile.d.ts +1 -0
  457. package/lib/components/Carousel/itemsGap.mobile.js +2 -0
  458. package/lib/components/Carousel/itemsGap.mobile.js.map +1 -0
  459. package/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
  460. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  461. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
  462. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  463. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +9 -0
  464. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  465. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  466. package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  467. package/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  468. package/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  469. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
  470. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +2 -0
  471. package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
  472. package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  473. package/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  474. package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  475. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
  476. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +2 -0
  477. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
  478. package/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  479. package/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  480. package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  481. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  482. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  483. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  484. package/lib/components/Filtration/Filtration.js +3 -2
  485. package/lib/components/Filtration/Filtration.js.map +1 -1
  486. package/lib/components/Filtration/renderFormItem.d.ts +2 -2
  487. package/lib/components/Filtration/renderFormItem.js +4 -4
  488. package/lib/components/Filtration/renderFormItem.js.map +1 -1
  489. package/lib/components/GracePeriod/GracePeriod.js +1 -1
  490. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  491. package/lib/components/Headline/Headline.fixture.mobile.d.ts +22 -0
  492. package/lib/components/Headline/Headline.js +3 -2
  493. package/lib/components/Headline/Headline.js.map +1 -1
  494. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  495. package/lib/components/Headline/headlineVersionStyles.js +6 -6
  496. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  497. package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  498. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  499. package/lib/components/ImgBlock/ImgBlock.fixture.mobile.d.ts +6 -0
  500. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  501. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  502. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  503. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  504. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  505. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  506. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  507. package/lib/components/ProductTile/renderBenefit.d.ts +0 -1
  508. package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +9 -0
  509. package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  510. package/lib/components/SafeDepositRental/useGetRegions.js +2 -1
  511. package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
  512. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  513. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  514. package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
  515. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +6 -2
  516. package/lib/components/TextBlock/TextBlock.js +8 -4
  517. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  518. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
  519. package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +8 -0
  520. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  521. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  522. package/lib/hooks/useForm.d.ts +13 -12
  523. package/lib/hooks/useForm.js +32 -9
  524. package/lib/hooks/useForm.js.map +1 -1
  525. package/lib/ui-kit/Checkbox/Checkbox.js +12 -4
  526. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  527. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  528. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
  529. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  530. package/lib/ui-kit/Input/Input.js +4 -11
  531. package/lib/ui-kit/Input/Input.js.map +1 -1
  532. package/lib/ui-kit/Input/InputProps.d.ts +4 -2
  533. package/lib/ui-kit/InputRange/InputRange.js +22 -16
  534. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  535. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  536. package/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  537. package/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  538. package/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  539. package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  540. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  541. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  542. package/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  543. package/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
  544. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
  545. package/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  546. package/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
  547. package/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
  548. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  549. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  550. package/lib/ui-kit/Select/Select.d.ts +6 -7
  551. package/lib/ui-kit/Select/Select.js +17 -26
  552. package/lib/ui-kit/Select/Select.js.map +1 -1
  553. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
  554. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  555. package/lib/utils/getSanitizedValue.js +1 -1
  556. package/lib/utils/getSanitizedValue.js.map +1 -1
  557. package/lib/validation/and.d.ts +2 -0
  558. package/lib/validation/and.js +2 -0
  559. package/lib/validation/and.js.map +1 -0
  560. package/lib/validation/objectValidator.d.ts +2 -0
  561. package/lib/validation/objectValidator.js +4 -0
  562. package/lib/validation/objectValidator.js.map +1 -0
  563. package/lib/validation/pattern.d.ts +1 -0
  564. package/lib/validation/pattern.js +3 -0
  565. package/lib/validation/pattern.js.map +1 -0
  566. package/lib/validation/required.d.ts +1 -0
  567. package/lib/validation/required.js +3 -0
  568. package/lib/validation/required.js.map +1 -0
  569. package/lib/validation/validator.d.ts +10 -0
  570. package/lib/validation/validator.js +4 -0
  571. package/lib/validation/validator.js.map +1 -0
  572. package/lib/validation/withValidator.d.ts +10 -0
  573. package/lib/validation/withValidator.js +10 -0
  574. package/lib/validation/withValidator.js.map +1 -0
  575. package/lib/wlc.json +1 -2
  576. package/mobile/bundle/bundle.umd.js +388 -277
  577. package/mobile/bundle/bundle.umd.min.js +1 -1
  578. package/mobile/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  579. package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  580. package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  581. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  582. package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  583. package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  584. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  585. package/mobile/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  586. package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
  587. package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
  588. package/mobile/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
  589. package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
  590. package/mobile/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  591. package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  592. package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
  593. package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
  594. package/mobile/bundle/components/ApplicationForm/models.d.ts +0 -6
  595. package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  596. package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  597. package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  598. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  599. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  600. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  601. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
  602. package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  603. package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  604. package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  605. package/mobile/bundle/components/ApplicationForm/validators.d.ts +4 -0
  606. package/mobile/bundle/components/Calculator/Rate.d.ts +1 -0
  607. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  608. package/mobile/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
  609. package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
  610. package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
  611. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
  612. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
  613. package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
  614. package/mobile/bundle/components/Carousel/itemsGap.d.ts +1 -0
  615. package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  616. package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  617. package/mobile/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  618. package/mobile/bundle/components/Filtration/renderFormItem.d.ts +2 -2
  619. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
  620. package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
  621. package/mobile/bundle/hooks/useForm.d.ts +13 -12
  622. package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  623. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -2
  624. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  625. package/mobile/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  626. package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  627. package/mobile/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  628. package/mobile/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  629. package/mobile/bundle/ui-kit/Select/Select.d.ts +6 -7
  630. package/mobile/bundle/validation/and.d.ts +2 -0
  631. package/mobile/bundle/validation/objectValidator.d.ts +2 -0
  632. package/mobile/bundle/validation/pattern.d.ts +1 -0
  633. package/mobile/bundle/validation/required.d.ts +1 -0
  634. package/mobile/bundle/validation/validator.d.ts +10 -0
  635. package/mobile/bundle/validation/withValidator.d.ts +10 -0
  636. package/mobile/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  637. package/mobile/dist/components/ApplicationForm/AcquiringFormState.js +2 -0
  638. package/mobile/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
  639. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
  640. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  641. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  642. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
  643. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  644. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  645. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
  646. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  647. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  648. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
  649. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  650. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  651. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
  652. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  653. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  654. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
  655. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  656. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  657. package/mobile/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  658. package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
  659. package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
  660. package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
  661. package/mobile/dist/components/ApplicationForm/CreditFormState.js +2 -0
  662. package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
  663. package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
  664. package/mobile/dist/components/ApplicationForm/CreditParameters.js +5 -5
  665. package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
  666. package/mobile/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
  667. package/mobile/dist/components/ApplicationForm/DepositFormState.js +2 -0
  668. package/mobile/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
  669. package/mobile/dist/components/ApplicationForm/InputControl.d.ts +4 -5
  670. package/mobile/dist/components/ApplicationForm/InputControl.js +1 -3
  671. package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
  672. package/mobile/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  673. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
  674. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
  675. package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  676. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +4 -4
  677. package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
  678. package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -7
  679. package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
  680. package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
  681. package/mobile/dist/components/ApplicationForm/WedFormState.js +2 -0
  682. package/mobile/dist/components/ApplicationForm/WedFormState.js.map +1 -0
  683. package/mobile/dist/components/ApplicationForm/models.d.ts +0 -6
  684. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  685. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
  686. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  687. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  688. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
  689. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  690. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  691. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
  692. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  693. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  694. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
  695. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  696. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  697. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
  698. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  699. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  700. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
  701. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  702. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
  703. package/mobile/dist/components/ApplicationForm/renderRegion.js +3 -2
  704. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  705. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  706. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
  707. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  708. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  709. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
  710. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
  711. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
  712. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  713. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  714. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
  715. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  716. package/mobile/dist/components/ApplicationForm/validators.d.ts +4 -0
  717. package/mobile/dist/components/ApplicationForm/validators.js +11 -0
  718. package/mobile/dist/components/ApplicationForm/validators.js.map +1 -0
  719. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  720. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  721. package/mobile/dist/components/Blocks.js +9 -1
  722. package/mobile/dist/components/Blocks.js.map +1 -1
  723. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  724. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  725. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  726. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  727. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  728. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  729. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +16 -18
  730. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  731. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  732. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  733. package/mobile/dist/components/Calculator/Calculator.js +4 -4
  734. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  735. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +27 -43
  736. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  737. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +30 -33
  738. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  739. package/mobile/dist/components/Calculator/Rate.d.ts +1 -0
  740. package/mobile/dist/components/Calculator/Rate.js +1 -1
  741. package/mobile/dist/components/Calculator/Rate.js.map +1 -1
  742. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  743. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
  744. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  745. package/mobile/dist/components/Calculator/renderDaysInput.d.ts +2 -7
  746. package/mobile/dist/components/Calculator/renderDaysInput.js +2 -9
  747. package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
  748. package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
  749. package/mobile/dist/components/Calculator/renderInterestPayment.js +8 -18
  750. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  751. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
  752. package/mobile/dist/components/Calculator/renderMonthsInput.js +2 -10
  753. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  754. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +2 -11
  755. package/mobile/dist/components/Calculator/renderPaymentType.js +9 -19
  756. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
  757. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
  758. package/mobile/dist/components/Calculator/renderRegistrationType.js +8 -18
  759. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  760. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
  761. package/mobile/dist/components/Calculator/renderWantedSumInput.js +4 -6
  762. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  763. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  764. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  765. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  766. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  767. package/mobile/dist/components/Carousel/Carousel.js +4 -4
  768. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  769. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +1 -1
  770. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  771. package/mobile/dist/components/Carousel/itemsGap.d.ts +1 -0
  772. package/mobile/dist/components/Carousel/itemsGap.js +4 -0
  773. package/mobile/dist/components/Carousel/itemsGap.js.map +1 -0
  774. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  775. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  776. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
  777. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  778. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  779. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  780. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  781. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
  782. package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  783. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  784. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
  785. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  786. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  787. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
  788. package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  789. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  790. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  791. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  792. package/mobile/dist/components/Filtration/Filtration.js +3 -2
  793. package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
  794. package/mobile/dist/components/Filtration/renderFormItem.d.ts +2 -2
  795. package/mobile/dist/components/Filtration/renderFormItem.js +4 -4
  796. package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
  797. package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
  798. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  799. package/mobile/dist/components/Headline/Headline.js +3 -2
  800. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  801. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
  802. package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
  803. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  804. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  805. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  806. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  807. package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  808. package/mobile/dist/components/SafeDepositRental/useGetRegions.js +2 -1
  809. package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
  810. package/mobile/dist/components/TextBlock/TextBlock.js +14 -9
  811. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  812. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
  813. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  814. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  815. package/mobile/dist/hooks/useForm.d.ts +13 -12
  816. package/mobile/dist/hooks/useForm.js +32 -9
  817. package/mobile/dist/hooks/useForm.js.map +1 -1
  818. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +12 -4
  819. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  820. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  821. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
  822. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  823. package/mobile/dist/ui-kit/Input/Input.js +4 -11
  824. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  825. package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -2
  826. package/mobile/dist/ui-kit/InputRange/InputRange.js +22 -16
  827. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  828. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  829. package/mobile/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  830. package/mobile/dist/ui-kit/InputRange/parseDecimal.js +9 -0
  831. package/mobile/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
  832. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  833. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
  834. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  835. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  836. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
  837. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
  838. package/mobile/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  839. package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
  840. package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
  841. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  842. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  843. package/mobile/dist/ui-kit/Select/Select.d.ts +6 -7
  844. package/mobile/dist/ui-kit/Select/Select.js +16 -25
  845. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  846. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
  847. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  848. package/mobile/dist/utils/getSanitizedValue.js +1 -1
  849. package/mobile/dist/utils/getSanitizedValue.js.map +1 -1
  850. package/mobile/dist/validation/and.d.ts +2 -0
  851. package/mobile/dist/validation/and.js +5 -0
  852. package/mobile/dist/validation/and.js.map +1 -0
  853. package/mobile/dist/validation/objectValidator.d.ts +2 -0
  854. package/mobile/dist/validation/objectValidator.js +7 -0
  855. package/mobile/dist/validation/objectValidator.js.map +1 -0
  856. package/mobile/dist/validation/pattern.d.ts +1 -0
  857. package/mobile/dist/validation/pattern.js +6 -0
  858. package/mobile/dist/validation/pattern.js.map +1 -0
  859. package/mobile/dist/validation/required.d.ts +1 -0
  860. package/mobile/dist/validation/required.js +5 -0
  861. package/mobile/dist/validation/required.js.map +1 -0
  862. package/mobile/dist/validation/validator.d.ts +10 -0
  863. package/mobile/dist/validation/validator.js +9 -0
  864. package/mobile/dist/validation/validator.js.map +1 -0
  865. package/mobile/dist/validation/withValidator.d.ts +10 -0
  866. package/mobile/dist/validation/withValidator.js +13 -0
  867. package/mobile/dist/validation/withValidator.js.map +1 -0
  868. package/mobile/dist/wlc.json +1 -2
  869. package/mobile/lib/common.css +1 -0
  870. package/mobile/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
  871. package/mobile/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
  872. package/mobile/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
  873. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
  874. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  875. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
  876. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
  877. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  878. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
  879. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
  880. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  881. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
  882. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
  883. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  884. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
  885. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
  886. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  887. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
  888. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
  889. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  890. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  891. package/mobile/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
  892. package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
  893. package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
  894. package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
  895. package/mobile/lib/components/ApplicationForm/CreditFormState.js +2 -0
  896. package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
  897. package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
  898. package/mobile/lib/components/ApplicationForm/CreditParameters.js +5 -5
  899. package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
  900. package/mobile/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
  901. package/mobile/lib/components/ApplicationForm/DepositFormState.js +2 -0
  902. package/mobile/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
  903. package/mobile/lib/components/ApplicationForm/InputControl.d.ts +4 -5
  904. package/mobile/lib/components/ApplicationForm/InputControl.js +1 -3
  905. package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
  906. package/mobile/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
  907. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
  908. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
  909. package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
  910. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +4 -4
  911. package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
  912. package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -7
  913. package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
  914. package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
  915. package/mobile/lib/components/ApplicationForm/WedFormState.js +2 -0
  916. package/mobile/lib/components/ApplicationForm/WedFormState.js.map +1 -0
  917. package/mobile/lib/components/ApplicationForm/models.d.ts +0 -6
  918. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
  919. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
  920. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  921. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
  922. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
  923. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  924. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
  925. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
  926. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  927. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
  928. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
  929. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  930. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
  931. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
  932. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  933. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
  934. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
  935. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  936. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
  937. package/mobile/lib/components/ApplicationForm/renderRegion.js +3 -2
  938. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  939. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
  940. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
  941. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  942. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
  943. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
  944. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
  945. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
  946. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  947. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
  948. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
  949. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  950. package/mobile/lib/components/ApplicationForm/validators.d.ts +4 -0
  951. package/mobile/lib/components/ApplicationForm/validators.js +9 -0
  952. package/mobile/lib/components/ApplicationForm/validators.js.map +1 -0
  953. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  954. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  955. package/mobile/lib/components/Blocks.js +9 -1
  956. package/mobile/lib/components/Blocks.js.map +1 -1
  957. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  958. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  959. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  960. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  961. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  962. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  963. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +16 -18
  964. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  965. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
  966. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  967. package/mobile/lib/components/Calculator/Calculator.js +4 -4
  968. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  969. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +27 -43
  970. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  971. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +31 -34
  972. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  973. package/mobile/lib/components/Calculator/Rate.d.ts +1 -0
  974. package/mobile/lib/components/Calculator/Rate.js +1 -1
  975. package/mobile/lib/components/Calculator/Rate.js.map +1 -1
  976. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
  977. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
  978. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  979. package/mobile/lib/components/Calculator/renderDaysInput.d.ts +2 -7
  980. package/mobile/lib/components/Calculator/renderDaysInput.js +2 -9
  981. package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
  982. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
  983. package/mobile/lib/components/Calculator/renderInterestPayment.js +8 -18
  984. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  985. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
  986. package/mobile/lib/components/Calculator/renderMonthsInput.js +2 -10
  987. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  988. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +2 -11
  989. package/mobile/lib/components/Calculator/renderPaymentType.js +8 -18
  990. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
  991. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
  992. package/mobile/lib/components/Calculator/renderRegistrationType.js +8 -18
  993. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  994. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
  995. package/mobile/lib/components/Calculator/renderWantedSumInput.js +4 -6
  996. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  997. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  998. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  999. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  1000. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  1001. package/mobile/lib/components/Carousel/Carousel.js +3 -3
  1002. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  1003. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +1 -1
  1004. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  1005. package/mobile/lib/components/Carousel/itemsGap.d.ts +1 -0
  1006. package/mobile/lib/components/Carousel/itemsGap.js +2 -0
  1007. package/mobile/lib/components/Carousel/itemsGap.js.map +1 -0
  1008. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
  1009. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  1010. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
  1011. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  1012. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  1013. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  1014. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
  1015. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
  1016. package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
  1017. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
  1018. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
  1019. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
  1020. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
  1021. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
  1022. package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
  1023. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  1024. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  1025. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  1026. package/mobile/lib/components/Filtration/Filtration.js +3 -2
  1027. package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
  1028. package/mobile/lib/components/Filtration/renderFormItem.d.ts +2 -2
  1029. package/mobile/lib/components/Filtration/renderFormItem.js +4 -4
  1030. package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
  1031. package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
  1032. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  1033. package/mobile/lib/components/Headline/Headline.js +3 -2
  1034. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  1035. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
  1036. package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
  1037. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  1038. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  1039. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  1040. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  1041. package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  1042. package/mobile/lib/components/SafeDepositRental/useGetRegions.js +2 -1
  1043. package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
  1044. package/mobile/lib/components/TextBlock/TextBlock.js +14 -9
  1045. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  1046. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
  1047. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  1048. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  1049. package/mobile/lib/hooks/useForm.d.ts +13 -12
  1050. package/mobile/lib/hooks/useForm.js +32 -9
  1051. package/mobile/lib/hooks/useForm.js.map +1 -1
  1052. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +12 -4
  1053. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  1054. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
  1055. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
  1056. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  1057. package/mobile/lib/ui-kit/Input/Input.js +4 -11
  1058. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  1059. package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -2
  1060. package/mobile/lib/ui-kit/InputRange/InputRange.js +22 -16
  1061. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  1062. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
  1063. package/mobile/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
  1064. package/mobile/lib/ui-kit/InputRange/parseDecimal.js +6 -0
  1065. package/mobile/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
  1066. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
  1067. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
  1068. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
  1069. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
  1070. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
  1071. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
  1072. package/mobile/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
  1073. package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
  1074. package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
  1075. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  1076. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  1077. package/mobile/lib/ui-kit/Select/Select.d.ts +6 -7
  1078. package/mobile/lib/ui-kit/Select/Select.js +17 -26
  1079. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  1080. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
  1081. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  1082. package/mobile/lib/utils/getSanitizedValue.js +1 -1
  1083. package/mobile/lib/utils/getSanitizedValue.js.map +1 -1
  1084. package/mobile/lib/validation/and.d.ts +2 -0
  1085. package/mobile/lib/validation/and.js +2 -0
  1086. package/mobile/lib/validation/and.js.map +1 -0
  1087. package/mobile/lib/validation/objectValidator.d.ts +2 -0
  1088. package/mobile/lib/validation/objectValidator.js +4 -0
  1089. package/mobile/lib/validation/objectValidator.js.map +1 -0
  1090. package/mobile/lib/validation/pattern.d.ts +1 -0
  1091. package/mobile/lib/validation/pattern.js +3 -0
  1092. package/mobile/lib/validation/pattern.js.map +1 -0
  1093. package/mobile/lib/validation/required.d.ts +1 -0
  1094. package/mobile/lib/validation/required.js +3 -0
  1095. package/mobile/lib/validation/required.js.map +1 -0
  1096. package/mobile/lib/validation/validator.d.ts +10 -0
  1097. package/mobile/lib/validation/validator.js +4 -0
  1098. package/mobile/lib/validation/validator.js.map +1 -0
  1099. package/mobile/lib/validation/withValidator.d.ts +10 -0
  1100. package/mobile/lib/validation/withValidator.js +10 -0
  1101. package/mobile/lib/validation/withValidator.js.map +1 -0
  1102. package/mobile/lib/wlc.json +1 -2
  1103. package/mobile/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
  1104. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
  1105. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
  1106. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
  1107. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
  1108. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
  1109. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
  1110. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  1111. package/mobile/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
  1112. package/mobile/src/components/ApplicationForm/CreditFormState.ts +14 -0
  1113. package/mobile/src/components/ApplicationForm/CreditParameters.ts +5 -5
  1114. package/mobile/src/components/ApplicationForm/DepositFormState.ts +4 -0
  1115. package/mobile/src/components/ApplicationForm/InputControl.tsx +21 -21
  1116. package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
  1117. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
  1118. package/mobile/src/components/ApplicationForm/SelectControl.tsx +14 -48
  1119. package/mobile/src/components/ApplicationForm/WedFormState.ts +10 -0
  1120. package/mobile/src/components/ApplicationForm/models.ts +0 -8
  1121. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
  1122. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
  1123. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
  1124. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
  1125. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
  1126. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
  1127. package/mobile/src/components/ApplicationForm/renderRegion.tsx +10 -22
  1128. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
  1129. package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
  1130. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
  1131. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
  1132. package/mobile/src/components/ApplicationForm/validators.ts +17 -0
  1133. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1134. package/mobile/src/components/Blocks.ts +9 -1
  1135. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  1136. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  1137. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  1138. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  1139. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  1140. package/mobile/src/components/Calculator/Calculator.tsx +11 -5
  1141. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  1142. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  1143. package/mobile/src/components/Calculator/Rate.tsx +14 -14
  1144. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  1145. package/mobile/src/components/Calculator/renderDaysInput.tsx +10 -31
  1146. package/mobile/src/components/Calculator/renderInterestPayment.tsx +13 -52
  1147. package/mobile/src/components/Calculator/renderMonthsInput.tsx +17 -39
  1148. package/mobile/src/components/Calculator/renderPaymentType.tsx +13 -49
  1149. package/mobile/src/components/Calculator/renderRegistrationType.tsx +13 -51
  1150. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  1151. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  1152. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1153. package/mobile/src/components/Carousel/Carousel.tsx +3 -4
  1154. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
  1155. package/mobile/src/components/Carousel/itemsGap.ts +1 -0
  1156. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
  1157. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
  1158. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
  1159. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  1160. package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  1161. package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  1162. package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  1163. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  1164. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +3 -3
  1165. package/mobile/src/components/Filtration/Filtration.tsx +6 -4
  1166. package/mobile/src/components/Filtration/renderFormItem.tsx +5 -5
  1167. package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1168. package/mobile/src/components/Headline/Headline.tsx +11 -6
  1169. package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
  1170. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
  1171. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  1172. package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
  1173. package/mobile/src/components/SafeDepositRental/useGetRegions.ts +3 -1
  1174. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
  1175. package/mobile/src/components/TextBlock/TextBlock.tsx +56 -22
  1176. package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -3
  1177. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  1178. package/mobile/src/hooks/useForm.ts +68 -17
  1179. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +43 -25
  1180. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
  1181. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
  1182. package/mobile/src/ui-kit/Input/Input.tsx +11 -19
  1183. package/mobile/src/ui-kit/Input/InputProps.ts +4 -2
  1184. package/mobile/src/ui-kit/InputRange/InputRange.tsx +56 -43
  1185. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  1186. package/mobile/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  1187. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  1188. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
  1189. package/mobile/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
  1190. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
  1191. package/mobile/src/ui-kit/Select/Select.tsx +48 -55
  1192. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
  1193. package/mobile/src/utils/getSanitizedValue.ts +1 -1
  1194. package/mobile/src/validation/and.ts +6 -0
  1195. package/mobile/src/validation/objectValidator.ts +10 -0
  1196. package/mobile/src/validation/pattern.ts +4 -0
  1197. package/mobile/src/validation/required.ts +3 -0
  1198. package/mobile/src/validation/validator.ts +21 -0
  1199. package/mobile/src/validation/withValidator.ts +21 -0
  1200. package/mobile/src/wlc.json +1 -2
  1201. package/package.json +2 -2
  1202. package/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
  1203. package/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
  1204. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
  1205. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
  1206. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
  1207. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
  1208. package/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
  1209. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  1210. package/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
  1211. package/src/components/ApplicationForm/CreditFormState.ts +14 -0
  1212. package/src/components/ApplicationForm/CreditParameters.ts +5 -5
  1213. package/src/components/ApplicationForm/DepositFormState.ts +4 -0
  1214. package/src/components/ApplicationForm/InputControl.tsx +21 -21
  1215. package/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
  1216. package/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
  1217. package/src/components/ApplicationForm/SelectControl.tsx +14 -48
  1218. package/src/components/ApplicationForm/WedFormState.ts +10 -0
  1219. package/src/components/ApplicationForm/models.ts +0 -8
  1220. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
  1221. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
  1222. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
  1223. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
  1224. package/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
  1225. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
  1226. package/src/components/ApplicationForm/renderRegion.tsx +10 -22
  1227. package/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
  1228. package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
  1229. package/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
  1230. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
  1231. package/src/components/ApplicationForm/validators.ts +17 -0
  1232. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1233. package/src/components/Blocks.mobile.ts +9 -1
  1234. package/src/components/Bonus/Bonus.tsx +1 -1
  1235. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  1236. package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  1237. package/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
  1238. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
  1239. package/src/components/Calculator/Calculator.tsx +11 -5
  1240. package/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
  1241. package/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
  1242. package/src/components/Calculator/Rate.tsx +14 -14
  1243. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
  1244. package/src/components/Calculator/renderDaysInput.tsx +10 -31
  1245. package/src/components/Calculator/renderInterestPayment.tsx +13 -52
  1246. package/src/components/Calculator/renderMonthsInput.tsx +17 -39
  1247. package/src/components/Calculator/renderPaymentType.tsx +13 -49
  1248. package/src/components/Calculator/renderRegistrationType.tsx +13 -51
  1249. package/src/components/Calculator/renderWantedSumInput.tsx +10 -27
  1250. package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  1251. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1252. package/src/components/Carousel/Carousel.fixture.mobile.tsx +93 -0
  1253. package/src/components/Carousel/Carousel.fixture.tsx +1 -1
  1254. package/src/components/Carousel/Carousel.tsx +3 -4
  1255. package/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
  1256. package/src/components/Carousel/itemsGap.mobile.ts +1 -0
  1257. package/src/components/Carousel/itemsGap.ts +1 -0
  1258. package/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
  1259. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +1 -0
  1260. package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
  1261. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
  1262. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +74 -0
  1263. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
  1264. package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +1 -0
  1265. package/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
  1266. package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +2 -0
  1267. package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
  1268. package/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
  1269. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  1270. package/src/components/ExchangeRateTile/renderInput.tsx +3 -3
  1271. package/src/components/Filtration/Filtration.tsx +6 -4
  1272. package/src/components/Filtration/renderFormItem.tsx +5 -5
  1273. package/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1274. package/src/components/Headline/Headline.fixture.mobile.tsx +95 -0
  1275. package/src/components/Headline/Headline.tsx +11 -6
  1276. package/src/components/Headline/headlineVersionStyles.ts +7 -7
  1277. package/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
  1278. package/src/components/ImgBlock/ImgBlock.fixture.mobile.tsx +21 -0
  1279. package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
  1280. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  1281. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  1282. package/src/components/ProductBlock/ProductBlock.tsx +5 -2
  1283. package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +51 -0
  1284. package/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
  1285. package/src/components/SafeDepositRental/useGetRegions.ts +3 -1
  1286. package/src/components/TariffsTable/TariffsTable.tsx +1 -1
  1287. package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
  1288. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +43 -50
  1289. package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
  1290. package/src/components/TextBlock/TextBlock.tsx +36 -12
  1291. package/src/components/TextBlock/TextBlockContent.ts +1 -3
  1292. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +90 -0
  1293. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  1294. package/src/hooks/useForm.ts +68 -17
  1295. package/src/ui-kit/Checkbox/Checkbox.tsx +43 -25
  1296. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
  1297. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
  1298. package/src/ui-kit/Input/Input.tsx +11 -19
  1299. package/src/ui-kit/Input/InputProps.ts +4 -2
  1300. package/src/ui-kit/InputRange/InputRange.tsx +56 -43
  1301. package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
  1302. package/src/ui-kit/InputRange/parseDecimal.ts +6 -0
  1303. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
  1304. package/src/ui-kit/List/List.fixture.tsx +4 -4
  1305. package/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
  1306. package/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
  1307. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
  1308. package/src/ui-kit/RichText/RichText.fixture.tsx +1 -1
  1309. package/src/ui-kit/Select/Select.tsx +48 -55
  1310. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
  1311. package/src/ui-kit/Tags/Tags.fixture.tsx +1 -1
  1312. package/src/utils/getSanitizedValue.ts +1 -1
  1313. package/src/validation/and.ts +6 -0
  1314. package/src/validation/objectValidator.ts +10 -0
  1315. package/src/validation/pattern.ts +4 -0
  1316. package/src/validation/required.ts +3 -0
  1317. package/src/validation/validator.ts +21 -0
  1318. package/src/validation/withValidator.ts +21 -0
  1319. package/src/wlc.json +1 -2
  1320. package/tailwind.config.cjs +3 -0
  1321. package/bin/migration-scripts/0.9.3.js +0 -88
  1322. package/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1323. package/bundle/components/ApplicationForm/useForm.d.ts +0 -14
  1324. package/bundle/components/ApplicationForm/validate.d.ts +0 -1
  1325. package/bundle/components/TextBlock/TextBlock.mobile.d.ts +0 -5
  1326. package/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1327. package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1328. package/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1329. package/dist/components/ApplicationForm/renderInputRange.js +0 -8
  1330. package/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
  1331. package/dist/components/ApplicationForm/useForm.d.ts +0 -14
  1332. package/dist/components/ApplicationForm/useForm.js +0 -37
  1333. package/dist/components/ApplicationForm/useForm.js.map +0 -1
  1334. package/dist/components/ApplicationForm/validate.d.ts +0 -1
  1335. package/dist/components/ApplicationForm/validate.js +0 -22
  1336. package/dist/components/ApplicationForm/validate.js.map +0 -1
  1337. package/dist/components/TextBlock/TextBlock.mobile.d.ts +0 -5
  1338. package/dist/components/TextBlock/TextBlock.mobile.js +0 -16
  1339. package/dist/components/TextBlock/TextBlock.mobile.js.map +0 -1
  1340. package/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1341. package/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  1342. package/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  1343. package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1344. package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  1345. package/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1346. package/lib/components/ApplicationForm/renderInputRange.js +0 -5
  1347. package/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
  1348. package/lib/components/ApplicationForm/useForm.d.ts +0 -14
  1349. package/lib/components/ApplicationForm/useForm.js +0 -34
  1350. package/lib/components/ApplicationForm/useForm.js.map +0 -1
  1351. package/lib/components/ApplicationForm/validate.d.ts +0 -1
  1352. package/lib/components/ApplicationForm/validate.js +0 -19
  1353. package/lib/components/ApplicationForm/validate.js.map +0 -1
  1354. package/lib/components/TextBlock/TextBlock.mobile.d.ts +0 -5
  1355. package/lib/components/TextBlock/TextBlock.mobile.js +0 -14
  1356. package/lib/components/TextBlock/TextBlock.mobile.js.map +0 -1
  1357. package/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1358. package/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  1359. package/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  1360. package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1361. package/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  1362. package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  1363. package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1364. package/mobile/bundle/components/ApplicationForm/useForm.d.ts +0 -14
  1365. package/mobile/bundle/components/ApplicationForm/validate.d.ts +0 -1
  1366. package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1367. package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1368. package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1369. package/mobile/dist/components/ApplicationForm/renderInputRange.js +0 -8
  1370. package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
  1371. package/mobile/dist/components/ApplicationForm/useForm.d.ts +0 -14
  1372. package/mobile/dist/components/ApplicationForm/useForm.js +0 -37
  1373. package/mobile/dist/components/ApplicationForm/useForm.js.map +0 -1
  1374. package/mobile/dist/components/ApplicationForm/validate.d.ts +0 -1
  1375. package/mobile/dist/components/ApplicationForm/validate.js +0 -22
  1376. package/mobile/dist/components/ApplicationForm/validate.js.map +0 -1
  1377. package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1378. package/mobile/dist/ui-kit/InputListRange/InputListRange.js +0 -41
  1379. package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
  1380. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1381. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  1382. package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
  1383. package/mobile/lib/components/ApplicationForm/renderInputRange.js +0 -5
  1384. package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
  1385. package/mobile/lib/components/ApplicationForm/useForm.d.ts +0 -14
  1386. package/mobile/lib/components/ApplicationForm/useForm.js +0 -34
  1387. package/mobile/lib/components/ApplicationForm/useForm.js.map +0 -1
  1388. package/mobile/lib/components/ApplicationForm/validate.d.ts +0 -1
  1389. package/mobile/lib/components/ApplicationForm/validate.js +0 -19
  1390. package/mobile/lib/components/ApplicationForm/validate.js.map +0 -1
  1391. package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
  1392. package/mobile/lib/ui-kit/InputListRange/InputListRange.js +0 -39
  1393. package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
  1394. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
  1395. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
  1396. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
  1397. package/mobile/src/components/ApplicationForm/renderInputRange.tsx +0 -20
  1398. package/mobile/src/components/ApplicationForm/useForm.ts +0 -65
  1399. package/mobile/src/components/ApplicationForm/validate.ts +0 -22
  1400. package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  1401. package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
  1402. package/src/components/ApplicationForm/renderInputRange.tsx +0 -20
  1403. package/src/components/ApplicationForm/useForm.ts +0 -65
  1404. package/src/components/ApplicationForm/validate.ts +0 -22
  1405. package/src/components/TextBlock/TextBlock.mobile.tsx +0 -42
  1406. package/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
  1407. package/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
@@ -1,26 +1,19 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useForm } from '../../hooks/useForm';
2
4
  import { Heading } from '../../ui-kit/Heading/Heading';
3
- import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
5
+ import { objectValidator } from '../../validation/objectValidator';
6
+ import { isValidationSuccess } from '../../validation/validator';
4
7
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
5
8
  import { Footnote } from './Footnote';
6
9
  import { renderContacts } from './renderContacts';
7
10
  import { renderQuestionsInterested } from './renderQuestionsInterested';
8
11
  import { renderSubmitButton } from './renderSubmitButton';
9
12
  import { renderWedDataOrganization } from './renderWedDataOrganization';
10
- import { useForm } from './useForm';
13
+ import { defaultValidator, nameValidator, phoneValidator } from './validators';
14
+ import type { WedFormState } from './WedFormState';
11
15
 
12
- export interface WedFormState {
13
- fullName: string;
14
- name: string;
15
- phone: string;
16
- mail: string;
17
- currencyControl: boolean;
18
- documentaryOperations: boolean;
19
- conversionOperations: boolean;
20
- text: string;
21
- }
22
-
23
- const initialFormState = {
16
+ const initialFormState: WedFormState = {
24
17
  fullName: '',
25
18
  name: '',
26
19
  phone: '',
@@ -31,67 +24,50 @@ const initialFormState = {
31
24
  text: '',
32
25
  };
33
26
 
34
- const errorsInitialState = {
35
- fullName: '',
36
- name: '',
37
- phone: '',
38
- mail: '',
39
- text: '',
40
- };
27
+ const webValidator = objectValidator({
28
+ fullName: defaultValidator,
29
+ name: nameValidator,
30
+ phone: phoneValidator,
31
+ mail: defaultValidator,
32
+ });
41
33
 
42
34
  export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
43
- const { button, link, handleSubmit } = props;
44
-
45
- const { formState, errors, handleChange, handleChangeErrors, sendForm } = useForm<WedFormState>({
46
- initialFormState,
47
- errorsInitialState,
48
- handleSubmit,
49
- });
50
-
51
- const {
52
- fullName,
53
- name,
54
- phone,
55
- mail,
56
- currencyControl,
57
- documentaryOperations,
58
- conversionOperations,
59
- text,
60
- } = formState;
61
-
62
- const onSubmit = (e: PreventableEvent) => {
63
- e.preventDefault();
35
+ const { button, link, onSubmit } = props;
64
36
 
65
- sendForm({
66
- typeForm: 'kved',
67
- fullName,
68
- name,
69
- phone,
70
- mail,
71
- partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
72
- });
73
- };
74
-
75
- return (
76
- <form onSubmit={onSubmit} className="container">
77
- <Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
78
- {renderWedDataOrganization({
37
+ const handleSubmit = useCallback(
38
+ (formState: WedFormState) => {
39
+ const {
79
40
  fullName,
80
41
  name,
81
42
  phone,
82
43
  mail,
83
- handleChange,
84
- errors,
85
- handleChangeErrors,
86
- })}
87
- <Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
88
- {renderQuestionsInterested({
89
44
  currencyControl,
90
45
  documentaryOperations,
91
46
  conversionOperations,
92
47
  text,
93
- handleChange,
94
- })}
48
+ } = formState;
49
+
50
+ isValidationSuccess(webValidator(formState)) &&
51
+ onSubmit({
52
+ typeForm: 'kved',
53
+ fullName,
54
+ name,
55
+ phone,
56
+ mail,
57
+ partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
58
+ });
59
+ },
60
+ [onSubmit],
61
+ );
62
+
63
+ const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
64
+
65
+ return (
66
+ <form className="container" onSubmit={formProps.onSubmit}>
67
+ <Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
68
+ {renderWedDataOrganization(field)}
69
+ <Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
70
+ {renderQuestionsInterested(field)}
95
71
  <div className="flex items-center pb-9 mb-9 border-b border-main-divider">
96
72
  {renderSubmitButton(button, 'mr-5')}
97
73
  <Footnote link={link} />
@@ -1,8 +1,8 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { SubmitButtonProps } from './ApplicationFormContent';
3
3
 
4
- export interface ApplicationFormsProps {
4
+ export interface ApplicationFormsProps<S extends Record<string, any> = Record<string, any>> {
5
5
  button?: SubmitButtonProps;
6
6
  link?: LinkProps;
7
- handleSubmit: (data: Record<string, string>) => Promise<string>;
7
+ onSubmit: (data: S) => void;
8
8
  }
@@ -0,0 +1,9 @@
1
+ import type { Option } from '../../ui-kit/Select/Select';
2
+
3
+ export interface BusinessCardFormState {
4
+ region?: Option;
5
+ name: string;
6
+ phone: string;
7
+ inn: string;
8
+ mail: string;
9
+ }
@@ -0,0 +1,14 @@
1
+ import type { Option } from '../../ui-kit/Select/Select';
2
+
3
+ export interface CreditFormState {
4
+ amount: number;
5
+ term: number;
6
+ fullName: string;
7
+ inn: string;
8
+ name: string;
9
+ phone: string;
10
+ mail: string;
11
+ region?: Option;
12
+ department?: Option;
13
+ annualRevenue: string;
14
+ }
@@ -1,7 +1,7 @@
1
- export const MIN_CREDIT_AMOUNT = 50000;
2
- export const MAX_CREDIT_AMOUNT = 3000000;
3
- export const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
1
+ export const MIN_CREDIT_AMOUNT = 1000;
2
+ export const MAX_CREDIT_AMOUNT = 1000000000;
3
+ export const ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
4
4
 
5
5
  export const MIN_CREDIT_TERM = 1;
6
- export const MAX_CREDIT_TERM = 60;
7
- export const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
6
+ export const MAX_CREDIT_TERM = 180;
7
+ export const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
@@ -0,0 +1,4 @@
1
+ export interface DepositFormState {
2
+ name: string;
3
+ phone: string;
4
+ }
@@ -2,34 +2,34 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Input } from '../../ui-kit/Input/Input';
3
3
  import { Text } from '../../ui-kit/Text/Text';
4
4
 
5
- interface InputControlProps {
5
+ export interface InputControlProps {
6
6
  className: string;
7
7
  label: string;
8
- value: string;
8
+ value?: string;
9
9
  error?: string;
10
- onChange: (value: string) => void;
11
- onBlur?: (value: string) => void;
10
+ onChange?: (value: string) => void;
11
+ onBlur?: () => void;
12
12
  }
13
13
 
14
14
  export const InputControl = JSX<InputControlProps>(
15
- ({ className, label, value, error, onChange, onBlur }) => {
16
- return (
17
- <div className={className}>
18
- <Input
19
- type="text"
20
- aria-label={label}
21
- label={label}
22
- valid={Boolean(!error)}
23
- value={value}
24
- onChange={onChange}
25
- onBlur={onBlur}
26
- />
27
- <div className="h-2">
15
+ ({ className, label, value = '', error, onChange, onBlur }) => (
16
+ <div className={className}>
17
+ <Input
18
+ type="text"
19
+ aria-label={label}
20
+ label={label}
21
+ valid={Boolean(!error)}
22
+ value={value}
23
+ onChange={onChange}
24
+ onBlur={onBlur}
25
+ />
26
+ <div className="h-2">
27
+ {error ? (
28
28
  <Text size="text-xs-light" color="text-error">
29
- {error ? error : null}
29
+ {error}
30
30
  </Text>
31
- </div>
31
+ ) : null}
32
32
  </div>
33
- );
34
- },
33
+ </div>
34
+ ),
35
35
  );
@@ -0,0 +1,26 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { PhoneInput } from '../../ui-kit/PhoneInput/PhoneInput';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+ import type { InputControlProps } from './InputControl';
5
+
6
+ export const PhoneInputControl = JSX<InputControlProps>(
7
+ ({ className, label, value, error, onChange, onBlur }) => (
8
+ <div className={className}>
9
+ <PhoneInput
10
+ aria-label={label}
11
+ label={label}
12
+ valid={Boolean(!error)}
13
+ value={value}
14
+ onChange={onChange}
15
+ onBlur={onBlur}
16
+ />
17
+ <div className="h-2">
18
+ {error ? (
19
+ <Text size="text-xs-light" color="text-error">
20
+ {error}
21
+ </Text>
22
+ ) : null}
23
+ </div>
24
+ </div>
25
+ ),
26
+ );
@@ -4,16 +4,16 @@ import { Img } from '../../ui-kit/Img/Img';
4
4
  import { Text } from '../../ui-kit/Text/Text';
5
5
 
6
6
  interface ResponseNotificationProps {
7
- responceType?: 'OK' | 'Fail';
7
+ responseType?: 'OK' | 'Fail';
8
8
  }
9
9
 
10
- export const ResponseNotification = JSX<ResponseNotificationProps>(({ responceType }) => {
11
- const responceOK = responceType === 'OK';
12
- const backgroundColor = responceOK ? 'bg-responce-ok' : 'bg-responce-fail';
10
+ export const ResponseNotification = JSX<ResponseNotificationProps>(({ responseType }) => {
11
+ const responseOK = responseType === 'OK';
12
+ const backgroundColor = responseOK ? 'bg-responce-ok' : 'bg-responce-fail';
13
13
 
14
14
  return (
15
15
  <div className={`flex items-center mt-5 p-5 rounded-md ${backgroundColor}`}>
16
- {responceOK ? (
16
+ {responseOK ? (
17
17
  <Img image={{ icon: 'ResponceOKIcon' }} width="42" height="42" className="mr-4" />
18
18
  ) : (
19
19
  <Img image={{ icon: 'ResponceFailIcon' }} width="37" height="34" className="mr-4" />
@@ -21,11 +21,11 @@ export const ResponseNotification = JSX<ResponseNotificationProps>(({ responceTy
21
21
  <div>
22
22
  <Heading
23
23
  headingType="h6"
24
- title={responceOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку'}
24
+ title={responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку'}
25
25
  className="mb-1"
26
26
  />
27
27
  <Text size="text-l-light" color="text-secondary-text">
28
- {responceOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее'}
28
+ {responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее'}
29
29
  </Text>
30
30
  </div>
31
31
  </div>
@@ -1,54 +1,20 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { OptionProps, Select } from '../../ui-kit/Select/Select';
2
+ import { Select, SelectProps } from '../../ui-kit/Select/Select';
3
3
  import { Text } from '../../ui-kit/Text/Text';
4
- import type { Currency } from '../ExchangeRateTile/CurrencyProps';
5
4
 
6
- interface SelectControlProps {
7
- data: Record<string, any>[];
8
- fieldLabel: string;
9
- fieldValue?: string;
10
- selected: string;
11
- setSelected: (value: string) => void;
12
- label: string;
13
- placeholder?: string;
5
+ interface SelectControlProps extends SelectProps {
14
6
  error?: string;
15
- onValidate?: (value: string) => void;
16
7
  }
17
8
 
18
- export const SelectControl = JSX<SelectControlProps>(
19
- ({
20
- data,
21
- fieldLabel,
22
- fieldValue,
23
- selected,
24
- placeholder = '',
25
- setSelected,
26
- label,
27
- error,
28
- onValidate,
29
- }) => {
30
- const dataFormat: OptionProps[] = data
31
- .filter(Boolean)
32
- .map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
33
- const selectedObj = dataFormat.find((_) => _.key === selected);
34
-
35
- return (
36
- <div>
37
- <Select
38
- options={dataFormat}
39
- label={label}
40
- valid={Boolean(!error)}
41
- placeholder={placeholder || selected}
42
- onChange={(_) => setSelected(_.key as Currency)}
43
- value={selectedObj}
44
- onValidate={onValidate}
45
- />
46
- <div className="h-2">
47
- <Text size="text-xs-light" color="text-error">
48
- {error ? error : null}
49
- </Text>
50
- </div>
51
- </div>
52
- );
53
- },
54
- );
9
+ export const SelectControl = JSX<SelectControlProps>((props) => (
10
+ <div>
11
+ <Select {...props} valid={!props.error} />
12
+ <div className="h-2">
13
+ {props.error ? (
14
+ <Text size="text-xs-light" color="text-error">
15
+ {props.error}
16
+ </Text>
17
+ ) : null}
18
+ </div>
19
+ </div>
20
+ ));
@@ -0,0 +1,10 @@
1
+ export interface WedFormState {
2
+ fullName: string;
3
+ name: string;
4
+ phone: string;
5
+ mail: string;
6
+ currencyControl: boolean;
7
+ documentaryOperations: boolean;
8
+ conversionOperations: boolean;
9
+ text: string;
10
+ }
@@ -3,11 +3,3 @@ export interface Select {
3
3
  code?: string;
4
4
  name?: string;
5
5
  }
6
-
7
- export type HandleFormStateChange<T> = (state: Partial<T>) => void;
8
-
9
- export interface DataOrganization<T> {
10
- handleChange: HandleFormStateChange<T>;
11
- errors: Record<string, string>;
12
- handleChangeErrors: (state: any) => void;
13
- }
@@ -1,59 +1,34 @@
1
- import { AcquiringFormState } from './ApplicationFormAcquiring';
1
+ import { FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { withValidator } from '../../validation/withValidator';
3
+ import { AcquiringFormState } from './AcquiringFormState';
2
4
  import { InputControl } from './InputControl';
3
- import type { DataOrganization } from './models';
4
- import { validate } from './validate';
5
+ import { PhoneInputControl } from './PhoneInputControl';
6
+ import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
5
7
 
6
- interface RenderAcquiringDataOrganizationProps extends DataOrganization<AcquiringFormState> {
7
- fullName: string;
8
- inn: string;
9
- name: string;
10
- phone: string;
11
- }
12
-
13
- export const renderAcquiringDataOrganization = ({
14
- fullName,
15
- inn,
16
- name,
17
- phone,
18
- handleChange,
19
- errors,
20
- handleChangeErrors,
21
- }: RenderAcquiringDataOrganizationProps) => (
8
+ export const renderAcquiringDataOrganization = (field: FormFieldRegisterer<AcquiringFormState>) => (
22
9
  <div className="flex justify-between gap-5 mb-5">
23
10
  <div className="w-1/2">
24
11
  <InputControl
25
12
  className="shrink-0 text-l w-full mb-3"
26
13
  label="Наименование организации"
27
- error={errors['fullName']}
28
- value={fullName}
29
- onChange={(value) => handleChange({ fullName: value })}
30
- onBlur={(value) => handleChangeErrors({ fullName: validate('fullName', value) })}
14
+ {...withValidator(field('fullName'), defaultValidator)}
31
15
  />
32
16
  <InputControl
33
17
  className="shrink-0 text-l w-full mb-3"
34
18
  label="Контактное лицо"
35
- error={errors['name']}
36
- value={name}
37
- onChange={(value) => handleChange({ name: value })}
38
- onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
19
+ {...withValidator(field('name'), nameValidator)}
39
20
  />
40
21
  </div>
41
22
  <div className="w-1/2">
42
23
  <InputControl
43
24
  className="shrink-0 text-l w-full mb-3"
44
25
  label="ИНН"
45
- error={errors['inn']}
46
- value={inn}
47
- onChange={(value) => handleChange({ inn: value })}
48
- onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
26
+ {...withValidator(field('inn'), innValidator)}
49
27
  />
50
- <InputControl
28
+ <PhoneInputControl
51
29
  className="shrink-0 text-l w-full mb-3"
52
30
  label="Телефон"
53
- error={errors['phone']}
54
- value={phone}
55
- onChange={(value) => handleChange({ phone: value })}
56
- onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
31
+ {...withValidator(field('phone'), phoneValidator)}
57
32
  />
58
33
  </div>
59
34
  </div>
@@ -1,53 +1,32 @@
1
+ import { FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { withValidator } from '../../validation/withValidator';
3
+ import type { AcquiringFormState } from './AcquiringFormState';
1
4
  import { ACQUIRING_TYPES } from './acquiringTypes';
2
- import type { AcquiringFormState } from './ApplicationFormAcquiring';
3
- import type { HandleFormStateChange, Select } from './models';
5
+ import type { Select } from './models';
4
6
  import { SelectControl } from './SelectControl';
5
- import { validate } from './validate';
7
+ import { defaultValidator } from './validators';
6
8
 
7
- interface RenderAcquiringRegionProps {
8
- acquiringType: string;
9
+ interface AcquiringRegionProps {
9
10
  regions: Select[];
10
- region: string;
11
- handleChange: HandleFormStateChange<AcquiringFormState>;
12
- errors: Record<string, string>;
13
- handleChangeErrors: (state: any) => void;
11
+ field: FormFieldRegisterer<AcquiringFormState>;
14
12
  }
15
13
 
16
- export const renderAcquiringRegion = ({
17
- acquiringType,
18
- regions,
19
- region,
20
- handleChange,
21
- errors,
22
- handleChangeErrors,
23
- }: RenderAcquiringRegionProps) => (
14
+ export const renderAcquiringRegion = ({ regions, field }: AcquiringRegionProps) => (
24
15
  <div className="flex justify-between gap-5 mb-7">
25
16
  <div className="w-1/2">
26
17
  <SelectControl
27
- data={ACQUIRING_TYPES}
28
- fieldValue="name"
29
- fieldLabel="name"
30
- error={errors['acquiringType']}
31
- selected={acquiringType}
32
- setSelected={(value) => handleChange({ acquiringType: value })}
33
- onValidate={(value) =>
34
- handleChangeErrors({ acquiringType: validate('acquiringType', value) })
35
- }
36
18
  label="Вид эквайринга"
37
19
  placeholder="Выберите эквайринг"
20
+ options={ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key }))}
21
+ {...withValidator(field('acquiringType'), defaultValidator)}
38
22
  />
39
23
  </div>
40
24
  <div className="w-1/2">
41
25
  <SelectControl
42
- data={regions}
43
- fieldValue="code"
44
- fieldLabel="name"
45
- error={errors['region']}
46
- selected={region}
47
- setSelected={(value) => handleChange({ region: value })}
48
- onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
49
26
  label="Адрес"
50
27
  placeholder="Выберите адрес"
28
+ options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
29
+ {...withValidator(field('region'), defaultValidator)}
51
30
  />
52
31
  </div>
53
32
  </div>
@@ -1,59 +1,36 @@
1
- import type { BusinessCardFormState } from './ApplicationFormBusinessCard';
1
+ import { FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { withValidator } from '../../validation/withValidator';
3
+ import type { BusinessCardFormState } from './BusinessCardFormState';
2
4
  import { InputControl } from './InputControl';
3
- import type { DataOrganization } from './models';
4
- import { validate } from './validate';
5
+ import { PhoneInputControl } from './PhoneInputControl';
6
+ import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
5
7
 
6
- interface RenderBusinessCardDataOrganizationProps extends DataOrganization<BusinessCardFormState> {
7
- name: string;
8
- phone: string;
9
- mail: string;
10
- inn: string;
11
- }
12
-
13
- export const renderBusinessCardDataOrganization = ({
14
- name,
15
- phone,
16
- mail,
17
- inn,
18
- handleChange,
19
- errors,
20
- handleChangeErrors,
21
- }: RenderBusinessCardDataOrganizationProps) => (
8
+ export const renderBusinessCardDataOrganization = (
9
+ field: FormFieldRegisterer<BusinessCardFormState>,
10
+ ) => (
22
11
  <div className="flex justify-between gap-5">
23
12
  <div className="w-1/2">
24
13
  <InputControl
25
14
  className="shrink-0 text-l w-full mb-3"
26
15
  label="Контактное лицо"
27
- error={errors['name']}
28
- value={name}
29
- onChange={(value) => handleChange({ name: value })}
30
- onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
16
+ {...withValidator(field('name'), nameValidator)}
31
17
  />
32
18
  <InputControl
33
19
  className="shrink-0 text-l w-full mb-3"
34
20
  label="ИНН"
35
- error={errors['inn']}
36
- value={inn}
37
- onChange={(value) => handleChange({ inn: value })}
38
- onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
21
+ {...withValidator(field('inn'), innValidator)}
39
22
  />
40
23
  </div>
41
24
  <div className="w-1/2">
42
- <InputControl
25
+ <PhoneInputControl
43
26
  className="shrink-0 text-l w-full mb-3"
44
27
  label="Телефон"
45
- error={errors['phone']}
46
- value={phone}
47
- onChange={(value) => handleChange({ phone: value })}
48
- onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
28
+ {...withValidator(field('phone'), phoneValidator)}
49
29
  />
50
30
  <InputControl
51
31
  className="shrink-0 text-l w-full mb-3"
52
32
  label="Электронная почта"
53
- error={errors['mail']}
54
- value={mail}
55
- onChange={(value) => handleChange({ mail: value })}
56
- onBlur={(value) => handleChangeErrors({ mail: validate('mail', value) })}
33
+ {...withValidator(field('mail'), defaultValidator)}
57
34
  />
58
35
  </div>
59
36
  </div>