@enadhq/enad-react-sdk 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +288 -0
- package/dist/client/cart/adapters/brink.d.ts +29 -0
- package/dist/client/cart/adapters/brink.d.ts.map +1 -0
- package/dist/client/cart/adapters/brink.mjs +154 -0
- package/dist/client/cart/adapters/brink.mjs.map +1 -0
- package/dist/client/cart/adapters/index.d.ts +3 -0
- package/dist/client/cart/adapters/index.d.ts.map +1 -0
- package/dist/client/cart/adapters/index.mjs +5 -0
- package/dist/client/cart/adapters/index.mjs.map +1 -0
- package/dist/client/cart/adapters/mock.d.ts +20 -0
- package/dist/client/cart/adapters/mock.d.ts.map +1 -0
- package/dist/client/cart/adapters/mock.mjs +76 -0
- package/dist/client/cart/adapters/mock.mjs.map +1 -0
- package/dist/client/cart/components/cart-drawer.d.ts +17 -0
- package/dist/client/cart/components/cart-drawer.d.ts.map +1 -0
- package/dist/client/cart/components/cart-drawer.mjs +311 -0
- package/dist/client/cart/components/cart-drawer.mjs.map +1 -0
- package/dist/client/cart/components/cart-trigger.d.ts +10 -0
- package/dist/client/cart/components/cart-trigger.d.ts.map +1 -0
- package/dist/client/cart/components/cart-trigger.mjs +34 -0
- package/dist/client/cart/components/cart-trigger.mjs.map +1 -0
- package/dist/client/cart/components/promo-code-input.d.ts +16 -0
- package/dist/client/cart/components/promo-code-input.d.ts.map +1 -0
- package/dist/client/cart/components/promo-code-input.mjs +92 -0
- package/dist/client/cart/components/promo-code-input.mjs.map +1 -0
- package/dist/client/cart/constants/session.d.ts +2 -0
- package/dist/client/cart/constants/session.d.ts.map +1 -0
- package/dist/client/cart/constants/session.mjs +5 -0
- package/dist/client/cart/constants/session.mjs.map +1 -0
- package/dist/client/cart/contexts/cart.d.ts +36 -0
- package/dist/client/cart/contexts/cart.d.ts.map +1 -0
- package/dist/client/cart/contexts/cart.mjs +20 -0
- package/dist/client/cart/contexts/cart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCart.d.ts +26 -0
- package/dist/client/cart/hooks/useCart.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCart.mjs +25 -0
- package/dist/client/cart/hooks/useCart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCartActions.d.ts +25 -0
- package/dist/client/cart/hooks/useCartActions.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCartActions.mjs +49 -0
- package/dist/client/cart/hooks/useCartActions.mjs.map +1 -0
- package/dist/client/cart/index.d.ts +12 -0
- package/dist/client/cart/index.d.ts.map +1 -0
- package/dist/client/cart/index.mjs +16 -0
- package/dist/client/cart/index.mjs.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts +7 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs +27 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts +4 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs +34 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts +6 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs +24 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts +7 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs +27 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/types/adapter.d.ts +110 -0
- package/dist/client/cart/types/adapter.d.ts.map +1 -0
- package/dist/client/cart/types/adapter.mjs +12 -0
- package/dist/client/cart/types/adapter.mjs.map +1 -0
- package/dist/client/cart/types/cart.d.ts +52 -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/types/cart.mjs.map +1 -0
- package/dist/client/cart/utils/session.d.ts +5 -0
- package/dist/client/cart/utils/session.d.ts.map +1 -0
- package/dist/client/cart/utils/session.mjs +21 -0
- package/dist/client/cart/utils/session.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts +7 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs +25 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts +20 -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 +79 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs.map +1 -0
- package/dist/client/global/auth/withAuth.d.ts +5 -0
- package/dist/client/global/auth/withAuth.d.ts.map +1 -0
- package/dist/client/global/auth/withAuth.mjs +25 -0
- package/dist/client/global/auth/withAuth.mjs.map +1 -0
- package/dist/client/global/components/error-boundary.d.ts +18 -0
- package/dist/client/global/components/error-boundary.d.ts.map +1 -0
- package/dist/client/global/components/error-boundary.mjs +41 -0
- package/dist/client/global/components/error-boundary.mjs.map +1 -0
- package/dist/client/global/config/index.d.ts +17 -0
- package/dist/client/global/config/index.d.ts.map +1 -0
- package/dist/client/global/config/index.mjs +34 -0
- package/dist/client/global/config/index.mjs.map +1 -0
- package/dist/client/global/constants/tags.d.ts +15 -0
- package/dist/client/global/constants/tags.d.ts.map +1 -0
- package/dist/client/global/constants/tags.mjs +18 -0
- package/dist/client/global/constants/tags.mjs.map +1 -0
- package/dist/client/global/index.d.ts +6 -0
- package/dist/client/global/index.d.ts.map +1 -0
- package/dist/client/global/index.mjs +7 -0
- package/dist/client/global/index.mjs.map +1 -0
- package/dist/client/global/providers/enad-provider.d.ts +48 -0
- package/dist/client/global/providers/enad-provider.d.ts.map +1 -0
- package/dist/client/global/providers/enad-provider.mjs +40 -0
- package/dist/client/global/providers/enad-provider.mjs.map +1 -0
- package/dist/client/icons/adapters/hugeicons.d.ts +9 -0
- package/dist/client/icons/adapters/hugeicons.d.ts.map +1 -0
- package/dist/client/icons/adapters/hugeicons.mjs +117 -0
- package/dist/client/icons/adapters/hugeicons.mjs.map +1 -0
- package/dist/client/icons/adapters/lucide.d.ts +8 -0
- package/dist/client/icons/adapters/lucide.d.ts.map +1 -0
- package/dist/client/icons/adapters/lucide.mjs +108 -0
- package/dist/client/icons/adapters/lucide.mjs.map +1 -0
- package/dist/client/icons/adapters/phosphor.d.ts +11 -0
- package/dist/client/icons/adapters/phosphor.d.ts.map +1 -0
- package/dist/client/icons/adapters/phosphor.mjs +108 -0
- package/dist/client/icons/adapters/phosphor.mjs.map +1 -0
- package/dist/client/icons/icon-context.d.ts +13 -0
- package/dist/client/icons/icon-context.d.ts.map +1 -0
- package/dist/client/icons/icon-context.mjs +27 -0
- package/dist/client/icons/icon-context.mjs.map +1 -0
- package/dist/client/icons/index.d.ts +9 -0
- package/dist/client/icons/index.d.ts.map +1 -0
- package/dist/client/icons/index.mjs +16 -0
- package/dist/client/icons/index.mjs.map +1 -0
- package/dist/client/icons/types.d.ts +60 -0
- package/dist/client/icons/types.d.ts.map +1 -0
- package/dist/client/icons/types.mjs +1 -0
- package/dist/client/icons/types.mjs.map +1 -0
- package/dist/client/motion/config.d.ts +42 -0
- package/dist/client/motion/config.d.ts.map +1 -0
- package/dist/client/motion/config.mjs +44 -0
- package/dist/client/motion/config.mjs.map +1 -0
- package/dist/client/motion/hover.d.ts +36 -0
- package/dist/client/motion/hover.d.ts.map +1 -0
- package/dist/client/motion/hover.mjs +19 -0
- package/dist/client/motion/hover.mjs.map +1 -0
- package/dist/client/motion/index.d.ts +4 -0
- package/dist/client/motion/index.d.ts.map +1 -0
- package/dist/client/motion/index.mjs +13 -0
- package/dist/client/motion/index.mjs.map +1 -0
- package/dist/client/motion/stagger.d.ts +36 -0
- package/dist/client/motion/stagger.d.ts.map +1 -0
- package/dist/client/motion/stagger.mjs +17 -0
- package/dist/client/motion/stagger.mjs.map +1 -0
- package/dist/client/search/actions/searchAction.d.ts +2 -0
- package/dist/client/search/actions/searchAction.d.ts.map +1 -0
- package/dist/client/search/actions/searchAction.mjs +18 -0
- package/dist/client/search/actions/searchAction.mjs.map +1 -0
- package/dist/client/search/components/search-bar.d.ts +8 -0
- package/dist/client/search/components/search-bar.d.ts.map +1 -0
- package/dist/client/search/components/search-bar.mjs +34 -0
- package/dist/client/search/components/search-bar.mjs.map +1 -0
- package/dist/client/search/hooks/useSearch.d.ts +14 -0
- package/dist/client/search/hooks/useSearch.d.ts.map +1 -0
- package/dist/client/search/hooks/useSearch.mjs +37 -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.d.ts.map +1 -0
- package/dist/client/search/index.mjs +5 -0
- package/dist/client/search/index.mjs.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts +4 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.mjs +43 -0
- package/dist/client/storefront/blocks/accordion-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts +4 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs +27 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-video.d.ts +4 -0
- package/dist/client/storefront/blocks/card-video.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-video.mjs +43 -0
- package/dist/client/storefront/blocks/card-video.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts +4 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs +48 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts +4 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs +45 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs +36 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs +24 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery.d.ts +4 -0
- package/dist/client/storefront/blocks/gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery.mjs +47 -0
- package/dist/client/storefront/blocks/gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/hero.d.ts +4 -0
- package/dist/client/storefront/blocks/hero.d.ts.map +1 -0
- package/dist/client/storefront/blocks/hero.mjs +357 -0
- package/dist/client/storefront/blocks/hero.mjs.map +1 -0
- package/dist/client/storefront/blocks/image-block.d.ts +4 -0
- package/dist/client/storefront/blocks/image-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/image-block.mjs +29 -0
- package/dist/client/storefront/blocks/image-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/index.d.ts +20 -0
- package/dist/client/storefront/blocks/index.d.ts.map +1 -0
- package/dist/client/storefront/blocks/index.mjs +41 -0
- package/dist/client/storefront/blocks/index.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts +4 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.mjs +35 -0
- package/dist/client/storefront/blocks/link-block-small.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block.d.ts +4 -0
- package/dist/client/storefront/blocks/link-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block.mjs +150 -0
- package/dist/client/storefront/blocks/link-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card.d.ts +4 -0
- package/dist/client/storefront/blocks/product-card.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-card.mjs +228 -0
- package/dist/client/storefront/blocks/product-card.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-image.d.ts +4 -0
- package/dist/client/storefront/blocks/product-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-image.mjs +109 -0
- package/dist/client/storefront/blocks/product-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/spacer.d.ts +4 -0
- package/dist/client/storefront/blocks/spacer.d.ts.map +1 -0
- package/dist/client/storefront/blocks/spacer.mjs +14 -0
- package/dist/client/storefront/blocks/spacer.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts +4 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs +225 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content.d.ts +4 -0
- package/dist/client/storefront/blocks/text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content.mjs +150 -0
- package/dist/client/storefront/blocks/text-content.mjs.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts +4 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.mjs +36 -0
- package/dist/client/storefront/blocks/truncated-text.mjs.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts +4 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs +15 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs.map +1 -0
- package/dist/client/storefront/carousel/index.d.ts +2 -0
- package/dist/client/storefront/carousel/index.d.ts.map +1 -0
- package/dist/client/storefront/carousel/index.mjs +5 -0
- package/dist/client/storefront/carousel/index.mjs.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts +14 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs +80 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs.map +1 -0
- package/dist/client/storefront/checkout/address-form.d.ts +31 -0
- package/dist/client/storefront/checkout/address-form.d.ts.map +1 -0
- package/dist/client/storefront/checkout/address-form.mjs +124 -0
- package/dist/client/storefront/checkout/address-form.mjs.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts +40 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.mjs +150 -0
- package/dist/client/storefront/checkout/cart-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts +13 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs +58 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs.map +1 -0
- package/dist/client/storefront/checkout/index.d.ts +15 -0
- package/dist/client/storefront/checkout/index.d.ts.map +1 -0
- package/dist/client/storefront/checkout/index.mjs +17 -0
- package/dist/client/storefront/checkout/index.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts +10 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs +27 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-summary.d.ts +29 -0
- package/dist/client/storefront/checkout/order-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-summary.mjs +106 -0
- package/dist/client/storefront/checkout/order-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts +18 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs +61 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts +23 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs +77 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs.map +1 -0
- package/dist/client/storefront/components/badge.d.ts +8 -0
- package/dist/client/storefront/components/badge.d.ts.map +1 -0
- package/dist/client/storefront/components/badge.mjs +28 -0
- package/dist/client/storefront/components/badge.mjs.map +1 -0
- package/dist/client/storefront/components/country-redirect.d.ts +30 -0
- package/dist/client/storefront/components/country-redirect.d.ts.map +1 -0
- package/dist/client/storefront/components/country-redirect.mjs +121 -0
- package/dist/client/storefront/components/country-redirect.mjs.map +1 -0
- package/dist/client/storefront/components/empty-state.d.ts +38 -0
- package/dist/client/storefront/components/empty-state.d.ts.map +1 -0
- package/dist/client/storefront/components/empty-state.mjs +55 -0
- package/dist/client/storefront/components/empty-state.mjs.map +1 -0
- package/dist/client/storefront/components/image-lightbox.d.ts +13 -0
- package/dist/client/storefront/components/image-lightbox.d.ts.map +1 -0
- package/dist/client/storefront/components/image-lightbox.mjs +275 -0
- package/dist/client/storefront/components/image-lightbox.mjs.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts +37 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.mjs +83 -0
- package/dist/client/storefront/components/infinite-scroll.mjs.map +1 -0
- package/dist/client/storefront/components/language-selector.d.ts +5 -0
- package/dist/client/storefront/components/language-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/language-selector.mjs +58 -0
- package/dist/client/storefront/components/language-selector.mjs.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts +14 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.mjs +81 -0
- package/dist/client/storefront/components/newsletter-signup.mjs.map +1 -0
- package/dist/client/storefront/components/price.d.ts +14 -0
- package/dist/client/storefront/components/price.d.ts.map +1 -0
- package/dist/client/storefront/components/price.mjs +46 -0
- package/dist/client/storefront/components/price.mjs.map +1 -0
- package/dist/client/storefront/components/product-recommendations.d.ts +18 -0
- package/dist/client/storefront/components/product-recommendations.d.ts.map +1 -0
- package/dist/client/storefront/components/product-recommendations.mjs +108 -0
- package/dist/client/storefront/components/product-recommendations.mjs.map +1 -0
- package/dist/client/storefront/components/product-tabs.d.ts +12 -0
- package/dist/client/storefront/components/product-tabs.d.ts.map +1 -0
- package/dist/client/storefront/components/product-tabs.mjs +64 -0
- package/dist/client/storefront/components/product-tabs.mjs.map +1 -0
- package/dist/client/storefront/components/quick-view.d.ts +25 -0
- package/dist/client/storefront/components/quick-view.d.ts.map +1 -0
- package/dist/client/storefront/components/quick-view.mjs +149 -0
- package/dist/client/storefront/components/quick-view.mjs.map +1 -0
- package/dist/client/storefront/components/review-summary.d.ts +17 -0
- package/dist/client/storefront/components/review-summary.d.ts.map +1 -0
- package/dist/client/storefront/components/review-summary.mjs +66 -0
- package/dist/client/storefront/components/review-summary.mjs.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts +25 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.mjs +183 -0
- package/dist/client/storefront/components/search-autocomplete.mjs.map +1 -0
- package/dist/client/storefront/components/section-nav.d.ts +20 -0
- package/dist/client/storefront/components/section-nav.d.ts.map +1 -0
- package/dist/client/storefront/components/section-nav.mjs +175 -0
- package/dist/client/storefront/components/section-nav.mjs.map +1 -0
- package/dist/client/storefront/components/share-button.d.ts +19 -0
- package/dist/client/storefront/components/share-button.d.ts.map +1 -0
- package/dist/client/storefront/components/share-button.mjs +95 -0
- package/dist/client/storefront/components/share-button.mjs.map +1 -0
- package/dist/client/storefront/components/skeleton.d.ts +12 -0
- package/dist/client/storefront/components/skeleton.d.ts.map +1 -0
- package/dist/client/storefront/components/skeleton.mjs +70 -0
- package/dist/client/storefront/components/skeleton.mjs.map +1 -0
- package/dist/client/storefront/components/star-rating.d.ts +13 -0
- package/dist/client/storefront/components/star-rating.d.ts.map +1 -0
- package/dist/client/storefront/components/star-rating.mjs +240 -0
- package/dist/client/storefront/components/star-rating.mjs.map +1 -0
- package/dist/client/storefront/components/testimonial.d.ts +20 -0
- package/dist/client/storefront/components/testimonial.d.ts.map +1 -0
- package/dist/client/storefront/components/testimonial.mjs +53 -0
- package/dist/client/storefront/components/testimonial.mjs.map +1 -0
- package/dist/client/storefront/components/trust-badges.d.ts +14 -0
- package/dist/client/storefront/components/trust-badges.d.ts.map +1 -0
- package/dist/client/storefront/components/trust-badges.mjs +25 -0
- package/dist/client/storefront/components/trust-badges.mjs.map +1 -0
- package/dist/client/storefront/components/variant-selector.d.ts +21 -0
- package/dist/client/storefront/components/variant-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/variant-selector.mjs +41 -0
- package/dist/client/storefront/components/variant-selector.mjs.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts +12 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs +58 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-chip.d.ts +10 -0
- package/dist/client/storefront/filters/filter-chip.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-chip.mjs +30 -0
- package/dist/client/storefront/filters/filter-chip.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-group.d.ts +22 -0
- package/dist/client/storefront/filters/filter-group.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-group.mjs +102 -0
- package/dist/client/storefront/filters/filter-group.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-panel.d.ts +25 -0
- package/dist/client/storefront/filters/filter-panel.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-panel.mjs +110 -0
- package/dist/client/storefront/filters/filter-panel.mjs.map +1 -0
- package/dist/client/storefront/filters/index.d.ts +6 -0
- package/dist/client/storefront/filters/index.d.ts.map +1 -0
- package/dist/client/storefront/filters/index.mjs +13 -0
- package/dist/client/storefront/filters/index.mjs.map +1 -0
- package/dist/client/storefront/filters/sort-select.d.ts +12 -0
- package/dist/client/storefront/filters/sort-select.d.ts.map +1 -0
- package/dist/client/storefront/filters/sort-select.mjs +34 -0
- package/dist/client/storefront/filters/sort-select.mjs.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts +8 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs +30 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts +12 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs +46 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs.map +1 -0
- package/dist/client/storefront/index.d.ts +24 -0
- package/dist/client/storefront/index.d.ts.map +1 -0
- package/dist/client/storefront/index.mjs +26 -0
- package/dist/client/storefront/index.mjs.map +1 -0
- package/dist/client/storefront/layout/footer.d.ts +4 -0
- package/dist/client/storefront/layout/footer.d.ts.map +1 -0
- package/dist/client/storefront/layout/footer.mjs +56 -0
- package/dist/client/storefront/layout/footer.mjs.map +1 -0
- package/dist/client/storefront/layout/header.d.ts +4 -0
- package/dist/client/storefront/layout/header.d.ts.map +1 -0
- package/dist/client/storefront/layout/header.mjs +367 -0
- package/dist/client/storefront/layout/header.mjs.map +1 -0
- package/dist/client/storefront/layout/index.d.ts +5 -0
- package/dist/client/storefront/layout/index.d.ts.map +1 -0
- package/dist/client/storefront/layout/index.mjs +11 -0
- package/dist/client/storefront/layout/index.mjs.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts +4 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs +93 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts +4 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.mjs +79 -0
- package/dist/client/storefront/layout/promotion-bar.mjs.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts +12 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs +37 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs.map +1 -0
- package/dist/client/storefront/primitives/button.d.ts +12 -0
- package/dist/client/storefront/primitives/button.d.ts.map +1 -0
- package/dist/client/storefront/primitives/button.mjs +51 -0
- package/dist/client/storefront/primitives/button.mjs.map +1 -0
- package/dist/client/storefront/primitives/checkbox.d.ts +10 -0
- package/dist/client/storefront/primitives/checkbox.d.ts.map +1 -0
- package/dist/client/storefront/primitives/checkbox.mjs +23 -0
- package/dist/client/storefront/primitives/checkbox.mjs.map +1 -0
- package/dist/client/storefront/primitives/download-item.d.ts +9 -0
- package/dist/client/storefront/primitives/download-item.d.ts.map +1 -0
- package/dist/client/storefront/primitives/download-item.mjs +28 -0
- package/dist/client/storefront/primitives/download-item.mjs.map +1 -0
- package/dist/client/storefront/primitives/index.d.ts +10 -0
- package/dist/client/storefront/primitives/index.d.ts.map +1 -0
- package/dist/client/storefront/primitives/index.mjs +21 -0
- package/dist/client/storefront/primitives/index.mjs.map +1 -0
- package/dist/client/storefront/primitives/input.d.ts +18 -0
- package/dist/client/storefront/primitives/input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/input.mjs +118 -0
- package/dist/client/storefront/primitives/input.mjs.map +1 -0
- package/dist/client/storefront/primitives/pagination.d.ts +9 -0
- package/dist/client/storefront/primitives/pagination.d.ts.map +1 -0
- package/dist/client/storefront/primitives/pagination.mjs +86 -0
- package/dist/client/storefront/primitives/pagination.mjs.map +1 -0
- package/dist/client/storefront/primitives/quick-links.d.ts +11 -0
- package/dist/client/storefront/primitives/quick-links.d.ts.map +1 -0
- package/dist/client/storefront/primitives/quick-links.mjs +17 -0
- package/dist/client/storefront/primitives/quick-links.mjs.map +1 -0
- package/dist/client/storefront/primitives/select.d.ts +16 -0
- package/dist/client/storefront/primitives/select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/select.mjs +35 -0
- package/dist/client/storefront/primitives/select.mjs.map +1 -0
- package/dist/client/storefront/primitives/text-link.d.ts +7 -0
- package/dist/client/storefront/primitives/text-link.d.ts.map +1 -0
- package/dist/client/storefront/primitives/text-link.mjs +10 -0
- package/dist/client/storefront/primitives/text-link.mjs.map +1 -0
- package/dist/client/storefront/product/color-swatch.d.ts +10 -0
- package/dist/client/storefront/product/color-swatch.d.ts.map +1 -0
- package/dist/client/storefront/product/color-swatch.mjs +32 -0
- package/dist/client/storefront/product/color-swatch.mjs.map +1 -0
- package/dist/client/storefront/product/index.d.ts +5 -0
- package/dist/client/storefront/product/index.d.ts.map +1 -0
- package/dist/client/storefront/product/index.mjs +11 -0
- package/dist/client/storefront/product/index.mjs.map +1 -0
- package/dist/client/storefront/product/material-selector.d.ts +15 -0
- package/dist/client/storefront/product/material-selector.d.ts.map +1 -0
- package/dist/client/storefront/product/material-selector.mjs +35 -0
- package/dist/client/storefront/product/material-selector.mjs.map +1 -0
- package/dist/client/storefront/product/product-usp.d.ts +7 -0
- package/dist/client/storefront/product/product-usp.d.ts.map +1 -0
- package/dist/client/storefront/product/product-usp.mjs +14 -0
- package/dist/client/storefront/product/product-usp.mjs.map +1 -0
- package/dist/client/storefront/product/quantity-picker.d.ts +10 -0
- package/dist/client/storefront/product/quantity-picker.d.ts.map +1 -0
- package/dist/client/storefront/product/quantity-picker.mjs +56 -0
- package/dist/client/storefront/product/quantity-picker.mjs.map +1 -0
- package/dist/client/storefront/types.d.ts +284 -0
- package/dist/client/storefront/types.d.ts.map +1 -0
- package/dist/client/storefront/types.mjs +20 -0
- package/dist/client/storefront/types.mjs.map +1 -0
- package/dist/client/theme/apply.d.ts +17 -0
- package/dist/client/theme/apply.d.ts.map +1 -0
- package/dist/client/theme/apply.mjs +133 -0
- package/dist/client/theme/apply.mjs.map +1 -0
- package/dist/client/theme/cli.d.ts +2 -0
- package/dist/client/theme/cli.d.ts.map +1 -0
- package/dist/client/theme/cli.mjs +453 -0
- package/dist/client/theme/cli.mjs.map +1 -0
- package/dist/client/theme/codec.d.ts +28 -0
- package/dist/client/theme/codec.d.ts.map +1 -0
- package/dist/client/theme/codec.mjs +88 -0
- package/dist/client/theme/codec.mjs.map +1 -0
- package/dist/client/theme/defaults.d.ts +64 -0
- package/dist/client/theme/defaults.d.ts.map +1 -0
- package/dist/client/theme/defaults.mjs +158 -0
- package/dist/client/theme/defaults.mjs.map +1 -0
- package/dist/client/theme/index.d.ts +8 -0
- package/dist/client/theme/index.d.ts.map +1 -0
- package/dist/client/theme/index.mjs +20 -0
- package/dist/client/theme/index.mjs.map +1 -0
- package/dist/client/theme/scan.d.ts +16 -0
- package/dist/client/theme/scan.d.ts.map +1 -0
- package/dist/client/theme/scan.mjs +25 -0
- package/dist/client/theme/scan.mjs.map +1 -0
- package/dist/client/ui/accordion.d.ts +8 -0
- package/dist/client/ui/accordion.d.ts.map +1 -0
- package/dist/client/ui/accordion.mjs +66 -0
- package/dist/client/ui/accordion.mjs.map +1 -0
- package/dist/client/ui/breadcrumb.d.ts +12 -0
- package/dist/client/ui/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui/breadcrumb.mjs +104 -0
- package/dist/client/ui/breadcrumb.mjs.map +1 -0
- package/dist/client/ui/button.d.ts +11 -0
- package/dist/client/ui/button.d.ts.map +1 -0
- package/dist/client/ui/button.mjs +57 -0
- package/dist/client/ui/button.mjs.map +1 -0
- package/dist/client/ui/card.d.ts +10 -0
- package/dist/client/ui/card.d.ts.map +1 -0
- package/dist/client/ui/card.mjs +91 -0
- package/dist/client/ui/card.mjs.map +1 -0
- package/dist/client/ui/carousel.d.ts +20 -0
- package/dist/client/ui/carousel.d.ts.map +1 -0
- package/dist/client/ui/carousel.mjs +202 -0
- package/dist/client/ui/carousel.mjs.map +1 -0
- package/dist/client/ui/checkbox.d.ts +5 -0
- package/dist/client/ui/checkbox.d.ts.map +1 -0
- package/dist/client/ui/checkbox.mjs +34 -0
- package/dist/client/ui/checkbox.mjs.map +1 -0
- package/dist/client/ui/collapsible.d.ts +6 -0
- package/dist/client/ui/collapsible.d.ts.map +1 -0
- package/dist/client/ui/collapsible.mjs +36 -0
- package/dist/client/ui/collapsible.mjs.map +1 -0
- package/dist/client/ui/input.d.ts +4 -0
- package/dist/client/ui/input.d.ts.map +1 -0
- package/dist/client/ui/input.mjs +22 -0
- package/dist/client/ui/input.mjs.map +1 -0
- package/dist/client/ui/label.d.ts +5 -0
- package/dist/client/ui/label.d.ts.map +1 -0
- package/dist/client/ui/label.mjs +23 -0
- package/dist/client/ui/label.mjs.map +1 -0
- package/dist/client/ui/mid-truncate.d.ts +27 -0
- package/dist/client/ui/mid-truncate.d.ts.map +1 -0
- package/dist/client/ui/mid-truncate.mjs +25 -0
- package/dist/client/ui/mid-truncate.mjs.map +1 -0
- package/dist/client/ui/navigation-menu.d.ts +15 -0
- package/dist/client/ui/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui/navigation-menu.mjs +172 -0
- package/dist/client/ui/navigation-menu.mjs.map +1 -0
- package/dist/client/ui/pagination.d.ts +14 -0
- package/dist/client/ui/pagination.d.ts.map +1 -0
- package/dist/client/ui/pagination.mjs +124 -0
- package/dist/client/ui/pagination.mjs.map +1 -0
- package/dist/client/ui/popover.d.ts +11 -0
- package/dist/client/ui/popover.d.ts.map +1 -0
- package/dist/client/ui/popover.mjs +82 -0
- package/dist/client/ui/popover.mjs.map +1 -0
- package/dist/client/ui/select.d.ts +16 -0
- package/dist/client/ui/select.d.ts.map +1 -0
- package/dist/client/ui/select.mjs +183 -0
- package/dist/client/ui/select.mjs.map +1 -0
- package/dist/client/ui/separator.d.ts +5 -0
- package/dist/client/ui/separator.d.ts.map +1 -0
- package/dist/client/ui/separator.mjs +27 -0
- package/dist/client/ui/separator.mjs.map +1 -0
- package/dist/client/ui/sheet.d.ts +15 -0
- package/dist/client/ui/sheet.d.ts.map +1 -0
- package/dist/client/ui/sheet.mjs +130 -0
- package/dist/client/ui/sheet.mjs.map +1 -0
- package/dist/client/ui/toggle-group.d.ts +10 -0
- package/dist/client/ui/toggle-group.d.ts.map +1 -0
- package/dist/client/ui/toggle-group.mjs +69 -0
- package/dist/client/ui/toggle-group.mjs.map +1 -0
- package/dist/client/ui/toggle.d.ts +10 -0
- package/dist/client/ui/toggle.d.ts.map +1 -0
- package/dist/client/ui/toggle.mjs +44 -0
- package/dist/client/ui/toggle.mjs.map +1 -0
- package/dist/client/ui/utils.d.ts +3 -0
- package/dist/client/ui/utils.d.ts.map +1 -0
- package/dist/client/ui/utils.mjs +9 -0
- package/dist/client/ui/utils.mjs.map +1 -0
- package/dist/client/ui-interfaces/accordion.d.ts +8 -0
- package/dist/client/ui-interfaces/accordion.d.ts.map +1 -0
- package/dist/client/ui-interfaces/accordion.mjs +72 -0
- package/dist/client/ui-interfaces/accordion.mjs.map +1 -0
- package/dist/client/ui-interfaces/breadcrumb.d.ts +12 -0
- package/dist/client/ui-interfaces/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-interfaces/breadcrumb.mjs +97 -0
- package/dist/client/ui-interfaces/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-interfaces/button.d.ts +11 -0
- package/dist/client/ui-interfaces/button.d.ts.map +1 -0
- package/dist/client/ui-interfaces/button.mjs +57 -0
- package/dist/client/ui-interfaces/button.mjs.map +1 -0
- package/dist/client/ui-interfaces/card.d.ts +10 -0
- package/dist/client/ui-interfaces/card.d.ts.map +1 -0
- package/dist/client/ui-interfaces/card.mjs +78 -0
- package/dist/client/ui-interfaces/card.mjs.map +1 -0
- package/dist/client/ui-interfaces/carousel.d.ts +20 -0
- package/dist/client/ui-interfaces/carousel.d.ts.map +1 -0
- package/dist/client/ui-interfaces/carousel.mjs +188 -0
- package/dist/client/ui-interfaces/carousel.mjs.map +1 -0
- package/dist/client/ui-interfaces/checkbox.d.ts +5 -0
- package/dist/client/ui-interfaces/checkbox.d.ts.map +1 -0
- package/dist/client/ui-interfaces/checkbox.mjs +30 -0
- package/dist/client/ui-interfaces/checkbox.mjs.map +1 -0
- package/dist/client/ui-interfaces/collapsible.d.ts +7 -0
- package/dist/client/ui-interfaces/collapsible.d.ts.map +1 -0
- package/dist/client/ui-interfaces/collapsible.mjs +42 -0
- package/dist/client/ui-interfaces/collapsible.mjs.map +1 -0
- package/dist/client/ui-interfaces/index.d.ts +18 -0
- package/dist/client/ui-interfaces/index.d.ts.map +1 -0
- package/dist/client/ui-interfaces/index.mjs +18 -0
- package/dist/client/ui-interfaces/index.mjs.map +1 -0
- package/dist/client/ui-interfaces/input.d.ts +7 -0
- package/dist/client/ui-interfaces/input.d.ts.map +1 -0
- package/dist/client/ui-interfaces/input.mjs +39 -0
- package/dist/client/ui-interfaces/input.mjs.map +1 -0
- package/dist/client/ui-interfaces/label.d.ts +5 -0
- package/dist/client/ui-interfaces/label.d.ts.map +1 -0
- package/dist/client/ui-interfaces/label.mjs +23 -0
- package/dist/client/ui-interfaces/label.mjs.map +1 -0
- package/dist/client/ui-interfaces/navigation-menu.d.ts +15 -0
- package/dist/client/ui-interfaces/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-interfaces/navigation-menu.mjs +163 -0
- package/dist/client/ui-interfaces/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-interfaces/pagination.d.ts +14 -0
- package/dist/client/ui-interfaces/pagination.d.ts.map +1 -0
- package/dist/client/ui-interfaces/pagination.mjs +103 -0
- package/dist/client/ui-interfaces/pagination.mjs.map +1 -0
- package/dist/client/ui-interfaces/popover.d.ts +8 -0
- package/dist/client/ui-interfaces/popover.d.ts.map +1 -0
- package/dist/client/ui-interfaces/popover.mjs +50 -0
- package/dist/client/ui-interfaces/popover.mjs.map +1 -0
- package/dist/client/ui-interfaces/select.d.ts +16 -0
- package/dist/client/ui-interfaces/select.d.ts.map +1 -0
- package/dist/client/ui-interfaces/select.mjs +159 -0
- package/dist/client/ui-interfaces/select.mjs.map +1 -0
- package/dist/client/ui-interfaces/separator.d.ts +5 -0
- package/dist/client/ui-interfaces/separator.d.ts.map +1 -0
- package/dist/client/ui-interfaces/separator.mjs +28 -0
- package/dist/client/ui-interfaces/separator.mjs.map +1 -0
- package/dist/client/ui-interfaces/sheet.d.ts +14 -0
- package/dist/client/ui-interfaces/sheet.d.ts.map +1 -0
- package/dist/client/ui-interfaces/sheet.mjs +140 -0
- package/dist/client/ui-interfaces/sheet.mjs.map +1 -0
- package/dist/client/ui-interfaces/toggle-group.d.ts +10 -0
- package/dist/client/ui-interfaces/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-interfaces/toggle-group.mjs +67 -0
- package/dist/client/ui-interfaces/toggle-group.mjs.map +1 -0
- package/dist/client/ui-interfaces/toggle.d.ts +10 -0
- package/dist/client/ui-interfaces/toggle.d.ts.map +1 -0
- package/dist/client/ui-interfaces/toggle.mjs +45 -0
- package/dist/client/ui-interfaces/toggle.mjs.map +1 -0
- package/dist/client/ui-resolver/accordion.d.ts +11 -0
- package/dist/client/ui-resolver/accordion.d.ts.map +1 -0
- package/dist/client/ui-resolver/accordion.mjs +35 -0
- package/dist/client/ui-resolver/accordion.mjs.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts +14 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.mjs +53 -0
- package/dist/client/ui-resolver/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-resolver/button.d.ts +12 -0
- package/dist/client/ui-resolver/button.d.ts.map +1 -0
- package/dist/client/ui-resolver/button.mjs +25 -0
- package/dist/client/ui-resolver/button.mjs.map +1 -0
- package/dist/client/ui-resolver/card.d.ts +14 -0
- package/dist/client/ui-resolver/card.d.ts.map +1 -0
- package/dist/client/ui-resolver/card.mjs +53 -0
- package/dist/client/ui-resolver/card.mjs.map +1 -0
- package/dist/client/ui-resolver/carousel.d.ts +13 -0
- package/dist/client/ui-resolver/carousel.d.ts.map +1 -0
- package/dist/client/ui-resolver/carousel.mjs +41 -0
- package/dist/client/ui-resolver/carousel.mjs.map +1 -0
- package/dist/client/ui-resolver/checkbox.d.ts +8 -0
- package/dist/client/ui-resolver/checkbox.d.ts.map +1 -0
- package/dist/client/ui-resolver/checkbox.mjs +17 -0
- package/dist/client/ui-resolver/checkbox.mjs.map +1 -0
- package/dist/client/ui-resolver/collapsible.d.ts +10 -0
- package/dist/client/ui-resolver/collapsible.d.ts.map +1 -0
- package/dist/client/ui-resolver/collapsible.mjs +29 -0
- package/dist/client/ui-resolver/collapsible.mjs.map +1 -0
- package/dist/client/ui-resolver/context.d.ts +10 -0
- package/dist/client/ui-resolver/context.d.ts.map +1 -0
- package/dist/client/ui-resolver/context.mjs +28 -0
- package/dist/client/ui-resolver/context.mjs.map +1 -0
- package/dist/client/ui-resolver/index.d.ts +19 -0
- package/dist/client/ui-resolver/index.d.ts.map +1 -0
- package/dist/client/ui-resolver/index.mjs +156 -0
- package/dist/client/ui-resolver/index.mjs.map +1 -0
- package/dist/client/ui-resolver/input.d.ts +8 -0
- package/dist/client/ui-resolver/input.d.ts.map +1 -0
- package/dist/client/ui-resolver/input.mjs +17 -0
- package/dist/client/ui-resolver/input.mjs.map +1 -0
- package/dist/client/ui-resolver/label.d.ts +8 -0
- package/dist/client/ui-resolver/label.d.ts.map +1 -0
- package/dist/client/ui-resolver/label.mjs +17 -0
- package/dist/client/ui-resolver/label.mjs.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts +16 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.mjs +64 -0
- package/dist/client/ui-resolver/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-resolver/pagination.d.ts +14 -0
- package/dist/client/ui-resolver/pagination.d.ts.map +1 -0
- package/dist/client/ui-resolver/pagination.mjs +53 -0
- package/dist/client/ui-resolver/pagination.mjs.map +1 -0
- package/dist/client/ui-resolver/popover.d.ts +11 -0
- package/dist/client/ui-resolver/popover.d.ts.map +1 -0
- package/dist/client/ui-resolver/popover.mjs +35 -0
- package/dist/client/ui-resolver/popover.mjs.map +1 -0
- package/dist/client/ui-resolver/select.d.ts +15 -0
- package/dist/client/ui-resolver/select.d.ts.map +1 -0
- package/dist/client/ui-resolver/select.mjs +59 -0
- package/dist/client/ui-resolver/select.mjs.map +1 -0
- package/dist/client/ui-resolver/separator.d.ts +8 -0
- package/dist/client/ui-resolver/separator.d.ts.map +1 -0
- package/dist/client/ui-resolver/separator.mjs +17 -0
- package/dist/client/ui-resolver/separator.mjs.map +1 -0
- package/dist/client/ui-resolver/sheet.d.ts +15 -0
- package/dist/client/ui-resolver/sheet.d.ts.map +1 -0
- package/dist/client/ui-resolver/sheet.mjs +59 -0
- package/dist/client/ui-resolver/sheet.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle-group.d.ts +9 -0
- package/dist/client/ui-resolver/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle-group.mjs +23 -0
- package/dist/client/ui-resolver/toggle-group.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle.d.ts +12 -0
- package/dist/client/ui-resolver/toggle.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle.mjs +25 -0
- package/dist/client/ui-resolver/toggle.mjs.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts +14 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs +30 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs.map +1 -0
- package/dist/client/user/actions/getUserAction.d.ts +3 -0
- package/dist/client/user/actions/getUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/getUserAction.mjs +19 -0
- package/dist/client/user/actions/getUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logInUserAction.d.ts +15 -0
- package/dist/client/user/actions/logInUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logInUserAction.mjs +34 -0
- package/dist/client/user/actions/logInUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logoutUserAction.d.ts +2 -0
- package/dist/client/user/actions/logoutUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logoutUserAction.mjs +10 -0
- package/dist/client/user/actions/logoutUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts +9 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs +18 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserAction.d.ts +18 -0
- package/dist/client/user/actions/registerUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserAction.mjs +42 -0
- package/dist/client/user/actions/registerUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts +41 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs +58 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts +21 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.mjs +37 -0
- package/dist/client/user/actions/updatePasswordAction.mjs.map +1 -0
- package/dist/client/user/api/userRoute.d.ts +7 -0
- package/dist/client/user/api/userRoute.d.ts.map +1 -0
- package/dist/client/user/api/userRoute.mjs +65 -0
- package/dist/client/user/api/userRoute.mjs.map +1 -0
- package/dist/client/user/clients/enad.d.ts +4 -0
- package/dist/client/user/clients/enad.d.ts.map +1 -0
- package/dist/client/user/clients/enad.mjs +19 -0
- package/dist/client/user/clients/enad.mjs.map +1 -0
- package/dist/client/user/components/login-form.d.ts +23 -0
- package/dist/client/user/components/login-form.d.ts.map +1 -0
- package/dist/client/user/components/login-form.mjs +117 -0
- package/dist/client/user/components/login-form.mjs.map +1 -0
- package/dist/client/user/components/reset-password-form.d.ts +20 -0
- package/dist/client/user/components/reset-password-form.d.ts.map +1 -0
- package/dist/client/user/components/reset-password-form.mjs +93 -0
- package/dist/client/user/components/reset-password-form.mjs.map +1 -0
- package/dist/client/user/components/sign-out.d.ts +8 -0
- package/dist/client/user/components/sign-out.d.ts.map +1 -0
- package/dist/client/user/components/sign-out.mjs +26 -0
- package/dist/client/user/components/sign-out.mjs.map +1 -0
- package/dist/client/user/components/signup-form.d.ts +27 -0
- package/dist/client/user/components/signup-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-form.mjs +188 -0
- package/dist/client/user/components/signup-form.mjs.map +1 -0
- package/dist/client/user/components/signup-organisation-form.d.ts +55 -0
- package/dist/client/user/components/signup-organisation-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-organisation-form.mjs +864 -0
- package/dist/client/user/components/signup-organisation-form.mjs.map +1 -0
- package/dist/client/user/components/update-password-form.d.ts +17 -0
- package/dist/client/user/components/update-password-form.d.ts.map +1 -0
- package/dist/client/user/components/update-password-form.mjs +60 -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.d.ts.map +1 -0
- package/dist/client/user/hooks/index.mjs +2 -0
- package/dist/client/user/hooks/index.mjs.map +1 -0
- package/dist/client/user/hooks/useUser.d.ts +12 -0
- package/dist/client/user/hooks/useUser.d.ts.map +1 -0
- package/dist/client/user/hooks/useUser.mjs +32 -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.d.ts.map +1 -0
- package/dist/client/user/index.mjs +17 -0
- package/dist/client/user/index.mjs.map +1 -0
- package/dist/client/user/types/user.d.ts +201 -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/types/user.mjs.map +1 -0
- package/dist/client/user/utils/userCookieService.d.ts +19 -0
- package/dist/client/user/utils/userCookieService.d.ts.map +1 -0
- package/dist/client/user/utils/userCookieService.mjs +51 -0
- package/dist/client/user/utils/userCookieService.mjs.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts +5 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs +20 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts +3 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs +20 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs +16 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts +5 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs +20 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts +4 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs +16 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs +20 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs +20 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts +4 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs +25 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts +4 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs +20 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts +3 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs +20 -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.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/index.mjs +2 -0
- package/dist/client/wishlist/hooks/index.mjs.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts +95 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs +76 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts +44 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs +101 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs.map +1 -0
- package/dist/client/wishlist/index.d.ts +5 -0
- package/dist/client/wishlist/index.d.ts.map +1 -0
- package/dist/client/wishlist/index.mjs +9 -0
- package/dist/client/wishlist/index.mjs.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts +17 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.mjs +199 -0
- package/dist/client/wishlist/wishlist-drawer.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +54 -32
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
3
|
+
import {
|
|
4
|
+
Cancel01Icon,
|
|
5
|
+
Menu01Icon,
|
|
6
|
+
Search01Icon,
|
|
7
|
+
ShoppingCart01Icon,
|
|
8
|
+
Add01Icon,
|
|
9
|
+
MinusSignIcon,
|
|
10
|
+
Delete01Icon,
|
|
11
|
+
Download01Icon,
|
|
12
|
+
PlayIcon,
|
|
13
|
+
FavouriteIcon,
|
|
14
|
+
StarIcon,
|
|
15
|
+
ArrowLeft01Icon,
|
|
16
|
+
ArrowRight01Icon,
|
|
17
|
+
ArrowDown01Icon,
|
|
18
|
+
ArrowUp01Icon,
|
|
19
|
+
ArrowLeft02Icon,
|
|
20
|
+
ArrowRight02Icon,
|
|
21
|
+
Tick01Icon,
|
|
22
|
+
Mail01Icon,
|
|
23
|
+
Tag01Icon,
|
|
24
|
+
Loading03Icon,
|
|
25
|
+
GridIcon,
|
|
26
|
+
MoreHorizontalIcon,
|
|
27
|
+
SlidersHorizontalIcon,
|
|
28
|
+
DeliveryTruck01Icon,
|
|
29
|
+
SecurityCheckIcon,
|
|
30
|
+
Leaf01Icon,
|
|
31
|
+
Package01Icon,
|
|
32
|
+
CallIcon,
|
|
33
|
+
Location01Icon,
|
|
34
|
+
RulerIcon,
|
|
35
|
+
ArrowExpand01Icon,
|
|
36
|
+
GlobeIcon,
|
|
37
|
+
TranslationIcon,
|
|
38
|
+
UserIcon,
|
|
39
|
+
ViewIcon,
|
|
40
|
+
ViewOffIcon
|
|
41
|
+
} from "@hugeicons/core-free-icons";
|
|
42
|
+
const ListViewIcon = Menu01Icon;
|
|
43
|
+
function createHugeIcons(options) {
|
|
44
|
+
const { strokeWidth = 1.5, color, overrides } = options ?? {};
|
|
45
|
+
const wrap = (iconData) => {
|
|
46
|
+
const WrappedIcon = (props) => /* @__PURE__ */ jsx(
|
|
47
|
+
HugeiconsIcon,
|
|
48
|
+
{
|
|
49
|
+
icon: iconData,
|
|
50
|
+
strokeWidth,
|
|
51
|
+
...color ? { color } : {},
|
|
52
|
+
...props
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
WrappedIcon.displayName = `HugeIcon(${iconData.name ?? "Icon"})`;
|
|
56
|
+
return WrappedIcon;
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
// Navigation & chrome
|
|
60
|
+
close: wrap(Cancel01Icon),
|
|
61
|
+
menu: wrap(Menu01Icon),
|
|
62
|
+
search: wrap(Search01Icon),
|
|
63
|
+
cart: wrap(ShoppingCart01Icon),
|
|
64
|
+
// Actions
|
|
65
|
+
plus: wrap(Add01Icon),
|
|
66
|
+
minus: wrap(MinusSignIcon),
|
|
67
|
+
trash: wrap(Delete01Icon),
|
|
68
|
+
download: wrap(Download01Icon),
|
|
69
|
+
play: wrap(PlayIcon),
|
|
70
|
+
// Favorites & ratings
|
|
71
|
+
heart: wrap(FavouriteIcon),
|
|
72
|
+
heartFilled: wrap(FavouriteIcon),
|
|
73
|
+
star: wrap(StarIcon),
|
|
74
|
+
starFilled: wrap(StarIcon),
|
|
75
|
+
// Directional
|
|
76
|
+
chevronLeft: wrap(ArrowLeft01Icon),
|
|
77
|
+
chevronRight: wrap(ArrowRight01Icon),
|
|
78
|
+
chevronDown: wrap(ArrowDown01Icon),
|
|
79
|
+
chevronUp: wrap(ArrowUp01Icon),
|
|
80
|
+
arrowLeft: wrap(ArrowLeft02Icon),
|
|
81
|
+
arrowRight: wrap(ArrowRight02Icon),
|
|
82
|
+
// Status & decorative
|
|
83
|
+
check: wrap(Tick01Icon),
|
|
84
|
+
mail: wrap(Mail01Icon),
|
|
85
|
+
tag: wrap(Tag01Icon),
|
|
86
|
+
loader: wrap(Loading03Icon),
|
|
87
|
+
// Layout & filters
|
|
88
|
+
grid: wrap(GridIcon),
|
|
89
|
+
list: wrap(ListViewIcon),
|
|
90
|
+
sliders: wrap(SlidersHorizontalIcon),
|
|
91
|
+
more: wrap(MoreHorizontalIcon),
|
|
92
|
+
// Trust & info
|
|
93
|
+
truck: wrap(DeliveryTruck01Icon),
|
|
94
|
+
shield: wrap(SecurityCheckIcon),
|
|
95
|
+
leaf: wrap(Leaf01Icon),
|
|
96
|
+
package: wrap(Package01Icon),
|
|
97
|
+
phone: wrap(CallIcon),
|
|
98
|
+
mapPin: wrap(Location01Icon),
|
|
99
|
+
// Measurement & product details
|
|
100
|
+
ruler: wrap(RulerIcon),
|
|
101
|
+
resize: wrap(ArrowExpand01Icon),
|
|
102
|
+
// Internationalization
|
|
103
|
+
globe: wrap(GlobeIcon),
|
|
104
|
+
translate: wrap(TranslationIcon),
|
|
105
|
+
// User & account
|
|
106
|
+
user: wrap(UserIcon),
|
|
107
|
+
eye: wrap(ViewIcon),
|
|
108
|
+
eyeOff: wrap(ViewOffIcon),
|
|
109
|
+
...overrides
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
const hugeIcons = createHugeIcons();
|
|
113
|
+
export {
|
|
114
|
+
createHugeIcons,
|
|
115
|
+
hugeIcons
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=hugeicons.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/icons/adapters/hugeicons.tsx"],"sourcesContent":["import { HugeiconsIcon } from \"@hugeicons/react\"\nimport {\n Cancel01Icon,\n Menu01Icon,\n Search01Icon,\n ShoppingCart01Icon,\n Add01Icon,\n MinusSignIcon,\n Delete01Icon,\n Download01Icon,\n PlayIcon,\n FavouriteIcon,\n StarIcon,\n ArrowLeft01Icon,\n ArrowRight01Icon,\n ArrowDown01Icon,\n ArrowUp01Icon,\n ArrowLeft02Icon,\n ArrowRight02Icon,\n Tick01Icon,\n Mail01Icon,\n Tag01Icon,\n Loading03Icon,\n GridIcon,\n MoreHorizontalIcon,\n SlidersHorizontalIcon,\n DeliveryTruck01Icon,\n SecurityCheckIcon,\n Leaf01Icon,\n Package01Icon,\n CallIcon,\n Location01Icon,\n RulerIcon,\n ArrowExpand01Icon,\n GlobeIcon,\n TranslationIcon,\n UserIcon,\n ViewIcon,\n ViewOffIcon,\n} from \"@hugeicons/core-free-icons\"\nimport type { IconSlotMap } from \"../types\"\n\n// HugeIcons doesn't have \"list view\" as a single icon, reuse Menu01Icon\nconst ListViewIcon = Menu01Icon\n\nexport type HugeIconsAdapterOptions = {\n strokeWidth?: number\n color?: string\n overrides?: Partial<IconSlotMap>\n}\n\nexport function createHugeIcons(options?: HugeIconsAdapterOptions): IconSlotMap {\n const { strokeWidth = 1.5, color, overrides } = options ?? {}\n\n const wrap = (iconData: typeof Cancel01Icon) => {\n const WrappedIcon = (props: Record<string, unknown>) => (\n <HugeiconsIcon\n icon={iconData}\n strokeWidth={strokeWidth}\n {...(color ? { color } : {})}\n {...props}\n />\n )\n WrappedIcon.displayName = `HugeIcon(${(iconData as { name?: string }).name ?? \"Icon\"})`\n return WrappedIcon\n }\n\n // HugeIcons free set doesn't have weight variants like Phosphor.\n // For filled variants, we use the same icon (consumers can override with pro icons).\n return {\n // Navigation & chrome\n close: wrap(Cancel01Icon),\n menu: wrap(Menu01Icon),\n search: wrap(Search01Icon),\n cart: wrap(ShoppingCart01Icon),\n // Actions\n plus: wrap(Add01Icon),\n minus: wrap(MinusSignIcon),\n trash: wrap(Delete01Icon),\n download: wrap(Download01Icon),\n play: wrap(PlayIcon),\n // Favorites & ratings\n heart: wrap(FavouriteIcon),\n heartFilled: wrap(FavouriteIcon),\n star: wrap(StarIcon),\n starFilled: wrap(StarIcon),\n // Directional\n chevronLeft: wrap(ArrowLeft01Icon),\n chevronRight: wrap(ArrowRight01Icon),\n chevronDown: wrap(ArrowDown01Icon),\n chevronUp: wrap(ArrowUp01Icon),\n arrowLeft: wrap(ArrowLeft02Icon),\n arrowRight: wrap(ArrowRight02Icon),\n // Status & decorative\n check: wrap(Tick01Icon),\n mail: wrap(Mail01Icon),\n tag: wrap(Tag01Icon),\n loader: wrap(Loading03Icon),\n // Layout & filters\n grid: wrap(GridIcon),\n list: wrap(ListViewIcon),\n sliders: wrap(SlidersHorizontalIcon),\n more: wrap(MoreHorizontalIcon),\n // Trust & info\n truck: wrap(DeliveryTruck01Icon),\n shield: wrap(SecurityCheckIcon),\n leaf: wrap(Leaf01Icon),\n package: wrap(Package01Icon),\n phone: wrap(CallIcon),\n mapPin: wrap(Location01Icon),\n // Measurement & product details\n ruler: wrap(RulerIcon),\n resize: wrap(ArrowExpand01Icon),\n // Internationalization\n globe: wrap(GlobeIcon),\n translate: wrap(TranslationIcon),\n // User & account\n user: wrap(UserIcon),\n eye: wrap(ViewIcon),\n eyeOff: wrap(ViewOffIcon),\n ...overrides,\n }\n}\n\nexport const hugeIcons = createHugeIcons()\n"],"mappings":"AAwDM;AAxDN,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP,MAAM,eAAe;AAQd,SAAS,gBAAgB,SAAgD;AAC9E,QAAM,EAAE,cAAc,KAAK,OAAO,UAAU,IAAI,WAAW,CAAC;AAE5D,QAAM,OAAO,CAAC,aAAkC;AAC9C,UAAM,cAAc,CAAC,UACnB;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN;AAAA,QACC,GAAI,QAAQ,EAAE,MAAM,IAAI,CAAC;AAAA,QACzB,GAAG;AAAA;AAAA,IACN;AAEF,gBAAY,cAAc,YAAa,SAA+B,QAAQ,MAAM;AACpF,WAAO;AAAA,EACT;AAIA,SAAO;AAAA;AAAA,IAEL,OAAO,KAAK,YAAY;AAAA,IACxB,MAAM,KAAK,UAAU;AAAA,IACrB,QAAQ,KAAK,YAAY;AAAA,IACzB,MAAM,KAAK,kBAAkB;AAAA;AAAA,IAE7B,MAAM,KAAK,SAAS;AAAA,IACpB,OAAO,KAAK,aAAa;AAAA,IACzB,OAAO,KAAK,YAAY;AAAA,IACxB,UAAU,KAAK,cAAc;AAAA,IAC7B,MAAM,KAAK,QAAQ;AAAA;AAAA,IAEnB,OAAO,KAAK,aAAa;AAAA,IACzB,aAAa,KAAK,aAAa;AAAA,IAC/B,MAAM,KAAK,QAAQ;AAAA,IACnB,YAAY,KAAK,QAAQ;AAAA;AAAA,IAEzB,aAAa,KAAK,eAAe;AAAA,IACjC,cAAc,KAAK,gBAAgB;AAAA,IACnC,aAAa,KAAK,eAAe;AAAA,IACjC,WAAW,KAAK,aAAa;AAAA,IAC7B,WAAW,KAAK,eAAe;AAAA,IAC/B,YAAY,KAAK,gBAAgB;AAAA;AAAA,IAEjC,OAAO,KAAK,UAAU;AAAA,IACtB,MAAM,KAAK,UAAU;AAAA,IACrB,KAAK,KAAK,SAAS;AAAA,IACnB,QAAQ,KAAK,aAAa;AAAA;AAAA,IAE1B,MAAM,KAAK,QAAQ;AAAA,IACnB,MAAM,KAAK,YAAY;AAAA,IACvB,SAAS,KAAK,qBAAqB;AAAA,IACnC,MAAM,KAAK,kBAAkB;AAAA;AAAA,IAE7B,OAAO,KAAK,mBAAmB;AAAA,IAC/B,QAAQ,KAAK,iBAAiB;AAAA,IAC9B,MAAM,KAAK,UAAU;AAAA,IACrB,SAAS,KAAK,aAAa;AAAA,IAC3B,OAAO,KAAK,QAAQ;AAAA,IACpB,QAAQ,KAAK,cAAc;AAAA;AAAA,IAE3B,OAAO,KAAK,SAAS;AAAA,IACrB,QAAQ,KAAK,iBAAiB;AAAA;AAAA,IAE9B,OAAO,KAAK,SAAS;AAAA,IACrB,WAAW,KAAK,eAAe;AAAA;AAAA,IAE/B,MAAM,KAAK,QAAQ;AAAA,IACnB,KAAK,KAAK,QAAQ;AAAA,IAClB,QAAQ,KAAK,WAAW;AAAA,IACxB,GAAG;AAAA,EACL;AACF;AAEO,MAAM,YAAY,gBAAgB;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconSlotMap } from "../types";
|
|
2
|
+
export type LucideAdapterOptions = {
|
|
3
|
+
strokeWidth?: number;
|
|
4
|
+
overrides?: Partial<IconSlotMap>;
|
|
5
|
+
};
|
|
6
|
+
export declare function createLucideIcons(options?: LucideAdapterOptions): IconSlotMap;
|
|
7
|
+
export declare const lucideIcons: IconSlotMap;
|
|
8
|
+
//# sourceMappingURL=lucide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lucide.d.ts","sourceRoot":"","sources":["../../../../src/client/icons/adapters/lucide.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CACjC,CAAA;AAED,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,WAAW,CAgE7E;AAED,eAAO,MAAM,WAAW,aAAsB,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
X,
|
|
4
|
+
Menu,
|
|
5
|
+
Search,
|
|
6
|
+
ShoppingBag,
|
|
7
|
+
Plus,
|
|
8
|
+
Minus,
|
|
9
|
+
Trash2,
|
|
10
|
+
Download,
|
|
11
|
+
Play,
|
|
12
|
+
Heart,
|
|
13
|
+
Star,
|
|
14
|
+
ChevronLeft,
|
|
15
|
+
ChevronRight,
|
|
16
|
+
ChevronDown,
|
|
17
|
+
ChevronUp,
|
|
18
|
+
ArrowLeft,
|
|
19
|
+
ArrowRight,
|
|
20
|
+
Check,
|
|
21
|
+
Mail,
|
|
22
|
+
Tag,
|
|
23
|
+
Loader2,
|
|
24
|
+
LayoutGrid,
|
|
25
|
+
List,
|
|
26
|
+
SlidersHorizontal,
|
|
27
|
+
MoreHorizontal,
|
|
28
|
+
Truck,
|
|
29
|
+
Shield,
|
|
30
|
+
Leaf,
|
|
31
|
+
Package,
|
|
32
|
+
Phone,
|
|
33
|
+
MapPin,
|
|
34
|
+
Ruler,
|
|
35
|
+
Maximize2,
|
|
36
|
+
Globe,
|
|
37
|
+
Languages,
|
|
38
|
+
User,
|
|
39
|
+
Eye,
|
|
40
|
+
EyeOff
|
|
41
|
+
} from "lucide-react";
|
|
42
|
+
function createLucideIcons(options) {
|
|
43
|
+
const { strokeWidth = 2, overrides } = options ?? {};
|
|
44
|
+
const wrap = (Icon) => {
|
|
45
|
+
const WrappedIcon = (props) => /* @__PURE__ */ jsx(Icon, { strokeWidth, ...props });
|
|
46
|
+
WrappedIcon.displayName = `Lucide(${Icon.displayName ?? "Icon"})`;
|
|
47
|
+
return WrappedIcon;
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
// Navigation & chrome
|
|
51
|
+
close: wrap(X),
|
|
52
|
+
menu: wrap(Menu),
|
|
53
|
+
search: wrap(Search),
|
|
54
|
+
cart: wrap(ShoppingBag),
|
|
55
|
+
// Actions
|
|
56
|
+
plus: wrap(Plus),
|
|
57
|
+
minus: wrap(Minus),
|
|
58
|
+
trash: wrap(Trash2),
|
|
59
|
+
download: wrap(Download),
|
|
60
|
+
play: wrap(Play),
|
|
61
|
+
// Favorites & ratings
|
|
62
|
+
heart: wrap(Heart),
|
|
63
|
+
heartFilled: wrap(Heart),
|
|
64
|
+
star: wrap(Star),
|
|
65
|
+
starFilled: wrap(Star),
|
|
66
|
+
// Directional
|
|
67
|
+
chevronLeft: wrap(ChevronLeft),
|
|
68
|
+
chevronRight: wrap(ChevronRight),
|
|
69
|
+
chevronDown: wrap(ChevronDown),
|
|
70
|
+
chevronUp: wrap(ChevronUp),
|
|
71
|
+
arrowLeft: wrap(ArrowLeft),
|
|
72
|
+
arrowRight: wrap(ArrowRight),
|
|
73
|
+
// Status & decorative
|
|
74
|
+
check: wrap(Check),
|
|
75
|
+
mail: wrap(Mail),
|
|
76
|
+
tag: wrap(Tag),
|
|
77
|
+
loader: wrap(Loader2),
|
|
78
|
+
// Layout & filters
|
|
79
|
+
grid: wrap(LayoutGrid),
|
|
80
|
+
list: wrap(List),
|
|
81
|
+
sliders: wrap(SlidersHorizontal),
|
|
82
|
+
more: wrap(MoreHorizontal),
|
|
83
|
+
// Trust & info
|
|
84
|
+
truck: wrap(Truck),
|
|
85
|
+
shield: wrap(Shield),
|
|
86
|
+
leaf: wrap(Leaf),
|
|
87
|
+
package: wrap(Package),
|
|
88
|
+
phone: wrap(Phone),
|
|
89
|
+
mapPin: wrap(MapPin),
|
|
90
|
+
// Measurement & product details
|
|
91
|
+
ruler: wrap(Ruler),
|
|
92
|
+
resize: wrap(Maximize2),
|
|
93
|
+
// Internationalization
|
|
94
|
+
globe: wrap(Globe),
|
|
95
|
+
translate: wrap(Languages),
|
|
96
|
+
// User & account
|
|
97
|
+
user: wrap(User),
|
|
98
|
+
eye: wrap(Eye),
|
|
99
|
+
eyeOff: wrap(EyeOff),
|
|
100
|
+
...overrides
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
const lucideIcons = createLucideIcons();
|
|
104
|
+
export {
|
|
105
|
+
createLucideIcons,
|
|
106
|
+
lucideIcons
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=lucide.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/icons/adapters/lucide.tsx"],"sourcesContent":["import {\n X,\n Menu,\n Search,\n ShoppingBag,\n Plus,\n Minus,\n Trash2,\n Download,\n Play,\n Heart,\n Star,\n ChevronLeft,\n ChevronRight,\n ChevronDown,\n ChevronUp,\n ArrowLeft,\n ArrowRight,\n Check,\n Mail,\n Tag,\n Loader2,\n LayoutGrid,\n List,\n SlidersHorizontal,\n MoreHorizontal,\n Truck,\n Shield,\n Leaf,\n Package,\n Phone,\n MapPin,\n Ruler,\n Maximize2,\n Globe,\n Languages,\n User,\n Eye,\n EyeOff,\n} from \"lucide-react\"\nimport type { IconSlotMap } from \"../types\"\n\nexport type LucideAdapterOptions = {\n strokeWidth?: number\n overrides?: Partial<IconSlotMap>\n}\n\nexport function createLucideIcons(options?: LucideAdapterOptions): IconSlotMap {\n const { strokeWidth = 2, overrides } = options ?? {}\n\n const wrap = (Icon: React.ComponentType<Record<string, unknown>>) => {\n const WrappedIcon = (props: Record<string, unknown>) => (\n <Icon strokeWidth={strokeWidth} {...props} />\n )\n WrappedIcon.displayName = `Lucide(${Icon.displayName ?? \"Icon\"})`\n return WrappedIcon\n }\n\n return {\n // Navigation & chrome\n close: wrap(X),\n menu: wrap(Menu),\n search: wrap(Search),\n cart: wrap(ShoppingBag),\n // Actions\n plus: wrap(Plus),\n minus: wrap(Minus),\n trash: wrap(Trash2),\n download: wrap(Download),\n play: wrap(Play),\n // Favorites & ratings\n heart: wrap(Heart),\n heartFilled: wrap(Heart),\n star: wrap(Star),\n starFilled: wrap(Star),\n // Directional\n chevronLeft: wrap(ChevronLeft),\n chevronRight: wrap(ChevronRight),\n chevronDown: wrap(ChevronDown),\n chevronUp: wrap(ChevronUp),\n arrowLeft: wrap(ArrowLeft),\n arrowRight: wrap(ArrowRight),\n // Status & decorative\n check: wrap(Check),\n mail: wrap(Mail),\n tag: wrap(Tag),\n loader: wrap(Loader2),\n // Layout & filters\n grid: wrap(LayoutGrid),\n list: wrap(List),\n sliders: wrap(SlidersHorizontal),\n more: wrap(MoreHorizontal),\n // Trust & info\n truck: wrap(Truck),\n shield: wrap(Shield),\n leaf: wrap(Leaf),\n package: wrap(Package),\n phone: wrap(Phone),\n mapPin: wrap(MapPin),\n // Measurement & product details\n ruler: wrap(Ruler),\n resize: wrap(Maximize2),\n // Internationalization\n globe: wrap(Globe),\n translate: wrap(Languages),\n // User & account\n user: wrap(User),\n eye: wrap(Eye),\n eyeOff: wrap(EyeOff),\n ...overrides,\n }\n}\n\nexport const lucideIcons = createLucideIcons()\n"],"mappings":"AAoDM;AApDN;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQA,SAAS,kBAAkB,SAA6C;AAC7E,QAAM,EAAE,cAAc,GAAG,UAAU,IAAI,WAAW,CAAC;AAEnD,QAAM,OAAO,CAAC,SAAuD;AACnE,UAAM,cAAc,CAAC,UACnB,oBAAC,QAAK,aAA2B,GAAG,OAAO;AAE7C,gBAAY,cAAc,UAAU,KAAK,eAAe,MAAM;AAC9D,WAAO;AAAA,EACT;AAEA,SAAO;AAAA;AAAA,IAEL,OAAO,KAAK,CAAC;AAAA,IACb,MAAM,KAAK,IAAI;AAAA,IACf,QAAQ,KAAK,MAAM;AAAA,IACnB,MAAM,KAAK,WAAW;AAAA;AAAA,IAEtB,MAAM,KAAK,IAAI;AAAA,IACf,OAAO,KAAK,KAAK;AAAA,IACjB,OAAO,KAAK,MAAM;AAAA,IAClB,UAAU,KAAK,QAAQ;AAAA,IACvB,MAAM,KAAK,IAAI;AAAA;AAAA,IAEf,OAAO,KAAK,KAAK;AAAA,IACjB,aAAa,KAAK,KAAK;AAAA,IACvB,MAAM,KAAK,IAAI;AAAA,IACf,YAAY,KAAK,IAAI;AAAA;AAAA,IAErB,aAAa,KAAK,WAAW;AAAA,IAC7B,cAAc,KAAK,YAAY;AAAA,IAC/B,aAAa,KAAK,WAAW;AAAA,IAC7B,WAAW,KAAK,SAAS;AAAA,IACzB,WAAW,KAAK,SAAS;AAAA,IACzB,YAAY,KAAK,UAAU;AAAA;AAAA,IAE3B,OAAO,KAAK,KAAK;AAAA,IACjB,MAAM,KAAK,IAAI;AAAA,IACf,KAAK,KAAK,GAAG;AAAA,IACb,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,MAAM,KAAK,UAAU;AAAA,IACrB,MAAM,KAAK,IAAI;AAAA,IACf,SAAS,KAAK,iBAAiB;AAAA,IAC/B,MAAM,KAAK,cAAc;AAAA;AAAA,IAEzB,OAAO,KAAK,KAAK;AAAA,IACjB,QAAQ,KAAK,MAAM;AAAA,IACnB,MAAM,KAAK,IAAI;AAAA,IACf,SAAS,KAAK,OAAO;AAAA,IACrB,OAAO,KAAK,KAAK;AAAA,IACjB,QAAQ,KAAK,MAAM;AAAA;AAAA,IAEnB,OAAO,KAAK,KAAK;AAAA,IACjB,QAAQ,KAAK,SAAS;AAAA;AAAA,IAEtB,OAAO,KAAK,KAAK;AAAA,IACjB,WAAW,KAAK,SAAS;AAAA;AAAA,IAEzB,MAAM,KAAK,IAAI;AAAA,IACf,KAAK,KAAK,GAAG;AAAA,IACb,QAAQ,KAAK,MAAM;AAAA,IACnB,GAAG;AAAA,EACL;AACF;AAEO,MAAM,cAAc,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconSlotMap } from "../types";
|
|
2
|
+
type PhosphorWeight = "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
|
|
3
|
+
export type PhosphorAdapterOptions = {
|
|
4
|
+
weight?: PhosphorWeight;
|
|
5
|
+
color?: string;
|
|
6
|
+
overrides?: Partial<IconSlotMap>;
|
|
7
|
+
};
|
|
8
|
+
export declare function createPhosphorIcons(options?: PhosphorAdapterOptions): IconSlotMap;
|
|
9
|
+
export declare const phosphorIcons: IconSlotMap;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=phosphor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phosphor.d.ts","sourceRoot":"","sources":["../../../../src/client/icons/adapters/phosphor.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CACjC,CAAA;AAED,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,WAAW,CAmEjF;AAED,eAAO,MAAM,aAAa,aAAwB,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { XIcon } from "@phosphor-icons/react/X";
|
|
3
|
+
import { ListIcon } from "@phosphor-icons/react/List";
|
|
4
|
+
import { MagnifyingGlassIcon } from "@phosphor-icons/react/MagnifyingGlass";
|
|
5
|
+
import { ShoppingCartIcon } from "@phosphor-icons/react/ShoppingCart";
|
|
6
|
+
import { PlusIcon } from "@phosphor-icons/react/Plus";
|
|
7
|
+
import { MinusIcon } from "@phosphor-icons/react/Minus";
|
|
8
|
+
import { TrashIcon } from "@phosphor-icons/react/Trash";
|
|
9
|
+
import { DownloadSimpleIcon } from "@phosphor-icons/react/DownloadSimple";
|
|
10
|
+
import { PlayIcon } from "@phosphor-icons/react/Play";
|
|
11
|
+
import { HeartIcon } from "@phosphor-icons/react/Heart";
|
|
12
|
+
import { StarIcon } from "@phosphor-icons/react/Star";
|
|
13
|
+
import { CaretLeftIcon } from "@phosphor-icons/react/CaretLeft";
|
|
14
|
+
import { CaretRightIcon } from "@phosphor-icons/react/CaretRight";
|
|
15
|
+
import { CaretDownIcon } from "@phosphor-icons/react/CaretDown";
|
|
16
|
+
import { CaretUpIcon } from "@phosphor-icons/react/CaretUp";
|
|
17
|
+
import { ArrowLeftIcon } from "@phosphor-icons/react/ArrowLeft";
|
|
18
|
+
import { ArrowRightIcon } from "@phosphor-icons/react/ArrowRight";
|
|
19
|
+
import { CheckIcon } from "@phosphor-icons/react/Check";
|
|
20
|
+
import { EnvelopeIcon } from "@phosphor-icons/react/Envelope";
|
|
21
|
+
import { TagIcon } from "@phosphor-icons/react/Tag";
|
|
22
|
+
import { SpinnerGapIcon } from "@phosphor-icons/react/SpinnerGap";
|
|
23
|
+
import { SquaresFourIcon } from "@phosphor-icons/react/SquaresFour";
|
|
24
|
+
import { RowsIcon } from "@phosphor-icons/react/Rows";
|
|
25
|
+
import { SlidersHorizontalIcon } from "@phosphor-icons/react/SlidersHorizontal";
|
|
26
|
+
import { DotsThreeIcon } from "@phosphor-icons/react/DotsThree";
|
|
27
|
+
import { TruckIcon } from "@phosphor-icons/react/Truck";
|
|
28
|
+
import { ShieldCheckIcon } from "@phosphor-icons/react/ShieldCheck";
|
|
29
|
+
import { LeafIcon } from "@phosphor-icons/react/Leaf";
|
|
30
|
+
import { PackageIcon } from "@phosphor-icons/react/Package";
|
|
31
|
+
import { PhoneIcon } from "@phosphor-icons/react/Phone";
|
|
32
|
+
import { MapPinIcon } from "@phosphor-icons/react/MapPin";
|
|
33
|
+
import { RulerIcon } from "@phosphor-icons/react/Ruler";
|
|
34
|
+
import { ArrowsOutIcon } from "@phosphor-icons/react/ArrowsOut";
|
|
35
|
+
import { GlobeSimpleIcon } from "@phosphor-icons/react/GlobeSimple";
|
|
36
|
+
import { TranslateIcon } from "@phosphor-icons/react/Translate";
|
|
37
|
+
import { UserIcon } from "@phosphor-icons/react/User";
|
|
38
|
+
import { EyeIcon } from "@phosphor-icons/react/Eye";
|
|
39
|
+
import { EyeSlashIcon } from "@phosphor-icons/react/EyeSlash";
|
|
40
|
+
function createPhosphorIcons(options) {
|
|
41
|
+
const { weight = "regular", color, overrides } = options ?? {};
|
|
42
|
+
const defaults = { weight, ...color ? { color } : {} };
|
|
43
|
+
const wrap = (Icon, extra) => {
|
|
44
|
+
const merged = { ...defaults, ...extra };
|
|
45
|
+
const WrappedIcon = (props) => /* @__PURE__ */ jsx(Icon, { ...merged, ...props });
|
|
46
|
+
WrappedIcon.displayName = `Phosphor(${Icon.displayName ?? "Icon"})`;
|
|
47
|
+
return WrappedIcon;
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
// Navigation & chrome
|
|
51
|
+
close: wrap(XIcon),
|
|
52
|
+
menu: wrap(ListIcon),
|
|
53
|
+
search: wrap(MagnifyingGlassIcon),
|
|
54
|
+
cart: wrap(ShoppingCartIcon),
|
|
55
|
+
// Actions
|
|
56
|
+
plus: wrap(PlusIcon),
|
|
57
|
+
minus: wrap(MinusIcon),
|
|
58
|
+
trash: wrap(TrashIcon),
|
|
59
|
+
download: wrap(DownloadSimpleIcon),
|
|
60
|
+
play: wrap(PlayIcon),
|
|
61
|
+
// Favorites & ratings
|
|
62
|
+
heart: wrap(HeartIcon),
|
|
63
|
+
heartFilled: wrap(HeartIcon, { weight: "fill" }),
|
|
64
|
+
star: wrap(StarIcon),
|
|
65
|
+
starFilled: wrap(StarIcon, { weight: "fill" }),
|
|
66
|
+
// Directional
|
|
67
|
+
chevronLeft: wrap(CaretLeftIcon),
|
|
68
|
+
chevronRight: wrap(CaretRightIcon),
|
|
69
|
+
chevronDown: wrap(CaretDownIcon),
|
|
70
|
+
chevronUp: wrap(CaretUpIcon),
|
|
71
|
+
arrowLeft: wrap(ArrowLeftIcon),
|
|
72
|
+
arrowRight: wrap(ArrowRightIcon),
|
|
73
|
+
// Status & decorative
|
|
74
|
+
check: wrap(CheckIcon),
|
|
75
|
+
mail: wrap(EnvelopeIcon),
|
|
76
|
+
tag: wrap(TagIcon),
|
|
77
|
+
loader: wrap(SpinnerGapIcon),
|
|
78
|
+
// Layout & filters
|
|
79
|
+
grid: wrap(SquaresFourIcon),
|
|
80
|
+
list: wrap(RowsIcon),
|
|
81
|
+
sliders: wrap(SlidersHorizontalIcon),
|
|
82
|
+
more: wrap(DotsThreeIcon),
|
|
83
|
+
// Trust & info
|
|
84
|
+
truck: wrap(TruckIcon),
|
|
85
|
+
shield: wrap(ShieldCheckIcon),
|
|
86
|
+
leaf: wrap(LeafIcon),
|
|
87
|
+
package: wrap(PackageIcon),
|
|
88
|
+
phone: wrap(PhoneIcon),
|
|
89
|
+
mapPin: wrap(MapPinIcon),
|
|
90
|
+
// Measurement & product details
|
|
91
|
+
ruler: wrap(RulerIcon),
|
|
92
|
+
resize: wrap(ArrowsOutIcon),
|
|
93
|
+
// Internationalization
|
|
94
|
+
globe: wrap(GlobeSimpleIcon),
|
|
95
|
+
translate: wrap(TranslateIcon),
|
|
96
|
+
// User & account
|
|
97
|
+
user: wrap(UserIcon),
|
|
98
|
+
eye: wrap(EyeIcon),
|
|
99
|
+
eyeOff: wrap(EyeSlashIcon),
|
|
100
|
+
...overrides
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
const phosphorIcons = createPhosphorIcons();
|
|
104
|
+
export {
|
|
105
|
+
createPhosphorIcons,
|
|
106
|
+
phosphorIcons
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=phosphor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/icons/adapters/phosphor.tsx"],"sourcesContent":["import { XIcon } from \"@phosphor-icons/react/X\"\nimport { ListIcon } from \"@phosphor-icons/react/List\"\nimport { MagnifyingGlassIcon } from \"@phosphor-icons/react/MagnifyingGlass\"\nimport { ShoppingCartIcon } from \"@phosphor-icons/react/ShoppingCart\"\nimport { PlusIcon } from \"@phosphor-icons/react/Plus\"\nimport { MinusIcon } from \"@phosphor-icons/react/Minus\"\nimport { TrashIcon } from \"@phosphor-icons/react/Trash\"\nimport { DownloadSimpleIcon } from \"@phosphor-icons/react/DownloadSimple\"\nimport { PlayIcon } from \"@phosphor-icons/react/Play\"\nimport { HeartIcon } from \"@phosphor-icons/react/Heart\"\nimport { StarIcon } from \"@phosphor-icons/react/Star\"\nimport { CaretLeftIcon } from \"@phosphor-icons/react/CaretLeft\"\nimport { CaretRightIcon } from \"@phosphor-icons/react/CaretRight\"\nimport { CaretDownIcon } from \"@phosphor-icons/react/CaretDown\"\nimport { CaretUpIcon } from \"@phosphor-icons/react/CaretUp\"\nimport { ArrowLeftIcon } from \"@phosphor-icons/react/ArrowLeft\"\nimport { ArrowRightIcon } from \"@phosphor-icons/react/ArrowRight\"\nimport { CheckIcon } from \"@phosphor-icons/react/Check\"\nimport { EnvelopeIcon } from \"@phosphor-icons/react/Envelope\"\nimport { TagIcon } from \"@phosphor-icons/react/Tag\"\nimport { SpinnerGapIcon } from \"@phosphor-icons/react/SpinnerGap\"\nimport { SquaresFourIcon } from \"@phosphor-icons/react/SquaresFour\"\nimport { RowsIcon } from \"@phosphor-icons/react/Rows\"\nimport { SlidersHorizontalIcon } from \"@phosphor-icons/react/SlidersHorizontal\"\nimport { DotsThreeIcon } from \"@phosphor-icons/react/DotsThree\"\nimport { TruckIcon } from \"@phosphor-icons/react/Truck\"\nimport { ShieldCheckIcon } from \"@phosphor-icons/react/ShieldCheck\"\nimport { LeafIcon } from \"@phosphor-icons/react/Leaf\"\nimport { PackageIcon } from \"@phosphor-icons/react/Package\"\nimport { PhoneIcon } from \"@phosphor-icons/react/Phone\"\nimport { MapPinIcon } from \"@phosphor-icons/react/MapPin\"\nimport { RulerIcon } from \"@phosphor-icons/react/Ruler\"\nimport { ArrowsOutIcon } from \"@phosphor-icons/react/ArrowsOut\"\nimport { GlobeSimpleIcon } from \"@phosphor-icons/react/GlobeSimple\"\nimport { TranslateIcon } from \"@phosphor-icons/react/Translate\"\nimport { UserIcon } from \"@phosphor-icons/react/User\"\nimport { EyeIcon } from \"@phosphor-icons/react/Eye\"\nimport { EyeSlashIcon } from \"@phosphor-icons/react/EyeSlash\"\nimport type { IconSlotMap } from \"../types\"\n\ntype PhosphorWeight = \"thin\" | \"light\" | \"regular\" | \"bold\" | \"fill\" | \"duotone\"\n\nexport type PhosphorAdapterOptions = {\n weight?: PhosphorWeight\n color?: string\n overrides?: Partial<IconSlotMap>\n}\n\nexport function createPhosphorIcons(options?: PhosphorAdapterOptions): IconSlotMap {\n const { weight = \"regular\", color, overrides } = options ?? {}\n const defaults = { weight, ...(color ? { color } : {}) }\n\n const wrap = (\n Icon: React.ComponentType<Record<string, unknown>>,\n extra?: Record<string, unknown>,\n ) => {\n const merged = { ...defaults, ...extra }\n const WrappedIcon = (props: Record<string, unknown>) => <Icon {...merged} {...props} />\n WrappedIcon.displayName = `Phosphor(${Icon.displayName ?? \"Icon\"})`\n return WrappedIcon\n }\n\n return {\n // Navigation & chrome\n close: wrap(XIcon),\n menu: wrap(ListIcon),\n search: wrap(MagnifyingGlassIcon),\n cart: wrap(ShoppingCartIcon),\n // Actions\n plus: wrap(PlusIcon),\n minus: wrap(MinusIcon),\n trash: wrap(TrashIcon),\n download: wrap(DownloadSimpleIcon),\n play: wrap(PlayIcon),\n // Favorites & ratings\n heart: wrap(HeartIcon),\n heartFilled: wrap(HeartIcon, { weight: \"fill\" }),\n star: wrap(StarIcon),\n starFilled: wrap(StarIcon, { weight: \"fill\" }),\n // Directional\n chevronLeft: wrap(CaretLeftIcon),\n chevronRight: wrap(CaretRightIcon),\n chevronDown: wrap(CaretDownIcon),\n chevronUp: wrap(CaretUpIcon),\n arrowLeft: wrap(ArrowLeftIcon),\n arrowRight: wrap(ArrowRightIcon),\n // Status & decorative\n check: wrap(CheckIcon),\n mail: wrap(EnvelopeIcon),\n tag: wrap(TagIcon),\n loader: wrap(SpinnerGapIcon),\n // Layout & filters\n grid: wrap(SquaresFourIcon),\n list: wrap(RowsIcon),\n sliders: wrap(SlidersHorizontalIcon),\n more: wrap(DotsThreeIcon),\n // Trust & info\n truck: wrap(TruckIcon),\n shield: wrap(ShieldCheckIcon),\n leaf: wrap(LeafIcon),\n package: wrap(PackageIcon),\n phone: wrap(PhoneIcon),\n mapPin: wrap(MapPinIcon),\n // Measurement & product details\n ruler: wrap(RulerIcon),\n resize: wrap(ArrowsOutIcon),\n // Internationalization\n globe: wrap(GlobeSimpleIcon),\n translate: wrap(TranslateIcon),\n // User & account\n user: wrap(UserIcon),\n eye: wrap(EyeIcon),\n eyeOff: wrap(EyeSlashIcon),\n ...overrides,\n }\n}\n\nexport const phosphorIcons = createPhosphorIcons()\n"],"mappings":"AAyD4D;AAzD5D,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,6BAA6B;AACtC,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,oBAAoB;AAWtB,SAAS,oBAAoB,SAA+C;AACjF,QAAM,EAAE,SAAS,WAAW,OAAO,UAAU,IAAI,WAAW,CAAC;AAC7D,QAAM,WAAW,EAAE,QAAQ,GAAI,QAAQ,EAAE,MAAM,IAAI,CAAC,EAAG;AAEvD,QAAM,OAAO,CACX,MACA,UACG;AACH,UAAM,SAAS,EAAE,GAAG,UAAU,GAAG,MAAM;AACvC,UAAM,cAAc,CAAC,UAAmC,oBAAC,QAAM,GAAG,QAAS,GAAG,OAAO;AACrF,gBAAY,cAAc,YAAY,KAAK,eAAe,MAAM;AAChE,WAAO;AAAA,EACT;AAEA,SAAO;AAAA;AAAA,IAEL,OAAO,KAAK,KAAK;AAAA,IACjB,MAAM,KAAK,QAAQ;AAAA,IACnB,QAAQ,KAAK,mBAAmB;AAAA,IAChC,MAAM,KAAK,gBAAgB;AAAA;AAAA,IAE3B,MAAM,KAAK,QAAQ;AAAA,IACnB,OAAO,KAAK,SAAS;AAAA,IACrB,OAAO,KAAK,SAAS;AAAA,IACrB,UAAU,KAAK,kBAAkB;AAAA,IACjC,MAAM,KAAK,QAAQ;AAAA;AAAA,IAEnB,OAAO,KAAK,SAAS;AAAA,IACrB,aAAa,KAAK,WAAW,EAAE,QAAQ,OAAO,CAAC;AAAA,IAC/C,MAAM,KAAK,QAAQ;AAAA,IACnB,YAAY,KAAK,UAAU,EAAE,QAAQ,OAAO,CAAC;AAAA;AAAA,IAE7C,aAAa,KAAK,aAAa;AAAA,IAC/B,cAAc,KAAK,cAAc;AAAA,IACjC,aAAa,KAAK,aAAa;AAAA,IAC/B,WAAW,KAAK,WAAW;AAAA,IAC3B,WAAW,KAAK,aAAa;AAAA,IAC7B,YAAY,KAAK,cAAc;AAAA;AAAA,IAE/B,OAAO,KAAK,SAAS;AAAA,IACrB,MAAM,KAAK,YAAY;AAAA,IACvB,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,cAAc;AAAA;AAAA,IAE3B,MAAM,KAAK,eAAe;AAAA,IAC1B,MAAM,KAAK,QAAQ;AAAA,IACnB,SAAS,KAAK,qBAAqB;AAAA,IACnC,MAAM,KAAK,aAAa;AAAA;AAAA,IAExB,OAAO,KAAK,SAAS;AAAA,IACrB,QAAQ,KAAK,eAAe;AAAA,IAC5B,MAAM,KAAK,QAAQ;AAAA,IACnB,SAAS,KAAK,WAAW;AAAA,IACzB,OAAO,KAAK,SAAS;AAAA,IACrB,QAAQ,KAAK,UAAU;AAAA;AAAA,IAEvB,OAAO,KAAK,SAAS;AAAA,IACrB,QAAQ,KAAK,aAAa;AAAA;AAAA,IAE1B,OAAO,KAAK,eAAe;AAAA,IAC3B,WAAW,KAAK,aAAa;AAAA;AAAA,IAE7B,MAAM,KAAK,QAAQ;AAAA,IACnB,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,YAAY;AAAA,IACzB,GAAG;AAAA,EACL;AACF;AAEO,MAAM,gBAAgB,oBAAoB;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconSlotMap, IconProps, IconComponent } from "./types";
|
|
2
|
+
declare const IconContext: import("react").Context<IconSlotMap | null>;
|
|
3
|
+
interface IconProviderProps {
|
|
4
|
+
icons: IconSlotMap;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function IconProvider({ icons, children }: IconProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function useIcon(name: keyof IconSlotMap): IconComponent;
|
|
9
|
+
declare function Icon({ name, ...props }: {
|
|
10
|
+
name: keyof IconSlotMap;
|
|
11
|
+
} & IconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { IconContext, IconProvider, useIcon, Icon };
|
|
13
|
+
//# sourceMappingURL=icon-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-context.d.ts","sourceRoot":"","sources":["../../../src/client/icons/icon-context.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpE,QAAA,MAAM,WAAW,6CAA0C,CAAA;AAE3D,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAE3D;AAED,iBAAS,OAAO,CAAC,IAAI,EAAE,MAAM,WAAW,GAAG,aAAa,CAQvD;AAED,iBAAS,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,WAAW,CAAA;CAAE,GAAG,SAAS,2CAGxE;AAED,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
const IconContext = createContext(null);
|
|
5
|
+
function IconProvider({ icons, children }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(IconContext.Provider, { value: icons, children });
|
|
7
|
+
}
|
|
8
|
+
function useIcon(name) {
|
|
9
|
+
const icons = useContext(IconContext);
|
|
10
|
+
if (!icons) {
|
|
11
|
+
throw new Error(
|
|
12
|
+
`useIcon("${name}"): IconProvider not found. Wrap your app in <EnadProvider>.`
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
return icons[name];
|
|
16
|
+
}
|
|
17
|
+
function Icon({ name, ...props }) {
|
|
18
|
+
const Comp = useIcon(name);
|
|
19
|
+
return /* @__PURE__ */ jsx(Comp, { ...props });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
Icon,
|
|
23
|
+
IconContext,
|
|
24
|
+
IconProvider,
|
|
25
|
+
useIcon
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=icon-context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/icons/icon-context.tsx"],"sourcesContent":["\"use client\"\n\nimport { createContext, useContext } from \"react\"\nimport type { IconSlotMap, IconProps, IconComponent } from \"./types\"\n\nconst IconContext = createContext<IconSlotMap | null>(null)\n\ninterface IconProviderProps {\n icons: IconSlotMap\n children: React.ReactNode\n}\n\nfunction IconProvider({ icons, children }: IconProviderProps) {\n return <IconContext.Provider value={icons}>{children}</IconContext.Provider>\n}\n\nfunction useIcon(name: keyof IconSlotMap): IconComponent {\n const icons = useContext(IconContext)\n if (!icons) {\n throw new Error(\n `useIcon(\"${name}\"): IconProvider not found. Wrap your app in <EnadProvider>.`,\n )\n }\n return icons[name]\n}\n\nfunction Icon({ name, ...props }: { name: keyof IconSlotMap } & IconProps) {\n const Comp = useIcon(name)\n return <Comp {...props} />\n}\n\nexport { IconContext, IconProvider, useIcon, Icon }\n"],"mappings":";AAaS;AAXT,SAAS,eAAe,kBAAkB;AAG1C,MAAM,cAAc,cAAkC,IAAI;AAO1D,SAAS,aAAa,EAAE,OAAO,SAAS,GAAsB;AAC5D,SAAO,oBAAC,YAAY,UAAZ,EAAqB,OAAO,OAAQ,UAAS;AACvD;AAEA,SAAS,QAAQ,MAAwC;AACvD,QAAM,QAAQ,WAAW,WAAW;AACpC,MAAI,CAAC,OAAO;AACV,UAAM,IAAI;AAAA,MACR,YAAY,IAAI;AAAA,IAClB;AAAA,EACF;AACA,SAAO,MAAM,IAAI;AACnB;AAEA,SAAS,KAAK,EAAE,MAAM,GAAG,MAAM,GAA4C;AACzE,QAAM,OAAO,QAAQ,IAAI;AACzB,SAAO,oBAAC,QAAM,GAAG,OAAO;AAC1B;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { IconSlotMap, IconProps, IconComponent } from "./types";
|
|
2
|
+
export { IconProvider, useIcon, Icon } from "./icon-context";
|
|
3
|
+
export { phosphorIcons, createPhosphorIcons } from "./adapters/phosphor";
|
|
4
|
+
export type { PhosphorAdapterOptions } from "./adapters/phosphor";
|
|
5
|
+
export { lucideIcons, createLucideIcons } from "./adapters/lucide";
|
|
6
|
+
export type { LucideAdapterOptions } from "./adapters/lucide";
|
|
7
|
+
export { hugeIcons, createHugeIcons } from "./adapters/hugeicons";
|
|
8
|
+
export type { HugeIconsAdapterOptions } from "./adapters/hugeicons";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/icons/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGpE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAG5D,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IconProvider, useIcon, Icon } from "./icon-context";
|
|
2
|
+
import { phosphorIcons, createPhosphorIcons } from "./adapters/phosphor";
|
|
3
|
+
import { lucideIcons, createLucideIcons } from "./adapters/lucide";
|
|
4
|
+
import { hugeIcons, createHugeIcons } from "./adapters/hugeicons";
|
|
5
|
+
export {
|
|
6
|
+
Icon,
|
|
7
|
+
IconProvider,
|
|
8
|
+
createHugeIcons,
|
|
9
|
+
createLucideIcons,
|
|
10
|
+
createPhosphorIcons,
|
|
11
|
+
hugeIcons,
|
|
12
|
+
lucideIcons,
|
|
13
|
+
phosphorIcons,
|
|
14
|
+
useIcon
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/icons/index.ts"],"sourcesContent":["// Types\nexport type { IconSlotMap, IconProps, IconComponent } from \"./types\"\n\n// Context & hook\nexport { IconProvider, useIcon, Icon } from \"./icon-context\"\n\n// Adapters — each in its own file for tree-shaking\nexport { phosphorIcons, createPhosphorIcons } from \"./adapters/phosphor\"\nexport type { PhosphorAdapterOptions } from \"./adapters/phosphor\"\n\nexport { lucideIcons, createLucideIcons } from \"./adapters/lucide\"\nexport type { LucideAdapterOptions } from \"./adapters/lucide\"\n\nexport { hugeIcons, createHugeIcons } from \"./adapters/hugeicons\"\nexport type { HugeIconsAdapterOptions } from \"./adapters/hugeicons\"\n"],"mappings":"AAIA,SAAS,cAAc,SAAS,YAAY;AAG5C,SAAS,eAAe,2BAA2B;AAGnD,SAAS,aAAa,yBAAyB;AAG/C,SAAS,WAAW,uBAAuB;","names":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props accepted by all icon components in the slot map.
|
|
3
|
+
* Intentionally minimal so any icon library can satisfy the contract.
|
|
4
|
+
*/
|
|
5
|
+
export type IconProps = {
|
|
6
|
+
className?: string;
|
|
7
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A React component that renders an SVG icon.
|
|
11
|
+
* Every entry in IconSlotMap must satisfy this interface.
|
|
12
|
+
*/
|
|
13
|
+
export type IconComponent = React.ComponentType<IconProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Semantic icon slots used throughout the SDK.
|
|
16
|
+
* Components reference icons by slot name, never by library-specific import.
|
|
17
|
+
*/
|
|
18
|
+
export type IconSlotMap = {
|
|
19
|
+
close: IconComponent;
|
|
20
|
+
menu: IconComponent;
|
|
21
|
+
search: IconComponent;
|
|
22
|
+
cart: IconComponent;
|
|
23
|
+
plus: IconComponent;
|
|
24
|
+
minus: IconComponent;
|
|
25
|
+
trash: IconComponent;
|
|
26
|
+
download: IconComponent;
|
|
27
|
+
play: IconComponent;
|
|
28
|
+
heart: IconComponent;
|
|
29
|
+
heartFilled: IconComponent;
|
|
30
|
+
star: IconComponent;
|
|
31
|
+
starFilled: IconComponent;
|
|
32
|
+
chevronLeft: IconComponent;
|
|
33
|
+
chevronRight: IconComponent;
|
|
34
|
+
chevronDown: IconComponent;
|
|
35
|
+
chevronUp: IconComponent;
|
|
36
|
+
arrowLeft: IconComponent;
|
|
37
|
+
arrowRight: IconComponent;
|
|
38
|
+
check: IconComponent;
|
|
39
|
+
mail: IconComponent;
|
|
40
|
+
tag: IconComponent;
|
|
41
|
+
loader: IconComponent;
|
|
42
|
+
grid: IconComponent;
|
|
43
|
+
list: IconComponent;
|
|
44
|
+
sliders: IconComponent;
|
|
45
|
+
more: IconComponent;
|
|
46
|
+
truck: IconComponent;
|
|
47
|
+
shield: IconComponent;
|
|
48
|
+
leaf: IconComponent;
|
|
49
|
+
package: IconComponent;
|
|
50
|
+
phone: IconComponent;
|
|
51
|
+
mapPin: IconComponent;
|
|
52
|
+
ruler: IconComponent;
|
|
53
|
+
resize: IconComponent;
|
|
54
|
+
globe: IconComponent;
|
|
55
|
+
translate: IconComponent;
|
|
56
|
+
user: IconComponent;
|
|
57
|
+
eye: IconComponent;
|
|
58
|
+
eyeOff: IconComponent;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/client/icons/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;CAC3C,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;AAE1D;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IAExB,KAAK,EAAE,aAAa,CAAA;IACpB,IAAI,EAAE,aAAa,CAAA;IACnB,MAAM,EAAE,aAAa,CAAA;IACrB,IAAI,EAAE,aAAa,CAAA;IAEnB,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,EAAE,aAAa,CAAA;IACpB,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,EAAE,aAAa,CAAA;IACvB,IAAI,EAAE,aAAa,CAAA;IAEnB,KAAK,EAAE,aAAa,CAAA;IACpB,WAAW,EAAE,aAAa,CAAA;IAC1B,IAAI,EAAE,aAAa,CAAA;IACnB,UAAU,EAAE,aAAa,CAAA;IAEzB,WAAW,EAAE,aAAa,CAAA;IAC1B,YAAY,EAAE,aAAa,CAAA;IAC3B,WAAW,EAAE,aAAa,CAAA;IAC1B,SAAS,EAAE,aAAa,CAAA;IACxB,SAAS,EAAE,aAAa,CAAA;IACxB,UAAU,EAAE,aAAa,CAAA;IAEzB,KAAK,EAAE,aAAa,CAAA;IACpB,IAAI,EAAE,aAAa,CAAA;IACnB,GAAG,EAAE,aAAa,CAAA;IAClB,MAAM,EAAE,aAAa,CAAA;IAErB,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,aAAa,CAAA;IACtB,IAAI,EAAE,aAAa,CAAA;IAEnB,KAAK,EAAE,aAAa,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,aAAa,CAAA;IACtB,KAAK,EAAE,aAAa,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IAErB,KAAK,EAAE,aAAa,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IAErB,KAAK,EAAE,aAAa,CAAA;IACpB,SAAS,EAAE,aAAa,CAAA;IAExB,IAAI,EAAE,aAAa,CAAA;IACnB,GAAG,EAAE,aAAa,CAAA;IAClB,MAAM,EAAE,aAAa,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Motion configuration tied to the theme's delight level (0-100).
|
|
3
|
+
*
|
|
4
|
+
* Delight 0 = no motion. Delight 100 = full spring physics.
|
|
5
|
+
* `prefers-reduced-motion` overrides everything to zero.
|
|
6
|
+
*/
|
|
7
|
+
/** Spring physics presets for different interaction types. */
|
|
8
|
+
export declare const springs: {
|
|
9
|
+
/** Snappy feedback for buttons and toggles. */
|
|
10
|
+
readonly snappy: "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
11
|
+
/** Smooth transitions for panels and modals. */
|
|
12
|
+
readonly smooth: "cubic-bezier(0.25, 0.46, 0.45, 0.94)";
|
|
13
|
+
/** Bouncy entrance for elements entering the viewport. */
|
|
14
|
+
readonly bouncy: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
15
|
+
/** Gentle ease for subtle hover effects. */
|
|
16
|
+
readonly gentle: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
17
|
+
};
|
|
18
|
+
/** Duration scale mapped to delight level. */
|
|
19
|
+
export declare function getDuration(delight: number): number;
|
|
20
|
+
/** Full motion config derived from a delight level. */
|
|
21
|
+
export declare function getMotionConfig(delight: number): {
|
|
22
|
+
readonly enabled: boolean;
|
|
23
|
+
readonly duration: number;
|
|
24
|
+
/** CSS duration string. */
|
|
25
|
+
readonly durationMs: `${number}ms`;
|
|
26
|
+
/** Scale factor for hover feedback (1 = no scale). */
|
|
27
|
+
readonly hoverScale: number;
|
|
28
|
+
/** Y-translate for press feedback in px. */
|
|
29
|
+
readonly pressTranslateY: number;
|
|
30
|
+
/** Scale for press feedback. */
|
|
31
|
+
readonly pressScale: number;
|
|
32
|
+
/** Distance in px elements travel during entry animation. */
|
|
33
|
+
readonly entryDistance: number;
|
|
34
|
+
/** Stagger delay between siblings in ms. */
|
|
35
|
+
readonly staggerDelay: number;
|
|
36
|
+
/** Preferred easing curve. */
|
|
37
|
+
readonly easing: "cubic-bezier(0.32, 0.72, 0, 1)" | "linear";
|
|
38
|
+
/** Entry animation easing. */
|
|
39
|
+
readonly entryEasing: "cubic-bezier(0.25, 0.46, 0.45, 0.94)" | "linear";
|
|
40
|
+
};
|
|
41
|
+
export type MotionConfig = ReturnType<typeof getMotionConfig>;
|
|
42
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/client/motion/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8DAA8D;AAC9D,eAAO,MAAM,OAAO;IAClB,+CAA+C;;IAE/C,gDAAgD;;IAEhD,0DAA0D;;IAE1D,4CAA4C;;CAEpC,CAAC;AAEX,8CAA8C;AAC9C,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,uDAAuD;AACvD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM;;;IAO3C,2BAA2B;;IAE3B,sDAAsD;;IAEtD,4CAA4C;;IAE5C,gCAAgC;;IAEhC,6DAA6D;;IAE7D,4CAA4C;;IAE5C,8BAA8B;;IAE9B,8BAA8B;;EAGjC;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|