@redneckz/wildless-cms-uni-blocks 0.6.45 → 0.6.46
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.6.43.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +152 -138
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Headline/HeadlineContent.d.ts +2 -2
- package/bundle/components/Headline/headlineStyles.d.ts +7 -0
- package/bundle/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/bundle/model/AlignText.d.ts +2 -1
- package/bundle/model/BlockVersion.d.ts +3 -0
- package/bundle/ui-kit/Img/ImgProps.d.ts +1 -0
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/dist/components/Blocks.js +5 -3
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +1 -1
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Headline/Headline.js +7 -6
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +5 -5
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/dist/components/Headline/headlineStyles.d.ts +7 -0
- package/dist/components/Headline/headlineStyles.js +18 -0
- package/dist/components/Headline/headlineStyles.js.map +1 -0
- package/dist/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/dist/components/Headline/headlineVersionStyles.js +46 -0
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.js +23 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +3 -16
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/model/AlignText.d.ts +2 -1
- package/dist/model/AlignText.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +3 -0
- package/dist/model/BlockVersion.js +15 -1
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/services/BlockRouter/BlockRouter.js +4 -3
- package/dist/services/BlockRouter/BlockRouter.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +9 -3
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/Img/ImgInner.js +2 -2
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/dist/ui-kit/Location/Location.js +2 -2
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js +1 -5
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +5 -3
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +1 -1
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Headline/Headline.js +7 -6
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +5 -5
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/lib/components/Headline/headlineStyles.d.ts +7 -0
- package/lib/components/Headline/headlineStyles.js +16 -0
- package/lib/components/Headline/headlineStyles.js.map +1 -0
- package/lib/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/lib/components/Headline/headlineVersionStyles.js +44 -0
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +11 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.js +21 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +3 -16
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/model/AlignText.d.ts +2 -1
- package/lib/model/AlignText.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +3 -0
- package/lib/model/BlockVersion.js +14 -0
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/services/BlockRouter/BlockRouter.js +4 -3
- package/lib/services/BlockRouter/BlockRouter.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +9 -3
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/Img/ImgInner.js +2 -2
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/lib/ui-kit/Location/Location.js +2 -2
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js +1 -5
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +29 -34
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/bundle/components/Headline/headlineStyles.d.ts +7 -0
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/mobile/bundle/model/AlignText.d.ts +2 -1
- package/mobile/bundle/model/BlockVersion.d.ts +3 -0
- package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +5 -5
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/dist/components/Headline/headlineStyles.d.ts +7 -0
- package/mobile/dist/components/Headline/headlineStyles.js +18 -0
- package/mobile/dist/components/Headline/headlineStyles.js.map +1 -0
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/mobile/dist/components/Headline/headlineVersionStyles.js +46 -0
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +23 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -16
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/model/AlignText.d.ts +2 -1
- package/mobile/dist/model/AlignText.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +3 -0
- package/mobile/dist/model/BlockVersion.js +15 -1
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/services/BlockRouter/BlockRouter.js +4 -3
- package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +9 -3
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js +2 -2
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Location/Location.js +2 -2
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +1 -5
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +5 -5
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/lib/components/Headline/headlineStyles.d.ts +7 -0
- package/mobile/lib/components/Headline/headlineStyles.js +16 -0
- package/mobile/lib/components/Headline/headlineStyles.js.map +1 -0
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +9 -0
- package/mobile/lib/components/Headline/headlineVersionStyles.js +44 -0
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +21 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -16
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/model/AlignText.d.ts +2 -1
- package/mobile/lib/model/AlignText.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +3 -0
- package/mobile/lib/model/BlockVersion.js +14 -0
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/services/BlockRouter/BlockRouter.js +4 -3
- package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +9 -3
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js +2 -2
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Location/Location.js +2 -2
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +1 -5
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +0 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -7
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/Catalog/Catalog.tsx +0 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +0 -1
- package/mobile/src/components/Headline/Headline.tsx +10 -13
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -2
- package/mobile/src/components/Headline/headlineStyles.ts +25 -0
- package/mobile/src/components/Headline/headlineVersionStyles.ts +55 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +19 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +42 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.ui.json +1 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +17 -0
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -3
- package/mobile/src/components/PictureText/PictureText.tsx +0 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
- package/mobile/src/model/AlignText.ts +2 -1
- package/mobile/src/model/BlockVersion.ts +18 -0
- package/mobile/src/services/BlockRouter/BlockRouter.ts +5 -3
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +17 -3
- package/mobile/src/ui-kit/Img/ImgInner.tsx +2 -1
- package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
- package/mobile/src/ui-kit/Location/Location.tsx +7 -5
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
- package/mobile/src/ui-kit/Text/TextProps.ts +1 -0
- package/package.json +1 -1
- package/src/components/Blocks.ts +5 -3
- package/src/components/Bonus/Bonus.tsx +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -7
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/Catalog/Catalog.tsx +0 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +0 -1
- package/src/components/Headline/Headline.fixture.mobile.tsx +10 -10
- package/src/components/Headline/Headline.fixture.tsx +7 -7
- package/src/components/Headline/Headline.mobile.tsx +10 -13
- package/src/components/Headline/Headline.tsx +18 -12
- package/src/components/Headline/HeadlineContent.ts +2 -2
- package/src/components/Headline/headlineStyles.ts +25 -0
- package/src/components/Headline/headlineVersionStyles.ts +55 -0
- package/src/components/HorizontalLayout/HorizontalLayout.example.json +19 -0
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +85 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +42 -0
- package/src/components/HorizontalLayout/HorizontalLayout.ui.json +1 -0
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +17 -0
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +3 -3
- package/src/components/PictureText/PictureText.tsx +0 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductTile/ProductTile.tsx +1 -1
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
- package/src/model/AlignText.ts +2 -1
- package/src/model/BlockVersion.ts +18 -0
- package/src/services/BlockRouter/BlockRouter.ts +5 -3
- package/src/ui-kit/Img/ImgAsPicture.tsx +17 -3
- package/src/ui-kit/Img/ImgInner.tsx +2 -1
- package/src/ui-kit/Img/ImgProps.ts +1 -0
- package/src/ui-kit/Location/Location.tsx +7 -5
- package/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
- package/src/ui-kit/Text/TextProps.ts +1 -0
- package/bundle/components/Headline/constants.d.ts +0 -18
- package/dist/components/Headline/constants.d.ts +0 -18
- package/dist/components/Headline/constants.js +0 -68
- package/dist/components/Headline/constants.js.map +0 -1
- package/lib/components/Headline/constants.d.ts +0 -18
- package/lib/components/Headline/constants.js +0 -66
- package/lib/components/Headline/constants.js.map +0 -1
- package/mobile/bundle/components/Headline/constants.d.ts +0 -18
- package/mobile/dist/components/Headline/constants.d.ts +0 -18
- package/mobile/dist/components/Headline/constants.js +0 -68
- package/mobile/dist/components/Headline/constants.js.map +0 -1
- package/mobile/lib/components/Headline/constants.d.ts +0 -18
- package/mobile/lib/components/Headline/constants.js +0 -66
- package/mobile/lib/components/Headline/constants.js.map +0 -1
- package/mobile/src/components/Headline/constants.ts +0 -84
- package/src/components/Headline/constants.ts +0 -84
package/bundle/bundle.umd.js
CHANGED
|
@@ -343,6 +343,7 @@
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
const normalizeAnchor = (rawAnchor) => rawAnchor?.replace('#', '');
|
|
346
|
+
const getURLWithAnchor = (rawAnchor) => `${globalThis.location?.pathname}#${normalizeAnchor(rawAnchor)}`;
|
|
346
347
|
class BlockRouter {
|
|
347
348
|
static inst = new BlockRouter();
|
|
348
349
|
eventBus = new EventBus();
|
|
@@ -360,13 +361,13 @@
|
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
push(rawAnchor) {
|
|
363
|
-
globalThis.history?.pushState(null, '',
|
|
364
|
+
globalThis.history?.pushState(null, '', getURLWithAnchor(rawAnchor));
|
|
364
365
|
}
|
|
365
366
|
replace(rawAnchor) {
|
|
366
|
-
globalThis.history?.replaceState(null, '',
|
|
367
|
+
globalThis.history?.replaceState(null, '', getURLWithAnchor(rawAnchor));
|
|
367
368
|
}
|
|
368
369
|
reset() {
|
|
369
|
-
globalThis.history?.replaceState(null, '',
|
|
370
|
+
globalThis.history?.replaceState(null, '', getURLWithAnchor());
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
|
|
@@ -422,11 +423,7 @@
|
|
|
422
423
|
return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
423
424
|
});
|
|
424
425
|
|
|
425
|
-
const Paragraph = JSX((
|
|
426
|
-
const { size = '', color = '', align = '', font = '', children } = props;
|
|
427
|
-
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
428
|
-
return jsx("p", { className: textClasses, children: children });
|
|
429
|
-
});
|
|
426
|
+
const Paragraph = JSX(({ size, color, align, font, children }) => (jsx("p", { className: ['font-sans', size, color, align, font].filter(Boolean).join(' '), children: children })));
|
|
430
427
|
|
|
431
428
|
const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
|
|
432
429
|
|
|
@@ -487,16 +484,17 @@
|
|
|
487
484
|
}
|
|
488
485
|
return 0;
|
|
489
486
|
};
|
|
490
|
-
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
487
|
+
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false, pathPrefix = '' }) => {
|
|
491
488
|
if (!image || (!image?.sources && !image?.src)) {
|
|
492
489
|
return null;
|
|
493
490
|
}
|
|
494
491
|
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
492
|
+
const normalizedPathPrefix = normalizePathPrefix(pathPrefix);
|
|
495
493
|
return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
|
|
496
494
|
? image.sources
|
|
497
495
|
.sort(sourcesComparator)
|
|
498
|
-
.map(({ src, format, media }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
499
|
-
: null, renderImg(image, imageClassName, isMobile)] }));
|
|
496
|
+
.map(({ src, format, media }, index) => (jsx("source", { srcSet: addPathPrefixToSrcSet(src, normalizedPathPrefix), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
497
|
+
: null, renderImg({ ...image, src: `${normalizedPathPrefix}${image.src}` }, imageClassName, isMobile)] }));
|
|
500
498
|
});
|
|
501
499
|
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
502
500
|
const style = {
|
|
@@ -508,11 +506,16 @@
|
|
|
508
506
|
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
509
507
|
return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
510
508
|
};
|
|
509
|
+
const normalizePathPrefix = (pathPrefix = '') => pathPrefix && !pathPrefix.endsWith('/') ? `${pathPrefix}/` : pathPrefix;
|
|
510
|
+
const addPathPrefixToSrcSet = (srcset = '', pathPrefix = '') => srcset
|
|
511
|
+
.split(',')
|
|
512
|
+
.map((src) => `${pathPrefix}${src.trim()}`)
|
|
513
|
+
.join(', ');
|
|
511
514
|
function formatToMimeType(format) {
|
|
512
515
|
return format ? `image/${String(format)}` : undefined;
|
|
513
516
|
}
|
|
514
517
|
|
|
515
|
-
const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
518
|
+
const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
|
|
516
519
|
if (!image) {
|
|
517
520
|
return null;
|
|
518
521
|
}
|
|
@@ -521,7 +524,7 @@
|
|
|
521
524
|
if (icon || icon === '') {
|
|
522
525
|
return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
|
|
523
526
|
}
|
|
524
|
-
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
|
|
527
|
+
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile, pathPrefix: pathPrefix }));
|
|
525
528
|
});
|
|
526
529
|
|
|
527
530
|
const Text = JSX(({ size, color, align, font, children }) => (jsx("span", { className: ['font-sans', size, color, align, font].filter(Boolean).join(' '), children: children })));
|
|
@@ -539,6 +542,20 @@
|
|
|
539
542
|
primary: 'text-secondary-text',
|
|
540
543
|
secondary: 'text-white',
|
|
541
544
|
};
|
|
545
|
+
const GapStyleMap = {
|
|
546
|
+
XXL: 'gap-12',
|
|
547
|
+
XL: 'gap-10',
|
|
548
|
+
L: 'gap-8',
|
|
549
|
+
M: 'gap-4',
|
|
550
|
+
S: 'gap-2',
|
|
551
|
+
XS: 'gap-1',
|
|
552
|
+
'': '',
|
|
553
|
+
};
|
|
554
|
+
const LayoutBackgroundStyleMap = {
|
|
555
|
+
transparent: '',
|
|
556
|
+
primary: 'bg-white',
|
|
557
|
+
secondary: 'bg-primary-main',
|
|
558
|
+
};
|
|
542
559
|
|
|
543
560
|
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
544
561
|
...icon,
|
|
@@ -759,61 +776,55 @@
|
|
|
759
776
|
return jsx(ImgInner, { image: { ...icon }, width: iconWidth, height: "24", asSVG: true });
|
|
760
777
|
};
|
|
761
778
|
|
|
762
|
-
const
|
|
779
|
+
const headlineStyles = {
|
|
763
780
|
transparent: {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
description: 'text-primary-text',
|
|
781
|
+
wrapper: 'bg-transparent',
|
|
782
|
+
titleColor: 'text-primary-text',
|
|
767
783
|
},
|
|
768
784
|
primary: {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
description: 'text-primary-text',
|
|
785
|
+
wrapper: 'bg-white',
|
|
786
|
+
titleColor: 'text-primary-text',
|
|
772
787
|
},
|
|
773
788
|
secondary: {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
789
|
+
wrapper: 'bg-primary-main',
|
|
790
|
+
titleColor: 'text-white',
|
|
791
|
+
descriptionColor: 'text-white/80',
|
|
777
792
|
},
|
|
778
793
|
};
|
|
779
|
-
|
|
794
|
+
|
|
795
|
+
const headlineVersionStyles = {
|
|
780
796
|
XXL: {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
as: 'h1',
|
|
797
|
+
wrapper: 'gap-[18px]',
|
|
798
|
+
title: { headingType: 'h0', as: 'h1' },
|
|
799
|
+
descriptionSize: 'text-h5',
|
|
785
800
|
},
|
|
786
801
|
XL: {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
as: 'h1',
|
|
802
|
+
wrapper: 'gap-4',
|
|
803
|
+
title: { headingType: 'h1', as: 'h1' },
|
|
804
|
+
descriptionSize: 'text-xl-light',
|
|
791
805
|
},
|
|
792
806
|
L: {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
as: 'h2',
|
|
807
|
+
wrapper: 'gap-4',
|
|
808
|
+
title: { headingType: 'h2', as: 'h2' },
|
|
809
|
+
descriptionSize: 'text-xl-light',
|
|
797
810
|
},
|
|
798
811
|
M: {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
as: 'h3',
|
|
812
|
+
wrapper: 'gap-3',
|
|
813
|
+
title: { headingType: 'h3', as: 'h3' },
|
|
814
|
+
descriptionSize: 'text-xl-light',
|
|
803
815
|
},
|
|
804
816
|
S: {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
as: 'h4',
|
|
817
|
+
wrapper: 'gap-2',
|
|
818
|
+
title: { headingType: 'h4', as: 'h4' },
|
|
819
|
+
descriptionSize: 'text-xl-light',
|
|
809
820
|
},
|
|
810
821
|
XS: {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
as: 'h5',
|
|
822
|
+
wrapper: 'gap-2',
|
|
823
|
+
title: { headingType: 'h5', as: 'h5' },
|
|
824
|
+
descriptionSize: 'text-l-light',
|
|
815
825
|
},
|
|
816
826
|
};
|
|
827
|
+
// TODO Move to Gallery and rename
|
|
817
828
|
const HEADLINE_SMALL_VERSION = {
|
|
818
829
|
H6: 'text-h6',
|
|
819
830
|
XL_L: 'text-xl-light',
|
|
@@ -825,15 +836,15 @@
|
|
|
825
836
|
XS: 'text-xs-light',
|
|
826
837
|
};
|
|
827
838
|
|
|
828
|
-
const Headline = JSX(({ className = '',
|
|
829
|
-
const
|
|
830
|
-
const
|
|
831
|
-
return (jsxs(BlockWrapper, { className: `
|
|
839
|
+
const Headline = JSX(({ className = '', title, description, headlineVersion = 'XL', bgColorHeadline = 'transparent', align = 'text-center', as, ...rest }) => {
|
|
840
|
+
const style = headlineStyles[bgColorHeadline];
|
|
841
|
+
const specificStyle = headlineVersionStyles[headlineVersion];
|
|
842
|
+
return (jsxs(BlockWrapper, { className: `flex flex-col p-12 ${specificStyle.wrapper} ${style.wrapper} ${className}`, ...rest, children: [title ? (jsx(Heading, { className: `whitespace-pre-wrap ${style.titleColor} ${align}`, ...specificStyle?.title, as: as || specificStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: style.descriptionColor || style.titleColor, size: specificStyle.descriptionSize, align: align, children: description })) : null] }));
|
|
832
843
|
});
|
|
833
844
|
|
|
834
845
|
const Bonus = JSX((props) => {
|
|
835
846
|
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
836
|
-
return (jsx(BlockWrapper, { className: `font-sans bg-white p-12 pb-9 ${className}`, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M",
|
|
847
|
+
return (jsx(BlockWrapper, { className: `font-sans bg-white p-12 pb-9 ${className}`, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", ...rest }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
837
848
|
? bonusItems.map((_, i) => {
|
|
838
849
|
return (jsx("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "flex flex-col justify-between mr-4", children: [jsxs("div", { children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? jsx(ButtonSection, { buttons: _?.buttons }) : null] }), _.bonusItemContent?.bonusType
|
|
839
850
|
? renderBonusItemContent(_.bonusItemContent)
|
|
@@ -847,7 +858,7 @@
|
|
|
847
858
|
const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
|
|
848
859
|
const renderBonusImage = (_) => _.image ? jsx(ImgInner, { className: `w-12 h-12 min-w-12 p-3 rounded-full`, image: _.image }) : null;
|
|
849
860
|
|
|
850
|
-
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M",
|
|
861
|
+
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M", ...rest }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
851
862
|
const renderBonusBenefit = ({ icon, label, description }, i) => {
|
|
852
863
|
return (jsxs("div", { className: "flex flex-col items-center text-h6", children: [description ? jsx("span", { children: description }) : null, icon ? jsx(ImgInner, { image: icon, height: "180", width: "auto", className: "h-[180px] w-auto" }) : null, jsx("div", { children: label ? jsx("span", { children: label }) : null })] }, String(i)));
|
|
853
864
|
};
|
|
@@ -1576,7 +1587,7 @@
|
|
|
1576
1587
|
normal: 'min-w-[1007px]',
|
|
1577
1588
|
mini: 'min-w-[355px]',
|
|
1578
1589
|
};
|
|
1579
|
-
const CarouselCard = JSX(({ className = '', button, description, title, version = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M"
|
|
1590
|
+
const CarouselCard = JSX(({ className = '', button, description, title, version = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" }), button ? jsx("div", { className: "mt-6", children: renderButton({ button }) }) : null] })] }) })));
|
|
1580
1591
|
|
|
1581
1592
|
const cardStyleMap$2 = {
|
|
1582
1593
|
black: 'bg-black',
|
|
@@ -1626,7 +1637,7 @@
|
|
|
1626
1637
|
|
|
1627
1638
|
const MAX_LINKS_COUNT = 12;
|
|
1628
1639
|
const CarouselLinks = JSX(({ className = '', additionalDescription, description, links, title, ...rest }) => {
|
|
1629
|
-
return (jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [jsx(Headline, { title: title, as: "h1", description: description, align: "left", className: "p-0", bgColorHeadline: "secondary" }), additionalDescription ? (jsx("div", { className: "pt-6", children: jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
1640
|
+
return (jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [jsx(Headline, { title: title, as: "h1", description: description, align: "text-left", className: "p-0", bgColorHeadline: "secondary" }), additionalDescription ? (jsx("div", { className: "pt-6", children: jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
1630
1641
|
});
|
|
1631
1642
|
const renderLinks = (links) => {
|
|
1632
1643
|
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
@@ -1694,6 +1705,58 @@
|
|
|
1694
1705
|
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans border border-main-stroke flex min-w-[536px] ${VersionStyleMap[version]} ${className}`, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-end", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$2) }) : null] })] })));
|
|
1695
1706
|
const renderList$2 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
1696
1707
|
|
|
1708
|
+
const ICONS_MAP = [
|
|
1709
|
+
{
|
|
1710
|
+
origins: ['t.me', 'telegram.org'],
|
|
1711
|
+
icon: { icon: 'TelegramIcon' },
|
|
1712
|
+
label: 'Телеграм',
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
origins: ['vk.com'],
|
|
1716
|
+
icon: { icon: 'VKIcon' },
|
|
1717
|
+
label: 'ВКонтакте',
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
origins: ['ok.ru'],
|
|
1721
|
+
icon: { icon: 'OkIcon' },
|
|
1722
|
+
label: 'Одноклассники',
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
origins: ['apps.apple.com'],
|
|
1726
|
+
icon: { icon: 'AppleIcon' },
|
|
1727
|
+
label: 'App Store',
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
origins: ['play.google.com'],
|
|
1731
|
+
icon: { icon: 'PlayMarketIcon' },
|
|
1732
|
+
label: 'Google Play',
|
|
1733
|
+
},
|
|
1734
|
+
];
|
|
1735
|
+
const MediaButton = JSX(({ version = 'primary', ...rest }) => {
|
|
1736
|
+
const link = useLink();
|
|
1737
|
+
const { href, onClick } = link(rest);
|
|
1738
|
+
const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
1739
|
+
if (!icon) {
|
|
1740
|
+
return null;
|
|
1741
|
+
}
|
|
1742
|
+
const classes = version === 'secondary'
|
|
1743
|
+
? 'bg-white hover:bg-secondary-hover'
|
|
1744
|
+
: 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
1745
|
+
const isPrimary = version === 'primary';
|
|
1746
|
+
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
const SocialMedia = JSX(({ className = '', media, version, children }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ..._ }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
|
|
1750
|
+
|
|
1751
|
+
const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
1752
|
+
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
1753
|
+
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
1754
|
+
return (jsx(BlockWrapper, { className: `relative text-left border border-solid box-border p-7 min-w-[524px]
|
|
1755
|
+
${BorderVersionStyleMap[version]}
|
|
1756
|
+
${VersionStyleMap[version]}
|
|
1757
|
+
${className}`, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx("span", { className: "mb-2", children: description }) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia.length ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null, button?.text ? jsx("div", { className: "pt-2 mt-16", children: renderButton({ button }) }) : null] }) }) }));
|
|
1758
|
+
});
|
|
1759
|
+
|
|
1697
1760
|
const VISIBLE_ROWS_COUNT = 1;
|
|
1698
1761
|
const CarouselTariffsCard = JSX(({ className = '', title, icon, isHighlighting, button, rows = [], ...rest }) => {
|
|
1699
1762
|
const rowsNode = rows.map(renderCardInfo);
|
|
@@ -1723,7 +1786,7 @@
|
|
|
1723
1786
|
itemCount: cards?.length,
|
|
1724
1787
|
visibleItemCount: CARD_VIEW_COUNT$1,
|
|
1725
1788
|
});
|
|
1726
|
-
return (jsxs(BlockWrapper, { className: `bg-white relative font-sans p-12 overflow-hidden text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M",
|
|
1789
|
+
return (jsxs(BlockWrapper, { className: `bg-white relative font-sans p-12 overflow-hidden text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", ...rest }), jsx("div", { className: "flex duration-1000 gap-3.5 mt-8", style: { transform: `translateX(-${activeIndex * CARD_SHIFT$1}px)` }, role: "list", children: cards?.length ? cards.map((card, i) => jsx(CatalogCard, { ...card }, String(i))) : null }), renderArrows({
|
|
1727
1790
|
...controls,
|
|
1728
1791
|
btnClass: ['left-8', 'right-8'],
|
|
1729
1792
|
className: 'top-1/2 z-10 mt-6',
|
|
@@ -1801,7 +1864,7 @@
|
|
|
1801
1864
|
|
|
1802
1865
|
const ContactsBlock = JSX(({ className = '', contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: `${VersionStyleMap[version]} flex p-12 ${className}`, ...rest, children: [info?.length ? renderBlocks(info, version) : null, contacts?.length ? renderBlocks(contacts, version) : null] })));
|
|
1803
1866
|
const renderBlocks = (info, version) => (jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index, version })) }));
|
|
1804
|
-
const renderBlocksColumn = ({ column, index, version }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-6 first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "left", bgColorHeadline: version }), additionalDescription ? (jsx("div", { className: "mt-1.5 opacity-80", children: jsx(Paragraph, { size: "text-m-light", children: additionalDescription }) })) : null, button ? jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
1867
|
+
const renderBlocksColumn = ({ column, index, version }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-6 first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "text-left", bgColorHeadline: version }), additionalDescription ? (jsx("div", { className: "mt-1.5 opacity-80", children: jsx(Paragraph, { size: "text-m-light", children: additionalDescription }) })) : null, button ? jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
1805
1868
|
|
|
1806
1869
|
const renderErrorContent = (error) => {
|
|
1807
1870
|
if (error?.errorContentType === 'Image' && error?.image) {
|
|
@@ -2139,49 +2202,6 @@
|
|
|
2139
2202
|
return (jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
2140
2203
|
});
|
|
2141
2204
|
|
|
2142
|
-
const ICONS_MAP = [
|
|
2143
|
-
{
|
|
2144
|
-
origins: ['t.me', 'telegram.org'],
|
|
2145
|
-
icon: { icon: 'TelegramIcon' },
|
|
2146
|
-
label: 'Телеграм',
|
|
2147
|
-
},
|
|
2148
|
-
{
|
|
2149
|
-
origins: ['vk.com'],
|
|
2150
|
-
icon: { icon: 'VKIcon' },
|
|
2151
|
-
label: 'ВКонтакте',
|
|
2152
|
-
},
|
|
2153
|
-
{
|
|
2154
|
-
origins: ['ok.ru'],
|
|
2155
|
-
icon: { icon: 'OkIcon' },
|
|
2156
|
-
label: 'Одноклассники',
|
|
2157
|
-
},
|
|
2158
|
-
{
|
|
2159
|
-
origins: ['apps.apple.com'],
|
|
2160
|
-
icon: { icon: 'AppleIcon' },
|
|
2161
|
-
label: 'App Store',
|
|
2162
|
-
},
|
|
2163
|
-
{
|
|
2164
|
-
origins: ['play.google.com'],
|
|
2165
|
-
icon: { icon: 'PlayMarketIcon' },
|
|
2166
|
-
label: 'Google Play',
|
|
2167
|
-
},
|
|
2168
|
-
];
|
|
2169
|
-
const MediaButton = JSX(({ version = 'primary', ...rest }) => {
|
|
2170
|
-
const link = useLink();
|
|
2171
|
-
const { href, onClick } = link(rest);
|
|
2172
|
-
const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
2173
|
-
if (!icon) {
|
|
2174
|
-
return null;
|
|
2175
|
-
}
|
|
2176
|
-
const classes = version === 'secondary'
|
|
2177
|
-
? 'bg-white hover:bg-secondary-hover'
|
|
2178
|
-
: 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
2179
|
-
const isPrimary = version === 'primary';
|
|
2180
|
-
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2181
|
-
});
|
|
2182
|
-
|
|
2183
|
-
const SocialMedia = JSX(({ className = '', media, version, children }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ..._ }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
|
|
2184
|
-
|
|
2185
2205
|
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
2186
2206
|
const link = useLink();
|
|
2187
2207
|
const { href, target, text, onClick } = link(rest);
|
|
@@ -2222,7 +2242,7 @@
|
|
|
2222
2242
|
const renderAdditionalDescription$1 = (additionalDescription, version) => additionalDescription ? (jsx("div", { className: `text-m-light mt-auto ${VersionAdditionalStyleMap[version ?? 'primary']}`, children: additionalDescription })) : null;
|
|
2223
2243
|
const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
2224
2244
|
|
|
2225
|
-
const GalleryContainer = JSX(({ headlineVersion = 'M', cards = [], version = 'normal', activeIndex, ...rest }) => (jsxs("div", { children: [jsx(Headline, { ...rest, className: "!p-0", headlineVersion: headlineVersion
|
|
2245
|
+
const GalleryContainer = JSX(({ headlineVersion = 'M', cards = [], version = 'normal', activeIndex, ...rest }) => (jsxs("div", { children: [jsx(Headline, { ...rest, className: "!p-0", headlineVersion: headlineVersion }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version }, i)) })] })));
|
|
2226
2246
|
function renderCard({ card, version }, i) {
|
|
2227
2247
|
return (jsx("section", { className: `box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between
|
|
2228
2248
|
items-stretch ${cardStyleMap[version]} ${VersionStyleMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
|
|
@@ -2243,7 +2263,7 @@
|
|
|
2243
2263
|
|
|
2244
2264
|
const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
|
|
2245
2265
|
|
|
2246
|
-
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans bg-white p-12 ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M",
|
|
2266
|
+
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans bg-white p-12 ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M", ...rest }), calendar ? renderCalendar(calendar) : null] })));
|
|
2247
2267
|
const renderCalendar = (calendar) => {
|
|
2248
2268
|
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
2249
2269
|
const colSize = 100 / colCount;
|
|
@@ -2390,12 +2410,12 @@
|
|
|
2390
2410
|
const renderRegion = ({ onChangeLocation, close }) => (region) => (jsx("div", { className: "mb-1", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
|
|
2391
2411
|
onChangeLocation && onChangeLocation(region);
|
|
2392
2412
|
close && close();
|
|
2393
|
-
}, children: region.name }) }, region.id));
|
|
2413
|
+
}, children: region.name || '' }) }, region.id));
|
|
2394
2414
|
const ForeignOffices = JSX(({ foreignOffices }) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-7 pt-7", children: [jsx("div", { className: "mb-4", children: jsx(Text, { size: "text-m-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-10", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null);
|
|
2395
2415
|
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
2396
2416
|
const link = useLink();
|
|
2397
2417
|
const { text, target, href, onClick } = link(rest);
|
|
2398
|
-
return (jsxs("div", { className: "flex gap-x-3", children: [jsx(ImgInner, { image: icon }), jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })] }));
|
|
2418
|
+
return (jsxs("div", { className: "flex gap-x-3", children: [icon ? jsx(ImgInner, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
|
|
2399
2419
|
});
|
|
2400
2420
|
|
|
2401
2421
|
const HeaderSecondaryMenuButton = JSX(({ className = '', children, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 p-0 w-6 h-6 flex items-center bg-inherit cursor-pointer ${className}`, disabled: true, "aria-label": ariaLabel, children: children })));
|
|
@@ -2508,6 +2528,22 @@
|
|
|
2508
2528
|
return (jsx(BlockWrapper, { tag: "header", className: `pt-6 px-20 ${bgColor} ${className} ${showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5'}`, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topMenu, jsx(HeaderSecondaryMenu, { className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink, bgColor: bgColor })] }), jsx("div", { className: `mt-6 h-px ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
|
|
2509
2529
|
});
|
|
2510
2530
|
|
|
2531
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', options, ...rest }) => {
|
|
2532
|
+
const paddingStyle = isPadding ? 'p-12' : '';
|
|
2533
|
+
return (jsx(BlockWrapper, { className: [
|
|
2534
|
+
'grid grid-cols-12',
|
|
2535
|
+
paddingStyle,
|
|
2536
|
+
GapStyleMap[gap],
|
|
2537
|
+
LayoutBackgroundStyleMap[version],
|
|
2538
|
+
className,
|
|
2539
|
+
]
|
|
2540
|
+
.filter(Boolean)
|
|
2541
|
+
.join(' '), ...rest, children: renderChildren({ ...rest, options: options }) }));
|
|
2542
|
+
});
|
|
2543
|
+
HorizontalLayout.childrenTypes = {
|
|
2544
|
+
exclude: ['HorizontalLayout'],
|
|
2545
|
+
};
|
|
2546
|
+
|
|
2511
2547
|
const ImgBlock = JSX((props) => {
|
|
2512
2548
|
const { className, image, ...rest } = props;
|
|
2513
2549
|
return (jsx(BlockWrapper, { className: className, ...rest, children: jsx(ImgInner, { image: image }) }));
|
|
@@ -2658,7 +2694,7 @@
|
|
|
2658
2694
|
double: 'flex gap-x-5 gap-y-[26px] flex-wrap',
|
|
2659
2695
|
single: 'flex gap-3.5 flex-col',
|
|
2660
2696
|
};
|
|
2661
|
-
const LinkDocs = JSX(({ className = '', title, description, align = 'center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-12 bg-white ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2", ...rest }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] })));
|
|
2697
|
+
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-12 bg-white ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2", ...rest }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] })));
|
|
2662
2698
|
|
|
2663
2699
|
const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
|
|
2664
2700
|
|
|
@@ -3169,7 +3205,7 @@
|
|
|
3169
3205
|
return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
3170
3206
|
}
|
|
3171
3207
|
|
|
3172
|
-
const PictureText = JSX(({ className = '', title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version,
|
|
3208
|
+
const PictureText = JSX(({ className = '', title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, ...rest }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] })));
|
|
3173
3209
|
const renderBenefit$2 = (version) => (benefit, i) => (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
|
|
3174
3210
|
function renderInsuranceSumMonth(sum, monthLimit) {
|
|
3175
3211
|
return sum || monthLimit ? (jsxs("div", { className: "bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, Number(monthLimit) > 0
|
|
@@ -3228,7 +3264,7 @@
|
|
|
3228
3264
|
const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, items, version = 'primary', isDotted = true, textBlockClassName = '', ...rest }) => {
|
|
3229
3265
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
3230
3266
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
3231
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left", ...rest }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex gap-4", ...rest })) : null, children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
3267
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "text-left", ...rest }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex gap-4", ...rest })) : null, children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
3232
3268
|
});
|
|
3233
3269
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
3234
3270
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -3348,7 +3384,7 @@
|
|
|
3348
3384
|
}
|
|
3349
3385
|
|
|
3350
3386
|
const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative min-h-[364px]
|
|
3351
|
-
${VersionStyleMap[version]} ${getTileRightPadding(className)} ${className}`, ...rest, children: [jsxs("div", { className: `flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`, children: [jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), renderAdditionalDescription(additionalDescription, image), buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "mt-5 gap-4 z-10 text-l" })) : null] }), renderImage$1(image, isImageOnRightSide)] })));
|
|
3387
|
+
${VersionStyleMap[version]} ${getTileRightPadding(className)} ${className}`, ...rest, children: [jsxs("div", { className: `flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`, children: [jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "text-left", ...rest }), renderBenefits(benefits, version, image), renderAdditionalDescription(additionalDescription, image), buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "mt-5 gap-4 z-10 text-l" })) : null] }), renderImage$1(image, isImageOnRightSide)] })));
|
|
3352
3388
|
function renderBenefits(benefits, version, image) {
|
|
3353
3389
|
if (!benefits.length) {
|
|
3354
3390
|
return null;
|
|
@@ -3359,7 +3395,7 @@
|
|
|
3359
3395
|
${benefitsWidth}`, children: benefits.length ? benefits.map(renderBenefit(version)) : null }));
|
|
3360
3396
|
}
|
|
3361
3397
|
|
|
3362
|
-
const PromoTile = JSX(({ className = '', title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { title: title ? (jsx(Headline, { title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left", as: "h2", ...rest })) : null, buttons: buttons?.length ? jsx(ButtonSection, { buttons: buttons, className: "flex gap-3" }) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) })));
|
|
3398
|
+
const PromoTile = JSX(({ className = '', title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { title: title ? (jsx(Headline, { title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "text-left", as: "h2", ...rest })) : null, buttons: buttons?.length ? jsx(ButtonSection, { buttons: buttons, className: "flex gap-3" }) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) })));
|
|
3363
3399
|
function formatDate(date) {
|
|
3364
3400
|
const dateObj = new Date(date);
|
|
3365
3401
|
const dateFormat = {
|
|
@@ -3370,15 +3406,6 @@
|
|
|
3370
3406
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
3371
3407
|
}
|
|
3372
3408
|
|
|
3373
|
-
const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
3374
|
-
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
3375
|
-
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
3376
|
-
return (jsx(BlockWrapper, { className: `relative text-left border border-solid box-border p-7 min-w-[524px]
|
|
3377
|
-
${BorderVersionStyleMap[version]}
|
|
3378
|
-
${VersionStyleMap[version]}
|
|
3379
|
-
${className}`, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx("span", { className: "mb-2", children: description }) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia.length ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null, button?.text ? jsx("div", { className: "pt-2 mt-16", children: renderButton({ button }) }) : null] }) }) }));
|
|
3380
|
-
});
|
|
3381
|
-
|
|
3382
3409
|
const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia, button }) => {
|
|
3383
3410
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
3384
3411
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
@@ -3902,29 +3929,15 @@
|
|
|
3902
3929
|
center: 'items-center',
|
|
3903
3930
|
right: 'items-end',
|
|
3904
3931
|
};
|
|
3905
|
-
const gapStyleMap = {
|
|
3906
|
-
XXL: 'gap-12',
|
|
3907
|
-
XL: 'gap-10',
|
|
3908
|
-
L: 'gap-8',
|
|
3909
|
-
M: 'gap-4',
|
|
3910
|
-
S: 'gap-2',
|
|
3911
|
-
XS: 'gap-1',
|
|
3912
|
-
'': '',
|
|
3913
|
-
};
|
|
3914
|
-
const backgroundStyleMap = {
|
|
3915
|
-
transparent: '',
|
|
3916
|
-
primary: 'bg-white',
|
|
3917
|
-
secondary: 'bg-primary-main',
|
|
3918
|
-
};
|
|
3919
3932
|
const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
3920
3933
|
const paddingStyle = isPadding ? 'p-12' : '';
|
|
3921
3934
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
3922
3935
|
return (jsx(BlockWrapper, { className: [
|
|
3923
3936
|
'flex flex-col [&>*]:max-w-full',
|
|
3924
3937
|
paddingStyle,
|
|
3925
|
-
|
|
3938
|
+
GapStyleMap[gap],
|
|
3926
3939
|
align && alignStyle[align],
|
|
3927
|
-
|
|
3940
|
+
LayoutBackgroundStyleMap[version],
|
|
3928
3941
|
className,
|
|
3929
3942
|
]
|
|
3930
3943
|
.filter(Boolean)
|
|
@@ -3959,6 +3972,7 @@
|
|
|
3959
3972
|
CarouselLinks,
|
|
3960
3973
|
CarouselProductCard,
|
|
3961
3974
|
CarouselProgramsCard,
|
|
3975
|
+
CarouselRecommendationCard,
|
|
3962
3976
|
CarouselTariffsCard,
|
|
3963
3977
|
Catalog,
|
|
3964
3978
|
ContactsBlock,
|
|
@@ -3970,12 +3984,14 @@
|
|
|
3970
3984
|
GracePeriod,
|
|
3971
3985
|
Header,
|
|
3972
3986
|
Headline,
|
|
3987
|
+
HorizontalLayout,
|
|
3973
3988
|
ImgBlock,
|
|
3974
3989
|
InsuranceAmountBlock,
|
|
3975
3990
|
InvestmentInfo,
|
|
3976
3991
|
LinkDocs,
|
|
3977
3992
|
MiniGallery,
|
|
3978
3993
|
MobileAppTile,
|
|
3994
|
+
OfficeMap,
|
|
3979
3995
|
ParagraphBlock,
|
|
3980
3996
|
PictureText,
|
|
3981
3997
|
Placeholder,
|
|
@@ -3986,7 +4002,6 @@
|
|
|
3986
4002
|
OfficeServicesBlock,
|
|
3987
4003
|
OtherProducts,
|
|
3988
4004
|
OtherProductsItem,
|
|
3989
|
-
CarouselRecommendationCard,
|
|
3990
4005
|
RollupItem,
|
|
3991
4006
|
SafeDepositRental,
|
|
3992
4007
|
StepsBlock,
|
|
@@ -3997,7 +4012,6 @@
|
|
|
3997
4012
|
VerticalLayout,
|
|
3998
4013
|
Video,
|
|
3999
4014
|
Recommendation,
|
|
4000
|
-
OfficeMap,
|
|
4001
4015
|
};
|
|
4002
4016
|
|
|
4003
4017
|
const debounce = (fn, delay = 600) => {
|
|
@@ -4125,7 +4139,7 @@
|
|
|
4125
4139
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4126
4140
|
}
|
|
4127
4141
|
|
|
4128
|
-
const packageVersion = "0.6.
|
|
4142
|
+
const packageVersion = "0.6.46";
|
|
4129
4143
|
|
|
4130
4144
|
exports.Blocks = Blocks;
|
|
4131
4145
|
exports.ContentPage = ContentPage;
|