@redneckz/wildless-cms-uni-blocks 0.10.5 → 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 +303 -403
- 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/Input/InputProps.d.ts +4 -2
- 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/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/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/CurrencyInput/CurrencyInput.js +8 -14
- package/dist/ui-kit/CurrencyInput/CurrencyInput.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/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/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/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/CurrencyInput/CurrencyInput.js +8 -14
- package/lib/ui-kit/CurrencyInput/CurrencyInput.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/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 +26 -13
- 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/Input/InputProps.d.ts +4 -2
- 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/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/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/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.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/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/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/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/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.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/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/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/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/CurrencyInput/CurrencyInput.tsx +8 -16
- 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/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/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/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/CurrencyInput/CurrencyInput.tsx +8 -16
- package/src/ui-kit/Input/Input.tsx +11 -19
- package/src/ui-kit/Input/InputProps.ts +4 -2
- 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 +3 -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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { Input } from '../Input/Input';
|
|
4
|
+
import type { InputProps } from '../Input/InputProps';
|
|
5
|
+
import { normalizePhone } from './normalizePhone';
|
|
6
|
+
|
|
7
|
+
export const PhoneInput = JSX<InputProps>(({ children, onChange, ...inputProps }) => {
|
|
8
|
+
const handleChange = useCallback(
|
|
9
|
+
({ target: { value } }: { target: { value?: string } }) =>
|
|
10
|
+
onChange && onChange(normalizePhone(value || '')),
|
|
11
|
+
[onChange],
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<Input onInput={handleChange} onFocus={handleChange} {...inputProps}>
|
|
16
|
+
{children}
|
|
17
|
+
</Input>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const isPlaceholder = (_: string) => _ === '_';
|
|
2
|
+
const isDigit = (_: string) => /\d/.test(_);
|
|
3
|
+
const isWildcard = (_: string) => isPlaceholder(_) || isDigit(_);
|
|
4
|
+
|
|
5
|
+
const phonePattern = [...'+7 (___) ___-__-__'];
|
|
6
|
+
|
|
7
|
+
const firstPlaceholderIndex = phonePattern.findIndex(isPlaceholder);
|
|
8
|
+
const phoneWildcardIndicies = phonePattern.map((_, i) =>
|
|
9
|
+
isWildcard(_) ? phonePattern.slice(0, i).filter(isWildcard).length : -1,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export function normalizePhone(phone: string): string {
|
|
13
|
+
const phoneNumbers = phone.replace(/\D/g, '');
|
|
14
|
+
const applyPlaceholder = (_: string, i: number) =>
|
|
15
|
+
isDigit(_) ? _ : phoneNumbers.charAt(phoneWildcardIndicies[i]) || _;
|
|
16
|
+
|
|
17
|
+
const result = phonePattern.map(applyPlaceholder);
|
|
18
|
+
const resultLength = phoneWildcardIndicies.indexOf(phoneNumbers.length - 1) + 1;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
resultLength ? result.slice(0, Math.max(firstPlaceholderIndex, resultLength)) : result
|
|
22
|
+
).join('');
|
|
23
|
+
}
|
|
@@ -1,58 +1,53 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useBool } from '../../hooks/useBool';
|
|
3
4
|
import { useOutsideClick } from '../../hooks/useOutsideClick';
|
|
4
5
|
import { LabelProps } from '../../model/HeadlineType';
|
|
5
6
|
import { Text } from '../../ui-kit/Text/Text';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
6
8
|
import { Icon } from '../Icon/Icon';
|
|
7
9
|
|
|
8
|
-
export interface
|
|
10
|
+
export interface Option {
|
|
9
11
|
key: string;
|
|
10
|
-
text
|
|
12
|
+
text?: string;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export type SelectProps = LabelProps & {
|
|
14
16
|
className?: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
options?: Option[];
|
|
18
|
+
value?: Option;
|
|
19
|
+
valid?: boolean;
|
|
18
20
|
isBorder?: boolean;
|
|
19
21
|
placeholder?: string;
|
|
20
|
-
|
|
21
|
-
onValidate?: (value: string) => void;
|
|
22
|
+
onChange?: (value: Option) => void;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export const Select = JSX<SelectProps>(
|
|
25
26
|
({
|
|
26
27
|
className = '',
|
|
27
|
-
isBorder = true,
|
|
28
28
|
label,
|
|
29
29
|
options = [],
|
|
30
30
|
value,
|
|
31
|
-
onChange,
|
|
32
|
-
placeholder = '',
|
|
33
31
|
valid = true,
|
|
34
|
-
|
|
32
|
+
isBorder = true,
|
|
33
|
+
placeholder = '',
|
|
34
|
+
onChange,
|
|
35
35
|
}) => {
|
|
36
|
-
const [
|
|
37
|
-
const
|
|
38
|
-
const handleClickOutside = useCallback(() => setIsOpen(false), []);
|
|
39
|
-
const wrapperRef = useOutsideClick<HTMLDivElement>(handleClickOutside);
|
|
40
|
-
|
|
41
|
-
const choiceOption = (option: OptionProps) => {
|
|
42
|
-
setSelectedItem(option);
|
|
43
|
-
setIsOpen(false);
|
|
44
|
-
onChange(option);
|
|
45
|
-
onValidate && onValidate(option.text);
|
|
46
|
-
};
|
|
36
|
+
const [isOpen, { setFalse: close, toggle }] = useBool();
|
|
37
|
+
const wrapperRef = useOutsideClick<HTMLDivElement>(close);
|
|
47
38
|
|
|
48
|
-
const
|
|
39
|
+
const handleChange = useCallback(
|
|
40
|
+
(option: Option) => {
|
|
41
|
+
close();
|
|
42
|
+
onChange && onChange(option);
|
|
43
|
+
},
|
|
44
|
+
[onChange],
|
|
45
|
+
);
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
setSelectedItem(value || { key: '', text: '' });
|
|
52
|
-
}, [value]);
|
|
47
|
+
const isSelected = (option: Option) => option.key === value?.key;
|
|
53
48
|
|
|
54
49
|
return (
|
|
55
|
-
<div className={
|
|
50
|
+
<div className={className} ref={wrapperRef}>
|
|
56
51
|
{label ? (
|
|
57
52
|
<div className="mb-2">
|
|
58
53
|
<Text size="text-m" color="text-primary-text" font="font-light">
|
|
@@ -60,28 +55,28 @@ export const Select = JSX<SelectProps>(
|
|
|
60
55
|
</Text>
|
|
61
56
|
</div>
|
|
62
57
|
) : null}
|
|
63
|
-
<div className={
|
|
58
|
+
<div className={style('relative', isOpen ? 'z-20' : 'z-10')}>
|
|
64
59
|
<div
|
|
65
|
-
className={
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
className={style(
|
|
61
|
+
'text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer',
|
|
62
|
+
getBorderStyle(isBorder, valid),
|
|
63
|
+
)}
|
|
64
|
+
onClick={toggle}
|
|
68
65
|
>
|
|
69
66
|
<p className="p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap">
|
|
70
|
-
{
|
|
67
|
+
{formatOption(value) || placeholder}
|
|
71
68
|
</p>
|
|
72
69
|
<Icon
|
|
70
|
+
className={style('absolute right-3', isOpen ? '' : 'rotate-180')}
|
|
73
71
|
name="ArrowUpIcon"
|
|
74
72
|
width="16"
|
|
75
73
|
height="16"
|
|
76
|
-
className={`absolute right-3 ${isOpen ? '' : 'rotate-180'}`}
|
|
77
74
|
/>
|
|
78
75
|
</div>
|
|
79
76
|
{options?.length ? (
|
|
80
|
-
<div className={
|
|
81
|
-
<div
|
|
82
|
-
|
|
83
|
-
>
|
|
84
|
-
{options.map(renderOption(choiceOption, isOpen, isSelected))}
|
|
77
|
+
<div className={style('h-0', isOpen ? '' : 'overflow-hidden')}>
|
|
78
|
+
<div className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
79
|
+
{options.map(renderOption(handleChange, isOpen, isSelected))}
|
|
85
80
|
</div>
|
|
86
81
|
</div>
|
|
87
82
|
) : null}
|
|
@@ -91,37 +86,35 @@ export const Select = JSX<SelectProps>(
|
|
|
91
86
|
},
|
|
92
87
|
);
|
|
93
88
|
|
|
94
|
-
const renderOptionsStyle = (isOpen: boolean) => (isOpen ? '' : 'overflow-hidden');
|
|
95
|
-
|
|
96
89
|
const renderOption =
|
|
97
90
|
(
|
|
98
|
-
|
|
91
|
+
handleChange: (option: Option) => void,
|
|
99
92
|
isOpen: boolean,
|
|
100
|
-
isSelected: (option:
|
|
93
|
+
isSelected: (option: Option) => boolean,
|
|
101
94
|
) =>
|
|
102
|
-
(option:
|
|
103
|
-
|
|
95
|
+
(option: Option, i: number) =>
|
|
96
|
+
(
|
|
104
97
|
<div
|
|
105
98
|
key={String(i)}
|
|
106
99
|
onClick={() => {
|
|
107
|
-
|
|
100
|
+
handleChange(option);
|
|
108
101
|
}}
|
|
109
102
|
className="flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative"
|
|
110
103
|
>
|
|
111
|
-
<span className="min-h-6">{option
|
|
104
|
+
<span className="min-h-6">{formatOption(option)}</span>
|
|
112
105
|
<Icon
|
|
113
106
|
name="DoneSimpleIcon"
|
|
114
107
|
width="16"
|
|
115
108
|
height="16"
|
|
116
|
-
className={
|
|
117
|
-
' ',
|
|
118
|
-
)}
|
|
109
|
+
className={style('absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden')}
|
|
119
110
|
/>
|
|
120
111
|
</div>
|
|
121
112
|
);
|
|
122
|
-
};
|
|
123
113
|
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
114
|
+
const formatOption = (_?: Option): string => _?.text || _?.key || '';
|
|
115
|
+
|
|
116
|
+
const getBorderStyle = (isBorder: boolean, valid: boolean) =>
|
|
117
|
+
style(
|
|
118
|
+
isBorder ? 'border rounded-md hover:border-primary-hover' : '',
|
|
119
|
+
valid ? ' border-gray' : 'border-error',
|
|
120
|
+
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import { Text } from '../Text/Text';
|
|
3
4
|
|
|
4
5
|
interface SlideCheckboxProps {
|
|
@@ -12,25 +13,25 @@ export const SlideCheckbox = JSX<SlideCheckboxProps>(
|
|
|
12
13
|
<div
|
|
13
14
|
role={type}
|
|
14
15
|
aria-checked={value}
|
|
15
|
-
className="flex justify-start items-center w-full cursor-pointer mb-
|
|
16
|
+
className="flex justify-start items-center w-full cursor-pointer mb-3"
|
|
16
17
|
onClick={() => onChange && onChange(!value)}
|
|
17
18
|
>
|
|
18
19
|
<div
|
|
19
|
-
className={
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
className={style(
|
|
21
|
+
'relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl',
|
|
22
|
+
value ? 'bg-primary-main' : 'bg-main-divider',
|
|
23
|
+
)}
|
|
22
24
|
>
|
|
23
25
|
<div
|
|
24
|
-
className={
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
className={style(
|
|
27
|
+
'absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full',
|
|
28
|
+
value ? 'left-[50%]' : 'left-[5%]',
|
|
29
|
+
)}
|
|
27
30
|
/>
|
|
28
31
|
</div>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</Text>
|
|
33
|
-
</div>
|
|
32
|
+
<Text size="text-l" font="font-light" color="text-primary-text">
|
|
33
|
+
{text}
|
|
34
|
+
</Text>
|
|
34
35
|
</div>
|
|
35
36
|
),
|
|
36
37
|
);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidationInfo, Validator } from './validator';
|
|
2
|
+
|
|
3
|
+
export const objectValidator =
|
|
4
|
+
<VMap extends Record<string, Validator>>(validatorsMap: VMap) =>
|
|
5
|
+
<O extends Partial<{ [P in keyof VMap]: Parameters<VMap[P]>[0] }>>(o: O): ValidationInfo =>
|
|
6
|
+
(o &&
|
|
7
|
+
(Object.entries(validatorsMap).flatMap(([key, validator]) =>
|
|
8
|
+
validator(o[key]),
|
|
9
|
+
) as ValidationInfo)) ||
|
|
10
|
+
[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type ValidationMessage = string;
|
|
2
|
+
|
|
3
|
+
type ValidationSuccess = [];
|
|
4
|
+
type ValidationErr = [ValidationMessage, ...ValidationMessage[]];
|
|
5
|
+
|
|
6
|
+
export type ValidationInfo = ValidationSuccess | ValidationErr;
|
|
7
|
+
|
|
8
|
+
export type Validator<T = any> = (_: T) => ValidationInfo;
|
|
9
|
+
|
|
10
|
+
export const isValidationSuccess = (info: ValidationInfo): info is ValidationSuccess =>
|
|
11
|
+
!info?.length;
|
|
12
|
+
export const isValidationErr = (info: ValidationInfo): info is ValidationErr =>
|
|
13
|
+
Boolean(info?.length);
|
|
14
|
+
|
|
15
|
+
type Predicate<T = any> = (_: T) => boolean;
|
|
16
|
+
|
|
17
|
+
export const validator =
|
|
18
|
+
<T = any>(predicate: Predicate<T>) =>
|
|
19
|
+
(message: string): Validator<T> =>
|
|
20
|
+
(_) =>
|
|
21
|
+
predicate(_) ? [] : [message];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ValidationInfo, Validator } from './validator';
|
|
2
|
+
|
|
3
|
+
interface FieldProps<V> {
|
|
4
|
+
value?: V;
|
|
5
|
+
isDirty?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const withValidator = <V, P extends FieldProps<V> = FieldProps<V>>(
|
|
9
|
+
props: P,
|
|
10
|
+
validator: Validator<V | undefined>,
|
|
11
|
+
): P & { errors?: ValidationInfo; error?: ValidationInfo[0] } => {
|
|
12
|
+
const { value, isDirty } = props;
|
|
13
|
+
|
|
14
|
+
const errors: ValidationInfo = isDirty ? validator(value) : [];
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
...props,
|
|
18
|
+
errors,
|
|
19
|
+
error: errors[0],
|
|
20
|
+
};
|
|
21
|
+
};
|
package/tailwind.config.cjs
CHANGED
|
@@ -55,6 +55,9 @@ module.exports = {
|
|
|
55
55
|
sans: ['Ubuntu', ...defaultTheme.fontFamily.sans],
|
|
56
56
|
mohave: ['Mohave', ...defaultTheme.fontFamily.sans],
|
|
57
57
|
},
|
|
58
|
+
padding: {
|
|
59
|
+
'default': '3rem',
|
|
60
|
+
},
|
|
58
61
|
fontSize: {
|
|
59
62
|
'm-title': ['1.375rem', '1.8125rem'], // 22px 29px // Временно оставлен до готовности нового мобильного дизайна
|
|
60
63
|
'm-title-xs': ['1.0625rem', '1.375rem'], // 17px 22px // Временно оставлен до готовности нового мобильного дизайна
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import crypto from 'crypto';
|
|
2
|
-
import { createReadStream, promises as fs } from 'fs';
|
|
3
|
-
import glob from 'glob';
|
|
4
|
-
import { join, parse, relative } from 'path';
|
|
5
|
-
import { promisify } from 'util';
|
|
6
|
-
|
|
7
|
-
const findFiles = promisify(glob);
|
|
8
|
-
|
|
9
|
-
const CONTENT_DIR = './content';
|
|
10
|
-
const IMAGE_EXT_LIST = ['png', 'jpg', 'svg'];
|
|
11
|
-
const IMAGE_FIELD_KEYS = ['image', 'icon'];
|
|
12
|
-
|
|
13
|
-
export const description = 'v0.9.3';
|
|
14
|
-
|
|
15
|
-
export default async (unitPath, content) => {
|
|
16
|
-
const unitPathDir = parse(unitPath).dir;
|
|
17
|
-
replaceImgSrcRecursive(content, unitPathDir);
|
|
18
|
-
|
|
19
|
-
return { ...content };
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const getFileHash = async (filePath, algorithm = 'sha256') => {
|
|
23
|
-
return new Promise((resolve, reject) => {
|
|
24
|
-
const hash = crypto.createHash(algorithm);
|
|
25
|
-
const stream = createReadStream(filePath);
|
|
26
|
-
stream.on('error', (err) => reject(err));
|
|
27
|
-
stream.on('data', (chunk) => hash.update(chunk));
|
|
28
|
-
stream.on('end', () => resolve(hash.digest('hex')));
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const getFilesHashMap = async (paths) => {
|
|
33
|
-
let fileHashMap = {};
|
|
34
|
-
for (const filePath of paths) {
|
|
35
|
-
const fileStat = await fs.lstat(filePath);
|
|
36
|
-
if (!fileStat.isFile()) {
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
fileHashMap[filePath] = await getFileHash(filePath);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return fileHashMap;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const getFileHashInfo = async () => {
|
|
46
|
-
const contentFiles = await findFiles(`${CONTENT_DIR}/**/*.@(${IMAGE_EXT_LIST.join('|')})`);
|
|
47
|
-
const filesHashMap = await getFilesHashMap(contentFiles);
|
|
48
|
-
const filesGroupByHash = Object.entries(filesHashMap).reduce(
|
|
49
|
-
(entryMap, [filePath, hash]) => entryMap.set(hash, [...(entryMap.get(hash) || []), filePath]),
|
|
50
|
-
new Map(),
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
filesGroupByHash.forEach((value) => value.sort());
|
|
54
|
-
|
|
55
|
-
return [filesHashMap, filesGroupByHash];
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const [filesHashMap, filesGroupByHash] = await getFileHashInfo();
|
|
59
|
-
|
|
60
|
-
const isObject = (value) => {
|
|
61
|
-
return !!(value && typeof value === 'object' && !Array.isArray(value));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const replaceImgSrcRecursive = (node, unitPathDir) => {
|
|
65
|
-
if (isObject(node)) {
|
|
66
|
-
const entries = Object.entries(node);
|
|
67
|
-
|
|
68
|
-
for (let i = 0; i < entries.length; i += 1) {
|
|
69
|
-
const [key, childNode] = entries[i];
|
|
70
|
-
|
|
71
|
-
if (IMAGE_FIELD_KEYS.includes(key) && childNode.src) {
|
|
72
|
-
const srcPath = join(unitPathDir, childNode.src);
|
|
73
|
-
const fileHash = filesHashMap[`./${srcPath}`];
|
|
74
|
-
const filesGroup = filesGroupByHash.get(fileHash);
|
|
75
|
-
const baseFilePath = filesGroup ? filesGroup[0] : null;
|
|
76
|
-
if (baseFilePath) {
|
|
77
|
-
childNode.src = relative(unitPathDir, baseFilePath);
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
replaceImgSrcRecursive(childNode, unitPathDir);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
} else if (Array.isArray(node)) {
|
|
84
|
-
node.forEach((childNode) => {
|
|
85
|
-
replaceImgSrcRecursive(childNode, unitPathDir);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface RenderInputRangeProps {
|
|
3
|
-
label: string;
|
|
4
|
-
value: number;
|
|
5
|
-
onChange: (value: number) => void;
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
items: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare const renderInputRange: (props: RenderInputRangeProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HandleFormStateChange } from './models';
|
|
2
|
-
interface UseFormHandlersProps<T> {
|
|
3
|
-
initialFormState: Required<T>;
|
|
4
|
-
errorsInitialState?: Partial<T>;
|
|
5
|
-
handleSubmit?: (data: Record<string, string>) => Promise<string>;
|
|
6
|
-
}
|
|
7
|
-
export declare const useForm: <T>({ initialFormState, errorsInitialState, handleSubmit, }: UseFormHandlersProps<T>) => {
|
|
8
|
-
formState: Required<T>;
|
|
9
|
-
handleChange: HandleFormStateChange<T>;
|
|
10
|
-
errors: {};
|
|
11
|
-
handleChangeErrors: (state: any) => void;
|
|
12
|
-
sendForm: (sendData: Record<string, string>) => Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validate: (key: string, value: string) => "" | "Некорректно заполненное поле";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { TextBlockContent } from './TextBlockContent';
|
|
3
|
-
export interface TextBlockProps extends TextBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const TextBlock: import("@redneckz/uni-jsx").UNIComponent<TextBlockProps, any, any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface RenderInputRangeProps {
|
|
3
|
-
label: string;
|
|
4
|
-
value: number;
|
|
5
|
-
onChange: (value: number) => void;
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
items: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare const renderInputRange: (props: RenderInputRangeProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderInputRange = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
-
const renderInputRange = (props) => ((0, jsx_runtime_1.jsxs)("div", { className: "w-1/2", children: [(0, jsx_runtime_1.jsx)("label", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", children: props.label }) }), (0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { ...props })] }));
|
|
7
|
-
exports.renderInputRange = renderInputRange;
|
|
8
|
-
//# sourceMappingURL=renderInputRange.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderInputRange.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderInputRange.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,iDAA8C;AAWvC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE,CAAC,CAChE,iCAAK,SAAS,EAAC,OAAO,aACpB,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,YAAE,KAAK,CAAC,KAAK,GAAQ,GACxC,EACR,uBAAC,uBAAU,OAAK,KAAK,GAAI,IACrB,CACP,CAAC;AAPW,QAAA,gBAAgB,oBAO3B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HandleFormStateChange } from './models';
|
|
2
|
-
interface UseFormHandlersProps<T> {
|
|
3
|
-
initialFormState: Required<T>;
|
|
4
|
-
errorsInitialState?: Partial<T>;
|
|
5
|
-
handleSubmit?: (data: Record<string, string>) => Promise<string>;
|
|
6
|
-
}
|
|
7
|
-
export declare const useForm: <T>({ initialFormState, errorsInitialState, handleSubmit, }: UseFormHandlersProps<T>) => {
|
|
8
|
-
formState: Required<T>;
|
|
9
|
-
handleChange: HandleFormStateChange<T>;
|
|
10
|
-
errors: {};
|
|
11
|
-
handleChangeErrors: (state: any) => void;
|
|
12
|
-
sendForm: (sendData: Record<string, string>) => Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useForm = void 0;
|
|
3
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
-
const validate_1 = require("./validate");
|
|
5
|
-
const useForm = ({ initialFormState, errorsInitialState, handleSubmit, }) => {
|
|
6
|
-
const [formState, setFormState] = (0, hooks_1.useState)(initialFormState);
|
|
7
|
-
const [errors, setErrors] = (0, hooks_1.useState)(errorsInitialState || {});
|
|
8
|
-
const handleChange = (0, hooks_1.useCallback)((state) => setFormState((oldState) => ({ ...oldState, ...state })), []);
|
|
9
|
-
const handleChangeErrors = (0, hooks_1.useCallback)((state) => setErrors((oldState) => ({ ...oldState, ...state })), []);
|
|
10
|
-
const sendForm = (0, hooks_1.useCallback)(async (sendData) => {
|
|
11
|
-
const errorsTemp = [];
|
|
12
|
-
const validateData = Object.keys(formState)
|
|
13
|
-
.filter((_) => Object.keys(errors).includes(_))
|
|
14
|
-
.reduce((obj, key) => {
|
|
15
|
-
obj[key] = formState[key];
|
|
16
|
-
return obj;
|
|
17
|
-
}, {});
|
|
18
|
-
for (const [key, value] of Object.entries(validateData)) {
|
|
19
|
-
const error = (0, validate_1.validate)(key, value);
|
|
20
|
-
errorsTemp.push(error);
|
|
21
|
-
handleChangeErrors({ [key]: error });
|
|
22
|
-
}
|
|
23
|
-
if (errorsTemp.some((_) => _.length !== 0)) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
handleSubmit && (await handleSubmit(sendData));
|
|
27
|
-
}, [formState]);
|
|
28
|
-
return {
|
|
29
|
-
formState,
|
|
30
|
-
handleChange,
|
|
31
|
-
errors,
|
|
32
|
-
handleChangeErrors,
|
|
33
|
-
sendForm,
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
exports.useForm = useForm;
|
|
37
|
-
//# sourceMappingURL=useForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/useForm.ts"],"names":[],"mappings":";;AAAA,uDAAoE;AAEpE,yCAAsC;AAQ/B,MAAM,OAAO,GAAG,CAAI,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,GACY,EAAE,EAAE;IAC5B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAE/D,MAAM,YAAY,GAA6B,IAAA,mBAAW,EACxD,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,EAClE,EAAE,CACH,CAAC;IAEF,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EACpC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,EAC/D,EAAE,CACH,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAC1B,KAAK,EAAE,QAAgC,EAAE,EAAE;QACzC,MAAM,UAAU,GAAa,EAAE,CAAC;QAEhC,MAAM,YAAY,GAA2B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;aAChE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;aAC9C,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACnB,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;YAE1B,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;QAET,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACvD,MAAM,KAAK,GAAG,IAAA,mBAAQ,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAEnC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,kBAAkB,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;SACtC;QAED,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE;YAC1C,OAAO;SACR;QAED,YAAY,IAAI,CAAC,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,CAAC,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO;QACL,SAAS;QACT,YAAY;QACZ,MAAM;QACN,kBAAkB;QAClB,QAAQ;KACT,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,OAAO,WAsDlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validate: (key: string, value: string) => "" | "Некорректно заполненное поле";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.validate = void 0;
|
|
3
|
-
const ERROR_EMPTY = 'Некорректно заполненное поле';
|
|
4
|
-
const validate = (key, value) => {
|
|
5
|
-
switch (key) {
|
|
6
|
-
case 'name':
|
|
7
|
-
return isName(value);
|
|
8
|
-
case 'inn':
|
|
9
|
-
return isTin(value);
|
|
10
|
-
case 'mail':
|
|
11
|
-
return isEmpty(value);
|
|
12
|
-
case 'phone':
|
|
13
|
-
return isEmpty(value);
|
|
14
|
-
default:
|
|
15
|
-
return isEmpty(value);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
exports.validate = validate;
|
|
19
|
-
const isEmpty = (value) => (value ? '' : ERROR_EMPTY);
|
|
20
|
-
const isName = (value) => (value.length > 1 ? '' : ERROR_EMPTY);
|
|
21
|
-
const isTin = (value) => (value.length === 10 || value.length === 12 ? '' : ERROR_EMPTY);
|
|
22
|
-
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/validate.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,8BAA8B,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,KAAa,EAAE,EAAE;IACrD,QAAQ,GAAG,EAAE;QACX,KAAK,MAAM;YACT,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;QACtB,KAAK,MAAM;YACT,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;QACxB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;QACxB;YACE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;KACzB;AACH,CAAC,CAAC;AAbW,QAAA,QAAQ,YAanB;AAEF,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE9D,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAExE,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,EAAE,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { TextBlockContent } from './TextBlockContent';
|
|
3
|
-
export interface TextBlockProps extends TextBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const TextBlock: import("@redneckz/uni-jsx").UNIComponent<TextBlockProps, any, any>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TextBlock = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
-
const List_1 = require("../../ui-kit/List/List");
|
|
7
|
-
exports.TextBlock = (0, uni_jsx_1.JSX)(({ title, description, iconVersion, image, className = '', items, isDotted = true }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans px-4 py-[18px] flex flex-col bg-white group-data-secondary:bg-primary-main ${className}`, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, (0, jsx_runtime_1.jsxs)("div", { className: "py-0.5 text-secondary-text group-data-secondary:text-white", children: [title ? (0, jsx_runtime_1.jsx)("div", { className: `text-l font-medium mb-1`, children: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: `text-s `, children: description }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-1 text-m", items: items, isDotted: isDotted })) : null] })] }));
|
|
9
|
-
});
|
|
10
|
-
function renderIcon() {
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)("div", { className: "rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main", children: "i" }) }));
|
|
12
|
-
}
|
|
13
|
-
function renderImage(image) {
|
|
14
|
-
return image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=TextBlock.mobile.js.map
|