@se-faststore/components 0.0.0-stage → 0.12.1

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 (514) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -2
  3. package/dist/b2b/SeActionHubBulletinBoard/index.d.ts +2 -0
  4. package/dist/b2b/SeActionHubBulletinBoard/index.d.ts.map +1 -0
  5. package/dist/b2b/SeActionHubBulletinBoard/index.js +18 -0
  6. package/dist/b2b/SeActionHubBulletinBoard/index.js.map +1 -0
  7. package/dist/b2b/SeActionHubBulletinBoard/types.d.ts +24 -0
  8. package/dist/b2b/SeActionHubBulletinBoard/types.d.ts.map +1 -0
  9. package/dist/b2b/SeActionHubBulletinBoard/types.js +3 -0
  10. package/dist/b2b/SeActionHubBulletinBoard/types.js.map +1 -0
  11. package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.d.ts +24 -0
  12. package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.d.ts.map +1 -0
  13. package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.js +28 -0
  14. package/dist/b2b/SeAddToPurchaseList/addToPurchaseListUtils.js.map +1 -0
  15. package/dist/b2b/SeAddToPurchaseList/index.d.ts +3 -0
  16. package/dist/b2b/SeAddToPurchaseList/index.d.ts.map +1 -0
  17. package/dist/b2b/SeAddToPurchaseList/index.js +19 -0
  18. package/dist/b2b/SeAddToPurchaseList/index.js.map +1 -0
  19. package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.d.ts +29 -0
  20. package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.d.ts.map +1 -0
  21. package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.js +86 -0
  22. package/dist/b2b/SeAddToPurchaseList/useAddToPurchaseList.js.map +1 -0
  23. package/dist/b2b/SeAddressSelector/index.d.ts +2 -0
  24. package/dist/b2b/SeAddressSelector/index.d.ts.map +1 -0
  25. package/dist/b2b/SeAddressSelector/index.js +18 -0
  26. package/dist/b2b/SeAddressSelector/index.js.map +1 -0
  27. package/dist/b2b/SeAddressSelector/useAddressSelector.d.ts +34 -0
  28. package/dist/b2b/SeAddressSelector/useAddressSelector.d.ts.map +1 -0
  29. package/dist/b2b/SeAddressSelector/useAddressSelector.js +127 -0
  30. package/dist/b2b/SeAddressSelector/useAddressSelector.js.map +1 -0
  31. package/dist/b2b/SeCategoryBanners/index.d.ts +2 -0
  32. package/dist/b2b/SeCategoryBanners/index.d.ts.map +1 -0
  33. package/dist/b2b/SeCategoryBanners/index.js +18 -0
  34. package/dist/b2b/SeCategoryBanners/index.js.map +1 -0
  35. package/dist/b2b/SeCategoryBanners/types.d.ts +9 -0
  36. package/dist/b2b/SeCategoryBanners/types.d.ts.map +1 -0
  37. package/dist/b2b/SeCategoryBanners/types.js +3 -0
  38. package/dist/b2b/SeCategoryBanners/types.js.map +1 -0
  39. package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.d.ts +114 -0
  40. package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.d.ts.map +1 -0
  41. package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.js +85 -0
  42. package/dist/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.js.map +1 -0
  43. package/dist/b2b/SeCheckStockAndPricing/index.d.ts +4 -0
  44. package/dist/b2b/SeCheckStockAndPricing/index.d.ts.map +1 -0
  45. package/dist/b2b/SeCheckStockAndPricing/index.js +20 -0
  46. package/dist/b2b/SeCheckStockAndPricing/index.js.map +1 -0
  47. package/dist/b2b/SeCheckStockAndPricing/stockCsv.d.ts +22 -0
  48. package/dist/b2b/SeCheckStockAndPricing/stockCsv.d.ts.map +1 -0
  49. package/dist/b2b/SeCheckStockAndPricing/stockCsv.js +79 -0
  50. package/dist/b2b/SeCheckStockAndPricing/stockCsv.js.map +1 -0
  51. package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.d.ts +54 -0
  52. package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.d.ts.map +1 -0
  53. package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.js +209 -0
  54. package/dist/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.js.map +1 -0
  55. package/dist/b2b/SeCustomCrossSellingShelf/index.d.ts +2 -0
  56. package/dist/b2b/SeCustomCrossSellingShelf/index.d.ts.map +1 -0
  57. package/dist/b2b/SeCustomCrossSellingShelf/index.js +18 -0
  58. package/dist/b2b/SeCustomCrossSellingShelf/index.js.map +1 -0
  59. package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.d.ts +19 -0
  60. package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.d.ts.map +1 -0
  61. package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.js +21 -0
  62. package/dist/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.js.map +1 -0
  63. package/dist/b2b/SeCustomProductCard/index.d.ts +3 -0
  64. package/dist/b2b/SeCustomProductCard/index.d.ts.map +1 -0
  65. package/dist/b2b/SeCustomProductCard/index.js +19 -0
  66. package/dist/b2b/SeCustomProductCard/index.js.map +1 -0
  67. package/dist/b2b/SeCustomProductCard/types.d.ts +30 -0
  68. package/dist/b2b/SeCustomProductCard/types.d.ts.map +1 -0
  69. package/dist/b2b/SeCustomProductCard/types.js +3 -0
  70. package/dist/b2b/SeCustomProductCard/types.js.map +1 -0
  71. package/dist/b2b/SeCustomProductCard/useB2bProductCard.d.ts +21 -0
  72. package/dist/b2b/SeCustomProductCard/useB2bProductCard.d.ts.map +1 -0
  73. package/dist/b2b/SeCustomProductCard/useB2bProductCard.js +33 -0
  74. package/dist/b2b/SeCustomProductCard/useB2bProductCard.js.map +1 -0
  75. package/dist/b2b/SeCustomShelfProduct/index.d.ts +3 -0
  76. package/dist/b2b/SeCustomShelfProduct/index.d.ts.map +1 -0
  77. package/dist/b2b/SeCustomShelfProduct/index.js +19 -0
  78. package/dist/b2b/SeCustomShelfProduct/index.js.map +1 -0
  79. package/dist/b2b/SeCustomShelfProduct/types.d.ts +6 -0
  80. package/dist/b2b/SeCustomShelfProduct/types.d.ts.map +1 -0
  81. package/dist/b2b/SeCustomShelfProduct/types.js +3 -0
  82. package/dist/b2b/SeCustomShelfProduct/types.js.map +1 -0
  83. package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.d.ts +15 -0
  84. package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.d.ts.map +1 -0
  85. package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.js +19 -0
  86. package/dist/b2b/SeCustomShelfProduct/useB2bShelfProducts.js.map +1 -0
  87. package/dist/b2b/SeDashboards/index.d.ts +2 -0
  88. package/dist/b2b/SeDashboards/index.d.ts.map +1 -0
  89. package/dist/b2b/SeDashboards/index.js +18 -0
  90. package/dist/b2b/SeDashboards/index.js.map +1 -0
  91. package/dist/b2b/SeDashboards/useDashboards.d.ts +51 -0
  92. package/dist/b2b/SeDashboards/useDashboards.d.ts.map +1 -0
  93. package/dist/b2b/SeDashboards/useDashboards.js +172 -0
  94. package/dist/b2b/SeDashboards/useDashboards.js.map +1 -0
  95. package/dist/b2b/SeFooterB2B/index.d.ts +3 -0
  96. package/dist/b2b/SeFooterB2B/index.d.ts.map +1 -0
  97. package/dist/b2b/SeFooterB2B/index.js +19 -0
  98. package/dist/b2b/SeFooterB2B/index.js.map +1 -0
  99. package/dist/b2b/SeFooterB2B/types.d.ts +39 -0
  100. package/dist/b2b/SeFooterB2B/types.d.ts.map +1 -0
  101. package/dist/b2b/SeFooterB2B/types.js +3 -0
  102. package/dist/b2b/SeFooterB2B/types.js.map +1 -0
  103. package/dist/b2b/SeFooterB2B/useNewsletterSubscription.d.ts +16 -0
  104. package/dist/b2b/SeFooterB2B/useNewsletterSubscription.d.ts.map +1 -0
  105. package/dist/b2b/SeFooterB2B/useNewsletterSubscription.js +34 -0
  106. package/dist/b2b/SeFooterB2B/useNewsletterSubscription.js.map +1 -0
  107. package/dist/b2b/SeProductGalleryB2B/index.d.ts +2 -0
  108. package/dist/b2b/SeProductGalleryB2B/index.d.ts.map +1 -0
  109. package/dist/b2b/SeProductGalleryB2B/index.js +18 -0
  110. package/dist/b2b/SeProductGalleryB2B/index.js.map +1 -0
  111. package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.d.ts +123 -0
  112. package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.d.ts.map +1 -0
  113. package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.js +159 -0
  114. package/dist/b2b/SeProductGalleryB2B/useProductGalleryB2B.js.map +1 -0
  115. package/dist/b2b/SePurchaseLists/index.d.ts +3 -0
  116. package/dist/b2b/SePurchaseLists/index.d.ts.map +1 -0
  117. package/dist/b2b/SePurchaseLists/index.js +19 -0
  118. package/dist/b2b/SePurchaseLists/index.js.map +1 -0
  119. package/dist/b2b/SePurchaseLists/purchaseListsUtils.d.ts +103 -0
  120. package/dist/b2b/SePurchaseLists/purchaseListsUtils.d.ts.map +1 -0
  121. package/dist/b2b/SePurchaseLists/purchaseListsUtils.js +69 -0
  122. package/dist/b2b/SePurchaseLists/purchaseListsUtils.js.map +1 -0
  123. package/dist/b2b/SePurchaseLists/usePurchaseLists.d.ts +57 -0
  124. package/dist/b2b/SePurchaseLists/usePurchaseLists.d.ts.map +1 -0
  125. package/dist/b2b/SePurchaseLists/usePurchaseLists.js +292 -0
  126. package/dist/b2b/SePurchaseLists/usePurchaseLists.js.map +1 -0
  127. package/dist/b2b/SeRecentOrdersSpendOverview/index.d.ts +3 -0
  128. package/dist/b2b/SeRecentOrdersSpendOverview/index.d.ts.map +1 -0
  129. package/dist/b2b/SeRecentOrdersSpendOverview/index.js +19 -0
  130. package/dist/b2b/SeRecentOrdersSpendOverview/index.js.map +1 -0
  131. package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.d.ts +58 -0
  132. package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.d.ts.map +1 -0
  133. package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.js +133 -0
  134. package/dist/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.js.map +1 -0
  135. package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.d.ts +21 -0
  136. package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.d.ts.map +1 -0
  137. package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.js +134 -0
  138. package/dist/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.js.map +1 -0
  139. package/dist/b2b/SeRequestToBuy/index.d.ts +2 -0
  140. package/dist/b2b/SeRequestToBuy/index.d.ts.map +1 -0
  141. package/dist/b2b/SeRequestToBuy/index.js +18 -0
  142. package/dist/b2b/SeRequestToBuy/index.js.map +1 -0
  143. package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.d.ts +23 -0
  144. package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.d.ts.map +1 -0
  145. package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.js +64 -0
  146. package/dist/b2b/SeRequestToBuy/useRequestToBuyForm.js.map +1 -0
  147. package/dist/b2b/SeWelcomeBackMessage/index.d.ts +2 -0
  148. package/dist/b2b/SeWelcomeBackMessage/index.d.ts.map +1 -0
  149. package/dist/b2b/SeWelcomeBackMessage/index.js +18 -0
  150. package/dist/b2b/SeWelcomeBackMessage/index.js.map +1 -0
  151. package/dist/b2b/SeWelcomeBackMessage/useB2bSession.d.ts +11 -0
  152. package/dist/b2b/SeWelcomeBackMessage/useB2bSession.d.ts.map +1 -0
  153. package/dist/b2b/SeWelcomeBackMessage/useB2bSession.js +15 -0
  154. package/dist/b2b/SeWelcomeBackMessage/useB2bSession.js.map +1 -0
  155. package/dist/b2b/index.d.ts +15 -0
  156. package/dist/b2b/index.d.ts.map +1 -0
  157. package/dist/b2b/index.js +31 -0
  158. package/dist/b2b/index.js.map +1 -0
  159. package/dist/b2c/SeAssemblySet/assemblySetUtils.d.ts +41 -0
  160. package/dist/b2c/SeAssemblySet/assemblySetUtils.d.ts.map +1 -0
  161. package/dist/b2c/SeAssemblySet/assemblySetUtils.js +57 -0
  162. package/dist/b2c/SeAssemblySet/assemblySetUtils.js.map +1 -0
  163. package/dist/b2c/SeAssemblySet/index.d.ts +4 -0
  164. package/dist/b2c/SeAssemblySet/index.d.ts.map +1 -0
  165. package/dist/b2c/SeAssemblySet/index.js +20 -0
  166. package/dist/b2c/SeAssemblySet/index.js.map +1 -0
  167. package/dist/b2c/SeAssemblySet/types.d.ts +52 -0
  168. package/dist/b2c/SeAssemblySet/types.d.ts.map +1 -0
  169. package/dist/b2c/SeAssemblySet/types.js +3 -0
  170. package/dist/b2c/SeAssemblySet/types.js.map +1 -0
  171. package/dist/b2c/SeAssemblySet/useAssemblySet.d.ts +38 -0
  172. package/dist/b2c/SeAssemblySet/useAssemblySet.d.ts.map +1 -0
  173. package/dist/b2c/SeAssemblySet/useAssemblySet.js +134 -0
  174. package/dist/b2c/SeAssemblySet/useAssemblySet.js.map +1 -0
  175. package/dist/b2c/SeBanner/buildResponsiveImage.d.ts +18 -0
  176. package/dist/b2c/SeBanner/buildResponsiveImage.d.ts.map +1 -0
  177. package/dist/b2c/SeBanner/buildResponsiveImage.js +32 -0
  178. package/dist/b2c/SeBanner/buildResponsiveImage.js.map +1 -0
  179. package/dist/b2c/SeBanner/getImageUrl.d.ts +3 -0
  180. package/dist/b2c/SeBanner/getImageUrl.d.ts.map +1 -0
  181. package/dist/b2c/SeBanner/getImageUrl.js +7 -0
  182. package/dist/b2c/SeBanner/getImageUrl.js.map +1 -0
  183. package/dist/b2c/SeBanner/index.d.ts +8 -0
  184. package/dist/b2c/SeBanner/index.d.ts.map +1 -0
  185. package/dist/b2c/SeBanner/index.js +24 -0
  186. package/dist/b2c/SeBanner/index.js.map +1 -0
  187. package/dist/b2c/SeBanner/types.d.ts +34 -0
  188. package/dist/b2c/SeBanner/types.d.ts.map +1 -0
  189. package/dist/b2c/SeBanner/types.js +27 -0
  190. package/dist/b2c/SeBanner/types.js.map +1 -0
  191. package/dist/b2c/SeBanner/useBannerContext.d.ts +4 -0
  192. package/dist/b2c/SeBanner/useBannerContext.d.ts.map +1 -0
  193. package/dist/b2c/SeBanner/useBannerContext.js +14 -0
  194. package/dist/b2c/SeBanner/useBannerContext.js.map +1 -0
  195. package/dist/b2c/SeBanner/useBannerStyles.d.ts +21 -0
  196. package/dist/b2c/SeBanner/useBannerStyles.d.ts.map +1 -0
  197. package/dist/b2c/SeBanner/useBannerStyles.js +87 -0
  198. package/dist/b2c/SeBanner/useBannerStyles.js.map +1 -0
  199. package/dist/b2c/SeBanner/useIsMobile.d.ts +4 -0
  200. package/dist/b2c/SeBanner/useIsMobile.d.ts.map +1 -0
  201. package/dist/b2c/SeBanner/useIsMobile.js +23 -0
  202. package/dist/b2c/SeBanner/useIsMobile.js.map +1 -0
  203. package/dist/b2c/SeBanner/useSanitizedHtml.d.ts +13 -0
  204. package/dist/b2c/SeBanner/useSanitizedHtml.d.ts.map +1 -0
  205. package/dist/b2c/SeBanner/useSanitizedHtml.js +45 -0
  206. package/dist/b2c/SeBanner/useSanitizedHtml.js.map +1 -0
  207. package/dist/b2c/SeBannerCarousel/index.d.ts +5 -0
  208. package/dist/b2c/SeBannerCarousel/index.d.ts.map +1 -0
  209. package/dist/b2c/SeBannerCarousel/index.js +21 -0
  210. package/dist/b2c/SeBannerCarousel/index.js.map +1 -0
  211. package/dist/b2c/SeBannerCarousel/types.d.ts +17 -0
  212. package/dist/b2c/SeBannerCarousel/types.d.ts.map +1 -0
  213. package/dist/b2c/SeBannerCarousel/types.js +3 -0
  214. package/dist/b2c/SeBannerCarousel/types.js.map +1 -0
  215. package/dist/b2c/SeBannerCarousel/useCarousel.d.ts +30 -0
  216. package/dist/b2c/SeBannerCarousel/useCarousel.d.ts.map +1 -0
  217. package/dist/b2c/SeBannerCarousel/useCarousel.js +53 -0
  218. package/dist/b2c/SeBannerCarousel/useCarousel.js.map +1 -0
  219. package/dist/b2c/SeBannerCarousel/useCarouselContext.d.ts +4 -0
  220. package/dist/b2c/SeBannerCarousel/useCarouselContext.d.ts.map +1 -0
  221. package/dist/b2c/SeBannerCarousel/useCarouselContext.js +14 -0
  222. package/dist/b2c/SeBannerCarousel/useCarouselContext.js.map +1 -0
  223. package/dist/b2c/SeBannerCarousel/useSwipeNavigation.d.ts +19 -0
  224. package/dist/b2c/SeBannerCarousel/useSwipeNavigation.d.ts.map +1 -0
  225. package/dist/b2c/SeBannerCarousel/useSwipeNavigation.js +37 -0
  226. package/dist/b2c/SeBannerCarousel/useSwipeNavigation.js.map +1 -0
  227. package/dist/b2c/SeCardsCarousel/index.d.ts +3 -0
  228. package/dist/b2c/SeCardsCarousel/index.d.ts.map +1 -0
  229. package/dist/b2c/SeCardsCarousel/index.js +19 -0
  230. package/dist/b2c/SeCardsCarousel/index.js.map +1 -0
  231. package/dist/b2c/SeCardsCarousel/types.d.ts +8 -0
  232. package/dist/b2c/SeCardsCarousel/types.d.ts.map +1 -0
  233. package/dist/b2c/SeCardsCarousel/types.js +3 -0
  234. package/dist/b2c/SeCardsCarousel/types.js.map +1 -0
  235. package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.d.ts +10 -0
  236. package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.d.ts.map +1 -0
  237. package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.js +13 -0
  238. package/dist/b2c/SeCardsCarousel/useCardsCarouselLayout.js.map +1 -0
  239. package/dist/b2c/SeEditorialSplit/index.d.ts +2 -0
  240. package/dist/b2c/SeEditorialSplit/index.d.ts.map +1 -0
  241. package/dist/b2c/SeEditorialSplit/index.js +18 -0
  242. package/dist/b2c/SeEditorialSplit/index.js.map +1 -0
  243. package/dist/b2c/SeEditorialSplit/types.d.ts +13 -0
  244. package/dist/b2c/SeEditorialSplit/types.d.ts.map +1 -0
  245. package/dist/b2c/SeEditorialSplit/types.js +3 -0
  246. package/dist/b2c/SeEditorialSplit/types.js.map +1 -0
  247. package/dist/b2c/SeFooter/index.d.ts +3 -0
  248. package/dist/b2c/SeFooter/index.d.ts.map +1 -0
  249. package/dist/b2c/SeFooter/index.js +19 -0
  250. package/dist/b2c/SeFooter/index.js.map +1 -0
  251. package/dist/b2c/SeFooter/types.d.ts +52 -0
  252. package/dist/b2c/SeFooter/types.d.ts.map +1 -0
  253. package/dist/b2c/SeFooter/types.js +3 -0
  254. package/dist/b2c/SeFooter/types.js.map +1 -0
  255. package/dist/b2c/SeFooter/utils.d.ts +6 -0
  256. package/dist/b2c/SeFooter/utils.d.ts.map +1 -0
  257. package/dist/b2c/SeFooter/utils.js +11 -0
  258. package/dist/b2c/SeFooter/utils.js.map +1 -0
  259. package/dist/b2c/SeGridContent/index.d.ts +2 -0
  260. package/dist/b2c/SeGridContent/index.d.ts.map +1 -0
  261. package/dist/b2c/SeGridContent/index.js +18 -0
  262. package/dist/b2c/SeGridContent/index.js.map +1 -0
  263. package/dist/b2c/SeGridContent/types.d.ts +20 -0
  264. package/dist/b2c/SeGridContent/types.d.ts.map +1 -0
  265. package/dist/b2c/SeGridContent/types.js +3 -0
  266. package/dist/b2c/SeGridContent/types.js.map +1 -0
  267. package/dist/b2c/SeHeader/index.d.ts +2 -0
  268. package/dist/b2c/SeHeader/index.d.ts.map +1 -0
  269. package/dist/b2c/SeHeader/index.js +18 -0
  270. package/dist/b2c/SeHeader/index.js.map +1 -0
  271. package/dist/b2c/SeHeader/types.d.ts +35 -0
  272. package/dist/b2c/SeHeader/types.d.ts.map +1 -0
  273. package/dist/b2c/SeHeader/types.js +3 -0
  274. package/dist/b2c/SeHeader/types.js.map +1 -0
  275. package/dist/b2c/SeHeroSection/index.d.ts +2 -0
  276. package/dist/b2c/SeHeroSection/index.d.ts.map +1 -0
  277. package/dist/b2c/SeHeroSection/index.js +18 -0
  278. package/dist/b2c/SeHeroSection/index.js.map +1 -0
  279. package/dist/b2c/SeHeroSection/types.d.ts +10 -0
  280. package/dist/b2c/SeHeroSection/types.d.ts.map +1 -0
  281. package/dist/b2c/SeHeroSection/types.js +3 -0
  282. package/dist/b2c/SeHeroSection/types.js.map +1 -0
  283. package/dist/b2c/SeImageTiles/index.d.ts +2 -0
  284. package/dist/b2c/SeImageTiles/index.d.ts.map +1 -0
  285. package/dist/b2c/SeImageTiles/index.js +18 -0
  286. package/dist/b2c/SeImageTiles/index.js.map +1 -0
  287. package/dist/b2c/SeImageTiles/types.d.ts +13 -0
  288. package/dist/b2c/SeImageTiles/types.d.ts.map +1 -0
  289. package/dist/b2c/SeImageTiles/types.js +3 -0
  290. package/dist/b2c/SeImageTiles/types.js.map +1 -0
  291. package/dist/b2c/SeLearnMoreSection/index.d.ts +2 -0
  292. package/dist/b2c/SeLearnMoreSection/index.d.ts.map +1 -0
  293. package/dist/b2c/SeLearnMoreSection/index.js +18 -0
  294. package/dist/b2c/SeLearnMoreSection/index.js.map +1 -0
  295. package/dist/b2c/SeLearnMoreSection/types.d.ts +10 -0
  296. package/dist/b2c/SeLearnMoreSection/types.d.ts.map +1 -0
  297. package/dist/b2c/SeLearnMoreSection/types.js +3 -0
  298. package/dist/b2c/SeLearnMoreSection/types.js.map +1 -0
  299. package/dist/b2c/SeMegaMenu/index.d.ts +6 -0
  300. package/dist/b2c/SeMegaMenu/index.d.ts.map +1 -0
  301. package/dist/b2c/SeMegaMenu/index.js +22 -0
  302. package/dist/b2c/SeMegaMenu/index.js.map +1 -0
  303. package/dist/b2c/SeMegaMenu/types.d.ts +27 -0
  304. package/dist/b2c/SeMegaMenu/types.d.ts.map +1 -0
  305. package/dist/b2c/SeMegaMenu/types.js +3 -0
  306. package/dist/b2c/SeMegaMenu/types.js.map +1 -0
  307. package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.d.ts +6 -0
  308. package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.d.ts.map +1 -0
  309. package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.js +21 -0
  310. package/dist/b2c/SeMegaMenu/useCloseMenuOnEscape.js.map +1 -0
  311. package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.d.ts +15 -0
  312. package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.d.ts.map +1 -0
  313. package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.js +21 -0
  314. package/dist/b2c/SeMegaMenu/useMegaMenuHoverState.js.map +1 -0
  315. package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.d.ts +29 -0
  316. package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.d.ts.map +1 -0
  317. package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.js +71 -0
  318. package/dist/b2c/SeMegaMenu/useMegaMenuMobileNavigation.js.map +1 -0
  319. package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.d.ts +12 -0
  320. package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.d.ts.map +1 -0
  321. package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.js +29 -0
  322. package/dist/b2c/SeMegaMenu/useNavbarHamburgerTrigger.js.map +1 -0
  323. package/dist/b2c/SeProductCardWithButton/index.d.ts +3 -0
  324. package/dist/b2c/SeProductCardWithButton/index.d.ts.map +1 -0
  325. package/dist/b2c/SeProductCardWithButton/index.js +19 -0
  326. package/dist/b2c/SeProductCardWithButton/index.js.map +1 -0
  327. package/dist/b2c/SeProductCardWithButton/types.d.ts +20 -0
  328. package/dist/b2c/SeProductCardWithButton/types.d.ts.map +1 -0
  329. package/dist/b2c/SeProductCardWithButton/types.js +3 -0
  330. package/dist/b2c/SeProductCardWithButton/types.js.map +1 -0
  331. package/dist/b2c/SeProductCardWithButton/useFormattedPrice.d.ts +13 -0
  332. package/dist/b2c/SeProductCardWithButton/useFormattedPrice.d.ts.map +1 -0
  333. package/dist/b2c/SeProductCardWithButton/useFormattedPrice.js +25 -0
  334. package/dist/b2c/SeProductCardWithButton/useFormattedPrice.js.map +1 -0
  335. package/dist/b2c/SeProductImageGrid/index.d.ts +2 -0
  336. package/dist/b2c/SeProductImageGrid/index.d.ts.map +1 -0
  337. package/dist/b2c/SeProductImageGrid/index.js +18 -0
  338. package/dist/b2c/SeProductImageGrid/index.js.map +1 -0
  339. package/dist/b2c/SeProductImageGrid/types.d.ts +15 -0
  340. package/dist/b2c/SeProductImageGrid/types.d.ts.map +1 -0
  341. package/dist/b2c/SeProductImageGrid/types.js +3 -0
  342. package/dist/b2c/SeProductImageGrid/types.js.map +1 -0
  343. package/dist/b2c/SeProductListing/index.d.ts +3 -0
  344. package/dist/b2c/SeProductListing/index.d.ts.map +1 -0
  345. package/dist/b2c/SeProductListing/index.js +19 -0
  346. package/dist/b2c/SeProductListing/index.js.map +1 -0
  347. package/dist/b2c/SeProductListing/types.d.ts +40 -0
  348. package/dist/b2c/SeProductListing/types.d.ts.map +1 -0
  349. package/dist/b2c/SeProductListing/types.js +3 -0
  350. package/dist/b2c/SeProductListing/types.js.map +1 -0
  351. package/dist/b2c/SeProductListing/useSeProductListing.d.ts +8 -0
  352. package/dist/b2c/SeProductListing/useSeProductListing.d.ts.map +1 -0
  353. package/dist/b2c/SeProductListing/useSeProductListing.js +27 -0
  354. package/dist/b2c/SeProductListing/useSeProductListing.js.map +1 -0
  355. package/dist/b2c/SeProductReviews/index.d.ts +3 -0
  356. package/dist/b2c/SeProductReviews/index.d.ts.map +1 -0
  357. package/dist/b2c/SeProductReviews/index.js +19 -0
  358. package/dist/b2c/SeProductReviews/index.js.map +1 -0
  359. package/dist/b2c/SeProductReviews/types.d.ts +30 -0
  360. package/dist/b2c/SeProductReviews/types.d.ts.map +1 -0
  361. package/dist/b2c/SeProductReviews/types.js +3 -0
  362. package/dist/b2c/SeProductReviews/types.js.map +1 -0
  363. package/dist/b2c/SeProductReviews/useSeProductReviews.d.ts +9 -0
  364. package/dist/b2c/SeProductReviews/useSeProductReviews.d.ts.map +1 -0
  365. package/dist/b2c/SeProductReviews/useSeProductReviews.js +34 -0
  366. package/dist/b2c/SeProductReviews/useSeProductReviews.js.map +1 -0
  367. package/dist/b2c/SeValuePropCards/index.d.ts +3 -0
  368. package/dist/b2c/SeValuePropCards/index.d.ts.map +1 -0
  369. package/dist/b2c/SeValuePropCards/index.js +19 -0
  370. package/dist/b2c/SeValuePropCards/index.js.map +1 -0
  371. package/dist/b2c/SeValuePropCards/types.d.ts +26 -0
  372. package/dist/b2c/SeValuePropCards/types.d.ts.map +1 -0
  373. package/dist/b2c/SeValuePropCards/types.js +3 -0
  374. package/dist/b2c/SeValuePropCards/types.js.map +1 -0
  375. package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.d.ts +8 -0
  376. package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.d.ts.map +1 -0
  377. package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.js +36 -0
  378. package/dist/b2c/SeValuePropCards/useSeValuePropCardsFilter.js.map +1 -0
  379. package/dist/b2c/SeVideoHero/index.d.ts +4 -0
  380. package/dist/b2c/SeVideoHero/index.d.ts.map +1 -0
  381. package/dist/b2c/SeVideoHero/index.js +20 -0
  382. package/dist/b2c/SeVideoHero/index.js.map +1 -0
  383. package/dist/b2c/SeVideoHero/types.d.ts +19 -0
  384. package/dist/b2c/SeVideoHero/types.d.ts.map +1 -0
  385. package/dist/b2c/SeVideoHero/types.js +3 -0
  386. package/dist/b2c/SeVideoHero/types.js.map +1 -0
  387. package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.d.ts +40 -0
  388. package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.d.ts.map +1 -0
  389. package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.js +135 -0
  390. package/dist/b2c/SeVideoHero/useSeVideoHeroPlayback.js.map +1 -0
  391. package/dist/b2c/SeVideoHero/videoSource.d.ts +25 -0
  392. package/dist/b2c/SeVideoHero/videoSource.d.ts.map +1 -0
  393. package/dist/b2c/SeVideoHero/videoSource.js +78 -0
  394. package/dist/b2c/SeVideoHero/videoSource.js.map +1 -0
  395. package/dist/b2c/index.d.ts +19 -0
  396. package/dist/b2c/index.d.ts.map +1 -0
  397. package/dist/b2c/index.js +35 -0
  398. package/dist/b2c/index.js.map +1 -0
  399. package/dist/b2c/shared/filterItemsWithImage.d.ts +8 -0
  400. package/dist/b2c/shared/filterItemsWithImage.d.ts.map +1 -0
  401. package/dist/b2c/shared/filterItemsWithImage.js +11 -0
  402. package/dist/b2c/shared/filterItemsWithImage.js.map +1 -0
  403. package/dist/b2c/shared/index.d.ts +2 -0
  404. package/dist/b2c/shared/index.d.ts.map +1 -0
  405. package/dist/b2c/shared/index.js +18 -0
  406. package/dist/b2c/shared/index.js.map +1 -0
  407. package/dist/index.d.ts +2 -0
  408. package/dist/index.d.ts.map +1 -0
  409. package/dist/index.js +18 -0
  410. package/dist/index.js.map +1 -0
  411. package/package.json +93 -3
  412. package/src/b2b/SeActionHubBulletinBoard/index.ts +1 -0
  413. package/src/b2b/SeActionHubBulletinBoard/types.ts +27 -0
  414. package/src/b2b/SeAddToPurchaseList/addToPurchaseListUtils.ts +40 -0
  415. package/src/b2b/SeAddToPurchaseList/index.ts +2 -0
  416. package/src/b2b/SeAddToPurchaseList/useAddToPurchaseList.ts +130 -0
  417. package/src/b2b/SeAddressSelector/index.ts +1 -0
  418. package/src/b2b/SeAddressSelector/useAddressSelector.ts +157 -0
  419. package/src/b2b/SeCategoryBanners/index.ts +1 -0
  420. package/src/b2b/SeCategoryBanners/types.ts +8 -0
  421. package/src/b2b/SeCheckStockAndPricing/checkStockAndPricingUtils.ts +126 -0
  422. package/src/b2b/SeCheckStockAndPricing/index.ts +3 -0
  423. package/src/b2b/SeCheckStockAndPricing/stockCsv.ts +77 -0
  424. package/src/b2b/SeCheckStockAndPricing/useCheckStockAndPricing.ts +272 -0
  425. package/src/b2b/SeCustomCrossSellingShelf/index.ts +1 -0
  426. package/src/b2b/SeCustomCrossSellingShelf/useCrossSellingShelfOverride.ts +25 -0
  427. package/src/b2b/SeCustomProductCard/index.ts +2 -0
  428. package/src/b2b/SeCustomProductCard/types.ts +16 -0
  429. package/src/b2b/SeCustomProductCard/useB2bProductCard.ts +53 -0
  430. package/src/b2b/SeCustomShelfProduct/index.ts +2 -0
  431. package/src/b2b/SeCustomShelfProduct/types.ts +14 -0
  432. package/src/b2b/SeCustomShelfProduct/useB2bShelfProducts.ts +31 -0
  433. package/src/b2b/SeDashboards/index.ts +1 -0
  434. package/src/b2b/SeDashboards/useDashboards.ts +211 -0
  435. package/src/b2b/SeFooterB2B/index.ts +2 -0
  436. package/src/b2b/SeFooterB2B/types.ts +42 -0
  437. package/src/b2b/SeFooterB2B/useNewsletterSubscription.ts +41 -0
  438. package/src/b2b/SeProductGalleryB2B/index.ts +1 -0
  439. package/src/b2b/SeProductGalleryB2B/useProductGalleryB2B.ts +217 -0
  440. package/src/b2b/SePurchaseLists/index.ts +2 -0
  441. package/src/b2b/SePurchaseLists/purchaseListsUtils.ts +106 -0
  442. package/src/b2b/SePurchaseLists/usePurchaseLists.ts +401 -0
  443. package/src/b2b/SeRecentOrdersSpendOverview/index.ts +2 -0
  444. package/src/b2b/SeRecentOrdersSpendOverview/recentOrdersSpendOverviewUtils.ts +162 -0
  445. package/src/b2b/SeRecentOrdersSpendOverview/useRecentOrdersSpendOverview.ts +159 -0
  446. package/src/b2b/SeRequestToBuy/index.ts +1 -0
  447. package/src/b2b/SeRequestToBuy/useRequestToBuyForm.ts +96 -0
  448. package/src/b2b/SeWelcomeBackMessage/index.ts +1 -0
  449. package/src/b2b/SeWelcomeBackMessage/useB2bSession.ts +16 -0
  450. package/src/b2b/index.ts +14 -0
  451. package/src/b2c/SeAssemblySet/assemblySetUtils.ts +67 -0
  452. package/src/b2c/SeAssemblySet/index.ts +3 -0
  453. package/src/b2c/SeAssemblySet/types.ts +51 -0
  454. package/src/b2c/SeAssemblySet/useAssemblySet.ts +198 -0
  455. package/src/b2c/SeBanner/buildResponsiveImage.ts +44 -0
  456. package/src/b2c/SeBanner/getImageUrl.ts +9 -0
  457. package/src/b2c/SeBanner/index.ts +7 -0
  458. package/src/b2c/SeBanner/types.ts +40 -0
  459. package/src/b2c/SeBanner/useBannerContext.ts +12 -0
  460. package/src/b2c/SeBanner/useBannerStyles.ts +120 -0
  461. package/src/b2c/SeBanner/useIsMobile.ts +24 -0
  462. package/src/b2c/SeBanner/useSanitizedHtml.ts +49 -0
  463. package/src/b2c/SeBannerCarousel/index.ts +4 -0
  464. package/src/b2c/SeBannerCarousel/types.ts +17 -0
  465. package/src/b2c/SeBannerCarousel/useCarousel.ts +83 -0
  466. package/src/b2c/SeBannerCarousel/useCarouselContext.ts +12 -0
  467. package/src/b2c/SeBannerCarousel/useSwipeNavigation.ts +54 -0
  468. package/src/b2c/SeCardsCarousel/index.ts +2 -0
  469. package/src/b2c/SeCardsCarousel/types.ts +7 -0
  470. package/src/b2c/SeCardsCarousel/useCardsCarouselLayout.ts +9 -0
  471. package/src/b2c/SeEditorialSplit/index.ts +1 -0
  472. package/src/b2c/SeEditorialSplit/types.ts +15 -0
  473. package/src/b2c/SeFooter/index.ts +2 -0
  474. package/src/b2c/SeFooter/types.ts +54 -0
  475. package/src/b2c/SeFooter/utils.ts +10 -0
  476. package/src/b2c/SeGridContent/index.ts +1 -0
  477. package/src/b2c/SeGridContent/types.ts +22 -0
  478. package/src/b2c/SeHeader/index.ts +1 -0
  479. package/src/b2c/SeHeader/types.ts +40 -0
  480. package/src/b2c/SeHeroSection/index.ts +1 -0
  481. package/src/b2c/SeHeroSection/types.ts +10 -0
  482. package/src/b2c/SeImageTiles/index.ts +1 -0
  483. package/src/b2c/SeImageTiles/types.ts +15 -0
  484. package/src/b2c/SeLearnMoreSection/index.ts +1 -0
  485. package/src/b2c/SeLearnMoreSection/types.ts +10 -0
  486. package/src/b2c/SeMegaMenu/index.ts +5 -0
  487. package/src/b2c/SeMegaMenu/types.ts +31 -0
  488. package/src/b2c/SeMegaMenu/useCloseMenuOnEscape.ts +18 -0
  489. package/src/b2c/SeMegaMenu/useMegaMenuHoverState.ts +29 -0
  490. package/src/b2c/SeMegaMenu/useMegaMenuMobileNavigation.ts +96 -0
  491. package/src/b2c/SeMegaMenu/useNavbarHamburgerTrigger.ts +29 -0
  492. package/src/b2c/SeProductCardWithButton/index.ts +2 -0
  493. package/src/b2c/SeProductCardWithButton/types.ts +21 -0
  494. package/src/b2c/SeProductCardWithButton/useFormattedPrice.ts +31 -0
  495. package/src/b2c/SeProductImageGrid/index.ts +1 -0
  496. package/src/b2c/SeProductImageGrid/types.ts +15 -0
  497. package/src/b2c/SeProductListing/index.ts +2 -0
  498. package/src/b2c/SeProductListing/types.ts +44 -0
  499. package/src/b2c/SeProductListing/useSeProductListing.ts +26 -0
  500. package/src/b2c/SeProductReviews/index.ts +2 -0
  501. package/src/b2c/SeProductReviews/types.ts +34 -0
  502. package/src/b2c/SeProductReviews/useSeProductReviews.ts +52 -0
  503. package/src/b2c/SeValuePropCards/index.ts +2 -0
  504. package/src/b2c/SeValuePropCards/types.ts +27 -0
  505. package/src/b2c/SeValuePropCards/useSeValuePropCardsFilter.ts +44 -0
  506. package/src/b2c/SeVideoHero/index.ts +3 -0
  507. package/src/b2c/SeVideoHero/types.ts +22 -0
  508. package/src/b2c/SeVideoHero/useSeVideoHeroPlayback.ts +159 -0
  509. package/src/b2c/SeVideoHero/videoSource.ts +88 -0
  510. package/src/b2c/index.ts +18 -0
  511. package/src/b2c/shared/filterItemsWithImage.ts +9 -0
  512. package/src/b2c/shared/index.ts +1 -0
  513. package/src/global.d.ts +74 -0
  514. package/src/index.ts +1 -0
