@redneckz/wildless-cms-uni-blocks 0.9.16 → 0.10.1
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.10.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +405 -246
- 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/components/Footer/FooterContent.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/bundle/components/Tile/TileContent.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 +4 -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/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- 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/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.js +3 -2
- package/dist/components/ProductTile/renderImage.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.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/components/Tile/Tile.js +5 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -0
- 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 +4 -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/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- 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/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.js +3 -2
- package/lib/components/ProductTile/renderImage.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.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/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/components/Tile/Tile.js +5 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -0
- 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 +7 -7
- 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/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/bundle/components/Tile/TileContent.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/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- 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/Footer/FooterContent.d.ts +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/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.js +3 -2
- package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.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/components/Tile/Tile.js +5 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
- 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/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- 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/Footer/FooterContent.d.ts +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/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.js +3 -2
- package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.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/components/Tile/Tile.js +5 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
- 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/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- 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/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Headline/Headline.tsx +1 -5
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/mobile/src/components/Tile/Tile.example.json +2 -1
- package/mobile/src/components/Tile/Tile.tsx +26 -17
- package/mobile/src/components/Tile/TileContent.ts +2 -0
- 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 +4 -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/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- 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/Footer/FooterContent.ts +1 -1
- package/src/components/Headline/Headline.tsx +1 -5
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
- package/src/components/ProductBlock/ProductBlock.tsx +5 -6
- package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
- package/src/components/ProductTile/ProductTile.tsx +11 -6
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/ProductTile/renderImage.tsx +3 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -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/Tile/Tile.example.json +2 -1
- package/src/components/Tile/Tile.fixture.tsx +5 -0
- package/src/components/Tile/Tile.tsx +26 -17
- package/src/components/Tile/TileContent.ts +2 -0
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"path": "lib/common.css"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"limit": "
|
|
192
|
+
"limit": "55 kB",
|
|
193
193
|
"path": "bundle/bundle.umd.min.js"
|
|
194
194
|
}
|
|
195
195
|
],
|
package/src/common.css
CHANGED
|
@@ -17,6 +17,7 @@ html {
|
|
|
17
17
|
/* Private clients | Green */
|
|
18
18
|
[data-theme='pc'] {
|
|
19
19
|
--color-primary-main: var(--color-green-dark);
|
|
20
|
+
--color-primary-divider: 235, 237, 240;
|
|
20
21
|
--color-primary-hover: 36, 131, 65;
|
|
21
22
|
--color-primary-active: 36, 95, 52;
|
|
22
23
|
--color-secondary-hover: 36, 131, 65;
|
|
@@ -242,29 +243,47 @@ html {
|
|
|
242
243
|
|
|
243
244
|
.md-container a {
|
|
244
245
|
@apply text-primary-main;
|
|
246
|
+
font-weight: 400;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
.md-container strong {
|
|
248
250
|
@apply font-bold;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
|
-
.striped
|
|
253
|
+
.striped.md-container table {
|
|
252
254
|
width: 100%;
|
|
253
255
|
table-layout: fixed;
|
|
254
256
|
text-align: left;
|
|
255
257
|
}
|
|
256
|
-
.striped
|
|
258
|
+
.striped.md-container table thead,
|
|
259
|
+
.horizontal-separator.md-container table thead {
|
|
257
260
|
color: rgb(var(--color-secondary-text));
|
|
258
261
|
}
|
|
259
262
|
|
|
260
|
-
.striped
|
|
261
|
-
.striped
|
|
263
|
+
.striped.md-container table td,
|
|
264
|
+
.striped.md-container table th {
|
|
262
265
|
padding: 8px 14px 5px;
|
|
263
266
|
}
|
|
264
267
|
|
|
265
|
-
.striped
|
|
268
|
+
.striped.md-container table tbody tr:nth-child(2n-1) {
|
|
266
269
|
background-color: rgb(var(--color-secondary-light));
|
|
267
270
|
}
|
|
271
|
+
|
|
272
|
+
.horizontal-separator.md-container table {
|
|
273
|
+
width: 100%;
|
|
274
|
+
text-align: left;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.horizontal-separator.md-container table td,
|
|
278
|
+
.horizontal-separator.md-container table th {
|
|
279
|
+
padding: 12px 8px 12px 0;
|
|
280
|
+
font-size: 18px;
|
|
281
|
+
min-width: 116px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.horizontal-separator.md-container table tr {
|
|
285
|
+
border-bottom: 1px solid rgb(var(--color-primary-divider));
|
|
286
|
+
}
|
|
268
287
|
}
|
|
269
288
|
|
|
270
289
|
/*
|
|
@@ -31,10 +31,10 @@ export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
|
|
|
31
31
|
const [responceType, setResponseType] = useState<'OK' | 'Fail' | ''>('');
|
|
32
32
|
|
|
33
33
|
const handleSubmit = useCallback(async (data: Record<string, string>) => {
|
|
34
|
-
const status = await API.send(data);
|
|
35
|
-
setResponseType(status
|
|
34
|
+
const status = (await API.send(data)) ? 'OK' : 'Fail';
|
|
35
|
+
setResponseType(status);
|
|
36
36
|
|
|
37
|
-
return
|
|
37
|
+
return status;
|
|
38
38
|
}, []);
|
|
39
39
|
|
|
40
40
|
return (
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, 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 { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
|
-
import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
8
5
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
9
6
|
import { Footnote } from './Footnote';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { renderSelects } from './renderSelects';
|
|
7
|
+
import { renderAcquiringDataOrganization } from './renderAcquiringDataOrganization';
|
|
8
|
+
import { renderAcquiringRegion } from './renderAcquiringRegion';
|
|
13
9
|
import { renderSlideCheckboxes } from './renderSlideCheckboxes';
|
|
14
10
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
15
|
-
import {
|
|
11
|
+
import { useForm } from './useForm';
|
|
16
12
|
|
|
17
13
|
export interface AcquiringFormState {
|
|
18
14
|
acquiringType: string;
|
|
@@ -25,67 +21,76 @@ export interface AcquiringFormState {
|
|
|
25
21
|
posTerminal: boolean;
|
|
26
22
|
}
|
|
27
23
|
|
|
24
|
+
const initialFormState = {
|
|
25
|
+
acquiringType: 'Торговый эквайринг',
|
|
26
|
+
region: '',
|
|
27
|
+
fullName: '',
|
|
28
|
+
inn: '',
|
|
29
|
+
name: '',
|
|
30
|
+
phone: '',
|
|
31
|
+
onlineСheckout: false,
|
|
32
|
+
posTerminal: false,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const errorsInitialState = {
|
|
36
|
+
acquiringType: '',
|
|
37
|
+
region: '',
|
|
38
|
+
fullName: '',
|
|
39
|
+
inn: '',
|
|
40
|
+
name: '',
|
|
41
|
+
phone: '',
|
|
42
|
+
};
|
|
43
|
+
|
|
28
44
|
export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
|
|
29
45
|
const { button, link, handleSubmit } = props;
|
|
30
46
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
phone: '',
|
|
38
|
-
onlineСheckout: false,
|
|
39
|
-
posTerminal: false,
|
|
40
|
-
});
|
|
47
|
+
const { formState, errors, handleChange, handleChangeErrors, sendForm } =
|
|
48
|
+
useForm<AcquiringFormState>({
|
|
49
|
+
initialFormState,
|
|
50
|
+
errorsInitialState,
|
|
51
|
+
handleSubmit,
|
|
52
|
+
});
|
|
41
53
|
|
|
42
54
|
const { acquiringType, region, fullName, inn, name, phone, onlineСheckout, posTerminal } =
|
|
43
55
|
formState;
|
|
44
56
|
|
|
45
57
|
const regions = useGetRegions();
|
|
46
58
|
|
|
47
|
-
const
|
|
48
|
-
setFormState,
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const selectedRegion = normalizeSelectedRegion(region, regions);
|
|
52
|
-
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
setFormState((oldState) => ({
|
|
55
|
-
...oldState,
|
|
56
|
-
acquiringType:
|
|
57
|
-
ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.name ? ACQUIRING_TYPES[0].name : '',
|
|
58
|
-
}));
|
|
59
|
-
}, []);
|
|
60
|
-
|
|
61
|
-
const onSubmit = async (e: PreventableEvent) => {
|
|
59
|
+
const onSubmit = (e: PreventableEvent) => {
|
|
62
60
|
e.preventDefault();
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
name,
|
|
74
|
-
phone,
|
|
75
|
-
}));
|
|
62
|
+
sendForm({
|
|
63
|
+
typeForm: 'acqr',
|
|
64
|
+
region: regions.find((_) => _.code === region)?.name || '',
|
|
65
|
+
partnerComments: `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`,
|
|
66
|
+
fullName,
|
|
67
|
+
inn,
|
|
68
|
+
name,
|
|
69
|
+
phone,
|
|
70
|
+
});
|
|
76
71
|
};
|
|
77
72
|
|
|
78
73
|
return (
|
|
79
74
|
<form onSubmit={onSubmit} className="container">
|
|
80
75
|
<Heading headingType="h6" title="Вид эквайринга и регион" className="text-center mb-4" />
|
|
81
|
-
{
|
|
76
|
+
{renderAcquiringRegion({
|
|
82
77
|
acquiringType,
|
|
83
78
|
regions,
|
|
84
|
-
region
|
|
79
|
+
region,
|
|
85
80
|
handleChange,
|
|
81
|
+
errors,
|
|
82
|
+
handleChangeErrors,
|
|
86
83
|
})}
|
|
87
84
|
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
88
|
-
{
|
|
85
|
+
{renderAcquiringDataOrganization({
|
|
86
|
+
fullName,
|
|
87
|
+
inn,
|
|
88
|
+
name,
|
|
89
|
+
phone,
|
|
90
|
+
handleChange,
|
|
91
|
+
errors,
|
|
92
|
+
handleChangeErrors,
|
|
93
|
+
})}
|
|
89
94
|
{renderSlideCheckboxes({
|
|
90
95
|
onlineСheckout,
|
|
91
96
|
posTerminal,
|
|
@@ -96,58 +101,3 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
|
|
|
96
101
|
</form>
|
|
97
102
|
);
|
|
98
103
|
});
|
|
99
|
-
|
|
100
|
-
interface RenderDataOrganizationProps {
|
|
101
|
-
fullName: string;
|
|
102
|
-
inn: string;
|
|
103
|
-
name: string;
|
|
104
|
-
phone: string;
|
|
105
|
-
handleChange: HandleFormStateChange<AcquiringFormState>;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const renderDataOrganization = ({
|
|
109
|
-
fullName,
|
|
110
|
-
inn,
|
|
111
|
-
name,
|
|
112
|
-
phone,
|
|
113
|
-
handleChange,
|
|
114
|
-
}: RenderDataOrganizationProps) => (
|
|
115
|
-
<div className="flex justify-between gap-5 mb-5">
|
|
116
|
-
<div className="w-1/2">
|
|
117
|
-
<Input
|
|
118
|
-
className="shrink-0 text-l w-full mb-5"
|
|
119
|
-
type="text"
|
|
120
|
-
aria-label="Наименование организации"
|
|
121
|
-
label="Наименование организации"
|
|
122
|
-
value={fullName}
|
|
123
|
-
onChange={(value) => handleChange({ fullName: value })}
|
|
124
|
-
/>
|
|
125
|
-
<Input
|
|
126
|
-
className="shrink-0 text-l w-full"
|
|
127
|
-
type="text"
|
|
128
|
-
aria-label="Контактное лицо"
|
|
129
|
-
label="Контактное лицо"
|
|
130
|
-
value={name}
|
|
131
|
-
onChange={(value) => handleChange({ name: value })}
|
|
132
|
-
/>
|
|
133
|
-
</div>
|
|
134
|
-
<div className="w-1/2">
|
|
135
|
-
<Input
|
|
136
|
-
className="shrink-0 text-l w-full mb-5"
|
|
137
|
-
type="text"
|
|
138
|
-
label="ИНН"
|
|
139
|
-
aria-label="ИНН"
|
|
140
|
-
value={inn}
|
|
141
|
-
onChange={(value) => handleChange({ inn: value })}
|
|
142
|
-
/>
|
|
143
|
-
<Input
|
|
144
|
-
className="shrink-0 text-l w-full"
|
|
145
|
-
type="text"
|
|
146
|
-
label="Телефон"
|
|
147
|
-
aria-label="Телефон"
|
|
148
|
-
value={phone}
|
|
149
|
-
onChange={(value) => handleChange({ phone: value })}
|
|
150
|
-
/>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
);
|
|
@@ -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
|
+
);
|