@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
|
@@ -1,8 +1,31 @@
|
|
|
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';
|
|
7
|
+
export interface RateParams {
|
|
8
|
+
/** @title Адрес справочника */
|
|
9
|
+
sourceBookDir?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @title ЮЛ
|
|
13
|
+
* @default {"rateType": "UL"}
|
|
14
|
+
*/
|
|
15
|
+
export declare type ULRateDef = RateParams & {
|
|
16
|
+
rateType: 'UL';
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @title ИП
|
|
20
|
+
* @default {"rateType": "IP"}
|
|
21
|
+
*/
|
|
22
|
+
export declare type IPRateDef = RateParams & {
|
|
23
|
+
rateType: 'IP';
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title Назначение ставки
|
|
27
|
+
*/
|
|
28
|
+
export declare type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
|
|
6
29
|
export declare type CommonCalculatorProps = Footnote & ButtonsSectionContent & {
|
|
7
30
|
/** @title Адрес справочника */
|
|
8
31
|
sourceBookDir?: string;
|
|
@@ -43,7 +66,9 @@ export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
|
43
66
|
/** @title Настройка отображения радио */
|
|
44
67
|
paramsViewSettings?: DepositCalculatorParamsViewSettings;
|
|
45
68
|
}
|
|
46
|
-
export interface BusinessDepositCalculatorProps extends
|
|
69
|
+
export interface BusinessDepositCalculatorProps extends Footnote, ButtonsSectionContent {
|
|
70
|
+
/** @title Ставка для */
|
|
71
|
+
rateParams?: RateParamsDef;
|
|
47
72
|
/** @title Сноска снизу блока */
|
|
48
73
|
bottomFootnote?: string;
|
|
49
74
|
/** @title Показывать название депозита */
|
|
@@ -121,6 +146,7 @@ export declare type CalculatorTab = {
|
|
|
121
146
|
* @title Калькулятор
|
|
122
147
|
*/
|
|
123
148
|
export interface CalculatorContent {
|
|
149
|
+
tabAlign?: Align;
|
|
124
150
|
/** @title Вкладки */
|
|
125
151
|
calculatorTabs?: CalculatorTab[];
|
|
126
152
|
}
|
|
@@ -18,7 +18,7 @@ export interface BonusCalculatorParams extends BonusCalculatorUserInputParams, B
|
|
|
18
18
|
monthBonus: number;
|
|
19
19
|
yearBonus: number;
|
|
20
20
|
}
|
|
21
|
-
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir
|
|
21
|
+
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir?: string) => {
|
|
22
22
|
monthBonus: number;
|
|
23
23
|
yearBonus: number;
|
|
24
24
|
travelExpenseValue: number;
|
|
@@ -2,7 +2,6 @@ export interface BusinessCommonDepositParams {
|
|
|
2
2
|
isMonthlyInterestPayment: boolean;
|
|
3
3
|
isReplenished: boolean;
|
|
4
4
|
isPartialWithdrawal: boolean;
|
|
5
|
-
isSmallBusiness: boolean;
|
|
6
5
|
}
|
|
7
6
|
export interface BusinessDepositCalculatorSourceBookParams extends BusinessCommonDepositParams {
|
|
8
7
|
minSum: number;
|
package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
|
-
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
7
7
|
/**
|
|
8
8
|
* @title Карточка рекомендаций
|
|
9
9
|
*/
|
|
10
10
|
export declare type CarouselRecommendationCardContent = UniBlockContent & HeadlineCommonProps & ListContent & IconProps & LinkCommonProps & AlignProps & {
|
|
11
11
|
/** @title Соц сети */
|
|
12
|
-
socialMedia?:
|
|
12
|
+
socialMedia?: ButtonContent[];
|
|
13
13
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { IconProps
|
|
5
|
-
export interface SocialMediaLink extends LinkProps {
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
4
|
+
import type { IconProps } from '../../model/Picture';
|
|
8
5
|
/**
|
|
9
6
|
* @title Тип контакта
|
|
10
7
|
* @enumNames [
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
4
|
+
import type { ContactGroup } from './FooterContent';
|
|
4
5
|
export interface FooterDataProps extends SitemapData {
|
|
5
6
|
documents?: LinkProps[];
|
|
6
7
|
relatedEnterprises?: LinkProps[];
|
|
7
8
|
contacts?: ContactGroup[];
|
|
8
|
-
socialMedia?:
|
|
9
|
-
mobileApps?:
|
|
9
|
+
socialMedia?: ButtonContent[];
|
|
10
|
+
mobileApps?: ButtonContent[];
|
|
10
11
|
horizontalNavigationTitle?: string;
|
|
11
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
2
|
-
import type { ButtonSize } from './MediaButton';
|
|
3
2
|
export interface SocialMediaProps {
|
|
4
3
|
className?: string;
|
|
5
4
|
media?: ButtonContent[];
|
|
6
|
-
|
|
5
|
+
showButtonText?: boolean;
|
|
6
|
+
stretched?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
|
|
@@ -11,7 +11,7 @@ const Rate_1 = require("./Rate");
|
|
|
11
11
|
const renderFootnote_1 = require("./renderFootnote");
|
|
12
12
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
13
13
|
const useBonusCalculatorParams_1 = require("./useBonusCalculatorParams");
|
|
14
|
-
exports.BonusCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir
|
|
14
|
+
exports.BonusCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
15
15
|
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
16
16
|
travelExpenseValue: constants_1.DEFAULT_TRAVEL_MIN_SUM,
|
|
17
17
|
restExpenseValue: constants_1.DEFAULT_REST_MIN_SUM,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA2E;AAC3E,iCAA8B;AAC9B,qDAAkD;AAClD,iEAA8D;AAC9D,yEAAsE;AAMzD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA2E;AAC3E,iCAA8B;AAC9B,qDAAkD;AAClD,iEAA8D;AAC9D,yEAAsE;AAMzD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OA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AAC,IAAI,EACxF,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,6 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const useForm_1 = require("../../hooks/useForm");
|
|
6
6
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
7
|
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
8
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
8
9
|
const style_1 = require("../../utils/style");
|
|
9
10
|
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
10
11
|
const constants_1 = require("./constants");
|
|
@@ -14,16 +15,15 @@ const renderInterestPayment_1 = require("./renderInterestPayment");
|
|
|
14
15
|
const renderRate_1 = require("./renderRate");
|
|
15
16
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
16
17
|
const useBusinessDepositCalculatorParams_1 = require("./useBusinessDepositCalculatorParams");
|
|
17
|
-
exports.BusinessDepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '',
|
|
18
|
+
exports.BusinessDepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', rateParams, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
|
|
18
19
|
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
19
20
|
moneyValue: constants_1.BUSINESS_DEFAULT_SUM,
|
|
20
21
|
daysValue: constants_1.BUSINESS_DEFAULT_DAYS,
|
|
21
22
|
isReplenished: false,
|
|
22
23
|
isPartialWithdrawal: false,
|
|
23
|
-
isSmallBusiness: false,
|
|
24
24
|
isMonthlyInterestPayment: false,
|
|
25
25
|
});
|
|
26
|
-
const calculatorParams = (0, useBusinessDepositCalculatorParams_1.useBusinessDepositCalculatorParams)(userInputParams, sourceBookDir);
|
|
26
|
+
const calculatorParams = (0, useBusinessDepositCalculatorParams_1.useBusinessDepositCalculatorParams)(userInputParams, rateParams?.sourceBookDir);
|
|
27
27
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
28
28
|
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
29
29
|
title: 'Сумма, ₽',
|
|
@@ -37,18 +37,18 @@ exports.BusinessDepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', so
|
|
|
37
37
|
max: calculatorParams.maxDays,
|
|
38
38
|
...field('daysValue'),
|
|
39
39
|
value: calculatorParams.daysValue,
|
|
40
|
-
}), renderBusinessDepositParamsForm(calculatorParams, field), (0, renderInterestPayment_1.renderInterestPayment)({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
}), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), (0, renderInterestPayment_1.renderInterestPayment)({
|
|
41
|
+
title: 'Выплата процентов',
|
|
42
|
+
orientation: 'vertical',
|
|
43
|
+
...field('isMonthlyInterestPayment'),
|
|
44
|
+
radioGroupClassName: 'sm:flex-col',
|
|
45
|
+
})] })] }), (0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider md:hidden" }), (0, renderRate_1.renderRate)({
|
|
46
46
|
rate,
|
|
47
47
|
depositeName,
|
|
48
48
|
isShowDepositeName,
|
|
49
49
|
isUnavailableByTerm,
|
|
50
50
|
}), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2xl sm:w-96", children: [renderDepositResults(finalSum, income), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote), (0, renderFootnote_1.renderFootnote)(bottomFootnote)] })] }));
|
|
51
51
|
});
|
|
52
|
-
const renderBusinessDepositParamsForm = (calculatorParams, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })
|
|
52
|
+
const renderBusinessDepositParamsForm = (calculatorParams, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "space-y-s", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
|
|
53
53
|
const renderDepositResults = (finalSum, income) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2xl sm:gap-0", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })] }));
|
|
54
54
|
//# sourceMappingURL=BusinessDepositCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0E;AAC1E,uDAAoD;AACpD,qDAAkD;AAClD,mEAAgE;AAChE,6CAA0C;AAC1C,iEAA8D;AAC9D,6FAI8C;AAMjC,QAAA,6BAA6B,GAAG,IAAA,aAAG,EAC9C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,iDAA8C;AAC9C,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0E;AAC1E,uDAAoD;AACpD,qDAAkD;AAClD,mEAAgE;AAChE,6CAA0C;AAC1C,iEAA8D;AAC9D,6FAI8C;AAMjC,QAAA,6BAA6B,GAAG,IAAA,aAAG,EAC9C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,UAAU,EAAE,OAAO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EAAC,MAAM,EAAC,GAAG,GAAG,EAC1F,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,IAC7E,CACP,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
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';
|
|
7
|
+
export interface RateParams {
|
|
8
|
+
/** @title Адрес справочника */
|
|
9
|
+
sourceBookDir?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @title ЮЛ
|
|
13
|
+
* @default {"rateType": "UL"}
|
|
14
|
+
*/
|
|
15
|
+
export declare type ULRateDef = RateParams & {
|
|
16
|
+
rateType: 'UL';
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @title ИП
|
|
20
|
+
* @default {"rateType": "IP"}
|
|
21
|
+
*/
|
|
22
|
+
export declare type IPRateDef = RateParams & {
|
|
23
|
+
rateType: 'IP';
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title Назначение ставки
|
|
27
|
+
*/
|
|
28
|
+
export declare type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
|
|
6
29
|
export declare type CommonCalculatorProps = Footnote & ButtonsSectionContent & {
|
|
7
30
|
/** @title Адрес справочника */
|
|
8
31
|
sourceBookDir?: string;
|
|
@@ -43,7 +66,9 @@ export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
|
43
66
|
/** @title Настройка отображения радио */
|
|
44
67
|
paramsViewSettings?: DepositCalculatorParamsViewSettings;
|
|
45
68
|
}
|
|
46
|
-
export interface BusinessDepositCalculatorProps extends
|
|
69
|
+
export interface BusinessDepositCalculatorProps extends Footnote, ButtonsSectionContent {
|
|
70
|
+
/** @title Ставка для */
|
|
71
|
+
rateParams?: RateParamsDef;
|
|
47
72
|
/** @title Сноска снизу блока */
|
|
48
73
|
bottomFootnote?: string;
|
|
49
74
|
/** @title Показывать название депозита */
|
|
@@ -121,6 +146,7 @@ export declare type CalculatorTab = {
|
|
|
121
146
|
* @title Калькулятор
|
|
122
147
|
*/
|
|
123
148
|
export interface CalculatorContent {
|
|
149
|
+
tabAlign?: Align;
|
|
124
150
|
/** @title Вкладки */
|
|
125
151
|
calculatorTabs?: CalculatorTab[];
|
|
126
152
|
}
|
|
@@ -3,18 +3,18 @@ exports.CreditCalculatorForm = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
/* eslint-disable max-lines, max-lines-per-function */
|
|
5
5
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
6
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
6
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
|
+
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
7
9
|
const style_1 = require("../../utils/style");
|
|
10
|
+
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
8
12
|
const renderFootnote_1 = require("./renderFootnote");
|
|
9
|
-
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
10
13
|
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
11
|
-
const useForm_1 = require("../../hooks/useForm");
|
|
12
|
-
const constants_1 = require("./constants");
|
|
13
|
-
const useCreditCalculatorParams_1 = require("./useCreditCalculatorParams");
|
|
14
14
|
const renderPaymentType_1 = require("./renderPaymentType");
|
|
15
|
-
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
16
15
|
const renderRate_1 = require("./renderRate");
|
|
17
|
-
const
|
|
16
|
+
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
17
|
+
const useCreditCalculatorParams_1 = require("./useCreditCalculatorParams");
|
|
18
18
|
exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir, buttons, footnote, paramsViewSettings, isMobile }) => {
|
|
19
19
|
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
20
20
|
isAnnuity: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,+CAAwC;AACxC,mFAAgF;AAChF,6CAA0C;AAK1C,
|
|
1
|
+
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAAiE;AACjE,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AACxD,6CAA0C;AAC1C,iEAA8D;AAC9D,2EAAgG;AAOnF,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChF,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,KAAK;QACrB,eAAe,EAAE,KAAK;QACtB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,8BAAkB;QAC9B,WAAW,EAAE,0BAAc;KAC5B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,qDAAyB,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
exports.DepositCalculatorForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
5
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
6
8
|
const style_1 = require("../../utils/style");
|
|
7
|
-
const renderFootnote_1 = require("./renderFootnote");
|
|
8
|
-
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
9
|
-
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
10
|
-
const useForm_1 = require("../../hooks/useForm");
|
|
11
|
-
const constants_1 = require("./constants");
|
|
12
|
-
const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
|
|
13
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
14
9
|
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
10
|
+
const constants_1 = require("./constants");
|
|
11
|
+
const renderFootnote_1 = require("./renderFootnote");
|
|
15
12
|
const renderInterestPayment_1 = require("./renderInterestPayment");
|
|
16
|
-
const
|
|
13
|
+
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
17
14
|
const renderRate_1 = require("./renderRate");
|
|
15
|
+
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
16
|
+
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
17
|
+
const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
|
|
18
18
|
exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
19
19
|
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
20
20
|
moneyValue: constants_1.DEPOSIT_DEFAULT_SUM,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,6CAA0C;AAK1C,
|
|
1
|
+
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,iDAAmE;AACnE,mFAAgF;AAChF,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAAkD;AAClD,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,6CAA0C;AAC1C,qEAAkE;AAClE,iEAA8D;AAC9D,6EAAmG;AAMtF,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,UAAU,EAAE,+BAAmB;QAC/B,WAAW,EAAE,CAAC;QACd,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,KAAK;KAC5B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,uDAA0B,EACjD,eAAe,EACf,aAAa,EACb,kBAAkB,CACnB,CAAC;IACF,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;IAElE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IAE1D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,cAAc,IAAI,cAAc,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,qCAAS,SAAS,EAAE,IAAA,aAAK,EAAC,mDAAmD,EAAE,SAAS,CAAC,a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MAAM,CAAC,4BAA4B;YAClC,CAAC,CAAC,IAAA,6CAAqB,EAAC;gBACpB,KAAK,EAAE,mBAAmB;gBAC1B,GAAG,KAAK,CAAC,0BAA0B,CAAC;gBACpC,KAAK,EAAE,MAAM,CAAC,wBAAwB;aACvC,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,wBAAwB;YAC9B,CAAC,CAAC,IAAA,+CAAsB,EAAC;gBACrB,KAAK,EAAE,YAAY;gBACnB,GAAG,KAAK,CAAC,sBAAsB,CAAC;gBAChC,KAAK,EAAE,MAAM,CAAC,oBAAoB;aACnC,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -82,7 +82,6 @@ exports.DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
|
82
82
|
isMonthlyInterestPayment: true,
|
|
83
83
|
isReplenished: false,
|
|
84
84
|
isPartialWithdrawal: false,
|
|
85
|
-
isSmallBusiness: false,
|
|
86
85
|
depositeName: "Депозит 'Стабильный'",
|
|
87
86
|
};
|
|
88
87
|
exports.CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":";;AAMa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,2BAA2B,GAAG,OAAO,CAAC;AACtC,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAChC,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAC9B,QAAA,yBAAyB,GAAG,MAAM,CAAC;AACnC,QAAA,mBAAmB,GA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IACrB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAC9B,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAE5B,QAAA,+BAA+B,GAAoC;IAC9E,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,CAAC;IAChB,mBAAmB,EAAE,KAAK;IAC1B,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEW,QAAA,iCAAiC,GAAsC;IAClF,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,EAAE;IACb,IAAI,EAAE,CAAC;IACP,wBAAwB,EAAE,IAAI;IAC9B,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAEW,QAAA,0CAA0C,GACrD;IACE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,yBAAiB;IAC1B,OAAO,EAAE,yBAAiB;IAC1B,IAAI,EAAE,CAAC;IACP,wBAAwB,EAAE,IAAI;IAC9B,aAAa,EAAE,KAAK;IACpB,mBAAmB,EAAE,KAAK;IAC1B,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":";;AAMa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,2BAA2B,GAAG,OAAO,CAAC;AACtC,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAChC,QAAA,uBAAuB,GAAG,OAA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culatorParams extends BonusCalculatorUserInputParams, B
|
|
|
18
18
|
monthBonus: number;
|
|
19
19
|
yearBonus: number;
|
|
20
20
|
}
|
|
21
|
-
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir
|
|
21
|
+
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir?: string) => {
|
|
22
22
|
monthBonus: number;
|
|
23
23
|
yearBonus: number;
|
|
24
24
|
travelExpenseValue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBonusCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,yCAAsC;AACtC,+DAA4D;AA2BrD,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,
|
|
1
|
+
{"version":3,"file":"useBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBonusCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,yCAAsC;AACtC,+DAA4D;AA2BrD,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,aAAsB,EACtB,EAAE;IACF,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,eAAe,CAAC;IACjE,MAAM,+BAA+B,GACnC,IAAA,yCAAmB,EAAkC,aAAa,IAAI,kCAAsB,CAAC;QAC7F,2CAA+B,CAAC;IAElC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,IAAA,mBAAQ,EACtC,+BAA+B,EAC/B,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;IAEF,OAAO;QACL,GAAG,+BAA+B;QAClC,GAAG,eAAe;QAClB,UAAU;QACV,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,wBAAwB,4BAqBnC"}
|
|
@@ -2,7 +2,6 @@ export interface BusinessCommonDepositParams {
|
|
|
2
2
|
isMonthlyInterestPayment: boolean;
|
|
3
3
|
isReplenished: boolean;
|
|
4
4
|
isPartialWithdrawal: boolean;
|
|
5
|
-
isSmallBusiness: boolean;
|
|
6
5
|
}
|
|
7
6
|
export interface BusinessDepositCalculatorSourceBookParams extends BusinessCommonDepositParams {
|
|
8
7
|
minSum: number;
|
|
@@ -4,7 +4,7 @@ const constants_1 = require("./constants");
|
|
|
4
4
|
const rangeHelpers_1 = require("./rangeHelpers");
|
|
5
5
|
const useCalculatorParams_1 = require("./useCalculatorParams");
|
|
6
6
|
const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
7
|
-
const { daysValue, moneyValue, isPartialWithdrawal, isReplenished,
|
|
7
|
+
const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
|
|
8
8
|
const data = (0, useCalculatorParams_1.useCalculatorParams)(sourceBookDir || constants_1.BUSINESS_DEPOSIT_CALC_DEFAULT_DIR);
|
|
9
9
|
const isOperatingDeposit = isReplenished || isPartialWithdrawal;
|
|
10
10
|
const isDisabledOperatingDeposit = daysValue < constants_1.BUSINESS_OPERATING_MIN_DAYS || daysValue > constants_1.BUSINESS_OPERATING_MAX_DAYS;
|
|
@@ -18,7 +18,6 @@ const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
18
18
|
}
|
|
19
19
|
const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
|
|
20
20
|
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
21
|
-
isSmallBusiness === _.isSmallBusiness &&
|
|
22
21
|
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
23
22
|
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
24
23
|
(0, rangeHelpers_1.checkRangeByKeys)(daysValue, ['minDays', 'maxDays'], _));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAMqB;AACrB,iDAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAMqB;AACrB,iDAAkE;AAClE,+DAA4D;AAkCrD,MAAM,kCAAkC,GAAG,CAChD,eAAyD,EACzD,aAAsB,EACW,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa,EAAE,wBAAwB,EAAE,GAC3F,eAAe,CAAC;IAClB,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAC9B,aAAa,IAAI,6CAAiC,CACnD,CAAC;IAEF,MAAM,kBAAkB,GAAG,aAAa,IAAI,mBAAmB,CAAC;IAChE,MAAM,0BAA0B,GAC9B,SAAS,GAAG,uCAA2B,IAAI,SAAS,GAAG,uCAA2B,CAAC;IAErF,IAAI,SAAS,IAAI,kCAAsB,EAAE;QACvC,OAAO;YACL,GAAG,sDAA0C;YAC7C,GAAG,eAAe;YAClB,0BAA0B;YAC1B,mBAAmB,EAAE,IAAI;SAC1B,CAAC;KACH;IACD,MAAM,yCAAyC,GAC7C,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACzB,OAAO,CACL,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;YACvD,uBAAuB,CAAC,kBAAkB,EAAE,CAAC,CAAC;YAC9C,IAAA,+BAAgB,EAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACrD,IAAA,+BAAgB,EAAC,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,CACvD,CAAC;IACJ,CAAC,CAAC,IAAI,sDAA0C,CAAC;IAEnD,MAAM,EAAE,IAAI,EAAE,GA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AC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,OAAO,KAAK,IAAI,aACjE,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,qBAAqB,CAAC,aACtF,uBAAC,uCAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,oBAAS,CAAC,CAAC,CAAC,SAAS,EAClC,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,YAExD,IAAA,yCAAmB,EAAC,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC,GACnD,EACrB,uBAAC,6CAAqB,IACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB,EACjC,aAAa,EAAE,mBAAmB,EAClC,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,GAChB,IACE,EACN,uBAAC,2CAAoB,IACnB,SAAS,EAAC,YAAY,EACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAC,iBAAiB,GAC1B,IACW,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAEtE,4DAAyD;AACzD,yFAAsF;AACtF,6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kB,IACjB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,oBAAS,CAAC,CAAC,CAAC,SAAS,EAClC,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,YAExD,IAAA,yCAAmB,EAAC,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC,GACnD,EACrB,uBAAC,6CAAqB,IACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB,EACjC,aAAa,EAAE,mBAAmB,EAClC,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,GAChB,IACE,EACN,uBAAC,2CAAoB,IACnB,SAAS,EAAC,YAAY,EACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAC,iBAAiB,GAC1B,IACW,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,cAAc;CACf,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC,CAAC;IAC5B,cAAc,EAAE;QACd,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC"}
|
|
@@ -13,5 +13,5 @@ const cardColumnsModeStyleMap = {
|
|
|
13
13
|
2: 'grid-cols-2',
|
|
14
14
|
};
|
|
15
15
|
exports.CarouselInvestmentCard = (0, uni_jsx_1.JSX)(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('text-left', className), padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, title: title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-m z-10", title: title }) : null, backImage: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-m", children: [description ? ((0, jsx_runtime_1.jsx)("div", { className: "w-1/3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? ((0, jsx_runtime_1.jsx)("ul", { className: (0, style_1.style)('list-none m-0 p-0 grid gap-xs', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList) })) : null] }) })));
|
|
16
|
-
const renderCardList = (cardsList) => cardsList.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { children: [item?.parameter ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", children: item.parameter }) : null, item?.parameterDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
|
|
16
|
+
const renderCardList = (cardsList) => cardsList.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { children: [item?.parameter ? ((0, jsx_runtime_1.jsx)("div", { className: "inline pr-xs", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", children: item.parameter }) })) : null, item?.parameterDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
|
|
17
17
|
//# sourceMappingURL=CarouselInvestmentCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselInvestmentCard.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAS1C,MAAM,uBAAuB,GAAoC;IAC/D,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,aAAa;CACjB,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EACC,SAAS,EACT,OAAO,EACP,qBAAqB,EACrB,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,CAAC,EACf,WAAW,EACX,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YAC5E,wBAAC,mBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,MAAM,EACrB,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAEzF,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,aAEpD,iCAAK,SAAS,EAAC,2BAA2B,aACvC,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,WAAW,GAAQ,GACrC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACjF,qBAAqB,GACjB,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAClB,+BACE,SAAS,EAAE,IAAA,aAAK,EAAC,+BAA+B,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC,YAEtF,cAAc,CAAC,SAAS,CAAC,GACvB,CACN,CAAC,CAAC,CAAC,IAAI,IACC,GACE,CAChB,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAA0B,EAAE,EAAE,CACpD,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,2CACG,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,IAAI,CAAC,SAAS,GAAQ,CAAC,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"CarouselInvestmentCard.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAS1C,MAAM,uBAAuB,GAAoC;IAC/D,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,aAAa;CACjB,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EACC,SAAS,EACT,OAAO,EACP,qBAAqB,EACrB,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,CAAC,EACf,WAAW,EACX,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2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IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,IAAI,CAAC,SAAS,GAAQ,GACxC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAC5B,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,IAAI,CAAC,oBAAoB,GACrB,CACR,CAAC,CAAC,CAAC,IAAI,KAVD,MAAM,CAAC,CAAC,CAAC,CAWb,CACN,CAAC,CAAC"}
|
|
@@ -13,14 +13,14 @@ const style_1 = require("../../utils/style");
|
|
|
13
13
|
const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
|
|
14
14
|
const AlignStyles_1 = require("../../model/AlignStyles");
|
|
15
15
|
exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ additionalDescription, align = AlignStyles_1.AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between',
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage(icon, isImageFullWidth, isTopPosition)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], {
|
|
17
17
|
className: (0, style_1.style)('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
18
18
|
isVertical: isButtonFullWidth,
|
|
19
19
|
})] }));
|
|
20
20
|
});
|
|
21
|
-
const renderImage = (image, isImageFullWidth, isTopPosition) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-lg',
|
|
22
|
-
const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
23
|
-
const renderDescription = (description) => description ? (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", children: description }) : null;
|
|
24
|
-
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription })) : null;
|
|
21
|
+
const renderImage = (image, isImageFullWidth, isTopPosition) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
|
|
22
|
+
const renderCardTitle = (headlineSmallVersion, title, align) => title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { align: align, size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
23
|
+
const renderDescription = (description, align) => description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
24
|
+
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
25
25
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: (0, style_1.style)('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
26
26
|
//# sourceMappingURL=CarouselProductCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAEA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAC9C,6CAA0C;AAC1C,6EAA2E;AAC3E,yDAAsD;
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAEA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAC9C,6CAA0C;AAC1C,6EAA2E;AAC3E,yDAAsD;AAKzC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,qBAAqB,EACrB,KAAK,GAAG,yBAAW,EACnB,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,WAAW,EACX,oBAAoB,GAAG,IAAI,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EACf,iBAAiB,GAAG,IAAI,EACxB,gBAAgB,GAAG,KAAK,EACxB,aAAa,GAAG,KAAK,EACrB,KAAK,GAAG,EAAE,EACV,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,E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E,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAC,GAAG,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -10,7 +10,7 @@ const style_1 = require("../../utils/style");
|
|
|
10
10
|
const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
11
11
|
const Headline_1 = require("../Headline/Headline");
|
|
12
12
|
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-3xl", ...rest, children: (0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: 'space-y-lg', children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), items.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "flex flex-col gap-xs", items: items, listItemSize: "XS" })) : null, renderIcon(icon), socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia }) : null] }) }));
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-3xl", ...rest, children: (0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: 'space-y-lg', children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), items.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "flex flex-col gap-xs", items: items, listItemSize: "XS" })) : null, renderIcon(icon), socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, showButtonText: true }) : null] }) }));
|
|
14
14
|
});
|
|
15
15
|
const renderIcon = (icon) => icon?.src || icon?.icon ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) })) : null;
|
|
16
16
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAKnC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,6CAA6C,EAAE,SAAS,CAAC,EAC1E,cAAc,EAAC,OAAO,KAClB,IAAI,YAER,wBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,aAC9D,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,GACZ,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,IAAI,GAAG,CAC1E,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,IAAI,CAAC,EAChB,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAKnC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,6CAA6C,EAAE,SAAS,CAAC,EAC1E,cAAc,EAAC,OAAO,KAClB,IAAI,YAER,wBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,aAC9D,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,GACZ,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,IAAI,GAAG,CAC1E,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,IAAI,CAAC,EAChB,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CACpC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACxB,0CACE,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,GAChB,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
|
-
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
7
7
|
/**
|
|
8
8
|
* @title Карточка рекомендаций
|
|
9
9
|
*/
|
|
10
10
|
export declare type CarouselRecommendationCardContent = UniBlockContent & HeadlineCommonProps & ListContent & IconProps & LinkCommonProps & AlignProps & {
|
|
11
11
|
/** @title Соц сети */
|
|
12
|
-
socialMedia?:
|
|
12
|
+
socialMedia?: ButtonContent[];
|
|
13
13
|
};
|