@redneckz/wildless-cms-uni-blocks 0.12.8 → 0.12.9
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 +48 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/bundle/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/bundle/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/bundle/components/Footer/findIconByHref.d.ts +2 -0
- package/bundle/components/Footer/iconsMap.d.ts +7 -0
- package/bundle/model/HeadlineType.d.ts +5 -4
- package/bundle/ui-kit/Icon/IconProps.d.ts +3 -2
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/dist/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.js +4 -0
- package/dist/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.js +4 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.js +3 -1
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +7 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +2 -33
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/findIconByHref.d.ts +2 -0
- package/dist/components/Footer/findIconByHref.js +6 -0
- package/dist/components/Footer/findIconByHref.js.map +1 -0
- package/dist/components/Footer/iconsMap.d.ts +7 -0
- package/dist/components/Footer/iconsMap.js +35 -0
- package/dist/components/Footer/iconsMap.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +1 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +3 -3
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +5 -4
- package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +3 -2
- package/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/dist/ui-kit/Icon/RoundedIcon.js +9 -6
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +0 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +10 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +0 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderContacts.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +0 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +0 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +0 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.js +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.js +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.js +3 -1
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +7 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +2 -33
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/findIconByHref.d.ts +2 -0
- package/lib/components/Footer/findIconByHref.js +3 -0
- package/lib/components/Footer/findIconByHref.js.map +1 -0
- package/lib/components/Footer/iconsMap.d.ts +7 -0
- package/lib/components/Footer/iconsMap.js +33 -0
- package/lib/components/Footer/iconsMap.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +0 -1
- package/lib/components/RollupItem/RollupItem.js +1 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +3 -3
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +5 -4
- package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +3 -2
- package/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/lib/ui-kit/Icon/RoundedIcon.js +9 -6
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +0 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +950 -492
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/bundle/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/bundle/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/bundle/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/bundle/model/HeadlineType.d.ts +5 -4
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.js +4 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/mobile/dist/components/Blocks.js +3 -1
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.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/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +7 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +2 -33
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/dist/components/Footer/findIconByHref.js +6 -0
- package/mobile/dist/components/Footer/findIconByHref.js.map +1 -0
- package/mobile/dist/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/dist/components/Footer/iconsMap.js +35 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +3 -3
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +5 -4
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +9 -6
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +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/ui-kit/TopItem/TopItem.js +0 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.js +2 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/mobile/lib/components/Blocks.js +3 -1
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.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/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +7 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +2 -33
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/lib/components/Footer/findIconByHref.js +3 -0
- package/mobile/lib/components/Footer/findIconByHref.js.map +1 -0
- package/mobile/lib/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/lib/components/Footer/iconsMap.js +33 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +3 -3
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +5 -4
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +9 -6
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +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/ui-kit/TopItem/TopItem.js +0 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +5 -5
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +13 -5
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +7 -9
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +4 -1
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -6
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +15 -19
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -0
- package/mobile/src/components/BenefitsBlock/defaultIconSize.tsx +1 -0
- package/mobile/src/components/Blocks.ts +3 -1
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +2 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -4
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +2 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +1 -2
- package/mobile/src/components/Footer/Footer.tsx +19 -8
- package/mobile/src/components/Footer/MediaButton.tsx +2 -39
- package/mobile/src/components/Footer/findIconByHref.ts +4 -0
- package/mobile/src/components/Footer/iconsMap.ts +40 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -3
- package/mobile/src/components/TextBlock/TextBlock.tsx +12 -5
- package/mobile/src/model/HeadlineType.ts +6 -5
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +3 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +3 -2
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -7
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +0 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +44 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -1
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +5 -5
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +13 -5
- package/src/components/ApplicationForm/renderRegion.tsx +7 -9
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/src/components/ApplicationForm/renderSubmitButton.tsx +4 -1
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +27 -20
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +43 -127
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +15 -19
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -0
- package/src/components/BenefitsBlock/defaultIconSize.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/defaultIconSize.tsx +1 -0
- package/src/components/Blocks.mobile.ts +3 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +1 -1
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +2 -2
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -4
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +2 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/src/components/CarouselTariffsCard/renderCardInfo.tsx +1 -2
- package/src/components/Footer/Footer.mobile.tsx +19 -8
- package/src/components/Footer/MediaButton.tsx +2 -39
- package/src/components/Footer/findIconByHref.ts +4 -0
- package/src/components/Footer/iconsMap.ts +40 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +0 -14
- package/src/components/RollupItem/RollupItem.tsx +2 -3
- package/src/components/TextBlock/TextBlock.tsx +12 -5
- package/src/model/HeadlineType.ts +6 -5
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +3 -3
- package/src/ui-kit/Icon/IconProps.ts +3 -2
- package/src/ui-kit/Icon/RoundedIcon.tsx +18 -7
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +0 -1
- package/tailwind.config.cjs +0 -16
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/bundle/components/RollupItem/labelSize.d.ts +0 -1
- package/bundle/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.js +0 -4
- package/dist/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +0 -4
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +0 -1
- package/dist/components/RollupItem/labelSize.d.ts +0 -1
- package/dist/components/RollupItem/labelSize.js +0 -4
- package/dist/components/RollupItem/labelSize.js.map +0 -1
- package/dist/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/dist/components/RollupItem/labelSize.mobile.js +0 -4
- package/dist/components/RollupItem/labelSize.mobile.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.js +0 -2
- package/lib/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +0 -2
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +0 -1
- package/lib/components/RollupItem/labelSize.d.ts +0 -1
- package/lib/components/RollupItem/labelSize.js +0 -2
- package/lib/components/RollupItem/labelSize.js.map +0 -1
- package/lib/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/lib/components/RollupItem/labelSize.mobile.js +0 -2
- package/lib/components/RollupItem/labelSize.mobile.js.map +0 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/bundle/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +0 -4
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/mobile/dist/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/dist/components/RollupItem/labelSize.js +0 -4
- package/mobile/dist/components/RollupItem/labelSize.js.map +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +0 -2
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/mobile/lib/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/lib/components/RollupItem/labelSize.js +0 -2
- package/mobile/lib/components/RollupItem/labelSize.js.map +0 -1
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
- package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +0 -1
- package/mobile/src/components/RollupItem/labelSize.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
- package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +0 -1
- package/src/components/CarouselTariffsCard/descriptionSize.tsx +0 -1
- package/src/components/RollupItem/labelSize.mobile.tsx +0 -1
- package/src/components/RollupItem/labelSize.tsx +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
+
import { LinkCommonProps } from '../../model/LinkProps';
|
|
4
5
|
import { projectSettings } from '../../ProjectSettings';
|
|
5
6
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
6
7
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
@@ -8,6 +9,7 @@ import { Button } from '../../ui-kit/Button/Button';
|
|
|
8
9
|
import { LinkList } from '../../ui-kit/LinkList/LinkList';
|
|
9
10
|
import { RollupItem } from '../RollupItem/RollupItem';
|
|
10
11
|
import { Contacts } from './Contacts';
|
|
12
|
+
import { findIconByHref } from './findIconByHref';
|
|
11
13
|
import type { FooterContent } from './FooterContent';
|
|
12
14
|
import type { FooterDataProps } from './FooterDataProps';
|
|
13
15
|
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
@@ -20,7 +22,7 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
20
22
|
const fallback = rest.options?.page?.fallback;
|
|
21
23
|
|
|
22
24
|
const sitemap = useSWRResource<SitemapData>(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
23
|
-
const { relatedEnterprises, contacts, socialMedia, horizontalNavigationTitle } =
|
|
25
|
+
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle } =
|
|
24
26
|
useSWRResource<FooterDataProps>(projectSettings.FOOTER || 'footer', fallback);
|
|
25
27
|
|
|
26
28
|
return (
|
|
@@ -34,13 +36,7 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
34
36
|
</div>
|
|
35
37
|
<Contacts className="overflow-hidden" items={contacts} />
|
|
36
38
|
<SocialMedia className="mb-4" media={socialMedia} />
|
|
37
|
-
|
|
38
|
-
className="w-full mb-4"
|
|
39
|
-
text="Google Play"
|
|
40
|
-
version="secondary"
|
|
41
|
-
href="/"
|
|
42
|
-
target="_blank"
|
|
43
|
-
/>
|
|
39
|
+
{mobileApps?.map(renderButton)}
|
|
44
40
|
<HorizontalNavigation
|
|
45
41
|
className="pt-4 pb-7 border-y border-main-divider"
|
|
46
42
|
title={horizontalNavigationTitle}
|
|
@@ -50,3 +46,18 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
50
46
|
</BlockWrapper>
|
|
51
47
|
);
|
|
52
48
|
});
|
|
49
|
+
|
|
50
|
+
const renderButton = ({ href = '/' }: LinkCommonProps, i: number) => {
|
|
51
|
+
const { label } = findIconByHref(href);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<Button
|
|
55
|
+
key={String(i)}
|
|
56
|
+
className="w-full mb-4"
|
|
57
|
+
text={label}
|
|
58
|
+
version="secondary"
|
|
59
|
+
href={href}
|
|
60
|
+
target="_blank"
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -5,43 +5,7 @@ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
6
|
import { style } from '../../utils/style';
|
|
7
7
|
import { buttonStylesWithText } from './buttonStylesWithText';
|
|
8
|
-
|
|
9
|
-
const ICONS_MAP: Array<{
|
|
10
|
-
origins: string[];
|
|
11
|
-
iconMapped: Picture;
|
|
12
|
-
label: string;
|
|
13
|
-
}> = [
|
|
14
|
-
{
|
|
15
|
-
origins: ['t.me', 'telegram.org'],
|
|
16
|
-
iconMapped: { icon: 'TelegramIcon' },
|
|
17
|
-
label: 'Телеграм',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
origins: ['vk.com'],
|
|
21
|
-
iconMapped: { icon: 'VKIcon' },
|
|
22
|
-
label: 'ВКонтакте',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
origins: ['ok.ru'],
|
|
26
|
-
iconMapped: { icon: 'OkIcon' },
|
|
27
|
-
label: 'Одноклассники',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
origins: ['apps.apple.com'],
|
|
31
|
-
iconMapped: { icon: 'AppleIcon' },
|
|
32
|
-
label: 'App Store',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
origins: ['play.google.com'],
|
|
36
|
-
iconMapped: { icon: 'PlayMarketIcon' },
|
|
37
|
-
label: 'Google Play',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
origins: ['youtube.com'],
|
|
41
|
-
iconMapped: { icon: 'YoutubeIcon' },
|
|
42
|
-
label: 'Youtube',
|
|
43
|
-
},
|
|
44
|
-
];
|
|
8
|
+
import { findIconByHref } from './findIconByHref';
|
|
45
9
|
|
|
46
10
|
export type ButtonSize = 'default' | 'small';
|
|
47
11
|
|
|
@@ -53,8 +17,7 @@ export const MediaButton = JSX<MediaButtonProps>(
|
|
|
53
17
|
({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
54
18
|
const { href, version, text = '' } = rest;
|
|
55
19
|
|
|
56
|
-
const { iconMapped, label } =
|
|
57
|
-
ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
20
|
+
const { iconMapped, label } = findIconByHref(href);
|
|
58
21
|
|
|
59
22
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
60
23
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LabelProps } from '../../model/HeadlineType';
|
|
2
|
+
import { Picture } from '../../model/Picture';
|
|
3
|
+
|
|
4
|
+
export type IconsMapItem = LabelProps & {
|
|
5
|
+
origins?: string[];
|
|
6
|
+
iconMapped?: Picture;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const ICONS_MAP: Array<IconsMapItem> = [
|
|
10
|
+
{
|
|
11
|
+
origins: ['t.me', 'telegram.org'],
|
|
12
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
13
|
+
label: 'Телеграм',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
origins: ['vk.com'],
|
|
17
|
+
iconMapped: { icon: 'VKIcon' },
|
|
18
|
+
label: 'ВКонтакте',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
origins: ['ok.ru'],
|
|
22
|
+
iconMapped: { icon: 'OkIcon' },
|
|
23
|
+
label: 'Одноклассники',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
origins: ['apps.apple.com'],
|
|
27
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
28
|
+
label: 'App Store',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
origins: ['play.google.com'],
|
|
32
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
33
|
+
label: 'Google Play',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
origins: ['youtube.com'],
|
|
37
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
38
|
+
label: 'Youtube',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -14,7 +14,6 @@ import { Text } from '../../ui-kit/Text/Text';
|
|
|
14
14
|
import { style } from '../../utils/style';
|
|
15
15
|
import { foldableSectionStyles } from './foldableSectionStyles';
|
|
16
16
|
import { getIconName } from './getIconName';
|
|
17
|
-
import { labelSize } from './labelSize';
|
|
18
17
|
import { renderRoundedIcon } from './renderRoundedIcon';
|
|
19
18
|
import { rollupIconVersion } from './rollupIconVersion';
|
|
20
19
|
import type { RollupItemContent } from './RollupItemContent';
|
|
@@ -130,10 +129,10 @@ const renderPrimaryFoldButton = ({
|
|
|
130
129
|
)}
|
|
131
130
|
onClick={onToggle}
|
|
132
131
|
>
|
|
133
|
-
<div className="flex items-center group-hover/button:text-primary-main">
|
|
132
|
+
<div className="flex items-center group-hover/button:text-primary-main gap-3">
|
|
134
133
|
{renderRoundedIcon(labelIcon, labelIconBgVersion)}
|
|
135
134
|
{label ? (
|
|
136
|
-
<Text size=
|
|
135
|
+
<Text size="text-h6" font="font-normal">
|
|
137
136
|
{label}
|
|
138
137
|
</Text>
|
|
139
138
|
) : null}
|
|
@@ -14,16 +14,19 @@ export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
|
14
14
|
export const TextBlock = JSX<TextBlockProps>(
|
|
15
15
|
({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (
|
|
16
16
|
<BlockWrapper
|
|
17
|
-
className={style(
|
|
17
|
+
className={style(
|
|
18
|
+
'flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10',
|
|
19
|
+
className,
|
|
20
|
+
)}
|
|
18
21
|
{...rest}
|
|
19
22
|
>
|
|
20
23
|
{iconVersion === 'small' ? <div className="mt-1">{renderIcon()}</div> : null}
|
|
21
24
|
{iconVersion === 'big' ? renderImage(image) : null}
|
|
22
|
-
<div className="flex flex-col w-fit gap-
|
|
25
|
+
<div className="flex flex-col w-fit gap-1 sm:gap-2">
|
|
23
26
|
{title ? (
|
|
24
27
|
<Text
|
|
25
28
|
size="text-l"
|
|
26
|
-
font="font-
|
|
29
|
+
font="font-normal"
|
|
27
30
|
color="text-primary-text group-data-secondary:text-white"
|
|
28
31
|
>
|
|
29
32
|
{title}
|
|
@@ -46,10 +49,14 @@ const renderIcon = () => (
|
|
|
46
49
|
);
|
|
47
50
|
|
|
48
51
|
const renderImage = (image?: Picture) =>
|
|
49
|
-
image?.src ? <Img className="h-fit" image={image} /> : null;
|
|
52
|
+
image?.src ? <Img className="h-fit flex-shrink-0" image={image} /> : null;
|
|
50
53
|
|
|
51
54
|
const renderDescription = (description: string) => (
|
|
52
|
-
<Paragraph
|
|
55
|
+
<Paragraph
|
|
56
|
+
size="text-s"
|
|
57
|
+
font="font-light"
|
|
58
|
+
color="text-secondary-text group-data-secondary:text-white"
|
|
59
|
+
>
|
|
53
60
|
{description}
|
|
54
61
|
</Paragraph>
|
|
55
62
|
);
|
|
@@ -36,16 +36,17 @@ export type LabelProps = {
|
|
|
36
36
|
label?: string;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
export type AlignProps = {
|
|
40
|
+
/** @title Выравнивание заголовка */
|
|
41
|
+
align?: TextAlign;
|
|
42
|
+
};
|
|
43
|
+
|
|
39
44
|
export type AdditionalDescriptionProps = {
|
|
40
45
|
/** @title Дополнительное описание */
|
|
41
46
|
additionalDescription?: string;
|
|
42
47
|
};
|
|
43
48
|
|
|
44
|
-
export type HeadlineCommonProps = TitleProps &
|
|
45
|
-
DescriptionProps & {
|
|
46
|
-
/** @title Выравнивание заголовка */
|
|
47
|
-
align?: TextAlign;
|
|
48
|
-
};
|
|
49
|
+
export type HeadlineCommonProps = TitleProps & DescriptionProps & AlignProps & {};
|
|
49
50
|
|
|
50
51
|
export type HeadlineProps = HeadlineCommonProps & {
|
|
51
52
|
headlineVersion?: HeadlineVersion;
|
|
@@ -37,8 +37,8 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
|
|
|
37
37
|
|
|
38
38
|
return isOpened ? (
|
|
39
39
|
<div className="container z-40 fixed bottom-0 left-0 right-0 pointer-events-none">
|
|
40
|
-
<div className="bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
41
|
-
<div className="flex-1">
|
|
40
|
+
<div className="bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
41
|
+
<div className="sm:flex-1">
|
|
42
42
|
<Paragraph size="text-s" font="font-light" color="text-primary-text">
|
|
43
43
|
АО «Россельхозбанк» использует
|
|
44
44
|
<LinkWrapper
|
|
@@ -61,7 +61,7 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
|
|
|
61
61
|
персональных данных».
|
|
62
62
|
</Paragraph>
|
|
63
63
|
</div>
|
|
64
|
-
<div className="w-24 flex justify-end">
|
|
64
|
+
<div className="ml-3 sm:ml-0 w-24 flex justify-end">
|
|
65
65
|
<CloseButton className="bg-main-gray rounded-md" onClick={handleClose} />
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
@@ -6,12 +6,13 @@ export type { IconName };
|
|
|
6
6
|
/**
|
|
7
7
|
* @title Цвет фона иконки
|
|
8
8
|
* @enumNames [
|
|
9
|
+
* "По умолчанию",
|
|
9
10
|
* "Основной",
|
|
10
11
|
* "Второстепенный",
|
|
11
|
-
* "
|
|
12
|
+
* "Прозрачный"
|
|
12
13
|
* ]
|
|
13
14
|
*/
|
|
14
|
-
export type IconBgVersion = 'primary' | 'secondary' | '
|
|
15
|
+
export type IconBgVersion = '' | 'primary' | 'secondary' | 'opacity';
|
|
15
16
|
|
|
16
17
|
export interface IconCompatibilityFields {
|
|
17
18
|
/** @title Альтернативный текст (alt) */
|
|
@@ -6,22 +6,33 @@ import type { IconBgVersion } from './IconProps';
|
|
|
6
6
|
|
|
7
7
|
export interface RoundedIconProps extends Picture {
|
|
8
8
|
iconBgVersion?: IconBgVersion;
|
|
9
|
+
defaultIconSize?: number;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
const iconBgStyles: Record<IconBgVersion, string> = {
|
|
13
|
+
'': 'bg-main-divider group-data-secondary:bg-white/30',
|
|
12
14
|
primary: 'bg-main-divider',
|
|
13
|
-
secondary: 'bg-
|
|
14
|
-
|
|
15
|
+
secondary: 'bg-secondary-light',
|
|
16
|
+
opacity: 'bg-white/30',
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export const RoundedIcon = JSX<RoundedIconProps>(
|
|
18
|
-
({ iconBgVersion = 'primary', size, icon, ...rest }) => {
|
|
19
|
-
const
|
|
20
|
-
const height = String(size?.height || 24);
|
|
20
|
+
({ className, defaultIconSize = 44, iconBgVersion = 'primary', size, icon, ...rest }) => {
|
|
21
|
+
const widthAndHeight = String(size?.width || defaultIconSize);
|
|
21
22
|
|
|
22
23
|
return icon ? (
|
|
23
|
-
<div
|
|
24
|
-
|
|
24
|
+
<div
|
|
25
|
+
style={{
|
|
26
|
+
width: `${widthAndHeight}px`,
|
|
27
|
+
height: `${widthAndHeight}px`,
|
|
28
|
+
}}
|
|
29
|
+
className={style(
|
|
30
|
+
'rounded-icon object-fit flex justify-center items-center ',
|
|
31
|
+
iconBgStyles[iconBgVersion],
|
|
32
|
+
className,
|
|
33
|
+
)}
|
|
34
|
+
>
|
|
35
|
+
<Icon {...rest} width="54%" height="54%" name={icon} />
|
|
25
36
|
</div>
|
|
26
37
|
) : null;
|
|
27
38
|
},
|
|
@@ -58,7 +58,7 @@ export const Select = JSX<SelectProps>(
|
|
|
58
58
|
<div className={style('relative', isOpen ? 'z-20' : 'z-10')}>
|
|
59
59
|
<div
|
|
60
60
|
className={style(
|
|
61
|
-
'text-l flex justify-between items-center
|
|
61
|
+
'text-l flex justify-between items-center text-primary-text cursor-pointer',
|
|
62
62
|
getBorderStyle(isBorder, valid),
|
|
63
63
|
)}
|
|
64
64
|
onClick={toggle}
|
|
@@ -16,7 +16,6 @@ export interface TopItemProps extends TopItemContent {
|
|
|
16
16
|
|
|
17
17
|
export const TopItem = JSX<TopItemProps>(({ className = '', active, flat, children, ...rest }) => {
|
|
18
18
|
const link = useLink({ isRemote: true });
|
|
19
|
-
console.log('link', link);
|
|
20
19
|
const { href, target, text, onClick } = link(rest);
|
|
21
20
|
|
|
22
21
|
return (
|
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import { ApplicationForm } from './ApplicationForm';
|
|
4
|
+
import type { ApplicationFormContent } from './ApplicationFormContent';
|
|
5
|
+
|
|
6
|
+
const ApplicationFormProps: ApplicationFormContent = {
|
|
7
|
+
title: 'Форма заявки',
|
|
8
|
+
button: {
|
|
9
|
+
text: 'Отправить заявку',
|
|
10
|
+
version: 'primary',
|
|
11
|
+
},
|
|
12
|
+
link: {
|
|
13
|
+
text: 'условиями передачи данных',
|
|
14
|
+
href: '#',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
credit: (
|
|
20
|
+
<div className="container grid grid-cols-12">
|
|
21
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormProps} typeForm="credit" />
|
|
22
|
+
</div>
|
|
23
|
+
),
|
|
24
|
+
acquiring: (
|
|
25
|
+
<div className="container grid grid-cols-12">
|
|
26
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormProps} typeForm="acquiring" />
|
|
27
|
+
</div>
|
|
28
|
+
),
|
|
29
|
+
'business-card': (
|
|
30
|
+
<div className="container grid grid-cols-12">
|
|
31
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormProps} typeForm="business-card" />
|
|
32
|
+
</div>
|
|
33
|
+
),
|
|
34
|
+
deposit: (
|
|
35
|
+
<div className="container grid grid-cols-12">
|
|
36
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormProps} typeForm="deposit" />
|
|
37
|
+
</div>
|
|
38
|
+
),
|
|
39
|
+
wed: (
|
|
40
|
+
<div className="container grid grid-cols-12">
|
|
41
|
+
<ApplicationForm className="col-span-12" {...ApplicationFormProps} typeForm="wed" />
|
|
42
|
+
</div>
|
|
43
|
+
),
|
|
44
|
+
};
|
|
@@ -40,7 +40,9 @@ export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
|
|
|
40
40
|
return (
|
|
41
41
|
<BlockWrapper className={className} defaultPadding="p-default" {...rest}>
|
|
42
42
|
<div className="container max-w-[978px]">
|
|
43
|
-
{title ?
|
|
43
|
+
{title ? (
|
|
44
|
+
<Heading headingType="h3" title={title} className="mb-4 sm:mb-8 sm:text-center" />
|
|
45
|
+
) : null}
|
|
44
46
|
{COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit })}
|
|
45
47
|
{responseType ? <ResponseNotification responseType={responseType} /> : null}
|
|
46
48
|
</div>
|
|
@@ -63,9 +63,9 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
|
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
65
|
<form className="container" onSubmit={formProps.onSubmit}>
|
|
66
|
-
<Heading headingType="h6" title="Вид эквайринга и регион" className="text-center mb-4" />
|
|
66
|
+
<Heading headingType="h6" title="Вид эквайринга и регион" className="sm:text-center mb-4" />
|
|
67
67
|
{renderAcquiringRegion({ regions, field })}
|
|
68
|
-
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
68
|
+
<Heading headingType="h6" title="Данные организации" className="sm:text-center mb-4" />
|
|
69
69
|
{renderAcquiringDataOrganization(field)}
|
|
70
70
|
{renderSlideCheckboxes(field)}
|
|
71
71
|
{renderSubmitButton(button, 'mb-4')}
|
|
@@ -65,11 +65,11 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
|
|
|
65
65
|
|
|
66
66
|
return (
|
|
67
67
|
<form className="container" onSubmit={formProps.onSubmit}>
|
|
68
|
-
<Heading headingType="h6" title="Параметры кредита" className="text-center mb-4" />
|
|
68
|
+
<Heading headingType="h6" title="Параметры кредита" className="sm:text-center mb-4" />
|
|
69
69
|
{renderCreditParameters(field)}
|
|
70
|
-
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
70
|
+
<Heading headingType="h6" title="Данные организации" className="sm:text-center mb-4" />
|
|
71
71
|
{renderCreditDataOrganization(field)}
|
|
72
|
-
<Heading headingType="h6" title="Офис банка" className="text-center mb-4" />
|
|
72
|
+
<Heading headingType="h6" title="Офис банка" className="sm:text-center mb-4" />
|
|
73
73
|
{renderRegionDepartment({ regions, branches, field })}
|
|
74
74
|
{renderSubmitButton(button, 'mb-4')}
|
|
75
75
|
<Footnote link={link} />
|
|
@@ -47,7 +47,7 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
|
47
47
|
<Heading
|
|
48
48
|
headingType="h6"
|
|
49
49
|
title="Оставьте заявку и мы ответим на любые вопросы по депозитам"
|
|
50
|
-
className="text-center mb-4"
|
|
50
|
+
className="sm:text-center mb-4"
|
|
51
51
|
/>
|
|
52
52
|
<div className="max-w-[560px] m-auto">
|
|
53
53
|
<InputControl
|
|
@@ -61,8 +61,8 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
|
61
61
|
{...withValidator(field('phone'), phoneValidator)}
|
|
62
62
|
/>
|
|
63
63
|
</div>
|
|
64
|
-
<div className="flex justify-between items-center max-w-[560px] m-auto">
|
|
65
|
-
<div className="flex-1">
|
|
64
|
+
<div className="flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto">
|
|
65
|
+
<div className="flex-1 mt-4 sm:mt-0">
|
|
66
66
|
<Footnote link={link} />
|
|
67
67
|
</div>
|
|
68
68
|
{renderSubmitButton(button)}
|
|
@@ -64,18 +64,18 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
64
64
|
|
|
65
65
|
return (
|
|
66
66
|
<form className="container" onSubmit={formProps.onSubmit}>
|
|
67
|
-
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
67
|
+
<Heading headingType="h6" title="Данные организации" className="sm:text-center mb-4" />
|
|
68
68
|
{renderWedDataOrganization(field)}
|
|
69
|
-
<Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
|
|
69
|
+
<Heading headingType="h6" title="Интересующий вопрос" className="sm:text-center mb-4" />
|
|
70
70
|
{renderQuestionsInterested(field)}
|
|
71
|
-
<div className="flex items-center
|
|
72
|
-
{renderSubmitButton(button, 'mr-5')}
|
|
71
|
+
<div className="flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9">
|
|
72
|
+
{renderSubmitButton(button, 'mb-4 sm:mr-5 sm:mb-0')}
|
|
73
73
|
<Footnote link={link} />
|
|
74
74
|
</div>
|
|
75
75
|
<Heading
|
|
76
76
|
headingType="h6"
|
|
77
77
|
title="Или свяжитесь с нами удобным способом"
|
|
78
|
-
className="text-center mb-4"
|
|
78
|
+
className="sm:text-center mb-4"
|
|
79
79
|
/>
|
|
80
80
|
{renderContacts()}
|
|
81
81
|
</form>
|
|
@@ -6,8 +6,8 @@ import { PhoneInputControl } from './PhoneInputControl';
|
|
|
6
6
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
7
7
|
|
|
8
8
|
export const renderAcquiringDataOrganization = (field: FormFieldRegisterer<AcquiringFormState>) => (
|
|
9
|
-
<div className="flex justify-between gap-5 mb-
|
|
10
|
-
<div className="w-1/2">
|
|
9
|
+
<div className="mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7">
|
|
10
|
+
<div className="sm:w-1/2">
|
|
11
11
|
<InputControl
|
|
12
12
|
className="shrink-0 w-full mb-3"
|
|
13
13
|
label="Наименование организации"
|
|
@@ -19,7 +19,7 @@ export const renderAcquiringDataOrganization = (field: FormFieldRegisterer<Acqui
|
|
|
19
19
|
{...withValidator(field('name'), nameValidator)}
|
|
20
20
|
/>
|
|
21
21
|
</div>
|
|
22
|
-
<div className="w-1/2">
|
|
22
|
+
<div className="sm:w-1/2">
|
|
23
23
|
<InputControl
|
|
24
24
|
className="shrink-0 w-full mb-3"
|
|
25
25
|
label="ИНН"
|
|
@@ -12,8 +12,8 @@ interface AcquiringRegionProps {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const renderAcquiringRegion = ({ regions, field }: AcquiringRegionProps) => (
|
|
15
|
-
<div className="flex justify-between gap-5 mb-7">
|
|
16
|
-
<div className="w-1/2">
|
|
15
|
+
<div className="mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0">
|
|
16
|
+
<div className="mb-3 sm:mb-0 sm:w-1/2">
|
|
17
17
|
<SelectControl
|
|
18
18
|
label="Вид эквайринга"
|
|
19
19
|
placeholder="Выберите эквайринг"
|
|
@@ -21,7 +21,7 @@ export const renderAcquiringRegion = ({ regions, field }: AcquiringRegionProps)
|
|
|
21
21
|
{...withValidator(field('acquiringType'), defaultValidator)}
|
|
22
22
|
/>
|
|
23
23
|
</div>
|
|
24
|
-
<div className="w-1/2">
|
|
24
|
+
<div className="mb-3 sm:mb-0 sm:w-1/2">
|
|
25
25
|
<SelectControl
|
|
26
26
|
label="Адрес"
|
|
27
27
|
placeholder="Выберите адрес"
|
|
@@ -8,8 +8,8 @@ import { defaultValidator, innValidator, nameValidator, phoneValidator } from '.
|
|
|
8
8
|
export const renderBusinessCardDataOrganization = (
|
|
9
9
|
field: FormFieldRegisterer<BusinessCardFormState>,
|
|
10
10
|
) => (
|
|
11
|
-
<div className="flex justify-between gap-5">
|
|
12
|
-
<div className="w-1/2">
|
|
11
|
+
<div className="sm:flex sm:justify-between sm:gap-5">
|
|
12
|
+
<div className="sm:w-1/2">
|
|
13
13
|
<InputControl
|
|
14
14
|
className="shrink-0 w-full mb-3"
|
|
15
15
|
label="Контактное лицо"
|
|
@@ -21,7 +21,7 @@ export const renderBusinessCardDataOrganization = (
|
|
|
21
21
|
{...withValidator(field('inn'), innValidator)}
|
|
22
22
|
/>
|
|
23
23
|
</div>
|
|
24
|
-
<div className="w-1/2">
|
|
24
|
+
<div className="sm:w-1/2">
|
|
25
25
|
<PhoneInputControl
|
|
26
26
|
className="shrink-0 w-full mb-3"
|
|
27
27
|
label="Телефон"
|
|
@@ -6,8 +6,8 @@ import { PhoneInputControl } from './PhoneInputControl';
|
|
|
6
6
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
7
7
|
|
|
8
8
|
export const renderCreditDataOrganization = (field: FormFieldRegisterer<CreditFormState>) => (
|
|
9
|
-
<div className="flex justify-between gap-5 mb-7">
|
|
10
|
-
<div className="w-1/2">
|
|
9
|
+
<div className="mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0">
|
|
10
|
+
<div className="sm:w-1/2">
|
|
11
11
|
<InputControl
|
|
12
12
|
className="shrink-0 w-full mb-3"
|
|
13
13
|
label="Наименование организации"
|
|
@@ -24,7 +24,7 @@ export const renderCreditDataOrganization = (field: FormFieldRegisterer<CreditFo
|
|
|
24
24
|
{...withValidator(field('phone'), phoneValidator)}
|
|
25
25
|
/>
|
|
26
26
|
</div>
|
|
27
|
-
<div className="w-1/2">
|
|
27
|
+
<div className="sm:w-1/2">
|
|
28
28
|
<InputControl
|
|
29
29
|
className="shrink-0 w-full mb-3"
|
|
30
30
|
label="Годовая выручка, ₽"
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from './CreditParameters';
|
|
13
13
|
|
|
14
14
|
export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormState>) => (
|
|
15
|
-
<div className="flex justify-between gap-5 mb-7">
|
|
16
|
-
<div className="w-1/2">
|
|
15
|
+
<div className="mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0">
|
|
16
|
+
<div className="mb-3 sm:mb-0 sm:w-1/2">
|
|
17
17
|
<label>
|
|
18
18
|
<Text size="text-m" font="font-light">
|
|
19
19
|
Сумма кредита, ₽
|
|
@@ -26,7 +26,7 @@ export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormStat
|
|
|
26
26
|
{...field('amount')}
|
|
27
27
|
/>
|
|
28
28
|
</div>
|
|
29
|
-
<div className="w-1/2">
|
|
29
|
+
<div className="sm:w-1/2">
|
|
30
30
|
<label>
|
|
31
31
|
<Text size="text-m" font="font-light">
|
|
32
32
|
Срок кредита, месяцев
|
|
@@ -6,11 +6,19 @@ export const renderQuestionsInterested = (field: FormFieldRegisterer<WedFormStat
|
|
|
6
6
|
const textField = field('text');
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
|
-
<div className="mb-6">
|
|
10
|
-
<div className="flex items-center
|
|
11
|
-
<Checkbox text="Валютный контроль" {...field('currencyControl')} />
|
|
12
|
-
<Checkbox
|
|
13
|
-
|
|
9
|
+
<div className="mb-3 sm:mb-6">
|
|
10
|
+
<div className="mb-4 sm:flex sm:items-center sm:gap-6">
|
|
11
|
+
<Checkbox className="mb-3 sm:mb-0" text="Валютный контроль" {...field('currencyControl')} />
|
|
12
|
+
<Checkbox
|
|
13
|
+
className="mb-3 sm:mb-0"
|
|
14
|
+
text="Документарные операции"
|
|
15
|
+
{...field('documentaryOperations')}
|
|
16
|
+
/>
|
|
17
|
+
<Checkbox
|
|
18
|
+
className="mb-3 sm:mb-0"
|
|
19
|
+
text="Конверсионные операции"
|
|
20
|
+
{...field('conversionOperations')}
|
|
21
|
+
/>
|
|
14
22
|
</div>
|
|
15
23
|
<textarea
|
|
16
24
|
placeholder="Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка"
|
|
@@ -11,14 +11,12 @@ interface RegionProps {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const renderRegion = ({ regions, field }: RegionProps) => (
|
|
14
|
-
<div className="
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
14
|
+
<div className="w-full mb-3 sm:mb-5">
|
|
15
|
+
<SelectControl
|
|
16
|
+
label="Регион"
|
|
17
|
+
placeholder="Выберите регион"
|
|
18
|
+
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
19
|
+
{...withValidator(field('region'), defaultValidator)}
|
|
20
|
+
/>
|
|
23
21
|
</div>
|
|
24
22
|
);
|