@enadhq/enad-react-sdk 0.0.6 → 1.0.2
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/README.md +288 -0
- package/dist/client/cart/adapters/brink.d.ts +29 -0
- package/dist/client/cart/adapters/brink.d.ts.map +1 -0
- package/dist/client/cart/adapters/brink.mjs +154 -0
- package/dist/client/cart/adapters/brink.mjs.map +1 -0
- package/dist/client/cart/adapters/index.d.ts +3 -0
- package/dist/client/cart/adapters/index.d.ts.map +1 -0
- package/dist/client/cart/adapters/index.mjs +5 -0
- package/dist/client/cart/adapters/index.mjs.map +1 -0
- package/dist/client/cart/adapters/mock.d.ts +20 -0
- package/dist/client/cart/adapters/mock.d.ts.map +1 -0
- package/dist/client/cart/adapters/mock.mjs +76 -0
- package/dist/client/cart/adapters/mock.mjs.map +1 -0
- package/dist/client/cart/components/{cart-drawer.d.mts → cart-drawer.d.ts} +4 -6
- package/dist/client/cart/components/cart-drawer.d.ts.map +1 -0
- package/dist/client/cart/components/cart-drawer.mjs +269 -138
- package/dist/client/cart/components/cart-drawer.mjs.map +1 -1
- package/dist/client/cart/components/cart-trigger.d.ts +10 -0
- package/dist/client/cart/components/cart-trigger.d.ts.map +1 -0
- package/dist/client/cart/components/cart-trigger.mjs +26 -10
- package/dist/client/cart/components/cart-trigger.mjs.map +1 -1
- package/dist/client/cart/components/promo-code-input.d.ts +16 -0
- package/dist/client/cart/components/promo-code-input.d.ts.map +1 -0
- package/dist/client/cart/components/promo-code-input.mjs +92 -0
- package/dist/client/cart/components/promo-code-input.mjs.map +1 -0
- package/dist/client/cart/constants/session.d.ts +2 -0
- package/dist/client/cart/constants/session.d.ts.map +1 -0
- package/dist/client/cart/contexts/cart.d.ts +36 -0
- package/dist/client/cart/contexts/cart.d.ts.map +1 -0
- package/dist/client/cart/contexts/cart.mjs +14 -16
- package/dist/client/cart/contexts/cart.mjs.map +1 -1
- package/dist/client/cart/hooks/useCart.d.ts +26 -0
- package/dist/client/cart/hooks/useCart.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCart.mjs +5 -6
- package/dist/client/cart/hooks/useCart.mjs.map +1 -1
- package/dist/client/cart/hooks/useCartActions.d.ts +25 -0
- package/dist/client/cart/hooks/useCartActions.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCartActions.mjs +7 -16
- package/dist/client/cart/hooks/useCartActions.mjs.map +1 -1
- package/dist/client/cart/index.d.ts +12 -0
- package/dist/client/cart/index.d.ts.map +1 -0
- package/dist/client/cart/index.mjs +16 -0
- package/dist/client/cart/index.mjs.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts +7 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs.map +1 -1
- package/dist/client/cart/queries/getCartQueryFn.d.ts +4 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs.map +1 -1
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts +6 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs.map +1 -1
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts +7 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs.map +1 -1
- package/dist/client/cart/types/adapter.d.ts +110 -0
- package/dist/client/cart/types/adapter.d.ts.map +1 -0
- package/dist/client/cart/types/adapter.mjs +12 -0
- package/dist/client/cart/types/adapter.mjs.map +1 -0
- package/dist/client/cart/types/{cart.d.mts → cart.d.ts} +21 -5
- package/dist/client/cart/types/cart.d.ts.map +1 -0
- package/dist/client/cart/utils/session.d.ts +5 -0
- package/dist/client/cart/utils/session.d.ts.map +1 -0
- package/dist/client/cart/utils/session.mjs +1 -1
- package/dist/client/cart/utils/session.mjs.map +1 -1
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts +7 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs +3 -2
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs.map +1 -1
- package/dist/client/cms/storyblok/preview/{storyblok-preview-syncer.d.mts → storyblok-preview-syncer.d.ts} +4 -6
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs.map +1 -1
- package/dist/client/global/auth/withAuth.d.ts +5 -0
- package/dist/client/global/auth/withAuth.d.ts.map +1 -0
- package/dist/client/global/components/error-boundary.d.ts +18 -0
- package/dist/client/global/components/error-boundary.d.ts.map +1 -0
- package/dist/client/global/components/error-boundary.mjs +41 -0
- package/dist/client/global/components/error-boundary.mjs.map +1 -0
- package/dist/client/global/config/{index.d.mts → index.d.ts} +3 -3
- package/dist/client/global/config/index.d.ts.map +1 -0
- package/dist/client/global/constants/{tags.d.mts → tags.d.ts} +2 -3
- package/dist/client/global/constants/tags.d.ts.map +1 -0
- package/dist/client/global/index.d.ts +6 -0
- package/dist/client/global/index.d.ts.map +1 -0
- package/dist/client/global/index.mjs +7 -0
- package/dist/client/global/index.mjs.map +1 -0
- package/dist/client/global/providers/enad-provider.d.ts +48 -0
- package/dist/client/global/providers/enad-provider.d.ts.map +1 -0
- package/dist/client/global/providers/enad-provider.mjs +32 -3
- package/dist/client/global/providers/enad-provider.mjs.map +1 -1
- package/dist/client/icons/adapters/hugeicons.d.ts +9 -0
- package/dist/client/icons/adapters/hugeicons.d.ts.map +1 -0
- package/dist/client/icons/adapters/hugeicons.mjs +117 -0
- package/dist/client/icons/adapters/hugeicons.mjs.map +1 -0
- package/dist/client/icons/adapters/lucide.d.ts +8 -0
- package/dist/client/icons/adapters/lucide.d.ts.map +1 -0
- package/dist/client/icons/adapters/lucide.mjs +108 -0
- package/dist/client/icons/adapters/lucide.mjs.map +1 -0
- package/dist/client/icons/adapters/phosphor.d.ts +11 -0
- package/dist/client/icons/adapters/phosphor.d.ts.map +1 -0
- package/dist/client/icons/adapters/phosphor.mjs +108 -0
- package/dist/client/icons/adapters/phosphor.mjs.map +1 -0
- package/dist/client/icons/icon-context.d.ts +13 -0
- package/dist/client/icons/icon-context.d.ts.map +1 -0
- package/dist/client/icons/icon-context.mjs +27 -0
- package/dist/client/icons/icon-context.mjs.map +1 -0
- package/dist/client/icons/index.d.ts +9 -0
- package/dist/client/icons/index.d.ts.map +1 -0
- package/dist/client/icons/index.mjs +16 -0
- package/dist/client/icons/index.mjs.map +1 -0
- package/dist/client/icons/types.d.ts +60 -0
- package/dist/client/icons/types.d.ts.map +1 -0
- package/dist/client/icons/types.mjs +1 -0
- package/dist/client/icons/types.mjs.map +1 -0
- package/dist/client/motion/config.d.ts +42 -0
- package/dist/client/motion/config.d.ts.map +1 -0
- package/dist/client/motion/config.mjs +44 -0
- package/dist/client/motion/config.mjs.map +1 -0
- package/dist/client/motion/hover.d.ts +36 -0
- package/dist/client/motion/hover.d.ts.map +1 -0
- package/dist/client/motion/hover.mjs +19 -0
- package/dist/client/motion/hover.mjs.map +1 -0
- package/dist/client/motion/index.d.ts +4 -0
- package/dist/client/motion/index.d.ts.map +1 -0
- package/dist/client/motion/index.mjs +13 -0
- package/dist/client/motion/index.mjs.map +1 -0
- package/dist/client/motion/stagger.d.ts +36 -0
- package/dist/client/motion/stagger.d.ts.map +1 -0
- package/dist/client/motion/stagger.mjs +17 -0
- package/dist/client/motion/stagger.mjs.map +1 -0
- package/dist/client/search/actions/searchAction.d.ts +2 -0
- package/dist/client/search/actions/searchAction.d.ts.map +1 -0
- package/dist/client/search/actions/searchAction.mjs.map +1 -1
- package/dist/client/search/components/search-bar.d.ts +8 -0
- package/dist/client/search/components/search-bar.d.ts.map +1 -0
- package/dist/client/search/components/search-bar.mjs +33 -0
- package/dist/client/search/components/search-bar.mjs.map +1 -1
- package/dist/client/search/hooks/useSearch.d.ts +14 -0
- package/dist/client/search/hooks/useSearch.d.ts.map +1 -0
- package/dist/client/search/hooks/useSearch.mjs +1 -1
- package/dist/client/search/hooks/useSearch.mjs.map +1 -1
- package/dist/client/search/index.d.ts +2 -0
- package/dist/client/search/index.d.ts.map +1 -0
- package/dist/client/search/index.mjs +5 -0
- package/dist/client/search/index.mjs.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts +4 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.mjs +43 -0
- package/dist/client/storefront/blocks/accordion-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts +4 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs +27 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-video.d.ts +4 -0
- package/dist/client/storefront/blocks/card-video.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-video.mjs +43 -0
- package/dist/client/storefront/blocks/card-video.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts +4 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs +48 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts +4 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs +45 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs +36 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs +24 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery.mjs +47 -0
- package/dist/client/storefront/blocks/gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/hero.d.ts +4 -0
- package/dist/client/storefront/blocks/hero.d.ts.map +1 -0
- package/dist/client/storefront/blocks/hero.mjs +357 -0
- package/dist/client/storefront/blocks/hero.mjs.map +1 -0
- package/dist/client/storefront/blocks/image-block.d.ts +4 -0
- package/dist/client/storefront/blocks/image-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/image-block.mjs +29 -0
- package/dist/client/storefront/blocks/image-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/index.d.ts +20 -0
- package/dist/client/storefront/blocks/index.d.ts.map +1 -0
- package/dist/client/storefront/blocks/index.mjs +41 -0
- package/dist/client/storefront/blocks/index.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts +4 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.mjs +35 -0
- package/dist/client/storefront/blocks/link-block-small.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block.d.ts +4 -0
- package/dist/client/storefront/blocks/link-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block.mjs +150 -0
- package/dist/client/storefront/blocks/link-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card.d.ts +4 -0
- package/dist/client/storefront/blocks/product-card.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-card.mjs +228 -0
- package/dist/client/storefront/blocks/product-card.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-image.d.ts +4 -0
- package/dist/client/storefront/blocks/product-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-image.mjs +109 -0
- package/dist/client/storefront/blocks/product-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/spacer.d.ts +4 -0
- package/dist/client/storefront/blocks/spacer.d.ts.map +1 -0
- package/dist/client/storefront/blocks/spacer.mjs +14 -0
- package/dist/client/storefront/blocks/spacer.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts +4 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs +225 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content.d.ts +4 -0
- package/dist/client/storefront/blocks/text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content.mjs +150 -0
- package/dist/client/storefront/blocks/text-content.mjs.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts +4 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.mjs +36 -0
- package/dist/client/storefront/blocks/truncated-text.mjs.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts +4 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs +15 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs.map +1 -0
- package/dist/client/storefront/carousel/index.d.ts +2 -0
- package/dist/client/storefront/carousel/index.d.ts.map +1 -0
- package/dist/client/storefront/carousel/index.mjs +5 -0
- package/dist/client/storefront/carousel/index.mjs.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts +14 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs +80 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs.map +1 -0
- package/dist/client/storefront/checkout/address-form.d.ts +31 -0
- package/dist/client/storefront/checkout/address-form.d.ts.map +1 -0
- package/dist/client/storefront/checkout/address-form.mjs +124 -0
- package/dist/client/storefront/checkout/address-form.mjs.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts +40 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.mjs +150 -0
- package/dist/client/storefront/checkout/cart-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts +13 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs +58 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs.map +1 -0
- package/dist/client/storefront/checkout/index.d.ts +15 -0
- package/dist/client/storefront/checkout/index.d.ts.map +1 -0
- package/dist/client/storefront/checkout/index.mjs +17 -0
- package/dist/client/storefront/checkout/index.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts +10 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs +27 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-summary.d.ts +29 -0
- package/dist/client/storefront/checkout/order-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-summary.mjs +106 -0
- package/dist/client/storefront/checkout/order-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts +18 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs +61 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts +23 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs +77 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs.map +1 -0
- package/dist/client/storefront/components/badge.d.ts +8 -0
- package/dist/client/storefront/components/badge.d.ts.map +1 -0
- package/dist/client/storefront/components/badge.mjs +28 -0
- package/dist/client/storefront/components/badge.mjs.map +1 -0
- package/dist/client/storefront/components/country-redirect.d.ts +30 -0
- package/dist/client/storefront/components/country-redirect.d.ts.map +1 -0
- package/dist/client/storefront/components/country-redirect.mjs +121 -0
- package/dist/client/storefront/components/country-redirect.mjs.map +1 -0
- package/dist/client/storefront/components/empty-state.d.ts +38 -0
- package/dist/client/storefront/components/empty-state.d.ts.map +1 -0
- package/dist/client/storefront/components/empty-state.mjs +55 -0
- package/dist/client/storefront/components/empty-state.mjs.map +1 -0
- package/dist/client/storefront/components/image-lightbox.d.ts +13 -0
- package/dist/client/storefront/components/image-lightbox.d.ts.map +1 -0
- package/dist/client/storefront/components/image-lightbox.mjs +275 -0
- package/dist/client/storefront/components/image-lightbox.mjs.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts +37 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.mjs +83 -0
- package/dist/client/storefront/components/infinite-scroll.mjs.map +1 -0
- package/dist/client/storefront/components/language-selector.d.ts +5 -0
- package/dist/client/storefront/components/language-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/language-selector.mjs +58 -0
- package/dist/client/storefront/components/language-selector.mjs.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts +14 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.mjs +81 -0
- package/dist/client/storefront/components/newsletter-signup.mjs.map +1 -0
- package/dist/client/storefront/components/price.d.ts +14 -0
- package/dist/client/storefront/components/price.d.ts.map +1 -0
- package/dist/client/storefront/components/price.mjs +46 -0
- package/dist/client/storefront/components/price.mjs.map +1 -0
- package/dist/client/storefront/components/product-recommendations.d.ts +18 -0
- package/dist/client/storefront/components/product-recommendations.d.ts.map +1 -0
- package/dist/client/storefront/components/product-recommendations.mjs +108 -0
- package/dist/client/storefront/components/product-recommendations.mjs.map +1 -0
- package/dist/client/storefront/components/product-tabs.d.ts +12 -0
- package/dist/client/storefront/components/product-tabs.d.ts.map +1 -0
- package/dist/client/storefront/components/product-tabs.mjs +64 -0
- package/dist/client/storefront/components/product-tabs.mjs.map +1 -0
- package/dist/client/storefront/components/quick-view.d.ts +25 -0
- package/dist/client/storefront/components/quick-view.d.ts.map +1 -0
- package/dist/client/storefront/components/quick-view.mjs +149 -0
- package/dist/client/storefront/components/quick-view.mjs.map +1 -0
- package/dist/client/storefront/components/review-summary.d.ts +17 -0
- package/dist/client/storefront/components/review-summary.d.ts.map +1 -0
- package/dist/client/storefront/components/review-summary.mjs +66 -0
- package/dist/client/storefront/components/review-summary.mjs.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts +25 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.mjs +183 -0
- package/dist/client/storefront/components/search-autocomplete.mjs.map +1 -0
- package/dist/client/storefront/components/section-nav.d.ts +20 -0
- package/dist/client/storefront/components/section-nav.d.ts.map +1 -0
- package/dist/client/storefront/components/section-nav.mjs +175 -0
- package/dist/client/storefront/components/section-nav.mjs.map +1 -0
- package/dist/client/storefront/components/share-button.d.ts +19 -0
- package/dist/client/storefront/components/share-button.d.ts.map +1 -0
- package/dist/client/storefront/components/share-button.mjs +95 -0
- package/dist/client/storefront/components/share-button.mjs.map +1 -0
- package/dist/client/storefront/components/skeleton.d.ts +12 -0
- package/dist/client/storefront/components/skeleton.d.ts.map +1 -0
- package/dist/client/storefront/components/skeleton.mjs +70 -0
- package/dist/client/storefront/components/skeleton.mjs.map +1 -0
- package/dist/client/storefront/components/star-rating.d.ts +13 -0
- package/dist/client/storefront/components/star-rating.d.ts.map +1 -0
- package/dist/client/storefront/components/star-rating.mjs +240 -0
- package/dist/client/storefront/components/star-rating.mjs.map +1 -0
- package/dist/client/storefront/components/testimonial.d.ts +20 -0
- package/dist/client/storefront/components/testimonial.d.ts.map +1 -0
- package/dist/client/storefront/components/testimonial.mjs +53 -0
- package/dist/client/storefront/components/testimonial.mjs.map +1 -0
- package/dist/client/storefront/components/trust-badges.d.ts +14 -0
- package/dist/client/storefront/components/trust-badges.d.ts.map +1 -0
- package/dist/client/storefront/components/trust-badges.mjs +25 -0
- package/dist/client/storefront/components/trust-badges.mjs.map +1 -0
- package/dist/client/storefront/components/variant-selector.d.ts +21 -0
- package/dist/client/storefront/components/variant-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/variant-selector.mjs +41 -0
- package/dist/client/storefront/components/variant-selector.mjs.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts +12 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs +58 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-chip.d.ts +10 -0
- package/dist/client/storefront/filters/filter-chip.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-chip.mjs +30 -0
- package/dist/client/storefront/filters/filter-chip.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-group.d.ts +22 -0
- package/dist/client/storefront/filters/filter-group.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-group.mjs +102 -0
- package/dist/client/storefront/filters/filter-group.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-panel.d.ts +25 -0
- package/dist/client/storefront/filters/filter-panel.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-panel.mjs +110 -0
- package/dist/client/storefront/filters/filter-panel.mjs.map +1 -0
- package/dist/client/storefront/filters/index.d.ts +6 -0
- package/dist/client/storefront/filters/index.d.ts.map +1 -0
- package/dist/client/storefront/filters/index.mjs +13 -0
- package/dist/client/storefront/filters/index.mjs.map +1 -0
- package/dist/client/storefront/filters/sort-select.d.ts +12 -0
- package/dist/client/storefront/filters/sort-select.d.ts.map +1 -0
- package/dist/client/storefront/filters/sort-select.mjs +34 -0
- package/dist/client/storefront/filters/sort-select.mjs.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts +8 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs +30 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts +12 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs +46 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs.map +1 -0
- package/dist/client/storefront/index.d.ts +24 -0
- package/dist/client/storefront/index.d.ts.map +1 -0
- package/dist/client/storefront/index.mjs +26 -0
- package/dist/client/storefront/index.mjs.map +1 -0
- package/dist/client/storefront/layout/footer.d.ts +4 -0
- package/dist/client/storefront/layout/footer.d.ts.map +1 -0
- package/dist/client/storefront/layout/footer.mjs +56 -0
- package/dist/client/storefront/layout/footer.mjs.map +1 -0
- package/dist/client/storefront/layout/header.d.ts +4 -0
- package/dist/client/storefront/layout/header.d.ts.map +1 -0
- package/dist/client/storefront/layout/header.mjs +367 -0
- package/dist/client/storefront/layout/header.mjs.map +1 -0
- package/dist/client/storefront/layout/index.d.ts +5 -0
- package/dist/client/storefront/layout/index.d.ts.map +1 -0
- package/dist/client/storefront/layout/index.mjs +11 -0
- package/dist/client/storefront/layout/index.mjs.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts +4 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs +93 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts +4 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.mjs +79 -0
- package/dist/client/storefront/layout/promotion-bar.mjs.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts +12 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs +37 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs.map +1 -0
- package/dist/client/storefront/primitives/button.d.ts +12 -0
- package/dist/client/storefront/primitives/button.d.ts.map +1 -0
- package/dist/client/storefront/primitives/button.mjs +51 -0
- package/dist/client/storefront/primitives/button.mjs.map +1 -0
- package/dist/client/storefront/primitives/checkbox.d.ts +10 -0
- package/dist/client/storefront/primitives/checkbox.d.ts.map +1 -0
- package/dist/client/storefront/primitives/checkbox.mjs +23 -0
- package/dist/client/storefront/primitives/checkbox.mjs.map +1 -0
- package/dist/client/storefront/primitives/download-item.d.ts +9 -0
- package/dist/client/storefront/primitives/download-item.d.ts.map +1 -0
- package/dist/client/storefront/primitives/download-item.mjs +28 -0
- package/dist/client/storefront/primitives/download-item.mjs.map +1 -0
- package/dist/client/storefront/primitives/index.d.ts +10 -0
- package/dist/client/storefront/primitives/index.d.ts.map +1 -0
- package/dist/client/storefront/primitives/index.mjs +21 -0
- package/dist/client/storefront/primitives/index.mjs.map +1 -0
- package/dist/client/storefront/primitives/input.d.ts +18 -0
- package/dist/client/storefront/primitives/input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/input.mjs +118 -0
- package/dist/client/storefront/primitives/input.mjs.map +1 -0
- package/dist/client/storefront/primitives/pagination.d.ts +9 -0
- package/dist/client/storefront/primitives/pagination.d.ts.map +1 -0
- package/dist/client/storefront/primitives/pagination.mjs +86 -0
- package/dist/client/storefront/primitives/pagination.mjs.map +1 -0
- package/dist/client/storefront/primitives/quick-links.d.ts +11 -0
- package/dist/client/storefront/primitives/quick-links.d.ts.map +1 -0
- package/dist/client/storefront/primitives/quick-links.mjs +17 -0
- package/dist/client/storefront/primitives/quick-links.mjs.map +1 -0
- package/dist/client/storefront/primitives/select.d.ts +16 -0
- package/dist/client/storefront/primitives/select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/select.mjs +35 -0
- package/dist/client/storefront/primitives/select.mjs.map +1 -0
- package/dist/client/storefront/primitives/text-link.d.ts +7 -0
- package/dist/client/storefront/primitives/text-link.d.ts.map +1 -0
- package/dist/client/storefront/primitives/text-link.mjs +10 -0
- package/dist/client/storefront/primitives/text-link.mjs.map +1 -0
- package/dist/client/storefront/product/color-swatch.d.ts +10 -0
- package/dist/client/storefront/product/color-swatch.d.ts.map +1 -0
- package/dist/client/storefront/product/color-swatch.mjs +32 -0
- package/dist/client/storefront/product/color-swatch.mjs.map +1 -0
- package/dist/client/storefront/product/index.d.ts +5 -0
- package/dist/client/storefront/product/index.d.ts.map +1 -0
- package/dist/client/storefront/product/index.mjs +11 -0
- package/dist/client/storefront/product/index.mjs.map +1 -0
- package/dist/client/storefront/product/material-selector.d.ts +15 -0
- package/dist/client/storefront/product/material-selector.d.ts.map +1 -0
- package/dist/client/storefront/product/material-selector.mjs +35 -0
- package/dist/client/storefront/product/material-selector.mjs.map +1 -0
- package/dist/client/storefront/product/product-usp.d.ts +7 -0
- package/dist/client/storefront/product/product-usp.d.ts.map +1 -0
- package/dist/client/storefront/product/product-usp.mjs +14 -0
- package/dist/client/storefront/product/product-usp.mjs.map +1 -0
- package/dist/client/storefront/product/quantity-picker.d.ts +10 -0
- package/dist/client/storefront/product/quantity-picker.d.ts.map +1 -0
- package/dist/client/storefront/product/quantity-picker.mjs +56 -0
- package/dist/client/storefront/product/quantity-picker.mjs.map +1 -0
- package/dist/client/storefront/types.d.ts +284 -0
- package/dist/client/storefront/types.d.ts.map +1 -0
- package/dist/client/storefront/types.mjs +20 -0
- package/dist/client/storefront/types.mjs.map +1 -0
- package/dist/client/theme/apply.d.ts +17 -0
- package/dist/client/theme/apply.d.ts.map +1 -0
- package/dist/client/theme/apply.mjs +133 -0
- package/dist/client/theme/apply.mjs.map +1 -0
- package/dist/client/theme/cli.d.ts +2 -0
- package/dist/client/theme/cli.d.ts.map +1 -0
- package/dist/client/theme/cli.mjs +453 -0
- package/dist/client/theme/cli.mjs.map +1 -0
- package/dist/client/theme/codec.d.ts +28 -0
- package/dist/client/theme/codec.d.ts.map +1 -0
- package/dist/client/theme/codec.mjs +88 -0
- package/dist/client/theme/codec.mjs.map +1 -0
- package/dist/client/theme/defaults.d.ts +64 -0
- package/dist/client/theme/defaults.d.ts.map +1 -0
- package/dist/client/theme/defaults.mjs +158 -0
- package/dist/client/theme/defaults.mjs.map +1 -0
- package/dist/client/theme/index.d.ts +8 -0
- package/dist/client/theme/index.d.ts.map +1 -0
- package/dist/client/theme/index.mjs +20 -0
- package/dist/client/theme/index.mjs.map +1 -0
- package/dist/client/theme/scan.d.ts +16 -0
- package/dist/client/theme/scan.d.ts.map +1 -0
- package/dist/client/theme/scan.mjs +25 -0
- package/dist/client/theme/scan.mjs.map +1 -0
- package/dist/client/ui/accordion.d.ts +8 -0
- package/dist/client/ui/accordion.d.ts.map +1 -0
- package/dist/client/ui/accordion.mjs +66 -0
- package/dist/client/ui/accordion.mjs.map +1 -0
- package/dist/client/ui/breadcrumb.d.ts +12 -0
- package/dist/client/ui/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui/breadcrumb.mjs +104 -0
- package/dist/client/ui/breadcrumb.mjs.map +1 -0
- package/dist/client/ui/button.d.ts +11 -0
- package/dist/client/ui/button.d.ts.map +1 -0
- package/dist/client/ui/button.mjs +57 -0
- package/dist/client/ui/button.mjs.map +1 -0
- package/dist/client/ui/card.d.ts +10 -0
- package/dist/client/ui/card.d.ts.map +1 -0
- package/dist/client/ui/card.mjs +91 -0
- package/dist/client/ui/card.mjs.map +1 -0
- package/dist/client/ui/carousel.d.ts +20 -0
- package/dist/client/ui/carousel.d.ts.map +1 -0
- package/dist/client/ui/carousel.mjs +202 -0
- package/dist/client/ui/carousel.mjs.map +1 -0
- package/dist/client/ui/checkbox.d.ts +5 -0
- package/dist/client/ui/checkbox.d.ts.map +1 -0
- package/dist/client/ui/checkbox.mjs +34 -0
- package/dist/client/ui/checkbox.mjs.map +1 -0
- package/dist/client/ui/collapsible.d.ts +6 -0
- package/dist/client/ui/collapsible.d.ts.map +1 -0
- package/dist/client/ui/collapsible.mjs +36 -0
- package/dist/client/ui/collapsible.mjs.map +1 -0
- package/dist/client/ui/input.d.ts +4 -0
- package/dist/client/ui/input.d.ts.map +1 -0
- package/dist/client/ui/input.mjs +22 -0
- package/dist/client/ui/input.mjs.map +1 -0
- package/dist/client/ui/label.d.ts +5 -0
- package/dist/client/ui/label.d.ts.map +1 -0
- package/dist/client/ui/label.mjs +23 -0
- package/dist/client/ui/label.mjs.map +1 -0
- package/dist/client/ui/mid-truncate.d.ts +27 -0
- package/dist/client/ui/mid-truncate.d.ts.map +1 -0
- package/dist/client/ui/mid-truncate.mjs +25 -0
- package/dist/client/ui/mid-truncate.mjs.map +1 -0
- package/dist/client/ui/navigation-menu.d.ts +15 -0
- package/dist/client/ui/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui/navigation-menu.mjs +172 -0
- package/dist/client/ui/navigation-menu.mjs.map +1 -0
- package/dist/client/ui/pagination.d.ts +14 -0
- package/dist/client/ui/pagination.d.ts.map +1 -0
- package/dist/client/ui/pagination.mjs +124 -0
- package/dist/client/ui/pagination.mjs.map +1 -0
- package/dist/client/ui/popover.d.ts +11 -0
- package/dist/client/ui/popover.d.ts.map +1 -0
- package/dist/client/ui/popover.mjs +82 -0
- package/dist/client/ui/popover.mjs.map +1 -0
- package/dist/client/ui/select.d.ts +16 -0
- package/dist/client/ui/select.d.ts.map +1 -0
- package/dist/client/ui/select.mjs +183 -0
- package/dist/client/ui/select.mjs.map +1 -0
- package/dist/client/ui/separator.d.ts +5 -0
- package/dist/client/ui/separator.d.ts.map +1 -0
- package/dist/client/ui/separator.mjs +27 -0
- package/dist/client/ui/separator.mjs.map +1 -0
- package/dist/client/ui/sheet.d.ts +15 -0
- package/dist/client/ui/sheet.d.ts.map +1 -0
- package/dist/client/ui/sheet.mjs +130 -0
- package/dist/client/ui/sheet.mjs.map +1 -0
- package/dist/client/ui/toggle-group.d.ts +10 -0
- package/dist/client/ui/toggle-group.d.ts.map +1 -0
- package/dist/client/ui/toggle-group.mjs +69 -0
- package/dist/client/ui/toggle-group.mjs.map +1 -0
- package/dist/client/ui/toggle.d.ts +10 -0
- package/dist/client/ui/toggle.d.ts.map +1 -0
- package/dist/client/ui/toggle.mjs +44 -0
- package/dist/client/ui/toggle.mjs.map +1 -0
- package/dist/client/ui/utils.d.ts +3 -0
- package/dist/client/ui/utils.d.ts.map +1 -0
- package/dist/client/ui/utils.mjs +9 -0
- package/dist/client/ui/utils.mjs.map +1 -0
- package/dist/client/ui-interfaces/accordion.d.ts +8 -0
- package/dist/client/ui-interfaces/accordion.d.ts.map +1 -0
- package/dist/client/ui-interfaces/accordion.mjs +72 -0
- package/dist/client/ui-interfaces/accordion.mjs.map +1 -0
- package/dist/client/ui-interfaces/breadcrumb.d.ts +12 -0
- package/dist/client/ui-interfaces/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-interfaces/breadcrumb.mjs +97 -0
- package/dist/client/ui-interfaces/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-interfaces/button.d.ts +11 -0
- package/dist/client/ui-interfaces/button.d.ts.map +1 -0
- package/dist/client/ui-interfaces/button.mjs +57 -0
- package/dist/client/ui-interfaces/button.mjs.map +1 -0
- package/dist/client/ui-interfaces/card.d.ts +10 -0
- package/dist/client/ui-interfaces/card.d.ts.map +1 -0
- package/dist/client/ui-interfaces/card.mjs +78 -0
- package/dist/client/ui-interfaces/card.mjs.map +1 -0
- package/dist/client/ui-interfaces/carousel.d.ts +20 -0
- package/dist/client/ui-interfaces/carousel.d.ts.map +1 -0
- package/dist/client/ui-interfaces/carousel.mjs +188 -0
- package/dist/client/ui-interfaces/carousel.mjs.map +1 -0
- package/dist/client/ui-interfaces/checkbox.d.ts +5 -0
- package/dist/client/ui-interfaces/checkbox.d.ts.map +1 -0
- package/dist/client/ui-interfaces/checkbox.mjs +30 -0
- package/dist/client/ui-interfaces/checkbox.mjs.map +1 -0
- package/dist/client/ui-interfaces/collapsible.d.ts +7 -0
- package/dist/client/ui-interfaces/collapsible.d.ts.map +1 -0
- package/dist/client/ui-interfaces/collapsible.mjs +42 -0
- package/dist/client/ui-interfaces/collapsible.mjs.map +1 -0
- package/dist/client/ui-interfaces/index.d.ts +18 -0
- package/dist/client/ui-interfaces/index.d.ts.map +1 -0
- package/dist/client/ui-interfaces/index.mjs +18 -0
- package/dist/client/ui-interfaces/index.mjs.map +1 -0
- package/dist/client/ui-interfaces/input.d.ts +7 -0
- package/dist/client/ui-interfaces/input.d.ts.map +1 -0
- package/dist/client/ui-interfaces/input.mjs +39 -0
- package/dist/client/ui-interfaces/input.mjs.map +1 -0
- package/dist/client/ui-interfaces/label.d.ts +5 -0
- package/dist/client/ui-interfaces/label.d.ts.map +1 -0
- package/dist/client/ui-interfaces/label.mjs +23 -0
- package/dist/client/ui-interfaces/label.mjs.map +1 -0
- package/dist/client/ui-interfaces/navigation-menu.d.ts +15 -0
- package/dist/client/ui-interfaces/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-interfaces/navigation-menu.mjs +163 -0
- package/dist/client/ui-interfaces/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-interfaces/pagination.d.ts +14 -0
- package/dist/client/ui-interfaces/pagination.d.ts.map +1 -0
- package/dist/client/ui-interfaces/pagination.mjs +103 -0
- package/dist/client/ui-interfaces/pagination.mjs.map +1 -0
- package/dist/client/ui-interfaces/popover.d.ts +8 -0
- package/dist/client/ui-interfaces/popover.d.ts.map +1 -0
- package/dist/client/ui-interfaces/popover.mjs +50 -0
- package/dist/client/ui-interfaces/popover.mjs.map +1 -0
- package/dist/client/ui-interfaces/select.d.ts +16 -0
- package/dist/client/ui-interfaces/select.d.ts.map +1 -0
- package/dist/client/ui-interfaces/select.mjs +159 -0
- package/dist/client/ui-interfaces/select.mjs.map +1 -0
- package/dist/client/ui-interfaces/separator.d.ts +5 -0
- package/dist/client/ui-interfaces/separator.d.ts.map +1 -0
- package/dist/client/ui-interfaces/separator.mjs +28 -0
- package/dist/client/ui-interfaces/separator.mjs.map +1 -0
- package/dist/client/ui-interfaces/sheet.d.ts +14 -0
- package/dist/client/ui-interfaces/sheet.d.ts.map +1 -0
- package/dist/client/ui-interfaces/sheet.mjs +140 -0
- package/dist/client/ui-interfaces/sheet.mjs.map +1 -0
- package/dist/client/ui-interfaces/toggle-group.d.ts +10 -0
- package/dist/client/ui-interfaces/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-interfaces/toggle-group.mjs +67 -0
- package/dist/client/ui-interfaces/toggle-group.mjs.map +1 -0
- package/dist/client/ui-interfaces/toggle.d.ts +10 -0
- package/dist/client/ui-interfaces/toggle.d.ts.map +1 -0
- package/dist/client/ui-interfaces/toggle.mjs +45 -0
- package/dist/client/ui-interfaces/toggle.mjs.map +1 -0
- package/dist/client/ui-resolver/accordion.d.ts +11 -0
- package/dist/client/ui-resolver/accordion.d.ts.map +1 -0
- package/dist/client/ui-resolver/accordion.mjs +35 -0
- package/dist/client/ui-resolver/accordion.mjs.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts +14 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.mjs +53 -0
- package/dist/client/ui-resolver/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-resolver/button.d.ts +12 -0
- package/dist/client/ui-resolver/button.d.ts.map +1 -0
- package/dist/client/ui-resolver/button.mjs +25 -0
- package/dist/client/ui-resolver/button.mjs.map +1 -0
- package/dist/client/ui-resolver/card.d.ts +14 -0
- package/dist/client/ui-resolver/card.d.ts.map +1 -0
- package/dist/client/ui-resolver/card.mjs +53 -0
- package/dist/client/ui-resolver/card.mjs.map +1 -0
- package/dist/client/ui-resolver/carousel.d.ts +13 -0
- package/dist/client/ui-resolver/carousel.d.ts.map +1 -0
- package/dist/client/ui-resolver/carousel.mjs +41 -0
- package/dist/client/ui-resolver/carousel.mjs.map +1 -0
- package/dist/client/ui-resolver/checkbox.d.ts +8 -0
- package/dist/client/ui-resolver/checkbox.d.ts.map +1 -0
- package/dist/client/ui-resolver/checkbox.mjs +17 -0
- package/dist/client/ui-resolver/checkbox.mjs.map +1 -0
- package/dist/client/ui-resolver/collapsible.d.ts +10 -0
- package/dist/client/ui-resolver/collapsible.d.ts.map +1 -0
- package/dist/client/ui-resolver/collapsible.mjs +29 -0
- package/dist/client/ui-resolver/collapsible.mjs.map +1 -0
- package/dist/client/ui-resolver/context.d.ts +10 -0
- package/dist/client/ui-resolver/context.d.ts.map +1 -0
- package/dist/client/ui-resolver/context.mjs +28 -0
- package/dist/client/ui-resolver/context.mjs.map +1 -0
- package/dist/client/ui-resolver/index.d.ts +19 -0
- package/dist/client/ui-resolver/index.d.ts.map +1 -0
- package/dist/client/ui-resolver/index.mjs +156 -0
- package/dist/client/ui-resolver/index.mjs.map +1 -0
- package/dist/client/ui-resolver/input.d.ts +8 -0
- package/dist/client/ui-resolver/input.d.ts.map +1 -0
- package/dist/client/ui-resolver/input.mjs +17 -0
- package/dist/client/ui-resolver/input.mjs.map +1 -0
- package/dist/client/ui-resolver/label.d.ts +8 -0
- package/dist/client/ui-resolver/label.d.ts.map +1 -0
- package/dist/client/ui-resolver/label.mjs +17 -0
- package/dist/client/ui-resolver/label.mjs.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts +16 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.mjs +64 -0
- package/dist/client/ui-resolver/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-resolver/pagination.d.ts +14 -0
- package/dist/client/ui-resolver/pagination.d.ts.map +1 -0
- package/dist/client/ui-resolver/pagination.mjs +53 -0
- package/dist/client/ui-resolver/pagination.mjs.map +1 -0
- package/dist/client/ui-resolver/popover.d.ts +11 -0
- package/dist/client/ui-resolver/popover.d.ts.map +1 -0
- package/dist/client/ui-resolver/popover.mjs +35 -0
- package/dist/client/ui-resolver/popover.mjs.map +1 -0
- package/dist/client/ui-resolver/select.d.ts +15 -0
- package/dist/client/ui-resolver/select.d.ts.map +1 -0
- package/dist/client/ui-resolver/select.mjs +59 -0
- package/dist/client/ui-resolver/select.mjs.map +1 -0
- package/dist/client/ui-resolver/separator.d.ts +8 -0
- package/dist/client/ui-resolver/separator.d.ts.map +1 -0
- package/dist/client/ui-resolver/separator.mjs +17 -0
- package/dist/client/ui-resolver/separator.mjs.map +1 -0
- package/dist/client/ui-resolver/sheet.d.ts +15 -0
- package/dist/client/ui-resolver/sheet.d.ts.map +1 -0
- package/dist/client/ui-resolver/sheet.mjs +59 -0
- package/dist/client/ui-resolver/sheet.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle-group.d.ts +9 -0
- package/dist/client/ui-resolver/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle-group.mjs +23 -0
- package/dist/client/ui-resolver/toggle-group.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle.d.ts +12 -0
- package/dist/client/ui-resolver/toggle.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle.mjs +25 -0
- package/dist/client/ui-resolver/toggle.mjs.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts +14 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs +1 -1
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs.map +1 -1
- package/dist/client/user/actions/getUserAction.d.ts +3 -0
- package/dist/client/user/actions/getUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/getUserAction.mjs.map +1 -1
- package/dist/client/user/actions/{logInUserAction.d.mts → logInUserAction.d.ts} +3 -3
- package/dist/client/user/actions/logInUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logoutUserAction.d.ts +2 -0
- package/dist/client/user/actions/logoutUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts +9 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs.map +1 -1
- package/dist/client/user/actions/{registerUserAction.d.mts → registerUserAction.d.ts} +3 -3
- package/dist/client/user/actions/registerUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserAction.mjs +1 -1
- package/dist/client/user/actions/registerUserAction.mjs.map +1 -1
- package/dist/client/user/actions/{registerUserWithoutRedirectAction.d.mts → registerUserWithoutRedirectAction.d.ts} +3 -6
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts.map +1 -0
- package/dist/client/user/actions/{updatePasswordAction.d.mts → updatePasswordAction.d.ts} +3 -3
- package/dist/client/user/actions/updatePasswordAction.d.ts.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.mjs +1 -1
- package/dist/client/user/actions/updatePasswordAction.mjs.map +1 -1
- package/dist/client/user/api/userRoute.d.ts +7 -0
- package/dist/client/user/api/userRoute.d.ts.map +1 -0
- package/dist/client/user/clients/enad.d.ts +4 -0
- package/dist/client/user/clients/enad.d.ts.map +1 -0
- package/dist/client/user/components/login-form.d.ts +23 -0
- package/dist/client/user/components/login-form.d.ts.map +1 -0
- package/dist/client/user/components/login-form.mjs +77 -73
- package/dist/client/user/components/login-form.mjs.map +1 -1
- package/dist/client/user/components/reset-password-form.d.ts +20 -0
- package/dist/client/user/components/reset-password-form.d.ts.map +1 -0
- package/dist/client/user/components/reset-password-form.mjs +57 -50
- package/dist/client/user/components/reset-password-form.mjs.map +1 -1
- package/dist/client/user/components/sign-out.d.ts +8 -0
- package/dist/client/user/components/sign-out.d.ts.map +1 -0
- package/dist/client/user/components/sign-out.mjs +6 -3
- package/dist/client/user/components/sign-out.mjs.map +1 -1
- package/dist/client/user/components/signup-form.d.ts +27 -0
- package/dist/client/user/components/signup-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-form.mjs +153 -120
- package/dist/client/user/components/signup-form.mjs.map +1 -1
- package/dist/client/user/components/signup-organisation-form.d.ts +55 -0
- package/dist/client/user/components/signup-organisation-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-organisation-form.mjs +713 -662
- package/dist/client/user/components/signup-organisation-form.mjs.map +1 -1
- package/dist/client/user/components/update-password-form.d.ts +17 -0
- package/dist/client/user/components/update-password-form.d.ts.map +1 -0
- package/dist/client/user/components/update-password-form.mjs +26 -35
- package/dist/client/user/components/update-password-form.mjs.map +1 -1
- package/dist/client/user/hooks/index.d.ts +2 -0
- package/dist/client/user/hooks/index.d.ts.map +1 -0
- package/dist/client/user/hooks/useUser.d.ts +12 -0
- package/dist/client/user/hooks/useUser.d.ts.map +1 -0
- package/dist/client/user/hooks/useUser.mjs +1 -1
- package/dist/client/user/hooks/useUser.mjs.map +1 -1
- package/dist/client/user/index.d.ts +9 -0
- package/dist/client/user/index.d.ts.map +1 -0
- package/dist/client/user/index.mjs +17 -0
- package/dist/client/user/index.mjs.map +1 -0
- package/dist/client/user/types/{user.d.mts → user.d.ts} +25 -26
- package/dist/client/user/types/user.d.ts.map +1 -0
- package/dist/client/user/utils/{userCookieService.d.mts → userCookieService.d.ts} +2 -3
- package/dist/client/user/utils/userCookieService.d.ts.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts +5 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts +3 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/createWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts +5 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts +4 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/actions/getUserWishlists.d.ts +4 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs.map +1 -1
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts +4 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs.map +1 -1
- package/dist/client/wishlist/hooks/index.d.ts +2 -0
- package/dist/client/wishlist/hooks/index.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts +95 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs +14 -4
- package/dist/client/wishlist/hooks/useWishlist.mjs.map +1 -1
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts +44 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs.map +1 -1
- package/dist/client/wishlist/index.d.ts +5 -0
- package/dist/client/wishlist/index.d.ts.map +1 -0
- package/dist/client/wishlist/index.mjs +9 -0
- package/dist/client/wishlist/index.mjs.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts +17 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.mjs +189 -170
- package/dist/client/wishlist/wishlist-drawer.mjs.map +1 -1
- package/dist/styles.css +1 -958
- package/package.json +107 -33
- package/dist/client/cart/components/cart-trigger.d.mts +0 -5
- package/dist/client/cart/constants/session.d.mts +0 -3
- package/dist/client/cart/contexts/cart.d.mts +0 -27
- package/dist/client/cart/hooks/useCart.d.mts +0 -29
- package/dist/client/cart/hooks/useCartActions.d.mts +0 -26
- package/dist/client/cart/queries/addToCartQueryFn.d.mts +0 -10
- package/dist/client/cart/queries/getCartQueryFn.d.mts +0 -7
- package/dist/client/cart/queries/removeCartItemQueryFn.d.mts +0 -9
- package/dist/client/cart/queries/updateCartItemQueryFn.d.mts +0 -10
- package/dist/client/cart/utils/session.d.mts +0 -6
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.mts +0 -6
- package/dist/client/global/auth/withAuth.d.mts +0 -6
- package/dist/client/global/providers/enad-provider.d.mts +0 -23
- package/dist/client/search/actions/searchAction.d.mts +0 -5
- package/dist/client/search/components/search-bar.d.mts +0 -2
- package/dist/client/search/hooks/useSearch.d.mts +0 -18
- package/dist/client/user/actions/createResetPasswordLinkAction.d.mts +0 -14
- package/dist/client/user/actions/getUserAction.d.mts +0 -5
- package/dist/client/user/actions/logoutUserAction.d.mts +0 -3
- package/dist/client/user/actions/registerOrganisationAction.d.mts +0 -12
- package/dist/client/user/api/userRoute.d.mts +0 -9
- package/dist/client/user/clients/enad.d.mts +0 -6
- package/dist/client/user/components/login-form.d.mts +0 -20
- package/dist/client/user/components/reset-password-form.d.mts +0 -15
- package/dist/client/user/components/sign-out.d.mts +0 -5
- package/dist/client/user/components/signup-form.d.mts +0 -15
- package/dist/client/user/components/signup-organisation-form.d.mts +0 -20
- package/dist/client/user/components/update-password-form.d.mts +0 -11
- package/dist/client/user/hooks/index.d.mts +0 -3
- package/dist/client/user/hooks/useUser.d.mts +0 -16
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.mts +0 -7
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.mts +0 -6
- package/dist/client/wishlist/actions/createWishlistAction.d.mts +0 -6
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.mts +0 -7
- package/dist/client/wishlist/actions/deleteWishlistAction.d.mts +0 -5
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.mts +0 -6
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.mts +0 -6
- package/dist/client/wishlist/actions/getUserWishlists.d.mts +0 -7
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.mts +0 -5
- package/dist/client/wishlist/actions/updateWishlistAction.d.mts +0 -6
- package/dist/client/wishlist/hooks/index.d.mts +0 -3
- package/dist/client/wishlist/hooks/useWishlist.d.mts +0 -98
- package/dist/client/wishlist/hooks/useWishlistActions.d.mts +0 -48
- package/dist/client/wishlist/wishlist-drawer.d.mts +0 -19
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const springs = {
|
|
2
|
+
/** Snappy feedback for buttons and toggles. */
|
|
3
|
+
snappy: "cubic-bezier(0.32, 0.72, 0, 1)",
|
|
4
|
+
/** Smooth transitions for panels and modals. */
|
|
5
|
+
smooth: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
6
|
+
/** Bouncy entrance for elements entering the viewport. */
|
|
7
|
+
bouncy: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
8
|
+
/** Gentle ease for subtle hover effects. */
|
|
9
|
+
gentle: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
10
|
+
};
|
|
11
|
+
function getDuration(delight) {
|
|
12
|
+
if (delight <= 0) return 0;
|
|
13
|
+
return Math.round(100 + delight / 100 * 300);
|
|
14
|
+
}
|
|
15
|
+
function getMotionConfig(delight) {
|
|
16
|
+
const duration = getDuration(delight);
|
|
17
|
+
const enabled = delight > 0;
|
|
18
|
+
return {
|
|
19
|
+
enabled,
|
|
20
|
+
duration,
|
|
21
|
+
/** CSS duration string. */
|
|
22
|
+
durationMs: `${duration}ms`,
|
|
23
|
+
/** Scale factor for hover feedback (1 = no scale). */
|
|
24
|
+
hoverScale: enabled ? 1 + delight / 100 * 0.03 : 1,
|
|
25
|
+
/** Y-translate for press feedback in px. */
|
|
26
|
+
pressTranslateY: enabled ? Math.round(1 + delight / 100) : 0,
|
|
27
|
+
/** Scale for press feedback. */
|
|
28
|
+
pressScale: enabled ? 1 - delight / 100 * 0.02 : 1,
|
|
29
|
+
/** Distance in px elements travel during entry animation. */
|
|
30
|
+
entryDistance: enabled ? Math.round(8 + delight / 100 * 16) : 0,
|
|
31
|
+
/** Stagger delay between siblings in ms. */
|
|
32
|
+
staggerDelay: enabled ? Math.round(30 + delight / 100 * 50) : 0,
|
|
33
|
+
/** Preferred easing curve. */
|
|
34
|
+
easing: enabled ? springs.snappy : "linear",
|
|
35
|
+
/** Entry animation easing. */
|
|
36
|
+
entryEasing: enabled ? springs.smooth : "linear"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
getDuration,
|
|
41
|
+
getMotionConfig,
|
|
42
|
+
springs
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/motion/config.ts"],"sourcesContent":["/**\n * Motion configuration tied to the theme's delight level (0-100).\n *\n * Delight 0 = no motion. Delight 100 = full spring physics.\n * `prefers-reduced-motion` overrides everything to zero.\n */\n\n/** Spring physics presets for different interaction types. */\nexport const springs = {\n /** Snappy feedback for buttons and toggles. */\n snappy: \"cubic-bezier(0.32, 0.72, 0, 1)\",\n /** Smooth transitions for panels and modals. */\n smooth: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n /** Bouncy entrance for elements entering the viewport. */\n bouncy: \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n /** Gentle ease for subtle hover effects. */\n gentle: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n} as const;\n\n/** Duration scale mapped to delight level. */\nexport function getDuration(delight: number): number {\n if (delight <= 0) return 0;\n // Scale from 100ms (delight 1) to 400ms (delight 100)\n return Math.round(100 + (delight / 100) * 300);\n}\n\n/** Full motion config derived from a delight level. */\nexport function getMotionConfig(delight: number) {\n const duration = getDuration(delight);\n const enabled = delight > 0;\n\n return {\n enabled,\n duration,\n /** CSS duration string. */\n durationMs: `${duration}ms`,\n /** Scale factor for hover feedback (1 = no scale). */\n hoverScale: enabled ? 1 + (delight / 100) * 0.03 : 1,\n /** Y-translate for press feedback in px. */\n pressTranslateY: enabled ? Math.round(1 + delight / 100) : 0,\n /** Scale for press feedback. */\n pressScale: enabled ? 1 - (delight / 100) * 0.02 : 1,\n /** Distance in px elements travel during entry animation. */\n entryDistance: enabled ? Math.round(8 + (delight / 100) * 16) : 0,\n /** Stagger delay between siblings in ms. */\n staggerDelay: enabled ? Math.round(30 + (delight / 100) * 50) : 0,\n /** Preferred easing curve. */\n easing: enabled ? springs.snappy : \"linear\",\n /** Entry animation easing. */\n entryEasing: enabled ? springs.smooth : \"linear\",\n } as const;\n}\n\nexport type MotionConfig = ReturnType<typeof getMotionConfig>;\n"],"mappings":"AAQO,MAAM,UAAU;AAAA;AAAA,EAErB,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,QAAQ;AACV;AAGO,SAAS,YAAY,SAAyB;AACnD,MAAI,WAAW,EAAG,QAAO;AAEzB,SAAO,KAAK,MAAM,MAAO,UAAU,MAAO,GAAG;AAC/C;AAGO,SAAS,gBAAgB,SAAiB;AAC/C,QAAM,WAAW,YAAY,OAAO;AACpC,QAAM,UAAU,UAAU;AAE1B,SAAO;AAAA,IACL;AAAA,IACA;AAAA;AAAA,IAEA,YAAY,GAAG,QAAQ;AAAA;AAAA,IAEvB,YAAY,UAAU,IAAK,UAAU,MAAO,OAAO;AAAA;AAAA,IAEnD,iBAAiB,UAAU,KAAK,MAAM,IAAI,UAAU,GAAG,IAAI;AAAA;AAAA,IAE3D,YAAY,UAAU,IAAK,UAAU,MAAO,OAAO;AAAA;AAAA,IAEnD,eAAe,UAAU,KAAK,MAAM,IAAK,UAAU,MAAO,EAAE,IAAI;AAAA;AAAA,IAEhE,cAAc,UAAU,KAAK,MAAM,KAAM,UAAU,MAAO,EAAE,IAAI;AAAA;AAAA,IAEhE,QAAQ,UAAU,QAAQ,SAAS;AAAA;AAAA,IAEnC,aAAa,UAAU,QAAQ,SAAS;AAAA,EAC1C;AACF;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hover and press feedback utilities.
|
|
3
|
+
*
|
|
4
|
+
* Generates CSS class strings and inline styles for interactive elements
|
|
5
|
+
* based on the current motion config.
|
|
6
|
+
*/
|
|
7
|
+
import type { MotionConfig } from "./config";
|
|
8
|
+
/**
|
|
9
|
+
* Returns a Tailwind-compatible class string for hover/press feedback.
|
|
10
|
+
*
|
|
11
|
+
* When motion is disabled, returns an empty string.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <button className={`base-classes ${hoverFeedbackClass(motion)}`}>
|
|
16
|
+
* Click me
|
|
17
|
+
* </button>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function hoverFeedbackClass(config: MotionConfig): string;
|
|
21
|
+
/**
|
|
22
|
+
* Returns inline CSS custom properties that drive the hover/press feedback.
|
|
23
|
+
* Spread these onto the element's style prop alongside `hoverFeedbackClass`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <button
|
|
28
|
+
* className={hoverFeedbackClass(motion)}
|
|
29
|
+
* style={hoverFeedbackStyle(motion)}
|
|
30
|
+
* >
|
|
31
|
+
* Click me
|
|
32
|
+
* </button>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function hoverFeedbackStyle(config: MotionConfig): React.CSSProperties;
|
|
36
|
+
//# sourceMappingURL=hover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../src/client/motion/hover.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAG/D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,KAAK,CAAC,aAAa,CAU5E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function hoverFeedbackClass(config) {
|
|
2
|
+
if (!config.enabled) return "";
|
|
3
|
+
return "enad-hover-feedback";
|
|
4
|
+
}
|
|
5
|
+
function hoverFeedbackStyle(config) {
|
|
6
|
+
if (!config.enabled) return {};
|
|
7
|
+
return {
|
|
8
|
+
"--enad-hover-scale": String(config.hoverScale),
|
|
9
|
+
"--enad-press-scale": String(config.pressScale),
|
|
10
|
+
"--enad-press-y": `${config.pressTranslateY}px`,
|
|
11
|
+
"--enad-motion-duration": config.durationMs,
|
|
12
|
+
"--enad-motion-easing": config.easing
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
hoverFeedbackClass,
|
|
17
|
+
hoverFeedbackStyle
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=hover.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/motion/hover.ts"],"sourcesContent":["/**\n * Hover and press feedback utilities.\n *\n * Generates CSS class strings and inline styles for interactive elements\n * based on the current motion config.\n */\n\nimport type { MotionConfig } from \"./config\";\n\n/**\n * Returns a Tailwind-compatible class string for hover/press feedback.\n *\n * When motion is disabled, returns an empty string.\n *\n * @example\n * ```tsx\n * <button className={`base-classes ${hoverFeedbackClass(motion)}`}>\n * Click me\n * </button>\n * ```\n */\nexport function hoverFeedbackClass(config: MotionConfig): string {\n if (!config.enabled) return \"\";\n return \"enad-hover-feedback\";\n}\n\n/**\n * Returns inline CSS custom properties that drive the hover/press feedback.\n * Spread these onto the element's style prop alongside `hoverFeedbackClass`.\n *\n * @example\n * ```tsx\n * <button\n * className={hoverFeedbackClass(motion)}\n * style={hoverFeedbackStyle(motion)}\n * >\n * Click me\n * </button>\n * ```\n */\nexport function hoverFeedbackStyle(config: MotionConfig): React.CSSProperties {\n if (!config.enabled) return {};\n\n return {\n \"--enad-hover-scale\": String(config.hoverScale),\n \"--enad-press-scale\": String(config.pressScale),\n \"--enad-press-y\": `${config.pressTranslateY}px`,\n \"--enad-motion-duration\": config.durationMs,\n \"--enad-motion-easing\": config.easing,\n } as React.CSSProperties;\n}\n"],"mappings":"AAqBO,SAAS,mBAAmB,QAA8B;AAC/D,MAAI,CAAC,OAAO,QAAS,QAAO;AAC5B,SAAO;AACT;AAgBO,SAAS,mBAAmB,QAA2C;AAC5E,MAAI,CAAC,OAAO,QAAS,QAAO,CAAC;AAE7B,SAAO;AAAA,IACL,sBAAsB,OAAO,OAAO,UAAU;AAAA,IAC9C,sBAAsB,OAAO,OAAO,UAAU;AAAA,IAC9C,kBAAkB,GAAG,OAAO,eAAe;AAAA,IAC3C,0BAA0B,OAAO;AAAA,IACjC,wBAAwB,OAAO;AAAA,EACjC;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { springs, getDuration, getMotionConfig } from "./config";
|
|
2
|
+
import { staggerChildStyle, staggerEntryClass } from "./stagger";
|
|
3
|
+
import { hoverFeedbackClass, hoverFeedbackStyle } from "./hover";
|
|
4
|
+
export {
|
|
5
|
+
getDuration,
|
|
6
|
+
getMotionConfig,
|
|
7
|
+
hoverFeedbackClass,
|
|
8
|
+
hoverFeedbackStyle,
|
|
9
|
+
springs,
|
|
10
|
+
staggerChildStyle,
|
|
11
|
+
staggerEntryClass
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/motion/index.ts"],"sourcesContent":["export { springs, getDuration, getMotionConfig, type MotionConfig } from \"./config\";\nexport { staggerChildStyle, staggerEntryClass } from \"./stagger\";\nexport { hoverFeedbackClass, hoverFeedbackStyle } from \"./hover\";\n"],"mappings":"AAAA,SAAS,SAAS,aAAa,uBAA0C;AACzE,SAAS,mBAAmB,yBAAyB;AACrD,SAAS,oBAAoB,0BAA0B;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS-based staggered entry animation for list/grid children.
|
|
3
|
+
*
|
|
4
|
+
* Works by setting a `--stagger-index` CSS custom property on each child,
|
|
5
|
+
* which drives the animation-delay. No JS animation runtime needed.
|
|
6
|
+
*/
|
|
7
|
+
import type { MotionConfig } from "./config";
|
|
8
|
+
/**
|
|
9
|
+
* Returns inline style for a staggered child element.
|
|
10
|
+
*
|
|
11
|
+
* @param index - The child's position in the list (0-based).
|
|
12
|
+
* @param config - Motion config from `getMotionConfig(delight)`.
|
|
13
|
+
* @returns CSS properties to spread onto the element's style prop.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* {items.map((item, i) => (
|
|
18
|
+
* <div
|
|
19
|
+
* key={item.id}
|
|
20
|
+
* className={staggerEntryClass(motion)}
|
|
21
|
+
* style={staggerChildStyle(i, motion)}
|
|
22
|
+
* >
|
|
23
|
+
* {item.name}
|
|
24
|
+
* </div>
|
|
25
|
+
* ))}
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function staggerChildStyle(index: number, config: MotionConfig): React.CSSProperties;
|
|
29
|
+
/**
|
|
30
|
+
* CSS class name for the stagger entry animation.
|
|
31
|
+
* Pair with the `@keyframes enad-stagger-entry` defined in styles.css.
|
|
32
|
+
*
|
|
33
|
+
* Returns empty string when motion is disabled.
|
|
34
|
+
*/
|
|
35
|
+
export declare function staggerEntryClass(config: MotionConfig): string;
|
|
36
|
+
//# sourceMappingURL=stagger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stagger.d.ts","sourceRoot":"","sources":["../../../src/client/motion/stagger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,KAAK,CAAC,aAAa,CAS1F;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAE9D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function staggerChildStyle(index, config) {
|
|
2
|
+
if (!config.enabled) return {};
|
|
3
|
+
return {
|
|
4
|
+
animationDelay: `${index * config.staggerDelay}ms`,
|
|
5
|
+
animationDuration: `${config.duration}ms`,
|
|
6
|
+
animationTimingFunction: config.entryEasing,
|
|
7
|
+
animationFillMode: "both"
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function staggerEntryClass(config) {
|
|
11
|
+
return config.enabled ? "enad-stagger-entry" : "";
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
staggerChildStyle,
|
|
15
|
+
staggerEntryClass
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=stagger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/motion/stagger.ts"],"sourcesContent":["/**\n * CSS-based staggered entry animation for list/grid children.\n *\n * Works by setting a `--stagger-index` CSS custom property on each child,\n * which drives the animation-delay. No JS animation runtime needed.\n */\n\nimport type { MotionConfig } from \"./config\";\n\n/**\n * Returns inline style for a staggered child element.\n *\n * @param index - The child's position in the list (0-based).\n * @param config - Motion config from `getMotionConfig(delight)`.\n * @returns CSS properties to spread onto the element's style prop.\n *\n * @example\n * ```tsx\n * {items.map((item, i) => (\n * <div\n * key={item.id}\n * className={staggerEntryClass(motion)}\n * style={staggerChildStyle(i, motion)}\n * >\n * {item.name}\n * </div>\n * ))}\n * ```\n */\nexport function staggerChildStyle(index: number, config: MotionConfig): React.CSSProperties {\n if (!config.enabled) return {};\n\n return {\n animationDelay: `${index * config.staggerDelay}ms`,\n animationDuration: `${config.duration}ms`,\n animationTimingFunction: config.entryEasing,\n animationFillMode: \"both\",\n };\n}\n\n/**\n * CSS class name for the stagger entry animation.\n * Pair with the `@keyframes enad-stagger-entry` defined in styles.css.\n *\n * Returns empty string when motion is disabled.\n */\nexport function staggerEntryClass(config: MotionConfig): string {\n return config.enabled ? \"enad-stagger-entry\" : \"\";\n}\n"],"mappings":"AA6BO,SAAS,kBAAkB,OAAe,QAA2C;AAC1F,MAAI,CAAC,OAAO,QAAS,QAAO,CAAC;AAE7B,SAAO;AAAA,IACL,gBAAgB,GAAG,QAAQ,OAAO,YAAY;AAAA,IAC9C,mBAAmB,GAAG,OAAO,QAAQ;AAAA,IACrC,yBAAyB,OAAO;AAAA,IAChC,mBAAmB;AAAA,EACrB;AACF;AAQO,SAAS,kBAAkB,QAA8B;AAC9D,SAAO,OAAO,UAAU,uBAAuB;AACjD;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchAction.d.ts","sourceRoot":"","sources":["../../../../src/client/search/actions/searchAction.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qHAcjF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/search/actions/searchAction.ts"],"sourcesContent":["\"use server\"\n\nimport { shopperClient } from \"../../user/clients/enad\"\n\nexport const searchAction = async (query: string, filters: Record<string,
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/search/actions/searchAction.ts"],"sourcesContent":["\"use server\"\n\nimport { shopperClient } from \"../../user/clients/enad\"\n\nexport const searchAction = async (query: string, filters: Record<string, unknown>) => {\n if (!query) return []\n\n try {\n const [data, error] = await shopperClient.products.search(query, filters)\n\n if (error) throw error\n\n console.log(\"res\", data)\n return data\n } catch (err) {\n console.error(\"SearchAction error:\", err)\n throw err\n }\n}\n"],"mappings":";AAEA,SAAS,qBAAqB;AAEvB,MAAM,eAAe,OAAO,OAAe,YAAqC;AACrF,MAAI,CAAC,MAAO,QAAO,CAAC;AAEpB,MAAI;AACF,UAAM,CAAC,MAAM,KAAK,IAAI,MAAM,cAAc,SAAS,OAAO,OAAO,OAAO;AAExE,QAAI,MAAO,OAAM;AAEjB,YAAQ,IAAI,OAAO,IAAI;AACvB,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,MAAM,uBAAuB,GAAG;AACxC,UAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface SearchBarProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
onSearch?: (query: string) => void;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SearchBar: ({ placeholder, onSearch, defaultValue }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=search-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../../src/client/search/components/search-bar.tsx"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,GAAI,yCAA4D,cAAc,4CAwBnG,CAAA"}
|
|
@@ -1 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useIcon } from "../../icons/icon-context";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { StorefrontButton } from "../../storefront/primitives/button";
|
|
6
|
+
import { Input } from "../../ui/input";
|
|
7
|
+
const SearchBar = ({ placeholder = "Search...", onSearch, defaultValue = "" }) => {
|
|
8
|
+
const SearchIcon = useIcon("search");
|
|
9
|
+
const [value, setValue] = useState(defaultValue);
|
|
10
|
+
const handleSubmit = (e) => {
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
onSearch?.(value);
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex items-center gap-2", children: [
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
Input,
|
|
17
|
+
{
|
|
18
|
+
type: "search",
|
|
19
|
+
value,
|
|
20
|
+
onChange: (e) => setValue(e.target.value),
|
|
21
|
+
placeholder,
|
|
22
|
+
className: "flex-1"
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ jsxs(StorefrontButton, { type: "submit", children: [
|
|
26
|
+
/* @__PURE__ */ jsx(SearchIcon, { "data-icon": "inline-start" }),
|
|
27
|
+
"Search"
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
SearchBar
|
|
33
|
+
};
|
|
1
34
|
//# sourceMappingURL=search-bar.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/search/components/search-bar.tsx"],"sourcesContent":["\"use client\"\n\nimport { useIcon } from \"../../icons/icon-context\"\nimport { useState } from \"react\"\nimport { StorefrontButton } from \"../../storefront/primitives/button\"\nimport { Input } from \"../../ui/input\"\n\ninterface SearchBarProps {\n placeholder?: string\n onSearch?: (query: string) => void\n defaultValue?: string\n}\n\nexport const SearchBar = ({ placeholder = \"Search...\", onSearch, defaultValue = \"\" }: SearchBarProps) => {\n const SearchIcon = useIcon(\"search\")\n const [value, setValue] = useState(defaultValue)\n\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n onSearch?.(value)\n }\n\n return (\n <form onSubmit={handleSubmit} className=\"flex items-center gap-2\">\n <Input\n type=\"search\"\n value={value}\n onChange={(e) => setValue(e.target.value)}\n placeholder={placeholder}\n className=\"flex-1\"\n />\n <StorefrontButton type=\"submit\">\n <SearchIcon data-icon=\"inline-start\" />\n Search\n </StorefrontButton>\n </form>\n )\n}\n"],"mappings":";AAwBM,cAOA,YAPA;AAtBN,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,aAAa;AAQf,MAAM,YAAY,CAAC,EAAE,cAAc,aAAa,UAAU,eAAe,GAAG,MAAsB;AACvG,QAAM,aAAa,QAAQ,QAAQ;AACnC,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,YAAY;AAE/C,QAAM,eAAe,CAAC,MAAwC;AAC5D,MAAE,eAAe;AACjB,eAAW,KAAK;AAAA,EAClB;AAEA,SACE,qBAAC,UAAK,UAAU,cAAc,WAAU,2BACtC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL;AAAA,QACA,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,QACxC;AAAA,QACA,WAAU;AAAA;AAAA,IACZ;AAAA,IACA,qBAAC,oBAAiB,MAAK,UACrB;AAAA,0BAAC,cAAW,aAAU,gBAAe;AAAA,MAAE;AAAA,OAEzC;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Search
|
|
3
|
+
*/
|
|
4
|
+
export declare const useSearch: () => {
|
|
5
|
+
query: string;
|
|
6
|
+
setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
|
+
filters: Record<string, unknown>;
|
|
8
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
|
|
9
|
+
result: import("@enadhq/enad-ts-sdk").SearchResponse<import("@enadhq/enad-ts-sdk").EnadSearchProduct> | undefined;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
error: Error | null;
|
|
12
|
+
performSearch: () => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../../src/client/search/hooks/useSearch.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;CAkCrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/search/hooks/useSearch.ts"],"sourcesContent":["\"use client\"\n\nimport { useState } from \"react\"\nimport { useQuery } from \"@tanstack/react-query\"\nimport { searchAction } from \"../actions/searchAction\"\n\n/**\n * Search\n */\nexport const useSearch = () => {\n const [query, setQuery] = useState(\"\")\n const [filters, setFilters] = useState<Record<string,
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/search/hooks/useSearch.ts"],"sourcesContent":["\"use client\"\n\nimport { useState } from \"react\"\nimport { useQuery } from \"@tanstack/react-query\"\nimport { searchAction } from \"../actions/searchAction\"\n\n/**\n * Search\n */\nexport const useSearch = () => {\n const [query, setQuery] = useState(\"\")\n const [filters, setFilters] = useState<Record<string, unknown>>({})\n const [activeQuery, setActiveQuery] = useState<string>(\"\") // query actually used for search\n\n const { data, isLoading, isError, error, refetch } = useQuery({\n queryKey: [\"products-search\", activeQuery, filters],\n queryFn: async () => {\n return searchAction(activeQuery, filters)\n },\n enabled: Boolean(activeQuery), // run only when performSearch is called\n staleTime: 1000 * 30,\n })\n\n /**\n * Manually trigger a search using the current `query` and `filters`.\n */\n const performSearch = () => {\n // Only trigger if query has content\n if (query.trim() === \"\") return\n setActiveQuery(query)\n refetch()\n }\n\n return {\n query,\n setQuery,\n filters,\n setFilters,\n result: Array.isArray(data) ? undefined : data,\n loading: isLoading,\n error: isError ? error : null,\n performSearch,\n }\n}\n"],"mappings":";AAEA,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAKtB,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,EAAE;AACrC,QAAM,CAAC,SAAS,UAAU,IAAI,SAAkC,CAAC,CAAC;AAClE,QAAM,CAAC,aAAa,cAAc,IAAI,SAAiB,EAAE;AAEzD,QAAM,EAAE,MAAM,WAAW,SAAS,OAAO,QAAQ,IAAI,SAAS;AAAA,IAC5D,UAAU,CAAC,mBAAmB,aAAa,OAAO;AAAA,IAClD,SAAS,YAAY;AACnB,aAAO,aAAa,aAAa,OAAO;AAAA,IAC1C;AAAA,IACA,SAAS,QAAQ,WAAW;AAAA;AAAA,IAC5B,WAAW,MAAO;AAAA,EACpB,CAAC;AAKD,QAAM,gBAAgB,MAAM;AAE1B,QAAI,MAAM,KAAK,MAAM,GAAI;AACzB,mBAAe,KAAK;AACpB,YAAQ;AAAA,EACV;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ,MAAM,QAAQ,IAAI,IAAI,SAAY;AAAA,IAC1C,SAAS;AAAA,IACT,OAAO,UAAU,QAAQ;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/search/index.ts"],"sourcesContent":["export { useSearch } from \"./hooks/useSearch\"\n"],"mappings":"AAAA,SAAS,iBAAiB;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AccordionBlockProps } from "../types";
|
|
2
|
+
declare function AccordionBlock({ items, defaultValue, className }: AccordionBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { AccordionBlock, type AccordionBlockProps };
|
|
4
|
+
//# sourceMappingURL=accordion-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-block.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/accordion-block.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CA6B9E;AAED,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import {
|
|
4
|
+
Accordion,
|
|
5
|
+
AccordionContent,
|
|
6
|
+
AccordionItem,
|
|
7
|
+
AccordionTrigger
|
|
8
|
+
} from "../../ui-resolver/accordion";
|
|
9
|
+
import { cn } from "../../ui/utils";
|
|
10
|
+
const variantClasses = {
|
|
11
|
+
standard: "prose prose-sm max-w-none",
|
|
12
|
+
"technical-data": "font-mono text-sm",
|
|
13
|
+
downloads: ""
|
|
14
|
+
};
|
|
15
|
+
function AccordionBlock({ items, defaultValue, className }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
Accordion,
|
|
18
|
+
{
|
|
19
|
+
type: "single",
|
|
20
|
+
collapsible: true,
|
|
21
|
+
defaultValue,
|
|
22
|
+
className: cn("w-full", className),
|
|
23
|
+
children: items.map((item, index) => {
|
|
24
|
+
const value = item.id ?? `item-${index}`;
|
|
25
|
+
const variant = item.variant ?? "standard";
|
|
26
|
+
return /* @__PURE__ */ jsxs(AccordionItem, { value, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "text-base font-medium", children: item.title }),
|
|
28
|
+
/* @__PURE__ */ jsx(AccordionContent, { children: variant === "downloads" && item.children ? item.children : /* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: variantClasses[variant],
|
|
32
|
+
dangerouslySetInnerHTML: { __html: item.content }
|
|
33
|
+
}
|
|
34
|
+
) })
|
|
35
|
+
] }, value);
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
AccordionBlock
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=accordion-block.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/storefront/blocks/accordion-block.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"../../ui-resolver/accordion\";\nimport { cn } from \"../../ui/utils\";\nimport type { AccordionBlockProps } from \"../types\";\n\nconst variantClasses: Record<string, string> = {\n standard: \"prose prose-sm max-w-none\",\n \"technical-data\": \"font-mono text-sm\",\n downloads: \"\",\n};\n\nfunction AccordionBlock({ items, defaultValue, className }: AccordionBlockProps) {\n return (\n <Accordion\n type=\"single\"\n collapsible\n defaultValue={defaultValue}\n className={cn(\"w-full\", className)}\n >\n {items.map((item, index) => {\n const value = item.id ?? `item-${index}`;\n const variant = item.variant ?? \"standard\";\n return (\n <AccordionItem key={value} value={value}>\n <AccordionTrigger className=\"text-base font-medium\">{item.title}</AccordionTrigger>\n <AccordionContent>\n {variant === \"downloads\" && item.children ? (\n item.children\n ) : (\n <div\n className={variantClasses[variant]}\n dangerouslySetInnerHTML={{ __html: item.content }}\n />\n )}\n </AccordionContent>\n </AccordionItem>\n );\n })}\n </Accordion>\n );\n}\n\nexport { AccordionBlock, type AccordionBlockProps };\n"],"mappings":";AA8BU,SACE,KADF;AA3BV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AAGnB,MAAM,iBAAyC;AAAA,EAC7C,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,WAAW;AACb;AAEA,SAAS,eAAe,EAAE,OAAO,cAAc,UAAU,GAAwB;AAC/E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAW;AAAA,MACX;AAAA,MACA,WAAW,GAAG,UAAU,SAAS;AAAA,MAEhC,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,cAAM,QAAQ,KAAK,MAAM,QAAQ,KAAK;AACtC,cAAM,UAAU,KAAK,WAAW;AAChC,eACE,qBAAC,iBAA0B,OACzB;AAAA,8BAAC,oBAAiB,WAAU,yBAAyB,eAAK,OAAM;AAAA,UAChE,oBAAC,oBACE,sBAAY,eAAe,KAAK,WAC/B,KAAK,WAEL;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,eAAe,OAAO;AAAA,cACjC,yBAAyB,EAAE,QAAQ,KAAK,QAAQ;AAAA;AAAA,UAClD,GAEJ;AAAA,aAXkB,KAYpB;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardImageWithCaptionProps } from "../types";
|
|
2
|
+
declare function CardImageWithCaption({ image, title, caption, className, }: CardImageWithCaptionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { CardImageWithCaption, type CardImageWithCaptionProps };
|
|
4
|
+
//# sourceMappingURL=card-image-with-caption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-image-with-caption.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/card-image-with-caption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAEzD,iBAAS,oBAAoB,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,2CAsB3B;AAED,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../ui/utils";
|
|
3
|
+
function CardImageWithCaption({
|
|
4
|
+
image,
|
|
5
|
+
title,
|
|
6
|
+
caption,
|
|
7
|
+
className
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsxs("figure", { className: cn("overflow-hidden", className), children: [
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: "relative aspect-[4/5] bg-muted", children: image?.src ? /* @__PURE__ */ jsx(
|
|
11
|
+
"img",
|
|
12
|
+
{
|
|
13
|
+
src: image.src,
|
|
14
|
+
alt: image.alt ?? title ?? "",
|
|
15
|
+
className: "size-full object-cover"
|
|
16
|
+
}
|
|
17
|
+
) : /* @__PURE__ */ jsx("div", { className: "size-full bg-muted" }) }),
|
|
18
|
+
(title || caption) && /* @__PURE__ */ jsxs("figcaption", { className: "mt-3", children: [
|
|
19
|
+
title && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: title }),
|
|
20
|
+
caption && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: caption })
|
|
21
|
+
] })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
CardImageWithCaption
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=card-image-with-caption.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/storefront/blocks/card-image-with-caption.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"../../ui/utils\"\nimport type { CardImageWithCaptionProps } from \"../types\"\n\nfunction CardImageWithCaption({\n image,\n title,\n caption,\n className,\n}: CardImageWithCaptionProps) {\n return (\n <figure className={cn(\"overflow-hidden\", className)}>\n <div className=\"relative aspect-[4/5] bg-muted\">\n {image?.src ? (\n <img\n src={image.src}\n alt={image.alt ?? title ?? \"\"}\n className=\"size-full object-cover\"\n />\n ) : (\n <div className=\"size-full bg-muted\" />\n )}\n </div>\n {(title || caption) && (\n <figcaption className=\"mt-3\">\n {title && <p className=\"text-sm font-medium text-foreground\">{title}</p>}\n {caption && <p className=\"mt-1 text-sm text-muted-foreground\">{caption}</p>}\n </figcaption>\n )}\n </figure>\n )\n}\n\nexport { CardImageWithCaption, type CardImageWithCaptionProps }\n"],"mappings":"AAcU,cAUF,YAVE;AAbV,SAAS,UAAU;AAGnB,SAAS,qBAAqB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA8B;AAC5B,SACE,qBAAC,YAAO,WAAW,GAAG,mBAAmB,SAAS,GAChD;AAAA,wBAAC,SAAI,WAAU,kCACZ,iBAAO,MACN;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,MAAM;AAAA,QACX,KAAK,MAAM,OAAO,SAAS;AAAA,QAC3B,WAAU;AAAA;AAAA,IACZ,IAEA,oBAAC,SAAI,WAAU,sBAAqB,GAExC;AAAA,KACE,SAAS,YACT,qBAAC,gBAAW,WAAU,QACnB;AAAA,eAAS,oBAAC,OAAE,WAAU,uCAAuC,iBAAM;AAAA,MACnE,WAAW,oBAAC,OAAE,WAAU,sCAAsC,mBAAQ;AAAA,OACzE;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardVideoProps } from "../types";
|
|
2
|
+
declare function CardVideo({ thumbnail, videoUrl, title, caption, aspectRatio, className, }: CardVideoProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { CardVideo, type CardVideoProps };
|
|
4
|
+
//# sourceMappingURL=card-video.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-video.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/card-video.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAQ9C,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,EACP,WAAoB,EACpB,SAAS,GACV,EAAE,cAAc,2CAyChB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useIcon } from "../../icons/icon-context";
|
|
3
|
+
import { cn } from "../../ui/utils";
|
|
4
|
+
const aspectClasses = {
|
|
5
|
+
"4:3": "aspect-[4/3]",
|
|
6
|
+
"1:1": "aspect-square",
|
|
7
|
+
"16:9": "aspect-video"
|
|
8
|
+
};
|
|
9
|
+
function CardVideo({
|
|
10
|
+
thumbnail,
|
|
11
|
+
videoUrl,
|
|
12
|
+
title,
|
|
13
|
+
caption,
|
|
14
|
+
aspectRatio = "16:9",
|
|
15
|
+
className
|
|
16
|
+
}) {
|
|
17
|
+
const PlayIcon = useIcon("play");
|
|
18
|
+
const card = /* @__PURE__ */ jsxs("div", { className: cn("group overflow-hidden", className), children: [
|
|
19
|
+
/* @__PURE__ */ jsxs("div", { className: cn("relative bg-muted", aspectClasses[aspectRatio]), children: [
|
|
20
|
+
thumbnail?.src ? /* @__PURE__ */ jsx(
|
|
21
|
+
"img",
|
|
22
|
+
{
|
|
23
|
+
src: thumbnail.src,
|
|
24
|
+
alt: thumbnail.alt ?? title ?? "",
|
|
25
|
+
className: "size-full object-cover"
|
|
26
|
+
}
|
|
27
|
+
) : /* @__PURE__ */ jsx("div", { className: "size-full bg-muted" }),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20 transition-colors group-hover:bg-black/30", children: /* @__PURE__ */ jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-white/90 text-foreground transition-transform group-hover:scale-110", children: /* @__PURE__ */ jsx(PlayIcon, { className: "ml-0.5 size-6 fill-current" }) }) })
|
|
29
|
+
] }),
|
|
30
|
+
(title || caption) && /* @__PURE__ */ jsxs("div", { className: "mt-3", children: [
|
|
31
|
+
title && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: title }),
|
|
32
|
+
caption && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: caption })
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
if (videoUrl) {
|
|
36
|
+
return /* @__PURE__ */ jsx("a", { href: videoUrl, target: "_blank", rel: "noopener noreferrer", className: "block", children: card });
|
|
37
|
+
}
|
|
38
|
+
return card;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
CardVideo
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=card-video.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/storefront/blocks/card-video.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { useIcon } from \"../../icons/icon-context\"\nimport { cn } from \"../../ui/utils\"\nimport type { CardVideoProps } from \"../types\"\n\nconst aspectClasses: Record<string, string> = {\n \"4:3\": \"aspect-[4/3]\",\n \"1:1\": \"aspect-square\",\n \"16:9\": \"aspect-video\",\n}\n\nfunction CardVideo({\n thumbnail,\n videoUrl,\n title,\n caption,\n aspectRatio = \"16:9\",\n className,\n}: CardVideoProps) {\n const PlayIcon = useIcon(\"play\")\n const card = (\n <div className={cn(\"group overflow-hidden\", className)}>\n <div className={cn(\"relative bg-muted\", aspectClasses[aspectRatio])}>\n {thumbnail?.src ? (\n <img\n src={thumbnail.src}\n alt={thumbnail.alt ?? title ?? \"\"}\n className=\"size-full object-cover\"\n />\n ) : (\n <div className=\"size-full bg-muted\" />\n )}\n\n {/* Play button overlay */}\n <div className=\"absolute inset-0 flex items-center justify-center bg-black/20 transition-colors group-hover:bg-black/30\">\n <div className=\"flex size-14 items-center justify-center rounded-full bg-white/90 text-foreground transition-transform group-hover:scale-110\">\n <PlayIcon className=\"ml-0.5 size-6 fill-current\" />\n </div>\n </div>\n </div>\n\n {(title || caption) && (\n <div className=\"mt-3\">\n {title && <p className=\"text-sm font-medium text-foreground\">{title}</p>}\n {caption && <p className=\"mt-1 text-sm text-muted-foreground\">{caption}</p>}\n </div>\n )}\n </div>\n )\n\n if (videoUrl) {\n return (\n <a href={videoUrl} target=\"_blank\" rel=\"noopener noreferrer\" className=\"block\">\n {card}\n </a>\n )\n }\n\n return card\n}\n\nexport { CardVideo, type CardVideoProps }\n"],"mappings":"AAsBM,SAEI,KAFJ;AArBN,SAAS,eAAe;AACxB,SAAS,UAAU;AAGnB,MAAM,gBAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,SAAS,UAAU;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AACF,GAAmB;AACjB,QAAM,WAAW,QAAQ,MAAM;AAC/B,QAAM,OACJ,qBAAC,SAAI,WAAW,GAAG,yBAAyB,SAAS,GACnD;AAAA,yBAAC,SAAI,WAAW,GAAG,qBAAqB,cAAc,WAAW,CAAC,GAC/D;AAAA,iBAAW,MACV;AAAA,QAAC;AAAA;AAAA,UACC,KAAK,UAAU;AAAA,UACf,KAAK,UAAU,OAAO,SAAS;AAAA,UAC/B,WAAU;AAAA;AAAA,MACZ,IAEA,oBAAC,SAAI,WAAU,sBAAqB;AAAA,MAItC,oBAAC,SAAI,WAAU,2GACb,8BAAC,SAAI,WAAU,gIACb,8BAAC,YAAS,WAAU,8BAA6B,GACnD,GACF;AAAA,OACF;AAAA,KAEE,SAAS,YACT,qBAAC,SAAI,WAAU,QACZ;AAAA,eAAS,oBAAC,OAAE,WAAU,uCAAuC,iBAAM;AAAA,MACnE,WAAW,oBAAC,OAAE,WAAU,sCAAsC,mBAAQ;AAAA,OACzE;AAAA,KAEJ;AAGF,MAAI,UAAU;AACZ,WACE,oBAAC,OAAE,MAAM,UAAU,QAAO,UAAS,KAAI,uBAAsB,WAAU,SACpE,gBACH;AAAA,EAEJ;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ContentWithGalleryProps } from "../types";
|
|
2
|
+
declare function ContentWithGallery({ images, preheader, heading, body, productCards, layout, colorTheme, className, }: ContentWithGalleryProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ContentWithGallery, type ContentWithGalleryProps };
|
|
4
|
+
//# sourceMappingURL=content-with-gallery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-with-gallery.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/content-with-gallery.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkC,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAEvF,iBAAS,kBAAkB,CAAC,EAC1B,MAAW,EACX,SAAS,EACT,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,MAAsB,EACtB,UAAU,EACV,SAAS,GACV,EAAE,uBAAuB,2CA4DzB;AAED,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../../ui/utils";
|
|
4
|
+
import { colorThemeClasses, isThemeDark } from "../types";
|
|
5
|
+
function ContentWithGallery({
|
|
6
|
+
images = [],
|
|
7
|
+
preheader,
|
|
8
|
+
heading,
|
|
9
|
+
body,
|
|
10
|
+
productCards,
|
|
11
|
+
layout = "image-above",
|
|
12
|
+
colorTheme,
|
|
13
|
+
className
|
|
14
|
+
}) {
|
|
15
|
+
const dark = isThemeDark(colorTheme);
|
|
16
|
+
const themeClasses = colorThemeClasses(colorTheme);
|
|
17
|
+
const textBlock = /* @__PURE__ */ jsxs("div", { children: [
|
|
18
|
+
preheader && /* @__PURE__ */ jsx("p", { className: cn("mb-2 text-sm uppercase tracking-widest", dark ? "text-white/70" : "text-muted-foreground"), children: preheader }),
|
|
19
|
+
heading && /* @__PURE__ */ jsx(
|
|
20
|
+
"h2",
|
|
21
|
+
{
|
|
22
|
+
className: cn("text-2xl font-heading md:text-3xl", dark ? "text-white" : "text-foreground"),
|
|
23
|
+
style: { fontWeight: "var(--enad-heading-weight)", letterSpacing: "var(--enad-heading-tracking)", textTransform: "var(--enad-heading-transform)" },
|
|
24
|
+
children: heading
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
body && /* @__PURE__ */ jsx("p", { className: cn("mt-4 max-w-2xl text-base leading-relaxed", dark ? "text-white/80" : "text-muted-foreground"), children: body })
|
|
28
|
+
] });
|
|
29
|
+
const imageGrid = images.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2 md:grid-cols-3", children: images.map((img, i) => /* @__PURE__ */ jsx("div", { className: "relative aspect-square bg-muted", children: /* @__PURE__ */ jsx("img", { src: img.src, alt: img.alt ?? "", className: "size-full object-cover" }) }, i)) });
|
|
30
|
+
if (layout === "side-by-side") {
|
|
31
|
+
return /* @__PURE__ */ jsx("section", { className: cn("px-4 py-12 md:px-8", themeClasses, className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto grid max-w-7xl gap-8 lg:grid-cols-2 lg:items-center", children: [
|
|
32
|
+
imageGrid,
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
34
|
+
textBlock,
|
|
35
|
+
productCards && /* @__PURE__ */ jsx("div", { className: "mt-8", children: productCards })
|
|
36
|
+
] })
|
|
37
|
+
] }) });
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsx("section", { className: cn("px-4 py-12 md:px-8", themeClasses, className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-7xl", children: [
|
|
40
|
+
textBlock,
|
|
41
|
+
imageGrid && /* @__PURE__ */ jsx("div", { className: "mt-8", children: imageGrid }),
|
|
42
|
+
productCards && /* @__PURE__ */ jsx("div", { className: "mt-8", children: productCards })
|
|
43
|
+
] }) });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
ContentWithGallery
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=content-with-gallery.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/storefront/blocks/content-with-gallery.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../ui/utils\"\nimport { colorThemeClasses, isThemeDark, type ContentWithGalleryProps } from \"../types\"\n\nfunction ContentWithGallery({\n images = [],\n preheader,\n heading,\n body,\n productCards,\n layout = \"image-above\",\n colorTheme,\n className,\n}: ContentWithGalleryProps) {\n const dark = isThemeDark(colorTheme)\n const themeClasses = colorThemeClasses(colorTheme)\n\n const textBlock = (\n <div>\n {preheader && (\n <p className={cn(\"mb-2 text-sm uppercase tracking-widest\", dark ? \"text-white/70\" : \"text-muted-foreground\")}>\n {preheader}\n </p>\n )}\n {heading && (\n <h2\n className={cn(\"text-2xl font-heading md:text-3xl\", dark ? \"text-white\" : \"text-foreground\")}\n style={{ fontWeight: \"var(--enad-heading-weight)\", letterSpacing: \"var(--enad-heading-tracking)\", textTransform: \"var(--enad-heading-transform)\" } as unknown as React.CSSProperties}\n >\n {heading}\n </h2>\n )}\n {body && (\n <p className={cn(\"mt-4 max-w-2xl text-base leading-relaxed\", dark ? \"text-white/80\" : \"text-muted-foreground\")}>\n {body}\n </p>\n )}\n </div>\n )\n\n const imageGrid = images.length > 0 && (\n <div className=\"grid grid-cols-2 gap-2 md:grid-cols-3\">\n {images.map((img, i) => (\n <div key={i} className=\"relative aspect-square bg-muted\">\n <img src={img.src} alt={img.alt ?? \"\"} className=\"size-full object-cover\" />\n </div>\n ))}\n </div>\n )\n\n if (layout === \"side-by-side\") {\n return (\n <section className={cn(\"px-4 py-12 md:px-8\", themeClasses, className)}>\n <div className=\"mx-auto grid max-w-7xl gap-8 lg:grid-cols-2 lg:items-center\">\n {imageGrid}\n <div>\n {textBlock}\n {productCards && <div className=\"mt-8\">{productCards}</div>}\n </div>\n </div>\n </section>\n )\n }\n\n return (\n <section className={cn(\"px-4 py-12 md:px-8\", themeClasses, className)}>\n <div className=\"mx-auto max-w-7xl\">\n {textBlock}\n {imageGrid && <div className=\"mt-8\">{imageGrid}</div>}\n {productCards && <div className=\"mt-8\">{productCards}</div>}\n </div>\n </section>\n )\n}\n\nexport { ContentWithGallery, type ContentWithGalleryProps }\n"],"mappings":";AAoBI,SAEI,KAFJ;AAjBJ,SAAS,UAAU;AACnB,SAAS,mBAAmB,mBAAiD;AAE7E,SAAS,mBAAmB;AAAA,EAC1B,SAAS,CAAC;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AACF,GAA4B;AAC1B,QAAM,OAAO,YAAY,UAAU;AACnC,QAAM,eAAe,kBAAkB,UAAU;AAEjD,QAAM,YACJ,qBAAC,SACE;AAAA,iBACC,oBAAC,OAAE,WAAW,GAAG,0CAA0C,OAAO,kBAAkB,uBAAuB,GACxG,qBACH;AAAA,IAED,WACC;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,qCAAqC,OAAO,eAAe,iBAAiB;AAAA,QAC1F,OAAO,EAAE,YAAY,8BAA8B,eAAe,gCAAgC,eAAe,gCAAgC;AAAA,QAEhJ;AAAA;AAAA,IACH;AAAA,IAED,QACC,oBAAC,OAAE,WAAW,GAAG,4CAA4C,OAAO,kBAAkB,uBAAuB,GAC1G,gBACH;AAAA,KAEJ;AAGF,QAAM,YAAY,OAAO,SAAS,KAChC,oBAAC,SAAI,WAAU,yCACZ,iBAAO,IAAI,CAAC,KAAK,MAChB,oBAAC,SAAY,WAAU,mCACrB,8BAAC,SAAI,KAAK,IAAI,KAAK,KAAK,IAAI,OAAO,IAAI,WAAU,0BAAyB,KADlE,CAEV,CACD,GACH;AAGF,MAAI,WAAW,gBAAgB;AAC7B,WACE,oBAAC,aAAQ,WAAW,GAAG,sBAAsB,cAAc,SAAS,GAClE,+BAAC,SAAI,WAAU,+DACZ;AAAA;AAAA,MACD,qBAAC,SACE;AAAA;AAAA,QACA,gBAAgB,oBAAC,SAAI,WAAU,QAAQ,wBAAa;AAAA,SACvD;AAAA,OACF,GACF;AAAA,EAEJ;AAEA,SACE,oBAAC,aAAQ,WAAW,GAAG,sBAAsB,cAAc,SAAS,GAClE,+BAAC,SAAI,WAAU,qBACZ;AAAA;AAAA,IACA,aAAa,oBAAC,SAAI,WAAU,QAAQ,qBAAU;AAAA,IAC9C,gBAAgB,oBAAC,SAAI,WAAU,QAAQ,wBAAa;AAAA,KACvD,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ContentWithImageProductDataProps } from "../types";
|
|
2
|
+
declare function ContentWithImageProductData({ image, preheader, heading, body, usps, buttonLabel, buttonHref, productCards, className, }: ContentWithImageProductDataProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ContentWithImageProductData, type ContentWithImageProductDataProps };
|
|
4
|
+
//# sourceMappingURL=content-with-image-product-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-with-image-product-data.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/content-with-image-product-data.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAA;AAEhE,iBAAS,2BAA2B,CAAC,EACnC,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAS,EACT,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,GACV,EAAE,gCAAgC,2CAgElC;AAED,OAAO,EAAE,2BAA2B,EAAE,KAAK,gCAAgC,EAAE,CAAA"}
|