@enadhq/enad-react-sdk 1.0.0 → 1.1.0
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 +305 -0
- package/dist/client/_virtual/_rolldown/runtime.mjs +6 -0
- package/dist/client/adapters/index.d.ts +3 -0
- package/dist/client/adapters/index.mjs +3 -0
- package/dist/client/adapters/next-cookie-adapter.d.ts +18 -0
- package/dist/client/adapters/next-cookie-adapter.d.ts.map +1 -0
- package/dist/client/adapters/next-cookie-adapter.mjs +25 -0
- package/dist/client/adapters/next-cookie-adapter.mjs.map +1 -0
- package/dist/client/adapters/next-navigation-adapter.d.ts +9 -0
- package/dist/client/adapters/next-navigation-adapter.d.ts.map +1 -0
- package/dist/client/adapters/next-navigation-adapter.mjs +12 -0
- package/dist/client/adapters/next-navigation-adapter.mjs.map +1 -0
- package/dist/client/cart/adapters/brink.d.ts +33 -0
- package/dist/client/cart/adapters/brink.d.ts.map +1 -0
- package/dist/client/cart/adapters/brink.mjs +171 -0
- package/dist/client/cart/adapters/brink.mjs.map +1 -0
- package/dist/client/cart/adapters/index.d.ts +2 -0
- package/dist/client/cart/adapters/index.mjs +2 -0
- package/dist/client/cart/adapters/mock.d.ts +24 -0
- package/dist/client/cart/adapters/mock.d.ts.map +1 -0
- package/dist/client/cart/adapters/mock.mjs +92 -0
- package/dist/client/cart/adapters/mock.mjs.map +1 -0
- package/dist/client/cart/components/cart-drawer.d.ts +27 -0
- package/dist/client/cart/components/cart-drawer.d.ts.map +1 -0
- package/dist/client/cart/components/cart-drawer.mjs +277 -0
- package/dist/client/cart/components/cart-drawer.mjs.map +1 -0
- package/dist/client/cart/components/cart-trigger.d.ts +20 -0
- package/dist/client/cart/components/cart-trigger.d.ts.map +1 -0
- package/dist/client/cart/components/cart-trigger.mjs +27 -0
- package/dist/client/cart/components/cart-trigger.mjs.map +1 -0
- package/dist/client/cart/components/promo-code-input.d.ts +29 -0
- package/dist/client/cart/components/promo-code-input.d.ts.map +1 -0
- package/dist/client/cart/components/promo-code-input.mjs +81 -0
- package/dist/client/cart/components/promo-code-input.mjs.map +1 -0
- package/dist/client/cart/constants/session.d.ts +5 -0
- package/dist/client/cart/constants/session.d.ts.map +1 -0
- package/dist/client/cart/constants/session.mjs +6 -0
- package/dist/client/cart/constants/session.mjs.map +1 -0
- package/dist/client/cart/contexts/cart.d.ts +44 -0
- package/dist/client/cart/contexts/cart.d.ts.map +1 -0
- package/dist/client/cart/contexts/cart.mjs +37 -0
- package/dist/client/cart/contexts/cart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCart.d.ts +32 -0
- package/dist/client/cart/hooks/useCart.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCart.mjs +31 -0
- package/dist/client/cart/hooks/useCart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCartActions.d.ts +30 -0
- package/dist/client/cart/hooks/useCartActions.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCartActions.mjs +50 -0
- package/dist/client/cart/hooks/useCartActions.mjs.map +1 -0
- package/dist/client/cart/index.d.ts +8 -0
- package/dist/client/cart/index.mjs +7 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts +14 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs +28 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts +8 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs +37 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts +12 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs +23 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts +14 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs +25 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/types/adapter.d.ts +113 -0
- package/dist/client/cart/types/adapter.d.ts.map +1 -0
- package/dist/client/cart/types/adapter.mjs +13 -0
- package/dist/client/cart/types/adapter.mjs.map +1 -0
- package/dist/client/cart/types/cart.d.ts +55 -0
- package/dist/client/cart/types/cart.d.ts.map +1 -0
- package/dist/client/cart/types/cart.mjs +1 -0
- package/dist/client/cart/utils/session.d.ts +8 -0
- package/dist/client/cart/utils/session.d.ts.map +1 -0
- package/dist/client/cart/utils/session.mjs +19 -0
- package/dist/client/cart/utils/session.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts +12 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs +18 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts +32 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs +70 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs.map +1 -0
- package/dist/client/global/auth/cookie-adapter.d.ts +33 -0
- package/dist/client/global/auth/cookie-adapter.d.ts.map +1 -0
- package/dist/client/global/auth/cookie-adapter.mjs +28 -0
- package/dist/client/global/auth/cookie-adapter.mjs.map +1 -0
- package/dist/client/global/auth/cookie-context.d.ts +21 -0
- package/dist/client/global/auth/cookie-context.d.ts.map +1 -0
- package/dist/client/global/auth/cookie-context.mjs +24 -0
- package/dist/client/global/auth/cookie-context.mjs.map +1 -0
- package/dist/client/global/auth/navigation-adapter.d.ts +9 -0
- package/dist/client/global/auth/navigation-adapter.d.ts.map +1 -0
- package/dist/client/global/auth/navigation-adapter.mjs +13 -0
- package/dist/client/global/auth/navigation-adapter.mjs.map +1 -0
- package/dist/client/global/auth/withAuth.d.ts +8 -0
- package/dist/client/global/auth/withAuth.d.ts.map +1 -0
- package/dist/client/global/auth/withAuth.mjs +29 -0
- package/dist/client/global/auth/withAuth.mjs.map +1 -0
- package/dist/client/global/components/error-boundary.d.ts +23 -0
- package/dist/client/global/components/error-boundary.d.ts.map +1 -0
- package/dist/client/global/components/error-boundary.mjs +40 -0
- package/dist/client/global/components/error-boundary.mjs.map +1 -0
- package/dist/client/global/config/index.d.ts +19 -0
- package/dist/client/global/config/index.d.ts.map +1 -0
- package/dist/client/global/config/index.mjs +15 -0
- package/dist/client/global/config/index.mjs.map +1 -0
- package/dist/client/global/constants/tags.d.ts +18 -0
- package/dist/client/global/constants/tags.d.ts.map +1 -0
- package/dist/client/global/constants/tags.mjs +19 -0
- package/dist/client/global/constants/tags.mjs.map +1 -0
- package/dist/client/global/contexts/locale.d.ts +14 -0
- package/dist/client/global/contexts/locale.d.ts.map +1 -0
- package/dist/client/global/contexts/locale.mjs +24 -0
- package/dist/client/global/contexts/locale.mjs.map +1 -0
- package/dist/client/global/index.d.ts +8 -0
- package/dist/client/global/index.mjs +7 -0
- package/dist/client/global/providers/enad-provider.d.ts +93 -0
- package/dist/client/global/providers/enad-provider.d.ts.map +1 -0
- package/dist/client/global/providers/enad-provider.mjs +74 -0
- package/dist/client/global/providers/enad-provider.mjs.map +1 -0
- package/dist/client/icons/adapters/carbon.d.ts +12 -0
- package/dist/client/icons/adapters/carbon.d.ts.map +1 -0
- package/dist/client/icons/adapters/carbon.mjs +62 -0
- package/dist/client/icons/adapters/carbon.mjs.map +1 -0
- package/dist/client/icons/adapters/hugeicons.d.ts +13 -0
- package/dist/client/icons/adapters/hugeicons.d.ts.map +1 -0
- package/dist/client/icons/adapters/hugeicons.mjs +66 -0
- package/dist/client/icons/adapters/hugeicons.mjs.map +1 -0
- package/dist/client/icons/adapters/lucide.d.ts +12 -0
- package/dist/client/icons/adapters/lucide.d.ts.map +1 -0
- package/dist/client/icons/adapters/lucide.mjs +62 -0
- package/dist/client/icons/adapters/lucide.mjs.map +1 -0
- package/dist/client/icons/adapters/phosphor.d.ts +14 -0
- package/dist/client/icons/adapters/phosphor.d.ts.map +1 -0
- package/dist/client/icons/adapters/phosphor.mjs +107 -0
- package/dist/client/icons/adapters/phosphor.mjs.map +1 -0
- package/dist/client/icons/icon-context.d.ts +24 -0
- package/dist/client/icons/icon-context.d.ts.map +1 -0
- package/dist/client/icons/icon-context.mjs +23 -0
- package/dist/client/icons/icon-context.mjs.map +1 -0
- package/dist/client/icons/index.d.ts +7 -0
- package/dist/client/icons/index.mjs +6 -0
- package/dist/client/icons/types.d.ts +63 -0
- package/dist/client/icons/types.d.ts.map +1 -0
- package/dist/client/icons/types.mjs +1 -0
- package/dist/client/motion/config.d.ts +33 -0
- package/dist/client/motion/config.d.ts.map +1 -0
- package/dist/client/motion/config.mjs +40 -0
- package/dist/client/motion/config.mjs.map +1 -0
- package/dist/client/motion/hover.d.ts +34 -0
- package/dist/client/motion/hover.d.ts.map +1 -0
- package/dist/client/motion/hover.mjs +45 -0
- package/dist/client/motion/hover.mjs.map +1 -0
- package/dist/client/motion/index.d.ts +4 -0
- package/dist/client/motion/index.mjs +4 -0
- package/dist/client/motion/stagger.d.ts +34 -0
- package/dist/client/motion/stagger.d.ts.map +1 -0
- package/dist/client/motion/stagger.mjs +43 -0
- package/dist/client/motion/stagger.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +13 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +34 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/app-router-headers.mjs +105 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/app-router-headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/forbidden.mjs +48 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/forbidden.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/hooks-server-context.mjs +39 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/hooks-server-context.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs +62 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/is-next-router-error.mjs +28 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/is-next-router-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.mjs +156 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.react-server.mjs +71 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.react-server.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/not-found.mjs +45 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/not-found.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/readonly-url-search-params.mjs +44 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/readonly-url-search-params.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-error.mjs +49 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-status-code.mjs +27 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-status-code.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect.mjs +83 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/static-generation-bailout.mjs +39 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/static-generation-bailout.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unauthorized.mjs +49 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unauthorized.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unrecognized-action-error.mjs +38 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unrecognized-action-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.mjs +30 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs +37 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.mjs +310 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/framework/boundary-constants.mjs +34 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/framework/boundary-constants.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/scheduler.mjs +47 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/scheduler.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/async-local-storage.mjs +65 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/async-local-storage.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs +506 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/staged-rendering.mjs +86 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/staged-rendering.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs +186 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.mjs +66 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs +66 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs +20 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/cookies.mjs +185 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/draft-mode.mjs +169 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/draft-mode.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/headers.mjs +184 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/utils.mjs +52 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/utils.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/headers.mjs +138 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.mjs +32 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.mjs +165 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/cookies.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +47 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +52 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.mjs +22 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +34 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/promise-with-resolvers.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/promise-with-resolvers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.mjs +79 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +32 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/headers.mjs +15 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/navigation.mjs +11 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/navigation.mjs.map +1 -0
- package/dist/client/search/actions/searchAction.d.ts +7 -0
- package/dist/client/search/actions/searchAction.d.ts.map +1 -0
- package/dist/client/search/actions/searchAction.mjs +17 -0
- package/dist/client/search/actions/searchAction.mjs.map +1 -0
- package/dist/client/search/components/search-bar.d.ts +16 -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 -0
- package/dist/client/search/hooks/useSearch.d.ts +20 -0
- package/dist/client/search/hooks/useSearch.d.ts.map +1 -0
- package/dist/client/search/hooks/useSearch.mjs +47 -0
- package/dist/client/search/hooks/useSearch.mjs.map +1 -0
- package/dist/client/search/index.d.ts +2 -0
- package/dist/client/search/index.mjs +2 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts +12 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.mjs +37 -0
- package/dist/client/storefront/blocks/accordion-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts +13 -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 +30 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-video.d.ts +15 -0
- package/dist/client/storefront/blocks/card-video.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-video.mjs +51 -0
- package/dist/client/storefront/blocks/card-video.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts +17 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs +71 -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 +18 -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 +69 -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 +14 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs +29 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts +12 -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 +31 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery.d.ts +13 -0
- package/dist/client/storefront/blocks/gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery.mjs +54 -0
- package/dist/client/storefront/blocks/gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/hero.d.ts +8 -0
- package/dist/client/storefront/blocks/hero.d.ts.map +1 -0
- package/dist/client/storefront/blocks/hero.mjs +265 -0
- package/dist/client/storefront/blocks/hero.mjs.map +1 -0
- package/dist/client/storefront/blocks/image-block.d.ts +13 -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 +22 -0
- package/dist/client/storefront/blocks/index.mjs +21 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts +13 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.mjs +34 -0
- package/dist/client/storefront/blocks/link-block-small.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block.d.ts +8 -0
- package/dist/client/storefront/blocks/link-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block.mjs +139 -0
- package/dist/client/storefront/blocks/link-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card-parts.d.ts +77 -0
- package/dist/client/storefront/blocks/product-card-parts.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-card-parts.mjs +112 -0
- package/dist/client/storefront/blocks/product-card-parts.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card.d.ts +8 -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 +16 -0
- package/dist/client/storefront/blocks/product-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-image.mjs +81 -0
- package/dist/client/storefront/blocks/product-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/spacer.d.ts +10 -0
- package/dist/client/storefront/blocks/spacer.d.ts.map +1 -0
- package/dist/client/storefront/blocks/spacer.mjs +19 -0
- package/dist/client/storefront/blocks/spacer.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts +8 -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 +218 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content.d.ts +8 -0
- package/dist/client/storefront/blocks/text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content.mjs +165 -0
- package/dist/client/storefront/blocks/text-content.mjs.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts +13 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.mjs +42 -0
- package/dist/client/storefront/blocks/truncated-text.mjs.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts +11 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs +17 -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.mjs +2 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts +26 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs +50 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs.map +1 -0
- package/dist/client/storefront/checkout/address-form.d.ts +48 -0
- package/dist/client/storefront/checkout/address-form.d.ts.map +1 -0
- package/dist/client/storefront/checkout/address-form.mjs +114 -0
- package/dist/client/storefront/checkout/address-form.mjs.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts +61 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.mjs +160 -0
- package/dist/client/storefront/checkout/cart-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts +22 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs +43 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs.map +1 -0
- package/dist/client/storefront/checkout/index.d.ts +8 -0
- package/dist/client/storefront/checkout/index.mjs +8 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts +21 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs +35 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-summary.d.ts +48 -0
- package/dist/client/storefront/checkout/order-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-summary.mjs +143 -0
- package/dist/client/storefront/checkout/order-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts +29 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs +49 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts +37 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs +59 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs.map +1 -0
- package/dist/client/storefront/components/address-field-group.d.ts +45 -0
- package/dist/client/storefront/components/address-field-group.d.ts.map +1 -0
- package/dist/client/storefront/components/address-field-group.mjs +64 -0
- package/dist/client/storefront/components/address-field-group.mjs.map +1 -0
- package/dist/client/storefront/components/badge.d.ts +17 -0
- package/dist/client/storefront/components/badge.d.ts.map +1 -0
- package/dist/client/storefront/components/badge.mjs +22 -0
- package/dist/client/storefront/components/badge.mjs.map +1 -0
- package/dist/client/storefront/components/country-redirect.d.ts +41 -0
- package/dist/client/storefront/components/country-redirect.d.ts.map +1 -0
- package/dist/client/storefront/components/country-redirect.mjs +97 -0
- package/dist/client/storefront/components/country-redirect.mjs.map +1 -0
- package/dist/client/storefront/components/empty-state.d.ts +49 -0
- package/dist/client/storefront/components/empty-state.d.ts.map +1 -0
- package/dist/client/storefront/components/empty-state.mjs +56 -0
- package/dist/client/storefront/components/empty-state.mjs.map +1 -0
- package/dist/client/storefront/components/image-lightbox.d.ts +25 -0
- package/dist/client/storefront/components/image-lightbox.d.ts.map +1 -0
- package/dist/client/storefront/components/image-lightbox.mjs +256 -0
- package/dist/client/storefront/components/image-lightbox.mjs.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts +59 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.mjs +81 -0
- package/dist/client/storefront/components/infinite-scroll.mjs.map +1 -0
- package/dist/client/storefront/components/language-selector.d.ts +16 -0
- package/dist/client/storefront/components/language-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/language-selector.mjs +55 -0
- package/dist/client/storefront/components/language-selector.mjs.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts +27 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.mjs +87 -0
- package/dist/client/storefront/components/newsletter-signup.mjs.map +1 -0
- package/dist/client/storefront/components/price.d.ts +28 -0
- package/dist/client/storefront/components/price.d.ts.map +1 -0
- package/dist/client/storefront/components/price.mjs +47 -0
- package/dist/client/storefront/components/price.mjs.map +1 -0
- package/dist/client/storefront/components/product-recommendations.d.ts +31 -0
- package/dist/client/storefront/components/product-recommendations.d.ts.map +1 -0
- package/dist/client/storefront/components/product-recommendations.mjs +88 -0
- package/dist/client/storefront/components/product-recommendations.mjs.map +1 -0
- package/dist/client/storefront/components/product-tabs.d.ts +21 -0
- package/dist/client/storefront/components/product-tabs.d.ts.map +1 -0
- package/dist/client/storefront/components/product-tabs.mjs +56 -0
- package/dist/client/storefront/components/product-tabs.mjs.map +1 -0
- package/dist/client/storefront/components/quick-view.d.ts +39 -0
- package/dist/client/storefront/components/quick-view.d.ts.map +1 -0
- package/dist/client/storefront/components/quick-view.mjs +155 -0
- package/dist/client/storefront/components/quick-view.mjs.map +1 -0
- package/dist/client/storefront/components/review-summary.d.ts +28 -0
- package/dist/client/storefront/components/review-summary.d.ts.map +1 -0
- package/dist/client/storefront/components/review-summary.mjs +79 -0
- package/dist/client/storefront/components/review-summary.mjs.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts +41 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.mjs +167 -0
- package/dist/client/storefront/components/search-autocomplete.mjs.map +1 -0
- package/dist/client/storefront/components/section-nav.d.ts +30 -0
- package/dist/client/storefront/components/section-nav.d.ts.map +1 -0
- package/dist/client/storefront/components/section-nav.mjs +128 -0
- package/dist/client/storefront/components/section-nav.mjs.map +1 -0
- package/dist/client/storefront/components/share-button.d.ts +34 -0
- package/dist/client/storefront/components/share-button.d.ts.map +1 -0
- package/dist/client/storefront/components/share-button.mjs +77 -0
- package/dist/client/storefront/components/share-button.mjs.map +1 -0
- package/dist/client/storefront/components/skeleton.d.ts +30 -0
- package/dist/client/storefront/components/skeleton.d.ts.map +1 -0
- package/dist/client/storefront/components/skeleton.mjs +88 -0
- package/dist/client/storefront/components/skeleton.mjs.map +1 -0
- package/dist/client/storefront/components/star-rating.d.ts +28 -0
- package/dist/client/storefront/components/star-rating.d.ts.map +1 -0
- package/dist/client/storefront/components/star-rating.mjs +167 -0
- package/dist/client/storefront/components/star-rating.mjs.map +1 -0
- package/dist/client/storefront/components/testimonial.d.ts +38 -0
- package/dist/client/storefront/components/testimonial.d.ts.map +1 -0
- package/dist/client/storefront/components/testimonial.mjs +64 -0
- package/dist/client/storefront/components/testimonial.mjs.map +1 -0
- package/dist/client/storefront/components/trust-badges.d.ts +23 -0
- package/dist/client/storefront/components/trust-badges.d.ts.map +1 -0
- package/dist/client/storefront/components/trust-badges.mjs +30 -0
- package/dist/client/storefront/components/trust-badges.mjs.map +1 -0
- package/dist/client/storefront/components/variant-selector.d.ts +32 -0
- package/dist/client/storefront/components/variant-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/variant-selector.mjs +43 -0
- package/dist/client/storefront/components/variant-selector.mjs.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts +25 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs +32 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-chip.d.ts +20 -0
- package/dist/client/storefront/filters/filter-chip.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-chip.mjs +22 -0
- package/dist/client/storefront/filters/filter-chip.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-group.d.ts +35 -0
- package/dist/client/storefront/filters/filter-group.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-group.mjs +93 -0
- package/dist/client/storefront/filters/filter-group.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-panel.d.ts +38 -0
- package/dist/client/storefront/filters/filter-panel.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-panel.mjs +109 -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.mjs +6 -0
- package/dist/client/storefront/filters/sort-select.d.ts +23 -0
- package/dist/client/storefront/filters/sort-select.d.ts.map +1 -0
- package/dist/client/storefront/filters/sort-select.mjs +41 -0
- package/dist/client/storefront/filters/sort-select.mjs.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts +16 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs +36 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts +10 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs +55 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs.map +1 -0
- package/dist/client/storefront/index.d.ts +19 -0
- package/dist/client/storefront/index.mjs +18 -0
- package/dist/client/storefront/layout/footer.d.ts +16 -0
- package/dist/client/storefront/layout/footer.d.ts.map +1 -0
- package/dist/client/storefront/layout/footer.mjs +64 -0
- package/dist/client/storefront/layout/footer.mjs.map +1 -0
- package/dist/client/storefront/layout/header.d.ts +20 -0
- package/dist/client/storefront/layout/header.d.ts.map +1 -0
- package/dist/client/storefront/layout/header.mjs +326 -0
- package/dist/client/storefront/layout/header.mjs.map +1 -0
- package/dist/client/storefront/layout/index.d.ts +6 -0
- package/dist/client/storefront/layout/index.mjs +5 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts +14 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs +83 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts +13 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.mjs +63 -0
- package/dist/client/storefront/layout/promotion-bar.mjs.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts +20 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs +36 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs.map +1 -0
- package/dist/client/storefront/primitives/button.d.ts +25 -0
- package/dist/client/storefront/primitives/button.d.ts.map +1 -0
- package/dist/client/storefront/primitives/button.mjs +42 -0
- package/dist/client/storefront/primitives/button.mjs.map +1 -0
- package/dist/client/storefront/primitives/checkbox.d.ts +25 -0
- package/dist/client/storefront/primitives/checkbox.d.ts.map +1 -0
- package/dist/client/storefront/primitives/checkbox.mjs +39 -0
- package/dist/client/storefront/primitives/checkbox.mjs.map +1 -0
- package/dist/client/storefront/primitives/country-select.d.ts +15 -0
- package/dist/client/storefront/primitives/country-select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/country-select.mjs +33 -0
- package/dist/client/storefront/primitives/country-select.mjs.map +1 -0
- package/dist/client/storefront/primitives/download-item.d.ts +18 -0
- package/dist/client/storefront/primitives/download-item.d.ts.map +1 -0
- package/dist/client/storefront/primitives/download-item.mjs +27 -0
- package/dist/client/storefront/primitives/download-item.mjs.map +1 -0
- package/dist/client/storefront/primitives/index.d.ts +11 -0
- package/dist/client/storefront/primitives/index.mjs +11 -0
- package/dist/client/storefront/primitives/input.d.ts +39 -0
- package/dist/client/storefront/primitives/input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/input.mjs +87 -0
- package/dist/client/storefront/primitives/input.mjs.map +1 -0
- package/dist/client/storefront/primitives/pagination.d.ts +18 -0
- package/dist/client/storefront/primitives/pagination.d.ts.map +1 -0
- package/dist/client/storefront/primitives/pagination.mjs +59 -0
- package/dist/client/storefront/primitives/pagination.mjs.map +1 -0
- package/dist/client/storefront/primitives/password-input.d.ts +16 -0
- package/dist/client/storefront/primitives/password-input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/password-input.mjs +21 -0
- package/dist/client/storefront/primitives/password-input.mjs.map +1 -0
- package/dist/client/storefront/primitives/quick-links.d.ts +18 -0
- package/dist/client/storefront/primitives/quick-links.d.ts.map +1 -0
- package/dist/client/storefront/primitives/quick-links.mjs +22 -0
- package/dist/client/storefront/primitives/quick-links.mjs.map +1 -0
- package/dist/client/storefront/primitives/select.d.ts +32 -0
- package/dist/client/storefront/primitives/select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/select.mjs +49 -0
- package/dist/client/storefront/primitives/select.mjs.map +1 -0
- package/dist/client/storefront/primitives/text-link.d.ts +16 -0
- package/dist/client/storefront/primitives/text-link.d.ts.map +1 -0
- package/dist/client/storefront/primitives/text-link.mjs +20 -0
- package/dist/client/storefront/primitives/text-link.mjs.map +1 -0
- package/dist/client/storefront/product/color-swatch.d.ts +20 -0
- package/dist/client/storefront/product/color-swatch.d.ts.map +1 -0
- package/dist/client/storefront/product/color-swatch.mjs +23 -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.mjs +5 -0
- package/dist/client/storefront/product/material-selector.d.ts +24 -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 +14 -0
- package/dist/client/storefront/product/product-usp.d.ts.map +1 -0
- package/dist/client/storefront/product/product-usp.mjs +19 -0
- package/dist/client/storefront/product/product-usp.mjs.map +1 -0
- package/dist/client/storefront/product/quantity-picker.d.ts +22 -0
- package/dist/client/storefront/product/quantity-picker.d.ts.map +1 -0
- package/dist/client/storefront/product/quantity-picker.mjs +47 -0
- package/dist/client/storefront/product/quantity-picker.mjs.map +1 -0
- package/dist/client/storefront/types.d.ts +287 -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 +21 -0
- package/dist/client/theme/apply.d.ts.map +1 -0
- package/dist/client/theme/apply.mjs +163 -0
- package/dist/client/theme/apply.mjs.map +1 -0
- package/dist/client/theme/cli.mjs +472 -0
- package/dist/client/theme/cli.mjs.map +1 -0
- package/dist/client/theme/codec.d.ts +31 -0
- package/dist/client/theme/codec.d.ts.map +1 -0
- package/dist/client/theme/codec.mjs +92 -0
- package/dist/client/theme/codec.mjs.map +1 -0
- package/dist/client/theme/defaults.d.ts +49 -0
- package/dist/client/theme/defaults.d.ts.map +1 -0
- package/dist/client/theme/defaults.mjs +94 -0
- package/dist/client/theme/defaults.mjs.map +1 -0
- package/dist/client/theme/index.d.ts +5 -0
- package/dist/client/theme/index.mjs +5 -0
- package/dist/client/theme/scan.d.ts +19 -0
- package/dist/client/theme/scan.d.ts.map +1 -0
- package/dist/client/theme/scan.mjs +28 -0
- package/dist/client/theme/scan.mjs.map +1 -0
- package/dist/client/ui/accordion.d.ts +29 -0
- package/dist/client/ui/accordion.d.ts.map +1 -0
- package/dist/client/ui/accordion.mjs +53 -0
- package/dist/client/ui/accordion.mjs.map +1 -0
- package/dist/client/ui/alert.d.ts +25 -0
- package/dist/client/ui/alert.d.ts.map +1 -0
- package/dist/client/ui/alert.mjs +39 -0
- package/dist/client/ui/alert.mjs.map +1 -0
- package/dist/client/ui/avatar.d.ts +20 -0
- package/dist/client/ui/avatar.d.ts.map +1 -0
- package/dist/client/ui/avatar.mjs +31 -0
- package/dist/client/ui/avatar.mjs.map +1 -0
- package/dist/client/ui/breadcrumb.d.ts +38 -0
- package/dist/client/ui/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui/breadcrumb.mjs +70 -0
- package/dist/client/ui/breadcrumb.mjs.map +1 -0
- package/dist/client/ui/button.d.ts +22 -0
- package/dist/client/ui/button.d.ts.map +1 -0
- package/dist/client/ui/button.mjs +51 -0
- package/dist/client/ui/button.mjs.map +1 -0
- package/dist/client/ui/card.d.ts +35 -0
- package/dist/client/ui/card.d.ts.map +1 -0
- package/dist/client/ui/card.mjs +57 -0
- package/dist/client/ui/card.mjs.map +1 -0
- package/dist/client/ui/carousel.d.ts +48 -0
- package/dist/client/ui/carousel.d.ts.map +1 -0
- package/dist/client/ui/carousel.mjs +136 -0
- package/dist/client/ui/carousel.mjs.map +1 -0
- package/dist/client/ui/checkbox.d.ts +12 -0
- package/dist/client/ui/checkbox.d.ts.map +1 -0
- package/dist/client/ui/checkbox.mjs +24 -0
- package/dist/client/ui/checkbox.mjs.map +1 -0
- package/dist/client/ui/collapsible.d.ts +16 -0
- package/dist/client/ui/collapsible.d.ts.map +1 -0
- package/dist/client/ui/collapsible.mjs +26 -0
- package/dist/client/ui/collapsible.mjs.map +1 -0
- package/dist/client/ui/dialog.d.ts +45 -0
- package/dist/client/ui/dialog.d.ts.map +1 -0
- package/dist/client/ui/dialog.mjs +77 -0
- package/dist/client/ui/dialog.mjs.map +1 -0
- package/dist/client/ui/hover-card.d.ts +20 -0
- package/dist/client/ui/hover-card.d.ts.map +1 -0
- package/dist/client/ui/hover-card.mjs +31 -0
- package/dist/client/ui/hover-card.mjs.map +1 -0
- package/dist/client/ui/input.d.ts +18 -0
- package/dist/client/ui/input.d.ts.map +1 -0
- package/dist/client/ui/input.mjs +28 -0
- package/dist/client/ui/input.mjs.map +1 -0
- package/dist/client/ui/label.d.ts +12 -0
- package/dist/client/ui/label.d.ts.map +1 -0
- package/dist/client/ui/label.mjs +16 -0
- package/dist/client/ui/label.mjs.map +1 -0
- package/dist/client/ui/mid-truncate.d.ts +38 -0
- package/dist/client/ui/mid-truncate.d.ts.map +1 -0
- package/dist/client/ui/mid-truncate.mjs +52 -0
- package/dist/client/ui/mid-truncate.mjs.map +1 -0
- package/dist/client/ui/navigation-menu.d.ts +47 -0
- package/dist/client/ui/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui/navigation-menu.mjs +83 -0
- package/dist/client/ui/navigation-menu.mjs.map +1 -0
- package/dist/client/ui/pagination.d.ts +41 -0
- package/dist/client/ui/pagination.d.ts.map +1 -0
- package/dist/client/ui/pagination.mjs +83 -0
- package/dist/client/ui/pagination.mjs.map +1 -0
- package/dist/client/ui/popover.d.ts +35 -0
- package/dist/client/ui/popover.d.ts.map +1 -0
- package/dist/client/ui/popover.mjs +58 -0
- package/dist/client/ui/popover.mjs.map +1 -0
- package/dist/client/ui/progress.d.ts +13 -0
- package/dist/client/ui/progress.d.ts.map +1 -0
- package/dist/client/ui/progress.mjs +23 -0
- package/dist/client/ui/progress.mjs.map +1 -0
- package/dist/client/ui/select.d.ts +53 -0
- package/dist/client/ui/select.d.ts.map +1 -0
- package/dist/client/ui/select.mjs +103 -0
- package/dist/client/ui/select.mjs.map +1 -0
- package/dist/client/ui/separator.d.ts +14 -0
- package/dist/client/ui/separator.d.ts.map +1 -0
- package/dist/client/ui/separator.mjs +18 -0
- package/dist/client/ui/separator.mjs.map +1 -0
- package/dist/client/ui/sheet.d.ts +45 -0
- package/dist/client/ui/sheet.d.ts.map +1 -0
- package/dist/client/ui/sheet.mjs +86 -0
- package/dist/client/ui/sheet.mjs.map +1 -0
- package/dist/client/ui/simple-select.d.ts +32 -0
- package/dist/client/ui/simple-select.d.ts.map +1 -0
- package/dist/client/ui/simple-select.mjs +128 -0
- package/dist/client/ui/simple-select.mjs.map +1 -0
- package/dist/client/ui/stepper.d.ts +38 -0
- package/dist/client/ui/stepper.d.ts.map +1 -0
- package/dist/client/ui/stepper.mjs +90 -0
- package/dist/client/ui/stepper.mjs.map +1 -0
- package/dist/client/ui/tabs.d.ts +24 -0
- package/dist/client/ui/tabs.d.ts.map +1 -0
- package/dist/client/ui/tabs.mjs +38 -0
- package/dist/client/ui/tabs.mjs.map +1 -0
- package/dist/client/ui/toggle-group.d.ts +27 -0
- package/dist/client/ui/toggle-group.d.ts.map +1 -0
- package/dist/client/ui/toggle-group.mjs +49 -0
- package/dist/client/ui/toggle-group.mjs.map +1 -0
- package/dist/client/ui/toggle.d.ts +20 -0
- package/dist/client/ui/toggle.d.ts.map +1 -0
- package/dist/client/ui/toggle.mjs +38 -0
- package/dist/client/ui/toggle.mjs.map +1 -0
- package/dist/client/ui/tooltip.d.ts +24 -0
- package/dist/client/ui/tooltip.d.ts.map +1 -0
- package/dist/client/ui/tooltip.mjs +38 -0
- package/dist/client/ui/tooltip.mjs.map +1 -0
- package/dist/client/ui/utils.d.ts +7 -0
- package/dist/client/ui/utils.d.ts.map +1 -0
- package/dist/client/ui/utils.mjs +10 -0
- package/dist/client/ui/utils.mjs.map +1 -0
- package/dist/client/ui-resolver/accordion.d.ts +15 -0
- package/dist/client/ui-resolver/accordion.d.ts.map +1 -0
- package/dist/client/ui-resolver/accordion.mjs +19 -0
- package/dist/client/ui-resolver/accordion.mjs.map +1 -0
- package/dist/client/ui-resolver/alert.d.ts +13 -0
- package/dist/client/ui-resolver/alert.d.ts.map +1 -0
- package/dist/client/ui-resolver/alert.mjs +17 -0
- package/dist/client/ui-resolver/alert.mjs.map +1 -0
- package/dist/client/ui-resolver/avatar.d.ts +13 -0
- package/dist/client/ui-resolver/avatar.d.ts.map +1 -0
- package/dist/client/ui-resolver/avatar.mjs +17 -0
- package/dist/client/ui-resolver/avatar.mjs.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts +17 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.mjs +21 -0
- package/dist/client/ui-resolver/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-resolver/button.d.ts +11 -0
- package/dist/client/ui-resolver/button.d.ts.map +1 -0
- package/dist/client/ui-resolver/button.mjs +15 -0
- package/dist/client/ui-resolver/button.mjs.map +1 -0
- package/dist/client/ui-resolver/card.d.ts +17 -0
- package/dist/client/ui-resolver/card.d.ts.map +1 -0
- package/dist/client/ui-resolver/card.mjs +21 -0
- package/dist/client/ui-resolver/card.mjs.map +1 -0
- package/dist/client/ui-resolver/carousel.d.ts +16 -0
- package/dist/client/ui-resolver/carousel.d.ts.map +1 -0
- package/dist/client/ui-resolver/carousel.mjs +19 -0
- package/dist/client/ui-resolver/carousel.mjs.map +1 -0
- package/dist/client/ui-resolver/checkbox.d.ts +11 -0
- package/dist/client/ui-resolver/checkbox.d.ts.map +1 -0
- package/dist/client/ui-resolver/checkbox.mjs +15 -0
- package/dist/client/ui-resolver/checkbox.mjs.map +1 -0
- package/dist/client/ui-resolver/collapsible.d.ts +13 -0
- package/dist/client/ui-resolver/collapsible.d.ts.map +1 -0
- package/dist/client/ui-resolver/collapsible.mjs +17 -0
- package/dist/client/ui-resolver/collapsible.mjs.map +1 -0
- package/dist/client/ui-resolver/context.d.ts +38 -0
- package/dist/client/ui-resolver/context.d.ts.map +1 -0
- package/dist/client/ui-resolver/context.mjs +62 -0
- package/dist/client/ui-resolver/context.mjs.map +1 -0
- package/dist/client/ui-resolver/dialog.d.ts +20 -0
- package/dist/client/ui-resolver/dialog.d.ts.map +1 -0
- package/dist/client/ui-resolver/dialog.mjs +24 -0
- package/dist/client/ui-resolver/dialog.mjs.map +1 -0
- package/dist/client/ui-resolver/hover-card.d.ts +13 -0
- package/dist/client/ui-resolver/hover-card.d.ts.map +1 -0
- package/dist/client/ui-resolver/hover-card.mjs +17 -0
- package/dist/client/ui-resolver/hover-card.mjs.map +1 -0
- package/dist/client/ui-resolver/index.d.ts +29 -0
- package/dist/client/ui-resolver/index.mjs +29 -0
- package/dist/client/ui-resolver/input.d.ts +11 -0
- package/dist/client/ui-resolver/input.d.ts.map +1 -0
- package/dist/client/ui-resolver/input.mjs +15 -0
- package/dist/client/ui-resolver/input.mjs.map +1 -0
- package/dist/client/ui-resolver/label.d.ts +11 -0
- package/dist/client/ui-resolver/label.d.ts.map +1 -0
- package/dist/client/ui-resolver/label.mjs +15 -0
- package/dist/client/ui-resolver/label.mjs.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts +20 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.mjs +23 -0
- package/dist/client/ui-resolver/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-resolver/pagination.d.ts +17 -0
- package/dist/client/ui-resolver/pagination.d.ts.map +1 -0
- package/dist/client/ui-resolver/pagination.mjs +21 -0
- package/dist/client/ui-resolver/pagination.mjs.map +1 -0
- package/dist/client/ui-resolver/popover.d.ts +14 -0
- package/dist/client/ui-resolver/popover.d.ts.map +1 -0
- package/dist/client/ui-resolver/popover.mjs +18 -0
- package/dist/client/ui-resolver/popover.mjs.map +1 -0
- package/dist/client/ui-resolver/progress.d.ts +11 -0
- package/dist/client/ui-resolver/progress.d.ts.map +1 -0
- package/dist/client/ui-resolver/progress.mjs +15 -0
- package/dist/client/ui-resolver/progress.mjs.map +1 -0
- package/dist/client/ui-resolver/select.d.ts +18 -0
- package/dist/client/ui-resolver/select.d.ts.map +1 -0
- package/dist/client/ui-resolver/select.mjs +22 -0
- package/dist/client/ui-resolver/select.mjs.map +1 -0
- package/dist/client/ui-resolver/separator.d.ts +11 -0
- package/dist/client/ui-resolver/separator.d.ts.map +1 -0
- package/dist/client/ui-resolver/separator.mjs +15 -0
- package/dist/client/ui-resolver/separator.mjs.map +1 -0
- package/dist/client/ui-resolver/sheet.d.ts +18 -0
- package/dist/client/ui-resolver/sheet.d.ts.map +1 -0
- package/dist/client/ui-resolver/sheet.mjs +22 -0
- package/dist/client/ui-resolver/sheet.mjs.map +1 -0
- package/dist/client/ui-resolver/stepper.d.ts +15 -0
- package/dist/client/ui-resolver/stepper.d.ts.map +1 -0
- package/dist/client/ui-resolver/stepper.mjs +19 -0
- package/dist/client/ui-resolver/stepper.mjs.map +1 -0
- package/dist/client/ui-resolver/tabs.d.ts +14 -0
- package/dist/client/ui-resolver/tabs.d.ts.map +1 -0
- package/dist/client/ui-resolver/tabs.mjs +18 -0
- package/dist/client/ui-resolver/tabs.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle-group.d.ts +12 -0
- package/dist/client/ui-resolver/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle-group.mjs +16 -0
- package/dist/client/ui-resolver/toggle-group.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle.d.ts +11 -0
- package/dist/client/ui-resolver/toggle.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle.mjs +15 -0
- package/dist/client/ui-resolver/toggle.mjs.map +1 -0
- package/dist/client/ui-resolver/tooltip.d.ts +14 -0
- package/dist/client/ui-resolver/tooltip.d.ts.map +1 -0
- package/dist/client/ui-resolver/tooltip.mjs +18 -0
- package/dist/client/ui-resolver/tooltip.mjs.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts +16 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs +23 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs.map +1 -0
- package/dist/client/user/actions/getUserAction.d.ts +7 -0
- package/dist/client/user/actions/getUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/getUserAction.mjs +21 -0
- package/dist/client/user/actions/getUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logInUserAction.d.ts +17 -0
- package/dist/client/user/actions/logInUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logInUserAction.mjs +32 -0
- package/dist/client/user/actions/logInUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logoutUserAction.d.ts +5 -0
- package/dist/client/user/actions/logoutUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logoutUserAction.mjs +10 -0
- package/dist/client/user/actions/logoutUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts +14 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs +14 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserAction.d.ts +20 -0
- package/dist/client/user/actions/registerUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserAction.mjs +44 -0
- package/dist/client/user/actions/registerUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts +46 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs +62 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts +23 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.mjs +33 -0
- package/dist/client/user/actions/updatePasswordAction.mjs.map +1 -0
- package/dist/client/user/api/userRoute.d.ts +5 -0
- package/dist/client/user/api/userRoute.d.ts.map +1 -0
- package/dist/client/user/api/userRoute.mjs +65 -0
- package/dist/client/user/api/userRoute.mjs.map +1 -0
- package/dist/client/user/clients/enad.d.ts +8 -0
- package/dist/client/user/clients/enad.d.ts.map +1 -0
- package/dist/client/user/clients/enad.mjs +19 -0
- package/dist/client/user/clients/enad.mjs.map +1 -0
- package/dist/client/user/components/login-form.d.ts +26 -0
- package/dist/client/user/components/login-form.d.ts.map +1 -0
- package/dist/client/user/components/login-form.mjs +124 -0
- package/dist/client/user/components/login-form.mjs.map +1 -0
- package/dist/client/user/components/reset-password-form.d.ts +23 -0
- package/dist/client/user/components/reset-password-form.d.ts.map +1 -0
- package/dist/client/user/components/reset-password-form.mjs +96 -0
- package/dist/client/user/components/reset-password-form.mjs.map +1 -0
- package/dist/client/user/components/sign-out.d.ts +14 -0
- package/dist/client/user/components/sign-out.d.ts.map +1 -0
- package/dist/client/user/components/sign-out.mjs +21 -0
- package/dist/client/user/components/sign-out.mjs.map +1 -0
- package/dist/client/user/components/signup-form.d.ts +30 -0
- package/dist/client/user/components/signup-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-form.mjs +173 -0
- package/dist/client/user/components/signup-form.mjs.map +1 -0
- package/dist/client/user/components/signup-organisation-form.d.ts +59 -0
- package/dist/client/user/components/signup-organisation-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-organisation-form.mjs +659 -0
- package/dist/client/user/components/signup-organisation-form.mjs.map +1 -0
- package/dist/client/user/components/update-password-form.d.ts +20 -0
- package/dist/client/user/components/update-password-form.d.ts.map +1 -0
- package/dist/client/user/components/update-password-form.mjs +73 -0
- package/dist/client/user/components/update-password-form.mjs.map +1 -0
- package/dist/client/user/hooks/index.d.ts +2 -0
- package/dist/client/user/hooks/index.mjs +2 -0
- package/dist/client/user/hooks/useUser.d.ts +18 -0
- package/dist/client/user/hooks/useUser.d.ts.map +1 -0
- package/dist/client/user/hooks/useUser.mjs +35 -0
- package/dist/client/user/hooks/useUser.mjs.map +1 -0
- package/dist/client/user/index.d.ts +9 -0
- package/dist/client/user/index.mjs +8 -0
- package/dist/client/user/types/user.d.ts +204 -0
- package/dist/client/user/types/user.d.ts.map +1 -0
- package/dist/client/user/types/user.mjs +1 -0
- package/dist/client/user/utils/userCookieService.d.ts +16 -0
- package/dist/client/user/utils/userCookieService.d.ts.map +1 -0
- package/dist/client/user/utils/userCookieService.mjs +42 -0
- package/dist/client/user/utils/userCookieService.mjs.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts +9 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts +8 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs +15 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts +9 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts +7 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts +9 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs +23 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts +7 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs +15 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/hooks/index.d.ts +2 -0
- package/dist/client/wishlist/hooks/index.mjs +2 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts +100 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs +100 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts +50 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs +93 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs.map +1 -0
- package/dist/client/wishlist/index.d.ts +4 -0
- package/dist/client/wishlist/index.mjs +4 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts +29 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.mjs +187 -0
- package/dist/client/wishlist/wishlist-drawer.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +65 -34
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIcon } from "../../icons/icon-context.mjs";
|
|
3
|
+
import { cn } from "../../ui/utils.mjs";
|
|
4
|
+
import { MobileMenuDrawer } from "./mobile-menu-drawer.mjs";
|
|
5
|
+
import { PromotionBar } from "./promotion-bar.mjs";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/client/storefront/layout/header.tsx
|
|
9
|
+
const CLOSE_DELAY = 150;
|
|
10
|
+
const EMPTY_NAV = [];
|
|
11
|
+
const EMPTY_UTILITY = [];
|
|
12
|
+
const EMPTY_MESSAGES = [];
|
|
13
|
+
function CartElement({ cartHref, onCartClick, linkColor, label, CartIcon }) {
|
|
14
|
+
if (cartHref) return /* @__PURE__ */ jsx("a", {
|
|
15
|
+
href: cartHref,
|
|
16
|
+
className: cn("relative p-1 transition-colors duration-200 hit-area-2", linkColor),
|
|
17
|
+
"aria-label": label,
|
|
18
|
+
children: /* @__PURE__ */ jsx(CartIcon, { className: "size-5" })
|
|
19
|
+
});
|
|
20
|
+
if (onCartClick) return /* @__PURE__ */ jsx("button", {
|
|
21
|
+
onClick: onCartClick,
|
|
22
|
+
className: cn("relative p-1 transition-colors duration-200 hit-area-2", linkColor),
|
|
23
|
+
"aria-label": label,
|
|
24
|
+
children: /* @__PURE__ */ jsx(CartIcon, { className: "size-5" })
|
|
25
|
+
});
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
function MegaMenuPanel({ activeItem, showPanel, onMouseEnter, onMouseLeave, ChevronRightIcon }) {
|
|
29
|
+
const categories = activeItem?.megaMenuCategories;
|
|
30
|
+
const featured = activeItem?.megaMenuFeatured;
|
|
31
|
+
return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className: cn("hidden overflow-hidden transition-all duration-300 ease-out lg:block", showPanel ? "max-h-125 translate-y-0 opacity-100" : "max-h-0 -translate-y-1 opacity-0"),
|
|
33
|
+
onMouseEnter,
|
|
34
|
+
onMouseLeave,
|
|
35
|
+
role: "region",
|
|
36
|
+
"aria-label": "Submenu",
|
|
37
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: "border-b border-border bg-background p-8",
|
|
39
|
+
children: categories && categories.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
40
|
+
className: "flex gap-12",
|
|
41
|
+
children: [/* @__PURE__ */ jsx(MegaMenuCategories, { categories }), featured && featured.length > 0 && /* @__PURE__ */ jsx(MegaMenuFeatured, {
|
|
42
|
+
featured,
|
|
43
|
+
ChevronRightIcon
|
|
44
|
+
})]
|
|
45
|
+
}) : null
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function MegaMenuCategories({ categories }) {
|
|
50
|
+
const columnGroups = [];
|
|
51
|
+
for (const cat of categories) if (cat.stackWithPrevious && columnGroups.length > 0) columnGroups[columnGroups.length - 1].push(cat);
|
|
52
|
+
else columnGroups.push([cat]);
|
|
53
|
+
return /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: "flex flex-1 justify-between gap-10",
|
|
55
|
+
children: columnGroups.map((group) => /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: "flex w-50 min-w-0 flex-col gap-6",
|
|
57
|
+
children: group.map((cat) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("a", {
|
|
58
|
+
href: cat.href,
|
|
59
|
+
className: "mb-3 block text-sm font-normal text-foreground transition-colors duration-200 hover:text-muted-foreground",
|
|
60
|
+
children: cat.title
|
|
61
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
62
|
+
className: "flex flex-col gap-1.5",
|
|
63
|
+
children: cat.items?.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
|
|
64
|
+
href: item.href,
|
|
65
|
+
className: "text-sm text-muted-foreground transition-colors duration-200 hover:text-foreground",
|
|
66
|
+
children: item.label
|
|
67
|
+
}) }, item.href))
|
|
68
|
+
})] }, cat.id ?? cat.title))
|
|
69
|
+
}, group[0].id ?? group[0].title))
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function MegaMenuFeatured({ featured, ChevronRightIcon }) {
|
|
73
|
+
return /* @__PURE__ */ jsx("div", {
|
|
74
|
+
className: "flex shrink-0 gap-6",
|
|
75
|
+
children: featured.map((feat) => /* @__PURE__ */ jsxs("a", {
|
|
76
|
+
href: feat.href,
|
|
77
|
+
className: "group w-40",
|
|
78
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: "relative mb-2 aspect-[4/5] overflow-hidden rounded-[var(--enad-card-radius)] bg-muted",
|
|
80
|
+
children: feat.image?.src && /* @__PURE__ */ jsx("img", {
|
|
81
|
+
src: feat.image.src,
|
|
82
|
+
alt: feat.image.alt ?? feat.label,
|
|
83
|
+
className: "size-full object-cover transition-transform duration-[var(--enad-image-hover-duration)] group-hover:scale-[var(--enad-image-hover-scale)]"
|
|
84
|
+
})
|
|
85
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
86
|
+
className: "flex items-center gap-1 text-sm text-foreground transition-colors duration-200 group-hover:text-muted-foreground",
|
|
87
|
+
children: [feat.label, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "mt-px size-4" })]
|
|
88
|
+
})]
|
|
89
|
+
}, feat.id ?? feat.href))
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function MobileHeader({ logo, linkColor, onSearchClick, cartHref, onCartClick, menuOpen, setMenuOpen, labels, SearchIcon, CartIcon, MenuIcon }) {
|
|
93
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
94
|
+
className: "flex items-center justify-between px-4 py-3 lg:hidden",
|
|
95
|
+
children: [/* @__PURE__ */ jsx("a", {
|
|
96
|
+
href: "/",
|
|
97
|
+
className: "shrink-0",
|
|
98
|
+
children: logo
|
|
99
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
100
|
+
className: "flex items-center gap-3",
|
|
101
|
+
children: [
|
|
102
|
+
onSearchClick && /* @__PURE__ */ jsx("button", {
|
|
103
|
+
onClick: onSearchClick,
|
|
104
|
+
className: cn("relative p-1 transition-colors duration-200 hit-area-2", linkColor),
|
|
105
|
+
"aria-label": labels?.search ?? "Search",
|
|
106
|
+
children: /* @__PURE__ */ jsx(SearchIcon, { className: "size-5" })
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ jsx(CartElement, {
|
|
109
|
+
cartHref,
|
|
110
|
+
onCartClick,
|
|
111
|
+
linkColor,
|
|
112
|
+
label: labels?.cart ?? "Cart",
|
|
113
|
+
CartIcon
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ jsx("button", {
|
|
116
|
+
onClick: () => setMenuOpen(true),
|
|
117
|
+
className: cn("relative p-1 transition-colors duration-200 hit-area-2", linkColor),
|
|
118
|
+
"aria-label": labels?.menu ?? "Open menu",
|
|
119
|
+
"aria-expanded": menuOpen,
|
|
120
|
+
children: /* @__PURE__ */ jsx(MenuIcon, { className: "size-5" })
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function DesktopHeader({ logo, navItems, utilityLinks, linkColor, navLinkClasses, hasBackground, activeIndex, onSearchClick, cartHref, onCartClick, labels, handleTriggerEnter, scheduleClose, SearchIcon, CartIcon }) {
|
|
127
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
128
|
+
className: cn("hidden items-center justify-between px-8 py-4 lg:flex", hasBackground && "border-b border-border"),
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ jsx("a", {
|
|
131
|
+
href: "/",
|
|
132
|
+
className: "shrink-0",
|
|
133
|
+
children: logo
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx("nav", {
|
|
136
|
+
className: "flex flex-1 items-center justify-center gap-6",
|
|
137
|
+
children: navItems.map((item, index) => {
|
|
138
|
+
const hasDropdown = (item.megaMenuCategories?.length ?? 0) > 0;
|
|
139
|
+
return /* @__PURE__ */ jsx("a", {
|
|
140
|
+
href: item.href ?? "",
|
|
141
|
+
className: navLinkClasses,
|
|
142
|
+
onMouseEnter: () => handleTriggerEnter(index),
|
|
143
|
+
onMouseLeave: scheduleClose,
|
|
144
|
+
onFocus: () => handleTriggerEnter(index),
|
|
145
|
+
...hasDropdown && {
|
|
146
|
+
"aria-expanded": activeIndex === index,
|
|
147
|
+
"aria-haspopup": "true"
|
|
148
|
+
},
|
|
149
|
+
children: item.label
|
|
150
|
+
}, item.id ?? item.label);
|
|
151
|
+
})
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ jsxs("div", {
|
|
154
|
+
className: "flex shrink-0 items-center gap-5",
|
|
155
|
+
children: [
|
|
156
|
+
utilityLinks.map((link) => /* @__PURE__ */ jsx("a", {
|
|
157
|
+
href: link.href,
|
|
158
|
+
className: navLinkClasses,
|
|
159
|
+
children: link.label
|
|
160
|
+
}, link.label)),
|
|
161
|
+
onSearchClick && /* @__PURE__ */ jsx("button", {
|
|
162
|
+
onClick: onSearchClick,
|
|
163
|
+
className: cn("relative p-1 transition-colors duration-200 hit-area-2", linkColor),
|
|
164
|
+
"aria-label": labels?.search ?? "Search",
|
|
165
|
+
children: /* @__PURE__ */ jsx(SearchIcon, { className: "size-5" })
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ jsx(CartElement, {
|
|
168
|
+
cartHref,
|
|
169
|
+
onCartClick,
|
|
170
|
+
linkColor,
|
|
171
|
+
label: labels?.cart ?? "Cart",
|
|
172
|
+
CartIcon
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function useHeaderState(variant, navItems) {
|
|
180
|
+
const [menuOpen, setMenuOpen] = React$1.useState(false);
|
|
181
|
+
const [activeIndex, setActiveIndex] = React$1.useState(null);
|
|
182
|
+
const [scrolled, setScrolled] = React$1.useState(false);
|
|
183
|
+
const closeTimer = React$1.useRef(null);
|
|
184
|
+
const headerRef = React$1.useRef(null);
|
|
185
|
+
const isTransparent = variant === "transparent";
|
|
186
|
+
React$1.useEffect(() => {
|
|
187
|
+
if (!isTransparent) return;
|
|
188
|
+
const handleScroll = () => setScrolled(window.scrollY > 50);
|
|
189
|
+
handleScroll();
|
|
190
|
+
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
191
|
+
return () => window.removeEventListener("scroll", handleScroll);
|
|
192
|
+
}, [isTransparent]);
|
|
193
|
+
const cancelClose = React$1.useCallback(() => {
|
|
194
|
+
if (closeTimer.current) {
|
|
195
|
+
clearTimeout(closeTimer.current);
|
|
196
|
+
closeTimer.current = null;
|
|
197
|
+
}
|
|
198
|
+
}, []);
|
|
199
|
+
const scheduleClose = React$1.useCallback(() => {
|
|
200
|
+
cancelClose();
|
|
201
|
+
closeTimer.current = setTimeout(() => {
|
|
202
|
+
setActiveIndex(null);
|
|
203
|
+
}, CLOSE_DELAY);
|
|
204
|
+
}, [cancelClose]);
|
|
205
|
+
const handleTriggerEnter = React$1.useCallback((index) => {
|
|
206
|
+
cancelClose();
|
|
207
|
+
if ((navItems[index]?.megaMenuCategories?.length ?? 0) > 0) setActiveIndex(index);
|
|
208
|
+
else setActiveIndex(null);
|
|
209
|
+
}, [cancelClose, navItems]);
|
|
210
|
+
const handlePanelEnter = React$1.useCallback(() => cancelClose(), [cancelClose]);
|
|
211
|
+
const handlePanelLeave = React$1.useCallback(() => scheduleClose(), [scheduleClose]);
|
|
212
|
+
React$1.useEffect(() => {
|
|
213
|
+
const handleKeyDown = (e) => {
|
|
214
|
+
if (e.key === "Escape") setActiveIndex(null);
|
|
215
|
+
};
|
|
216
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
217
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
218
|
+
}, []);
|
|
219
|
+
const handleFocusOut = React$1.useCallback((e) => {
|
|
220
|
+
if (headerRef.current && e.relatedTarget instanceof Node && !headerRef.current.contains(e.relatedTarget)) setActiveIndex(null);
|
|
221
|
+
}, []);
|
|
222
|
+
const activeItem = activeIndex !== null ? navItems[activeIndex] : null;
|
|
223
|
+
return {
|
|
224
|
+
menuOpen,
|
|
225
|
+
setMenuOpen,
|
|
226
|
+
activeIndex,
|
|
227
|
+
scrolled,
|
|
228
|
+
headerRef,
|
|
229
|
+
isTransparent,
|
|
230
|
+
activeItem,
|
|
231
|
+
showPanel: activeItem !== null && (activeItem?.megaMenuCategories?.length ?? 0) > 0,
|
|
232
|
+
scheduleClose,
|
|
233
|
+
handleTriggerEnter,
|
|
234
|
+
handlePanelEnter,
|
|
235
|
+
handlePanelLeave,
|
|
236
|
+
handleFocusOut
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function resolveLinkColor(variant, isTransparent, scrolled) {
|
|
240
|
+
if ((variant === "overlay" || isTransparent) && !(isTransparent && scrolled)) return "text-white hover:text-white/70";
|
|
241
|
+
return "text-foreground hover:text-muted-foreground";
|
|
242
|
+
}
|
|
243
|
+
function useMobileItems(navItems) {
|
|
244
|
+
return React$1.useMemo(() => navItems.map((item) => ({
|
|
245
|
+
label: item.label,
|
|
246
|
+
href: item.href ?? "",
|
|
247
|
+
children: item.megaMenuCategories?.map((cat) => ({
|
|
248
|
+
label: cat.title,
|
|
249
|
+
href: cat.href
|
|
250
|
+
})) ?? []
|
|
251
|
+
})), [navItems]);
|
|
252
|
+
}
|
|
253
|
+
function Header({ variant = "default", navItems = EMPTY_NAV, utilityLinks = EMPTY_UTILITY, promotionEnabled = true, promotionMessages = EMPTY_MESSAGES, logo, onSearchClick, onCartClick, cartHref, labels, className }) {
|
|
254
|
+
const MenuIcon = useIcon("menu");
|
|
255
|
+
const SearchIcon = useIcon("search");
|
|
256
|
+
const CartIcon = useIcon("cart");
|
|
257
|
+
const ChevronRightIcon = useIcon("chevronRight");
|
|
258
|
+
const state = useHeaderState(variant, navItems);
|
|
259
|
+
const { isTransparent, scrolled, menuOpen, setMenuOpen, activeIndex } = state;
|
|
260
|
+
const { headerRef, activeItem, showPanel, handleFocusOut } = state;
|
|
261
|
+
const { scheduleClose, handleTriggerEnter, handlePanelEnter, handlePanelLeave } = state;
|
|
262
|
+
const hasBackground = variant === "default" || isTransparent && scrolled;
|
|
263
|
+
const linkColor = resolveLinkColor(variant, isTransparent, scrolled);
|
|
264
|
+
const navLinkClasses = `text-sm font-sans tracking-wide transition-colors duration-200 ${linkColor}`;
|
|
265
|
+
const mobileItems = useMobileItems(navItems);
|
|
266
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("header", {
|
|
267
|
+
ref: headerRef,
|
|
268
|
+
className: cn("fixed inset-x-0 top-0 z-50 transition-colors duration-200", hasBackground ? "bg-background" : "bg-transparent", className),
|
|
269
|
+
onBlur: handleFocusOut,
|
|
270
|
+
children: [
|
|
271
|
+
/* @__PURE__ */ jsx(PromotionBar, {
|
|
272
|
+
enabled: promotionEnabled,
|
|
273
|
+
messages: promotionMessages
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ jsx(MobileHeader, {
|
|
276
|
+
logo,
|
|
277
|
+
linkColor,
|
|
278
|
+
onSearchClick,
|
|
279
|
+
cartHref,
|
|
280
|
+
onCartClick,
|
|
281
|
+
menuOpen,
|
|
282
|
+
setMenuOpen,
|
|
283
|
+
labels,
|
|
284
|
+
SearchIcon,
|
|
285
|
+
CartIcon,
|
|
286
|
+
MenuIcon
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ jsx(DesktopHeader, {
|
|
289
|
+
logo,
|
|
290
|
+
navItems,
|
|
291
|
+
utilityLinks,
|
|
292
|
+
linkColor,
|
|
293
|
+
navLinkClasses,
|
|
294
|
+
hasBackground,
|
|
295
|
+
activeIndex,
|
|
296
|
+
onSearchClick,
|
|
297
|
+
cartHref,
|
|
298
|
+
onCartClick,
|
|
299
|
+
labels,
|
|
300
|
+
handleTriggerEnter,
|
|
301
|
+
scheduleClose,
|
|
302
|
+
SearchIcon,
|
|
303
|
+
CartIcon
|
|
304
|
+
}),
|
|
305
|
+
/* @__PURE__ */ jsx(MegaMenuPanel, {
|
|
306
|
+
activeItem: activeItem ?? null,
|
|
307
|
+
showPanel,
|
|
308
|
+
onMouseEnter: handlePanelEnter,
|
|
309
|
+
onMouseLeave: handlePanelLeave,
|
|
310
|
+
ChevronRightIcon
|
|
311
|
+
})
|
|
312
|
+
]
|
|
313
|
+
}), /* @__PURE__ */ jsx(MobileMenuDrawer, {
|
|
314
|
+
open: menuOpen,
|
|
315
|
+
onOpenChange: setMenuOpen,
|
|
316
|
+
items: mobileItems,
|
|
317
|
+
labels: labels ? {
|
|
318
|
+
close: labels.closeMenu,
|
|
319
|
+
back: void 0
|
|
320
|
+
} : void 0
|
|
321
|
+
})] });
|
|
322
|
+
}
|
|
323
|
+
//#endregion
|
|
324
|
+
export { Header };
|
|
325
|
+
|
|
326
|
+
//# sourceMappingURL=header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.mjs","names":["React"],"sources":["../../../../src/client/storefront/layout/header.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { useIcon } from \"../../icons/icon-context\"\nimport { cn } from \"../../ui/utils\"\nimport { MobileMenuDrawer } from \"./mobile-menu-drawer\"\nimport { PromotionBar } from \"./promotion-bar\"\nimport type { HeaderProps, NavItem, NavChild } from \"../types\"\n\ntype IconComponent = React.ComponentType<{ className?: string }>\nconst CLOSE_DELAY = 150\nconst EMPTY_NAV: NavItem[] = []\nconst EMPTY_UTILITY: NavChild[] = []\nconst EMPTY_MESSAGES: string[] = []\n\nfunction CartElement({ cartHref, onCartClick, linkColor, label, CartIcon }: {\n cartHref?: string; onCartClick?: () => void; linkColor: string; label: string; CartIcon: IconComponent\n}) {\n if (cartHref) {\n return (\n <a href={cartHref} className={cn(\"relative p-1 transition-colors duration-200 hit-area-2\", linkColor)} aria-label={label}>\n <CartIcon className=\"size-5\" />\n </a>\n )\n }\n if (onCartClick) {\n return (\n <button onClick={onCartClick} className={cn(\"relative p-1 transition-colors duration-200 hit-area-2\", linkColor)} aria-label={label}>\n <CartIcon className=\"size-5\" />\n </button>\n )\n }\n return null\n}\n\nfunction MegaMenuPanel({ activeItem, showPanel, onMouseEnter, onMouseLeave, ChevronRightIcon }: {\n activeItem: NavItem | null; showPanel: boolean; onMouseEnter: () => void; onMouseLeave: () => void; ChevronRightIcon: IconComponent\n}) {\n const categories = activeItem?.megaMenuCategories\n const featured = activeItem?.megaMenuFeatured\n\n return (\n <div\n className={cn(\n \"hidden overflow-hidden transition-all duration-300 ease-out lg:block\",\n showPanel ? \"max-h-125 translate-y-0 opacity-100\" : \"max-h-0 -translate-y-1 opacity-0\",\n )}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n role=\"region\"\n aria-label=\"Submenu\"\n >\n <div className=\"border-b border-border bg-background p-8\">\n {categories && categories.length > 0 ? (\n <div className=\"flex gap-12\">\n <MegaMenuCategories categories={categories} />\n {featured && featured.length > 0 && (\n <MegaMenuFeatured featured={featured} ChevronRightIcon={ChevronRightIcon} />\n )}\n </div>\n ) : null}\n </div>\n </div>\n )\n}\n\nfunction MegaMenuCategories({ categories }: { categories: NonNullable<NavItem[\"megaMenuCategories\"]> }) {\n const columnGroups: (typeof categories)[] = []\n for (const cat of categories) {\n if (cat.stackWithPrevious && columnGroups.length > 0) {\n columnGroups[columnGroups.length - 1]!.push(cat)\n } else {\n columnGroups.push([cat])\n }\n }\n\n return (\n <div className=\"flex flex-1 justify-between gap-10\">\n {columnGroups.map((group) => (\n <div\n key={group[0]!.id ?? group[0]!.title}\n className=\"flex w-50 min-w-0 flex-col gap-6\"\n >\n {group.map((cat) => (\n <div key={cat.id ?? cat.title}>\n <a\n href={cat.href}\n className=\"mb-3 block text-sm font-normal text-foreground transition-colors duration-200 hover:text-muted-foreground\"\n >\n {cat.title}\n </a>\n <ul className=\"flex flex-col gap-1.5\">\n {cat.items?.map((item) => (\n <li key={item.href}>\n <a\n href={item.href}\n className=\"text-sm text-muted-foreground transition-colors duration-200 hover:text-foreground\"\n >\n {item.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n ))}\n </div>\n )\n}\n\nfunction MegaMenuFeatured({ featured, ChevronRightIcon }: {\n featured: NonNullable<NavItem[\"megaMenuFeatured\"]>; ChevronRightIcon: IconComponent\n}) {\n return (\n <div className=\"flex shrink-0 gap-6\">\n {featured.map((feat) => (\n <a key={feat.id ?? feat.href} href={feat.href} className=\"group w-40\">\n <div className=\"relative mb-2 aspect-[4/5] overflow-hidden rounded-[var(--enad-card-radius)] bg-muted\">\n {feat.image?.src && (\n <img\n src={feat.image.src}\n alt={feat.image.alt ?? feat.label}\n className=\"size-full object-cover transition-transform duration-[var(--enad-image-hover-duration)] group-hover:scale-[var(--enad-image-hover-scale)]\"\n />\n )}\n </div>\n <span className=\"flex items-center gap-1 text-sm text-foreground transition-colors duration-200 group-hover:text-muted-foreground\">\n {feat.label}\n <ChevronRightIcon className=\"mt-px size-4\" />\n </span>\n </a>\n ))}\n </div>\n )\n}\n\ninterface MobileHeaderProps {\n logo: React.ReactNode; linkColor: string; onSearchClick?: () => void\n cartHref?: string; onCartClick?: () => void; menuOpen: boolean\n setMenuOpen: (open: boolean) => void; labels?: HeaderProps[\"labels\"]\n SearchIcon: IconComponent; CartIcon: IconComponent; MenuIcon: IconComponent\n}\n\nfunction MobileHeader({ logo, linkColor, onSearchClick, cartHref, onCartClick, menuOpen, setMenuOpen, labels, SearchIcon, CartIcon, MenuIcon }: MobileHeaderProps) {\n return (\n <div className=\"flex items-center justify-between px-4 py-3 lg:hidden\">\n <a href=\"/\" className=\"shrink-0\">{logo}</a>\n\n <div className=\"flex items-center gap-3\">\n {onSearchClick && (\n <button\n onClick={onSearchClick}\n className={cn(\"relative p-1 transition-colors duration-200 hit-area-2\", linkColor)}\n aria-label={labels?.search ?? \"Search\"}\n >\n <SearchIcon className=\"size-5\" />\n </button>\n )}\n <CartElement\n cartHref={cartHref}\n onCartClick={onCartClick}\n linkColor={linkColor}\n label={labels?.cart ?? \"Cart\"}\n CartIcon={CartIcon}\n />\n <button\n onClick={() => setMenuOpen(true)}\n className={cn(\"relative p-1 transition-colors duration-200 hit-area-2\", linkColor)}\n aria-label={labels?.menu ?? \"Open menu\"}\n aria-expanded={menuOpen}\n >\n <MenuIcon className=\"size-5\" />\n </button>\n </div>\n </div>\n )\n}\n\ninterface DesktopHeaderProps {\n logo: React.ReactNode; navItems: NavItem[]; utilityLinks: NavChild[]\n linkColor: string; navLinkClasses: string; hasBackground: boolean\n activeIndex: number | null; onSearchClick?: () => void\n cartHref?: string; onCartClick?: () => void; labels?: HeaderProps[\"labels\"]\n handleTriggerEnter: (index: number) => void; scheduleClose: () => void\n SearchIcon: IconComponent; CartIcon: IconComponent\n}\n\nfunction DesktopHeader({ logo, navItems, utilityLinks, linkColor, navLinkClasses, hasBackground, activeIndex, onSearchClick, cartHref, onCartClick, labels, handleTriggerEnter, scheduleClose, SearchIcon, CartIcon }: DesktopHeaderProps) {\n return (\n <div\n className={cn(\n \"hidden items-center justify-between px-8 py-4 lg:flex\",\n hasBackground && \"border-b border-border\",\n )}\n >\n <a href=\"/\" className=\"shrink-0\">{logo}</a>\n\n <nav className=\"flex flex-1 items-center justify-center gap-6\">\n {navItems.map((item, index) => {\n const hasDropdown = (item.megaMenuCategories?.length ?? 0) > 0\n return (\n <a\n key={item.id ?? item.label}\n href={item.href ?? \"\"}\n className={navLinkClasses}\n onMouseEnter={() => handleTriggerEnter(index)}\n onMouseLeave={scheduleClose}\n onFocus={() => handleTriggerEnter(index)}\n {...(hasDropdown && {\n \"aria-expanded\": activeIndex === index,\n \"aria-haspopup\": \"true\" as const,\n })}\n >\n {item.label}\n </a>\n )\n })}\n </nav>\n\n <div className=\"flex shrink-0 items-center gap-5\">\n {utilityLinks.map((link) => (\n <a key={link.label} href={link.href} className={navLinkClasses}>\n {link.label}\n </a>\n ))}\n\n {onSearchClick && (\n <button\n onClick={onSearchClick}\n className={cn(\"relative p-1 transition-colors duration-200 hit-area-2\", linkColor)}\n aria-label={labels?.search ?? \"Search\"}\n >\n <SearchIcon className=\"size-5\" />\n </button>\n )}\n\n <CartElement\n cartHref={cartHref}\n onCartClick={onCartClick}\n linkColor={linkColor}\n label={labels?.cart ?? \"Cart\"}\n CartIcon={CartIcon}\n />\n </div>\n </div>\n )\n}\n\nfunction useHeaderState(variant: HeaderProps[\"variant\"], navItems: NavItem[]) {\n const [menuOpen, setMenuOpen] = React.useState(false)\n const [activeIndex, setActiveIndex] = React.useState<number | null>(null)\n const [scrolled, setScrolled] = React.useState(false)\n const closeTimer = React.useRef<ReturnType<typeof setTimeout> | null>(null)\n const headerRef = React.useRef<HTMLElement>(null)\n\n const isTransparent = variant === \"transparent\"\n\n React.useEffect(() => {\n if (!isTransparent) return\n const handleScroll = () => setScrolled(window.scrollY > 50)\n handleScroll()\n window.addEventListener(\"scroll\", handleScroll, { passive: true })\n return () => window.removeEventListener(\"scroll\", handleScroll)\n }, [isTransparent])\n\n const cancelClose = React.useCallback(() => {\n if (closeTimer.current) {\n clearTimeout(closeTimer.current)\n closeTimer.current = null\n }\n }, [])\n\n const scheduleClose = React.useCallback(() => {\n cancelClose()\n closeTimer.current = setTimeout(() => {\n setActiveIndex(null)\n }, CLOSE_DELAY)\n }, [cancelClose])\n\n const handleTriggerEnter = React.useCallback(\n (index: number) => {\n cancelClose()\n const item = navItems[index]\n if ((item?.megaMenuCategories?.length ?? 0) > 0) {\n setActiveIndex(index)\n } else {\n setActiveIndex(null)\n }\n },\n [cancelClose, navItems],\n )\n\n const handlePanelEnter = React.useCallback(() => cancelClose(), [cancelClose])\n const handlePanelLeave = React.useCallback(() => scheduleClose(), [scheduleClose])\n\n React.useEffect(() => {\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key === \"Escape\") setActiveIndex(null)\n }\n document.addEventListener(\"keydown\", handleKeyDown)\n return () => document.removeEventListener(\"keydown\", handleKeyDown)\n }, [])\n\n const handleFocusOut = React.useCallback((e: React.FocusEvent) => {\n if (\n headerRef.current &&\n e.relatedTarget instanceof Node &&\n !headerRef.current.contains(e.relatedTarget)\n ) {\n setActiveIndex(null)\n }\n }, [])\n\n const activeItem = activeIndex !== null ? navItems[activeIndex] : null\n const showPanel = activeItem !== null && (activeItem?.megaMenuCategories?.length ?? 0) > 0\n\n return { menuOpen, setMenuOpen, activeIndex, scrolled, headerRef, isTransparent,\n activeItem, showPanel, scheduleClose, handleTriggerEnter, handlePanelEnter, handlePanelLeave, handleFocusOut }\n}\n\nfunction resolveLinkColor(variant: HeaderProps[\"variant\"], isTransparent: boolean, scrolled: boolean): string {\n const isOverlay = variant === \"overlay\" || isTransparent\n if (isOverlay && !(isTransparent && scrolled)) return \"text-white hover:text-white/70\"\n return \"text-foreground hover:text-muted-foreground\"\n}\n\nfunction useMobileItems(navItems: NavItem[]) {\n return React.useMemo(() => navItems.map((item) => ({\n label: item.label, href: item.href ?? \"\",\n children: item.megaMenuCategories?.map((cat) => ({ label: cat.title, href: cat.href })) ?? [],\n })), [navItems])\n}\n\nfunction Header({\n variant = \"default\",\n navItems = EMPTY_NAV,\n utilityLinks = EMPTY_UTILITY,\n promotionEnabled = true,\n promotionMessages = EMPTY_MESSAGES,\n logo,\n onSearchClick,\n onCartClick,\n cartHref,\n labels,\n className,\n}: HeaderProps) {\n const MenuIcon = useIcon(\"menu\")\n const SearchIcon = useIcon(\"search\")\n const CartIcon = useIcon(\"cart\")\n const ChevronRightIcon = useIcon(\"chevronRight\")\n\n const state = useHeaderState(variant, navItems)\n const { isTransparent, scrolled, menuOpen, setMenuOpen, activeIndex } = state\n const { headerRef, activeItem, showPanel, handleFocusOut } = state\n const { scheduleClose, handleTriggerEnter, handlePanelEnter, handlePanelLeave } = state\n\n const hasBackground = variant === \"default\" || (isTransparent && scrolled)\n const linkColor = resolveLinkColor(variant, isTransparent, scrolled)\n const navLinkClasses = `text-sm font-sans tracking-wide transition-colors duration-200 ${linkColor}`\n const mobileItems = useMobileItems(navItems)\n\n return (\n <>\n <header\n ref={headerRef}\n className={cn(\n \"fixed inset-x-0 top-0 z-50 transition-colors duration-200\",\n hasBackground ? \"bg-background\" : \"bg-transparent\",\n className,\n )}\n onBlur={handleFocusOut}\n >\n <PromotionBar enabled={promotionEnabled} messages={promotionMessages} />\n\n <MobileHeader\n logo={logo}\n linkColor={linkColor}\n onSearchClick={onSearchClick}\n cartHref={cartHref}\n onCartClick={onCartClick}\n menuOpen={menuOpen}\n setMenuOpen={setMenuOpen}\n labels={labels}\n SearchIcon={SearchIcon}\n CartIcon={CartIcon}\n MenuIcon={MenuIcon}\n />\n\n <DesktopHeader\n logo={logo}\n navItems={navItems}\n utilityLinks={utilityLinks}\n linkColor={linkColor}\n navLinkClasses={navLinkClasses}\n hasBackground={hasBackground}\n activeIndex={activeIndex}\n onSearchClick={onSearchClick}\n cartHref={cartHref}\n onCartClick={onCartClick}\n labels={labels}\n handleTriggerEnter={handleTriggerEnter}\n scheduleClose={scheduleClose}\n SearchIcon={SearchIcon}\n CartIcon={CartIcon}\n />\n\n <MegaMenuPanel\n activeItem={activeItem ?? null}\n showPanel={showPanel}\n onMouseEnter={handlePanelEnter}\n onMouseLeave={handlePanelLeave}\n ChevronRightIcon={ChevronRightIcon}\n />\n </header>\n\n <MobileMenuDrawer\n open={menuOpen}\n onOpenChange={setMenuOpen}\n items={mobileItems}\n labels={labels ? { close: labels.closeMenu, back: undefined } : undefined}\n />\n </>\n )\n}\n\nexport { Header, type HeaderProps }\n"],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FooterProps, HeaderProps, MobileMenuDrawerProps, PromotionBarProps } from "../types.js";
|
|
2
|
+
import { Footer } from "./footer.js";
|
|
3
|
+
import { Header } from "./header.js";
|
|
4
|
+
import { MobileMenuDrawer } from "./mobile-menu-drawer.js";
|
|
5
|
+
import { PromotionBar } from "./promotion-bar.js";
|
|
6
|
+
export { Footer, type FooterProps, Header, type HeaderProps, MobileMenuDrawer, type MobileMenuDrawerProps, PromotionBar, type PromotionBarProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MobileMenuDrawerProps } from "../types.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/client/storefront/layout/mobile-menu-drawer.d.ts
|
|
5
|
+
declare function MobileMenuDrawer({
|
|
6
|
+
open,
|
|
7
|
+
onOpenChange,
|
|
8
|
+
items,
|
|
9
|
+
labels,
|
|
10
|
+
className
|
|
11
|
+
}: MobileMenuDrawerProps): react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { MobileMenuDrawer, type MobileMenuDrawerProps };
|
|
14
|
+
//# sourceMappingURL=mobile-menu-drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-menu-drawer.d.ts","names":[],"sources":["../../../../src/client/storefront/layout/mobile-menu-drawer.tsx"],"mappings":";;;;iBASS,gBAAA,CAAA;EAAmB,IAAA;EAAM,YAAA;EAAc,KAAA;EAAO,MAAA;EAAQ;AAAA,GAAa,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIcon } from "../../icons/icon-context.mjs";
|
|
3
|
+
import { cn } from "../../ui/utils.mjs";
|
|
4
|
+
import { Separator } from "../../ui-resolver/separator.mjs";
|
|
5
|
+
import { Sheet, SheetContent, SheetTitle } from "../../ui-resolver/sheet.mjs";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/client/storefront/layout/mobile-menu-drawer.tsx
|
|
9
|
+
function MobileMenuDrawer({ open, onOpenChange, items, labels, className }) {
|
|
10
|
+
const ChevronRightIcon = useIcon("chevronRight");
|
|
11
|
+
const ChevronLeftIcon = useIcon("chevronLeft");
|
|
12
|
+
const [activeSubmenu, setActiveSubmenu] = React$1.useState(null);
|
|
13
|
+
const handleClose = () => {
|
|
14
|
+
setActiveSubmenu(null);
|
|
15
|
+
onOpenChange(false);
|
|
16
|
+
};
|
|
17
|
+
const handleBack = () => {
|
|
18
|
+
setActiveSubmenu(null);
|
|
19
|
+
};
|
|
20
|
+
React$1.useEffect(() => {
|
|
21
|
+
if (!open) setActiveSubmenu(null);
|
|
22
|
+
}, [open]);
|
|
23
|
+
const activeItem = activeSubmenu !== null ? items[activeSubmenu] : null;
|
|
24
|
+
return /* @__PURE__ */ jsx(Sheet, {
|
|
25
|
+
open,
|
|
26
|
+
onOpenChange,
|
|
27
|
+
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
28
|
+
side: "left",
|
|
29
|
+
className: cn("w-full max-w-sm p-0", className),
|
|
30
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, {
|
|
31
|
+
className: "sr-only",
|
|
32
|
+
children: labels?.close ?? "Menu"
|
|
33
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: "flex h-full flex-col overflow-y-auto",
|
|
35
|
+
children: activeItem && activeItem.children && activeItem.children.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
className: "flex flex-col",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxs("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
onClick: handleBack,
|
|
41
|
+
className: "flex items-center gap-2 px-4 py-4 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",
|
|
42
|
+
children: [/* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-4" }), labels?.back ?? "Back"]
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
45
|
+
/* @__PURE__ */ jsx("a", {
|
|
46
|
+
href: activeItem.href,
|
|
47
|
+
onClick: handleClose,
|
|
48
|
+
className: "px-4 py-3 text-base font-medium text-foreground transition-colors hover:text-muted-foreground",
|
|
49
|
+
children: activeItem.label
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
52
|
+
activeItem.children.map((child) => /* @__PURE__ */ jsx("a", {
|
|
53
|
+
href: child.href,
|
|
54
|
+
onClick: handleClose,
|
|
55
|
+
className: "px-4 py-3 text-sm text-foreground transition-colors hover:text-muted-foreground",
|
|
56
|
+
children: child.label
|
|
57
|
+
}, child.href))
|
|
58
|
+
]
|
|
59
|
+
}) : /* @__PURE__ */ jsx("nav", {
|
|
60
|
+
className: "flex flex-col",
|
|
61
|
+
children: items.map((item, index) => {
|
|
62
|
+
const hasChildren = (item.children?.length ?? 0) > 0;
|
|
63
|
+
return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [hasChildren ? /* @__PURE__ */ jsxs("button", {
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: () => setActiveSubmenu(index),
|
|
66
|
+
className: "flex items-center justify-between px-4 py-3 text-base text-foreground transition-colors hover:text-muted-foreground",
|
|
67
|
+
children: [item.label, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 text-muted-foreground" })]
|
|
68
|
+
}) : /* @__PURE__ */ jsx("a", {
|
|
69
|
+
href: item.href,
|
|
70
|
+
onClick: handleClose,
|
|
71
|
+
className: "px-4 py-3 text-base text-foreground transition-colors hover:text-muted-foreground",
|
|
72
|
+
children: item.label
|
|
73
|
+
}), /* @__PURE__ */ jsx(Separator, {})] }, item.href || item.label);
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
export { MobileMenuDrawer };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=mobile-menu-drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-menu-drawer.mjs","names":["React"],"sources":["../../../../src/client/storefront/layout/mobile-menu-drawer.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useIcon } from \"../../icons/icon-context\";\nimport { Sheet, SheetContent, SheetTitle } from \"../../ui-resolver/sheet\";\nimport { Separator } from \"../../ui-resolver/separator\";\nimport { cn } from \"../../ui/utils\";\nimport type { MobileMenuDrawerProps } from \"../types\";\n\nfunction MobileMenuDrawer({ open, onOpenChange, items, labels, className }: MobileMenuDrawerProps) {\n const ChevronRightIcon = useIcon(\"chevronRight\");\n const ChevronLeftIcon = useIcon(\"chevronLeft\");\n\n const [activeSubmenu, setActiveSubmenu] = React.useState<number | null>(null);\n\n const handleClose = () => {\n setActiveSubmenu(null);\n onOpenChange(false);\n };\n\n const handleBack = () => {\n setActiveSubmenu(null);\n };\n\n React.useEffect(() => {\n if (!open) setActiveSubmenu(null);\n }, [open]);\n\n const activeItem = activeSubmenu !== null ? items[activeSubmenu] : null;\n\n return (\n <Sheet open={open} onOpenChange={onOpenChange}>\n <SheetContent side=\"left\" className={cn(\"w-full max-w-sm p-0\", className)}>\n <SheetTitle className=\"sr-only\">{labels?.close ?? \"Menu\"}</SheetTitle>\n\n <div className=\"flex h-full flex-col overflow-y-auto\">\n {/* Submenu view */}\n {activeItem && activeItem.children && activeItem.children.length > 0 ? (\n <div className=\"flex flex-col\">\n <button\n type=\"button\"\n onClick={handleBack}\n className=\"flex items-center gap-2 px-4 py-4 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground\"\n >\n <ChevronLeftIcon className=\"size-4\" />\n {labels?.back ?? \"Back\"}\n </button>\n <Separator />\n <a\n href={activeItem.href}\n onClick={handleClose}\n className=\"px-4 py-3 text-base font-medium text-foreground transition-colors hover:text-muted-foreground\"\n >\n {activeItem.label}\n </a>\n <Separator />\n {activeItem.children.map((child) => (\n <a\n key={child.href}\n href={child.href}\n onClick={handleClose}\n className=\"px-4 py-3 text-sm text-foreground transition-colors hover:text-muted-foreground\"\n >\n {child.label}\n </a>\n ))}\n </div>\n ) : (\n /* Root menu */\n <nav className=\"flex flex-col\">\n {items.map((item, index) => {\n const hasChildren = (item.children?.length ?? 0) > 0;\n return (\n <React.Fragment key={item.href || item.label}>\n {hasChildren ? (\n <button\n type=\"button\"\n onClick={() => setActiveSubmenu(index)}\n className=\"flex items-center justify-between px-4 py-3 text-base text-foreground transition-colors hover:text-muted-foreground\"\n >\n {item.label}\n <ChevronRightIcon className=\"size-4 text-muted-foreground\" />\n </button>\n ) : (\n <a\n href={item.href}\n onClick={handleClose}\n className=\"px-4 py-3 text-base text-foreground transition-colors hover:text-muted-foreground\"\n >\n {item.label}\n </a>\n )}\n <Separator />\n </React.Fragment>\n );\n })}\n </nav>\n )}\n </div>\n </SheetContent>\n </Sheet>\n );\n}\n\nexport { MobileMenuDrawer, type MobileMenuDrawerProps };\n"],"mappings":";;;;;;;;AASA,SAAS,iBAAiB,EAAE,MAAM,cAAc,OAAO,QAAQ,aAAoC;CACjG,MAAM,mBAAmB,QAAQ,eAAe;CAChD,MAAM,kBAAkB,QAAQ,cAAc;CAE9C,MAAM,CAAC,eAAe,oBAAoBA,QAAM,SAAwB,KAAK;CAE7E,MAAM,oBAAoB;AACxB,mBAAiB,KAAK;AACtB,eAAa,MAAM;;CAGrB,MAAM,mBAAmB;AACvB,mBAAiB,KAAK;;AAGxB,SAAM,gBAAgB;AACpB,MAAI,CAAC,KAAM,kBAAiB,KAAK;IAChC,CAAC,KAAK,CAAC;CAEV,MAAM,aAAa,kBAAkB,OAAO,MAAM,iBAAiB;AAEnE,QACE,oBAAC,OAAD;EAAa;EAAoB;YAC/B,qBAAC,cAAD;GAAc,MAAK;GAAO,WAAW,GAAG,uBAAuB,UAAU;aAAzE,CACE,oBAAC,YAAD;IAAY,WAAU;cAAW,QAAQ,SAAS;IAAoB,CAAA,EAEtE,oBAAC,OAAD;IAAK,WAAU;cAEZ,cAAc,WAAW,YAAY,WAAW,SAAS,SAAS,IACjE,qBAAC,OAAD;KAAK,WAAU;eAAf;MACE,qBAAC,UAAD;OACE,MAAK;OACL,SAAS;OACT,WAAU;iBAHZ,CAKE,oBAAC,iBAAD,EAAiB,WAAU,UAAW,CAAA,EACrC,QAAQ,QAAQ,OACV;;MACT,oBAAC,WAAD,EAAa,CAAA;MACb,oBAAC,KAAD;OACE,MAAM,WAAW;OACjB,SAAS;OACT,WAAU;iBAET,WAAW;OACV,CAAA;MACJ,oBAAC,WAAD,EAAa,CAAA;MACZ,WAAW,SAAS,KAAK,UACxB,oBAAC,KAAD;OAEE,MAAM,MAAM;OACZ,SAAS;OACT,WAAU;iBAET,MAAM;OACL,EANG,MAAM,KAMT,CACJ;MACE;SAGN,oBAAC,OAAD;KAAK,WAAU;eACZ,MAAM,KAAK,MAAM,UAAU;MAC1B,MAAM,eAAe,KAAK,UAAU,UAAU,KAAK;AACnD,aACE,qBAACA,QAAM,UAAP,EAAA,UAAA,CACG,cACC,qBAAC,UAAD;OACE,MAAK;OACL,eAAe,iBAAiB,MAAM;OACtC,WAAU;iBAHZ,CAKG,KAAK,OACN,oBAAC,kBAAD,EAAkB,WAAU,gCAAiC,CAAA,CACtD;WAET,oBAAC,KAAD;OACE,MAAM,KAAK;OACX,SAAS;OACT,WAAU;iBAET,KAAK;OACJ,CAAA,EAEN,oBAAC,WAAD,EAAa,CAAA,CACE,EAAA,EApBI,KAAK,QAAQ,KAAK,MAoBtB;OAEnB;KACE,CAAA;IAEJ,CAAA,CACO;;EACT,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PromotionBarProps } from "../types.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/client/storefront/layout/promotion-bar.d.ts
|
|
5
|
+
declare function PromotionBar({
|
|
6
|
+
enabled,
|
|
7
|
+
messages,
|
|
8
|
+
onDismiss,
|
|
9
|
+
className
|
|
10
|
+
}: PromotionBarProps): react_jsx_runtime0.JSX.Element | null;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { PromotionBar, type PromotionBarProps };
|
|
13
|
+
//# sourceMappingURL=promotion-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-bar.d.ts","names":[],"sources":["../../../../src/client/storefront/layout/promotion-bar.tsx"],"mappings":";;;;iBAQS,YAAA,CAAA;EACP,OAAA;EACA,QAAA;EACA,SAAA;EACA;AAAA,GACC,iBAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIcon } from "../../icons/icon-context.mjs";
|
|
3
|
+
import { cn } from "../../ui/utils.mjs";
|
|
4
|
+
import { Button } from "../../ui/button.mjs";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/client/storefront/layout/promotion-bar.tsx
|
|
8
|
+
function PromotionBar({ enabled = true, messages = [], onDismiss, className }) {
|
|
9
|
+
const ChevronLeftIcon = useIcon("chevronLeft");
|
|
10
|
+
const ChevronRightIcon = useIcon("chevronRight");
|
|
11
|
+
const CloseIcon = useIcon("close");
|
|
12
|
+
const [currentIndex, setCurrentIndex] = React$1.useState(0);
|
|
13
|
+
const [dismissed, setDismissed] = React$1.useState(false);
|
|
14
|
+
if (!enabled || dismissed || messages.length === 0) return null;
|
|
15
|
+
const hasMultiple = messages.length > 1;
|
|
16
|
+
const prev = () => {
|
|
17
|
+
setCurrentIndex((i) => (i - 1 + messages.length) % messages.length);
|
|
18
|
+
};
|
|
19
|
+
const next = () => {
|
|
20
|
+
setCurrentIndex((i) => (i + 1) % messages.length);
|
|
21
|
+
};
|
|
22
|
+
const handleDismiss = () => {
|
|
23
|
+
setDismissed(true);
|
|
24
|
+
onDismiss?.();
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: cn("relative flex items-center justify-center bg-accent text-accent-foreground px-4 py-2 text-center text-sm", className),
|
|
28
|
+
children: [
|
|
29
|
+
hasMultiple && /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
variant: "ghost",
|
|
31
|
+
size: "icon",
|
|
32
|
+
className: "absolute left-1 size-7 text-accent-foreground hover:bg-accent-foreground/10",
|
|
33
|
+
onClick: prev,
|
|
34
|
+
"aria-label": "Previous message",
|
|
35
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-4" })
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("span", {
|
|
38
|
+
className: "px-8",
|
|
39
|
+
children: messages[currentIndex]
|
|
40
|
+
}),
|
|
41
|
+
hasMultiple && /* @__PURE__ */ jsx(Button, {
|
|
42
|
+
variant: "ghost",
|
|
43
|
+
size: "icon",
|
|
44
|
+
className: "absolute right-8 size-7 text-accent-foreground hover:bg-accent-foreground/10",
|
|
45
|
+
onClick: next,
|
|
46
|
+
"aria-label": "Next message",
|
|
47
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4" })
|
|
48
|
+
}),
|
|
49
|
+
onDismiss && /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
size: "icon",
|
|
52
|
+
className: "absolute right-1 size-7 text-accent-foreground hover:bg-accent-foreground/10",
|
|
53
|
+
onClick: handleDismiss,
|
|
54
|
+
"aria-label": "Dismiss",
|
|
55
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-4" })
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { PromotionBar };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=promotion-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-bar.mjs","names":["React"],"sources":["../../../../src/client/storefront/layout/promotion-bar.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { useIcon } from \"../../icons/icon-context\"\nimport { Button } from \"../../ui/button\"\nimport { cn } from \"../../ui/utils\"\nimport type { PromotionBarProps } from \"../types\"\n\nfunction PromotionBar({\n enabled = true,\n messages = [],\n onDismiss,\n className,\n}: PromotionBarProps) {\n const ChevronLeftIcon = useIcon(\"chevronLeft\")\n const ChevronRightIcon = useIcon(\"chevronRight\")\n const CloseIcon = useIcon(\"close\")\n\n const [currentIndex, setCurrentIndex] = React.useState(0)\n const [dismissed, setDismissed] = React.useState(false)\n\n if (!enabled || dismissed || messages.length === 0) return null\n\n const hasMultiple = messages.length > 1\n\n const prev = () => {\n setCurrentIndex((i) => (i - 1 + messages.length) % messages.length)\n }\n\n const next = () => {\n setCurrentIndex((i) => (i + 1) % messages.length)\n }\n\n const handleDismiss = () => {\n setDismissed(true)\n onDismiss?.()\n }\n\n return (\n <div\n className={cn(\n \"relative flex items-center justify-center bg-accent text-accent-foreground px-4 py-2 text-center text-sm\",\n className,\n )}\n >\n {hasMultiple && (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"absolute left-1 size-7 text-accent-foreground hover:bg-accent-foreground/10\"\n onClick={prev}\n aria-label=\"Previous message\"\n >\n <ChevronLeftIcon className=\"size-4\" />\n </Button>\n )}\n\n <span className=\"px-8\">{messages[currentIndex]}</span>\n\n {hasMultiple && (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"absolute right-8 size-7 text-accent-foreground hover:bg-accent-foreground/10\"\n onClick={next}\n aria-label=\"Next message\"\n >\n <ChevronRightIcon className=\"size-4\" />\n </Button>\n )}\n\n {onDismiss && (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"absolute right-1 size-7 text-accent-foreground hover:bg-accent-foreground/10\"\n onClick={handleDismiss}\n aria-label=\"Dismiss\"\n >\n <CloseIcon className=\"size-4\" />\n </Button>\n )}\n </div>\n )\n}\n\nexport { PromotionBar, type PromotionBarProps }\n"],"mappings":";;;;;;;AAQA,SAAS,aAAa,EACpB,UAAU,MACV,WAAW,EAAE,EACb,WACA,aACoB;CACpB,MAAM,kBAAkB,QAAQ,cAAc;CAC9C,MAAM,mBAAmB,QAAQ,eAAe;CAChD,MAAM,YAAY,QAAQ,QAAQ;CAElC,MAAM,CAAC,cAAc,mBAAmBA,QAAM,SAAS,EAAE;CACzD,MAAM,CAAC,WAAW,gBAAgBA,QAAM,SAAS,MAAM;AAEvD,KAAI,CAAC,WAAW,aAAa,SAAS,WAAW,EAAG,QAAO;CAE3D,MAAM,cAAc,SAAS,SAAS;CAEtC,MAAM,aAAa;AACjB,mBAAiB,OAAO,IAAI,IAAI,SAAS,UAAU,SAAS,OAAO;;CAGrE,MAAM,aAAa;AACjB,mBAAiB,OAAO,IAAI,KAAK,SAAS,OAAO;;CAGnD,MAAM,sBAAsB;AAC1B,eAAa,KAAK;AAClB,eAAa;;AAGf,QACE,qBAAC,OAAD;EACE,WAAW,GACT,4GACA,UACD;YAJH;GAMG,eACC,oBAAC,QAAD;IACE,SAAQ;IACR,MAAK;IACL,WAAU;IACV,SAAS;IACT,cAAW;cAEX,oBAAC,iBAAD,EAAiB,WAAU,UAAW,CAAA;IAC/B,CAAA;GAGX,oBAAC,QAAD;IAAM,WAAU;cAAQ,SAAS;IAAqB,CAAA;GAErD,eACC,oBAAC,QAAD;IACE,SAAQ;IACR,MAAK;IACL,WAAU;IACV,SAAS;IACT,cAAW;cAEX,oBAAC,kBAAD,EAAkB,WAAU,UAAW,CAAA;IAChC,CAAA;GAGV,aACC,oBAAC,QAAD;IACE,SAAQ;IACR,MAAK;IACL,WAAU;IACV,SAAS;IACT,cAAW;cAEX,oBAAC,WAAD,EAAW,WAAU,UAAW,CAAA;IACzB,CAAA;GAEP"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/client/storefront/primitives/breadcrumbs.d.ts
|
|
4
|
+
interface BreadcrumbItemData {
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
}
|
|
8
|
+
interface StorefrontBreadcrumbsProps {
|
|
9
|
+
items: BreadcrumbItemData[];
|
|
10
|
+
maxItems?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function StorefrontBreadcrumbs({
|
|
14
|
+
items,
|
|
15
|
+
maxItems,
|
|
16
|
+
className
|
|
17
|
+
}: StorefrontBreadcrumbsProps): react_jsx_runtime0.JSX.Element | null;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { type BreadcrumbItemData, StorefrontBreadcrumbs, type StorefrontBreadcrumbsProps };
|
|
20
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","names":[],"sources":["../../../../src/client/storefront/primitives/breadcrumbs.tsx"],"mappings":";;;UAWU,kBAAA;EACR,KAAA;EACA,IAAA;AAAA;AAAA,UAGQ,0BAAA;EACR,KAAA,EAAO,kBAAA;EACP,QAAA;EACA,SAAA;AAAA;AAAA,iBASO,qBAAA,CAAA;EAAwB,KAAA;EAAO,QAAA;EAAc;AAAA,GAAa,0BAAA,GAA0B,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|