@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 +1 @@
1
- {"version":3,"file":"ApplicationFormAcquiring.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormAcquiring.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AAEvD,sEAAmE;AAEnE,yCAAsC;AACtC,uFAAoF;AACpF,mEAAgE;AAChE,mEAAgE;AAChE,6DAA0D;AAC1D,uCAAoC;AAapC,MAAM,gBAAgB,GAAG;IACvB,aAAa,EAAE,oBAAoB;IACnC,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,kBAAkB,GAAG;IACzB,aAAa,EAAE,EAAE;IACjB,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;CACV,CAAC;AAEW,QAAA,wBAAwB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACrE,IAAA,iBAAO,EAAqB;QAC1B,gBAAgB;QAChB,kBAAkB;QAClB,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GACtF,SAAS,CAAC;IAEZ,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,QAAQ,GAAG,CAAC,CAAmB,EAAE,EAAE;QACvC,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,QAAQ,CAAC;YACP,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE;YAC1D,eAAe,EAAE,kBAAkB,aAAa,iBAAiB,cAAc,iBAAiB,WAAW,EAAE;YAC7G,QAAQ;YACR,GAAG;YACH,IAAI;YACJ,KAAK;SACN,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC7C,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,6HAAyB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACxF,IAAA,6CAAqB,EAAC;gBACrB,aAAa;gBACb,OAAO;gBACP,MAAM;gBACN,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACF,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,iEAA+B,EAAC;gBAC/B,QAAQ;gBACR,GAAG;gBACH,IAAI;gBACJ,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACD,IAAA,6CAAqB,EAAC;gBACrB,cAAc;gBACd,WAAW;gBACX,YAAY;aACb,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ApplicationFormAcquiring.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormAcquiring.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;AAC9C,0DAAuD;AACvD,sEAAmE;AACnE,0DAAiE;AACjE,sEAAmE;AAGnE,yCAAsC;AACtC,uFAAoF;AACpF,mEAAgE;AAChE,mEAAgE;AAChE,6DAA0D;AAC1D,6CAA6F;AAE7F,MAAM,gBAAgB,GAAuB;IAC3C,aAAa,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE;IAC5C,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,kBAAkB,GAAG,IAAA,iCAAe,EAAC;IACzC,aAAa,EAAE,6BAAgB;IAC/B,MAAM,EAAE,6BAAgB;IACxB,QAAQ,EAAE,6BAAgB;IAC1B,GAAG,EAAE,yBAAY;IACjB,IAAI,EAAE,0BAAa;IACnB,KAAK,EAAE,2BAAc;CACtB,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,SAA6B,EAAE,EAAE;QAChC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GACtF,SAAS,CAAC;QAEZ,IAAA,+BAAmB,EAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;YAChD,QAAQ,CAAC;gBACP,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;gBAC1B,eAAe,EAAE,kBACf,aAAa,EAAE,GAAG,IAAI,EACxB,iBAAiB,cAAc,iBAAiB,WAAW,EAAE;gBAC7D,QAAQ;gBACR,GAAG;gBACH,IAAI;gBACJ,KAAK;aACN,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAE5E,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,OAAO,CACL,kCAAM,SAAS,EAAC,WAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,aACtD,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,6HAAyB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACxF,IAAA,6CAAqB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAC1C,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,iEAA+B,EAAC,KAAK,CAAC,EACtC,IAAA,6CAAqB,EAAC,KAAK,CAAC,EAC5B,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,9 +1,2 @@
1
1
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
2
- export interface BusinessCardFormState {
3
- region: string;
4
- name: string;
5
- phone: string;
6
- inn: string;
7
- mail: string;
8
- }
9
- export declare const ApplicationFormBusinessCard: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps, any, any>;
2
+ export declare const ApplicationFormBusinessCard: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps<Record<string, any>>, any, any>;
@@ -2,53 +2,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ApplicationFormBusinessCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
7
+ const objectValidator_1 = require("../../validation/objectValidator");
8
+ const validator_1 = require("../../validation/validator");
5
9
  const useGetRegions_1 = require("../SafeDepositRental/useGetRegions");
6
10
  const Footnote_1 = require("./Footnote");
7
11
  const renderBusinessCardDataOrganization_1 = require("./renderBusinessCardDataOrganization");
8
12
  const renderRegion_1 = require("./renderRegion");
9
13
  const renderSubmitButton_1 = require("./renderSubmitButton");
10
- const useForm_1 = require("./useForm");
14
+ const validators_1 = require("./validators");
11
15
  const initialFormState = {
12
- region: '',
13
16
  name: '',
14
17
  phone: '',
15
18
  inn: '',
16
19
  mail: '',
17
20
  };
21
+ const businessCardValidator = (0, objectValidator_1.objectValidator)({
22
+ region: validators_1.defaultValidator,
23
+ name: validators_1.nameValidator,
24
+ phone: validators_1.phoneValidator,
25
+ inn: validators_1.innValidator,
26
+ mail: validators_1.defaultValidator,
27
+ });
18
28
  exports.ApplicationFormBusinessCard = (0, uni_jsx_1.JSX)((props) => {
19
- const { button, link, handleSubmit } = props;
20
- const { formState, errors, handleChange, handleChangeErrors, sendForm } = (0, useForm_1.useForm)({
21
- initialFormState,
22
- errorsInitialState: initialFormState,
23
- handleSubmit,
24
- });
25
- const { region, name, phone, inn, mail } = formState;
26
- const regions = (0, useGetRegions_1.useGetRegions)();
27
- const onSubmit = (e) => {
28
- e.preventDefault();
29
- sendForm({
30
- typeForm: 'bcrd',
31
- region: regions.find((_) => _.code === region)?.name || '',
32
- name,
33
- phone,
34
- inn,
35
- mail,
36
- });
37
- };
38
- return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "container", children: [(0, renderRegion_1.renderRegion)({
39
- regions,
40
- region,
41
- handleChange,
42
- errors,
43
- handleChangeErrors,
44
- }), (0, renderBusinessCardDataOrganization_1.renderBusinessCardDataOrganization)({
29
+ const { button, link, onSubmit } = props;
30
+ const handleSubmit = (0, hooks_1.useCallback)((formState) => {
31
+ const { region, name, phone, inn, mail } = formState;
32
+ (0, validator_1.isValidationSuccess)(businessCardValidator(formState)) &&
33
+ onSubmit({
34
+ typeForm: 'bcrd',
35
+ region: region?.text || '',
45
36
  name,
46
37
  phone,
47
38
  inn,
48
39
  mail,
49
- handleChange,
50
- errors,
51
- handleChangeErrors,
52
- }), (0, renderSubmitButton_1.renderSubmitButton)(button, 'mb-4'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }));
40
+ });
41
+ }, [onSubmit]);
42
+ const [, { field, ...formProps }] = (0, useForm_1.useForm)(initialFormState, handleSubmit);
43
+ const regions = (0, useGetRegions_1.useGetRegions)();
44
+ return ((0, jsx_runtime_1.jsxs)("form", { className: "container", onSubmit: formProps.onSubmit, children: [(0, renderRegion_1.renderRegion)({ regions, field }), (0, renderBusinessCardDataOrganization_1.renderBusinessCardDataOrganization)(field), (0, renderSubmitButton_1.renderSubmitButton)(button, 'mb-4'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }));
53
45
  });
54
46
  //# sourceMappingURL=ApplicationFormBusinessCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormBusinessCard.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormBusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAEnE,yCAAsC;AACtC,6FAA0F;AAC1F,iDAA8C;AAC9C,6DAA0D;AAC1D,uCAAoC;AAUpC,MAAM,gBAAgB,GAAG;IACvB,MAAM,EAAE,EAAE;IACV,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACrE,IAAA,iBAAO,EAAwB;QAC7B,gBAAgB;QAChB,kBAAkB,EAAE,gBAAgB;QACpC,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAErD,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,QAAQ,GAAG,CAAC,CAAmB,EAAE,EAAE;QACvC,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,QAAQ,CAAC;YACP,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE;YAC1D,IAAI;YACJ,KAAK;YACL,GAAG;YACH,IAAI;SACL,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,IAAA,2BAAY,EAAC;gBACZ,OAAO;gBACP,MAAM;gBACN,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACD,IAAA,uEAAkC,EAAC;gBAClC,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,IAAI;gBACJ,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ApplicationFormBusinessCard.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormBusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;AAC9C,sEAAmE;AACnE,0DAAiE;AACjE,sEAAmE;AAGnE,yCAAsC;AACtC,6FAA0F;AAC1F,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA6F;AAE7F,MAAM,gBAAgB,GAA0B;IAC9C,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAA,iCAAe,EAAC;IAC5C,MAAM,EAAE,6BAAgB;IACxB,IAAI,EAAE,0BAAa;IACnB,KAAK,EAAE,2BAAc;IACrB,GAAG,EAAE,yBAAY;IACjB,IAAI,EAAE,6BAAgB;CACvB,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,SAAgC,EAAE,EAAE;QACnC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;QAErD,IAAA,+BAAmB,EAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;YACnD,QAAQ,CAAC;gBACP,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;gBAC1B,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,IAAI;aACL,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAE5E,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,OAAO,CACL,kCAAM,SAAS,EAAC,WAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,aACrD,IAAA,2BAAY,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAChC,IAAA,uEAAkC,EAAC,KAAK,CAAC,EACzC,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,14 +1,2 @@
1
1
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
2
- export interface CreditFormState {
3
- amount: number;
4
- term: number;
5
- fullName: string;
6
- inn: string;
7
- name: string;
8
- phone: string;
9
- mail: string;
10
- region: string;
11
- department: string;
12
- annualRevenue: string;
13
- }
14
- export declare const ApplicationFormCredit: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps, any, any>;
2
+ export declare const ApplicationFormCredit: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps<Record<string, any>>, any, any>;
@@ -2,8 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ApplicationFormCredit = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
5
6
  const useBranches_1 = require("../../hooks/useBranches");
7
+ const useForm_1 = require("../../hooks/useForm");
6
8
  const Heading_1 = require("../../ui-kit/Heading/Heading");
9
+ const objectValidator_1 = require("../../validation/objectValidator");
10
+ const validator_1 = require("../../validation/validator");
7
11
  const useGetRegions_1 = require("../SafeDepositRental/useGetRegions");
8
12
  const CreditParameters_1 = require("./CreditParameters");
9
13
  const Footnote_1 = require("./Footnote");
@@ -11,7 +15,7 @@ const renderCreditDataOrganization_1 = require("./renderCreditDataOrganization")
11
15
  const renderCreditParameters_1 = require("./renderCreditParameters");
12
16
  const renderRegionDepartment_1 = require("./renderRegionDepartment");
13
17
  const renderSubmitButton_1 = require("./renderSubmitButton");
14
- const useForm_1 = require("./useForm");
18
+ const validators_1 = require("./validators");
15
19
  const initialFormState = {
16
20
  amount: CreditParameters_1.MIN_CREDIT_AMOUNT,
17
21
  term: 12,
@@ -20,59 +24,35 @@ const initialFormState = {
20
24
  name: '',
21
25
  phone: '',
22
26
  mail: '',
23
- region: '',
24
- department: '',
25
27
  annualRevenue: '',
26
28
  };
27
- const errorsInitialState = {
28
- annualRevenue: '',
29
- inn: '',
30
- name: '',
31
- phone: '',
32
- region: '',
33
- department: '',
34
- };
35
- exports.ApplicationFormCredit = (0, uni_jsx_1.JSX)(({ button, link, handleSubmit }) => {
36
- const regions = (0, useGetRegions_1.useGetRegions)();
37
- const { formState, errors, handleChange, handleChangeErrors, sendForm } = (0, useForm_1.useForm)({
38
- initialFormState,
39
- errorsInitialState,
40
- handleSubmit,
41
- });
42
- const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
43
- const branches = (0, useBranches_1.useBranches)(region).filter((branch) => branch.address);
44
- const onSubmit = (e) => {
45
- e.preventDefault();
46
- sendForm({
47
- typeForm: 'cred',
48
- fullName,
49
- inn,
50
- name,
51
- phone,
52
- mail,
53
- region: regions.find((_) => _.code === region)?.name || '',
54
- department: branches.find((_) => _.branchCode === department)?.address || '',
55
- partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
56
- });
57
- };
58
- return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "container", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), (0, renderCreditParameters_1.renderCreditParameters)({ amount, term, handleChange }), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), (0, renderCreditDataOrganization_1.renderCreditDataOrganization)({
29
+ const creditValidator = (0, objectValidator_1.objectValidator)({
30
+ annualRevenue: validators_1.defaultValidator,
31
+ inn: validators_1.innValidator,
32
+ name: validators_1.nameValidator,
33
+ phone: validators_1.phoneValidator,
34
+ region: validators_1.defaultValidator,
35
+ department: validators_1.defaultValidator,
36
+ });
37
+ exports.ApplicationFormCredit = (0, uni_jsx_1.JSX)(({ button, link, onSubmit }) => {
38
+ const handleSubmit = (0, hooks_1.useCallback)((formState) => {
39
+ const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
40
+ (0, validator_1.isValidationSuccess)(creditValidator(formState)) &&
41
+ onSubmit({
42
+ typeForm: 'cred',
59
43
  fullName,
60
44
  inn,
61
45
  name,
62
46
  phone,
63
47
  mail,
64
- annualRevenue,
65
- handleChange,
66
- errors,
67
- handleChangeErrors,
68
- }), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), (0, renderRegionDepartment_1.renderRegionDepartment)({
69
- regions,
70
- region,
71
- branches,
72
- department,
73
- handleChange,
74
- errors,
75
- handleChangeErrors,
76
- }), (0, renderSubmitButton_1.renderSubmitButton)(button, 'mb-4'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }));
48
+ region: region?.text || '',
49
+ department: department?.text || '',
50
+ partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
51
+ });
52
+ }, [onSubmit]);
53
+ const [formState, { field, ...formProps }] = (0, useForm_1.useForm)(initialFormState, handleSubmit);
54
+ const regions = (0, useGetRegions_1.useGetRegions)();
55
+ const branches = (0, useBranches_1.useBranches)(formState.region?.key).filter((branch) => branch?.address);
56
+ return ((0, jsx_runtime_1.jsxs)("form", { className: "container", onSubmit: formProps.onSubmit, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), (0, renderCreditParameters_1.renderCreditParameters)(field), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), (0, renderCreditDataOrganization_1.renderCreditDataOrganization)(field), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), (0, renderRegionDepartment_1.renderRegionDepartment)({ regions, branches, field }), (0, renderSubmitButton_1.renderSubmitButton)(button, 'mb-4'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }));
77
57
  });
