@jetshop/template-trend 6.1.4 → 6.1.5

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 (409) hide show
  1. package/dist/src/client.js +6 -0
  2. package/dist/src/client.js.map +1 -0
  3. package/dist/src/components/Auth/ForgotPassword.js +30 -0
  4. package/dist/src/components/Auth/ForgotPassword.js.map +1 -0
  5. package/dist/src/components/Auth/ForgotPassword.loadable.js +7 -0
  6. package/dist/src/components/Auth/ForgotPassword.loadable.js.map +1 -0
  7. package/dist/src/components/Auth/LogInPage.js +69 -0
  8. package/dist/src/components/Auth/LogInPage.js.map +1 -0
  9. package/dist/src/components/Auth/LogInPage.loadable.js +7 -0
  10. package/dist/src/components/Auth/LogInPage.loadable.js.map +1 -0
  11. package/dist/src/components/Auth/ResetPassword.js +30 -0
  12. package/dist/src/components/Auth/ResetPassword.js.map +1 -0
  13. package/dist/src/components/Auth/ResetPassword.loadable.js +7 -0
  14. package/dist/src/components/Auth/ResetPassword.loadable.js.map +1 -0
  15. package/dist/src/components/Auth/Signup/Address.js +34 -0
  16. package/dist/src/components/Auth/Signup/Address.js.map +1 -0
  17. package/dist/src/components/Auth/Signup/CustomerType.js +30 -0
  18. package/dist/src/components/Auth/Signup/CustomerType.js.map +1 -0
  19. package/dist/src/components/Auth/Signup/LoginFields.js +31 -0
  20. package/dist/src/components/Auth/Signup/LoginFields.js.map +1 -0
  21. package/dist/src/components/Auth/Signup/PID.js +11 -0
  22. package/dist/src/components/Auth/Signup/PID.js.map +1 -0
  23. package/dist/src/components/Auth/Signup/SSN.js +29 -0
  24. package/dist/src/components/Auth/Signup/SSN.js.map +1 -0
  25. package/dist/src/components/Auth/Signup/SignUpPage.js +78 -0
  26. package/dist/src/components/Auth/Signup/SignUpPage.js.map +1 -0
  27. package/dist/src/components/Auth/Signup/SignUpPage.loadable.js +7 -0
  28. package/dist/src/components/Auth/Signup/SignUpPage.loadable.js.map +1 -0
  29. package/dist/src/components/Auth/Signup/useSignupValidation.js +29 -0
  30. package/dist/src/components/Auth/Signup/useSignupValidation.js.map +1 -0
  31. package/dist/src/components/Auth/UI/Form.js +33 -0
  32. package/dist/src/components/Auth/UI/Form.js.map +1 -0
  33. package/dist/src/components/Cart/CartButton.js +46 -0
  34. package/dist/src/components/Cart/CartButton.js.map +1 -0
  35. package/dist/src/components/Cart/CartFlyout.js +190 -0
  36. package/dist/src/components/Cart/CartFlyout.js.map +1 -0
  37. package/dist/src/components/Cart/CartItem.js +155 -0
  38. package/dist/src/components/Cart/CartItem.js.map +1 -0
  39. package/dist/src/components/Cart/FreeShipping.js +51 -0
  40. package/dist/src/components/Cart/FreeShipping.js.map +1 -0
  41. package/dist/src/components/CategoryPage/CategoryHeader.js +104 -0
  42. package/dist/src/components/CategoryPage/CategoryHeader.js.map +1 -0
  43. package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js +13 -0
  44. package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js.map +1 -0
  45. package/dist/src/components/CategoryPage/CategoryPage.js +26 -0
  46. package/dist/src/components/CategoryPage/CategoryPage.js.map +1 -0
  47. package/dist/src/components/CategoryPage/CategoryPage.loadable.js +7 -0
  48. package/dist/src/components/CategoryPage/CategoryPage.loadable.js.map +1 -0
  49. package/dist/src/components/CategoryPage/Filters/ActiveFilters.js +79 -0
  50. package/dist/src/components/CategoryPage/Filters/ActiveFilters.js.map +1 -0
  51. package/dist/src/components/CategoryPage/Filters/BooleanFilters.js +18 -0
  52. package/dist/src/components/CategoryPage/Filters/BooleanFilters.js.map +1 -0
  53. package/dist/src/components/CategoryPage/Filters/Filter.js +97 -0
  54. package/dist/src/components/CategoryPage/Filters/Filter.js.map +1 -0
  55. package/dist/src/components/CategoryPage/Filters/FilterDrawer.js +91 -0
  56. package/dist/src/components/CategoryPage/Filters/FilterDrawer.js.map +1 -0
  57. package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js +77 -0
  58. package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js.map +1 -0
  59. package/dist/src/components/CategoryPage/Filters/ListFilters.js +38 -0
  60. package/dist/src/components/CategoryPage/Filters/ListFilters.js.map +1 -0
  61. package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js +15 -0
  62. package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js.map +1 -0
  63. package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js +107 -0
  64. package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js.map +1 -0
  65. package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js +44 -0
  66. package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js.map +1 -0
  67. package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js +21 -0
  68. package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js.map +1 -0
  69. package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js +30 -0
  70. package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js.map +1 -0
  71. package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js +12 -0
  72. package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js.map +1 -0
  73. package/dist/src/components/CategoryPage/Filters/MultiListFilters.js +37 -0
  74. package/dist/src/components/CategoryPage/Filters/MultiListFilters.js.map +1 -0
  75. package/dist/src/components/CategoryPage/Filters/RangeFilters.js +122 -0
  76. package/dist/src/components/CategoryPage/Filters/RangeFilters.js.map +1 -0
  77. package/dist/src/components/CategoryPage/Filters/SortOrders.js +29 -0
  78. package/dist/src/components/CategoryPage/Filters/SortOrders.js.map +1 -0
  79. package/dist/src/components/CategoryPage/Filters/index.js +2 -0
  80. package/dist/src/components/CategoryPage/Filters/index.js.map +1 -0
  81. package/dist/src/components/CategoryPage/ProductCard.js +98 -0
  82. package/dist/src/components/CategoryPage/ProductCard.js.map +1 -0
  83. package/dist/src/components/CategoryPage/ProductGrid.js +89 -0
  84. package/dist/src/components/CategoryPage/ProductGrid.js.map +1 -0
  85. package/dist/src/components/CategoryPage/ProductGridWindow.js +48 -0
  86. package/dist/src/components/CategoryPage/ProductGridWindow.js.map +1 -0
  87. package/dist/src/components/CategoryPage/StandardCategoryPage.js +51 -0
  88. package/dist/src/components/CategoryPage/StandardCategoryPage.js.map +1 -0
  89. package/dist/src/components/CategoryPage/WindowedCategoryPage.js +87 -0
  90. package/dist/src/components/CategoryPage/WindowedCategoryPage.js.map +1 -0
  91. package/dist/src/components/CategoryPage/index.js +2 -0
  92. package/dist/src/components/CategoryPage/index.js.map +1 -0
  93. package/dist/src/components/ContentPage/ContentPage.js +64 -0
  94. package/dist/src/components/ContentPage/ContentPage.js.map +1 -0
  95. package/dist/src/components/ContentPage/ContentPage.loadable.js +7 -0
  96. package/dist/src/components/ContentPage/ContentPage.loadable.js.map +1 -0
  97. package/dist/src/components/ContentPage/SubPageNavigation.js +164 -0
  98. package/dist/src/components/ContentPage/SubPageNavigation.js.map +1 -0
  99. package/dist/src/components/ContentPage/index.js +2 -0
  100. package/dist/src/components/ContentPage/index.js.map +1 -0
  101. package/dist/src/components/CookieConsent.js +84 -0
  102. package/dist/src/components/CookieConsent.js.map +1 -0
  103. package/dist/src/components/Forms/GlobalError.js +28 -0
  104. package/dist/src/components/Forms/GlobalError.js.map +1 -0
  105. package/dist/src/components/Forms/Input.js +79 -0
  106. package/dist/src/components/Forms/Input.js.map +1 -0
  107. package/dist/src/components/Forms/InputStatus.js +42 -0
  108. package/dist/src/components/Forms/InputStatus.js.map +1 -0
  109. package/dist/src/components/Forms/Success.js +25 -0
  110. package/dist/src/components/Forms/Success.js.map +1 -0
  111. package/dist/src/components/Layout/Container.js +19 -0
  112. package/dist/src/components/Layout/Container.js.map +1 -0
  113. package/dist/src/components/Layout/Content/index.js +7 -0
  114. package/dist/src/components/Layout/Content/index.js.map +1 -0
  115. package/dist/src/components/Layout/Footer/Footer.js +106 -0
  116. package/dist/src/components/Layout/Footer/Footer.js.map +1 -0
  117. package/dist/src/components/Layout/Footer/FooterLinks.js +24 -0
  118. package/dist/src/components/Layout/Footer/FooterLinks.js.map +1 -0
  119. package/dist/src/components/Layout/Footer/SocialLinks.js +62 -0
  120. package/dist/src/components/Layout/Footer/SocialLinks.js.map +1 -0
  121. package/dist/src/components/Layout/Header/Categories/Categories.js +10 -0
  122. package/dist/src/components/Layout/Header/Categories/Categories.js.map +1 -0
  123. package/dist/src/components/Layout/Header/Categories/MobileCategories.js +128 -0
  124. package/dist/src/components/Layout/Header/Categories/MobileCategories.js.map +1 -0
  125. package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js +4 -0
  126. package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js.map +1 -0
  127. package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js +4 -0
  128. package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js.map +1 -0
  129. package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js +4 -0
  130. package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js.map +1 -0
  131. package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js +21 -0
  132. package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js.map +1 -0
  133. package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js +55 -0
  134. package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js.map +1 -0
  135. package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js +60 -0
  136. package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js.map +1 -0
  137. package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js +78 -0
  138. package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js.map +1 -0
  139. package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js +26 -0
  140. package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js.map +1 -0
  141. package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js +36 -0
  142. package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js.map +1 -0
  143. package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js +12 -0
  144. package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js.map +1 -0
  145. package/dist/src/components/Layout/Header/ChannelSelector/Selector.js +120 -0
  146. package/dist/src/components/Layout/Header/ChannelSelector/Selector.js.map +1 -0
  147. package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js +15 -0
  148. package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js.map +1 -0
  149. package/dist/src/components/Layout/Header/Header.js +189 -0
  150. package/dist/src/components/Layout/Header/Header.js.map +1 -0
  151. package/dist/src/components/Layout/Header/Logo.js +40 -0
  152. package/dist/src/components/Layout/Header/Logo.js.map +1 -0
  153. package/dist/src/components/Layout/Header/LogoSearchBar.js +15 -0
  154. package/dist/src/components/Layout/Header/LogoSearchBar.js.map +1 -0
  155. package/dist/src/components/Layout/Header/MobileMenu.js +76 -0
  156. package/dist/src/components/Layout/Header/MobileMenu.js.map +1 -0
  157. package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js +218 -0
  158. package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js.map +1 -0
  159. package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js +123 -0
  160. package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js.map +1 -0
  161. package/dist/src/components/Layout/Header/SearchBar.js +79 -0
  162. package/dist/src/components/Layout/Header/SearchBar.js.map +1 -0
  163. package/dist/src/components/Layout/Header/SearchButton.js +50 -0
  164. package/dist/src/components/Layout/Header/SearchButton.js.map +1 -0
  165. package/dist/src/components/Layout/Header/SubCategoryNav.js +71 -0
  166. package/dist/src/components/Layout/Header/SubCategoryNav.js.map +1 -0
  167. package/dist/src/components/Layout/Header/TopNav.js +63 -0
  168. package/dist/src/components/Layout/Header/TopNav.js.map +1 -0
  169. package/dist/src/components/Layout/MaxWidth.js +19 -0
  170. package/dist/src/components/Layout/MaxWidth.js.map +1 -0
  171. package/dist/src/components/Layout/Notifications.js +70 -0
  172. package/dist/src/components/Layout/Notifications.js.map +1 -0
  173. package/dist/src/components/LoadingPage.js +19 -0
  174. package/dist/src/components/LoadingPage.js.map +1 -0
  175. package/dist/src/components/LogOut.loadable.js +7 -0
  176. package/dist/src/components/LogOut.loadable.js.map +1 -0
  177. package/dist/src/components/MyPages/ChangePasswordPage.js +26 -0
  178. package/dist/src/components/MyPages/ChangePasswordPage.js.map +1 -0
  179. package/dist/src/components/MyPages/CustomerNameHeader.js +28 -0
  180. package/dist/src/components/MyPages/CustomerNameHeader.js.map +1 -0
  181. package/dist/src/components/MyPages/DeleteAccount.js +47 -0
  182. package/dist/src/components/MyPages/DeleteAccount.js.map +1 -0
  183. package/dist/src/components/MyPages/MyPages.js +152 -0
  184. package/dist/src/components/MyPages/MyPages.js.map +1 -0
  185. package/dist/src/components/MyPages/MyPages.loadable.js +7 -0
  186. package/dist/src/components/MyPages/MyPages.loadable.js.map +1 -0
  187. package/dist/src/components/MyPages/MyPagesBreadcrumbs.js +18 -0
  188. package/dist/src/components/MyPages/MyPagesBreadcrumbs.js.map +1 -0
  189. package/dist/src/components/MyPages/MyPagesSidebar.js +81 -0
  190. package/dist/src/components/MyPages/MyPagesSidebar.js.map +1 -0
  191. package/dist/src/components/MyPages/MyPagesStartPage.js +99 -0
  192. package/dist/src/components/MyPages/MyPagesStartPage.js.map +1 -0
  193. package/dist/src/components/MyPages/Newsletter.js +33 -0
  194. package/dist/src/components/MyPages/Newsletter.js.map +1 -0
  195. package/dist/src/components/MyPages/Orders/ListOrder.js +159 -0
  196. package/dist/src/components/MyPages/Orders/ListOrder.js.map +1 -0
  197. package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js +38 -0
  198. package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js.map +1 -0
  199. package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js +196 -0
  200. package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js.map +1 -0
  201. package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js +81 -0
  202. package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js.map +1 -0
  203. package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js +37 -0
  204. package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js.map +1 -0
  205. package/dist/src/components/MyPages/Orders/OrderListPage.js +56 -0
  206. package/dist/src/components/MyPages/Orders/OrderListPage.js.map +1 -0
  207. package/dist/src/components/MyPages/ProfileDeliveryAddresses.js +93 -0
  208. package/dist/src/components/MyPages/ProfileDeliveryAddresses.js.map +1 -0
  209. package/dist/src/components/MyPages/ProfilePage.js +109 -0
  210. package/dist/src/components/MyPages/ProfilePage.js.map +1 -0
  211. package/dist/src/components/MyPages/ProfileView.js +42 -0
  212. package/dist/src/components/MyPages/ProfileView.js.map +1 -0
  213. package/dist/src/components/NavigationTree/NavTree.js +53 -0
  214. package/dist/src/components/NavigationTree/NavTree.js.map +1 -0
  215. package/dist/src/components/NavigationTree/NavTreePage.js +7 -0
  216. package/dist/src/components/NavigationTree/NavTreePage.js.map +1 -0
  217. package/dist/src/components/NavigationTree/NavTreePage.loadable.js +7 -0
  218. package/dist/src/components/NavigationTree/NavTreePage.loadable.js.map +1 -0
  219. package/dist/src/components/Newsletter/NewsletterField.js +93 -0
  220. package/dist/src/components/Newsletter/NewsletterField.js.map +1 -0
  221. package/dist/src/components/NotFoundPage.js +59 -0
  222. package/dist/src/components/NotFoundPage.js.map +1 -0
  223. package/dist/src/components/NotFoundPage.loadable.js +7 -0
  224. package/dist/src/components/NotFoundPage.loadable.js.map +1 -0
  225. package/dist/src/components/Pages/About.js +7 -0
  226. package/dist/src/components/Pages/About.js.map +1 -0
  227. package/dist/src/components/Pagination/Pagination.js +29 -0
  228. package/dist/src/components/Pagination/Pagination.js.map +1 -0
  229. package/dist/src/components/Pagination/PaginationWrapper.js +16 -0
  230. package/dist/src/components/Pagination/PaginationWrapper.js.map +1 -0
  231. package/dist/src/components/PreviewRoute.loadable.js +7 -0
  232. package/dist/src/components/PreviewRoute.loadable.js.map +1 -0
  233. package/dist/src/components/ProductList/AddToCart.js +46 -0
  234. package/dist/src/components/ProductList/AddToCart.js.map +1 -0
  235. package/dist/src/components/ProductList/Favourite.js +46 -0
  236. package/dist/src/components/ProductList/Favourite.js.map +1 -0
  237. package/dist/src/components/ProductList/FavouriteCount.js +15 -0
  238. package/dist/src/components/ProductList/FavouriteCount.js.map +1 -0
  239. package/dist/src/components/ProductList/Favourites.js +187 -0
  240. package/dist/src/components/ProductList/Favourites.js.map +1 -0
  241. package/dist/src/components/ProductList/Lister.js +22 -0
  242. package/dist/src/components/ProductList/Lister.js.map +1 -0
  243. package/dist/src/components/ProductList/Product.js +62 -0
  244. package/dist/src/components/ProductList/Product.js.map +1 -0
  245. package/dist/src/components/ProductList/SelectVariant.js +47 -0
  246. package/dist/src/components/ProductList/SelectVariant.js.map +1 -0
  247. package/dist/src/components/ProductList/productListQueries.js +15 -0
  248. package/dist/src/components/ProductList/productListQueries.js.map +1 -0
  249. package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js +110 -0
  250. package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js.map +1 -0
  251. package/dist/src/components/ProductPage/AddToCart/ProductToast.js +118 -0
  252. package/dist/src/components/ProductPage/AddToCart/ProductToast.js.map +1 -0
  253. package/dist/src/components/ProductPage/AddToCart/useProductToast.js +21 -0
  254. package/dist/src/components/ProductPage/AddToCart/useProductToast.js.map +1 -0
  255. package/dist/src/components/ProductPage/Campaigns.js +43 -0
  256. package/dist/src/components/ProductPage/Campaigns.js.map +1 -0
  257. package/dist/src/components/ProductPage/ConfigurationSelector.js +62 -0
  258. package/dist/src/components/ProductPage/ConfigurationSelector.js.map +1 -0
  259. package/dist/src/components/ProductPage/Images/ImageContainer.js +45 -0
  260. package/dist/src/components/ProductPage/Images/ImageContainer.js.map +1 -0
  261. package/dist/src/components/ProductPage/Images/Thumbnails.js +32 -0
  262. package/dist/src/components/ProductPage/Images/Thumbnails.js.map +1 -0
  263. package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js +32 -0
  264. package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js.map +1 -0
  265. package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js +170 -0
  266. package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js.map +1 -0
  267. package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js +92 -0
  268. package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js.map +1 -0
  269. package/dist/src/components/ProductPage/PriceHistory.js +99 -0
  270. package/dist/src/components/ProductPage/PriceHistory.js.map +1 -0
  271. package/dist/src/components/ProductPage/ProductInfo.js +55 -0
  272. package/dist/src/components/ProductPage/ProductInfo.js.map +1 -0
  273. package/dist/src/components/ProductPage/ProductInfoAccordion.js +46 -0
  274. package/dist/src/components/ProductPage/ProductInfoAccordion.js.map +1 -0
  275. package/dist/src/components/ProductPage/ProductPage.js +174 -0
  276. package/dist/src/components/ProductPage/ProductPage.js.map +1 -0
  277. package/dist/src/components/ProductPage/ProductPage.loadable.js +7 -0
  278. package/dist/src/components/ProductPage/ProductPage.loadable.js.map +1 -0
  279. package/dist/src/components/ProductPage/ProductPageLoadingState.js +55 -0
  280. package/dist/src/components/ProductPage/ProductPageLoadingState.js.map +1 -0
  281. package/dist/src/components/ProductPage/QuantityContainer.js +21 -0
  282. package/dist/src/components/ProductPage/QuantityContainer.js.map +1 -0
  283. package/dist/src/components/ProductPage/RelatedProducts.js +45 -0
  284. package/dist/src/components/ProductPage/RelatedProducts.js.map +1 -0
  285. package/dist/src/components/ProductPage/SizePicker.js +37 -0
  286. package/dist/src/components/ProductPage/SizePicker.js.map +1 -0
  287. package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js +93 -0
  288. package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js.map +1 -0
  289. package/dist/src/components/ProductPage/StockStatus/StockOrb.js +31 -0
  290. package/dist/src/components/ProductPage/StockStatus/StockOrb.js.map +1 -0
  291. package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js +33 -0
  292. package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js.map +1 -0
  293. package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js +255 -0
  294. package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js.map +1 -0
  295. package/dist/src/components/ProductPage/VariantSelector.js +138 -0
  296. package/dist/src/components/ProductPage/VariantSelector.js.map +1 -0
  297. package/dist/src/components/ProductPage/styledComponents.js +11 -0
  298. package/dist/src/components/ProductPage/styledComponents.js.map +1 -0
  299. package/dist/src/components/ProductPage/useProductValidationMessage.js +24 -0
  300. package/dist/src/components/ProductPage/useProductValidationMessage.js.map +1 -0
  301. package/dist/src/components/SearchPage/CategoryList.js +129 -0
  302. package/dist/src/components/SearchPage/CategoryList.js.map +1 -0
  303. package/dist/src/components/SearchPage/EmptySearchResults.js +23 -0
  304. package/dist/src/components/SearchPage/EmptySearchResults.js.map +1 -0
  305. package/dist/src/components/SearchPage/SearchMeta.js +27 -0
  306. package/dist/src/components/SearchPage/SearchMeta.js.map +1 -0
  307. package/dist/src/components/SearchPage/SearchPage.js +52 -0
  308. package/dist/src/components/SearchPage/SearchPage.js.map +1 -0
  309. package/dist/src/components/SearchPage/SearchPage.loadable.js +7 -0
  310. package/dist/src/components/SearchPage/SearchPage.loadable.js.map +1 -0
  311. package/dist/src/components/SearchPage/SearchResults.js +60 -0
  312. package/dist/src/components/SearchPage/SearchResults.js.map +1 -0
  313. package/dist/src/components/SearchPage/SearchTerm.js +11 -0
  314. package/dist/src/components/SearchPage/SearchTerm.js.map +1 -0
  315. package/dist/src/components/SearchPage/WindowedSearchResults.js +80 -0
  316. package/dist/src/components/SearchPage/WindowedSearchResults.js.map +1 -0
  317. package/dist/src/components/SearchPage/index.js +3 -0
  318. package/dist/src/components/SearchPage/index.js.map +1 -0
  319. package/dist/src/components/Shop.js +82 -0
  320. package/dist/src/components/Shop.js.map +1 -0
  321. package/dist/src/components/StartPage/Content/Row.js +40 -0
  322. package/dist/src/components/StartPage/Content/Row.js.map +1 -0
  323. package/dist/src/components/StartPage/Content/StartPageCampaign.js +112 -0
  324. package/dist/src/components/StartPage/Content/StartPageCampaign.js.map +1 -0
  325. package/dist/src/components/StartPage/Content/StartPageCategories.js +80 -0
  326. package/dist/src/components/StartPage/Content/StartPageCategories.js.map +1 -0
  327. package/dist/src/components/StartPage/Content/StartPageHTMLContent.js +74 -0
  328. package/dist/src/components/StartPage/Content/StartPageHTMLContent.js.map +1 -0
  329. package/dist/src/components/StartPage/Content/StartPageHero.js +73 -0
  330. package/dist/src/components/StartPage/Content/StartPageHero.js.map +1 -0
  331. package/dist/src/components/StartPage/Content/StartPageProductGrid.js +69 -0
  332. package/dist/src/components/StartPage/Content/StartPageProductGrid.js.map +1 -0
  333. package/dist/src/components/StartPage/StartPage.js +37 -0
  334. package/dist/src/components/StartPage/StartPage.js.map +1 -0
  335. package/dist/src/components/StartPage/StartPage.loadable.js +7 -0
  336. package/dist/src/components/StartPage/StartPage.loadable.js.map +1 -0
  337. package/dist/src/components/StartPage/index.js +3 -0
  338. package/dist/src/components/StartPage/index.js.map +1 -0
  339. package/dist/src/components/Store/Store.js +26 -0
  340. package/dist/src/components/Store/Store.js.map +1 -0
  341. package/dist/src/components/Store/Store.loadable.js +7 -0
  342. package/dist/src/components/Store/Store.loadable.js.map +1 -0
  343. package/dist/src/components/Store/StoreDetail.js +13 -0
  344. package/dist/src/components/Store/StoreDetail.js.map +1 -0
  345. package/dist/src/components/StoreLocator/StoreList.js +160 -0
  346. package/dist/src/components/StoreLocator/StoreList.js.map +1 -0
  347. package/dist/src/components/StoreLocator/StoreLocator.js +133 -0
  348. package/dist/src/components/StoreLocator/StoreLocator.js.map +1 -0
  349. package/dist/src/components/StoreLocator/StoreLocator.loadable.js +7 -0
  350. package/dist/src/components/StoreLocator/StoreLocator.loadable.js.map +1 -0
  351. package/dist/src/components/StoreLocator/StoreMap.js +116 -0
  352. package/dist/src/components/StoreLocator/StoreMap.js.map +1 -0
  353. package/dist/src/components/StoreLocator/StoreMarker.js +63 -0
  354. package/dist/src/components/StoreLocator/StoreMarker.js.map +1 -0
  355. package/dist/src/components/StoreLocator/StoreSearch.js +47 -0
  356. package/dist/src/components/StoreLocator/StoreSearch.js.map +1 -0
  357. package/dist/src/components/StoreLocator/UserLocation.js +76 -0
  358. package/dist/src/components/StoreLocator/UserLocation.js.map +1 -0
  359. package/dist/src/components/StoreLocator/useLocationState.js +14 -0
  360. package/dist/src/components/StoreLocator/useLocationState.js.map +1 -0
  361. package/dist/src/components/StoreLocator/useMapState.js +16 -0
  362. package/dist/src/components/StoreLocator/useMapState.js.map +1 -0
  363. package/dist/src/components/Theme.js +6 -0
  364. package/dist/src/components/Theme.js.map +1 -0
  365. package/dist/src/components/ui/Badge.js +33 -0
  366. package/dist/src/components/ui/Badge.js.map +1 -0
  367. package/dist/src/components/ui/Button.js +93 -0
  368. package/dist/src/components/ui/Button.js.map +1 -0
  369. package/dist/src/components/ui/CloseButton.js +18 -0
  370. package/dist/src/components/ui/CloseButton.js.map +1 -0
  371. package/dist/src/components/ui/Divider.js +11 -0
  372. package/dist/src/components/ui/Divider.js.map +1 -0
  373. package/dist/src/components/ui/Headings.js +19 -0
  374. package/dist/src/components/ui/Headings.js.map +1 -0
  375. package/dist/src/components/ui/RadioGroupWithLabels.js +16 -0
  376. package/dist/src/components/ui/RadioGroupWithLabels.js.map +1 -0
  377. package/dist/src/components/ui/Spinner.js +39 -0
  378. package/dist/src/components/ui/Spinner.js.map +1 -0
  379. package/dist/src/fonts/loadFontCss.js +51 -0
  380. package/dist/src/fonts/loadFontCss.js.map +1 -0
  381. package/dist/src/globalStyles.js +83 -0
  382. package/dist/src/globalStyles.js.map +1 -0
  383. package/dist/src/server.js +12 -0
  384. package/dist/src/server.js.map +1 -0
  385. package/dist/src/shop.config.js +68 -0
  386. package/dist/src/shop.config.js.map +1 -0
  387. package/dist/src/theme-variables.js +65 -0
  388. package/dist/src/theme-variables.js.map +1 -0
  389. package/dist/translations/cs.json +788 -0
  390. package/dist/translations/da.json +791 -0
  391. package/dist/translations/de.json +788 -0
  392. package/dist/translations/en.json +794 -0
  393. package/dist/translations/es.json +788 -0
  394. package/dist/translations/et.json +788 -0
  395. package/dist/translations/fi.json +794 -0
  396. package/dist/translations/fr.json +788 -0
  397. package/dist/translations/index.js +18 -0
  398. package/dist/translations/index.js.map +1 -0
  399. package/dist/translations/it.json +788 -0
  400. package/dist/translations/lv.json +788 -0
  401. package/dist/translations/nb.json +791 -0
  402. package/dist/translations/nl.json +788 -0
  403. package/dist/translations/pl.json +788 -0
  404. package/dist/translations/ru.json +788 -0
  405. package/dist/translations/sk.json +788 -0
  406. package/dist/translations/sr.json +464 -0
  407. package/dist/translations/sv.json +794 -0
  408. package/jsconfig.json +1 -0
  409. package/package.json +5 -5
