@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,109 @@
|
|
|
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 { Separator } from "../../ui-resolver/separator.mjs";
|
|
6
|
+
import { Sheet, SheetContent, SheetTitle } from "../../ui-resolver/sheet.mjs";
|
|
7
|
+
import { FilterGroup } from "./filter-group.mjs";
|
|
8
|
+
import * as React$1 from "react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/client/storefront/filters/filter-panel.tsx
|
|
11
|
+
function FilterPanelContent({ filters, activeFilters, onFilterChange, productCount, onClose, labels }) {
|
|
12
|
+
const SlidersIcon = useIcon("sliders");
|
|
13
|
+
const CloseIcon = useIcon("close");
|
|
14
|
+
const totalActive = Object.values(activeFilters).reduce((sum, arr) => sum + arr.filter(Boolean).length, 0);
|
|
15
|
+
const clearAll = () => {
|
|
16
|
+
for (const filter of filters) onFilterChange(filter.key, []);
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "flex h-full flex-col",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: "flex items-center justify-between p-4",
|
|
23
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "flex items-center gap-2",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(SlidersIcon, { className: "size-5" }),
|
|
27
|
+
/* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: "text-sm font-medium",
|
|
29
|
+
children: labels?.title ?? "Filter & Sort"
|
|
30
|
+
}),
|
|
31
|
+
totalActive > 0 && /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: "flex size-5 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground",
|
|
33
|
+
children: totalActive
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
37
|
+
variant: "ghost",
|
|
38
|
+
size: "icon",
|
|
39
|
+
onClick: onClose,
|
|
40
|
+
"aria-label": "Close filters",
|
|
41
|
+
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
42
|
+
})]
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", {
|
|
46
|
+
className: "flex-1 overflow-y-auto p-4",
|
|
47
|
+
children: [totalActive > 0 && /* @__PURE__ */ jsx("button", {
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: clearAll,
|
|
50
|
+
className: "mb-4 text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground",
|
|
51
|
+
children: labels?.clearAll ?? "Clear all"
|
|
52
|
+
}), filters.map((filter) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [/* @__PURE__ */ jsx(FilterGroup, {
|
|
53
|
+
title: filter.title,
|
|
54
|
+
type: filter.type,
|
|
55
|
+
options: filter.options,
|
|
56
|
+
selected: activeFilters[filter.key] ?? [],
|
|
57
|
+
onChange: (selected) => onFilterChange(filter.key, selected)
|
|
58
|
+
}), /* @__PURE__ */ jsx(Separator, {})] }, filter.key))]
|
|
59
|
+
}),
|
|
60
|
+
productCount != null && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Separator, {}), /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: "p-4",
|
|
62
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
63
|
+
className: "w-full",
|
|
64
|
+
onClick: onClose,
|
|
65
|
+
children: labels?.showResults ? labels.showResults.replace("{count}", String(productCount)) : `Show ${productCount} results`
|
|
66
|
+
})
|
|
67
|
+
})] })
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function FilterPanel({ filters, activeFilters, onFilterChange, productCount, open, onOpenChange, labels, className }) {
|
|
72
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
73
|
+
className: cn("md:hidden", className),
|
|
74
|
+
children: /* @__PURE__ */ jsx(Sheet, {
|
|
75
|
+
open,
|
|
76
|
+
onOpenChange,
|
|
77
|
+
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
78
|
+
side: "left",
|
|
79
|
+
className: "w-full max-w-sm p-0",
|
|
80
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, {
|
|
81
|
+
className: "sr-only",
|
|
82
|
+
showClose: false,
|
|
83
|
+
children: labels?.title ?? "Filters"
|
|
84
|
+
}), /* @__PURE__ */ jsx(FilterPanelContent, {
|
|
85
|
+
filters,
|
|
86
|
+
activeFilters,
|
|
87
|
+
onFilterChange,
|
|
88
|
+
productCount,
|
|
89
|
+
onClose: () => onOpenChange(false),
|
|
90
|
+
labels
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
}), open && /* @__PURE__ */ jsx("aside", {
|
|
95
|
+
className: cn("hidden w-full max-w-[280px] md:block", className),
|
|
96
|
+
children: /* @__PURE__ */ jsx(FilterPanelContent, {
|
|
97
|
+
filters,
|
|
98
|
+
activeFilters,
|
|
99
|
+
onFilterChange,
|
|
100
|
+
productCount,
|
|
101
|
+
onClose: () => onOpenChange(false),
|
|
102
|
+
labels
|
|
103
|
+
})
|
|
104
|
+
})] });
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { FilterPanel };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=filter-panel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-panel.mjs","names":["React"],"sources":["../../../../src/client/storefront/filters/filter-panel.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useIcon } from \"../../icons/icon-context\";\nimport { Button } from \"../../ui/button\";\nimport { Separator } from \"../../ui-resolver/separator\";\nimport { Sheet, SheetContent, SheetTitle } from \"../../ui-resolver/sheet\";\nimport { cn } from \"../../ui/utils\";\nimport { FilterGroup, type FilterOption } from \"./filter-group\";\n\ninterface FilterDefinition {\n key: string;\n title: string;\n type: \"checkbox\" | \"color\" | \"price\";\n options: FilterOption[];\n}\n\ntype ActiveFilters = Record<string, string[]>;\n\ninterface FilterPanelProps {\n filters: FilterDefinition[];\n activeFilters: ActiveFilters;\n onFilterChange: (key: string, selected: string[]) => void;\n productCount?: number;\n open: boolean;\n onOpenChange: (open: boolean) => void;\n labels?: {\n title?: string;\n clearAll?: string;\n showResults?: string;\n };\n className?: string;\n}\n\nfunction FilterPanelContent({\n filters,\n activeFilters,\n onFilterChange,\n productCount,\n onClose,\n labels,\n}: {\n filters: FilterDefinition[];\n activeFilters: ActiveFilters;\n onFilterChange: (key: string, selected: string[]) => void;\n productCount?: number;\n onClose: () => void;\n labels?: FilterPanelProps[\"labels\"];\n}) {\n const SlidersIcon = useIcon(\"sliders\");\n const CloseIcon = useIcon(\"close\");\n const totalActive = Object.values(activeFilters).reduce(\n (sum, arr) => sum + arr.filter(Boolean).length,\n 0,\n );\n\n const clearAll = () => {\n for (const filter of filters) {\n onFilterChange(filter.key, []);\n }\n };\n\n return (\n <div className=\"flex h-full flex-col\">\n <div className=\"flex items-center justify-between p-4\">\n <div className=\"flex items-center gap-2\">\n <SlidersIcon className=\"size-5\" />\n <span className=\"text-sm font-medium\">{labels?.title ?? \"Filter & Sort\"}</span>\n {totalActive > 0 && (\n <span className=\"flex size-5 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground\">\n {totalActive}\n </span>\n )}\n </div>\n <Button variant=\"ghost\" size=\"icon\" onClick={onClose} aria-label=\"Close filters\">\n <CloseIcon />\n </Button>\n </div>\n\n <Separator />\n\n <div className=\"flex-1 overflow-y-auto p-4\">\n {totalActive > 0 && (\n <button\n type=\"button\"\n onClick={clearAll}\n className=\"mb-4 text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground\"\n >\n {labels?.clearAll ?? \"Clear all\"}\n </button>\n )}\n\n {filters.map((filter) => (\n <React.Fragment key={filter.key}>\n <FilterGroup\n title={filter.title}\n type={filter.type}\n options={filter.options}\n selected={activeFilters[filter.key] ?? []}\n onChange={(selected) => onFilterChange(filter.key, selected)}\n />\n <Separator />\n </React.Fragment>\n ))}\n </div>\n\n {productCount != null && (\n <>\n <Separator />\n <div className=\"p-4\">\n <Button className=\"w-full\" onClick={onClose}>\n {labels?.showResults\n ? labels.showResults.replace(\"{count}\", String(productCount))\n : `Show ${productCount} results`}\n </Button>\n </div>\n </>\n )}\n </div>\n );\n}\n\nfunction FilterPanel({\n filters,\n activeFilters,\n onFilterChange,\n productCount,\n open,\n onOpenChange,\n labels,\n className,\n}: FilterPanelProps) {\n return (\n <>\n {/* Mobile: Sheet */}\n <div className={cn(\"md:hidden\", className)}>\n <Sheet open={open} onOpenChange={onOpenChange}>\n <SheetContent side=\"left\" className=\"w-full max-w-sm p-0\">\n <SheetTitle className=\"sr-only\" showClose={false}>\n {labels?.title ?? \"Filters\"}\n </SheetTitle>\n <FilterPanelContent\n filters={filters}\n activeFilters={activeFilters}\n onFilterChange={onFilterChange}\n productCount={productCount}\n onClose={() => onOpenChange(false)}\n labels={labels}\n />\n </SheetContent>\n </Sheet>\n </div>\n\n {/* Desktop: Sidebar */}\n {open && (\n <aside className={cn(\"hidden w-full max-w-[280px] md:block\", className)}>\n <FilterPanelContent\n filters={filters}\n activeFilters={activeFilters}\n onFilterChange={onFilterChange}\n productCount={productCount}\n onClose={() => onOpenChange(false)}\n labels={labels}\n />\n </aside>\n )}\n </>\n );\n}\n\nexport { FilterPanel, type FilterPanelProps, type FilterDefinition, type ActiveFilters };\n"],"mappings":";;;;;;;;;;AAkCA,SAAS,mBAAmB,EAC1B,SACA,eACA,gBACA,cACA,SACA,UAQC;CACD,MAAM,cAAc,QAAQ,UAAU;CACtC,MAAM,YAAY,QAAQ,QAAQ;CAClC,MAAM,cAAc,OAAO,OAAO,cAAc,CAAC,QAC9C,KAAK,QAAQ,MAAM,IAAI,OAAO,QAAQ,CAAC,QACxC,EACD;CAED,MAAM,iBAAiB;AACrB,OAAK,MAAM,UAAU,QACnB,gBAAe,OAAO,KAAK,EAAE,CAAC;;AAIlC,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACE,qBAAC,OAAD;IAAK,WAAU;cAAf,CACE,qBAAC,OAAD;KAAK,WAAU;eAAf;MACE,oBAAC,aAAD,EAAa,WAAU,UAAW,CAAA;MAClC,oBAAC,QAAD;OAAM,WAAU;iBAAuB,QAAQ,SAAS;OAAuB,CAAA;MAC9E,cAAc,KACb,oBAAC,QAAD;OAAM,WAAU;iBACb;OACI,CAAA;MAEL;QACN,oBAAC,QAAD;KAAQ,SAAQ;KAAQ,MAAK;KAAO,SAAS;KAAS,cAAW;eAC/D,oBAAC,WAAD,EAAa,CAAA;KACN,CAAA,CACL;;GAEN,oBAAC,WAAD,EAAa,CAAA;GAEb,qBAAC,OAAD;IAAK,WAAU;cAAf,CACG,cAAc,KACb,oBAAC,UAAD;KACE,MAAK;KACL,SAAS;KACT,WAAU;eAET,QAAQ,YAAY;KACd,CAAA,EAGV,QAAQ,KAAK,WACZ,qBAACA,QAAM,UAAP,EAAA,UAAA,CACE,oBAAC,aAAD;KACE,OAAO,OAAO;KACd,MAAM,OAAO;KACb,SAAS,OAAO;KAChB,UAAU,cAAc,OAAO,QAAQ,EAAE;KACzC,WAAW,aAAa,eAAe,OAAO,KAAK,SAAS;KAC5D,CAAA,EACF,oBAAC,WAAD,EAAa,CAAA,CACE,EAAA,EATI,OAAO,IASX,CACjB,CACE;;GAEL,gBAAgB,QACf,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,WAAD,EAAa,CAAA,EACb,oBAAC,OAAD;IAAK,WAAU;cACb,oBAAC,QAAD;KAAQ,WAAU;KAAS,SAAS;eACjC,QAAQ,cACL,OAAO,YAAY,QAAQ,WAAW,OAAO,aAAa,CAAC,GAC3D,QAAQ,aAAa;KAClB,CAAA;IACL,CAAA,CACL,EAAA,CAAA;GAED;;;AAIV,SAAS,YAAY,EACnB,SACA,eACA,gBACA,cACA,MACA,cACA,QACA,aACmB;AACnB,QACE,qBAAA,UAAA,EAAA,UAAA,CAEE,oBAAC,OAAD;EAAK,WAAW,GAAG,aAAa,UAAU;YACxC,oBAAC,OAAD;GAAa;GAAoB;aAC/B,qBAAC,cAAD;IAAc,MAAK;IAAO,WAAU;cAApC,CACE,oBAAC,YAAD;KAAY,WAAU;KAAU,WAAW;eACxC,QAAQ,SAAS;KACP,CAAA,EACb,oBAAC,oBAAD;KACW;KACM;KACC;KACF;KACd,eAAe,aAAa,MAAM;KAC1B;KACR,CAAA,CACW;;GACT,CAAA;EACJ,CAAA,EAGL,QACC,oBAAC,SAAD;EAAO,WAAW,GAAG,wCAAwC,UAAU;YACrE,oBAAC,oBAAD;GACW;GACM;GACC;GACF;GACd,eAAe,aAAa,MAAM;GAC1B;GACR,CAAA;EACI,CAAA,CAET,EAAA,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FilterChip, FilterChipProps } from "./filter-chip.js";
|
|
2
|
+
import { FilterGroup, FilterGroupProps, FilterOption } from "./filter-group.js";
|
|
3
|
+
import { ActiveFilters, FilterDefinition, FilterPanel, FilterPanelProps } from "./filter-panel.js";
|
|
4
|
+
import { SortSelect, SortSelectProps } from "./sort-select.js";
|
|
5
|
+
import { ToggleListView, ToggleListViewProps } from "./toggle-list-view.js";
|
|
6
|
+
export { type ActiveFilters, FilterChip, type FilterChipProps, type FilterDefinition, FilterGroup, type FilterGroupProps, type FilterOption, FilterPanel, type FilterPanelProps, SortSelect, type SortSelectProps, ToggleListView, type ToggleListViewProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FilterChip } from "./filter-chip.mjs";
|
|
2
|
+
import { FilterGroup } from "./filter-group.mjs";
|
|
3
|
+
import { FilterPanel } from "./filter-panel.mjs";
|
|
4
|
+
import { SortSelect } from "./sort-select.mjs";
|
|
5
|
+
import { ToggleListView } from "./toggle-list-view.mjs";
|
|
6
|
+
export { FilterChip, FilterGroup, FilterPanel, SortSelect, ToggleListView };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SelectOption } from "../primitives/select.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/client/storefront/filters/sort-select.d.ts
|
|
5
|
+
interface SortSelectProps {
|
|
6
|
+
value: string;
|
|
7
|
+
onValueChange: (value: string) => void;
|
|
8
|
+
options?: SelectOption[];
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function SortSelect({
|
|
14
|
+
value,
|
|
15
|
+
onValueChange,
|
|
16
|
+
options,
|
|
17
|
+
label,
|
|
18
|
+
placeholder,
|
|
19
|
+
className
|
|
20
|
+
}: SortSelectProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { SortSelect, type SortSelectProps };
|
|
23
|
+
//# sourceMappingURL=sort-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-select.d.ts","names":[],"sources":["../../../../src/client/storefront/filters/sort-select.tsx"],"mappings":";;;;UAKU,eAAA;EACR,KAAA;EACA,aAAA,GAAgB,KAAA;EAChB,OAAA,GAAU,YAAA;EACV,KAAA;EACA,WAAA;EACA,SAAA;AAAA;AAAA,iBAWO,UAAA,CAAA;EACP,KAAA;EACA,aAAA;EACA,OAAA;EACA,KAAA;EACA,WAAA;EACA;AAAA,GACC,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { StorefrontSelect } from "../primitives/select.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/client/storefront/filters/sort-select.tsx
|
|
6
|
+
const defaultSortOptions = [
|
|
7
|
+
{
|
|
8
|
+
value: "relevance",
|
|
9
|
+
label: "Relevance"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: "price-asc",
|
|
13
|
+
label: "Price: Low to High"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "price-desc",
|
|
17
|
+
label: "Price: High to Low"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "newest",
|
|
21
|
+
label: "Newest"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "name-asc",
|
|
25
|
+
label: "Name A–Z"
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
function SortSelect({ value, onValueChange, options = defaultSortOptions, label = "Sort", placeholder = "Select sorting", className }) {
|
|
29
|
+
return /* @__PURE__ */ jsx(StorefrontSelect, {
|
|
30
|
+
options,
|
|
31
|
+
value,
|
|
32
|
+
onValueChange,
|
|
33
|
+
label,
|
|
34
|
+
placeholder,
|
|
35
|
+
className
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { SortSelect };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=sort-select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-select.mjs","names":[],"sources":["../../../../src/client/storefront/filters/sort-select.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { StorefrontSelect, type SelectOption } from \"../primitives/select\"\n\ninterface SortSelectProps {\n value: string\n onValueChange: (value: string) => void\n options?: SelectOption[]\n label?: string\n placeholder?: string\n className?: string\n}\n\nconst defaultSortOptions: SelectOption[] = [\n { value: \"relevance\", label: \"Relevance\" },\n { value: \"price-asc\", label: \"Price: Low to High\" },\n { value: \"price-desc\", label: \"Price: High to Low\" },\n { value: \"newest\", label: \"Newest\" },\n { value: \"name-asc\", label: \"Name A–Z\" },\n]\n\nfunction SortSelect({\n value,\n onValueChange,\n options = defaultSortOptions,\n label = \"Sort\",\n placeholder = \"Select sorting\",\n className,\n}: SortSelectProps) {\n return (\n <StorefrontSelect\n options={options}\n value={value}\n onValueChange={onValueChange}\n label={label}\n placeholder={placeholder}\n className={className}\n />\n )\n}\n\nexport { SortSelect, type SortSelectProps }\n"],"mappings":";;;;;AAcA,MAAM,qBAAqC;CACzC;EAAE,OAAO;EAAa,OAAO;EAAa;CAC1C;EAAE,OAAO;EAAa,OAAO;EAAsB;CACnD;EAAE,OAAO;EAAc,OAAO;EAAsB;CACpD;EAAE,OAAO;EAAU,OAAO;EAAU;CACpC;EAAE,OAAO;EAAY,OAAO;EAAY;CACzC;AAED,SAAS,WAAW,EAClB,OACA,eACA,UAAU,oBACV,QAAQ,QACR,cAAc,kBACd,aACkB;AAClB,QACE,oBAAC,kBAAD;EACW;EACF;EACQ;EACR;EACM;EACF;EACX,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/client/storefront/filters/toggle-list-view.d.ts
|
|
4
|
+
interface ToggleListViewProps {
|
|
5
|
+
mode: "grid" | "list";
|
|
6
|
+
onChange: (mode: "grid" | "list") => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function ToggleListView({
|
|
10
|
+
mode,
|
|
11
|
+
onChange,
|
|
12
|
+
className
|
|
13
|
+
}: ToggleListViewProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ToggleListView, type ToggleListViewProps };
|
|
16
|
+
//# sourceMappingURL=toggle-list-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-list-view.d.ts","names":[],"sources":["../../../../src/client/storefront/filters/toggle-list-view.tsx"],"mappings":";;;UAOU,mBAAA;EACR,IAAA;EACA,QAAA,GAAW,IAAA;EACX,SAAA;AAAA;AAAA,iBAGO,cAAA,CAAA;EAAiB,IAAA;EAAM,QAAA;EAAU;AAAA,GAAa,mBAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIcon } from "../../icons/icon-context.mjs";
|
|
3
|
+
import { cn } from "../../ui/utils.mjs";
|
|
4
|
+
import { ToggleGroup, ToggleGroupItem } from "../../ui-resolver/toggle-group.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/client/storefront/filters/toggle-list-view.tsx
|
|
8
|
+
function ToggleListView({ mode, onChange, className }) {
|
|
9
|
+
const GridIcon = useIcon("grid");
|
|
10
|
+
const ListIcon = useIcon("list");
|
|
11
|
+
return /* @__PURE__ */ jsxs(ToggleGroup, {
|
|
12
|
+
type: "single",
|
|
13
|
+
value: mode,
|
|
14
|
+
onValueChange: (value) => {
|
|
15
|
+
if (value) onChange(value);
|
|
16
|
+
},
|
|
17
|
+
variant: "outline",
|
|
18
|
+
className: cn(className),
|
|
19
|
+
"aria-label": "View mode",
|
|
20
|
+
children: [/* @__PURE__ */ jsx(ToggleGroupItem, {
|
|
21
|
+
value: "grid",
|
|
22
|
+
"aria-label": "Grid view",
|
|
23
|
+
className: "relative hit-area-2",
|
|
24
|
+
children: /* @__PURE__ */ jsx(GridIcon, { className: "size-4" })
|
|
25
|
+
}), /* @__PURE__ */ jsx(ToggleGroupItem, {
|
|
26
|
+
value: "list",
|
|
27
|
+
"aria-label": "List view",
|
|
28
|
+
className: "relative hit-area-2",
|
|
29
|
+
children: /* @__PURE__ */ jsx(ListIcon, { className: "size-4" })
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ToggleListView };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=toggle-list-view.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-list-view.mjs","names":[],"sources":["../../../../src/client/storefront/filters/toggle-list-view.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useIcon } from \"../../icons/icon-context\";\nimport { ToggleGroup, ToggleGroupItem } from \"../../ui-resolver/toggle-group\";\nimport { cn } from \"../../ui/utils\";\n\ninterface ToggleListViewProps {\n mode: \"grid\" | \"list\";\n onChange: (mode: \"grid\" | \"list\") => void;\n className?: string;\n}\n\nfunction ToggleListView({ mode, onChange, className }: ToggleListViewProps) {\n const GridIcon = useIcon(\"grid\");\n const ListIcon = useIcon(\"list\");\n return (\n <ToggleGroup\n type=\"single\"\n value={mode}\n onValueChange={(value) => {\n if (value) onChange(value as \"grid\" | \"list\");\n }}\n variant=\"outline\"\n className={cn(className)}\n aria-label=\"View mode\"\n >\n <ToggleGroupItem value=\"grid\" aria-label=\"Grid view\" className=\"relative hit-area-2\">\n <GridIcon className=\"size-4\" />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"list\" aria-label=\"List view\" className=\"relative hit-area-2\">\n <ListIcon className=\"size-4\" />\n </ToggleGroupItem>\n </ToggleGroup>\n );\n}\n\nexport { ToggleListView, type ToggleListViewProps };\n"],"mappings":";;;;;;;AAaA,SAAS,eAAe,EAAE,MAAM,UAAU,aAAkC;CAC1E,MAAM,WAAW,QAAQ,OAAO;CAChC,MAAM,WAAW,QAAQ,OAAO;AAChC,QACE,qBAAC,aAAD;EACE,MAAK;EACL,OAAO;EACP,gBAAgB,UAAU;AACxB,OAAI,MAAO,UAAS,MAAyB;;EAE/C,SAAQ;EACR,WAAW,GAAG,UAAU;EACxB,cAAW;YARb,CAUE,oBAAC,iBAAD;GAAiB,OAAM;GAAO,cAAW;GAAY,WAAU;aAC7D,oBAAC,UAAD,EAAU,WAAU,UAAW,CAAA;GACf,CAAA,EAClB,oBAAC,iBAAD;GAAiB,OAAM;GAAO,cAAW;GAAY,WAAU;aAC7D,oBAAC,UAAD,EAAU,WAAU,UAAW,CAAA;GACf,CAAA,CACN"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/client/storefront/hooks/use-section-observer.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Watches anchor targets and reports which section is currently in view.
|
|
4
|
+
* Uses IntersectionObserver with a negative top margin so the "active"
|
|
5
|
+
* section flips when it crosses the sticky-nav region, not the viewport edge.
|
|
6
|
+
*/
|
|
7
|
+
declare function useSectionObserver(/** Anchor hrefs, e.g. ["#specs", "#reviews"] */anchors: string[], /** Extra top offset in px (header height + nav bar height) */rootMarginTop?: number): string | null;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useSectionObserver };
|
|
10
|
+
//# sourceMappingURL=use-section-observer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-section-observer.d.ts","names":[],"sources":["../../../../src/client/storefront/hooks/use-section-observer.ts"],"mappings":";;;;;;iBASS,kBAAA,iDAEP,OAAA,0EAEA,aAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
//#region src/client/storefront/hooks/use-section-observer.ts
|
|
4
|
+
/**
|
|
5
|
+
* Watches anchor targets and reports which section is currently in view.
|
|
6
|
+
* Uses IntersectionObserver with a negative top margin so the "active"
|
|
7
|
+
* section flips when it crosses the sticky-nav region, not the viewport edge.
|
|
8
|
+
*/
|
|
9
|
+
function useSectionObserver(anchors, rootMarginTop = 0) {
|
|
10
|
+
const [activeId, setActiveId] = useState(null);
|
|
11
|
+
const ratioMap = useRef(/* @__PURE__ */ new Map());
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (anchors.length === 0) return;
|
|
14
|
+
const elements = anchors.filter((a) => a.startsWith("#")).map((a) => a.slice(1)).map((id) => document.getElementById(id)).filter(Boolean);
|
|
15
|
+
if (elements.length === 0) return;
|
|
16
|
+
ratioMap.current.clear();
|
|
17
|
+
const observer = new IntersectionObserver((entries) => {
|
|
18
|
+
for (const entry of entries) ratioMap.current.set(entry.target.id, entry.intersectionRatio);
|
|
19
|
+
let bestId = null;
|
|
20
|
+
let bestRatio = 0;
|
|
21
|
+
for (const [id, ratio] of ratioMap.current) if (ratio > bestRatio) {
|
|
22
|
+
bestRatio = ratio;
|
|
23
|
+
bestId = id;
|
|
24
|
+
}
|
|
25
|
+
if (bestId) setActiveId(`#${bestId}`);
|
|
26
|
+
}, {
|
|
27
|
+
rootMargin: `-${rootMarginTop}px 0px -40% 0px`,
|
|
28
|
+
threshold: [
|
|
29
|
+
0,
|
|
30
|
+
.1,
|
|
31
|
+
.2,
|
|
32
|
+
.3,
|
|
33
|
+
.4,
|
|
34
|
+
.5,
|
|
35
|
+
.6,
|
|
36
|
+
.7,
|
|
37
|
+
.8,
|
|
38
|
+
.9,
|
|
39
|
+
1
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
for (const el of elements) observer.observe(el);
|
|
43
|
+
setActiveId((current) => current ?? anchors[0] ?? null);
|
|
44
|
+
return () => observer.disconnect();
|
|
45
|
+
}, [
|
|
46
|
+
anchors,
|
|
47
|
+
useMemo(() => anchors.join(","), [anchors.join(",")]),
|
|
48
|
+
rootMarginTop
|
|
49
|
+
]);
|
|
50
|
+
return activeId;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { useSectionObserver };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=use-section-observer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-section-observer.mjs","names":[],"sources":["../../../../src/client/storefront/hooks/use-section-observer.ts"],"sourcesContent":["\"use client\"\n\nimport { useEffect, useMemo, useRef, useState } from \"react\"\n\n/**\n * Watches anchor targets and reports which section is currently in view.\n * Uses IntersectionObserver with a negative top margin so the \"active\"\n * section flips when it crosses the sticky-nav region, not the viewport edge.\n */\nfunction useSectionObserver(\n /** Anchor hrefs, e.g. [\"#specs\", \"#reviews\"] */\n anchors: string[],\n /** Extra top offset in px (header height + nav bar height) */\n rootMarginTop = 0,\n) {\n const [activeId, setActiveId] = useState<string | null>(null)\n const ratioMap = useRef<Map<string, number>>(new Map())\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const anchorsKey = useMemo(() => anchors.join(\",\"), [anchors.join(\",\")])\n\n useEffect(() => {\n if (anchors.length === 0) return\n\n const ids = anchors\n .filter((a) => a.startsWith(\"#\"))\n .map((a) => a.slice(1))\n\n const elements = ids\n .map((id) => document.getElementById(id))\n .filter(Boolean) as HTMLElement[]\n\n if (elements.length === 0) return\n\n ratioMap.current.clear()\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n ratioMap.current.set(entry.target.id, entry.intersectionRatio)\n }\n\n // Pick the element with the highest intersection ratio\n let bestId: string | null = null\n let bestRatio = 0\n for (const [id, ratio] of ratioMap.current) {\n if (ratio > bestRatio) {\n bestRatio = ratio\n bestId = id\n }\n }\n\n // If nothing is intersecting, keep the last active\n if (bestId) {\n setActiveId(`#${bestId}`)\n }\n },\n {\n rootMargin: `-${rootMarginTop}px 0px -40% 0px`,\n threshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1],\n },\n )\n\n for (const el of elements) {\n observer.observe(el)\n }\n\n // Set initial active to first anchor\n setActiveId((current) => current ?? anchors[0] ?? null)\n\n return () => observer.disconnect()\n }, [anchors, anchorsKey, rootMarginTop])\n\n return activeId\n}\n\nexport { useSectionObserver }\n"],"mappings":";;;;;;;;AASA,SAAS,mBAEP,SAEA,gBAAgB,GAChB;CACA,MAAM,CAAC,UAAU,eAAe,SAAwB,KAAK;CAC7D,MAAM,WAAW,uBAA4B,IAAI,KAAK,CAAC;AAIvD,iBAAgB;AACd,MAAI,QAAQ,WAAW,EAAG;EAM1B,MAAM,WAJM,QACT,QAAQ,MAAM,EAAE,WAAW,IAAI,CAAC,CAChC,KAAK,MAAM,EAAE,MAAM,EAAE,CAAC,CAGtB,KAAK,OAAO,SAAS,eAAe,GAAG,CAAC,CACxC,OAAO,QAAQ;AAElB,MAAI,SAAS,WAAW,EAAG;AAE3B,WAAS,QAAQ,OAAO;EAExB,MAAM,WAAW,IAAI,sBAClB,YAAY;AACX,QAAK,MAAM,SAAS,QAClB,UAAS,QAAQ,IAAI,MAAM,OAAO,IAAI,MAAM,kBAAkB;GAIhE,IAAI,SAAwB;GAC5B,IAAI,YAAY;AAChB,QAAK,MAAM,CAAC,IAAI,UAAU,SAAS,QACjC,KAAI,QAAQ,WAAW;AACrB,gBAAY;AACZ,aAAS;;AAKb,OAAI,OACF,aAAY,IAAI,SAAS;KAG7B;GACE,YAAY,IAAI,cAAc;GAC9B,WAAW;IAAC;IAAG;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAE;GAC/D,CACF;AAED,OAAK,MAAM,MAAM,SACf,UAAS,QAAQ,GAAG;AAItB,eAAa,YAAY,WAAW,QAAQ,MAAM,KAAK;AAEvD,eAAa,SAAS,YAAY;IACjC;EAAC;EApDe,cAAc,QAAQ,KAAK,IAAI,EAAE,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC;EAoD/C;EAAc,CAAC;AAExC,QAAO"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColorTheme, GalleryVariant, LanguageOption, LanguageSelectorProps, LinkBlockVariant, TextContentVariant, TextContentWithImageVariant } from "./types.js";
|
|
2
|
+
import { SelectOption, StorefrontSelect, StorefrontSelectProps } from "./primitives/select.js";
|
|
3
|
+
import { AddressFieldGroup, AddressFieldGroupProps } from "./components/address-field-group.js";
|
|
4
|
+
import { Badge, BadgeProps } from "./components/badge.js";
|
|
5
|
+
import { CountryInfo, CountryRedirect, CountryRedirectProps } from "./components/country-redirect.js";
|
|
6
|
+
import { LanguageSelector } from "./components/language-selector.js";
|
|
7
|
+
import { NewsletterSignup, NewsletterSignupProps } from "./components/newsletter-signup.js";
|
|
8
|
+
import { Price, PriceProps } from "./components/price.js";
|
|
9
|
+
import { ProductTab, ProductTabs, ProductTabsProps } from "./components/product-tabs.js";
|
|
10
|
+
import { SectionLink, SectionNav, SectionNavProps } from "./components/section-nav.js";
|
|
11
|
+
import { ProductCardSkeleton, Skeleton, SkeletonProps } from "./components/skeleton.js";
|
|
12
|
+
import { StarRating, StarRatingProps } from "./components/star-rating.js";
|
|
13
|
+
import { VariantAxis, VariantOption, VariantSelector, VariantSelectorProps } from "./components/variant-selector.js";
|
|
14
|
+
import { StorefrontInput, StorefrontInputProps } from "./primitives/input.js";
|
|
15
|
+
import { PasswordInput, PasswordInputProps } from "./primitives/password-input.js";
|
|
16
|
+
import { StorefrontCheckbox, StorefrontCheckboxProps } from "./primitives/checkbox.js";
|
|
17
|
+
import { CountrySelect, CountrySelectProps, NORDIC_COUNTRIES } from "./primitives/country-select.js";
|
|
18
|
+
import { SimpleSelect, SimpleSelectOption, SimpleSelectProps } from "../ui/simple-select.js";
|
|
19
|
+
export { AddressFieldGroup, type AddressFieldGroupProps, Badge, type BadgeProps, type ColorTheme, type CountryInfo, CountryRedirect, type CountryRedirectProps, CountrySelect, type CountrySelectProps, type GalleryVariant, type LanguageOption, LanguageSelector, type LanguageSelectorProps, type LinkBlockVariant, NORDIC_COUNTRIES, NewsletterSignup, type NewsletterSignupProps, PasswordInput, type PasswordInputProps, Price, type PriceProps, ProductCardSkeleton, type ProductTab, ProductTabs, type ProductTabsProps, type SectionLink, SectionNav, type SectionNavProps, type SelectOption, SimpleSelect, type SimpleSelectOption, type SimpleSelectProps, Skeleton, type SkeletonProps, StarRating, type StarRatingProps, StorefrontCheckbox, type StorefrontCheckboxProps, StorefrontInput, type StorefrontInputProps, StorefrontSelect, type StorefrontSelectProps, type TextContentVariant, type TextContentWithImageVariant, type VariantAxis, type VariantOption, VariantSelector, type VariantSelectorProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Price } from "./components/price.mjs";
|
|
2
|
+
import { ProductCardSkeleton, Skeleton } from "./components/skeleton.mjs";
|
|
3
|
+
import { Badge } from "./components/badge.mjs";
|
|
4
|
+
import { StarRating } from "./components/star-rating.mjs";
|
|
5
|
+
import { ProductTabs } from "./components/product-tabs.mjs";
|
|
6
|
+
import { VariantSelector } from "./components/variant-selector.mjs";
|
|
7
|
+
import { NewsletterSignup } from "./components/newsletter-signup.mjs";
|
|
8
|
+
import { StorefrontInput } from "./primitives/input.mjs";
|
|
9
|
+
import { PasswordInput } from "./primitives/password-input.mjs";
|
|
10
|
+
import { StorefrontSelect } from "./primitives/select.mjs";
|
|
11
|
+
import { StorefrontCheckbox } from "./primitives/checkbox.mjs";
|
|
12
|
+
import { CountrySelect, NORDIC_COUNTRIES } from "./primitives/country-select.mjs";
|
|
13
|
+
import { AddressFieldGroup } from "./components/address-field-group.mjs";
|
|
14
|
+
import { SimpleSelect } from "../ui/simple-select.mjs";
|
|
15
|
+
import { LanguageSelector } from "./components/language-selector.mjs";
|
|
16
|
+
import { CountryRedirect } from "./components/country-redirect.mjs";
|
|
17
|
+
import { SectionNav } from "./components/section-nav.mjs";
|
|
18
|
+
export { AddressFieldGroup, Badge, CountryRedirect, CountrySelect, LanguageSelector, NORDIC_COUNTRIES, NewsletterSignup, PasswordInput, Price, ProductCardSkeleton, ProductTabs, SectionNav, SimpleSelect, Skeleton, StarRating, StorefrontCheckbox, StorefrontInput, StorefrontSelect, VariantSelector };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FooterProps } from "../types.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/client/storefront/layout/footer.d.ts
|
|
5
|
+
declare function Footer({
|
|
6
|
+
columns,
|
|
7
|
+
bottomLinks,
|
|
8
|
+
logo,
|
|
9
|
+
paymentIcons,
|
|
10
|
+
newsletterSlot,
|
|
11
|
+
copyright,
|
|
12
|
+
className
|
|
13
|
+
}: FooterProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Footer, type FooterProps };
|
|
16
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","names":[],"sources":["../../../../src/client/storefront/layout/footer.tsx"],"mappings":";;;;iBA+BS,MAAA,CAAA;EACP,OAAA;EACA,WAAA;EACA,IAAA;EACA,YAAA;EACA,cAAA;EACA,SAAA;EACA;AAAA,GACC,WAAA,GAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { cn } from "../../ui/utils.mjs";
|
|
2
|
+
import { Separator } from "../../ui-resolver/separator.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/client/storefront/layout/footer.tsx
|
|
6
|
+
function FooterLinkColumn({ title, links }) {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { children: [title && /* @__PURE__ */ jsx("h3", {
|
|
8
|
+
className: "mb-3 text-sm font-medium text-foreground",
|
|
9
|
+
children: title
|
|
10
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
11
|
+
className: "flex flex-col gap-2",
|
|
12
|
+
children: links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
|
|
13
|
+
href: link.href,
|
|
14
|
+
className: "text-sm text-muted-foreground transition-colors hover:text-foreground",
|
|
15
|
+
children: link.label
|
|
16
|
+
}) }, link.href))
|
|
17
|
+
})] });
|
|
18
|
+
}
|
|
19
|
+
function Footer({ columns, bottomLinks, logo, paymentIcons, newsletterSlot, copyright, className }) {
|
|
20
|
+
return /* @__PURE__ */ jsx("footer", {
|
|
21
|
+
className: cn("bg-card text-card-foreground", className),
|
|
22
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: "mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",
|
|
27
|
+
children: [columns.map((col, i) => /* @__PURE__ */ jsx(FooterLinkColumn, {
|
|
28
|
+
title: col.title,
|
|
29
|
+
links: col.links
|
|
30
|
+
}, i)), newsletterSlot && /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: "col-span-2 md:col-span-1",
|
|
32
|
+
children: newsletterSlot
|
|
33
|
+
})]
|
|
34
|
+
}),
|
|
35
|
+
paymentIcons && /* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: "mt-8 flex items-center gap-3",
|
|
37
|
+
children: paymentIcons
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
40
|
+
/* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: "flex flex-col items-center justify-between gap-4 sm:flex-row",
|
|
42
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: "flex items-center gap-6",
|
|
44
|
+
children: [logo, copyright && /* @__PURE__ */ jsx("span", {
|
|
45
|
+
className: "text-sm text-muted-foreground",
|
|
46
|
+
children: copyright
|
|
47
|
+
})]
|
|
48
|
+
}), bottomLinks && bottomLinks.length > 0 && /* @__PURE__ */ jsx("nav", {
|
|
49
|
+
className: "flex items-center gap-4",
|
|
50
|
+
children: bottomLinks.map((link) => /* @__PURE__ */ jsx("a", {
|
|
51
|
+
href: link.href,
|
|
52
|
+
className: "text-sm text-muted-foreground transition-colors hover:text-foreground",
|
|
53
|
+
children: link.label
|
|
54
|
+
}, link.href))
|
|
55
|
+
})]
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { Footer };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=footer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.mjs","names":[],"sources":["../../../../src/client/storefront/layout/footer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Separator } from \"../../ui-resolver/separator\";\nimport { cn } from \"../../ui/utils\";\nimport type { FooterProps } from \"../types\";\n\nfunction FooterLinkColumn({\n title,\n links,\n}: {\n title?: string;\n links: { label: string; href: string }[];\n}) {\n return (\n <div>\n {title && <h3 className=\"mb-3 text-sm font-medium text-foreground\">{title}</h3>}\n <ul className=\"flex flex-col gap-2\">\n {links.map((link) => (\n <li key={link.href}>\n <a\n href={link.href}\n className=\"text-sm text-muted-foreground transition-colors hover:text-foreground\"\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n );\n}\n\nfunction Footer({\n columns,\n bottomLinks,\n logo,\n paymentIcons,\n newsletterSlot,\n copyright,\n className,\n}: FooterProps) {\n return (\n <footer className={cn(\"bg-card text-card-foreground\", className)}>\n <div className=\"mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8\">\n <div className=\"grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4\">\n {/* Link columns */}\n {columns.map((col, i) => (\n <FooterLinkColumn key={i} title={col.title} links={col.links} />\n ))}\n\n {/* Newsletter slot */}\n {newsletterSlot && <div className=\"col-span-2 md:col-span-1\">{newsletterSlot}</div>}\n </div>\n\n {/* Payment icons */}\n {paymentIcons && <div className=\"mt-8 flex items-center gap-3\">{paymentIcons}</div>}\n\n <Separator className=\"my-8\" />\n\n {/* Bottom bar */}\n <div className=\"flex flex-col items-center justify-between gap-4 sm:flex-row\">\n <div className=\"flex items-center gap-6\">\n {logo}\n {copyright && <span className=\"text-sm text-muted-foreground\">{copyright}</span>}\n </div>\n\n {bottomLinks && bottomLinks.length > 0 && (\n <nav className=\"flex items-center gap-4\">\n {bottomLinks.map((link) => (\n <a\n key={link.href}\n href={link.href}\n className=\"text-sm text-muted-foreground transition-colors hover:text-foreground\"\n >\n {link.label}\n </a>\n ))}\n </nav>\n )}\n </div>\n </div>\n </footer>\n );\n}\n\nexport { Footer, type FooterProps };\n"],"mappings":";;;;;AAKA,SAAS,iBAAiB,EACxB,OACA,SAIC;AACD,QACE,qBAAC,OAAD,EAAA,UAAA,CACG,SAAS,oBAAC,MAAD;EAAI,WAAU;YAA4C;EAAW,CAAA,EAC/E,oBAAC,MAAD;EAAI,WAAU;YACX,MAAM,KAAK,SACV,oBAAC,MAAD,EAAA,UACE,oBAAC,KAAD;GACE,MAAM,KAAK;GACX,WAAU;aAET,KAAK;GACJ,CAAA,EACD,EAPI,KAAK,KAOT,CACL;EACC,CAAA,CACD,EAAA,CAAA;;AAIV,SAAS,OAAO,EACd,SACA,aACA,MACA,cACA,gBACA,WACA,aACc;AACd,QACE,oBAAC,UAAD;EAAQ,WAAW,GAAG,gCAAgC,UAAU;YAC9D,qBAAC,OAAD;GAAK,WAAU;aAAf;IACE,qBAAC,OAAD;KAAK,WAAU;eAAf,CAEG,QAAQ,KAAK,KAAK,MACjB,oBAAC,kBAAD;MAA0B,OAAO,IAAI;MAAO,OAAO,IAAI;MAAS,EAAzC,EAAyC,CAChE,EAGD,kBAAkB,oBAAC,OAAD;MAAK,WAAU;gBAA4B;MAAqB,CAAA,CAC/E;;IAGL,gBAAgB,oBAAC,OAAD;KAAK,WAAU;eAAgC;KAAmB,CAAA;IAEnF,oBAAC,WAAD,EAAW,WAAU,QAAS,CAAA;IAG9B,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,qBAAC,OAAD;MAAK,WAAU;gBAAf,CACG,MACA,aAAa,oBAAC,QAAD;OAAM,WAAU;iBAAiC;OAAiB,CAAA,CAC5E;SAEL,eAAe,YAAY,SAAS,KACnC,oBAAC,OAAD;MAAK,WAAU;gBACZ,YAAY,KAAK,SAChB,oBAAC,KAAD;OAEE,MAAM,KAAK;OACX,WAAU;iBAET,KAAK;OACJ,EALG,KAAK,KAKR,CACJ;MACE,CAAA,CAEJ;;IACF;;EACC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HeaderProps } from "../types.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/client/storefront/layout/header.d.ts
|
|
5
|
+
declare function Header({
|
|
6
|
+
variant,
|
|
7
|
+
navItems,
|
|
8
|
+
utilityLinks,
|
|
9
|
+
promotionEnabled,
|
|
10
|
+
promotionMessages,
|
|
11
|
+
logo,
|
|
12
|
+
onSearchClick,
|
|
13
|
+
onCartClick,
|
|
14
|
+
cartHref,
|
|
15
|
+
labels,
|
|
16
|
+
className
|
|
17
|
+
}: HeaderProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Header, type HeaderProps };
|
|
20
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","names":[],"sources":["../../../../src/client/storefront/layout/header.tsx"],"mappings":";;;;iBA8US,MAAA,CAAA;EACP,OAAA;EACA,QAAA;EACA,YAAA;EACA,gBAAA;EACA,iBAAA;EACA,IAAA;EACA,aAAA;EACA,WAAA;EACA,QAAA;EACA,MAAA;EACA;AAAA,GACC,WAAA,GAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|