@redneckz/wildless-cms-uni-blocks 0.10.4 → 0.10.6
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.
- package/bin/migration-scripts/0.9.9.js +8 -6
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +323 -411
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
- package/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/bundle/components/ApplicationForm/models.d.ts +0 -6
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/validators.d.ts +4 -0
- package/bundle/components/Filtration/renderFormItem.d.ts +2 -2
- package/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/bundle/hooks/useForm.d.ts +13 -12
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/bundle/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +4 -2
- package/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/bundle/ui-kit/Select/Select.d.ts +6 -7
- package/bundle/validation/and.d.ts +2 -0
- package/bundle/validation/objectValidator.d.ts +2 -0
- package/bundle/validation/pattern.d.ts +1 -0
- package/bundle/validation/required.d.ts +1 -0
- package/bundle/validation/validator.d.ts +10 -0
- package/bundle/validation/withValidator.d.ts +10 -0
- package/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/dist/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/dist/components/ApplicationForm/CreditFormState.js +2 -0
- package/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/dist/components/ApplicationForm/CreditParameters.js +5 -5
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/dist/components/ApplicationForm/DepositFormState.js +2 -0
- package/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/dist/components/ApplicationForm/InputControl.d.ts +4 -5
- package/dist/components/ApplicationForm/InputControl.js +1 -3
- package/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +4 -4
- package/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/dist/components/ApplicationForm/SelectControl.js +1 -7
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/dist/components/ApplicationForm/WedFormState.js +2 -0
- package/dist/components/ApplicationForm/WedFormState.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +0 -6
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/dist/components/ApplicationForm/renderRegion.js +3 -2
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/validators.d.ts +4 -0
- package/dist/components/ApplicationForm/validators.js +11 -0
- package/dist/components/ApplicationForm/validators.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.mobile.js +5 -1
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Filtration/Filtration.js +3 -2
- package/dist/components/Filtration/Filtration.js.map +1 -1
- package/dist/components/Filtration/renderFormItem.d.ts +2 -2
- package/dist/components/Filtration/renderFormItem.js +4 -4
- package/dist/components/Filtration/renderFormItem.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +8 -4
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/hooks/useForm.d.ts +13 -12
- package/dist/hooks/useForm.js +31 -8
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +9 -4
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js +22 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/Dialog/CloseButton.js +1 -1
- package/dist/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.js +2 -2
- package/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +4 -11
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +4 -2
- package/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +6 -7
- package/dist/ui-kit/Select/Select.js +16 -25
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/dist/validation/and.d.ts +2 -0
- package/dist/validation/and.js +5 -0
- package/dist/validation/and.js.map +1 -0
- package/dist/validation/objectValidator.d.ts +2 -0
- package/dist/validation/objectValidator.js +7 -0
- package/dist/validation/objectValidator.js.map +1 -0
- package/dist/validation/pattern.d.ts +1 -0
- package/dist/validation/pattern.js +6 -0
- package/dist/validation/pattern.js.map +1 -0
- package/dist/validation/required.d.ts +1 -0
- package/dist/validation/required.js +5 -0
- package/dist/validation/required.js.map +1 -0
- package/dist/validation/validator.d.ts +10 -0
- package/dist/validation/validator.js +9 -0
- package/dist/validation/validator.js.map +1 -0
- package/dist/validation/withValidator.d.ts +10 -0
- package/dist/validation/withValidator.js +13 -0
- package/dist/validation/withValidator.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/lib/components/ApplicationForm/CreditFormState.js +2 -0
- package/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/lib/components/ApplicationForm/CreditParameters.js +5 -5
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/lib/components/ApplicationForm/DepositFormState.js +2 -0
- package/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/lib/components/ApplicationForm/InputControl.d.ts +4 -5
- package/lib/components/ApplicationForm/InputControl.js +1 -3
- package/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +4 -4
- package/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/lib/components/ApplicationForm/SelectControl.js +1 -7
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/lib/components/ApplicationForm/WedFormState.js +2 -0
- package/lib/components/ApplicationForm/WedFormState.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +0 -6
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/lib/components/ApplicationForm/renderRegion.js +3 -2
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/validators.d.ts +4 -0
- package/lib/components/ApplicationForm/validators.js +9 -0
- package/lib/components/ApplicationForm/validators.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.mobile.js +5 -1
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Filtration/Filtration.js +3 -2
- package/lib/components/Filtration/Filtration.js.map +1 -1
- package/lib/components/Filtration/renderFormItem.d.ts +2 -2
- package/lib/components/Filtration/renderFormItem.js +4 -4
- package/lib/components/Filtration/renderFormItem.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +0 -1
- package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +9 -0
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +6 -2
- package/lib/components/TextBlock/TextBlock.js +8 -4
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +8 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/hooks/useForm.d.ts +13 -12
- package/lib/hooks/useForm.js +31 -8
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +9 -4
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js +20 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/Dialog/CloseButton.js +1 -1
- package/lib/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.js +2 -2
- package/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +4 -11
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +4 -2
- package/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +6 -7
- package/lib/ui-kit/Select/Select.js +17 -26
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/lib/validation/and.d.ts +2 -0
- package/lib/validation/and.js +2 -0
- package/lib/validation/and.js.map +1 -0
- package/lib/validation/objectValidator.d.ts +2 -0
- package/lib/validation/objectValidator.js +4 -0
- package/lib/validation/objectValidator.js.map +1 -0
- package/lib/validation/pattern.d.ts +1 -0
- package/lib/validation/pattern.js +3 -0
- package/lib/validation/pattern.js.map +1 -0
- package/lib/validation/required.d.ts +1 -0
- package/lib/validation/required.js +3 -0
- package/lib/validation/required.js.map +1 -0
- package/lib/validation/validator.d.ts +10 -0
- package/lib/validation/validator.js +4 -0
- package/lib/validation/validator.js.map +1 -0
- package/lib/validation/withValidator.d.ts +10 -0
- package/lib/validation/withValidator.js +10 -0
- package/lib/validation/withValidator.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +50 -18
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/bundle/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/bundle/hooks/useForm.d.ts +13 -12
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/bundle/validation/and.d.ts +2 -0
- package/mobile/bundle/validation/objectValidator.d.ts +2 -0
- package/mobile/bundle/validation/pattern.d.ts +1 -0
- package/mobile/bundle/validation/required.d.ts +1 -0
- package/mobile/bundle/validation/validator.d.ts +10 -0
- package/mobile/bundle/validation/withValidator.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +5 -5
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/DepositFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/dist/components/ApplicationForm/InputControl.js +1 -3
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +4 -4
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -7
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/WedFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/WedFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/dist/components/ApplicationForm/renderRegion.js +3 -2
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/validators.js +11 -0
- package/mobile/dist/components/ApplicationForm/validators.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +5 -1
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Filtration/Filtration.js +3 -2
- package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
- package/mobile/dist/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/dist/components/Filtration/renderFormItem.js +4 -4
- package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +14 -9
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/hooks/useForm.d.ts +13 -12
- package/mobile/dist/hooks/useForm.js +31 -8
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +9 -4
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +22 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/CloseButton.js +1 -1
- package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js +2 -2
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +4 -11
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/dist/ui-kit/Select/Select.js +16 -25
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/dist/validation/and.d.ts +2 -0
- package/mobile/dist/validation/and.js +5 -0
- package/mobile/dist/validation/and.js.map +1 -0
- package/mobile/dist/validation/objectValidator.d.ts +2 -0
- package/mobile/dist/validation/objectValidator.js +7 -0
- package/mobile/dist/validation/objectValidator.js.map +1 -0
- package/mobile/dist/validation/pattern.d.ts +1 -0
- package/mobile/dist/validation/pattern.js +6 -0
- package/mobile/dist/validation/pattern.js.map +1 -0
- package/mobile/dist/validation/required.d.ts +1 -0
- package/mobile/dist/validation/required.js +5 -0
- package/mobile/dist/validation/required.js.map +1 -0
- package/mobile/dist/validation/validator.d.ts +10 -0
- package/mobile/dist/validation/validator.js +9 -0
- package/mobile/dist/validation/validator.js.map +1 -0
- package/mobile/dist/validation/withValidator.d.ts +10 -0
- package/mobile/dist/validation/withValidator.js +13 -0
- package/mobile/dist/validation/withValidator.js.map +1 -0
- package/mobile/lib/common.css +1 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +5 -5
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/DepositFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/lib/components/ApplicationForm/InputControl.js +1 -3
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +4 -4
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -7
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/WedFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/WedFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/lib/components/ApplicationForm/renderRegion.js +3 -2
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/validators.js +9 -0
- package/mobile/lib/components/ApplicationForm/validators.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +5 -1
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Filtration/Filtration.js +3 -2
- package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
- package/mobile/lib/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/lib/components/Filtration/renderFormItem.js +4 -4
- package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +14 -9
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/hooks/useForm.d.ts +13 -12
- package/mobile/lib/hooks/useForm.js +31 -8
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +9 -4
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +20 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/CloseButton.js +1 -1
- package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js +2 -2
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +4 -11
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/lib/ui-kit/Select/Select.js +17 -26
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/lib/validation/and.d.ts +2 -0
- package/mobile/lib/validation/and.js +2 -0
- package/mobile/lib/validation/and.js.map +1 -0
- package/mobile/lib/validation/objectValidator.d.ts +2 -0
- package/mobile/lib/validation/objectValidator.js +4 -0
- package/mobile/lib/validation/objectValidator.js.map +1 -0
- package/mobile/lib/validation/pattern.d.ts +1 -0
- package/mobile/lib/validation/pattern.js +3 -0
- package/mobile/lib/validation/pattern.js.map +1 -0
- package/mobile/lib/validation/required.d.ts +1 -0
- package/mobile/lib/validation/required.js +3 -0
- package/mobile/lib/validation/required.js.map +1 -0
- package/mobile/lib/validation/validator.d.ts +10 -0
- package/mobile/lib/validation/validator.js +4 -0
- package/mobile/lib/validation/validator.js.map +1 -0
- package/mobile/lib/validation/withValidator.d.ts +10 -0
- package/mobile/lib/validation/withValidator.js +10 -0
- package/mobile/lib/validation/withValidator.js.map +1 -0
- package/mobile/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
- package/mobile/src/components/ApplicationForm/CreditFormState.ts +14 -0
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +5 -5
- package/mobile/src/components/ApplicationForm/DepositFormState.ts +4 -0
- package/mobile/src/components/ApplicationForm/InputControl.tsx +21 -21
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +14 -48
- package/mobile/src/components/ApplicationForm/WedFormState.ts +10 -0
- package/mobile/src/components/ApplicationForm/models.ts +0 -8
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +10 -22
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
- package/mobile/src/components/ApplicationForm/validators.ts +17 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +5 -1
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +5 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/mobile/src/components/Filtration/Filtration.tsx +6 -4
- package/mobile/src/components/Filtration/renderFormItem.tsx +5 -5
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +3 -1
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +56 -22
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -3
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/hooks/useForm.ts +61 -13
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +39 -25
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +64 -0
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
- package/mobile/src/ui-kit/Dialog/CloseButton.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/useDialogProps.ts +2 -1
- package/mobile/src/ui-kit/Input/Input.tsx +11 -19
- package/mobile/src/ui-kit/Input/InputProps.ts +4 -2
- package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +13 -10
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
- package/mobile/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +48 -55
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
- package/mobile/src/validation/and.ts +6 -0
- package/mobile/src/validation/objectValidator.ts +10 -0
- package/mobile/src/validation/pattern.ts +4 -0
- package/mobile/src/validation/required.ts +3 -0
- package/mobile/src/validation/validator.ts +21 -0
- package/mobile/src/validation/withValidator.ts +21 -0
- package/package.json +2 -2
- package/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
- package/src/components/ApplicationForm/CreditFormState.ts +14 -0
- package/src/components/ApplicationForm/CreditParameters.ts +5 -5
- package/src/components/ApplicationForm/DepositFormState.ts +4 -0
- package/src/components/ApplicationForm/InputControl.tsx +21 -21
- package/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
- package/src/components/ApplicationForm/SelectControl.tsx +14 -48
- package/src/components/ApplicationForm/WedFormState.ts +10 -0
- package/src/components/ApplicationForm/models.ts +0 -8
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
- package/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
- package/src/components/ApplicationForm/renderRegion.tsx +10 -22
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
- package/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
- package/src/components/ApplicationForm/validators.ts +17 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +5 -1
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
- package/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/Carousel/Carousel.fixture.tsx +1 -1
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +1 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +5 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/src/components/Filtration/Filtration.tsx +6 -4
- package/src/components/Filtration/renderFormItem.tsx +5 -5
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/src/components/ImgBlock/ImgBlock.fixture.mobile.tsx +21 -0
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +5 -2
- package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +51 -0
- package/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
- package/src/components/SafeDepositRental/useGetRegions.ts +3 -1
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +43 -50
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +36 -12
- package/src/components/TextBlock/TextBlockContent.ts +1 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +90 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/hooks/useForm.ts +61 -13
- package/src/ui-kit/Checkbox/Checkbox.tsx +39 -25
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +64 -0
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
- package/src/ui-kit/Dialog/CloseButton.tsx +1 -1
- package/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/src/ui-kit/Dialog/useDialogProps.ts +2 -1
- package/src/ui-kit/Input/Input.tsx +11 -19
- package/src/ui-kit/Input/InputProps.ts +4 -2
- package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +13 -10
- package/src/ui-kit/List/List.fixture.tsx +4 -4
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
- package/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/ui-kit/RichText/RichText.fixture.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +48 -55
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
- package/src/ui-kit/Tags/Tags.fixture.tsx +1 -1
- package/src/validation/and.ts +6 -0
- package/src/validation/objectValidator.ts +10 -0
- package/src/validation/pattern.ts +4 -0
- package/src/validation/required.ts +3 -0
- package/src/validation/validator.ts +21 -0
- package/src/validation/withValidator.ts +21 -0
- package/tailwind.config.cjs +4 -0
- package/bin/migration-scripts/0.9.3.js +0 -88
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/bundle/components/ApplicationForm/useForm.d.ts +0 -14
- package/bundle/components/ApplicationForm/validate.d.ts +0 -1
- package/bundle/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/dist/components/ApplicationForm/renderInputRange.js +0 -8
- package/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/dist/components/ApplicationForm/useForm.d.ts +0 -14
- package/dist/components/ApplicationForm/useForm.js +0 -37
- package/dist/components/ApplicationForm/useForm.js.map +0 -1
- package/dist/components/ApplicationForm/validate.d.ts +0 -1
- package/dist/components/ApplicationForm/validate.js +0 -22
- package/dist/components/ApplicationForm/validate.js.map +0 -1
- package/dist/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/dist/components/TextBlock/TextBlock.mobile.js +0 -16
- package/dist/components/TextBlock/TextBlock.mobile.js.map +0 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/lib/components/ApplicationForm/renderInputRange.js +0 -5
- package/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/lib/components/ApplicationForm/useForm.d.ts +0 -14
- package/lib/components/ApplicationForm/useForm.js +0 -34
- package/lib/components/ApplicationForm/useForm.js.map +0 -1
- package/lib/components/ApplicationForm/validate.d.ts +0 -1
- package/lib/components/ApplicationForm/validate.js +0 -19
- package/lib/components/ApplicationForm/validate.js.map +0 -1
- package/lib/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/lib/components/TextBlock/TextBlock.mobile.js +0 -14
- package/lib/components/TextBlock/TextBlock.mobile.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/bundle/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/bundle/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/dist/components/ApplicationForm/useForm.js +0 -37
- package/mobile/dist/components/ApplicationForm/useForm.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/validate.js +0 -22
- package/mobile/dist/components/ApplicationForm/validate.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/lib/components/ApplicationForm/useForm.js +0 -34
- package/mobile/lib/components/ApplicationForm/useForm.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/lib/components/ApplicationForm/validate.js +0 -19
- package/mobile/lib/components/ApplicationForm/validate.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +0 -20
- package/mobile/src/components/ApplicationForm/useForm.ts +0 -65
- package/mobile/src/components/ApplicationForm/validate.ts +0 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +0 -20
- package/src/components/ApplicationForm/useForm.ts +0 -65
- package/src/components/ApplicationForm/validate.ts +0 -22
- package/src/components/TextBlock/TextBlock.mobile.tsx +0 -42
|
@@ -1,54 +1,20 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { Select, SelectProps } from '../../ui-kit/Select/Select';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
-
import type { Currency } from '../ExchangeRateTile/CurrencyProps';
|
|
5
4
|
|
|
6
|
-
interface SelectControlProps {
|
|
7
|
-
data: Record<string, any>[];
|
|
8
|
-
fieldLabel: string;
|
|
9
|
-
fieldValue?: string;
|
|
10
|
-
selected: string;
|
|
11
|
-
setSelected: (value: string) => void;
|
|
12
|
-
label: string;
|
|
13
|
-
placeholder?: string;
|
|
5
|
+
interface SelectControlProps extends SelectProps {
|
|
14
6
|
error?: string;
|
|
15
|
-
onValidate?: (value: string) => void;
|
|
16
7
|
}
|
|
17
8
|
|
|
18
|
-
export const SelectControl = JSX<SelectControlProps>(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const dataFormat: OptionProps[] = data
|
|
31
|
-
.filter(Boolean)
|
|
32
|
-
.map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
|
|
33
|
-
const selectedObj = dataFormat.find((_) => _.key === selected);
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<div>
|
|
37
|
-
<Select
|
|
38
|
-
options={dataFormat}
|
|
39
|
-
label={label}
|
|
40
|
-
valid={Boolean(!error)}
|
|
41
|
-
placeholder={placeholder || selected}
|
|
42
|
-
onChange={(_) => setSelected(_.key as Currency)}
|
|
43
|
-
value={selectedObj}
|
|
44
|
-
onValidate={onValidate}
|
|
45
|
-
/>
|
|
46
|
-
<div className="h-2">
|
|
47
|
-
<Text size="text-xs-light" color="text-error">
|
|
48
|
-
{error ? error : null}
|
|
49
|
-
</Text>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
);
|
|
53
|
-
},
|
|
54
|
-
);
|
|
9
|
+
export const SelectControl = JSX<SelectControlProps>((props) => (
|
|
10
|
+
<div>
|
|
11
|
+
<Select {...props} valid={!props.error} />
|
|
12
|
+
<div className="h-2">
|
|
13
|
+
{props.error ? (
|
|
14
|
+
<Text size="text-xs-light" color="text-error">
|
|
15
|
+
{props.error}
|
|
16
|
+
</Text>
|
|
17
|
+
) : null}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
));
|
|
@@ -3,11 +3,3 @@ export interface Select {
|
|
|
3
3
|
code?: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
export type HandleFormStateChange<T> = (state: Partial<T>) => void;
|
|
8
|
-
|
|
9
|
-
export interface DataOrganization<T> {
|
|
10
|
-
handleChange: HandleFormStateChange<T>;
|
|
11
|
-
errors: Record<string, string>;
|
|
12
|
-
handleChangeErrors: (state: any) => void;
|
|
13
|
-
}
|
|
@@ -1,59 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import { AcquiringFormState } from './AcquiringFormState';
|
|
2
4
|
import { InputControl } from './InputControl';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
6
|
+
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
fullName: string;
|
|
8
|
-
inn: string;
|
|
9
|
-
name: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const renderAcquiringDataOrganization = ({
|
|
14
|
-
fullName,
|
|
15
|
-
inn,
|
|
16
|
-
name,
|
|
17
|
-
phone,
|
|
18
|
-
handleChange,
|
|
19
|
-
errors,
|
|
20
|
-
handleChangeErrors,
|
|
21
|
-
}: RenderAcquiringDataOrganizationProps) => (
|
|
8
|
+
export const renderAcquiringDataOrganization = (field: FormFieldRegisterer<AcquiringFormState>) => (
|
|
22
9
|
<div className="flex justify-between gap-5 mb-5">
|
|
23
10
|
<div className="w-1/2">
|
|
24
11
|
<InputControl
|
|
25
12
|
className="shrink-0 text-l w-full mb-3"
|
|
26
13
|
label="Наименование организации"
|
|
27
|
-
|
|
28
|
-
value={fullName}
|
|
29
|
-
onChange={(value) => handleChange({ fullName: value })}
|
|
30
|
-
onBlur={(value) => handleChangeErrors({ fullName: validate('fullName', value) })}
|
|
14
|
+
{...withValidator(field('fullName'), defaultValidator)}
|
|
31
15
|
/>
|
|
32
16
|
<InputControl
|
|
33
17
|
className="shrink-0 text-l w-full mb-3"
|
|
34
18
|
label="Контактное лицо"
|
|
35
|
-
|
|
36
|
-
value={name}
|
|
37
|
-
onChange={(value) => handleChange({ name: value })}
|
|
38
|
-
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
19
|
+
{...withValidator(field('name'), nameValidator)}
|
|
39
20
|
/>
|
|
40
21
|
</div>
|
|
41
22
|
<div className="w-1/2">
|
|
42
23
|
<InputControl
|
|
43
24
|
className="shrink-0 text-l w-full mb-3"
|
|
44
25
|
label="ИНН"
|
|
45
|
-
|
|
46
|
-
value={inn}
|
|
47
|
-
onChange={(value) => handleChange({ inn: value })}
|
|
48
|
-
onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
|
|
26
|
+
{...withValidator(field('inn'), innValidator)}
|
|
49
27
|
/>
|
|
50
|
-
<
|
|
28
|
+
<PhoneInputControl
|
|
51
29
|
className="shrink-0 text-l w-full mb-3"
|
|
52
30
|
label="Телефон"
|
|
53
|
-
|
|
54
|
-
value={phone}
|
|
55
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
56
|
-
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
31
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
57
32
|
/>
|
|
58
33
|
</div>
|
|
59
34
|
</div>
|
|
@@ -1,53 +1,32 @@
|
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import type { AcquiringFormState } from './AcquiringFormState';
|
|
1
4
|
import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
2
|
-
import type {
|
|
3
|
-
import type { HandleFormStateChange, Select } from './models';
|
|
5
|
+
import type { Select } from './models';
|
|
4
6
|
import { SelectControl } from './SelectControl';
|
|
5
|
-
import {
|
|
7
|
+
import { defaultValidator } from './validators';
|
|
6
8
|
|
|
7
|
-
interface
|
|
8
|
-
acquiringType: string;
|
|
9
|
+
interface AcquiringRegionProps {
|
|
9
10
|
regions: Select[];
|
|
10
|
-
|
|
11
|
-
handleChange: HandleFormStateChange<AcquiringFormState>;
|
|
12
|
-
errors: Record<string, string>;
|
|
13
|
-
handleChangeErrors: (state: any) => void;
|
|
11
|
+
field: FormFieldRegisterer<AcquiringFormState>;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
|
-
export const renderAcquiringRegion = ({
|
|
17
|
-
acquiringType,
|
|
18
|
-
regions,
|
|
19
|
-
region,
|
|
20
|
-
handleChange,
|
|
21
|
-
errors,
|
|
22
|
-
handleChangeErrors,
|
|
23
|
-
}: RenderAcquiringRegionProps) => (
|
|
14
|
+
export const renderAcquiringRegion = ({ regions, field }: AcquiringRegionProps) => (
|
|
24
15
|
<div className="flex justify-between gap-5 mb-7">
|
|
25
16
|
<div className="w-1/2">
|
|
26
17
|
<SelectControl
|
|
27
|
-
data={ACQUIRING_TYPES}
|
|
28
|
-
fieldValue="name"
|
|
29
|
-
fieldLabel="name"
|
|
30
|
-
error={errors['acquiringType']}
|
|
31
|
-
selected={acquiringType}
|
|
32
|
-
setSelected={(value) => handleChange({ acquiringType: value })}
|
|
33
|
-
onValidate={(value) =>
|
|
34
|
-
handleChangeErrors({ acquiringType: validate('acquiringType', value) })
|
|
35
|
-
}
|
|
36
18
|
label="Вид эквайринга"
|
|
37
19
|
placeholder="Выберите эквайринг"
|
|
20
|
+
options={ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key }))}
|
|
21
|
+
{...withValidator(field('acquiringType'), defaultValidator)}
|
|
38
22
|
/>
|
|
39
23
|
</div>
|
|
40
24
|
<div className="w-1/2">
|
|
41
25
|
<SelectControl
|
|
42
|
-
data={regions}
|
|
43
|
-
fieldValue="code"
|
|
44
|
-
fieldLabel="name"
|
|
45
|
-
error={errors['region']}
|
|
46
|
-
selected={region}
|
|
47
|
-
setSelected={(value) => handleChange({ region: value })}
|
|
48
|
-
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
49
26
|
label="Адрес"
|
|
50
27
|
placeholder="Выберите адрес"
|
|
28
|
+
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
29
|
+
{...withValidator(field('region'), defaultValidator)}
|
|
51
30
|
/>
|
|
52
31
|
</div>
|
|
53
32
|
</div>
|
|
@@ -1,59 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import type { BusinessCardFormState } from './BusinessCardFormState';
|
|
2
4
|
import { InputControl } from './InputControl';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
6
|
+
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
mail: string;
|
|
10
|
-
inn: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const renderBusinessCardDataOrganization = ({
|
|
14
|
-
name,
|
|
15
|
-
phone,
|
|
16
|
-
mail,
|
|
17
|
-
inn,
|
|
18
|
-
handleChange,
|
|
19
|
-
errors,
|
|
20
|
-
handleChangeErrors,
|
|
21
|
-
}: RenderBusinessCardDataOrganizationProps) => (
|
|
8
|
+
export const renderBusinessCardDataOrganization = (
|
|
9
|
+
field: FormFieldRegisterer<BusinessCardFormState>,
|
|
10
|
+
) => (
|
|
22
11
|
<div className="flex justify-between gap-5">
|
|
23
12
|
<div className="w-1/2">
|
|
24
13
|
<InputControl
|
|
25
14
|
className="shrink-0 text-l w-full mb-3"
|
|
26
15
|
label="Контактное лицо"
|
|
27
|
-
|
|
28
|
-
value={name}
|
|
29
|
-
onChange={(value) => handleChange({ name: value })}
|
|
30
|
-
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
16
|
+
{...withValidator(field('name'), nameValidator)}
|
|
31
17
|
/>
|
|
32
18
|
<InputControl
|
|
33
19
|
className="shrink-0 text-l w-full mb-3"
|
|
34
20
|
label="ИНН"
|
|
35
|
-
|
|
36
|
-
value={inn}
|
|
37
|
-
onChange={(value) => handleChange({ inn: value })}
|
|
38
|
-
onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
|
|
21
|
+
{...withValidator(field('inn'), innValidator)}
|
|
39
22
|
/>
|
|
40
23
|
</div>
|
|
41
24
|
<div className="w-1/2">
|
|
42
|
-
<
|
|
25
|
+
<PhoneInputControl
|
|
43
26
|
className="shrink-0 text-l w-full mb-3"
|
|
44
27
|
label="Телефон"
|
|
45
|
-
|
|
46
|
-
value={phone}
|
|
47
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
48
|
-
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
28
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
49
29
|
/>
|
|
50
30
|
<InputControl
|
|
51
31
|
className="shrink-0 text-l w-full mb-3"
|
|
52
32
|
label="Электронная почта"
|
|
53
|
-
|
|
54
|
-
value={mail}
|
|
55
|
-
onChange={(value) => handleChange({ mail: value })}
|
|
56
|
-
onBlur={(value) => handleChangeErrors({ mail: validate('mail', value) })}
|
|
33
|
+
{...withValidator(field('mail'), defaultValidator)}
|
|
57
34
|
/>
|
|
58
35
|
</div>
|
|
59
36
|
</div>
|
|
@@ -1,75 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import type { CreditFormState } from './CreditFormState';
|
|
2
4
|
import { InputControl } from './InputControl';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
6
|
+
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
fullName: string;
|
|
8
|
-
inn: string;
|
|
9
|
-
name: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
mail: string;
|
|
12
|
-
annualRevenue: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const renderCreditDataOrganization = ({
|
|
16
|
-
fullName,
|
|
17
|
-
inn,
|
|
18
|
-
name,
|
|
19
|
-
phone,
|
|
20
|
-
mail,
|
|
21
|
-
annualRevenue,
|
|
22
|
-
handleChange,
|
|
23
|
-
errors,
|
|
24
|
-
handleChangeErrors,
|
|
25
|
-
}: RenderCreditDataOrganizationProps) => (
|
|
8
|
+
export const renderCreditDataOrganization = (field: FormFieldRegisterer<CreditFormState>) => (
|
|
26
9
|
<div className="flex justify-between gap-5 mb-7">
|
|
27
10
|
<div className="w-1/2">
|
|
28
11
|
<InputControl
|
|
29
12
|
className="shrink-0 text-l w-full mb-3"
|
|
30
13
|
label="Наименование организации"
|
|
31
|
-
|
|
32
|
-
onChange={(value) => handleChange({ fullName: value })}
|
|
14
|
+
{...field('fullName')}
|
|
33
15
|
/>
|
|
34
16
|
<InputControl
|
|
35
17
|
className="shrink-0 text-l w-full mb-3"
|
|
36
18
|
label="ИНН"
|
|
37
|
-
|
|
38
|
-
value={inn}
|
|
39
|
-
onChange={(value) => handleChange({ inn: value })}
|
|
40
|
-
onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
|
|
19
|
+
{...withValidator(field('inn'), innValidator)}
|
|
41
20
|
/>
|
|
42
|
-
<
|
|
21
|
+
<PhoneInputControl
|
|
43
22
|
className="shrink-0 text-l w-full mb-3"
|
|
44
23
|
label="Телефон"
|
|
45
|
-
|
|
46
|
-
value={phone}
|
|
47
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
48
|
-
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
24
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
49
25
|
/>
|
|
50
26
|
</div>
|
|
51
27
|
<div className="w-1/2">
|
|
52
28
|
<InputControl
|
|
53
29
|
className="shrink-0 text-l w-full mb-3"
|
|
54
30
|
label="Годовая выручка, ₽"
|
|
55
|
-
|
|
56
|
-
value={annualRevenue}
|
|
57
|
-
onChange={(value) => handleChange({ annualRevenue: value })}
|
|
58
|
-
onBlur={(value) => handleChangeErrors({ annualRevenue: validate('annualRevenue', value) })}
|
|
31
|
+
{...withValidator(field('annualRevenue'), defaultValidator)}
|
|
59
32
|
/>
|
|
60
33
|
<InputControl
|
|
61
34
|
className="shrink-0 text-l w-full mb-3"
|
|
62
35
|
label="Контактное лицо"
|
|
63
|
-
|
|
64
|
-
value={name}
|
|
65
|
-
onChange={(value) => handleChange({ name: value })}
|
|
66
|
-
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
36
|
+
{...withValidator(field('name'), nameValidator)}
|
|
67
37
|
/>
|
|
68
38
|
<InputControl
|
|
69
39
|
className="shrink-0 text-l w-full mb-3"
|
|
70
40
|
label="Электронная почта"
|
|
71
|
-
|
|
72
|
-
onChange={(value) => handleChange({ mail: value })}
|
|
41
|
+
{...field('mail')}
|
|
73
42
|
/>
|
|
74
43
|
</div>
|
|
75
44
|
</div>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import type { CreditFormState } from './CreditFormState';
|
|
2
5
|
import {
|
|
3
6
|
ITEMS_CREDIT_AMOUNT,
|
|
4
7
|
ITEMS_CREDIT_TERM,
|
|
@@ -7,36 +10,30 @@ import {
|
|
|
7
10
|
MIN_CREDIT_AMOUNT,
|
|
8
11
|
MIN_CREDIT_TERM,
|
|
9
12
|
} from './CreditParameters';
|
|
10
|
-
import type { HandleFormStateChange } from './models';
|
|
11
|
-
import { renderInputRange } from './renderInputRange';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
amount: number;
|
|
15
|
-
term: number;
|
|
16
|
-
handleChange: HandleFormStateChange<CreditFormState>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const renderCreditParameters = ({
|
|
20
|
-
amount,
|
|
21
|
-
term,
|
|
22
|
-
handleChange,
|
|
23
|
-
}: RenderCreditParametersProps) => (
|
|
14
|
+
export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormState>) => (
|
|
24
15
|
<div className="flex justify-between gap-5 mb-7">
|
|
25
|
-
|
|
26
|
-
label
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
16
|
+
<div className="w-1/2">
|
|
17
|
+
<label>
|
|
18
|
+
<Text size="text-m-light">Сумма кредита, ₽</Text>
|
|
19
|
+
</label>
|
|
20
|
+
<InputRange
|
|
21
|
+
items={ITEMS_CREDIT_AMOUNT}
|
|
22
|
+
min={MIN_CREDIT_AMOUNT}
|
|
23
|
+
max={MAX_CREDIT_AMOUNT}
|
|
24
|
+
{...field('amount')}
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
<div className="w-1/2">
|
|
28
|
+
<label>
|
|
29
|
+
<Text size="text-m-light">Срок кредита, месяцев</Text>
|
|
30
|
+
</label>
|
|
31
|
+
<InputRange
|
|
32
|
+
items={ITEMS_CREDIT_TERM}
|
|
33
|
+
min={MIN_CREDIT_TERM}
|
|
34
|
+
max={MAX_CREDIT_TERM}
|
|
35
|
+
{...field('term')}
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
41
38
|
</div>
|
|
42
39
|
);
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
1
2
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
2
|
-
import type { WedFormState } from './
|
|
3
|
-
import type { HandleFormStateChange } from './models';
|
|
3
|
+
import type { WedFormState } from './WedFormState';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
documentaryOperations: boolean;
|
|
8
|
-
conversionOperations: boolean;
|
|
9
|
-
text: string;
|
|
10
|
-
handleChange: HandleFormStateChange<WedFormState>;
|
|
11
|
-
}
|
|
5
|
+
export const renderQuestionsInterested = (field: FormFieldRegisterer<WedFormState>) => {
|
|
6
|
+
const textField = field('text');
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
text="Документарные операции"
|
|
29
|
-
checked={documentaryOperations}
|
|
30
|
-
onChange={(value) => handleChange({ documentaryOperations: value })}
|
|
31
|
-
/>
|
|
32
|
-
<Checkbox
|
|
33
|
-
text="Конверсионные операции"
|
|
34
|
-
checked={conversionOperations}
|
|
35
|
-
onChange={(value) => handleChange({ conversionOperations: value })}
|
|
8
|
+
return (
|
|
9
|
+
<div className="mb-6">
|
|
10
|
+
<div className="flex items-center mb-4 gap-6">
|
|
11
|
+
<Checkbox text="Валютный контроль" {...field('currencyControl')} />
|
|
12
|
+
<Checkbox text="Документарные операции" {...field('documentaryOperations')} />
|
|
13
|
+
<Checkbox text="Конверсионные операции" {...field('conversionOperations')} />
|
|
14
|
+
</div>
|
|
15
|
+
<textarea
|
|
16
|
+
placeholder="Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка"
|
|
17
|
+
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text"
|
|
18
|
+
value={textField.value}
|
|
19
|
+
onInput={
|
|
20
|
+
((e: { target?: { value?: string } }) =>
|
|
21
|
+
textField.onChange && textField.onChange(e.target?.value || '')) as any
|
|
22
|
+
}
|
|
36
23
|
/>
|
|
37
24
|
</div>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text"
|
|
41
|
-
value={text}
|
|
42
|
-
onChange={(e) => handleChange({ text: e.target.value })}
|
|
43
|
-
/>
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import { BusinessCardFormState } from './BusinessCardFormState';
|
|
4
|
+
import { Select } from './models';
|
|
3
5
|
import { SelectControl } from './SelectControl';
|
|
4
|
-
import {
|
|
6
|
+
import { defaultValidator } from './validators';
|
|
5
7
|
|
|
6
|
-
interface
|
|
8
|
+
interface RegionProps {
|
|
7
9
|
regions: Select[];
|
|
8
|
-
|
|
9
|
-
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
10
|
-
errors: Record<string, string>;
|
|
11
|
-
handleChangeErrors: (state: any) => void;
|
|
10
|
+
field: FormFieldRegisterer<BusinessCardFormState>;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
export const renderRegion = ({
|
|
15
|
-
regions,
|
|
16
|
-
region,
|
|
17
|
-
handleChange,
|
|
18
|
-
errors,
|
|
19
|
-
handleChangeErrors,
|
|
20
|
-
}: RenderRegionProps) => (
|
|
13
|
+
export const renderRegion = ({ regions, field }: RegionProps) => (
|
|
21
14
|
<div className="flex justify-between gap-5 mb-5">
|
|
22
15
|
<div className="w-full">
|
|
23
16
|
<SelectControl
|
|
24
|
-
data={regions}
|
|
25
|
-
fieldValue="code"
|
|
26
|
-
fieldLabel="name"
|
|
27
|
-
error={errors['region']}
|
|
28
|
-
selected={region}
|
|
29
|
-
setSelected={(value) => handleChange({ region: value })}
|
|
30
|
-
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
31
17
|
label="Регион"
|
|
32
18
|
placeholder="Выберите регион"
|
|
19
|
+
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
20
|
+
{...withValidator(field('region'), defaultValidator)}
|
|
33
21
|
/>
|
|
34
22
|
</div>
|
|
35
23
|
</div>
|
|
@@ -1,53 +1,36 @@
|
|
|
1
|
+
import { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
1
3
|
import type { Branch } from '../SafeDepositRental/useSafeBoxes';
|
|
2
|
-
import type { CreditFormState } from './
|
|
3
|
-
import type {
|
|
4
|
+
import type { CreditFormState } from './CreditFormState';
|
|
5
|
+
import type { Select } from './models';
|
|
4
6
|
import { SelectControl } from './SelectControl';
|
|
5
|
-
import {
|
|
7
|
+
import { defaultValidator } from './validators';
|
|
6
8
|
|
|
7
|
-
interface
|
|
9
|
+
interface RegionDepartmentProps {
|
|
8
10
|
regions: Select[];
|
|
9
|
-
region: string;
|
|
10
11
|
branches: Branch[];
|
|
11
|
-
|
|
12
|
-
handleChange: HandleFormStateChange<CreditFormState>;
|
|
13
|
-
errors: Record<string, string>;
|
|
14
|
-
handleChangeErrors: (state: any) => void;
|
|
12
|
+
field: FormFieldRegisterer<CreditFormState>;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
export const renderRegionDepartment = ({
|
|
18
|
-
regions,
|
|
19
|
-
region,
|
|
20
|
-
branches,
|
|
21
|
-
department,
|
|
22
|
-
handleChange,
|
|
23
|
-
errors,
|
|
24
|
-
handleChangeErrors,
|
|
25
|
-
}: RenderRegionDepartmentProps) => (
|
|
15
|
+
export const renderRegionDepartment = ({ regions, branches, field }: RegionDepartmentProps) => (
|
|
26
16
|
<div className="flex justify-between gap-5 mb-7">
|
|
27
17
|
<div className="w-1/2">
|
|
28
18
|
<SelectControl
|
|
29
|
-
data={regions}
|
|
30
|
-
fieldValue="code"
|
|
31
|
-
fieldLabel="name"
|
|
32
|
-
error={errors['region']}
|
|
33
|
-
selected={region}
|
|
34
|
-
setSelected={(value) => handleChange({ region: value, department: '' })}
|
|
35
|
-
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
36
19
|
label="Регион"
|
|
37
20
|
placeholder="Выберите регион"
|
|
21
|
+
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
22
|
+
{...withValidator(field('region'), defaultValidator)}
|
|
38
23
|
/>
|
|
39
24
|
</div>
|
|
40
25
|
<div className="w-1/2">
|
|
41
26
|
<SelectControl
|
|
42
|
-
data={branches}
|
|
43
|
-
fieldValue="branchCode"
|
|
44
|
-
fieldLabel="address"
|
|
45
|
-
error={errors['department']}
|
|
46
|
-
selected={department}
|
|
47
|
-
setSelected={(value) => handleChange({ department: value })}
|
|
48
|
-
onValidate={(value) => handleChangeErrors({ department: validate('department', value) })}
|
|
49
27
|
label="Адрес"
|
|
50
28
|
placeholder="Выберите адрес"
|
|
29
|
+
options={branches.map(({ branchCode = '', address = '' }) => ({
|
|
30
|
+
key: branchCode,
|
|
31
|
+
text: address,
|
|
32
|
+
}))}
|
|
33
|
+
{...withValidator(field('department'), defaultValidator)}
|
|
51
34
|
/>
|
|
52
35
|
</div>
|
|
53
36
|
</div>
|