@enadhq/enad-react-sdk 0.0.6 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (870) hide show
  1. package/README.md +288 -0
  2. package/dist/client/cart/adapters/brink.d.ts +29 -0
  3. package/dist/client/cart/adapters/brink.d.ts.map +1 -0
  4. package/dist/client/cart/adapters/brink.mjs +154 -0
  5. package/dist/client/cart/adapters/brink.mjs.map +1 -0
  6. package/dist/client/cart/adapters/index.d.ts +3 -0
  7. package/dist/client/cart/adapters/index.d.ts.map +1 -0
  8. package/dist/client/cart/adapters/index.mjs +5 -0
  9. package/dist/client/cart/adapters/index.mjs.map +1 -0
  10. package/dist/client/cart/adapters/mock.d.ts +20 -0
  11. package/dist/client/cart/adapters/mock.d.ts.map +1 -0
  12. package/dist/client/cart/adapters/mock.mjs +76 -0
  13. package/dist/client/cart/adapters/mock.mjs.map +1 -0
  14. package/dist/client/cart/components/{cart-drawer.d.mts → cart-drawer.d.ts} +4 -6
  15. package/dist/client/cart/components/cart-drawer.d.ts.map +1 -0
  16. package/dist/client/cart/components/cart-drawer.mjs +269 -138
  17. package/dist/client/cart/components/cart-drawer.mjs.map +1 -1
  18. package/dist/client/cart/components/cart-trigger.d.ts +10 -0
  19. package/dist/client/cart/components/cart-trigger.d.ts.map +1 -0
  20. package/dist/client/cart/components/cart-trigger.mjs +26 -10
  21. package/dist/client/cart/components/cart-trigger.mjs.map +1 -1
  22. package/dist/client/cart/components/promo-code-input.d.ts +16 -0
  23. package/dist/client/cart/components/promo-code-input.d.ts.map +1 -0
  24. package/dist/client/cart/components/promo-code-input.mjs +92 -0
  25. package/dist/client/cart/components/promo-code-input.mjs.map +1 -0
  26. package/dist/client/cart/constants/session.d.ts +2 -0
  27. package/dist/client/cart/constants/session.d.ts.map +1 -0
  28. package/dist/client/cart/contexts/cart.d.ts +36 -0
  29. package/dist/client/cart/contexts/cart.d.ts.map +1 -0
  30. package/dist/client/cart/contexts/cart.mjs +14 -16
  31. package/dist/client/cart/contexts/cart.mjs.map +1 -1
  32. package/dist/client/cart/hooks/useCart.d.ts +26 -0
  33. package/dist/client/cart/hooks/useCart.d.ts.map +1 -0
  34. package/dist/client/cart/hooks/useCart.mjs +5 -6
  35. package/dist/client/cart/hooks/useCart.mjs.map +1 -1
  36. package/dist/client/cart/hooks/useCartActions.d.ts +25 -0
  37. package/dist/client/cart/hooks/useCartActions.d.ts.map +1 -0
  38. package/dist/client/cart/hooks/useCartActions.mjs +7 -16
  39. package/dist/client/cart/hooks/useCartActions.mjs.map +1 -1
  40. package/dist/client/cart/index.d.ts +12 -0
  41. package/dist/client/cart/index.d.ts.map +1 -0
  42. package/dist/client/cart/index.mjs +16 -0
  43. package/dist/client/cart/index.mjs.map +1 -0
  44. package/dist/client/cart/queries/addToCartQueryFn.d.ts +7 -0
  45. package/dist/client/cart/queries/addToCartQueryFn.d.ts.map +1 -0
  46. package/dist/client/cart/queries/addToCartQueryFn.mjs.map +1 -1
  47. package/dist/client/cart/queries/getCartQueryFn.d.ts +4 -0
  48. package/dist/client/cart/queries/getCartQueryFn.d.ts.map +1 -0
  49. package/dist/client/cart/queries/getCartQueryFn.mjs.map +1 -1
  50. package/dist/client/cart/queries/removeCartItemQueryFn.d.ts +6 -0
  51. package/dist/client/cart/queries/removeCartItemQueryFn.d.ts.map +1 -0
  52. package/dist/client/cart/queries/removeCartItemQueryFn.mjs.map +1 -1
  53. package/dist/client/cart/queries/updateCartItemQueryFn.d.ts +7 -0
  54. package/dist/client/cart/queries/updateCartItemQueryFn.d.ts.map +1 -0
  55. package/dist/client/cart/queries/updateCartItemQueryFn.mjs.map +1 -1
  56. package/dist/client/cart/types/adapter.d.ts +110 -0
  57. package/dist/client/cart/types/adapter.d.ts.map +1 -0
  58. package/dist/client/cart/types/adapter.mjs +12 -0
  59. package/dist/client/cart/types/adapter.mjs.map +1 -0
  60. package/dist/client/cart/types/{cart.d.mts → cart.d.ts} +21 -5
  61. package/dist/client/cart/types/cart.d.ts.map +1 -0
  62. package/dist/client/cart/utils/session.d.ts +5 -0
  63. package/dist/client/cart/utils/session.d.ts.map +1 -0
  64. package/dist/client/cart/utils/session.mjs +1 -1
  65. package/dist/client/cart/utils/session.mjs.map +1 -1
  66. package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts +7 -0
  67. package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts.map +1 -0
  68. package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs +3 -2
  69. package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs.map +1 -1
  70. package/dist/client/cms/storyblok/preview/{storyblok-preview-syncer.d.mts → storyblok-preview-syncer.d.ts} +4 -6
  71. package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts.map +1 -0
  72. package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs.map +1 -1
  73. package/dist/client/global/auth/withAuth.d.ts +5 -0
  74. package/dist/client/global/auth/withAuth.d.ts.map +1 -0
  75. package/dist/client/global/components/error-boundary.d.ts +18 -0
  76. package/dist/client/global/components/error-boundary.d.ts.map +1 -0
  77. package/dist/client/global/components/error-boundary.mjs +41 -0
  78. package/dist/client/global/components/error-boundary.mjs.map +1 -0
  79. package/dist/client/global/config/{index.d.mts → index.d.ts} +3 -3
  80. package/dist/client/global/config/index.d.ts.map +1 -0
  81. package/dist/client/global/constants/{tags.d.mts → tags.d.ts} +2 -3
  82. package/dist/client/global/constants/tags.d.ts.map +1 -0
  83. package/dist/client/global/index.d.ts +6 -0
  84. package/dist/client/global/index.d.ts.map +1 -0
  85. package/dist/client/global/index.mjs +7 -0
  86. package/dist/client/global/index.mjs.map +1 -0
  87. package/dist/client/global/providers/enad-provider.d.ts +48 -0
  88. package/dist/client/global/providers/enad-provider.d.ts.map +1 -0
  89. package/dist/client/global/providers/enad-provider.mjs +32 -3
  90. package/dist/client/global/providers/enad-provider.mjs.map +1 -1
  91. package/dist/client/icons/adapters/hugeicons.d.ts +9 -0
  92. package/dist/client/icons/adapters/hugeicons.d.ts.map +1 -0
  93. package/dist/client/icons/adapters/hugeicons.mjs +117 -0
  94. package/dist/client/icons/adapters/hugeicons.mjs.map +1 -0
  95. package/dist/client/icons/adapters/lucide.d.ts +8 -0
  96. package/dist/client/icons/adapters/lucide.d.ts.map +1 -0
  97. package/dist/client/icons/adapters/lucide.mjs +108 -0
  98. package/dist/client/icons/adapters/lucide.mjs.map +1 -0
  99. package/dist/client/icons/adapters/phosphor.d.ts +11 -0
  100. package/dist/client/icons/adapters/phosphor.d.ts.map +1 -0
  101. package/dist/client/icons/adapters/phosphor.mjs +108 -0
  102. package/dist/client/icons/adapters/phosphor.mjs.map +1 -0
  103. package/dist/client/icons/icon-context.d.ts +13 -0
  104. package/dist/client/icons/icon-context.d.ts.map +1 -0
  105. package/dist/client/icons/icon-context.mjs +27 -0
  106. package/dist/client/icons/icon-context.mjs.map +1 -0
  107. package/dist/client/icons/index.d.ts +9 -0
  108. package/dist/client/icons/index.d.ts.map +1 -0
  109. package/dist/client/icons/index.mjs +16 -0
  110. package/dist/client/icons/index.mjs.map +1 -0
  111. package/dist/client/icons/types.d.ts +60 -0
  112. package/dist/client/icons/types.d.ts.map +1 -0
  113. package/dist/client/icons/types.mjs +1 -0
  114. package/dist/client/icons/types.mjs.map +1 -0
  115. package/dist/client/motion/config.d.ts +42 -0
  116. package/dist/client/motion/config.d.ts.map +1 -0
  117. package/dist/client/motion/config.mjs +44 -0
  118. package/dist/client/motion/config.mjs.map +1 -0
  119. package/dist/client/motion/hover.d.ts +36 -0
  120. package/dist/client/motion/hover.d.ts.map +1 -0
  121. package/dist/client/motion/hover.mjs +19 -0
  122. package/dist/client/motion/hover.mjs.map +1 -0
  123. package/dist/client/motion/index.d.ts +4 -0
  124. package/dist/client/motion/index.d.ts.map +1 -0
  125. package/dist/client/motion/index.mjs +13 -0
  126. package/dist/client/motion/index.mjs.map +1 -0
  127. package/dist/client/motion/stagger.d.ts +36 -0
  128. package/dist/client/motion/stagger.d.ts.map +1 -0
  129. package/dist/client/motion/stagger.mjs +17 -0
  130. package/dist/client/motion/stagger.mjs.map +1 -0
  131. package/dist/client/search/actions/searchAction.d.ts +2 -0
  132. package/dist/client/search/actions/searchAction.d.ts.map +1 -0
  133. package/dist/client/search/actions/searchAction.mjs.map +1 -1
  134. package/dist/client/search/components/search-bar.d.ts +8 -0
  135. package/dist/client/search/components/search-bar.d.ts.map +1 -0
  136. package/dist/client/search/components/search-bar.mjs +33 -0
  137. package/dist/client/search/components/search-bar.mjs.map +1 -1
  138. package/dist/client/search/hooks/useSearch.d.ts +14 -0
  139. package/dist/client/search/hooks/useSearch.d.ts.map +1 -0
  140. package/dist/client/search/hooks/useSearch.mjs +1 -1
  141. package/dist/client/search/hooks/useSearch.mjs.map +1 -1
  142. package/dist/client/search/index.d.ts +2 -0
  143. package/dist/client/search/index.d.ts.map +1 -0
  144. package/dist/client/search/index.mjs +5 -0
  145. package/dist/client/search/index.mjs.map +1 -0
  146. package/dist/client/storefront/blocks/accordion-block.d.ts +4 -0
  147. package/dist/client/storefront/blocks/accordion-block.d.ts.map +1 -0
  148. package/dist/client/storefront/blocks/accordion-block.mjs +43 -0
  149. package/dist/client/storefront/blocks/accordion-block.mjs.map +1 -0
  150. package/dist/client/storefront/blocks/card-image-with-caption.d.ts +4 -0
  151. package/dist/client/storefront/blocks/card-image-with-caption.d.ts.map +1 -0
  152. package/dist/client/storefront/blocks/card-image-with-caption.mjs +27 -0
  153. package/dist/client/storefront/blocks/card-image-with-caption.mjs.map +1 -0
  154. package/dist/client/storefront/blocks/card-video.d.ts +4 -0
  155. package/dist/client/storefront/blocks/card-video.d.ts.map +1 -0
  156. package/dist/client/storefront/blocks/card-video.mjs +43 -0
  157. package/dist/client/storefront/blocks/card-video.mjs.map +1 -0
  158. package/dist/client/storefront/blocks/content-with-gallery.d.ts +4 -0
  159. package/dist/client/storefront/blocks/content-with-gallery.d.ts.map +1 -0
  160. package/dist/client/storefront/blocks/content-with-gallery.mjs +48 -0
  161. package/dist/client/storefront/blocks/content-with-gallery.mjs.map +1 -0
  162. package/dist/client/storefront/blocks/content-with-image-product-data.d.ts +4 -0
  163. package/dist/client/storefront/blocks/content-with-image-product-data.d.ts.map +1 -0
  164. package/dist/client/storefront/blocks/content-with-image-product-data.mjs +45 -0
  165. package/dist/client/storefront/blocks/content-with-image-product-data.mjs.map +1 -0
  166. package/dist/client/storefront/blocks/gallery-with-caption.d.ts +4 -0
  167. package/dist/client/storefront/blocks/gallery-with-caption.d.ts.map +1 -0
  168. package/dist/client/storefront/blocks/gallery-with-caption.mjs +36 -0
  169. package/dist/client/storefront/blocks/gallery-with-caption.mjs.map +1 -0
  170. package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts +4 -0
  171. package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts.map +1 -0
  172. package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs +24 -0
  173. package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs.map +1 -0
  174. package/dist/client/storefront/blocks/gallery.d.ts +4 -0
  175. package/dist/client/storefront/blocks/gallery.d.ts.map +1 -0
  176. package/dist/client/storefront/blocks/gallery.mjs +47 -0
  177. package/dist/client/storefront/blocks/gallery.mjs.map +1 -0
  178. package/dist/client/storefront/blocks/hero.d.ts +4 -0
  179. package/dist/client/storefront/blocks/hero.d.ts.map +1 -0
  180. package/dist/client/storefront/blocks/hero.mjs +357 -0
  181. package/dist/client/storefront/blocks/hero.mjs.map +1 -0
  182. package/dist/client/storefront/blocks/image-block.d.ts +4 -0
  183. package/dist/client/storefront/blocks/image-block.d.ts.map +1 -0
  184. package/dist/client/storefront/blocks/image-block.mjs +29 -0
  185. package/dist/client/storefront/blocks/image-block.mjs.map +1 -0
  186. package/dist/client/storefront/blocks/index.d.ts +20 -0
  187. package/dist/client/storefront/blocks/index.d.ts.map +1 -0
  188. package/dist/client/storefront/blocks/index.mjs +41 -0
  189. package/dist/client/storefront/blocks/index.mjs.map +1 -0
  190. package/dist/client/storefront/blocks/link-block-small.d.ts +4 -0
  191. package/dist/client/storefront/blocks/link-block-small.d.ts.map +1 -0
  192. package/dist/client/storefront/blocks/link-block-small.mjs +35 -0
  193. package/dist/client/storefront/blocks/link-block-small.mjs.map +1 -0
  194. package/dist/client/storefront/blocks/link-block.d.ts +4 -0
  195. package/dist/client/storefront/blocks/link-block.d.ts.map +1 -0
  196. package/dist/client/storefront/blocks/link-block.mjs +150 -0
  197. package/dist/client/storefront/blocks/link-block.mjs.map +1 -0
  198. package/dist/client/storefront/blocks/product-card.d.ts +4 -0
  199. package/dist/client/storefront/blocks/product-card.d.ts.map +1 -0
  200. package/dist/client/storefront/blocks/product-card.mjs +228 -0
  201. package/dist/client/storefront/blocks/product-card.mjs.map +1 -0
  202. package/dist/client/storefront/blocks/product-image.d.ts +4 -0
  203. package/dist/client/storefront/blocks/product-image.d.ts.map +1 -0
  204. package/dist/client/storefront/blocks/product-image.mjs +109 -0
  205. package/dist/client/storefront/blocks/product-image.mjs.map +1 -0
  206. package/dist/client/storefront/blocks/spacer.d.ts +4 -0
  207. package/dist/client/storefront/blocks/spacer.d.ts.map +1 -0
  208. package/dist/client/storefront/blocks/spacer.mjs +14 -0
  209. package/dist/client/storefront/blocks/spacer.mjs.map +1 -0
  210. package/dist/client/storefront/blocks/text-content-with-image.d.ts +4 -0
  211. package/dist/client/storefront/blocks/text-content-with-image.d.ts.map +1 -0
  212. package/dist/client/storefront/blocks/text-content-with-image.mjs +225 -0
  213. package/dist/client/storefront/blocks/text-content-with-image.mjs.map +1 -0
  214. package/dist/client/storefront/blocks/text-content.d.ts +4 -0
  215. package/dist/client/storefront/blocks/text-content.d.ts.map +1 -0
  216. package/dist/client/storefront/blocks/text-content.mjs +150 -0
  217. package/dist/client/storefront/blocks/text-content.mjs.map +1 -0
  218. package/dist/client/storefront/blocks/truncated-text.d.ts +4 -0
  219. package/dist/client/storefront/blocks/truncated-text.d.ts.map +1 -0
  220. package/dist/client/storefront/blocks/truncated-text.mjs +36 -0
  221. package/dist/client/storefront/blocks/truncated-text.mjs.map +1 -0
  222. package/dist/client/storefront/blocks/variable-text-content.d.ts +4 -0
  223. package/dist/client/storefront/blocks/variable-text-content.d.ts.map +1 -0
  224. package/dist/client/storefront/blocks/variable-text-content.mjs +15 -0
  225. package/dist/client/storefront/blocks/variable-text-content.mjs.map +1 -0
  226. package/dist/client/storefront/carousel/index.d.ts +2 -0
  227. package/dist/client/storefront/carousel/index.d.ts.map +1 -0
  228. package/dist/client/storefront/carousel/index.mjs +5 -0
  229. package/dist/client/storefront/carousel/index.mjs.map +1 -0
  230. package/dist/client/storefront/carousel/swipeable-carousel.d.ts +14 -0
  231. package/dist/client/storefront/carousel/swipeable-carousel.d.ts.map +1 -0
  232. package/dist/client/storefront/carousel/swipeable-carousel.mjs +80 -0
  233. package/dist/client/storefront/carousel/swipeable-carousel.mjs.map +1 -0
  234. package/dist/client/storefront/checkout/address-form.d.ts +31 -0
  235. package/dist/client/storefront/checkout/address-form.d.ts.map +1 -0
  236. package/dist/client/storefront/checkout/address-form.mjs +124 -0
  237. package/dist/client/storefront/checkout/address-form.mjs.map +1 -0
  238. package/dist/client/storefront/checkout/cart-summary.d.ts +40 -0
  239. package/dist/client/storefront/checkout/cart-summary.d.ts.map +1 -0
  240. package/dist/client/storefront/checkout/cart-summary.mjs +150 -0
  241. package/dist/client/storefront/checkout/cart-summary.mjs.map +1 -0
  242. package/dist/client/storefront/checkout/checkout-stepper.d.ts +13 -0
  243. package/dist/client/storefront/checkout/checkout-stepper.d.ts.map +1 -0
  244. package/dist/client/storefront/checkout/checkout-stepper.mjs +58 -0
  245. package/dist/client/storefront/checkout/checkout-stepper.mjs.map +1 -0
  246. package/dist/client/storefront/checkout/index.d.ts +15 -0
  247. package/dist/client/storefront/checkout/index.d.ts.map +1 -0
  248. package/dist/client/storefront/checkout/index.mjs +17 -0
  249. package/dist/client/storefront/checkout/index.mjs.map +1 -0
  250. package/dist/client/storefront/checkout/order-confirmation.d.ts +10 -0
  251. package/dist/client/storefront/checkout/order-confirmation.d.ts.map +1 -0
  252. package/dist/client/storefront/checkout/order-confirmation.mjs +27 -0
  253. package/dist/client/storefront/checkout/order-confirmation.mjs.map +1 -0
  254. package/dist/client/storefront/checkout/order-summary.d.ts +29 -0
  255. package/dist/client/storefront/checkout/order-summary.d.ts.map +1 -0
  256. package/dist/client/storefront/checkout/order-summary.mjs +106 -0
  257. package/dist/client/storefront/checkout/order-summary.mjs.map +1 -0
  258. package/dist/client/storefront/checkout/payment-method-selector.d.ts +18 -0
  259. package/dist/client/storefront/checkout/payment-method-selector.d.ts.map +1 -0
  260. package/dist/client/storefront/checkout/payment-method-selector.mjs +61 -0
  261. package/dist/client/storefront/checkout/payment-method-selector.mjs.map +1 -0
  262. package/dist/client/storefront/checkout/shipping-method-selector.d.ts +23 -0
  263. package/dist/client/storefront/checkout/shipping-method-selector.d.ts.map +1 -0
  264. package/dist/client/storefront/checkout/shipping-method-selector.mjs +77 -0
  265. package/dist/client/storefront/checkout/shipping-method-selector.mjs.map +1 -0
  266. package/dist/client/storefront/components/badge.d.ts +8 -0
  267. package/dist/client/storefront/components/badge.d.ts.map +1 -0
  268. package/dist/client/storefront/components/badge.mjs +28 -0
  269. package/dist/client/storefront/components/badge.mjs.map +1 -0
  270. package/dist/client/storefront/components/country-redirect.d.ts +30 -0
  271. package/dist/client/storefront/components/country-redirect.d.ts.map +1 -0
  272. package/dist/client/storefront/components/country-redirect.mjs +121 -0
  273. package/dist/client/storefront/components/country-redirect.mjs.map +1 -0
  274. package/dist/client/storefront/components/empty-state.d.ts +38 -0
  275. package/dist/client/storefront/components/empty-state.d.ts.map +1 -0
  276. package/dist/client/storefront/components/empty-state.mjs +55 -0
  277. package/dist/client/storefront/components/empty-state.mjs.map +1 -0
  278. package/dist/client/storefront/components/image-lightbox.d.ts +13 -0
  279. package/dist/client/storefront/components/image-lightbox.d.ts.map +1 -0
  280. package/dist/client/storefront/components/image-lightbox.mjs +275 -0
  281. package/dist/client/storefront/components/image-lightbox.mjs.map +1 -0
  282. package/dist/client/storefront/components/infinite-scroll.d.ts +37 -0
  283. package/dist/client/storefront/components/infinite-scroll.d.ts.map +1 -0
  284. package/dist/client/storefront/components/infinite-scroll.mjs +83 -0
  285. package/dist/client/storefront/components/infinite-scroll.mjs.map +1 -0
  286. package/dist/client/storefront/components/language-selector.d.ts +5 -0
  287. package/dist/client/storefront/components/language-selector.d.ts.map +1 -0
  288. package/dist/client/storefront/components/language-selector.mjs +58 -0
  289. package/dist/client/storefront/components/language-selector.mjs.map +1 -0
  290. package/dist/client/storefront/components/newsletter-signup.d.ts +14 -0
  291. package/dist/client/storefront/components/newsletter-signup.d.ts.map +1 -0
  292. package/dist/client/storefront/components/newsletter-signup.mjs +81 -0
  293. package/dist/client/storefront/components/newsletter-signup.mjs.map +1 -0
  294. package/dist/client/storefront/components/price.d.ts +14 -0
  295. package/dist/client/storefront/components/price.d.ts.map +1 -0
  296. package/dist/client/storefront/components/price.mjs +46 -0
  297. package/dist/client/storefront/components/price.mjs.map +1 -0
  298. package/dist/client/storefront/components/product-recommendations.d.ts +18 -0
  299. package/dist/client/storefront/components/product-recommendations.d.ts.map +1 -0
  300. package/dist/client/storefront/components/product-recommendations.mjs +108 -0
  301. package/dist/client/storefront/components/product-recommendations.mjs.map +1 -0
  302. package/dist/client/storefront/components/product-tabs.d.ts +12 -0
  303. package/dist/client/storefront/components/product-tabs.d.ts.map +1 -0
  304. package/dist/client/storefront/components/product-tabs.mjs +64 -0
  305. package/dist/client/storefront/components/product-tabs.mjs.map +1 -0
  306. package/dist/client/storefront/components/quick-view.d.ts +25 -0
  307. package/dist/client/storefront/components/quick-view.d.ts.map +1 -0
  308. package/dist/client/storefront/components/quick-view.mjs +149 -0
  309. package/dist/client/storefront/components/quick-view.mjs.map +1 -0
  310. package/dist/client/storefront/components/review-summary.d.ts +17 -0
  311. package/dist/client/storefront/components/review-summary.d.ts.map +1 -0
  312. package/dist/client/storefront/components/review-summary.mjs +66 -0
  313. package/dist/client/storefront/components/review-summary.mjs.map +1 -0
  314. package/dist/client/storefront/components/search-autocomplete.d.ts +25 -0
  315. package/dist/client/storefront/components/search-autocomplete.d.ts.map +1 -0
  316. package/dist/client/storefront/components/search-autocomplete.mjs +183 -0
  317. package/dist/client/storefront/components/search-autocomplete.mjs.map +1 -0
  318. package/dist/client/storefront/components/section-nav.d.ts +20 -0
  319. package/dist/client/storefront/components/section-nav.d.ts.map +1 -0
  320. package/dist/client/storefront/components/section-nav.mjs +175 -0
  321. package/dist/client/storefront/components/section-nav.mjs.map +1 -0
  322. package/dist/client/storefront/components/share-button.d.ts +19 -0
  323. package/dist/client/storefront/components/share-button.d.ts.map +1 -0
  324. package/dist/client/storefront/components/share-button.mjs +95 -0
  325. package/dist/client/storefront/components/share-button.mjs.map +1 -0
  326. package/dist/client/storefront/components/skeleton.d.ts +12 -0
  327. package/dist/client/storefront/components/skeleton.d.ts.map +1 -0
  328. package/dist/client/storefront/components/skeleton.mjs +70 -0
  329. package/dist/client/storefront/components/skeleton.mjs.map +1 -0
  330. package/dist/client/storefront/components/star-rating.d.ts +13 -0
  331. package/dist/client/storefront/components/star-rating.d.ts.map +1 -0
  332. package/dist/client/storefront/components/star-rating.mjs +240 -0
  333. package/dist/client/storefront/components/star-rating.mjs.map +1 -0
  334. package/dist/client/storefront/components/testimonial.d.ts +20 -0
  335. package/dist/client/storefront/components/testimonial.d.ts.map +1 -0
  336. package/dist/client/storefront/components/testimonial.mjs +53 -0
  337. package/dist/client/storefront/components/testimonial.mjs.map +1 -0
  338. package/dist/client/storefront/components/trust-badges.d.ts +14 -0
  339. package/dist/client/storefront/components/trust-badges.d.ts.map +1 -0
  340. package/dist/client/storefront/components/trust-badges.mjs +25 -0
  341. package/dist/client/storefront/components/trust-badges.mjs.map +1 -0
  342. package/dist/client/storefront/components/variant-selector.d.ts +21 -0
  343. package/dist/client/storefront/components/variant-selector.d.ts.map +1 -0
  344. package/dist/client/storefront/components/variant-selector.mjs +41 -0
  345. package/dist/client/storefront/components/variant-selector.mjs.map +1 -0
  346. package/dist/client/storefront/components/wishlist-toggle.d.ts +12 -0
  347. package/dist/client/storefront/components/wishlist-toggle.d.ts.map +1 -0
  348. package/dist/client/storefront/components/wishlist-toggle.mjs +58 -0
  349. package/dist/client/storefront/components/wishlist-toggle.mjs.map +1 -0
  350. package/dist/client/storefront/filters/filter-chip.d.ts +10 -0
  351. package/dist/client/storefront/filters/filter-chip.d.ts.map +1 -0
  352. package/dist/client/storefront/filters/filter-chip.mjs +30 -0
  353. package/dist/client/storefront/filters/filter-chip.mjs.map +1 -0
  354. package/dist/client/storefront/filters/filter-group.d.ts +22 -0
  355. package/dist/client/storefront/filters/filter-group.d.ts.map +1 -0
  356. package/dist/client/storefront/filters/filter-group.mjs +102 -0
  357. package/dist/client/storefront/filters/filter-group.mjs.map +1 -0
  358. package/dist/client/storefront/filters/filter-panel.d.ts +25 -0
  359. package/dist/client/storefront/filters/filter-panel.d.ts.map +1 -0
  360. package/dist/client/storefront/filters/filter-panel.mjs +110 -0
  361. package/dist/client/storefront/filters/filter-panel.mjs.map +1 -0
  362. package/dist/client/storefront/filters/index.d.ts +6 -0
  363. package/dist/client/storefront/filters/index.d.ts.map +1 -0
  364. package/dist/client/storefront/filters/index.mjs +13 -0
  365. package/dist/client/storefront/filters/index.mjs.map +1 -0
  366. package/dist/client/storefront/filters/sort-select.d.ts +12 -0
  367. package/dist/client/storefront/filters/sort-select.d.ts.map +1 -0
  368. package/dist/client/storefront/filters/sort-select.mjs +34 -0
  369. package/dist/client/storefront/filters/sort-select.mjs.map +1 -0
  370. package/dist/client/storefront/filters/toggle-list-view.d.ts +8 -0
  371. package/dist/client/storefront/filters/toggle-list-view.d.ts.map +1 -0
  372. package/dist/client/storefront/filters/toggle-list-view.mjs +30 -0
  373. package/dist/client/storefront/filters/toggle-list-view.mjs.map +1 -0
  374. package/dist/client/storefront/hooks/use-section-observer.d.ts +12 -0
  375. package/dist/client/storefront/hooks/use-section-observer.d.ts.map +1 -0
  376. package/dist/client/storefront/hooks/use-section-observer.mjs +46 -0
  377. package/dist/client/storefront/hooks/use-section-observer.mjs.map +1 -0
  378. package/dist/client/storefront/index.d.ts +24 -0
  379. package/dist/client/storefront/index.d.ts.map +1 -0
  380. package/dist/client/storefront/index.mjs +26 -0
  381. package/dist/client/storefront/index.mjs.map +1 -0
  382. package/dist/client/storefront/layout/footer.d.ts +4 -0
  383. package/dist/client/storefront/layout/footer.d.ts.map +1 -0
  384. package/dist/client/storefront/layout/footer.mjs +56 -0
  385. package/dist/client/storefront/layout/footer.mjs.map +1 -0
  386. package/dist/client/storefront/layout/header.d.ts +4 -0
  387. package/dist/client/storefront/layout/header.d.ts.map +1 -0
  388. package/dist/client/storefront/layout/header.mjs +367 -0
  389. package/dist/client/storefront/layout/header.mjs.map +1 -0
  390. package/dist/client/storefront/layout/index.d.ts +5 -0
  391. package/dist/client/storefront/layout/index.d.ts.map +1 -0
  392. package/dist/client/storefront/layout/index.mjs +11 -0
  393. package/dist/client/storefront/layout/index.mjs.map +1 -0
  394. package/dist/client/storefront/layout/mobile-menu-drawer.d.ts +4 -0
  395. package/dist/client/storefront/layout/mobile-menu-drawer.d.ts.map +1 -0
  396. package/dist/client/storefront/layout/mobile-menu-drawer.mjs +93 -0
  397. package/dist/client/storefront/layout/mobile-menu-drawer.mjs.map +1 -0
  398. package/dist/client/storefront/layout/promotion-bar.d.ts +4 -0
  399. package/dist/client/storefront/layout/promotion-bar.d.ts.map +1 -0
  400. package/dist/client/storefront/layout/promotion-bar.mjs +79 -0
  401. package/dist/client/storefront/layout/promotion-bar.mjs.map +1 -0
  402. package/dist/client/storefront/primitives/breadcrumbs.d.ts +12 -0
  403. package/dist/client/storefront/primitives/breadcrumbs.d.ts.map +1 -0
  404. package/dist/client/storefront/primitives/breadcrumbs.mjs +37 -0
  405. package/dist/client/storefront/primitives/breadcrumbs.mjs.map +1 -0
  406. package/dist/client/storefront/primitives/button.d.ts +12 -0
  407. package/dist/client/storefront/primitives/button.d.ts.map +1 -0
  408. package/dist/client/storefront/primitives/button.mjs +51 -0
  409. package/dist/client/storefront/primitives/button.mjs.map +1 -0
  410. package/dist/client/storefront/primitives/checkbox.d.ts +10 -0
  411. package/dist/client/storefront/primitives/checkbox.d.ts.map +1 -0
  412. package/dist/client/storefront/primitives/checkbox.mjs +23 -0
  413. package/dist/client/storefront/primitives/checkbox.mjs.map +1 -0
  414. package/dist/client/storefront/primitives/download-item.d.ts +9 -0
  415. package/dist/client/storefront/primitives/download-item.d.ts.map +1 -0
  416. package/dist/client/storefront/primitives/download-item.mjs +28 -0
  417. package/dist/client/storefront/primitives/download-item.mjs.map +1 -0
  418. package/dist/client/storefront/primitives/index.d.ts +10 -0
  419. package/dist/client/storefront/primitives/index.d.ts.map +1 -0
  420. package/dist/client/storefront/primitives/index.mjs +21 -0
  421. package/dist/client/storefront/primitives/index.mjs.map +1 -0
  422. package/dist/client/storefront/primitives/input.d.ts +18 -0
  423. package/dist/client/storefront/primitives/input.d.ts.map +1 -0
  424. package/dist/client/storefront/primitives/input.mjs +118 -0
  425. package/dist/client/storefront/primitives/input.mjs.map +1 -0
  426. package/dist/client/storefront/primitives/pagination.d.ts +9 -0
  427. package/dist/client/storefront/primitives/pagination.d.ts.map +1 -0
  428. package/dist/client/storefront/primitives/pagination.mjs +86 -0
  429. package/dist/client/storefront/primitives/pagination.mjs.map +1 -0
  430. package/dist/client/storefront/primitives/quick-links.d.ts +11 -0
  431. package/dist/client/storefront/primitives/quick-links.d.ts.map +1 -0
  432. package/dist/client/storefront/primitives/quick-links.mjs +17 -0
  433. package/dist/client/storefront/primitives/quick-links.mjs.map +1 -0
  434. package/dist/client/storefront/primitives/select.d.ts +16 -0
  435. package/dist/client/storefront/primitives/select.d.ts.map +1 -0
  436. package/dist/client/storefront/primitives/select.mjs +35 -0
  437. package/dist/client/storefront/primitives/select.mjs.map +1 -0
  438. package/dist/client/storefront/primitives/text-link.d.ts +7 -0
  439. package/dist/client/storefront/primitives/text-link.d.ts.map +1 -0
  440. package/dist/client/storefront/primitives/text-link.mjs +10 -0
  441. package/dist/client/storefront/primitives/text-link.mjs.map +1 -0
  442. package/dist/client/storefront/product/color-swatch.d.ts +10 -0
  443. package/dist/client/storefront/product/color-swatch.d.ts.map +1 -0
  444. package/dist/client/storefront/product/color-swatch.mjs +32 -0
  445. package/dist/client/storefront/product/color-swatch.mjs.map +1 -0
  446. package/dist/client/storefront/product/index.d.ts +5 -0
  447. package/dist/client/storefront/product/index.d.ts.map +1 -0
  448. package/dist/client/storefront/product/index.mjs +11 -0
  449. package/dist/client/storefront/product/index.mjs.map +1 -0
  450. package/dist/client/storefront/product/material-selector.d.ts +15 -0
  451. package/dist/client/storefront/product/material-selector.d.ts.map +1 -0
  452. package/dist/client/storefront/product/material-selector.mjs +35 -0
  453. package/dist/client/storefront/product/material-selector.mjs.map +1 -0
  454. package/dist/client/storefront/product/product-usp.d.ts +7 -0
  455. package/dist/client/storefront/product/product-usp.d.ts.map +1 -0
  456. package/dist/client/storefront/product/product-usp.mjs +14 -0
  457. package/dist/client/storefront/product/product-usp.mjs.map +1 -0
  458. package/dist/client/storefront/product/quantity-picker.d.ts +10 -0
  459. package/dist/client/storefront/product/quantity-picker.d.ts.map +1 -0
  460. package/dist/client/storefront/product/quantity-picker.mjs +56 -0
  461. package/dist/client/storefront/product/quantity-picker.mjs.map +1 -0
  462. package/dist/client/storefront/types.d.ts +284 -0
  463. package/dist/client/storefront/types.d.ts.map +1 -0
  464. package/dist/client/storefront/types.mjs +20 -0
  465. package/dist/client/storefront/types.mjs.map +1 -0
  466. package/dist/client/theme/apply.d.ts +17 -0
  467. package/dist/client/theme/apply.d.ts.map +1 -0
  468. package/dist/client/theme/apply.mjs +133 -0
  469. package/dist/client/theme/apply.mjs.map +1 -0
  470. package/dist/client/theme/cli.d.ts +2 -0
  471. package/dist/client/theme/cli.d.ts.map +1 -0
  472. package/dist/client/theme/cli.mjs +453 -0
  473. package/dist/client/theme/cli.mjs.map +1 -0
  474. package/dist/client/theme/codec.d.ts +28 -0
  475. package/dist/client/theme/codec.d.ts.map +1 -0
  476. package/dist/client/theme/codec.mjs +88 -0
  477. package/dist/client/theme/codec.mjs.map +1 -0
  478. package/dist/client/theme/defaults.d.ts +64 -0
  479. package/dist/client/theme/defaults.d.ts.map +1 -0
  480. package/dist/client/theme/defaults.mjs +158 -0
  481. package/dist/client/theme/defaults.mjs.map +1 -0
  482. package/dist/client/theme/index.d.ts +8 -0
  483. package/dist/client/theme/index.d.ts.map +1 -0
  484. package/dist/client/theme/index.mjs +20 -0
  485. package/dist/client/theme/index.mjs.map +1 -0
  486. package/dist/client/theme/scan.d.ts +16 -0
  487. package/dist/client/theme/scan.d.ts.map +1 -0
  488. package/dist/client/theme/scan.mjs +25 -0
  489. package/dist/client/theme/scan.mjs.map +1 -0
  490. package/dist/client/ui/accordion.d.ts +8 -0
  491. package/dist/client/ui/accordion.d.ts.map +1 -0
  492. package/dist/client/ui/accordion.mjs +66 -0
  493. package/dist/client/ui/accordion.mjs.map +1 -0
  494. package/dist/client/ui/breadcrumb.d.ts +12 -0
  495. package/dist/client/ui/breadcrumb.d.ts.map +1 -0
  496. package/dist/client/ui/breadcrumb.mjs +104 -0
  497. package/dist/client/ui/breadcrumb.mjs.map +1 -0
  498. package/dist/client/ui/button.d.ts +11 -0
  499. package/dist/client/ui/button.d.ts.map +1 -0
  500. package/dist/client/ui/button.mjs +57 -0
  501. package/dist/client/ui/button.mjs.map +1 -0
  502. package/dist/client/ui/card.d.ts +10 -0
  503. package/dist/client/ui/card.d.ts.map +1 -0
  504. package/dist/client/ui/card.mjs +91 -0
  505. package/dist/client/ui/card.mjs.map +1 -0
  506. package/dist/client/ui/carousel.d.ts +20 -0
  507. package/dist/client/ui/carousel.d.ts.map +1 -0
  508. package/dist/client/ui/carousel.mjs +202 -0
  509. package/dist/client/ui/carousel.mjs.map +1 -0
  510. package/dist/client/ui/checkbox.d.ts +5 -0
  511. package/dist/client/ui/checkbox.d.ts.map +1 -0
  512. package/dist/client/ui/checkbox.mjs +34 -0
  513. package/dist/client/ui/checkbox.mjs.map +1 -0
  514. package/dist/client/ui/collapsible.d.ts +6 -0
  515. package/dist/client/ui/collapsible.d.ts.map +1 -0
  516. package/dist/client/ui/collapsible.mjs +36 -0
  517. package/dist/client/ui/collapsible.mjs.map +1 -0
  518. package/dist/client/ui/input.d.ts +4 -0
  519. package/dist/client/ui/input.d.ts.map +1 -0
  520. package/dist/client/ui/input.mjs +22 -0
  521. package/dist/client/ui/input.mjs.map +1 -0
  522. package/dist/client/ui/label.d.ts +5 -0
  523. package/dist/client/ui/label.d.ts.map +1 -0
  524. package/dist/client/ui/label.mjs +23 -0
  525. package/dist/client/ui/label.mjs.map +1 -0
  526. package/dist/client/ui/mid-truncate.d.ts +27 -0
  527. package/dist/client/ui/mid-truncate.d.ts.map +1 -0
  528. package/dist/client/ui/mid-truncate.mjs +25 -0
  529. package/dist/client/ui/mid-truncate.mjs.map +1 -0
  530. package/dist/client/ui/navigation-menu.d.ts +15 -0
  531. package/dist/client/ui/navigation-menu.d.ts.map +1 -0
  532. package/dist/client/ui/navigation-menu.mjs +172 -0
  533. package/dist/client/ui/navigation-menu.mjs.map +1 -0
  534. package/dist/client/ui/pagination.d.ts +14 -0
  535. package/dist/client/ui/pagination.d.ts.map +1 -0
  536. package/dist/client/ui/pagination.mjs +124 -0
  537. package/dist/client/ui/pagination.mjs.map +1 -0
  538. package/dist/client/ui/popover.d.ts +11 -0
  539. package/dist/client/ui/popover.d.ts.map +1 -0
  540. package/dist/client/ui/popover.mjs +82 -0
  541. package/dist/client/ui/popover.mjs.map +1 -0
  542. package/dist/client/ui/select.d.ts +16 -0
  543. package/dist/client/ui/select.d.ts.map +1 -0
  544. package/dist/client/ui/select.mjs +183 -0
  545. package/dist/client/ui/select.mjs.map +1 -0
  546. package/dist/client/ui/separator.d.ts +5 -0
  547. package/dist/client/ui/separator.d.ts.map +1 -0
  548. package/dist/client/ui/separator.mjs +27 -0
  549. package/dist/client/ui/separator.mjs.map +1 -0
  550. package/dist/client/ui/sheet.d.ts +15 -0
  551. package/dist/client/ui/sheet.d.ts.map +1 -0
  552. package/dist/client/ui/sheet.mjs +130 -0
  553. package/dist/client/ui/sheet.mjs.map +1 -0
  554. package/dist/client/ui/toggle-group.d.ts +10 -0
  555. package/dist/client/ui/toggle-group.d.ts.map +1 -0
  556. package/dist/client/ui/toggle-group.mjs +69 -0
  557. package/dist/client/ui/toggle-group.mjs.map +1 -0
  558. package/dist/client/ui/toggle.d.ts +10 -0
  559. package/dist/client/ui/toggle.d.ts.map +1 -0
  560. package/dist/client/ui/toggle.mjs +44 -0
  561. package/dist/client/ui/toggle.mjs.map +1 -0
  562. package/dist/client/ui/utils.d.ts +3 -0
  563. package/dist/client/ui/utils.d.ts.map +1 -0
  564. package/dist/client/ui/utils.mjs +9 -0
  565. package/dist/client/ui/utils.mjs.map +1 -0
  566. package/dist/client/ui-interfaces/accordion.d.ts +8 -0
  567. package/dist/client/ui-interfaces/accordion.d.ts.map +1 -0
  568. package/dist/client/ui-interfaces/accordion.mjs +72 -0
  569. package/dist/client/ui-interfaces/accordion.mjs.map +1 -0
  570. package/dist/client/ui-interfaces/breadcrumb.d.ts +12 -0
  571. package/dist/client/ui-interfaces/breadcrumb.d.ts.map +1 -0
  572. package/dist/client/ui-interfaces/breadcrumb.mjs +97 -0
  573. package/dist/client/ui-interfaces/breadcrumb.mjs.map +1 -0
  574. package/dist/client/ui-interfaces/button.d.ts +11 -0
  575. package/dist/client/ui-interfaces/button.d.ts.map +1 -0
  576. package/dist/client/ui-interfaces/button.mjs +57 -0
  577. package/dist/client/ui-interfaces/button.mjs.map +1 -0
  578. package/dist/client/ui-interfaces/card.d.ts +10 -0
  579. package/dist/client/ui-interfaces/card.d.ts.map +1 -0
  580. package/dist/client/ui-interfaces/card.mjs +78 -0
  581. package/dist/client/ui-interfaces/card.mjs.map +1 -0
  582. package/dist/client/ui-interfaces/carousel.d.ts +20 -0
  583. package/dist/client/ui-interfaces/carousel.d.ts.map +1 -0
  584. package/dist/client/ui-interfaces/carousel.mjs +188 -0
  585. package/dist/client/ui-interfaces/carousel.mjs.map +1 -0
  586. package/dist/client/ui-interfaces/checkbox.d.ts +5 -0
  587. package/dist/client/ui-interfaces/checkbox.d.ts.map +1 -0
  588. package/dist/client/ui-interfaces/checkbox.mjs +30 -0
  589. package/dist/client/ui-interfaces/checkbox.mjs.map +1 -0
  590. package/dist/client/ui-interfaces/collapsible.d.ts +7 -0
  591. package/dist/client/ui-interfaces/collapsible.d.ts.map +1 -0
  592. package/dist/client/ui-interfaces/collapsible.mjs +42 -0
  593. package/dist/client/ui-interfaces/collapsible.mjs.map +1 -0
  594. package/dist/client/ui-interfaces/index.d.ts +18 -0
  595. package/dist/client/ui-interfaces/index.d.ts.map +1 -0
  596. package/dist/client/ui-interfaces/index.mjs +18 -0
  597. package/dist/client/ui-interfaces/index.mjs.map +1 -0
  598. package/dist/client/ui-interfaces/input.d.ts +7 -0
  599. package/dist/client/ui-interfaces/input.d.ts.map +1 -0
  600. package/dist/client/ui-interfaces/input.mjs +39 -0
  601. package/dist/client/ui-interfaces/input.mjs.map +1 -0
  602. package/dist/client/ui-interfaces/label.d.ts +5 -0
  603. package/dist/client/ui-interfaces/label.d.ts.map +1 -0
  604. package/dist/client/ui-interfaces/label.mjs +23 -0
  605. package/dist/client/ui-interfaces/label.mjs.map +1 -0
  606. package/dist/client/ui-interfaces/navigation-menu.d.ts +15 -0
  607. package/dist/client/ui-interfaces/navigation-menu.d.ts.map +1 -0
  608. package/dist/client/ui-interfaces/navigation-menu.mjs +163 -0
  609. package/dist/client/ui-interfaces/navigation-menu.mjs.map +1 -0
  610. package/dist/client/ui-interfaces/pagination.d.ts +14 -0
  611. package/dist/client/ui-interfaces/pagination.d.ts.map +1 -0
  612. package/dist/client/ui-interfaces/pagination.mjs +103 -0
  613. package/dist/client/ui-interfaces/pagination.mjs.map +1 -0
  614. package/dist/client/ui-interfaces/popover.d.ts +8 -0
  615. package/dist/client/ui-interfaces/popover.d.ts.map +1 -0
  616. package/dist/client/ui-interfaces/popover.mjs +50 -0
  617. package/dist/client/ui-interfaces/popover.mjs.map +1 -0
  618. package/dist/client/ui-interfaces/select.d.ts +16 -0
  619. package/dist/client/ui-interfaces/select.d.ts.map +1 -0
  620. package/dist/client/ui-interfaces/select.mjs +159 -0
  621. package/dist/client/ui-interfaces/select.mjs.map +1 -0
  622. package/dist/client/ui-interfaces/separator.d.ts +5 -0
  623. package/dist/client/ui-interfaces/separator.d.ts.map +1 -0
  624. package/dist/client/ui-interfaces/separator.mjs +28 -0
  625. package/dist/client/ui-interfaces/separator.mjs.map +1 -0
  626. package/dist/client/ui-interfaces/sheet.d.ts +14 -0
  627. package/dist/client/ui-interfaces/sheet.d.ts.map +1 -0
  628. package/dist/client/ui-interfaces/sheet.mjs +140 -0
  629. package/dist/client/ui-interfaces/sheet.mjs.map +1 -0
  630. package/dist/client/ui-interfaces/toggle-group.d.ts +10 -0
  631. package/dist/client/ui-interfaces/toggle-group.d.ts.map +1 -0
  632. package/dist/client/ui-interfaces/toggle-group.mjs +67 -0
  633. package/dist/client/ui-interfaces/toggle-group.mjs.map +1 -0
  634. package/dist/client/ui-interfaces/toggle.d.ts +10 -0
  635. package/dist/client/ui-interfaces/toggle.d.ts.map +1 -0
  636. package/dist/client/ui-interfaces/toggle.mjs +45 -0
  637. package/dist/client/ui-interfaces/toggle.mjs.map +1 -0
  638. package/dist/client/ui-resolver/accordion.d.ts +11 -0
  639. package/dist/client/ui-resolver/accordion.d.ts.map +1 -0
  640. package/dist/client/ui-resolver/accordion.mjs +35 -0
  641. package/dist/client/ui-resolver/accordion.mjs.map +1 -0
  642. package/dist/client/ui-resolver/breadcrumb.d.ts +14 -0
  643. package/dist/client/ui-resolver/breadcrumb.d.ts.map +1 -0
  644. package/dist/client/ui-resolver/breadcrumb.mjs +53 -0
  645. package/dist/client/ui-resolver/breadcrumb.mjs.map +1 -0
  646. package/dist/client/ui-resolver/button.d.ts +12 -0
  647. package/dist/client/ui-resolver/button.d.ts.map +1 -0
  648. package/dist/client/ui-resolver/button.mjs +25 -0
  649. package/dist/client/ui-resolver/button.mjs.map +1 -0
  650. package/dist/client/ui-resolver/card.d.ts +14 -0
  651. package/dist/client/ui-resolver/card.d.ts.map +1 -0
  652. package/dist/client/ui-resolver/card.mjs +53 -0
  653. package/dist/client/ui-resolver/card.mjs.map +1 -0
  654. package/dist/client/ui-resolver/carousel.d.ts +13 -0
  655. package/dist/client/ui-resolver/carousel.d.ts.map +1 -0
  656. package/dist/client/ui-resolver/carousel.mjs +41 -0
  657. package/dist/client/ui-resolver/carousel.mjs.map +1 -0
  658. package/dist/client/ui-resolver/checkbox.d.ts +8 -0
  659. package/dist/client/ui-resolver/checkbox.d.ts.map +1 -0
  660. package/dist/client/ui-resolver/checkbox.mjs +17 -0
  661. package/dist/client/ui-resolver/checkbox.mjs.map +1 -0
  662. package/dist/client/ui-resolver/collapsible.d.ts +10 -0
  663. package/dist/client/ui-resolver/collapsible.d.ts.map +1 -0
  664. package/dist/client/ui-resolver/collapsible.mjs +29 -0
  665. package/dist/client/ui-resolver/collapsible.mjs.map +1 -0
  666. package/dist/client/ui-resolver/context.d.ts +10 -0
  667. package/dist/client/ui-resolver/context.d.ts.map +1 -0
  668. package/dist/client/ui-resolver/context.mjs +28 -0
  669. package/dist/client/ui-resolver/context.mjs.map +1 -0
  670. package/dist/client/ui-resolver/index.d.ts +19 -0
  671. package/dist/client/ui-resolver/index.d.ts.map +1 -0
  672. package/dist/client/ui-resolver/index.mjs +156 -0
  673. package/dist/client/ui-resolver/index.mjs.map +1 -0
  674. package/dist/client/ui-resolver/input.d.ts +8 -0
  675. package/dist/client/ui-resolver/input.d.ts.map +1 -0
  676. package/dist/client/ui-resolver/input.mjs +17 -0
  677. package/dist/client/ui-resolver/input.mjs.map +1 -0
  678. package/dist/client/ui-resolver/label.d.ts +8 -0
  679. package/dist/client/ui-resolver/label.d.ts.map +1 -0
  680. package/dist/client/ui-resolver/label.mjs +17 -0
  681. package/dist/client/ui-resolver/label.mjs.map +1 -0
  682. package/dist/client/ui-resolver/navigation-menu.d.ts +16 -0
  683. package/dist/client/ui-resolver/navigation-menu.d.ts.map +1 -0
  684. package/dist/client/ui-resolver/navigation-menu.mjs +64 -0
  685. package/dist/client/ui-resolver/navigation-menu.mjs.map +1 -0
  686. package/dist/client/ui-resolver/pagination.d.ts +14 -0
  687. package/dist/client/ui-resolver/pagination.d.ts.map +1 -0
  688. package/dist/client/ui-resolver/pagination.mjs +53 -0
  689. package/dist/client/ui-resolver/pagination.mjs.map +1 -0
  690. package/dist/client/ui-resolver/popover.d.ts +11 -0
  691. package/dist/client/ui-resolver/popover.d.ts.map +1 -0
  692. package/dist/client/ui-resolver/popover.mjs +35 -0
  693. package/dist/client/ui-resolver/popover.mjs.map +1 -0
  694. package/dist/client/ui-resolver/select.d.ts +15 -0
  695. package/dist/client/ui-resolver/select.d.ts.map +1 -0
  696. package/dist/client/ui-resolver/select.mjs +59 -0
  697. package/dist/client/ui-resolver/select.mjs.map +1 -0
  698. package/dist/client/ui-resolver/separator.d.ts +8 -0
  699. package/dist/client/ui-resolver/separator.d.ts.map +1 -0
  700. package/dist/client/ui-resolver/separator.mjs +17 -0
  701. package/dist/client/ui-resolver/separator.mjs.map +1 -0
  702. package/dist/client/ui-resolver/sheet.d.ts +15 -0
  703. package/dist/client/ui-resolver/sheet.d.ts.map +1 -0
  704. package/dist/client/ui-resolver/sheet.mjs +59 -0
  705. package/dist/client/ui-resolver/sheet.mjs.map +1 -0
  706. package/dist/client/ui-resolver/toggle-group.d.ts +9 -0
  707. package/dist/client/ui-resolver/toggle-group.d.ts.map +1 -0
  708. package/dist/client/ui-resolver/toggle-group.mjs +23 -0
  709. package/dist/client/ui-resolver/toggle-group.mjs.map +1 -0
  710. package/dist/client/ui-resolver/toggle.d.ts +12 -0
  711. package/dist/client/ui-resolver/toggle.d.ts.map +1 -0
  712. package/dist/client/ui-resolver/toggle.mjs +25 -0
  713. package/dist/client/ui-resolver/toggle.mjs.map +1 -0
  714. package/dist/client/user/actions/createResetPasswordLinkAction.d.ts +14 -0
  715. package/dist/client/user/actions/createResetPasswordLinkAction.d.ts.map +1 -0
  716. package/dist/client/user/actions/createResetPasswordLinkAction.mjs +1 -1
  717. package/dist/client/user/actions/createResetPasswordLinkAction.mjs.map +1 -1
  718. package/dist/client/user/actions/getUserAction.d.ts +3 -0
  719. package/dist/client/user/actions/getUserAction.d.ts.map +1 -0
  720. package/dist/client/user/actions/getUserAction.mjs.map +1 -1
  721. package/dist/client/user/actions/{logInUserAction.d.mts → logInUserAction.d.ts} +3 -3
  722. package/dist/client/user/actions/logInUserAction.d.ts.map +1 -0
  723. package/dist/client/user/actions/logoutUserAction.d.ts +2 -0
  724. package/dist/client/user/actions/logoutUserAction.d.ts.map +1 -0
  725. package/dist/client/user/actions/registerOrganisationAction.d.ts +9 -0
  726. package/dist/client/user/actions/registerOrganisationAction.d.ts.map +1 -0
  727. package/dist/client/user/actions/registerOrganisationAction.mjs.map +1 -1
  728. package/dist/client/user/actions/{registerUserAction.d.mts → registerUserAction.d.ts} +3 -3
  729. package/dist/client/user/actions/registerUserAction.d.ts.map +1 -0
  730. package/dist/client/user/actions/registerUserAction.mjs +1 -1
  731. package/dist/client/user/actions/registerUserAction.mjs.map +1 -1
  732. package/dist/client/user/actions/{registerUserWithoutRedirectAction.d.mts → registerUserWithoutRedirectAction.d.ts} +3 -6
  733. package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts.map +1 -0
  734. package/dist/client/user/actions/{updatePasswordAction.d.mts → updatePasswordAction.d.ts} +3 -3
  735. package/dist/client/user/actions/updatePasswordAction.d.ts.map +1 -0
  736. package/dist/client/user/actions/updatePasswordAction.mjs +1 -1
  737. package/dist/client/user/actions/updatePasswordAction.mjs.map +1 -1
  738. package/dist/client/user/api/userRoute.d.ts +7 -0
  739. package/dist/client/user/api/userRoute.d.ts.map +1 -0
  740. package/dist/client/user/clients/enad.d.ts +4 -0
  741. package/dist/client/user/clients/enad.d.ts.map +1 -0
  742. package/dist/client/user/components/login-form.d.ts +23 -0
  743. package/dist/client/user/components/login-form.d.ts.map +1 -0
  744. package/dist/client/user/components/login-form.mjs +77 -73
  745. package/dist/client/user/components/login-form.mjs.map +1 -1
  746. package/dist/client/user/components/reset-password-form.d.ts +20 -0
  747. package/dist/client/user/components/reset-password-form.d.ts.map +1 -0
  748. package/dist/client/user/components/reset-password-form.mjs +57 -50
  749. package/dist/client/user/components/reset-password-form.mjs.map +1 -1
  750. package/dist/client/user/components/sign-out.d.ts +8 -0
  751. package/dist/client/user/components/sign-out.d.ts.map +1 -0
  752. package/dist/client/user/components/sign-out.mjs +6 -3
  753. package/dist/client/user/components/sign-out.mjs.map +1 -1
  754. package/dist/client/user/components/signup-form.d.ts +27 -0
  755. package/dist/client/user/components/signup-form.d.ts.map +1 -0
  756. package/dist/client/user/components/signup-form.mjs +153 -120
  757. package/dist/client/user/components/signup-form.mjs.map +1 -1
  758. package/dist/client/user/components/signup-organisation-form.d.ts +55 -0
  759. package/dist/client/user/components/signup-organisation-form.d.ts.map +1 -0
  760. package/dist/client/user/components/signup-organisation-form.mjs +713 -662
  761. package/dist/client/user/components/signup-organisation-form.mjs.map +1 -1
  762. package/dist/client/user/components/update-password-form.d.ts +17 -0
  763. package/dist/client/user/components/update-password-form.d.ts.map +1 -0
  764. package/dist/client/user/components/update-password-form.mjs +26 -35
  765. package/dist/client/user/components/update-password-form.mjs.map +1 -1
  766. package/dist/client/user/hooks/index.d.ts +2 -0
  767. package/dist/client/user/hooks/index.d.ts.map +1 -0
  768. package/dist/client/user/hooks/useUser.d.ts +12 -0
  769. package/dist/client/user/hooks/useUser.d.ts.map +1 -0
  770. package/dist/client/user/hooks/useUser.mjs +1 -1
  771. package/dist/client/user/hooks/useUser.mjs.map +1 -1
  772. package/dist/client/user/index.d.ts +9 -0
  773. package/dist/client/user/index.d.ts.map +1 -0
  774. package/dist/client/user/index.mjs +17 -0
  775. package/dist/client/user/index.mjs.map +1 -0
  776. package/dist/client/user/types/{user.d.mts → user.d.ts} +25 -26
  777. package/dist/client/user/types/user.d.ts.map +1 -0
  778. package/dist/client/user/utils/{userCookieService.d.mts → userCookieService.d.ts} +2 -3
  779. package/dist/client/user/utils/userCookieService.d.ts.map +1 -0
  780. package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts +5 -0
  781. package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts.map +1 -0
  782. package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs.map +1 -1
  783. package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts +3 -0
  784. package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts.map +1 -0
  785. package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs.map +1 -1
  786. package/dist/client/wishlist/actions/createWishlistAction.d.ts +3 -0
  787. package/dist/client/wishlist/actions/createWishlistAction.d.ts.map +1 -0
  788. package/dist/client/wishlist/actions/createWishlistAction.mjs.map +1 -1
  789. package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts +5 -0
  790. package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts.map +1 -0
  791. package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs.map +1 -1
  792. package/dist/client/wishlist/actions/deleteWishlistAction.d.ts +4 -0
  793. package/dist/client/wishlist/actions/deleteWishlistAction.d.ts.map +1 -0
  794. package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts +3 -0
  795. package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts.map +1 -0
  796. package/dist/client/wishlist/actions/getSharedWishlistAction.mjs.map +1 -1
  797. package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts +3 -0
  798. package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts.map +1 -0
  799. package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs.map +1 -1
  800. package/dist/client/wishlist/actions/getUserWishlists.d.ts +4 -0
  801. package/dist/client/wishlist/actions/getUserWishlists.d.ts.map +1 -0
  802. package/dist/client/wishlist/actions/getUserWishlists.mjs.map +1 -1
  803. package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts +4 -0
  804. package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts.map +1 -0
  805. package/dist/client/wishlist/actions/updateWishlistAction.d.ts +3 -0
  806. package/dist/client/wishlist/actions/updateWishlistAction.d.ts.map +1 -0
  807. package/dist/client/wishlist/actions/updateWishlistAction.mjs.map +1 -1
  808. package/dist/client/wishlist/hooks/index.d.ts +2 -0
  809. package/dist/client/wishlist/hooks/index.d.ts.map +1 -0
  810. package/dist/client/wishlist/hooks/useWishlist.d.ts +95 -0
  811. package/dist/client/wishlist/hooks/useWishlist.d.ts.map +1 -0
  812. package/dist/client/wishlist/hooks/useWishlist.mjs +14 -4
  813. package/dist/client/wishlist/hooks/useWishlist.mjs.map +1 -1
  814. package/dist/client/wishlist/hooks/useWishlistActions.d.ts +44 -0
  815. package/dist/client/wishlist/hooks/useWishlistActions.d.ts.map +1 -0
  816. package/dist/client/wishlist/hooks/useWishlistActions.mjs.map +1 -1
  817. package/dist/client/wishlist/index.d.ts +5 -0
  818. package/dist/client/wishlist/index.d.ts.map +1 -0
  819. package/dist/client/wishlist/index.mjs +9 -0
  820. package/dist/client/wishlist/index.mjs.map +1 -0
  821. package/dist/client/wishlist/wishlist-drawer.d.ts +17 -0
  822. package/dist/client/wishlist/wishlist-drawer.d.ts.map +1 -0
  823. package/dist/client/wishlist/wishlist-drawer.mjs +189 -170
  824. package/dist/client/wishlist/wishlist-drawer.mjs.map +1 -1
  825. package/dist/styles.css +1 -958
  826. package/package.json +107 -33
  827. package/dist/client/cart/components/cart-trigger.d.mts +0 -5
  828. package/dist/client/cart/constants/session.d.mts +0 -3
  829. package/dist/client/cart/contexts/cart.d.mts +0 -27
  830. package/dist/client/cart/hooks/useCart.d.mts +0 -29
  831. package/dist/client/cart/hooks/useCartActions.d.mts +0 -26
  832. package/dist/client/cart/queries/addToCartQueryFn.d.mts +0 -10
  833. package/dist/client/cart/queries/getCartQueryFn.d.mts +0 -7
  834. package/dist/client/cart/queries/removeCartItemQueryFn.d.mts +0 -9
  835. package/dist/client/cart/queries/updateCartItemQueryFn.d.mts +0 -10
  836. package/dist/client/cart/utils/session.d.mts +0 -6
  837. package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.mts +0 -6
  838. package/dist/client/global/auth/withAuth.d.mts +0 -6
  839. package/dist/client/global/providers/enad-provider.d.mts +0 -23
  840. package/dist/client/search/actions/searchAction.d.mts +0 -5
  841. package/dist/client/search/components/search-bar.d.mts +0 -2
  842. package/dist/client/search/hooks/useSearch.d.mts +0 -18
  843. package/dist/client/user/actions/createResetPasswordLinkAction.d.mts +0 -14
  844. package/dist/client/user/actions/getUserAction.d.mts +0 -5
  845. package/dist/client/user/actions/logoutUserAction.d.mts +0 -3
  846. package/dist/client/user/actions/registerOrganisationAction.d.mts +0 -12
  847. package/dist/client/user/api/userRoute.d.mts +0 -9
  848. package/dist/client/user/clients/enad.d.mts +0 -6
  849. package/dist/client/user/components/login-form.d.mts +0 -20
  850. package/dist/client/user/components/reset-password-form.d.mts +0 -15
  851. package/dist/client/user/components/sign-out.d.mts +0 -5
  852. package/dist/client/user/components/signup-form.d.mts +0 -15
  853. package/dist/client/user/components/signup-organisation-form.d.mts +0 -20
  854. package/dist/client/user/components/update-password-form.d.mts +0 -11
  855. package/dist/client/user/hooks/index.d.mts +0 -3
  856. package/dist/client/user/hooks/useUser.d.mts +0 -16
  857. package/dist/client/wishlist/actions/addItemsToWishlistAction.d.mts +0 -7
  858. package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.mts +0 -6
  859. package/dist/client/wishlist/actions/createWishlistAction.d.mts +0 -6
  860. package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.mts +0 -7
  861. package/dist/client/wishlist/actions/deleteWishlistAction.d.mts +0 -5
  862. package/dist/client/wishlist/actions/getSharedWishlistAction.d.mts +0 -6
  863. package/dist/client/wishlist/actions/getSpecificWishlistAction.d.mts +0 -6
  864. package/dist/client/wishlist/actions/getUserWishlists.d.mts +0 -7
  865. package/dist/client/wishlist/actions/revokeShareTokenAction.d.mts +0 -5
  866. package/dist/client/wishlist/actions/updateWishlistAction.d.mts +0 -6
  867. package/dist/client/wishlist/hooks/index.d.mts +0 -3
  868. package/dist/client/wishlist/hooks/useWishlist.d.mts +0 -98
  869. package/dist/client/wishlist/hooks/useWishlistActions.d.mts +0 -48
  870. package/dist/client/wishlist/wishlist-drawer.d.mts +0 -19