78
58
  //# sourceMappingURL=ApplicationFormCredit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormCredit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormCredit.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AACtD,0DAAuD;AAEvD,sEAAmE;AAEnE,yDAAuD;AACvD,yCAAsC;AACtC,iFAA8E;AAC9E,qEAAkE;AAClE,qEAAkE;AAClE,6DAA0D;AAC1D,uCAAoC;AAepC,MAAM,gBAAgB,GAAG;IACvB,MAAM,EAAE,oCAAiB;IACzB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,kBAAkB,GAAG;IACzB,aAAa,EAAE,EAAE;IACjB,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE;IACjC,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACrE,IAAA,iBAAO,EAAkB;QACvB,gBAAgB;QAChB,kBAAkB;QAClB,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GACzF,SAAS,CAAC;IAEZ,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,QAAQ,GAAG,CAAC,CAAmB,EAAE,EAAE;QACvC,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,QAAQ,CAAC;YACP,QAAQ,EAAE,MAAM;YAChB,QAAQ;YACR,GAAG;YACH,IAAI;YACJ,KAAK;YACL,IAAI;YACJ,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE;YAC1D,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,EAAE,OAAO,IAAI,EAAE;YAC5E,eAAe,EAAE,SAAS,MAAM,SAAS,IAAI,YAAY,aAAa,EAAE;SACzE,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC7C,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,mGAAmB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EAClF,IAAA,+CAAsB,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EACvD,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,2DAA4B,EAAC;gBAC5B,QAAQ;gBACR,GAAG;gBACH,IAAI;gBACJ,KAAK;gBACL,IAAI;gBACJ,aAAa;gBACb,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACF,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yDAAY,EAAC,SAAS,EAAC,kBAAkB,GAAG,EAC3E,IAAA,+CAAsB,EAAC;gBACtB,OAAO;gBACP,MAAM;gBACN,QAAQ;gBACR,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"ApplicationFormCredit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormCredit.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,yDAAsD;AACtD,iDAA8C;AAC9C,0DAAuD;AACvD,sEAAmE;AACnE,0DAAiE;AACjE,sEAAmE;AAGnE,yDAAuD;AACvD,yCAAsC;AACtC,iFAA8E;AAC9E,qEAAkE;AAClE,qEAAkE;AAClE,6DAA0D;AAC1D,6CAA6F;AAE7F,MAAM,gBAAgB,GAAoB;IACxC,MAAM,EAAE,oCAAiB;IACzB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,eAAe,GAAG,IAAA,iCAAe,EAAC;IACtC,aAAa,EAAE,6BAAgB;IAC/B,GAAG,EAAE,yBAAY;IACjB,IAAI,EAAE,0BAAa;IACnB,KAAK,EAAE,2BAAc;IACrB,MAAM,EAAE,6BAAgB;IACxB,UAAU,EAAE,6BAAgB;CAC7B,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC7F,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,SAA0B,EAAE,EAAE;QAC7B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GACzF,SAAS,CAAC;QAEZ,IAAA,+BAAmB,EAAC,eAAe,CAAC,SAAS,CAAC,CAAC;YAC7C,QAAQ,CAAC;gBACP,QAAQ,EAAE,MAAM;gBAChB,QAAQ;gBACR,GAAG;gBACH,IAAI;gBACJ,KAAK;gBACL,IAAI;gBACJ,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;gBAC1B,UAAU,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE;gBAClC,eAAe,EAAE,SAAS,MAAM,SAAS,IAAI,YAAY,aAAa,EAAE;aACzE,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAErF,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAChC,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAExF,OAAO,CACL,kCAAM,SAAS,EAAC,WAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,aACtD,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,mGAAmB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EAClF,IAAA,+CAAsB,EAAC,KAAK,CAAC,EAC9B,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,2DAA4B,EAAC,KAAK,CAAC,EACpC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yDAAY,EAAC,SAAS,EAAC,kBAAkB,GAAG,EAC3E,IAAA,+CAAsB,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EACpD,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +1,2 @@
