@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,35 +1,51 @@
|
|
|
1
|
-
import type { AcquiringFormState } from './ApplicationFormAcquiring';
|
|
2
|
-
import { WrapperSelect } from './WrapperSelect';
|
|
3
1
|
import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
2
|
+
import type { AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
3
|
import type { HandleFormStateChange, Select } from './models';
|
|
4
|
+
import { SelectControl } from './SelectControl';
|
|
5
|
+
import { validate } from './validate';
|
|
5
6
|
|
|
6
|
-
interface
|
|
7
|
+
interface RenderAcquiringRegionProps {
|
|
7
8
|
acquiringType: string;
|
|
8
9
|
regions: Select[];
|
|
9
10
|
region: string;
|
|
10
11
|
handleChange: HandleFormStateChange<AcquiringFormState>;
|
|
12
|
+
errors: Record<string, string>;
|
|
13
|
+
handleChangeErrors: (state: any) => void;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
export const
|
|
16
|
+
export const renderAcquiringRegion = ({
|
|
17
|
+
acquiringType,
|
|
18
|
+
regions,
|
|
19
|
+
region,
|
|
20
|
+
handleChange,
|
|
21
|
+
errors,
|
|
22
|
+
handleChangeErrors,
|
|
23
|
+
}: RenderAcquiringRegionProps) => (
|
|
14
24
|
<div className="flex justify-between gap-5 mb-7">
|
|
15
25
|
<div className="w-1/2">
|
|
16
|
-
<
|
|
26
|
+
<SelectControl
|
|
17
27
|
data={ACQUIRING_TYPES}
|
|
18
28
|
fieldValue="name"
|
|
19
29
|
fieldLabel="name"
|
|
30
|
+
error={errors['acquiringType']}
|
|
20
31
|
selected={acquiringType}
|
|
21
32
|
setSelected={(value) => handleChange({ acquiringType: value })}
|
|
33
|
+
onValidate={(value) =>
|
|
34
|
+
handleChangeErrors({ acquiringType: validate('acquiringType', value) })
|
|
35
|
+
}
|
|
22
36
|
label="Вид эквайринга"
|
|
23
37
|
placeholder="Выберите эквайринг"
|
|
24
38
|
/>
|
|
25
39
|
</div>
|
|
26
40
|
<div className="w-1/2">
|
|
27
|
-
<
|
|
41
|
+
<SelectControl
|
|
28
42
|
data={regions}
|
|
29
43
|
fieldValue="code"
|
|
30
44
|
fieldLabel="name"
|
|
45
|
+
error={errors['region']}
|
|
31
46
|
selected={region}
|
|
32
47
|
setSelected={(value) => handleChange({ region: value })}
|
|
48
|
+
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
33
49
|
label="Адрес"
|
|
34
50
|
placeholder="Выберите адрес"
|
|
35
51
|
/>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
2
|
+
import { InputControl } from './InputControl';
|
|
3
|
+
import type { DataOrganization } from './models';
|
|
4
|
+
import { validate } from './validate';
|
|
5
|
+
|
|
6
|
+
interface RenderBusinessCardDataOrganizationProps extends DataOrganization<BusinessCardFormState> {
|
|
7
|
+
name: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
mail: string;
|
|
10
|
+
inn: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const renderBusinessCardDataOrganization = ({
|
|
14
|
+
name,
|
|
15
|
+
phone,
|
|
16
|
+
mail,
|
|
17
|
+
inn,
|
|
18
|
+
handleChange,
|
|
19
|
+
errors,
|
|
20
|
+
handleChangeErrors,
|
|
21
|
+
}: RenderBusinessCardDataOrganizationProps) => (
|
|
22
|
+
<div className="flex justify-between gap-5">
|
|
23
|
+
<div className="w-1/2">
|
|
24
|
+
<InputControl
|
|
25
|
+
className="shrink-0 text-l w-full mb-3"
|
|
26
|
+
label="Контактное лицо"
|
|
27
|
+
error={errors['name']}
|
|
28
|
+
value={name}
|
|
29
|
+
onChange={(value) => handleChange({ name: value })}
|
|
30
|
+
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
31
|
+
/>
|
|
32
|
+
<InputControl
|
|
33
|
+
className="shrink-0 text-l w-full mb-3"
|
|
34
|
+
label="ИНН"
|
|
35
|
+
error={errors['inn']}
|
|
36
|
+
value={inn}
|
|
37
|
+
onChange={(value) => handleChange({ inn: value })}
|
|
38
|
+
onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
41
|
+
<div className="w-1/2">
|
|
42
|
+
<InputControl
|
|
43
|
+
className="shrink-0 text-l w-full mb-3"
|
|
44
|
+
label="Телефон"
|
|
45
|
+
error={errors['phone']}
|
|
46
|
+
value={phone}
|
|
47
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
48
|
+
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
49
|
+
/>
|
|
50
|
+
<InputControl
|
|
51
|
+
className="shrink-0 text-l w-full mb-3"
|
|
52
|
+
label="Электронная почта"
|
|
53
|
+
error={errors['mail']}
|
|
54
|
+
value={mail}
|
|
55
|
+
onChange={(value) => handleChange({ mail: value })}
|
|
56
|
+
onBlur={(value) => handleChangeErrors({ mail: validate('mail', value) })}
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { CreditFormState } from './ApplicationFormCredit';
|
|
2
|
+
import { InputControl } from './InputControl';
|
|
3
|
+
import type { DataOrganization } from './models';
|
|
4
|
+
import { validate } from './validate';
|
|
5
|
+
|
|
6
|
+
interface RenderCreditDataOrganizationProps extends DataOrganization<CreditFormState> {
|
|
7
|
+
fullName: string;
|
|
8
|
+
inn: string;
|
|
9
|
+
name: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
mail: string;
|
|
12
|
+
annualRevenue: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const renderCreditDataOrganization = ({
|
|
16
|
+
fullName,
|
|
17
|
+
inn,
|
|
18
|
+
name,
|
|
19
|
+
phone,
|
|
20
|
+
mail,
|
|
21
|
+
annualRevenue,
|
|
22
|
+
handleChange,
|
|
23
|
+
errors,
|
|
24
|
+
handleChangeErrors,
|
|
25
|
+
}: RenderCreditDataOrganizationProps) => (
|
|
26
|
+
<div className="flex justify-between gap-5 mb-7">
|
|
27
|
+
<div className="w-1/2">
|
|
28
|
+
<InputControl
|
|
29
|
+
className="shrink-0 text-l w-full mb-3"
|
|
30
|
+
label="Наименование организации"
|
|
31
|
+
value={fullName}
|
|
32
|
+
onChange={(value) => handleChange({ fullName: value })}
|
|
33
|
+
/>
|
|
34
|
+
<InputControl
|
|
35
|
+
className="shrink-0 text-l w-full mb-3"
|
|
36
|
+
label="ИНН"
|
|
37
|
+
error={errors['inn']}
|
|
38
|
+
value={inn}
|
|
39
|
+
onChange={(value) => handleChange({ inn: value })}
|
|
40
|
+
onBlur={(value) => handleChangeErrors({ inn: validate('inn', value) })}
|
|
41
|
+
/>
|
|
42
|
+
<InputControl
|
|
43
|
+
className="shrink-0 text-l w-full mb-3"
|
|
44
|
+
label="Телефон"
|
|
45
|
+
error={errors['phone']}
|
|
46
|
+
value={phone}
|
|
47
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
48
|
+
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="w-1/2">
|
|
52
|
+
<InputControl
|
|
53
|
+
className="shrink-0 text-l w-full mb-3"
|
|
54
|
+
label="Годовая выручка, ₽"
|
|
55
|
+
error={errors['annualRevenue']}
|
|
56
|
+
value={annualRevenue}
|
|
57
|
+
onChange={(value) => handleChange({ annualRevenue: value })}
|
|
58
|
+
onBlur={(value) => handleChangeErrors({ annualRevenue: validate('annualRevenue', value) })}
|
|
59
|
+
/>
|
|
60
|
+
<InputControl
|
|
61
|
+
className="shrink-0 text-l w-full mb-3"
|
|
62
|
+
label="Контактное лицо"
|
|
63
|
+
error={errors['name']}
|
|
64
|
+
value={name}
|
|
65
|
+
onChange={(value) => handleChange({ name: value })}
|
|
66
|
+
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
67
|
+
/>
|
|
68
|
+
<InputControl
|
|
69
|
+
className="shrink-0 text-l w-full mb-3"
|
|
70
|
+
label="Электронная почта"
|
|
71
|
+
value={mail}
|
|
72
|
+
onChange={(value) => handleChange({ mail: value })}
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
2
|
+
import { HandleFormStateChange, Select } from './models';
|
|
3
|
+
import { SelectControl } from './SelectControl';
|
|
4
|
+
import { validate } from './validate';
|
|
5
|
+
|
|
6
|
+
interface RenderRegionProps {
|
|
7
|
+
regions: Select[];
|
|
8
|
+
region: string;
|
|
9
|
+
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
10
|
+
errors: Record<string, string>;
|
|
11
|
+
handleChangeErrors: (state: any) => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const renderRegion = ({
|
|
15
|
+
regions,
|
|
16
|
+
region,
|
|
17
|
+
handleChange,
|
|
18
|
+
errors,
|
|
19
|
+
handleChangeErrors,
|
|
20
|
+
}: RenderRegionProps) => (
|
|
21
|
+
<div className="flex justify-between gap-5 mb-5">
|
|
22
|
+
<div className="w-full">
|
|
23
|
+
<SelectControl
|
|
24
|
+
data={regions}
|
|
25
|
+
fieldValue="code"
|
|
26
|
+
fieldLabel="name"
|
|
27
|
+
error={errors['region']}
|
|
28
|
+
selected={region}
|
|
29
|
+
setSelected={(value) => handleChange({ region: value })}
|
|
30
|
+
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
31
|
+
label="Регион"
|
|
32
|
+
placeholder="Выберите регион"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
@@ -1,42 +1,51 @@
|
|
|
1
1
|
import type { Branch } from '../SafeDepositRental/useSafeBoxes';
|
|
2
2
|
import type { CreditFormState } from './ApplicationFormCredit';
|
|
3
3
|
import type { HandleFormStateChange, Select } from './models';
|
|
4
|
-
import {
|
|
4
|
+
import { SelectControl } from './SelectControl';
|
|
5
|
+
import { validate } from './validate';
|
|
5
6
|
|
|
6
|
-
interface
|
|
7
|
+
interface RenderRegionDepartmentProps {
|
|
7
8
|
regions: Select[];
|
|
8
9
|
region: string;
|
|
9
10
|
branches: Branch[];
|
|
10
11
|
department: string;
|
|
11
12
|
handleChange: HandleFormStateChange<CreditFormState>;
|
|
13
|
+
errors: Record<string, string>;
|
|
14
|
+
handleChangeErrors: (state: any) => void;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
export const
|
|
17
|
+
export const renderRegionDepartment = ({
|
|
15
18
|
regions,
|
|
16
19
|
region,
|
|
17
20
|
branches,
|
|
18
21
|
department,
|
|
19
22
|
handleChange,
|
|
20
|
-
|
|
23
|
+
errors,
|
|
24
|
+
handleChangeErrors,
|
|
25
|
+
}: RenderRegionDepartmentProps) => (
|
|
21
26
|
<div className="flex justify-between gap-5 mb-7">
|
|
22
27
|
<div className="w-1/2">
|
|
23
|
-
<
|
|
28
|
+
<SelectControl
|
|
24
29
|
data={regions}
|
|
25
30
|
fieldValue="code"
|
|
26
31
|
fieldLabel="name"
|
|
32
|
+
error={errors['region']}
|
|
27
33
|
selected={region}
|
|
28
|
-
setSelected={(value) => handleChange({ region: value })}
|
|
34
|
+
setSelected={(value) => handleChange({ region: value, department: '' })}
|
|
35
|
+
onValidate={(value) => handleChangeErrors({ region: validate('region', value) })}
|
|
29
36
|
label="Регион"
|
|
30
37
|
placeholder="Выберите регион"
|
|
31
38
|
/>
|
|
32
39
|
</div>
|
|
33
40
|
<div className="w-1/2">
|
|
34
|
-
<
|
|
41
|
+
<SelectControl
|
|
35
42
|
data={branches}
|
|
36
43
|
fieldValue="branchCode"
|
|
37
44
|
fieldLabel="address"
|
|
45
|
+
error={errors['department']}
|
|
38
46
|
selected={department}
|
|
39
47
|
setSelected={(value) => handleChange({ department: value })}
|
|
48
|
+
onValidate={(value) => handleChangeErrors({ department: validate('department', value) })}
|
|
40
49
|
label="Адрес"
|
|
41
50
|
placeholder="Выберите адрес"
|
|
42
51
|
/>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { WedFormState } from './ApplicationFormWed';
|
|
2
|
+
import { InputControl } from './InputControl';
|
|
3
|
+
import type { DataOrganization } from './models';
|
|
4
|
+
import { validate } from './validate';
|
|
5
|
+
|
|
6
|
+
interface RenderWedDataOrganizationProps extends DataOrganization<WedFormState> {
|
|
7
|
+
fullName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
mail: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const renderWedDataOrganization = ({
|
|
14
|
+
fullName,
|
|
15
|
+
name,
|
|
16
|
+
phone,
|
|
17
|
+
mail,
|
|
18
|
+
handleChange,
|
|
19
|
+
errors,
|
|
20
|
+
handleChangeErrors,
|
|
21
|
+
}: RenderWedDataOrganizationProps) => (
|
|
22
|
+
<div>
|
|
23
|
+
<div className="flex justify-between gap-5">
|
|
24
|
+
<div className="w-1/2">
|
|
25
|
+
<InputControl
|
|
26
|
+
className="shrink-0 text-l w-full mb-3"
|
|
27
|
+
label="Наименование организации"
|
|
28
|
+
error={errors['fullName']}
|
|
29
|
+
value={fullName}
|
|
30
|
+
onChange={(value) => handleChange({ fullName: value })}
|
|
31
|
+
onBlur={(value) => handleChangeErrors({ fullName: validate('fullName', value) })}
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
<div className="w-1/2">
|
|
35
|
+
<InputControl
|
|
36
|
+
className="shrink-0 text-l w-full mb-3"
|
|
37
|
+
label="ФИО"
|
|
38
|
+
error={errors['name']}
|
|
39
|
+
value={name}
|
|
40
|
+
onChange={(value) => handleChange({ name: value })}
|
|
41
|
+
onBlur={(value) => handleChangeErrors({ name: validate('name', value) })}
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div className="flex justify-between gap-5 mb-7">
|
|
46
|
+
<div className="w-1/2">
|
|
47
|
+
<InputControl
|
|
48
|
+
className="shrink-0 text-l w-full mb-3"
|
|
49
|
+
label="Телефон"
|
|
50
|
+
error={errors['phone']}
|
|
51
|
+
value={phone}
|
|
52
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
53
|
+
onBlur={(value) => handleChangeErrors({ phone: validate('phone', value) })}
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
<div className="w-1/2">
|
|
57
|
+
<InputControl
|
|
58
|
+
className="shrink-0 text-l w-full mb-3"
|
|
59
|
+
label="Электронная почта"
|
|
60
|
+
error={errors['mail']}
|
|
61
|
+
value={mail}
|
|
62
|
+
onChange={(value) => handleChange({ mail: value })}
|
|
63
|
+
onBlur={(value) => handleChangeErrors({ mail: validate('mail', value) })}
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import type { HandleFormStateChange } from './models';
|
|
3
|
+
import { validate } from './validate';
|
|
4
|
+
|
|
5
|
+
interface UseFormHandlersProps<T> {
|
|
6
|
+
initialFormState: Required<T>;
|
|
7
|
+
errorsInitialState?: Partial<T>;
|
|
8
|
+
handleSubmit?: (data: Record<string, string>) => Promise<string>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const useForm = <T>({
|
|
12
|
+
initialFormState,
|
|
13
|
+
errorsInitialState,
|
|
14
|
+
handleSubmit,
|
|
15
|
+
}: UseFormHandlersProps<T>) => {
|
|
16
|
+
const [formState, setFormState] = useState(initialFormState);
|
|
17
|
+
|
|
18
|
+
const [errors, setErrors] = useState(errorsInitialState || {});
|
|
19
|
+
|
|
20
|
+
const handleChange: HandleFormStateChange<T> = useCallback(
|
|
21
|
+
(state) => setFormState((oldState) => ({ ...oldState, ...state })),
|
|
22
|
+
[],
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
const handleChangeErrors = useCallback(
|
|
26
|
+
(state) => setErrors((oldState) => ({ ...oldState, ...state })),
|
|
27
|
+
[],
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
const sendForm = useCallback(
|
|
31
|
+
async (sendData: Record<string, string>) => {
|
|
32
|
+
const errorsTemp: string[] = [];
|
|
33
|
+
|
|
34
|
+
const validateData: Record<string, string> = Object.keys(formState)
|
|
35
|
+
.filter((_) => Object.keys(errors).includes(_))
|
|
36
|
+
.reduce((obj, key) => {
|
|
37
|
+
obj[key] = formState[key];
|
|
38
|
+
|
|
39
|
+
return obj;
|
|
40
|
+
}, {});
|
|
41
|
+
|
|
42
|
+
for (const [key, value] of Object.entries(validateData)) {
|
|
43
|
+
const error = validate(key, value);
|
|
44
|
+
|
|
45
|
+
errorsTemp.push(error);
|
|
46
|
+
handleChangeErrors({ [key]: error });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (errorsTemp.some((_) => _.length !== 0)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
handleSubmit && (await handleSubmit(sendData));
|
|
54
|
+
},
|
|
55
|
+
[formState],
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
formState,
|
|
60
|
+
handleChange,
|
|
61
|
+
errors,
|
|
62
|
+
handleChangeErrors,
|
|
63
|
+
sendForm,
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const ERROR_EMPTY = 'Некорректно заполненное поле';
|
|
2
|
+
|
|
3
|
+
export const validate = (key: string, value: string) => {
|
|
4
|
+
switch (key) {
|
|
5
|
+
case 'name':
|
|
6
|
+
return isName(value);
|
|
7
|
+
case 'inn':
|
|
8
|
+
return isTin(value);
|
|
9
|
+
case 'mail':
|
|
10
|
+
return isEmpty(value);
|
|
11
|
+
case 'phone':
|
|
12
|
+
return isEmpty(value);
|
|
13
|
+
default:
|
|
14
|
+
return isEmpty(value);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const isEmpty = (value: string) => (value ? '' : ERROR_EMPTY);
|
|
19
|
+
|
|
20
|
+
const isName = (value: string) => (value.length > 1 ? '' : ERROR_EMPTY);
|
|
21
|
+
|
|
22
|
+
const isTin = (value: string) => (value.length === 10 || value.length === 12 ? '' : ERROR_EMPTY);
|
|
@@ -3,6 +3,8 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
7
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
6
8
|
import { Headline } from '../Headline/Headline';
|
|
7
9
|
import type { BonusContent, BonusCountDef, BonusImageDef } from './BonusContent';
|
|
8
10
|
|
|
@@ -22,14 +24,17 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
22
24
|
key={String(i)}
|
|
23
25
|
className="flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0"
|
|
24
26
|
>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</
|
|
31
|
-
{renderButtonsSection(_?.buttons)}
|
|
27
|
+
{_?.title ? <Text size="text-h4">{_.title}</Text> : null}
|
|
28
|
+
{_?.description ? (
|
|
29
|
+
<div className="mt-2">
|
|
30
|
+
<Paragraph size="text-xl" font="font-light">
|
|
31
|
+
{_.description}
|
|
32
|
+
</Paragraph>
|
|
32
33
|
</div>
|
|
34
|
+
) : null}
|
|
35
|
+
|
|
36
|
+
<div className="flex justify-between items-end mt-3">
|
|
37
|
+
{renderButtonsSection(_?.buttons)}
|
|
33
38
|
{_.bonusItemContent?.bonusType
|
|
34
39
|
? renderBonusItemContent(_.bonusItemContent)
|
|
35
40
|
: null}
|
|
@@ -5,11 +5,11 @@ import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
|
5
5
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
6
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
7
|
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
|
|
8
|
+
import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
|
|
8
9
|
import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
|
|
9
10
|
import { style } from '../../utils/style';
|
|
10
11
|
import type { CarouselContent } from './CarouselContent';
|
|
11
12
|
import { CarouselScrollButtons } from './CarouselScrollButtons';
|
|
12
|
-
import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
|
|
13
13
|
|
|
14
14
|
export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
15
15
|
itemCount?: number;
|
|
@@ -28,6 +28,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
28
28
|
arrowsPadded = true,
|
|
29
29
|
isPadding = true,
|
|
30
30
|
showDots = false,
|
|
31
|
+
isAlignCenter = false,
|
|
31
32
|
...rest
|
|
32
33
|
}) => {
|
|
33
34
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
@@ -53,7 +54,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
53
54
|
)}
|
|
54
55
|
{...rest}
|
|
55
56
|
>
|
|
56
|
-
<div className=
|
|
57
|
+
<div className={style(getAlignStyle(isAlignCenter), 'relative max-w-full')}>
|
|
57
58
|
<SwipeListContainer
|
|
58
59
|
containerRef={containerRef}
|
|
59
60
|
visibleItemCount={visibleItemCount}
|
|
@@ -105,6 +106,9 @@ Carousel.childrenTypes = [
|
|
|
105
106
|
|
|
106
107
|
const getPaddingStyle = (isPadding: boolean): string => (isPadding ? 'p-12' : '');
|
|
107
108
|
|
|
109
|
+
const getAlignStyle = (isAlignCenter: boolean): string =>
|
|
110
|
+
isAlignCenter ? 'flex justify-center' : '';
|
|
111
|
+
|
|
108
112
|
const renderDots = (
|
|
109
113
|
containerRef: { current: HTMLDivElement | null },
|
|
110
114
|
dotsActiveIndex: number,
|
|
@@ -8,14 +8,9 @@ import type { CarouselRichTextCardContent } from './CarouselRichTextCardContent'
|
|
|
8
8
|
export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {}
|
|
9
9
|
|
|
10
10
|
export const CarouselRichTextCard = JSX<CarouselRichTextCardProps>(
|
|
11
|
-
({ className = '', __html, richVersion = 'striped', ...rest }) =>
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
<RichText __html={__html} />
|
|
18
|
-
</BlockWrapper>
|
|
19
|
-
);
|
|
20
|
-
},
|
|
11
|
+
({ className = '', __html, richVersion = 'striped', ...rest }) => (
|
|
12
|
+
<BlockWrapper className={style('p-9 border border-gray min-w-96', className)} {...rest}>
|
|
13
|
+
<RichText __html={__html} richVersion={richVersion} />
|
|
14
|
+
</BlockWrapper>
|
|
15
|
+
),
|
|
21
16
|
);
|
|
@@ -29,7 +29,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
29
29
|
return (
|
|
30
30
|
<BlockWrapper
|
|
31
31
|
className={style(
|
|
32
|
-
'relative border border-gray
|
|
32
|
+
'relative border border-gray p-8 flex flex-col',
|
|
33
33
|
getHitStyle(isHighlighting),
|
|
34
34
|
className,
|
|
35
35
|
)}
|
|
@@ -63,7 +63,7 @@ const renderIconBlock = (icon?: Picture) => (
|
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
const getHitStyle = (isHighlighting?: boolean): string =>
|
|
66
|
-
isHighlighting ? 'mt-
|
|
66
|
+
isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
|
|
67
67
|
|
|
68
68
|
const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
|
|
69
69
|
<button
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"officeName": "Московский региональный филиал ЦРМБ",
|
|
4
|
+
"currencies": [
|
|
5
|
+
{
|
|
6
|
+
"id": 1,
|
|
7
|
+
"title": "USD",
|
|
8
|
+
"buyPrice": 104.0741,
|
|
9
|
+
"sellPrice": 103.1618,
|
|
10
|
+
"buyDifference": -3.74,
|
|
11
|
+
"sellDifference": -0.31,
|
|
12
|
+
"buyOfficeName": "Моковский региональный филиал ЦРМБ",
|
|
13
|
+
"buyBonusOfficeName": "Дополнительный офис г. Москва (ул. Арбат)",
|
|
14
|
+
"sellOfficeName": "Дополнительный офис г. Москва (ул. Новоясеньская)",
|
|
15
|
+
"sellBonusOfficeName": "Дополнительный офис г. Москва (Волгоградский проспект)"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 2,
|
|
19
|
+
"title": "EUR",
|
|
20
|
+
"buyPrice": 114.7833,
|
|
21
|
+
"sellPrice": 113.2613,
|
|
22
|
+
"buyDifference": 1.65,
|
|
23
|
+
"sellDifference": -0.41,
|
|
24
|
+
"buyOfficeName": "Моковский региональный филиал ЦРМБ",
|
|
25
|
+
"buyBonusOfficeName": "Дополнительный офис г. Москва (ул. Арбат)",
|
|
26
|
+
"sellOfficeName": "Дополнительный офис г. Москва (ул. Новоясеньская)",
|
|
27
|
+
"sellBonusOfficeName": "Дополнительный офис г. Москва (Волгоградский проспект)"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"actuality": "Актуально на 12:36, 12 июля 2022"
|
|
31
|
+
}
|
|
32
|
+
}
|