@@ -0,0 +1,44 @@
1
+ const springs = {
2
+ /** Snappy feedback for buttons and toggles. */
3
+ snappy: "cubic-bezier(0.32, 0.72, 0, 1)",
4
+ /** Smooth transitions for panels and modals. */
5
+ smooth: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
6
+ /** Bouncy entrance for elements entering the viewport. */
7
+ bouncy: "cubic-bezier(0.34, 1.56, 0.64, 1)",
8
+ /** Gentle ease for subtle hover effects. */
9
+ gentle: "cubic-bezier(0.4, 0, 0.2, 1)"
10
+ };
11
+ function getDuration(delight) {
12
+ if (delight <= 0) return 0;
13
+ return Math.round(100 + delight / 100 * 300);
14
+ }
15
+ function getMotionConfig(delight) {
16
+ const duration = getDuration(delight);
17
+ const enabled = delight > 0;
18
+ return {
19
+ enabled,
20
+ duration,
21
+ /** CSS duration string. */
22
+ durationMs: `${duration}ms`,
23
+ /** Scale factor for hover feedback (1 = no scale). */
24
+ hoverScale: enabled ? 1 + delight / 100 * 0.03 : 1,
25
+ /** Y-translate for press feedback in px. */
26
+ pressTranslateY: enabled ? Math.round(1 + delight / 100) : 0,
27
+ /** Scale for press feedback. */
28
+ pressScale: enabled ? 1 - delight / 100 * 0.02 : 1,
29
+ /** Distance in px elements travel during entry animation. */
30
+ entryDistance: enabled ? Math.round(8 + delight / 100 * 16) : 0,
31
+ /** Stagger delay between siblings in ms. */
32
+ staggerDelay: enabled ? Math.round(30 + delight / 100 * 50) : 0,
33
+ /** Preferred easing curve. */
34
+ easing: enabled ? springs.snappy : "linear",
35
+ /** Entry animation easing. */
36
+ entryEasing: enabled ? springs.smooth : "linear"
37
+ };
38
+ }
39
+ export {
40
+ getDuration,
41
+ getMotionConfig,
42
+ springs
43
+ };
44
+ //# sourceMappingURL=config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/client/motion/config.ts"],"sourcesContent":["/**\n * Motion configuration tied to the theme's delight level (0-100).\n *\n * Delight 0 = no motion. Delight 100 = full spring physics.\n * `prefers-reduced-motion` overrides everything to zero.\n */\n\n/** Spring physics presets for different interaction types. */\nexport const springs = {\n /** Snappy feedback for buttons and toggles. */\n snappy: \"cubic-bezier(0.32, 0.72, 0, 1)\",\n /** Smooth transitions for panels and modals. */\n smooth: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n /** Bouncy entrance for elements entering the viewport. */\n bouncy: \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n /** Gentle ease for subtle hover effects. */\n gentle: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n} as const;\n\n/** Duration scale mapped to delight level. */\nexport function getDuration(delight: number): number {\n if (delight <= 0) return 0;\n // Scale from 100ms (delight 1) to 400ms (delight 100)\n return Math.round(100 + (delight / 100) * 300);\n}\n\n/** Full motion config derived from a delight level. */\nexport function getMotionConfig(delight: number) {\n const duration = getDuration(delight);\n const enabled = delight > 0;\n\n return {\n enabled,\n duration,\n /** CSS duration string. */\n durationMs: `${duration}ms`,\n /** Scale factor for hover feedback (1 = no scale). */\n hoverScale: enabled ? 1 + (delight / 100) * 0.03 : 1,\n /** Y-translate for press feedback in px. */\n pressTranslateY: enabled ? Math.round(1 + delight / 100) : 0,\n /** Scale for press feedback. */\n pressScale: enabled ? 1 - (delight / 100) * 0.02 : 1,\n /** Distance in px elements travel during entry animation. */\n entryDistance: enabled ? Math.round(8 + (delight / 100) * 16) : 0,\n /** Stagger delay between siblings in ms. */\n staggerDelay: enabled ? Math.round(30 + (delight / 100) * 50) : 0,\n /** Preferred easing curve. */\n easing: enabled ? springs.snappy : \"linear\",\n /** Entry animation easing. */\n entryEasing: enabled ? springs.smooth : \"linear\",\n } as const;\n}\n\nexport type MotionConfig = ReturnType<typeof getMotionConfig>;\n"],"mappings":"AAQO,MAAM,UAAU;AAAA;AAAA,EAErB,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,QAAQ;AACV;AAGO,SAAS,YAAY,SAAyB;AACnD,MAAI,WAAW,EAAG,QAAO;AAEzB,SAAO,KAAK,MAAM,MAAO,UAAU,MAAO,GAAG;AAC/C;AAGO,SAAS,gBAAgB,SAAiB;AAC/C,QAAM,WAAW,YAAY,OAAO;AACpC,QAAM,UAAU,UAAU;AAE1B,SAAO;AAAA,IACL;AAAA,IACA;AAAA;AAAA,IAEA,YAAY,GAAG,QAAQ;AAAA;AAAA,IAEvB,YAAY,UAAU,IAAK,UAAU,MAAO,OAAO;AAAA;AAAA,IAEnD,iBAAiB,UAAU,KAAK,MAAM,IAAI,UAAU,GAAG,IAAI;AAAA;AAAA,IAE3D,YAAY,UAAU,IAAK,UAAU,MAAO,OAAO;AAAA;AAAA,IAEnD,eAAe,UAAU,KAAK,MAAM,IAAK,UAAU,MAAO,EAAE,IAAI;AAAA;AAAA,IAEhE,cAAc,UAAU,KAAK,MAAM,KAAM,UAAU,MAAO,EAAE,IAAI;AAAA;AAAA,IAEhE,QAAQ,UAAU,QAAQ,SAAS;AAAA;AAAA,IAEnC,aAAa,UAAU,QAAQ,SAAS;AAAA,EAC1C;AACF;","names":[]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Hover and press feedback utilities.
3
+ *
4
+ * Generates CSS class strings and inline styles for interactive elements
5
+ * based on the current motion config.
6
+ */
7
+ import type { MotionConfig } from "./config";
8
+ /**
9
+ * Returns a Tailwind-compatible class string for hover/press feedback.
10
+ *
11
+ * When motion is disabled, returns an empty string.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <button className={`base-classes ${hoverFeedbackClass(motion)}`}>
16
+ * Click me
17
+ * </button>
18
+ * ```
19
+ */
20
+ export declare function hoverFeedbackClass(config: MotionConfig): string;
21
+ /**
22
+ * Returns inline CSS custom properties that drive the hover/press feedback.
23
+ * Spread these onto the element's style prop alongside `hoverFeedbackClass`.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <button
28
+ * className={hoverFeedbackClass(motion)}
29
+ * style={hoverFeedbackStyle(motion)}
30
+ * >
31
+ * Click me
32
+ * </button>
33
+ * ```
34
+ */
35
+ export declare function hoverFeedbackStyle(config: MotionConfig): React.CSSProperties;
36
+ //# sourceMappingURL=hover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../src/client/motion/hover.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAG/D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,KAAK,CAAC,aAAa,CAU5E"}
@@ -0,0 +1,19 @@
1
+ function hoverFeedbackClass(config) {
2
+ if (!config.enabled) return "";
3
+ return "enad-hover-feedback";
4
+ }
5
+ function hoverFeedbackStyle(config) {
6
+ if (!config.enabled) return {};
7
+ return {
8
+ "--enad-hover-scale": String(config.hoverScale),
9
+ "--enad-press-scale": String(config.pressScale),
10
+ "--enad-press-y": `${config.pressTranslateY}px`,
11
+ "--enad-motion-duration": config.durationMs,
12
+ "--enad-motion-easing": config.easing
13
+ };
14
+ }
15
+ export {
16
+ hoverFeedbackClass,
17
+ hoverFeedbackStyle
18
+ };
19
+ //# sourceMappingURL=hover.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/client/motion/hover.ts"],"sourcesContent":["/**\n * Hover and press feedback utilities.\n *\n * Generates CSS class strings and inline styles for interactive elements\n * based on the current motion config.\n */\n\nimport type { MotionConfig } from \"./config\";\n\n/**\n * Returns a Tailwind-compatible class string for hover/press feedback.\n *\n * When motion is disabled, returns an empty string.\n *\n * @example\n * ```tsx\n * <button className={`base-classes ${hoverFeedbackClass(motion)}`}>\n * Click me\n * </button>\n * ```\n */\nexport function hoverFeedbackClass(config: MotionConfig): string {\n if (!config.enabled) return \"\";\n return \"enad-hover-feedback\";\n}\n\n/**\n * Returns inline CSS custom properties that drive the hover/press feedback.\n * Spread these onto the element's style prop alongside `hoverFeedbackClass`.\n *\n * @example\n * ```tsx\n * <button\n * className={hoverFeedbackClass(motion)}\n * style={hoverFeedbackStyle(motion)}\n * >\n * Click me\n * </button>\n * ```\n */\nexport function hoverFeedbackStyle(config: MotionConfig): React.CSSProperties {\n if (!config.enabled) return {};\n\n return {\n \"--enad-hover-scale\": String(config.hoverScale),\n \"--enad-press-scale\": String(config.pressScale),\n \"--enad-press-y\": `${config.pressTranslateY}px`,\n \"--enad-motion-duration\": config.durationMs,\n \"--enad-motion-easing\": config.easing,\n } as React.CSSProperties;\n}\n"],"mappings":"AAqBO,SAAS,mBAAmB,QAA8B;AAC/D,MAAI,CAAC,OAAO,QAAS,QAAO;AAC5B,SAAO;AACT;AAgBO,SAAS,mBAAmB,QAA2C;AAC5E,MAAI,CAAC,OAAO,QAAS,QAAO,CAAC;AAE7B,SAAO;AAAA,IACL,sBAAsB,OAAO,OAAO,UAAU;AAAA,IAC9C,sBAAsB,OAAO,OAAO,UAAU;AAAA,IAC9C,kBAAkB,GAAG,OAAO,eAAe;AAAA,IAC3C,0BAA0B,OAAO;AAAA,IACjC,wBAAwB,OAAO;AAAA,EACjC;AACF;","names":[]}
@@ -0,0 +1,4 @@
1
+ export { springs, getDuration, getMotionConfig, type MotionConfig } from "./config";
2
+ export { staggerChildStyle, staggerEntryClass } from "./stagger";
3
+ export { hoverFeedbackClass, hoverFeedbackStyle } from "./hover";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { springs, getDuration, getMotionConfig } from "./config";
2
+ import { staggerChildStyle, staggerEntryClass } from "./stagger";
3
+ import { hoverFeedbackClass, hoverFeedbackStyle } from "./hover";
4
+ export {
5
+ getDuration,
6
+ getMotionConfig,
7
+ hoverFeedbackClass,
8
+ hoverFeedbackStyle,
9
+ springs,
10
+ staggerChildStyle,
11
+ staggerEntryClass
12
+ };
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/client/motion/index.ts"],"sourcesContent":["export { springs, getDuration, getMotionConfig, type MotionConfig } from \"./config\";\nexport { staggerChildStyle, staggerEntryClass } from \"./stagger\";\nexport { hoverFeedbackClass, hoverFeedbackStyle } from \"./hover\";\n"],"mappings":"AAAA,SAAS,SAAS,aAAa,uBAA0C;AACzE,SAAS,mBAAmB,yBAAyB;AACrD,SAAS,oBAAoB,0BAA0B;","names":[]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * CSS-based staggered entry animation for list/grid children.
3
+ *
4
+ * Works by setting a `--stagger-index` CSS custom property on each child,
5
+ * which drives the animation-delay. No JS animation runtime needed.
6
+ */
7
+ import type { MotionConfig } from "./config";
8
+ /**
9
+ * Returns inline style for a staggered child element.
10
+ *
11
+ * @param index - The child's position in the list (0-based).
12
+ * @param config - Motion config from `getMotionConfig(delight)`.
13
+ * @returns CSS properties to spread onto the element's style prop.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * {items.map((item, i) => (
18
+ * <div
19
+ * key={item.id}
20
+ * className={staggerEntryClass(motion)}
21
+ * style={staggerChildStyle(i, motion)}
22
+ * >
23
+ * {item.name}
24
+ * </div>
25
+ * ))}
26
+ * ```
27
+ */
28
+ export declare function staggerChildStyle(index: number, config: MotionConfig): React.CSSProperties;
29
+ /**
30
+ * CSS class name for the stagger entry animation.
31
+ * Pair with the `@keyframes enad-stagger-entry` defined in styles.css.
32
+ *
33
+ * Returns empty string when motion is disabled.
34
+ */
35
+ export declare function staggerEntryClass(config: MotionConfig): string;
36
+ //# sourceMappingURL=stagger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stagger.d.ts","sourceRoot":"","sources":["../../../src/client/motion/stagger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,KAAK,CAAC,aAAa,CAS1F;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAE9D"}
@@ -0,0 +1,17 @@
1
+ function staggerChildStyle(index, config) {
2
+ if (!config.enabled) return {};
3
+ return {
4
+ animationDelay: `${index * config.staggerDelay}ms`,
5
+ animationDuration: `${config.duration}ms`,
6
+ animationTimingFunction: config.entryEasing,
7
+ animationFillMode: "both"
8
+ };
9
+ }
10
+ function staggerEntryClass(config) {
11
+ return config.enabled ? "enad-stagger-entry" : "";
12
+ }
13
+ export {
14
+ staggerChildStyle,
15
+ staggerEntryClass
16
+ };
17
+ //# sourceMappingURL=stagger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/client/motion/stagger.ts"],"sourcesContent":["/**\n * CSS-based staggered entry animation for list/grid children.\n *\n * Works by setting a `--stagger-index` CSS custom property on each child,\n * which drives the animation-delay. No JS animation runtime needed.\n */\n\nimport type { MotionConfig } from \"./config\";\n\n/**\n * Returns inline style for a staggered child element.\n *\n * @param index - The child's position in the list (0-based).\n * @param config - Motion config from `getMotionConfig(delight)`.\n * @returns CSS properties to spread onto the element's style prop.\n *\n * @example\n * ```tsx\n * {items.map((item, i) => (\n * <div\n * key={item.id}\n * className={staggerEntryClass(motion)}\n * style={staggerChildStyle(i, motion)}\n * >\n * {item.name}\n * </div>\n * ))}\n * ```\n */\nexport function staggerChildStyle(index: number, config: MotionConfig): React.CSSProperties {\n if (!config.enabled) return {};\n\n return {\n animationDelay: `${index * config.staggerDelay}ms`,\n animationDuration: `${config.duration}ms`,\n animationTimingFunction: config.entryEasing,\n animationFillMode: \"both\",\n };\n}\n\n/**\n * CSS class name for the stagger entry animation.\n * Pair with the `@keyframes enad-stagger-entry` defined in styles.css.\n *\n * Returns empty string when motion is disabled.\n */\nexport function staggerEntryClass(config: MotionConfig): string {\n return config.enabled ? \"enad-stagger-entry\" : \"\";\n}\n"],"mappings":"AA6BO,SAAS,kBAAkB,OAAe,QAA2C;AAC1F,MAAI,CAAC,OAAO,QAAS,QAAO,CAAC;AAE7B,SAAO;AAAA,IACL,gBAAgB,GAAG,QAAQ,OAAO,YAAY;AAAA,IAC9C,mBAAmB,GAAG,OAAO,QAAQ;AAAA,IACrC,yBAAyB,OAAO;AAAA,IAChC,mBAAmB;AAAA,EACrB;AACF;AAQO,SAAS,kBAAkB,QAA8B;AAC9D,SAAO,OAAO,UAAU,uBAAuB;AACjD;","names":[]}
@@ -0,0 +1,2 @@
1
+ export declare const searchAction: (query: string, filters: Record<string, unknown>) => Promise<never[] | import("@enadhq/enad-ts-sdk").SearchResponse<import("@enadhq/enad-ts-sdk").EnadSearchProduct>>;
2
+ //# sourceMappingURL=searchAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchAction.d.ts","sourceRoot":"","sources":["../../../../src/client/search/actions/searchAction.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qHAcjF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/client/search/actions/searchAction.ts"],"sourcesContent":["\"use server\"\n\nimport { shopperClient } from \"../../user/clients/enad\"\n\nexport const searchAction = async (query: string, filters: Record<string, any>) => {\n if (!query) return []\n\n try {\n const [data, error] = await shopperClient.products.search(query, filters)\n\n if (error) throw error\n\n console.log(\"res\", data)\n return data\n } catch (err) {\n console.error(\"SearchAction error:\", err)\n throw err\n }\n}\n"],"mappings":";AAEA,SAAS,qBAAqB;AAEvB,MAAM,eAAe,OAAO,OAAe,YAAiC;AACjF,MAAI,CAAC,MAAO,QAAO,CAAC;AAEpB,MAAI;AACF,UAAM,CAAC,MAAM,KAAK,IAAI,MAAM,cAAc,SAAS,OAAO,OAAO,OAAO;AAExE,QAAI,MAAO,OAAM;AAEjB,YAAQ,IAAI,OAAO,IAAI;AACvB,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,MAAM,uBAAuB,GAAG;AACxC,UAAM;AAAA,EACR;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../src/client/search/actions/searchAction.ts"],"sourcesContent":["\"use server\"\n\nimport { shopperClient } from \"../../user/clients/enad\"\n\nexport const searchAction = async (query: string, filters: Record<string, unknown>) => {\n if (!query) return []\n\n try {\n const [data, error] = await shopperClient.products.search(query, filters)\n\n if (error) throw error\n\n console.log(\"res\", data)\n return data\n } catch (err) {\n console.error(\"SearchAction error:\", err)\n throw err\n }\n}\n"],"mappings":";AAEA,SAAS,qBAAqB;AAEvB,MAAM,eAAe,OAAO,OAAe,YAAqC;AACrF,MAAI,CAAC,MAAO,QAAO,CAAC;AAEpB,MAAI;AACF,UAAM,CAAC,MAAM,KAAK,IAAI,MAAM,cAAc,SAAS,OAAO,OAAO,OAAO;AAExE,QAAI,MAAO,OAAM;AAEjB,YAAQ,IAAI,OAAO,IAAI;AACvB,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,MAAM,uBAAuB,GAAG;AACxC,UAAM;AAAA,EACR;AACF;","names":[]}
@@ -0,0 +1,8 @@
1
+ interface SearchBarProps {
2
+ placeholder?: string;
3
+ onSearch?: (query: string) => void;
4
+ defaultValue?: string;
5
+ }
6
+ export declare const SearchBar: ({ placeholder, onSearch, defaultValue }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=search-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../../src/client/search/components/search-bar.tsx"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,GAAI,yCAA4D,cAAc,4CAwBnG,CAAA"}
@@ -1 +1,34 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useIcon } from "../../icons/icon-context";
4
+ import { useState } from "react";
5
+ import { StorefrontButton } from "../../storefront/primitives/button";
6
+ import { Input } from "../../ui/input";
7
+ const SearchBar = ({ placeholder = "Search...", onSearch, defaultValue = "" }) => {
8
+ const SearchIcon = useIcon("search");
9
+ const [value, setValue] = useState(defaultValue);
10
+ const handleSubmit = (e) => {
11
+ e.preventDefault();
12
+ onSearch?.(value);
13
+ };
14
+ return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex items-center gap-2", children: [
15
+ /* @__PURE__ */ jsx(
16
+ Input,
17
+ {
18
+ type: "search",
19
+ value,
20
+ onChange: (e) => setValue(e.target.value),
21
+ placeholder,
22
+ className: "flex-1"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsxs(StorefrontButton, { type: "submit", children: [
26
+ /* @__PURE__ */ jsx(SearchIcon, { "data-icon": "inline-start" }),
27
+ "Search"
28
+ ] })
29
+ ] });
30
+ };
31
+ export {
32
+ SearchBar
33
+ };
1
34
  //# sourceMappingURL=search-bar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../../../src/client/search/components/search-bar.tsx"],"sourcesContent":["\"use client\"\n\nimport { useIcon } from \"../../icons/icon-context\"\nimport { useState } from \"react\"\nimport { StorefrontButton } from \"../../storefront/primitives/button\"\nimport { Input } from \"../../ui/input\"\n\ninterface SearchBarProps {\n placeholder?: string\n onSearch?: (query: string) => void\n defaultValue?: string\n}\n\nexport const SearchBar = ({ placeholder = \"Search...\", onSearch, defaultValue = \"\" }: SearchBarProps) => {\n const SearchIcon = useIcon(\"search\")\n const [value, setValue] = useState(defaultValue)\n\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n onSearch?.(value)\n }\n\n return (\n <form onSubmit={handleSubmit} className=\"flex items-center gap-2\">\n <Input\n type=\"search\"\n value={value}\n onChange={(e) => setValue(e.target.value)}\n placeholder={placeholder}\n className=\"flex-1\"\n />\n <StorefrontButton type=\"submit\">\n <SearchIcon data-icon=\"inline-start\" />\n Search\n </StorefrontButton>\n </form>\n )\n}\n"],"mappings":";AAwBM,cAOA,YAPA;AAtBN,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,aAAa;AAQf,MAAM,YAAY,CAAC,EAAE,cAAc,aAAa,UAAU,eAAe,GAAG,MAAsB;AACvG,QAAM,aAAa,QAAQ,QAAQ;AACnC,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,YAAY;AAE/C,QAAM,eAAe,CAAC,MAAwC;AAC5D,MAAE,eAAe;AACjB,eAAW,KAAK;AAAA,EAClB;AAEA,SACE,qBAAC,UAAK,UAAU,cAAc,WAAU,2BACtC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL;AAAA,QACA,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,QACxC;AAAA,QACA,WAAU;AAAA;AAAA,IACZ;AAAA,IACA,qBAAC,oBAAiB,MAAK,UACrB;AAAA,0BAAC,cAAW,aAAU,gBAAe;AAAA,MAAE;AAAA,OAEzC;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Search
