@redneckz/wildless-cms-uni-blocks 0.8.15 → 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.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 +35 -119
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- 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/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/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/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/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/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/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/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
|
@@ -15,6 +15,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
|
|
|
15
15
|
blocksRegistry = {},
|
|
16
16
|
ancestors = DEFAULT_ANCESTORS,
|
|
17
17
|
className = '',
|
|
18
|
+
extraProps = {},
|
|
18
19
|
} = options;
|
|
19
20
|
const { type } = block;
|
|
20
21
|
|
|
@@ -44,6 +45,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
|
|
|
44
45
|
block={block}
|
|
45
46
|
options={options}
|
|
46
47
|
{...content}
|
|
48
|
+
{...extraProps}
|
|
47
49
|
/>
|
|
48
50
|
) : null;
|
|
49
51
|
},
|
|
@@ -7,7 +7,7 @@ import { renderBlock } from './renderBlock';
|
|
|
7
7
|
|
|
8
8
|
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
9
9
|
slotName?: SlotName;
|
|
10
|
-
|
|
10
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const EMPTY_ANCESTORS: BlockAncestors = [];
|
|
@@ -18,12 +18,12 @@ export const renderBlocksList = (
|
|
|
18
18
|
key,
|
|
19
19
|
ancestors = EMPTY_ANCESTORS,
|
|
20
20
|
slotName = DEFAULT_SLOT_NAME,
|
|
21
|
-
|
|
21
|
+
renderProps = renderBlock,
|
|
22
22
|
...options
|
|
23
23
|
}: BlocksListRendererProps,
|
|
24
24
|
): VNode[] =>
|
|
25
25
|
(blocks || []).map((_: BlockDef, j: number) =>
|
|
26
|
-
|
|
26
|
+
renderProps(_, {
|
|
27
27
|
...options,
|
|
28
28
|
key: `${key ? key : _.type}-${j}`,
|
|
29
29
|
ancestors: options.parent
|
|
@@ -6,20 +6,20 @@ import { renderBlocksList } from './renderBlockList';
|
|
|
6
6
|
|
|
7
7
|
interface ChildrenRendererProps extends UniBlockProps {
|
|
8
8
|
children?: VNode;
|
|
9
|
-
|
|
9
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function renderChildren({
|
|
13
13
|
children,
|
|
14
14
|
block,
|
|
15
15
|
options,
|
|
16
|
-
|
|
16
|
+
renderProps,
|
|
17
17
|
}: ChildrenRendererProps): VNode[] | null {
|
|
18
18
|
if (children) {
|
|
19
19
|
return children;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
return block && options
|
|
23
|
-
? renderBlocksList(block.blocks, { ...options, parent: block,
|
|
23
|
+
? renderBlocksList(block.blocks, { ...options, parent: block, renderProps })
|
|
24
24
|
: null;
|
|
25
25
|
}
|
|
@@ -2,10 +2,8 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
2
2
|
import type { BlockDef } from '../../model/ContentPageDef';
|
|
3
3
|
import '../../setup-fixture';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
6
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
7
6
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
8
|
-
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
9
7
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
10
8
|
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
11
9
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
@@ -67,16 +65,6 @@ export default {
|
|
|
67
65
|
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
68
66
|
],
|
|
69
67
|
},
|
|
70
|
-
{
|
|
71
|
-
type: 'AccordionItem',
|
|
72
|
-
content: { label: 'Accordion label 7' },
|
|
73
|
-
blocks: [{ type: 'Gallery', content: GALLERY }],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'AccordionItem',
|
|
77
|
-
content: { label: 'Accordion label 8' },
|
|
78
|
-
blocks: [{ type: 'MiniGallery', content: MINI_GALLERY }],
|
|
79
|
-
},
|
|
80
68
|
],
|
|
81
69
|
}}
|
|
82
70
|
options={options}
|
|
@@ -3,7 +3,6 @@ import { Accordion } from './Accordion/Accordion';
|
|
|
3
3
|
import { AccordionItem } from './AccordionItem/AccordionItem';
|
|
4
4
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
5
5
|
import { Footer } from './Footer/Footer';
|
|
6
|
-
import { Gallery } from './Gallery/Gallery';
|
|
7
6
|
import { Header } from './Header/Header';
|
|
8
7
|
import { Headline } from './Headline/Headline';
|
|
9
8
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
@@ -20,7 +19,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
20
19
|
AccordionItem,
|
|
21
20
|
ComparisonTable,
|
|
22
21
|
Footer,
|
|
23
|
-
Gallery,
|
|
24
22
|
Header,
|
|
25
23
|
Headline,
|
|
26
24
|
LinkDocs,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -19,13 +19,11 @@ import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
|
19
19
|
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
20
20
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
21
21
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
22
|
-
import { Catalog } from './Catalog/Catalog';
|
|
23
22
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
24
23
|
import { ContactsBlock } from './ContactsBlock/ContactsBlock';
|
|
25
24
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
26
25
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
27
26
|
import { Footer } from './Footer/Footer';
|
|
28
|
-
import { Gallery } from './Gallery/Gallery';
|
|
29
27
|
import { GracePeriod } from './GracePeriod/GracePeriod';
|
|
30
28
|
import { Header } from './Header/Header';
|
|
31
29
|
import { Headline } from './Headline/Headline';
|
|
@@ -34,7 +32,6 @@ import { ImgBlock } from './ImgBlock/ImgBlock';
|
|
|
34
32
|
import { InsuranceAmountBlock } from './InsuranceAmountBlock/InsuranceAmountBlock';
|
|
35
33
|
import { InvestmentInfo } from './InvestmentInfo/InvestmentInfo';
|
|
36
34
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
37
|
-
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
38
35
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
39
36
|
import { OfficeMap } from './OfficeMap/OfficeMap';
|
|
40
37
|
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
@@ -81,13 +78,11 @@ export const Blocks: BlocksRegistry = {
|
|
|
81
78
|
CarouselProgramsCard,
|
|
82
79
|
CarouselRecommendationCard,
|
|
83
80
|
CarouselTariffsCard,
|
|
84
|
-
Catalog,
|
|
85
81
|
ComparisonTable,
|
|
86
82
|
ContactsBlock,
|
|
87
83
|
ErrorBlock,
|
|
88
84
|
ExchangeRateTile,
|
|
89
85
|
Footer,
|
|
90
|
-
Gallery,
|
|
91
86
|
GracePeriod,
|
|
92
87
|
Header,
|
|
93
88
|
Headline,
|
|
@@ -96,7 +91,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
96
91
|
InsuranceAmountBlock,
|
|
97
92
|
InvestmentInfo,
|
|
98
93
|
LinkDocs,
|
|
99
|
-
MiniGallery,
|
|
100
94
|
MobileAppTile,
|
|
101
95
|
OfficeMap,
|
|
102
96
|
OfficeServicesBlock,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
4
|
-
import { BlockDef } from '../../model/ContentPageDef';
|
|
5
4
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
6
|
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
|
|
@@ -25,6 +24,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
25
24
|
isCyclic = false,
|
|
26
25
|
arrowsPadded = true,
|
|
27
26
|
isPadding = true,
|
|
27
|
+
options,
|
|
28
28
|
...rest
|
|
29
29
|
}) => {
|
|
30
30
|
const { blocks: childBlocks } = rest.block || {};
|
|
@@ -55,9 +55,15 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
55
55
|
{isBankHistoryCarousel
|
|
56
56
|
? renderChildren({
|
|
57
57
|
...rest,
|
|
58
|
-
|
|
58
|
+
options: {
|
|
59
|
+
...options,
|
|
60
|
+
extraProps: {
|
|
61
|
+
blocksLength: childBlocks?.length,
|
|
62
|
+
activeIndex: activeIndex,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
59
65
|
})
|
|
60
|
-
: renderChildren(rest)}
|
|
66
|
+
: renderChildren({ ...rest, options })}
|
|
61
67
|
</SwipeListContainer>
|
|
62
68
|
<CarouselScrollButtons
|
|
63
69
|
scroll={scroll}
|
|
@@ -87,20 +93,4 @@ Carousel.childrenTypes = [
|
|
|
87
93
|
'CarouselInvestmentCard',
|
|
88
94
|
];
|
|
89
95
|
|
|
90
|
-
const buildBlocks = (blocks?: BlockDef[], activeIndex?: number) => {
|
|
91
|
-
return blocks && blocks[0]?.type === 'CarouselBankHistoryCard'
|
|
92
|
-
? blocks.map((_, i) => {
|
|
93
|
-
return {
|
|
94
|
-
..._,
|
|
95
|
-
content: {
|
|
96
|
-
..._.content,
|
|
97
|
-
orderNumber: i,
|
|
98
|
-
isActive: activeIndex === i,
|
|
99
|
-
blocksLength: blocks.length,
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
})
|
|
103
|
-
: blocks;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
96
|
const getPaddingStyle = (isPadding: boolean): string => (isPadding ? 'p-12' : '');
|
|
@@ -6,13 +6,15 @@ import { Headline } from '../Headline/Headline';
|
|
|
6
6
|
import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
|
|
7
7
|
|
|
8
8
|
interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
|
|
9
|
-
isActive?: boolean;
|
|
10
|
-
orderNumber?: number;
|
|
11
9
|
blocksLength?: number;
|
|
10
|
+
activeIndex?: number;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const CarouselBankHistoryCard = JSX<CarouselBankHistoryCardProps>(
|
|
15
|
-
({ title, description,
|
|
14
|
+
({ title, description, blocksLength = 0, activeIndex, options, ...rest }) => {
|
|
15
|
+
const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
|
|
16
|
+
const isActive = orderNumber === activeIndex;
|
|
17
|
+
|
|
16
18
|
return (
|
|
17
19
|
<BlockWrapper className="flex h-[485px]">
|
|
18
20
|
{isActive ? (
|
|
@@ -2,10 +2,8 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
2
2
|
import type { BlockDef } from '../../model/ContentPageDef';
|
|
3
3
|
import '../../setup-fixture';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
6
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
7
6
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
8
|
-
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
9
7
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
10
8
|
import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
|
|
11
9
|
import { PRODUCT_PENSION_TILE, PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
@@ -80,22 +78,6 @@ export default {
|
|
|
80
78
|
content: { label: 'OtherProducts №7 Link_Docs' },
|
|
81
79
|
blocks: [{ type: 'LinkDocs', content: linkDocsContentExample }],
|
|
82
80
|
},
|
|
83
|
-
{
|
|
84
|
-
type: 'OtherProductsItem',
|
|
85
|
-
content: { label: 'OtherProducts №8 Gallery' },
|
|
86
|
-
blocks: [
|
|
87
|
-
{ type: 'Gallery', content: GALLERY },
|
|
88
|
-
{ type: 'Gallery', content: GALLERY },
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: 'OtherProductsItem',
|
|
93
|
-
content: { label: 'OtherProducts №9 Mini_Gallery' },
|
|
94
|
-
blocks: [
|
|
95
|
-
{ type: 'MiniGallery', content: MINI_GALLERY },
|
|
96
|
-
{ type: 'MiniGallery', content: MINI_GALLERY },
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
81
|
],
|
|
100
82
|
}}
|
|
101
83
|
options={options}
|
|
@@ -35,7 +35,7 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
35
35
|
return (
|
|
36
36
|
<BlockWrapper
|
|
37
37
|
className={`relative box-border flex gap-x-1 w-full ${
|
|
38
|
-
isSticky ? 'sticky top-1 z-20
|
|
38
|
+
isSticky ? 'sticky top-1 z-20' : ''
|
|
39
39
|
} ${className}`}
|
|
40
40
|
role="tablist"
|
|
41
41
|
{...rest}
|
|
@@ -23,7 +23,7 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
23
23
|
.map(({ src, format, media }, index) => (
|
|
24
24
|
<source
|
|
25
25
|
key={`${index}_${src}`}
|
|
26
|
-
srcSet={
|
|
26
|
+
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
27
27
|
type={formatToMimeType(format)}
|
|
28
28
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
29
29
|
{...image.size}
|
|
@@ -32,7 +32,7 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
32
32
|
: null}
|
|
33
33
|
{image?.src
|
|
34
34
|
? renderImg(
|
|
35
|
-
{ ...image, src:
|
|
35
|
+
{ ...image, src: adjustSrc(router, pathPrefix)(image.src) },
|
|
36
36
|
imageClassName,
|
|
37
37
|
isMobile,
|
|
38
38
|
)
|
|
@@ -64,14 +64,8 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
|
|
|
64
64
|
);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
?.split(/\s*,\s*/)
|
|
70
|
-
.map((src) => src.trim())
|
|
71
|
-
.filter(Boolean)
|
|
72
|
-
.map((src) => (isURL(src) ? src : joinPath(pathPrefix, src)))
|
|
73
|
-
.map(adjustHref(router))
|
|
74
|
-
.join(', ');
|
|
67
|
+
const adjustSrc = (router: Router, pathPrefix?: string) => (src: string | undefined) =>
|
|
68
|
+
src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
|
|
75
69
|
|
|
76
70
|
const formatToMimeType = (format: ImgSource['format']) =>
|
|
77
71
|
format ? `image/${String(format)}` : undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { CatalogContent } from './CatalogContent';
|
|
3
|
-
export interface CatalogProps extends CatalogContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Catalog: import("@redneckz/uni-jsx").UNIComponent<CatalogProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { CatalogCardType } from './CatalogContent';
|
|
3
|
-
export interface CatalogCardProps extends CatalogCardType {
|
|
4
|
-
className?: string;
|
|
5
|
-
version?: BlockVersion;
|
|
6
|
-
}
|
|
7
|
-
export declare const CatalogCard: import("@redneckz/uni-jsx").UNIComponent<CatalogCardProps, any, any>;
|
|
@@ -1,27 +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
|
-
export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
|
|
7
|
-
/** @title Цена в рублях */
|
|
8
|
-
price?: number;
|
|
9
|
-
/** @title Доступные цвета */
|
|
10
|
-
colors?: ProductColorVersion[];
|
|
11
|
-
/**
|
|
12
|
-
* @title Кнопка
|
|
13
|
-
* @default {
|
|
14
|
-
* "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
15
|
-
* "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
|
-
button?: ButtonWithIconProps;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @title Каталог
|
|
22
|
-
*/
|
|
23
|
-
export declare type CatalogContent = HeadlineCommonProps & {
|
|
24
|
-
/** @title Список карточек */
|
|
25
|
-
cards?: CatalogCardType[];
|
|
26
|
-
version?: BlockVersion;
|
|
27
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
2
|
-
import type { GalleryCardProps } from './GalleryContent';
|
|
3
|
-
import type { GalleryInnerProps } from './GalleryInner';
|
|
4
|
-
export interface GalleryContainerProps extends GalleryInnerProps {
|
|
5
|
-
activeIndex: number;
|
|
6
|
-
}
|
|
7
|
-
export interface GalleryCardData {
|
|
8
|
-
card: GalleryCardProps;
|
|
9
|
-
galleryVersion: GalleryVersion;
|
|
10
|
-
}
|
|
11
|
-
export declare const GalleryContainer: import("@redneckz/uni-jsx").UNIComponent<GalleryContainerProps, any, any>;
|
|
@@ -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,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,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,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,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
|
-
export declare type GalleryVersion = 'normal' | 'mini';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { CatalogContent } from './CatalogContent';
|
|
3
|
-
export interface CatalogProps extends CatalogContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Catalog: import("@redneckz/uni-jsx").UNIComponent<CatalogProps, any, any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Catalog = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useCarouselControls_1 = require("../../hooks/useCarouselControls");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
8
|
-
const Headline_1 = require("../Headline/Headline");
|
|
9
|
-
const CatalogCard_1 = require("./CatalogCard");
|
|
10
|
-
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
11
|
-
const CARD_VIEW_COUNT = 3;
|
|
12
|
-
const CARD_SHIFT = 430;
|
|
13
|
-
exports.Catalog = (0, uni_jsx_1.JSX)(({ cards = [], className = '', title, description, ...rest }) => {
|
|
14
|
-
const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
|
|
15
|
-
itemCount: cards?.length,
|
|
16
|
-
visibleItemCount: CARD_VIEW_COUNT,
|
|
17
|
-
});
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `p-12 overflow-hidden text-center ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", ...rest }), (0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 gap-3.5 mt-8", style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, role: "list", children: cards?.length ? cards.map((card, i) => (0, jsx_runtime_1.jsx)(CatalogCard_1.CatalogCard, { ...card }, String(i))) : null }), (0, renderArrows_1.renderArrows)({
|
|
19
|
-
...controls,
|
|
20
|
-
btnClass: ['left-8', 'right-8'],
|
|
21
|
-
className: 'top-1/2 z-10 mt-6',
|
|
22
|
-
}), (0, jsx_runtime_1.jsx)("div", { className: `${BLUR_BLOCK_CLASSES} left-0 bg-opacity-from-white` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLUR_BLOCK_CLASSES} right-0 bg-opacity-to-white` })] }));
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=Catalog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAEtE,4DAAyD;AACzD,mEAAgE;AAChE,mDAAgD;AAChD,+CAA4C;AAK5C,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,GAAG,CAAC;AAEV,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9D,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,IAAA,yCAAmB,EAAC;QAClD,SAAS,EAAE,KAAK,EAAE,MAAM;QACxB,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,oCAAoC,SAAS,EAAE,KAAM,IAAI,aAChF,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,KACf,IAAI,GACR,EACF,gCACE,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,WAAW,GAAG,UAAU,KAAK,EAAE,EAClE,IAAI,EAAC,MAAM,YAEV,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAC,yBAAW,OAAqB,IAAI,IAAnB,MAAM,CAAC,CAAC,CAAC,CAAc,CAAC,CAAC,CAAC,CAAC,IAAI,GACrF,EACL,IAAA,2BAAY,EAAC;gBACZ,GAAG,QAAQ;gBACX,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;gBAC/B,SAAS,EAAE,mBAAmB;aAC/B,CAAC,EACF,gCAAK,SAAS,EAAE,GAAG,kBAAkB,+BAA+B,GAAI,EACxE,gCAAK,SAAS,EAAE,GAAG,kBAAkB,8BAA8B,GAAI,IAC1D,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { CatalogCardType } from './CatalogContent';
|
|
3
|
-
export interface CatalogCardProps extends CatalogCardType {
|
|
4
|
-
className?: string;
|
|
5
|
-
version?: BlockVersion;
|
|
6
|
-
}
|
|
7
|
-
export declare const CatalogCard: import("@redneckz/uni-jsx").UNIComponent<CatalogCardProps, any, any>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CatalogCard = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
const cardStyleMap = {
|
|
9
|
-
black: 'bg-black',
|
|
10
|
-
white: 'bg-white',
|
|
11
|
-
};
|
|
12
|
-
exports.CatalogCard = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, price, button, colors }) => ((0, jsx_runtime_1.jsxs)("section", { className: `border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? (0, jsx_runtime_1.jsxs)("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-5 w-full' })] })));
|
|
13
|
-
const renderColorOption = (color, i) => ((0, jsx_runtime_1.jsx)("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
14
|
-
//# sourceMappingURL=CatalogCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogCard.js","sourceRoot":"","sources":["../../../src/components/Catalog/CatalogCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAQ3C,MAAM,YAAY,GAAwC;IACxD,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACxE,qCACE,SAAS,EAAE,gGAAgG,SAAS,EAAE,EACtH,IAAI,EAAC,UAAU,aAEd,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,0BAA0B,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9E,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,6BAA6B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACrF,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,4CAA4C,aACzD,gCAAK,SAAS,EAAC,QAAQ,wGAAwB,EAC9C,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAC1B,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,iCAAK,SAAS,EAAC,mBAAmB,aAAE,KAAK,oBAAc,CAAC,CAAC,CAAC,IAAI,EACtE,IAAA,2CAAoB,EAAC,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,IAC3D,CACX,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,iCAEE,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
|
|
@@ -1,27 +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
|
-
export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
|
|
7
|
-
/** @title Цена в рублях */
|
|
8
|
-
price?: number;
|
|
9
|
-
/** @title Доступные цвета */
|
|
10
|
-
colors?: ProductColorVersion[];
|
|
11
|
-
/**
|
|
12
|
-
* @title Кнопка
|
|
13
|
-
* @default {
|
|
14
|
-
* "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
15
|
-
* "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
|
-
button?: ButtonWithIconProps;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @title Каталог
|
|
22
|
-
*/
|
|
23
|
-
export declare type CatalogContent = HeadlineCommonProps & {
|
|
24
|
-
/** @title Список карточек */
|
|
25
|
-
cards?: CatalogCardType[];
|
|
26
|
-
version?: BlockVersion;
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogContent.js","sourceRoot":"","sources":["../../../src/components/Catalog/CatalogContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Gallery = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const GalleryInner_1 = require("./GalleryInner");
|
|
6
|
-
exports.Gallery = (0, uni_jsx_1.JSX)((props) => ((0, jsx_runtime_1.jsx)(GalleryInner_1.GalleryInner, { ...props, galleryVersion: "normal" })));
|
|
7
|
-
//# sourceMappingURL=Gallery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAGjC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE,CAAC,CAClD,uBAAC,2BAAY,OAAK,KAAK,EAAE,cAAc,EAAC,QAAQ,GAAG,CACpD,CAAC,CAAC"}
|