@redneckz/wildless-cms-uni-blocks 0.14.25 → 0.14.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.26.js +55 -0
- package/bin/migration-scripts/0.14.27.js +38 -0
- package/bundle/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +293 -255
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/bundle/components/CarouselCard/titleSize.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/bundle/utils/isIcon.d.ts +2 -0
- package/cosmos-static/icons/DzenIcon.svg +1 -0
- package/dist/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
- package/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
- package/dist/api/LeadServiceAPI.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -4
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/dist/components/ApplicationForm/DatePickerControl.js +8 -0
- package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
- package/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +4 -4
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Calculator/Calculator.mobile.js +4 -4
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +1 -1
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/titleSize.d.ts +1 -1
- package/dist/components/CarouselCard/titleSize.js +1 -1
- package/dist/components/CarouselCard/titleSize.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +5 -5
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +4 -0
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/dist/components/ProductBlock/ProductBlock.js +1 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +7 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +3 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.js +4 -4
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/DatePicker/getYears.js +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
- package/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
- package/dist/ui-kit/NotFound/NotFound.js +1 -1
- package/dist/ui-kit/NotFound/NotFound.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/isIcon.d.ts +2 -0
- package/dist/utils/isIcon.js +5 -0
- package/dist/utils/isIcon.js.map +1 -0
- package/lib/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
- package/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
- package/lib/api/LeadServiceAPI.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -4
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/lib/components/ApplicationForm/DatePickerControl.js +6 -0
- package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
- package/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +3 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +4 -4
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Calculator/Calculator.mobile.js +4 -4
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/renderCarouselCards.js +1 -1
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/titleSize.d.ts +1 -1
- package/lib/components/CarouselCard/titleSize.js +1 -1
- package/lib/components/CarouselCard/titleSize.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +5 -5
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +4 -0
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.js +1 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +7 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +3 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.js +4 -4
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
- package/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
- package/lib/ui-kit/NotFound/NotFound.js +1 -1
- package/lib/ui-kit/NotFound/NotFound.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/isIcon.d.ts +2 -0
- package/lib/utils/isIcon.js +2 -0
- package/lib/utils/isIcon.js.map +1 -0
- package/mobile/bundle/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
- package/mobile/bundle/bundle.umd.js +298 -107
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/bundle/utils/isIcon.d.ts +2 -0
- package/mobile/dist/api/LeadServiceAPI.d.ts +15 -0
- package/mobile/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -4
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js +8 -0
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +4 -4
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +4 -4
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +5 -5
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +4 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +7 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +4 -4
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/getYears.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
- package/mobile/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
- package/mobile/dist/ui-kit/NotFound/NotFound.js +1 -1
- package/mobile/dist/ui-kit/NotFound/NotFound.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/isIcon.d.ts +2 -0
- package/mobile/dist/utils/isIcon.js +5 -0
- package/mobile/dist/utils/isIcon.js.map +1 -0
- package/mobile/lib/api/LeadServiceAPI.d.ts +15 -0
- package/mobile/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -4
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js +6 -0
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +4 -4
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +4 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +5 -5
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +4 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +7 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +4 -4
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
- package/mobile/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
- package/mobile/lib/ui-kit/NotFound/NotFound.js +1 -1
- package/mobile/lib/ui-kit/NotFound/NotFound.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/isIcon.d.ts +2 -0
- package/mobile/lib/utils/isIcon.js +2 -0
- package/mobile/lib/utils/isIcon.js.map +1 -0
- package/mobile/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +3 -2
- package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
- package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/Bonus/Bonus.tsx +4 -4
- package/mobile/src/components/Calculator/Calculator.tsx +5 -7
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +8 -8
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +7 -5
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +10 -12
- package/mobile/src/components/Footer/TextInformation.tsx +1 -1
- package/mobile/src/components/Footer/iconsMap.ts +4 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -6
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/mobile/src/components/Tabs/Tabs.tsx +8 -4
- package/mobile/src/icons/DzenIcon.svg +4 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +7 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
- package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
- package/mobile/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
- package/mobile/src/ui-kit/NotFound/NotFound.tsx +1 -1
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/utils/isIcon.ts +3 -0
- package/package.json +1 -1
- package/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
- package/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
- package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/src/components/ApplicationForm/Footnote.tsx +3 -2
- package/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
- package/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/Bonus/Bonus.tsx +4 -4
- package/src/components/Calculator/Calculator.mobile.tsx +5 -7
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +12 -11
- package/src/components/Carousel/Carousel.fixture.tsx +15 -14
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/Carousel/renderCarouselCards.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselCard/titleSize.tsx +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +41 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +41 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +8 -8
- package/src/components/ContentPage/ContentPage.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +7 -5
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -1
- package/src/components/Footer/SocialMedia.tsx +10 -12
- package/src/components/Footer/TextInformation.tsx +1 -1
- package/src/components/Footer/iconsMap.ts +4 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
- package/src/components/ProductBlock/ProductBlock.tsx +1 -6
- package/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
- package/src/components/ProductGallery/ProductGallery.example.json +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/src/components/Tabs/Tabs.tsx +8 -4
- package/src/icons/DzenIcon.svg +4 -0
- package/src/icons/IconName.ts +4 -1
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
- package/src/ui-kit/Button/ButtonInner.tsx +7 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
- package/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
- package/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
- package/src/ui-kit/NotFound/NotFound.tsx +1 -1
- package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/utils/isIcon.ts +3 -0
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/bundle/components/Tile/Tile.d.ts +0 -5
- package/bundle/components/Tile/TileContent.d.ts +0 -6
- package/dist/api/CorporateLeadAPI.js.map +0 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
- package/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
- package/dist/components/Tile/Tile.d.ts +0 -5
- package/dist/components/Tile/Tile.js +0 -8
- package/dist/components/Tile/Tile.js.map +0 -1
- package/dist/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/Tile/TileContent.js.map +0 -1
- package/lib/api/CorporateLeadAPI.js.map +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -8
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +0 -7
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
- package/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
- package/lib/components/Tile/Tile.d.ts +0 -5
- package/lib/components/Tile/Tile.fixture.d.ts +0 -15
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
- package/lib/components/Tile/Tile.js +0 -6
- package/lib/components/Tile/Tile.js.map +0 -1
- package/lib/components/Tile/TileContent.d.ts +0 -6
- package/lib/components/Tile/TileContent.js +0 -2
- package/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
- package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/api/CorporateLeadAPI.d.ts +0 -15
- package/mobile/dist/api/CorporateLeadAPI.js.map +0 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
- package/mobile/dist/components/Tile/Tile.d.ts +0 -5
- package/mobile/dist/components/Tile/Tile.js +0 -8
- package/mobile/dist/components/Tile/Tile.js.map +0 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/Tile/TileContent.js.map +0 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +0 -15
- package/mobile/lib/api/CorporateLeadAPI.js.map +0 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
- package/mobile/lib/components/Tile/Tile.d.ts +0 -5
- package/mobile/lib/components/Tile/Tile.js +0 -6
- package/mobile/lib/components/Tile/Tile.js.map +0 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
- package/mobile/lib/components/Tile/TileContent.js +0 -2
- package/mobile/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
- package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
- package/mobile/src/components/Tile/Tile.example.json +0 -28
- package/mobile/src/components/Tile/Tile.tsx +0 -23
- package/mobile/src/components/Tile/Tile.ui.json +0 -17
- package/mobile/src/components/Tile/TileContent.ts +0 -7
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +0 -34
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -36
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
- package/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
- package/src/components/Tile/Tile.example.json +0 -28
- package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
- package/src/components/Tile/Tile.fixture.tsx +0 -147
- package/src/components/Tile/Tile.tsx +0 -23
- package/src/components/Tile/Tile.ui.json +0 -17
- package/src/components/Tile/TileContent.ts +0 -7
package/package.json
CHANGED
|
@@ -12,10 +12,12 @@ export interface DaDataResult {
|
|
|
12
12
|
suggestions?: DaDataSuggestion<DaDataAddress>[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export function
|
|
16
|
-
async function send(body: Record<string, string
|
|
15
|
+
export function LeadServiceAPI() {
|
|
16
|
+
async function send(body: Record<string, string>, isIndividualType?: boolean) {
|
|
17
|
+
const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
|
|
18
|
+
|
|
17
19
|
try {
|
|
18
|
-
const response = await fetch(
|
|
20
|
+
const response = await fetch(url, {
|
|
19
21
|
method: 'POST',
|
|
20
22
|
headers: { 'Content-Type': 'application/json' },
|
|
21
23
|
mode: 'cors',
|
|
@@ -48,6 +48,14 @@ const ApplicationFormGrantSupport: ApplicationFormContent = {
|
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
const ApplicationFormIndividuals: ApplicationFormContent = {
|
|
52
|
+
formBlock: {
|
|
53
|
+
...formBlockProps,
|
|
54
|
+
formType: 'ApplicationFormIndividuals',
|
|
55
|
+
product: 'product',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
51
59
|
export default {
|
|
52
60
|
credit: (
|
|
53
61
|
<div className="container grid grid-cols-12">
|
|
@@ -85,4 +93,10 @@ export default {
|
|
|
85
93
|
<PopupManager />
|
|
86
94
|
</div>
|
|
87
95
|
),
|
|
96
|
+
individuals: (
|
|
97
|
+
<div className="container grid grid-cols-12">
|
|
98
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormIndividuals} />
|
|
99
|
+
<PopupManager />
|
|
100
|
+
</div>
|
|
101
|
+
),
|
|
88
102
|
};
|
|
@@ -48,6 +48,14 @@ const ApplicationFormGrantSupport: ApplicationFormContent = {
|
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
const ApplicationFormIndividuals: ApplicationFormContent = {
|
|
52
|
+
formBlock: {
|
|
53
|
+
...formBlockProps,
|
|
54
|
+
formType: 'ApplicationFormIndividuals',
|
|
55
|
+
product: 'product',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
51
59
|
export default {
|
|
52
60
|
credit: (
|
|
53
61
|
<div className="container grid grid-cols-12">
|
|
@@ -85,4 +93,10 @@ export default {
|
|
|
85
93
|
<PopupManager />
|
|
86
94
|
</div>
|
|
87
95
|
),
|
|
96
|
+
individuals: (
|
|
97
|
+
<div className="container grid grid-cols-12">
|
|
98
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormIndividuals} />
|
|
99
|
+
<PopupManager />
|
|
100
|
+
</div>
|
|
101
|
+
),
|
|
88
102
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { LeadServiceAPI } from '../../api/LeadServiceAPI';
|
|
4
4
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -13,19 +13,22 @@ import { ResponseNotification } from './ResponseNotification';
|
|
|
13
13
|
|
|
14
14
|
export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {}
|
|
15
15
|
|
|
16
|
-
const API =
|
|
16
|
+
const API = LeadServiceAPI();
|
|
17
17
|
|
|
18
18
|
export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
|
|
19
19
|
const { className, formBlock, ...rest } = props;
|
|
20
20
|
|
|
21
21
|
const [responseType, setResponseType] = useState<'OK' | 'Fail' | ''>('');
|
|
22
22
|
|
|
23
|
-
const handleSubmit = useCallback(
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const handleSubmit = useCallback(
|
|
24
|
+
async (data: Record<string, any>, isIndividualType?: boolean) => {
|
|
25
|
+
const status = (await API.send(data, isIndividualType)) ? 'OK' : 'Fail';
|
|
26
|
+
setResponseType(status);
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
return status;
|
|
29
|
+
},
|
|
30
|
+
[],
|
|
31
|
+
);
|
|
29
32
|
|
|
30
33
|
return (
|
|
31
34
|
<BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
|
|
@@ -42,7 +45,10 @@ export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
|
|
|
42
45
|
|
|
43
46
|
const renderEmbeddedForm = (
|
|
44
47
|
formBlock: ApplicationFormBlockDef,
|
|
45
|
-
handleSubmit: (
|
|
48
|
+
handleSubmit: (
|
|
49
|
+
data: Record<string, string>,
|
|
50
|
+
isIndividualType?: boolean,
|
|
51
|
+
) => Promise<'OK' | 'Fail'>,
|
|
46
52
|
) => {
|
|
47
53
|
const type = formBlock?.formType;
|
|
48
54
|
if (!type || !(type in EmbeddableForms)) {
|
|
@@ -74,6 +74,17 @@ export type GrantSupportFormParamsDef = TitleProps & {
|
|
|
74
74
|
sourceBookDir?: string;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @title Заявка для ФЛ
|
|
79
|
+
*/
|
|
80
|
+
export type IndividualsFormParamsDef = TitleProps & {
|
|
81
|
+
/** @default ApplicationFormIndividuals */
|
|
82
|
+
formType: 'ApplicationFormIndividuals';
|
|
83
|
+
button?: SubmitButtonProps;
|
|
84
|
+
/** @title Продукт */
|
|
85
|
+
product?: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
77
88
|
/**
|
|
78
89
|
* @title Настройки формы
|
|
79
90
|
*/
|
|
@@ -83,7 +94,8 @@ export type ApplicationFormBlockDef =
|
|
|
83
94
|
| DepositFormParamsDef
|
|
84
95
|
| CreditFormParamsDef
|
|
85
96
|
| AcquiringFormParamsDef
|
|
86
|
-
| GrantSupportFormParamsDef
|
|
97
|
+
| GrantSupportFormParamsDef
|
|
98
|
+
| IndividualsFormParamsDef;
|
|
87
99
|
|
|
88
100
|
/**
|
|
89
101
|
* @title Форма заявки
|
|
@@ -23,9 +23,7 @@ const depositValidator = objectValidator({
|
|
|
23
23
|
phone: phoneValidator,
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((
|
|
27
|
-
const { button, link, onSubmit } = props;
|
|
28
|
-
|
|
26
|
+
export const ApplicationFormDeposit = JSX<ApplicationFormsProps>(({ button, link, onSubmit }) => {
|
|
29
27
|
const handleSubmit = useCallback(
|
|
30
28
|
(formState: DepositFormState) => {
|
|
31
29
|
const { name, phone } = formState;
|
|
@@ -31,7 +31,7 @@ export const ApplicationFormGrantSupport = JSX<ApplicationFormsProps>((props) =>
|
|
|
31
31
|
label="Ваш регион"
|
|
32
32
|
placeholder="Выберите регион"
|
|
33
33
|
isSearch={true}
|
|
34
|
-
options={regions.map(({ name = '' }) => ({ key: name }))}
|
|
34
|
+
options={regions.map(({ name = '' }) => ({ key: name, text: name }))}
|
|
35
35
|
value={region}
|
|
36
36
|
onChange={setRegion}
|
|
37
37
|
/>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
5
|
+
import { objectValidator } from '../../validation/objectValidator';
|
|
6
|
+
import { isValidationSuccess } from '../../validation/validator';
|
|
7
|
+
import { withValidator } from '../../validation/withValidator';
|
|
8
|
+
import { type ApplicationFormsProps } from './ApplicationFormsProps';
|
|
9
|
+
import { Footnote } from './Footnote';
|
|
10
|
+
import { type IndividualsFormState } from './IndividualsFormState';
|
|
11
|
+
import { renderIndividualsFields } from './renderIndividualsFields';
|
|
12
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
13
|
+
import { defaultValidator, nameValidator, phoneValidator } from './validators';
|
|
14
|
+
|
|
15
|
+
const initialFormState: IndividualsFormState = {
|
|
16
|
+
surname: '',
|
|
17
|
+
name: '',
|
|
18
|
+
middleName: '',
|
|
19
|
+
phone: '',
|
|
20
|
+
mail: '',
|
|
21
|
+
date: undefined,
|
|
22
|
+
consentDataProcessing: true,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const individualsValidator = objectValidator({
|
|
26
|
+
surname: nameValidator,
|
|
27
|
+
name: nameValidator,
|
|
28
|
+
middleName: nameValidator,
|
|
29
|
+
phone: phoneValidator,
|
|
30
|
+
mail: defaultValidator,
|
|
31
|
+
date: defaultValidator,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) => {
|
|
35
|
+
const { button, link, product, onSubmit } = props;
|
|
36
|
+
|
|
37
|
+
const handleSubmit = useCallback(
|
|
38
|
+
(formState: IndividualsFormState) => {
|
|
39
|
+
const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
|
|
40
|
+
|
|
41
|
+
isValidationSuccess(individualsValidator(formState)) &&
|
|
42
|
+
onSubmit(
|
|
43
|
+
{
|
|
44
|
+
typeForm: 'dpst',
|
|
45
|
+
surname,
|
|
46
|
+
name,
|
|
47
|
+
middleName,
|
|
48
|
+
mail,
|
|
49
|
+
consentDataProcessing,
|
|
50
|
+
phone: phone.replace(/[^+\d]/g, ''),
|
|
51
|
+
date: date?.toISOString().slice(0, 10) || '',
|
|
52
|
+
product: product || '',
|
|
53
|
+
},
|
|
54
|
+
true,
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
[onSubmit],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<form className="container space-y-s" onSubmit={formProps.onSubmit}>
|
|
64
|
+
{renderIndividualsFields(field)}
|
|
65
|
+
<div className="@xl:flex justify-between items-center">
|
|
66
|
+
<div className="@xl:mb-0 mb-2 flex items-center gap-3">
|
|
67
|
+
<Checkbox {...withValidator(field('consentDataProcessing'), defaultValidator)} />
|
|
68
|
+
<Footnote text="Согласен с " link={link} />
|
|
69
|
+
</div>
|
|
70
|
+
{renderSubmitButton(button)}
|
|
71
|
+
</div>
|
|
72
|
+
</form>
|
|
73
|
+
);
|
|
74
|
+
});
|
|
@@ -5,5 +5,6 @@ export interface ApplicationFormsProps<S extends Record<string, any> = Record<st
|
|
|
5
5
|
button?: SubmitButtonProps;
|
|
6
6
|
link?: LinkProps;
|
|
7
7
|
sourceBookDir?: string;
|
|
8
|
-
|
|
8
|
+
product?: string;
|
|
9
|
+
onSubmit: (data: S, isIndividualType?: boolean) => void;
|
|
9
10
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
|
|
5
|
+
export interface DatePickerControlProps {
|
|
6
|
+
className: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value?: Date;
|
|
9
|
+
error?: string;
|
|
10
|
+
onChange?: (value: Date) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const DatePickerControl = JSX<DatePickerControlProps>(
|
|
14
|
+
({ className, label, value = undefined, error, onChange }) => (
|
|
15
|
+
<div className={className}>
|
|
16
|
+
{label ? (
|
|
17
|
+
<div className="mb-xs">
|
|
18
|
+
<Text size="text-m" font="font-light">
|
|
19
|
+
{label}
|
|
20
|
+
</Text>
|
|
21
|
+
</div>
|
|
22
|
+
) : null}
|
|
23
|
+
<DatePicker value={value} onChange={onChange} valid={Boolean(!error)} />
|
|
24
|
+
<div className="h-2">
|
|
25
|
+
{error ? (
|
|
26
|
+
<Text size="text-xs" font="font-light" color="text-error">
|
|
27
|
+
{error}
|
|
28
|
+
</Text>
|
|
29
|
+
) : null}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
),
|
|
33
|
+
);
|
|
@@ -3,6 +3,7 @@ import { ApplicationFormBusinessCard } from './ApplicationFormBusinessCard';
|
|
|
3
3
|
import { ApplicationFormCredit } from './ApplicationFormCredit';
|
|
4
4
|
import { ApplicationFormDeposit } from './ApplicationFormDeposit';
|
|
5
5
|
import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
|
|
6
|
+
import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
|
|
6
7
|
import { ApplicationFormWed } from './ApplicationFormWed';
|
|
7
8
|
|
|
8
9
|
export const EmbeddableForms = {
|
|
@@ -12,4 +13,5 @@ export const EmbeddableForms = {
|
|
|
12
13
|
ApplicationFormCredit,
|
|
13
14
|
ApplicationFormAcquiring,
|
|
14
15
|
ApplicationFormGrantSupport,
|
|
16
|
+
ApplicationFormIndividuals,
|
|
15
17
|
};
|
|
@@ -5,12 +5,13 @@ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
|
5
5
|
import { Text } from '../../ui-kit/Text/Text';
|
|
6
6
|
|
|
7
7
|
interface FootnoteProps {
|
|
8
|
+
text?: string;
|
|
8
9
|
link?: LinkProps;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export const Footnote = JSX<FootnoteProps>(({ link }) => (
|
|
12
|
+
export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
|
|
12
13
|
<Paragraph size="text-s" font="font-light" color="text-secondary-text">
|
|
13
|
-
<Text
|
|
14
|
+
<Text>{text || 'Нажимая кнопку, вы подтверждаете согласие с '}</Text>
|
|
14
15
|
{link ? (
|
|
15
16
|
<Button
|
|
16
17
|
href={link.href}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import { DatePickerControl } from './DatePickerControl';
|
|
4
|
+
import { type IndividualsFormState } from './IndividualsFormState';
|
|
5
|
+
import { InputControl } from './InputControl';
|
|
6
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
7
|
+
import { defaultValidator, nameValidator, phoneValidator } from './validators';
|
|
8
|
+
|
|
9
|
+
export const renderIndividualsFields = (field: FormFieldRegisterer<IndividualsFormState>) => (
|
|
10
|
+
<div className="@xl:flex @xl:justify-between @xl:gap-lg">
|
|
11
|
+
<div className="@xl:w-1/2 space-y-s">
|
|
12
|
+
<InputControl
|
|
13
|
+
className="shrink-0 w-full"
|
|
14
|
+
label="Фамилия"
|
|
15
|
+
{...withValidator(field('surname'), nameValidator)}
|
|
16
|
+
/>
|
|
17
|
+
<InputControl
|
|
18
|
+
className="shrink-0 w-full"
|
|
19
|
+
label="Отчество"
|
|
20
|
+
{...withValidator(field('middleName'), nameValidator)}
|
|
21
|
+
/>
|
|
22
|
+
<PhoneInputControl
|
|
23
|
+
className="shrink-0 w-full"
|
|
24
|
+
label="Телефон"
|
|
25
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
<div className="@xl:w-1/2 space-y-s">
|
|
29
|
+
<InputControl
|
|
30
|
+
className="shrink-0 w-full"
|
|
31
|
+
label="Имя"
|
|
32
|
+
{...withValidator(field('name'), nameValidator)}
|
|
33
|
+
/>
|
|
34
|
+
<DatePickerControl
|
|
35
|
+
className="shrink-0 w-full"
|
|
36
|
+
label="Дата рождения"
|
|
37
|
+
{...withValidator(field('date'), defaultValidator)}
|
|
38
|
+
/>
|
|
39
|
+
<InputControl
|
|
40
|
+
className="shrink-0 w-full"
|
|
41
|
+
label="Электронная почта"
|
|
42
|
+
{...withValidator(field('mail'), defaultValidator)}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
@@ -12,7 +12,6 @@ import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
|
12
12
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
13
13
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
14
14
|
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
15
|
-
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
16
15
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
17
16
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
18
17
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
@@ -41,7 +40,6 @@ import { StickyBottomMenu } from './StickyBottomMenu/StickyBottomMenu';
|
|
|
41
40
|
import { Tabs } from './Tabs/Tabs';
|
|
42
41
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
43
42
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
44
|
-
import { Tile } from './Tile/Tile';
|
|
45
43
|
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
46
44
|
|
|
47
45
|
export const Blocks: BlocksRegistry = {
|
|
@@ -58,7 +56,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
58
56
|
CarouselCatalogCard,
|
|
59
57
|
CarouselLinks,
|
|
60
58
|
CarouselProductCard,
|
|
61
|
-
CarouselProgramsCard,
|
|
62
59
|
CarouselRecommendationCard,
|
|
63
60
|
CarouselTariffsCard,
|
|
64
61
|
ComparisonTable,
|
|
@@ -87,6 +84,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
87
84
|
Tabs,
|
|
88
85
|
TariffsTable,
|
|
89
86
|
TextBlock,
|
|
90
|
-
Tile,
|
|
91
87
|
VerticalLayout,
|
|
92
88
|
};
|
package/src/components/Blocks.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
|
14
14
|
import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
|
|
15
15
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
16
16
|
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
17
|
-
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
18
17
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
19
18
|
import { CarouselRichTextCard } from './CarouselRichTextCard/CarouselRichTextCard';
|
|
20
19
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
@@ -53,7 +52,6 @@ import { SwipeListControlBlock } from './SwipeListControlBlock/SwipeListControlB
|
|
|
53
52
|
import { Tabs } from './Tabs/Tabs';
|
|
54
53
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
55
54
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
56
|
-
import { Tile } from './Tile/Tile';
|
|
57
55
|
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
58
56
|
import { Video } from './Video/Video';
|
|
59
57
|
|
|
@@ -73,7 +71,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
73
71
|
CarouselInvestmentCard,
|
|
74
72
|
CarouselLinks,
|
|
75
73
|
CarouselProductCard,
|
|
76
|
-
CarouselProgramsCard,
|
|
77
74
|
CarouselRecommendationCard,
|
|
78
75
|
CarouselRichTextCard,
|
|
79
76
|
CarouselTariffsCard,
|
|
@@ -112,7 +109,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
112
109
|
Tabs,
|
|
113
110
|
TariffsTable,
|
|
114
111
|
TextBlock,
|
|
115
|
-
Tile,
|
|
116
112
|
VerticalLayout,
|
|
117
113
|
Video,
|
|
118
114
|
};
|
|
@@ -22,12 +22,12 @@ export const Bonus = JSX<BonusProps>(
|
|
|
22
22
|
headlineVersion="M"
|
|
23
23
|
align={align}
|
|
24
24
|
/>
|
|
25
|
-
<div className="flex flex-wrap w-full">
|
|
25
|
+
<div className="flex flex-wrap gap-3xl gap-x-m w-full">
|
|
26
26
|
{bonusItems.length > 0
|
|
27
27
|
? bonusItems.map((_, i) => (
|
|
28
28
|
<div
|
|
29
29
|
key={String(i)}
|
|
30
|
-
className="
|
|
30
|
+
className="w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow w-full p-xl sm:p-m border border-gray"
|
|
31
31
|
>
|
|
32
32
|
<div className="grow">
|
|
33
33
|
<Headline
|
|
@@ -59,10 +59,10 @@ const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef)
|
|
|
59
59
|
: renderBonusImage(bonusItemContent as BonusImageDef);
|
|
60
60
|
|
|
61
61
|
const renderBonusCount = (_: BonusCountDef) => (
|
|
62
|
-
<div className="w-full pt-default mt-s flex justify-center sm:justify-end items-end">
|
|
62
|
+
<div className="w-full pt-default @xl:mt-s @xl:mb-4 flex justify-center sm:justify-end items-end">
|
|
63
63
|
{_.bonusCount ? (
|
|
64
64
|
// -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
|
|
65
|
-
<div className="shrink-0 -mb-
|
|
65
|
+
<div className="shrink-0 -mb-6 @xl:-mb-4">
|
|
66
66
|
<span className="font-mohave text-title-large sm:text-title-extra gradient-color-text">
|
|
67
67
|
{_.bonusCount}
|
|
68
68
|
</span>
|
|
@@ -12,8 +12,8 @@ import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
|
|
|
12
12
|
|
|
13
13
|
export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
|
|
14
14
|
|
|
15
|
-
export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [] }) => (
|
|
16
|
-
<BlockWrapper className={className} defaultPadding="p-0">
|
|
15
|
+
export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [], ...rest }) => (
|
|
16
|
+
<BlockWrapper className={className} defaultPadding="p-0" {...rest}>
|
|
17
17
|
{renderTabs(calculatorTabs)}
|
|
18
18
|
</BlockWrapper>
|
|
19
19
|
));
|
|
@@ -28,7 +28,7 @@ const renderCalculator = (tab: CalculatorTab) => {
|
|
|
28
28
|
const EmbeddedBlock = EmbeddableCalcBlocks[type];
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
<div>
|
|
31
|
+
<div className="p-xl">
|
|
32
32
|
{tab?.calculatorBlock?.title ? (
|
|
33
33
|
<Heading className="mb-lg" title={tab?.calculatorBlock?.title} />
|
|
34
34
|
) : null}
|
|
@@ -45,7 +45,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
|
|
|
45
45
|
const isSingleTab = tabs.length === 1;
|
|
46
46
|
|
|
47
47
|
if (isSingleTab) {
|
|
48
|
-
return
|
|
48
|
+
return renderCalculator(tabs[0]);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return tabs.map((tab, index) => (
|
|
@@ -54,9 +54,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
|
|
|
54
54
|
isFoldButtonOnTop
|
|
55
55
|
unfoldedByDefault={index === 0}
|
|
56
56
|
renderFoldableSection={({ isUnfolded }) => (
|
|
57
|
-
<FoldableSection isUnfolded={isUnfolded}>
|
|
58
|
-
<BlockWrapper>{renderCalculator(tab)}</BlockWrapper>
|
|
59
|
-
</FoldableSection>
|
|
57
|
+
<FoldableSection isUnfolded={isUnfolded}>{renderCalculator(tab)}</FoldableSection>
|
|
60
58
|
)}
|
|
61
59
|
renderFoldButton={renderFoldButton(tab)}
|
|
62
60
|
/>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
1
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
2
|
import { type Picture } from '../../model/Picture';
|
|
3
|
+
import '../../setup-fixture';
|
|
5
4
|
import { Blocks } from '../Blocks';
|
|
6
5
|
import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistoryCard.fixture';
|
|
7
6
|
import { CARD } from '../CarouselCard/CarouselCard.fixture';
|
|
@@ -10,7 +9,7 @@ import {
|
|
|
10
9
|
PRODUCT_CARD,
|
|
11
10
|
PRODUCT_CARD_SMALL,
|
|
12
11
|
} from '../CarouselProductCard/CarouselProductCard.fixture';
|
|
13
|
-
import {
|
|
12
|
+
import { CAROUSEL_RECOMMENDATION_CARD_BENEFITS } from '../CarouselRecommendationCard/CarouselRecommendationCard.fixture';
|
|
14
13
|
import { CAROUSEL_RECOMMENDATION_CARD } from '../CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile';
|
|
15
14
|
import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
|
|
16
15
|
import { Carousel } from './Carousel';
|
|
@@ -126,22 +125,22 @@ export default {
|
|
|
126
125
|
/>
|
|
127
126
|
</div>
|
|
128
127
|
),
|
|
129
|
-
|
|
128
|
+
recommendations: (
|
|
130
129
|
<div className="container grid grid-cols-12">
|
|
131
130
|
<Carousel
|
|
132
131
|
className="col-span-12"
|
|
133
132
|
block={{
|
|
134
133
|
type: 'Carousel',
|
|
135
134
|
blocks: new Array(3).fill({
|
|
136
|
-
type: '
|
|
137
|
-
content:
|
|
135
|
+
type: 'CarouselRecommendationCard',
|
|
136
|
+
content: CAROUSEL_RECOMMENDATION_CARD,
|
|
138
137
|
}),
|
|
139
138
|
}}
|
|
140
139
|
options={options}
|
|
141
140
|
/>
|
|
142
141
|
</div>
|
|
143
142
|
),
|
|
144
|
-
|
|
143
|
+
recommendationsSecondary: (
|
|
145
144
|
<div className="container grid grid-cols-12">
|
|
146
145
|
<Carousel
|
|
147
146
|
className="col-span-12"
|
|
@@ -149,22 +148,24 @@ export default {
|
|
|
149
148
|
type: 'Carousel',
|
|
150
149
|
blocks: new Array(3).fill({
|
|
151
150
|
type: 'CarouselRecommendationCard',
|
|
152
|
-
content: CAROUSEL_RECOMMENDATION_CARD,
|
|
151
|
+
content: { version: 'secondary', ...CAROUSEL_RECOMMENDATION_CARD },
|
|
153
152
|
}),
|
|
154
153
|
}}
|
|
155
154
|
options={options}
|
|
156
155
|
/>
|
|
157
156
|
</div>
|
|
158
157
|
),
|
|
159
|
-
|
|
158
|
+
recommendationsBenefits: (
|
|
160
159
|
<div className="container grid grid-cols-12">
|
|
161
160
|
<Carousel
|
|
162
161
|
className="col-span-12"
|
|
162
|
+
visibleItemCount={0}
|
|
163
|
+
cardSize="big"
|
|
163
164
|
block={{
|
|
164
165
|
type: 'Carousel',
|
|
165
|
-
blocks: new Array(
|
|
166
|
+
blocks: new Array(6).fill({
|
|
166
167
|
type: 'CarouselRecommendationCard',
|
|
167
|
-
content:
|
|
168
|
+
content: CAROUSEL_RECOMMENDATION_CARD_BENEFITS,
|
|
168
169
|
}),
|
|
169
170
|
}}
|
|
170
171
|
options={options}
|