@se-faststore/components 0.0.0-stage → 0.12.1
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/LICENSE +21 -0
- package/README.md +129 -2
- package/dist/b2b/SeActionHubBulletinBoard/index.d.ts +2 -0
- package/dist/b2b/SeActionHubBulletinBoard/index.d.ts.map +1 -0
- package/dist/b2b/SeActionHubBulletinBoard/index.js +18 -0
- package/dist/b2b/SeActionHubBulletinBoard/index.js.map +1 -0
- package/dist/b2b/SeActionHubBulletinBoard/types.d.ts +24 -0
- package/dist/b2b/SeActionHubBulletinBoard/types.d.ts.map +1 -0
- package/dist/b2b/SeActionHubBulletinBoard/types.js +3 -0
- package/dist/b2b/SeActionHubBulletinBoard/types.js.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.d.ts +24 -0
- package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.d.ts.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.js +28 -0
- package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.js.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/index.d.ts +3 -0
- package/dist/b2b/SeAddToPurchaseList/index.d.ts.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/index.js +19 -0
- package/dist/b2b/SeAddToPurchaseList/index.js.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.d.ts +29 -0
- package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.d.ts.map +1 -0
- package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.js +86 -0
- package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.js.map +1 -0
- package/dist/b2b/SeAddressSelector/index.d.ts +2 -0
- package/dist/b2b/SeAddressSelector/index.d.ts.map +1 -0
- package/dist/b2b/SeAddressSelector/index.js +18 -0
- package/dist/b2b/SeAddressSelector/index.js.map +1 -0
- package/dist/b2b/SeAddressSelector/useAddressSelector.d.ts +34 -0
- package/dist/b2b/SeAddressSelector/useAddressSelector.d.ts.map +1 -0
- package/dist/b2b/SeAddressSelector/useAddressSelector.js +127 -0
- package/dist/b2b/SeAddressSelector/useAddressSelector.js.map +1 -0
- package/dist/b2b/SeCategoryBanners/index.d.ts +2 -0
- package/dist/b2b/SeCategoryBanners/index.d.ts.map +1 -0
- package/dist/b2b/SeCategoryBanners/index.js +18 -0
- package/dist/b2b/SeCategoryBanners/index.js.map +1 -0
- package/dist/b2b/SeCategoryBanners/types.d.ts +9 -0
- package/dist/b2b/SeCategoryBanners/types.d.ts.map +1 -0
- package/dist/b2b/SeCategoryBanners/types.js +3 -0
- package/dist/b2b/SeCategoryBanners/types.js.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.d.ts +114 -0
- package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.d.ts.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.js +85 -0
- package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.js.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/index.d.ts +4 -0
- package/dist/b2b/SeCheckStockAndPricing/index.d.ts.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/index.js +20 -0
- package/dist/b2b/SeCheckStockAndPricing/index.js.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/stockCsv.d.ts +22 -0
- package/dist/b2b/SeCheckStockAndPricing/stockCsv.d.ts.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/stockCsv.js +79 -0
- package/dist/b2b/SeCheckStockAndPricing/stockCsv.js.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.d.ts +54 -0
- package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.d.ts.map +1 -0
- package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.js +209 -0
- package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.js.map +1 -0
- package/dist/b2b/SeCustomCrossSellingShelf/index.d.ts +2 -0
- package/dist/b2b/SeCustomCrossSellingShelf/index.d.ts.map +1 -0
- package/dist/b2b/SeCustomCrossSellingShelf/index.js +18 -0
- package/dist/b2b/SeCustomCrossSellingShelf/index.js.map +1 -0
- package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.d.ts +19 -0
- package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.d.ts.map +1 -0
- package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.js +21 -0
- package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.js.map +1 -0
- package/dist/b2b/SeCustomProductCard/index.d.ts +3 -0
- package/dist/b2b/SeCustomProductCard/index.d.ts.map +1 -0
- package/dist/b2b/SeCustomProductCard/index.js +19 -0
- package/dist/b2b/SeCustomProductCard/index.js.map +1 -0
- package/dist/b2b/SeCustomProductCard/types.d.ts +30 -0
- package/dist/b2b/SeCustomProductCard/types.d.ts.map +1 -0
- package/dist/b2b/SeCustomProductCard/types.js +3 -0
- package/dist/b2b/SeCustomProductCard/types.js.map +1 -0
- package/dist/b2b/SeCustomProductCard/useB2bProductCard.d.ts +21 -0
- package/dist/b2b/SeCustomProductCard/useB2bProductCard.d.ts.map +1 -0
- package/dist/b2b/SeCustomProductCard/useB2bProductCard.js +33 -0
- package/dist/b2b/SeCustomProductCard/useB2bProductCard.js.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/index.d.ts +3 -0
- package/dist/b2b/SeCustomShelfProduct/index.d.ts.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/index.js +19 -0
- package/dist/b2b/SeCustomShelfProduct/index.js.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/types.d.ts +6 -0
- package/dist/b2b/SeCustomShelfProduct/types.d.ts.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/types.js +3 -0
- package/dist/b2b/SeCustomShelfProduct/types.js.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.d.ts +15 -0
- package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.d.ts.map +1 -0
- package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.js +19 -0
- package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.js.map +1 -0
- package/dist/b2b/SeDashboards/index.d.ts +2 -0
- package/dist/b2b/SeDashboards/index.d.ts.map +1 -0
- package/dist/b2b/SeDashboards/index.js +18 -0
- package/dist/b2b/SeDashboards/index.js.map +1 -0
- package/dist/b2b/SeDashboards/useDashboards.d.ts +51 -0
- package/dist/b2b/SeDashboards/useDashboards.d.ts.map +1 -0
- package/dist/b2b/SeDashboards/useDashboards.js +172 -0
- package/dist/b2b/SeDashboards/useDashboards.js.map +1 -0
- package/dist/b2b/SeFooterB2B/index.d.ts +3 -0
- package/dist/b2b/SeFooterB2B/index.d.ts.map +1 -0
- package/dist/b2b/SeFooterB2B/index.js +19 -0
- package/dist/b2b/SeFooterB2B/index.js.map +1 -0
- package/dist/b2b/SeFooterB2B/types.d.ts +39 -0
- package/dist/b2b/SeFooterB2B/types.d.ts.map +1 -0
- package/dist/b2b/SeFooterB2B/types.js +3 -0
- package/dist/b2b/SeFooterB2B/types.js.map +1 -0
- package/dist/b2b/SeFooterB2B/useNewsletterSubscription.d.ts +16 -0
- package/dist/b2b/SeFooterB2B/useNewsletterSubscription.d.ts.map +1 -0
- package/dist/b2b/SeFooterB2B/useNewsletterSubscription.js +34 -0
- package/dist/b2b/SeFooterB2B/useNewsletterSubscription.js.map +1 -0
- package/dist/b2b/SeProductGalleryB2B/index.d.ts +2 -0
- package/dist/b2b/SeProductGalleryB2B/index.d.ts.map +1 -0
- package/dist/b2b/SeProductGalleryB2B/index.js +18 -0
- package/dist/b2b/SeProductGalleryB2B/index.js.map +1 -0
- package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.d.ts +123 -0
- package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.d.ts.map +1 -0
- package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.js +159 -0
- package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.js.map +1 -0
- package/dist/b2b/SePurchaseLists/index.d.ts +3 -0
- package/dist/b2b/SePurchaseLists/index.d.ts.map +1 -0
- package/dist/b2b/SePurchaseLists/index.js +19 -0
- package/dist/b2b/SePurchaseLists/index.js.map +1 -0
- package/dist/b2b/SePurchaseLists/purchaseListsUtils.d.ts +103 -0
- package/dist/b2b/SePurchaseLists/purchaseListsUtils.d.ts.map +1 -0
- package/dist/b2b/SePurchaseLists/purchaseListsUtils.js +69 -0
- package/dist/b2b/SePurchaseLists/purchaseListsUtils.js.map +1 -0
- package/dist/b2b/SePurchaseLists/usePurchaseLists.d.ts +57 -0
- package/dist/b2b/SePurchaseLists/usePurchaseLists.d.ts.map +1 -0
- package/dist/b2b/SePurchaseLists/usePurchaseLists.js +292 -0
- package/dist/b2b/SePurchaseLists/usePurchaseLists.js.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/index.d.ts +3 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/index.d.ts.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/index.js +19 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/index.js.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.d.ts +58 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.d.ts.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.js +133 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.js.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.d.ts +21 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.d.ts.map +1 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.js +134 -0
- package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.js.map +1 -0
- package/dist/b2b/SeRequestToBuy/index.d.ts +2 -0
- package/dist/b2b/SeRequestToBuy/index.d.ts.map +1 -0
- package/dist/b2b/SeRequestToBuy/index.js +18 -0
- package/dist/b2b/SeRequestToBuy/index.js.map +1 -0
- package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.d.ts +23 -0
- package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.d.ts.map +1 -0
- package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.js +64 -0
- package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.js.map +1 -0
- package/dist/b2b/SeWelcomeBackMessage/index.d.ts +2 -0
- package/dist/b2b/SeWelcomeBackMessage/index.d.ts.map +1 -0
- package/dist/b2b/SeWelcomeBackMessage/index.js +18 -0
- package/dist/b2b/SeWelcomeBackMessage/index.js.map +1 -0
- package/dist/b2b/SeWelcomeBackMessage/useB2bSession.d.ts +11 -0
- package/dist/b2b/SeWelcomeBackMessage/useB2bSession.d.ts.map +1 -0
- package/dist/b2b/SeWelcomeBackMessage/useB2bSession.js +15 -0
- package/dist/b2b/SeWelcomeBackMessage/useB2bSession.js.map +1 -0
- package/dist/b2b/index.d.ts +15 -0
- package/dist/b2b/index.d.ts.map +1 -0
- package/dist/b2b/index.js +31 -0
- package/dist/b2b/index.js.map +1 -0
- package/dist/b2c/SeAssemblySet/assemblySetUtils.d.ts +41 -0
- package/dist/b2c/SeAssemblySet/assemblySetUtils.d.ts.map +1 -0
- package/dist/b2c/SeAssemblySet/assemblySetUtils.js +57 -0
- package/dist/b2c/SeAssemblySet/assemblySetUtils.js.map +1 -0
- package/dist/b2c/SeAssemblySet/index.d.ts +4 -0
- package/dist/b2c/SeAssemblySet/index.d.ts.map +1 -0
- package/dist/b2c/SeAssemblySet/index.js +20 -0
- package/dist/b2c/SeAssemblySet/index.js.map +1 -0
- package/dist/b2c/SeAssemblySet/types.d.ts +52 -0
- package/dist/b2c/SeAssemblySet/types.d.ts.map +1 -0
- package/dist/b2c/SeAssemblySet/types.js +3 -0
- package/dist/b2c/SeAssemblySet/types.js.map +1 -0
- package/dist/b2c/SeAssemblySet/useAssemblySet.d.ts +38 -0
- package/dist/b2c/SeAssemblySet/useAssemblySet.d.ts.map +1 -0
- package/dist/b2c/SeAssemblySet/useAssemblySet.js +134 -0
- package/dist/b2c/SeAssemblySet/useAssemblySet.js.map +1 -0
- package/dist/b2c/SeBanner/buildResponsiveImage.d.ts +18 -0
- package/dist/b2c/SeBanner/buildResponsiveImage.d.ts.map +1 -0
- package/dist/b2c/SeBanner/buildResponsiveImage.js +32 -0
- package/dist/b2c/SeBanner/buildResponsiveImage.js.map +1 -0
- package/dist/b2c/SeBanner/getImageUrl.d.ts +3 -0
- package/dist/b2c/SeBanner/getImageUrl.d.ts.map +1 -0
- package/dist/b2c/SeBanner/getImageUrl.js +7 -0
- package/dist/b2c/SeBanner/getImageUrl.js.map +1 -0
- package/dist/b2c/SeBanner/index.d.ts +8 -0
- package/dist/b2c/SeBanner/index.d.ts.map +1 -0
- package/dist/b2c/SeBanner/index.js +24 -0
- package/dist/b2c/SeBanner/index.js.map +1 -0
- package/dist/b2c/SeBanner/types.d.ts +34 -0
- package/dist/b2c/SeBanner/types.d.ts.map +1 -0
- package/dist/b2c/SeBanner/types.js +27 -0
- package/dist/b2c/SeBanner/types.js.map +1 -0
- package/dist/b2c/SeBanner/useBannerContext.d.ts +4 -0
- package/dist/b2c/SeBanner/useBannerContext.d.ts.map +1 -0
- package/dist/b2c/SeBanner/useBannerContext.js +14 -0
- package/dist/b2c/SeBanner/useBannerContext.js.map +1 -0
- package/dist/b2c/SeBanner/useBannerStyles.d.ts +21 -0
- package/dist/b2c/SeBanner/useBannerStyles.d.ts.map +1 -0
- package/dist/b2c/SeBanner/useBannerStyles.js +87 -0
- package/dist/b2c/SeBanner/useBannerStyles.js.map +1 -0
- package/dist/b2c/SeBanner/useIsMobile.d.ts +4 -0
- package/dist/b2c/SeBanner/useIsMobile.d.ts.map +1 -0
- package/dist/b2c/SeBanner/useIsMobile.js +23 -0
- package/dist/b2c/SeBanner/useIsMobile.js.map +1 -0
- package/dist/b2c/SeBanner/useSanitizedHtml.d.ts +13 -0
- package/dist/b2c/SeBanner/useSanitizedHtml.d.ts.map +1 -0
- package/dist/b2c/SeBanner/useSanitizedHtml.js +45 -0
- package/dist/b2c/SeBanner/useSanitizedHtml.js.map +1 -0
- package/dist/b2c/SeBannerCarousel/index.d.ts +5 -0
- package/dist/b2c/SeBannerCarousel/index.d.ts.map +1 -0
- package/dist/b2c/SeBannerCarousel/index.js +21 -0
- package/dist/b2c/SeBannerCarousel/index.js.map +1 -0
- package/dist/b2c/SeBannerCarousel/types.d.ts +17 -0
- package/dist/b2c/SeBannerCarousel/types.d.ts.map +1 -0
- package/dist/b2c/SeBannerCarousel/types.js +3 -0
- package/dist/b2c/SeBannerCarousel/types.js.map +1 -0
- package/dist/b2c/SeBannerCarousel/useCarousel.d.ts +30 -0
- package/dist/b2c/SeBannerCarousel/useCarousel.d.ts.map +1 -0
- package/dist/b2c/SeBannerCarousel/useCarousel.js +53 -0
- package/dist/b2c/SeBannerCarousel/useCarousel.js.map +1 -0
- package/dist/b2c/SeBannerCarousel/useCarouselContext.d.ts +4 -0
- package/dist/b2c/SeBannerCarousel/useCarouselContext.d.ts.map +1 -0
- package/dist/b2c/SeBannerCarousel/useCarouselContext.js +14 -0
- package/dist/b2c/SeBannerCarousel/useCarouselContext.js.map +1 -0
- package/dist/b2c/SeBannerCarousel/useSwipeNavigation.d.ts +19 -0
- package/dist/b2c/SeBannerCarousel/useSwipeNavigation.d.ts.map +1 -0
- package/dist/b2c/SeBannerCarousel/useSwipeNavigation.js +37 -0
- package/dist/b2c/SeBannerCarousel/useSwipeNavigation.js.map +1 -0
- package/dist/b2c/SeCardsCarousel/index.d.ts +3 -0
- package/dist/b2c/SeCardsCarousel/index.d.ts.map +1 -0
- package/dist/b2c/SeCardsCarousel/index.js +19 -0
- package/dist/b2c/SeCardsCarousel/index.js.map +1 -0
- package/dist/b2c/SeCardsCarousel/types.d.ts +8 -0
- package/dist/b2c/SeCardsCarousel/types.d.ts.map +1 -0
- package/dist/b2c/SeCardsCarousel/types.js +3 -0
- package/dist/b2c/SeCardsCarousel/types.js.map +1 -0
- package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.d.ts +10 -0
- package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.d.ts.map +1 -0
- package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.js +13 -0
- package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.js.map +1 -0
- package/dist/b2c/SeEditorialSplit/index.d.ts +2 -0
- package/dist/b2c/SeEditorialSplit/index.d.ts.map +1 -0
- package/dist/b2c/SeEditorialSplit/index.js +18 -0
- package/dist/b2c/SeEditorialSplit/index.js.map +1 -0
- package/dist/b2c/SeEditorialSplit/types.d.ts +13 -0
- package/dist/b2c/SeEditorialSplit/types.d.ts.map +1 -0
- package/dist/b2c/SeEditorialSplit/types.js +3 -0
- package/dist/b2c/SeEditorialSplit/types.js.map +1 -0
- package/dist/b2c/SeFooter/index.d.ts +3 -0
- package/dist/b2c/SeFooter/index.d.ts.map +1 -0
- package/dist/b2c/SeFooter/index.js +19 -0
- package/dist/b2c/SeFooter/index.js.map +1 -0
- package/dist/b2c/SeFooter/types.d.ts +52 -0
- package/dist/b2c/SeFooter/types.d.ts.map +1 -0
- package/dist/b2c/SeFooter/types.js +3 -0
- package/dist/b2c/SeFooter/types.js.map +1 -0
- package/dist/b2c/SeFooter/utils.d.ts +6 -0
- package/dist/b2c/SeFooter/utils.d.ts.map +1 -0
- package/dist/b2c/SeFooter/utils.js +11 -0
- package/dist/b2c/SeFooter/utils.js.map +1 -0
- package/dist/b2c/SeGridContent/index.d.ts +2 -0
- package/dist/b2c/SeGridContent/index.d.ts.map +1 -0
- package/dist/b2c/SeGridContent/index.js +18 -0
- package/dist/b2c/SeGridContent/index.js.map +1 -0
- package/dist/b2c/SeGridContent/types.d.ts +20 -0
- package/dist/b2c/SeGridContent/types.d.ts.map +1 -0
- package/dist/b2c/SeGridContent/types.js +3 -0
- package/dist/b2c/SeGridContent/types.js.map +1 -0
- package/dist/b2c/SeHeader/index.d.ts +2 -0
- package/dist/b2c/SeHeader/index.d.ts.map +1 -0
- package/dist/b2c/SeHeader/index.js +18 -0
- package/dist/b2c/SeHeader/index.js.map +1 -0
- package/dist/b2c/SeHeader/types.d.ts +35 -0
- package/dist/b2c/SeHeader/types.d.ts.map +1 -0
- package/dist/b2c/SeHeader/types.js +3 -0
- package/dist/b2c/SeHeader/types.js.map +1 -0
- package/dist/b2c/SeHeroSection/index.d.ts +2 -0
- package/dist/b2c/SeHeroSection/index.d.ts.map +1 -0
- package/dist/b2c/SeHeroSection/index.js +18 -0
- package/dist/b2c/SeHeroSection/index.js.map +1 -0
- package/dist/b2c/SeHeroSection/types.d.ts +10 -0
- package/dist/b2c/SeHeroSection/types.d.ts.map +1 -0
- package/dist/b2c/SeHeroSection/types.js +3 -0
- package/dist/b2c/SeHeroSection/types.js.map +1 -0
- package/dist/b2c/SeImageTiles/index.d.ts +2 -0
- package/dist/b2c/SeImageTiles/index.d.ts.map +1 -0
- package/dist/b2c/SeImageTiles/index.js +18 -0
- package/dist/b2c/SeImageTiles/index.js.map +1 -0
- package/dist/b2c/SeImageTiles/types.d.ts +13 -0
- package/dist/b2c/SeImageTiles/types.d.ts.map +1 -0
- package/dist/b2c/SeImageTiles/types.js +3 -0
- package/dist/b2c/SeImageTiles/types.js.map +1 -0
- package/dist/b2c/SeLearnMoreSection/index.d.ts +2 -0
- package/dist/b2c/SeLearnMoreSection/index.d.ts.map +1 -0
- package/dist/b2c/SeLearnMoreSection/index.js +18 -0
- package/dist/b2c/SeLearnMoreSection/index.js.map +1 -0
- package/dist/b2c/SeLearnMoreSection/types.d.ts +10 -0
- package/dist/b2c/SeLearnMoreSection/types.d.ts.map +1 -0
- package/dist/b2c/SeLearnMoreSection/types.js +3 -0
- package/dist/b2c/SeLearnMoreSection/types.js.map +1 -0
- package/dist/b2c/SeMegaMenu/index.d.ts +6 -0
- package/dist/b2c/SeMegaMenu/index.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/index.js +22 -0
- package/dist/b2c/SeMegaMenu/index.js.map +1 -0
- package/dist/b2c/SeMegaMenu/types.d.ts +27 -0
- package/dist/b2c/SeMegaMenu/types.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/types.js +3 -0
- package/dist/b2c/SeMegaMenu/types.js.map +1 -0
- package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.d.ts +6 -0
- package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.js +21 -0
- package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.js.map +1 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.d.ts +15 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.js +21 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.js.map +1 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.d.ts +29 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.js +71 -0
- package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.js.map +1 -0
- package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.d.ts +12 -0
- package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.d.ts.map +1 -0
- package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.js +29 -0
- package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.js.map +1 -0
- package/dist/b2c/SeProductCardWithButton/index.d.ts +3 -0
- package/dist/b2c/SeProductCardWithButton/index.d.ts.map +1 -0
- package/dist/b2c/SeProductCardWithButton/index.js +19 -0
- package/dist/b2c/SeProductCardWithButton/index.js.map +1 -0
- package/dist/b2c/SeProductCardWithButton/types.d.ts +20 -0
- package/dist/b2c/SeProductCardWithButton/types.d.ts.map +1 -0
- package/dist/b2c/SeProductCardWithButton/types.js +3 -0
- package/dist/b2c/SeProductCardWithButton/types.js.map +1 -0
- package/dist/b2c/SeProductCardWithButton/useFormattedPrice.d.ts +13 -0
- package/dist/b2c/SeProductCardWithButton/useFormattedPrice.d.ts.map +1 -0
- package/dist/b2c/SeProductCardWithButton/useFormattedPrice.js +25 -0
- package/dist/b2c/SeProductCardWithButton/useFormattedPrice.js.map +1 -0
- package/dist/b2c/SeProductImageGrid/index.d.ts +2 -0
- package/dist/b2c/SeProductImageGrid/index.d.ts.map +1 -0
- package/dist/b2c/SeProductImageGrid/index.js +18 -0
- package/dist/b2c/SeProductImageGrid/index.js.map +1 -0
- package/dist/b2c/SeProductImageGrid/types.d.ts +15 -0
- package/dist/b2c/SeProductImageGrid/types.d.ts.map +1 -0
- package/dist/b2c/SeProductImageGrid/types.js +3 -0
- package/dist/b2c/SeProductImageGrid/types.js.map +1 -0
- package/dist/b2c/SeProductListing/index.d.ts +3 -0
- package/dist/b2c/SeProductListing/index.d.ts.map +1 -0
- package/dist/b2c/SeProductListing/index.js +19 -0
- package/dist/b2c/SeProductListing/index.js.map +1 -0
- package/dist/b2c/SeProductListing/types.d.ts +40 -0
- package/dist/b2c/SeProductListing/types.d.ts.map +1 -0
- package/dist/b2c/SeProductListing/types.js +3 -0
- package/dist/b2c/SeProductListing/types.js.map +1 -0
- package/dist/b2c/SeProductListing/useSeProductListing.d.ts +8 -0
- package/dist/b2c/SeProductListing/useSeProductListing.d.ts.map +1 -0
- package/dist/b2c/SeProductListing/useSeProductListing.js +27 -0
- package/dist/b2c/SeProductListing/useSeProductListing.js.map +1 -0
- package/dist/b2c/SeProductReviews/index.d.ts +3 -0
- package/dist/b2c/SeProductReviews/index.d.ts.map +1 -0
- package/dist/b2c/SeProductReviews/index.js +19 -0
- package/dist/b2c/SeProductReviews/index.js.map +1 -0
- package/dist/b2c/SeProductReviews/types.d.ts +30 -0
- package/dist/b2c/SeProductReviews/types.d.ts.map +1 -0
- package/dist/b2c/SeProductReviews/types.js +3 -0
- package/dist/b2c/SeProductReviews/types.js.map +1 -0
- package/dist/b2c/SeProductReviews/useSeProductReviews.d.ts +9 -0
- package/dist/b2c/SeProductReviews/useSeProductReviews.d.ts.map +1 -0
- package/dist/b2c/SeProductReviews/useSeProductReviews.js +34 -0
- package/dist/b2c/SeProductReviews/useSeProductReviews.js.map +1 -0
- package/dist/b2c/SeValuePropCards/index.d.ts +3 -0
- package/dist/b2c/SeValuePropCards/index.d.ts.map +1 -0
- package/dist/b2c/SeValuePropCards/index.js +19 -0
- package/dist/b2c/SeValuePropCards/index.js.map +1 -0
- package/dist/b2c/SeValuePropCards/types.d.ts +26 -0
- package/dist/b2c/SeValuePropCards/types.d.ts.map +1 -0
- package/dist/b2c/SeValuePropCards/types.js +3 -0
- package/dist/b2c/SeValuePropCards/types.js.map +1 -0
- package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.d.ts +8 -0
- package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.d.ts.map +1 -0
- package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.js +36 -0
- package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.js.map +1 -0
- package/dist/b2c/SeVideoHero/index.d.ts +4 -0
- package/dist/b2c/SeVideoHero/index.d.ts.map +1 -0
- package/dist/b2c/SeVideoHero/index.js +20 -0
- package/dist/b2c/SeVideoHero/index.js.map +1 -0
- package/dist/b2c/SeVideoHero/types.d.ts +19 -0
- package/dist/b2c/SeVideoHero/types.d.ts.map +1 -0
- package/dist/b2c/SeVideoHero/types.js +3 -0
- package/dist/b2c/SeVideoHero/types.js.map +1 -0
- package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.d.ts +40 -0
- package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.d.ts.map +1 -0
- package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.js +135 -0
- package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.js.map +1 -0
- package/dist/b2c/SeVideoHero/videoSource.d.ts +25 -0
- package/dist/b2c/SeVideoHero/videoSource.d.ts.map +1 -0
- package/dist/b2c/SeVideoHero/videoSource.js +78 -0
- package/dist/b2c/SeVideoHero/videoSource.js.map +1 -0
- package/dist/b2c/index.d.ts +19 -0
- package/dist/b2c/index.d.ts.map +1 -0
- package/dist/b2c/index.js +35 -0
- package/dist/b2c/index.js.map +1 -0
- package/dist/b2c/shared/filterItemsWithImage.d.ts +8 -0
- package/dist/b2c/shared/filterItemsWithImage.d.ts.map +1 -0
- package/dist/b2c/shared/filterItemsWithImage.js +11 -0
- package/dist/b2c/shared/filterItemsWithImage.js.map +1 -0
- package/dist/b2c/shared/index.d.ts +2 -0
- package/dist/b2c/shared/index.d.ts.map +1 -0
- package/dist/b2c/shared/index.js +18 -0
- package/dist/b2c/shared/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +93 -3
- package/src/b2b/SeActionHubBulletinBoard/index.ts +1 -0
- package/src/b2b/SeActionHubBulletinBoard/types.ts +27 -0
- package/src/b2b/SeAddToPurchaseList/addToPurchaseListUtils.ts +40 -0
- package/src/b2b/SeAddToPurchaseList/index.ts +2 -0
- package/src/b2b/SeAddToPurchaseList/useAddToPurchaseList.ts +130 -0
- package/src/b2b/SeAddressSelector/index.ts +1 -0
- package/src/b2b/SeAddressSelector/useAddressSelector.ts +157 -0
- package/src/b2b/SeCategoryBanners/index.ts +1 -0
- package/src/b2b/SeCategoryBanners/types.ts +8 -0
- package/src/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.ts +126 -0
- package/src/b2b/SeCheckStockAndPricing/index.ts +3 -0
- package/src/b2b/SeCheckStockAndPricing/stockCsv.ts +77 -0
- package/src/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.ts +272 -0
- package/src/b2b/SeCustomCrossSellingShelf/index.ts +1 -0
- package/src/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.ts +25 -0
- package/src/b2b/SeCustomProductCard/index.ts +2 -0
- package/src/b2b/SeCustomProductCard/types.ts +16 -0
- package/src/b2b/SeCustomProductCard/useB2bProductCard.ts +53 -0
- package/src/b2b/SeCustomShelfProduct/index.ts +2 -0
- package/src/b2b/SeCustomShelfProduct/types.ts +14 -0
- package/src/b2b/SeCustomShelfProduct/useB2bShelfProducts.ts +31 -0
- package/src/b2b/SeDashboards/index.ts +1 -0
- package/src/b2b/SeDashboards/useDashboards.ts +211 -0
- package/src/b2b/SeFooterB2B/index.ts +2 -0
- package/src/b2b/SeFooterB2B/types.ts +42 -0
- package/src/b2b/SeFooterB2B/useNewsletterSubscription.ts +41 -0
- package/src/b2b/SeProductGalleryB2B/index.ts +1 -0
- package/src/b2b/SeProductGalleryB2B/useProductGalleryB2B.ts +217 -0
- package/src/b2b/SePurchaseLists/index.ts +2 -0
- package/src/b2b/SePurchaseLists/purchaseListsUtils.ts +106 -0
- package/src/b2b/SePurchaseLists/usePurchaseLists.ts +401 -0
- package/src/b2b/SeRecentOrdersSpendOverview/index.ts +2 -0
- package/src/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.ts +162 -0
- package/src/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.ts +159 -0
- package/src/b2b/SeRequestToBuy/index.ts +1 -0
- package/src/b2b/SeRequestToBuy/useRequestToBuyForm.ts +96 -0
- package/src/b2b/SeWelcomeBackMessage/index.ts +1 -0
- package/src/b2b/SeWelcomeBackMessage/useB2bSession.ts +16 -0
- package/src/b2b/index.ts +14 -0
- package/src/b2c/SeAssemblySet/assemblySetUtils.ts +67 -0
- package/src/b2c/SeAssemblySet/index.ts +3 -0
- package/src/b2c/SeAssemblySet/types.ts +51 -0
- package/src/b2c/SeAssemblySet/useAssemblySet.ts +198 -0
- package/src/b2c/SeBanner/buildResponsiveImage.ts +44 -0
- package/src/b2c/SeBanner/getImageUrl.ts +9 -0
- package/src/b2c/SeBanner/index.ts +7 -0
- package/src/b2c/SeBanner/types.ts +40 -0
- package/src/b2c/SeBanner/useBannerContext.ts +12 -0
- package/src/b2c/SeBanner/useBannerStyles.ts +120 -0
- package/src/b2c/SeBanner/useIsMobile.ts +24 -0
- package/src/b2c/SeBanner/useSanitizedHtml.ts +49 -0
- package/src/b2c/SeBannerCarousel/index.ts +4 -0
- package/src/b2c/SeBannerCarousel/types.ts +17 -0
- package/src/b2c/SeBannerCarousel/useCarousel.ts +83 -0
- package/src/b2c/SeBannerCarousel/useCarouselContext.ts +12 -0
- package/src/b2c/SeBannerCarousel/useSwipeNavigation.ts +54 -0
- package/src/b2c/SeCardsCarousel/index.ts +2 -0
- package/src/b2c/SeCardsCarousel/types.ts +7 -0
- package/src/b2c/SeCardsCarousel/useCardsCarouselLayout.ts +9 -0
- package/src/b2c/SeEditorialSplit/index.ts +1 -0
- package/src/b2c/SeEditorialSplit/types.ts +15 -0
- package/src/b2c/SeFooter/index.ts +2 -0
- package/src/b2c/SeFooter/types.ts +54 -0
- package/src/b2c/SeFooter/utils.ts +10 -0
- package/src/b2c/SeGridContent/index.ts +1 -0
- package/src/b2c/SeGridContent/types.ts +22 -0
- package/src/b2c/SeHeader/index.ts +1 -0
- package/src/b2c/SeHeader/types.ts +40 -0
- package/src/b2c/SeHeroSection/index.ts +1 -0
- package/src/b2c/SeHeroSection/types.ts +10 -0
- package/src/b2c/SeImageTiles/index.ts +1 -0
- package/src/b2c/SeImageTiles/types.ts +15 -0
- package/src/b2c/SeLearnMoreSection/index.ts +1 -0
- package/src/b2c/SeLearnMoreSection/types.ts +10 -0
- package/src/b2c/SeMegaMenu/index.ts +5 -0
- package/src/b2c/SeMegaMenu/types.ts +31 -0
- package/src/b2c/SeMegaMenu/useCloseMenuOnEscape.ts +18 -0
- package/src/b2c/SeMegaMenu/useMegaMenuHoverState.ts +29 -0
- package/src/b2c/SeMegaMenu/useMegaMenuMobileNavigation.ts +96 -0
- package/src/b2c/SeMegaMenu/useNavbarHamburgerTrigger.ts +29 -0
- package/src/b2c/SeProductCardWithButton/index.ts +2 -0
- package/src/b2c/SeProductCardWithButton/types.ts +21 -0
- package/src/b2c/SeProductCardWithButton/useFormattedPrice.ts +31 -0
- package/src/b2c/SeProductImageGrid/index.ts +1 -0
- package/src/b2c/SeProductImageGrid/types.ts +15 -0
- package/src/b2c/SeProductListing/index.ts +2 -0
- package/src/b2c/SeProductListing/types.ts +44 -0
- package/src/b2c/SeProductListing/useSeProductListing.ts +26 -0
- package/src/b2c/SeProductReviews/index.ts +2 -0
- package/src/b2c/SeProductReviews/types.ts +34 -0
- package/src/b2c/SeProductReviews/useSeProductReviews.ts +52 -0
- package/src/b2c/SeValuePropCards/index.ts +2 -0
- package/src/b2c/SeValuePropCards/types.ts +27 -0
- package/src/b2c/SeValuePropCards/useSeValuePropCardsFilter.ts +44 -0
- package/src/b2c/SeVideoHero/index.ts +3 -0
- package/src/b2c/SeVideoHero/types.ts +22 -0
- package/src/b2c/SeVideoHero/useSeVideoHeroPlayback.ts +159 -0
- package/src/b2c/SeVideoHero/videoSource.ts +88 -0
- package/src/b2c/index.ts +18 -0
- package/src/b2c/shared/filterItemsWithImage.ts +9 -0
- package/src/b2c/shared/index.ts +1 -0
- package/src/global.d.ts +74 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export enum TextPosition {
|
|
2
|
+
LEFT = 'left',
|
|
3
|
+
RIGHT = 'right',
|
|
4
|
+
CENTER = 'center',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export enum OverlayTextPos {
|
|
8
|
+
LEFT = 'left',
|
|
9
|
+
RIGHT = 'right',
|
|
10
|
+
CENTER = 'center',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum TextAlignment {
|
|
14
|
+
LEFT = 'left',
|
|
15
|
+
RIGHT = 'right',
|
|
16
|
+
CENTER = 'center',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum MobileOverlayTextPosition {
|
|
20
|
+
TOP = 'top',
|
|
21
|
+
BOTTOM = 'bottom',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ImageUrl = {
|
|
25
|
+
src: string
|
|
26
|
+
alt: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type BannerContextValue = {
|
|
30
|
+
variant: 'primary' | 'secondary'
|
|
31
|
+
colorVariant: 'main' | 'light' | 'accent'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type ImageLoaderParams = {
|
|
35
|
+
src: string
|
|
36
|
+
width: number
|
|
37
|
+
quality?: number
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type ImageLoader = (params: ImageLoaderParams) => string
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react'
|
|
2
|
+
import type { BannerContextValue } from './types'
|
|
3
|
+
|
|
4
|
+
export const BannerContext = createContext<BannerContextValue | undefined>(undefined)
|
|
5
|
+
|
|
6
|
+
export function useBannerContext(): BannerContextValue {
|
|
7
|
+
const context = useContext(BannerContext)
|
|
8
|
+
if (context === undefined) {
|
|
9
|
+
throw new Error('useBannerContext must be used within a SeBanner root element.')
|
|
10
|
+
}
|
|
11
|
+
return context
|
|
12
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react'
|
|
2
|
+
import { getImageUrl } from './getImageUrl'
|
|
3
|
+
import { useIsMobile } from './useIsMobile'
|
|
4
|
+
import {
|
|
5
|
+
MobileOverlayTextPosition,
|
|
6
|
+
OverlayTextPos,
|
|
7
|
+
TextAlignment,
|
|
8
|
+
TextPosition,
|
|
9
|
+
type ImageUrl,
|
|
10
|
+
} from './types'
|
|
11
|
+
|
|
12
|
+
export type BannerStyleProps = {
|
|
13
|
+
imageWithText: boolean
|
|
14
|
+
isFullModeStyle: boolean
|
|
15
|
+
textPosition: TextPosition
|
|
16
|
+
overlayTextPos: OverlayTextPos
|
|
17
|
+
textAlignment: TextAlignment
|
|
18
|
+
image: ImageUrl
|
|
19
|
+
uploadMobileImage?: ImageUrl
|
|
20
|
+
mobileOverlayTextPos: MobileOverlayTextPosition
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type BannerStyles = {
|
|
24
|
+
containerStyle: CSSProperties
|
|
25
|
+
textContainerStyle: CSSProperties
|
|
26
|
+
imagePositionStyle: CSSProperties
|
|
27
|
+
textAlignmentStyle: CSSProperties
|
|
28
|
+
mobileOverlayTextPosStyle: CSSProperties
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function useBannerStyles(props: BannerStyleProps): BannerStyles {
|
|
32
|
+
const { isMobile } = useIsMobile()
|
|
33
|
+
|
|
34
|
+
const getContainerStyle = (): CSSProperties => {
|
|
35
|
+
const { imageWithText, isFullModeStyle, image, uploadMobileImage } = props
|
|
36
|
+
if (!isFullModeStyle) return {}
|
|
37
|
+
|
|
38
|
+
if (imageWithText) {
|
|
39
|
+
return { width: '100%', height: 'auto', cursor: 'pointer' }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const finalImageUrl = getImageUrl(isMobile, image, uploadMobileImage)
|
|
43
|
+
return {
|
|
44
|
+
backgroundImage: `url(${finalImageUrl?.src ?? ''})`,
|
|
45
|
+
backgroundSize: 'cover',
|
|
46
|
+
backgroundPosition: 'center center',
|
|
47
|
+
backgroundRepeat: 'no-repeat',
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const getTextContainerStyle = (): CSSProperties => {
|
|
52
|
+
const { textPosition, isFullModeStyle } = props
|
|
53
|
+
const baseStyles: CSSProperties = {
|
|
54
|
+
flexDirection: 'column',
|
|
55
|
+
...(isMobile || isFullModeStyle ? {} : { position: 'absolute' as const, width: '50%' }),
|
|
56
|
+
}
|
|
57
|
+
const textContainerStyles: Record<TextPosition, CSSProperties> = {
|
|
58
|
+
[TextPosition.LEFT]: { ...baseStyles, left: 0, right: '50%', alignItems: 'flex-start' },
|
|
59
|
+
[TextPosition.CENTER]: { ...baseStyles, left: 0, right: '50%', alignItems: 'center' },
|
|
60
|
+
[TextPosition.RIGHT]: { ...baseStyles, left: '50%', right: 0, alignItems: 'flex-end' },
|
|
61
|
+
}
|
|
62
|
+
return textContainerStyles[textPosition] ?? {}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const getImagePositionStyle = (): CSSProperties => {
|
|
66
|
+
const { textPosition, isFullModeStyle } = props
|
|
67
|
+
if (isFullModeStyle) return {}
|
|
68
|
+
|
|
69
|
+
const imagePositionStyles: Record<TextPosition, CSSProperties> = {
|
|
70
|
+
[TextPosition.LEFT]: { left: '50%' },
|
|
71
|
+
[TextPosition.CENTER]: { left: '50%' },
|
|
72
|
+
[TextPosition.RIGHT]: { right: '50%' },
|
|
73
|
+
}
|
|
74
|
+
return imagePositionStyles[textPosition] ?? {}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const getTextAlignmentStyle = (): CSSProperties => {
|
|
78
|
+
const { textAlignment, overlayTextPos, isFullModeStyle } = props
|
|
79
|
+
const commonStyles: CSSProperties = {
|
|
80
|
+
padding: isMobile ? '0 1.5rem' : '0 5rem',
|
|
81
|
+
flexDirection: 'column',
|
|
82
|
+
}
|
|
83
|
+
const textAlignmentStyles: Record<TextAlignment, CSSProperties> = {
|
|
84
|
+
[TextAlignment.LEFT]: { alignItems: 'flex-start' },
|
|
85
|
+
[TextAlignment.CENTER]: { alignItems: 'center', textAlign: 'center' },
|
|
86
|
+
[TextAlignment.RIGHT]: { alignItems: 'flex-end', textAlign: 'right' },
|
|
87
|
+
}
|
|
88
|
+
const resolved = isFullModeStyle ? overlayTextPos : textAlignment
|
|
89
|
+
return { ...commonStyles, ...(textAlignmentStyles[resolved as TextAlignment] ?? {}) }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const getMobileOverlayTextPosStyle = (): CSSProperties => {
|
|
93
|
+
const { isFullModeStyle, mobileOverlayTextPos } = props
|
|
94
|
+
if (!isMobile) return {}
|
|
95
|
+
|
|
96
|
+
const MOBILE_OVERLAY_TEXT_STYLES: Record<
|
|
97
|
+
MobileOverlayTextPosition,
|
|
98
|
+
{ fullmodeActive: CSSProperties; fullmodeOff: CSSProperties }
|
|
99
|
+
> = {
|
|
100
|
+
[MobileOverlayTextPosition.TOP]: {
|
|
101
|
+
fullmodeActive: { display: 'flex', alignItems: 'flex-start' },
|
|
102
|
+
fullmodeOff: { flexDirection: 'column' },
|
|
103
|
+
},
|
|
104
|
+
[MobileOverlayTextPosition.BOTTOM]: {
|
|
105
|
+
fullmodeActive: { display: 'flex', alignItems: 'flex-end' },
|
|
106
|
+
fullmodeOff: { flexDirection: 'column-reverse' },
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
const styleType = isFullModeStyle ? 'fullmodeActive' : 'fullmodeOff'
|
|
110
|
+
return MOBILE_OVERLAY_TEXT_STYLES[mobileOverlayTextPos]?.[styleType] ?? {}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
containerStyle: getContainerStyle(),
|
|
115
|
+
textContainerStyle: getTextContainerStyle(),
|
|
116
|
+
imagePositionStyle: getImagePositionStyle(),
|
|
117
|
+
textAlignmentStyle: getTextAlignmentStyle(),
|
|
118
|
+
mobileOverlayTextPosStyle: getMobileOverlayTextPosStyle(),
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useSyncExternalStore } from 'react'
|
|
2
|
+
|
|
3
|
+
const MOBILE_MEDIA_QUERY = '(max-width: 768px)'
|
|
4
|
+
|
|
5
|
+
function subscribe(callback: () => void) {
|
|
6
|
+
const mql = window.matchMedia(MOBILE_MEDIA_QUERY)
|
|
7
|
+
mql.addEventListener('change', callback)
|
|
8
|
+
return () => mql.removeEventListener('change', callback)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function getSnapshot() {
|
|
12
|
+
return window.matchMedia(MOBILE_MEDIA_QUERY).matches
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Server renders as "desktop" (false) rather than guessing "mobile" — avoids the
|
|
16
|
+
// mount-time flash the original implementation had from defaulting to `true`.
|
|
17
|
+
function getServerSnapshot() {
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function useIsMobile(): { isMobile: boolean } {
|
|
22
|
+
const isMobile = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)
|
|
23
|
+
return { isMobile }
|
|
24
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useMemo } from 'react'
|
|
2
|
+
import sanitizeHtml from 'sanitize-html'
|
|
3
|
+
|
|
4
|
+
export type SanitizeOptions = {
|
|
5
|
+
allowedTags?: string[]
|
|
6
|
+
allowedAttributes?: Record<string, string[]>
|
|
7
|
+
allowedClasses?: Record<string, string[]>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const DEFAULTS = {
|
|
11
|
+
allowedAttributes: {
|
|
12
|
+
'*': ['id', 'title', 'accesskey', 'class', 'style', 'aria-label', 'width', 'height', 'hidden'],
|
|
13
|
+
a: ['href', 'name', 'target'],
|
|
14
|
+
iframe: ['allow', 'allowfullscreen', 'frameborder', 'src'],
|
|
15
|
+
img: ['src', 'alt'],
|
|
16
|
+
link: ['rel', 'type', 'href'],
|
|
17
|
+
td: ['colspan', 'rowspan', 'headers'],
|
|
18
|
+
},
|
|
19
|
+
allowedClasses: {},
|
|
20
|
+
allowedSchemes: ['http', 'https', 'mailto', 'tel'],
|
|
21
|
+
allowedTags: [
|
|
22
|
+
'a', 'abbr', 'article', 'b', 'blockquote', 'br', 'caption', 'code', 'del', 'details',
|
|
23
|
+
'div', 'em', 'figure', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'header', 'footer', 'i',
|
|
24
|
+
'img', 'ins', 'iframe', 'kbd', 'li', 'main', 'mark', 'ol', 'p', 'picture', 'pre', 'section',
|
|
25
|
+
'span', 'strike', 'strong', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'th', 'thead',
|
|
26
|
+
'tr', 'u', 'ul',
|
|
27
|
+
],
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Sanitizes CMS-authored HTML for safe use with `dangerouslySetInnerHTML`.
|
|
32
|
+
* Returns `null` for empty content so callers can skip rendering entirely.
|
|
33
|
+
*/
|
|
34
|
+
export function useSanitizedHtml(
|
|
35
|
+
content: string,
|
|
36
|
+
{ allowedAttributes, allowedClasses, allowedTags }: SanitizeOptions = {},
|
|
37
|
+
): { __html: string } | null {
|
|
38
|
+
return useMemo(() => {
|
|
39
|
+
if (!content) return null
|
|
40
|
+
|
|
41
|
+
const clean = sanitizeHtml(content, {
|
|
42
|
+
...DEFAULTS,
|
|
43
|
+
allowedAttributes: allowedAttributes ?? DEFAULTS.allowedAttributes,
|
|
44
|
+
allowedClasses: allowedClasses ?? DEFAULTS.allowedClasses,
|
|
45
|
+
allowedTags: allowedTags ?? DEFAULTS.allowedTags,
|
|
46
|
+
})
|
|
47
|
+
return { __html: clean }
|
|
48
|
+
}, [content, allowedAttributes, allowedClasses, allowedTags])
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type BannerCarouselSlide = {
|
|
2
|
+
image: string
|
|
3
|
+
imageMobile?: string
|
|
4
|
+
alt?: string
|
|
5
|
+
title?: string
|
|
6
|
+
text?: string
|
|
7
|
+
linkText?: string
|
|
8
|
+
url?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type CarouselContextValue = {
|
|
12
|
+
activeIndex: number
|
|
13
|
+
slideCount: number
|
|
14
|
+
goTo: (index: number) => void
|
|
15
|
+
goNext: () => void
|
|
16
|
+
goPrev: () => void
|
|
17
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react'
|
|
2
|
+
|
|
3
|
+
export type UseCarouselOptions = {
|
|
4
|
+
/** Total number of slides. */
|
|
5
|
+
slideCount: number
|
|
6
|
+
/** Wrap around from the last slide to the first (and vice-versa). Defaults to `true`. */
|
|
7
|
+
loop?: boolean
|
|
8
|
+
/** Automatically advance to the next slide. Defaults to `false`. */
|
|
9
|
+
autoplay?: boolean
|
|
10
|
+
/** Milliseconds between automatic slide changes. Defaults to `5000`. */
|
|
11
|
+
autoplayDelay?: number
|
|
12
|
+
/** Pause autoplay while the pointer is over the carousel. Defaults to `true`. */
|
|
13
|
+
pauseOnHover?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type UseCarouselResult = {
|
|
17
|
+
activeIndex: number
|
|
18
|
+
goTo: (index: number) => void
|
|
19
|
+
goNext: () => void
|
|
20
|
+
goPrev: () => void
|
|
21
|
+
isPaused: boolean
|
|
22
|
+
containerHandlers: {
|
|
23
|
+
onMouseEnter: () => void
|
|
24
|
+
onMouseLeave: () => void
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Slide-index state machine for a carousel: clamps/wraps navigation, and optionally
|
|
30
|
+
* advances slides on an interval (paused on hover) — no DOM/animation library involved,
|
|
31
|
+
* so any renderer (CSS transform track, opacity crossfade, etc.) can consume it.
|
|
32
|
+
*/
|
|
33
|
+
export function useCarousel(options: UseCarouselOptions): UseCarouselResult {
|
|
34
|
+
const { slideCount, loop = true, autoplay = false, autoplayDelay = 5000, pauseOnHover = true } = options
|
|
35
|
+
|
|
36
|
+
const [activeIndex, setActiveIndex] = useState(0)
|
|
37
|
+
const [isPaused, setIsPaused] = useState(false)
|
|
38
|
+
|
|
39
|
+
const clampIndex = useCallback(
|
|
40
|
+
(index: number) => {
|
|
41
|
+
if (slideCount <= 0) return 0
|
|
42
|
+
if (loop) return ((index % slideCount) + slideCount) % slideCount
|
|
43
|
+
return Math.min(Math.max(index, 0), slideCount - 1)
|
|
44
|
+
},
|
|
45
|
+
[slideCount, loop],
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
// Keeps `activeIndex` in range if `slideCount` changes (e.g. CMS content updates).
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
setActiveIndex((current) => clampIndex(current))
|
|
51
|
+
}, [clampIndex])
|
|
52
|
+
|
|
53
|
+
const goTo = useCallback((index: number) => setActiveIndex(clampIndex(index)), [clampIndex])
|
|
54
|
+
const goNext = useCallback(() => setActiveIndex((current) => clampIndex(current + 1)), [clampIndex])
|
|
55
|
+
const goPrev = useCallback(() => setActiveIndex((current) => clampIndex(current - 1)), [clampIndex])
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (!autoplay || slideCount <= 1 || isPaused) return undefined
|
|
59
|
+
|
|
60
|
+
const id = setInterval(() => {
|
|
61
|
+
setActiveIndex((current) => clampIndex(current + 1))
|
|
62
|
+
}, autoplayDelay)
|
|
63
|
+
|
|
64
|
+
return () => clearInterval(id)
|
|
65
|
+
}, [autoplay, autoplayDelay, slideCount, isPaused, clampIndex])
|
|
66
|
+
|
|
67
|
+
const onMouseEnter = useCallback(() => {
|
|
68
|
+
if (pauseOnHover) setIsPaused(true)
|
|
69
|
+
}, [pauseOnHover])
|
|
70
|
+
|
|
71
|
+
const onMouseLeave = useCallback(() => {
|
|
72
|
+
if (pauseOnHover) setIsPaused(false)
|
|
73
|
+
}, [pauseOnHover])
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
activeIndex,
|
|
77
|
+
goTo,
|
|
78
|
+
goNext,
|
|
79
|
+
goPrev,
|
|
80
|
+
isPaused,
|
|
81
|
+
containerHandlers: { onMouseEnter, onMouseLeave },
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react'
|
|
2
|
+
import type { CarouselContextValue } from './types'
|
|
3
|
+
|
|
4
|
+
export const CarouselContext = createContext<CarouselContextValue | undefined>(undefined)
|
|
5
|
+
|
|
6
|
+
export function useCarouselContext(): CarouselContextValue {
|
|
7
|
+
const context = useContext(CarouselContext)
|
|
8
|
+
if (context === undefined) {
|
|
9
|
+
throw new Error('useCarouselContext must be used within a SeBannerCarousel root element.')
|
|
10
|
+
}
|
|
11
|
+
return context
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useCallback, useRef } from 'react'
|
|
2
|
+
import type { TouchEvent } from 'react'
|
|
3
|
+
|
|
4
|
+
export type UseSwipeNavigationOptions = {
|
|
5
|
+
onSwipeLeft: () => void
|
|
6
|
+
onSwipeRight: () => void
|
|
7
|
+
/** Minimum horizontal drag distance (px) to register as a swipe. Defaults to `40`. */
|
|
8
|
+
threshold?: number
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SwipeHandlers = {
|
|
12
|
+
onTouchStart: (event: TouchEvent) => void
|
|
13
|
+
onTouchMove: (event: TouchEvent) => void
|
|
14
|
+
onTouchEnd: () => void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Touch-swipe gesture recognizer for a carousel, framework/library-free (no Swiper/Hammer).
|
|
19
|
+
* Tracks the horizontal delta between touchstart and touchend and fires the matching
|
|
20
|
+
* callback once it crosses `threshold`.
|
|
21
|
+
*/
|
|
22
|
+
export function useSwipeNavigation({
|
|
23
|
+
onSwipeLeft,
|
|
24
|
+
onSwipeRight,
|
|
25
|
+
threshold = 40,
|
|
26
|
+
}: UseSwipeNavigationOptions): SwipeHandlers {
|
|
27
|
+
const touchStartX = useRef<number | null>(null)
|
|
28
|
+
const touchDeltaX = useRef(0)
|
|
29
|
+
|
|
30
|
+
const onTouchStart = useCallback((event: TouchEvent) => {
|
|
31
|
+
touchStartX.current = event.touches[0]?.clientX ?? null
|
|
32
|
+
touchDeltaX.current = 0
|
|
33
|
+
}, [])
|
|
34
|
+
|
|
35
|
+
const onTouchMove = useCallback((event: TouchEvent) => {
|
|
36
|
+
if (touchStartX.current === null) return
|
|
37
|
+
const currentX = event.touches[0]?.clientX ?? touchStartX.current
|
|
38
|
+
touchDeltaX.current = currentX - touchStartX.current
|
|
39
|
+
}, [])
|
|
40
|
+
|
|
41
|
+
const onTouchEnd = useCallback(() => {
|
|
42
|
+
if (Math.abs(touchDeltaX.current) >= threshold) {
|
|
43
|
+
if (touchDeltaX.current < 0) {
|
|
44
|
+
onSwipeLeft()
|
|
45
|
+
} else {
|
|
46
|
+
onSwipeRight()
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
touchStartX.current = null
|
|
50
|
+
touchDeltaX.current = 0
|
|
51
|
+
}, [threshold, onSwipeLeft, onSwipeRight])
|
|
52
|
+
|
|
53
|
+
return { onTouchStart, onTouchMove, onTouchEnd }
|
|
54
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout decision for a row of content cards: below three items there's no room to justify
|
|
3
|
+
* the row, so it's centered instead of spread edge-to-edge. Ported from the original
|
|
4
|
+
* `banners.length < 3 ? styles.centered : styles.carousel` inline check so the rule lives
|
|
5
|
+
* next to the component's logic instead of being re-derived at the call site.
|
|
6
|
+
*/
|
|
7
|
+
export function useCardsCarouselLayout(itemCount: number): { isCentered: boolean } {
|
|
8
|
+
return { isCentered: itemCount < 3 }
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type SeEditorialSplitItem = {
|
|
2
|
+
/** Public path or absolute URL. Items without an image are skipped. */
|
|
3
|
+
image: string
|
|
4
|
+
alt?: string
|
|
5
|
+
/** Caption. Without it the caption is hidden. */
|
|
6
|
+
title?: string
|
|
7
|
+
/** Wraps image and caption. The arrow icon shows only with a link. */
|
|
8
|
+
link?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SeEditorialSplitColumns = 1 | 2 | 3
|
|
12
|
+
|
|
13
|
+
export type SeEditorialSplitAspectRatio = '3:4' | '4:5' | '1:1'
|
|
14
|
+
|
|
15
|
+
export type SeEditorialSplitCaptionPosition = 'below' | 'overlay'
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type SeFooterLink = {
|
|
2
|
+
text: string
|
|
3
|
+
/** Without a URL the item renders as a paragraph and its column becomes a text column. */
|
|
4
|
+
url?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type SeFooterColumn = {
|
|
8
|
+
sectionTitle?: string
|
|
9
|
+
items?: SeFooterLink[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type SeFooterSocialLink = {
|
|
13
|
+
/**
|
|
14
|
+
* Icon name in the store's FastStore icon sprite (e.g. `Facebook`, `Instagram`). The native
|
|
15
|
+
* Footer's `{ icon }` object shape is accepted too, so its CMS content renders as is.
|
|
16
|
+
*/
|
|
17
|
+
icon?: string | { icon?: string }
|
|
18
|
+
/** Custom icon image URL, for networks the sprite doesn't have. Wins over `icon`. */
|
|
19
|
+
image?: string
|
|
20
|
+
alt: string
|
|
21
|
+
url: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type SeFooterSocial = {
|
|
25
|
+
title?: string
|
|
26
|
+
socialLinks?: SeFooterSocialLink[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type SeFooterLogo = {
|
|
30
|
+
src?: string
|
|
31
|
+
alt?: string
|
|
32
|
+
link?: { url?: string; title?: string }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type SeFooterIncentive = {
|
|
36
|
+
title: string
|
|
37
|
+
/** Same field name as the native Footer's incentives. */
|
|
38
|
+
firstLineText?: string
|
|
39
|
+
/** Icon name in the store's FastStore icon sprite. */
|
|
40
|
+
icon?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type SeFooterPaymentMethod = {
|
|
44
|
+
image: string
|
|
45
|
+
alt: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type SeFooterPaymentMethods = {
|
|
49
|
+
title?: string
|
|
50
|
+
methods?: SeFooterPaymentMethod[]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Width below which link columns collapse into accordions: 768px or 1024px. */
|
|
54
|
+
export type SeFooterAccordionBreakpoint = 'tablet' | 'notebook'
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SeFooterColumn, SeFooterSocialLink } from './types'
|
|
2
|
+
|
|
3
|
+
export const isExternalUrl = (url: string) => /^https?:\/\//.test(url)
|
|
4
|
+
|
|
5
|
+
/** A column with at least one URL-less item is a text column (e.g. a loyalty-club teaser). */
|
|
6
|
+
export const getSeFooterColumnVariant = (column: SeFooterColumn): 'text' | 'links' =>
|
|
7
|
+
(column.items ?? []).some((item) => !item.url) ? 'text' : 'links'
|
|
8
|
+
|
|
9
|
+
export const getSeFooterSocialIconName = (link: SeFooterSocialLink): string | undefined =>
|
|
10
|
+
typeof link.icon === 'string' ? link.icon : link.icon?.icon
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type SeGridContentImage = {
|
|
2
|
+
src: string
|
|
3
|
+
alt?: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type SeGridContentItem = {
|
|
7
|
+
title: string
|
|
8
|
+
eyebrow?: string
|
|
9
|
+
image?: string
|
|
10
|
+
href?: string
|
|
11
|
+
ctaLabel?: string
|
|
12
|
+
secondaryHref?: string
|
|
13
|
+
secondaryCtaLabel?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SeGridContentColumns = 1 | 2 | 3 | 4
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* `overlay` (default): tall cards with the content in a colored box over the image.
|
|
20
|
+
* `caption-below`: the image keeps its aspect ratio and the content sits under it.
|
|
21
|
+
*/
|
|
22
|
+
export type SeGridContentVariant = 'overlay' | 'caption-below'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type SeHeaderTopbarItem = {
|
|
2
|
+
label?: string
|
|
3
|
+
href?: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type SeHeaderTopbar = {
|
|
7
|
+
leftText?: string
|
|
8
|
+
rightItems?: SeHeaderTopbarItem[]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SeHeaderLogo = {
|
|
12
|
+
text?: string
|
|
13
|
+
href?: string
|
|
14
|
+
imageUrl?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type SeHeaderSearchCategory = {
|
|
18
|
+
label?: string
|
|
19
|
+
value?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type SeHeaderSearch = {
|
|
23
|
+
placeholder?: string
|
|
24
|
+
categories?: SeHeaderSearchCategory[]
|
|
25
|
+
/** Optional form action URL (plain GET form submission) when no onSearch handler is given. */
|
|
26
|
+
action?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type SeHeaderAccount = {
|
|
30
|
+
welcome?: string
|
|
31
|
+
guestLabel?: string
|
|
32
|
+
loginLabel?: string
|
|
33
|
+
loginHref?: string
|
|
34
|
+
showAvatar?: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type SeHeaderSearchSubmit = {
|
|
38
|
+
term: string
|
|
39
|
+
category: string
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ImageTile = {
|
|
2
|
+
src: string
|
|
3
|
+
url: string
|
|
4
|
+
alt: string
|
|
5
|
+
/** Caption title, shown when `captionPosition` is `below`. */
|
|
6
|
+
title?: string
|
|
7
|
+
/** Small label under the title, shown when `captionPosition` is `below`. Defaults to "See more". */
|
|
8
|
+
linkLabel?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SeImageTilesCaptionPosition = 'none' | 'below'
|
|
12
|
+
|
|
13
|
+
export type SeImageTilesColumns = 2 | 3 | 4
|
|
14
|
+
|
|
15
|
+
export type SeImageTilesAspectRatio = '3:4' | '2:3' | '4:5' | '1:1'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|