@redneckz/wildless-cms-uni-blocks 0.11.2 → 0.11.3
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.11.1.js +34 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +76 -56
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/bundle/components/CarouselCard/titleSize.d.ts +1 -0
- package/bundle/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/bundle/components/Footer/Contacts.d.ts +2 -2
- package/bundle/components/Footer/FooterContent.d.ts +9 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/bundle/components/PictureText/positionStyle.d.ts +1 -0
- package/bundle/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
- package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/bundle/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/{mobile/dist/components/ButtonBlock/ButtonBlock.js → dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +9 -7
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/dist/components/CarouselCard/getCardWidth.js +18 -0
- package/dist/components/CarouselCard/getCardWidth.js.map +1 -0
- package/dist/components/CarouselCard/titleSize.d.ts +1 -0
- package/dist/components/CarouselCard/titleSize.js +4 -0
- package/dist/components/CarouselCard/titleSize.js.map +1 -0
- package/dist/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/dist/components/CarouselCard/titleSize.mobile.js +4 -0
- package/dist/components/CarouselCard/titleSize.mobile.js.map +1 -0
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +2 -2
- package/dist/components/Footer/Contacts.js +4 -5
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +9 -1
- package/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/dist/components/PictureText/PictureText.js +5 -11
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/positionStyle.d.ts +1 -0
- package/dist/components/PictureText/positionStyle.js +4 -0
- package/dist/components/PictureText/positionStyle.js.map +1 -0
- package/dist/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/dist/components/PictureText/positionStyle.mobile.js +4 -0
- package/dist/components/PictureText/positionStyle.mobile.js.map +1 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/dist/components/PictureText/styleInsuranceSum.js +4 -0
- package/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.js +4 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
- package/dist/components/PictureText/styleValueBlock.d.ts +2 -0
- package/dist/components/PictureText/styleValueBlock.js +5 -0
- package/dist/components/PictureText/styleValueBlock.js.map +1 -0
- package/dist/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/dist/components/PictureText/styleValueBlock.mobile.js +5 -0
- package/dist/components/PictureText/styleValueBlock.mobile.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +14 -9
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/dist/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/dist/components/RollupItem/renderRoundedIcon.js +5 -0
- package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js +7 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +4 -0
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.js +4 -0
- package/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js +4 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +8 -3
- package/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/dist/ui-kit/Icon/RoundedIcon.js +5 -1
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +6 -0
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +8 -0
- package/lib/components/CarouselCard/CarouselCard.js +9 -7
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/lib/components/CarouselCard/getCardWidth.js +15 -0
- package/lib/components/CarouselCard/getCardWidth.js.map +1 -0
- package/lib/components/CarouselCard/titleSize.d.ts +1 -0
- package/lib/components/CarouselCard/titleSize.js +2 -0
- package/lib/components/CarouselCard/titleSize.js.map +1 -0
- package/lib/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/lib/components/CarouselCard/titleSize.mobile.js +2 -0
- package/lib/components/CarouselCard/titleSize.mobile.js.map +1 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +2 -2
- package/lib/components/Footer/Contacts.js +4 -5
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +9 -1
- package/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +14 -0
- package/lib/components/PictureText/PictureText.js +5 -11
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/positionStyle.d.ts +1 -0
- package/lib/components/PictureText/positionStyle.js +2 -0
- package/lib/components/PictureText/positionStyle.js.map +1 -0
- package/lib/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/lib/components/PictureText/positionStyle.mobile.js +2 -0
- package/lib/components/PictureText/positionStyle.mobile.js.map +1 -0
- package/lib/components/PictureText/renderBenefit.d.ts +0 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +1 -0
- package/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
- package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/lib/components/PictureText/styleInsuranceSum.js +2 -0
- package/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.js +2 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
- package/lib/components/PictureText/styleValueBlock.d.ts +2 -0
- package/lib/components/PictureText/styleValueBlock.js +3 -0
- package/lib/components/PictureText/styleValueBlock.js.map +1 -0
- package/lib/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/lib/components/PictureText/styleValueBlock.mobile.js +3 -0
- package/lib/components/PictureText/styleValueBlock.mobile.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
- package/lib/components/RollupItem/RollupItem.js +14 -9
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/lib/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/lib/components/RollupItem/renderRoundedIcon.js +2 -0
- package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +3 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js +4 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +2 -0
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.js +2 -0
- package/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js +2 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +8 -3
- package/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/lib/ui-kit/Icon/RoundedIcon.js +5 -1
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +542 -378
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/bundle/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
- package/mobile/bundle/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/bundle/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/{dist/components/ButtonBlock/ButtonBlock.js → mobile/dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +9 -7
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/dist/components/CarouselCard/getCardWidth.js +18 -0
- package/mobile/dist/components/CarouselCard/getCardWidth.js.map +1 -0
- package/mobile/dist/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/dist/components/CarouselCard/titleSize.js +4 -0
- package/mobile/dist/components/CarouselCard/titleSize.js.map +1 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
- package/mobile/dist/components/Footer/Contacts.js +4 -5
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/dist/components/PictureText/PictureText.js +5 -11
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/dist/components/PictureText/positionStyle.js +4 -0
- package/mobile/dist/components/PictureText/positionStyle.js.map +1 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.js +4 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/mobile/dist/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/dist/components/PictureText/styleValueBlock.js +5 -0
- package/mobile/dist/components/PictureText/styleValueBlock.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +14 -9
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js +7 -0
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js +4 -0
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/mobile/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +9 -7
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/lib/components/CarouselCard/getCardWidth.js +15 -0
- package/mobile/lib/components/CarouselCard/getCardWidth.js.map +1 -0
- package/mobile/lib/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/lib/components/CarouselCard/titleSize.js +2 -0
- package/mobile/lib/components/CarouselCard/titleSize.js.map +1 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
- package/mobile/lib/components/Footer/Contacts.js +4 -5
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/lib/components/PictureText/PictureText.js +5 -11
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/lib/components/PictureText/positionStyle.js +2 -0
- package/mobile/lib/components/PictureText/positionStyle.js.map +1 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.js +2 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/mobile/lib/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/lib/components/PictureText/styleValueBlock.js +3 -0
- package/mobile/lib/components/PictureText/styleValueBlock.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +14 -9
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js +4 -0
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js +2 -0
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
- package/mobile/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +9 -3
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +16 -12
- package/mobile/src/components/CarouselCard/getCardWidth.tsx +16 -0
- package/mobile/src/components/CarouselCard/titleSize.tsx +1 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
- package/mobile/src/components/Footer/Contacts.tsx +20 -12
- package/mobile/src/components/Footer/FooterContent.ts +10 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
- package/mobile/src/components/PictureText/PictureText.tsx +13 -27
- package/mobile/src/components/PictureText/positionStyle.tsx +1 -0
- package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
- package/mobile/src/components/PictureText/styleInsuranceSum.tsx +1 -0
- package/mobile/src/components/PictureText/styleValueBlock.tsx +2 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +25 -18
- package/mobile/src/components/RollupItem/RollupItem.ui.json +7 -1
- package/mobile/src/components/RollupItem/RollupItemContent.ts +4 -2
- package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +7 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
- package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
- package/mobile/src/ui-kit/Icon/IconProps.ts +9 -4
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/Blocks.ts +2 -2
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +26 -0
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +26 -0
- package/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
- package/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
- package/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
- package/src/components/CardTransfer/CardTransfer.fixture.mobile.tsx +18 -0
- package/src/components/CardTransfer/CardTransfer.tsx +9 -3
- package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +28 -0
- package/src/components/CarouselCard/CarouselCard.tsx +16 -12
- package/src/components/CarouselCard/getCardWidth.tsx +16 -0
- package/src/components/CarouselCard/titleSize.mobile.tsx +1 -0
- package/src/components/CarouselCard/titleSize.tsx +1 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
- package/src/components/Footer/Contacts.tsx +20 -12
- package/src/components/Footer/FooterContent.ts +10 -1
- package/src/components/Footer/FooterDataProps.ts +2 -2
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +122 -0
- package/src/components/PictureText/PictureText.tsx +13 -27
- package/src/components/PictureText/positionStyle.mobile.tsx +1 -0
- package/src/components/PictureText/positionStyle.tsx +1 -0
- package/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
- package/src/components/PictureText/styleInsuranceSum.mobile.tsx +1 -0
- package/src/components/PictureText/styleInsuranceSum.tsx +1 -0
- package/src/components/PictureText/styleValueBlock.mobile.tsx +2 -0
- package/src/components/PictureText/styleValueBlock.tsx +2 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -0
- package/src/components/RollupItem/RollupItem.tsx +25 -18
- package/src/components/RollupItem/RollupItem.ui.json +7 -1
- package/src/components/RollupItem/RollupItemContent.ts +4 -2
- package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +7 -0
- package/src/components/RollupItem/renderRoundedIcon.tsx +4 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
- package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +1 -0
- package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +1 -0
- package/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
- package/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
- package/src/ui-kit/Icon/IconProps.ts +9 -4
- package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
- package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
- package/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
- package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
- package/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
- package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +0 -19
- package/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
- package/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
- /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
|
@@ -43,8 +43,14 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
45
|
<BlockWrapper className={style('p-default flex flex-col items-center', className)} {...rest}>
|
|
46
|
-
{title ?
|
|
47
|
-
|
|
46
|
+
{title ? (
|
|
47
|
+
<Heading
|
|
48
|
+
className="pb-5 xl:pb-9 self-start xl:self-center"
|
|
49
|
+
headingType="h2"
|
|
50
|
+
title={title}
|
|
51
|
+
/>
|
|
52
|
+
) : null}
|
|
53
|
+
<form className="w-full xl:max-w-[468px]" method="POST" action={FORM_URL}>
|
|
48
54
|
<CurrencyInput
|
|
49
55
|
name={AMOUNT_KEY}
|
|
50
56
|
valid={!isDisabled}
|
|
@@ -55,7 +61,7 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
55
61
|
{button?.text ? (
|
|
56
62
|
<button
|
|
57
63
|
type="submit"
|
|
58
|
-
className={style('w-full p-4 mt-6', buttonStyle)}
|
|
64
|
+
className={style('w-full p-4 mt-5 xl:mt-6', buttonStyle)}
|
|
59
65
|
disabled={isDisabled}
|
|
60
66
|
{...link(button)}
|
|
61
67
|
>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import { CarouselCard } from './CarouselCard';
|
|
5
|
+
import type { CarouselCardContent } from './CarouselCardContent';
|
|
6
|
+
|
|
7
|
+
const button: ButtonProps = {
|
|
8
|
+
text: 'Подробнее',
|
|
9
|
+
href: '/credit-cards',
|
|
10
|
+
version: 'primary',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const CARD: CarouselCardContent = {
|
|
14
|
+
title: 'Контакты и реквизиты',
|
|
15
|
+
description:
|
|
16
|
+
'АО «Россельхозбанк» занимает второе место в России по размеру филиальной сети — 66 филиалов во всех регионах страны',
|
|
17
|
+
button,
|
|
18
|
+
carouselVersion: 'normal',
|
|
19
|
+
version: 'primary',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
default: (
|
|
24
|
+
<div className="container grid grid-cols-12">
|
|
25
|
+
<CarouselCard className="col-span-4" {...CARD} />
|
|
26
|
+
</div>
|
|
27
|
+
),
|
|
28
|
+
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import type { CarouselCardContent } from './CarouselCardContent';
|
|
2
|
+
import { Headline } from '../Headline/Headline';
|
|
1
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
4
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import
|
|
5
|
+
import { getCardWidth } from './getCardWidth';
|
|
4
6
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
|
+
import { titleSize } from './titleSize';
|
|
7
9
|
|
|
8
10
|
export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
|
|
9
11
|
|
|
10
|
-
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
|
|
11
|
-
|
|
12
|
-
const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
|
|
13
|
-
normal: 'min-w-[970px]',
|
|
14
|
-
small: 'min-w-[355px]',
|
|
15
|
-
};
|
|
12
|
+
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full sm:hidden';
|
|
16
13
|
|
|
17
14
|
export const CarouselCard = JSX<CarouselCardProps>(
|
|
18
15
|
({ className = '', button, description, title, carouselVersion = 'normal', version = '' }) => (
|
|
19
16
|
<section
|
|
20
|
-
className={
|
|
17
|
+
className={style(
|
|
18
|
+
'flex pb-9 pl-12 sm:p-5 border-box h-full sm:max-w-[375px]',
|
|
19
|
+
getCardWidth(className, carouselVersion),
|
|
20
|
+
className,
|
|
21
|
+
)}
|
|
21
22
|
>
|
|
22
23
|
<div className="relative w-full">
|
|
23
24
|
<div className={`${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark`} />
|
|
@@ -28,11 +29,14 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
28
29
|
className="!p-0"
|
|
29
30
|
title={title}
|
|
30
31
|
description={description}
|
|
31
|
-
headlineVersion=
|
|
32
|
+
headlineVersion={titleSize}
|
|
32
33
|
align="text-left"
|
|
33
34
|
version={version}
|
|
34
35
|
/>
|
|
35
|
-
{renderButtonsSection([button], {
|
|
36
|
+
{renderButtonsSection([button], {
|
|
37
|
+
className: 'mt-14 sm:justify-center',
|
|
38
|
+
isVertical: true,
|
|
39
|
+
})}
|
|
36
40
|
</div>
|
|
37
41
|
</div>
|
|
38
42
|
</section>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SizeVersion } from '../../model/SizeVersion';
|
|
2
|
+
import { getColSpan } from '../../utils/getColSpan';
|
|
3
|
+
|
|
4
|
+
const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
|
|
5
|
+
normal: 'min-w-[970px]',
|
|
6
|
+
small: 'min-w-[355px]',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export function getCardWidth(className = '', carouselVersion = 'normal') {
|
|
10
|
+
const colSpan = getColSpan(className);
|
|
11
|
+
if (colSpan <= 4) {
|
|
12
|
+
return 'w-[375px]';
|
|
13
|
+
} else {
|
|
14
|
+
return CARD_WIDTH_MAP[carouselVersion] as string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const titleSize = 'XS';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const titleSize = 'L';
|
|
@@ -63,9 +63,7 @@ export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
|
63
63
|
const renderImage = (image?: Picture) => (
|
|
64
64
|
<div className="flex justify-center">
|
|
65
65
|
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
66
|
-
{image?.icon ?
|
|
67
|
-
<Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} />
|
|
68
|
-
) : null}
|
|
66
|
+
{image?.icon ? <Img className={`w-8 h-8 min-w-8 mb-5`} image={image} /> : null}
|
|
69
67
|
</div>
|
|
70
68
|
);
|
|
71
69
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
|
-
import
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import type { ContactGroup, ContactInfo } from './FooterContent';
|
|
4
5
|
|
|
5
6
|
export interface ContactsProps {
|
|
6
7
|
className?: string;
|
|
7
|
-
items?:
|
|
8
|
+
items?: ContactGroup[];
|
|
8
9
|
hasButton?: boolean;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export const Contacts = JSX<ContactsProps>(({ className = '', items, hasButton }) => (
|
|
12
13
|
<div className={className}>
|
|
13
|
-
{items?.length ? items.map(
|
|
14
|
+
{items?.length ? items.map(renderContactsGroup) : null}
|
|
14
15
|
{hasButton ? (
|
|
15
16
|
<Button
|
|
16
17
|
version="primary"
|
|
@@ -24,16 +25,23 @@ export const Contacts = JSX<ContactsProps>(({ className = '', items, hasButton }
|
|
|
24
25
|
</div>
|
|
25
26
|
));
|
|
26
27
|
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<div className="mt-1 text-s-light text-secondary-text">{description}</div>
|
|
28
|
+
const renderContactsGroup = (item: ContactGroup, i: number) => (
|
|
29
|
+
<div className="mb-6" key={String(i)}>
|
|
30
|
+
<div className="mb-4">
|
|
31
|
+
<Text size="text-l" font="font-medium">
|
|
32
|
+
{item?.title}
|
|
33
|
+
</Text>
|
|
34
34
|
</div>
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
<div>{item.items?.map(renderContact)}</div>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
const renderContact = (item: ContactInfo, index: number) => (
|
|
40
|
+
<div className="mb-4" key={String(index)}>
|
|
41
|
+
<div>{renderText(item.type, item.text)}</div>
|
|
42
|
+
<div className="mt-1 text-s-light text-secondary-text">{item.description}</div>
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
37
45
|
|
|
38
46
|
const renderText = (type: ContactInfo['type'], text = '') => {
|
|
39
47
|
switch (type) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
4
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
-
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @title Тип контакта
|
|
@@ -21,6 +21,15 @@ export type ContactInfo = DescriptionProps & {
|
|
|
21
21
|
type?: ContactType;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @title Группа контактов
|
|
26
|
+
*/
|
|
27
|
+
export type ContactGroup = {
|
|
28
|
+
/** @title Имя */
|
|
29
|
+
title?: string;
|
|
30
|
+
items?: ContactInfo[];
|
|
31
|
+
};
|
|
32
|
+
|
|
24
33
|
/**
|
|
25
34
|
* @title Пункт подменю
|
|
26
35
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ContactGroup, SubMenuItem } from './FooterContent';
|
|
5
5
|
|
|
6
6
|
export interface FooterDataProps extends SitemapData {
|
|
7
7
|
documents?: LinkProps[];
|
|
8
8
|
relatedEnterprises?: LinkProps[];
|
|
9
|
-
contacts?:
|
|
9
|
+
contacts?: ContactGroup[];
|
|
10
10
|
socialMedia?: LinkCommonProps[];
|
|
11
11
|
mobileApps?: LinkCommonProps[];
|
|
12
12
|
horizontalNavigationTitle?: string; // TODO: для мобильной версии
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import { PictureText } from './PictureText';
|
|
4
|
+
import type { PictureTextContent } from './PictureTextContent';
|
|
5
|
+
|
|
6
|
+
const imageInsurance: Picture = {
|
|
7
|
+
src: 'insurance.png',
|
|
8
|
+
format: 'webp',
|
|
9
|
+
alt: 'Страховые риски и продукты',
|
|
10
|
+
size: {
|
|
11
|
+
width: 335,
|
|
12
|
+
},
|
|
13
|
+
sources: [
|
|
14
|
+
{
|
|
15
|
+
src: 'insurance.png',
|
|
16
|
+
format: 'png',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const imageMonitor: Picture = {
|
|
22
|
+
src: 'monitor.png',
|
|
23
|
+
format: 'webp',
|
|
24
|
+
alt: 'Управление несколькими счетами',
|
|
25
|
+
size: {
|
|
26
|
+
width: 420,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export const PICTURE_TEXT: PictureTextContent = {
|
|
30
|
+
title: 'Страховые риски и продукты',
|
|
31
|
+
description: 'Покрываемые риски программы «Страхование от потери работы»',
|
|
32
|
+
benefits: [
|
|
33
|
+
{
|
|
34
|
+
type: 'default',
|
|
35
|
+
label: 'Кредит по одному документу',
|
|
36
|
+
description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
|
|
37
|
+
icon: { icon: 'DocumentTextIcon' },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: 'default',
|
|
41
|
+
label: 'Кредит на общих условиях',
|
|
42
|
+
description: 'До 5 млн ₽ на общих условиях получения кредита',
|
|
43
|
+
icon: { icon: 'DocumentTextIcon', iconVersion: 'white' },
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const INSURANCE_TEXT: PictureTextContent = {
|
|
49
|
+
title: 'Страховые риски и продукты',
|
|
50
|
+
description: 'Покрываемые риски программы «Защита вас и ваших близких»',
|
|
51
|
+
benefits: [
|
|
52
|
+
{
|
|
53
|
+
type: 'default',
|
|
54
|
+
label: 'Телесное повреждение',
|
|
55
|
+
icon: { icon: 'ShieldTickIcon' },
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: 'default',
|
|
59
|
+
label: 'Госпитализация застрахованного',
|
|
60
|
+
description: 'Описание',
|
|
61
|
+
icon: { icon: 'ShieldTickIcon' },
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: 'default',
|
|
65
|
+
label: 'Сокращение численности работников организации и другой текст для теста длинны текста',
|
|
66
|
+
icon: { icon: 'ShieldTickIcon' },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'default',
|
|
70
|
+
label: 'Смерть застрахованного',
|
|
71
|
+
icon: { icon: 'ShieldTickIcon' },
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
image: imageInsurance,
|
|
75
|
+
sum: 500000,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const BENEFITS_HTML_TEXT: PictureTextContent = {
|
|
79
|
+
title: '',
|
|
80
|
+
benefits: [
|
|
81
|
+
{
|
|
82
|
+
type: 'rte',
|
|
83
|
+
__html:
|
|
84
|
+
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'rte',
|
|
88
|
+
__html:
|
|
89
|
+
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
|
|
93
|
+
image: imageMonitor,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export default {
|
|
97
|
+
default: (
|
|
98
|
+
<div className="container grid grid-cols-12">
|
|
99
|
+
<PictureText className="col-span-12" {...PICTURE_TEXT} />
|
|
100
|
+
</div>
|
|
101
|
+
),
|
|
102
|
+
secondary: (
|
|
103
|
+
<div className="container grid grid-cols-12">
|
|
104
|
+
<PictureText className="col-span-12" {...PICTURE_TEXT} version="secondary" />
|
|
105
|
+
</div>
|
|
106
|
+
),
|
|
107
|
+
'insurance sum': (
|
|
108
|
+
<div className="container grid grid-cols-12">
|
|
109
|
+
<PictureText className="col-span-12" {...INSURANCE_TEXT} />
|
|
110
|
+
</div>
|
|
111
|
+
),
|
|
112
|
+
'insurance monthPay': (
|
|
113
|
+
<div className="container grid grid-cols-12">
|
|
114
|
+
<PictureText className="col-span-12" {...INSURANCE_TEXT} monthLimit={25000} />
|
|
115
|
+
</div>
|
|
116
|
+
),
|
|
117
|
+
'benefits as html': (
|
|
118
|
+
<div className="container grid grid-cols-12">
|
|
119
|
+
<PictureText className="col-span-12" {...BENEFITS_HTML_TEXT} />
|
|
120
|
+
</div>
|
|
121
|
+
),
|
|
122
|
+
};
|
|
@@ -2,10 +2,12 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
6
5
|
import { Headline } from '../Headline/Headline';
|
|
7
6
|
import type { PictureTextContent } from './PictureTextContent';
|
|
8
7
|
import { renderBenefit } from './renderBenefit';
|
|
8
|
+
import { style } from '../../utils/style';
|
|
9
|
+
import { positionStyle } from './positionStyle';
|
|
10
|
+
import { renderInsuranceSumMonth } from './renderInsuranceSumMonth';
|
|
9
11
|
|
|
10
12
|
export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
|
|
11
13
|
|
|
@@ -22,11 +24,17 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
22
24
|
version = 'primary',
|
|
23
25
|
...rest
|
|
24
26
|
}) => (
|
|
25
|
-
<BlockWrapper className={
|
|
26
|
-
<Headline
|
|
27
|
-
|
|
27
|
+
<BlockWrapper className={style('relative p-default', className)} version={version} {...rest}>
|
|
28
|
+
<Headline
|
|
29
|
+
className="!p-0"
|
|
30
|
+
title={title}
|
|
31
|
+
description={description}
|
|
32
|
+
headlineVersion="M" // TODO: Сверить с макетом после влития мобильных правок Headline (DRAFT)
|
|
33
|
+
align="text-left"
|
|
34
|
+
/>
|
|
35
|
+
<div className={style('flex mt-6', positionStyle)}>
|
|
28
36
|
{image?.src ? <Img className={directionRight ? 'order-2' : ''} image={image} /> : null}
|
|
29
|
-
<div
|
|
37
|
+
<div>
|
|
30
38
|
{benefits?.length ? (
|
|
31
39
|
<div className="flex flex-col gap-4">{benefits.map(renderBenefit(version))}</div>
|
|
32
40
|
) : null}
|
|
@@ -36,25 +44,3 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
36
44
|
</BlockWrapper>
|
|
37
45
|
),
|
|
38
46
|
);
|
|
39
|
-
|
|
40
|
-
function renderInsuranceSumMonth(sum?: number, monthLimit?: number) {
|
|
41
|
-
return sum || monthLimit ? (
|
|
42
|
-
<div className="bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4">
|
|
43
|
-
{Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
|
|
44
|
-
{Number(monthLimit) > 0
|
|
45
|
-
? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
|
|
46
|
-
: null}
|
|
47
|
-
</div>
|
|
48
|
-
) : null;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function renderValueBlock(title: string, sum = 0, isAnotherBlock = false) {
|
|
52
|
-
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<div className={`flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`}>
|
|
56
|
-
<span className="text-secondary-text text-l-light">{title}</span>
|
|
57
|
-
<span className="text-primary-main text-h6">{toLocalNumberFormat(2)(sum)} ₽</span>
|
|
58
|
-
</div>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const positionStyle = 'justify-end flex-col-reverse gap-4';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const positionStyle = 'justify-center items-center gap-32';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
3
|
+
import { styleInsuranceSum } from './styleInsuranceSum';
|
|
4
|
+
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
5
|
+
import { styleValueBlock, styleValueBlockText } from './styleValueBlock';
|
|
6
|
+
|
|
7
|
+
export const renderInsuranceSumMonth = (sum = 0, monthLimit = 0) =>
|
|
8
|
+
sum || monthLimit ? (
|
|
9
|
+
<div className={style('flex mt-6', styleInsuranceSum)}>
|
|
10
|
+
{sum > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
|
|
11
|
+
{monthLimit > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum)) : null}
|
|
12
|
+
</div>
|
|
13
|
+
) : null;
|
|
14
|
+
|
|
15
|
+
const renderValueBlock = (title: string, sum = 0, isAnotherBlock = false) => {
|
|
16
|
+
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className={style(`flex w-full whitespace-pre`, styleValueBlock, widthStyle)}>
|
|
20
|
+
<Text font="font-light" size="text-l">
|
|
21
|
+
{title}
|
|
22
|
+
</Text>
|
|
23
|
+
<Text size="text-h6" color={styleValueBlockText}>
|
|
24
|
+
{toLocalNumberFormat(2)(sum)} ₽
|
|
25
|
+
</Text>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const styleInsuranceSum = 'flex-col gap-2';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const styleInsuranceSum = 'bg-main-divider rounded-md px-5 py-4 gap-6';
|
|
@@ -44,6 +44,21 @@ export default {
|
|
|
44
44
|
<RollupItem
|
|
45
45
|
label="RollupItem label 1"
|
|
46
46
|
labelIcon={labelIcon}
|
|
47
|
+
labelIconBgVersion="primary"
|
|
48
|
+
isExpanded={true}
|
|
49
|
+
block={ROLLUP_ITEM}
|
|
50
|
+
options={options}
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
),
|
|
55
|
+
labelIconSecondary: (
|
|
56
|
+
<div>
|
|
57
|
+
<div className="list-none m-0 p-0">
|
|
58
|
+
<RollupItem
|
|
59
|
+
label="RollupItem label 1"
|
|
60
|
+
labelIcon={labelIcon}
|
|
61
|
+
labelIconBgVersion="secondary-light"
|
|
47
62
|
isExpanded={true}
|
|
48
63
|
block={ROLLUP_ITEM}
|
|
49
64
|
options={options}
|
|
@@ -9,8 +9,8 @@ import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
|
9
9
|
import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
10
10
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
11
11
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
12
|
-
import type { IconName, IconProps } from '../../ui-kit/Icon/IconProps';
|
|
13
|
-
import {
|
|
12
|
+
import type { IconBgVersion, IconName, IconProps } from '../../ui-kit/Icon/IconProps';
|
|
13
|
+
import { renderRoundedIcon } from './renderRoundedIcon';
|
|
14
14
|
import { Text } from '../../ui-kit/Text/Text';
|
|
15
15
|
import { style } from '../../utils/style';
|
|
16
16
|
import { foldableSectionStyles } from './foldableSectionStyles';
|
|
@@ -27,6 +27,7 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
|
|
|
27
27
|
className = '',
|
|
28
28
|
label = 'Развернуть',
|
|
29
29
|
labelIcon,
|
|
30
|
+
labelIconBgVersion,
|
|
30
31
|
isExpanded,
|
|
31
32
|
isFoldButtonOnTop = true,
|
|
32
33
|
version = 'primary',
|
|
@@ -51,7 +52,14 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
|
|
|
51
52
|
</FoldableSection>
|
|
52
53
|
)}
|
|
53
54
|
renderFoldButton={({ isUnfolded, onToggle }) =>
|
|
54
|
-
renderFoldButton({
|
|
55
|
+
renderFoldButton({
|
|
56
|
+
version,
|
|
57
|
+
label,
|
|
58
|
+
labelIcon,
|
|
59
|
+
labelIconBgVersion,
|
|
60
|
+
isUnfolded,
|
|
61
|
+
onToggle,
|
|
62
|
+
})
|
|
55
63
|
}
|
|
56
64
|
/>
|
|
57
65
|
</BlockWrapper>
|
|
@@ -67,6 +75,7 @@ interface FoldButtonProps extends FoldablePartProps {
|
|
|
67
75
|
version?: BlockVersion;
|
|
68
76
|
label?: string;
|
|
69
77
|
labelIcon?: IconProps;
|
|
78
|
+
labelIconBgVersion?: IconBgVersion;
|
|
70
79
|
isPadding?: boolean;
|
|
71
80
|
}
|
|
72
81
|
|
|
@@ -74,6 +83,7 @@ const renderFoldButton = ({
|
|
|
74
83
|
version,
|
|
75
84
|
label: defaultLabel,
|
|
76
85
|
labelIcon,
|
|
86
|
+
labelIconBgVersion,
|
|
77
87
|
isUnfolded,
|
|
78
88
|
onToggle,
|
|
79
89
|
}: FoldButtonProps) => {
|
|
@@ -83,6 +93,7 @@ const renderFoldButton = ({
|
|
|
83
93
|
renderPrimaryFoldButton({
|
|
84
94
|
label,
|
|
85
95
|
labelIcon,
|
|
96
|
+
labelIconBgVersion,
|
|
86
97
|
icon: getIconName(isUnfolded),
|
|
87
98
|
onToggle,
|
|
88
99
|
})
|
|
@@ -97,33 +108,29 @@ const renderFoldButton = ({
|
|
|
97
108
|
|
|
98
109
|
interface PrimaryFoldButtonProps {
|
|
99
110
|
label?: string;
|
|
111
|
+
labelIcon?: Picture;
|
|
112
|
+
labelIconBgVersion?: IconBgVersion;
|
|
100
113
|
icon?: IconName;
|
|
101
114
|
onToggle?: () => void;
|
|
102
|
-
labelIcon?: Picture;
|
|
103
115
|
}
|
|
104
116
|
|
|
105
|
-
const renderPrimaryFoldButton = ({
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
const renderPrimaryFoldButton = ({
|
|
118
|
+
label,
|
|
119
|
+
labelIconBgVersion,
|
|
120
|
+
icon,
|
|
121
|
+
onToggle,
|
|
122
|
+
labelIcon,
|
|
123
|
+
}: PrimaryFoldButtonProps) => {
|
|
110
124
|
return (
|
|
111
125
|
<button
|
|
112
126
|
className={style(
|
|
113
127
|
'border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button',
|
|
114
|
-
|
|
128
|
+
labelIcon?.icon ? 'py-2' : 'py-5',
|
|
115
129
|
)}
|
|
116
130
|
onClick={onToggle}
|
|
117
131
|
>
|
|
118
132
|
<div className="flex items-center group-hover/button:text-primary-main">
|
|
119
|
-
{
|
|
120
|
-
<RoundedIcon
|
|
121
|
-
name={iconName}
|
|
122
|
-
width={iconWidth}
|
|
123
|
-
height={iconHeight}
|
|
124
|
-
iconVersion={labelIcon?.iconVersion}
|
|
125
|
-
/>
|
|
126
|
-
) : null}
|
|
133
|
+
{renderRoundedIcon(labelIcon, labelIconBgVersion)}
|
|
127
134
|
{label ? (
|
|
128
135
|
<Text size={labelSize} font="font-normal">
|
|
129
136
|
{label}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LabelProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Сворачивающаяся секция
|
|
@@ -11,5 +12,6 @@ export type RollupItemContent = UniBlockContent &
|
|
|
11
12
|
isExpanded?: boolean;
|
|
12
13
|
/** @title Кнопка сверху */
|
|
13
14
|
isFoldButtonOnTop?: boolean;
|
|
14
|
-
labelIcon?:
|
|
15
|
+
labelIcon?: Picture; // TODO: только для мобильной версии
|
|
16
|
+
labelIconBgVersion?: IconBgVersion;
|
|
15
17
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
|
|
3
|
+
import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
4
|
+
|
|
5
|
+
export const renderRoundedIcon = (icon?: Picture, iconBgVersion?: IconBgVersion) => (
|
|
6
|
+
<RoundedIcon {...icon} iconBgVersion={iconBgVersion} />
|
|
7
|
+
);
|