@redneckz/wildless-cms-uni-blocks 0.9.16 → 0.10.0
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +372 -223
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/bundle/components/ApplicationForm/{WrapperSelect.d.ts → SelectControl.d.ts} +4 -2
- package/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{lib/components/ApplicationForm/renderSelects.d.ts → bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/{dist/components/ApplicationForm/renderBankOffices.d.ts → bundle/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/dist/components/ApplicationForm/InputControl.js +10 -0
- package/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/{lib/components/ApplicationForm/WrapperSelect.d.ts → dist/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderSelects.d.ts → dist/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{lib/components/ApplicationForm/renderBankOffices.d.ts → dist/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/dist/components/ApplicationForm/useForm.js +37 -0
- package/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/dist/components/ApplicationForm/validate.js +22 -0
- package/dist/components/ApplicationForm/validate.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +5 -3
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +4 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/RichText/RichText.js +3 -2
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +5 -3
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/lib/components/ApplicationForm/InputControl.js +8 -0
- package/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts → lib/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +5 -0
- package/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/renderSelects.d.ts → lib/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderBankOffices.d.ts → lib/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/lib/components/ApplicationForm/useForm.js +34 -0
- package/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/lib/components/ApplicationForm/validate.js +19 -0
- package/lib/components/ApplicationForm/validate.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +5 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +4 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +6 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -0
- package/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/RichText/RichText.js +3 -2
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +5 -3
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/{dist/components/ApplicationForm/WrapperSelect.d.ts → mobile/bundle/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{dist/components/ApplicationForm/renderSelects.d.ts → mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/{renderBankOffices.d.ts → renderRegionDepartment.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/useForm.js +37 -0
- package/mobile/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/validate.js +22 -0
- package/mobile/dist/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +5 -3
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +4 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +5 -3
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js +8 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/useForm.js +34 -0
- package/mobile/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/validate.js +19 -0
- package/mobile/lib/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/lib/components/Bonus/Bonus.js +5 -3
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +4 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +5 -3
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/common.css +24 -5
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/mobile/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/mobile/src/components/ApplicationForm/models.ts +6 -0
- package/mobile/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{src/components/ApplicationForm/renderSelects.tsx → mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{src/components/ApplicationForm/renderBankOffices.tsx → mobile/src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/mobile/src/components/ApplicationForm/useForm.ts +65 -0
- package/mobile/src/components/ApplicationForm/validate.ts +22 -0
- package/mobile/src/components/Bonus/Bonus.tsx +12 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +6 -2
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/mobile/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/RichText/RichText.tsx +5 -2
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +19 -4
- package/package.json +2 -2
- package/src/common.css +24 -5
- package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/src/components/ApplicationForm/models.ts +6 -0
- package/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{mobile/src/components/ApplicationForm/renderSelects.tsx → src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{mobile/src/components/ApplicationForm/renderBankOffices.tsx → src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/src/components/ApplicationForm/useForm.ts +65 -0
- package/src/components/ApplicationForm/validate.ts +22 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Bonus/Bonus.tsx +12 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +2 -1
- package/src/components/Carousel/Carousel.tsx +6 -2
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +78 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +22 -0
- package/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +14 -0
- package/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/RichText/RichText.tsx +5 -2
- package/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/src/ui-kit/Select/Select.tsx +19 -4
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +0 -18
- package/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/src/components/ApplicationForm/useFormHandlers.ts +0 -18
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { Region } from '../../hooks/useRegions';
|
|
4
2
|
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
|
-
import { Input } from '../../ui-kit/Input/Input';
|
|
6
3
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
4
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
8
5
|
import { Footnote } from './Footnote';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
import { renderBusinessCardDataOrganization } from './renderBusinessCardDataOrganization';
|
|
7
|
+
import { renderRegion } from './renderRegion';
|
|
11
8
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
12
|
-
import {
|
|
13
|
-
import { WrapperSelect } from './WrapperSelect';
|
|
9
|
+
import { useForm } from './useForm';
|
|
14
10
|
|
|
15
11
|
export interface BusinessCardFormState {
|
|
16
12
|
region: string;
|
|
@@ -20,128 +16,61 @@ export interface BusinessCardFormState {
|
|
|
20
16
|
mail: string;
|
|
21
17
|
}
|
|
22
18
|
|
|
19
|
+
const initialFormState = {
|
|
20
|
+
region: '',
|
|
21
|
+
name: '',
|
|
22
|
+
phone: '',
|
|
23
|
+
inn: '',
|
|
24
|
+
mail: '',
|
|
25
|
+
};
|
|
26
|
+
|
|
23
27
|
export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) => {
|
|
24
28
|
const { button, link, handleSubmit } = props;
|
|
25
29
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
30
|
+
const { formState, errors, handleChange, handleChangeErrors, sendForm } =
|
|
31
|
+
useForm<BusinessCardFormState>({
|
|
32
|
+
initialFormState,
|
|
33
|
+
errorsInitialState: initialFormState,
|
|
34
|
+
handleSubmit,
|
|
35
|
+
});
|
|
33
36
|
|
|
34
37
|
const { region, name, phone, inn, mail } = formState;
|
|
35
38
|
|
|
36
39
|
const regions = useGetRegions();
|
|
37
40
|
|
|
38
|
-
const
|
|
39
|
-
setFormState,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const selectedRegion = normalizeSelectedRegion(region, regions);
|
|
43
|
-
|
|
44
|
-
const onSubmit = async (e: PreventableEvent) => {
|
|
41
|
+
const onSubmit = (e: PreventableEvent) => {
|
|
45
42
|
e.preventDefault();
|
|
46
43
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}));
|
|
44
|
+
sendForm({
|
|
45
|
+
typeForm: 'bcrd',
|
|
46
|
+
region: regions.find((_) => _.code === region)?.name || '',
|
|
47
|
+
name,
|
|
48
|
+
phone,
|
|
49
|
+
inn,
|
|
50
|
+
mail,
|
|
51
|
+
});
|
|
56
52
|
};
|
|
57
53
|
|
|
58
54
|
return (
|
|
59
55
|
<form onSubmit={onSubmit} className="container">
|
|
60
56
|
{renderRegion({
|
|
61
57
|
regions,
|
|
62
|
-
region
|
|
58
|
+
region,
|
|
59
|
+
handleChange,
|
|
60
|
+
errors,
|
|
61
|
+
handleChangeErrors,
|
|
62
|
+
})}
|
|
63
|
+
{renderBusinessCardDataOrganization({
|
|
64
|
+
name,
|
|
65
|
+
phone,
|
|
66
|
+
inn,
|
|
67
|
+
mail,
|
|
63
68
|
handleChange,
|
|
69
|
+
errors,
|
|
70
|
+
handleChangeErrors,
|
|
64
71
|
})}
|
|
65
|
-
{renderDataOrganization({ name, phone, inn, mail, handleChange })}
|
|
66
72
|
{renderSubmitButton(button, 'mb-4')}
|
|
67
73
|
<Footnote link={link} />
|
|
68
74
|
</form>
|
|
69
75
|
);
|
|
70
76
|
});
|
|
71
|
-
|
|
72
|
-
interface RenderDataOrganizationProps {
|
|
73
|
-
name: string;
|
|
74
|
-
phone: string;
|
|
75
|
-
mail: string;
|
|
76
|
-
inn: string;
|
|
77
|
-
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const renderDataOrganization = ({
|
|
81
|
-
name,
|
|
82
|
-
phone,
|
|
83
|
-
mail,
|
|
84
|
-
inn,
|
|
85
|
-
handleChange,
|
|
86
|
-
}: RenderDataOrganizationProps) => (
|
|
87
|
-
<div className="flex justify-between gap-5">
|
|
88
|
-
<div className="w-1/2">
|
|
89
|
-
<Input
|
|
90
|
-
className="shrink-0 text-l w-full mb-5"
|
|
91
|
-
type="text"
|
|
92
|
-
aria-label="Контактное лицо"
|
|
93
|
-
label="Контактное лицо"
|
|
94
|
-
value={name}
|
|
95
|
-
onChange={(value) => handleChange({ name: value })}
|
|
96
|
-
/>
|
|
97
|
-
<Input
|
|
98
|
-
className="shrink-0 text-l w-full mb-5"
|
|
99
|
-
type="text"
|
|
100
|
-
aria-label="ИНН"
|
|
101
|
-
label="ИНН"
|
|
102
|
-
value={inn}
|
|
103
|
-
onChange={(value) => handleChange({ inn: value })}
|
|
104
|
-
/>
|
|
105
|
-
</div>
|
|
106
|
-
<div className="w-1/2">
|
|
107
|
-
<Input
|
|
108
|
-
className="shrink-0 text-l w-full mb-5"
|
|
109
|
-
type="text"
|
|
110
|
-
aria-label="Телефон"
|
|
111
|
-
label="Телефон"
|
|
112
|
-
value={phone}
|
|
113
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
114
|
-
/>
|
|
115
|
-
<Input
|
|
116
|
-
className="shrink-0 text-l w-full "
|
|
117
|
-
type="text"
|
|
118
|
-
aria-label="Электронная почта"
|
|
119
|
-
label="Электронная почта"
|
|
120
|
-
value={mail}
|
|
121
|
-
onChange={(value) => handleChange({ mail: value })}
|
|
122
|
-
/>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
interface RenderRegionProps {
|
|
128
|
-
regions: Region[];
|
|
129
|
-
region: string;
|
|
130
|
-
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const renderRegion = ({ regions, region, handleChange }: RenderRegionProps) => (
|
|
134
|
-
<div className="flex justify-between gap-5 mb-5">
|
|
135
|
-
<div className="w-full">
|
|
136
|
-
<WrapperSelect
|
|
137
|
-
data={regions}
|
|
138
|
-
fieldValue="code"
|
|
139
|
-
fieldLabel="name"
|
|
140
|
-
selected={region}
|
|
141
|
-
setSelected={(value) => handleChange({ region: value })}
|
|
142
|
-
label="Регион"
|
|
143
|
-
placeholder="Выберите регион"
|
|
144
|
-
/>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
);
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { useBranches } from '../../hooks/useBranches';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
5
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
6
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
8
|
-
import { MIN_CREDIT_AMOUNT
|
|
7
|
+
import { MIN_CREDIT_AMOUNT } from './CreditParameters';
|
|
9
8
|
import { Footnote } from './Footnote';
|
|
10
|
-
import {
|
|
11
|
-
import { renderBankOffices } from './renderBankOffices';
|
|
9
|
+
import { renderCreditDataOrganization } from './renderCreditDataOrganization';
|
|
12
10
|
import { renderCreditParameters } from './renderCreditParameters';
|
|
13
|
-
import {
|
|
11
|
+
import { renderRegionDepartment } from './renderRegionDepartment';
|
|
14
12
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
15
|
-
import {
|
|
13
|
+
import { useForm } from './useForm';
|
|
16
14
|
|
|
17
15
|
export interface CreditFormState {
|
|
18
16
|
amount: number;
|
|
@@ -27,76 +25,89 @@ export interface CreditFormState {
|
|
|
27
25
|
annualRevenue: string;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const initialFormState = {
|
|
29
|
+
amount: MIN_CREDIT_AMOUNT,
|
|
30
|
+
term: 12,
|
|
31
|
+
fullName: '',
|
|
32
|
+
inn: '',
|
|
33
|
+
name: '',
|
|
34
|
+
phone: '',
|
|
35
|
+
mail: '',
|
|
36
|
+
region: '',
|
|
37
|
+
department: '',
|
|
38
|
+
annualRevenue: '',
|
|
39
|
+
};
|
|
32
40
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
region: '',
|
|
42
|
-
department: '',
|
|
43
|
-
annualRevenue: '',
|
|
44
|
-
});
|
|
41
|
+
const errorsInitialState = {
|
|
42
|
+
annualRevenue: '',
|
|
43
|
+
inn: '',
|
|
44
|
+
name: '',
|
|
45
|
+
phone: '',
|
|
46
|
+
region: '',
|
|
47
|
+
department: '',
|
|
48
|
+
};
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
export const ApplicationFormCredit = JSX<ApplicationFormsProps>(
|
|
51
|
+
({ button, link, handleSubmit }) => {
|
|
52
|
+
const regions = useGetRegions();
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
const { formState, errors, handleChange, handleChangeErrors, sendForm } =
|
|
55
|
+
useForm<CreditFormState>({
|
|
56
|
+
initialFormState,
|
|
57
|
+
errorsInitialState,
|
|
58
|
+
handleSubmit,
|
|
59
|
+
});
|
|
50
60
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
61
|
+
const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } =
|
|
62
|
+
formState;
|
|
54
63
|
|
|
55
|
-
|
|
64
|
+
const branches = useBranches(region).filter((branch) => branch.address);
|
|
56
65
|
|
|
57
|
-
|
|
66
|
+
const onSubmit = (e: PreventableEvent) => {
|
|
67
|
+
e.preventDefault();
|
|
58
68
|
|
|
59
|
-
|
|
60
|
-
handleChange({
|
|
61
|
-
department: '',
|
|
62
|
-
});
|
|
63
|
-
}, [formState.region, handleChange]);
|
|
64
|
-
|
|
65
|
-
const onSubmit = async (e: PreventableEvent) => {
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
|
|
68
|
-
const partnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
|
|
69
|
-
|
|
70
|
-
handleSubmit &&
|
|
71
|
-
(await handleSubmit({
|
|
69
|
+
sendForm({
|
|
72
70
|
typeForm: 'cred',
|
|
73
71
|
fullName,
|
|
74
72
|
inn,
|
|
75
73
|
name,
|
|
76
74
|
phone,
|
|
77
75
|
mail,
|
|
78
|
-
region: regions.find((_) => _.code ===
|
|
76
|
+
region: regions.find((_) => _.code === region)?.name || '',
|
|
79
77
|
department: branches.find((_) => _.branchCode === department)?.address || '',
|
|
80
|
-
partnerComments
|
|
81
|
-
})
|
|
82
|
-
|
|
78
|
+
partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
|
|
79
|
+
});
|
|
80
|
+
};
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
82
|
+
return (
|
|
83
|
+
<form onSubmit={onSubmit} className="container">
|
|
84
|
+
<Heading headingType="h6" title="Параметры кредита" className="text-center mb-4" />
|
|
85
|
+
{renderCreditParameters({ amount, term, handleChange })}
|
|
86
|
+
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
87
|
+
{renderCreditDataOrganization({
|
|
88
|
+
fullName,
|
|
89
|
+
inn,
|
|
90
|
+
name,
|
|
91
|
+
phone,
|
|
92
|
+
mail,
|
|
93
|
+
annualRevenue,
|
|
94
|
+
handleChange,
|
|
95
|
+
errors,
|
|
96
|
+
handleChangeErrors,
|
|
97
|
+
})}
|
|
98
|
+
<Heading headingType="h6" title="Офис банка" className="text-center mb-4" />
|
|
99
|
+
{renderRegionDepartment({
|
|
100
|
+
regions,
|
|
101
|
+
region,
|
|
102
|
+
branches,
|
|
103
|
+
department,
|
|
104
|
+
handleChange,
|
|
105
|
+
errors,
|
|
106
|
+
handleChangeErrors,
|
|
107
|
+
})}
|
|
108
|
+
{renderSubmitButton(button, 'mb-4')}
|
|
109
|
+
<Footnote link={link} />
|
|
110
|
+
</form>
|
|
111
|
+
);
|
|
112
|
+
},
|
|
113
|
+
);
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
-
import { Input } from '../../ui-kit/Input/Input';
|
|
5
3
|
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
4
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
5
|
import { Footnote } from './Footnote';
|
|
8
|
-
import
|
|
6
|
+
import { InputControl } from './InputControl';
|
|
7
|
+
import type { DataOrganization } from './models';
|
|
9
8
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
10
|
-
import {
|
|
9
|
+
import { useForm } from './useForm';
|
|
10
|
+
import { validate } from './validate';
|
|
11
11
|
|
|
12
12
|
export interface DepositFormState {
|
|
13
13
|
name: string;
|
|
14
14
|
phone: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
const initialFormState = {
|
|
18
|
+
name: '',
|
|
19
|
+
phone: '',
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
18
23
|
const { button, link, handleSubmit } = props;
|
|
19
24
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
const { formState, errors, handleChange, handleChangeErrors, sendForm } =
|
|
26
|
+
useForm<DepositFormState>({
|
|
27
|
+
initialFormState,
|
|
28
|
+
errorsInitialState: initialFormState,
|
|
29
|
+
handleSubmit,
|
|
30
|
+
});
|
|
24
31
|
|
|
25
32
|
const { name, phone } = formState;
|
|
26
33
|
|
|
27
|
-
const
|
|
28
|
-
setFormState,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const onSubmit = async (e: PreventableEvent) => {
|
|
34
|
+
const onSubmit = (e: PreventableEvent) => {
|
|
32
35
|
e.preventDefault();
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}));
|
|
37
|
+
sendForm({
|
|
38
|
+
typeForm: 'dpst',
|
|
39
|
+
name,
|
|
40
|
+
phone,
|
|
41
|
+
});
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
return (
|
|
@@ -46,7 +48,13 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
|
46
48
|
title="Оставьте заявку и мы ответим на любые вопросы по депозитам"
|
|
47
49
|
className="text-center mb-4"
|
|
48
50
|
/>
|
|
49
|
-
{renderDataOrganization({
|
|
51
|
+
{renderDataOrganization({
|
|
52
|
+
name,
|
|
53
|
+
phone,
|
|
54
|
+
handleChange,
|
|
55
|
+
errors,
|
|
56
|
+
handleChangeErrors,
|
|
57
|
+
})}
|
|
50
58
|
<div className="flex justify-between items-center max-w-[560px] m-auto">
|
|
51
59
|
<div className="flex-1">
|
|
52
60
|
<Footnote link={link} />
|
|
@@ -57,29 +65,34 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
|
57
65
|
);
|
|
58
66
|
});
|
|
59
67
|
|
|
60
|
-
interface RenderDataOrganizationProps {
|
|
68
|
+
interface RenderDataOrganizationProps extends DataOrganization<DepositFormState> {
|
|
61
69
|
name: string;
|
|
62
70
|
phone: string;
|
|
63
|
-
handleChange: HandleFormStateChange<DepositFormState>;
|
|
64
71
|
}
|
|
65
72
|
|
|
66
|
-
const renderDataOrganization = ({
|
|
73
|
+
const renderDataOrganization = ({
|
|
74
|
+
name,
|
|
75
|
+
phone,
|
|
76
|
+
handleChange,
|
|
77
|
+
errors,
|
|
78
|
+
handleChangeErrors,
|
|
79
|
+
}: RenderDataOrganizationProps) => (
|
|
67
80
|
<div className="max-w-[560px] m-auto">
|
|
68
|
-
<
|
|
69
|
-
className="shrink-0 text-l w-full mb-
|
|
70
|
-
type="text"
|
|
71
|
-
aria-label="Имя"
|
|
81
|
+
<InputControl
|
|
82
|
+
className="shrink-0 text-l w-full mb-3"
|
|
72
83
|
label="Имя"
|
|
84
|
+
error={errors['name']}
|
|
73
85
|
value={name}
|
|
74
86
|
onChange={(value) => handleChange({ name: value })}
|
|
87
|
+
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
75
88
|
/>
|
|
76
|
-
<
|
|
77
|
-
className="shrink-0 text-l w-full mb-
|
|
78
|
-
type="text"
|
|
79
|
-
aria-label="Телефон"
|
|
89
|
+
<InputControl
|
|
90
|
+
className="shrink-0 text-l w-full mb-3"
|
|
80
91
|
label="Телефон"
|
|
92
|
+
error={errors['phone']}
|
|
81
93
|
value={phone}
|
|
82
94
|
onChange={(value) => handleChange({ phone: value })}
|
|
95
|
+
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
83
96
|
/>
|
|
84
97
|
</div>
|
|
85
98
|
);
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
-
import { Input } from '../../ui-kit/Input/Input';
|
|
5
3
|
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
4
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
5
|
import { Footnote } from './Footnote';
|
|
8
|
-
import type { HandleFormStateChange } from './models';
|
|
9
6
|
import { renderContacts } from './renderContacts';
|
|
10
7
|
import { renderQuestionsInterested } from './renderQuestionsInterested';
|
|
11
8
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
12
|
-
import {
|
|
9
|
+
import { renderWedDataOrganization } from './renderWedDataOrganization';
|
|
10
|
+
import { useForm } from './useForm';
|
|
13
11
|
|
|
14
12
|
export interface WedFormState {
|
|
15
13
|
fullName: string;
|
|
@@ -22,18 +20,32 @@ export interface WedFormState {
|
|
|
22
20
|
text: string;
|
|
23
21
|
}
|
|
24
22
|
|
|
23
|
+
const initialFormState = {
|
|
24
|
+
fullName: '',
|
|
25
|
+
name: '',
|
|
26
|
+
phone: '',
|
|
27
|
+
mail: '',
|
|
28
|
+
currencyControl: false,
|
|
29
|
+
documentaryOperations: false,
|
|
30
|
+
conversionOperations: false,
|
|
31
|
+
text: '',
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const errorsInitialState = {
|
|
35
|
+
fullName: '',
|
|
36
|
+
name: '',
|
|
37
|
+
phone: '',
|
|
38
|
+
mail: '',
|
|
39
|
+
text: '',
|
|
40
|
+
};
|
|
41
|
+
|
|
25
42
|
export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
26
43
|
const { button, link, handleSubmit } = props;
|
|
27
44
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
mail: '',
|
|
33
|
-
currencyControl: false,
|
|
34
|
-
documentaryOperations: false,
|
|
35
|
-
conversionOperations: false,
|
|
36
|
-
text: '',
|
|
45
|
+
const { formState, errors, handleChange, handleChangeErrors, sendForm } = useForm<WedFormState>({
|
|
46
|
+
initialFormState,
|
|
47
|
+
errorsInitialState,
|
|
48
|
+
handleSubmit,
|
|
37
49
|
});
|
|
38
50
|
|
|
39
51
|
const {
|
|
@@ -47,30 +59,31 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
47
59
|
text,
|
|
48
60
|
} = formState;
|
|
49
61
|
|
|
50
|
-
const
|
|
51
|
-
setFormState,
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const onSubmit = async (e: PreventableEvent) => {
|
|
62
|
+
const onSubmit = (e: PreventableEvent) => {
|
|
55
63
|
e.preventDefault();
|
|
56
64
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
mail,
|
|
66
|
-
partnerComments,
|
|
67
|
-
}));
|
|
65
|
+
sendForm({
|
|
66
|
+
typeForm: 'kved',
|
|
67
|
+
fullName,
|
|
68
|
+
name,
|
|
69
|
+
phone,
|
|
70
|
+
mail,
|
|
71
|
+
partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
|
|
72
|
+
});
|
|
68
73
|
};
|
|
69
74
|
|
|
70
75
|
return (
|
|
71
76
|
<form onSubmit={onSubmit} className="container">
|
|
72
77
|
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
73
|
-
{
|
|
78
|
+
{renderWedDataOrganization({
|
|
79
|
+
fullName,
|
|
80
|
+
name,
|
|
81
|
+
phone,
|
|
82
|
+
mail,
|
|
83
|
+
handleChange,
|
|
84
|
+
errors,
|
|
85
|
+
handleChangeErrors,
|
|
86
|
+
})}
|
|
74
87
|
<Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
|
|
75
88
|
{renderQuestionsInterested({
|
|
76
89
|
currencyControl,
|
|
@@ -92,66 +105,3 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
92
105
|
</form>
|
|
93
106
|
);
|
|
94
107
|
});
|
|
95
|
-
|
|
96
|
-
interface RenderDataOrganizationProps {
|
|
97
|
-
fullName: string;
|
|
98
|
-
name: string;
|
|
99
|
-
phone: string;
|
|
100
|
-
mail: string;
|
|
101
|
-
handleChange: HandleFormStateChange<WedFormState>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const renderDataOrganization = ({
|
|
105
|
-
fullName,
|
|
106
|
-
name,
|
|
107
|
-
phone,
|
|
108
|
-
mail,
|
|
109
|
-
handleChange,
|
|
110
|
-
}: RenderDataOrganizationProps) => (
|
|
111
|
-
<div>
|
|
112
|
-
<div className="flex justify-between gap-5 mb-5">
|
|
113
|
-
<div className="w-1/2">
|
|
114
|
-
<Input
|
|
115
|
-
className="shrink-0 text-l w-full"
|
|
116
|
-
type="text"
|
|
117
|
-
aria-label="Наименование организации"
|
|
118
|
-
label="Наименование организации"
|
|
119
|
-
value={fullName}
|
|
120
|
-
onChange={(value) => handleChange({ fullName: value })}
|
|
121
|
-
/>
|
|
122
|
-
</div>
|
|
123
|
-
<div className="w-1/2">
|
|
124
|
-
<Input
|
|
125
|
-
className="shrink-0 text-l w-full"
|
|
126
|
-
type="text"
|
|
127
|
-
aria-label="ФИО"
|
|
128
|
-
label="ФИО"
|
|
129
|
-
value={name}
|
|
130
|
-
onChange={(value) => handleChange({ name: value })}
|
|
131
|
-
/>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
<div className="flex justify-between gap-5 mb-7">
|
|
135
|
-
<div className="w-1/2">
|
|
136
|
-
<Input
|
|
137
|
-
className="shrink-0 text-l w-full"
|
|
138
|
-
type="text"
|
|
139
|
-
aria-label="Телефон"
|
|
140
|
-
label="Телефон"
|
|
141
|
-
value={phone}
|
|
142
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
143
|
-
/>
|
|
144
|
-
</div>
|
|
145
|
-
<div className="w-1/2">
|
|
146
|
-
<Input
|
|
147
|
-
className="shrink-0 text-l w-full"
|
|
148
|
-
type="text"
|
|
149
|
-
aria-label="Электронная почта"
|
|
150
|
-
label="Электронная почта"
|
|
151
|
-
value={mail}
|
|
152
|
-
onChange={(value) => handleChange({ mail: value })}
|
|
153
|
-
/>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
);
|