@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,9 +1,8 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
|
|
3
3
|
interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
orderNumber?: number;
|
|
6
4
|
blocksLength?: number;
|
|
5
|
+
activeIndex?: number;
|
|
7
6
|
}
|
|
8
7
|
export declare const CarouselBankHistoryCard: import("@redneckz/uni-jsx").UNIComponent<CarouselBankHistoryCardProps, any, any>;
|
|
9
8
|
export {};
|
|
@@ -7,7 +7,8 @@ import type { Picture } from '../../model/Picture';
|
|
|
7
7
|
import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
|
|
8
8
|
import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
9
9
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
10
|
-
|
|
10
|
+
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
11
|
+
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & Footnote & {
|
|
11
12
|
/**
|
|
12
13
|
* @default {
|
|
13
14
|
* "format": "webp",
|
|
@@ -6,7 +6,7 @@ const defaultBlockDecorator_1 = require("./defaultBlockDecorator");
|
|
|
6
6
|
const DEFAULT_ANCESTORS = [];
|
|
7
7
|
const defaultStyle = 'col-span-12';
|
|
8
8
|
function renderBlock(block, options) {
|
|
9
|
-
const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
|
|
9
|
+
const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', extraProps = {}, } = options;
|
|
10
10
|
const { type } = block;
|
|
11
11
|
if (!(type && type in blocksRegistry)) {
|
|
12
12
|
console.warn(`No block with "${type}" is registered`);
|
|
@@ -20,7 +20,7 @@ function renderBlock(block, options) {
|
|
|
20
20
|
// Adjusted by decorator block and blockClassName
|
|
21
21
|
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
22
22
|
const { content } = adjustedBlock;
|
|
23
|
-
return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content }, key)) : null;
|
|
23
|
+
return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content, ...extraProps }, key)) : null;
|
|
24
24
|
},
|
|
25
25
|
}, key);
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";;;AAEA,0CAAuC;AAEvC,mEAAgE;AAEhE,MAAM,iBAAiB,GAAmB,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG,aAAa,CAAC;AAEnC,SAAgB,WAAW,CAAC,KAAe,EAAE,OAA6B;IACxE,MAAM,EACJ,GAAG,EACH,cAAc,GAAG,6CAAqB,EACtC,cAAc,GAAG,EAAE,EACnB,SAAS,GAAG,iBAAiB,EAC7B,SAAS,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";;;AA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ptions } from './BlockRendererOptions';
|
|
5
5
|
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
6
6
|
slotName?: SlotName;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName,
|
|
9
|
+
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderProps, ...options }: BlocksListRendererProps) => VNode[];
|
|
@@ -3,7 +3,7 @@ exports.renderBlocksList = void 0;
|
|
|
3
3
|
const BlockDecorator_1 = require("../model/BlockDecorator");
|
|
4
4
|
const renderBlock_1 = require("./renderBlock");
|
|
5
5
|
const EMPTY_ANCESTORS = [];
|
|
6
|
-
const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = BlockDecorator_1.DEFAULT_SLOT_NAME,
|
|
6
|
+
const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = BlockDecorator_1.DEFAULT_SLOT_NAME, renderProps = renderBlock_1.renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
|
|
7
7
|
...options,
|
|
8
8
|
key: `${key ? key : _.type}-${j}`,
|
|
9
9
|
ancestors: options.parent
|
|
@@ -4,7 +4,7 @@ import type { VNode } from '../model/VNode';
|
|
|
4
4
|
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
5
|
interface ChildrenRendererProps extends UniBlockProps {
|
|
6
6
|
children?: VNode;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function renderChildren({ children, block, options,
|
|
9
|
+
export declare function renderChildren({ children, block, options, renderProps, }: ChildrenRendererProps): VNode[] | null;
|
|
10
10
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderChildren = void 0;
|
|
3
3
|
const renderBlockList_1 = require("./renderBlockList");
|
|
4
|
-
function renderChildren({ children, block, options,
|
|
4
|
+
function renderChildren({ children, block, options, renderProps, }) {
|
|
5
5
|
if (children) {
|
|
6
6
|
return children;
|
|
7
7
|
}
|
|
8
8
|
return block && options
|
|
9
|
-
? (0, renderBlockList_1.renderBlocksList)(block.blocks, { ...options, parent: block,
|
|
9
|
+
? (0, renderBlockList_1.renderBlocksList)(block.blocks, { ...options, parent: block, renderProps })
|
|
10
10
|
: null;
|
|
11
11
|
}
|
|
12
12
|
exports.renderChildren = renderChildren;
|
|
@@ -20,13 +20,11 @@ const CarouselProductCard_1 = require("./CarouselProductCard/CarouselProductCard
|
|
|
20
20
|
const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
|
|
21
21
|
const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
|
|
22
22
|
const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
|
|
23
|
-
const Catalog_1 = require("./Catalog/Catalog");
|
|
24
23
|
const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
|
|
25
24
|
const ContactsBlock_1 = require("./ContactsBlock/ContactsBlock");
|
|
26
25
|
const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
|
|
27
26
|
const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
|
|
28
27
|
const Footer_1 = require("./Footer/Footer");
|
|
29
|
-
const Gallery_1 = require("./Gallery/Gallery");
|
|
30
28
|
const GracePeriod_1 = require("./GracePeriod/GracePeriod");
|
|
31
29
|
const Header_1 = require("./Header/Header");
|
|
32
30
|
const Headline_1 = require("./Headline/Headline");
|
|
@@ -35,7 +33,6 @@ const ImgBlock_1 = require("./ImgBlock/ImgBlock");
|
|
|
35
33
|
const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
|
|
36
34
|
const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
|
|
37
35
|
const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
38
|
-
const MiniGallery_1 = require("./MiniGallery/MiniGallery");
|
|
39
36
|
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
40
37
|
const OfficeMap_1 = require("./OfficeMap/OfficeMap");
|
|
41
38
|
const OfficeServicesBlock_1 = require("./OfficeServicesBlock/OfficeServicesBlock");
|
|
@@ -81,13 +78,11 @@ exports.Blocks = {
|
|
|
81
78
|
CarouselProgramsCard: CarouselProgramsCard_1.CarouselProgramsCard,
|
|
82
79
|
CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
|
|
83
80
|
CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
|
|
84
|
-
Catalog: Catalog_1.Catalog,
|
|
85
81
|
ComparisonTable: ComparisonTable_1.ComparisonTable,
|
|
86
82
|
ContactsBlock: ContactsBlock_1.ContactsBlock,
|
|
87
83
|
ErrorBlock: ErrorBlock_1.ErrorBlock,
|
|
88
84
|
ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
|
|
89
85
|
Footer: Footer_1.Footer,
|
|
90
|
-
Gallery: Gallery_1.Gallery,
|
|
91
86
|
GracePeriod: GracePeriod_1.GracePeriod,
|
|
92
87
|
Header: Header_1.Header,
|
|
93
88
|
Headline: Headline_1.Headline,
|
|
@@ -96,7 +91,6 @@ exports.Blocks = {
|
|
|
96
91
|
InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
|
|
97
92
|
InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
|
|
98
93
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
99
|
-
MiniGallery: MiniGallery_1.MiniGallery,
|
|
100
94
|
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
101
95
|
OfficeMap: OfficeMap_1.OfficeMap,
|
|
102
96
|
OfficeServicesBlock: OfficeServicesBlock_1.OfficeServicesBlock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,2DAAwD;AACxD,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,+FAA4F;AAC5F,8DAA2D;AAC3D,mFAAgF;AAChF,4FAAyF;AACzF,iEAA8D;AAC9D,mFAAgF;AAChF,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,2DAAwD;AACxD,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,+FAA4F;AAC5F,8DAA2D;AAC3D,mFAAgF;AAChF,4FAAyF;AACzF,iEAA8D;AAC9D,mFAAgF;AAChF,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,iEAA8D;AAC9D,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,iEAA8D;AAC9D,qDAAkD;AAClD,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,oEAAiE;AACjE,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,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Ac,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;IACd,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,qBAAqB,EAArB,6CAAqB;IACrB,IAAI,EAAJ,WAAI;IACJ,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
|
|
@@ -4,7 +4,6 @@ const Accordion_1 = require("./Accordion/Accordion");
|
|
|
4
4
|
const AccordionItem_1 = require("./AccordionItem/AccordionItem");
|
|
5
5
|
const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
|
|
6
6
|
const Footer_1 = require("./Footer/Footer");
|
|
7
|
-
const Gallery_1 = require("./Gallery/Gallery");
|
|
8
7
|
const Header_1 = require("./Header/Header");
|
|
9
8
|
const Headline_1 = require("./Headline/Headline");
|
|
10
9
|
const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
@@ -20,7 +19,6 @@ exports.Blocks = {
|
|
|
20
19
|
AccordionItem: AccordionItem_1.AccordionItem,
|
|
21
20
|
ComparisonTable: ComparisonTable_1.ComparisonTable,
|
|
22
21
|
Footer: Footer_1.Footer,
|
|
23
|
-
Gallery: Gallery_1.Gallery,
|
|
24
22
|
Header: Header_1.Header,
|
|
25
23
|
Headline: Headline_1.Headline,
|
|
26
24
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
|
|
@@ -10,7 +10,7 @@ const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeList
|
|
|
10
10
|
const style_1 = require("../../utils/style");
|
|
11
11
|
const CarouselScrollButtons_1 = require("./CarouselScrollButtons");
|
|
12
12
|
const ITEMS_GAP = 4;
|
|
13
|
-
exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, ...rest }) => {
|
|
13
|
+
exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, options, ...rest }) => {
|
|
14
14
|
const { blocks: childBlocks } = rest.block || {};
|
|
15
15
|
const count = itemCount || childBlocks?.length || 0;
|
|
16
16
|
const [activeIndex, setActiveIndex] = (0, hooks_1.useState)(Math.floor((visibleItemCount || 0) / 2));
|
|
@@ -24,9 +24,15 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
|
|
|
24
24
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative max-w-full", children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: isBankHistoryCarousel
|
|
25
25
|
? (0, renderChildren_1.renderChildren)({
|
|
26
26
|
...rest,
|
|
27
|
-
|
|
27
|
+
options: {
|
|
28
|
+
...options,
|
|
29
|
+
extraProps: {
|
|
30
|
+
blocksLength: childBlocks?.length,
|
|
31
|
+
activeIndex: activeIndex,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
28
34
|
})
|
|
29
|
-
: (0, renderChildren_1.renderChildren)(rest) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
|
|
35
|
+
: (0, renderChildren_1.renderChildren)({ ...rest, options }) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
|
|
30
36
|
});
|
|
31
37
|
exports.Carousel.childrenTypes = [
|
|
32
38
|
'CarouselCard',
|
|
@@ -39,20 +45,5 @@ exports.Carousel.childrenTypes = [
|
|
|
39
45
|
'CarouselTariffsCard',
|
|
40
46
|
'CarouselInvestmentCard',
|
|
41
47
|
];
|
|
42
|
-
const buildBlocks = (blocks, activeIndex) => {
|
|
43
|
-
return blocks && blocks[0]?.type === 'CarouselBankHistoryCard'
|
|
44
|
-
? blocks.map((_, i) => {
|
|
45
|
-
return {
|
|
46
|
-
..._,
|
|
47
|
-
content: {
|
|
48
|
-
..._.content,
|
|
49
|
-
orderNumber: i,
|
|
50
|
-
isActive: activeIndex === i,
|
|
51
|
-
blocksLength: blocks.length,
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
})
|
|
55
|
-
: blocks;
|
|
56
|
-
};
|
|
57
48
|
const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
|
|
58
49
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,uEAAoE;
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,uEAAoE;AAEpE,4DAAyD;AACzD,yFAAsF;AACtF,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAMhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEP,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,IAAI,EACnB,SAAS,GAAG,IAAI,EAChB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC,CAA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C,CAAC,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,GACrB,EACrB,uBAAC,6CAAqB,IACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB,EACjC,aAAa,EAAE,mBAAmB,EAClC,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,GAChB,IACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,wBAAwB;CACzB,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAU,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
|
|
3
3
|
interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
orderNumber?: number;
|
|
6
4
|
blocksLength?: number;
|
|
5
|
+
activeIndex?: number;
|
|
7
6
|
}
|
|
8
7
|
export declare const CarouselBankHistoryCard: import("@redneckz/uni-jsx").UNIComponent<CarouselBankHistoryCardProps, any, any>;
|
|
9
8
|
export {};
|
|
@@ -5,7 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
7
|
const Headline_1 = require("../Headline/Headline");
|
|
8
|
-
exports.CarouselBankHistoryCard = (0, uni_jsx_1.JSX)(({ title, description,
|
|
8
|
+
exports.CarouselBankHistoryCard = (0, uni_jsx_1.JSX)(({ title, description, blocksLength = 0, activeIndex, options, ...rest }) => {
|
|
9
|
+
const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
|
|
10
|
+
const isActive = orderNumber === activeIndex;
|
|
9
11
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "flex h-[485px]", children: isActive ? ((0, jsx_runtime_1.jsx)("div", { className: "relative flex items-center w-full", children: (0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "S", title: title, description: description, align: "text-left", className: (0, style_1.style)('absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "flex w-full items-center justify-center", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: (0, jsx_runtime_1.jsx)("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
|
|
10
12
|
});
|
|
11
13
|
const getBackgroundColor = (orderNumber) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselBankHistoryCard.js","sourceRoot":"","sources":["../../../src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,mDAAgD;
|
|
1
|
+
{"version":3,"file":"CarouselBankHistoryCard.js","sourceRoot":"","sources":["../../../src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,mDAAgD;AAQnC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EAAE,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,OAAO,iBAAiB,CAAC;KAC5B;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;IACjC,QAAQ,QAAQ,EAAE;QAChB,KAAK,CAAC;YACJ,OAAO,+BAA+B,CAAC;QACzC,KAAK,CAAC;YACJ,OAAO,+BAA+B,CAAC;QAEzC;YACE,OAAO,8BAA8B,CAAC;KACzC;AACH,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,YAAoB,EAAE,EAAE;IAC3E,IAAI,WAAW,KAAK,CAAC,EAAE;QACrB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,WAAW,KAAK,YAAY,GAAG,CAAC,EAAE;QAC3C,OAAO,SAAS,CAAC;KAClB;SAAM;QACL,OAAO,cAAc,CAAC;KACvB;AACH,CAAC,CAAC"}
|
|
@@ -7,7 +7,8 @@ import type { Picture } from '../../model/Picture';
|
|
|
7
7
|
import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
|
|
8
8
|
import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
9
9
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
10
|
-
|
|
10
|
+
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
11
|
+
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & Footnote & {
|
|
11
12
|
/**
|
|
12
13
|
* @default {
|
|
13
14
|
* "format": "webp",
|
|
@@ -5,14 +5,15 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
7
|
const List_1 = require("../../ui-kit/List/List");
|
|
8
|
+
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
8
9
|
const style_1 = require("../../utils/style");
|
|
9
10
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
10
11
|
const Headline_1 = require("../Headline/Headline");
|
|
11
12
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
|
-
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
13
|
+
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
13
14
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
14
15
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, __html ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
|
|
16
17
|
});
|
|
17
18
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
18
19
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC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AAQ,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,oBAAoB,YAAE,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,IAC/D,IACF,EACL,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,GAAI,IACvD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/D,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAE/E,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,gDAAgD,EAAE,SAAS,CAAC,aAChF,i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CACN,EAAE,CAAC"}
|
|
@@ -21,7 +21,7 @@ exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
|
|
|
21
21
|
}
|
|
22
22
|
setCurrentTab(selectedTab);
|
|
23
23
|
}, []);
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20' : ''} ${className}`, role: "tablist", ...rest, children: tabsMode === 'scrollable' ? ((0, jsx_runtime_1.jsx)(ScrollableTabs_1.ScrollableTabs, { tabs: tabs, onClick: handleClick, currentTab: currentTab, showCounter: showCounter, ...rest })) : (tabs?.map((0, renderTab_1.renderTab)({
|
|
25
25
|
onClick: handleClick,
|
|
26
26
|
currentTab,
|
|
27
27
|
showCounter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,oEAAiE;AAEjE,4DAAyD;AACzD,2CAAwC;AACxC,qDAAkD;AAUrC,QAAA,IAAI,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,EAAE,IAAI,KAAK,OAAO,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CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;SAClF;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,CAAC,WAAoB,EAAE,EAAE;QACvD,IAAI,WAAW,EAAE,IAAI,KAAK,OAAO,EAAE;YACjC,iCAAe,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;SACjF;QACD,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,2CACT,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EACnC,IAAI,SAAS,EAAE,EACf,IAAI,EAAC,SAAS,KACV,IAAI,YAEP,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,CAC3B,uBAAC,+BAAc,IACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,KACpB,IAAI,GACR,CACH,CAAC,CAAC,CAAC,CACF,IAAI,EAAE,GAAG,CACP,IAAA,qBAAS,EAAC;YACR,OAAO,EAAE,WAAW;YACpB,UAAU;YACV,WAAW;YACX,GAAG,IAAI;SACR,CAAC,CACH,CACF,GACY,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -13,9 +13,9 @@ exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassNa
|
|
|
13
13
|
? image.sources
|
|
14
14
|
.filter((_) => _?.src)
|
|
15
15
|
.sort(sourcesComparator)
|
|
16
|
-
.map(({ src, format, media }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet:
|
|
16
|
+
.map(({ src, format, media }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
17
17
|
: null, image?.src
|
|
18
|
-
? renderImg({ ...image, src:
|
|
18
|
+
? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName, isMobile)
|
|
19
19
|
: null] }));
|
|
20
20
|
});
|
|
21
21
|
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
@@ -28,12 +28,6 @@ const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
|
28
28
|
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
29
29
|
return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
30
30
|
};
|
|
31
|
-
const
|
|
32
|
-
?.split(/\s*,\s*/)
|
|
33
|
-
.map((src) => src.trim())
|
|
34
|
-
.filter(Boolean)
|
|
35
|
-
.map((src) => ((0, url_1.isURL)(src) ? src : (0, url_1.joinPath)(pathPrefix, src)))
|
|
36
|
-
.map((0, adjustHref_1.adjustHref)(router))
|
|
37
|
-
.join(', ');
|
|
31
|
+
const adjustSrc = (router, pathPrefix) => (src) => src && !(0, url_1.isURL)(src) ? (0, adjustHref_1.adjustHref)(router)((0, url_1.joinPath)(pathPrefix, src)) : src;
|
|
38
32
|
const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
|
|
39
33
|
//# sourceMappingURL=ImgAsPicture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAA0D;AAE1D,uDAAoD;AACpD,yCAAkD;AAGlD,MAAM,iBAAiB,GAA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AAS,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { defaultBlockDecorator } from './defaultBlockDecorator.js';
|
|
|
4
4
|
const DEFAULT_ANCESTORS = [];
|
|
5
5
|
const defaultStyle = 'col-span-12';
|
|
6
6
|
export function renderBlock(block, options) {
|
|
7
|
-
const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
|
|
7
|
+
const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', extraProps = {}, } = options;
|
|
8
8
|
const { type } = block;
|
|
9
9
|
if (!(type && type in blocksRegistry)) {
|
|
10
10
|
console.warn(`No block with "${type}" is registered`);
|
|
@@ -18,7 +18,7 @@ export function renderBlock(block, options) {
|
|
|
18
18
|
// Adjusted by decorator block and blockClassName
|
|
19
19
|
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
20
20
|
const { content } = adjustedBlock;
|
|
21
|
-
return BlockComponent ? (_jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content }, key)) : null;
|
|
21
|
+
return BlockComponent ? (_jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content, ...extraProps }, key)) : null;
|
|
22
22
|
},
|
|
23
23
|
}, key);
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,iBAAiB,GAAmB,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG,aAAa,CAAC;AAEnC,MAAM,UAAU,WAAW,CAAC,KAAe,EAAE,OAA6B;IACxE,MAAM,EACJ,GAAG,EACH,cAAc,GAAG,qBAAqB,EACtC,cAAc,GAA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EAAE,OAAO,KACZ,OAAO,KACP,UAAU,IALT,GAAG,CAMR,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;KACF,EACD,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,6 @@ import type { VNode } from '../model/VNode';
|
|
|
4
4
|
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
5
|
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
6
6
|
slotName?: SlotName;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName,
|
|
9
|
+
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderProps, ...options }: BlocksListRendererProps) => VNode[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_SLOT_NAME } from '../model/BlockDecorator.js';
|
|
2
2
|
import { renderBlock } from './renderBlock.js';
|
|
3
3
|
const EMPTY_ANCESTORS = [];
|
|
4
|
-
export const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME,
|
|
4
|
+
export const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderProps = renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
|
|
5
5
|
...options,
|
|
6
6
|
key: `${key ? key : _.type}-${j}`,
|
|
7
7
|
ancestors: options.parent
|
|
@@ -4,7 +4,7 @@ import type { VNode } from '../model/VNode';
|
|
|
4
4
|
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
5
|
interface ChildrenRendererProps extends UniBlockProps {
|
|
6
6
|
children?: VNode;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function renderChildren({ children, block, options,
|
|
9
|
+
export declare function renderChildren({ children, block, options, renderProps, }: ChildrenRendererProps): VNode[] | null;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { renderBlocksList } from './renderBlockList.js';
|
|
2
|
-
export function renderChildren({ children, block, options,
|
|
2
|
+
export function renderChildren({ children, block, options, renderProps, }) {
|
|
3
3
|
if (children) {
|
|
4
4
|
return children;
|
|
5
5
|
}
|
|
6
6
|
return block && options
|
|
7
|
-
? renderBlocksList(block.blocks, { ...options, parent: block,
|
|
7
|
+
? renderBlocksList(block.blocks, { ...options, parent: block, renderProps })
|
|
8
8
|
: null;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=renderChildren.js.map
|