1
1
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
2
- export interface DepositFormState {
3
- name: string;
4
- phone: string;
5
- }
6
- export declare const ApplicationFormDeposit: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps, any, any>;
2
+ export declare const ApplicationFormDeposit: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps<Record<string, any>>, any, any>;
@@ -2,39 +2,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ApplicationFormDeposit = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
5
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
8
+ const objectValidator_1 = require("../../validation/objectValidator");
9
+ const validator_1 = require("../../validation/validator");
10
+ const withValidator_1 = require("../../validation/withValidator");
6
11
  const Footnote_1 = require("./Footnote");
7
12
  const InputControl_1 = require("./InputControl");
13
+ const PhoneInputControl_1 = require("./PhoneInputControl");
8
14
  const renderSubmitButton_1 = require("./renderSubmitButton");
9
- const useForm_1 = require("./useForm");
10
- const validate_1 = require("./validate");
15
+ const validators_1 = require("./validators");
11
16
  const initialFormState = {
12
17
  name: '',
13
18
  phone: '',
14
19
  };
20
+ const depositValidator = (0, objectValidator_1.objectValidator)({
21
+ name: validators_1.nameValidator,
22
+ phone: validators_1.phoneValidator,
23
+ });
15
24
  exports.ApplicationFormDeposit = (0, uni_jsx_1.JSX)((props) => {
16
- const { button, link, handleSubmit } = props;
17
- const { formState, errors, handleChange, handleChangeErrors, sendForm } = (0, useForm_1.useForm)({
18
- initialFormState,
19
- errorsInitialState: initialFormState,
20
- handleSubmit,
21
- });
22
- const { name, phone } = formState;
23
- const onSubmit = (e) => {
24
- e.preventDefault();
25
- sendForm({
26
- typeForm: 'dpst',
27
- name,
28
- phone,
29
- });
30
- };
31
- return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "container", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "text-center mb-4" }), renderDataOrganization({
25
+ const { button, link, onSubmit } = props;
26
+ const handleSubmit = (0, hooks_1.useCallback)((formState) => {
27
+ const { name, phone } = formState;
28
+ (0, validator_1.isValidationSuccess)(depositValidator(formState)) &&
29
+ onSubmit({
30
+ typeForm: 'dpst',
32
31
  name,
33
32
  phone,
34
- handleChange,
35
- errors,
36
- handleChangeErrors,
37
- }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-1", children: (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link }) }), (0, renderSubmitButton_1.renderSubmitButton)(button)] })] }));
33
+ });
34
+ }, [onSubmit]);
35
+ const [, { field, ...formProps }] = (0, useForm_1.useForm)(initialFormState, handleSubmit);
36
+ return ((0, jsx_runtime_1.jsxs)("form", { className: "container", onSubmit: formProps.onSubmit, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "text-center mb-4" }), (0, jsx_runtime_1.jsxs)("div", { className: "max-w-[560px] m-auto", children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u043C\u044F", ...(0, withValidator_1.withValidator)(field('name'), validators_1.nameValidator) }), (0, jsx_runtime_1.jsx)(PhoneInputControl_1.PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, withValidator_1.withValidator)(field('phone'), validators_1.phoneValidator) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-1", children: (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link }) }), (0, renderSubmitButton_1.renderSubmitButton)(button)] })] }));
38
37
  });
