@redneckz/wildless-cms-uni-blocks 0.6.39 → 0.6.41
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/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +166 -122
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/bundle/components/Header/HeaderTop.d.ts +2 -0
- package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/bundle/model/BlockVersion.d.ts +1 -0
- package/bundle/model/LogoType.d.ts +5 -0
- package/bundle/services/sitemap/SitemapProps.d.ts +2 -4
- package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/bundle/ui-kit/Logo/Logo.d.ts +2 -5
- package/bundle/ui-kit/Logo/Logo.mobile.d.ts +2 -0
- package/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
- package/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/dist/BlockRenderer/renderBlock.js +2 -2
- package/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/dist/components/Blocks.js +8 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/dist/components/ButtonBlock/ButtonBlock.js +11 -0
- package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
- package/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
- package/dist/components/Calculator/constants.js +1 -1
- package/dist/components/Carousel/Carousel.js +3 -2
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +3 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +2 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderTop.d.ts +2 -0
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +17 -23
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +18 -13
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +5 -1
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/LogoType.d.ts +5 -0
- package/dist/model/LogoType.js +2 -0
- package/dist/model/LogoType.js.map +1 -0
- package/dist/services/sitemap/SitemapProps.d.ts +2 -4
- package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.d.ts +2 -5
- package/dist/ui-kit/Logo/Logo.js +3 -21
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.d.ts +2 -0
- package/dist/ui-kit/Logo/Logo.mobile.js +4 -15
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/Logo/renderImage.d.ts +6 -0
- package/dist/ui-kit/Logo/renderImage.js +20 -0
- package/dist/ui-kit/Logo/renderImage.js.map +1 -0
- package/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
- package/dist/ui-kit/Logo/renderTitle.js +12 -0
- package/dist/ui-kit/Logo/renderTitle.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/lib/BlockRenderer/renderBlock.js +2 -2
- package/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +8 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/lib/components/ButtonBlock/ButtonBlock.fixture.d.ts +6 -0
- package/lib/components/ButtonBlock/ButtonBlock.js +9 -0
- package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
- package/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
- package/lib/components/Calculator/constants.js +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +4 -1
- package/lib/components/Carousel/Carousel.js +3 -2
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +8 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +3 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +2 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderTop.d.ts +2 -0
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +3 -1
- package/lib/components/ProductTile/ProductTile.js +18 -24
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +18 -13
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +4 -0
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/LogoType.d.ts +5 -0
- package/lib/model/LogoType.js +2 -0
- package/lib/model/LogoType.js.map +1 -0
- package/lib/services/sitemap/SitemapProps.d.ts +2 -4
- package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.d.ts +2 -5
- package/lib/ui-kit/Logo/Logo.js +4 -22
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.d.ts +2 -0
- package/lib/ui-kit/Logo/Logo.mobile.js +5 -16
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/Logo/renderImage.d.ts +5 -0
- package/lib/ui-kit/Logo/renderImage.js +17 -0
- package/lib/ui-kit/Logo/renderImage.js.map +1 -0
- package/lib/ui-kit/Logo/renderTitle.d.ts +2 -0
- package/lib/ui-kit/Logo/renderTitle.js +9 -0
- package/lib/ui-kit/Logo/renderTitle.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +23 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/mobile/bundle/components/Header/HeaderTop.d.ts +2 -0
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/mobile/bundle/model/BlockVersion.d.ts +1 -0
- package/mobile/bundle/model/LogoType.d.ts +5 -0
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/bundle/ui-kit/Logo/Logo.d.ts +2 -0
- package/mobile/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
- package/mobile/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
- package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js +11 -0
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +3 -2
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +2 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.d.ts +2 -0
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +17 -23
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +18 -13
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/mobile/dist/model/BlockVersion.d.ts +1 -0
- package/mobile/dist/model/BlockVersion.js +5 -1
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/model/LogoType.d.ts +5 -0
- package/mobile/dist/model/LogoType.js +2 -0
- package/mobile/dist/model/LogoType.js.map +1 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.d.ts +2 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +4 -15
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/renderImage.d.ts +6 -0
- package/mobile/dist/ui-kit/Logo/renderImage.js +20 -0
- package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -0
- package/mobile/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
- package/mobile/dist/ui-kit/Logo/renderTitle.js +12 -0
- package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
- package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js +9 -0
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +3 -2
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +2 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.d.ts +2 -0
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +18 -24
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +18 -13
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
- package/mobile/lib/model/BlockVersion.d.ts +1 -0
- package/mobile/lib/model/BlockVersion.js +4 -0
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/model/LogoType.d.ts +5 -0
- package/mobile/lib/model/LogoType.js +2 -0
- package/mobile/lib/model/LogoType.js.map +1 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.d.ts +2 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +5 -16
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/renderImage.d.ts +6 -0
- package/mobile/lib/ui-kit/Logo/renderImage.js +17 -0
- package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -0
- package/mobile/lib/ui-kit/Logo/renderTitle.d.ts +3 -0
- package/mobile/lib/ui-kit/Logo/renderTitle.js +9 -0
- package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/mobile/src/BlockRenderer/renderBlock.tsx +2 -1
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
- package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
- package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
- package/mobile/src/components/Calculator/constants.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.example.json +0 -1
- package/mobile/src/components/Carousel/Carousel.tsx +21 -18
- package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -3
- package/mobile/src/components/Header/Header.tsx +2 -2
- package/mobile/src/components/Header/HeaderTop.tsx +4 -2
- package/mobile/src/components/ProductTile/ProductTile.example.json +2 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +41 -43
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
- package/mobile/src/model/BlockVersion.ts +5 -0
- package/mobile/src/model/LogoType.ts +6 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +2 -4
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +4 -4
- package/mobile/src/ui-kit/Logo/Logo.tsx +16 -31
- package/mobile/src/ui-kit/Logo/renderImage.tsx +40 -0
- package/mobile/src/ui-kit/Logo/renderTitle.tsx +15 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
- package/package.json +1 -1
- package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/src/BlockRenderer/renderBlock.tsx +2 -1
- package/src/components/Blocks.ts +8 -2
- package/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
- package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +18 -0
- package/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
- package/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
- package/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
- package/src/components/Calculator/constants.ts +1 -1
- package/src/components/Carousel/Carousel.example.json +0 -1
- package/src/components/Carousel/Carousel.fixture.tsx +64 -4
- package/src/components/Carousel/Carousel.tsx +21 -18
- package/src/components/Carousel/CarouselContent.ts +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +43 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +62 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
- package/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +6 -3
- package/src/components/Header/Header.mobile.tsx +2 -2
- package/src/components/Header/HeaderTop.tsx +4 -2
- package/src/components/ProductTile/ProductTile.example.json +2 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +15 -1
- package/src/components/ProductTile/ProductTile.tsx +41 -43
- package/src/components/ProductTile/ProductTileContent.ts +2 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +59 -2
- package/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
- package/src/model/BlockVersion.ts +5 -0
- package/src/model/LogoType.ts +6 -0
- package/src/services/sitemap/SitemapProps.ts +2 -4
- package/src/ui-kit/Button/ButtonSection.tsx +4 -4
- package/src/ui-kit/Logo/Logo.mobile.tsx +16 -31
- package/src/ui-kit/Logo/Logo.tsx +6 -43
- package/src/ui-kit/Logo/renderImage.tsx +40 -0
- package/src/ui-kit/Logo/renderTitle.tsx +15 -0
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { VersionAdditionalStyleMap, VersionStyleMap } from '../../model/BlockVersion';
|
|
3
3
|
import { BorderVersionStyleMap } from '../../model/BorderVersion';
|
|
4
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
8
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
9
|
+
import type { TextColor } from '../../ui-kit/Text/TextProps';
|
|
10
|
+
import { BaseTile } from '../BaseTile/BaseTile';
|
|
4
11
|
import type {
|
|
5
12
|
CardColumnsMode,
|
|
6
13
|
CardsListItem,
|
|
7
14
|
CarouselInvestmentCardContent,
|
|
8
15
|
} from './CarouselInvestmentCardContent';
|
|
9
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
10
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
11
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
12
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
13
16
|
|
|
14
17
|
export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {}
|
|
15
18
|
|
|
@@ -42,17 +45,29 @@ export const CarouselInvestmentCard = JSX<CarouselInvestmentCardProps>(
|
|
|
42
45
|
|
|
43
46
|
return (
|
|
44
47
|
<BlockWrapper
|
|
45
|
-
className={
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
className={[
|
|
49
|
+
'relative text-left border border-solid box-border p-9 w-[697px]',
|
|
50
|
+
VersionStyleMap[version],
|
|
51
|
+
BorderVersionStyleMap[version],
|
|
52
|
+
className,
|
|
53
|
+
].join(' ')}
|
|
49
54
|
{...rest}
|
|
50
55
|
>
|
|
51
56
|
<BaseTile title={tileTitle} image={tileImage}>
|
|
52
57
|
<div className="flex justify-between mb-4">
|
|
53
|
-
{description ?
|
|
58
|
+
{description ? (
|
|
59
|
+
<div className="w-1/3">
|
|
60
|
+
<Text size="text-h6">{description}</Text>
|
|
61
|
+
</div>
|
|
62
|
+
) : null}
|
|
54
63
|
{additionalDescription ? (
|
|
55
|
-
<
|
|
64
|
+
<Text
|
|
65
|
+
size="text-m"
|
|
66
|
+
font="font-light"
|
|
67
|
+
color={VersionAdditionalStyleMap[version] as TextColor}
|
|
68
|
+
>
|
|
69
|
+
{additionalDescription}
|
|
70
|
+
</Text>
|
|
56
71
|
) : null}
|
|
57
72
|
</div>
|
|
58
73
|
{cardsList.length ? (
|
|
@@ -73,10 +88,14 @@ const renderCardList = (cardsList: CardsListItem[], columnsMode: number) => {
|
|
|
73
88
|
return visibleCardsList.map((item, i) => (
|
|
74
89
|
<li key={String(i)} className={columnsMode === 2 ? 'basis-[calc(50%-20px)]' : ''}>
|
|
75
90
|
{item?.parameter ? (
|
|
76
|
-
<
|
|
91
|
+
<div className="pr-2.5">
|
|
92
|
+
<Text size={getItemListFontSize(columnsMode)}>{item.parameter}</Text>
|
|
93
|
+
</div>
|
|
77
94
|
) : null}
|
|
78
95
|
{item?.parameterDescription ? (
|
|
79
|
-
<
|
|
96
|
+
<Text size="text-m" font="font-light" color="text-secondary-text">
|
|
97
|
+
{item.parameterDescription}
|
|
98
|
+
</Text>
|
|
80
99
|
) : null}
|
|
81
100
|
</li>
|
|
82
101
|
));
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @title Карточка галереи инвестиций
|
|
7
|
-
*/
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
8
4
|
|
|
9
5
|
/**
|
|
10
6
|
* @title Количество колонок
|
|
@@ -21,6 +17,10 @@ export interface CardsListItem {
|
|
|
21
17
|
/** @title Описание */
|
|
22
18
|
parameterDescription?: string;
|
|
23
19
|
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @title Карточка галереи инвестиций
|
|
23
|
+
*/
|
|
24
24
|
export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
|
|
25
25
|
/** @title Доп. описание карточки */
|
|
26
26
|
additionalDescription?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"icon": {
|
|
4
|
+
"format": "webp",
|
|
5
|
+
"size": {
|
|
6
|
+
"width": 140,
|
|
7
|
+
"height": 140
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"title": "Заголовок 1",
|
|
11
|
+
"description": "Описание 1",
|
|
12
|
+
"href": "/credit-cards",
|
|
13
|
+
"version": "primary",
|
|
14
|
+
"isDotted": true,
|
|
15
|
+
"items": [
|
|
16
|
+
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
17
|
+
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
18
|
+
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { AlignText } from '../../model/AlignText';
|
|
3
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
+
import { VersionStyleMap } from '../../model/BlockVersion';
|
|
5
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
6
|
+
import type { Picture } from '../../model/Picture';
|
|
7
|
+
import { renderButton } from '../../ui-kit/Button/ButtonSection';
|
|
8
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
9
|
+
import { List } from '../../ui-kit/List/List';
|
|
10
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
11
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
12
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
13
|
+
import { HEADLINE_SMALL_VERSION } from '../Headline/constants';
|
|
14
|
+
import type { CarouselProductCardContent, ListProps } from './CarouselProductCardContent';
|
|
15
|
+
|
|
16
|
+
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {}
|
|
17
|
+
|
|
18
|
+
const descriptionStyleMap: Record<BlockVersion, string> = {
|
|
19
|
+
primary: 'text-secondary-text',
|
|
20
|
+
secondary: 'text-white/80',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const BORDER_STYLE = 'box-border border-solid border border-main-stroke ';
|
|
24
|
+
|
|
25
|
+
export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
26
|
+
({
|
|
27
|
+
title,
|
|
28
|
+
headlineSmallVersion = 'H6',
|
|
29
|
+
description,
|
|
30
|
+
additionalDescription,
|
|
31
|
+
icon,
|
|
32
|
+
items = [],
|
|
33
|
+
button = {},
|
|
34
|
+
version = 'primary',
|
|
35
|
+
isDotted = true,
|
|
36
|
+
align = 'center',
|
|
37
|
+
}) => {
|
|
38
|
+
return (
|
|
39
|
+
<section
|
|
40
|
+
className={[
|
|
41
|
+
'flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6',
|
|
42
|
+
BORDER_STYLE,
|
|
43
|
+
AlignText[align],
|
|
44
|
+
VersionStyleMap[version],
|
|
45
|
+
].join(' ')}
|
|
46
|
+
role="listitem"
|
|
47
|
+
>
|
|
48
|
+
<div className="flex flex-col h-full">
|
|
49
|
+
{renderImage(icon, version)}
|
|
50
|
+
{renderCardTitle(headlineSmallVersion, title)}
|
|
51
|
+
{renderDescription(description, title)}
|
|
52
|
+
{renderItems(items, isDotted, version)}
|
|
53
|
+
{renderAdditionalDescription(additionalDescription, version)}
|
|
54
|
+
</div>
|
|
55
|
+
{renderButton({ button, buttonClassName: 'mt-6' })}
|
|
56
|
+
</section>
|
|
57
|
+
);
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const renderImage = (image?: Picture, version?: BlockVersion) => (
|
|
62
|
+
<div className="flex justify-center">
|
|
63
|
+
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
64
|
+
{image?.icon ? (
|
|
65
|
+
<Img
|
|
66
|
+
className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`}
|
|
67
|
+
image={getIconWithVersion(image, version)}
|
|
68
|
+
asSVG
|
|
69
|
+
/>
|
|
70
|
+
) : null}
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
const renderCardTitle = (headlineSmallVersion: string, title?: string) =>
|
|
75
|
+
title ? <Text size={HEADLINE_SMALL_VERSION[headlineSmallVersion]}>{title}</Text> : null;
|
|
76
|
+
|
|
77
|
+
const renderDescription = (description?: string, title?: string) =>
|
|
78
|
+
description ? (
|
|
79
|
+
<div className={title ? 'mt-2' : ''}>
|
|
80
|
+
<Paragraph size="text-l">{description}</Paragraph>
|
|
81
|
+
</div>
|
|
82
|
+
) : null;
|
|
83
|
+
|
|
84
|
+
const renderAdditionalDescription = (additionalDescription?: string, version = 'primary') =>
|
|
85
|
+
additionalDescription ? (
|
|
86
|
+
<div className="mt-auto">
|
|
87
|
+
<Text size="text-m" font="font-light" color={descriptionStyleMap[version]}>
|
|
88
|
+
{additionalDescription}
|
|
89
|
+
</Text>
|
|
90
|
+
</div>
|
|
91
|
+
) : null;
|
|
92
|
+
|
|
93
|
+
const renderItems = (items: ListProps[], isDotted: boolean, version: BlockVersion = 'primary') =>
|
|
94
|
+
items?.length ? (
|
|
95
|
+
<List
|
|
96
|
+
className={`max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`}
|
|
97
|
+
itemClassName="text-left"
|
|
98
|
+
items={items.filter((item) => item?.text).map((item) => item.text as string)}
|
|
99
|
+
isDotted={isDotted}
|
|
100
|
+
version={version}
|
|
101
|
+
/>
|
|
102
|
+
) : null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { AlignType } from '../../model/AlignType';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HeadlineSmallProps } from '../../model/HeadlineType';
|
|
4
|
+
import type { Picture } from '../../model/Picture';
|
|
5
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @title Элемент списка
|
|
9
|
+
*/
|
|
10
|
+
export interface ListProps {
|
|
11
|
+
/** @title Текст */
|
|
12
|
+
text?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @title Карточка продуктовой карусели
|
|
17
|
+
*/
|
|
18
|
+
export type CarouselProductCardContent = HeadlineSmallProps & {
|
|
19
|
+
/** @title Дополнительное описание */
|
|
20
|
+
additionalDescription?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @default {
|
|
23
|
+
* "format": "webp",
|
|
24
|
+
* "size": {
|
|
25
|
+
* "width": 140
|
|
26
|
+
* },
|
|
27
|
+
* "sources": [{
|
|
28
|
+
* "media": 1279,
|
|
29
|
+
* "width": 84,
|
|
30
|
+
* "format": "webp",
|
|
31
|
+
* "alignment": "center"
|
|
32
|
+
* }]
|
|
33
|
+
* }
|
|
34
|
+
*/
|
|
35
|
+
icon?: Picture;
|
|
36
|
+
/** @title Кнопка */
|
|
37
|
+
button?: ButtonWithIconProps;
|
|
38
|
+
/**
|
|
39
|
+
* @title Буллиты
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
isDotted?: boolean;
|
|
43
|
+
/** @title Список */
|
|
44
|
+
items?: ListProps[];
|
|
45
|
+
version?: BlockVersion;
|
|
46
|
+
/**
|
|
47
|
+
* @title Выравнивание
|
|
48
|
+
* @default center
|
|
49
|
+
*/
|
|
50
|
+
align?: AlignType;
|
|
51
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
1
2
|
import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @title Карточка программ карусели
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { AlignText } from '../../model/AlignText';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
+
import { VersionAdditionalStyleMap } from '../../model/BlockVersion';
|
|
4
5
|
import type { Picture } from '../../model/Picture';
|
|
5
6
|
import { renderButton } from '../../ui-kit/Button/ButtonSection';
|
|
6
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -29,7 +30,7 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
|
|
|
29
30
|
{renderCardTitle(headlineSmallVersion, title)}
|
|
30
31
|
{renderDescription(description, title)}
|
|
31
32
|
{items?.length ? renderItems(items, isDotted, version) : null}
|
|
32
|
-
{renderAdditionalDescription(additionalDescription)}
|
|
33
|
+
{renderAdditionalDescription(additionalDescription, version)}
|
|
33
34
|
</div>
|
|
34
35
|
{button?.text
|
|
35
36
|
? renderButton({
|
|
@@ -60,9 +61,11 @@ const renderCardTitle = (headlineSmallVersion: string, title?: string) =>
|
|
|
60
61
|
const renderDescription = (description?: string, title?: string) =>
|
|
61
62
|
description ? <div className={`text-l ${title ? 'mt-2' : ''}`}>{description}</div> : null;
|
|
62
63
|
|
|
63
|
-
const renderAdditionalDescription = (additionalDescription?: string) =>
|
|
64
|
+
const renderAdditionalDescription = (additionalDescription?: string, version?: BlockVersion) =>
|
|
64
65
|
additionalDescription ? (
|
|
65
|
-
<div className=
|
|
66
|
+
<div className={`text-m-light mt-auto ${VersionAdditionalStyleMap[version ?? 'primary']}`}>
|
|
67
|
+
{additionalDescription}
|
|
68
|
+
</div>
|
|
66
69
|
) : null;
|
|
67
70
|
|
|
68
71
|
const renderItems = (
|
|
@@ -22,7 +22,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
|
|
|
22
22
|
const router = useRouter();
|
|
23
23
|
|
|
24
24
|
const fallback: Fallback | undefined = rest.options?.page?.fallback;
|
|
25
|
-
const { topItems, dispositions, defaultLocation } = useSWRResource<SitemapDataProps>(
|
|
25
|
+
const { topItems, dispositions, defaultLocation, logo } = useSWRResource<SitemapDataProps>(
|
|
26
26
|
projectSettings.SITEMAP || 'sitemap',
|
|
27
27
|
fallback,
|
|
28
28
|
);
|
|
@@ -36,7 +36,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
|
|
|
36
36
|
return (
|
|
37
37
|
<header className={`${bgColor} ${className}`}>
|
|
38
38
|
<div className="container px-4 py-0 box-border">
|
|
39
|
-
<HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} />
|
|
39
|
+
<HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} logo={logo} />
|
|
40
40
|
<nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-12">
|
|
41
41
|
<div className="flex no-scrollbar horizontal-list h-full items-center">
|
|
42
42
|
{subItems?.map((_, i) => (
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
3
|
+
import type { LogoType } from '../../model/LogoType';
|
|
3
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
4
5
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
5
6
|
|
|
6
7
|
export interface HeaderTopProps {
|
|
7
8
|
onClick: () => void;
|
|
8
9
|
bgColor?: BgColorVersion;
|
|
10
|
+
logo?: LogoType;
|
|
9
11
|
}
|
|
10
|
-
export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
|
|
12
|
+
export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor, logo }) => (
|
|
11
13
|
<div className="flex items-center justify-between border-0 border-b border-main-divider h-12">
|
|
12
14
|
<div className="flex items-center">
|
|
13
15
|
<button
|
|
@@ -23,7 +25,7 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
|
|
|
23
25
|
asSVG
|
|
24
26
|
/>
|
|
25
27
|
</button>
|
|
26
|
-
<Logo className="mr-8" bgColor={bgColor} />
|
|
28
|
+
<Logo className="mr-8" bgColor={bgColor} logo={logo} />
|
|
27
29
|
</div>
|
|
28
30
|
<button
|
|
29
31
|
className={`${
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import { VersionStyleMap } from '../../model/BlockVersion';
|
|
3
|
+
import { VersionAdditionalStyleMap, VersionStyleMap } from '../../model/BlockVersion';
|
|
4
4
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import type { Picture } from '../../model/Picture';
|
|
6
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
@@ -22,32 +22,33 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
22
22
|
benefits = [],
|
|
23
23
|
buttons,
|
|
24
24
|
image,
|
|
25
|
+
isImageOnRightSide = true,
|
|
25
26
|
version = 'primary',
|
|
26
27
|
...rest
|
|
27
28
|
}) => (
|
|
28
29
|
<BlockWrapper
|
|
29
|
-
className={`overflow-hidden font-sans p-9 box-border relative
|
|
30
|
-
${
|
|
30
|
+
className={`overflow-hidden font-sans p-9 box-border relative min-h-[364px]
|
|
31
|
+
${VersionStyleMap[version]} ${getTileRightPadding(className)} ${className}`}
|
|
31
32
|
{...rest}
|
|
32
33
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
? renderAdditionalDescription(additionalDescription, image
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{image
|
|
34
|
+
<div className={`flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`}>
|
|
35
|
+
<Headline
|
|
36
|
+
className={`!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`}
|
|
37
|
+
as="h2"
|
|
38
|
+
title={title}
|
|
39
|
+
description={description}
|
|
40
|
+
headlineVersion={headlineVersion}
|
|
41
|
+
bgColorHeadline={version}
|
|
42
|
+
align="left"
|
|
43
|
+
{...rest}
|
|
44
|
+
/>
|
|
45
|
+
{renderBenefits(benefits, version, image)}
|
|
46
|
+
{additionalDescription ? renderAdditionalDescription(additionalDescription, image) : null}
|
|
47
|
+
{buttons?.length ? (
|
|
48
|
+
<ButtonSection buttons={buttons} className="mt-5 gap-4 z-10 text-l" />
|
|
49
|
+
) : null}
|
|
50
|
+
</div>
|
|
51
|
+
{renderImage(image, isImageOnRightSide)}
|
|
51
52
|
</BlockWrapper>
|
|
52
53
|
),
|
|
53
54
|
);
|
|
@@ -66,42 +67,39 @@ function renderBenefits(benefits: TextBenefit[], version: BlockVersion, image?:
|
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
secondary: 'text-white',
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return function renderVersionedBenefit(benefit: TextBenefit, i: number) {
|
|
70
|
+
const renderBenefit =
|
|
71
|
+
(version: BlockVersion = 'primary') =>
|
|
72
|
+
(benefit: TextBenefit, i: number) => {
|
|
76
73
|
const { label = '', description = '' } = benefit;
|
|
77
74
|
|
|
78
75
|
return [
|
|
79
76
|
<div key={`label-${i}`} className="text-h6">
|
|
80
77
|
{label}
|
|
81
78
|
</div>,
|
|
82
|
-
<div key={`desc-${i}`} className={`text-m-light ${
|
|
79
|
+
<div key={`desc-${i}`} className={`text-m-light ${VersionAdditionalStyleMap[version]}`}>
|
|
83
80
|
{description}
|
|
84
81
|
</div>,
|
|
85
82
|
];
|
|
86
83
|
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function renderAdditionalDescription(
|
|
90
|
-
additionalDescription: string,
|
|
91
|
-
image?: Picture,
|
|
92
|
-
version: BlockVersion = 'primary',
|
|
93
|
-
) {
|
|
94
|
-
const descStyleMap: Record<BlockVersion, string> = {
|
|
95
|
-
primary: 'text-secondary-text',
|
|
96
|
-
secondary: 'text-white',
|
|
97
|
-
};
|
|
98
84
|
|
|
85
|
+
function renderAdditionalDescription(additionalDescription: string, image?: Picture) {
|
|
99
86
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
100
87
|
const DESCRIPTION_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
101
88
|
|
|
102
89
|
return (
|
|
103
|
-
<div className={`text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
<div className={`text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}`}>{additionalDescription}</div>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function renderImage(image?: Picture, isImageOnRightSide?: boolean) {
|
|
95
|
+
if (!image?.src) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<Img
|
|
101
|
+
className={`absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`}
|
|
102
|
+
image={image}
|
|
103
|
+
/>
|
|
106
104
|
);
|
|
107
105
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "transparent",
|
|
4
|
+
"isPadding": false,
|
|
5
|
+
"isInnerPadding": true,
|
|
6
|
+
"align": "left",
|
|
7
|
+
"gap": ""
|
|
8
|
+
},
|
|
6
9
|
"blocks": [
|
|
7
10
|
{
|
|
8
11
|
"type": "Headline",
|
|
@@ -15,10 +15,10 @@ const alignStyle: Record<AlignType, string> = {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const gapStyleMap: Record<GapVersion, string> = {
|
|
18
|
-
XXL: 'gap-
|
|
19
|
-
XL: 'gap-
|
|
20
|
-
L: 'gap-
|
|
21
|
-
M: 'gap-
|
|
18
|
+
XXL: 'gap-12',
|
|
19
|
+
XL: 'gap-10',
|
|
20
|
+
L: 'gap-8',
|
|
21
|
+
M: 'gap-4',
|
|
22
22
|
S: 'gap-2',
|
|
23
23
|
XS: 'gap-1',
|
|
24
24
|
'': '',
|
|
@@ -31,22 +31,37 @@ const backgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutProps>(
|
|
34
|
-
({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
({
|
|
35
|
+
className = '',
|
|
36
|
+
gap = '',
|
|
37
|
+
align,
|
|
38
|
+
isPadding = false,
|
|
39
|
+
isInnerPadding = true,
|
|
40
|
+
version = 'transparent',
|
|
41
|
+
options,
|
|
42
|
+
...rest
|
|
43
|
+
}) => {
|
|
44
|
+
const paddingStyle = isPadding ? 'p-12' : '';
|
|
45
|
+
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<BlockWrapper
|
|
49
|
+
className={[
|
|
50
|
+
'flex flex-col [&>*]:max-w-full',
|
|
51
|
+
paddingStyle,
|
|
52
|
+
gapStyleMap[gap],
|
|
53
|
+
align && alignStyle[align],
|
|
54
|
+
backgroundStyleMap[version],
|
|
55
|
+
className,
|
|
56
|
+
]
|
|
57
|
+
.filter(Boolean)
|
|
58
|
+
.join(' ')}
|
|
59
|
+
{...rest}
|
|
60
|
+
>
|
|
61
|
+
{renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } })}
|
|
62
|
+
</BlockWrapper>
|
|
63
|
+
);
|
|
64
|
+
},
|
|
50
65
|
);
|
|
51
66
|
|
|
52
67
|
VerticalLayout.childrenTypes = {
|
|
@@ -16,4 +16,8 @@ export interface VerticalLayoutContent {
|
|
|
16
16
|
version?: BlockVersionWithTransparent;
|
|
17
17
|
align?: AlignType;
|
|
18
18
|
gap?: GapVersion;
|
|
19
|
+
/** @title Внутренний отступ компоновщика */
|
|
20
|
+
isPadding?: boolean;
|
|
21
|
+
/** @title Отступы вложенных компонентов */
|
|
22
|
+
isInnerPadding?: boolean;
|
|
19
23
|
}
|
|
@@ -15,6 +15,11 @@ export const VersionStyleMap: Record<BlockVersion, string> = {
|
|
|
15
15
|
secondary: 'bg-primary-main text-white',
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
export const VersionAdditionalStyleMap: Record<BlockVersion, string> = {
|
|
19
|
+
primary: 'text-secondary-text',
|
|
20
|
+
secondary: 'text-white',
|
|
21
|
+
};
|
|
22
|
+
|
|
18
23
|
export const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent, string> = {
|
|
19
24
|
transparent: '',
|
|
20
25
|
primary: 'bg-white text-primary-text',
|