3
+ */
4
+ export declare const useSearch: () => {
5
+ query: string;
6
+ setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
7
+ filters: Record<string, unknown>;
8
+ setFilters: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
9
+ result: import("@enadhq/enad-ts-sdk").SearchResponse<import("@enadhq/enad-ts-sdk").EnadSearchProduct> | undefined;
10
+ loading: boolean;
11
+ error: Error | null;
12
+ performSearch: () => void;
13
+ };
14
+ //# sourceMappingURL=useSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../../src/client/search/hooks/useSearch.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;CAkCrB,CAAA"}
@@ -11,7 +11,7 @@ const useSearch = () => {
11
11
  queryFn: async () => {
12
12
  return searchAction(activeQuery, filters);
13
13
  },
14
- enabled: !!activeQuery,
14
+ enabled: Boolean(activeQuery),
15
15
  // run only when performSearch is called
16
16
  staleTime: 1e3 * 30
17
17
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/client/search/hooks/useSearch.ts"],"sourcesContent":["\"use client\"\n\nimport { useState } from \"react\"\nimport { useQuery } from \"@tanstack/react-query\"\nimport { searchAction } from \"../actions/searchAction\"\n\n/**\n * Search\n */\nexport const useSearch = () => {\n const [query, setQuery] = useState(\"\")\n const [filters, setFilters] = useState<Record<string, any>>({})\n const [activeQuery, setActiveQuery] = useState<string>(\"\") // query actually used for search\n\n const { data, isLoading, isError, error, refetch } = useQuery({\n queryKey: [\"products-search\", activeQuery, filters],\n queryFn: async () => {\n return searchAction(activeQuery, filters)\n },\n enabled: !!activeQuery, // run only when performSearch is called\n staleTime: 1000 * 30,\n })\n\n /**\n * Manually trigger a search using the current `query` and `filters`.\n */\n const performSearch = () => {\n // Only trigger if query has content\n if (query.trim() === \"\") return\n setActiveQuery(query)\n refetch()\n }\n\n return {\n query,\n setQuery,\n filters,\n setFilters,\n result: Array.isArray(data) ? undefined : data,\n loading: isLoading,\n error: isError ? error : null,\n performSearch,\n }\n}\n"],"mappings":";AAEA,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAKtB,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,EAAE;AACrC,QAAM,CAAC,SAAS,UAAU,IAAI,SAA8B,CAAC,CAAC;AAC9D,QAAM,CAAC,aAAa,cAAc,IAAI,SAAiB,EAAE;AAEzD,QAAM,EAAE,MAAM,WAAW,SAAS,OAAO,QAAQ,IAAI,SAAS;AAAA,IAC5D,UAAU,CAAC,mBAAmB,aAAa,OAAO;AAAA,IAClD,SAAS,YAAY;AACnB,aAAO,aAAa,aAAa,OAAO;AAAA,IAC1C;AAAA,IACA,SAAS,CAAC,CAAC;AAAA;AAAA,IACX,WAAW,MAAO;AAAA,EACpB,CAAC;AAKD,QAAM,gBAAgB,MAAM;AAE1B,QAAI,MAAM,KAAK,MAAM,GAAI;AACzB,mBAAe,KAAK;AACpB,YAAQ;AAAA,EACV;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ,MAAM,QAAQ,IAAI,IAAI,SAAY;AAAA,IAC1C,SAAS;AAAA,IACT,OAAO,UAAU,QAAQ;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../src/client/search/hooks/useSearch.ts"],"sourcesContent":["\"use client\"\n\nimport { useState } from \"react\"\nimport { useQuery } from \"@tanstack/react-query\"\nimport { searchAction } from \"../actions/searchAction\"\n\n/**\n * Search\n */\nexport const useSearch = () => {\n const [query, setQuery] = useState(\"\")\n const [filters, setFilters] = useState<Record<string, unknown>>({})\n const [activeQuery, setActiveQuery] = useState<string>(\"\") // query actually used for search\n\n const { data, isLoading, isError, error, refetch } = useQuery({\n queryKey: [\"products-search\", activeQuery, filters],\n queryFn: async () => {\n return searchAction(activeQuery, filters)\n },\n enabled: Boolean(activeQuery), // run only when performSearch is called\n staleTime: 1000 * 30,\n })\n\n /**\n * Manually trigger a search using the current `query` and `filters`.\n */\n const performSearch = () => {\n // Only trigger if query has content\n if (query.trim() === \"\") return\n setActiveQuery(query)\n refetch()\n }\n\n return {\n query,\n setQuery,\n filters,\n setFilters,\n result: Array.isArray(data) ? undefined : data,\n loading: isLoading,\n error: isError ? error : null,\n performSearch,\n }\n}\n"],"mappings":";AAEA,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAKtB,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,EAAE;AACrC,QAAM,CAAC,SAAS,UAAU,IAAI,SAAkC,CAAC,CAAC;AAClE,QAAM,CAAC,aAAa,cAAc,IAAI,SAAiB,EAAE;AAEzD,QAAM,EAAE,MAAM,WAAW,SAAS,OAAO,QAAQ,IAAI,SAAS;AAAA,IAC5D,UAAU,CAAC,mBAAmB,aAAa,OAAO;AAAA,IAClD,SAAS,YAAY;AACnB,aAAO,aAAa,aAAa,OAAO;AAAA,IAC1C;AAAA,IACA,SAAS,QAAQ,WAAW;AAAA;AAAA,IAC5B,WAAW,MAAO;AAAA,EACpB,CAAC;AAKD,QAAM,gBAAgB,MAAM;AAE1B,QAAI,MAAM,KAAK,MAAM,GAAI;AACzB,mBAAe,KAAK;AACpB,YAAQ;AAAA,EACV;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ,MAAM,QAAQ,IAAI,IAAI,SAAY;AAAA,IAC1C,SAAS;AAAA,IACT,OAAO,UAAU,QAAQ;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,2 @@
1
+ export { useSearch } from "./hooks/useSearch";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { useSearch } from "./hooks/useSearch";
2
+ export {
3
+ useSearch
4
+ };
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/client/search/index.ts"],"sourcesContent":["export { useSearch } from \"./hooks/useSearch\"\n"],"mappings":"AAAA,SAAS,iBAAiB;","names":[]}
@@ -0,0 +1,4 @@
1
+ import type { AccordionBlockProps } from "../types";
2
+ declare function AccordionBlock({ items, defaultValue, className }: AccordionBlockProps): import("react/jsx-runtime").JSX.Element;
3
+ export { AccordionBlock, type AccordionBlockProps };
4
+ //# sourceMappingURL=accordion-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-block.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/accordion-block.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CA6B9E;AAED,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ Accordion,
5
+ AccordionContent,
6
+ AccordionItem,
7
+ AccordionTrigger
8
+ } from "../../ui-resolver/accordion";
9
+ import { cn } from "../../ui/utils";
10
+ const variantClasses = {
11
+ standard: "prose prose-sm max-w-none",
12
+ "technical-data": "font-mono text-sm",
13
+ downloads: ""
14
+ };
15
+ function AccordionBlock({ items, defaultValue, className }) {
16
+ return /* @__PURE__ */ jsx(
17
+ Accordion,
18
+ {
19
+ type: "single",
20
+ collapsible: true,
21
+ defaultValue,
22
+ className: cn("w-full", className),
23
+ children: items.map((item, index) => {
24
+ const value = item.id ?? `item-${index}`;
25
+ const variant = item.variant ?? "standard";
26
+ return /* @__PURE__ */ jsxs(AccordionItem, { value, children: [
27
+ /* @__PURE__ */ jsx(AccordionTrigger, { className: "text-base font-medium", children: item.title }),
28
+ /* @__PURE__ */ jsx(AccordionContent, { children: variant === "downloads" && item.children ? item.children : /* @__PURE__ */ jsx(
29
+ "div",
30
+ {
31
+ className: variantClasses[variant],
32
+ dangerouslySetInnerHTML: { __html: item.content }
33
+ }
34
+ ) })
35
+ ] }, value);
36
+ })
37
+ }
38
+ );
39
+ }
40
+ export {
41
+ AccordionBlock
42
+ };
43
+ //# sourceMappingURL=accordion-block.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/storefront/blocks/accordion-block.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"../../ui-resolver/accordion\";\nimport { cn } from \"../../ui/utils\";\nimport type { AccordionBlockProps } from \"../types\";\n\nconst variantClasses: Record<string, string> = {\n standard: \"prose prose-sm max-w-none\",\n \"technical-data\": \"font-mono text-sm\",\n downloads: \"\",\n};\n\nfunction AccordionBlock({ items, defaultValue, className }: AccordionBlockProps) {\n return (\n <Accordion\n type=\"single\"\n collapsible\n defaultValue={defaultValue}\n className={cn(\"w-full\", className)}\n >\n {items.map((item, index) => {\n const value = item.id ?? `item-${index}`;\n const variant = item.variant ?? \"standard\";\n return (\n <AccordionItem key={value} value={value}>\n <AccordionTrigger className=\"text-base font-medium\">{item.title}</AccordionTrigger>\n <AccordionContent>\n {variant === \"downloads\" && item.children ? (\n item.children\n ) : (\n <div\n className={variantClasses[variant]}\n dangerouslySetInnerHTML={{ __html: item.content }}\n />\n )}\n </AccordionContent>\n </AccordionItem>\n );\n })}\n </Accordion>\n );\n}\n\nexport { AccordionBlock, type AccordionBlockProps };\n"],"mappings":";AA8BU,SACE,KADF;AA3BV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AAGnB,MAAM,iBAAyC;AAAA,EAC7C,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,WAAW;AACb;AAEA,SAAS,eAAe,EAAE,OAAO,cAAc,UAAU,GAAwB;AAC/E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAW;AAAA,MACX;AAAA,MACA,WAAW,GAAG,UAAU,SAAS;AAAA,MAEhC,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,cAAM,QAAQ,KAAK,MAAM,QAAQ,KAAK;AACtC,cAAM,UAAU,KAAK,WAAW;AAChC,eACE,qBAAC,iBAA0B,OACzB;AAAA,8BAAC,oBAAiB,WAAU,yBAAyB,eAAK,OAAM;AAAA,UAChE,oBAAC,oBACE,sBAAY,eAAe,KAAK,WAC/B,KAAK,WAEL;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,eAAe,OAAO;AAAA,cACjC,yBAAyB,EAAE,QAAQ,KAAK,QAAQ;AAAA;AAAA,UAClD,GAEJ;AAAA,aAXkB,KAYpB;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -0,0 +1,4 @@
1
+ import type { CardImageWithCaptionProps } from "../types";
2
+ declare function CardImageWithCaption({ image, title, caption, className, }: CardImageWithCaptionProps): import("react/jsx-runtime").JSX.Element;
3
+ export { CardImageWithCaption, type CardImageWithCaptionProps };
4
+ //# sourceMappingURL=card-image-with-caption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-image-with-caption.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/card-image-with-caption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAEzD,iBAAS,oBAAoB,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,2CAsB3B;AAED,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../ui/utils";
3
+ function CardImageWithCaption({
4
+ image,
5
+ title,
6
+ caption,
7
+ className
8
+ }) {
9
+ return /* @__PURE__ */ jsxs("figure", { className: cn("overflow-hidden", className), children: [
10
+ /* @__PURE__ */ jsx("div", { className: "relative aspect-[4/5] bg-muted", children: image?.src ? /* @__PURE__ */ jsx(
11
+ "img",
12
+ {
13
+ src: image.src,
14
+ alt: image.alt ?? title ?? "",
15
+ className: "size-full object-cover"
16
+ }
17
+ ) : /* @__PURE__ */ jsx("div", { className: "size-full bg-muted" }) }),
18
+ (title || caption) && /* @__PURE__ */ jsxs("figcaption", { className: "mt-3", children: [
19
+ title && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: title }),
20
+ caption && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: caption })
21
+ ] })
22
+ ] });
23
+ }
24
+ export {
25
+ CardImageWithCaption
26
+ };
27
+ //# sourceMappingURL=card-image-with-caption.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/storefront/blocks/card-image-with-caption.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"../../ui/utils\"\nimport type { CardImageWithCaptionProps } from \"../types\"\n\nfunction CardImageWithCaption({\n image,\n title,\n caption,\n className,\n}: CardImageWithCaptionProps) {\n return (\n <figure className={cn(\"overflow-hidden\", className)}>\n <div className=\"relative aspect-[4/5] bg-muted\">\n {image?.src ? (\n <img\n src={image.src}\n alt={image.alt ?? title ?? \"\"}\n className=\"size-full object-cover\"\n />\n ) : (\n <div className=\"size-full bg-muted\" />\n )}\n </div>\n {(title || caption) && (\n <figcaption className=\"mt-3\">\n {title && <p className=\"text-sm font-medium text-foreground\">{title}</p>}\n {caption && <p className=\"mt-1 text-sm text-muted-foreground\">{caption}</p>}\n </figcaption>\n )}\n </figure>\n )\n}\n\nexport { CardImageWithCaption, type CardImageWithCaptionProps }\n"],"mappings":"AAcU,cAUF,YAVE;AAbV,SAAS,UAAU;AAGnB,SAAS,qBAAqB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA8B;AAC5B,SACE,qBAAC,YAAO,WAAW,GAAG,mBAAmB,SAAS,GAChD;AAAA,wBAAC,SAAI,WAAU,kCACZ,iBAAO,MACN;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,MAAM;AAAA,QACX,KAAK,MAAM,OAAO,SAAS;AAAA,QAC3B,WAAU;AAAA;AAAA,IACZ,IAEA,oBAAC,SAAI,WAAU,sBAAqB,GAExC;AAAA,KACE,SAAS,YACT,qBAAC,gBAAW,WAAU,QACnB;AAAA,eAAS,oBAAC,OAAE,WAAU,uCAAuC,iBAAM;AAAA,MACnE,WAAW,oBAAC,OAAE,WAAU,sCAAsC,mBAAQ;AAAA,OACzE;AAAA,KAEJ;AAEJ;","names":[]}
@@ -0,0 +1,4 @@
1
+ import type { CardVideoProps } from "../types";
2
+ declare function CardVideo({ thumbnail, videoUrl, title, caption, aspectRatio, className, }: CardVideoProps): import("react/jsx-runtime").JSX.Element;
3
+ export { CardVideo, type CardVideoProps };
4
+ //# sourceMappingURL=card-video.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-video.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/card-video.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAQ9C,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,EACP,WAAoB,EACpB,SAAS,GACV,EAAE,cAAc,2CAyChB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useIcon } from "../../icons/icon-context";
3
+ import { cn } from "../../ui/utils";
4
+ const aspectClasses = {
5
+ "4:3": "aspect-[4/3]",
6
+ "1:1": "aspect-square",
7
+ "16:9": "aspect-video"
8
+ };
9
+ function CardVideo({
10
+ thumbnail,
11
+ videoUrl,
12
+ title,
13
+ caption,
14
+ aspectRatio = "16:9",
15
+ className
16
+ }) {
17
+ const PlayIcon = useIcon("play");
18
+ const card = /* @__PURE__ */ jsxs("div", { className: cn("group overflow-hidden", className), children: [
19
+ /* @__PURE__ */ jsxs("div", { className: cn("relative bg-muted", aspectClasses[aspectRatio]), children: [
20
+ thumbnail?.src ? /* @__PURE__ */ jsx(
21
+ "img",
22
+ {
23
+ src: thumbnail.src,
24
+ alt: thumbnail.alt ?? title ?? "",
25
+ className: "size-full object-cover"
26
+ }
27
+ ) : /* @__PURE__ */ jsx("div", { className: "size-full bg-muted" }),
28
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20 transition-colors group-hover:bg-black/30", children: /* @__PURE__ */ jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-white/90 text-foreground transition-transform group-hover:scale-110", children: /* @__PURE__ */ jsx(PlayIcon, { className: "ml-0.5 size-6 fill-current" }) }) })
29
+ ] }),
30
+ (title || caption) && /* @__PURE__ */ jsxs("div", { className: "mt-3", children: [
31
+ title && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: title }),
32
+ caption && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: caption })
33
+ ] })
34
+ ] });
35
+ if (videoUrl) {
36
+ return /* @__PURE__ */ jsx("a", { href: videoUrl, target: "_blank", rel: "noopener noreferrer", className: "block", children: card });
37
+ }
38
+ return card;
39
+ }
40
+ export {
41
+ CardVideo
42
+ };
43
+ //# sourceMappingURL=card-video.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/storefront/blocks/card-video.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { useIcon } from \"../../icons/icon-context\"\nimport { cn } from \"../../ui/utils\"\nimport type { CardVideoProps } from \"../types\"\n\nconst aspectClasses: Record<string, string> = {\n \"4:3\": \"aspect-[4/3]\",\n \"1:1\": \"aspect-square\",\n \"16:9\": \"aspect-video\",\n}\n\nfunction CardVideo({\n thumbnail,\n videoUrl,\n title,\n caption,\n aspectRatio = \"16:9\",\n className,\n}: CardVideoProps) {\n const PlayIcon = useIcon(\"play\")\n const card = (\n <div className={cn(\"group overflow-hidden\", className)}>\n <div className={cn(\"relative bg-muted\", aspectClasses[aspectRatio])}>\n {thumbnail?.src ? (\n <img\n src={thumbnail.src}\n alt={thumbnail.alt ?? title ?? \"\"}\n className=\"size-full object-cover\"\n />\n ) : (\n <div className=\"size-full bg-muted\" />\n )}\n\n {/* Play button overlay */}\n <div className=\"absolute inset-0 flex items-center justify-center bg-black/20 transition-colors group-hover:bg-black/30\">\n <div className=\"flex size-14 items-center justify-center rounded-full bg-white/90 text-foreground transition-transform group-hover:scale-110\">\n <PlayIcon className=\"ml-0.5 size-6 fill-current\" />\n </div>\n </div>\n </div>\n\n {(title || caption) && (\n <div className=\"mt-3\">\n {title && <p className=\"text-sm font-medium text-foreground\">{title}</p>}\n {caption && <p className=\"mt-1 text-sm text-muted-foreground\">{caption}</p>}\n </div>\n )}\n </div>\n )\n\n if (videoUrl) {\n return (\n <a href={videoUrl} target=\"_blank\" rel=\"noopener noreferrer\" className=\"block\">\n {card}\n </a>\n )\n }\n\n return card\n}\n\nexport { CardVideo, type CardVideoProps }\n"],"mappings":"AAsBM,SAEI,KAFJ;AArBN,SAAS,eAAe;AACxB,SAAS,UAAU;AAGnB,MAAM,gBAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,SAAS,UAAU;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AACF,GAAmB;AACjB,QAAM,WAAW,QAAQ,MAAM;AAC/B,QAAM,OACJ,qBAAC,SAAI,WAAW,GAAG,yBAAyB,SAAS,GACnD;AAAA,yBAAC,SAAI,WAAW,GAAG,qBAAqB,cAAc,WAAW,CAAC,GAC/D;AAAA,iBAAW,MACV;AAAA,QAAC;AAAA;AAAA,UACC,KAAK,UAAU;AAAA,UACf,KAAK,UAAU,OAAO,SAAS;AAAA,UAC/B,WAAU;AAAA;AAAA,MACZ,IAEA,oBAAC,SAAI,WAAU,sBAAqB;AAAA,MAItC,oBAAC,SAAI,WAAU,2GACb,8BAAC,SAAI,WAAU,gIACb,8BAAC,YAAS,WAAU,8BAA6B,GACnD,GACF;AAAA,OACF;AAAA,KAEE,SAAS,YACT,qBAAC,SAAI,WAAU,QACZ;AAAA,eAAS,oBAAC,OAAE,WAAU,uCAAuC,iBAAM;AAAA,MACnE,WAAW,oBAAC,OAAE,WAAU,sCAAsC,mBAAQ;AAAA,OACzE;AAAA,KAEJ;AAGF,MAAI,UAAU;AACZ,WACE,oBAAC,OAAE,MAAM,UAAU,QAAO,UAAS,KAAI,uBAAsB,WAAU,SACpE,gBACH;AAAA,EAEJ;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,4 @@
1
+ import { type ContentWithGalleryProps } from "../types";
2
+ declare function ContentWithGallery({ images, preheader, heading, body, productCards, layout, colorTheme, className, }: ContentWithGalleryProps): import("react/jsx-runtime").JSX.Element;
3
+ export { ContentWithGallery, type ContentWithGalleryProps };
4
+ //# sourceMappingURL=content-with-gallery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-with-gallery.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/content-with-gallery.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkC,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAEvF,iBAAS,kBAAkB,CAAC,EAC1B,MAAW,EACX,SAAS,EACT,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,MAAsB,EACtB,UAAU,EACV,SAAS,GACV,EAAE,uBAAuB,2CA4DzB;AAED,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,CAAA"}
@@ -0,0 +1,48 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "../../ui/utils";
4
+ import { colorThemeClasses, isThemeDark } from "../types";
5
+ function ContentWithGallery({
6
+ images = [],
7
+ preheader,
8
+ heading,
9
+ body,
10
+ productCards,
11
+ layout = "image-above",
12
+ colorTheme,
13
+ className
14
+ }) {
15
+ const dark = isThemeDark(colorTheme);
16
+ const themeClasses = colorThemeClasses(colorTheme);
17
+ const textBlock = /* @__PURE__ */ jsxs("div", { children: [
18
+ preheader && /* @__PURE__ */ jsx("p", { className: cn("mb-2 text-sm uppercase tracking-widest", dark ? "text-white/70" : "text-muted-foreground"), children: preheader }),
19
+ heading && /* @__PURE__ */ jsx(
20
+ "h2",
21
+ {
22
+ className: cn("text-2xl font-heading md:text-3xl", dark ? "text-white" : "text-foreground"),
23
+ style: { fontWeight: "var(--enad-heading-weight)", letterSpacing: "var(--enad-heading-tracking)", textTransform: "var(--enad-heading-transform)" },
24
+ children: heading
25
+ }
26
+ ),
27
+ body && /* @__PURE__ */ jsx("p", { className: cn("mt-4 max-w-2xl text-base leading-relaxed", dark ? "text-white/80" : "text-muted-foreground"), children: body })
28
+ ] });
29
+ const imageGrid = images.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2 md:grid-cols-3", children: images.map((img, i) => /* @__PURE__ */ jsx("div", { className: "relative aspect-square bg-muted", children: /* @__PURE__ */ jsx("img", { src: img.src, alt: img.alt ?? "", className: "size-full object-cover" }) }, i)) });
30
+ if (layout === "side-by-side") {
31
+ return /* @__PURE__ */ jsx("section", { className: cn("px-4 py-12 md:px-8", themeClasses, className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto grid max-w-7xl gap-8 lg:grid-cols-2 lg:items-center", children: [
32
+ imageGrid,
33
+ /* @__PURE__ */ jsxs("div", { children: [
34
+ textBlock,
35
+ productCards && /* @__PURE__ */ jsx("div", { className: "mt-8", children: productCards })
36
+ ] })
37
+ ] }) });
38
+ }
39
+ return /* @__PURE__ */ jsx("section", { className: cn("px-4 py-12 md:px-8", themeClasses, className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-7xl", children: [
40
+ textBlock,
41
+ imageGrid && /* @__PURE__ */ jsx("div", { className: "mt-8", children: imageGrid }),
42
+ productCards && /* @__PURE__ */ jsx("div", { className: "mt-8", children: productCards })
43
+ ] }) });
44
+ }
45
+ export {
46
+ ContentWithGallery
47
+ };
48
+ //# sourceMappingURL=content-with-gallery.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/storefront/blocks/content-with-gallery.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../ui/utils\"\nimport { colorThemeClasses, isThemeDark, type ContentWithGalleryProps } from \"../types\"\n\nfunction ContentWithGallery({\n images = [],\n preheader,\n heading,\n body,\n productCards,\n layout = \"image-above\",\n colorTheme,\n className,\n}: ContentWithGalleryProps) {\n const dark = isThemeDark(colorTheme)\n const themeClasses = colorThemeClasses(colorTheme)\n\n const textBlock = (\n <div>\n {preheader && (\n <p className={cn(\"mb-2 text-sm uppercase tracking-widest\", dark ? \"text-white/70\" : \"text-muted-foreground\")}>\n {preheader}\n </p>\n )}\n {heading && (\n <h2\n className={cn(\"text-2xl font-heading md:text-3xl\", dark ? \"text-white\" : \"text-foreground\")}\n style={{ fontWeight: \"var(--enad-heading-weight)\", letterSpacing: \"var(--enad-heading-tracking)\", textTransform: \"var(--enad-heading-transform)\" } as unknown as React.CSSProperties}\n >\n {heading}\n </h2>\n )}\n {body && (\n <p className={cn(\"mt-4 max-w-2xl text-base leading-relaxed\", dark ? \"text-white/80\" : \"text-muted-foreground\")}>\n {body}\n </p>\n )}\n </div>\n )\n\n const imageGrid = images.length > 0 && (\n <div className=\"grid grid-cols-2 gap-2 md:grid-cols-3\">\n {images.map((img, i) => (\n <div key={i} className=\"relative aspect-square bg-muted\">\n <img src={img.src} alt={img.alt ?? \"\"} className=\"size-full object-cover\" />\n </div>\n ))}\n </div>\n )\n\n if (layout === \"side-by-side\") {\n return (\n <section className={cn(\"px-4 py-12 md:px-8\", themeClasses, className)}>\n <div className=\"mx-auto grid max-w-7xl gap-8 lg:grid-cols-2 lg:items-center\">\n {imageGrid}\n <div>\n {textBlock}\n {productCards && <div className=\"mt-8\">{productCards}</div>}\n </div>\n </div>\n </section>\n )\n }\n\n return (\n <section className={cn(\"px-4 py-12 md:px-8\", themeClasses, className)}>\n <div className=\"mx-auto max-w-7xl\">\n {textBlock}\n {imageGrid && <div className=\"mt-8\">{imageGrid}</div>}\n {productCards && <div className=\"mt-8\">{productCards}</div>}\n </div>\n </section>\n )\n}\n\nexport { ContentWithGallery, type ContentWithGalleryProps }\n"],"mappings":";AAoBI,SAEI,KAFJ;AAjBJ,SAAS,UAAU;AACnB,SAAS,mBAAmB,mBAAiD;AAE7E,SAAS,mBAAmB;AAAA,EAC1B,SAAS,CAAC;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AACF,GAA4B;AAC1B,QAAM,OAAO,YAAY,UAAU;AACnC,QAAM,eAAe,kBAAkB,UAAU;AAEjD,QAAM,YACJ,qBAAC,SACE;AAAA,iBACC,oBAAC,OAAE,WAAW,GAAG,0CAA0C,OAAO,kBAAkB,uBAAuB,GACxG,qBACH;AAAA,IAED,WACC;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,qCAAqC,OAAO,eAAe,iBAAiB;AAAA,QAC1F,OAAO,EAAE,YAAY,8BAA8B,eAAe,gCAAgC,eAAe,gCAAgC;AAAA,QAEhJ;AAAA;AAAA,IACH;AAAA,IAED,QACC,oBAAC,OAAE,WAAW,GAAG,4CAA4C,OAAO,kBAAkB,uBAAuB,GAC1G,gBACH;AAAA,KAEJ;AAGF,QAAM,YAAY,OAAO,SAAS,KAChC,oBAAC,SAAI,WAAU,yCACZ,iBAAO,IAAI,CAAC,KAAK,MAChB,oBAAC,SAAY,WAAU,mCACrB,8BAAC,SAAI,KAAK,IAAI,KAAK,KAAK,IAAI,OAAO,IAAI,WAAU,0BAAyB,KADlE,CAEV,CACD,GACH;AAGF,MAAI,WAAW,gBAAgB;AAC7B,WACE,oBAAC,aAAQ,WAAW,GAAG,sBAAsB,cAAc,SAAS,GAClE,+BAAC,SAAI,WAAU,+DACZ;AAAA;AAAA,MACD,qBAAC,SACE;AAAA;AAAA,QACA,gBAAgB,oBAAC,SAAI,WAAU,QAAQ,wBAAa;AAAA,SACvD;AAAA,OACF,GACF;AAAA,EAEJ;AAEA,SACE,oBAAC,aAAQ,WAAW,GAAG,sBAAsB,cAAc,SAAS,GAClE,+BAAC,SAAI,WAAU,qBACZ;AAAA;AAAA,IACA,aAAa,oBAAC,SAAI,WAAU,QAAQ,qBAAU;AAAA,IAC9C,gBAAgB,oBAAC,SAAI,WAAU,QAAQ,wBAAa;AAAA,KACvD,GACF;AAEJ;","names":[]}
@@ -0,0 +1,4 @@
1
+ import type { ContentWithImageProductDataProps } from "../types";
2
+ declare function ContentWithImageProductData({ image, preheader, heading, body, usps, buttonLabel, buttonHref, productCards, className, }: ContentWithImageProductDataProps): import("react/jsx-runtime").JSX.Element;
3
+ export { ContentWithImageProductData, type ContentWithImageProductDataProps };
4
+ //# sourceMappingURL=content-with-image-product-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-with-image-product-data.d.ts","sourceRoot":"","sources":["../../../../src/client/storefront/blocks/content-with-image-product-data.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAA;AAEhE,iBAAS,2BAA2B,CAAC,EACnC,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAS,EACT,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,GACV,EAAE,gCAAgC,2CAgElC;AAED,OAAO,EAAE,2BAA2B,EAAE,KAAK,gCAAgC,EAAE,CAAA"}