@@ -0,0 +1,40 @@
1
+ export enum TextPosition {
2
+ LEFT = 'left',
3
+ RIGHT = 'right',
4
+ CENTER = 'center',
5
+ }
6
+
7
+ export enum OverlayTextPos {
8
+ LEFT = 'left',
9
+ RIGHT = 'right',
10
+ CENTER = 'center',
11
+ }
12
+
13
+ export enum TextAlignment {
14
+ LEFT = 'left',
15
+ RIGHT = 'right',
16
+ CENTER = 'center',
17
+ }
18
+
19
+ export enum MobileOverlayTextPosition {
20
+ TOP = 'top',
21
+ BOTTOM = 'bottom',
22
+ }
23
+
24
+ export type ImageUrl = {
25
+ src: string
26
+ alt: string
27
+ }
28
+
29
+ export type BannerContextValue = {
30
+ variant: 'primary' | 'secondary'
31
+ colorVariant: 'main' | 'light' | 'accent'
32
+ }
33
+
34
+ export type ImageLoaderParams = {
35
+ src: string
36
+ width: number
37
+ quality?: number
38
+ }
39
+
40
+ export type ImageLoader = (params: ImageLoaderParams) => string
@@ -0,0 +1,12 @@
1
+ import { createContext, useContext } from 'react'
2
+ import type { BannerContextValue } from './types'
3
+
4
+ export const BannerContext = createContext<BannerContextValue | undefined>(undefined)
5
+
6
+ export function useBannerContext(): BannerContextValue {
7
+ const context = useContext(BannerContext)
8
+ if (context === undefined) {
9
+ throw new Error('useBannerContext must be used within a SeBanner root element.')
10
+ }
11
+ return context
12
+ }
@@ -0,0 +1,120 @@
1
+ import type { CSSProperties } from 'react'
2
+ import { getImageUrl } from './getImageUrl'
3
+ import { useIsMobile } from './useIsMobile'
4
+ import {
5
+ MobileOverlayTextPosition,
6
+ OverlayTextPos,
7
+ TextAlignment,
8
+ TextPosition,
9
+ type ImageUrl,
10
+ } from './types'
11
+
12
+ export type BannerStyleProps = {
13
+ imageWithText: boolean
14
+ isFullModeStyle: boolean
15
+ textPosition: TextPosition
16
+ overlayTextPos: OverlayTextPos
17
+ textAlignment: TextAlignment
18
+ image: ImageUrl
19
+ uploadMobileImage?: ImageUrl
20
+ mobileOverlayTextPos: MobileOverlayTextPosition
21
+ }
22
+
23
+ export type BannerStyles = {
24
+ containerStyle: CSSProperties
25
+ textContainerStyle: CSSProperties
26
+ imagePositionStyle: CSSProperties
27
+ textAlignmentStyle: CSSProperties
28
+ mobileOverlayTextPosStyle: CSSProperties
29
+ }
30
+
31
+ export function useBannerStyles(props: BannerStyleProps): BannerStyles {
32
+ const { isMobile } = useIsMobile()
33
+
34
+ const getContainerStyle = (): CSSProperties => {
35
+ const { imageWithText, isFullModeStyle, image, uploadMobileImage } = props
36
+ if (!isFullModeStyle) return {}
37
+
38
+ if (imageWithText) {
39
+ return { width: '100%', height: 'auto', cursor: 'pointer' }
40
+ }
41
+
42
+ const finalImageUrl = getImageUrl(isMobile, image, uploadMobileImage)
43
+ return {
44
+ backgroundImage: `url(${finalImageUrl?.src ?? ''})`,
45
+ backgroundSize: 'cover',
46
+ backgroundPosition: 'center center',
47
+ backgroundRepeat: 'no-repeat',
48
+ }
49
+ }
50
+
51
+ const getTextContainerStyle = (): CSSProperties => {
52
+ const { textPosition, isFullModeStyle } = props
53
+ const baseStyles: CSSProperties = {
54
+ flexDirection: 'column',
55
+ ...(isMobile || isFullModeStyle ? {} : { position: 'absolute' as const, width: '50%' }),
56
+ }
57
+ const textContainerStyles: Record<TextPosition, CSSProperties> = {
58
+ [TextPosition.LEFT]: { ...baseStyles, left: 0, right: '50%', alignItems: 'flex-start' },
59
+ [TextPosition.CENTER]: { ...baseStyles, left: 0, right: '50%', alignItems: 'center' },
60
+ [TextPosition.RIGHT]: { ...baseStyles, left: '50%', right: 0, alignItems: 'flex-end' },
61
+ }
62
+ return textContainerStyles[textPosition] ?? {}
63
+ }
64
+
65
+ const getImagePositionStyle = (): CSSProperties => {
66
+ const { textPosition, isFullModeStyle } = props
67
+ if (isFullModeStyle) return {}
68
+
69
+ const imagePositionStyles: Record<TextPosition, CSSProperties> = {
70
+ [TextPosition.LEFT]: { left: '50%' },
71
+ [TextPosition.CENTER]: { left: '50%' },
72
+ [TextPosition.RIGHT]: { right: '50%' },
73
+ }
74
+ return imagePositionStyles[textPosition] ?? {}
75
+ }
76
+
77
+ const getTextAlignmentStyle = (): CSSProperties => {
78
+ const { textAlignment, overlayTextPos, isFullModeStyle } = props
79
+ const commonStyles: CSSProperties = {
80
+ padding: isMobile ? '0 1.5rem' : '0 5rem',
81
+ flexDirection: 'column',
82
+ }
83
+ const textAlignmentStyles: Record<TextAlignment, CSSProperties> = {
84
+ [TextAlignment.LEFT]: { alignItems: 'flex-start' },
85
+ [TextAlignment.CENTER]: { alignItems: 'center', textAlign: 'center' },
86
+ [TextAlignment.RIGHT]: { alignItems: 'flex-end', textAlign: 'right' },
87
+ }
88
+ const resolved = isFullModeStyle ? overlayTextPos : textAlignment
89
+ return { ...commonStyles, ...(textAlignmentStyles[resolved as TextAlignment] ?? {}) }
90
+ }
91
+
92
+ const getMobileOverlayTextPosStyle = (): CSSProperties => {
93
+ const { isFullModeStyle, mobileOverlayTextPos } = props
94
+ if (!isMobile) return {}
95
+
96
+ const MOBILE_OVERLAY_TEXT_STYLES: Record<
97
+ MobileOverlayTextPosition,
98
+ { fullmodeActive: CSSProperties; fullmodeOff: CSSProperties }
99
+ > = {
100
+ [MobileOverlayTextPosition.TOP]: {
101
+ fullmodeActive: { display: 'flex', alignItems: 'flex-start' },
102
+ fullmodeOff: { flexDirection: 'column' },
103
+ },
104
+ [MobileOverlayTextPosition.BOTTOM]: {
105
+ fullmodeActive: { display: 'flex', alignItems: 'flex-end' },
106
+ fullmodeOff: { flexDirection: 'column-reverse' },
107
+ },
108
+ }
109
+ const styleType = isFullModeStyle ? 'fullmodeActive' : 'fullmodeOff'
110
+ return MOBILE_OVERLAY_TEXT_STYLES[mobileOverlayTextPos]?.[styleType] ?? {}
111
+ }
112
+
113
+ return {
114
+ containerStyle: getContainerStyle(),
115
+ textContainerStyle: getTextContainerStyle(),
116
+ imagePositionStyle: getImagePositionStyle(),
117
+ textAlignmentStyle: getTextAlignmentStyle(),
118
+ mobileOverlayTextPosStyle: getMobileOverlayTextPosStyle(),
119
+ }
120
+ }
@@ -0,0 +1,24 @@
1
+ import { useSyncExternalStore } from 'react'
2
+
3
+ const MOBILE_MEDIA_QUERY = '(max-width: 768px)'
4
+
5
+ function subscribe(callback: () => void) {
6
+ const mql = window.matchMedia(MOBILE_MEDIA_QUERY)
7
+ mql.addEventListener('change', callback)
8
+ return () => mql.removeEventListener('change', callback)
9
+ }
10
+
11
+ function getSnapshot() {
12
+ return window.matchMedia(MOBILE_MEDIA_QUERY).matches
13
+ }
14
+
15
+ // Server renders as "desktop" (false) rather than guessing "mobile" — avoids the
16
+ // mount-time flash the original implementation had from defaulting to `true`.
17
+ function getServerSnapshot() {
18
+ return false
19
+ }
20
+
21
+ export function useIsMobile(): { isMobile: boolean } {
22
+ const isMobile = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)
23
+ return { isMobile }
24
+ }
@@ -0,0 +1,49 @@
1
+ import { useMemo } from 'react'
2
+ import sanitizeHtml from 'sanitize-html'
3
+
4
+ export type SanitizeOptions = {
5
+ allowedTags?: string[]
6
+ allowedAttributes?: Record<string, string[]>
7
+ allowedClasses?: Record<string, string[]>
8
+ }
9
+
10
+ const DEFAULTS = {
11
+ allowedAttributes: {
12
+ '*': ['id', 'title', 'accesskey', 'class', 'style', 'aria-label', 'width', 'height', 'hidden'],
13
+ a: ['href', 'name', 'target'],
14
+ iframe: ['allow', 'allowfullscreen', 'frameborder', 'src'],
15
+ img: ['src', 'alt'],
16
+ link: ['rel', 'type', 'href'],
17
+ td: ['colspan', 'rowspan', 'headers'],
18
+ },
19
+ allowedClasses: {},
20
+ allowedSchemes: ['http', 'https', 'mailto', 'tel'],
21
+ allowedTags: [
22
+ 'a', 'abbr', 'article', 'b', 'blockquote', 'br', 'caption', 'code', 'del', 'details',
23
+ 'div', 'em', 'figure', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'header', 'footer', 'i',
24
+ 'img', 'ins', 'iframe', 'kbd', 'li', 'main', 'mark', 'ol', 'p', 'picture', 'pre', 'section',
25
+ 'span', 'strike', 'strong', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'th', 'thead',
26
+ 'tr', 'u', 'ul',
27
+ ],
28
+ }
29
+
30
+ /**
31
+ * Sanitizes CMS-authored HTML for safe use with `dangerouslySetInnerHTML`.
32
+ * Returns `null` for empty content so callers can skip rendering entirely.
33
+ */
34
+ export function useSanitizedHtml(
35
+ content: string,
36
+ { allowedAttributes, allowedClasses, allowedTags }: SanitizeOptions = {},
37
+ ): { __html: string } | null {
38
+ return useMemo(() => {
39
+ if (!content) return null
40
+
41
+ const clean = sanitizeHtml(content, {
42
+ ...DEFAULTS,
43
+ allowedAttributes: allowedAttributes ?? DEFAULTS.allowedAttributes,
44
+ allowedClasses: allowedClasses ?? DEFAULTS.allowedClasses,
45
+ allowedTags: allowedTags ?? DEFAULTS.allowedTags,
46
+ })
47
+ return { __html: clean }
48
+ }, [content, allowedAttributes, allowedClasses, allowedTags])
49
+ }
@@ -0,0 +1,4 @@
1
+ export * from './types'
2
+ export * from './useCarousel'
3
+ export * from './useSwipeNavigation'
4
+ export * from './useCarouselContext'
@@ -0,0 +1,17 @@
1
+ export type BannerCarouselSlide = {
2
+ image: string
3
+ imageMobile?: string
4
+ alt?: string
5
+ title?: string
6
+ text?: string
7
+ linkText?: string
8
+ url?: string
9
+ }
10
+
11
+ export type CarouselContextValue = {
12
+ activeIndex: number
13
+ slideCount: number
14
+ goTo: (index: number) => void
15
+ goNext: () => void
16
+ goPrev: () => void
17
+ }
@@ -0,0 +1,83 @@
1
+ import { useCallback, useEffect, useState } from 'react'
2
+
3
+ export type UseCarouselOptions = {
4
+ /** Total number of slides. */
5
+ slideCount: number
6
+ /** Wrap around from the last slide to the first (and vice-versa). Defaults to `true`. */
7
+ loop?: boolean
8
+ /** Automatically advance to the next slide. Defaults to `false`. */
9
+ autoplay?: boolean
10
+ /** Milliseconds between automatic slide changes. Defaults to `5000`. */
11
+ autoplayDelay?: number
12
+ /** Pause autoplay while the pointer is over the carousel. Defaults to `true`. */
13
+ pauseOnHover?: boolean
14
+ }
15
+
16
+ export type UseCarouselResult = {
17
+ activeIndex: number
18
+ goTo: (index: number) => void
19
+ goNext: () => void
20
+ goPrev: () => void
21
+ isPaused: boolean
22
+ containerHandlers: {
23
+ onMouseEnter: () => void
24
+ onMouseLeave: () => void
25
+ }
26
+ }
27
+
28
+ /**
29
+ * Slide-index state machine for a carousel: clamps/wraps navigation, and optionally
30
+ * advances slides on an interval (paused on hover) — no DOM/animation library involved,
31
+ * so any renderer (CSS transform track, opacity crossfade, etc.) can consume it.
32
+ */
33
+ export function useCarousel(options: UseCarouselOptions): UseCarouselResult {
34
+ const { slideCount, loop = true, autoplay = false, autoplayDelay = 5000, pauseOnHover = true } = options
35
+
36
+ const [activeIndex, setActiveIndex] = useState(0)
37
+ const [isPaused, setIsPaused] = useState(false)
38
+
39
+ const clampIndex = useCallback(
40
+ (index: number) => {
41
+ if (slideCount <= 0) return 0
42
+ if (loop) return ((index % slideCount) + slideCount) % slideCount
43
+ return Math.min(Math.max(index, 0), slideCount - 1)
44
+ },
45
+ [slideCount, loop],
46
+ )
47
+
48
+ // Keeps `activeIndex` in range if `slideCount` changes (e.g. CMS content updates).
49
+ useEffect(() => {
50
+ setActiveIndex((current) => clampIndex(current))
51
+ }, [clampIndex])
52
+
53
+ const goTo = useCallback((index: number) => setActiveIndex(clampIndex(index)), [clampIndex])
54
+ const goNext = useCallback(() => setActiveIndex((current) => clampIndex(current + 1)), [clampIndex])
55
+ const goPrev = useCallback(() => setActiveIndex((current) => clampIndex(current - 1)), [clampIndex])
56
+
57
+ useEffect(() => {
58
+ if (!autoplay || slideCount <= 1 || isPaused) return undefined
59
+
60
+ const id = setInterval(() => {
61
+ setActiveIndex((current) => clampIndex(current + 1))
62
+ }, autoplayDelay)
63
+
64
+ return () => clearInterval(id)
65
+ }, [autoplay, autoplayDelay, slideCount, isPaused, clampIndex])
66
+
67
+ const onMouseEnter = useCallback(() => {
68
+ if (pauseOnHover) setIsPaused(true)
69
+ }, [pauseOnHover])
70
+
71
+ const onMouseLeave = useCallback(() => {
72
+ if (pauseOnHover) setIsPaused(false)
73
+ }, [pauseOnHover])
74
+
75
+ return {
76
+ activeIndex,
77
+ goTo,
78
+ goNext,
79
+ goPrev,
80
+ isPaused,
81
+ containerHandlers: { onMouseEnter, onMouseLeave },
82
+ }
83
+ }
@@ -0,0 +1,12 @@
1
+ import { createContext, useContext } from 'react'
2
+ import type { CarouselContextValue } from './types'
3
+
4
+ export const CarouselContext = createContext<CarouselContextValue | undefined>(undefined)
5
+
6
+ export function useCarouselContext(): CarouselContextValue {
7
+ const context = useContext(CarouselContext)
8
+ if (context === undefined) {
9
+ throw new Error('useCarouselContext must be used within a SeBannerCarousel root element.')
10
+ }
11
+ return context
12
+ }
@@ -0,0 +1,54 @@
1
+ import { useCallback, useRef } from 'react'
2
+ import type { TouchEvent } from 'react'
3
+
4
+ export type UseSwipeNavigationOptions = {
5
+ onSwipeLeft: () => void
6
+ onSwipeRight: () => void
7
+ /** Minimum horizontal drag distance (px) to register as a swipe. Defaults to `40`. */
8
+ threshold?: number
9
+ }
10
+
11
+ export type SwipeHandlers = {
12
+ onTouchStart: (event: TouchEvent) => void
13
+ onTouchMove: (event: TouchEvent) => void
14
+ onTouchEnd: () => void
15
+ }
16
+
17
+ /**
18
+ * Touch-swipe gesture recognizer for a carousel, framework/library-free (no Swiper/Hammer).
19
+ * Tracks the horizontal delta between touchstart and touchend and fires the matching
20
+ * callback once it crosses `threshold`.
21
+ */
22
+ export function useSwipeNavigation({
23
+ onSwipeLeft,
24
+ onSwipeRight,
25
+ threshold = 40,
26
+ }: UseSwipeNavigationOptions): SwipeHandlers {
27
+ const touchStartX = useRef<number | null>(null)
28
+ const touchDeltaX = useRef(0)
29
+
30
+ const onTouchStart = useCallback((event: TouchEvent) => {
31
+ touchStartX.current = event.touches[0]?.clientX ?? null
32
+ touchDeltaX.current = 0
33
+ }, [])
34
+
35
+ const onTouchMove = useCallback((event: TouchEvent) => {
36
+ if (touchStartX.current === null) return
37
+ const currentX = event.touches[0]?.clientX ?? touchStartX.current
38
+ touchDeltaX.current = currentX - touchStartX.current
39
+ }, [])
40
+
41
+ const onTouchEnd = useCallback(() => {
42
+ if (Math.abs(touchDeltaX.current) >= threshold) {
43
+ if (touchDeltaX.current < 0) {
44
+ onSwipeLeft()
45
+ } else {
46
+ onSwipeRight()
47
+ }
48
+ }
49
+ touchStartX.current = null
50
+ touchDeltaX.current = 0
51
+ }, [threshold, onSwipeLeft, onSwipeRight])
52
+
53
+ return { onTouchStart, onTouchMove, onTouchEnd }
54
+ }
@@ -0,0 +1,2 @@
1
+ export * from './types'
2
+ export * from './useCardsCarouselLayout'
@@ -0,0 +1,7 @@
1
+ export type CardsCarouselItem = {
2
+ image: string
3
+ title: string
4
+ description: string
5
+ button: string
6
+ link: string
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Layout decision for a row of content cards: below three items there's no room to justify
3
+ * the row, so it's centered instead of spread edge-to-edge. Ported from the original
4
+ * `banners.length < 3 ? styles.centered : styles.carousel` inline check so the rule lives
5
+ * next to the component's logic instead of being re-derived at the call site.
6
+ */
7
+ export function useCardsCarouselLayout(itemCount: number): { isCentered: boolean } {
8
+ return { isCentered: itemCount < 3 }
9
+ }
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,15 @@
1
+ export type SeEditorialSplitItem = {
2
+ /** Public path or absolute URL. Items without an image are skipped. */
3
+ image: string
4
+ alt?: string
5
+ /** Caption. Without it the caption is hidden. */
6
+ title?: string
7
+ /** Wraps image and caption. The arrow icon shows only with a link. */
8
+ link?: string
9
+ }
10
+
11
+ export type SeEditorialSplitColumns = 1 | 2 | 3
12
+
13
+ export type SeEditorialSplitAspectRatio = '3:4' | '4:5' | '1:1'
14
+
15
+ export type SeEditorialSplitCaptionPosition = 'below' | 'overlay'
@@ -0,0 +1,2 @@
1
+ export * from './types'
2
+ export * from './utils'
@@ -0,0 +1,54 @@
1
+ export type SeFooterLink = {
2
+ text: string
3
+ /** Without a URL the item renders as a paragraph and its column becomes a text column. */
4
+ url?: string
5
+ }
6
+
7
+ export type SeFooterColumn = {
8
+ sectionTitle?: string
9
+ items?: SeFooterLink[]
10
+ }
11
+
12
+ export type SeFooterSocialLink = {
13
+ /**
14
+ * Icon name in the store's FastStore icon sprite (e.g. `Facebook`, `Instagram`). The native
15
+ * Footer's `{ icon }` object shape is accepted too, so its CMS content renders as is.
16
+ */
17
+ icon?: string | { icon?: string }
18
+ /** Custom icon image URL, for networks the sprite doesn't have. Wins over `icon`. */
19
+ image?: string
20
+ alt: string
21
+ url: string
22
+ }
23
+
24
+ export type SeFooterSocial = {
25
+ title?: string
26
+ socialLinks?: SeFooterSocialLink[]
27
+ }
28
+
29
+ export type SeFooterLogo = {
30
+ src?: string
31
+ alt?: string
32
+ link?: { url?: string; title?: string }
33
+ }
34
+
35
+ export type SeFooterIncentive = {
36
+ title: string
37
+ /** Same field name as the native Footer's incentives. */
38
+ firstLineText?: string
39
+ /** Icon name in the store's FastStore icon sprite. */
40
+ icon?: string
41
+ }
42
+
43
+ export type SeFooterPaymentMethod = {
44
+ image: string
45
+ alt: string
46
+ }
47
+
48
+ export type SeFooterPaymentMethods = {
49
+ title?: string
50
+ methods?: SeFooterPaymentMethod[]
51
+ }
52
+
53
+ /** Width below which link columns collapse into accordions: 768px or 1024px. */
54
+ export type SeFooterAccordionBreakpoint = 'tablet' | 'notebook'
@@ -0,0 +1,10 @@
1
+ import type { SeFooterColumn, SeFooterSocialLink } from './types'
2
+
3
+ export const isExternalUrl = (url: string) => /^https?:\/\//.test(url)
4
+
5
+ /** A column with at least one URL-less item is a text column (e.g. a loyalty-club teaser). */
6
+ export const getSeFooterColumnVariant = (column: SeFooterColumn): 'text' | 'links' =>
7
+ (column.items ?? []).some((item) => !item.url) ? 'text' : 'links'
8
+
9
+ export const getSeFooterSocialIconName = (link: SeFooterSocialLink): string | undefined =>
10
+ typeof link.icon === 'string' ? link.icon : link.icon?.icon
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,22 @@
1
+ export type SeGridContentImage = {
2
+ src: string
3
+ alt?: string
4
+ }
5
+
6
+ export type SeGridContentItem = {
7
+ title: string
8
+ eyebrow?: string
9
+ image?: string
10
+ href?: string
11
+ ctaLabel?: string
12
+ secondaryHref?: string
13
+ secondaryCtaLabel?: string
14
+ }
15
+
16
+ export type SeGridContentColumns = 1 | 2 | 3 | 4
17
+
18
+ /**
19
+ * `overlay` (default): tall cards with the content in a colored box over the image.
20
+ * `caption-below`: the image keeps its aspect ratio and the content sits under it.
21
+ */
22
+ export type SeGridContentVariant = 'overlay' | 'caption-below'
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,40 @@
1
+ export type SeHeaderTopbarItem = {
2
+ label?: string
3
+ href?: string
4
+ }
5
+
6
+ export type SeHeaderTopbar = {
7
+ leftText?: string
8
+ rightItems?: SeHeaderTopbarItem[]
9
+ }
10
+
11
+ export type SeHeaderLogo = {
12
+ text?: string
13
+ href?: string
14
+ imageUrl?: string
15
+ }
16
+
17
+ export type SeHeaderSearchCategory = {
18
+ label?: string
19
+ value?: string
20
+ }
21
+
22
+ export type SeHeaderSearch = {
23
+ placeholder?: string
24
+ categories?: SeHeaderSearchCategory[]
25
+ /** Optional form action URL (plain GET form submission) when no onSearch handler is given. */
26
+ action?: string
27
+ }
28
+
29
+ export type SeHeaderAccount = {
30
+ welcome?: string
31
+ guestLabel?: string
32
+ loginLabel?: string
33
+ loginHref?: string
34
+ showAvatar?: boolean
35
+ }
36
+
37
+ export type SeHeaderSearchSubmit = {
38
+ term: string
39
+ category: string
40
+ }
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,10 @@
1
+ export type SeHeroSectionBackgroundImage = {
2
+ src?: string
3
+ alt?: string
4
+ }
5
+
6
+ export type SeHeroSectionCta = {
7
+ text?: string
8
+ href?: string
9
+ linkTargetBlank?: boolean
10
+ }
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,15 @@
1
+ export type ImageTile = {
2
+ src: string
3
+ url: string
4
+ alt: string
5
+ /** Caption title, shown when `captionPosition` is `below`. */
6
+ title?: string
7
+ /** Small label under the title, shown when `captionPosition` is `below`. Defaults to "See more". */
8
+ linkLabel?: string
9
+ }
10
+
11
+ export type SeImageTilesCaptionPosition = 'none' | 'below'
12
+
13
+ export type SeImageTilesColumns = 2 | 3 | 4
14
+
15
+ export type SeImageTilesAspectRatio = '3:4' | '2:3' | '4:5' | '1:1'
@@ -0,0 +1 @@
1
+ export * from './types'
@@ -0,0 +1,10 @@
1
+ export type SeLearnMoreSectionBlurb = {
2
+ icon?: string
3
+ title: string
4
+ description: string
5
+ }
6
+
7
+ export type SeLearnMoreSectionImage = {
8
+ src?: string
9
+ alt?: string
10
+ }
@@ -0,0 +1,5 @@
1
+ export * from './types'
2
+ export * from './useMegaMenuHoverState'
3
+ export * from './useMegaMenuMobileNavigation'
4
+ export * from './useNavbarHamburgerTrigger'
5
+ export * from './useCloseMenuOnEscape'