39
- const renderDataOrganization = ({ name, phone, handleChange, errors, handleChangeErrors, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "max-w-[560px] m-auto", children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u043C\u044F", error: errors['name'], value: name, onChange: (value) => handleChange({ name: value }), onBlur: (value) => handleChangeErrors({ name: (0, validate_1.validate)('name', value) }) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", error: errors['phone'], value: phone, onChange: (value) => handleChange({ phone: value }), onBlur: (value) => handleChangeErrors({ phone: (0, validate_1.validate)('phone', value) }) })] }));
40
38
  //# sourceMappingURL=ApplicationFormDeposit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormDeposit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormDeposit.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AAGvD,yCAAsC;AACtC,iDAA8C;AAE9C,6DAA0D;AAC1D,uCAAoC;AACpC,yCAAsC;AAOtC,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;CACV,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IACzE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACrE,IAAA,iBAAO,EAAmB;QACxB,gBAAgB;QAChB,kBAAkB,EAAE,gBAAgB;QACpC,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;IAElC,MAAM,QAAQ,GAAG,CAAC,CAAmB,EAAE,EAAE;QACvC,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,QAAQ,CAAC;YACP,QAAQ,EAAE,MAAM;YAChB,IAAI;YACJ,KAAK;SACN,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC7C,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,KAAK,EAAC,iTAA4D,EAClE,SAAS,EAAC,kBAAkB,GAC5B,EACD,sBAAsB,CAAC;gBACtB,IAAI;gBACJ,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACF,iCAAK,SAAS,EAAC,wDAAwD,aACrE,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,GACpB,EACL,IAAA,uCAAkB,EAAC,MAAM,CAAC,IACvB,IACD,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAOH,MAAM,sBAAsB,GAAG,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,MAAM,EACN,kBAAkB,GACU,EAAE,EAAE,CAAC,CACjC,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2BAAY,IACX,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAC,oBAAK,EACX,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EACrB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAClD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,IAAA,mBAAQ,EAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GACxE,EACF,uBAAC,2BAAY,IACX,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAC,4CAAS,EACf,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EACnD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAA,mBAAQ,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,GAC1E,IACE,CACP,CAAC"}
