@redneckz/wildless-cms-uni-blocks 0.6.46 → 0.6.48
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 +115 -109
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/bundle/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/bundle/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- 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/BusinessBlockContent.d.ts +6 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +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/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -1
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/dist/components/ComparisonTable/constants.js +1 -1
- package/dist/components/ComparisonTable/constants.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/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/GalleryContainer.js +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -2
- package/dist/components/Header/DropdownMenu.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 +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.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/BlockVersion.d.ts +6 -0
- package/dist/model/BlockVersion.js +6 -1
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/BorderVersion.js +1 -1
- package/dist/model/BorderVersion.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/Button/getRegularButtonClasses.js +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.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/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +3 -3
- package/dist/ui-kit/InputRange/InputRange.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/Location/SearchBar.js +1 -1
- package/dist/ui-kit/Location/SearchBar.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/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.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 +3 -3
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Tags/Tags.js +1 -1
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +3 -3
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/dist/ui-kit/YandexMap/renderUserGeolocation.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/BusinessBlockContent.d.ts +6 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +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/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -1
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/lib/components/ComparisonTable/constants.js +1 -1
- package/lib/components/ComparisonTable/constants.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/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/GalleryContainer.js +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -2
- package/lib/components/Header/DropdownMenu.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 +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.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/BlockVersion.d.ts +6 -0
- package/lib/model/BlockVersion.js +5 -0
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/BorderVersion.js +1 -1
- package/lib/model/BorderVersion.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/Button/getRegularButtonClasses.js +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.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/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +3 -3
- package/lib/ui-kit/InputRange/InputRange.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/Location/SearchBar.js +1 -1
- package/lib/ui-kit/Location/SearchBar.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/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.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 +3 -3
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Tags/Tags.js +1 -1
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +3 -3
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +22 -31
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/bundle/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- 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/BusinessBlockContent.d.ts +6 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +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/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js +1 -1
- package/mobile/dist/components/ComparisonTable/constants.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/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -2
- package/mobile/dist/components/Header/DropdownMenu.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 +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.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/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/model/BorderVersion.js +1 -1
- package/mobile/dist/model/BorderVersion.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/Button/getRegularButtonClasses.js +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.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/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +3 -3
- package/mobile/dist/ui-kit/InputRange/InputRange.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/Location/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.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/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.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 +3 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +3 -3
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +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/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.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/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js +1 -1
- package/mobile/lib/components/ComparisonTable/constants.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/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -2
- package/mobile/lib/components/Header/DropdownMenu.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 +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.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/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/model/BorderVersion.js +1 -1
- package/mobile/lib/model/BorderVersion.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/Button/getRegularButtonClasses.js +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.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/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +3 -3
- package/mobile/lib/ui-kit/InputRange/InputRange.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/Location/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.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/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.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 +3 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +3 -3
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/src/common.css +32 -14
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +4 -6
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +6 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +3 -7
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +3 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.tsx +5 -5
- package/mobile/src/components/Catalog/CatalogCard.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -4
- package/mobile/src/components/ComparisonTable/constants.ts +1 -1
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +3 -2
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +36 -34
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -5
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -4
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +3 -2
- package/mobile/src/components/OfficeMap/OfficeMapContent.ts +4 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.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/TariffsTable/TariffsTableTileCell.tsx +1 -1
- 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/model/BorderVersion.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +2 -2
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- 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 +2 -2
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -3
- package/mobile/src/ui-kit/Location/Location.tsx +1 -1
- package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/Logo/renderImage.tsx +2 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -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 +3 -3
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/Tags/Tags.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -2
- package/package.json +4 -1
- package/src/common.css +32 -14
- package/src/components/AccordionItem/AccordionItem.tsx +7 -1
- package/src/components/Blocks.ts +10 -8
- package/src/components/BusinessBlock/BusinessBlock.example.json +4 -6
- package/src/components/BusinessBlock/BusinessBlockContent.ts +6 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +3 -7
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/Carousel/Carousel.tsx +3 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.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/CarouselTariffsCard/CarouselTariffsCard.tsx +5 -5
- package/src/components/Catalog/CatalogCard.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -4
- package/src/components/ComparisonTable/constants.ts +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +3 -2
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/src/components/Header/DropdownMenu.tsx +36 -34
- package/src/components/Header/HeaderBurger.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -5
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -4
- package/src/components/OfficeMap/OfficeMap.tsx +3 -2
- package/src/components/OfficeMap/OfficeMapContent.ts +4 -1
- package/src/components/OfficeMap/renderFunctions.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.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/TariffsTable/TariffsTableTileCell.tsx +1 -1
- 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/model/BorderVersion.ts +1 -1
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Button/getRegularButtonClasses.ts +2 -2
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- 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 +2 -2
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +3 -3
- package/src/ui-kit/Location/Location.tsx +1 -1
- package/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/src/ui-kit/Logo/renderImage.tsx +2 -1
- package/src/ui-kit/Radio/Radio.tsx +1 -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 +3 -3
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +3 -3
- package/src/ui-kit/Tags/Tags.tsx +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/src/ui-kit/YandexMap/ZoomButton.tsx +1 -1
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +2 -2
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -2
- package/tailwind.config.cjs +6 -16
- 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
|
@@ -17,46 +17,48 @@ interface DropdownMenuProps {
|
|
|
17
17
|
bgColor?: BgColorVersion;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const DropdownMenu = JSX<DropdownMenuProps>(
|
|
21
|
-
|
|
20
|
+
export const DropdownMenu = JSX<DropdownMenuProps>(
|
|
21
|
+
({ className = '', items, activeItem, bgColor }) => {
|
|
22
|
+
const link = useLink();
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
const [visible, setVisible] = useState(false);
|
|
25
|
+
const handleToggle = useCallback(() => setVisible((_) => !_), []);
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
const handleClickOutside = useCallback(() => setVisible(false), []);
|
|
28
|
+
const ref = useOutsideClick<HTMLDivElement>(handleClickOutside);
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
<div
|
|
31
|
-
className={`${visible ? 'bg-white rounded-md shadow-blue-gray/24' : ''} ${className || ''}`}
|
|
32
|
-
ref={ref}
|
|
33
|
-
>
|
|
34
|
-
<button
|
|
35
|
-
className="flex justify-between items-center cursor-pointer h-6 ml-6"
|
|
36
|
-
aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
|
|
37
|
-
onClick={handleToggle}
|
|
38
|
-
>
|
|
39
|
-
{Array(3).fill(bgColor).map(renderDot)}
|
|
40
|
-
</button>
|
|
30
|
+
return (
|
|
41
31
|
<div
|
|
42
|
-
className={
|
|
43
|
-
|
|
32
|
+
className={`${visible ? 'bg-white rounded-md shadow-blue-gray' : ''} ${className}`}
|
|
33
|
+
ref={ref}
|
|
44
34
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
<button
|
|
36
|
+
className="flex justify-between items-center cursor-pointer h-6 ml-6"
|
|
37
|
+
aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
|
|
38
|
+
onClick={handleToggle}
|
|
39
|
+
>
|
|
40
|
+
{Array(3).fill(bgColor).map(renderDot)}
|
|
41
|
+
</button>
|
|
42
|
+
<div
|
|
43
|
+
className={`flex flex-col rounded-md bg-white p-6 pb-2 ${visible ? '' : 'hidden'}`}
|
|
44
|
+
aria-hidden={!visible}
|
|
45
|
+
>
|
|
46
|
+
{items?.map((item, i) => (
|
|
47
|
+
<a
|
|
48
|
+
key={item.href || String(i)}
|
|
49
|
+
className={`text-l-light pb-4 hover:text-primary-main ${
|
|
50
|
+
item === activeItem ? 'text-primary-main' : ''
|
|
51
|
+
}`}
|
|
52
|
+
{...link(item)}
|
|
53
|
+
>
|
|
54
|
+
{item.text}
|
|
55
|
+
</a>
|
|
56
|
+
))}
|
|
57
|
+
</div>
|
|
56
58
|
</div>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
);
|
|
60
62
|
|
|
61
63
|
const renderDot = (bgColor: BgColorVersion, i: number) => (
|
|
62
64
|
<div key={String(i)} className={`w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}`} />
|
|
@@ -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"
|
|
@@ -91,8 +91,8 @@ function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }: Insur
|
|
|
91
91
|
|
|
92
92
|
function renderNavButton({ slide, i, isActive, onClick }: NavButtonProps) {
|
|
93
93
|
const btnClassName = isActive
|
|
94
|
-
? 'shadow-dark-blue
|
|
95
|
-
: `ease-in duration-300 border-
|
|
94
|
+
? 'shadow-dark-blue border-primary-main'
|
|
95
|
+
: `ease-in duration-300 border-gray`;
|
|
96
96
|
|
|
97
97
|
return (
|
|
98
98
|
<button
|
|
@@ -132,7 +132,7 @@ function renderDoneIcon(isActive: boolean) {
|
|
|
132
132
|
return isActive ? (
|
|
133
133
|
<Img
|
|
134
134
|
className={`h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`}
|
|
135
|
-
image=
|
|
135
|
+
image={{ icon: 'DoneIcon' }}
|
|
136
136
|
width="24"
|
|
137
137
|
height="24"
|
|
138
138
|
/>
|
|
@@ -49,12 +49,10 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
|
49
49
|
{colums?.length ? (
|
|
50
50
|
<div>
|
|
51
51
|
<div className="flex items-end relative pl-9 pr-5 text-white">
|
|
52
|
-
{joinList(<div className="w-px h-4 bg-
|
|
53
|
-
|
|
54
|
-
)}
|
|
55
|
-
<div className="absolute right-[30px] w-px h-4 bg-main-stroke" />
|
|
52
|
+
{joinList(<div className="w-px h-4 bg-gray" />)(colums.map(renderInvestmentColumn))}
|
|
53
|
+
<div className="absolute right-[30px] w-px h-4 bg-gray" />
|
|
56
54
|
</div>
|
|
57
|
-
<div className="border-t border-
|
|
55
|
+
<div className="border-t border-gray -mt-2 ml-9 mr-8" />
|
|
58
56
|
<div className="flex justify-between text-primary-text mt-3 -mx-10">
|
|
59
57
|
{colums.map(renderInvestmentColumnTitle)}
|
|
60
58
|
</div>
|
|
@@ -10,7 +10,7 @@ export const LinkDocsHorizontalList = JSX<LinkDocsVerticalListProps>(
|
|
|
10
10
|
? documents.map((doc, i) => (
|
|
11
11
|
<LinkDocsListItem
|
|
12
12
|
key={String(i)}
|
|
13
|
-
className={hasBorder ? 'rounded-md border-
|
|
13
|
+
className={hasBorder ? 'rounded-md border-gray border border-solid p-4' : ''}
|
|
14
14
|
doc={doc}
|
|
15
15
|
icon={icon}
|
|
16
16
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { LinkDocsItem } from './LinkDocsContent';
|
|
4
4
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsVerticalListProps {
|
|
@@ -20,9 +20,7 @@ export const LinkDocsVerticalList = JSX<LinkDocsVerticalListProps>(
|
|
|
20
20
|
? documents.map((doc, i) => (
|
|
21
21
|
<div key={String(i)} role="listitem">
|
|
22
22
|
<LinkDocsListItem
|
|
23
|
-
className={
|
|
24
|
-
hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : ''
|
|
25
|
-
}
|
|
23
|
+
className={hasBorder ? 'rounded-md border-gray border border-solid p-4' : ''}
|
|
26
24
|
doc={doc}
|
|
27
25
|
icon={icon}
|
|
28
26
|
/>
|
|
@@ -3,17 +3,18 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
4
|
import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
|
|
5
5
|
import { nearbyOffices } from './nearbyOffices';
|
|
6
|
-
import type {
|
|
6
|
+
import type { OfficeMapContent, WorkScheduleWeek } from './OfficeMapContent';
|
|
7
7
|
import { renderCurrentDaySchedule, renderDay, renderNearbyOffice } from './renderFunctions';
|
|
8
8
|
import { useOfficeMap } from './useOfficeMap';
|
|
9
9
|
|
|
10
|
+
export interface OfficeMapProps extends OfficeMapContent, UniBlockProps {}
|
|
10
11
|
export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
|
|
11
12
|
// TODO: useOfficeMap endpoint had use /api/v1/branches. This endpoint now is`t correct/
|
|
12
13
|
// TODO: useOfficeMap has return MOCK OBJECT!
|
|
13
14
|
// TODO: Fix this when endpoint /api/v1/branches (or new endpoint) had returning right data
|
|
14
15
|
const resultOfficeMap = useOfficeMap('000');
|
|
15
16
|
const { name, address, gpsLatitude, gpsLongitude, workSchedule } =
|
|
16
|
-
resultOfficeMap as
|
|
17
|
+
resultOfficeMap as OfficeMapContent;
|
|
17
18
|
const {
|
|
18
19
|
workingMonday,
|
|
19
20
|
workingTuesday,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NearbyOffices, WorkScheduleWeek } from './OfficeMapContent';
|
|
2
1
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
2
|
+
import { NearbyOffices, WorkScheduleWeek } from './OfficeMapContent';
|
|
3
3
|
|
|
4
4
|
export const renderCurrentDaySchedule = ({ lunchHour, status, workTime }: WorkScheduleWeek) => {
|
|
5
5
|
const hasTime = /\d+/gi.test(lunchHour as string);
|
|
@@ -10,7 +10,7 @@ export const renderCurrentDaySchedule = ({ lunchHour, status, workTime }: WorkSc
|
|
|
10
10
|
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4">
|
|
11
11
|
{workTime ? workTime : null}
|
|
12
12
|
</div>
|
|
13
|
-
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-
|
|
13
|
+
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden">
|
|
14
14
|
{lunchHour ? lunchHourText : null}
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -91,7 +91,7 @@ function renderProductBlock(block: ProductBlockInnerContent & UniBlockProps, i:
|
|
|
91
91
|
|
|
92
92
|
function renderNavButton({ slide, i, isActive, onClick, version }: NavButtonProps) {
|
|
93
93
|
const btnClassName = isActive
|
|
94
|
-
? 'bg-white shadow-dark-blue
|
|
94
|
+
? 'bg-white shadow-dark-blue min-w-[350px] border-none p-6'
|
|
95
95
|
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
96
96
|
${VersionStyleMap[version]}`;
|
|
97
97
|
const btnTitleClassName = isActive
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"__html": "<p class=\"h1\">Заголовок 1</p>\n<p class=\"h2\">Заголовок 2</p>\n<p class=\"h3\">Заголовок 3</p>\n<p class=\"h4\">Заголовок 4</p>\n<p class=\"h5\">Заголовок 5</p>\n<p class=\"h6\">Заголовок 6</p>\n<p>Параграф, в котором много текста и даже <a href=\"#\">ссылка</a></p>\n<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>\n<ul>\n <li>Список с точками</li>\n <li>Список с точками</li>\n</ul>\n<ol>\n <li>Нумерованный список</li>\n <li>Нумерованный список</li>\n</ol>\n"
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
5
|
+
import type { RichTextBlockContent } from './RichTextBlockContent';
|
|
6
|
+
|
|
7
|
+
interface RichTextBlockProps extends RichTextBlockContent, UniBlockProps {}
|
|
8
|
+
|
|
9
|
+
export const RichTextBlock = JSX<RichTextBlockProps>((props) => {
|
|
10
|
+
const { __html, ...rest } = props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<BlockWrapper {...rest}>
|
|
14
|
+
<RichText __html={__html} />
|
|
15
|
+
</BlockWrapper>
|
|
16
|
+
);
|
|
17
|
+
});
|
|
@@ -10,7 +10,7 @@ export interface TariffsTableTileCellProps extends UniBlockProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TariffsTableTileCell = JSX<TariffsTableTileCellProps>(({ tile, ...rest }) => (
|
|
13
|
-
<div className="rounded-md border-
|
|
13
|
+
<div className="rounded-md border-gray h-full box-border border p-4">
|
|
14
14
|
<TableTileHeader {...tile?.header} />
|
|
15
15
|
{tile?.data?.length
|
|
16
16
|
? tile.data.map((cell, i) => (
|
|
@@ -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
|
}
|
|
@@ -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';
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import type { GetButtonClassParams } from './GetButtonClassParams';
|
|
2
1
|
import { buttonStyle, buttonStyleMap } from './buttonClassNameConstants';
|
|
2
|
+
import type { GetButtonClassParams } from './GetButtonClassParams';
|
|
3
3
|
|
|
4
4
|
export const getRegularButtonClasses = ({
|
|
5
5
|
className,
|
|
@@ -8,7 +8,7 @@ export const getRegularButtonClasses = ({
|
|
|
8
8
|
}: GetButtonClassParams): string =>
|
|
9
9
|
[
|
|
10
10
|
buttonStyle,
|
|
11
|
-
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-
|
|
11
|
+
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border',
|
|
12
12
|
version ? buttonStyleMap[version] : '',
|
|
13
13
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
14
14
|
className,
|