@redneckz/wildless-cms-uni-blocks 0.13.3 → 0.13.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.12.11.js +28 -0
- package/bin/migration-scripts/0.13.4.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +217 -165
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +6 -0
- package/bundle/components/Carousel/renderCardHighlight.d.ts +7 -0
- package/bundle/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/bundle/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/bundle/components/Carousel/visibleItemCountStyle.mobile.d.ts +1 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/bundle/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +3 -0
- package/bundle/components/RollupItem/RollupItem.d.ts +6 -1
- package/bundle/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/bundle/ui-kit/List/ListContent.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +1 -0
- package/bundle/utils/style.d.ts +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +6 -4
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +9 -6
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/dist/components/Carousel/Carousel.d.ts +1 -1
- package/dist/components/Carousel/Carousel.js +9 -13
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +6 -0
- package/dist/components/Carousel/renderCardHighlight.d.ts +7 -0
- package/dist/components/Carousel/renderCardHighlight.js +9 -0
- package/dist/components/Carousel/renderCardHighlight.js.map +1 -0
- package/dist/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/dist/components/Carousel/renderCarouselCards.js +37 -0
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -0
- package/dist/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCountStyle.js +4 -0
- package/dist/components/Carousel/visibleItemCountStyle.js.map +1 -0
- package/dist/components/Carousel/visibleItemCountStyle.mobile.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCountStyle.mobile.js +4 -0
- package/dist/components/Carousel/visibleItemCountStyle.mobile.js.map +1 -0
- package/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -6
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/dist/components/MobileAppTile/buttonsConditionStyle.js +6 -0
- package/dist/components/MobileAppTile/buttonsConditionStyle.js.map +1 -0
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +3 -0
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js +13 -0
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.d.ts +6 -1
- package/dist/components/RollupItem/RollupItem.js +2 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +6 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +2 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/ui-kit/List/List.js +2 -0
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +2 -2
- package/dist/ui-kit/List/ListItem.js +1 -0
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +1 -0
- package/dist/ui-kit/Select/Select.js +18 -4
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/style.d.ts +2 -1
- package/dist/utils/style.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +6 -4
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +9 -6
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/lib/components/Carousel/Carousel.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js +9 -13
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +6 -0
- package/lib/components/Carousel/renderCardHighlight.d.ts +6 -0
- package/lib/components/Carousel/renderCardHighlight.js +6 -0
- package/lib/components/Carousel/renderCardHighlight.js.map +1 -0
- package/lib/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/lib/components/Carousel/renderCarouselCards.js +34 -0
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -0
- package/lib/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCountStyle.js +2 -0
- package/lib/components/Carousel/visibleItemCountStyle.js.map +1 -0
- package/lib/components/Carousel/visibleItemCountStyle.mobile.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCountStyle.mobile.js +2 -0
- package/lib/components/Carousel/visibleItemCountStyle.mobile.js.map +1 -0
- package/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -6
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/lib/components/MobileAppTile/buttonsConditionStyle.js +3 -0
- package/lib/components/MobileAppTile/buttonsConditionStyle.js.map +1 -0
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +2 -0
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js +10 -0
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.d.ts +6 -1
- package/lib/components/RollupItem/RollupItem.js +2 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +6 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +2 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/lib/ui-kit/List/List.js +2 -0
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +2 -2
- package/lib/ui-kit/List/ListItem.js +1 -0
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +1 -0
- package/lib/ui-kit/Select/Select.js +19 -5
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/style.d.ts +2 -1
- package/lib/utils/style.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +218 -98
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/bundle/components/Carousel/renderCardHighlight.d.ts +7 -0
- package/mobile/bundle/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/mobile/bundle/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +6 -1
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/bundle/utils/style.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +6 -4
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +9 -6
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +9 -13
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/dist/components/Carousel/renderCardHighlight.d.ts +7 -0
- package/mobile/dist/components/Carousel/renderCardHighlight.js +9 -0
- package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.js +37 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -0
- package/mobile/dist/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/mobile/dist/components/Carousel/visibleItemCountStyle.js +4 -0
- package/mobile/dist/components/Carousel/visibleItemCountStyle.js.map +1 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +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/CarouselTariffsCard/CarouselTariffsCard.js +3 -6
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Footer/buttonSizeStyles.js +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js +13 -0
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +6 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +2 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +6 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +2 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/ui-kit/List/List.js +2 -0
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js +1 -0
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/Select.js +18 -4
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/style.d.ts +2 -1
- package/mobile/dist/utils/style.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +6 -4
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +9 -6
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +5 -0
- package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +9 -13
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/lib/components/Carousel/renderCardHighlight.d.ts +7 -0
- package/mobile/lib/components/Carousel/renderCardHighlight.js +6 -0
- package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -0
- package/mobile/lib/components/Carousel/renderCarouselCards.d.ts +7 -0
- package/mobile/lib/components/Carousel/renderCarouselCards.js +34 -0
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -0
- package/mobile/lib/components/Carousel/visibleItemCountStyle.d.ts +1 -0
- package/mobile/lib/components/Carousel/visibleItemCountStyle.js +2 -0
- package/mobile/lib/components/Carousel/visibleItemCountStyle.js.map +1 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +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/CarouselTariffsCard/CarouselTariffsCard.js +3 -6
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Footer/buttonSizeStyles.js +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +3 -0
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js +10 -0
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +6 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +2 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +0 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +6 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +2 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/lib/ui-kit/List/List.js +2 -0
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js +1 -0
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/Select.js +19 -5
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/style.d.ts +2 -1
- package/mobile/lib/utils/style.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +1 -0
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
- package/mobile/src/components/Bonus/Bonus.tsx +25 -21
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -2
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -0
- package/mobile/src/components/CardTransfer/CardTransfer.example.json +2 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +13 -7
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +5 -0
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +12 -20
- package/mobile/src/components/Carousel/CarouselContent.ts +7 -0
- package/mobile/src/components/Carousel/renderCardHighlight.tsx +22 -0
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +74 -0
- package/mobile/src/components/Carousel/visibleItemCountStyle.tsx +1 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -2
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +3 -3
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +7 -7
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -30
- package/mobile/src/components/Footer/buttonSizeStyles.ts +1 -1
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/MobileAppTile/buttonsConditionStyle.tsx +12 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +9 -6
- package/mobile/src/components/RollupItem/RollupItem.ui.json +1 -5
- package/mobile/src/components/RollupItem/RollupItemContent.ts +0 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +15 -4
- package/mobile/src/ui-kit/Input/Input.tsx +2 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
- package/mobile/src/ui-kit/List/List.tsx +2 -0
- package/mobile/src/ui-kit/List/ListContent.ts +2 -2
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
- package/mobile/src/ui-kit/Select/Select.tsx +46 -12
- package/mobile/src/utils/style.ts +2 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
- package/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/src/components/ApplicationForm/renderRegion.tsx +1 -0
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
- package/src/components/Bonus/Bonus.tsx +25 -21
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -2
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -0
- package/src/components/CardTransfer/CardTransfer.example.json +2 -1
- package/src/components/CardTransfer/CardTransfer.tsx +13 -7
- package/src/components/CardTransfer/CardTransferContent.ts +5 -0
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +2 -0
- package/src/components/Carousel/Carousel.tsx +12 -20
- package/src/components/Carousel/CarouselContent.ts +7 -0
- package/src/components/Carousel/renderCardHighlight.tsx +22 -0
- package/src/components/Carousel/renderCarouselCards.tsx +74 -0
- package/src/components/Carousel/visibleItemCountStyle.mobile.tsx +1 -0
- package/src/components/Carousel/visibleItemCountStyle.tsx +1 -0
- package/src/components/CarouselCard/CarouselCard.tsx +4 -2
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx +6 -6
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -3
- package/src/components/CarouselLinks/CarouselLinks.tsx +3 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +7 -7
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +1 -6
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +0 -5
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -30
- package/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx +12 -0
- package/src/components/MobileAppTile/buttonsConditionStyle.tsx +5 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +6 -3
- package/src/components/RollupItem/RollupItem.tsx +9 -6
- package/src/components/RollupItem/RollupItem.ui.json +1 -5
- package/src/components/RollupItem/RollupItemContent.ts +0 -4
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +15 -4
- package/src/ui-kit/Input/Input.tsx +2 -0
- package/src/ui-kit/Input/InputProps.ts +1 -0
- package/src/ui-kit/List/List.tsx +2 -0
- package/src/ui-kit/List/ListContent.ts +2 -2
- package/src/ui-kit/List/ListItem.tsx +1 -0
- package/src/ui-kit/Select/Select.tsx +46 -12
- package/src/utils/style.ts +2 -1
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +0 -1
- package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js +0 -5
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +0 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +0 -5
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +0 -1
- package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/dist/components/Footer/buttonSizeStyles.mobile.js +0 -7
- package/dist/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js +0 -2
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +0 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +0 -2
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/lib/components/Footer/buttonSizeStyles.mobile.js +0 -5
- package/lib/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
- package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +0 -5
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +0 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +0 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +0 -2
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +0 -1
- package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +0 -2
- package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +0 -2
- package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +0 -2
- package/src/components/Footer/buttonSizeStyles.mobile.ts +0 -6
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Размер карточек
|
|
5
|
+
* @enumNames ["Нормальный", "Большой"]
|
|
6
|
+
*/
|
|
7
|
+
export type CardSizeMode = 'normal' | 'big';
|
|
8
|
+
|
|
3
9
|
/**
|
|
4
10
|
* @title Карусель
|
|
5
11
|
*/
|
|
@@ -17,4 +23,5 @@ export type CarouselContent = UniBlockContent & {
|
|
|
17
23
|
isGap?: boolean;
|
|
18
24
|
/** @title Не показывать контур на карточках */
|
|
19
25
|
noCardBorder?: boolean;
|
|
26
|
+
cardSize?: CardSizeMode;
|
|
20
27
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
2
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
|
|
5
|
+
interface CardHighlightProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const renderCardHighlight = ({ className, text = 'ХИТ' }: CardHighlightProps = {}) => (
|
|
11
|
+
<div
|
|
12
|
+
className={style(
|
|
13
|
+
'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
|
|
14
|
+
className,
|
|
15
|
+
)}
|
|
16
|
+
>
|
|
17
|
+
<Icon iconVersion="black" name="HeartIcon" width="24" height="24" />
|
|
18
|
+
<Paragraph size="text-s" font="font-normal" align="text-center" color="text-primary-text">
|
|
19
|
+
{text}
|
|
20
|
+
</Paragraph>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
2
|
+
import { renderBlock } from '../../BlockRenderer/renderBlock';
|
|
3
|
+
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
4
|
+
import type { BlockDef } from '../../model/ContentPageDef';
|
|
5
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
7
|
+
import { renderCardHighlight } from './renderCardHighlight';
|
|
8
|
+
import type { CardSizeMode } from './CarouselContent';
|
|
9
|
+
|
|
10
|
+
const cardBaseStyle = 'relative h-full';
|
|
11
|
+
|
|
12
|
+
const CARD_SIZE_MAP: Record<CardSizeMode, string> = {
|
|
13
|
+
normal: 'sm:min-w-96',
|
|
14
|
+
big: 'sm:min-w-[515px]',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const renderCarouselCards = ({
|
|
18
|
+
noCardBorder,
|
|
19
|
+
activeIndex,
|
|
20
|
+
cardSize = 'normal',
|
|
21
|
+
...rest
|
|
22
|
+
}: UniBlockProps & { noCardBorder?: boolean; activeIndex?: number; cardSize?: CardSizeMode }) => {
|
|
23
|
+
const { blocks: childBlocks } = rest.block || {};
|
|
24
|
+
const someCardsHighlighted = childBlocks?.some(isCardHighlighted);
|
|
25
|
+
|
|
26
|
+
return renderChildren({
|
|
27
|
+
...rest,
|
|
28
|
+
renderProps: (block: BlockDef, options: BlockRendererOptions, blockIndex) => (
|
|
29
|
+
<div className={cardWrapperStyle(block, { someCardsHighlighted })}>
|
|
30
|
+
{renderBlock(block, options, {
|
|
31
|
+
className: cardStyle(block, {
|
|
32
|
+
someCardsHighlighted,
|
|
33
|
+
showBorder: !noCardBorder,
|
|
34
|
+
cardSize,
|
|
35
|
+
}),
|
|
36
|
+
blockIndex,
|
|
37
|
+
isActive: blockIndex === activeIndex,
|
|
38
|
+
})}
|
|
39
|
+
{isCardHighlighted(block)
|
|
40
|
+
? renderCardHighlight({ className: 'absolute top-0 -right-4 z-40' })
|
|
41
|
+
: null}
|
|
42
|
+
</div>
|
|
43
|
+
),
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const cardWrapperStyle = (
|
|
48
|
+
_: BlockDef | undefined,
|
|
49
|
+
{ someCardsHighlighted }: { someCardsHighlighted?: boolean },
|
|
50
|
+
) =>
|
|
51
|
+
style(
|
|
52
|
+
cardBaseStyle,
|
|
53
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'),
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const cardStyle = (
|
|
57
|
+
_: BlockDef | undefined,
|
|
58
|
+
{
|
|
59
|
+
someCardsHighlighted,
|
|
60
|
+
showBorder,
|
|
61
|
+
cardSize = 'normal',
|
|
62
|
+
}: { someCardsHighlighted?: boolean; showBorder?: boolean; cardSize?: CardSizeMode },
|
|
63
|
+
) =>
|
|
64
|
+
style(
|
|
65
|
+
cardBaseStyle,
|
|
66
|
+
'min-w-80',
|
|
67
|
+
CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
68
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'),
|
|
69
|
+
showBorder &&
|
|
70
|
+
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider',
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const isCardHighlighted = (_: BlockDef | undefined) =>
|
|
74
|
+
_?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const visibleItemCountStyle = 'auto';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const visibleItemCountStyle = 0;
|
|
@@ -23,7 +23,9 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
23
23
|
<div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
|
|
24
24
|
<div className={style(layerStyle, 'top-6 right-8 bg-green')} />
|
|
25
25
|
<div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
|
|
26
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
className={style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-green-light')}
|
|
28
|
+
>
|
|
27
29
|
<Headline
|
|
28
30
|
title={title}
|
|
29
31
|
description={description}
|
|
@@ -32,7 +34,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
32
34
|
isEmbedded={true}
|
|
33
35
|
/>
|
|
34
36
|
{renderButtonsSection([button], {
|
|
35
|
-
className: 'mt-6xl sm:justify-center',
|
|
37
|
+
className: 'mt-m sm:mt-6xl sm:justify-center',
|
|
36
38
|
isVertical: true,
|
|
37
39
|
})}
|
|
38
40
|
</div>
|
|
@@ -17,27 +17,27 @@ const five: Picture = {
|
|
|
17
17
|
const cardsList = [
|
|
18
18
|
{
|
|
19
19
|
parameter: 'IR',
|
|
20
|
-
|
|
20
|
+
parameterDescription: 'cтрана эмитента',
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
parameter: 'RU',
|
|
24
|
-
|
|
24
|
+
parameterDescription: 'страна риска',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
parameter: '09.03.2022',
|
|
28
|
-
|
|
28
|
+
parameterDescription: 'дата погашения',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
parameter: 'Ba3',
|
|
32
|
-
|
|
32
|
+
parameterDescription: 'рейтинг MOODY’S',
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
parameter: 'BB-',
|
|
36
|
-
|
|
36
|
+
parameterDescription: 'рейтинг FITCH',
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
parameter: 'Borets Finance Designated Activity Company',
|
|
40
|
-
|
|
40
|
+
parameterDescription: 'эмитент',
|
|
41
41
|
},
|
|
42
42
|
];
|
|
43
43
|
|
|
@@ -6,7 +6,7 @@ const link = {
|
|
|
6
6
|
text: 'Аудиторские заключения',
|
|
7
7
|
href: '#',
|
|
8
8
|
};
|
|
9
|
-
const links = Array(
|
|
9
|
+
const links = Array(10).fill(link);
|
|
10
10
|
|
|
11
11
|
const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
|
|
12
12
|
один из крупнейших банков в России. Был основан в 2000 году в целях развития
|
|
@@ -24,13 +24,13 @@ export default {
|
|
|
24
24
|
<div className="container grid grid-cols-12">
|
|
25
25
|
<CarouselLinks
|
|
26
26
|
links={links}
|
|
27
|
-
className="col-span-12"
|
|
28
27
|
title="О Банке"
|
|
29
28
|
description={description}
|
|
30
29
|
additionalDescription={additionalDescription}
|
|
31
30
|
maxLinksCount={MAX_LINKS_COUNT}
|
|
32
31
|
version="secondary"
|
|
33
|
-
|
|
32
|
+
className="col-span-12"
|
|
33
|
+
block={{ type: 'Carousel', blocks: new Array(1).fill(link).flat() }}
|
|
34
34
|
/>
|
|
35
35
|
</div>
|
|
36
36
|
),
|
|
@@ -53,16 +53,16 @@ const renderLinks = (links: LinkProps[], maxLinksCount: number) => {
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<Carousel
|
|
56
|
-
className="@container-normal sm:w-2/3 w-full p-0 sm:p-
|
|
56
|
+
className="@container-normal sm:w-2/3 w-full p-0 sm:p-xs"
|
|
57
57
|
version="secondary"
|
|
58
58
|
itemCount={itemCount}
|
|
59
59
|
arrowsPadded={false}
|
|
60
|
-
showDots={
|
|
60
|
+
showDots={false}
|
|
61
61
|
>
|
|
62
62
|
{new Array(itemCount).fill(null).map((_, groupIndex) => (
|
|
63
63
|
<div
|
|
64
64
|
key={String(groupIndex)}
|
|
65
|
-
className={style('flex flex-wrap self-start sm:w-[672px]
|
|
65
|
+
className={style('flex flex-wrap self-start w-full sm:w-[672px]')}
|
|
66
66
|
>
|
|
67
67
|
{links
|
|
68
68
|
.slice(groupIndex * maxLinksCount, (groupIndex + 1) * maxLinksCount)
|
package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx
CHANGED
|
@@ -89,7 +89,7 @@ export const CAROUSEL_RECOMMENDATION_CARD_SECONDARY: CarouselRecommendationCardC
|
|
|
89
89
|
description: 'Описание',
|
|
90
90
|
align: 'text-left',
|
|
91
91
|
icon,
|
|
92
|
-
items: ['Свежие новости', 'Акции и
|
|
92
|
+
items: ['Свежие новости', 'Акции и предложения', 'Ставки и котировки'],
|
|
93
93
|
version: 'secondary',
|
|
94
94
|
socialMedia: socialMediaWithoutText,
|
|
95
95
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
3
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
4
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
@@ -9,6 +7,8 @@ import { style } from '../../utils/style';
|
|
|
9
7
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
10
8
|
import { Headline } from '../Headline/Headline';
|
|
11
9
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
10
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
11
|
+
import type { Picture } from '../../model/Picture';
|
|
12
12
|
|
|
13
13
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
14
14
|
|
|
@@ -27,20 +27,20 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
27
27
|
}) => {
|
|
28
28
|
return (
|
|
29
29
|
<BlockWrapper
|
|
30
|
-
className={style('relative group-data-gray:bg-main-divider/50
|
|
31
|
-
defaultPadding="p-
|
|
30
|
+
className={style('relative group-data-gray:bg-main-divider/50', className)}
|
|
31
|
+
defaultPadding="p-3xl"
|
|
32
32
|
{...rest}
|
|
33
33
|
>
|
|
34
|
-
<LinkWrapper href={href} target={target}>
|
|
34
|
+
<LinkWrapper href={href} target={target} className={'space-y-lg'}>
|
|
35
35
|
<Headline
|
|
36
36
|
title={title}
|
|
37
37
|
description={description}
|
|
38
|
-
headlineVersion="
|
|
38
|
+
headlineVersion="XS"
|
|
39
39
|
isEmbedded={true}
|
|
40
40
|
align={align}
|
|
41
41
|
/>
|
|
42
42
|
{items.length ? (
|
|
43
|
-
<List className="flex flex-col gap-xs" items={items} listItemSize="
|
|
43
|
+
<List className="flex flex-col gap-xs" items={items} listItemSize="XS" />
|
|
44
44
|
) : null}
|
|
45
45
|
{renderIcon(icon)}
|
|
46
46
|
{socialMedia.length ? <SocialMedia media={socialMedia} /> : null}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../../setup-fixture';
|
|
2
2
|
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
4
5
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
6
|
import { CarouselTariffsCard } from './CarouselTariffsCard';
|
|
6
7
|
import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
|
|
7
|
-
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
8
8
|
|
|
9
9
|
const imageMonth: Picture = {
|
|
10
10
|
src: 'monthly-payment.png',
|
|
@@ -67,11 +67,6 @@ export const TARIFFS_CARD_HIT: CarouselTariffsCardContent = {
|
|
|
67
67
|
|
|
68
68
|
const CAROUSEL_TARIFFS_CARD = <CarouselTariffsCard className="col-span-12" {...TARIFFS_CARD} />;
|
|
69
69
|
|
|
70
|
-
const CAROUSEL_TARIFFS_CARD_HIT = (
|
|
71
|
-
<CarouselTariffsCard className="col-span-12" {...TARIFFS_CARD_HIT} />
|
|
72
|
-
);
|
|
73
|
-
|
|
74
70
|
export default {
|
|
75
71
|
default: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD}</div>,
|
|
76
|
-
hit: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD_HIT}</div>,
|
|
77
72
|
};
|
|
@@ -66,11 +66,6 @@ export const TARIFFS_CARD_HIT: CarouselTariffsCardContent = {
|
|
|
66
66
|
|
|
67
67
|
const CAROUSEL_TARIFFS_CARD = <CarouselTariffsCard className="col-span-4" {...TARIFFS_CARD} />;
|
|
68
68
|
|
|
69
|
-
const CAROUSEL_TARIFFS_CARD_HIT = (
|
|
70
|
-
<CarouselTariffsCard className="col-span-4" {...TARIFFS_CARD_HIT} />
|
|
71
|
-
);
|
|
72
|
-
|
|
73
69
|
export default {
|
|
74
70
|
default: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD}</div>,
|
|
75
|
-
hit: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD_HIT}</div>,
|
|
76
71
|
};
|
|
@@ -10,10 +10,8 @@ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
|
10
10
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
11
11
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
12
12
|
import { Img } from '../../ui-kit/Img/Img';
|
|
13
|
-
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
14
13
|
import { style } from '../../utils/style';
|
|
15
14
|
import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
|
|
16
|
-
import { getPaddingStyle } from './getPaddingStyle';
|
|
17
15
|
import { renderCardInfo } from './renderCardInfo';
|
|
18
16
|
|
|
19
17
|
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
|
|
@@ -21,27 +19,13 @@ export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, Un
|
|
|
21
19
|
const VISIBLE_CELLS_COUNT = 1;
|
|
22
20
|
|
|
23
21
|
export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
24
|
-
({
|
|
25
|
-
className = '',
|
|
26
|
-
title,
|
|
27
|
-
align = 'text-center',
|
|
28
|
-
icon,
|
|
29
|
-
isHighlighting = false,
|
|
30
|
-
button,
|
|
31
|
-
cardCells = [],
|
|
32
|
-
...rest
|
|
33
|
-
}) => {
|
|
22
|
+
({ className = '', title, align = 'text-center', icon, button, cardCells = [], ...rest }) => {
|
|
34
23
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
35
24
|
const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
|
|
36
25
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
37
26
|
|
|
38
27
|
return (
|
|
39
|
-
<BlockWrapper
|
|
40
|
-
className={style('relative flex flex-col', className)}
|
|
41
|
-
defaultPadding={getPaddingStyle(isHighlighting)}
|
|
42
|
-
{...rest}
|
|
43
|
-
>
|
|
44
|
-
{isHighlighting ? renderHitIcon() : null}
|
|
28
|
+
<BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-3xl" {...rest}>
|
|
45
29
|
{renderIconBlock(icon)}
|
|
46
30
|
{title ? (
|
|
47
31
|
<Heading className={style('pt-xs', align)} headingType="h5" title={title} />
|
|
@@ -64,9 +48,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
64
48
|
);
|
|
65
49
|
|
|
66
50
|
const renderIconBlock = (icon?: Picture) => (
|
|
67
|
-
<div className="
|
|
68
|
-
{icon?.src || icon?.icon ? <Img image={icon} /> : null}
|
|
69
|
-
</div>
|
|
51
|
+
<div className="self-center">{icon?.src || icon?.icon ? <Img image={icon} /> : null}</div>
|
|
70
52
|
);
|
|
71
53
|
|
|
72
54
|
const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
|
|
@@ -83,12 +65,3 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
|
|
|
83
65
|
/>
|
|
84
66
|
</button>
|
|
85
67
|
);
|
|
86
|
-
|
|
87
|
-
const renderHitIcon = (): VNode => (
|
|
88
|
-
<div className="absolute -top-6 -right-4 h-14 w-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
89
|
-
<Icon iconVersion="black" name="HeartIcon" width="24" height="24" />
|
|
90
|
-
<Paragraph size="text-s" font="font-normal" align="text-center" color="text-primary-text">
|
|
91
|
-
ХИТ
|
|
92
|
-
</Paragraph>
|
|
93
|
-
</div>
|
|
94
|
-
);
|
|
@@ -3,13 +3,13 @@ import { AlignText } from '../../model/AlignText';
|
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
7
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
8
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import type { MobileAppTileContent } from './MobileAppTileContent';
|
|
11
10
|
import { renderDescription } from './renderDescription';
|
|
12
11
|
import { renderList } from './renderList';
|
|
12
|
+
import { buttonsConditionStyle } from './buttonsConditionStyle';
|
|
13
13
|
|
|
14
14
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
15
15
|
|
|
@@ -51,7 +51,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
51
51
|
) : null
|
|
52
52
|
}
|
|
53
53
|
rightImage={image?.src ? <Img className="hidden lg:block" image={image} /> : null}
|
|
54
|
-
buttons={
|
|
54
|
+
buttons={buttonsConditionStyle(buttons)}
|
|
55
55
|
>
|
|
56
56
|
{renderDescription(description)}
|
|
57
57
|
<div className="flex flex-1 flex-wrap gap-m items-center">
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
|
|
5
|
+
export const buttonsConditionStyle = (buttons: ButtonProps[]) => {
|
|
6
|
+
const buttonsLengthMoreThanTwo = buttons.length > 2;
|
|
7
|
+
|
|
8
|
+
return renderButtonsSection(buttons, {
|
|
9
|
+
className: style(buttonsLengthMoreThanTwo ? 'w-full' : 'flex-nowrap'),
|
|
10
|
+
isVertical: buttonsLengthMoreThanTwo,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
|
|
4
|
+
export const buttonsConditionStyle = (buttons: ButtonProps[]) =>
|
|
5
|
+
renderButtonsSection(buttons, { isVertical: false });
|
|
@@ -22,6 +22,7 @@ export const ROLLUP_ITEM: BlockDef = {
|
|
|
22
22
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
23
23
|
],
|
|
24
24
|
};
|
|
25
|
+
|
|
25
26
|
const labelIcon: Picture = { icon: 'BriefcaseIcon' };
|
|
26
27
|
|
|
27
28
|
export default {
|
|
@@ -29,9 +30,11 @@ export default {
|
|
|
29
30
|
<div>
|
|
30
31
|
<RollupItem
|
|
31
32
|
{...ROLLUP_ITEM.content}
|
|
32
|
-
version="secondary"
|
|
33
33
|
block={ROLLUP_ITEM}
|
|
34
|
+
labelIcon={labelIcon}
|
|
35
|
+
labelIconBgVersion="primary"
|
|
34
36
|
options={options}
|
|
37
|
+
version="secondary"
|
|
35
38
|
/>
|
|
36
39
|
<RollupItem {...ROLLUP_ITEM.content} block={ROLLUP_ITEM} options={options} />
|
|
37
40
|
</div>
|
|
@@ -39,11 +42,11 @@ export default {
|
|
|
39
42
|
labelIcon: (
|
|
40
43
|
<div>
|
|
41
44
|
<RollupItem
|
|
45
|
+
block={ROLLUP_ITEM}
|
|
46
|
+
isExpanded={true}
|
|
42
47
|
label="RollupItem label 1"
|
|
43
48
|
labelIcon={labelIcon}
|
|
44
49
|
labelIconBgVersion="primary"
|
|
45
|
-
isExpanded={true}
|
|
46
|
-
block={ROLLUP_ITEM}
|
|
47
50
|
options={options}
|
|
48
51
|
/>
|
|
49
52
|
</div>
|
|
@@ -2,33 +2,36 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
5
|
-
import type { Picture } from '../../model/Picture';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
6
|
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
8
7
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
9
8
|
import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
10
9
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
11
10
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
12
|
-
import type {
|
|
11
|
+
import type { IconName, IconBgVersion, IconProps } from '../../ui-kit/Icon/IconProps';
|
|
13
12
|
import { Text } from '../../ui-kit/Text/Text';
|
|
14
13
|
import { style } from '../../utils/style';
|
|
15
14
|
import { foldableSectionStyles } from './foldableSectionStyles';
|
|
16
15
|
import { getIconName } from './getIconName';
|
|
17
|
-
import { renderRoundedIcon } from './renderRoundedIcon';
|
|
18
16
|
import { rollupIconVersion } from './rollupIconVersion';
|
|
19
17
|
import type { RollupItemContent } from './RollupItemContent';
|
|
20
18
|
import { rollupItemStyles } from './rollupItemStyles';
|
|
19
|
+
import type { Picture } from '../../model/Picture';
|
|
20
|
+
import { renderRoundedIcon } from './renderRoundedIcon';
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
interface RollupItemProps extends RollupItemContent, UniBlockProps {
|
|
23
|
+
labelIcon?: Picture;
|
|
24
|
+
labelIconBgVersion?: IconBgVersion;
|
|
25
|
+
}
|
|
23
26
|
|
|
24
27
|
export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
|
|
25
28
|
({
|
|
26
29
|
className = '',
|
|
30
|
+
isExpanded,
|
|
31
|
+
isFoldButtonOnTop = true,
|
|
27
32
|
label = 'Развернуть',
|
|
28
33
|
labelIcon,
|
|
29
34
|
labelIconBgVersion,
|
|
30
|
-
isExpanded,
|
|
31
|
-
isFoldButtonOnTop = true,
|
|
32
35
|
version = 'primary',
|
|
33
36
|
...rest
|
|
34
37
|
}) => {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { LabelProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
5
3
|
|
|
6
4
|
/**
|
|
7
5
|
* @title Сворачивающаяся секция
|
|
@@ -12,6 +10,4 @@ export type RollupItemContent = UniBlockContent &
|
|
|
12
10
|
isExpanded?: boolean;
|
|
13
11
|
/** @title Кнопка сверху */
|
|
14
12
|
isFoldButtonOnTop?: boolean;
|
|
15
|
-
labelIcon?: Picture; // TODO: только для мобильной версии
|
|
16
|
-
labelIconBgVersion?: IconBgVersion;
|
|
17
13
|
};
|
|
@@ -17,7 +17,7 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
|
|
|
17
17
|
{renderTotal('Аренда за', days)}
|
|
18
18
|
{renderTotal('Цена', price + ' ₽')}
|
|
19
19
|
</div>
|
|
20
|
-
<span className="sm:hidden order-3 mb-xs text-s-light text-secondary-text">
|
|
20
|
+
<span className="sm:hidden order-3 mb-xs text-s font-light text-secondary-text">
|
|
21
21
|
{imageDescription}
|
|
22
22
|
</span>
|
|
23
23
|
<div className="flex flex-col items-center gap-s order-3 sm:order-none mb-xl sm:mb-0 bg-primary-main py-s sm:p-3xl text-center">
|
|
@@ -46,7 +46,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
46
46
|
{renderImageContainer(leftImage, { imageAlign })}
|
|
47
47
|
<div
|
|
48
48
|
className={style(
|
|
49
|
-
'flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]',
|
|
49
|
+
'flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]',
|
|
50
50
|
leftImage ? '' : 'grow',
|
|
51
51
|
)}
|
|
52
52
|
>
|
|
@@ -66,9 +66,20 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
66
66
|
const renderImageContainer = (
|
|
67
67
|
image: VNode | undefined,
|
|
68
68
|
{ className, imageAlign }: { className?: string; imageAlign?: Align },
|
|
69
|
-
) =>
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
) => {
|
|
70
|
+
//TODO Спорное решение
|
|
71
|
+
const fullWidth = image?.props?.image?.size?.width > 400;
|
|
72
|
+
|
|
73
|
+
return image ? (
|
|
74
|
+
<div
|
|
75
|
+
className={style(
|
|
76
|
+
'flex-shrink-0',
|
|
77
|
+
fullWidth ? 'w-full @xl:w-auto' : '',
|
|
78
|
+
imageAlign && imageAlignmentMap[imageAlign],
|
|
79
|
+
className,
|
|
80
|
+
)}
|
|
81
|
+
>
|
|
72
82
|
{image}
|
|
73
83
|
</div>
|
|
74
84
|
) : null;
|
|
85
|
+
};
|
|
@@ -21,6 +21,7 @@ export const Input = JSX<InputProps>(
|
|
|
21
21
|
onFocus,
|
|
22
22
|
onBlur,
|
|
23
23
|
pattern,
|
|
24
|
+
autoFocus = false,
|
|
24
25
|
}) => {
|
|
25
26
|
const handleChange = useCallback(
|
|
26
27
|
(e: { target?: { value?: string } }) => {
|
|
@@ -61,6 +62,7 @@ export const Input = JSX<InputProps>(
|
|
|
61
62
|
onFocus={onFocus}
|
|
62
63
|
onBlur={onBlur}
|
|
63
64
|
pattern={pattern}
|
|
65
|
+
autoFocus={autoFocus}
|
|
64
66
|
/>
|
|
65
67
|
</label>
|
|
66
68
|
{children}
|
package/src/ui-kit/List/List.tsx
CHANGED
|
@@ -5,12 +5,14 @@ import { ListItem } from './ListItem';
|
|
|
5
5
|
import type { ListProps } from './ListProps';
|
|
6
6
|
|
|
7
7
|
const TEXT_SIZE_MAP: Record<ListItemSize, string> = {
|
|
8
|
+
XS: 'text-m font-light',
|
|
8
9
|
S: 'text-l font-light',
|
|
9
10
|
M: 'text-h6',
|
|
10
11
|
L: 'text-h5',
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
|
|
15
|
+
XS: 'ml-2xs',
|
|
14
16
|
S: 'ml-xs',
|
|
15
17
|
M: 'ml-s',
|
|
16
18
|
L: 'ml-m',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @title Размер пунктов списка
|
|
3
|
-
* @enumNames ["Маленький", "Средний", "Большой"]
|
|
3
|
+
* @enumNames ["Очень маленький", "Маленький", "Средний", "Большой"]
|
|
4
4
|
*/
|
|
5
|
-
export type ListItemSize = 'S' | 'M' | 'L';
|
|
5
|
+
export type ListItemSize = 'XS' | 'S' | 'M' | 'L';
|
|
6
6
|
|
|
7
7
|
export interface ListContent {
|
|
8
8
|
/** @title Список */
|