1
+ {"version":3,"file":"ApplicationFormDeposit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormDeposit.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;AAC9C,0DAAuD;AACvD,sEAAmE;AACnE,0DAAiE;AACjE,kEAA+D;AAG/D,yCAAsC;AACtC,iDAA8C;AAC9C,2DAAwD;AACxD,6DAA0D;AAC1D,6CAA6D;AAE7D,MAAM,gBAAgB,GAAqB;IACzC,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,iCAAe,EAAC;IACvC,IAAI,EAAE,0BAAa;IACnB,KAAK,EAAE,2BAAc;CACtB,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IACzE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,SAA2B,EAAE,EAAE;QAC9B,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;QAElC,IAAA,+BAAmB,EAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;YAC9C,QAAQ,CAAC;gBACP,QAAQ,EAAE,MAAM;gBAChB,IAAI;gBACJ,KAAK;aACN,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAE5E,OAAO,CACL,kCAAM,SAAS,EAAC,WAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,aACtD,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,KAAK,EAAC,iTAA4D,EAClE,SAAS,EAAC,kBAAkB,GAC5B,EACF,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2BAAY,IACX,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAC,oBAAK,KACP,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,0BAAa,CAAC,GAC/C,EACF,uBAAC,qCAAiB,IAChB,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAC,4CAAS,KACX,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,2BAAc,CAAC,GACjD,IACE,EACN,iCAAK,SAAS,EAAC,wDAAwD,aACrE,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,GACpB,EACL,IAAA,uCAAkB,EAAC,MAAM,CAAC,IACvB,IACD,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,12 +1,2 @@
1
1
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
2
- export interface WedFormState {
3
- fullName: string;
4
- name: string;
5
- phone: string;
6
- mail: string;
7
- currencyControl: boolean;
8
- documentaryOperations: boolean;
9
- conversionOperations: boolean;
10
- text: string;
11
- }
12
- export declare const ApplicationFormWed: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps, any, any>;
2
+ export declare const ApplicationFormWed: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormsProps<Record<string, any>>, any, any>;
@@ -2,13 +2,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ApplicationFormWed = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
5
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
8
+ const objectValidator_1 = require("../../validation/objectValidator");
9
+ const validator_1 = require("../../validation/validator");
6
10
  const Footnote_1 = require("./Footnote");
7
11
  const renderContacts_1 = require("./renderContacts");
8
12
  const renderQuestionsInterested_1 = require("./renderQuestionsInterested");
9
13
  const renderSubmitButton_1 = require("./renderSubmitButton");
10
14
  const renderWedDataOrganization_1 = require("./renderWedDataOrganization");
11
- const useForm_1 = require("./useForm");
15
+ const validators_1 = require("./validators");
12
16
  const initialFormState = {
13
17
  fullName: '',
14
18
  name: '',
@@ -19,46 +23,27 @@ const initialFormState = {
19
23
  conversionOperations: false,
20
24
  text: '',
21
25
  };
22
- const errorsInitialState = {
23
- fullName: '',
24
- name: '',
25
- phone: '',
26
- mail: '',
27
- text: '',
28
- };
26
+ const webValidator = (0, objectValidator_1.objectValidator)({
27
+ fullName: validators_1.defaultValidator,
28
+ name: validators_1.nameValidator,
29
+ phone: validators_1.phoneValidator,
30
+ mail: validators_1.defaultValidator,
31
+ });
29
32
  exports.ApplicationFormWed = (0, uni_jsx_1.JSX)((props) => {
30
- const { button, link, handleSubmit } = props;
31
- const { formState, errors, handleChange, handleChangeErrors, sendForm } = (0, useForm_1.useForm)({
32
- initialFormState,
33
- errorsInitialState,
34
- handleSubmit,
35
- });
36
- const { fullName, name, phone, mail, currencyControl, documentaryOperations, conversionOperations, text, } = formState;
37
- const onSubmit = (e) => {
38
- e.preventDefault();
39
- sendForm({
40
- typeForm: 'kved',
41
- fullName,
42
- name,
43
- phone,
44
- mail,
45
- partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
46
- });
47
- };
48
- return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "container", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), (0, renderWedDataOrganization_1.renderWedDataOrganization)({
33
+ const { button, link, onSubmit } = props;
34
+ const handleSubmit = (0, hooks_1.useCallback)((formState) => {
35
+ const { fullName, name, phone, mail, currencyControl, documentaryOperations, conversionOperations, text, } = formState;
36
+ (0, validator_1.isValidationSuccess)(webValidator(formState)) &&
37
+ onSubmit({
38
+ typeForm: 'kved',
49
39
  fullName,
50
40
  name,
51
41
  phone,
52
42
  mail,
53
- handleChange,
54
- errors,
55
- handleChangeErrors,
56
- }), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "text-center mb-4" }), (0, renderQuestionsInterested_1.renderQuestionsInterested)({
57
- currencyControl,
58
- documentaryOperations,
59
- conversionOperations,
60
- text,
61
- handleChange,
62
- }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center pb-9 mb-9 border-b border-main-divider", children: [(0, renderSubmitButton_1.renderSubmitButton)(button, 'mr-5'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "text-center mb-4" }), (0, renderContacts_1.renderContacts)()] }));
43
+ partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
44
+ });
45
+ }, [onSubmit]);
46
+ const [, { field, ...formProps }] = (0, useForm_1.useForm)(initialFormState, handleSubmit);
47
+ return ((0, jsx_runtime_1.jsxs)("form", { className: "container", onSubmit: formProps.onSubmit, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), (0, renderWedDataOrganization_1.renderWedDataOrganization)(field), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "text-center mb-4" }), (0, renderQuestionsInterested_1.renderQuestionsInterested)(field), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center pb-9 mb-9 border-b border-main-divider", children: [(0, renderSubmitButton_1.renderSubmitButton)(button, 'mr-5'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }), (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "text-center mb-4" }), (0, renderContacts_1.renderContacts)()] }));
63
48
  });
