@redneckz/wildless-cms-uni-blocks 0.6.44 → 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 +154 -139
- 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/services/sitemap/isTopItemActive.js +3 -1
- package/dist/services/sitemap/isTopItemActive.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/services/sitemap/isTopItemActive.js +3 -1
- package/lib/services/sitemap/isTopItemActive.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 +31 -35
- 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/services/sitemap/isTopItemActive.js +3 -1
- package/mobile/dist/services/sitemap/isTopItemActive.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/services/sitemap/isTopItemActive.js +3 -1
- package/mobile/lib/services/sitemap/isTopItemActive.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/services/sitemap/isTopItemActive.ts +3 -1
- 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/services/sitemap/isTopItemActive.ts +3 -1
- 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
|
@@ -131,7 +131,7 @@ const renderRegion =
|
|
|
131
131
|
close && close();
|
|
132
132
|
}}
|
|
133
133
|
>
|
|
134
|
-
{region.name}
|
|
134
|
+
{region.name || ''}
|
|
135
135
|
</button>
|
|
136
136
|
</div>
|
|
137
137
|
);
|
|
@@ -159,10 +159,12 @@ const ForeignOffice = JSX<ForeignOffice>(({ icon, ...rest }) => {
|
|
|
159
159
|
|
|
160
160
|
return (
|
|
161
161
|
<div className="flex gap-x-3">
|
|
162
|
-
<Img image={icon} />
|
|
163
|
-
|
|
164
|
-
{
|
|
165
|
-
|
|
162
|
+
{icon ? <Img pathPrefix="/wcms-resources/" image={icon} /> : null}
|
|
163
|
+
{text ? (
|
|
164
|
+
<a className="hover:text-primary-hover" href={href} target={target} onClick={onClick}>
|
|
165
|
+
{text}
|
|
166
|
+
</a>
|
|
167
|
+
) : null}
|
|
166
168
|
</div>
|
|
167
169
|
);
|
|
168
170
|
});
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { ParagraphProps } from './ParagraphProps';
|
|
3
3
|
|
|
4
|
-
export const Paragraph = JSX<ParagraphProps>((
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
8
|
-
|
|
9
|
-
return <p className={textClasses}>{children}</p>;
|
|
10
|
-
});
|
|
4
|
+
export const Paragraph = JSX<ParagraphProps>(({ size, color, align, font, children }) => (
|
|
5
|
+
<p className={['font-sans', size, color, align, font].filter(Boolean).join(' ')}>{children}</p>
|
|
6
|
+
));
|
package/package.json
CHANGED
package/src/components/Blocks.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestm
|
|
|
15
15
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
16
16
|
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
17
17
|
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
18
|
+
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
18
19
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
19
20
|
import { Catalog } from './Catalog/Catalog';
|
|
20
21
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
@@ -26,6 +27,7 @@ import { Gallery } from './Gallery/Gallery';
|
|
|
26
27
|
import { GracePeriod } from './GracePeriod/GracePeriod';
|
|
27
28
|
import { Header } from './Header/Header';
|
|
28
29
|
import { Headline } from './Headline/Headline';
|
|
30
|
+
import { HorizontalLayout } from './HorizontalLayout/HorizontalLayout';
|
|
29
31
|
import { ImgBlock } from './ImgBlock/ImgBlock';
|
|
30
32
|
import { InsuranceAmountBlock } from './InsuranceAmountBlock/InsuranceAmountBlock';
|
|
31
33
|
import { InvestmentInfo } from './InvestmentInfo/InvestmentInfo';
|
|
@@ -43,7 +45,6 @@ import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
|
43
45
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
44
46
|
import { ProductTile } from './ProductTile/ProductTile';
|
|
45
47
|
import { PromoTile } from './PromoTile/PromoTile';
|
|
46
|
-
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
47
48
|
import { Recommendation } from './Recommendation/Recommendation';
|
|
48
49
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
49
50
|
import { SafeDepositRental } from './SafeDepositRental/SafeDepositRental';
|
|
@@ -72,6 +73,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
72
73
|
CarouselLinks,
|
|
73
74
|
CarouselProductCard,
|
|
74
75
|
CarouselProgramsCard,
|
|
76
|
+
CarouselRecommendationCard,
|
|
75
77
|
CarouselTariffsCard,
|
|
76
78
|
Catalog,
|
|
77
79
|
ContactsBlock,
|
|
@@ -83,12 +85,14 @@ export const Blocks: BlocksRegistry = {
|
|
|
83
85
|
GracePeriod,
|
|
84
86
|
Header,
|
|
85
87
|
Headline,
|
|
88
|
+
HorizontalLayout,
|
|
86
89
|
ImgBlock,
|
|
87
90
|
InsuranceAmountBlock,
|
|
88
91
|
InvestmentInfo,
|
|
89
92
|
LinkDocs,
|
|
90
93
|
MiniGallery,
|
|
91
94
|
MobileAppTile,
|
|
95
|
+
OfficeMap,
|
|
92
96
|
ParagraphBlock,
|
|
93
97
|
PictureText,
|
|
94
98
|
Placeholder,
|
|
@@ -99,7 +103,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
99
103
|
OfficeServicesBlock,
|
|
100
104
|
OtherProducts,
|
|
101
105
|
OtherProductsItem,
|
|
102
|
-
CarouselRecommendationCard,
|
|
103
106
|
RollupItem,
|
|
104
107
|
SafeDepositRental,
|
|
105
108
|
StepsBlock,
|
|
@@ -110,5 +113,4 @@ export const Blocks: BlocksRegistry = {
|
|
|
110
113
|
VerticalLayout,
|
|
111
114
|
Video,
|
|
112
115
|
Recommendation,
|
|
113
|
-
OfficeMap,
|
|
114
116
|
};
|
|
@@ -22,13 +22,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
22
22
|
<div className={`${BLOCK_CLASSES} z-10 top-6 right-8 bg-green`} />
|
|
23
23
|
<div className={`${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light`} />
|
|
24
24
|
<div className="relative bg-white z-10 py-6 px-10 border border-solid border-green-light">
|
|
25
|
-
<Headline
|
|
26
|
-
className="!p-0"
|
|
27
|
-
title={title}
|
|
28
|
-
description={description}
|
|
29
|
-
headlineVersion="M"
|
|
30
|
-
align="center"
|
|
31
|
-
/>
|
|
25
|
+
<Headline className="!p-0" title={title} description={description} headlineVersion="M" />
|
|
32
26
|
{button ? <div className="mt-6">{renderButton({ button })}</div> : null}
|
|
33
27
|
</div>
|
|
34
28
|
</div>
|
|
@@ -10,7 +10,7 @@ import { List } from '../../ui-kit/List/List';
|
|
|
10
10
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
11
11
|
import { Text } from '../../ui-kit/Text/Text';
|
|
12
12
|
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
13
|
-
import { HEADLINE_SMALL_VERSION } from '../Headline/
|
|
13
|
+
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
|
|
14
14
|
import type { CarouselProductCardContent, ListProps } from './CarouselProductCardContent';
|
|
15
15
|
|
|
16
16
|
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {}
|
|
@@ -7,7 +7,7 @@ import { renderButton } from '../../ui-kit/Button/ButtonSection';
|
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
8
|
import { List } from '../../ui-kit/List/List';
|
|
9
9
|
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
10
|
-
import { HEADLINE_SMALL_VERSION } from '../Headline/
|
|
10
|
+
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
|
|
11
11
|
import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
|
|
12
12
|
|
|
13
13
|
export const GalleryCardInner = JSX<GalleryCardProps>(
|
|
@@ -19,7 +19,7 @@ export interface GalleryCardData {
|
|
|
19
19
|
export const GalleryContainer = JSX<GalleryContainerProps>(
|
|
20
20
|
({ headlineVersion = 'M', cards = [], version = 'normal', activeIndex, ...rest }) => (
|
|
21
21
|
<div>
|
|
22
|
-
<Headline {...rest} className="!p-0" headlineVersion={headlineVersion}
|
|
22
|
+
<Headline {...rest} className="!p-0" headlineVersion={headlineVersion} />
|
|
23
23
|
<div
|
|
24
24
|
className={`flex mt-8 ${
|
|
25
25
|
cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''
|
|
@@ -7,7 +7,7 @@ import type { HeadlineContent } from './HeadlineContent';
|
|
|
7
7
|
export const HEADLINE: HeadlineContent = {
|
|
8
8
|
title: 'Своя кредитная карта',
|
|
9
9
|
description: 'Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах.',
|
|
10
|
-
align: 'center',
|
|
10
|
+
align: 'text-center',
|
|
11
11
|
bgColorHeadline: 'transparent',
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -40,33 +40,33 @@ const secondaryProps: HeadlineContent = {
|
|
|
40
40
|
export default {
|
|
41
41
|
'default left alignment': (
|
|
42
42
|
<div className="container grid grid-cols-12">
|
|
43
|
-
<Headline className="col-span-12" {...defaultProps} align="left" />
|
|
43
|
+
<Headline className="col-span-12" {...defaultProps} align="text-left" />
|
|
44
44
|
</div>
|
|
45
45
|
),
|
|
46
46
|
'default center alignment': (
|
|
47
47
|
<div className="container grid grid-cols-12">
|
|
48
|
-
<Headline className="col-span-12" {...defaultProps} align="center" />
|
|
48
|
+
<Headline className="col-span-12" {...defaultProps} align="text-center" />
|
|
49
49
|
</div>
|
|
50
50
|
),
|
|
51
51
|
'default right alignment': (
|
|
52
52
|
<div className="container grid grid-cols-12">
|
|
53
|
-
<Headline className="col-span-12" {...defaultProps} align="right" />
|
|
53
|
+
<Headline className="col-span-12" {...defaultProps} align="text-right" />
|
|
54
54
|
</div>
|
|
55
55
|
),
|
|
56
56
|
|
|
57
57
|
'primary left alignment': (
|
|
58
58
|
<div className="container grid grid-cols-12">
|
|
59
|
-
<Headline className="col-span-12" {...primaryProps} align="left" />
|
|
59
|
+
<Headline className="col-span-12" {...primaryProps} align="text-left" />
|
|
60
60
|
</div>
|
|
61
61
|
),
|
|
62
62
|
'primary center alignment': (
|
|
63
63
|
<div className="container grid grid-cols-12">
|
|
64
|
-
<Headline className="col-span-12" {...primaryProps} align="center" />
|
|
64
|
+
<Headline className="col-span-12" {...primaryProps} align="text-center" />
|
|
65
65
|
</div>
|
|
66
66
|
),
|
|
67
67
|
'primary right alignment': (
|
|
68
68
|
<div className="container grid grid-cols-12">
|
|
69
|
-
<Headline className="col-span-12" {...primaryProps} align="right" />
|
|
69
|
+
<Headline className="col-span-12" {...primaryProps} align="text-right" />
|
|
70
70
|
</div>
|
|
71
71
|
),
|
|
72
72
|
'primary without description': (
|
|
@@ -92,17 +92,17 @@ export default {
|
|
|
92
92
|
|
|
93
93
|
'secondary left alignment': (
|
|
94
94
|
<div className="container grid grid-cols-12">
|
|
95
|
-
<Headline className="col-span-12" {...secondaryProps} align="left" />
|
|
95
|
+
<Headline className="col-span-12" {...secondaryProps} align="text-left" />
|
|
96
96
|
</div>
|
|
97
97
|
),
|
|
98
98
|
'secondary center alignment': (
|
|
99
99
|
<div className="container grid grid-cols-12">
|
|
100
|
-
<Headline className="col-span-12" {...secondaryProps} align="center" />
|
|
100
|
+
<Headline className="col-span-12" {...secondaryProps} align="text-center" />
|
|
101
101
|
</div>
|
|
102
102
|
),
|
|
103
103
|
'secondary right alignment': (
|
|
104
104
|
<div className="container grid grid-cols-12">
|
|
105
|
-
<Headline className="col-span-12" {...secondaryProps} align="right" />
|
|
105
|
+
<Headline className="col-span-12" {...secondaryProps} align="text-right" />
|
|
106
106
|
</div>
|
|
107
107
|
),
|
|
108
108
|
'secondary without description': (
|
|
@@ -6,7 +6,7 @@ import type { HeadlineContent } from './HeadlineContent';
|
|
|
6
6
|
export const HEADLINE: HeadlineContent = {
|
|
7
7
|
title: 'Своя кредитная карта',
|
|
8
8
|
description: 'Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах.',
|
|
9
|
-
align: 'center',
|
|
9
|
+
align: 'text-center',
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const HEADLINE_PRIMARY: HeadlineContent = {
|
|
@@ -27,12 +27,12 @@ export default {
|
|
|
27
27
|
),
|
|
28
28
|
'default left alignment': (
|
|
29
29
|
<div className="container grid grid-cols-12">
|
|
30
|
-
<Headline className="col-span-12" {...HEADLINE} align="left" />
|
|
30
|
+
<Headline className="col-span-12" {...HEADLINE} align="text-left" />
|
|
31
31
|
</div>
|
|
32
32
|
),
|
|
33
33
|
'default right alignment': (
|
|
34
34
|
<div className="container grid grid-cols-12">
|
|
35
|
-
<Headline className="col-span-12" {...HEADLINE} align="right" />
|
|
35
|
+
<Headline className="col-span-12" {...HEADLINE} align="text-right" />
|
|
36
36
|
</div>
|
|
37
37
|
),
|
|
38
38
|
'default difficult XXL': (
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
),
|
|
63
63
|
'primary left alignment': (
|
|
64
64
|
<div className="container grid grid-cols-12">
|
|
65
|
-
<Headline className="col-span-12" {...HEADLINE_PRIMARY} align="left" />
|
|
65
|
+
<Headline className="col-span-12" {...HEADLINE_PRIMARY} align="text-left" />
|
|
66
66
|
</div>
|
|
67
67
|
),
|
|
68
68
|
'primary center alignment': (
|
|
@@ -72,12 +72,12 @@ export default {
|
|
|
72
72
|
),
|
|
73
73
|
'primary right alignment': (
|
|
74
74
|
<div className="container grid grid-cols-12">
|
|
75
|
-
<Headline className="col-span-12" {...HEADLINE_PRIMARY} align="right" />
|
|
75
|
+
<Headline className="col-span-12" {...HEADLINE_PRIMARY} align="text-right" />
|
|
76
76
|
</div>
|
|
77
77
|
),
|
|
78
78
|
'secondary left alignment': (
|
|
79
79
|
<div className="container grid grid-cols-12">
|
|
80
|
-
<Headline className="col-span-12" {...HEADLINE_SECONDARY} align="left" />
|
|
80
|
+
<Headline className="col-span-12" {...HEADLINE_SECONDARY} align="text-left" />
|
|
81
81
|
</div>
|
|
82
82
|
),
|
|
83
83
|
'secondary center alignment': (
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
),
|
|
88
88
|
'secondary right alignment': (
|
|
89
89
|
<div className="container grid grid-cols-12">
|
|
90
|
-
<Headline className="col-span-12" {...HEADLINE_SECONDARY} align="right" />
|
|
90
|
+
<Headline className="col-span-12" {...HEADLINE_SECONDARY} align="text-right" />
|
|
91
91
|
</div>
|
|
92
92
|
),
|
|
93
93
|
};
|
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { AlignText } from '../../model/AlignText';
|
|
3
|
-
|
|
4
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
-
import {
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
6
|
import type { HeadlineContent } from './HeadlineContent';
|
|
7
|
+
import { headlineStyles } from './headlineStyles';
|
|
9
8
|
|
|
10
9
|
export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
|
|
11
10
|
|
|
12
11
|
export const Headline = JSX<HeadlineProps>(
|
|
13
12
|
({
|
|
14
|
-
bgColorHeadline = 'transparent',
|
|
15
13
|
className = '',
|
|
16
14
|
title,
|
|
17
15
|
description,
|
|
18
16
|
image,
|
|
19
|
-
|
|
17
|
+
bgColorHeadline = 'transparent',
|
|
18
|
+
align = 'text-left',
|
|
20
19
|
}) => {
|
|
21
|
-
const
|
|
20
|
+
const style = headlineStyles[bgColorHeadline];
|
|
22
21
|
|
|
23
22
|
return (
|
|
24
|
-
<section className={`px-4 py-6 flex flex-col gap-2.5 ${
|
|
23
|
+
<section className={`px-4 py-6 flex flex-col gap-2.5 ${style.wrapper} ${className}`}>
|
|
25
24
|
{title ? (
|
|
26
|
-
<Heading
|
|
27
|
-
headingType="h2"
|
|
28
|
-
className={`${STYLE_MAPS.text} ${AlignText[align]}`}
|
|
29
|
-
title={title}
|
|
30
|
-
/>
|
|
25
|
+
<Heading headingType="h2" className={`${style.titleColor} ${align}`} title={title} />
|
|
31
26
|
) : null}
|
|
32
27
|
{description ? (
|
|
33
|
-
<
|
|
28
|
+
<Paragraph color={style.descriptionColor || style.titleColor} size="text-m" align={align}>
|
|
29
|
+
{description}
|
|
30
|
+
</Paragraph>
|
|
34
31
|
) : null}
|
|
35
32
|
{image?.src && (
|
|
36
33
|
<div className="mt-2.5 mx-auto flex justify-center">
|
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { AlignText } from '../../model/AlignText';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
-
import {
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
6
|
+
import type { TextSize } from '../../ui-kit/Text/TextProps';
|
|
7
7
|
import type { HeadlineContent } from './HeadlineContent';
|
|
8
|
+
import { headlineStyles } from './headlineStyles';
|
|
9
|
+
import { headlineVersionStyles } from './headlineVersionStyles';
|
|
8
10
|
|
|
9
11
|
export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
|
|
10
12
|
|
|
11
13
|
export const Headline = JSX<HeadlineProps>(
|
|
12
14
|
({
|
|
13
15
|
className = '',
|
|
14
|
-
bgColorHeadline = 'transparent',
|
|
15
|
-
align = 'center',
|
|
16
16
|
title,
|
|
17
17
|
description,
|
|
18
18
|
headlineVersion = 'XL',
|
|
19
|
+
bgColorHeadline = 'transparent',
|
|
20
|
+
align = 'text-center',
|
|
19
21
|
as,
|
|
20
22
|
...rest
|
|
21
23
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
+
const style = headlineStyles[bgColorHeadline];
|
|
25
|
+
const specificStyle = headlineVersionStyles[headlineVersion];
|
|
24
26
|
|
|
25
27
|
return (
|
|
26
28
|
<BlockWrapper
|
|
27
|
-
className={`
|
|
29
|
+
className={`flex flex-col p-12 ${specificStyle.wrapper} ${style.wrapper} ${className}`}
|
|
28
30
|
{...rest}
|
|
29
31
|
>
|
|
30
32
|
{title ? (
|
|
31
33
|
<Heading
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
className={`whitespace-pre-wrap ${style.titleColor} ${align}`}
|
|
35
|
+
{...specificStyle?.title}
|
|
36
|
+
as={as || specificStyle?.title.as}
|
|
35
37
|
title={title}
|
|
36
38
|
/>
|
|
37
39
|
) : null}
|
|
38
40
|
{description ? (
|
|
39
|
-
<
|
|
41
|
+
<Paragraph
|
|
42
|
+
color={style.descriptionColor || style.titleColor}
|
|
43
|
+
size={specificStyle.descriptionSize as TextSize}
|
|
44
|
+
align={align}
|
|
45
|
+
>
|
|
40
46
|
{description}
|
|
41
|
-
</
|
|
47
|
+
</Paragraph>
|
|
42
48
|
) : null}
|
|
43
49
|
</BlockWrapper>
|
|
44
50
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AlignType } from '../../model/AlignType';
|
|
2
1
|
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
3
2
|
import type { HeadlineProps } from '../../model/HeadlineType';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
5
4
|
import type { HeadingTagType } from '../../ui-kit/Heading/HeadingProps';
|
|
5
|
+
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Заголовок
|
|
@@ -10,7 +10,7 @@ import type { HeadingTagType } from '../../ui-kit/Heading/HeadingProps';
|
|
|
10
10
|
export type HeadlineContent = HeadlineProps & {
|
|
11
11
|
/** @title Изображение (моб.) */
|
|
12
12
|
image?: Picture;
|
|
13
|
-
align?:
|
|
13
|
+
align?: TextAlign;
|
|
14
14
|
bgColorHeadline?: BlockVersionWithTransparent;
|
|
15
15
|
/** @hidden */
|
|
16
16
|
as?: HeadingTagType;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
+
import type { TextColor } from '../../ui-kit/Text/TextProps';
|
|
3
|
+
|
|
4
|
+
export const headlineStyles: Record<
|
|
5
|
+
BlockVersionWithTransparent,
|
|
6
|
+
{
|
|
7
|
+
wrapper: string;
|
|
8
|
+
titleColor: TextColor;
|
|
9
|
+
descriptionColor?: TextColor;
|
|
10
|
+
}
|
|
11
|
+
> = {
|
|
12
|
+
transparent: {
|
|
13
|
+
wrapper: 'bg-transparent',
|
|
14
|
+
titleColor: 'text-primary-text',
|
|
15
|
+
},
|
|
16
|
+
primary: {
|
|
17
|
+
wrapper: 'bg-white',
|
|
18
|
+
titleColor: 'text-primary-text',
|
|
19
|
+
},
|
|
20
|
+
secondary: {
|
|
21
|
+
wrapper: 'bg-primary-main',
|
|
22
|
+
titleColor: 'text-white',
|
|
23
|
+
descriptionColor: 'text-white/80',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
2
|
+
import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
3
|
+
import type { TextSize, TitleSize } from '../../ui-kit/Text/TextProps';
|
|
4
|
+
|
|
5
|
+
export const headlineVersionStyles: Record<
|
|
6
|
+
HeadlineVersion,
|
|
7
|
+
{
|
|
8
|
+
wrapper: string;
|
|
9
|
+
title: HeadingCommonProps;
|
|
10
|
+
descriptionSize: TextSize | TitleSize;
|
|
11
|
+
}
|
|
12
|
+
> = {
|
|
13
|
+
XXL: {
|
|
14
|
+
wrapper: 'gap-[18px]',
|
|
15
|
+
title: { headingType: 'h0', as: 'h1' },
|
|
16
|
+
descriptionSize: 'text-h5',
|
|
17
|
+
},
|
|
18
|
+
XL: {
|
|
19
|
+
wrapper: 'gap-4',
|
|
20
|
+
title: { headingType: 'h1', as: 'h1' },
|
|
21
|
+
descriptionSize: 'text-xl-light',
|
|
22
|
+
},
|
|
23
|
+
L: {
|
|
24
|
+
wrapper: 'gap-4',
|
|
25
|
+
title: { headingType: 'h2', as: 'h2' },
|
|
26
|
+
descriptionSize: 'text-xl-light',
|
|
27
|
+
},
|
|
28
|
+
M: {
|
|
29
|
+
wrapper: 'gap-3',
|
|
30
|
+
title: { headingType: 'h3', as: 'h3' },
|
|
31
|
+
descriptionSize: 'text-xl-light',
|
|
32
|
+
},
|
|
33
|
+
S: {
|
|
34
|
+
wrapper: 'gap-2',
|
|
35
|
+
title: { headingType: 'h4', as: 'h4' },
|
|
36
|
+
descriptionSize: 'text-xl-light',
|
|
37
|
+
},
|
|
38
|
+
XS: {
|
|
39
|
+
wrapper: 'gap-2',
|
|
40
|
+
title: { headingType: 'h5', as: 'h5' },
|
|
41
|
+
descriptionSize: 'text-l-light',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// TODO Move to Gallery and rename
|
|
46
|
+
export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
|
|
47
|
+
H6: 'text-h6',
|
|
48
|
+
XL_L: 'text-xl-light',
|
|
49
|
+
XL_R: 'text-xl',
|
|
50
|
+
L_L: 'text-l-light',
|
|
51
|
+
L_R: 'text-l',
|
|
52
|
+
M: 'text-m-light',
|
|
53
|
+
S: 'text-s-light',
|
|
54
|
+
XS: 'text-xs-light',
|
|
55
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"gap": "XS"
|
|
5
|
+
},
|
|
6
|
+
"style": ["col-span-12"],
|
|
7
|
+
"type": "HorizontalLayout",
|
|
8
|
+
"blocks": [
|
|
9
|
+
{
|
|
10
|
+
"type": "Headline",
|
|
11
|
+
"content": {
|
|
12
|
+
"title": "Заголовок блока",
|
|
13
|
+
"description": "Описание блока",
|
|
14
|
+
"headlineVersion": "M"
|
|
15
|
+
},
|
|
16
|
+
"style": ["col-span-12"]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|