@redneckz/wildless-cms-uni-blocks 0.6.45 → 0.6.47
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 +193 -173
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/components/ProductTile/ProductTileContent.d.ts +5 -5
- package/bundle/components/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/bundle/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/bundle/content-page-repository/transformHTML.d.ts +1 -0
- package/bundle/model/AlignText.d.ts +2 -1
- package/bundle/model/BlockVersion.d.ts +9 -0
- package/bundle/ui-kit/Img/Img.mobile.d.ts +2 -2
- package/bundle/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- package/bundle/ui-kit/Img/ImgInner.d.ts +2 -2
- package/bundle/ui-kit/Img/ImgProps.d.ts +5 -5
- package/bundle/ui-kit/RichText/RichText.d.ts +2 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/Blocks.js +15 -11
- 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/BusinessBlock/BusinessCard.js +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +3 -1
- package/dist/components/Carousel/Carousel.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/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -3
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.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/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderBurger.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- 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/ProductTile/ProductTileContent.d.ts +5 -5
- package/dist/components/ProductTile/renderBenefit.js +4 -4
- package/dist/components/ProductTile/renderBenefit.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/dist/components/RichTextBlock/RichTextBlock.js +11 -0
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -0
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/dist/components/RichTextBlock/RichTextBlockContent.js +2 -0
- package/dist/components/RichTextBlock/RichTextBlockContent.js.map +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +3 -16
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/dist/content-page-repository/replaceHeadingTags.js +5 -0
- package/dist/content-page-repository/replaceHeadingTags.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.js +5 -0
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformHTML.d.ts +1 -0
- package/dist/content-page-repository/transformHTML.js +23 -0
- package/dist/content-page-repository/transformHTML.js.map +1 -0
- package/dist/content-page-repository/transformMarkdown.js +2 -1
- package/dist/content-page-repository/transformMarkdown.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 +9 -0
- package/dist/model/BlockVersion.js +20 -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/Button/ButtonSection.js +1 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +2 -2
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- 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.d.ts +2 -2
- package/dist/ui-kit/Img/ImgInner.js +3 -9
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +5 -5
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/Location/Location.js +3 -3
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Logo/renderImage.js +1 -1
- package/dist/ui-kit/Logo/renderImage.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/RichText/RichText.d.ts +2 -0
- package/dist/ui-kit/{MarkdownText/MarkdownText.js → RichText/RichText.js} +5 -5
- package/dist/ui-kit/RichText/RichText.js.map +1 -0
- package/dist/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/dist/ui-kit/{MarkdownText/MarkdownTextProps.js → RichText/RichTextProps.js} +1 -1
- package/dist/ui-kit/RichText/RichTextProps.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +1 -1
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/Blocks.js +15 -11
- 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/BusinessBlock/BusinessCard.js +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +3 -1
- package/lib/components/Carousel/Carousel.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/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.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/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderBurger.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- 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/ProductTile/ProductTileContent.d.ts +5 -5
- package/lib/components/ProductTile/renderBenefit.js +4 -4
- package/lib/components/ProductTile/renderBenefit.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +6 -0
- package/lib/components/RichTextBlock/RichTextBlock.js +9 -0
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.js +2 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.js.map +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +3 -16
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/lib/content-page-repository/replaceHeadingTags.js +2 -0
- package/lib/content-page-repository/replaceHeadingTags.js.map +1 -0
- package/lib/content-page-repository/transformContentPage.js +5 -0
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformHTML.d.ts +1 -0
- package/lib/content-page-repository/transformHTML.js +17 -0
- package/lib/content-page-repository/transformHTML.js.map +1 -0
- package/lib/content-page-repository/transformMarkdown.js +2 -1
- package/lib/content-page-repository/transformMarkdown.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 +9 -0
- package/lib/model/BlockVersion.js +19 -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/Button/ButtonSection.js +1 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +2 -2
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- 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.d.ts +2 -2
- package/lib/ui-kit/Img/ImgInner.js +3 -9
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +5 -5
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/Location/Location.js +3 -3
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Logo/renderImage.js +1 -1
- package/lib/ui-kit/Logo/renderImage.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/RichText/RichText.d.ts +2 -0
- package/lib/ui-kit/RichText/RichText.fixture.d.ts +5 -0
- package/lib/ui-kit/{MarkdownText/MarkdownText.js → RichText/RichText.js} +4 -4
- package/lib/ui-kit/RichText/RichText.js.map +1 -0
- package/lib/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/lib/ui-kit/RichText/RichTextProps.js +2 -0
- package/lib/ui-kit/RichText/RichTextProps.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +35 -49
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/components/ProductTile/ProductTileContent.d.ts +5 -5
- package/mobile/bundle/components/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/mobile/bundle/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformHTML.d.ts +1 -0
- package/mobile/bundle/model/AlignText.d.ts +2 -1
- package/mobile/bundle/model/BlockVersion.d.ts +9 -0
- package/mobile/bundle/ui-kit/Img/Img.d.ts +2 -2
- package/mobile/bundle/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- package/mobile/bundle/ui-kit/Img/ImgInner.d.ts +2 -2
- package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +5 -5
- package/mobile/bundle/ui-kit/RichText/RichText.d.ts +2 -0
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +6 -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/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +3 -1
- package/mobile/dist/components/Carousel/Carousel.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/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -3
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.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/Header/HeaderBurger.js +1 -1
- package/mobile/dist/components/Header/HeaderBurger.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- 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/ProductTile/ProductTileContent.d.ts +5 -5
- package/mobile/dist/components/ProductTile/renderBenefit.js +4 -4
- package/mobile/dist/components/ProductTile/renderBenefit.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/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +11 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.js +2 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.js.map +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -16
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/mobile/dist/content-page-repository/replaceHeadingTags.js +5 -0
- package/mobile/dist/content-page-repository/replaceHeadingTags.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.js +5 -0
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformHTML.d.ts +1 -0
- package/mobile/dist/content-page-repository/transformHTML.js +23 -0
- package/mobile/dist/content-page-repository/transformHTML.js.map +1 -0
- package/mobile/dist/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/dist/content-page-repository/transformMarkdown.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 +9 -0
- package/mobile/dist/model/BlockVersion.js +20 -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/Button/ButtonSection.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.d.ts +2 -2
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- 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.d.ts +2 -2
- package/mobile/dist/ui-kit/Img/ImgInner.js +3 -9
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +5 -5
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/Location/Location.js +3 -3
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/renderImage.js +1 -1
- package/mobile/dist/ui-kit/Logo/renderImage.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/RichText/RichText.d.ts +2 -0
- package/mobile/dist/ui-kit/{MarkdownText/MarkdownText.js → RichText/RichText.js} +5 -5
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -0
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/mobile/dist/ui-kit/{MarkdownText/MarkdownTextProps.js → RichText/RichTextProps.js} +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.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/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +3 -1
- package/mobile/lib/components/Carousel/Carousel.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/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.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/Header/HeaderBurger.js +1 -1
- package/mobile/lib/components/Header/HeaderBurger.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- 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/ProductTile/ProductTileContent.d.ts +5 -5
- package/mobile/lib/components/ProductTile/renderBenefit.js +4 -4
- package/mobile/lib/components/ProductTile/renderBenefit.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/RichTextBlock/RichTextBlock.d.ts +6 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +9 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +5 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.js +2 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.js.map +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -16
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/replaceHeadingTags.d.ts +1 -0
- package/mobile/lib/content-page-repository/replaceHeadingTags.js +2 -0
- package/mobile/lib/content-page-repository/replaceHeadingTags.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.js +5 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformHTML.d.ts +1 -0
- package/mobile/lib/content-page-repository/transformHTML.js +17 -0
- package/mobile/lib/content-page-repository/transformHTML.js.map +1 -0
- package/mobile/lib/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/lib/content-page-repository/transformMarkdown.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 +9 -0
- package/mobile/lib/model/BlockVersion.js +19 -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/Button/ButtonSection.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.d.ts +2 -2
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +2 -2
- 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.d.ts +2 -2
- package/mobile/lib/ui-kit/Img/ImgInner.js +3 -9
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +5 -5
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/Location/Location.js +3 -3
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/renderImage.js +1 -1
- package/mobile/lib/ui-kit/Logo/renderImage.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/RichText/RichText.d.ts +2 -0
- package/mobile/lib/ui-kit/{MarkdownText/MarkdownText.js → RichText/RichText.js} +4 -4
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -0
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/mobile/lib/ui-kit/RichText/RichTextProps.js +2 -0
- package/mobile/lib/ui-kit/RichText/RichTextProps.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/src/common.css +27 -10
- package/mobile/src/components/Bonus/Bonus.tsx +0 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -6
- package/mobile/src/components/Carousel/Carousel.tsx +3 -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/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/mobile/src/components/Catalog/Catalog.tsx +0 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +3 -2
- 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/Header/HeaderBurger.tsx +2 -2
- 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/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- 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/ProductTile/ProductTile.ui.json +1 -1
- package/mobile/src/components/ProductTile/ProductTileContent.ts +5 -5
- package/mobile/src/components/ProductTile/renderBenefit.tsx +4 -4
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +5 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +17 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.ui.json +7 -0
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +6 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +151 -6
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
- package/mobile/src/content-page-repository/replaceHeadingTags.ts +2 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +4 -0
- package/mobile/src/content-page-repository/transformHTML.ts +19 -0
- package/mobile/src/content-page-repository/transformMarkdown.ts +2 -1
- package/mobile/src/model/AlignText.ts +2 -1
- package/mobile/src/model/BlockVersion.ts +30 -0
- package/mobile/src/services/BlockRouter/BlockRouter.ts +5 -3
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Img/Img.tsx +2 -3
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +20 -4
- package/mobile/src/ui-kit/Img/ImgInner.tsx +15 -22
- package/mobile/src/ui-kit/Img/ImgProps.ts +5 -6
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/Location/Location.tsx +8 -6
- package/mobile/src/ui-kit/Logo/renderImage.tsx +2 -1
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
- package/mobile/src/ui-kit/RichText/RichText.tsx +8 -0
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +6 -0
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +2 -2
- package/mobile/src/ui-kit/Text/TextProps.ts +1 -0
- package/package.json +4 -1
- package/src/common.css +27 -10
- package/src/components/AccordionItem/AccordionItem.tsx +7 -1
- package/src/components/Blocks.ts +15 -11
- package/src/components/Bonus/Bonus.tsx +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +2 -6
- package/src/components/Carousel/Carousel.tsx +3 -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/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +9 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/src/components/Catalog/Catalog.tsx +0 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +3 -2
- 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/Header/HeaderBurger.tsx +2 -2
- 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/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- 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/ProductTile/ProductTile.ui.json +1 -1
- package/src/components/ProductTile/ProductTileContent.ts +5 -5
- package/src/components/ProductTile/renderBenefit.tsx +4 -4
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/RichTextBlock/RichTextBlock.example.json +5 -0
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +29 -0
- package/src/components/RichTextBlock/RichTextBlock.tsx +17 -0
- package/src/components/RichTextBlock/RichTextBlock.ui.json +7 -0
- package/src/components/RichTextBlock/RichTextBlockContent.ts +6 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +151 -6
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
- package/src/content-page-repository/replaceHeadingTags.ts +2 -0
- package/src/content-page-repository/transformContentPage.ts +4 -0
- package/src/content-page-repository/transformHTML.ts +19 -0
- package/src/content-page-repository/transformMarkdown.ts +2 -1
- package/src/model/AlignText.ts +2 -1
- package/src/model/BlockVersion.ts +30 -0
- package/src/services/BlockRouter/BlockRouter.ts +5 -3
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Img/Img.mobile.tsx +2 -3
- package/src/ui-kit/Img/ImgAsPicture.tsx +20 -4
- package/src/ui-kit/Img/ImgInner.tsx +15 -22
- package/src/ui-kit/Img/ImgProps.ts +5 -6
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +8 -6
- package/src/ui-kit/Logo/renderImage.tsx +2 -1
- package/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
- package/src/ui-kit/RichText/RichText.fixture.tsx +28 -0
- package/src/ui-kit/RichText/RichText.tsx +8 -0
- package/src/ui-kit/RichText/RichTextProps.ts +6 -0
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +2 -2
- package/src/ui-kit/Text/TextProps.ts +1 -0
- package/tailwind.config.cjs +7 -7
- package/bundle/components/Headline/constants.d.ts +0 -18
- package/bundle/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/bundle/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/bundle/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- 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/dist/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/dist/ui-kit/Img/getIconVersion.js +0 -7
- package/dist/ui-kit/Img/getIconVersion.js.map +0 -1
- package/dist/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/dist/ui-kit/MarkdownText/MarkdownText.js.map +0 -1
- package/dist/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- package/dist/ui-kit/MarkdownText/MarkdownTextProps.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/lib/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/lib/ui-kit/Img/getIconVersion.js +0 -4
- package/lib/ui-kit/Img/getIconVersion.js.map +0 -1
- package/lib/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/lib/ui-kit/MarkdownText/MarkdownText.js.map +0 -1
- package/lib/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- package/lib/ui-kit/MarkdownText/MarkdownTextProps.js +0 -2
- package/lib/ui-kit/MarkdownText/MarkdownTextProps.js.map +0 -1
- package/mobile/bundle/components/Headline/constants.d.ts +0 -18
- package/mobile/bundle/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/mobile/bundle/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/mobile/bundle/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- 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/dist/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/mobile/dist/ui-kit/Img/getIconVersion.js +0 -7
- package/mobile/dist/ui-kit/Img/getIconVersion.js.map +0 -1
- package/mobile/dist/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/mobile/dist/ui-kit/MarkdownText/MarkdownText.js.map +0 -1
- package/mobile/dist/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- package/mobile/dist/ui-kit/MarkdownText/MarkdownTextProps.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/lib/ui-kit/Img/getIconVersion.d.ts +0 -2
- package/mobile/lib/ui-kit/Img/getIconVersion.js +0 -4
- package/mobile/lib/ui-kit/Img/getIconVersion.js.map +0 -1
- package/mobile/lib/ui-kit/MarkdownText/MarkdownText.d.ts +0 -2
- package/mobile/lib/ui-kit/MarkdownText/MarkdownText.js.map +0 -1
- package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.d.ts +0 -6
- package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.js +0 -2
- package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.js.map +0 -1
- package/mobile/src/components/Headline/constants.ts +0 -84
- package/mobile/src/ui-kit/Img/getIconVersion.tsx +0 -5
- package/mobile/src/ui-kit/MarkdownText/MarkdownText.tsx +0 -8
- package/mobile/src/ui-kit/MarkdownText/MarkdownTextProps.ts +0 -6
- package/src/components/Headline/constants.ts +0 -84
- package/src/ui-kit/Img/getIconVersion.tsx +0 -5
- package/src/ui-kit/MarkdownText/MarkdownText.tsx +0 -8
- package/src/ui-kit/MarkdownText/MarkdownTextProps.ts +0 -6
|
@@ -1,20 +1,165 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "primary",
|
|
4
4
|
"isPadding": false,
|
|
5
5
|
"isInnerPadding": true,
|
|
6
6
|
"align": "left",
|
|
7
7
|
"gap": ""
|
|
8
8
|
},
|
|
9
|
+
"style": ["col-span-12"],
|
|
10
|
+
"type": "VerticalLayout",
|
|
9
11
|
"blocks": [
|
|
10
12
|
{
|
|
11
|
-
"type": "Headline",
|
|
12
13
|
"content": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"isBlur": false,
|
|
15
|
+
"visibleItemCount": 3,
|
|
16
|
+
"isCycle": false
|
|
16
17
|
},
|
|
17
|
-
"style": ["col-span-12"]
|
|
18
|
+
"style": ["col-span-12"],
|
|
19
|
+
"type": "Carousel",
|
|
20
|
+
"blocks": [
|
|
21
|
+
{
|
|
22
|
+
"content": {
|
|
23
|
+
"image": {
|
|
24
|
+
"alignment": "center",
|
|
25
|
+
"size": {
|
|
26
|
+
"width": 230,
|
|
27
|
+
"height": 230
|
|
28
|
+
},
|
|
29
|
+
"alt": "",
|
|
30
|
+
"title": "",
|
|
31
|
+
"iconVersion": "normal",
|
|
32
|
+
"format": "webp"
|
|
33
|
+
},
|
|
34
|
+
"button": {
|
|
35
|
+
"text": "Подробнее",
|
|
36
|
+
"icon": {
|
|
37
|
+
"alignment": "center",
|
|
38
|
+
"format": "webp",
|
|
39
|
+
"size": {
|
|
40
|
+
"width": 24,
|
|
41
|
+
"height": 24
|
|
42
|
+
},
|
|
43
|
+
"alt": "",
|
|
44
|
+
"title": "",
|
|
45
|
+
"iconVersion": "normal"
|
|
46
|
+
},
|
|
47
|
+
"version": "primary",
|
|
48
|
+
"iconRight": {
|
|
49
|
+
"alignment": "center",
|
|
50
|
+
"format": "webp",
|
|
51
|
+
"size": {
|
|
52
|
+
"width": 24,
|
|
53
|
+
"height": 24
|
|
54
|
+
},
|
|
55
|
+
"alt": "",
|
|
56
|
+
"title": "",
|
|
57
|
+
"iconVersion": "normal"
|
|
58
|
+
},
|
|
59
|
+
"target": "_self",
|
|
60
|
+
"href": ""
|
|
61
|
+
},
|
|
62
|
+
"title": "Заголовок карточки 1",
|
|
63
|
+
"description": "Описание карточки 1"
|
|
64
|
+
},
|
|
65
|
+
"style": ["col-span-12"],
|
|
66
|
+
"type": "CarouselCatalogCard"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"content": {
|
|
70
|
+
"image": {
|
|
71
|
+
"alignment": "center",
|
|
72
|
+
"size": {
|
|
73
|
+
"width": 230,
|
|
74
|
+
"height": 230
|
|
75
|
+
},
|
|
76
|
+
"alt": "",
|
|
77
|
+
"title": "",
|
|
78
|
+
"iconVersion": "normal",
|
|
79
|
+
"format": "webp"
|
|
80
|
+
},
|
|
81
|
+
"button": {
|
|
82
|
+
"text": "Подробнее",
|
|
83
|
+
"icon": {
|
|
84
|
+
"alignment": "center",
|
|
85
|
+
"format": "webp",
|
|
86
|
+
"size": {
|
|
87
|
+
"width": 24,
|
|
88
|
+
"height": 24
|
|
89
|
+
},
|
|
90
|
+
"alt": "",
|
|
91
|
+
"title": "",
|
|
92
|
+
"iconVersion": "normal"
|
|
93
|
+
},
|
|
94
|
+
"version": "primary",
|
|
95
|
+
"iconRight": {
|
|
96
|
+
"alignment": "center",
|
|
97
|
+
"format": "webp",
|
|
98
|
+
"size": {
|
|
99
|
+
"width": 24,
|
|
100
|
+
"height": 24
|
|
101
|
+
},
|
|
102
|
+
"alt": "",
|
|
103
|
+
"title": "",
|
|
104
|
+
"iconVersion": "normal"
|
|
105
|
+
},
|
|
106
|
+
"target": "_self",
|
|
107
|
+
"href": ""
|
|
108
|
+
},
|
|
109
|
+
"title": "Заголовок карточки 2",
|
|
110
|
+
"description": "Описание карточки 2"
|
|
111
|
+
},
|
|
112
|
+
"style": ["col-span-12"],
|
|
113
|
+
"type": "CarouselCatalogCard"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"content": {
|
|
117
|
+
"image": {
|
|
118
|
+
"alignment": "center",
|
|
119
|
+
"size": {
|
|
120
|
+
"width": 230,
|
|
121
|
+
"height": 230
|
|
122
|
+
},
|
|
123
|
+
"alt": "",
|
|
124
|
+
"title": "",
|
|
125
|
+
"iconVersion": "normal",
|
|
126
|
+
"format": "webp"
|
|
127
|
+
},
|
|
128
|
+
"button": {
|
|
129
|
+
"text": "Подробнее",
|
|
130
|
+
"icon": {
|
|
131
|
+
"alignment": "center",
|
|
132
|
+
"format": "webp",
|
|
133
|
+
"size": {
|
|
134
|
+
"width": 24,
|
|
135
|
+
"height": 24
|
|
136
|
+
},
|
|
137
|
+
"alt": "",
|
|
138
|
+
"title": "",
|
|
139
|
+
"iconVersion": "normal"
|
|
140
|
+
},
|
|
141
|
+
"version": "primary",
|
|
142
|
+
"iconRight": {
|
|
143
|
+
"alignment": "center",
|
|
144
|
+
"format": "webp",
|
|
145
|
+
"size": {
|
|
146
|
+
"width": 24,
|
|
147
|
+
"height": 24
|
|
148
|
+
},
|
|
149
|
+
"alt": "",
|
|
150
|
+
"title": "",
|
|
151
|
+
"iconVersion": "normal"
|
|
152
|
+
},
|
|
153
|
+
"target": "_self",
|
|
154
|
+
"href": ""
|
|
155
|
+
},
|
|
156
|
+
"title": "Заголовок карточки 3",
|
|
157
|
+
"description": "Описание карточки 3"
|
|
158
|
+
},
|
|
159
|
+
"style": ["col-span-12"],
|
|
160
|
+
"type": "CarouselCatalogCard"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
18
163
|
}
|
|
19
164
|
]
|
|
20
165
|
}
|
|
@@ -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)
|
|
@@ -4,6 +4,7 @@ import type { ContentPageDef } from '../model/ContentPageDef';
|
|
|
4
4
|
import type { Picture } from '../model/Picture';
|
|
5
5
|
import { mapJSON } from './mapJSON';
|
|
6
6
|
import type { TransformationOptions } from './TransformationOptions';
|
|
7
|
+
import { transformHTML } from './transformHTML';
|
|
7
8
|
import { transformMarkdown } from './transformMarkdown';
|
|
8
9
|
import { transformPicture } from './transformPicture';
|
|
9
10
|
|
|
@@ -18,9 +19,12 @@ export async function transformContentPage(
|
|
|
18
19
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
19
20
|
return mapJSON<ContentPageDef>(JSON.parse(content), async (value: any, [key]) => {
|
|
20
21
|
const isMarkdown = typeof value === 'string' && key?.endsWith('__md');
|
|
22
|
+
const isHTML = typeof value === 'string' && key?.endsWith('__html');
|
|
21
23
|
|
|
22
24
|
if (isMarkdown) {
|
|
23
25
|
return await transformMarkdown(value);
|
|
26
|
+
} else if (isHTML) {
|
|
27
|
+
return await transformHTML(value);
|
|
24
28
|
} else if (isPicture(value)) {
|
|
25
29
|
try {
|
|
26
30
|
return await transformPicture(pagePath, value, options);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import rehypeParse from 'rehype-parse/lib';
|
|
2
|
+
import rehypeSanitize from 'rehype-sanitize';
|
|
3
|
+
import rehypeStringify from 'rehype-stringify';
|
|
4
|
+
import { unified } from 'unified';
|
|
5
|
+
import { replaceHeadingTags } from './replaceHeadingTags';
|
|
6
|
+
|
|
7
|
+
export async function transformHTML(html: string | null | undefined): Promise<string> {
|
|
8
|
+
if (!html) {
|
|
9
|
+
return '';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const result = await unified()
|
|
13
|
+
.use(rehypeParse)
|
|
14
|
+
.use(rehypeSanitize)
|
|
15
|
+
.use(rehypeStringify)
|
|
16
|
+
.process(html);
|
|
17
|
+
|
|
18
|
+
return replaceHeadingTags(result.toString('utf-8'));
|
|
19
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import remarkHtml from 'remark-html';
|
|
2
2
|
import remarkParse from 'remark-parse';
|
|
3
3
|
import { unified } from 'unified';
|
|
4
|
+
import { replaceHeadingTags } from './replaceHeadingTags';
|
|
4
5
|
|
|
5
6
|
export async function transformMarkdown(markdown: string | null | undefined): Promise<string> {
|
|
6
7
|
if (!markdown) {
|
|
@@ -9,5 +10,5 @@ export async function transformMarkdown(markdown: string | null | undefined): Pr
|
|
|
9
10
|
|
|
10
11
|
const result = await unified().use(remarkParse).use(remarkHtml).process(markdown);
|
|
11
12
|
|
|
12
|
-
return result.toString('utf-8')
|
|
13
|
+
return replaceHeadingTags(result.toString('utf-8'));
|
|
13
14
|
}
|
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 ["Основная", "Второстепенная"]
|
|
@@ -10,6 +12,12 @@ export type BlockVersion = 'primary' | 'secondary';
|
|
|
10
12
|
*/
|
|
11
13
|
export type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
|
|
12
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @title Цвет блока
|
|
17
|
+
* @enumNames [ "Основная", "Второстепенная", "Серая"]
|
|
18
|
+
*/
|
|
19
|
+
export type BlockVersionWithGray = 'primary' | 'secondary' | 'gray';
|
|
20
|
+
|
|
13
21
|
export const VersionStyleMap: Record<BlockVersion, string> = {
|
|
14
22
|
primary: 'bg-white text-primary-text',
|
|
15
23
|
secondary: 'bg-primary-main text-white',
|
|
@@ -25,3 +33,25 @@ export const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent,
|
|
|
25
33
|
primary: 'bg-white text-primary-text',
|
|
26
34
|
secondary: 'bg-primary-main text-white',
|
|
27
35
|
};
|
|
36
|
+
|
|
37
|
+
export const VersionWithGrayStyleMap: Record<BlockVersionWithGray, string> = {
|
|
38
|
+
primary: 'bg-white text-primary-text',
|
|
39
|
+
secondary: 'bg-primary-main text-white',
|
|
40
|
+
gray: 'bg-main-divider text-primary-text',
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const GapStyleMap: Record<GapVersion, string> = {
|
|
44
|
+
XXL: 'gap-12',
|
|
45
|
+
XL: 'gap-10',
|
|
46
|
+
L: 'gap-8',
|
|
47
|
+
M: 'gap-4',
|
|
48
|
+
S: 'gap-2',
|
|
49
|
+
XS: 'gap-1',
|
|
50
|
+
'': '',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const LayoutBackgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
|
|
54
|
+
transparent: '',
|
|
55
|
+
primary: 'bg-white',
|
|
56
|
+
secondary: 'bg-primary-main',
|
|
57
|
+
};
|
|
@@ -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
|
}
|
|
@@ -47,5 +47,5 @@ const renderButtonIcon = (icon: Picture) => {
|
|
|
47
47
|
}
|
|
48
48
|
const iconWidth = icon?.size?.width ? `${icon.size.width}` : '24';
|
|
49
49
|
|
|
50
|
-
return <Img image={
|
|
50
|
+
return <Img image={icon} width={iconWidth} height="24" asSVG />;
|
|
51
51
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { ImgInner } from './ImgInner';
|
|
3
|
+
import type { ImageProps } from './ImgProps';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const Img = JSX<ImageProps<Image>>((props) => <ImgInner {...props} isMobile={true} />);
|
|
5
|
+
export const Img = JSX<ImageProps>((props) => <ImgInner {...props} isMobile={true} />);
|
|
@@ -10,8 +10,8 @@ const sourcesComparator = (a: Picture, b: Picture) => {
|
|
|
10
10
|
return 0;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const ImgAsPicture = JSX<ImageProps
|
|
14
|
-
({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
13
|
+
export const ImgAsPicture = JSX<ImageProps>(
|
|
14
|
+
({ className = '', image, imageClassName = '', isMobile = false, pathPrefix }) => {
|
|
15
15
|
if (!image || (!image?.sources && !image?.src)) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
@@ -26,14 +26,18 @@ export const ImgAsPicture = JSX<ImageProps<Picture>>(
|
|
|
26
26
|
.map(({ src, format, media }, index) => (
|
|
27
27
|
<source
|
|
28
28
|
key={`${index}_${src}`}
|
|
29
|
-
srcSet={src}
|
|
29
|
+
srcSet={addPathPrefixToSrcSet(src, pathPrefix)}
|
|
30
30
|
type={formatToMimeType(format)}
|
|
31
31
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
32
32
|
{...image.size}
|
|
33
33
|
/>
|
|
34
34
|
))
|
|
35
35
|
: null}
|
|
36
|
-
{renderImg(
|
|
36
|
+
{renderImg(
|
|
37
|
+
{ ...image, src: addPathPrefixToSrc(image.src, pathPrefix) },
|
|
38
|
+
imageClassName,
|
|
39
|
+
isMobile,
|
|
40
|
+
)}
|
|
37
41
|
</picture>
|
|
38
42
|
);
|
|
39
43
|
},
|
|
@@ -61,6 +65,18 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
|
|
|
61
65
|
);
|
|
62
66
|
};
|
|
63
67
|
|
|
68
|
+
const normalizePathPrefix = (pathPrefix = '') =>
|
|
69
|
+
pathPrefix && !pathPrefix.endsWith('/') ? `${pathPrefix}/` : pathPrefix;
|
|
70
|
+
|
|
71
|
+
const addPathPrefixToSrc = (src?: string, pathPrefix?: string) =>
|
|
72
|
+
!src || src?.startsWith('data:image') ? src : `${normalizePathPrefix(pathPrefix)}${src}`;
|
|
73
|
+
|
|
74
|
+
const addPathPrefixToSrcSet = (srcset?: string, pathPrefix?: string) =>
|
|
75
|
+
srcset
|
|
76
|
+
?.split(',')
|
|
77
|
+
.map((src) => addPathPrefixToSrc(src.trim(), pathPrefix))
|
|
78
|
+
.join(', ');
|
|
79
|
+
|
|
64
80
|
export function formatToMimeType(format: ImgSource['format']): string | undefined {
|
|
65
81
|
return format ? `image/${String(format)}` : undefined;
|
|
66
82
|
}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
2
|
import { Icon } from '../Icon/Icon';
|
|
4
|
-
import { getIconVersion } from './getIconVersion';
|
|
5
3
|
import { ImgAsPicture } from './ImgAsPicture';
|
|
6
|
-
import type {
|
|
4
|
+
import type { ImageProps } from './ImgProps';
|
|
7
5
|
|
|
8
|
-
export const ImgInner = JSX<ImageProps
|
|
9
|
-
({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
10
|
-
if (!image) {
|
|
6
|
+
export const ImgInner = JSX<ImageProps>(
|
|
7
|
+
({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
|
|
8
|
+
if (!image?.src && !image?.icon) {
|
|
11
9
|
return null;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{...iconProps}
|
|
24
|
-
/>
|
|
25
|
-
) : null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return (
|
|
12
|
+
return image.icon ? (
|
|
13
|
+
<Icon
|
|
14
|
+
className={className}
|
|
15
|
+
imageClassName={imageClassName}
|
|
16
|
+
iconVersion={image?.iconVersion || 'normal'}
|
|
17
|
+
name={image.icon}
|
|
18
|
+
{...iconProps}
|
|
19
|
+
/>
|
|
20
|
+
) : (
|
|
29
21
|
<ImgAsPicture
|
|
30
22
|
className={className}
|
|
31
23
|
imageClassName={imageClassName}
|
|
32
|
-
image={image
|
|
24
|
+
image={image}
|
|
33
25
|
isMobile={isMobile}
|
|
26
|
+
pathPrefix={pathPrefix}
|
|
34
27
|
/>
|
|
35
28
|
);
|
|
36
29
|
},
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { IconCompatibilityFields
|
|
2
|
+
import type { IconCompatibilityFields } from '../Icon/IconProps';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export interface ImageContent<T = Picture> {
|
|
7
|
-
image?: T;
|
|
4
|
+
export interface ImageContent {
|
|
5
|
+
image?: Picture;
|
|
8
6
|
}
|
|
9
|
-
export interface ImageProps
|
|
7
|
+
export interface ImageProps extends ImageContent, IconCompatibilityFields {
|
|
10
8
|
className?: string;
|
|
11
9
|
imageClassName?: string;
|
|
12
10
|
isMobile?: boolean;
|
|
11
|
+
pathPrefix?: string;
|
|
13
12
|
}
|
|
@@ -30,7 +30,7 @@ export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items
|
|
|
30
30
|
>
|
|
31
31
|
{_.title}
|
|
32
32
|
<Img
|
|
33
|
-
image={hiddenTables[key] ? 'PlusIcon' : 'MinusIcon'}
|
|
33
|
+
image={{ icon: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon' }}
|
|
34
34
|
className="absolute right-[22px]"
|
|
35
35
|
width="24"
|
|
36
36
|
height="24"
|
|
@@ -103,7 +103,7 @@ const CloseButton = JSX<CloseButtonProps>(({ close }) => (
|
|
|
103
103
|
close && close();
|
|
104
104
|
}}
|
|
105
105
|
>
|
|
106
|
-
<Img image=
|
|
106
|
+
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
|
|
107
107
|
</button>
|
|
108
108
|
));
|
|
109
109
|
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { BgColorVersion } from '../../model/BgColorVersion';
|
|
1
|
+
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import { Img } from '../Img/Img';
|
|
4
4
|
|
|
@@ -23,6 +23,7 @@ export const renderImage = (
|
|
|
23
23
|
className={SVG_COLOR[bgColor]}
|
|
24
24
|
width={size?.width}
|
|
25
25
|
height={size?.height}
|
|
26
|
+
pathPrefix="/wcms-resources/"
|
|
26
27
|
asSVG
|
|
27
28
|
/>
|
|
28
29
|
) : (
|
|
@@ -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
|
+
));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RichText } from './RichText';
|
|
2
|
+
|
|
3
|
+
const HTML = `
|
|
4
|
+
<p class="h1">Заголовок 1</p>
|
|
5
|
+
<p class="h2">Заголовок 2</p>
|
|
6
|
+
<p class="h3">Заголовок 3</p>
|
|
7
|
+
<p class="h4">Заголовок 4</p>
|
|
8
|
+
<p class="h5">Заголовок 5</p>
|
|
9
|
+
<p class="h6">Заголовок 6</p>
|
|
10
|
+
<p>Параграф, в котором много текста и даже <a href="#">ссылка</a></p>
|
|
11
|
+
<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>
|
|
12
|
+
<ul>
|
|
13
|
+
<li>Список с точками</li>
|
|
14
|
+
<li>Список с точками</li>
|
|
15
|
+
</ul>
|
|
16
|
+
<ol>
|
|
17
|
+
<li>Нумерованный список</li>
|
|
18
|
+
<li>Нумерованный список</li>
|
|
19
|
+
</ol>
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
default: (
|
|
24
|
+
<section className="p-12">
|
|
25
|
+
<RichText __html={HTML} />
|
|
26
|
+
</section>
|
|
27
|
+
),
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { RichTextProps } from './RichTextProps';
|
|
3
|
+
|
|
4
|
+
export const RichText = JSX<RichTextProps>((props) => {
|
|
5
|
+
const { __html = '' } = props;
|
|
6
|
+
|
|
7
|
+
return <div className="md-container" dangerouslySetInnerHTML={{ __html }} />;
|
|
8
|
+
});
|
|
@@ -20,7 +20,7 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(({ className, isMobile =
|
|
|
20
20
|
<form className={`font-sans relative ${className}`}>
|
|
21
21
|
<div className="absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none">
|
|
22
22
|
<div className={LoupeIconClassName}>
|
|
23
|
-
<Img image=
|
|
23
|
+
<Img image={{ icon: 'LoupeIcon' }} width="24" height="24" />
|
|
24
24
|
</div>
|
|
25
25
|
{term ? null : (
|
|
26
26
|
<label
|
|
@@ -49,7 +49,7 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(({ className, isMobile =
|
|
|
49
49
|
setTerm('');
|
|
50
50
|
}}
|
|
51
51
|
>
|
|
52
|
-
<Img image=
|
|
52
|
+
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
|
|
53
53
|
</button>
|
|
54
54
|
) : (
|
|
55
55
|
<Button
|