@redneckz/wildless-cms-uni-blocks 0.9.15 → 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 +385 -234
- 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/hooks/useLink.d.ts +5 -1
- package/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/bundle/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/bundle/utils/adjustHref.d.ts +1 -1
- 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/Calculator/useDepositCalculatorParams.js +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.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/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- 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/hooks/useLink.d.ts +5 -1
- package/dist/hooks/useLink.js +3 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +2 -2
- 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/SearchDialog/SearchDialog.d.ts +2 -2
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- 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/dist/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/dist/ui-kit/Sitemap/Sitemap.js +3 -4
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.d.ts +1 -1
- package/dist/utils/adjustHref.js +4 -3
- package/dist/utils/adjustHref.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/Calculator/useDepositCalculatorParams.js +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.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/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- 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/hooks/useLink.d.ts +5 -1
- package/lib/hooks/useLink.js +3 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +2 -2
- 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/SearchDialog/SearchDialog.d.ts +2 -2
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- 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/lib/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/lib/ui-kit/Sitemap/Sitemap.js +3 -4
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.d.ts +1 -1
- package/lib/utils/adjustHref.js +4 -3
- package/lib/utils/adjustHref.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +17 -15
- 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/hooks/useLink.d.ts +5 -1
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/bundle/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/mobile/bundle/utils/adjustHref.d.ts +1 -1
- 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/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.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/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/hooks/useLink.d.ts +5 -1
- package/mobile/dist/hooks/useLink.js +3 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
- 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/SearchDialog/SearchDialog.d.ts +2 -2
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- 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/dist/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +3 -4
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.d.ts +1 -1
- package/mobile/dist/utils/adjustHref.js +4 -3
- package/mobile/dist/utils/adjustHref.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/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.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/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/hooks/useLink.d.ts +5 -1
- package/mobile/lib/hooks/useLink.js +3 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
- 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/SearchDialog/SearchDialog.d.ts +2 -2
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- 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/lib/ui-kit/Sitemap/Sitemap.d.ts +2 -2
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +3 -4
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.d.ts +1 -1
- package/mobile/lib/utils/adjustHref.js +4 -3
- package/mobile/lib/utils/adjustHref.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/Calculator/useDepositCalculatorParams.ts +1 -1
- 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/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/mobile/src/hooks/useLink.ts +9 -2
- package/mobile/src/services/sitemap/SitemapData.ts +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/SearchDialog/SearchDialog.tsx +5 -5
- package/mobile/src/ui-kit/Select/Select.tsx +19 -4
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +6 -7
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/adjustHref.ts +16 -11
- 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/Calculator/useDepositCalculatorParams.ts +1 -1
- 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/Footer/TextInformationLink.tsx +1 -1
- 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/hooks/useLink.ts +9 -2
- package/src/services/sitemap/SitemapData.ts +2 -2
- 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/SearchDialog/SearchDialog.tsx +5 -5
- package/src/ui-kit/Select/Select.tsx +19 -4
- package/src/ui-kit/Sitemap/Sitemap.tsx +6 -7
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/adjustHref.ts +16 -11
- 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
|
@@ -10,13 +10,20 @@ interface Clickable {
|
|
|
10
10
|
onClick(ev?: PreventableEvent): void;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface UseLinkParams {
|
|
14
|
+
isRemote?: boolean;
|
|
15
|
+
basePath?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function useLink(params: UseLinkParams = {}) {
|
|
19
|
+
const { isRemote, basePath } = params;
|
|
20
|
+
|
|
14
21
|
const router = useRouter();
|
|
15
22
|
const { close } = useDialog();
|
|
16
23
|
|
|
17
24
|
return <L extends Partial<LinkProps & Clickable>>(props: L): L & Clickable => ({
|
|
18
25
|
...props,
|
|
19
|
-
href: isRemote ? props.href : adjustHref(router)(props.href),
|
|
26
|
+
href: isRemote ? props.href : adjustHref(router)(props.href, basePath),
|
|
20
27
|
'aria-label': props.text,
|
|
21
28
|
onClick: handlerDecorator(handleHref(props), props),
|
|
22
29
|
});
|
|
@@ -6,7 +6,7 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
6
6
|
* @title Ссылка
|
|
7
7
|
* @required ["text", "href"]
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface TopMenuItemProps extends LinkProps {
|
|
10
10
|
/** @hidden */
|
|
11
11
|
items?: LinkProps[];
|
|
12
12
|
}
|
|
@@ -27,7 +27,7 @@ export interface DispositionItem extends LinkProps {
|
|
|
27
27
|
export type ForeignOffice = LinkProps & IconProps;
|
|
28
28
|
|
|
29
29
|
export interface SitemapData {
|
|
30
|
-
topItems?:
|
|
30
|
+
topItems?: TopMenuItemProps[];
|
|
31
31
|
dispositions?: DispositionItem[];
|
|
32
32
|
logo?: LogoType;
|
|
33
33
|
foreignOffices?: ForeignOffice[];
|
|
@@ -8,7 +8,7 @@ export const getRegularButtonClasses = ({
|
|
|
8
8
|
}: GetButtonClassParams): string =>
|
|
9
9
|
[
|
|
10
10
|
buttonStyle,
|
|
11
|
-
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border',
|
|
11
|
+
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit',
|
|
12
12
|
version ? buttonStyleMap[version] : '',
|
|
13
13
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
14
14
|
className,
|
|
@@ -14,7 +14,7 @@ export const renderButtonsSection = (
|
|
|
14
14
|
buttons?: (ButtonWithIconProps | undefined)[],
|
|
15
15
|
{ className = '', buttonClassName, isVertical }: ButtonsSectionOptions = {},
|
|
16
16
|
) =>
|
|
17
|
-
buttons?.length && buttons.some((_) => _?.text) ? (
|
|
17
|
+
buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (
|
|
18
18
|
<div className={style('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className)}>
|
|
19
19
|
{buttons.map(renderButton(buttonClassName))}
|
|
20
20
|
</div>
|
|
@@ -26,7 +26,7 @@ const renderButton =
|
|
|
26
26
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
27
27
|
const iconVersion = version === 'secondary' ? 'color' : 'white';
|
|
28
28
|
|
|
29
|
-
return text ? (
|
|
29
|
+
return text || icon?.icon ? (
|
|
30
30
|
<Button
|
|
31
31
|
key={index ? String(index) : ''}
|
|
32
32
|
className={buttonClassName}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import type { RichTextProps } from './RichTextProps';
|
|
3
4
|
|
|
4
5
|
export const RichText = JSX<RichTextProps>((props) => {
|
|
5
|
-
const { __html = '' } = props;
|
|
6
|
+
const { __html = '', richVersion = '' } = props;
|
|
6
7
|
|
|
7
|
-
return
|
|
8
|
+
return (
|
|
9
|
+
<div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
|
|
10
|
+
);
|
|
8
11
|
});
|
|
@@ -5,7 +5,7 @@ export interface RichTextProps {
|
|
|
5
5
|
__html?: HTML;
|
|
6
6
|
/**
|
|
7
7
|
* @title Стиль форматированного текста
|
|
8
|
-
* @enumNames ["по умолчанию", "
|
|
8
|
+
* @enumNames ["по умолчанию", "Строки разного цвета", "Горизонтальные разделители"]
|
|
9
9
|
*/
|
|
10
|
-
richVersion?: '' | 'striped';
|
|
10
|
+
richVersion?: '' | 'striped' | 'horizontal-separator';
|
|
11
11
|
}
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { useSearch, type SearchResult } from '../../services/search/useSearch';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
|
|
6
6
|
import { joinPath } from '../../utils/url';
|
|
7
7
|
import { zip } from '../../utils/zip';
|
|
8
8
|
import { Dialog } from '../Dialog/Dialog';
|
|
@@ -11,7 +11,7 @@ import { Sitemap } from '../Sitemap/Sitemap';
|
|
|
11
11
|
import { SearchInput } from './SearchInput';
|
|
12
12
|
|
|
13
13
|
export interface SearchDialogProps {
|
|
14
|
-
topItems?:
|
|
14
|
+
topItems?: TopMenuItemProps[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const SEARCH_DIALOG_ID = 'search';
|
|
@@ -44,8 +44,8 @@ export const SearchDialog = JSX<SearchDialogProps>(({ topItems }) => {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
const combineTopItemsAndSearchResult =
|
|
47
|
-
(topItems:
|
|
48
|
-
(searchResult: SearchResult | null | undefined):
|
|
47
|
+
(topItems: TopMenuItemProps[] | undefined) =>
|
|
48
|
+
(searchResult: SearchResult | null | undefined): TopMenuItemProps[] =>
|
|
49
49
|
topItems?.length && searchResult?.length
|
|
50
50
|
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
51
51
|
..._,
|
|
@@ -56,7 +56,7 @@ const combineTopItemsAndSearchResult =
|
|
|
56
56
|
: [];
|
|
57
57
|
|
|
58
58
|
// Temp
|
|
59
|
-
function printSearchItems(topItems:
|
|
59
|
+
function printSearchItems(topItems: TopMenuItemProps[]) {
|
|
60
60
|
for (const _ of topItems.filter(({ items }) => items?.length)) {
|
|
61
61
|
console.group(_.text);
|
|
62
62
|
console.table(_.items, ['text', 'href']);
|
|
@@ -17,10 +17,22 @@ export type SelectProps = LabelProps & {
|
|
|
17
17
|
options: OptionProps[];
|
|
18
18
|
isBorder?: boolean;
|
|
19
19
|
placeholder?: string;
|
|
20
|
+
valid?: boolean;
|
|
21
|
+
onValidate?: (value: string) => void;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
export const Select = JSX<SelectProps>(
|
|
23
|
-
({
|
|
25
|
+
({
|
|
26
|
+
className = '',
|
|
27
|
+
isBorder = true,
|
|
28
|
+
label,
|
|
29
|
+
options = [],
|
|
30
|
+
value,
|
|
31
|
+
onChange,
|
|
32
|
+
placeholder = '',
|
|
33
|
+
valid = true,
|
|
34
|
+
onValidate,
|
|
35
|
+
}) => {
|
|
24
36
|
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
25
37
|
const [isOpen, setIsOpen] = useState(false);
|
|
26
38
|
const handleClickOutside = useCallback(() => setIsOpen(false), []);
|
|
@@ -30,6 +42,7 @@ export const Select = JSX<SelectProps>(
|
|
|
30
42
|
setSelectedItem(option);
|
|
31
43
|
setIsOpen(false);
|
|
32
44
|
onChange(option);
|
|
45
|
+
onValidate && onValidate(option.text);
|
|
33
46
|
};
|
|
34
47
|
|
|
35
48
|
const isSelected = (option: OptionProps) => Boolean(option.key === selectedItem.key);
|
|
@@ -50,7 +63,7 @@ export const Select = JSX<SelectProps>(
|
|
|
50
63
|
<div className={`relative ${isOpen ? 'z-20' : 'z-10'}`}>
|
|
51
64
|
<div
|
|
52
65
|
className={`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
53
|
-
${getBorderStyle(isBorder)}`}
|
|
66
|
+
${getBorderStyle(isBorder, valid)}`}
|
|
54
67
|
onClick={() => setIsOpen(!isOpen)}
|
|
55
68
|
>
|
|
56
69
|
<p className="p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap">
|
|
@@ -108,5 +121,7 @@ const renderOption =
|
|
|
108
121
|
);
|
|
109
122
|
};
|
|
110
123
|
|
|
111
|
-
const getBorderStyle = (isBorder: boolean) =>
|
|
112
|
-
isBorder ? 'border
|
|
124
|
+
const getBorderStyle = (isBorder: boolean, valid: boolean) => `
|
|
125
|
+
${isBorder ? 'border rounded-md hover:border-primary-hover' : ''} ${
|
|
126
|
+
valid ? ' border-gray' : 'border-error'
|
|
127
|
+
} `;
|
|
@@ -2,17 +2,16 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
|
|
6
6
|
import { style } from '../../utils/style';
|
|
7
|
-
import { joinPath } from '../../utils/url';
|
|
8
7
|
|
|
9
8
|
export interface SitemapProps {
|
|
10
9
|
className?: string;
|
|
11
|
-
topItems?:
|
|
10
|
+
topItems?: TopMenuItemProps[];
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const Sitemap = JSX<SitemapProps>(({ className, topItems }) => {
|
|
15
|
-
const link = useLink(true);
|
|
14
|
+
const link = useLink({ isRemote: true });
|
|
16
15
|
|
|
17
16
|
return (
|
|
18
17
|
<div className={style('flex items-start justify-between', className)}>
|
|
@@ -21,7 +20,7 @@ export const Sitemap = JSX<SitemapProps>(({ className, topItems }) => {
|
|
|
21
20
|
);
|
|
22
21
|
});
|
|
23
22
|
|
|
24
|
-
const renderColumn = (menuItem:
|
|
23
|
+
const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, index: number) => {
|
|
25
24
|
const { text, items, href, target, onClick } = menuItem;
|
|
26
25
|
|
|
27
26
|
return (
|
|
@@ -50,7 +49,7 @@ const ColumnItem = JSX<ColumnItemProps>(({ text, index, basePath, ...rest }) =>
|
|
|
50
49
|
const isAnotherPortal =
|
|
51
50
|
projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
52
51
|
|
|
53
|
-
const link = useLink(isAnotherPortal);
|
|
52
|
+
const link = useLink({ isRemote: isAnotherPortal });
|
|
54
53
|
const { href, target, onClick } = link(rest);
|
|
55
54
|
|
|
56
55
|
return (
|
|
@@ -59,7 +58,7 @@ const ColumnItem = JSX<ColumnItemProps>(({ text, index, basePath, ...rest }) =>
|
|
|
59
58
|
'text-l-light text-secondary-text hover:text-primary-main no-underline',
|
|
60
59
|
'overflow-x-hidden overflow-ellipsis whitespace-nowrap',
|
|
61
60
|
)}
|
|
62
|
-
href={
|
|
61
|
+
href={href}
|
|
63
62
|
target={target || '_self'}
|
|
64
63
|
onClick={onClick}
|
|
65
64
|
>
|
|
@@ -15,7 +15,7 @@ export interface TopItemProps extends TopItemContent {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const TopItem = JSX<TopItemProps>(({ className = '', active, flat, children, ...rest }) => {
|
|
18
|
-
const link = useLink(true);
|
|
18
|
+
const link = useLink({ isRemote: true });
|
|
19
19
|
const { href, target, text, onClick } = link(rest);
|
|
20
20
|
|
|
21
21
|
return (
|
|
@@ -2,16 +2,21 @@ import { projectSettings } from '../ProjectSettings';
|
|
|
2
2
|
import { dirname } from './dirname';
|
|
3
3
|
import { isURL, joinPath } from './url';
|
|
4
4
|
|
|
5
|
-
export const adjustHref =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export const adjustHref =
|
|
6
|
+
(router: { pathname: string }) =>
|
|
7
|
+
(href: string | undefined, basePath = projectSettings.BASE_PATH) => {
|
|
8
|
+
if (!href || isURL(href) || hasPrefix(href, projectSettings.CDN)) {
|
|
9
|
+
return href;
|
|
10
|
+
}
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
const isRelativeToBase = href.startsWith('/');
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
14
|
+
return joinPath(
|
|
15
|
+
hasPrefix(href, basePath) ? '' : basePath,
|
|
16
|
+
isRelativeToBase ? '/' : dirname(router.pathname),
|
|
17
|
+
href,
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const hasPrefix = (href: string, prefix: string | undefined) =>
|
|
22
|
+
prefix && href && href.startsWith(prefix);
|
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.0",
|
|
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": "54 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
|
-
);
|