@redneckz/wildless-cms-uni-blocks 0.12.12 → 0.12.13
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.12.10.js +59 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +90 -66
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/bundle/components/Footer/Contacts.d.ts +0 -1
- package/bundle/components/Footer/MediaButton.d.ts +1 -1
- package/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +16 -14
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/Bonus/Bonus.js +10 -13
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
- package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/dist/components/CarouselLinks/CarouselLinks.js +7 -8
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +0 -1
- package/dist/components/Footer/Contacts.js +3 -4
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +4 -3
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +1 -1
- package/dist/components/Footer/SocialMedia.js +2 -1
- 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/buttonSizeStyles.d.ts +4 -0
- package/dist/components/Footer/buttonSizeStyles.js +7 -0
- package/dist/components/Footer/buttonSizeStyles.js.map +1 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.js +7 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
- package/dist/components/Footer/buttonStylesWithText.js +2 -5
- package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +1 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/dist/ui-kit/LinkButton/LinkButton.js +4 -3
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/LinkList/LinkList.js +2 -2
- package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
- 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 +16 -14
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/Bonus/Bonus.fixture.mobile.d.ts +8 -0
- package/lib/components/Bonus/Bonus.js +10 -13
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
- package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +6 -0
- package/lib/components/CarouselLinks/CarouselLinks.js +7 -8
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +0 -1
- package/lib/components/Footer/Contacts.js +3 -4
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +4 -3
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +1 -1
- package/lib/components/Footer/SocialMedia.js +2 -1
- 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/buttonSizeStyles.d.ts +4 -0
- package/lib/components/Footer/buttonSizeStyles.js +5 -0
- package/lib/components/Footer/buttonSizeStyles.js.map +1 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.js +5 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
- package/lib/components/Footer/buttonStylesWithText.js +1 -4
- package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +1 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +6 -0
- package/lib/ui-kit/LinkButton/LinkButton.js +4 -3
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/LinkList/LinkList.js +2 -2
- package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +65 -37
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +0 -1
- package/mobile/bundle/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +16 -14
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +10 -13
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -8
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +0 -1
- package/mobile/dist/components/Footer/Contacts.js +3 -4
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +4 -3
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/dist/components/Footer/SocialMedia.js +3 -1
- 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/buttonSizeStyles.d.ts +4 -0
- package/mobile/dist/components/Footer/buttonSizeStyles.js +7 -0
- package/mobile/dist/components/Footer/buttonSizeStyles.js.map +1 -0
- package/mobile/dist/components/Footer/buttonStylesWithText.js +2 -5
- package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -3
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
- package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +16 -14
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +10 -13
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -8
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +0 -1
- package/mobile/lib/components/Footer/Contacts.js +3 -4
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +4 -3
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/lib/components/Footer/SocialMedia.js +4 -2
- 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/buttonSizeStyles.d.ts +4 -0
- package/mobile/lib/components/Footer/buttonSizeStyles.js +5 -0
- package/mobile/lib/components/Footer/buttonSizeStyles.js.map +1 -0
- package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -4
- package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -3
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
- package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/src/common.css +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +33 -28
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/mobile/src/components/Carousel/Carousel.tsx +5 -3
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
- package/mobile/src/components/Footer/Contacts.tsx +15 -19
- package/mobile/src/components/Footer/Footer.tsx +27 -13
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +10 -3
- package/mobile/src/components/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +22 -9
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Footer/buttonSizeStyles.ts +6 -0
- package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -5
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
- package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
- package/mobile/src/ui-kit/LinkList/LinkList.tsx +3 -3
- package/package.json +1 -1
- package/src/common.css +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +41 -7
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +41 -7
- package/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
- package/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
- package/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Bonus/Bonus.fixture.mobile.tsx +72 -0
- package/src/components/Bonus/Bonus.tsx +33 -28
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
- package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/src/components/Carousel/Carousel.tsx +5 -3
- package/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
- package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +34 -0
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -0
- package/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
- package/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +3 -3
- package/src/components/Footer/Contacts.tsx +15 -19
- package/src/components/Footer/Footer.mobile.tsx +27 -13
- package/src/components/Footer/Footer.tsx +6 -8
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +10 -3
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +9 -6
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Footer/buttonSizeStyles.mobile.ts +6 -0
- package/src/components/Footer/buttonSizeStyles.ts +6 -0
- package/src/components/Footer/buttonStylesWithText.ts +1 -5
- package/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/src/components/RollupItem/RollupItem.tsx +1 -1
- package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
- package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +11 -0
- package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +1 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
- package/src/ui-kit/LinkList/LinkList.tsx +3 -3
- package/tailwind.config.cjs +5 -5
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/dist/components/Footer/SocialMedia.mobile.js +0 -7
- package/dist/components/Footer/SocialMedia.mobile.js.map +0 -1
- package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/dist/components/Footer/buttonStylesWithText.mobile.js +0 -12
- package/dist/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/lib/components/Footer/SocialMedia.mobile.js +0 -5
- package/lib/components/Footer/SocialMedia.mobile.js.map +0 -1
- package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/lib/components/Footer/buttonStylesWithText.mobile.js +0 -9
- package/lib/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
- package/src/components/Footer/SocialMedia.mobile.tsx +0 -16
- package/src/components/Footer/buttonStylesWithText.mobile.ts +0 -15
|
@@ -31,7 +31,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
31
31
|
const renderBenefit = (benefit: BenefitBlockItemProps, i: number) => (
|
|
32
32
|
<div
|
|
33
33
|
key={String(i)}
|
|
34
|
-
className="flex gap-m items-center md:basis-1/2 md:max-w-[
|
|
34
|
+
className="flex gap-m items-center md:basis-1/2 md:max-w-[500px]"
|
|
35
35
|
role="listitem"
|
|
36
36
|
>
|
|
37
37
|
{benefit?.icon?.icon ? (
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
import { Bonus } from './Bonus';
|
|
6
|
+
import type { BonusContent } from './BonusContent';
|
|
7
|
+
|
|
8
|
+
const imageSize = {
|
|
9
|
+
height: 242,
|
|
10
|
+
width: 242,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const cardWithMoney: Picture = {
|
|
14
|
+
src: 'card-with-diamond.png',
|
|
15
|
+
alt: 'Кредиты в РСХБ',
|
|
16
|
+
format: 'webp',
|
|
17
|
+
size: imageSize,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const buttons: ButtonProps[] = [
|
|
21
|
+
{
|
|
22
|
+
text: 'Установить',
|
|
23
|
+
href: '/credit-cards',
|
|
24
|
+
version: 'secondary',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
export const BONUS: BonusContent = {
|
|
29
|
+
title: 'Начисление баллов',
|
|
30
|
+
description:
|
|
31
|
+
/* eslint-disable max-len */
|
|
32
|
+
'Получайте 1% бонусными баллами с любых покупок и 1,5% баллами с покупок в категории «Путешествия». Обменивайте бонусные баллы на авиа и ж/д билеты, бронирование отелей и прокат автомобилей.',
|
|
33
|
+
bonusItems: [
|
|
34
|
+
{
|
|
35
|
+
title: '5 баллов за каждые 100 ₽',
|
|
36
|
+
description:
|
|
37
|
+
'Повышенное начисление баллов за операции оплаты товаров и услуг в сети АЗС Роснефть',
|
|
38
|
+
bonusItemContent: {
|
|
39
|
+
bonusType: 'count',
|
|
40
|
+
bonusCount: '5',
|
|
41
|
+
bonusName: 'баллов',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: '1 балл за каждые 100 ₽',
|
|
46
|
+
description: 'За остальные операции оплаты товаров и услуг',
|
|
47
|
+
bonusItemContent: {
|
|
48
|
+
bonusType: 'count',
|
|
49
|
+
bonusCount: '1',
|
|
50
|
+
bonusName: 'балл',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: '300 приветственных баллов',
|
|
55
|
+
description:
|
|
56
|
+
'За операции оплаты товаров и услуг на общую сумму 1 000 рублей и более в течение первых двух месяцев после получения карты',
|
|
57
|
+
bonusItemContent: {
|
|
58
|
+
bonusType: 'image',
|
|
59
|
+
image: cardWithMoney,
|
|
60
|
+
},
|
|
61
|
+
buttons,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default {
|
|
67
|
+
default: (
|
|
68
|
+
<div className="container grid grid-cols-12">
|
|
69
|
+
<Bonus className="col-span-12" {...BONUS} />
|
|
70
|
+
</div>
|
|
71
|
+
),
|
|
72
|
+
};
|
|
@@ -10,31 +10,39 @@ import type { BonusContent, BonusCountDef, BonusImageDef } from './BonusContent'
|
|
|
10
10
|
|
|
11
11
|
export interface BonusProps extends BonusContent, UniBlockProps {}
|
|
12
12
|
|
|
13
|
-
export const Bonus = JSX<BonusProps>(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
|
|
13
|
+
export const Bonus = JSX<BonusProps>(
|
|
14
|
+
({ className = '', title, description, bonusItems = [], ...rest }) => (
|
|
15
|
+
<BlockWrapper className={className} defaultPadding="p-default" {...rest}>
|
|
18
16
|
<div className="container">
|
|
19
|
-
<Headline
|
|
20
|
-
|
|
21
|
-
{
|
|
17
|
+
<Headline
|
|
18
|
+
className="mb-xl"
|
|
19
|
+
isPadding={false}
|
|
20
|
+
title={title}
|
|
21
|
+
description={description}
|
|
22
|
+
headlineVersion="M"
|
|
23
|
+
/>
|
|
24
|
+
<div className="flex flex-wrap w-full">
|
|
25
|
+
{bonusItems.length > 0
|
|
22
26
|
? bonusItems.map((_, i) => (
|
|
23
27
|
<div
|
|
24
28
|
key={String(i)}
|
|
25
|
-
className="flex-grow w-[49%] border border-gray p-
|
|
29
|
+
className="flex-grow w-full sm:w-[49%] border border-gray p-m mb-text mx-xs even:mr-0 odd:ml-0 last:odd:mx-0"
|
|
26
30
|
>
|
|
27
|
-
{_?.title ?
|
|
31
|
+
{_?.title ? (
|
|
32
|
+
<div className="mb-xs last:mb-0">
|
|
33
|
+
<Text size="text-h4">{_.title}</Text>
|
|
34
|
+
</div>
|
|
35
|
+
) : null}
|
|
28
36
|
{_?.description ? (
|
|
29
|
-
<div className="
|
|
37
|
+
<div className="mb-text last:mb-0">
|
|
30
38
|
<Paragraph size="text-xl" font="font-light">
|
|
31
39
|
{_.description}
|
|
32
40
|
</Paragraph>
|
|
33
41
|
</div>
|
|
34
42
|
) : null}
|
|
35
43
|
|
|
36
|
-
<div className="flex justify-between items-end
|
|
37
|
-
{renderButtonsSection(_?.buttons)}
|
|
44
|
+
<div className="flex justify-between items-end">
|
|
45
|
+
<div className="hidden sm:block">{renderButtonsSection(_?.buttons)}</div>
|
|
38
46
|
{_.bonusItemContent?.bonusType
|
|
39
47
|
? renderBonusItemContent(_.bonusItemContent)
|
|
40
48
|
: null}
|
|
@@ -45,31 +53,28 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
45
53
|
</div>
|
|
46
54
|
</div>
|
|
47
55
|
</BlockWrapper>
|
|
48
|
-
)
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef) => (
|
|
52
|
-
<div>
|
|
53
|
-
{bonusItemContent.bonusType === 'count'
|
|
54
|
-
? renderBonusCount(bonusItemContent as BonusCountDef)
|
|
55
|
-
: renderBonusImage(bonusItemContent as BonusImageDef)}
|
|
56
|
-
</div>
|
|
56
|
+
),
|
|
57
57
|
);
|
|
58
58
|
|
|
59
|
+
const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef) =>
|
|
60
|
+
bonusItemContent.bonusType === 'count'
|
|
61
|
+
? renderBonusCount(bonusItemContent as BonusCountDef)
|
|
62
|
+
: renderBonusImage(bonusItemContent as BonusImageDef);
|
|
63
|
+
|
|
59
64
|
const renderBonusCount = (_: BonusCountDef) => (
|
|
60
|
-
<div className="
|
|
65
|
+
<div className="w-full pt-default mt-s flex items-end">
|
|
61
66
|
{_.bonusCount ? (
|
|
62
|
-
<span className="font-mohave -tracking-[5px]
|
|
67
|
+
<span className="shrink-0 w-1/2 sm:w-auto font-mohave text-title-extra -tracking-[5px] bg-clip-text text-transparent bg-green-to-yellow mt-lg">
|
|
63
68
|
{_.bonusCount}
|
|
64
69
|
</span>
|
|
65
70
|
) : null}
|
|
66
71
|
{_.bonusName ? (
|
|
67
|
-
<
|
|
68
|
-
{_.bonusName}
|
|
69
|
-
</
|
|
72
|
+
<div className="w-1/2 sm:w-auto bg-clip-text text-transparent bg-green-to-yellow">
|
|
73
|
+
<Text size="text-h2">{_.bonusName}</Text>
|
|
74
|
+
</div>
|
|
70
75
|
) : null}
|
|
71
76
|
</div>
|
|
72
77
|
);
|
|
73
78
|
|
|
74
79
|
const renderBonusImage = (_: BonusImageDef) =>
|
|
75
|
-
_.image ? <Img className=
|
|
80
|
+
_.image ? <Img className="min-w-12 p-xs rounded-icon shrink-0" image={_.image} /> : null;
|
|
@@ -39,20 +39,20 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
|
|
|
39
39
|
<div className="flex justify-between">
|
|
40
40
|
<div className="w-2/5">
|
|
41
41
|
{renderWantedSumInput({
|
|
42
|
-
title: '
|
|
42
|
+
title: 'Сумма, ₽',
|
|
43
43
|
min: calculatorParams.minSum,
|
|
44
44
|
max: calculatorParams.maxSum,
|
|
45
45
|
...field('moneyValue'),
|
|
46
46
|
value: calculatorParams.moneyValue,
|
|
47
47
|
})}
|
|
48
48
|
{renderDaysInput({
|
|
49
|
-
title: '
|
|
49
|
+
title: 'Срок, дней',
|
|
50
50
|
min: calculatorParams.minDays,
|
|
51
51
|
max: calculatorParams.maxDays,
|
|
52
52
|
...field('daysValue'),
|
|
53
53
|
value: calculatorParams.daysValue,
|
|
54
54
|
})}
|
|
55
|
-
<div className="mt-
|
|
55
|
+
<div className="mt-2xl flex justify-between">
|
|
56
56
|
{renderBusinessDepositParamsForm(calculatorParams, field)}
|
|
57
57
|
{renderInterestPayment({
|
|
58
58
|
title: 'Выплата процентов',
|
|
@@ -74,10 +74,15 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
|
|
|
74
74
|
)}
|
|
75
75
|
|
|
76
76
|
<div className="w-96">
|
|
77
|
-
<CalculatorValueBlock
|
|
77
|
+
<CalculatorValueBlock
|
|
78
|
+
title="Доход в конце срока"
|
|
79
|
+
value={income}
|
|
80
|
+
postfix="₽"
|
|
81
|
+
prefix="+"
|
|
82
|
+
/>
|
|
78
83
|
<CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
|
|
79
|
-
{renderButtonsSection(buttons, { className: 'mt-
|
|
80
|
-
<div className="mt-
|
|
84
|
+
{renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true })}
|
|
85
|
+
<div className="mt-2xl">{renderFootnote(footnote)}</div>
|
|
81
86
|
</div>
|
|
82
87
|
</div>
|
|
83
88
|
<div className="mt-5">{renderFootnote(bottomFootnote)}</div>
|
|
@@ -24,7 +24,7 @@ export interface CreditCalculatorProp extends CreditCalculatorProps {
|
|
|
24
24
|
export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
25
25
|
({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
26
26
|
const [userInputParams, { field }] = useForm({
|
|
27
|
-
isAnnuity:
|
|
27
|
+
isAnnuity: true,
|
|
28
28
|
isInsurance: true,
|
|
29
29
|
isSalaryClient: false,
|
|
30
30
|
isPensionClient: false,
|
|
@@ -43,14 +43,14 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
|
43
43
|
<section className={style('flex justify-between', className)}>
|
|
44
44
|
<div className="w-2/5">
|
|
45
45
|
{renderWantedSumInput({
|
|
46
|
-
title: '
|
|
46
|
+
title: 'Сумма, ₽',
|
|
47
47
|
min: calculatorParams.minSum,
|
|
48
48
|
max: calculatorParams.maxSum,
|
|
49
49
|
...field('moneyValue'),
|
|
50
50
|
value: calculatorParams.moneyValue,
|
|
51
51
|
})}
|
|
52
52
|
{renderMonthsInput({
|
|
53
|
-
title: '
|
|
53
|
+
title: 'Срок, месяцев',
|
|
54
54
|
min: calculatorParams.minMonths,
|
|
55
55
|
max: calculatorParams.maxMonths,
|
|
56
56
|
availableMonths: calculatorParams.availableMonths,
|
|
@@ -63,7 +63,7 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
|
63
63
|
</div>
|
|
64
64
|
<Rate rate={rate} rateBlockClassName="tracking-[-25px]" unit="%" />
|
|
65
65
|
<div className="w-96">
|
|
66
|
-
<CalculatorValueBlock title="Доход
|
|
66
|
+
<CalculatorValueBlock title="Доход в конце срока" value={income} postfix="₽" prefix="+" />
|
|
67
67
|
<CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
|
|
68
68
|
{renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true })}
|
|
69
69
|
{renderFootnote(footnote)}
|
|
@@ -2,15 +2,17 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { renderBlock } from '../../BlockRenderer/renderBlock';
|
|
3
3
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
4
4
|
import { useCarouselControls } from '../../hooks/useCarouselControls';
|
|
5
|
-
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
6
|
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
|
|
8
7
|
import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
|
|
9
8
|
import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
|
|
10
9
|
import { style } from '../../utils/style';
|
|
11
|
-
import type { CarouselContent } from './CarouselContent';
|
|
12
10
|
import { CarouselScrollButtons } from './CarouselScrollButtons';
|
|
13
11
|
import { ITEMS_GAP } from './itemsGap';
|
|
12
|
+
import type { CarouselContent } from './CarouselContent';
|
|
13
|
+
import type { BlockDef } from '../../model/ContentPageDef';
|
|
14
|
+
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
15
|
+
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
14
16
|
|
|
15
17
|
export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
16
18
|
itemCount?: number;
|
|
@@ -58,7 +60,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
58
60
|
>
|
|
59
61
|
{renderChildren({
|
|
60
62
|
...rest,
|
|
61
|
-
renderProps: (block, options, blockIndex) =>
|
|
63
|
+
renderProps: (block: BlockDef, options: BlockRendererOptions, blockIndex) =>
|
|
62
64
|
renderBlock(block, options, {
|
|
63
65
|
className: style(
|
|
64
66
|
'h-full min-w-80 sm:min-w-96',
|
|
@@ -51,7 +51,7 @@ export const CarouselScrollButtons = JSX<CarouselScrollButtonsProps>(
|
|
|
51
51
|
}, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<div>
|
|
54
|
+
<div className="hidden @lg:block">
|
|
55
55
|
{renderBlur(scroll)}
|
|
56
56
|
{canMoveLeft ? (
|
|
57
57
|
<ScrollLeftButton
|
|
@@ -73,10 +73,17 @@ export const CarouselScrollButtons = JSX<CarouselScrollButtonsProps>(
|
|
|
73
73
|
const renderBlur = (scroll: SwipeListScroll) => (
|
|
74
74
|
<div>
|
|
75
75
|
{scroll.canScrollLeft ? (
|
|
76
|
-
<div
|
|
76
|
+
<div
|
|
77
|
+
className={style(
|
|
78
|
+
blurBaseStyle,
|
|
79
|
+
'left-0 bg-opacity-from-white group-data-secondary:bg-none',
|
|
80
|
+
)}
|
|
81
|
+
/>
|
|
77
82
|
) : null}
|
|
78
83
|
{scroll.canScrollRight ? (
|
|
79
|
-
<div
|
|
84
|
+
<div
|
|
85
|
+
className={style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none')}
|
|
86
|
+
/>
|
|
80
87
|
) : null}
|
|
81
88
|
</div>
|
|
82
89
|
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import { CarouselLinks } from './CarouselLinks';
|
|
4
|
+
|
|
5
|
+
const link = {
|
|
6
|
+
text: 'Аудиторские заключения',
|
|
7
|
+
href: '#',
|
|
8
|
+
};
|
|
9
|
+
const links = Array(9).fill(link);
|
|
10
|
+
|
|
11
|
+
const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
|
|
12
|
+
один из крупнейших банков в России. Был основан в 2000 году в целях развития
|
|
13
|
+
национальной кредитно-финансовой системы агропромышленного сектора и
|
|
14
|
+
сельских территорий Российской Федерации.`;
|
|
15
|
+
|
|
16
|
+
const additionalDescription = `Сегодня это универсальный коммерческий банк,
|
|
17
|
+
предоставляющий все виды банковских услуг и занимающий лидирующие позиции
|
|
18
|
+
в финансировании агропромышленного комплекса России.`;
|
|
19
|
+
|
|
20
|
+
const MAX_LINKS_COUNT_MOBILE = 3;
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
default: (
|
|
24
|
+
<CarouselLinks
|
|
25
|
+
links={links}
|
|
26
|
+
title="О Банке"
|
|
27
|
+
description={description}
|
|
28
|
+
additionalDescription={additionalDescription}
|
|
29
|
+
maxLinksCount={MAX_LINKS_COUNT_MOBILE}
|
|
30
|
+
version="secondary"
|
|
31
|
+
block={{ type: 'Carousel', blocks: new Array(3).fill(link).flat() }}
|
|
32
|
+
/>
|
|
33
|
+
),
|
|
34
|
+
};
|
|
@@ -17,6 +17,8 @@ const additionalDescription = `Сегодня это универсальный
|
|
|
17
17
|
предоставляющий все виды банковских услуг и занимающий лидирующие позиции
|
|
18
18
|
в финансировании агропромышленного комплекса России.`;
|
|
19
19
|
|
|
20
|
+
const MAX_LINKS_COUNT = 10;
|
|
21
|
+
|
|
20
22
|
export default {
|
|
21
23
|
default: (
|
|
22
24
|
<CarouselLinks
|
|
@@ -24,6 +26,7 @@ export default {
|
|
|
24
26
|
title="О Банке"
|
|
25
27
|
description={description}
|
|
26
28
|
additionalDescription={additionalDescription}
|
|
29
|
+
maxLinksCount={MAX_LINKS_COUNT}
|
|
27
30
|
version="secondary"
|
|
28
31
|
block={{ type: 'Carousel', blocks: new Array(3).fill(link).flat() }}
|
|
29
32
|
/>
|
|
@@ -3,18 +3,29 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
5
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
6
|
-
import { style } from '../../utils/style';
|
|
7
6
|
import { Carousel } from '../Carousel/Carousel';
|
|
8
7
|
import { Headline } from '../Headline/Headline';
|
|
9
8
|
import type { CarouselLinksContent } from './CarouselLinksContent';
|
|
9
|
+
import { style } from '../../utils/style';
|
|
10
10
|
|
|
11
|
-
export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {
|
|
12
|
+
maxLinksCount?: number;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
15
|
export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
16
|
-
({
|
|
17
|
-
|
|
16
|
+
({
|
|
17
|
+
className,
|
|
18
|
+
additionalDescription,
|
|
19
|
+
description,
|
|
20
|
+
links,
|
|
21
|
+
title,
|
|
22
|
+
maxLinksCount = 10,
|
|
23
|
+
...rest
|
|
24
|
+
}) => (
|
|
25
|
+
<BlockWrapper
|
|
26
|
+
className={style('flex flex-col sm:flex-row w-full overflow-hidden', className)}
|
|
27
|
+
{...rest}
|
|
28
|
+
>
|
|
18
29
|
<div className="mr-xl flex-auto">
|
|
19
30
|
<Headline
|
|
20
31
|
isPadding={false}
|
|
@@ -32,18 +43,18 @@ export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
|
32
43
|
/>
|
|
33
44
|
) : null}
|
|
34
45
|
</div>
|
|
35
|
-
{links?.length ? renderLinks(links) : null}
|
|
46
|
+
{links?.length ? renderLinks(links, maxLinksCount) : null}
|
|
36
47
|
</BlockWrapper>
|
|
37
48
|
),
|
|
38
49
|
);
|
|
39
50
|
|
|
40
|
-
const renderLinks = (links: LinkProps[]) => {
|
|
41
|
-
const itemCount = Math.ceil(links.length /
|
|
51
|
+
const renderLinks = (links: LinkProps[], maxLinksCount: number) => {
|
|
52
|
+
const itemCount = Math.ceil(links.length / maxLinksCount);
|
|
42
53
|
|
|
43
54
|
return (
|
|
44
55
|
<Carousel
|
|
45
|
-
className="
|
|
46
|
-
version=""
|
|
56
|
+
className="sm:w-2/3 w-full p-0 sm:p-2xl"
|
|
57
|
+
version="secondary"
|
|
47
58
|
itemCount={itemCount}
|
|
48
59
|
arrowsPadded={false}
|
|
49
60
|
showDots={true}
|
|
@@ -51,12 +62,12 @@ const renderLinks = (links: LinkProps[]) => {
|
|
|
51
62
|
{new Array(itemCount).fill(null).map((_, groupIndex) => (
|
|
52
63
|
<div
|
|
53
64
|
key={String(groupIndex)}
|
|
54
|
-
className=
|
|
65
|
+
className={style('flex flex-wrap self-start sm:w-[672px] w-full sm:mx-5xl')}
|
|
55
66
|
>
|
|
56
67
|
{links
|
|
57
|
-
.slice(groupIndex *
|
|
68
|
+
.slice(groupIndex * maxLinksCount, (groupIndex + 1) * maxLinksCount)
|
|
58
69
|
.map((link, index) => (
|
|
59
|
-
<LinkButton key={String(index)} className="m-
|
|
70
|
+
<LinkButton key={String(index)} className="sm:m-2xs" {...link} />
|
|
60
71
|
))}
|
|
61
72
|
</div>
|
|
62
73
|
))}
|
|
@@ -32,7 +32,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
32
32
|
defaultPadding="p-0"
|
|
33
33
|
{...rest}
|
|
34
34
|
>
|
|
35
|
-
<LinkWrapper href={href} target={target}>
|
|
35
|
+
<LinkWrapper href={href} target={target} className="h-full">
|
|
36
36
|
<BaseTile
|
|
37
37
|
className="h-full"
|
|
38
38
|
defaultPadding="p-m"
|
|
@@ -55,7 +55,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
|
|
|
55
55
|
return (
|
|
56
56
|
<section
|
|
57
57
|
className={style(
|
|
58
|
-
'relative',
|
|
58
|
+
'relative @container',
|
|
59
59
|
pageStyle,
|
|
60
60
|
className,
|
|
61
61
|
isSomeDialogOpened ? 'overflow-hidden h-screen' : '',
|
|
@@ -63,7 +63,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
|
|
|
63
63
|
data-theme={colorPalette}
|
|
64
64
|
>
|
|
65
65
|
{slots?.header ? (
|
|
66
|
-
<div className="mb-5 shadow-[0_8px_32px_0px_#00000014]">
|
|
66
|
+
<div className="relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]">
|
|
67
67
|
{renderBlocksList(slots?.header, {
|
|
68
68
|
...options,
|
|
69
69
|
slotName: 'header',
|
|
@@ -71,7 +71,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
|
|
|
71
71
|
})}
|
|
72
72
|
</div>
|
|
73
73
|
) : null}
|
|
74
|
-
<div className="container grid grid-cols-12 gap-1">
|
|
74
|
+
<div className="container @lg:grid @lg:grid-cols-12 @lg:gap-1">
|
|
75
75
|
{renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } })}
|
|
76
76
|
{renderBlocksList(slots?.footer, {
|
|
77
77
|
...options,
|
|
@@ -2,45 +2,41 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
4
|
import type { ContactGroup, ContactInfo } from './FooterContent';
|
|
5
|
-
import { style } from '../../utils/style';
|
|
6
5
|
|
|
7
6
|
export interface ContactsProps {
|
|
8
7
|
className?: string;
|
|
9
8
|
items?: ContactGroup[];
|
|
10
|
-
hasButton?: boolean;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
export const Contacts = JSX<ContactsProps>(({ className = '', items
|
|
14
|
-
<div className={
|
|
11
|
+
export const Contacts = JSX<ContactsProps>(({ className = '', items }) => (
|
|
12
|
+
<div className={className}>
|
|
15
13
|
{items?.length ? items.map(renderContactsGroup) : null}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/>
|
|
25
|
-
) : null}
|
|
14
|
+
<Button
|
|
15
|
+
version="primary"
|
|
16
|
+
className="w-full"
|
|
17
|
+
href="https://www.rshb.ru/feedback/question/"
|
|
18
|
+
target="_blank"
|
|
19
|
+
ariaLabel="Обратная связь"
|
|
20
|
+
text="Обратная связь"
|
|
21
|
+
/>
|
|
26
22
|
</div>
|
|
27
23
|
));
|
|
28
24
|
|
|
29
25
|
const renderContactsGroup = (item: ContactGroup, i: number) => (
|
|
30
|
-
<div className="
|
|
31
|
-
<div className="">
|
|
26
|
+
<div className="mb-m" key={String(i)}>
|
|
27
|
+
<div className="mb-m">
|
|
32
28
|
<Text size="text-l" font="font-medium">
|
|
33
29
|
{item?.title}
|
|
34
30
|
</Text>
|
|
35
31
|
</div>
|
|
36
|
-
<div
|
|
32
|
+
<div>{item.items?.map(renderContact)}</div>
|
|
37
33
|
</div>
|
|
38
34
|
);
|
|
39
35
|
|
|
40
36
|
const renderContact = (item: ContactInfo, index: number) => (
|
|
41
|
-
<div className="
|
|
37
|
+
<div className="mb-m" key={String(index)}>
|
|
42
38
|
<div>{renderText(item.type, item.text)}</div>
|
|
43
|
-
<div className="text-s font-light text-secondary-text">{item.description}</div>
|
|
39
|
+
<div className="mt-2xs text-s font-light text-secondary-text">{item.description}</div>
|
|
44
40
|
</div>
|
|
45
41
|
);
|
|
46
42
|
|
|
@@ -13,32 +13,46 @@ import type { FooterProps } from './FooterProps';
|
|
|
13
13
|
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
14
14
|
import { SocialMedia } from './SocialMedia';
|
|
15
15
|
import { TextInformation } from './TextInformation';
|
|
16
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
16
17
|
|
|
17
18
|
export const Footer = JSX<FooterProps>(({ className, sitemap, ...rest }) => {
|
|
18
|
-
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const {
|
|
20
|
+
relatedEnterprises,
|
|
21
|
+
contacts,
|
|
22
|
+
socialMedia,
|
|
23
|
+
mobileApps,
|
|
24
|
+
horizontalNavigationTitle,
|
|
25
|
+
documents,
|
|
26
|
+
} = useSWRResource<FooterDataProps>(
|
|
27
|
+
projectSettings.FOOTER || 'footer',
|
|
28
|
+
rest.options?.page?.fallback,
|
|
29
|
+
);
|
|
23
30
|
|
|
24
31
|
return (
|
|
25
|
-
<BlockWrapper tag="footer" className={className}
|
|
26
|
-
<div className="mb-
|
|
32
|
+
<BlockWrapper tag="footer" className={className} {...rest}>
|
|
33
|
+
<div className="mb-lg pb-xs border-b border-main-divider">
|
|
27
34
|
{sitemap?.topItems?.map((item, i) => (
|
|
28
35
|
<RollupItem key={String(i)} label={item?.text} labelIcon={item?.icon}>
|
|
29
|
-
<LinkList items={item.items}
|
|
36
|
+
<LinkList items={item.items} />
|
|
30
37
|
</RollupItem>
|
|
31
38
|
))}
|
|
32
39
|
</div>
|
|
33
40
|
<Contacts className="overflow-hidden" items={contacts} />
|
|
34
|
-
<
|
|
35
|
-
|
|
41
|
+
<div className="mt-xl">
|
|
42
|
+
<SocialMedia className="mb-xl" media={socialMedia} buttonSize="stretched">
|
|
43
|
+
Соцсети
|
|
44
|
+
</SocialMedia>
|
|
45
|
+
<Text size="text-s" font="font-light" color="text-secondary-text">
|
|
46
|
+
Мобильное приложение
|
|
47
|
+
</Text>
|
|
48
|
+
<div className="mt-xs">{mobileApps?.map(renderButton)}</div>
|
|
49
|
+
</div>
|
|
36
50
|
<HorizontalNavigation
|
|
37
|
-
className="
|
|
51
|
+
className="py-lg border-y border-main-divider"
|
|
38
52
|
title={horizontalNavigationTitle}
|
|
39
53
|
links={relatedEnterprises}
|
|
40
54
|
/>
|
|
41
|
-
<TextInformation />
|
|
55
|
+
<TextInformation links={documents} />
|
|
42
56
|
</BlockWrapper>
|
|
43
57
|
);
|
|
44
58
|
});
|
|
@@ -49,7 +63,7 @@ const renderButton = ({ href = '/' }: LinkCommonProps, i: number) => {
|
|
|
49
63
|
return (
|
|
50
64
|
<Button
|
|
51
65
|
key={String(i)}
|
|
52
|
-
className="w-full mb-
|
|
66
|
+
className="w-full mb-lg"
|
|
53
67
|
text={label}
|
|
54
68
|
version="secondary"
|
|
55
69
|
href={href}
|