@redneckz/wildless-cms-uni-blocks 0.14.3 → 0.14.5
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.13.5.js +33 -0
- package/bin/migration-scripts/0.14.1.js +29 -0
- package/bin/migration-scripts/0.14.4.js +37 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +83 -79
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
- package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/bundle/components/Footer/FooterContent.d.ts +1 -4
- package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
- package/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/bundle/model/EmptyOptionType.d.ts +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +16 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +27 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +6 -6
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +8 -8
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.js +0 -1
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +0 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -4
- package/dist/components/Footer/FooterDataProps.d.ts +4 -3
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +26 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +0 -7
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/content-page-repository/transformHTML.js +32 -2
- package/dist/content-page-repository/transformHTML.js.map +1 -1
- package/dist/model/EmptyOptionType.d.ts +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +16 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +27 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -6
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +8 -8
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.js +0 -1
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
- package/lib/components/Carousel/Carousel.js +0 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -4
- package/lib/components/Footer/FooterDataProps.d.ts +4 -3
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +26 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +0 -7
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/content-page-repository/transformHTML.js +9 -2
- package/lib/content-page-repository/transformHTML.js.map +1 -1
- package/lib/model/EmptyOptionType.d.ts +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +58 -61
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/bundle/model/EmptyOptionType.d.ts +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -6
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +8 -8
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.js +0 -1
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +0 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js +26 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +0 -7
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/content-page-repository/transformHTML.js +32 -2
- package/mobile/dist/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/dist/model/EmptyOptionType.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -6
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +8 -8
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.js +0 -1
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +0 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js +26 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +0 -7
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/content-page-repository/transformHTML.js +9 -2
- package/mobile/lib/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/lib/model/EmptyOptionType.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +33 -28
- package/mobile/src/components/Calculator/Calculator.example.json +1 -0
- package/mobile/src/components/Calculator/Calculator.ui.json +8 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +31 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
- package/mobile/src/components/Calculator/constants.ts +0 -1
- package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
- package/mobile/src/components/Carousel/Carousel.tsx +0 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/FooterContent.ts +1 -5
- package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
- package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
- package/mobile/src/components/Footer/iconsMap.ts +0 -7
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
- package/mobile/src/content-page-repository/transformHTML.ts +10 -2
- package/mobile/src/model/EmptyOptionType.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +33 -28
- package/src/components/Calculator/Calculator.example.json +1 -0
- package/src/components/Calculator/Calculator.tsx +19 -4
- package/src/components/Calculator/Calculator.ui.json +8 -0
- package/src/components/Calculator/CalculatorContent.ts +31 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
- package/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
- package/src/components/Calculator/constants.ts +0 -1
- package/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
- package/src/components/Carousel/Carousel.fixture.tsx +0 -18
- package/src/components/Carousel/Carousel.tsx +0 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/FooterContent.ts +1 -5
- package/src/components/Footer/FooterDataProps.ts +4 -3
- package/src/components/Footer/SocialMedia.tsx +48 -16
- package/src/components/Footer/iconsMap.ts +0 -7
- package/src/components/ProductGallery/ProductGallery.example.json +10 -4
- package/src/content-page-repository/transformHTML.ts +10 -2
- package/src/model/EmptyOptionType.ts +1 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/bundle/components/Footer/MediaButton.d.ts +0 -7
- package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/dist/components/Footer/MediaButton.d.ts +0 -7
- package/dist/components/Footer/MediaButton.js +0 -18
- package/dist/components/Footer/MediaButton.js.map +0 -1
- package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/dist/components/Footer/buttonSizeStyle.js +0 -7
- package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
- package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/lib/components/Footer/MediaButton.d.ts +0 -7
- package/lib/components/Footer/MediaButton.js +0 -16
- package/lib/components/Footer/MediaButton.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/lib/components/Footer/buttonSizeStyle.js +0 -5
- package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/dist/components/Footer/MediaButton.js +0 -18
- package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
- package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
- package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/lib/components/Footer/MediaButton.js +0 -16
- package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
- package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
- package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
- package/mobile/src/components/Footer/MediaButton.tsx +0 -50
- package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
- package/src/components/Footer/MediaButton.tsx +0 -50
- package/src/components/Footer/buttonSizeStyle.ts +0 -6
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"productBlock": {
|
|
10
10
|
"title": "Продуктовая галерея",
|
|
11
|
+
"headlineVersion": "XXL",
|
|
11
12
|
"image": {
|
|
12
13
|
"format": "webp",
|
|
13
14
|
"size": {
|
|
@@ -17,20 +18,22 @@
|
|
|
17
18
|
},
|
|
18
19
|
"description": "Описание",
|
|
19
20
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
21
|
+
"isDotted": true,
|
|
22
|
+
"benefitsVersion": "normal",
|
|
20
23
|
"benefits": [
|
|
21
24
|
{
|
|
22
25
|
"icon": {
|
|
23
26
|
"icon": "ActualBalanceIcon"
|
|
24
27
|
},
|
|
25
|
-
"label": "
|
|
26
|
-
"description": "
|
|
28
|
+
"label": "Преимущество №1",
|
|
29
|
+
"description": "Описание"
|
|
27
30
|
},
|
|
28
31
|
{
|
|
29
32
|
"icon": {
|
|
30
33
|
"icon": "BankIcon"
|
|
31
34
|
},
|
|
32
|
-
"label": "
|
|
33
|
-
"description": "
|
|
35
|
+
"label": "Преимущество №2",
|
|
36
|
+
"description": "Описание"
|
|
34
37
|
}
|
|
35
38
|
]
|
|
36
39
|
}
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
},
|
|
43
46
|
"productBlock": {
|
|
44
47
|
"title": "Продуктовая галерея",
|
|
48
|
+
"headlineVersion": "XXL",
|
|
45
49
|
"image": {
|
|
46
50
|
"format": "webp",
|
|
47
51
|
"size": {
|
|
@@ -51,6 +55,8 @@
|
|
|
51
55
|
},
|
|
52
56
|
"description": "Описание",
|
|
53
57
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
58
|
+
"isDotted": true,
|
|
59
|
+
"benefitsVersion": "normal",
|
|
54
60
|
"benefits": [
|
|
55
61
|
{
|
|
56
62
|
"icon": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import rehypeParse from 'rehype-parse';
|
|
2
|
-
import rehypeSanitize from 'rehype-sanitize';
|
|
2
|
+
import rehypeSanitize, { defaultSchema } from 'rehype-sanitize';
|
|
3
3
|
import rehypeStringify from 'rehype-stringify';
|
|
4
4
|
import { unified } from 'unified';
|
|
5
5
|
import { replaceHeadingTags } from './replaceHeadingTags';
|
|
@@ -9,9 +9,17 @@ export async function transformHTML(html: string | null | undefined): Promise<st
|
|
|
9
9
|
return '';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
const extendedSchema = {
|
|
13
|
+
...defaultSchema,
|
|
14
|
+
protocols: {
|
|
15
|
+
...defaultSchema.protocols,
|
|
16
|
+
href: [...(defaultSchema?.protocols?.href || []), 'tel'],
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
12
20
|
const result = await unified()
|
|
13
21
|
.use(rehypeParse)
|
|
14
|
-
.use(rehypeSanitize)
|
|
22
|
+
.use(rehypeSanitize, extendedSchema)
|
|
15
23
|
.use(rehypeStringify)
|
|
16
24
|
.process(html);
|
|
17
25
|
|
|
@@ -32,7 +32,7 @@ const getButtonStyle = (props: ButtonContent) => {
|
|
|
32
32
|
|
|
33
33
|
return style(
|
|
34
34
|
'group/btn items-center justify-center',
|
|
35
|
-
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
35
|
+
isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto',
|
|
36
36
|
rounded ? 'rounded-full' : '',
|
|
37
37
|
);
|
|
38
38
|
};
|
package/package.json
CHANGED
package/src/components/Blocks.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { Carousel } from './Carousel/Carousel';
|
|
|
11
11
|
import { CarouselBankHistoryCard } from './CarouselBankHistoryCard/CarouselBankHistoryCard';
|
|
12
12
|
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
13
13
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
14
|
-
import { CarouselEventCard } from './CarouselEventCard/CarouselEventCard';
|
|
15
14
|
import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
|
|
16
15
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
17
16
|
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
@@ -70,7 +69,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
70
69
|
CarouselBankHistoryCard,
|
|
71
70
|
CarouselCard,
|
|
72
71
|
CarouselCatalogCard,
|
|
73
|
-
CarouselEventCard,
|
|
74
72
|
CarouselInvestmentCard,
|
|
75
73
|
CarouselLinks,
|
|
76
74
|
CarouselProductCard,
|
|
@@ -15,7 +15,7 @@ export interface BonusCalculatorProps extends CommonCalculatorProps {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
18
|
-
({ className = '', sourceBookDir
|
|
18
|
+
({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
19
19
|
const [userInputParams, { field }] = useForm({
|
|
20
20
|
travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
|
|
21
21
|
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
|
|
3
3
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
4
4
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
5
6
|
import { style } from '../../utils/style';
|
|
6
7
|
import type { BusinessDepositCalculatorProps } from './CalculatorContent';
|
|
7
8
|
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
@@ -22,17 +23,19 @@ export interface BusinessDepositCalculatorProp extends BusinessDepositCalculator
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
|
|
25
|
-
({ className = '',
|
|
26
|
+
({ className = '', rateParams, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
|
|
26
27
|
const [userInputParams, { field }] = useForm({
|
|
27
28
|
moneyValue: BUSINESS_DEFAULT_SUM,
|
|
28
29
|
daysValue: BUSINESS_DEFAULT_DAYS,
|
|
29
30
|
isReplenished: false,
|
|
30
31
|
isPartialWithdrawal: false,
|
|
31
|
-
isSmallBusiness: false,
|
|
32
32
|
isMonthlyInterestPayment: false,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
const calculatorParams = useBusinessDepositCalculatorParams(
|
|
35
|
+
const calculatorParams = useBusinessDepositCalculatorParams(
|
|
36
|
+
userInputParams,
|
|
37
|
+
rateParams?.sourceBookDir,
|
|
38
|
+
);
|
|
36
39
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
37
40
|
|
|
38
41
|
return (
|
|
@@ -52,13 +55,15 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
|
|
|
52
55
|
...field('daysValue'),
|
|
53
56
|
value: calculatorParams.daysValue,
|
|
54
57
|
})}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
<div className="flex flex-col sm:flex-row gap-y-4 gap-x-14">
|
|
59
|
+
{renderBusinessDepositParamsForm(calculatorParams, field)}
|
|
60
|
+
{renderInterestPayment({
|
|
61
|
+
title: 'Выплата процентов',
|
|
62
|
+
orientation: 'vertical',
|
|
63
|
+
...field('isMonthlyInterestPayment'),
|
|
64
|
+
radioGroupClassName: 'sm:flex-col',
|
|
65
|
+
})}
|
|
66
|
+
</div>
|
|
62
67
|
</div>
|
|
63
68
|
<div className="border-b border-main-divider md:hidden"></div>
|
|
64
69
|
{renderRate({
|
|
@@ -82,24 +87,24 @@ const renderBusinessDepositParamsForm = (
|
|
|
82
87
|
calculatorParams: BusinessDepositCalculatorParams,
|
|
83
88
|
field: FormFieldRegisterer<BusinessDepositCalculatorUserInputParams>,
|
|
84
89
|
) => (
|
|
85
|
-
<div className="
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
90
|
+
<div className="space-y-s">
|
|
91
|
+
<Text color="text-secondary-text" font="font-light">
|
|
92
|
+
Параметры
|
|
93
|
+
</Text>
|
|
94
|
+
<div className="flex flex-col gap-y-xl sm:gap-y-s">
|
|
95
|
+
<Checkbox
|
|
96
|
+
text="Пополнение"
|
|
97
|
+
disabled={calculatorParams.isDisabledOperatingDeposit}
|
|
98
|
+
{...field('isReplenished')}
|
|
99
|
+
value={calculatorParams.isReplenished}
|
|
100
|
+
/>
|
|
101
|
+
<Checkbox
|
|
102
|
+
disabled={calculatorParams.isDisabledOperatingDeposit}
|
|
103
|
+
text="Частичное снятие"
|
|
104
|
+
{...field('isPartialWithdrawal')}
|
|
105
|
+
value={calculatorParams.isPartialWithdrawal}
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
103
108
|
</div>
|
|
104
109
|
);
|
|
105
110
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useCarouselControls } from '../../hooks/useCarouselControls';
|
|
4
|
+
import { Align } from '../../model/Align';
|
|
4
5
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
7
|
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
@@ -14,6 +15,7 @@ export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
|
|
|
14
15
|
interface TabsProps {
|
|
15
16
|
activeIndex: number;
|
|
16
17
|
tabsNav: CalculatorNav[];
|
|
18
|
+
tabAlign?: Align;
|
|
17
19
|
slideIndexShift: number;
|
|
18
20
|
onClick: (index: number) => void;
|
|
19
21
|
}
|
|
@@ -25,8 +27,14 @@ interface NavButtonProps {
|
|
|
25
27
|
onClick: () => void;
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
const alignStyleMap: Record<Align, string> = {
|
|
31
|
+
start: 'justify-start',
|
|
32
|
+
center: 'justify-center',
|
|
33
|
+
end: 'justify-end',
|
|
34
|
+
};
|
|
35
|
+
|
|
28
36
|
export const Calculator = JSX<CalculatorProps>(
|
|
29
|
-
({ className = '', calculatorTabs = [], ...rest }) => {
|
|
37
|
+
({ className = '', tabAlign, calculatorTabs = [], ...rest }) => {
|
|
30
38
|
const tabsNav = calculatorTabs.map((_) => _.nav || ({} as CalculatorNav));
|
|
31
39
|
const calculatorBlocks = calculatorTabs.map(
|
|
32
40
|
({ calculatorBlock }) => calculatorBlock || ({} as CalculatorBlockDef),
|
|
@@ -48,7 +56,13 @@ export const Calculator = JSX<CalculatorProps>(
|
|
|
48
56
|
>
|
|
49
57
|
<div className="bg-white">
|
|
50
58
|
{tabsNav.length > 1
|
|
51
|
-
? renderTabs({
|
|
59
|
+
? renderTabs({
|
|
60
|
+
activeIndex,
|
|
61
|
+
tabsNav,
|
|
62
|
+
tabAlign,
|
|
63
|
+
slideIndexShift,
|
|
64
|
+
onClick: handleSlideIndexShift,
|
|
65
|
+
})
|
|
52
66
|
: null}
|
|
53
67
|
{renderArrows({
|
|
54
68
|
...controls,
|
|
@@ -108,8 +122,9 @@ function renderNavButton({ tab, i, isActive, onClick }: NavButtonProps) {
|
|
|
108
122
|
);
|
|
109
123
|
}
|
|
110
124
|
|
|
111
|
-
function renderTabs({ activeIndex, tabsNav, slideIndexShift, onClick }: TabsProps) {
|
|
125
|
+
function renderTabs({ activeIndex, tabsNav, tabAlign, slideIndexShift, onClick }: TabsProps) {
|
|
112
126
|
const CARD_SHIFT = 388;
|
|
127
|
+
const alignStyle = tabAlign ? alignStyleMap[tabAlign] : '';
|
|
113
128
|
|
|
114
129
|
return (
|
|
115
130
|
<div>
|
|
@@ -117,7 +132,7 @@ function renderTabs({ activeIndex, tabsNav, slideIndexShift, onClick }: TabsProp
|
|
|
117
132
|
style={{ transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }}
|
|
118
133
|
className="flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000"
|
|
119
134
|
>
|
|
120
|
-
<div className=
|
|
135
|
+
<div className={style('w-full flex flex-nowrap items-end gap-xs', alignStyle)}>
|
|
121
136
|
{tabsNav.map((tab, i) =>
|
|
122
137
|
renderNavButton({
|
|
123
138
|
tab,
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
+
import { Align } from '../../model/Align';
|
|
1
2
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
3
|
import type { Footnote } from '../../model/Footnote';
|
|
3
4
|
import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
|
|
4
5
|
import type { IconProps } from '../../model/Picture';
|
|
5
6
|
import type { ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
6
7
|
|
|
8
|
+
export interface RateParams {
|
|
9
|
+
/** @title Адрес справочника */
|
|
10
|
+
sourceBookDir?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @title ЮЛ
|
|
15
|
+
* @default {"rateType": "UL"}
|
|
16
|
+
*/
|
|
17
|
+
export type ULRateDef = RateParams & {
|
|
18
|
+
rateType: 'UL';
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @title ИП
|
|
23
|
+
* @default {"rateType": "IP"}
|
|
24
|
+
*/
|
|
25
|
+
export type IPRateDef = RateParams & {
|
|
26
|
+
rateType: 'IP';
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @title Назначение ставки
|
|
31
|
+
*/
|
|
32
|
+
export type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
|
|
33
|
+
|
|
7
34
|
export type CommonCalculatorProps = Footnote &
|
|
8
35
|
ButtonsSectionContent & {
|
|
9
36
|
/** @title Адрес справочника */
|
|
@@ -51,7 +78,9 @@ export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
|
51
78
|
paramsViewSettings?: DepositCalculatorParamsViewSettings;
|
|
52
79
|
}
|
|
53
80
|
|
|
54
|
-
export interface BusinessDepositCalculatorProps extends
|
|
81
|
+
export interface BusinessDepositCalculatorProps extends Footnote, ButtonsSectionContent {
|
|
82
|
+
/** @title Ставка для */
|
|
83
|
+
rateParams?: RateParamsDef;
|
|
55
84
|
/** @title Сноска снизу блока */
|
|
56
85
|
bottomFootnote?: string;
|
|
57
86
|
/** @title Показывать название депозита */
|
|
@@ -151,6 +180,7 @@ export type CalculatorTab = {
|
|
|
151
180
|
* @title Калькулятор
|
|
152
181
|
*/
|
|
153
182
|
export interface CalculatorContent {
|
|
183
|
+
tabAlign?: Align;
|
|
154
184
|
/** @title Вкладки */
|
|
155
185
|
calculatorTabs?: CalculatorTab[];
|
|
156
186
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* eslint-disable max-lines, max-lines-per-function */
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
|
|
3
4
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
|
+
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
4
6
|
import { style } from '../../utils/style';
|
|
5
7
|
import type {
|
|
6
8
|
CreditCalculatorParamsViewSettings,
|
|
7
9
|
CreditCalculatorProps,
|
|
8
10
|
} from './CalculatorContent';
|
|
11
|
+
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
12
|
+
import { CREDIT_DEFAULT_SUM, DEFAULT_MONTHS } from './constants';
|
|
9
13
|
import { renderFootnote } from './renderFootnote';
|
|
10
|
-
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
11
14
|
import { renderMonthsInput } from './renderMonthsInput';
|
|
12
|
-
import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
|
|
13
|
-
import { CREDIT_DEFAULT_SUM, DEFAULT_MONTHS } from './constants';
|
|
14
|
-
import { CreditCalculatorParams, useCreditCalculatorParams } from './useCreditCalculatorParams';
|
|
15
15
|
import { renderPaymentType } from './renderPaymentType';
|
|
16
|
-
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
17
16
|
import { renderRate } from './renderRate';
|
|
18
|
-
import {
|
|
17
|
+
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
18
|
+
import { CreditCalculatorParams, useCreditCalculatorParams } from './useCreditCalculatorParams';
|
|
19
19
|
|
|
20
20
|
export interface CreditCalculatorProp extends CreditCalculatorProps {
|
|
21
21
|
className?: string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
|
|
2
4
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
3
5
|
import { style } from '../../utils/style';
|
|
4
6
|
import type {
|
|
5
7
|
DepositCalculatorParamsViewSettings,
|
|
6
8
|
DepositCalculatorProps,
|
|
7
9
|
} from './CalculatorContent';
|
|
8
|
-
import { renderFootnote } from './renderFootnote';
|
|
9
|
-
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
10
|
-
import { renderMonthsInput } from './renderMonthsInput';
|
|
11
|
-
import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
|
|
12
|
-
import { DEPOSIT_DEFAULT_SUM } from './constants';
|
|
13
|
-
import { DepositCalculatorParams, useDepositCalculatorParams } from './useDepositCalculatorParams';
|
|
14
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
15
10
|
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
11
|
+
import { DEPOSIT_DEFAULT_SUM } from './constants';
|
|
12
|
+
import { renderFootnote } from './renderFootnote';
|
|
16
13
|
import { renderInterestPayment } from './renderInterestPayment';
|
|
17
|
-
import {
|
|
14
|
+
import { renderMonthsInput } from './renderMonthsInput';
|
|
18
15
|
import { renderRate } from './renderRate';
|
|
16
|
+
import { renderRegistrationType } from './renderRegistrationType';
|
|
17
|
+
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
18
|
+
import { DepositCalculatorParams, useDepositCalculatorParams } from './useDepositCalculatorParams';
|
|
19
19
|
|
|
20
20
|
export interface DepositCalculatorProp extends DepositCalculatorProps {
|
|
21
21
|
className?: string;
|
|
@@ -29,7 +29,7 @@ export interface BonusCalculatorParams
|
|
|
29
29
|
|
|
30
30
|
export const useBonusCalculatorParams = (
|
|
31
31
|
userInputParams: BonusCalculatorUserInputParams,
|
|
32
|
-
sourceBookDir
|
|
32
|
+
sourceBookDir?: string,
|
|
33
33
|
) => {
|
|
34
34
|
const { travelExpenseValue, restExpenseValue } = userInputParams;
|
|
35
35
|
const bonusCalculatorSourceBookParams =
|
|
@@ -12,7 +12,6 @@ export interface BusinessCommonDepositParams {
|
|
|
12
12
|
isMonthlyInterestPayment: boolean;
|
|
13
13
|
isReplenished: boolean;
|
|
14
14
|
isPartialWithdrawal: boolean;
|
|
15
|
-
isSmallBusiness: boolean;
|
|
16
15
|
}
|
|
17
16
|
export interface BusinessDepositCalculatorSourceBookParams extends BusinessCommonDepositParams {
|
|
18
17
|
minSum: number;
|
|
@@ -45,14 +44,8 @@ export const useBusinessDepositCalculatorParams = (
|
|
|
45
44
|
userInputParams: BusinessDepositCalculatorUserInputParams,
|
|
46
45
|
sourceBookDir?: string,
|
|
47
46
|
): BusinessDepositCalculatorParams => {
|
|
48
|
-
const {
|
|
49
|
-
|
|
50
|
-
moneyValue,
|
|
51
|
-
isPartialWithdrawal,
|
|
52
|
-
isReplenished,
|
|
53
|
-
isSmallBusiness,
|
|
54
|
-
isMonthlyInterestPayment,
|
|
55
|
-
} = userInputParams;
|
|
47
|
+
const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } =
|
|
48
|
+
userInputParams;
|
|
56
49
|
const data = useCalculatorParams<BusinessDepositCalculatorData>(
|
|
57
50
|
sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR,
|
|
58
51
|
);
|
|
@@ -73,7 +66,6 @@ export const useBusinessDepositCalculatorParams = (
|
|
|
73
66
|
data?.rateRows?.find((_) => {
|
|
74
67
|
return (
|
|
75
68
|
isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
76
|
-
isSmallBusiness === _.isSmallBusiness &&
|
|
77
69
|
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
78
70
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
79
71
|
checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _)
|
|
@@ -6,7 +6,6 @@ import { Blocks } from '../Blocks';
|
|
|
6
6
|
import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistoryCard.fixture';
|
|
7
7
|
import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
|
|
8
8
|
import { CATALOG_CARD, CATALOG_CARD_NEW } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
|
|
9
|
-
import { CAROUSEL_EVENT_CARD } from '../CarouselEventCard/CarouselEventCard.fixture';
|
|
10
9
|
import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
|
|
11
10
|
import {
|
|
12
11
|
PRODUCT_CARD,
|
|
@@ -228,23 +227,6 @@ export default {
|
|
|
228
227
|
/>
|
|
229
228
|
</div>
|
|
230
229
|
),
|
|
231
|
-
|
|
232
|
-
events: (
|
|
233
|
-
<div className="container grid grid-cols-12">
|
|
234
|
-
<Carousel
|
|
235
|
-
className="col-span-12"
|
|
236
|
-
visibleItemCount={0}
|
|
237
|
-
block={{
|
|
238
|
-
type: 'Carousel',
|
|
239
|
-
blocks: new Array(6).fill({
|
|
240
|
-
type: 'CarouselEventCard',
|
|
241
|
-
content: CAROUSEL_EVENT_CARD,
|
|
242
|
-
}),
|
|
243
|
-
}}
|
|
244
|
-
options={options}
|
|
245
|
-
/>
|
|
246
|
-
</div>
|
|
247
|
-
),
|
|
248
230
|
'bank-history': (
|
|
249
231
|
<div className="container grid grid-cols-12">
|
|
250
232
|
<Carousel
|
|
@@ -68,7 +68,11 @@ export const CarouselInvestmentCard = JSX<CarouselInvestmentCardProps>(
|
|
|
68
68
|
const renderCardList = (cardsList: CardsListItem[]) =>
|
|
69
69
|
cardsList.map((item, i) => (
|
|
70
70
|
<li key={String(i)}>
|
|
71
|
-
{item?.parameter ?
|
|
71
|
+
{item?.parameter ? (
|
|
72
|
+
<div className="inline pr-xs">
|
|
73
|
+
<Text size="text-h6">{item.parameter}</Text>
|
|
74
|
+
</div>
|
|
75
|
+
) : null}
|
|
72
76
|
{item?.parameterDescription ? (
|
|
73
77
|
<Text size="text-m" font="font-light" color="text-secondary-text">
|
|
74
78
|
{item.parameterDescription}
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
16
16
|
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
17
17
|
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
18
|
-
]
|
|
19
|
-
"align": "text-center",
|
|
20
|
-
"isFullWidth": true
|
|
18
|
+
]
|
|
21
19
|
}
|
|
22
20
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import { CarouselProductCard } from './CarouselProductCard';
|
|
5
|
+
import type { CarouselProductCardContent } from './CarouselProductCardContent';
|
|
6
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
7
|
+
|
|
8
|
+
const isDotted = false;
|
|
9
|
+
|
|
10
|
+
const image: Picture = {
|
|
11
|
+
src: 'money-1.png',
|
|
12
|
+
format: 'webp',
|
|
13
|
+
size: {
|
|
14
|
+
width: 140,
|
|
15
|
+
height: 140,
|
|
16
|
+
},
|
|
17
|
+
title: 'money',
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const buttonPrimary: ButtonContent = {
|
|
21
|
+
href: '/credit-cards',
|
|
22
|
+
text: 'Подробнее',
|
|
23
|
+
target: '_blank',
|
|
24
|
+
version: 'secondary',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const buttonPrimaryIcon: ButtonContent = {
|
|
28
|
+
href: '/credit-cards',
|
|
29
|
+
text: 'Подробнее',
|
|
30
|
+
target: '_blank',
|
|
31
|
+
version: 'secondary',
|
|
32
|
+
icon: { icon: 'BankIcon' },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const defaultItems = [
|
|
36
|
+
{ text: 'Качественные фермерские продукты напрямую от производителей' },
|
|
37
|
+
{ text: 'Самая большая база сельских туров по России' },
|
|
38
|
+
{ text: 'Площадки для создания комфортной жизни за городом' },
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export const PRODUCT_CARD: CarouselProductCardContent = {
|
|
42
|
+
title: 'Более 5000 товаров',
|
|
43
|
+
description: 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
44
|
+
icon: image,
|
|
45
|
+
button: buttonPrimary,
|
|
46
|
+
isDotted,
|
|
47
|
+
items: defaultItems,
|
|
48
|
+
isImageFullWidth: true,
|
|
49
|
+
additionalDescription: 'Дополнительное описание',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const PRODUCT_CARD_SMALL: CarouselProductCardContent = {
|
|
53
|
+
title: 'Более 5000 товаров Более 5000 товаров Более 5000 товаров',
|
|
54
|
+
icon: image,
|
|
55
|
+
button: buttonPrimary,
|
|
56
|
+
isDotted,
|
|
57
|
+
isButtonFullWidth: true,
|
|
58
|
+
};
|
|
59
|
+
export const PRODUCT_CARD_EVENT: CarouselProductCardContent = {
|
|
60
|
+
title: 'Более 5000 товаров',
|
|
61
|
+
icon: image,
|
|
62
|
+
isDotted,
|
|
63
|
+
additionalDescription: 'Дополнительное описание',
|
|
64
|
+
isTopPosition: true,
|
|
65
|
+
isImageFullWidth: true,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const CAROUSEL_PRODUCT_CARD = <CarouselProductCard className="col-span-12" {...PRODUCT_CARD} />;
|
|
69
|
+
const CAROUSEL_PRODUCT_CARD_SECONDARY = (
|
|
70
|
+
<CarouselProductCard
|
|
71
|
+
className="col-span-12"
|
|
72
|
+
{...PRODUCT_CARD}
|
|
73
|
+
version="secondary"
|
|
74
|
+
isDotted={true}
|
|
75
|
+
button={buttonPrimaryIcon}
|
|
76
|
+
isButtonFullWidth={true}
|
|
77
|
+
/>
|
|
78
|
+
);
|
|
79
|
+
const CAROUSEL_PRODUCT_CARD_SMALL = (
|
|
80
|
+
<CarouselProductCard className="col-span-12" {...PRODUCT_CARD_SMALL} />
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const CAROUSEL_PRODUCT_CARD_EVENT = (
|
|
84
|
+
<CarouselProductCard className="col-span-12" {...PRODUCT_CARD_EVENT} />
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
export default {
|
|
88
|
+
default: <div className="container grid grid-cols-12">{CAROUSEL_PRODUCT_CARD}</div>,
|
|
89
|
+
secondary: <div className="container grid grid-cols-12">{CAROUSEL_PRODUCT_CARD_SECONDARY}</div>,
|
|
90
|
+
small: <div className="container grid grid-cols-12">{CAROUSEL_PRODUCT_CARD_SMALL}</div>,
|
|
91
|
+
event: <div className="container grid grid-cols-12">{CAROUSEL_PRODUCT_CARD_EVENT}</div>,
|
|
92
|
+
};
|