@redneckz/wildless-cms-uni-blocks 0.11.1 → 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 +90 -64
- 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/Header/Header.mobile.d.ts +2 -2
- package/bundle/components/Header/HeaderContent.d.ts +13 -1
- package/bundle/components/Header/HeaderTop.d.ts +6 -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/ProductGallery/ProductGallery.mobile.d.ts +5 -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/icons/IconName.d.ts +4 -2
- 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/Heading/headingTag.d.ts +2 -0
- package/bundle/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/cosmos-static/icons/ChevronLeft.svg +1 -0
- package/dist/components/BaseTile/BaseTile.js +2 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -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 +10 -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/dist/components/{ButtonBlock/ButtonBlock.js → 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/Header/Header.mobile.d.ts +2 -2
- package/dist/components/Header/Header.mobile.js +3 -17
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +13 -1
- package/dist/components/Header/HeaderTop.d.ts +6 -2
- package/dist/components/Header/HeaderTop.js +15 -2
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- 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/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.js +13 -0
- package/dist/components/ProductGallery/ProductGallery.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/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- 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/Heading/Heading.js +5 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/headingTag.d.ts +2 -0
- package/dist/ui-kit/Heading/headingTag.js +5 -0
- package/dist/ui-kit/Heading/headingTag.js.map +1 -0
- package/dist/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/dist/ui-kit/Heading/headingTag.mobile.js +13 -0
- package/dist/ui-kit/Heading/headingTag.mobile.js.map +1 -0
- 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/BaseTile/BaseTile.js +2 -1
- package/lib/components/BaseTile/BaseTile.js.map +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 +10 -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/Header/Header.fixture.mobile.d.ts +2 -0
- package/lib/components/Header/Header.mobile.d.ts +2 -2
- package/lib/components/Header/Header.mobile.js +4 -18
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +13 -1
- package/lib/components/Header/HeaderTop.d.ts +6 -2
- package/lib/components/Header/HeaderTop.js +15 -2
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- 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/ProductGallery/ProductGallery.fixture.mobile.d.ts +7 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js +11 -0
- package/lib/components/ProductGallery/ProductGallery.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/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- 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/Heading/Heading.js +5 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/headingTag.d.ts +2 -0
- package/lib/ui-kit/Heading/headingTag.js +2 -0
- package/lib/ui-kit/Heading/headingTag.js.map +1 -0
- package/lib/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/lib/ui-kit/Heading/headingTag.mobile.js +10 -0
- package/lib/ui-kit/Heading/headingTag.mobile.js.map +1 -0
- 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 +532 -655
- 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/Header/Header.d.ts +2 -2
- package/mobile/bundle/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -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/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/bundle/ui-kit/Heading/headingTag.d.ts +2 -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/BaseTile/BaseTile.js +2 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/Blocks.js +10 -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/mobile/dist/components/{ButtonBlock/ButtonBlock.js → 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/Header/Header.d.ts +2 -2
- package/mobile/dist/components/Header/Header.js +3 -17
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/dist/components/Header/HeaderTop.d.ts +6 -2
- package/mobile/dist/components/Header/HeaderTop.js +15 -2
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- 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/ProductGallery/ProductGallery.js +4 -17
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- 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/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- 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/Heading/Heading.js +12 -11
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/headingTag.d.ts +2 -0
- package/mobile/dist/ui-kit/Heading/headingTag.js +13 -0
- package/mobile/dist/ui-kit/Heading/headingTag.js.map +1 -0
- 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/BaseTile/BaseTile.js +2 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/Blocks.js +10 -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/Header/Header.d.ts +2 -2
- package/mobile/lib/components/Header/Header.js +4 -18
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/lib/components/Header/HeaderTop.d.ts +6 -2
- package/mobile/lib/components/Header/HeaderTop.js +15 -2
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- 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/ProductGallery/ProductGallery.js +5 -18
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- 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/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- 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/Heading/Heading.js +12 -11
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/headingTag.d.ts +2 -0
- package/mobile/lib/ui-kit/Heading/headingTag.js +10 -0
- package/mobile/lib/ui-kit/Heading/headingTag.js.map +1 -0
- 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/BaseTile/BaseTile.tsx +6 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +10 -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/{src/components/ButtonBlock/ButtonBlock.tsx → mobile/src/components/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/Header/Header.tsx +19 -50
- package/mobile/src/components/Header/HeaderContent.ts +15 -1
- package/mobile/src/components/Header/HeaderTop.tsx +62 -25
- package/mobile/src/components/Headline/headlineVersionStyles.ts +6 -6
- 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/ProductGallery/ProductGallery.tsx +18 -59
- 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/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/icons/ChevronLeft.svg +3 -0
- package/mobile/src/icons/IconName.ts +5 -5
- 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/Heading/Heading.tsx +17 -16
- package/mobile/src/ui-kit/Heading/headingTag.ts +12 -0
- 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/BaseTile/BaseTile.tsx +6 -3
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +10 -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/{mobile/src/components/ButtonBlock/ButtonBlock.tsx → src/components/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/Header/Header.fixture.mobile.tsx +4 -0
- package/src/components/Header/Header.mobile.tsx +19 -50
- package/src/components/Header/HeaderContent.ts +15 -1
- package/src/components/Header/HeaderTop.tsx +62 -25
- package/src/components/Headline/headlineVersionStyles.ts +6 -6
- 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/ProductGallery/ProductGallery.fixture.mobile.tsx +142 -0
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +34 -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/content-page-repository/transformImg.ts +1 -1
- package/src/icons/ChevronLeft.svg +3 -0
- package/src/icons/IconName.ts +5 -1
- 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/Heading/Heading.fixture.mobile.tsx +6 -6
- package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
- package/src/ui-kit/Heading/Heading.tsx +8 -3
- package/src/ui-kit/Heading/headingTag.mobile.ts +12 -0
- package/src/ui-kit/Heading/headingTag.ts +3 -0
- package/src/ui-kit/Icon/IconProps.ts +9 -4
- package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
- package/tailwind.config.cjs +10 -4
- package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/bundle/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- 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/dist/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- package/dist/ui-kit/Heading/Heading.mobile.js +0 -18
- package/dist/ui-kit/Heading/Heading.mobile.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/lib/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- package/lib/ui-kit/Heading/Heading.mobile.js +0 -16
- package/lib/ui-kit/Heading/Heading.mobile.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/src/ui-kit/Heading/Heading.mobile.tsx +0 -22
- /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
|
@@ -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';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import { ProductGallery } from './ProductGallery';
|
|
5
|
+
|
|
6
|
+
const percentImage: Picture = {
|
|
7
|
+
src: '3-6-percent.png',
|
|
8
|
+
format: 'webp',
|
|
9
|
+
size: {
|
|
10
|
+
width: 338,
|
|
11
|
+
height: 420,
|
|
12
|
+
},
|
|
13
|
+
alt: 'Ставка от 3,6% годовых',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const creditCard: Picture = {
|
|
17
|
+
src: 'credit-card-1.png',
|
|
18
|
+
format: 'webp',
|
|
19
|
+
size: {
|
|
20
|
+
width: 280,
|
|
21
|
+
height: 280,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const items = [
|
|
26
|
+
'Потребительский кредит по специальной процентной ставке',
|
|
27
|
+
'Получите деньги без залога и поручительства',
|
|
28
|
+
'Кредитный лимит до 5 млн рублей',
|
|
29
|
+
];
|
|
30
|
+
const buttons: ButtonWithIconProps[] = [
|
|
31
|
+
{
|
|
32
|
+
href: 'https://rshb.ru',
|
|
33
|
+
text: 'Подробнее',
|
|
34
|
+
target: '_blank',
|
|
35
|
+
version: 'primary',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const buttonsSecondary: ButtonWithIconProps[] = [
|
|
40
|
+
{
|
|
41
|
+
href: 'https://rshb.ru',
|
|
42
|
+
text: 'Подробнее',
|
|
43
|
+
target: '_blank',
|
|
44
|
+
version: 'white',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
default: (
|
|
50
|
+
<div className="container grid grid-cols-12">
|
|
51
|
+
<ProductGallery
|
|
52
|
+
className="col-span-12"
|
|
53
|
+
slides={[
|
|
54
|
+
{
|
|
55
|
+
productBlock: {
|
|
56
|
+
title: 'Кредит по одному документу',
|
|
57
|
+
description: 'Ставка от 5,5% годовых',
|
|
58
|
+
headlineVersion: 'L',
|
|
59
|
+
items,
|
|
60
|
+
buttons,
|
|
61
|
+
image: percentImage,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
productBlock: {
|
|
66
|
+
title: 'Ставка от 12,5% годовых на срок до 3 лет!',
|
|
67
|
+
headlineVersion: 'L',
|
|
68
|
+
items,
|
|
69
|
+
buttons,
|
|
70
|
+
image: creditCard,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
productBlock: {
|
|
75
|
+
title: 'Дополнительные бонусные баллы за покупки!',
|
|
76
|
+
headlineVersion: 'L',
|
|
77
|
+
items,
|
|
78
|
+
buttons,
|
|
79
|
+
image: creditCard,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
productBlock: {
|
|
84
|
+
title: 'Карты Unionpay',
|
|
85
|
+
headlineVersion: 'L',
|
|
86
|
+
items,
|
|
87
|
+
buttons,
|
|
88
|
+
image: creditCard,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
]}
|
|
92
|
+
/>
|
|
93
|
+
</div>
|
|
94
|
+
),
|
|
95
|
+
primary: (
|
|
96
|
+
<div className="container grid grid-cols-12">
|
|
97
|
+
<ProductGallery
|
|
98
|
+
className="col-span-12"
|
|
99
|
+
version={'secondary'}
|
|
100
|
+
slides={[
|
|
101
|
+
{
|
|
102
|
+
productBlock: {
|
|
103
|
+
title: 'Кредит по одному документу',
|
|
104
|
+
description: 'Кредит наличными без залога и поручительства, только по паспорту',
|
|
105
|
+
headlineVersion: 'L',
|
|
106
|
+
items,
|
|
107
|
+
buttons: buttonsSecondary,
|
|
108
|
+
image: percentImage,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
productBlock: {
|
|
113
|
+
title: 'Ставка от 12,5% годовых на срок до 3 лет!',
|
|
114
|
+
headlineVersion: 'L',
|
|
115
|
+
items,
|
|
116
|
+
buttons: buttonsSecondary,
|
|
117
|
+
image: creditCard,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
productBlock: {
|
|
122
|
+
title: 'Дополнительные бонусные баллы за покупки!',
|
|
123
|
+
headlineVersion: 'L',
|
|
124
|
+
items,
|
|
125
|
+
buttons: buttonsSecondary,
|
|
126
|
+
image: creditCard,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
productBlock: {
|
|
131
|
+
title: 'Карты Unionpay',
|
|
132
|
+
headlineVersion: 'L',
|
|
133
|
+
items,
|
|
134
|
+
buttons: buttonsSecondary,
|
|
135
|
+
image: creditCard,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
]}
|
|
139
|
+
/>
|
|
140
|
+
</div>
|
|
141
|
+
),
|
|
142
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
5
|
+
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
6
|
+
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
|
|
7
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
8
|
+
|
|
9
|
+
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
10
|
+
|
|
11
|
+
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
12
|
+
({ className = '', slides = [], ...rest }) => {
|
|
13
|
+
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<BlockWrapper
|
|
17
|
+
className={`box-border py-6 overflow-hidden relative w-100 mb-6 ${className}`}
|
|
18
|
+
{...rest}
|
|
19
|
+
>
|
|
20
|
+
<SwipeListControl gap={0} padding={0}>
|
|
21
|
+
{galleryBlocks.map((_, i) => renderProductBlock({ ..._, ...rest }, i))}
|
|
22
|
+
</SwipeListControl>
|
|
23
|
+
</BlockWrapper>
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const renderProductBlock = (block: ProductBlockInnerContent, i: number) => (
|
|
29
|
+
<ProductBlockInner
|
|
30
|
+
key={String(i)}
|
|
31
|
+
className="z-10 px-5 group-data-secondary:text-white"
|
|
32
|
+
{...block}
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
@@ -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
|
+
);
|
|
@@ -77,7 +77,7 @@ const computeTransformationChain = ({
|
|
|
77
77
|
pipe(
|
|
78
78
|
resizeImg(isPictureSizeEmpty(size) ? containerSize : size),
|
|
79
79
|
alignImg({ containerSize, alignment }),
|
|
80
|
-
(_) => (format ? _.toFormat(format, options) : _),
|
|
80
|
+
(_) => (format ? _.toFormat(format, { ...options, nearLossless: true }) : _),
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
const pipe = (...operations: Array<(chain: Sharp) => Promise<Sharp> | Sharp>) =>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg title="Стрелка 'Вправо'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.7071 6.29289C15.0976 6.68342 15.0976 7.31658 14.7071 7.70711L10.4142 12L14.7071 16.2929C15.0976 16.6834 15.0976 17.3166 14.7071 17.7071C14.3166 18.0976 13.6834 18.0976 13.2929 17.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L13.2929 6.29289C13.6834 5.90237 14.3166 5.90237 14.7071 6.29289Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
package/src/icons/IconName.ts
CHANGED
|
@@ -8,6 +8,7 @@ export const IconsWithoutInversion = new Set([
|
|
|
8
8
|
'BriefcaseIcon',
|
|
9
9
|
'CardWithGemIcon',
|
|
10
10
|
'CarIcon',
|
|
11
|
+
'ChevronLeft',
|
|
11
12
|
'CinemaIcon',
|
|
12
13
|
'ClientIcon',
|
|
13
14
|
'ClockIcon',
|
|
@@ -77,6 +78,7 @@ export enum IconMap {
|
|
|
77
78
|
CardWithGemIcon = 'CardWithGemIcon',
|
|
78
79
|
CarIcon = 'CarIcon',
|
|
79
80
|
ChartSquareIcon = 'ChartSquareIcon',
|
|
81
|
+
ChevronLeft = 'ChevronLeft',
|
|
80
82
|
CinemaIcon = 'CinemaIcon',
|
|
81
83
|
ClientIcon = 'ClientIcon',
|
|
82
84
|
ClockIcon = 'ClockIcon',
|
|
@@ -190,6 +192,7 @@ export enum IconTitleMap {
|
|
|
190
192
|
CardWithGemIcon = 'Карта с драгоценностями',
|
|
191
193
|
CarIcon = 'Машина',
|
|
192
194
|
ChartSquareIcon = 'Деньги внутри кошелька',
|
|
195
|
+
ChevronLeft = "Стрелка 'Вправо'",
|
|
193
196
|
CinemaIcon = 'Кинотеатр',
|
|
194
197
|
ClientIcon = 'Клиент',
|
|
195
198
|
ClockIcon = 'Часы',
|
|
@@ -280,7 +283,7 @@ export enum IconTitleMap {
|
|
|
280
283
|
* @title Иконка
|
|
281
284
|
* @enumNames [
|
|
282
285
|
* "",
|
|
283
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
286
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Вправо\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
284
287
|
* ]
|
|
285
288
|
*/
|
|
286
289
|
export type IconName =
|
|
@@ -312,6 +315,7 @@ export type IconName =
|
|
|
312
315
|
| 'CardWithGemIcon'
|
|
313
316
|
| 'CarIcon'
|
|
314
317
|
| 'ChartSquareIcon'
|
|
318
|
+
| 'ChevronLeft'
|
|
315
319
|
| 'CinemaIcon'
|
|
316
320
|
| 'ClientIcon'
|
|
317
321
|
| 'ClockIcon'
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { IconVersion } from '../../model/IconVersion';
|
|
4
|
-
import { style } from '../../utils/style';
|
|
5
3
|
import { Img } from '../Img/Img';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
5
|
+
import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
|
|
6
|
+
import { labelSize } from './labelSize';
|
|
6
7
|
import { Paragraph } from '../Paragraph/Paragraph';
|
|
7
8
|
import { Text } from '../Text/Text';
|
|
8
|
-
import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
|
|
9
9
|
|
|
10
10
|
export interface BenefitGeneralProps extends BenefitItemProps, BenefitItemCommonProps {}
|
|
11
11
|
|
|
12
|
-
export const BenefitItem = JSX<BenefitGeneralProps>(
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export const BenefitItem = JSX<BenefitGeneralProps>((props) => {
|
|
13
|
+
const { className = '', icon, label, description, benefitsVersion = 'normal' } = props;
|
|
14
|
+
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div className={`flex gap-5 ${listItemAlign} ${className}`}>
|
|
15
18
|
{icon ? (
|
|
16
|
-
<div className={getBenefitIconBgStyle(
|
|
19
|
+
<div className={getBenefitIconBgStyle(benefitsVersion)}>
|
|
17
20
|
<Img
|
|
18
21
|
className="w-6 h-6"
|
|
19
22
|
image={{ ...icon, iconVersion: icon.iconVersion || benefitsVersion }}
|
|
20
23
|
/>
|
|
21
24
|
</div>
|
|
22
25
|
) : null}
|
|
23
|
-
<div>
|
|
26
|
+
<div className="gap-0.5">
|
|
24
27
|
{label ? (
|
|
25
|
-
<Text
|
|
28
|
+
<Text color="text-primary-text group-data-secondary:text-white" size={labelSize}>
|
|
26
29
|
{label}
|
|
27
30
|
</Text>
|
|
28
31
|
) : null}
|
|
29
32
|
{description ? (
|
|
30
33
|
<Paragraph
|
|
31
|
-
|
|
34
|
+
font="font-light"
|
|
35
|
+
size="text-m"
|
|
32
36
|
color="text-secondary-text group-data-secondary:text-white"
|
|
33
37
|
>
|
|
34
38
|
{description}
|
|
@@ -36,17 +40,17 @@ export const BenefitItem = JSX<BenefitGeneralProps>(
|
|
|
36
40
|
) : null}
|
|
37
41
|
</div>
|
|
38
42
|
</div>
|
|
39
|
-
)
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
function getBenefitIconBgStyle(version: BlockVersion, benefitsVersion: IconVersion) {
|
|
43
|
-
let bgColorStyle = 'bg-primary-main text-black';
|
|
43
|
+
);
|
|
44
|
+
});
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
function getBenefitIconBgStyle(benefitsVersion: IconVersion) {
|
|
47
|
+
const bgColorStyle =
|
|
48
|
+
benefitsVersion === 'normal'
|
|
49
|
+
? 'bg-secondary-light text-primary-main'
|
|
50
|
+
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
return style(
|
|
53
|
+
'w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon',
|
|
54
|
+
bgColorStyle,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const borderRadius = 'rounded-md';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const labelSize = 'text-l';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const labelSize = 'text-h6';
|
|
@@ -15,7 +15,13 @@ export const renderButtonsSection = (
|
|
|
15
15
|
{ className = '', buttonClassName, isVertical }: ButtonsSectionOptions = {},
|
|
16
16
|
) =>
|
|
17
17
|
buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (
|
|
18
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
className={style(
|
|
20
|
+
'flex',
|
|
21
|
+
isVertical ? 'flex-col gap-2 justify-items-stretch' : 'flex-wrap gap-4',
|
|
22
|
+
className,
|
|
23
|
+
)}
|
|
24
|
+
>
|
|
19
25
|
{buttons.map(renderButton(buttonClassName))}
|
|
20
26
|
</div>
|
|
21
27
|
) : null;
|
|
@@ -30,7 +36,7 @@ const renderButton =
|
|
|
30
36
|
return text || icon?.icon ? (
|
|
31
37
|
<Button
|
|
32
38
|
key={index ? String(index) : ''}
|
|
33
|
-
className={buttonClassName}
|
|
39
|
+
className={style('basis-full sm:basis-auto', buttonClassName)}
|
|
34
40
|
appendLeft={renderButtonIcon({ ...icon, iconVersion })}
|
|
35
41
|
appendRight={renderButtonIcon({ ...iconRight, iconVersion })}
|
|
36
42
|
version={version}
|
|
@@ -7,22 +7,22 @@ export default {
|
|
|
7
7
|
<div className="p-2 w-full h-full">
|
|
8
8
|
<div className="bg-slate-100 w-full h-full">
|
|
9
9
|
<div className="pb-3">
|
|
10
|
-
<Heading headingType="h1" title="Копите в нескольких валютах" />
|
|
10
|
+
<Heading headingType="h1" as="h1" title="Копите в нескольких валютах" />
|
|
11
11
|
</div>
|
|
12
12
|
<div className="pb-3">
|
|
13
|
-
<Heading headingType="h2" title="Копите в нескольких валютах" />
|
|
13
|
+
<Heading headingType="h2" as="h2" title="Копите в нескольких валютах" />
|
|
14
14
|
</div>
|
|
15
15
|
<div className="pb-3">
|
|
16
|
-
<Heading headingType="h3" title="Дополнительные документы" />
|
|
16
|
+
<Heading headingType="h3" as="h3" title="Дополнительные документы" />
|
|
17
17
|
</div>
|
|
18
18
|
<div className="pb-3">
|
|
19
|
-
<Heading headingType="h4" title="Вклады в любой валюте" />
|
|
19
|
+
<Heading headingType="h4" as="h4" title="Вклады в любой валюте" />
|
|
20
20
|
</div>
|
|
21
21
|
<div className="pb-3">
|
|
22
|
-
<Heading headingType="h5" title="Вклады в любой валюте" />
|
|
22
|
+
<Heading headingType="h5" as="h5" title="Вклады в любой валюте" />
|
|
23
23
|
</div>
|
|
24
24
|
<div className="pb-3">
|
|
25
|
-
<Heading headingType="h6" title="Вклады в любой валюте" />
|
|
25
|
+
<Heading headingType="h6" as="h6" title="Вклады в любой валюте" />
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -7,22 +7,22 @@ export default {
|
|
|
7
7
|
<div className="p-2 w-full h-full">
|
|
8
8
|
<div className="bg-slate-100 w-full h-full">
|
|
9
9
|
<div className="pb-3">
|
|
10
|
-
<Heading headingType="h1" title="«Своя» дебетовая карта" />
|
|
10
|
+
<Heading headingType="h1" as="h1" title="«Своя» дебетовая карта" />
|
|
11
11
|
</div>
|
|
12
12
|
<div className="pb-3">
|
|
13
|
-
<Heading headingType="h2" title="Рефинансирование кредитов" />
|
|
13
|
+
<Heading headingType="h2" as="h2" title="Рефинансирование кредитов" />
|
|
14
14
|
</div>
|
|
15
15
|
<div className="pb-3">
|
|
16
|
-
<Heading headingType="h3" title="Потребительский кредит" />
|
|
16
|
+
<Heading headingType="h3" as="h3" title="Потребительский кредит" />
|
|
17
17
|
</div>
|
|
18
18
|
<div className="pb-3">
|
|
19
|
-
<Heading headingType="h4" title="Курсы обмена валют" />
|
|
19
|
+
<Heading headingType="h4" as="h4" title="Курсы обмена валют" />
|
|
20
20
|
</div>
|
|
21
21
|
<div className="pb-3">
|
|
22
|
-
<Heading headingType="h5" title="Своё Родное" />
|
|
22
|
+
<Heading headingType="h5" as="h5" title="Своё Родное" />
|
|
23
23
|
</div>
|
|
24
24
|
<div className="pb-3">
|
|
25
|
-
<Heading headingType="h6" title="Своё Родное" />
|
|
25
|
+
<Heading headingType="h6" as="h6" title="Своё Родное" />
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { HeadingProps, HeadingType } from './HeadingProps';
|
|
3
|
+
import { headingTag } from './headingTag';
|
|
3
4
|
|
|
4
5
|
const styles: Record<HeadingType, string> = {
|
|
5
6
|
h0: 'text-h0', // 56
|
|
@@ -12,7 +13,11 @@ const styles: Record<HeadingType, string> = {
|
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
export const Heading = JSX<HeadingProps>(
|
|
15
|
-
({ className = '', headingType = 'h3', as
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
({ className = '', headingType = 'h3', as = 'h3', title, children }) => {
|
|
17
|
+
const Tag = headingTag(as);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Tag className={`font-sans m-0 ${styles[headingType]} ${className}`}>{title || children}</Tag>
|
|
21
|
+
);
|
|
22
|
+
},
|
|
18
23
|
);
|