64
49
  //# sourceMappingURL=ApplicationFormWed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormWed.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormWed.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AAGvD,yCAAsC;AACtC,qDAAkD;AAClD,2EAAwE;AACxE,6DAA0D;AAC1D,2EAAwE;AACxE,uCAAoC;AAapC,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,eAAe,EAAE,KAAK;IACtB,qBAAqB,EAAE,KAAK;IAC5B,oBAAoB,EAAE,KAAK;IAC3B,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,kBAAkB,GAAG;IACzB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAO,EAAe;QAC9F,gBAAgB;QAChB,kBAAkB;QAClB,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,IAAI,GACL,GAAG,SAAS,CAAC;IAEd,MAAM,QAAQ,GAAG,CAAC,CAAmB,EAAE,EAAE;QACvC,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,QAAQ,CAAC;YACP,QAAQ,EAAE,MAAM;YAChB,QAAQ;YACR,IAAI;YACJ,KAAK;YACL,IAAI;YACJ,eAAe,EAAE,qBAAqB,eAAe,2BAA2B,qBAAqB,2BAA2B,oBAAoB,YAAY,IAAI,EAAE;SACvK,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC7C,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,qDAAyB,EAAC;gBACzB,QAAQ;gBACR,IAAI;gBACJ,KAAK;gBACL,IAAI;gBACJ,YAAY;gBACZ,MAAM;gBACN,kBAAkB;aACnB,CAAC,EACF,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,+GAAqB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACpF,IAAA,qDAAyB,EAAC;gBACzB,eAAe;gBACf,qBAAqB;gBACrB,oBAAoB;gBACpB,IAAI;gBACJ,YAAY;aACb,CAAC,EACF,iCAAK,SAAS,EAAC,0DAA0D,aACtE,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACpB,EACN,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,KAAK,EAAC,uMAAuC,EAC7C,SAAS,EAAC,kBAAkB,GAC5B,EACD,IAAA,+BAAc,GAAE,IACZ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ApplicationFormWed.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormWed.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;AAC9C,0DAAuD;AACvD,sEAAmE;AACnE,0DAAiE;AAEjE,yCAAsC;AACtC,qDAAkD;AAClD,2EAAwE;AACxE,6DAA0D;AAC1D,2EAAwE;AACxE,6CAA+E;AAG/E,MAAM,gBAAgB,GAAiB;IACrC,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,eAAe,EAAE,KAAK;IACtB,qBAAqB,EAAE,KAAK;IAC5B,oBAAoB,EAAE,KAAK;IAC3B,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,YAAY,GAAG,IAAA,iCAAe,EAAC;IACnC,QAAQ,EAAE,6BAAgB;IAC1B,IAAI,EAAE,0BAAa;IACnB,KAAK,EAAE,2BAAc;IACrB,IAAI,EAAE,6BAAgB;CACvB,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,SAAuB,EAAE,EAAE;QAC1B,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,IAAI,GACL,GAAG,SAAS,CAAC;QAEd,IAAA,+BAAmB,EAAC,YAAY,CAAC,SAAS,CAAC,CAAC;YAC1C,QAAQ,CAAC;gBACP,QAAQ,EAAE,MAAM;gBAChB,QAAQ;gBACR,IAAI;gBACJ,KAAK;gBACL,IAAI;gBACJ,eAAe,EAAE,qBAAqB,eAAe,2BAA2B,qBAAqB,2BAA2B,oBAAoB,YAAY,IAAI,EAAE;aACvK,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAE5E,OAAO,CACL,kCAAM,SAAS,EAAC,WAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,aACtD,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,yGAAoB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACnF,IAAA,qDAAyB,EAAC,KAAK,CAAC,EACjC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAC,+GAAqB,EAAC,SAAS,EAAC,kBAAkB,GAAG,EACpF,IAAA,qDAAyB,EAAC,KAAK,CAAC,EACjC,iCAAK,SAAS,EAAC,0DAA0D,aACtE,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACpB,EACN,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,KAAK,EAAC,uMAAuC,EAC7C,SAAS,EAAC,kBAAkB,GAC5B,EACD,IAAA,+BAAc,GAAE,IACZ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { SubmitButtonProps } from './ApplicationFormContent';
