@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Отсуп между компонентами
|
|
5
|
+
* @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький", "Самый маленький", "Без отступа"]
|
|
6
|
+
*/
|
|
7
|
+
export type GapVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS' | '';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @title Горизонтальный компоновщик
|
|
11
|
+
*/
|
|
12
|
+
export interface HorizontalLayoutContent {
|
|
13
|
+
version?: BlockVersionWithTransparent;
|
|
14
|
+
gap?: GapVersion;
|
|
15
|
+
/** @title Внутренний отступ компоновщика */
|
|
16
|
+
isPadding?: boolean;
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
1
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type { AlignType } from '../../model/AlignType';
|
|
3
3
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
4
|
import type { Picture } from '../../model/Picture';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Отображение списка
|
|
@@ -43,5 +43,5 @@ export type LinkDocsContent = HeadlineCommonProps & {
|
|
|
43
43
|
orientation?: ListOrientation; // TODO: мобильный проп
|
|
44
44
|
/** @title Рамка элементов (моб.) */ // TODO: мобильный проп
|
|
45
45
|
hasBorder?: boolean;
|
|
46
|
-
align?:
|
|
46
|
+
align?: TextAlign;
|
|
47
47
|
};
|
|
@@ -40,7 +40,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
40
40
|
className={`!p-0 max-w-[600px]`}
|
|
41
41
|
bgColorHeadline={version}
|
|
42
42
|
headlineVersion={headlineVersion}
|
|
43
|
-
align="left"
|
|
43
|
+
align="text-left"
|
|
44
44
|
{...rest}
|
|
45
45
|
/>
|
|
46
46
|
<div className="flex flex-col justify-between h-full">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
3
3
|
import type { AlignType } from '../../model/AlignType';
|
|
4
|
-
import {
|
|
4
|
+
import { GapStyleMap, LayoutBackgroundStyleMap } from '../../model/BlockVersion';
|
|
5
5
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
6
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
-
import type {
|
|
7
|
+
import type { VerticalLayoutContent } from './VerticalLayoutContent';
|
|
8
8
|
|
|
9
9
|
export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {}
|
|
10
10
|
|
|
@@ -14,22 +14,6 @@ const alignStyle: Record<AlignType, string> = {
|
|
|
14
14
|
right: 'items-end',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const gapStyleMap: Record<GapVersion, string> = {
|
|
18
|
-
XXL: 'gap-12',
|
|
19
|
-
XL: 'gap-10',
|
|
20
|
-
L: 'gap-8',
|
|
21
|
-
M: 'gap-4',
|
|
22
|
-
S: 'gap-2',
|
|
23
|
-
XS: 'gap-1',
|
|
24
|
-
'': '',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const backgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
|
|
28
|
-
transparent: '',
|
|
29
|
-
primary: 'bg-white',
|
|
30
|
-
secondary: 'bg-primary-main',
|
|
31
|
-
};
|
|
32
|
-
|
|
33
17
|
export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutProps>(
|
|
34
18
|
({
|
|
35
19
|
className = '',
|
|
@@ -49,9 +33,9 @@ export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutP
|
|
|
49
33
|
className={[
|
|
50
34
|
'flex flex-col [&>*]:max-w-full',
|
|
51
35
|
paddingStyle,
|
|
52
|
-
|
|
36
|
+
GapStyleMap[gap],
|
|
53
37
|
align && alignStyle[align],
|
|
54
|
-
|
|
38
|
+
LayoutBackgroundStyleMap[version],
|
|
55
39
|
className,
|
|
56
40
|
]
|
|
57
41
|
.filter(Boolean)
|
package/src/model/AlignText.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { TextAlign } from '../ui-kit/Text/TextProps';
|
|
1
2
|
import type { AlignType } from './AlignType';
|
|
2
3
|
|
|
3
|
-
export const AlignText: Record<AlignType,
|
|
4
|
+
export const AlignText: Record<AlignType, TextAlign> = {
|
|
4
5
|
left: 'text-left',
|
|
5
6
|
center: 'text-center',
|
|
6
7
|
right: 'text-right',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GapVersion } from '../components/HorizontalLayout/HorizontalLayoutContent';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @title Цвет блока
|
|
3
5
|
* @enumNames ["Основная", "Второстепенная"]
|
|
@@ -25,3 +27,19 @@ export const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent,
|
|
|
25
27
|
primary: 'bg-white text-primary-text',
|
|
26
28
|
secondary: 'bg-primary-main text-white',
|
|
27
29
|
};
|
|
30
|
+
|
|
31
|
+
export const GapStyleMap: Record<GapVersion, string> = {
|
|
32
|
+
XXL: 'gap-12',
|
|
33
|
+
XL: 'gap-10',
|
|
34
|
+
L: 'gap-8',
|
|
35
|
+
M: 'gap-4',
|
|
36
|
+
S: 'gap-2',
|
|
37
|
+
XS: 'gap-1',
|
|
38
|
+
'': '',
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const LayoutBackgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
|
|
42
|
+
transparent: '',
|
|
43
|
+
primary: 'bg-white',
|
|
44
|
+
secondary: 'bg-primary-main',
|
|
45
|
+
};
|
|
@@ -16,6 +16,8 @@ interface EventMap {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const normalizeAnchor = (rawAnchor?: string) => rawAnchor?.replace('#', '');
|
|
19
|
+
const getURLWithAnchor = (rawAnchor?: string) =>
|
|
20
|
+
`${globalThis.location?.pathname}#${normalizeAnchor(rawAnchor)}`;
|
|
19
21
|
|
|
20
22
|
export class BlockRouter {
|
|
21
23
|
public static readonly inst = new BlockRouter();
|
|
@@ -38,14 +40,14 @@ export class BlockRouter {
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
push(rawAnchor: string) {
|
|
41
|
-
globalThis.history?.pushState(null, '',
|
|
43
|
+
globalThis.history?.pushState(null, '', getURLWithAnchor(rawAnchor));
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
replace(rawAnchor: string) {
|
|
45
|
-
globalThis.history?.replaceState(null, '',
|
|
47
|
+
globalThis.history?.replaceState(null, '', getURLWithAnchor(rawAnchor));
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
reset() {
|
|
49
|
-
globalThis.history?.replaceState(null, '',
|
|
51
|
+
globalThis.history?.replaceState(null, '', getURLWithAnchor());
|
|
50
52
|
}
|
|
51
53
|
}
|
|
@@ -11,12 +11,13 @@ const sourcesComparator = (a: Picture, b: Picture) => {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const ImgAsPicture = JSX<ImageProps<Picture>>(
|
|
14
|
-
({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
14
|
+
({ className = '', image, imageClassName = '', isMobile = false, pathPrefix = '' }) => {
|
|
15
15
|
if (!image || (!image?.sources && !image?.src)) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
20
|
+
const normalizedPathPrefix = normalizePathPrefix(pathPrefix);
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<picture className={`${pictureStyles} ${className}`}>
|
|
@@ -26,14 +27,18 @@ export const ImgAsPicture = JSX<ImageProps<Picture>>(
|
|
|
26
27
|
.map(({ src, format, media }, index) => (
|
|
27
28
|
<source
|
|
28
29
|
key={`${index}_${src}`}
|
|
29
|
-
srcSet={src}
|
|
30
|
+
srcSet={addPathPrefixToSrcSet(src, normalizedPathPrefix)}
|
|
30
31
|
type={formatToMimeType(format)}
|
|
31
32
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
32
33
|
{...image.size}
|
|
33
34
|
/>
|
|
34
35
|
))
|
|
35
36
|
: null}
|
|
36
|
-
{renderImg(
|
|
37
|
+
{renderImg(
|
|
38
|
+
{ ...image, src: `${normalizedPathPrefix}${image.src}` },
|
|
39
|
+
imageClassName,
|
|
40
|
+
isMobile,
|
|
41
|
+
)}
|
|
37
42
|
</picture>
|
|
38
43
|
);
|
|
39
44
|
},
|
|
@@ -61,6 +66,15 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
|
|
|
61
66
|
);
|
|
62
67
|
};
|
|
63
68
|
|
|
69
|
+
const normalizePathPrefix = (pathPrefix = '') =>
|
|
70
|
+
pathPrefix && !pathPrefix.endsWith('/') ? `${pathPrefix}/` : pathPrefix;
|
|
71
|
+
|
|
72
|
+
const addPathPrefixToSrcSet = (srcset = '', pathPrefix = '') =>
|
|
73
|
+
srcset
|
|
74
|
+
.split(',')
|
|
75
|
+
.map((src) => `${pathPrefix}${src.trim()}`)
|
|
76
|
+
.join(', ');
|
|
77
|
+
|
|
64
78
|
export function formatToMimeType(format: ImgSource['format']): string | undefined {
|
|
65
79
|
return format ? `image/${String(format)}` : undefined;
|
|
66
80
|
}
|
|
@@ -6,7 +6,7 @@ import { ImgAsPicture } from './ImgAsPicture';
|
|
|
6
6
|
import type { Image, ImageProps } from './ImgProps';
|
|
7
7
|
|
|
8
8
|
export const ImgInner = JSX<ImageProps<Image>>(
|
|
9
|
-
({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
9
|
+
({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
|
|
10
10
|
if (!image) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
@@ -31,6 +31,7 @@ export const ImgInner = JSX<ImageProps<Image>>(
|
|
|
31
31
|
imageClassName={imageClassName}
|
|
32
32
|
image={image as Picture}
|
|
33
33
|
isMobile={isMobile}
|
|
34
|
+
pathPrefix={pathPrefix}
|
|
34
35
|
/>
|
|
35
36
|
);
|
|
36
37
|
},
|
|
@@ -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
|
+
));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
-
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
3
|
-
import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
|
-
declare type StyleType = {
|
|
5
|
-
background: string;
|
|
6
|
-
text: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
declare type VersionStyleType = {
|
|
10
|
-
descriptionFont: string;
|
|
11
|
-
gap: string;
|
|
12
|
-
headingType: HeadingType;
|
|
13
|
-
as: HeadingTagType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
|
|
16
|
-
export declare const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType>;
|
|
17
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
-
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
3
|
-
import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
|
-
declare type StyleType = {
|
|
5
|
-
background: string;
|
|
6
|
-
text: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
declare type VersionStyleType = {
|
|
10
|
-
descriptionFont: string;
|
|
11
|
-
gap: string;
|
|
12
|
-
headingType: HeadingType;
|
|
13
|
-
as: HeadingTagType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
|
|
16
|
-
export declare const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType>;
|
|
17
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
18
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.HEADLINE_SMALL_VERSION = exports.HEADLINE_VERSION = exports.HEADLINE_BLOCK_STYLE_MAPS = void 0;
|
|
3
|
-
exports.HEADLINE_BLOCK_STYLE_MAPS = {
|
|
4
|
-
transparent: {
|
|
5
|
-
background: 'bg-transparent',
|
|
6
|
-
text: 'text-primary-text',
|
|
7
|
-
description: 'text-primary-text',
|
|
8
|
-
},
|
|
9
|
-
primary: {
|
|
10
|
-
background: 'bg-white',
|
|
11
|
-
text: 'text-primary-text',
|
|
12
|
-
description: 'text-primary-text',
|
|
13
|
-
},
|
|
14
|
-
secondary: {
|
|
15
|
-
background: 'bg-primary-main',
|
|
16
|
-
text: 'text-white',
|
|
17
|
-
description: 'text-white/80',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
exports.HEADLINE_VERSION = {
|
|
21
|
-
XXL: {
|
|
22
|
-
descriptionFont: 'text-h5',
|
|
23
|
-
gap: 'gap-[18px]',
|
|
24
|
-
headingType: 'h0',
|
|
25
|
-
as: 'h1',
|
|
26
|
-
},
|
|
27
|
-
XL: {
|
|
28
|
-
descriptionFont: 'text-xl-light',
|
|
29
|
-
gap: 'gap-4',
|
|
30
|
-
headingType: 'h1',
|
|
31
|
-
as: 'h1',
|
|
32
|
-
},
|
|
33
|
-
L: {
|
|
34
|
-
descriptionFont: 'text-xl-light',
|
|
35
|
-
gap: 'gap-4',
|
|
36
|
-
headingType: 'h2',
|
|
37
|
-
as: 'h2',
|
|
38
|
-
},
|
|
39
|
-
M: {
|
|
40
|
-
descriptionFont: 'text-xl-light',
|
|
41
|
-
gap: 'gap-3',
|
|
42
|
-
headingType: 'h3',
|
|
43
|
-
as: 'h3',
|
|
44
|
-
},
|
|
45
|
-
S: {
|
|
46
|
-
descriptionFont: 'text-xl-light',
|
|
47
|
-
gap: 'gap-2',
|
|
48
|
-
headingType: 'h4',
|
|
49
|
-
as: 'h4',
|
|
50
|
-
},
|
|
51
|
-
XS: {
|
|
52
|
-
descriptionFont: 'text-l-light',
|
|
53
|
-
gap: 'gap-2',
|
|
54
|
-
headingType: 'h5',
|
|
55
|
-
as: 'h5',
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
exports.HEADLINE_SMALL_VERSION = {
|
|
59
|
-
H6: 'text-h6',
|
|
60
|
-
XL_L: 'text-xl-light',
|
|
61
|
-
XL_R: 'text-xl',
|
|
62
|
-
L_L: 'text-l-light',
|
|
63
|
-
L_R: 'text-l',
|
|
64
|
-
M: 'text-m-light',
|
|
65
|
-
S: 'text-s-light',
|
|
66
|
-
XS: 'text-xs-light',
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":";;AAiBa,QAAA,yBAAyB,GAAmD;IACvF,WAAW,EAAE;QACX,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;KAC7B;CACF,CAAC;AAEW,QAAA,gBAAgB,GAA8C;IACzE,GAAG,EAAE;QACH,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,YAAY;QACjB,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,cAAc;QAC/B,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;CACF,CAAC;AAEW,QAAA,sBAAsB,GAAyC;IAC1E,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,QAAQ;IACb,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,EAAE,EAAE,eAAe;CACpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
-
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
3
|
-
import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
|
-
declare type StyleType = {
|
|
5
|
-
background: string;
|
|
6
|
-
text: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
declare type VersionStyleType = {
|
|
10
|
-
descriptionFont: string;
|
|
11
|
-
gap: string;
|
|
12
|
-
headingType: HeadingType;
|
|
13
|
-
as: HeadingTagType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
|
|
16
|
-
export declare const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType>;
|
|
17
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
18
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
2
|
-
transparent: {
|
|
3
|
-
background: 'bg-transparent',
|
|
4
|
-
text: 'text-primary-text',
|
|
5
|
-
description: 'text-primary-text',
|
|
6
|
-
},
|
|
7
|
-
primary: {
|
|
8
|
-
background: 'bg-white',
|
|
9
|
-
text: 'text-primary-text',
|
|
10
|
-
description: 'text-primary-text',
|
|
11
|
-
},
|
|
12
|
-
secondary: {
|
|
13
|
-
background: 'bg-primary-main',
|
|
14
|
-
text: 'text-white',
|
|
15
|
-
description: 'text-white/80',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
export const HEADLINE_VERSION = {
|
|
19
|
-
XXL: {
|
|
20
|
-
descriptionFont: 'text-h5',
|
|
21
|
-
gap: 'gap-[18px]',
|
|
22
|
-
headingType: 'h0',
|
|
23
|
-
as: 'h1',
|
|
24
|
-
},
|
|
25
|
-
XL: {
|
|
26
|
-
descriptionFont: 'text-xl-light',
|
|
27
|
-
gap: 'gap-4',
|
|
28
|
-
headingType: 'h1',
|
|
29
|
-
as: 'h1',
|
|
30
|
-
},
|
|
31
|
-
L: {
|
|
32
|
-
descriptionFont: 'text-xl-light',
|
|
33
|
-
gap: 'gap-4',
|
|
34
|
-
headingType: 'h2',
|
|
35
|
-
as: 'h2',
|
|
36
|
-
},
|
|
37
|
-
M: {
|
|
38
|
-
descriptionFont: 'text-xl-light',
|
|
39
|
-
gap: 'gap-3',
|
|
40
|
-
headingType: 'h3',
|
|
41
|
-
as: 'h3',
|
|
42
|
-
},
|
|
43
|
-
S: {
|
|
44
|
-
descriptionFont: 'text-xl-light',
|
|
45
|
-
gap: 'gap-2',
|
|
46
|
-
headingType: 'h4',
|
|
47
|
-
as: 'h4',
|
|
48
|
-
},
|
|
49
|
-
XS: {
|
|
50
|
-
descriptionFont: 'text-l-light',
|
|
51
|
-
gap: 'gap-2',
|
|
52
|
-
headingType: 'h5',
|
|
53
|
-
as: 'h5',
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
export const HEADLINE_SMALL_VERSION = {
|
|
57
|
-
H6: 'text-h6',
|
|
58
|
-
XL_L: 'text-xl-light',
|
|
59
|
-
XL_R: 'text-xl',
|
|
60
|
-
L_L: 'text-l-light',
|
|
61
|
-
L_R: 'text-l',
|
|
62
|
-
M: 'text-m-light',
|
|
63
|
-
S: 'text-s-light',
|
|
64
|
-
XS: 'text-xs-light',
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,yBAAyB,GAAmD;IACvF,WAAW,EAAE;QACX,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;KAC7B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA8C;IACzE,GAAG,EAAE;QACH,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,YAAY;QACjB,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,cAAc;QAC/B,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAyC;IAC1E,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,QAAQ;IACb,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,EAAE,EAAE,eAAe;CACpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
-
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
3
|
-
import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
|
-
declare type StyleType = {
|
|
5
|
-
background: string;
|
|
6
|
-
text: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
declare type VersionStyleType = {
|
|
10
|
-
descriptionFont: string;
|
|
11
|
-
gap: string;
|
|
12
|
-
headingType: HeadingType;
|
|
13
|
-
as: HeadingTagType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
|
|
16
|
-
export declare const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType>;
|
|
17
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
|
-
import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
|
|
3
|
-
import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
|
-
declare type StyleType = {
|
|
5
|
-
background: string;
|
|
6
|
-
text: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
declare type VersionStyleType = {
|
|
10
|
-
descriptionFont: string;
|
|
11
|
-
gap: string;
|
|
12
|
-
headingType: HeadingType;
|
|
13
|
-
as: HeadingTagType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
|
|
16
|
-
export declare const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType>;
|
|
17
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
18
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.HEADLINE_SMALL_VERSION = exports.HEADLINE_VERSION = exports.HEADLINE_BLOCK_STYLE_MAPS = void 0;
|
|
3
|
-
exports.HEADLINE_BLOCK_STYLE_MAPS = {
|
|
4
|
-
transparent: {
|
|
5
|
-
background: 'bg-transparent',
|
|
6
|
-
text: 'text-primary-text',
|
|
7
|
-
description: 'text-primary-text',
|
|
8
|
-
},
|
|
9
|
-
primary: {
|
|
10
|
-
background: 'bg-white',
|
|
11
|
-
text: 'text-primary-text',
|
|
12
|
-
description: 'text-primary-text',
|
|
13
|
-
},
|
|
14
|
-
secondary: {
|
|
15
|
-
background: 'bg-primary-main',
|
|
16
|
-
text: 'text-white',
|
|
17
|
-
description: 'text-white/80',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
exports.HEADLINE_VERSION = {
|
|
21
|
-
XXL: {
|
|
22
|
-
descriptionFont: 'text-h5',
|
|
23
|
-
gap: 'gap-[18px]',
|
|
24
|
-
headingType: 'h0',
|
|
25
|
-
as: 'h1',
|
|
26
|
-
},
|
|
27
|
-
XL: {
|
|
28
|
-
descriptionFont: 'text-xl-light',
|
|
29
|
-
gap: 'gap-4',
|
|
30
|
-
headingType: 'h1',
|
|
31
|
-
as: 'h1',
|
|
32
|
-
},
|
|
33
|
-
L: {
|
|
34
|
-
descriptionFont: 'text-xl-light',
|
|
35
|
-
gap: 'gap-4',
|
|
36
|
-
headingType: 'h2',
|
|
37
|
-
as: 'h2',
|
|
38
|
-
},
|
|
39
|
-
M: {
|
|
40
|
-
descriptionFont: 'text-xl-light',
|
|
41
|
-
gap: 'gap-3',
|
|
42
|
-
headingType: 'h3',
|
|
43
|
-
as: 'h3',
|
|
44
|
-
},
|
|
45
|
-
S: {
|
|
46
|
-
descriptionFont: 'text-xl-light',
|
|
47
|
-
gap: 'gap-2',
|
|
48
|
-
headingType: 'h4',
|
|
49
|
-
as: 'h4',
|
|
50
|
-
},
|
|
51
|
-
XS: {
|
|
52
|
-
descriptionFont: 'text-l-light',
|
|
53
|
-
gap: 'gap-2',
|
|
54
|
-
headingType: 'h5',
|
|
55
|
-
as: 'h5',
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
exports.HEADLINE_SMALL_VERSION = {
|
|
59
|
-
H6: 'text-h6',
|
|
60
|
-
XL_L: 'text-xl-light',
|
|
61
|
-
XL_R: 'text-xl',
|
|
62
|
-
L_L: 'text-l-light',
|
|
63
|
-
L_R: 'text-l',
|
|
64
|
-
M: 'text-m-light',
|
|
65
|
-
S: 'text-s-light',
|
|
66
|
-
XS: 'text-xs-light',
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":";;AAiBa,QAAA,yBAAyB,GAAmD;IACvF,WAAW,EAAE;QACX,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;KAC7B;CACF,CAAC;AAEW,QAAA,gBAAgB,GAA8C;IACzE,GAAG,EAAE;QACH,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,YAAY;QACjB,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,CAAC,EAAE;QACD,eAAe,EAAE,eAAe;QAChC,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;IACD,EAAE,EAAE;QACF,eAAe,EAAE,cAAc;QAC/B,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,IAAI;QACjB,EAAE,EAAE,IAAI;KACT;CACF,CAAC;AAEW,QAAA,sBAAsB,GAAyC;IAC1E,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,QAAQ;IACb,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,EAAE,EAAE,eAAe;CACpB,CAAC"}
|