@redneckz/wildless-cms-uni-blocks 0.6.46 → 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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +53 -47
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/BlockVersion.d.ts +6 -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 +4 -5
- package/bundle/ui-kit/RichText/RichText.d.ts +2 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +6 -0
- package/dist/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/Blocks.js +10 -8
- package/dist/components/Blocks.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/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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.d.ts +6 -0
- package/dist/model/BlockVersion.js +6 -1
- package/dist/model/BlockVersion.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 +7 -7
- 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 +2 -8
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +4 -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 +1 -1
- 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/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/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 +10 -8
- package/lib/components/Blocks.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/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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.d.ts +6 -0
- package/lib/model/BlockVersion.js +5 -0
- package/lib/model/BlockVersion.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 +7 -7
- 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 +2 -8
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +4 -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 +1 -1
- 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/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/mobile/bundle/bundle.umd.js +15 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- 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/BlockVersion.d.ts +6 -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 +4 -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/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/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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.d.ts +6 -0
- package/mobile/dist/model/BlockVersion.js +6 -1
- package/mobile/dist/model/BlockVersion.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 +7 -7
- 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 +2 -8
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +4 -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 +1 -1
- 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/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/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/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/ExchangeRateTile/CurrencyTable.js +2 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.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/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.d.ts +6 -0
- package/mobile/lib/model/BlockVersion.js +5 -0
- package/mobile/lib/model/BlockVersion.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 +7 -7
- 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 +2 -8
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +4 -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 +1 -1
- 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/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/src/common.css +27 -10
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -6
- package/mobile/src/components/Carousel/Carousel.tsx +3 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +3 -2
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.ts +12 -0
- 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 +10 -8
- package/mobile/src/ui-kit/Img/ImgInner.tsx +13 -21
- package/mobile/src/ui-kit/Img/ImgProps.ts +4 -6
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/Location/Location.tsx +1 -1
- package/mobile/src/ui-kit/Logo/renderImage.tsx +2 -1
- 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/package.json +4 -1
- package/src/common.css +27 -10
- package/src/components/AccordionItem/AccordionItem.tsx +7 -1
- package/src/components/Blocks.ts +10 -8
- package/src/components/BusinessBlock/BusinessCard.tsx +2 -6
- package/src/components/Carousel/Carousel.tsx +3 -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/ExchangeRateTile/CurrencyTable.tsx +3 -2
- package/src/components/Header/HeaderBurger.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.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/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/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/BlockVersion.ts +12 -0
- 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 +10 -8
- package/src/ui-kit/Img/ImgInner.tsx +13 -21
- package/src/ui-kit/Img/ImgProps.ts +4 -6
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +1 -1
- package/src/ui-kit/Logo/renderImage.tsx +2 -1
- 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/tailwind.config.cjs +7 -7
- 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/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/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/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/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/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/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/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
|
@@ -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
|
}
|
|
@@ -12,6 +12,12 @@ export type BlockVersion = 'primary' | 'secondary';
|
|
|
12
12
|
*/
|
|
13
13
|
export type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @title Цвет блока
|
|
17
|
+
* @enumNames [ "Основная", "Второстепенная", "Серая"]
|
|
18
|
+
*/
|
|
19
|
+
export type BlockVersionWithGray = 'primary' | 'secondary' | 'gray';
|
|
20
|
+
|
|
15
21
|
export const VersionStyleMap: Record<BlockVersion, string> = {
|
|
16
22
|
primary: 'bg-white text-primary-text',
|
|
17
23
|
secondary: 'bg-primary-main text-white',
|
|
@@ -28,6 +34,12 @@ export const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent,
|
|
|
28
34
|
secondary: 'bg-primary-main text-white',
|
|
29
35
|
};
|
|
30
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
|
+
|
|
31
43
|
export const GapStyleMap: Record<GapVersion, string> = {
|
|
32
44
|
XXL: 'gap-12',
|
|
33
45
|
XL: 'gap-10',
|
|
@@ -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,14 +10,13 @@ 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, pathPrefix
|
|
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
|
}
|
|
18
18
|
|
|
19
19
|
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
20
|
-
const normalizedPathPrefix = normalizePathPrefix(pathPrefix);
|
|
21
20
|
|
|
22
21
|
return (
|
|
23
22
|
<picture className={`${pictureStyles} ${className}`}>
|
|
@@ -27,7 +26,7 @@ export const ImgAsPicture = JSX<ImageProps<Picture>>(
|
|
|
27
26
|
.map(({ src, format, media }, index) => (
|
|
28
27
|
<source
|
|
29
28
|
key={`${index}_${src}`}
|
|
30
|
-
srcSet={addPathPrefixToSrcSet(src,
|
|
29
|
+
srcSet={addPathPrefixToSrcSet(src, pathPrefix)}
|
|
31
30
|
type={formatToMimeType(format)}
|
|
32
31
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
33
32
|
{...image.size}
|
|
@@ -35,7 +34,7 @@ export const ImgAsPicture = JSX<ImageProps<Picture>>(
|
|
|
35
34
|
))
|
|
36
35
|
: null}
|
|
37
36
|
{renderImg(
|
|
38
|
-
{ ...image, src:
|
|
37
|
+
{ ...image, src: addPathPrefixToSrc(image.src, pathPrefix) },
|
|
39
38
|
imageClassName,
|
|
40
39
|
isMobile,
|
|
41
40
|
)}
|
|
@@ -69,10 +68,13 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
|
|
|
69
68
|
const normalizePathPrefix = (pathPrefix = '') =>
|
|
70
69
|
pathPrefix && !pathPrefix.endsWith('/') ? `${pathPrefix}/` : pathPrefix;
|
|
71
70
|
|
|
72
|
-
const
|
|
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) =>
|
|
73
75
|
srcset
|
|
74
|
-
|
|
75
|
-
.map((src) =>
|
|
76
|
+
?.split(',')
|
|
77
|
+
.map((src) => addPathPrefixToSrc(src.trim(), pathPrefix))
|
|
76
78
|
.join(', ');
|
|
77
79
|
|
|
78
80
|
export function formatToMimeType(format: ImgSource['format']): string | undefined {
|
|
@@ -1,35 +1,27 @@
|
|
|
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
|
|
6
|
+
export const ImgInner = JSX<ImageProps>(
|
|
9
7
|
({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
|
|
10
|
-
if (!image) {
|
|
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}
|
|
34
26
|
pathPrefix={pathPrefix}
|
|
35
27
|
/>
|
|
@@ -1,12 +1,10 @@
|
|
|
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;
|
|
@@ -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"
|
|
@@ -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
|
) : (
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.47",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -121,6 +121,9 @@
|
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"@redneckz/uni-jsx": "^2.1.7",
|
|
123
123
|
"glob": "^8.0.3",
|
|
124
|
+
"rehype-parse": "^8.0.4",
|
|
125
|
+
"rehype-sanitize": "^5.0.1",
|
|
126
|
+
"rehype-stringify": "^9.0.3",
|
|
124
127
|
"remark-html": "^15.0.1",
|
|
125
128
|
"remark-parse": "^10.0.1",
|
|
126
129
|
"sharp": "^0.30.6",
|
package/src/common.css
CHANGED
|
@@ -152,30 +152,47 @@ html {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
@layer components {
|
|
155
|
-
.md-container
|
|
155
|
+
[data-theme='eo'] .md-container ul {
|
|
156
|
+
@apply list-none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[data-theme='eo'] .md-container ul > li::before {
|
|
160
|
+
@apply text-primary-main mr-3 font-bold;
|
|
161
|
+
content: '🗸';
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.md-container {
|
|
165
|
+
@apply text-l font-sans;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.md-container p.h1 {
|
|
156
169
|
@apply text-h1;
|
|
157
170
|
}
|
|
158
171
|
|
|
159
|
-
.md-container .h2 {
|
|
172
|
+
.md-container p.h2 {
|
|
160
173
|
@apply text-h2;
|
|
161
174
|
}
|
|
162
175
|
|
|
163
|
-
.md-container .h3 {
|
|
176
|
+
.md-container p.h3 {
|
|
164
177
|
@apply text-h3;
|
|
165
178
|
}
|
|
166
179
|
|
|
167
|
-
.md-container .h4 {
|
|
180
|
+
.md-container p.h4 {
|
|
168
181
|
@apply text-h4;
|
|
169
182
|
}
|
|
170
183
|
|
|
171
|
-
.md-container .h5 {
|
|
184
|
+
.md-container p.h5 {
|
|
172
185
|
@apply text-h5;
|
|
173
186
|
}
|
|
174
187
|
|
|
175
|
-
.md-container .h6 {
|
|
188
|
+
.md-container p.h6 {
|
|
176
189
|
@apply text-h6;
|
|
177
190
|
}
|
|
178
191
|
|
|
192
|
+
.md-container p {
|
|
193
|
+
@apply text-l font-light;
|
|
194
|
+
}
|
|
195
|
+
|
|
179
196
|
.md-container ul {
|
|
180
197
|
@apply list-inside list-disc;
|
|
181
198
|
}
|
|
@@ -184,10 +201,6 @@ html {
|
|
|
184
201
|
@apply list-inside list-decimal;
|
|
185
202
|
}
|
|
186
203
|
|
|
187
|
-
.md-container p {
|
|
188
|
-
@apply text-l font-light;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
204
|
.md-container li {
|
|
192
205
|
@apply text-l font-light;
|
|
193
206
|
}
|
|
@@ -199,6 +212,10 @@ html {
|
|
|
199
212
|
.md-container a {
|
|
200
213
|
@apply text-primary-main;
|
|
201
214
|
}
|
|
215
|
+
|
|
216
|
+
.md-container strong {
|
|
217
|
+
@apply font-bold;
|
|
218
|
+
}
|
|
202
219
|
}
|
|
203
220
|
|
|
204
221
|
/*
|
|
@@ -47,6 +47,12 @@ const FoldButton = JSX<FoldButtonProps>(({ label, icon, onClick }) => (
|
|
|
47
47
|
<Text size="text-xl" font="font-medium">
|
|
48
48
|
{label}
|
|
49
49
|
</Text>
|
|
50
|
-
<Img
|
|
50
|
+
<Img
|
|
51
|
+
image={{ icon }}
|
|
52
|
+
className="text-primary-main flex-shrink-0"
|
|
53
|
+
width="24"
|
|
54
|
+
height="24"
|
|
55
|
+
asSVG
|
|
56
|
+
/>
|
|
51
57
|
</button>
|
|
52
58
|
));
|
package/src/components/Blocks.ts
CHANGED
|
@@ -46,6 +46,7 @@ import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
|
46
46
|
import { ProductTile } from './ProductTile/ProductTile';
|
|
47
47
|
import { PromoTile } from './PromoTile/PromoTile';
|
|
48
48
|
import { Recommendation } from './Recommendation/Recommendation';
|
|
49
|
+
import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
49
50
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
50
51
|
import { SafeDepositRental } from './SafeDepositRental/SafeDepositRental';
|
|
51
52
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
@@ -60,12 +61,12 @@ export const Blocks: BlocksRegistry = {
|
|
|
60
61
|
Accordion,
|
|
61
62
|
AccordionItem,
|
|
62
63
|
BenefitsBlock,
|
|
63
|
-
BusinessBlock,
|
|
64
|
-
ButtonBlock,
|
|
65
64
|
Bonus,
|
|
66
65
|
BonusBenefitsBlock,
|
|
67
|
-
|
|
66
|
+
BusinessBlock,
|
|
67
|
+
ButtonBlock,
|
|
68
68
|
Calculator,
|
|
69
|
+
CardTransfer,
|
|
69
70
|
Carousel,
|
|
70
71
|
CarouselCard,
|
|
71
72
|
CarouselCatalogCard,
|
|
@@ -76,8 +77,8 @@ export const Blocks: BlocksRegistry = {
|
|
|
76
77
|
CarouselRecommendationCard,
|
|
77
78
|
CarouselTariffsCard,
|
|
78
79
|
Catalog,
|
|
79
|
-
ContactsBlock,
|
|
80
80
|
ComparisonTable,
|
|
81
|
+
ContactsBlock,
|
|
81
82
|
ErrorBlock,
|
|
82
83
|
ExchangeRateTile,
|
|
83
84
|
Footer,
|
|
@@ -93,6 +94,9 @@ export const Blocks: BlocksRegistry = {
|
|
|
93
94
|
MiniGallery,
|
|
94
95
|
MobileAppTile,
|
|
95
96
|
OfficeMap,
|
|
97
|
+
OfficeServicesBlock,
|
|
98
|
+
OtherProducts,
|
|
99
|
+
OtherProductsItem,
|
|
96
100
|
ParagraphBlock,
|
|
97
101
|
PictureText,
|
|
98
102
|
Placeholder,
|
|
@@ -100,9 +104,8 @@ export const Blocks: BlocksRegistry = {
|
|
|
100
104
|
ProductGallery,
|
|
101
105
|
ProductTile,
|
|
102
106
|
PromoTile,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
OtherProductsItem,
|
|
107
|
+
Recommendation,
|
|
108
|
+
RichTextBlock,
|
|
106
109
|
RollupItem,
|
|
107
110
|
SafeDepositRental,
|
|
108
111
|
StepsBlock,
|
|
@@ -112,5 +115,4 @@ export const Blocks: BlocksRegistry = {
|
|
|
112
115
|
Tile,
|
|
113
116
|
VerticalLayout,
|
|
114
117
|
Video,
|
|
115
|
-
Recommendation,
|
|
116
118
|
};
|
|
@@ -28,13 +28,9 @@ const renderItem = (item: BusinessCardItemProps, key: string) => {
|
|
|
28
28
|
return (
|
|
29
29
|
<li key={key} className="flex items-center gap-3.5 mb-3 last:mb-0">
|
|
30
30
|
{icon?.icon ? (
|
|
31
|
-
<Img
|
|
32
|
-
className={`w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider`}
|
|
33
|
-
image={icon.icon}
|
|
34
|
-
asSVG
|
|
35
|
-
/>
|
|
31
|
+
<Img image={icon} className="w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider" asSVG />
|
|
36
32
|
) : null}
|
|
37
|
-
{icon?.src ? <Img image={icon
|
|
33
|
+
{icon?.src ? <Img image={icon} /> : null}
|
|
38
34
|
<span className="text-xl-light">{text}</span>
|
|
39
35
|
</li>
|
|
40
36
|
);
|
|
@@ -57,9 +57,11 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
57
57
|
Carousel.childrenTypes = [
|
|
58
58
|
'CarouselCard',
|
|
59
59
|
'CarouselCatalogCard',
|
|
60
|
-
'
|
|
60
|
+
'CarouselInvestmentCard',
|
|
61
61
|
'CarouselProductCard',
|
|
62
62
|
'CarouselProgramsCard',
|
|
63
|
+
'CarouselRecommendationCard',
|
|
64
|
+
'CarouselTariffsCard',
|
|
63
65
|
'CarouselInvestmentCard',
|
|
64
66
|
];
|
|
65
67
|
|
|
@@ -7,7 +7,9 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
7
7
|
import { List } from '../../ui-kit/List/List';
|
|
8
8
|
import { renderButton } from '../../ui-kit/Button/ButtonSection';
|
|
9
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
10
|
-
import {
|
|
10
|
+
import type { BlockVersion, BlockVersionWithGray } from '../../model/BlockVersion';
|
|
11
|
+
import { VersionWithGrayStyleMap } from '../../model/BlockVersion';
|
|
12
|
+
|
|
11
13
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
12
14
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
13
15
|
|
|
@@ -35,8 +37,8 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
35
37
|
return (
|
|
36
38
|
<BlockWrapper
|
|
37
39
|
className={`relative text-left border border-solid box-border p-7 min-w-[524px]
|
|
38
|
-
${BorderVersionStyleMap[version]}
|
|
39
|
-
${
|
|
40
|
+
${BorderVersionStyleMap[getOmitVersion(version)]}
|
|
41
|
+
${VersionWithGrayStyleMap[version]}
|
|
40
42
|
${className}`}
|
|
41
43
|
{...rest}
|
|
42
44
|
>
|
|
@@ -51,7 +53,11 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
51
53
|
/>
|
|
52
54
|
) : null}
|
|
53
55
|
{socialMedia.length ? (
|
|
54
|
-
<SocialMedia
|
|
56
|
+
<SocialMedia
|
|
57
|
+
className="pt-10 pb-0"
|
|
58
|
+
media={socialMedia}
|
|
59
|
+
version={getOmitVersion(version)}
|
|
60
|
+
/>
|
|
55
61
|
) : null}
|
|
56
62
|
{button?.text ? <div className="pt-2 mt-16">{renderButton({ button })}</div> : null}
|
|
57
63
|
</div>
|
|
@@ -60,3 +66,6 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
60
66
|
);
|
|
61
67
|
},
|
|
62
68
|
);
|
|
69
|
+
|
|
70
|
+
const getOmitVersion = (version: BlockVersionWithGray): BlockVersion =>
|
|
71
|
+
version === 'gray' ? 'primary' : version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BlockVersionWithGray } from '../../model/BlockVersion';
|
|
2
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { Picture } from '../../model/Picture';
|
|
@@ -41,5 +41,5 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
|
|
|
41
41
|
* }
|
|
42
42
|
*/
|
|
43
43
|
button?: ButtonProps;
|
|
44
|
-
version?:
|
|
44
|
+
version?: BlockVersionWithGray;
|
|
45
45
|
}
|
|
@@ -4,6 +4,7 @@ import type { ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
|
|
|
4
4
|
import { formatCurrency } from './formatCurrency';
|
|
5
5
|
|
|
6
6
|
const TABLE_HEAD_STYLE = 'text-left text-m-light text-secondary-text';
|
|
7
|
+
const TABLE_HEAD_STYLE_WITH_PL = `${TABLE_HEAD_STYLE} pl-11`;
|
|
7
8
|
|
|
8
9
|
const CURRENCY_ICONS_MAP = {
|
|
9
10
|
USD: 'DollarIcon',
|
|
@@ -20,8 +21,8 @@ export const CurrencyTable = JSX<CurrencyTableProps>(({ className, exchangeCurre
|
|
|
20
21
|
<thead>
|
|
21
22
|
<tr>
|
|
22
23
|
<th className={TABLE_HEAD_STYLE}>Валюта</th>
|
|
23
|
-
<th className={
|
|
24
|
-
<th className={
|
|
24
|
+
<th className={TABLE_HEAD_STYLE_WITH_PL}>Купить</th>
|
|
25
|
+
<th className={TABLE_HEAD_STYLE_WITH_PL}>Продать</th>
|
|
25
26
|
</tr>
|
|
26
27
|
</thead>
|
|
27
28
|
<tbody>{exchangeCurrencyItems.map(renderCurrencyRow)}</tbody>
|
|
@@ -23,11 +23,11 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
23
23
|
className="absolute top-4 right-4 border-none bg-transparent cursor-pointer"
|
|
24
24
|
onClick={onClick}
|
|
25
25
|
>
|
|
26
|
-
<Img image=
|
|
26
|
+
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" asSVG />
|
|
27
27
|
</button>
|
|
28
28
|
<button className="flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer">
|
|
29
29
|
<Img
|
|
30
|
-
image=
|
|
30
|
+
image={{ icon: 'GeolocationIcon' }}
|
|
31
31
|
width="20"
|
|
32
32
|
height="20"
|
|
33
33
|
className="text-primary-main box-border mr-2"
|
|
@@ -2,7 +2,7 @@ import type { BlockVersion } from '../../model/BlockVersion';
|
|
|
2
2
|
import type { DescriptionProps, HeadlineProps, LabelProps } from '../../model/HeadlineType';
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
4
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
-
import type {
|
|
5
|
+
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Стандартный
|
|
@@ -16,9 +16,9 @@ type TextBenefit = DescriptionProps &
|
|
|
16
16
|
/**
|
|
17
17
|
* @title Форматированный текст
|
|
18
18
|
*/
|
|
19
|
-
type
|
|
20
|
-
/** @default
|
|
21
|
-
type: '
|
|
19
|
+
type RichText = RichTextProps & {
|
|
20
|
+
/** @default rte */
|
|
21
|
+
type: 'rte';
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -27,7 +27,7 @@ type MarkdownTextContent = MarkdownTextProps & {
|
|
|
27
27
|
* "type": "default"
|
|
28
28
|
* }
|
|
29
29
|
*/
|
|
30
|
-
export type Benefit = TextBenefit |
|
|
30
|
+
export type Benefit = TextBenefit | RichText;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @title Продуктовая плитка
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import {
|
|
2
|
+
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
4
|
import type { TextColor } from '../../ui-kit/Text/TextProps';
|
|
5
5
|
import { assertUnreachable } from '../../utils/assertUnreachable';
|
|
@@ -17,7 +17,7 @@ export const renderBenefit =
|
|
|
17
17
|
(benefit: Benefit, i: number) => {
|
|
18
18
|
const { type } = benefit;
|
|
19
19
|
|
|
20
|
-
if (!(type === 'default' || type === '
|
|
20
|
+
if (!(type === 'default' || type === 'rte')) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -31,8 +31,8 @@ export const renderBenefit =
|
|
|
31
31
|
{benefit.description}
|
|
32
32
|
</Text>,
|
|
33
33
|
];
|
|
34
|
-
case '
|
|
35
|
-
return <
|
|
34
|
+
case 'rte':
|
|
35
|
+
return <RichText __html={benefit.__html} />;
|
|
36
36
|
default:
|
|
37
37
|
assertUnreachable(benefit);
|
|
38
38
|
}
|