@redneckz/wildless-cms-uni-blocks 0.8.15 → 0.8.17
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 +118 -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/ProjectSettings.d.ts +2 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +78 -151
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/bundle/components/Header/useChatBot.d.ts +1 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/bundle/model/AlignType.d.ts +10 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -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/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/components/Blocks.js +2 -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 +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +3 -3
- package/dist/components/CarouselCard/constants.js +2 -2
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/dist/components/{Catalog/CatalogContent.js → CarouselEventCard/CarouselEventCardContent.js} +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/dist/components/Footer/MediaButton.js +13 -10
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -2
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/dist/components/Video/Video.js +6 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/AlignType.d.ts +10 -0
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -3
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -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.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/lib/components/CarouselCard/constants.d.ts +3 -3
- package/lib/components/CarouselCard/constants.js +2 -2
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/lib/components/Footer/MediaButton.js +13 -10
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -2
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/lib/components/Video/Video.js +6 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/AlignType.d.ts +10 -0
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -3
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +28 -57
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/bundle/model/AlignType.d.ts +10 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -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/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/dist/components/CarouselCard/constants.js +2 -2
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/{dist/components/Gallery/GalleryContent.js → mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js} +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/dist/components/Footer/MediaButton.js +13 -10
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/dist/components/Video/Video.js +6 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +10 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/dist/services/sitemap/isTopItemActive.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/dist/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/lib/components/CarouselCard/constants.js +2 -2
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/lib/components/Footer/MediaButton.js +13 -10
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.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/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/lib/components/Video/Video.js +6 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +10 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/lib/services/sitemap/isTopItemActive.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/lib/wlc.json +3 -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/ProjectSettings.ts +4 -0
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +10 -19
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/mobile/src/components/CarouselCard/constants.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/mobile/src/components/Footer/MediaButton.tsx +19 -14
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/mobile/src/components/Header/HeaderContent.ts +0 -7
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/mobile/src/components/Header/useChatBot.ts +2 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/mobile/src/components/Video/Video.tsx +22 -16
- package/mobile/src/hooks/useLink.ts +1 -1
- package/mobile/src/model/AlignType.ts +11 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/mobile/src/wlc.json +3 -1
- 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/ProjectSettings.ts +4 -0
- package/src/components/Accordion/Accordion.fixture.tsx +0 -12
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +2 -6
- package/src/components/Carousel/Carousel.fixture.tsx +19 -0
- package/src/components/Carousel/Carousel.tsx +10 -19
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/src/components/CarouselCard/constants.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/src/components/Footer/MediaButton.tsx +19 -14
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.tsx +0 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/src/components/Header/HeaderContent.ts +0 -7
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/src/components/Header/useChatBot.ts +2 -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/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/src/components/Video/Video.tsx +22 -16
- package/src/hooks/useLink.ts +1 -1
- package/src/model/AlignType.ts +11 -0
- package/src/services/sitemap/isTopItemActive.ts +2 -7
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/src/wlc.json +3 -1
- 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/CarouselCardVersion.d.ts +0 -1
- 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.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.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/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.js +0 -2
- package/dist/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- package/lib/model/CarouselCardVersion.js +0 -2
- package/lib/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- 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/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.js +0 -2
- package/mobile/dist/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- package/mobile/lib/model/CarouselCardVersion.js +0 -2
- package/mobile/lib/model/CarouselCardVersion.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/CarouselCardVersion.ts +0 -1
- 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/CarouselCardVersion.ts +0 -1
- package/src/model/GalleryVersion.ts +0 -1
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Галерея",
|
|
4
|
-
"description": "Описание",
|
|
5
|
-
"orientation": "horizontal",
|
|
6
|
-
"cards": [
|
|
7
|
-
{
|
|
8
|
-
"icon": {
|
|
9
|
-
"format": "webp",
|
|
10
|
-
"size": {
|
|
11
|
-
"width": 150,
|
|
12
|
-
"height": 150
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"title": "Заголовок 1",
|
|
16
|
-
"description": "Описание 1",
|
|
17
|
-
"href": "/credit-cards",
|
|
18
|
-
"version": "primary",
|
|
19
|
-
"isDotted": true,
|
|
20
|
-
"items": [
|
|
21
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
22
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
23
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"icon": {
|
|
28
|
-
"format": "webp",
|
|
29
|
-
"size": {
|
|
30
|
-
"width": 140,
|
|
31
|
-
"height": 140
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"title": "Заголовок 2",
|
|
35
|
-
"description": "Описание 2",
|
|
36
|
-
"href": "/credit-cards",
|
|
37
|
-
"version": "primary",
|
|
38
|
-
"isDotted": true,
|
|
39
|
-
"items": [
|
|
40
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
41
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
42
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"image": {
|
|
47
|
-
"format": "webp",
|
|
48
|
-
"size": {
|
|
49
|
-
"width": 140,
|
|
50
|
-
"height": 140
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"title": "Заголовок 3",
|
|
54
|
-
"description": "Описание 3",
|
|
55
|
-
"href": "/credit-cards",
|
|
56
|
-
"version": "primary",
|
|
57
|
-
"isDotted": true,
|
|
58
|
-
"items": [
|
|
59
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
60
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
61
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { ListOrientation } from '../../model/ListOrientation';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import '../../setup-fixture';
|
|
4
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
-
import { Gallery } from './Gallery';
|
|
6
|
-
import type { GalleryCardProps } from './GalleryContent';
|
|
7
|
-
|
|
8
|
-
const isDotted = true;
|
|
9
|
-
|
|
10
|
-
const image: Picture = {
|
|
11
|
-
src: 'money-1.png',
|
|
12
|
-
format: 'webp',
|
|
13
|
-
size: {
|
|
14
|
-
width: 150,
|
|
15
|
-
height: 150,
|
|
16
|
-
},
|
|
17
|
-
title: 'money',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const link: ButtonWithIconProps = {
|
|
21
|
-
href: '/credit-cards',
|
|
22
|
-
text: 'Подробнее',
|
|
23
|
-
target: '_blank',
|
|
24
|
-
version: 'link',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const defaultItems = [
|
|
28
|
-
{ title: 'До 1 млн ₽', text: 'Кредитный лимит' },
|
|
29
|
-
{ title: 'От 16,9%', text: 'Ставка по кредиту' },
|
|
30
|
-
{ title: 'До 15% ', text: 'Кэшбэк от покупок' },
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
const cards: GalleryCardProps[] = [
|
|
34
|
-
{
|
|
35
|
-
icon: image,
|
|
36
|
-
title: 'Вклады в любой валюте',
|
|
37
|
-
description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
|
|
38
|
-
button: link,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
icon: image,
|
|
42
|
-
title: 'Вклады в любой валюте',
|
|
43
|
-
description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
|
|
44
|
-
version: 'secondary',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
icon: image,
|
|
48
|
-
title: 'Вклады в любой валюте',
|
|
49
|
-
isDotted,
|
|
50
|
-
items: defaultItems,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
title: 'Вклады в любой валюте',
|
|
54
|
-
description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
|
|
55
|
-
},
|
|
56
|
-
];
|
|
57
|
-
|
|
58
|
-
const defaultProps = {
|
|
59
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
60
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
61
|
-
orientation: 'vertical' as ListOrientation,
|
|
62
|
-
cards: cards,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const scrollProps = {
|
|
66
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
67
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
68
|
-
orientation: 'horizontal' as ListOrientation,
|
|
69
|
-
cards: cards,
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export default {
|
|
73
|
-
default: (
|
|
74
|
-
<div className="container grid grid-cols-12">
|
|
75
|
-
<Gallery className="col-span-12" {...defaultProps} />
|
|
76
|
-
</div>
|
|
77
|
-
),
|
|
78
|
-
scroll: (
|
|
79
|
-
<div className="container grid grid-cols-12">
|
|
80
|
-
<Gallery className="col-span-12" {...scrollProps} />
|
|
81
|
-
</div>
|
|
82
|
-
),
|
|
83
|
-
};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import { Gallery } from './Gallery';
|
|
5
|
-
import type { GalleryProps } from './GalleryProps';
|
|
6
|
-
const isDotted = true;
|
|
7
|
-
|
|
8
|
-
const image: Picture = {
|
|
9
|
-
src: 'money-1.png',
|
|
10
|
-
format: 'webp',
|
|
11
|
-
size: {
|
|
12
|
-
width: 140,
|
|
13
|
-
height: 140,
|
|
14
|
-
},
|
|
15
|
-
title: 'money',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const buttonPrimary: ButtonWithIconProps = {
|
|
19
|
-
href: '/credit-cards',
|
|
20
|
-
text: 'Подробнее',
|
|
21
|
-
target: '_blank',
|
|
22
|
-
version: 'secondary',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const buttonPrimaryIcon: ButtonWithIconProps = {
|
|
26
|
-
href: '/credit-cards',
|
|
27
|
-
text: 'Подробнее',
|
|
28
|
-
target: '_blank',
|
|
29
|
-
version: 'secondary',
|
|
30
|
-
icon: { icon: 'BankIcon' },
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const defaultItems = [
|
|
34
|
-
{ text: 'Качественные фермерские продукты напрямую от производителей' },
|
|
35
|
-
{ text: 'Самая большая база сельских туров по России' },
|
|
36
|
-
{ text: 'Площадки для создания комфортной жизни за городом' },
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
export const defaultProps: GalleryProps = {
|
|
40
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
41
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
42
|
-
|
|
43
|
-
cards: [
|
|
44
|
-
{
|
|
45
|
-
title: 'Более 5000 товаров',
|
|
46
|
-
description:
|
|
47
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
48
|
-
icon: image,
|
|
49
|
-
button: buttonPrimary,
|
|
50
|
-
isDotted,
|
|
51
|
-
items: defaultItems,
|
|
52
|
-
version: 'secondary',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: 'Более 1000 развлечений',
|
|
56
|
-
description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
|
|
57
|
-
icon: image,
|
|
58
|
-
button: buttonPrimaryIcon,
|
|
59
|
-
isDotted,
|
|
60
|
-
items: defaultItems,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: 'Фермерские продукты',
|
|
64
|
-
description: 'Высокий процент даже при небольшой сумме денежных средств',
|
|
65
|
-
icon: image,
|
|
66
|
-
button: buttonPrimary,
|
|
67
|
-
isDotted,
|
|
68
|
-
items: defaultItems,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
title: '«Моя выгода»',
|
|
72
|
-
description:
|
|
73
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
74
|
-
icon: image,
|
|
75
|
-
button: buttonPrimary,
|
|
76
|
-
isDotted,
|
|
77
|
-
items: defaultItems,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const textAndButtonProps: GalleryProps = {
|
|
83
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
84
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
85
|
-
cards: [
|
|
86
|
-
{
|
|
87
|
-
title: 'Более 5000 товаров',
|
|
88
|
-
description:
|
|
89
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
90
|
-
icon: image,
|
|
91
|
-
button: buttonPrimary,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
title: 'Более 1000 развлечений',
|
|
95
|
-
description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
|
|
96
|
-
icon: image,
|
|
97
|
-
button: buttonPrimary,
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
title: 'Фермерские продукты',
|
|
101
|
-
description: 'Высокий процент даже при небольшой сумме денежных средств',
|
|
102
|
-
icon: image,
|
|
103
|
-
button: buttonPrimary,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
title: '«Моя выгода»',
|
|
107
|
-
description:
|
|
108
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
109
|
-
icon: image,
|
|
110
|
-
button: buttonPrimary,
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const listAndButtonProps: GalleryProps = {
|
|
116
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
117
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
118
|
-
cards: [
|
|
119
|
-
{
|
|
120
|
-
title: 'Более 5000 товаров',
|
|
121
|
-
icon: image,
|
|
122
|
-
button: buttonPrimary,
|
|
123
|
-
isDotted,
|
|
124
|
-
items: defaultItems,
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
title: 'Более 1000 развлечений',
|
|
128
|
-
icon: image,
|
|
129
|
-
button: buttonPrimary,
|
|
130
|
-
isDotted,
|
|
131
|
-
items: defaultItems,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
title: 'Фермерские продукты',
|
|
135
|
-
icon: image,
|
|
136
|
-
button: buttonPrimary,
|
|
137
|
-
isDotted,
|
|
138
|
-
items: defaultItems,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
title: '«Моя выгода»',
|
|
142
|
-
icon: image,
|
|
143
|
-
button: buttonPrimary,
|
|
144
|
-
isDotted,
|
|
145
|
-
items: defaultItems,
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const textAndNoButtonProps: GalleryProps = {
|
|
151
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
152
|
-
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
153
|
-
cards: [
|
|
154
|
-
{
|
|
155
|
-
title: 'Более 5000 товаров',
|
|
156
|
-
description:
|
|
157
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
158
|
-
icon: image,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
title: 'Более 1000 развлечений',
|
|
162
|
-
description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
|
|
163
|
-
icon: image,
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
title: 'Фермерские продукты',
|
|
167
|
-
description: 'Высокий процент даже при небольшой сумме денежных средств',
|
|
168
|
-
icon: image,
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
title: '«Моя выгода»',
|
|
172
|
-
description:
|
|
173
|
-
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
174
|
-
icon: image,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
const onlyTitleProps: GalleryProps = {
|
|
180
|
-
title: 'Вы можете оплатить бонусными баллами',
|
|
181
|
-
cards: [
|
|
182
|
-
{
|
|
183
|
-
title: 'Более 5000 товаров',
|
|
184
|
-
icon: { icon: 'PercentageRoundIcon' },
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
title: 'Более 1000 развлечений',
|
|
188
|
-
icon: { icon: 'InterestIcon' },
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
title: 'Фермерские продукты',
|
|
192
|
-
icon: { icon: 'WalletIcon', iconVersion: 'white' },
|
|
193
|
-
version: 'secondary',
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
button: buttonPrimary,
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export default {
|
|
200
|
-
default: (
|
|
201
|
-
<div className="container grid grid-cols-12">
|
|
202
|
-
<Gallery className="col-span-12" {...defaultProps} />
|
|
203
|
-
</div>
|
|
204
|
-
),
|
|
205
|
-
'text and button': (
|
|
206
|
-
<div className="container grid grid-cols-12">
|
|
207
|
-
<Gallery className="col-span-12" {...textAndButtonProps} />
|
|
208
|
-
</div>
|
|
209
|
-
),
|
|
210
|
-
'list and button': (
|
|
211
|
-
<div className="container grid grid-cols-12">
|
|
212
|
-
<Gallery className="col-span-12" {...listAndButtonProps} />
|
|
213
|
-
</div>
|
|
214
|
-
),
|
|
215
|
-
'text and no button': (
|
|
216
|
-
<div className="container grid grid-cols-12">
|
|
217
|
-
<Gallery className="col-span-12" {...textAndNoButtonProps} />
|
|
218
|
-
</div>
|
|
219
|
-
),
|
|
220
|
-
'only title': (
|
|
221
|
-
<div className="container grid grid-cols-12">
|
|
222
|
-
<Gallery className="col-span-12" {...onlyTitleProps} />
|
|
223
|
-
</div>
|
|
224
|
-
),
|
|
225
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
|
-
import type { Picture } from '../../model/Picture';
|
|
5
|
-
import { blockStyles, BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
8
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
9
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
10
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
11
|
-
import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
|
|
12
|
-
import type { GalleryProps } from './GalleryProps';
|
|
13
|
-
|
|
14
|
-
export const Gallery = JSX<GalleryProps>(
|
|
15
|
-
({ className = '', title, description, cards = [], orientation = 'horizontal', ...rest }) => (
|
|
16
|
-
<BlockWrapper className={`relative px-4 py-6 overflow-hidden ${className}`} {...rest}>
|
|
17
|
-
<div className="flex flex-col items-center mb-5">
|
|
18
|
-
{title ? (
|
|
19
|
-
<Heading
|
|
20
|
-
headingType="h3"
|
|
21
|
-
className={`text-center ${description ? 'mb-2' : 'mb-5'}`}
|
|
22
|
-
title={title}
|
|
23
|
-
/>
|
|
24
|
-
) : null}
|
|
25
|
-
{description ? (
|
|
26
|
-
<div className="text-m max-w-[600px] text-center mb-5">{description}</div>
|
|
27
|
-
) : null}
|
|
28
|
-
</div>
|
|
29
|
-
{renderCardsLayout(orientation, cards)}
|
|
30
|
-
</BlockWrapper>
|
|
31
|
-
),
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
function renderCardsLayout(orientation: ListOrientation, cards: GalleryCardProps[]) {
|
|
35
|
-
return orientation === 'horizontal' ? (
|
|
36
|
-
<SwipeListControl>{cards?.map(renderCard)}</SwipeListControl>
|
|
37
|
-
) : (
|
|
38
|
-
<div className="grid gap-3.5">{cards?.map(renderCard)}</div>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function renderCard(card: GalleryCardProps, key: number) {
|
|
43
|
-
return (
|
|
44
|
-
<div
|
|
45
|
-
className={`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4
|
|
46
|
-
${blockStyles[card.version ?? 'primary']}`}
|
|
47
|
-
key={key}
|
|
48
|
-
>
|
|
49
|
-
<div>
|
|
50
|
-
{renderImage(card.icon)}
|
|
51
|
-
{card.title ? <h3 className={`text-m-title-xs font-medium m-0`}>{card.title}</h3> : null}
|
|
52
|
-
{card.description ? renderDescription(card) : null}
|
|
53
|
-
{card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null}
|
|
54
|
-
</div>
|
|
55
|
-
{card?.button?.text ? renderButton(card.button) : null}
|
|
56
|
-
</div>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const renderImage = (image?: Picture) =>
|
|
61
|
-
image?.src || image?.icon ? (
|
|
62
|
-
<div className="flex justify-center">
|
|
63
|
-
<Img className="mb-3.5" image={image} />
|
|
64
|
-
</div>
|
|
65
|
-
) : null;
|
|
66
|
-
|
|
67
|
-
function renderButton(button?: ButtonWithIconProps) {
|
|
68
|
-
return <Button className="mt-3" {...button} />;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function renderDescription(card: GalleryCardProps) {
|
|
72
|
-
return (
|
|
73
|
-
<div
|
|
74
|
-
className={`text-secondary-text mt-1 text-s ${
|
|
75
|
-
card.version === 'secondary' ? 'text-white opacity-80' : ''
|
|
76
|
-
}`}
|
|
77
|
-
>
|
|
78
|
-
{card.description}
|
|
79
|
-
</div>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const LIST_DOT_STYLE_MAP: Record<BlockVersion, string> = {
|
|
84
|
-
primary: 'bg-primary-text',
|
|
85
|
-
secondary: 'bg-white',
|
|
86
|
-
gray: 'bg-primary-text',
|
|
87
|
-
transparent: '',
|
|
88
|
-
'': '',
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
function renderItems(
|
|
92
|
-
items: GalleryItemProps[],
|
|
93
|
-
isDotted?: boolean,
|
|
94
|
-
version: BlockVersion = 'primary',
|
|
95
|
-
) {
|
|
96
|
-
return (
|
|
97
|
-
<section className="mt-3">
|
|
98
|
-
{items.map((item, i) => (
|
|
99
|
-
<div key={String(i)}>
|
|
100
|
-
{isDotted ? (
|
|
101
|
-
<div
|
|
102
|
-
className={`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}`}
|
|
103
|
-
/>
|
|
104
|
-
) : null}
|
|
105
|
-
<span className="text-m font-medium">{item.title}</span>
|
|
106
|
-
<span className={`text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`}>
|
|
107
|
-
{item.text}
|
|
108
|
-
</span>
|
|
109
|
-
</div>
|
|
110
|
-
))}
|
|
111
|
-
</section>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"cards": {
|
|
4
|
-
"items": {
|
|
5
|
-
"additionalDescription": {
|
|
6
|
-
"ui:field": "hidden"
|
|
7
|
-
},
|
|
8
|
-
"icon": {
|
|
9
|
-
"ui:field": "picture"
|
|
10
|
-
},
|
|
11
|
-
"button": {
|
|
12
|
-
"icon": {
|
|
13
|
-
"ui:field": "icon"
|
|
14
|
-
},
|
|
15
|
-
"iconRight": {
|
|
16
|
-
"ui:field": "icon"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { AlignText } from '../../model/AlignText';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
6
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
-
import { List } from '../../ui-kit/List/List';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
|
-
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
|
|
10
|
-
import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
|
|
11
|
-
|
|
12
|
-
export const GalleryCardInner = JSX<GalleryCardProps>(
|
|
13
|
-
({
|
|
14
|
-
title,
|
|
15
|
-
headlineSmallVersion = 'H6',
|
|
16
|
-
description,
|
|
17
|
-
additionalDescription,
|
|
18
|
-
icon,
|
|
19
|
-
items,
|
|
20
|
-
button,
|
|
21
|
-
isFullWidth = true,
|
|
22
|
-
isDotted = true,
|
|
23
|
-
align = 'center',
|
|
24
|
-
...rest
|
|
25
|
-
}) => (
|
|
26
|
-
<BlockWrapper
|
|
27
|
-
className={`h-full flex flex-col justify-between ${AlignText[align]}`}
|
|
28
|
-
tag="div"
|
|
29
|
-
{...rest}
|
|
30
|
-
>
|
|
31
|
-
<div className="flex flex-col h-full">
|
|
32
|
-
{renderImage(icon)}
|
|
33
|
-
{renderCardTitle(headlineSmallVersion, title)}
|
|
34
|
-
{renderDescription(description, title)}
|
|
35
|
-
{items?.length ? renderItems(items, isDotted) : null}
|
|
36
|
-
{renderAdditionalDescription(additionalDescription)}
|
|
37
|
-
</div>
|
|
38
|
-
{renderButtonsSection([button], {
|
|
39
|
-
buttonClassName: `mt-6 ${isFullWidth ? 'w-full' : 'self-center'}`,
|
|
40
|
-
})}
|
|
41
|
-
</BlockWrapper>
|
|
42
|
-
),
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
const renderImage = (image?: Picture) => (
|
|
46
|
-
<div className="flex justify-center">
|
|
47
|
-
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
48
|
-
{image?.icon ? (
|
|
49
|
-
<Img
|
|
50
|
-
className={`w-8 h-8 min-w-8 mb-5 rounded-full`}
|
|
51
|
-
image={getIconWithVersion(image)}
|
|
52
|
-
asSVG
|
|
53
|
-
/>
|
|
54
|
-
) : null}
|
|
55
|
-
</div>
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
const renderCardTitle = (headlineSmallVersion: string, title?: string) =>
|
|
59
|
-
title ? <div className={HEADLINE_SMALL_VERSION[headlineSmallVersion]}>{title}</div> : null;
|
|
60
|
-
|
|
61
|
-
const renderDescription = (description?: string, title?: string) =>
|
|
62
|
-
description ? <div className={`text-l ${title ? 'mt-2' : ''}`}>{description}</div> : null;
|
|
63
|
-
|
|
64
|
-
const renderAdditionalDescription = (additionalDescription?: string) =>
|
|
65
|
-
additionalDescription ? (
|
|
66
|
-
<div className={`text-m-light mt-auto group-data-primary:text-secondary-text`}>
|
|
67
|
-
{additionalDescription}
|
|
68
|
-
</div>
|
|
69
|
-
) : null;
|
|
70
|
-
|
|
71
|
-
const renderItems = (items: GalleryItemProps[], isDotted: boolean) => (
|
|
72
|
-
<List
|
|
73
|
-
className="max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text"
|
|
74
|
-
itemClassName="text-left"
|
|
75
|
-
items={items.filter((item) => item?.text).map((item) => item.text as string)}
|
|
76
|
-
isDotted={isDotted}
|
|
77
|
-
/>
|
|
78
|
-
);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
3
|
-
import { blockStyles } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { Headline } from '../Headline/Headline';
|
|
5
|
-
import { cardStyleMap, cardWidthMap, galleryLengthForScrollMap } from './constants';
|
|
6
|
-
import { GalleryCardInner } from './GalleryCardInner';
|
|
7
|
-
import type { GalleryCardProps } from './GalleryContent';
|
|
8
|
-
import type { GalleryInnerProps } from './GalleryInner';
|
|
9
|
-
|
|
10
|
-
export interface GalleryContainerProps extends GalleryInnerProps {
|
|
11
|
-
activeIndex: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface GalleryCardData {
|
|
15
|
-
card: GalleryCardProps;
|
|
16
|
-
galleryVersion: GalleryVersion;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const GalleryContainer = JSX<GalleryContainerProps>(
|
|
20
|
-
({
|
|
21
|
-
headlineVersion = 'M',
|
|
22
|
-
cards = [],
|
|
23
|
-
galleryVersion = 'normal',
|
|
24
|
-
activeIndex,
|
|
25
|
-
title,
|
|
26
|
-
description,
|
|
27
|
-
}) => (
|
|
28
|
-
<div>
|
|
29
|
-
<Headline
|
|
30
|
-
className="!p-0"
|
|
31
|
-
title={title}
|
|
32
|
-
description={description}
|
|
33
|
-
headlineVersion={headlineVersion}
|
|
34
|
-
/>
|
|
35
|
-
<div
|
|
36
|
-
className={`flex mt-8 ${
|
|
37
|
-
cards?.length <= galleryLengthForScrollMap[galleryVersion] ? 'justify-center' : ''
|
|
38
|
-
} duration-1000`}
|
|
39
|
-
style={{ transform: `translateX(-${activeIndex * cardWidthMap[galleryVersion]}px)` }}
|
|
40
|
-
role="list"
|
|
41
|
-
>
|
|
42
|
-
{cards?.map((card, i) => renderCard({ card, galleryVersion }, i))}
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
),
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
function renderCard({ card, galleryVersion }: GalleryCardData, i: number) {
|
|
49
|
-
return (
|
|
50
|
-
<section
|
|
51
|
-
className={`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between
|
|
52
|
-
items-stretch ${cardStyleMap[galleryVersion]} ${
|
|
53
|
-
blockStyles[card.version ?? 'primary'] // TODO Replace with direct BlockWrapper usage
|
|
54
|
-
} w-full col-span-4`}
|
|
55
|
-
key={String(i)}
|
|
56
|
-
role="listitem"
|
|
57
|
-
>
|
|
58
|
-
<GalleryCardInner {...card} />
|
|
59
|
-
</section>
|
|
60
|
-
);
|
|
61
|
-
}
|