@@ -0,0 +1,19 @@
1
+ import { css, cx } from 'linaria';
2
+ import React from 'react';
3
+ const styles = css `
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: stretch;
7
+ align-items: stretch;
8
+ flex: 1 1 auto;
9
+ `;
10
+ export const ThemeSwitch = React.createContext(undefined);
11
+ export default function Container(props) {
12
+ const [theme, setTheme] = React.useState('');
13
+ function toggleTheme() {
14
+ setTheme(() => (theme === '' ? 'theme-alt' : ''));
15
+ }
16
+ return (React.createElement(ThemeSwitch.Provider, { value: toggleTheme },
17
+ React.createElement("div", Object.assign({}, props, { className: cx(styles, theme) }))));
18
+ }
19
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../src/components/Layout/Container.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;CAMjB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK;IACrC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE7C,SAAS,WAAW;QAClB,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,CACL,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;QACtC,6CAAS,KAAK,IAAE,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAC3B,CACxB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { styled } from 'linaria/react';
2
+ export default styled('main') `
3
+ background: #f8f8f8;
4
+ flex: 1 1 auto;
5
+ padding-bottom: 2rem;
6
+ `;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Layout/Content/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAe,MAAM,CAAC,MAAM,CAAC,CAAA;;;;CAI5B,CAAC"}
@@ -0,0 +1,106 @@
1
+ import t from '@jetshop/intl';
2
+ import { Above } from '@jetshop/ui/Breakpoints';
3
+ import JetshopText from '@jetshop/ui/JetshopText';
4
+ import React from 'react';
5
+ import { styled } from 'linaria/react';
6
+ import FooterLinks from './FooterLinks';
7
+ import MaxWidth from '../MaxWidth';
8
+ import SocialLinks from './SocialLinks';
9
+ import NewsletterField from '../../Newsletter/NewsletterField';
10
+ import { theme } from '../../Theme';
11
+ const backgroundColor = '#ffffff';
12
+ const PoweredByWrapper = styled('div') ``;
13
+ const Wrapper = styled('section') `
14
+ text-align: left;
15
+ font-size: 16px;
16
+ address {
17
+ font-style: normal;
18
+ }
19
+
20
+ ${theme.above.md} {
21
+ background: ${backgroundColor};
22
+ padding-top: 3rem;
23
+ padding-bottom: 3rem;
24
+ }
25
+
26
+ h2 {
27
+ font-weight: 600;
28
+ margin-bottom: 0.5rem;
29
+ }
30
+
31
+ .newsletter-container h2 {
32
+ margin-bottom: 1rem;
33
+ }
34
+
35
+ ul {
36
+ margin: 0;
37
+ padding: 0;
38
+ list-style: none;
39
+ }
40
+ a,
41
+ p {
42
+ padding: 0.5rem 0;
43
+ }
44
+ a {
45
+ display: block;
46
+ color: ${theme.colors.black};
47
+ text-decoration: none;
48
+ :hover {
49
+ color: ${theme.colors.blue};
50
+ transition: all 0.3s linear;
51
+ }
52
+ }
53
+ `;
54
+ const WrapFooterNav = styled(MaxWidth) `
55
+ ${theme.below.md} {
56
+ background: ${backgroundColor};
57
+ padding-top: 2rem;
58
+ padding-bottom: 2rem;
59
+ }
60
+
61
+ > section {
62
+ margin: 0 2rem 0 0;
63
+ flex: 0 1 25%;
64
+ }
65
+
66
+ display: flex;
67
+ justify-content: flex-start;
68
+ flex-direction: row;
69
+
70
+ ${theme.below.md} {
71
+ flex-direction: column;
72
+ justify-content: center;
73
+ text-align: center;
74
+
75
+ > section {
76
+ margin: 0;
77
+ }
78
+ }
79
+
80
+ h2 {
81
+ font-size: 16px;
82
+ }
83
+ `;
84
+ const NewsletterWrapper = styled('div') `
85
+ ${theme.above.md} {
86
+ margin-left: auto;
87
+ text-align: right;
88
+ }
89
+ `;
90
+ const Footer = () => (React.createElement(Wrapper, null,
91
+ React.createElement(WrapFooterNav, null,
92
+ React.createElement(FooterLinks, null),
93
+ React.createElement(Above, { breakpoint: "md", render: () => (React.createElement("section", null,
94
+ React.createElement("h2", null, t('Address')),
95
+ React.createElement("address", null,
96
+ React.createElement("p", null, "F\u00F6retagsgatan 58"),
97
+ React.createElement("p", null, "501 77 Bor\u00E5s"),
98
+ React.createElement("p", null, "Sweden")))) }),
99
+ React.createElement(NewsletterWrapper, null,
100
+ React.createElement("div", { className: "newsletter-container" },
101
+ React.createElement(NewsletterField, null)),
102
+ React.createElement(PoweredByWrapper, null,
103
+ React.createElement(Above, { breakpoint: "md" }, matches => React.createElement(SocialLinks, { showLabel: !matches })),
104
+ React.createElement(JetshopText, null))))));
105
+ export default Footer;
106
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../src/components/Layout/Footer/Footer.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,eAAe,GAAG,SAAS,CAAC;AAElC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,EAAE,CAAC;AAEzC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;;;;;;IAO7B,KAAK,CAAC,KAAK,CAAC,EAAE;kBACA,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;aAyBpB,KAAK,CAAC,MAAM,CAAC,KAAK;;;eAGhB,KAAK,CAAC,MAAM,CAAC,IAAI;;;;CAI/B,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClC,KAAK,CAAC,KAAK,CAAC,EAAE;kBACA,eAAe;;;;;;;;;;;;;;IAc7B,KAAK,CAAC,KAAK,CAAC,EAAE;;;;;;;;;;;;;CAajB,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IACnC,KAAK,CAAC,KAAK,CAAC,EAAE;;;;CAIjB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,CACnB,oBAAC,OAAO;IACN,oBAAC,aAAa;QACZ,oBAAC,WAAW,OAAG;QACf,oBAAC,KAAK,IACJ,UAAU,EAAC,IAAI,EACf,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ;gBACE,gCAAK,CAAC,CAAC,SAAS,CAAC,CAAM;gBACvB;oBACE,uDAAuB;oBACvB,mDAAmB;oBACnB,wCAAa,CACL,CACF,CACX,GACD;QACF,oBAAC,iBAAiB;YAChB,6BAAK,SAAS,EAAC,sBAAsB;gBACnC,oBAAC,eAAe,OAAG,CACf;YACN,oBAAC,gBAAgB;gBACf,oBAAC,KAAK,IAAC,UAAU,EAAC,IAAI,IACnB,OAAO,CAAC,EAAE,CAAC,oBAAC,WAAW,IAAC,SAAS,EAAE,CAAC,OAAO,GAAI,CAC1C;gBACR,oBAAC,WAAW,OAAG,CACE,CACD,CACN,CACR,CACX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { useQuery } from '@apollo/client';
2
+ import React from 'react';
3
+ import pagesQuery from './PagesQuery.gql';
4
+ import ContentPageLink from '@jetshop/ui/ContentPageLink';
5
+ import t from '@jetshop/intl';
6
+ import StoreTitleQuery from './StoreTitleQuery.gql';
7
+ function FooterLinks() {
8
+ var _a;
9
+ const { data } = useQuery(pagesQuery);
10
+ const { data: storeTitleData, loading: storeTitleLoading } = useQuery(StoreTitleQuery);
11
+ const pages = data === null || data === void 0 ? void 0 : data.pages;
12
+ const storeTitle = (_a = storeTitleData === null || storeTitleData === void 0 ? void 0 : storeTitleData.startPage) === null || _a === void 0 ? void 0 : _a.head.title;
13
+ return pages ? (React.createElement("section", null,
14
+ !storeTitleLoading && React.createElement("h2", null, storeTitle || t('Trend')),
15
+ React.createElement("ul", null, pages.map(page => {
16
+ var _a;
17
+ return (React.createElement("li", { key: page.id },
18
+ React.createElement(ContentPageLink, { page: page },
19
+ ((_a = page.subPages) === null || _a === void 0 ? void 0 : _a.length) ? '+ ' : null,
20
+ page.name)));
21
+ })))) : null;
22
+ }
23
+ export default FooterLinks;
24
+ //# sourceMappingURL=FooterLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterLinks.js","sourceRoot":"","sources":["../../../../../src/components/Layout/Footer/FooterLinks.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,eAAe,MAAM,uBAAuB,CAAC;AAEpD,SAAS,WAAW;;IAClB,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,EAAE,GACxD,QAAQ,CAAC,eAAe,CAAC,CAAC;IAE5B,MAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;IAC1B,MAAM,UAAU,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,0CAAE,IAAI,CAAC,KAAK,CAAC;IAEzD,OAAO,KAAK,CAAC,CAAC,CAAC,CACb;QACG,CAAC,iBAAiB,IAAI,gCAAK,UAAU,IAAI,CAAC,CAAC,OAAO,CAAC,CAAM;QAC1D,gCACG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;;YAAC,OAAA,CACjB,4BAAI,GAAG,EAAE,IAAI,CAAC,EAAE;gBACd,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI;oBACxB,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;oBACnC,IAAI,CAAC,IAAI,CACM,CACf,CACN,CAAA;SAAA,CAAC,CACC,CACG,CACX,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import { styled } from 'linaria/react';
3
+ import { ReactComponent as FacebookLogo } from '@jetshop/ui/svg/facebook.svg';
4
+ import { ReactComponent as InstagramLogo } from '@jetshop/ui/svg/instagram.svg';
5
+ import { theme } from '../../Theme';
6
+ const Wrapper = styled('div') `
7
+ margin-right: 0;
8
+ ul {
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ align-items: center;
13
+ margin-top: 1rem;
14
+ ${theme.above.md} {
15
+ margin-top: 0;
16
+ flex-direction: row;
17
+ justify-content: flex-end;
18
+ }
19
+ }
20
+
21
+ li {
22
+ margin: 0 0.5rem;
23
+ }
24
+
25
+ a.social-links {
26
+ display: flex;
27
+ justify-content: flex-end;
28
+ align-items: center;
29
+ }
30
+
31
+ color: ${theme.colors.black};
32
+ `;
33
+ const LogoWrapper = styled('span') `
34
+ background: ${theme.colors.black};
35
+ width: 1.375rem;
36
+ height: 1.375rem;
37
+ display: inline-flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ border-radius: 50%;
41
+ ${theme.below.md} {
42
+ margin-right: 0.25rem;
43
+ }
44
+ svg {
45
+ width: 12px;
46
+ max-height: 80%;
47
+ }
48
+ `;
49
+ const SocialLinks = ({ showLabel = true }) => (React.createElement(Wrapper, null,
50
+ React.createElement("ul", null,
51
+ React.createElement("li", null,
52
+ React.createElement("a", { className: "social-links", "aria-label": "Facebook", href: "/" },
53
+ React.createElement(LogoWrapper, null,
54
+ React.createElement(FacebookLogo, null)),
55
+ showLabel && React.createElement("label", null, "Facebook"))),
56
+ React.createElement("li", null,
57
+ React.createElement("a", { className: "social-links", "aria-label": "Instagram", href: "/" },
58
+ React.createElement(LogoWrapper, null,
59
+ React.createElement(InstagramLogo, null)),
60
+ showLabel && React.createElement("label", null, "Instagram"))))));
61
+ export default SocialLinks;
62
+ //# sourceMappingURL=SocialLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SocialLinks.js","sourceRoot":"","sources":["../../../../../src/components/Layout/Footer/SocialLinks.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;MAQvB,KAAK,CAAC,KAAK,CAAC,EAAE;;;;;;;;;;;;;;;;;WAiBT,KAAK,CAAC,MAAM,CAAC,KAAK;CAC5B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;gBAClB,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;IAO9B,KAAK,CAAC,KAAK,CAAC,EAAE;;;;;;;CAOjB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5C,oBAAC,OAAO;IACN;QACE;YACE,2BAAG,SAAS,EAAC,cAAc,gBAAY,UAAU,EAAC,IAAI,EAAC,GAAG;gBACxD,oBAAC,WAAW;oBACV,oBAAC,YAAY,OAAG,CACJ;gBACb,SAAS,IAAI,8CAAuB,CACnC,CACD;QACL;YACE,2BAAG,SAAS,EAAC,cAAc,gBAAY,WAAW,EAAC,IAAI,EAAC,GAAG;gBACzD,oBAAC,WAAW;oBACV,oBAAC,aAAa,OAAG,CACL;gBACb,SAAS,IAAI,+CAAwB,CACpC,CACD,CACF,CACG,CACX,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import CategoryLink from '@jetshop/ui/CategoryLink';
3
+ import getCategoriesByLevel from './__util__/getCategoriesByLevel';
4
+ const Categories = ({ categories, setActiveCategory }) => {
5
+ const firstLevelCategories = getCategoriesByLevel(categories, 1);
6
+ return firstLevelCategories.map(category => (React.createElement("li", { key: category.name },
7
+ React.createElement(CategoryLink, { onClick: () => setActiveCategory(category), category: category }, category.name))));
8
+ };
9
+ export default Categories;
10
+ //# sourceMappingURL=Categories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Categories.js","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Categories/Categories.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,MAAM,UAAU,GAAG,CAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACvD,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAEjE,OAAO,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC1C,4BAAI,GAAG,EAAE,QAAQ,CAAC,IAAI;QACpB,oBAAC,YAAY,IACX,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAC1C,QAAQ,EAAE,QAAQ,IAEjB,QAAQ,CAAC,IAAI,CACD,CACZ,CACN,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,128 @@
1
+ import Accordion from '@jetshop/ui/Accordion/Accordion';
2
+ import Link from '@jetshop/ui/CategoryLink';
3
+ import { StyledCarrot } from '@jetshop/ui/Select/Components';
4
+ import React, { Component } from 'react';
5
+ import { styled } from 'linaria/react';
6
+ import t from '@jetshop/intl';
7
+ const CategoryTree = styled('ul') `
8
+ display: flex;
9
+ flex-direction: column;
10
+ list-style: none;
11
+
12
+ flex: 1 0 auto;
13
+
14
+ a,
15
+ a:hover {
16
+ text-decoration: none;
17
+ }
18
+
19
+ &.root {
20
+ border-top: 1px solid #e7e4e4;
21
+ border-bottom: 1px solid #e7e4e4;
22
+ }
23
+ `;
24
+ const SubCategories = styled(CategoryTree) `
25
+ padding-left: 1rem;
26
+ background-color: #f0f0f0;
27
+ border-bottom: 1px solid #e7e4e4;
28
+ `;
29
+ const CategoryLink = styled(Link) `
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ color: inherit;
34
+ text-decoration: none;
35
+ padding: 1em 1em 0.9375em; /* Adjust for crappy web-font height */
36
+ border-bottom: 1px solid #e7e4e4;
37
+ svg {
38
+ display: none;
39
+ margin-right: 0px;
40
+ }
41
+
42
+ &.with-chevron {
43
+ svg {
44
+ display: block;
45
+ }
46
+ }
47
+
48
+ position: relative;
49
+
50
+ ul li &.active,
51
+ ul li ul li &.active {
52
+ font-weight: bold;
53
+ }
54
+
55
+ ul li ul li &,
56
+ ul li:last-child ul li & {
57
+ border-bottom: 1px solid #fff;
58
+ }
59
+
60
+ ul li:last-child &,
61
+ ul li ul li:last-child & {
62
+ border-bottom: none;
63
+ }
64
+ `;
65
+ const CategoryName = styled('h2') `
66
+ font-size: 16px;
67
+ font-weight: 600;
68
+ `;
69
+ const SubCategory = styled('li') `
70
+ font-size: 0.875rem;
71
+ `;
72
+ const RootCategory = styled('li') `
73
+ display: flex;
74
+ flex-direction: column;
75
+ `;
76
+ export default class DrawerMenu extends Component {
77
+ constructor() {
78
+ super(...arguments);
79
+ this.renderSubCategories = category => {
80
+ const { subcategories } = category;
81
+ if (!subcategories || !subcategories.length)
82
+ return null;
83
+ const { closeMenu } = this.props;
84
+ return (React.createElement(SubCategories, null,
85
+ React.createElement(SubCategory, null,
86
+ React.createElement(CategoryLink, { exact: true, category: category, onClick: () => closeMenu() }, t('View all in {category}', { category: category.name }))),
87
+ subcategories.map(cat => {
88
+ return (React.createElement(SubCategory, { key: cat.id },
89
+ React.createElement(CategoryLink, { category: cat, onClick: () => closeMenu() })));
90
+ })));
91
+ };
92
+ this.handleClick = (e, hasChildren, index, handleAccordionClick) => {
93
+ // If there are subcategories, prevent following the link
94
+ const { closeMenu } = this.props;
95
+ if (hasChildren) {
96
+ e.stopPropagation();
97
+ e.preventDefault();
98
+ }
99
+ else {
100
+ closeMenu();
101
+ }
102
+ handleAccordionClick(index);
103
+ };
104
+ }
105
+ render() {
106
+ const { categories } = this.props;
107
+ if (categories && categories.length > 0) {
108
+ return (React.createElement(CategoryTree, { className: "root" },
109
+ React.createElement(Accordion, { single: true }, ({ openIndexes, handleClick, AccordionContent }) => categories.map((cat, index) => {
110
+ let classNames = [];
111
+ // Give categories with children a chevron
112
+ cat.subcategories.length && classNames.push('with-chevron');
113
+ // Add 'open' class when accordion is opened
114
+ const open = openIndexes.includes(index);
115
+ open && classNames.push('open');
116
+ return (React.createElement(RootCategory, { key: cat.id },
117
+ React.createElement(CategoryName, null,
118
+ React.createElement(CategoryLink, { category: cat, onClick: e => this.handleClick(e, cat.subcategories.length, index, handleClick), className: classNames.length > 0 ? classNames.join(' ') : null },
119
+ cat.name,
120
+ React.createElement(StyledCarrot, { open: open }))),
121
+ React.createElement(AccordionContent, { isOpen: open }, this.renderSubCategories(cat))));
122
+ }))));
123
+ }
124
+ else
125
+ return null;
126
+ }
127
+ }
128
+ //# sourceMappingURL=MobileCategories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileCategories.js","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Categories/MobileCategories.js"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ export default function getCategoriesByLevel(categories, level) {
2
+ return categories.filter(cat => cat.level === level);
3
+ }
4
+ //# sourceMappingURL=getCategoriesByLevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCategoriesByLevel.js","sourceRoot":"","sources":["../../../../../../../src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,UAAU,EAAE,KAAK;IAC5D,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AACvD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export default function getCategoriesUnderParent(categories, parentID) {
2
+ return categories.filter(cat => cat.parentId === parentID);
3
+ }
4
+ //# sourceMappingURL=getCategoriesUnderParent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCategoriesUnderParent.js","sourceRoot":"","sources":["../../../../../../../src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,UAAU,EAAE,QAAQ;IACnE,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,4 @@
1
+ export default function (categories, category) {
2
+ return categories.some(cat => cat.parentId === category.id);
3
+ }
4
+ //# sourceMappingURL=hasChildCategories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasChildCategories.js","sourceRoot":"","sources":["../../../../../../../src/components/Layout/Header/Categories/__util__/hasChildCategories.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAU,UAAU,EAAE,QAAQ;IAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import CategoryMenuContainer from './CategoryMenuContainer';
3
+ import { styled } from 'linaria/react';
4
+ const Nav = styled('nav') `
5
+ border-top: 1px solid #e8e8e8;
6
+ border-bottom: 1px solid #e8e8e8;
7
+ button {
8
+ background: none;
9
+ color: #666;
10
+ }
11
+
12
+ .menu-container {
13
+ margin-top: 0;
14
+ }
15
+ `;
16
+ export function CategoryMenu({ data }) {
17
+ return (React.createElement(Nav, null,
18
+ React.createElement("div", { key: 'menuContainerPosed', className: "menu-container" },
19
+ React.createElement(CategoryMenuContainer, { queryData: data }))));
20
+ }
21
+ //# sourceMappingURL=CategoryMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryMenu.js","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/CategoryMenu/CategoryMenu.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;CAWxB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE;IACnC,OAAO,CACL,oBAAC,GAAG;QACF,6BAAK,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAC,gBAAgB;YACxD,oBAAC,qBAAqB,IAAC,SAAS,EAAE,IAAI,GAAI,CACtC,CACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,55 @@
1
+ import CategoryLink from '@jetshop/ui/CategoryLink';
2
+ import UIMenuContainer from '@jetshop/ui/Menu/MenuContainer';
3
+ import React from 'react';
4
+ import { styled } from 'linaria/react';
5
+ import SubMenuWrapper from './SubMenuWrapper';
6
+ const Wrapper = styled('div') `
7
+ position: relative;
8
+ ul {
9
+ margin: 0;
10
+ padding: 0;
11
+ list-style: none;
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ justify-content: center;
15
+ align-items: center;
16
+ }
17
+ `;
18
+ const MainMenuItem = styled('li') `
19
+ a {
20
+ padding: 1rem;
21
+ display: inline-block;
22
+ color: #5c5c5c;
23
+ text-decoration: none;
24
+ &.active {
25
+ color: #000;
26
+ font-weight: bold;
27
+ }
28
+ }
29
+ `;
30
+ const CategoryMenuContainer = ({ queryData }) => {
31
+ return (React.createElement(UIMenuContainer, null, props => (
32
+ // When mousing outside the menu, close it
33
+ React.createElement(Wrapper, { onMouseLeave: props.clearActiveCategories },
34
+ React.createElement("ul", null, queryData && queryData.categories
35
+ ? queryData.categories.map(cat => (React.createElement(CategoryMenuItem, { key: cat.id, cat: cat, props: props })))
36
+ : null),
37
+ React.createElement(SubMenuWrapper, { pose: props.activeCategories.length > 0 &&
38
+ props.activeCategories[0].subcategories.length > 0
39
+ ? 'open'
40
+ : 'closed', activeCategory: props.activeCategories[0], closeNav: props.clearActiveCategories })))));
41
+ };
42
+ const CategoryMenuItem = ({ cat, props }) => {
43
+ return (React.createElement(MainMenuItem
44
+ // When mousing over a menu item, set it as the active nav
45
+ , {
46
+ // When mousing over a menu item, set it as the active nav
47
+ onMouseEnter: () => props.setActiveCategory(cat) },
48
+ React.createElement(CategoryLink
49
+ // When following a category link, close the menu
50
+ , {
51
+ // When following a category link, close the menu
52
+ onClick: props.clearActiveCategories, category: cat }, cat.name)));
53
+ };
54
+ export default CategoryMenuContainer;
55
+ //# sourceMappingURL=CategoryMenuContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryMenuContainer.js","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;CAW5B,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;;;;;;CAWhC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,oBAAC,eAAe,QACb,KAAK,CAAC,EAAE,CAAC;IACR,0CAA0C;IAC1C,oBAAC,OAAO,IAAC,YAAY,EAAE,KAAK,CAAC,qBAAqB;QAChD,gCACG,SAAS,IAAI,SAAS,CAAC,UAAU;YAChC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAC9B,oBAAC,gBAAgB,IAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI,CAC1D,CAAC;YACJ,CAAC,CAAC,IAAI,CACL;QACL,oBAAC,cAAc,IACb,IAAI,EACF,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC;gBACjC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;gBAChD,CAAC,CAAC,MAAM;gBACR,CAAC,CAAC,QAAQ,EAEd,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,EACzC,QAAQ,EAAE,KAAK,CAAC,qBAAqB,GACrC,CACM,CACX,CACe,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE;IAC1C,OAAO,CACL,oBAAC,YAAY;IACX,0DAA0D;;QAA1D,0DAA0D;QAC1D,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC;QAEhD,oBAAC,YAAY;QACX,iDAAiD;;YAAjD,iDAAiD;YACjD,OAAO,EAAE,KAAK,CAAC,qBAAqB,EACpC,QAAQ,EAAE,GAAG,IAEZ,GAAG,CAAC,IAAI,CACI,CACF,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { styled } from 'linaria/react';
3
+ import CategoryLink from '@jetshop/ui/CategoryLink';
4
+ import { theme } from '../../../Theme';
5
+ const Wrapper = styled('div') `
6
+ flex: 1 1 auto;
7
+ padding-bottom: 0.5em;
8
+
9
+ h2 {
10
+ margin-bottom: 0;
11
+ padding-bottom: 0;
12
+ a {
13
+ padding-bottom: 0;
14
+ }
15
+ }
16
+
17
+ ul {
18
+ max-height: 8rem;
19
+ justify-content: flex-start;
20
+ align-items: stretch;
21
+ margin: 0;
22
+ }
23
+
24
+ li {
25
+ color: #8f8f8f;
26
+ flex: auto;
27
+ max-width: 10rem;
28
+ padding: 0;
29
+ margin: 0;
30
+ a {
31
+ opacity: 1;
32
+ color: #8f8f8f;
33
+ display: block;
34
+ padding: 0.5em;
35
+ :hover,
36
+ &.active {
37
+ color: ${theme.colors.black};
38
+ }
39
+ }
40
+ }
41
+ a {
42
+ text-decoration: none;
43
+ color: ${theme.colors.black};
44
+ opacity: 0.8;
45
+ display: block;
46
+ :hover {
47
+ opacity: 1;
48
+ }
49
+ }
50
+ `;
51
+ const Heading = styled('h2') ``;
52
+ const SubMenuSection = ({ heading, categories, onMouseOver, onSelect = () => { } }) => {
53
+ return (React.createElement(Wrapper, { onMouseOver: onMouseOver },
54
+ React.createElement(Heading, null,
55
+ React.createElement(CategoryLink, { onClick: onSelect, category: heading }, heading.name)),
56
+ React.createElement("ul", null, categories.map(cat => (React.createElement("li", { key: cat.id },
57
+ React.createElement(CategoryLink, { onClick: onSelect, category: cat }, cat.name)))))));
58
+ };
59
+ export default SubMenuSection;
60
+ //# sourceMappingURL=SubMenuSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubMenuSection.js","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/CategoryMenu/SubMenuSection.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgCZ,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;aAMtB,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;CAO9B,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA,EAAE,CAAC;AAE/B,MAAM,cAAc,GAAG,CAAC,EACtB,OAAO,EACP,UAAU,EACV,WAAW,EACX,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACpB,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,OAAO,IAAC,WAAW,EAAE,WAAW;QAC/B,oBAAC,OAAO;YACN,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,IAC/C,OAAO,CAAC,IAAI,CACA,CACP;QACV,gCACG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACrB,4BAAI,GAAG,EAAE,GAAG,CAAC,EAAE;YACb,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAC3C,GAAG,CAAC,IAAI,CACI,CACZ,CACN,CAAC,CACC,CACG,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,78 @@
1
+ import CategoryLink from '@jetshop/ui/CategoryLink';
2
+ import React from 'react';
3
+ import { styled } from 'linaria/react';
4
+ import { theme } from '../../../Theme';
5
+ import UIMaxWidth from '../../MaxWidth';
6
+ import SubMenuSection from './SubMenuSection';
7
+ import AnimateHeight from 'react-animate-height';
8
+ const borderColor = '#e8e8e8';
9
+ // Limit the menu to our global MaxWidth
10
+ const MaxWidth = styled(UIMaxWidth) `
11
+ width: 100%;
12
+ flex-direction: row;
13
+ justify-content: space-between;
14
+
15
+ a {
16
+ text-decoration: none;
17
+ color: ${theme.colors.black};
18
+ opacity: 0.8;
19
+ display: block;
20
+ padding: 1em 0.5em 1.25em 0.5em;
21
+ :hover {
22
+ opacity: 1;
23
+ text-decoration: underline;
24
+ }
25
+ }
26
+ `;
27
+ // Set the submenu a minimum of 50% of the browser view, but fit the content
28
+ // so it doesn't always extend to 100%.
29
+ const ContentFit = styled('div') `
30
+ width: fit-content;
31
+ margin: 0 auto;
32
+ min-width: 50vw;
33
+ `;
34
+ // We need to put the border here (inside the Wrapper), because if we put it directly
35
+ // on the Wrapper it will still be shown when the Wrapper's height is 0
36
+ const InnerWrapper = styled('div') `
37
+ border: 1px solid ${borderColor};
38
+ border-width: 1px 0 1px 0;
39
+ width: 100%;
40
+ `;
41
+ const Wrapper = styled('section') `
42
+ display: flex;
43
+ justify-content: center;
44
+ position: absolute;
45
+ right: 0;
46
+ left: 0;
47
+ background: ${theme.colors.white};
48
+ overflow: hidden;
49
+ z-index: 10;
50
+ will-change: height;
51
+ transition: height 0.3s ease-in-out;
52
+
53
+ h2 {
54
+ margin-bottom: 0;
55
+ font-weight: 600;
56
+ font-size: 1em;
57
+ }
58
+ `;
59
+ const NoThirdTierItems = styled('div') `
60
+ display: flex;
61
+ flex: 1 1 auto;
62
+ justify-content: center;
63
+ h2 {
64
+ font-size: inherit;
65
+ }
66
+ `;
67
+ const SubMenuWrapper = ({ pose, activeCategory, closeNav, client, data }) => {
68
+ return (React.createElement(Wrapper, null,
69
+ React.createElement(InnerWrapper, null,
70
+ React.createElement(ContentFit, null,
71
+ React.createElement(AnimateHeight, { height: pose === 'open' ? 'auto' : 0, duration: 350 },
72
+ React.createElement(MaxWidth, null, activeCategory &&
73
+ activeCategory.subcategories.map((cat, index) => (React.createElement(React.Fragment, { key: cat.id }, cat.subcategories.length > 0 ? (React.createElement(SubMenuSection, { heading: cat, categories: cat.subcategories, onSelect: closeNav, key: cat.id })) : (React.createElement(NoThirdTierItems, { key: cat.id },
74
+ React.createElement("h2", null,
75
+ React.createElement(CategoryLink, { category: cat, onClick: closeNav }, cat.name)))))))))))));
76
+ };
77
+ export default SubMenuWrapper;
78
+ //# sourceMappingURL=SubMenuWrapper.js.map