@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
|
@@ -13,17 +13,76 @@ export interface SubmitButtonProps extends ButtonAdditionalProps {
|
|
|
13
13
|
version?: ButtonVersion;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export type CommonApplicationFormProps = TitleProps & {
|
|
17
|
+
button?: SubmitButtonProps;
|
|
18
|
+
/** @title Условия передачи данных */
|
|
19
|
+
link?: LinkProps;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type ApplicationFormBlockDef =
|
|
23
|
+
| BusinessCardFormParamsDef
|
|
24
|
+
| WedFormParamsDef
|
|
25
|
+
| DepositFormParamsDef
|
|
26
|
+
| CreditFormParamsDef
|
|
27
|
+
| AcquiringFormParamsDef
|
|
28
|
+
| GrantSupportFormParamsDef;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @title Бизнес-карта
|
|
32
|
+
* @default {"formType": "ApplicationFormBusinessCard"}
|
|
33
|
+
*/
|
|
34
|
+
export type BusinessCardFormParamsDef = CommonApplicationFormProps & {
|
|
35
|
+
formType: 'ApplicationFormBusinessCard';
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @title ВЭД
|
|
40
|
+
* @default {"formType": "ApplicationFormWed"}
|
|
41
|
+
*/
|
|
42
|
+
export type WedFormParamsDef = CommonApplicationFormProps & {
|
|
43
|
+
formType: 'ApplicationFormWed';
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @title Депозит
|
|
48
|
+
* @default {"formType": "ApplicationFormDeposit"}
|
|
49
|
+
*/
|
|
50
|
+
export type DepositFormParamsDef = CommonApplicationFormProps & {
|
|
51
|
+
formType: 'ApplicationFormDeposit';
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @title Кредит
|
|
56
|
+
* @default {"formType": "ApplicationFormCredit"}
|
|
57
|
+
*/
|
|
58
|
+
export type CreditFormParamsDef = CommonApplicationFormProps & {
|
|
59
|
+
formType: 'ApplicationFormCredit';
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @title Эквайринг
|
|
64
|
+
* @default {"formType": "ApplicationFormAcquiring"}
|
|
65
|
+
*/
|
|
66
|
+
export type AcquiringFormParamsDef = CommonApplicationFormProps & {
|
|
67
|
+
formType: 'ApplicationFormAcquiring';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @title Грантовая поддержка
|
|
72
|
+
* @default {"formType": "ApplicationFormGrantSupport"}
|
|
73
|
+
*/
|
|
74
|
+
export type GrantSupportFormParamsDef = CommonApplicationFormProps & {
|
|
75
|
+
formType: 'ApplicationFormGrantSupport';
|
|
76
|
+
/** @title Адрес справочника */
|
|
77
|
+
sourceBookDir?: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
16
80
|
/**
|
|
17
81
|
* @title Форма заявки
|
|
18
82
|
*/
|
|
19
|
-
export type ApplicationFormContent = UniBlockContent &
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
typeForm?: 'business-card' | 'wed' | 'deposit' | 'credit' | 'acquiring';
|
|
26
|
-
button?: SubmitButtonProps;
|
|
27
|
-
/** @title Условия передачи данных */
|
|
28
|
-
link?: LinkProps;
|
|
29
|
-
};
|
|
83
|
+
export type ApplicationFormContent = UniBlockContent & {
|
|
84
|
+
/**
|
|
85
|
+
* @title Вид заявки
|
|
86
|
+
*/
|
|
87
|
+
formBlock?: ApplicationFormBlockDef;
|
|
88
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
4
|
+
import { RegionsGrantSupportData } from '../../services/regionsGrantSupport/RegionsGrantSupportData';
|
|
5
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
6
|
+
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
9
|
+
import { SelectControl } from './SelectControl';
|
|
10
|
+
|
|
11
|
+
export const ApplicationFormGrantSupport = JSX<ApplicationFormsProps>((props) => {
|
|
12
|
+
const { button, sourceBookDir } = props;
|
|
13
|
+
|
|
14
|
+
const { regions } = useSWRResource<RegionsGrantSupportData>(
|
|
15
|
+
sourceBookDir || 'regions-grant-support',
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const [region, setRegion] = useState({ key: '' });
|
|
19
|
+
|
|
20
|
+
const buttonStyle = getRegularButtonClasses({
|
|
21
|
+
className: 'text-white',
|
|
22
|
+
version: button?.version,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div className="container space-y-s sm:space-y-lg">
|
|
29
|
+
{regions ? (
|
|
30
|
+
<SelectControl
|
|
31
|
+
label="Ваш регион"
|
|
32
|
+
placeholder="Выберите регион"
|
|
33
|
+
options={regions.map(({ name = '' }) => ({ key: name }))}
|
|
34
|
+
value={region}
|
|
35
|
+
onChange={setRegion}
|
|
36
|
+
/>
|
|
37
|
+
) : null}
|
|
38
|
+
{regionHref ? (
|
|
39
|
+
<div className="text-center">
|
|
40
|
+
<Button
|
|
41
|
+
href={regionHref}
|
|
42
|
+
target="_blank"
|
|
43
|
+
className={style('p-4 w-full sm:w-auto', buttonStyle)}
|
|
44
|
+
>
|
|
45
|
+
{button?.text ? button.text : 'Перейти'}
|
|
46
|
+
</Button>
|
|
47
|
+
</div>
|
|
48
|
+
) : null}
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
});
|
|
@@ -4,5 +4,6 @@ import type { SubmitButtonProps } from './ApplicationFormContent';
|
|
|
4
4
|
export interface ApplicationFormsProps<S extends Record<string, any> = Record<string, any>> {
|
|
5
5
|
button?: SubmitButtonProps;
|
|
6
6
|
link?: LinkProps;
|
|
7
|
+
sourceBookDir?: string;
|
|
7
8
|
onSubmit: (data: S) => void;
|
|
8
9
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApplicationFormAcquiring } from './ApplicationFormAcquiring';
|
|
2
|
+
import { ApplicationFormBusinessCard } from './ApplicationFormBusinessCard';
|
|
3
|
+
import { ApplicationFormCredit } from './ApplicationFormCredit';
|
|
4
|
+
import { ApplicationFormDeposit } from './ApplicationFormDeposit';
|
|
5
|
+
import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
|
|
6
|
+
import { ApplicationFormWed } from './ApplicationFormWed';
|
|
7
|
+
|
|
8
|
+
export const EmbeddableForms = {
|
|
9
|
+
ApplicationFormBusinessCard,
|
|
10
|
+
ApplicationFormWed,
|
|
11
|
+
ApplicationFormDeposit,
|
|
12
|
+
ApplicationFormCredit,
|
|
13
|
+
ApplicationFormAcquiring,
|
|
14
|
+
ApplicationFormGrantSupport,
|
|
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 ? (
|
|
@@ -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
|
);
|
|
@@ -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
|
))}
|
|
@@ -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}
|