3
- export interface ApplicationFormsProps {
3
+ export interface ApplicationFormsProps<S extends Record<string, any> = Record<string, any>> {
4
4
  button?: SubmitButtonProps;
5
5
  link?: LinkProps;
6
- handleSubmit: (data: Record<string, string>) => Promise<string>;
6
+ onSubmit: (data: S) => void;
7
7
  }
@@ -0,0 +1,8 @@
1
+ import type { Option } from '../../ui-kit/Select/Select';
2
+ export interface BusinessCardFormState {
3
+ region?: Option;
4
+ name: string;
5
+ phone: string;
6
+ inn: string;
7
+ mail: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=BusinessCardFormState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessCardFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/BusinessCardFormState.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { Option } from '../../ui-kit/Select/Select';
2
+ export interface CreditFormState {
3
+ amount: number;
4
+ term: number;
5
+ fullName: string;
6
+ inn: string;
7
+ name: string;
8
+ phone: string;
9
+ mail: string;
10
+ region?: Option;
11
+ department?: Option;
12
+ annualRevenue: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CreditFormState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreditFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/CreditFormState.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- export declare const MIN_CREDIT_AMOUNT = 50000;
2
- export declare const MAX_CREDIT_AMOUNT = 3000000;
1
+ export declare const MIN_CREDIT_AMOUNT = 1000;
2
+ export declare const MAX_CREDIT_AMOUNT = 1000000000;
3
3
  export declare const ITEMS_CREDIT_AMOUNT: string[];
4
4
  export declare const MIN_CREDIT_TERM = 1;
5
- export declare const MAX_CREDIT_TERM = 60;
5
+ export declare const MAX_CREDIT_TERM = 180;
6
6
  export declare const ITEMS_CREDIT_TERM: string[];
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ITEMS_CREDIT_TERM = exports.MAX_CREDIT_TERM = exports.MIN_CREDIT_TERM = exports.ITEMS_CREDIT_AMOUNT = exports.MAX_CREDIT_AMOUNT = exports.MIN_CREDIT_AMOUNT = void 0;
3
- exports.MIN_CREDIT_AMOUNT = 50000;
4
- exports.MAX_CREDIT_AMOUNT = 3000000;
5
- exports.ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
3
+ exports.MIN_CREDIT_AMOUNT = 1000;
4
+ exports.MAX_CREDIT_AMOUNT = 1000000000;
5
+ exports.ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
6
6
  exports.MIN_CREDIT_TERM = 1;
7
- exports.MAX_CREDIT_TERM = 60;
8
- exports.ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
7
+ exports.MAX_CREDIT_TERM = 180;
8
+ exports.ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
9
9
  //# sourceMappingURL=CreditParameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreditParameters.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/CreditParameters.ts"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC;AAC5B,QAAA,mBAAmB,GAAG,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAExD,QAAA,eAAe,GAAG,CAAC,CAAC;AACpB,QAAA,eAAe,GAAG,EAAE,CAAC;AACrB,QAAA,iBAAiB,GAAG,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"CreditParameters.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/CreditParameters.ts"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,IAAI,CAAC;AACzB,QAAA,iBAAiB,GAAG,UAAU,CAAC;AAC/B,QAAA,mBAAmB,GAAG,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC;AAE3D,QAAA,eAAe,GAAG,CAAC,CAAC;AACpB,QAAA,eAAe,GAAG,GAAG,CAAC;AACtB,QAAA,iBAAiB,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface DepositFormState {
2
+ name: string;
3
+ phone: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=DepositFormState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/DepositFormState.ts"],"names":[],"mappings":""}
@@ -1,10 +1,9 @@
1
- interface InputControlProps {
1
+ export interface InputControlProps {
2
2
  className: string;
3
3
  label: string;
4
- value: string;
4
+ value?: string;
5
5
  error?: string;
6
- onChange: (value: string) => void;
7
- onBlur?: (value: string) => void;
6
+ onChange?: (value: string) => void;
7
+ onBlur?: () => void;
8
8
  }
9
9
  export declare const InputControl: import("@redneckz/uni-jsx").UNIComponent<InputControlProps, any, any>;
10
- export {};
@@ -4,7 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Input_1 = require("../../ui-kit/Input/Input");
6
6
  const Text_1 = require("../../ui-kit/Text/Text");
7
- exports.InputControl = (0, uni_jsx_1.JSX)(({ className, label, value, error, onChange, onBlur }) => {
8
- return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), (0, jsx_runtime_1.jsx)("div", { className: "h-2", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xs-light", color: "text-error", children: error ? error : null }) })] }));
9
- });
7
+ exports.InputControl = (0, uni_jsx_1.JSX)(({ className, label, value = '', error, onChange, onBlur }) => ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), (0, jsx_runtime_1.jsx)("div", { className: "h-2", children: error ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xs-light", color: "text-error", children: error })) : null })] })));
10
8
  //# sourceMappingURL=InputControl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputControl.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/InputControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oDAAiD;AACjD,iDAA8C;AAWjC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IACvD,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACvB,uBAAC,aAAK,IACJ,IAAI,EAAC,MAAM,gBACC,KAAK,EACjB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACd,EACF,gCAAK,SAAS,EAAC,KAAK,YAClB,uBAAC,WAAI,IAAC,IAAI,EAAC,eAAe,EAAC,KAAK,EAAC,YAAY,YAC1C,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAChB,GACH,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"InputControl.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/InputControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oDAAiD;AACjD,iDAA8C;AAWjC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAC7D,iCAAK,SAAS,EAAE,SAAS,aACvB,uBAAC,aAAK,IACJ,IAAI,EAAC,MAAM,gBACC,KAAK,EACjB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACd,EACF,gCAAK,SAAS,EAAC,KAAK,YACjB,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,eAAe,EAAC,KAAK,EAAC,YAAY,YAC1C,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,GACJ,IACF,CACP,CACF,CAAC"}