@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
|
@@ -1,78 +1,47 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
4
2
|
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
5
3
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
6
4
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
7
5
|
import type { Fallback } from '../../model/Fallback';
|
|
8
6
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
9
7
|
import { projectSettings } from '../../ProjectSettings';
|
|
10
|
-
import { findActiveSubItem } from '../../services/sitemap/findActiveSubItem';
|
|
11
|
-
import { isTopItemActive } from '../../services/sitemap/isTopItemActive';
|
|
12
8
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
13
9
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
14
|
-
import { HeaderItem } from '../../ui-kit/HeaderItem/HeaderItem';
|
|
15
|
-
import { LinkList } from '../../ui-kit/LinkList/LinkList';
|
|
16
|
-
import { RollupItem } from '../RollupItem/RollupItem';
|
|
17
|
-
import { HeaderBurger } from './HeaderBurger';
|
|
18
|
-
import type { HeaderContent } from './HeaderContent';
|
|
19
10
|
import { HeaderTop } from './HeaderTop';
|
|
11
|
+
import type { HeaderContent } from './HeaderContent';
|
|
20
12
|
|
|
21
|
-
export interface
|
|
13
|
+
export interface HeaderMobileProps extends HeaderContent, UniBlockProps {}
|
|
22
14
|
|
|
23
15
|
const BG_COLOR_TO_BLOCK_VERSION: Record<BgColorVersion, BlockVersion> = {
|
|
24
16
|
'bg-white': 'primary',
|
|
25
17
|
transparent: 'transparent',
|
|
26
18
|
};
|
|
27
19
|
|
|
28
|
-
export const Header = JSX<
|
|
29
|
-
({
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
export const Header = JSX<HeaderMobileProps>(
|
|
21
|
+
({
|
|
22
|
+
bgColor = 'bg-white',
|
|
23
|
+
version = BG_COLOR_TO_BLOCK_VERSION[bgColor],
|
|
24
|
+
mobileHeaderType = 'none',
|
|
25
|
+
...rest
|
|
26
|
+
}) => {
|
|
32
27
|
const fallback: Fallback | undefined = rest.options?.page?.fallback;
|
|
33
|
-
const {
|
|
28
|
+
const { logo, internetBankUrl } = useSWRResource<SitemapData>(
|
|
34
29
|
projectSettings.SITEMAP || 'sitemap',
|
|
35
30
|
fallback,
|
|
36
31
|
);
|
|
37
32
|
|
|
38
|
-
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
39
|
-
const subItems = activeTopItem?.items;
|
|
40
|
-
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
41
|
-
const [burgerMenuShow, setBurgerMenuShow] = useState(false);
|
|
42
|
-
const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
|
|
43
|
-
|
|
44
33
|
return (
|
|
45
34
|
<BlockWrapper tag="header" version={version} {...rest}>
|
|
46
|
-
<div className="container px-4 py-
|
|
47
|
-
<HeaderTop
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{..._}
|
|
56
|
-
/>
|
|
57
|
-
))}
|
|
58
|
-
</div>
|
|
59
|
-
</nav>
|
|
35
|
+
<div className="container px-4 py-1 box-border">
|
|
36
|
+
<HeaderTop
|
|
37
|
+
bgColor={bgColor}
|
|
38
|
+
logo={logo}
|
|
39
|
+
internetBankUrl={internetBankUrl}
|
|
40
|
+
version={version}
|
|
41
|
+
mobileHeaderType={mobileHeaderType}
|
|
42
|
+
{...rest}
|
|
43
|
+
/>
|
|
60
44
|
</div>
|
|
61
|
-
{burgerMenuShow ? (
|
|
62
|
-
<HeaderBurger
|
|
63
|
-
onClick={handleBurgerMenuShow}
|
|
64
|
-
burgerSubMenu={dispositions}
|
|
65
|
-
defaultLocation={defaultLocation}
|
|
66
|
-
>
|
|
67
|
-
<div className="list-none m-0 p-0">
|
|
68
|
-
{topItems?.map((item, i) => (
|
|
69
|
-
<RollupItem key={String(i)} label={item.text}>
|
|
70
|
-
<LinkList className="mt-2.5" items={item.items} />
|
|
71
|
-
</RollupItem>
|
|
72
|
-
))}
|
|
73
|
-
</div>
|
|
74
|
-
</HeaderBurger>
|
|
75
|
-
) : null}
|
|
76
45
|
</BlockWrapper>
|
|
77
46
|
);
|
|
78
47
|
},
|
|
@@ -25,10 +25,24 @@ export type Logo = ImageContent & {
|
|
|
25
25
|
title?: string;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* @title Мобильный тип шапки
|
|
30
|
+
* @enumNames ["Не выбрано", "Название", "Кнопка возврата"]
|
|
31
|
+
*/
|
|
32
|
+
export type MobileHeaderType = 'none' | 'withTitle' | 'backwardButton';
|
|
33
|
+
|
|
34
|
+
export interface MobileHeaderProps {
|
|
35
|
+
mobileHeaderType?: MobileHeaderType;
|
|
36
|
+
/** @title Название (мобильная версия) */
|
|
37
|
+
mobileTitle?: string;
|
|
38
|
+
/** @title Кнопка возврата (мобильная версия) */
|
|
39
|
+
mobileBackwardButtonTitle?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
28
42
|
/**
|
|
29
43
|
* @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
|
|
30
44
|
*/
|
|
31
|
-
export interface HeaderContent {
|
|
45
|
+
export interface HeaderContent extends MobileHeaderProps {
|
|
32
46
|
/** @hidden */
|
|
33
47
|
showSubMenu?: boolean;
|
|
34
48
|
/** @hidden */
|
|
@@ -1,34 +1,71 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
3
3
|
import type { LogoType } from '../../model/LogoType';
|
|
4
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
5
4
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
5
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
7
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
8
|
+
import type { MobileHeaderProps, MobileHeaderType } from './HeaderContent';
|
|
9
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
6
10
|
|
|
7
|
-
export interface HeaderTopProps {
|
|
8
|
-
onClick: () => void;
|
|
11
|
+
export interface HeaderTopProps extends MobileHeaderProps {
|
|
9
12
|
bgColor?: BgColorVersion;
|
|
10
13
|
logo?: LogoType;
|
|
14
|
+
internetBankUrl?: string;
|
|
15
|
+
version?: BlockVersion;
|
|
16
|
+
mobileHeaderType?: MobileHeaderType;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
const BUTTON_STYLE = {
|
|
20
|
+
default: 'px-5 bg-main-divider rounded hover:text-primary-main',
|
|
21
|
+
transparent: 'text-white hover:text-primary-hover',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const HeaderTop = JSX<HeaderTopProps>(
|
|
25
|
+
({
|
|
26
|
+
bgColor,
|
|
27
|
+
logo,
|
|
28
|
+
internetBankUrl,
|
|
29
|
+
version,
|
|
30
|
+
mobileHeaderType,
|
|
31
|
+
mobileTitle,
|
|
32
|
+
mobileBackwardButtonTitle,
|
|
33
|
+
}) => {
|
|
34
|
+
const isTypeNone = mobileHeaderType === 'none';
|
|
35
|
+
const isTypeWithTitle = mobileHeaderType === 'withTitle';
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div className="flex items-center justify-between w-full">
|
|
39
|
+
{isTypeNone || isTypeWithTitle ? (
|
|
40
|
+
<Logo bgColor={bgColor} logo={logo} showTitle={isTypeNone} />
|
|
41
|
+
) : null}
|
|
42
|
+
{isTypeWithTitle ? mobileTitle : null}
|
|
43
|
+
{mobileHeaderType === 'backwardButton' ? (
|
|
44
|
+
<Button className="flex items-center text-l">
|
|
45
|
+
<Img
|
|
46
|
+
className="w-6 h-6"
|
|
47
|
+
image={{
|
|
48
|
+
icon: 'ChevronLeft',
|
|
49
|
+
iconVersion: 'black',
|
|
50
|
+
}}
|
|
51
|
+
/>
|
|
52
|
+
{mobileBackwardButtonTitle}
|
|
53
|
+
</Button>
|
|
54
|
+
) : null}
|
|
55
|
+
{internetBankUrl ? (
|
|
56
|
+
<Button
|
|
57
|
+
href={internetBankUrl}
|
|
58
|
+
ariaLabel="Войти"
|
|
59
|
+
target="_blank"
|
|
60
|
+
className={style(
|
|
61
|
+
'p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover',
|
|
62
|
+
BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default'],
|
|
63
|
+
)}
|
|
64
|
+
>
|
|
65
|
+
Войти
|
|
66
|
+
</Button>
|
|
67
|
+
) : null}
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
70
|
+
},
|
|
71
|
+
);
|
|
@@ -13,32 +13,32 @@ export const headlineVersionStyles: Record<
|
|
|
13
13
|
XXL: {
|
|
14
14
|
title: { headingType: 'h0', as: 'h1' },
|
|
15
15
|
descriptionSize: 'text-h5',
|
|
16
|
-
descriptionStyle: 'mt-
|
|
16
|
+
descriptionStyle: 'mt-headline-xxl',
|
|
17
17
|
},
|
|
18
18
|
XL: {
|
|
19
19
|
title: { headingType: 'h1', as: 'h1' },
|
|
20
20
|
descriptionSize: 'text-xl-light',
|
|
21
|
-
descriptionStyle: 'mt-
|
|
21
|
+
descriptionStyle: 'mt-headline-l',
|
|
22
22
|
},
|
|
23
23
|
L: {
|
|
24
24
|
title: { headingType: 'h2', as: 'h2' },
|
|
25
25
|
descriptionSize: 'text-xl-light',
|
|
26
|
-
descriptionStyle: 'mt-
|
|
26
|
+
descriptionStyle: 'mt-headline-l',
|
|
27
27
|
},
|
|
28
28
|
M: {
|
|
29
29
|
title: { headingType: 'h3', as: 'h3' },
|
|
30
30
|
descriptionSize: 'text-xl-light',
|
|
31
|
-
descriptionStyle: 'mt-
|
|
31
|
+
descriptionStyle: 'mt-headline-m',
|
|
32
32
|
},
|
|
33
33
|
S: {
|
|
34
34
|
title: { headingType: 'h4', as: 'h4' },
|
|
35
35
|
descriptionSize: 'text-xl-light',
|
|
36
|
-
descriptionStyle: 'mt-
|
|
36
|
+
descriptionStyle: 'mt-headline-s',
|
|
37
37
|
},
|
|
38
38
|
XS: {
|
|
39
39
|
title: { headingType: 'h5', as: 'h5' },
|
|
40
40
|
descriptionSize: 'text-l-light',
|
|
41
|
-
descriptionStyle: 'mt-
|
|
41
|
+
descriptionStyle: 'mt-headline-s',
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -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,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';
|
|
@@ -1,75 +1,34 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import {
|
|
4
|
+
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
5
|
+
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
6
6
|
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
|
|
7
|
-
import type { ProductGalleryContent
|
|
7
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
8
8
|
|
|
9
9
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
10
10
|
|
|
11
11
|
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
12
12
|
({ className = '', slides = [], ...rest }) => {
|
|
13
|
-
const
|
|
13
|
+
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<BlockWrapper
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<div key={String(i)} className="box-border grow-0 shrink-0 basis-full" role="listitem">
|
|
24
|
-
<ProductBlockInner
|
|
25
|
-
className="pl-default h-full"
|
|
26
|
-
headlineVersion="XXL"
|
|
27
|
-
{...productBlock}
|
|
28
|
-
{...rest}
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
))}
|
|
32
|
-
</div>
|
|
33
|
-
<div className="h-28 px-6 mt-6 -mb-6 flex items-center gap-2 box-border">
|
|
34
|
-
{slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex }))}
|
|
35
|
-
</div>
|
|
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>
|
|
36
23
|
</BlockWrapper>
|
|
37
24
|
);
|
|
38
25
|
},
|
|
39
26
|
);
|
|
40
27
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
({ nav }: ProductSlide, i: number) => {
|
|
49
|
-
const isActive = i === activeSlideIndex;
|
|
50
|
-
const btnClassName = isActive
|
|
51
|
-
? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
|
|
52
|
-
: 'min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur';
|
|
53
|
-
const btnTitleClassName = isActive
|
|
54
|
-
? 'text-primary-text text-h6 py-2'
|
|
55
|
-
: 'text-l pb-1 text-secondary-text group-data-secondary:text-white';
|
|
56
|
-
const btnDescClassName = isActive
|
|
57
|
-
? 'text-secondary-text text-l-light'
|
|
58
|
-
: 'text-m-light text-secondary-text group-data-secondary:text-white/80';
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<button
|
|
62
|
-
type="button"
|
|
63
|
-
key={String(i)}
|
|
64
|
-
onClick={() => onClick(i)}
|
|
65
|
-
aria-label={nav?.title}
|
|
66
|
-
className={style(
|
|
67
|
-
'relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50',
|
|
68
|
-
btnClassName,
|
|
69
|
-
)}
|
|
70
|
-
>
|
|
71
|
-
<div className={btnTitleClassName}>{nav?.title}</div>
|
|
72
|
-
<div className={btnDescClassName}>{nav?.description}</div>
|
|
73
|
-
</button>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
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
|
+
);
|
|
@@ -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>
|