@redneckz/wildless-cms-uni-blocks 0.8.14 → 0.8.16
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/bin/migration-scripts/0.8.10.js +1 -1
- package/bin/migration-scripts/0.8.15.js +29 -0
- package/bin/migration-scripts/0.8.8.js +115 -0
- package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
- package/bundle/BlockRenderer/renderChildren.d.ts +2 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +37 -121
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -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/BlockRenderer/renderBlockList.d.ts +2 -2
- package/dist/BlockRenderer/renderBlockList.js +1 -1
- package/dist/BlockRenderer/renderChildren.d.ts +2 -2
- package/dist/BlockRenderer/renderChildren.js +2 -2
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +9 -18
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +3 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/dist/ui-kit/Img/ImgAsPicture.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/BlockRenderer/renderBlockList.d.ts +2 -2
- package/lib/BlockRenderer/renderBlockList.js +1 -1
- package/lib/BlockRenderer/renderChildren.d.ts +2 -2
- package/lib/BlockRenderer/renderChildren.js +2 -2
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +9 -18
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +3 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/bundle/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +11 -44
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -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/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/dist/BlockRenderer/renderBlockList.js +1 -1
- package/mobile/dist/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +9 -18
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/dist/components/Tabs/Tabs.js +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/mobile/dist/ui-kit/Img/ImgAsPicture.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/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/lib/BlockRenderer/renderBlockList.js +1 -1
- package/mobile/lib/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +9 -18
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/lib/components/Tabs/Tabs.js +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/mobile/src/BlockRenderer/renderBlock.tsx +2 -0
- package/mobile/src/BlockRenderer/renderBlockList.tsx +3 -3
- package/mobile/src/BlockRenderer/renderChildren.ts +3 -3
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +9 -19
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/mobile/src/components/ProductBlock/ProductBlock.ui.json +3 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/package.json +1 -1
- package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/src/BlockRenderer/renderBlock.tsx +2 -0
- package/src/BlockRenderer/renderBlockList.tsx +3 -3
- package/src/BlockRenderer/renderChildren.ts +3 -3
- package/src/components/Accordion/Accordion.fixture.tsx +0 -12
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +0 -6
- package/src/components/Carousel/Carousel.tsx +9 -19
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -18
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.ui.json +3 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +7 -0
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/bundle/components/Catalog/Catalog.d.ts +0 -5
- package/bundle/components/Catalog/CatalogCard.d.ts +0 -7
- package/bundle/components/Catalog/CatalogContent.d.ts +0 -27
- package/bundle/components/Gallery/Gallery.d.ts +0 -2
- package/bundle/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
- package/bundle/components/Gallery/GalleryContent.d.ts +0 -71
- package/bundle/components/Gallery/GalleryInner.d.ts +0 -7
- package/bundle/components/Gallery/GalleryProps.d.ts +0 -4
- package/bundle/components/Gallery/constants.d.ts +0 -4
- package/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/bundle/model/GalleryVersion.d.ts +0 -1
- package/dist/components/Catalog/Catalog.d.ts +0 -5
- package/dist/components/Catalog/Catalog.js +0 -24
- package/dist/components/Catalog/Catalog.js.map +0 -1
- package/dist/components/Catalog/CatalogCard.d.ts +0 -7
- package/dist/components/Catalog/CatalogCard.js +0 -14
- package/dist/components/Catalog/CatalogCard.js.map +0 -1
- package/dist/components/Catalog/CatalogContent.d.ts +0 -27
- package/dist/components/Catalog/CatalogContent.js +0 -2
- package/dist/components/Catalog/CatalogContent.js.map +0 -1
- package/dist/components/Gallery/Gallery.d.ts +0 -2
- package/dist/components/Gallery/Gallery.js +0 -7
- package/dist/components/Gallery/Gallery.js.map +0 -1
- package/dist/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/dist/components/Gallery/Gallery.mobile.js +0 -35
- package/dist/components/Gallery/Gallery.mobile.js.map +0 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/dist/components/Gallery/GalleryCardInner.js +0 -20
- package/dist/components/Gallery/GalleryCardInner.js.map +0 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +0 -11
- package/dist/components/Gallery/GalleryContainer.js +0 -15
- package/dist/components/Gallery/GalleryContainer.js.map +0 -1
- package/dist/components/Gallery/GalleryContent.d.ts +0 -71
- package/dist/components/Gallery/GalleryContent.js +0 -2
- package/dist/components/Gallery/GalleryContent.js.map +0 -1
- package/dist/components/Gallery/GalleryInner.d.ts +0 -7
- package/dist/components/Gallery/GalleryInner.js +0 -23
- package/dist/components/Gallery/GalleryInner.js.map +0 -1
- package/dist/components/Gallery/GalleryProps.d.ts +0 -4
- package/dist/components/Gallery/GalleryProps.js +0 -2
- package/dist/components/Gallery/GalleryProps.js.map +0 -1
- package/dist/components/Gallery/constants.d.ts +0 -4
- package/dist/components/Gallery/constants.js +0 -15
- package/dist/components/Gallery/constants.js.map +0 -1
- package/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/dist/components/MiniGallery/MiniGallery.js +0 -7
- package/dist/components/MiniGallery/MiniGallery.js.map +0 -1
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/dist/model/GalleryVersion.d.ts +0 -1
- package/dist/model/GalleryVersion.js +0 -2
- package/dist/model/GalleryVersion.js.map +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -5
- package/lib/components/Catalog/Catalog.fixture.d.ts +0 -8
- package/lib/components/Catalog/Catalog.js +0 -22
- package/lib/components/Catalog/Catalog.js.map +0 -1
- package/lib/components/Catalog/CatalogCard.d.ts +0 -7
- package/lib/components/Catalog/CatalogCard.js +0 -12
- package/lib/components/Catalog/CatalogCard.js.map +0 -1
- package/lib/components/Catalog/CatalogContent.d.ts +0 -27
- package/lib/components/Catalog/CatalogContent.js +0 -2
- package/lib/components/Catalog/CatalogContent.js.map +0 -1
- package/lib/components/Gallery/Gallery.d.ts +0 -2
- package/lib/components/Gallery/Gallery.fixture.d.ts +0 -12
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +0 -7
- package/lib/components/Gallery/Gallery.js +0 -5
- package/lib/components/Gallery/Gallery.js.map +0 -1
- package/lib/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/lib/components/Gallery/Gallery.mobile.js +0 -33
- package/lib/components/Gallery/Gallery.mobile.js.map +0 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/lib/components/Gallery/GalleryCardInner.js +0 -18
- package/lib/components/Gallery/GalleryCardInner.js.map +0 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +0 -11
- package/lib/components/Gallery/GalleryContainer.js +0 -13
- package/lib/components/Gallery/GalleryContainer.js.map +0 -1
- package/lib/components/Gallery/GalleryContent.d.ts +0 -71
- package/lib/components/Gallery/GalleryContent.js +0 -2
- package/lib/components/Gallery/GalleryContent.js.map +0 -1
- package/lib/components/Gallery/GalleryInner.d.ts +0 -7
- package/lib/components/Gallery/GalleryInner.js +0 -21
- package/lib/components/Gallery/GalleryInner.js.map +0 -1
- package/lib/components/Gallery/GalleryProps.d.ts +0 -4
- package/lib/components/Gallery/GalleryProps.js +0 -2
- package/lib/components/Gallery/GalleryProps.js.map +0 -1
- package/lib/components/Gallery/constants.d.ts +0 -4
- package/lib/components/Gallery/constants.js +0 -13
- package/lib/components/Gallery/constants.js.map +0 -1
- package/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +0 -11
- package/lib/components/MiniGallery/MiniGallery.js +0 -5
- package/lib/components/MiniGallery/MiniGallery.js.map +0 -1
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/lib/model/GalleryVersion.d.ts +0 -1
- package/lib/model/GalleryVersion.js +0 -2
- package/lib/model/GalleryVersion.js.map +0 -1
- package/mobile/bundle/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/bundle/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/bundle/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/bundle/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/bundle/components/Gallery/constants.d.ts +0 -4
- package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/bundle/model/GalleryVersion.d.ts +0 -1
- package/mobile/dist/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/dist/components/Catalog/Catalog.js +0 -24
- package/mobile/dist/components/Catalog/Catalog.js.map +0 -1
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/dist/components/Catalog/CatalogCard.js +0 -14
- package/mobile/dist/components/Catalog/CatalogCard.js.map +0 -1
- package/mobile/dist/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/dist/components/Catalog/CatalogContent.js +0 -2
- package/mobile/dist/components/Catalog/CatalogContent.js.map +0 -1
- package/mobile/dist/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/dist/components/Gallery/Gallery.js +0 -35
- package/mobile/dist/components/Gallery/Gallery.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js +0 -20
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/dist/components/Gallery/GalleryContainer.js +0 -15
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/dist/components/Gallery/GalleryContent.js +0 -2
- package/mobile/dist/components/Gallery/GalleryContent.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/dist/components/Gallery/GalleryInner.js +0 -23
- package/mobile/dist/components/Gallery/GalleryInner.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/dist/components/Gallery/GalleryProps.js +0 -2
- package/mobile/dist/components/Gallery/GalleryProps.js.map +0 -1
- package/mobile/dist/components/Gallery/constants.d.ts +0 -4
- package/mobile/dist/components/Gallery/constants.js +0 -15
- package/mobile/dist/components/Gallery/constants.js.map +0 -1
- package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/dist/components/MiniGallery/MiniGallery.js +0 -7
- package/mobile/dist/components/MiniGallery/MiniGallery.js.map +0 -1
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/mobile/dist/model/GalleryVersion.d.ts +0 -1
- package/mobile/dist/model/GalleryVersion.js +0 -2
- package/mobile/dist/model/GalleryVersion.js.map +0 -1
- package/mobile/lib/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/lib/components/Catalog/Catalog.js +0 -22
- package/mobile/lib/components/Catalog/Catalog.js.map +0 -1
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/lib/components/Catalog/CatalogCard.js +0 -12
- package/mobile/lib/components/Catalog/CatalogCard.js.map +0 -1
- package/mobile/lib/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/lib/components/Catalog/CatalogContent.js +0 -2
- package/mobile/lib/components/Catalog/CatalogContent.js.map +0 -1
- package/mobile/lib/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/lib/components/Gallery/Gallery.js +0 -33
- package/mobile/lib/components/Gallery/Gallery.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js +0 -18
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/lib/components/Gallery/GalleryContainer.js +0 -13
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/lib/components/Gallery/GalleryContent.js +0 -2
- package/mobile/lib/components/Gallery/GalleryContent.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/lib/components/Gallery/GalleryInner.js +0 -21
- package/mobile/lib/components/Gallery/GalleryInner.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/lib/components/Gallery/GalleryProps.js +0 -2
- package/mobile/lib/components/Gallery/GalleryProps.js.map +0 -1
- package/mobile/lib/components/Gallery/constants.d.ts +0 -4
- package/mobile/lib/components/Gallery/constants.js +0 -13
- package/mobile/lib/components/Gallery/constants.js.map +0 -1
- package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/lib/components/MiniGallery/MiniGallery.js +0 -5
- package/mobile/lib/components/MiniGallery/MiniGallery.js.map +0 -1
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/mobile/lib/model/GalleryVersion.d.ts +0 -1
- package/mobile/lib/model/GalleryVersion.js +0 -2
- package/mobile/lib/model/GalleryVersion.js.map +0 -1
- package/mobile/src/components/Catalog/Catalog.example.json +0 -59
- package/mobile/src/components/Catalog/Catalog.tsx +0 -49
- package/mobile/src/components/Catalog/Catalog.ui.json +0 -11
- package/mobile/src/components/Catalog/CatalogCard.tsx +0 -47
- package/mobile/src/components/Catalog/CatalogContent.ts +0 -29
- package/mobile/src/components/Gallery/Gallery.example.json +0 -66
- package/mobile/src/components/Gallery/Gallery.tsx +0 -113
- package/mobile/src/components/Gallery/Gallery.ui.json +0 -22
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +0 -78
- package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -61
- package/mobile/src/components/Gallery/GalleryContent.ts +0 -74
- package/mobile/src/components/Gallery/GalleryInner.tsx +0 -50
- package/mobile/src/components/Gallery/GalleryProps.ts +0 -4
- package/mobile/src/components/Gallery/constants.ts +0 -16
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +0 -56
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +0 -10
- package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -19
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
- package/mobile/src/model/GalleryVersion.ts +0 -1
- package/src/components/Catalog/Catalog.example.json +0 -59
- package/src/components/Catalog/Catalog.fixture.tsx +0 -50
- package/src/components/Catalog/Catalog.tsx +0 -49
- package/src/components/Catalog/Catalog.ui.json +0 -11
- package/src/components/Catalog/CatalogCard.tsx +0 -47
- package/src/components/Catalog/CatalogContent.ts +0 -29
- package/src/components/Gallery/Gallery.example.json +0 -66
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -83
- package/src/components/Gallery/Gallery.fixture.tsx +0 -225
- package/src/components/Gallery/Gallery.mobile.tsx +0 -113
- package/src/components/Gallery/Gallery.tsx +0 -7
- package/src/components/Gallery/Gallery.ui.json +0 -22
- package/src/components/Gallery/GalleryCardInner.tsx +0 -78
- package/src/components/Gallery/GalleryContainer.tsx +0 -61
- package/src/components/Gallery/GalleryContent.ts +0 -74
- package/src/components/Gallery/GalleryInner.tsx +0 -50
- package/src/components/Gallery/GalleryProps.ts +0 -4
- package/src/components/Gallery/constants.ts +0 -16
- package/src/components/MiniGallery/MiniGallery.example.json +0 -56
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +0 -154
- package/src/components/MiniGallery/MiniGallery.tsx +0 -10
- package/src/components/MiniGallery/MiniGallery.ui.json +0 -19
- package/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
- package/src/model/GalleryVersion.ts +0 -1
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { AlignType } from '../../model/AlignType';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { HeadlineProps, HeadlineSmallProps } from '../../model/HeadlineType';
|
|
4
|
-
import type { ListOrientation } from '../../model/ListOrientation';
|
|
5
|
-
import type { Picture } from '../../model/Picture';
|
|
6
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
7
|
-
/**
|
|
8
|
-
* @title Элемент списка
|
|
9
|
-
*/
|
|
10
|
-
export interface GalleryItemProps {
|
|
11
|
-
/** @title Заголовок (моб.) */
|
|
12
|
-
title?: string;
|
|
13
|
-
/** @title Текст */
|
|
14
|
-
text?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @title Карточка
|
|
18
|
-
* @default {"headlineSmallVersion": "XL_L"}
|
|
19
|
-
*/
|
|
20
|
-
export declare type GalleryCardProps = HeadlineSmallProps & {
|
|
21
|
-
/** @title Дополнительное описание */
|
|
22
|
-
additionalDescription?: string;
|
|
23
|
-
/**
|
|
24
|
-
* @default {
|
|
25
|
-
* "format": "webp",
|
|
26
|
-
* "size": {
|
|
27
|
-
* "width": 140
|
|
28
|
-
* },
|
|
29
|
-
* "sources": [{
|
|
30
|
-
* "media": 1279,
|
|
31
|
-
* "width": 84,
|
|
32
|
-
* "format": "webp",
|
|
33
|
-
* "alignment": "center"
|
|
34
|
-
* }]
|
|
35
|
-
* }
|
|
36
|
-
*/
|
|
37
|
-
icon?: Picture;
|
|
38
|
-
/** @title Кнопка */
|
|
39
|
-
button?: ButtonWithIconProps;
|
|
40
|
-
/**
|
|
41
|
-
* @title Буллиты
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
|
-
isDotted?: boolean;
|
|
45
|
-
/** @title Список */
|
|
46
|
-
items?: GalleryItemProps[];
|
|
47
|
-
version?: BlockVersion;
|
|
48
|
-
/**
|
|
49
|
-
* @title Выравнивание
|
|
50
|
-
* @default center
|
|
51
|
-
*/
|
|
52
|
-
align?: AlignType;
|
|
53
|
-
/**
|
|
54
|
-
* @title Кнопка по всей ширине
|
|
55
|
-
* @default true
|
|
56
|
-
*/
|
|
57
|
-
isFullWidth?: boolean;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* @title Галерея
|
|
61
|
-
*/
|
|
62
|
-
export declare type GalleryContent = HeadlineProps & {
|
|
63
|
-
/**
|
|
64
|
-
* @title Карточки
|
|
65
|
-
* @minItems 3
|
|
66
|
-
*/
|
|
67
|
-
cards?: GalleryCardProps[];
|
|
68
|
-
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
69
|
-
orientation?: ListOrientation;
|
|
70
|
-
button?: ButtonWithIconProps;
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryContent.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import type { GalleryContent } from './GalleryContent';
|
|
4
|
-
export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
|
|
5
|
-
galleryVersion?: GalleryVersion;
|
|
6
|
-
}
|
|
7
|
-
export declare const GalleryInner: import("@redneckz/uni-jsx").UNIComponent<GalleryInnerProps, any, any>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useCarouselControls } from '../../hooks/useCarouselControls.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
6
|
-
import { renderArrows } from '../../ui-kit/Button/renderArrows.js';
|
|
7
|
-
import { galleryLengthForScrollMap } from './constants.js';
|
|
8
|
-
import { GalleryContainer } from './GalleryContainer.js';
|
|
9
|
-
export const GalleryInner = JSX(({ cards = [], className = '', galleryVersion = 'normal', button, ...rest }) => {
|
|
10
|
-
const [activeIndex, controls] = useCarouselControls({
|
|
11
|
-
itemCount: cards?.length,
|
|
12
|
-
visibleItemCount: galleryLengthForScrollMap[galleryVersion],
|
|
13
|
-
});
|
|
14
|
-
const { isScrollAvailable } = controls;
|
|
15
|
-
return (_jsxs(BlockWrapper, { className: `relative p-[42px] overflow-hidden flex flex-col ${className}`, ...rest, children: [_jsx(GalleryContainer, { cards: cards, galleryVersion: galleryVersion, activeIndex: activeIndex, ...rest }), renderArrows({
|
|
16
|
-
...controls,
|
|
17
|
-
btnClass: ['left-8', 'right-8'],
|
|
18
|
-
className: 'top-1/2',
|
|
19
|
-
}), isScrollAvailable ? (_jsxs("div", { children: [_jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" }), _jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" })] })) : null, renderButtonsSection([button], { className: 'mt-8 mx-auto' })] }));
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=GalleryInner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAOtD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,cAAc,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,mBAAmB,CAAC;QAClD,SAAS,EAAE,KAAK,EAAE,MAAM;QACxB,gBAAgB,EAAE,yBAAyB,CAAC,cAAc,CAAC;KAC5D,CAAC,CAAC;IACH,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,MAAC,YAAY,IACX,SAAS,EAAE,mDAAmD,SAAS,EAAE,KACrE,IAAI,aAER,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,KACpB,IAAI,GACR,EACD,YAAY,CAAC;gBACZ,GAAG,QAAQ;gBACX,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;gBAC/B,SAAS,EAAE,SAAS;aACrB,CAAC,EACD,iBAAiB,CAAC,CAAC,CAAC,CACnB,0BACE,cAAK,SAAS,EAAC,+DAA+D,GAAG,EACjF,cAAK,SAAS,EAAC,8DAA8D,GAAG,IAC5E,CACP,CAAC,CAAC,CAAC,IAAI,EACP,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,IACjD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryProps.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
2
|
-
export declare const galleryLengthForScrollMap: Record<GalleryVersion, number>;
|
|
3
|
-
export declare const cardStyleMap: Record<GalleryVersion, string>;
|
|
4
|
-
export declare const cardWidthMap: Record<GalleryVersion, number>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const galleryLengthForScrollMap = {
|
|
2
|
-
normal: 3,
|
|
3
|
-
mini: 4,
|
|
4
|
-
};
|
|
5
|
-
export const cardStyleMap = {
|
|
6
|
-
normal: 'min-w-[364px] w-[364px]',
|
|
7
|
-
mini: 'min-w-[260px] w-[260px]',
|
|
8
|
-
};
|
|
9
|
-
export const cardWidthMap = {
|
|
10
|
-
normal: 380,
|
|
11
|
-
mini: 276,
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Gallery/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAmC;IACvE,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAmC;IAC1D,MAAM,EAAE,yBAAyB;IACjC,IAAI,EAAE,yBAAyB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAmC;IAC1D,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;CACV,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { MiniGalleryContent } from './MiniGalleryContent';
|
|
3
|
-
export interface MiniGalleryProps extends MiniGalleryContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const MiniGallery: import("@redneckz/uni-jsx").UNIComponent<MiniGalleryProps, any, any>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { GalleryInner } from '../Gallery/GalleryInner.js';
|
|
4
|
-
export const MiniGallery = JSX((props) => (_jsx(GalleryInner, { ...props, galleryVersion: "mini" })));
|
|
5
|
-
//# sourceMappingURL=MiniGallery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiniGallery.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAKvD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1D,KAAC,YAAY,OAAK,KAAK,EAAE,cAAc,EAAC,MAAM,GAAG,CAClD,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { GalleryCardProps, GalleryContent } from '../Gallery/GalleryContent';
|
|
2
|
-
/**
|
|
3
|
-
* @title Мини-галерея
|
|
4
|
-
* @default {"headlineVersion": "L"}
|
|
5
|
-
*/
|
|
6
|
-
export interface MiniGalleryContent extends GalleryContent {
|
|
7
|
-
/**
|
|
8
|
-
* @title Карточки
|
|
9
|
-
* @minItems 4
|
|
10
|
-
*/
|
|
11
|
-
cards?: GalleryCardProps[];
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiniGalleryContent.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGalleryContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type GalleryVersion = 'normal' | 'mini';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryVersion.js","sourceRoot":"","sources":["../../src/model/GalleryVersion.ts"],"names":[],"mappings":""}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Каталог",
|
|
4
|
-
"description": "Описание",
|
|
5
|
-
"cards": [
|
|
6
|
-
{
|
|
7
|
-
"title": "Заголовок карточки 1",
|
|
8
|
-
"description": "Описание карточки",
|
|
9
|
-
"image": {
|
|
10
|
-
"format": "webp",
|
|
11
|
-
"size": {
|
|
12
|
-
"width": 230,
|
|
13
|
-
"height": 230
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"button": {
|
|
17
|
-
"href": "#Accordion-0",
|
|
18
|
-
"text": "Подробнее",
|
|
19
|
-
"target": "_self",
|
|
20
|
-
"version": "primary"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"title": "Заголовок карточки 2",
|
|
25
|
-
"description": "Описание карточки",
|
|
26
|
-
"image": {
|
|
27
|
-
"format": "webp",
|
|
28
|
-
"size": {
|
|
29
|
-
"width": 230,
|
|
30
|
-
"height": 230
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"button": {
|
|
34
|
-
"href": "",
|
|
35
|
-
"text": "Подробнее",
|
|
36
|
-
"target": "_self",
|
|
37
|
-
"version": "primary"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"title": "Заголовок карточки 3",
|
|
42
|
-
"description": "Описание карточки",
|
|
43
|
-
"image": {
|
|
44
|
-
"format": "webp",
|
|
45
|
-
"size": {
|
|
46
|
-
"width": 230,
|
|
47
|
-
"height": 230
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"button": {
|
|
51
|
-
"href": "",
|
|
52
|
-
"text": "Подробнее",
|
|
53
|
-
"target": "_self",
|
|
54
|
-
"version": "primary"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCarouselControls } from '../../hooks/useCarouselControls';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
6
|
-
import { Headline } from '../Headline/Headline';
|
|
7
|
-
import { CatalogCard } from './CatalogCard';
|
|
8
|
-
import type { CatalogContent } from './CatalogContent';
|
|
9
|
-
|
|
10
|
-
export interface CatalogProps extends CatalogContent, UniBlockProps {}
|
|
11
|
-
|
|
12
|
-
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
13
|
-
const CARD_VIEW_COUNT = 3;
|
|
14
|
-
const CARD_SHIFT = 430;
|
|
15
|
-
|
|
16
|
-
export const Catalog = JSX<CatalogProps>(
|
|
17
|
-
({ cards = [], className = '', title, description, ...rest }) => {
|
|
18
|
-
const [activeIndex, controls] = useCarouselControls({
|
|
19
|
-
itemCount: cards?.length,
|
|
20
|
-
visibleItemCount: CARD_VIEW_COUNT,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<BlockWrapper className={`p-12 overflow-hidden text-center ${className}`} {...rest}>
|
|
25
|
-
<Headline
|
|
26
|
-
className="!p-0"
|
|
27
|
-
title={title}
|
|
28
|
-
description={description}
|
|
29
|
-
headlineVersion="M"
|
|
30
|
-
{...rest}
|
|
31
|
-
/>
|
|
32
|
-
<div
|
|
33
|
-
className="flex duration-1000 gap-3.5 mt-8"
|
|
34
|
-
style={{ transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }}
|
|
35
|
-
role="list"
|
|
36
|
-
>
|
|
37
|
-
{cards?.length ? cards.map((card, i) => <CatalogCard key={String(i)} {...card} />) : null}
|
|
38
|
-
</div>
|
|
39
|
-
{renderArrows({
|
|
40
|
-
...controls,
|
|
41
|
-
btnClass: ['left-8', 'right-8'],
|
|
42
|
-
className: 'top-1/2 z-10 mt-6',
|
|
43
|
-
})}
|
|
44
|
-
<div className={`${BLUR_BLOCK_CLASSES} left-0 bg-opacity-from-white`} />
|
|
45
|
-
<div className={`${BLUR_BLOCK_CLASSES} right-0 bg-opacity-to-white`} />
|
|
46
|
-
</BlockWrapper>
|
|
47
|
-
);
|
|
48
|
-
},
|
|
49
|
-
);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { ProductColorVersion } from '../../model/ProductColorVersion';
|
|
4
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
-
import type { CatalogCardType } from './CatalogContent';
|
|
8
|
-
|
|
9
|
-
export interface CatalogCardProps extends CatalogCardType {
|
|
10
|
-
className?: string;
|
|
11
|
-
version?: BlockVersion;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const cardStyleMap: Record<ProductColorVersion, string> = {
|
|
15
|
-
black: 'bg-black',
|
|
16
|
-
white: 'bg-white',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const CatalogCard = JSX<CatalogCardProps>(
|
|
20
|
-
({ className = '', title, description, image, price, button, colors }) => (
|
|
21
|
-
<section
|
|
22
|
-
className={`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${className}`}
|
|
23
|
-
role="listitem"
|
|
24
|
-
>
|
|
25
|
-
{image?.src ? <Img className="mb-5 flex justify-center" image={image} /> : null}
|
|
26
|
-
{title ? (
|
|
27
|
-
<Heading headingType="h6" as="h4" className="text-left mb-1.5" title={title} />
|
|
28
|
-
) : null}
|
|
29
|
-
{description ? <div className="text-m-light text-left mb-4">{description}</div> : null}
|
|
30
|
-
{colors?.length ? (
|
|
31
|
-
<div className="flex mb-4 text-s-light text-secondary-text">
|
|
32
|
-
<div className="mr-1.5">Доступные цвета: </div>
|
|
33
|
-
{colors.map(renderColorOption)}
|
|
34
|
-
</div>
|
|
35
|
-
) : null}
|
|
36
|
-
{price ? <div className="text-h3 text-left">{price} ₽</div> : null}
|
|
37
|
-
{renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })}
|
|
38
|
-
</section>
|
|
39
|
-
),
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
const renderColorOption = (color: ProductColorVersion, i: number) => (
|
|
43
|
-
<span
|
|
44
|
-
key={String(i)}
|
|
45
|
-
className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
|
|
46
|
-
/>
|
|
47
|
-
);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
|
-
import type { ProductColorVersion } from '../../model/ProductColorVersion';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
6
|
-
|
|
7
|
-
export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
|
|
8
|
-
/** @title Цена в рублях */
|
|
9
|
-
price?: number;
|
|
10
|
-
/** @title Доступные цвета */
|
|
11
|
-
colors?: ProductColorVersion[];
|
|
12
|
-
/**
|
|
13
|
-
* @title Кнопка
|
|
14
|
-
* @default {
|
|
15
|
-
* "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
16
|
-
* "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
17
|
-
* }
|
|
18
|
-
*/
|
|
19
|
-
button?: ButtonWithIconProps;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @title Каталог
|
|
24
|
-
*/
|
|
25
|
-
export type CatalogContent = HeadlineCommonProps & {
|
|
26
|
-
/** @title Список карточек */
|
|
27
|
-
cards?: CatalogCardType[];
|
|
28
|
-
version?: BlockVersion;
|
|
29
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Галерея",
|
|
4
|
-
"description": "Описание",
|
|
5
|
-
"orientation": "horizontal",
|
|
6
|
-
"cards": [
|
|
7
|
-
{
|
|
8
|
-
"icon": {
|
|
9
|
-
"format": "webp",
|
|
10
|
-
"size": {
|
|
11
|
-
"width": 150,
|
|
12
|
-
"height": 150
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"title": "Заголовок 1",
|
|
16
|
-
"description": "Описание 1",
|
|
17
|
-
"href": "/credit-cards",
|
|
18
|
-
"version": "primary",
|
|
19
|
-
"isDotted": true,
|
|
20
|
-
"items": [
|
|
21
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
22
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
23
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"icon": {
|
|
28
|
-
"format": "webp",
|
|
29
|
-
"size": {
|
|
30
|
-
"width": 140,
|
|
31
|
-
"height": 140
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"title": "Заголовок 2",
|
|
35
|
-
"description": "Описание 2",
|
|
36
|
-
"href": "/credit-cards",
|
|
37
|
-
"version": "primary",
|
|
38
|
-
"isDotted": true,
|
|
39
|
-
"items": [
|
|
40
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
41
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
42
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"image": {
|
|
47
|
-
"format": "webp",
|
|
48
|
-
"size": {
|
|
49
|
-
"width": 140,
|
|
50
|
-
"height": 140
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"title": "Заголовок 3",
|
|
54
|
-
"description": "Описание 3",
|
|
55
|
-
"href": "/credit-cards",
|
|
56
|
-
"version": "primary",
|
|
57
|
-
"isDotted": true,
|
|
58
|
-
"items": [
|
|
59
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
60
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
61
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
|
-
import type { Picture } from '../../model/Picture';
|
|
5
|
-
import { blockStyles, BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
8
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
9
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
10
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
11
|
-
import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
|
|
12
|
-
import type { GalleryProps } from './GalleryProps';
|
|
13
|
-
|
|
14
|
-
export const Gallery = JSX<GalleryProps>(
|
|
15
|
-
({ className = '', title, description, cards = [], orientation = 'horizontal', ...rest }) => (
|
|
16
|
-
<BlockWrapper className={`relative px-4 py-6 overflow-hidden ${className}`} {...rest}>
|
|
17
|
-
<div className="flex flex-col items-center mb-5">
|
|
18
|
-
{title ? (
|
|
19
|
-
<Heading
|
|
20
|
-
headingType="h3"
|
|
21
|
-
className={`text-center ${description ? 'mb-2' : 'mb-5'}`}
|
|
22
|
-
title={title}
|
|
23
|
-
/>
|
|
24
|
-
) : null}
|
|
25
|
-
{description ? (
|
|
26
|
-
<div className="text-m max-w-[600px] text-center mb-5">{description}</div>
|
|
27
|
-
) : null}
|
|
28
|
-
</div>
|
|
29
|
-
{renderCardsLayout(orientation, cards)}
|
|
30
|
-
</BlockWrapper>
|
|
31
|
-
),
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
function renderCardsLayout(orientation: ListOrientation, cards: GalleryCardProps[]) {
|
|
35
|
-
return orientation === 'horizontal' ? (
|
|
36
|
-
<SwipeListControl>{cards?.map(renderCard)}</SwipeListControl>
|
|
37
|
-
) : (
|
|
38
|
-
<div className="grid gap-3.5">{cards?.map(renderCard)}</div>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function renderCard(card: GalleryCardProps, key: number) {
|
|
43
|
-
return (
|
|
44
|
-
<div
|
|
45
|
-
className={`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4
|
|
46
|
-
${blockStyles[card.version ?? 'primary']}`}
|
|
47
|
-
key={key}
|
|
48
|
-
>
|
|
49
|
-
<div>
|
|
50
|
-
{renderImage(card.icon)}
|
|
51
|
-
{card.title ? <h3 className={`text-m-title-xs font-medium m-0`}>{card.title}</h3> : null}
|
|
52
|
-
{card.description ? renderDescription(card) : null}
|
|
53
|
-
{card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null}
|
|
54
|
-
</div>
|
|
55
|
-
{card?.button?.text ? renderButton(card.button) : null}
|
|
56
|
-
</div>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const renderImage = (image?: Picture) =>
|
|
61
|
-
image?.src || image?.icon ? (
|
|
62
|
-
<div className="flex justify-center">
|
|
63
|
-
<Img className="mb-3.5" image={image} />
|
|
64
|
-
</div>
|
|
65
|
-
) : null;
|
|
66
|
-
|
|
67
|
-
function renderButton(button?: ButtonWithIconProps) {
|
|
68
|
-
return <Button className="mt-3" {...button} />;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function renderDescription(card: GalleryCardProps) {
|
|
72
|
-
return (
|
|
73
|
-
<div
|
|
74
|
-
className={`text-secondary-text mt-1 text-s ${
|
|
75
|
-
card.version === 'secondary' ? 'text-white opacity-80' : ''
|
|
76
|
-
}`}
|
|
77
|
-
>
|
|
78
|
-
{card.description}
|
|
79
|
-
</div>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const LIST_DOT_STYLE_MAP: Record<BlockVersion, string> = {
|
|
84
|
-
primary: 'bg-primary-text',
|
|
85
|
-
secondary: 'bg-white',
|
|
86
|
-
gray: 'bg-primary-text',
|
|
87
|
-
transparent: '',
|
|
88
|
-
'': '',
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
function renderItems(
|
|
92
|
-
items: GalleryItemProps[],
|
|
93
|
-
isDotted?: boolean,
|
|
94
|
-
version: BlockVersion = 'primary',
|
|
95
|
-
) {
|
|
96
|
-
return (
|
|
97
|
-
<section className="mt-3">
|
|
98
|
-
{items.map((item, i) => (
|
|
99
|
-
<div key={String(i)}>
|
|
100
|
-
{isDotted ? (
|
|
101
|
-
<div
|
|
102
|
-
className={`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}`}
|
|
103
|
-
/>
|
|
104
|
-
) : null}
|
|
105
|
-
<span className="text-m font-medium">{item.title}</span>
|
|
106
|
-
<span className={`text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`}>
|
|
107
|
-
{item.text}
|
|
108
|
-
</span>
|
|
109
|
-
</div>
|
|
110
|
-
))}
|
|
111
|
-
</section>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"cards": {
|
|
4
|
-
"items": {
|
|
5
|
-
"additionalDescription": {
|
|
6
|
-
"ui:field": "hidden"
|
|
7
|
-
},
|
|
8
|
-
"icon": {
|
|
9
|
-
"ui:field": "picture"
|
|
10
|
-
},
|
|
11
|
-
"button": {
|
|
12
|
-
"icon": {
|
|
13
|
-
"ui:field": "icon"
|
|
14
|
-
},
|
|
15
|
-
"iconRight": {
|
|
16
|
-
"ui:field": "icon"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|