@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,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",
|
|
@@ -19,6 +19,25 @@ const options = {
|
|
|
19
19
|
blocksRegistry: Blocks,
|
|
20
20
|
} as BlockRendererOptions;
|
|
21
21
|
|
|
22
|
+
const carouselProductCard = {
|
|
23
|
+
content: {
|
|
24
|
+
headlineSmallVersion: 'L_R',
|
|
25
|
+
align: 'left',
|
|
26
|
+
isDotted: true,
|
|
27
|
+
title: 'Новость 1',
|
|
28
|
+
version: 'primary',
|
|
29
|
+
additionalDescription: '12 сентября 2022',
|
|
30
|
+
icon: {
|
|
31
|
+
size: {
|
|
32
|
+
width: 150,
|
|
33
|
+
height: 150,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
style: ['col-span-12'],
|
|
38
|
+
type: 'CarouselProductCard',
|
|
39
|
+
};
|
|
40
|
+
|
|
22
41
|
export default {
|
|
23
42
|
default: (
|
|
24
43
|
<div className="container grid grid-cols-12">
|
|
@@ -35,12 +54,12 @@ export default {
|
|
|
35
54
|
/>
|
|
36
55
|
</div>
|
|
37
56
|
),
|
|
38
|
-
'
|
|
57
|
+
'white center': (
|
|
39
58
|
<div className="container grid grid-cols-12">
|
|
40
59
|
<VerticalLayout
|
|
41
60
|
className="col-span-12"
|
|
42
61
|
align="center"
|
|
43
|
-
version="
|
|
62
|
+
version="primary"
|
|
44
63
|
block={{
|
|
45
64
|
type: 'VerticalLayout',
|
|
46
65
|
blocks: [
|
|
@@ -162,4 +181,42 @@ export default {
|
|
|
162
181
|
/>
|
|
163
182
|
</div>
|
|
164
183
|
),
|
|
184
|
+
carousel: (
|
|
185
|
+
<div className="container grid grid-cols-12">
|
|
186
|
+
<VerticalLayout
|
|
187
|
+
align="center"
|
|
188
|
+
className="col-span-12"
|
|
189
|
+
version="primary"
|
|
190
|
+
gap="XL"
|
|
191
|
+
isPadding={true}
|
|
192
|
+
isInnerPadding={false}
|
|
193
|
+
block={{
|
|
194
|
+
type: 'VerticalLayout',
|
|
195
|
+
blocks: [
|
|
196
|
+
{
|
|
197
|
+
content: {
|
|
198
|
+
title: 'Заголовок',
|
|
199
|
+
align: 'center',
|
|
200
|
+
bgColorHeadline: 'transparent',
|
|
201
|
+
headlineVersion: 'M',
|
|
202
|
+
},
|
|
203
|
+
style: ['col-span-12'],
|
|
204
|
+
type: 'Headline',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
content: {
|
|
208
|
+
isBlur: true,
|
|
209
|
+
visibleItemCount: 3,
|
|
210
|
+
isCycle: false,
|
|
211
|
+
},
|
|
212
|
+
style: ['col-span-12'],
|
|
213
|
+
type: 'Carousel',
|
|
214
|
+
blocks: new Array(6).fill(carouselProductCard),
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
}}
|
|
218
|
+
options={options}
|
|
219
|
+
/>
|
|
220
|
+
</div>
|
|
221
|
+
),
|
|
165
222
|
};
|
|
@@ -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',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { LogoType } from '../../model/LogoType';
|
|
2
3
|
import type { Picture } from '../../model/Picture';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -22,10 +23,7 @@ export interface DispositionItem extends LinkProps {
|
|
|
22
23
|
export interface SitemapDataProps {
|
|
23
24
|
topItems?: TopMenuItem[];
|
|
24
25
|
dispositions?: DispositionItem[];
|
|
25
|
-
logo?:
|
|
26
|
-
image?: Picture;
|
|
27
|
-
title?: string;
|
|
28
|
-
};
|
|
26
|
+
logo?: LogoType;
|
|
29
27
|
defaultLocation?: string;
|
|
30
28
|
officesLink?: string;
|
|
31
29
|
}
|
|
@@ -22,23 +22,23 @@ export const ButtonSection = JSX<ButtonSectionProps>(({ className = '', buttons
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
export function renderButton({ button, buttonClassName, index }: RenderButtonProps) {
|
|
25
|
-
const { icon, iconRight, version, ...rest } = button;
|
|
25
|
+
const { icon, iconRight, version, text, ...rest } = button;
|
|
26
26
|
|
|
27
27
|
const iconVersion = version === 'secondary' ? 'color' : 'white';
|
|
28
|
-
|
|
29
28
|
const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion } as Picture);
|
|
30
29
|
const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion } as Picture);
|
|
31
30
|
|
|
32
|
-
return (
|
|
31
|
+
return text ? (
|
|
33
32
|
<Button
|
|
34
33
|
key={index ? String(index) : ''}
|
|
35
34
|
className={buttonClassName}
|
|
36
35
|
appendLeft={leftIcon}
|
|
37
36
|
appendRight={rightIcon}
|
|
38
37
|
version={version}
|
|
38
|
+
text={text}
|
|
39
39
|
{...rest}
|
|
40
40
|
/>
|
|
41
|
-
);
|
|
41
|
+
) : null;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const renderButtonIcon = (icon: Picture) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
2
|
+
import type { LogoType } from '../../model/LogoType';
|
|
3
|
+
import { renderImage } from './renderImage';
|
|
4
|
+
import { renderTitle } from './renderTitle';
|
|
4
5
|
|
|
5
6
|
export interface LogoProps {
|
|
6
7
|
className: string;
|
|
@@ -8,44 +9,28 @@ export interface LogoProps {
|
|
|
8
9
|
targetBlank: boolean;
|
|
9
10
|
bgColor?: string;
|
|
10
11
|
showTitle?: boolean;
|
|
12
|
+
logo?: LogoType;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
const ICON_VERSION_MAP: Record<BgColorVersion, string> = {
|
|
14
|
-
'bg-white': 'color',
|
|
15
|
-
transparent: 'white',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const SVG_COLOR: Record<BgColorVersion, string> = {
|
|
19
|
-
'bg-white': 'text-primary-main',
|
|
20
|
-
transparent: 'text-white',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const TEXT_COLOR: Record<BgColorVersion, string> = {
|
|
24
|
-
'bg-white': 'text-black',
|
|
25
|
-
transparent: 'text-white',
|
|
26
|
-
};
|
|
27
|
-
|
|
28
15
|
export const Logo = JSX<Partial<LogoProps>>(
|
|
29
|
-
({
|
|
16
|
+
({
|
|
17
|
+
bgColor = 'bg-white',
|
|
18
|
+
children,
|
|
19
|
+
className = '',
|
|
20
|
+
href,
|
|
21
|
+
logo,
|
|
22
|
+
showTitle = true,
|
|
23
|
+
targetBlank,
|
|
24
|
+
}) => {
|
|
30
25
|
return (
|
|
31
26
|
<a
|
|
32
27
|
className={`inline-flex items-center font-sans no-underline ${className}`}
|
|
33
28
|
href={href || 'https://rshb.ru/'}
|
|
34
29
|
target={targetBlank ? '_blank' : '_self'}
|
|
35
|
-
aria-label=
|
|
30
|
+
aria-label={logo?.title || 'Россельхозбанк'}
|
|
36
31
|
>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
className={`${SVG_COLOR[bgColor]}`}
|
|
40
|
-
width="34"
|
|
41
|
-
height="34"
|
|
42
|
-
asSVG
|
|
43
|
-
/>
|
|
44
|
-
{showTitle ? (
|
|
45
|
-
<span className={`${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`}>
|
|
46
|
-
{children || 'Россельхозбанк'}
|
|
47
|
-
</span>
|
|
48
|
-
) : null}
|
|
32
|
+
{renderImage(bgColor, logo?.image, { width: '34', height: '34' })}
|
|
33
|
+
{showTitle ? renderTitle(children || logo?.title, bgColor, 'text-s') : null}
|
|
49
34
|
</a>
|
|
50
35
|
);
|
|
51
36
|
},
|
package/src/ui-kit/Logo/Logo.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Img } from '../Img/Img';
|
|
2
|
+
import type { LogoType } from '../../model/LogoType';
|
|
3
|
+
import { renderImage } from './renderImage';
|
|
4
|
+
import { renderTitle } from './renderTitle';
|
|
6
5
|
|
|
7
6
|
export interface LogoProps {
|
|
8
7
|
className: string;
|
|
@@ -10,26 +9,9 @@ export interface LogoProps {
|
|
|
10
9
|
targetBlank: boolean;
|
|
11
10
|
bgColor?: string;
|
|
12
11
|
showTitle?: boolean;
|
|
13
|
-
logo?:
|
|
14
|
-
image?: Picture;
|
|
15
|
-
title?: string;
|
|
16
|
-
};
|
|
12
|
+
logo?: LogoType;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
const ICON_VERSION_MAP: Record<BgColorVersion, string> = {
|
|
20
|
-
'bg-white': 'color',
|
|
21
|
-
transparent: 'white',
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const SVG_COLOR: Record<BgColorVersion, string> = {
|
|
25
|
-
'bg-white': 'text-primary-main',
|
|
26
|
-
transparent: 'text-white',
|
|
27
|
-
};
|
|
28
|
-
const TEXT_COLOR: Record<BgColorVersion, string> = {
|
|
29
|
-
'bg-white': 'text-primary-text',
|
|
30
|
-
transparent: 'text-white',
|
|
31
|
-
};
|
|
32
|
-
|
|
33
15
|
export const Logo = JSX<Partial<LogoProps>>(
|
|
34
16
|
({
|
|
35
17
|
className = '',
|
|
@@ -47,28 +29,9 @@ export const Logo = JSX<Partial<LogoProps>>(
|
|
|
47
29
|
target={targetBlank ? '_blank' : '_self'}
|
|
48
30
|
aria-label={logo?.title || 'Россельхозбанк'}
|
|
49
31
|
>
|
|
50
|
-
{logo?.image
|
|
51
|
-
|
|
52
|
-
) : (
|
|
53
|
-
<Img
|
|
54
|
-
image={{
|
|
55
|
-
icon: logo?.image?.icon || 'LogoIcon',
|
|
56
|
-
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
57
|
-
}}
|
|
58
|
-
className={`${SVG_COLOR[bgColor]} w-10`}
|
|
59
|
-
width="40"
|
|
60
|
-
height="45"
|
|
61
|
-
asSVG
|
|
62
|
-
/>
|
|
63
|
-
)}
|
|
64
|
-
{showTitle ? renderTitle(children, bgColor, logo?.title) : null}
|
|
32
|
+
{renderImage(bgColor, logo?.image, { width: '40', height: '45' })}
|
|
33
|
+
{showTitle ? renderTitle(children || logo?.title, bgColor) : null}
|
|
65
34
|
</a>
|
|
66
35
|
);
|
|
67
36
|
},
|
|
68
37
|
);
|
|
69
|
-
|
|
70
|
-
const renderTitle = (children: VNode, bgColor: string, title?: string) => {
|
|
71
|
-
const text = children || title || 'Россельхозбанк';
|
|
72
|
-
|
|
73
|
-
return <span className={`${TEXT_COLOR[bgColor]} font-medium ml-2.5`}>{text}</span>;
|
|
74
|
-
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import { Img } from '../Img/Img';
|
|
4
|
+
|
|
5
|
+
const ICON_VERSION_MAP: Record<BgColorVersion, string> = {
|
|
6
|
+
'bg-white': 'color',
|
|
7
|
+
transparent: 'white',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const SVG_COLOR: Record<BgColorVersion, string> = {
|
|
11
|
+
'bg-white': 'text-primary-main',
|
|
12
|
+
transparent: 'text-white',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const renderImage = (
|
|
16
|
+
bgColor: string,
|
|
17
|
+
image?: Picture,
|
|
18
|
+
size?: { width: string; height: string },
|
|
19
|
+
) => {
|
|
20
|
+
return image?.src ? (
|
|
21
|
+
<Img
|
|
22
|
+
image={image}
|
|
23
|
+
className={SVG_COLOR[bgColor]}
|
|
24
|
+
width={size?.width}
|
|
25
|
+
height={size?.height}
|
|
26
|
+
asSVG
|
|
27
|
+
/>
|
|
28
|
+
) : (
|
|
29
|
+
<Img
|
|
30
|
+
image={{
|
|
31
|
+
icon: image?.icon || 'LogoIcon',
|
|
32
|
+
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
33
|
+
}}
|
|
34
|
+
className={SVG_COLOR[bgColor]}
|
|
35
|
+
width={size?.width}
|
|
36
|
+
height={size?.height}
|
|
37
|
+
asSVG
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
+
import type { VNode } from '../../model/VNode';
|
|
3
|
+
|
|
4
|
+
const TEXT_COLOR: Record<BgColorVersion, string> = {
|
|
5
|
+
'bg-white': 'text-primary-text',
|
|
6
|
+
transparent: 'text-white',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const renderTitle = (title: VNode, bgColor: string, className?: string) => {
|
|
10
|
+
return (
|
|
11
|
+
<span className={`${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`}>
|
|
12
|
+
{title || 'Россельхозбанк'}
|
|
13
|
+
</span>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -16,13 +16,13 @@ interface SwipeListContainerProps extends SwipeContainerProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
containerRef?: { current: HTMLDivElement | null };
|
|
18
18
|
activeIndex?: number;
|
|
19
|
-
visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
|
|
19
|
+
visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3 | 4;
|
|
20
20
|
snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
|
|
21
21
|
onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
|
|
22
22
|
onVisibleIndicesChange?: (indices: number[]) => void;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
|
|
25
|
+
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
|
|
26
26
|
|
|
27
27
|
export const SwipeListContainer = JSX<SwipeListContainerProps>(
|
|
28
28
|
({
|