@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,9 +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
|
-
* @title Карточка галереи инвестиций
|
|
6
|
-
*/
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
7
4
|
/**
|
|
8
5
|
* @title Количество колонок
|
|
9
6
|
* @enumNames [
|
|
@@ -18,6 +15,9 @@ export interface CardsListItem {
|
|
|
18
15
|
/** @title Описание */
|
|
19
16
|
parameterDescription?: string;
|
|
20
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @title Карточка галереи инвестиций
|
|
20
|
+
*/
|
|
21
21
|
export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
|
|
22
22
|
/** @title Доп. описание карточки */
|
|
23
23
|
additionalDescription?: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { CarouselProductCardContent } from './CarouselProductCardContent';
|
|
3
|
+
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CarouselProductCard = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const AlignText_1 = require("../../model/AlignText");
|
|
6
|
+
const BlockVersion_1 = require("../../model/BlockVersion");
|
|
7
|
+
const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
8
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
|
+
const List_1 = require("../../ui-kit/List/List");
|
|
10
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
11
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
+
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
13
|
+
const constants_1 = require("../Headline/constants");
|
|
14
|
+
const descriptionStyleMap = {
|
|
15
|
+
primary: 'text-secondary-text',
|
|
16
|
+
secondary: 'text-white/80',
|
|
17
|
+
};
|
|
18
|
+
const BORDER_STYLE = 'box-border border-solid border border-main-stroke ';
|
|
19
|
+
exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'center', }) => {
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: [
|
|
21
|
+
'flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6',
|
|
22
|
+
BORDER_STYLE,
|
|
23
|
+
AlignText_1.AlignText[align],
|
|
24
|
+
BlockVersion_1.VersionStyleMap[version],
|
|
25
|
+
].join(' '), role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, version)] }), (0, ButtonSection_1.renderButton)({ button, buttonClassName: 'mt-6' })] }));
|
|
26
|
+
});
|
|
27
|
+
const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
|
|
28
|
+
const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
29
|
+
const renderDescription = (description, title) => description ? ((0, jsx_runtime_1.jsx)("div", { className: title ? 'mt-2' : '', children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", children: description }) })) : null;
|
|
30
|
+
const renderAdditionalDescription = (additionalDescription, version = 'primary') => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: descriptionStyleMap[version], children: additionalDescription }) })) : null;
|
|
31
|
+
const renderItems = (items, isDotted, version = 'primary') => items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version })) : null;
|
|
32
|
+
//# sourceMappingURL=CarouselProductCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,2DAA2D;AAG3D,qEAAiE;AACjE,8CAA2C;AAC3C,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAC9C,uEAAoE;AACpE,qDAA+D;AAK/D,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,MAAM,YAAY,GAAG,oDAAoD,CAAC;AAE7D,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,KAAK,EACL,oBAAoB,GAAG,IAAI,EAC3B,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,QAAQ,GACjB,EAAE,EAAE;IACH,OAAO,CACL,qCACE,SAAS,EAAE;YACT,6EAA6E;YAC7E,YAAY;YACZ,qBAAS,CAAC,KAAK,CAAC;YAChB,8BAAe,CAAC,OAAO,CAAC;SACzB,CAAC,IAA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,CAAC,CAAC,CAAC,EAAE,YACjC,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,YAAE,WAAW,GAAa,GAC9C,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,2BAA2B,GAAG,CAAC,qBAA8B,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,CAC1F,qBAAqB,CAAC,CAAC,CAAC,CACtB,gCAAK,SAAS,EAAC,SAAS,YACtB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,YACtE,qBAAqB,GACjB,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* @title Элемент списка
|
|
8
|
+
*/
|
|
9
|
+
export interface ListProps {
|
|
10
|
+
/** @title Текст */
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @title Карточка продуктовой карусели
|
|
15
|
+
*/
|
|
16
|
+
export declare type CarouselProductCardContent = HeadlineSmallProps & {
|
|
17
|
+
/** @title Дополнительное описание */
|
|
18
|
+
additionalDescription?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @default {
|
|
21
|
+
* "format": "webp",
|
|
22
|
+
* "size": {
|
|
23
|
+
* "width": 140
|
|
24
|
+
* },
|
|
25
|
+
* "sources": [{
|
|
26
|
+
* "media": 1279,
|
|
27
|
+
* "width": 84,
|
|
28
|
+
* "format": "webp",
|
|
29
|
+
* "alignment": "center"
|
|
30
|
+
* }]
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
icon?: Picture;
|
|
34
|
+
/** @title Кнопка */
|
|
35
|
+
button?: ButtonWithIconProps;
|
|
36
|
+
/**
|
|
37
|
+
* @title Буллиты
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
isDotted?: boolean;
|
|
41
|
+
/** @title Список */
|
|
42
|
+
items?: ListProps[];
|
|
43
|
+
version?: BlockVersion;
|
|
44
|
+
/**
|
|
45
|
+
* @title Выравнивание
|
|
46
|
+
* @default center
|
|
47
|
+
*/
|
|
48
|
+
align?: AlignType;
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselProductCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCardContent.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
* @title Карточка программ карусели
|
|
6
6
|
*/
|
|
@@ -3,12 +3,13 @@ exports.GalleryCardInner = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const AlignText_1 = require("../../model/AlignText");
|
|
6
|
+
const BlockVersion_1 = require("../../model/BlockVersion");
|
|
6
7
|
const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
7
8
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
9
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
10
|
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
10
11
|
const constants_1 = require("../Headline/constants");
|
|
11
|
-
exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription)] }), button?.text
|
|
12
|
+
exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription, version)] }), button?.text
|
|
12
13
|
? (0, ButtonSection_1.renderButton)({
|
|
13
14
|
button,
|
|
14
15
|
buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
|
|
@@ -17,6 +18,6 @@ exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = '
|
|
|
17
18
|
const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
|
|
18
19
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)("div", { className: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
19
20
|
const renderDescription = (description, title) => description ? (0, jsx_runtime_1.jsx)("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
|
|
20
|
-
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className:
|
|
21
|
+
const renderAdditionalDescription = (additionalDescription, version) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-auto ${BlockVersion_1.VersionAdditionalStyleMap[version ?? 'primary']}`, children: additionalDescription })) : null;
|
|
21
22
|
const renderItems = (items, isDotted, version = 'primary') => ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
22
23
|
//# sourceMappingURL=GalleryCardInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qD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M,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC"}
|
|
@@ -17,12 +17,12 @@ const HeaderTop_1 = require("./HeaderTop");
|
|
|
17
17
|
exports.Header = (0, uni_jsx_1.JSX)(({ className = '', bgColor = 'bg-white', ...rest }) => {
|
|
18
18
|
const router = (0, useRouter_1.useRouter)();
|
|
19
19
|
const fallback = rest.options?.page?.fallback;
|
|
20
|
-
const { topItems, dispositions, defaultLocation } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
|
|
20
|
+
const { topItems, dispositions, defaultLocation, logo } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
|
|
21
21
|
const activeTopItem = topItems?.find((0, isTopItemActive_1.isTopItemActive)(router));
|
|
22
22
|
const subItems = activeTopItem?.items;
|
|
23
23
|
const activeSubItem = (0, findActiveSubItem_1.findActiveSubItem)(router)(subItems);
|
|
24
24
|
const [burgerMenuShow, setBurgerMenuShow] = (0, hooks_1.useState)(false);
|
|
25
25
|
const handleBurgerMenuShow = (0, hooks_1.useCallback)(() => setBurgerMenuShow((_) => !_), []);
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0 box-border", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: (0, jsx_runtime_1.jsx)("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0 box-border", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: (0, jsx_runtime_1.jsx)("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=Header.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,qDAAkD;AAGlD,2DAAwD;AACxD,gFAA6E;AAC7E,4EAAyE;AAEzE,0EAAuE;AACvE,mEAAgE;AAChE,wEAAqE;AACrE,kEAA+D;AAC/D,mDAAgD;AAChD,iDAA8C;AAE9C,2CAAwC;AAI3B,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC3F,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,MAAM,QAAQ,GAAyB,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IACpE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,IAAA,+BAAc,
|
|
1
|
+
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,qDAAkD;AAGlD,2DAAwD;AACxD,gFAA6E;AAC7E,4EAAyE;AAEzE,0EAAuE;AACvE,mEAAgE;AAChE,wEAAqE;AACrE,kEAA+D;AAC/D,mDAAgD;AAChD,iDAA8C;AAE9C,2CAAwC;AAI3B,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC3F,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,MAAM,QAAQ,GAAyB,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IACpE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,GAAG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EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,uBAAC,6BAAa,IAAiB,KAAK,EAAE,IAAI,CAAC,IAAI,YAC7C,uBAAC,mBAAQ,IAAC,SAAS,EAAE,IAAI,CAAC,KAAK,GAAI,IADjB,MAAM,CAAC,CAAC,CAAC,CAEb,CACjB,CAAC,GACiB,GACR,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
+
import type { LogoType } from '../../model/LogoType';
|
|
2
3
|
export interface HeaderTopProps {
|
|
3
4
|
onClick: () => void;
|
|
4
5
|
bgColor?: BgColorVersion;
|
|
6
|
+
logo?: LogoType;
|
|
5
7
|
}
|
|
6
8
|
export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
|
|
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
6
|
const Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
7
|
-
exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
7
|
+
exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor, logo }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor, logo: logo })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
8
8
|
//# sourceMappingURL=HeaderTop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,iDAA8C;AAOjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3E,iCAAK,SAAS,EAAC,8EAA8E,aAC3F,iCAAK,SAAS,EAAC,mBAAmB,aAChC,mCACE,SAAS,EAAC,kDAAkD,EAC5D,OAAO,EAAE,OAAO,gBACL,qEAAc,YAEzB,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EACtF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,GACK,EACT,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,IACnD,EACN,mCACE,SAAS,EAAE,GACT,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YACjD,gDAAgD,+CAGzC,IACL,CACP,CAAC,CAAC"}
|
|
@@ -8,36 +8,30 @@ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
|
8
8
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
9
|
const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
10
10
|
const Headline_1 = require("../Headline/Headline");
|
|
11
|
-
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative
|
|
12
|
-
${
|
|
13
|
-
? renderAdditionalDescription(additionalDescription, image, version)
|
|
14
|
-
: null, buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute right-0 bottom-0", image: image }) : null] })));
|
|
11
|
+
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative min-h-[364px]
|
|
12
|
+
${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription ? renderAdditionalDescription(additionalDescription, image) : null, buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons, className: "mt-5 gap-4 z-10 text-l" })) : null] }), renderImage(image, isImageOnRightSide)] })));
|
|
15
13
|
function renderBenefits(benefits, version, image) {
|
|
16
14
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
17
15
|
const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
18
16
|
return ((0, jsx_runtime_1.jsx)("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline
|
|
19
17
|
${BENEFITS_WIDTH}`, children: benefits.length ? benefits.map(renderBenefit(version)) : null }));
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: label }, `label-${i}`),
|
|
30
|
-
(0, jsx_runtime_1.jsx)("div", { className: `text-m-light ${labelStyleMap[version]}`, children: description }, `desc-${i}`),
|
|
31
|
-
];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function renderAdditionalDescription(additionalDescription, image, version = 'primary') {
|
|
35
|
-
const descStyleMap = {
|
|
36
|
-
primary: 'text-secondary-text',
|
|
37
|
-
secondary: 'text-white',
|
|
38
|
-
};
|
|
19
|
+
const renderBenefit = (version = 'primary') => (benefit, i) => {
|
|
20
|
+
const { label = '', description = '' } = benefit;
|
|
21
|
+
return [
|
|
22
|
+
(0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: label }, `label-${i}`),
|
|
23
|
+
(0, jsx_runtime_1.jsx)("div", { className: `text-m-light ${BlockVersion_1.VersionAdditionalStyleMap[version]}`, children: description }, `desc-${i}`),
|
|
24
|
+
];
|
|
25
|
+
};
|
|
26
|
+
function renderAdditionalDescription(additionalDescription, image) {
|
|
39
27
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
40
28
|
const DESCRIPTION_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}`, children: additionalDescription }));
|
|
30
|
+
}
|
|
31
|
+
function renderImage(image, isImageOnRightSide) {
|
|
32
|
+
if (!image?.src) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`, image: image }));
|
|
42
36
|
}
|
|
43
37
|
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAAsF;AAGtF,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,yEAAsE;AACtE,mDAAgD;AAKnC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,kBAAkB,GAAG,IAAI,EACzB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE;YACL,8BAAe,CAAC,OAAO,CAAC,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI,SAAS,EAAE,KAC3E,IAAI,aAER,iCAAK,SAAS,EAAE,iBAAiB,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,aACtE,uBAAC,mBAAQ,IACP,SAAS,EAAE,6BAA6B,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAC9E,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,OAAO,EACxB,KAAK,EAAC,MAAM,KACR,IAAI,GACR,EACD,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,EACxC,qBAAqB,CAAC,CAAC,CAAC,2BAA2B,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EACxF,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AqB,GAAO,CAC/F,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAe,EAAE,kBAA4B;IAChE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uBAAC,SAAG,IACF,SAAS,EAAE,YAAY,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,EAC3E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -10,10 +10,10 @@ const alignStyle = {
|
|
|
10
10
|
right: 'items-end',
|
|
11
11
|
};
|
|
12
12
|
const gapStyleMap = {
|
|
13
|
-
XXL: 'gap-
|
|
14
|
-
XL: 'gap-
|
|
15
|
-
L: 'gap-
|
|
16
|
-
M: 'gap-
|
|
13
|
+
XXL: 'gap-12',
|
|
14
|
+
XL: 'gap-10',
|
|
15
|
+
L: 'gap-8',
|
|
16
|
+
M: 'gap-4',
|
|
17
17
|
S: 'gap-2',
|
|
18
18
|
XS: 'gap-1',
|
|
19
19
|
'': '',
|
|
@@ -23,15 +23,20 @@ const backgroundStyleMap = {
|
|
|
23
23
|
primary: 'bg-white',
|
|
24
24
|
secondary: 'bg-primary-main',
|
|
25
25
|
};
|
|
26
|
-
exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align, version = 'transparent', ...rest }) =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
27
|
+
const paddingStyle = isPadding ? 'p-12' : '';
|
|
28
|
+
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
|
|
30
|
+
'flex flex-col [&>*]:max-w-full',
|
|
31
|
+
paddingStyle,
|
|
32
|
+
gapStyleMap[gap],
|
|
33
|
+
align && alignStyle[align],
|
|
34
|
+
backgroundStyleMap[version],
|
|
35
|
+
className,
|
|
36
|
+
]
|
|
37
|
+
.filter(Boolean)
|
|
38
|
+
.join(' '), ...rest, children: (0, renderChildren_1.renderChildren)({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
|
|
39
|
+
});
|
|
35
40
|
exports.VerticalLayout.childrenTypes = {
|
|
36
41
|
exclude: ['VerticalLayout'],
|
|
37
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AAKzD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,WAAW,GAA+B;IAC9C,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AAKzD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,WAAW,GAA+B;IAC9C,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,QAAQ;IACZ,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,kBAAkB,GAAgD;IACtE,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,KAAK,EACL,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE;YACT,gCAAgC;YAChC,YAAY;YACZ,WAAW,CAAC,GAAG,CAAC;YAChB,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC;YAC1B,kBAAkB,CAAC,OAAO,CAAC;YAC3B,SAAS;SACV;aACE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACR,IAAI,YAEP,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC"}
|
|
@@ -14,4 +14,8 @@ export interface VerticalLayoutContent {
|
|
|
14
14
|
version?: BlockVersionWithTransparent;
|
|
15
15
|
align?: AlignType;
|
|
16
16
|
gap?: GapVersion;
|
|
17
|
+
/** @title Внутренний отступ компоновщика */
|
|
18
|
+
isPadding?: boolean;
|
|
19
|
+
/** @title Отступы вложенных компонентов */
|
|
20
|
+
isInnerPadding?: boolean;
|
|
17
21
|
}
|
|
@@ -9,4 +9,5 @@ export declare type BlockVersion = 'primary' | 'secondary';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
|
|
11
11
|
export declare const VersionStyleMap: Record<BlockVersion, string>;
|
|
12
|
+
export declare const VersionAdditionalStyleMap: Record<BlockVersion, string>;
|
|
12
13
|
export declare const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent, string>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.VersionWithTransparentStyleMap = exports.VersionStyleMap = void 0;
|
|
2
|
+
exports.VersionWithTransparentStyleMap = exports.VersionAdditionalStyleMap = exports.VersionStyleMap = void 0;
|
|
3
3
|
exports.VersionStyleMap = {
|
|
4
4
|
primary: 'bg-white text-primary-text',
|
|
5
5
|
secondary: 'bg-primary-main text-white',
|
|
6
6
|
};
|
|
7
|
+
exports.VersionAdditionalStyleMap = {
|
|
8
|
+
primary: 'text-secondary-text',
|
|
9
|
+
secondary: 'text-white',
|
|
10
|
+
};
|
|
7
11
|
exports.VersionWithTransparentStyleMap = {
|
|
8
12
|
transparent: '',
|
|
9
13
|
primary: 'bg-white text-primary-text',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockVersion.js","sourceRoot":"","sources":["../../src/model/BlockVersion.ts"],"names":[],"mappings":";;AAYa,QAAA,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,8BAA8B,GAAgD;IACzF,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"BlockVersion.js","sourceRoot":"","sources":["../../src/model/BlockVersion.ts"],"names":[],"mappings":";;AAYa,QAAA,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,yBAAyB,GAAiC;IACrE,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEW,QAAA,8BAA8B,GAAgD;IACzF,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoType.js","sourceRoot":"","sources":["../../src/model/LogoType.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
* @title Ссылка
|
|
@@ -19,10 +20,7 @@ export interface DispositionItem extends LinkProps {
|
|
|
19
20
|
export interface SitemapDataProps {
|
|
20
21
|
topItems?: TopMenuItem[];
|
|
21
22
|
dispositions?: DispositionItem[];
|
|
22
|
-
logo?:
|
|
23
|
-
image?: Picture;
|
|
24
|
-
title?: string;
|
|
25
|
-
};
|
|
23
|
+
logo?: LogoType;
|
|
26
24
|
defaultLocation?: string;
|
|
27
25
|
officesLink?: string;
|
|
28
26
|
}
|
|
@@ -9,5 +9,5 @@ interface RenderButtonProps {
|
|
|
9
9
|
index?: number;
|
|
10
10
|
}
|
|
11
11
|
export declare const ButtonSection: import("@redneckz/uni-jsx").UNIComponent<ButtonSectionProps, any, any>;
|
|
12
|
-
export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element;
|
|
12
|
+
export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -6,11 +6,11 @@ const Img_1 = require("../Img/Img");
|
|
|
6
6
|
const Button_1 = require("./Button");
|
|
7
7
|
exports.ButtonSection = (0, uni_jsx_1.JSX)(({ className = '', buttons }) => buttons && buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
|
|
8
8
|
function renderButton({ button, buttonClassName, index }) {
|
|
9
|
-
const { icon, iconRight, version, ...rest } = button;
|
|
9
|
+
const { icon, iconRight, version, text, ...rest } = button;
|
|
10
10
|
const iconVersion = version === 'secondary' ? 'color' : 'white';
|
|
11
11
|
const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
|
|
12
12
|
const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
|
|
13
|
+
return text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
14
14
|
}
|
|
15
15
|
exports.renderButton = renderButton;
|
|
16
16
|
const renderButtonIcon = (icon) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;AACjC,qCAAkC;AAYrB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CACnF,OAAO,IAAI,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAC3B,gCAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAC5D,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC;AAEF,SAAgB,YAAY,CAAC,EAAE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,EACtB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,KACN,IAAI,IANH,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAO/B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAlBD,oCAkBC;AAED,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IACzC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,IAAI,CAAC;KACb;IACD,MAAM,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAElE,OAAO,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC;AACzE,CAAC,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LogoType } from '../../model/LogoType';
|
|
2
2
|
export interface LogoProps {
|
|
3
3
|
className: string;
|
|
4
4
|
href: string;
|
|
5
5
|
targetBlank: boolean;
|
|
6
6
|
bgColor?: string;
|
|
7
7
|
showTitle?: boolean;
|
|
8
|
-
logo?:
|
|
9
|
-
image?: Picture;
|
|
10
|
-
title?: string;
|
|
11
|
-
};
|
|
8
|
+
logo?: LogoType;
|
|
12
9
|
}
|
|
13
10
|
export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
|
package/dist/ui-kit/Logo/Logo.js
CHANGED
|
@@ -2,27 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Logo = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
'bg-white': 'color',
|
|
8
|
-
transparent: 'white',
|
|
9
|
-
};
|
|
10
|
-
const SVG_COLOR = {
|
|
11
|
-
'bg-white': 'text-primary-main',
|
|
12
|
-
transparent: 'text-white',
|
|
13
|
-
};
|
|
14
|
-
const TEXT_COLOR = {
|
|
15
|
-
'bg-white': 'text-primary-text',
|
|
16
|
-
transparent: 'text-white',
|
|
17
|
-
};
|
|
5
|
+
const renderImage_1 = require("./renderImage");
|
|
6
|
+
const renderTitle_1 = require("./renderTitle");
|
|
18
7
|
exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [
|
|
20
|
-
icon: logo?.image?.icon || 'LogoIcon',
|
|
21
|
-
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
22
|
-
}, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle(children, bgColor, logo?.title) : null] }));
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [(0, renderImage_1.renderImage)(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? (0, renderTitle_1.renderTitle)(children || logo?.title, bgColor) : null] }));
|
|
23
9
|
});
|
|
24
|
-
const renderTitle = (children, bgColor, title) => {
|
|
25
|
-
const text = children || title || 'Россельхозбанк';
|
|
26
|
-
return (0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} font-medium ml-2.5`, children: text });
|
|
27
|
-
};
|
|
28
10
|
//# sourceMappingURL=Logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+CAA4C;AAC5C,+CAA4C;AAW/B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EAAE,KAAK,EACtB,WAAW,EACX,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,GAAG,EACjB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,IAAA,yBAAW,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/D,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { LogoType } from '../../model/LogoType';
|
|
1
2
|
export interface LogoProps {
|
|
2
3
|
className: string;
|
|
3
4
|
href: string;
|
|
4
5
|
targetBlank: boolean;
|
|
5
6
|
bgColor?: string;
|
|
6
7
|
showTitle?: boolean;
|
|
8
|
+
logo?: LogoType;
|
|
7
9
|
}
|
|
8
10
|
export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
|
|
@@ -2,20 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Logo = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
const SVG_COLOR = {
|
|
11
|
-
'bg-white': 'text-primary-main',
|
|
12
|
-
transparent: 'text-white',
|
|
13
|
-
};
|
|
14
|
-
const TEXT_COLOR = {
|
|
15
|
-
'bg-white': 'text-black',
|
|
16
|
-
transparent: 'text-white',
|
|
17
|
-
};
|
|
18
|
-
exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
|
|
5
|
+
const renderImage_1 = require("./renderImage");
|
|
6
|
+
const renderTitle_1 = require("./renderTitle");
|
|
7
|
+
exports.Logo = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [(0, renderImage_1.renderImage)(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? (0, renderTitle_1.renderTitle)(children || logo?.title, bgColor, 'text-s') : null] }));
|
|
20
9
|
});
|
|
21
10
|
//# sourceMappingURL=Logo.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC
|
|
1
|
+
{"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+CAA4C;AAC5C,+CAA4C;AAW/B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,OAAO,GAAG,UAAU,EACpB,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,GAAG,IAAI,EAChB,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,IAAA,yBAAW,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACzE,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|